tgupdate: merge pcreposix-compat base into pcreposix-compat
[pcreposix-compat.git] / configure
blob771650d528ebed6d98863ed11a97645c6bdeca40
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for PCRE 8.44.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
280 exit 1
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
298 { eval $1=; unset $1;}
300 as_unset=as_fn_unset
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
307 return $1
308 } # as_fn_set_status
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
351 /^X\(\/\/\)$/{
352 s//\1/
355 /^X\(\/\).*/{
356 s//\1/
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366 } # as_fn_mkdir_p
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
384 eval $1+=\$2
386 else
387 as_fn_append ()
389 eval $1=\$$1\$2
391 fi # as_fn_append
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
401 as_val=$(( $* ))
403 else
404 as_fn_arith ()
406 as_val=`expr "$@" || test $? -eq 1`
408 fi # as_fn_arith
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
455 /^X\/\(\/\/\)$/{
456 s//\1/
459 /^X\/\(\/\).*/{
460 s//\1/
463 s/.*/./; q'`
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
486 :lineno
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
518 ECHO_N='-n';;
519 esac
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
542 else
543 as_ln_s='cp -pR'
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
576 # Initializations.
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
587 # Identity of this package.
588 PACKAGE_NAME='PCRE'
589 PACKAGE_TARNAME='pcre'
590 PACKAGE_VERSION='8.44'
591 PACKAGE_STRING='PCRE 8.44'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
595 ac_unique_file="pcre.h.in"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
632 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 LIBOBJS
636 WITH_GCOV_FALSE
637 WITH_GCOV_TRUE
638 GCOV_LIBS
639 GCOV_CXXFLAGS
640 GCOV_CFLAGS
641 GENHTML
642 LCOV
643 SHTOOL
644 VALGRIND_LIBS
645 VALGRIND_CFLAGS
646 PKG_CONFIG_LIBDIR
647 PKG_CONFIG_PATH
648 PKG_CONFIG
649 LIBBZ2
650 LIBZ
651 DISTCHECK_CONFIGURE_FLAGS
652 EXTRA_LIBPCRECPP_LDFLAGS
653 EXTRA_LIBPCREPOSIX_LDFLAGS
654 EXTRA_LIBPCRE32_LDFLAGS
655 EXTRA_LIBPCRE16_LDFLAGS
656 EXTRA_LIBPCRE_LDFLAGS
657 PTHREAD_CFLAGS
658 PTHREAD_LIBS
659 PTHREAD_CC
660 ax_pthread_config
661 PCRE_STATIC_CFLAG
662 LIBREADLINE
663 WITH_VALGRIND_FALSE
664 WITH_VALGRIND_TRUE
665 WITH_UTF_FALSE
666 WITH_UTF_TRUE
667 WITH_JIT_FALSE
668 WITH_JIT_TRUE
669 WITH_REBUILD_CHARTABLES_FALSE
670 WITH_REBUILD_CHARTABLES_TRUE
671 WITH_PCRE_CPP_FALSE
672 WITH_PCRE_CPP_TRUE
673 WITH_PCRE32_FALSE
674 WITH_PCRE32_TRUE
675 WITH_PCRE16_FALSE
676 WITH_PCRE16_TRUE
677 WITH_PCRE8_FALSE
678 WITH_PCRE8_TRUE
679 pcre_have_bits_type_traits
680 pcre_have_type_traits
681 pcre_have_ulong_long
682 pcre_have_long_long
683 enable_cpp
684 enable_pcre32
685 enable_pcre16
686 enable_pcre8
687 PCRE_DATE
688 PCRE_PRERELEASE
689 PCRE_MINOR
690 PCRE_MAJOR
691 HAVE_VISIBILITY
692 VISIBILITY_CXXFLAGS
693 VISIBILITY_CFLAGS
694 CXXCPP
695 LT_SYS_LIBRARY_PATH
696 OTOOL64
697 OTOOL
698 LIPO
699 NMEDIT
700 DSYMUTIL
701 MANIFEST_TOOL
702 RANLIB
703 LN_S
705 ac_ct_DUMPBIN
706 DUMPBIN
708 FGREP
710 LIBTOOL
711 OBJDUMP
712 DLLTOOL
714 host_os
715 host_vendor
716 host_cpu
717 host
718 build_os
719 build_vendor
720 build_cpu
721 build
722 EGREP
723 GREP
725 am__fastdepCXX_FALSE
726 am__fastdepCXX_TRUE
727 CXXDEPMODE
728 ac_ct_CXX
729 CXXFLAGS
731 am__fastdepCC_FALSE
732 am__fastdepCC_TRUE
733 CCDEPMODE
734 am__nodep
735 AMDEPBACKSLASH
736 AMDEP_FALSE
737 AMDEP_TRUE
738 am__include
739 DEPDIR
740 OBJEXT
741 EXEEXT
742 ac_ct_CC
743 CPPFLAGS
744 LDFLAGS
745 CFLAGS
747 ac_ct_AR
749 AM_BACKSLASH
750 AM_DEFAULT_VERBOSITY
751 AM_DEFAULT_V
752 AM_V
753 am__untar
754 am__tar
755 AMTAR
756 am__leading_dot
757 SET_MAKE
759 mkdir_p
760 MKDIR_P
761 INSTALL_STRIP_PROGRAM
762 STRIP
763 install_sh
764 MAKEINFO
765 AUTOHEADER
766 AUTOMAKE
767 AUTOCONF
768 ACLOCAL
769 VERSION
770 PACKAGE
771 CYGPATH_W
772 am__isrc
773 INSTALL_DATA
774 INSTALL_SCRIPT
775 INSTALL_PROGRAM
776 target_alias
777 host_alias
778 build_alias
779 LIBS
780 ECHO_T
781 ECHO_N
782 ECHO_C
783 DEFS
784 mandir
785 localedir
786 libdir
787 psdir
788 pdfdir
789 dvidir
790 htmldir
791 infodir
792 docdir
793 oldincludedir
794 includedir
795 localstatedir
796 sharedstatedir
797 sysconfdir
798 datadir
799 datarootdir
800 libexecdir
801 sbindir
802 bindir
803 program_transform_name
804 prefix
805 exec_prefix
806 PACKAGE_URL
807 PACKAGE_BUGREPORT
808 PACKAGE_STRING
809 PACKAGE_VERSION
810 PACKAGE_TARNAME
811 PACKAGE_NAME
812 PATH_SEPARATOR
813 SHELL
814 am__quote'
815 ac_subst_files=''
816 ac_user_opts='
817 enable_option_checking
818 enable_silent_rules
819 enable_dependency_tracking
820 enable_shared
821 enable_static
822 with_pic
823 enable_fast_install
824 with_aix_soname
825 with_gnu_ld
826 with_sysroot
827 enable_libtool_lock
828 enable_pcre8
829 enable_pcre16
830 enable_pcre32
831 enable_cpp
832 enable_jit
833 enable_pcregrep_jit
834 enable_rebuild_chartables
835 enable_utf8
836 enable_utf
837 enable_unicode_properties
838 enable_newline_is_cr
839 enable_newline_is_lf
840 enable_newline_is_crlf
841 enable_newline_is_anycrlf
842 enable_newline_is_any
843 enable_bsr_anycrlf
844 enable_ebcdic
845 enable_ebcdic_nl25
846 enable_stack_for_recursion
847 enable_pcregrep_libz
848 enable_pcregrep_libbz2
849 with_pcregrep_bufsize
850 enable_pcretest_libedit
851 enable_pcretest_libreadline
852 with_posix_malloc_threshold
853 with_link_size
854 with_parens_nest_limit
855 with_match_limit
856 with_match_limit_recursion
857 enable_valgrind
858 enable_coverage
860 ac_precious_vars='build_alias
861 host_alias
862 target_alias
864 CFLAGS
865 LDFLAGS
866 LIBS
867 CPPFLAGS
869 CXXFLAGS
872 LT_SYS_LIBRARY_PATH
873 CXXCPP
874 PKG_CONFIG
875 PKG_CONFIG_PATH
876 PKG_CONFIG_LIBDIR
877 VALGRIND_CFLAGS
878 VALGRIND_LIBS
879 LCOV
880 GENHTML'
883 # Initialize some variables set by options.
884 ac_init_help=
885 ac_init_version=false
886 ac_unrecognized_opts=
887 ac_unrecognized_sep=
888 # The variables have the same names as the options, with
889 # dashes changed to underlines.
890 cache_file=/dev/null
891 exec_prefix=NONE
892 no_create=
893 no_recursion=
894 prefix=NONE
895 program_prefix=NONE
896 program_suffix=NONE
897 program_transform_name=s,x,x,
898 silent=
899 site=
900 srcdir=
901 verbose=
902 x_includes=NONE
903 x_libraries=NONE
905 # Installation directory options.
906 # These are left unexpanded so users can "make install exec_prefix=/foo"
907 # and all the variables that are supposed to be based on exec_prefix
908 # by default will actually change.
909 # Use braces instead of parens because sh, perl, etc. also accept them.
910 # (The list follows the same order as the GNU Coding Standards.)
911 bindir='${exec_prefix}/bin'
912 sbindir='${exec_prefix}/sbin'
913 libexecdir='${exec_prefix}/libexec'
914 datarootdir='${prefix}/share'
915 datadir='${datarootdir}'
916 sysconfdir='${prefix}/etc'
917 sharedstatedir='${prefix}/com'
918 localstatedir='${prefix}/var'
919 includedir='${prefix}/include'
920 oldincludedir='/usr/include'
921 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
922 infodir='${datarootdir}/info'
923 htmldir='${docdir}'
924 dvidir='${docdir}'
925 pdfdir='${docdir}'
926 psdir='${docdir}'
927 libdir='${exec_prefix}/lib'
928 localedir='${datarootdir}/locale'
929 mandir='${datarootdir}/man'
931 ac_prev=
932 ac_dashdash=
933 for ac_option
935 # If the previous option needs an argument, assign it.
936 if test -n "$ac_prev"; then
937 eval $ac_prev=\$ac_option
938 ac_prev=
939 continue
942 case $ac_option in
943 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
944 *=) ac_optarg= ;;
945 *) ac_optarg=yes ;;
946 esac
948 # Accept the important Cygnus configure options, so we can diagnose typos.
950 case $ac_dashdash$ac_option in
952 ac_dashdash=yes ;;
954 -bindir | --bindir | --bindi | --bind | --bin | --bi)
955 ac_prev=bindir ;;
956 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
957 bindir=$ac_optarg ;;
959 -build | --build | --buil | --bui | --bu)
960 ac_prev=build_alias ;;
961 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
962 build_alias=$ac_optarg ;;
964 -cache-file | --cache-file | --cache-fil | --cache-fi \
965 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
966 ac_prev=cache_file ;;
967 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
968 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
969 cache_file=$ac_optarg ;;
971 --config-cache | -C)
972 cache_file=config.cache ;;
974 -datadir | --datadir | --datadi | --datad)
975 ac_prev=datadir ;;
976 -datadir=* | --datadir=* | --datadi=* | --datad=*)
977 datadir=$ac_optarg ;;
979 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
980 | --dataroo | --dataro | --datar)
981 ac_prev=datarootdir ;;
982 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
983 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
984 datarootdir=$ac_optarg ;;
986 -disable-* | --disable-*)
987 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
988 # Reject names that are not valid shell variable names.
989 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
990 as_fn_error $? "invalid feature name: $ac_useropt"
991 ac_useropt_orig=$ac_useropt
992 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
993 case $ac_user_opts in
995 "enable_$ac_useropt"
996 "*) ;;
997 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
998 ac_unrecognized_sep=', ';;
999 esac
1000 eval enable_$ac_useropt=no ;;
1002 -docdir | --docdir | --docdi | --doc | --do)
1003 ac_prev=docdir ;;
1004 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1005 docdir=$ac_optarg ;;
1007 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1008 ac_prev=dvidir ;;
1009 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1010 dvidir=$ac_optarg ;;
1012 -enable-* | --enable-*)
1013 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1014 # Reject names that are not valid shell variable names.
1015 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1016 as_fn_error $? "invalid feature name: $ac_useropt"
1017 ac_useropt_orig=$ac_useropt
1018 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1019 case $ac_user_opts in
1021 "enable_$ac_useropt"
1022 "*) ;;
1023 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1024 ac_unrecognized_sep=', ';;
1025 esac
1026 eval enable_$ac_useropt=\$ac_optarg ;;
1028 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1029 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1030 | --exec | --exe | --ex)
1031 ac_prev=exec_prefix ;;
1032 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1033 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1034 | --exec=* | --exe=* | --ex=*)
1035 exec_prefix=$ac_optarg ;;
1037 -gas | --gas | --ga | --g)
1038 # Obsolete; use --with-gas.
1039 with_gas=yes ;;
1041 -help | --help | --hel | --he | -h)
1042 ac_init_help=long ;;
1043 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1044 ac_init_help=recursive ;;
1045 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1046 ac_init_help=short ;;
1048 -host | --host | --hos | --ho)
1049 ac_prev=host_alias ;;
1050 -host=* | --host=* | --hos=* | --ho=*)
1051 host_alias=$ac_optarg ;;
1053 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1054 ac_prev=htmldir ;;
1055 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1056 | --ht=*)
1057 htmldir=$ac_optarg ;;
1059 -includedir | --includedir | --includedi | --included | --include \
1060 | --includ | --inclu | --incl | --inc)
1061 ac_prev=includedir ;;
1062 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1063 | --includ=* | --inclu=* | --incl=* | --inc=*)
1064 includedir=$ac_optarg ;;
1066 -infodir | --infodir | --infodi | --infod | --info | --inf)
1067 ac_prev=infodir ;;
1068 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1069 infodir=$ac_optarg ;;
1071 -libdir | --libdir | --libdi | --libd)
1072 ac_prev=libdir ;;
1073 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1074 libdir=$ac_optarg ;;
1076 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1077 | --libexe | --libex | --libe)
1078 ac_prev=libexecdir ;;
1079 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1080 | --libexe=* | --libex=* | --libe=*)
1081 libexecdir=$ac_optarg ;;
1083 -localedir | --localedir | --localedi | --localed | --locale)
1084 ac_prev=localedir ;;
1085 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1086 localedir=$ac_optarg ;;
1088 -localstatedir | --localstatedir | --localstatedi | --localstated \
1089 | --localstate | --localstat | --localsta | --localst | --locals)
1090 ac_prev=localstatedir ;;
1091 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1092 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1093 localstatedir=$ac_optarg ;;
1095 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1096 ac_prev=mandir ;;
1097 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1098 mandir=$ac_optarg ;;
1100 -nfp | --nfp | --nf)
1101 # Obsolete; use --without-fp.
1102 with_fp=no ;;
1104 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1105 | --no-cr | --no-c | -n)
1106 no_create=yes ;;
1108 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1109 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1110 no_recursion=yes ;;
1112 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1113 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1114 | --oldin | --oldi | --old | --ol | --o)
1115 ac_prev=oldincludedir ;;
1116 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1117 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1118 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1119 oldincludedir=$ac_optarg ;;
1121 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1122 ac_prev=prefix ;;
1123 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1124 prefix=$ac_optarg ;;
1126 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1127 | --program-pre | --program-pr | --program-p)
1128 ac_prev=program_prefix ;;
1129 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1130 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1131 program_prefix=$ac_optarg ;;
1133 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1134 | --program-suf | --program-su | --program-s)
1135 ac_prev=program_suffix ;;
1136 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1137 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1138 program_suffix=$ac_optarg ;;
1140 -program-transform-name | --program-transform-name \
1141 | --program-transform-nam | --program-transform-na \
1142 | --program-transform-n | --program-transform- \
1143 | --program-transform | --program-transfor \
1144 | --program-transfo | --program-transf \
1145 | --program-trans | --program-tran \
1146 | --progr-tra | --program-tr | --program-t)
1147 ac_prev=program_transform_name ;;
1148 -program-transform-name=* | --program-transform-name=* \
1149 | --program-transform-nam=* | --program-transform-na=* \
1150 | --program-transform-n=* | --program-transform-=* \
1151 | --program-transform=* | --program-transfor=* \
1152 | --program-transfo=* | --program-transf=* \
1153 | --program-trans=* | --program-tran=* \
1154 | --progr-tra=* | --program-tr=* | --program-t=*)
1155 program_transform_name=$ac_optarg ;;
1157 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1158 ac_prev=pdfdir ;;
1159 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1160 pdfdir=$ac_optarg ;;
1162 -psdir | --psdir | --psdi | --psd | --ps)
1163 ac_prev=psdir ;;
1164 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1165 psdir=$ac_optarg ;;
1167 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1168 | -silent | --silent | --silen | --sile | --sil)
1169 silent=yes ;;
1171 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1172 ac_prev=sbindir ;;
1173 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1174 | --sbi=* | --sb=*)
1175 sbindir=$ac_optarg ;;
1177 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1178 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1179 | --sharedst | --shareds | --shared | --share | --shar \
1180 | --sha | --sh)
1181 ac_prev=sharedstatedir ;;
1182 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1183 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1184 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1185 | --sha=* | --sh=*)
1186 sharedstatedir=$ac_optarg ;;
1188 -site | --site | --sit)
1189 ac_prev=site ;;
1190 -site=* | --site=* | --sit=*)
1191 site=$ac_optarg ;;
1193 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1194 ac_prev=srcdir ;;
1195 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1196 srcdir=$ac_optarg ;;
1198 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1199 | --syscon | --sysco | --sysc | --sys | --sy)
1200 ac_prev=sysconfdir ;;
1201 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1202 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1203 sysconfdir=$ac_optarg ;;
1205 -target | --target | --targe | --targ | --tar | --ta | --t)
1206 ac_prev=target_alias ;;
1207 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1208 target_alias=$ac_optarg ;;
1210 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1211 verbose=yes ;;
1213 -version | --version | --versio | --versi | --vers | -V)
1214 ac_init_version=: ;;
1216 -with-* | --with-*)
1217 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1218 # Reject names that are not valid shell variable names.
1219 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1220 as_fn_error $? "invalid package name: $ac_useropt"
1221 ac_useropt_orig=$ac_useropt
1222 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1223 case $ac_user_opts in
1225 "with_$ac_useropt"
1226 "*) ;;
1227 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1228 ac_unrecognized_sep=', ';;
1229 esac
1230 eval with_$ac_useropt=\$ac_optarg ;;
1232 -without-* | --without-*)
1233 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1234 # Reject names that are not valid shell variable names.
1235 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1236 as_fn_error $? "invalid package name: $ac_useropt"
1237 ac_useropt_orig=$ac_useropt
1238 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1239 case $ac_user_opts in
1241 "with_$ac_useropt"
1242 "*) ;;
1243 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1244 ac_unrecognized_sep=', ';;
1245 esac
1246 eval with_$ac_useropt=no ;;
1248 --x)
1249 # Obsolete; use --with-x.
1250 with_x=yes ;;
1252 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1253 | --x-incl | --x-inc | --x-in | --x-i)
1254 ac_prev=x_includes ;;
1255 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1256 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1257 x_includes=$ac_optarg ;;
1259 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1260 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1261 ac_prev=x_libraries ;;
1262 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1263 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1264 x_libraries=$ac_optarg ;;
1266 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1267 Try \`$0 --help' for more information"
1270 *=*)
1271 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1272 # Reject names that are not valid shell variable names.
1273 case $ac_envvar in #(
1274 '' | [0-9]* | *[!_$as_cr_alnum]* )
1275 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1276 esac
1277 eval $ac_envvar=\$ac_optarg
1278 export $ac_envvar ;;
1281 # FIXME: should be removed in autoconf 3.0.
1282 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1283 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1284 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1285 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1288 esac
1289 done
1291 if test -n "$ac_prev"; then
1292 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1293 as_fn_error $? "missing argument to $ac_option"
1296 if test -n "$ac_unrecognized_opts"; then
1297 case $enable_option_checking in
1298 no) ;;
1299 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1300 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1301 esac
1304 # Check all directory arguments for consistency.
1305 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1306 datadir sysconfdir sharedstatedir localstatedir includedir \
1307 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1308 libdir localedir mandir
1310 eval ac_val=\$$ac_var
1311 # Remove trailing slashes.
1312 case $ac_val in
1313 */ )
1314 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1315 eval $ac_var=\$ac_val;;
1316 esac
1317 # Be sure to have absolute directory names.
1318 case $ac_val in
1319 [\\/$]* | ?:[\\/]* ) continue;;
1320 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1321 esac
1322 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1323 done
1325 # There might be people who depend on the old broken behavior: `$host'
1326 # used to hold the argument of --host etc.
1327 # FIXME: To remove some day.
1328 build=$build_alias
1329 host=$host_alias
1330 target=$target_alias
1332 # FIXME: To remove some day.
1333 if test "x$host_alias" != x; then
1334 if test "x$build_alias" = x; then
1335 cross_compiling=maybe
1336 elif test "x$build_alias" != "x$host_alias"; then
1337 cross_compiling=yes
1341 ac_tool_prefix=
1342 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1344 test "$silent" = yes && exec 6>/dev/null
1347 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1348 ac_ls_di=`ls -di .` &&
1349 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1350 as_fn_error $? "working directory cannot be determined"
1351 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1352 as_fn_error $? "pwd does not report name of working directory"
1355 # Find the source files, if location was not specified.
1356 if test -z "$srcdir"; then
1357 ac_srcdir_defaulted=yes
1358 # Try the directory containing this script, then the parent directory.
1359 ac_confdir=`$as_dirname -- "$as_myself" ||
1360 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1361 X"$as_myself" : 'X\(//\)[^/]' \| \
1362 X"$as_myself" : 'X\(//\)$' \| \
1363 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1364 $as_echo X"$as_myself" |
1365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1366 s//\1/
1369 /^X\(\/\/\)[^/].*/{
1370 s//\1/
1373 /^X\(\/\/\)$/{
1374 s//\1/
1377 /^X\(\/\).*/{
1378 s//\1/
1381 s/.*/./; q'`
1382 srcdir=$ac_confdir
1383 if test ! -r "$srcdir/$ac_unique_file"; then
1384 srcdir=..
1386 else
1387 ac_srcdir_defaulted=no
1389 if test ! -r "$srcdir/$ac_unique_file"; then
1390 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1391 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1393 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1394 ac_abs_confdir=`(
1395 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1396 pwd)`
1397 # When building in place, set srcdir=.
1398 if test "$ac_abs_confdir" = "$ac_pwd"; then
1399 srcdir=.
1401 # Remove unnecessary trailing slashes from srcdir.
1402 # Double slashes in file names in object file debugging info
1403 # mess up M-x gdb in Emacs.
1404 case $srcdir in
1405 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1406 esac
1407 for ac_var in $ac_precious_vars; do
1408 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1409 eval ac_env_${ac_var}_value=\$${ac_var}
1410 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1411 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1412 done
1415 # Report the --help message.
1417 if test "$ac_init_help" = "long"; then
1418 # Omit some internal or obsolete options to make the list less imposing.
1419 # This message is too long to be a string in the A/UX 3.1 sh.
1420 cat <<_ACEOF
1421 \`configure' configures PCRE 8.44 to adapt to many kinds of systems.
1423 Usage: $0 [OPTION]... [VAR=VALUE]...
1425 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1426 VAR=VALUE. See below for descriptions of some of the useful variables.
1428 Defaults for the options are specified in brackets.
1430 Configuration:
1431 -h, --help display this help and exit
1432 --help=short display options specific to this package
1433 --help=recursive display the short help of all the included packages
1434 -V, --version display version information and exit
1435 -q, --quiet, --silent do not print \`checking ...' messages
1436 --cache-file=FILE cache test results in FILE [disabled]
1437 -C, --config-cache alias for \`--cache-file=config.cache'
1438 -n, --no-create do not create output files
1439 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1441 Installation directories:
1442 --prefix=PREFIX install architecture-independent files in PREFIX
1443 [$ac_default_prefix]
1444 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1445 [PREFIX]
1447 By default, \`make install' will install all the files in
1448 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1449 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1450 for instance \`--prefix=\$HOME'.
1452 For better control, use the options below.
1454 Fine tuning of the installation directories:
1455 --bindir=DIR user executables [EPREFIX/bin]
1456 --sbindir=DIR system admin executables [EPREFIX/sbin]
1457 --libexecdir=DIR program executables [EPREFIX/libexec]
1458 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1459 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1460 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1461 --libdir=DIR object code libraries [EPREFIX/lib]
1462 --includedir=DIR C header files [PREFIX/include]
1463 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1464 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1465 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1466 --infodir=DIR info documentation [DATAROOTDIR/info]
1467 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1468 --mandir=DIR man documentation [DATAROOTDIR/man]
1469 --docdir=DIR documentation root [DATAROOTDIR/doc/pcre]
1470 --htmldir=DIR html documentation [DOCDIR]
1471 --dvidir=DIR dvi documentation [DOCDIR]
1472 --pdfdir=DIR pdf documentation [DOCDIR]
1473 --psdir=DIR ps documentation [DOCDIR]
1474 _ACEOF
1476 cat <<\_ACEOF
1478 Program names:
1479 --program-prefix=PREFIX prepend PREFIX to installed program names
1480 --program-suffix=SUFFIX append SUFFIX to installed program names
1481 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1483 System types:
1484 --build=BUILD configure for building on BUILD [guessed]
1485 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1486 _ACEOF
1489 if test -n "$ac_init_help"; then
1490 case $ac_init_help in
1491 short | recursive ) echo "Configuration of PCRE 8.44:";;
1492 esac
1493 cat <<\_ACEOF
1495 Optional Features:
1496 --disable-option-checking ignore unrecognized --enable/--with options
1497 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1498 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1499 --enable-silent-rules less verbose build output (undo: "make V=1")
1500 --disable-silent-rules verbose build output (undo: "make V=0")
1501 --enable-dependency-tracking
1502 do not reject slow dependency extractors
1503 --disable-dependency-tracking
1504 speeds up one-time build
1505 --enable-shared[=PKGS] build shared libraries [default=yes]
1506 --enable-static[=PKGS] build static libraries [default=yes]
1507 --enable-fast-install[=PKGS]
1508 optimize for fast installation [default=yes]
1509 --disable-libtool-lock avoid locking (might break parallel builds)
1510 --disable-pcre8 disable 8 bit character support
1511 --enable-pcre16 enable 16 bit character support
1512 --enable-pcre32 enable 32 bit character support
1513 --disable-cpp disable C++ support
1514 --enable-jit enable Just-In-Time compiling support
1515 --disable-pcregrep-jit disable JIT support in pcregrep
1516 --enable-rebuild-chartables
1517 rebuild character tables in current locale
1518 --enable-utf8 another name for --enable-utf. Kept only for
1519 compatibility reasons
1520 --enable-utf enable UTF-8/16/32 support (incompatible with
1521 --enable-ebcdic)
1522 --enable-unicode-properties
1523 enable Unicode properties support (implies
1524 --enable-utf)
1525 --enable-newline-is-cr use CR as newline character
1526 --enable-newline-is-lf use LF as newline character (default)
1527 --enable-newline-is-crlf
1528 use CRLF as newline sequence
1529 --enable-newline-is-anycrlf
1530 use CR, LF, or CRLF as newline sequence
1531 --enable-newline-is-any use any valid Unicode newline sequence
1532 --enable-bsr-anycrlf \R matches only CR, LF, CRLF by default
1533 --enable-ebcdic assume EBCDIC coding rather than ASCII; incompatible
1534 with --enable-utf; use only in (uncommon) EBCDIC
1535 environments; it implies --enable-rebuild-chartables
1536 --enable-ebcdic-nl25 set EBCDIC code for NL to 0x25 instead of 0x15; it
1537 implies --enable-ebcdic
1538 --disable-stack-for-recursion
1539 don't use stack recursion when matching
1540 --enable-pcregrep-libz link pcregrep with libz to handle .gz files
1541 --enable-pcregrep-libbz2
1542 link pcregrep with libbz2 to handle .bz2 files
1543 --enable-pcretest-libedit
1544 link pcretest with libedit
1545 --enable-pcretest-libreadline
1546 link pcretest with libreadline
1547 --enable-valgrind valgrind support
1548 --enable-coverage enable code coverage reports using gcov
1550 Optional Packages:
1551 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1552 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1553 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1554 both]
1555 --with-aix-soname=aix|svr4|both
1556 shared library versioning (aka "SONAME") variant to
1557 provide on AIX, [default=aix].
1558 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1559 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1560 compiler's sysroot if not specified).
1561 --with-pcregrep-bufsize=N
1562 pcregrep buffer size (default=20480, minimum=8192)
1563 --with-posix-malloc-threshold=NBYTES
1564 threshold for POSIX malloc usage (default=10)
1565 --with-link-size=N internal link size (2, 3, or 4 allowed; default=2)
1566 --with-parens-nest-limit=N
1567 nested parentheses limit (default=250)
1568 --with-match-limit=N default limit on internal looping (default=10000000)
1569 --with-match-limit-recursion=N
1570 default limit on internal recursion
1571 (default=MATCH_LIMIT)
1573 Some influential environment variables:
1574 CC C compiler command
1575 CFLAGS C compiler flags
1576 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1577 nonstandard directory <lib dir>
1578 LIBS libraries to pass to the linker, e.g. -l<library>
1579 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1580 you have headers in a nonstandard directory <include dir>
1581 CXX C++ compiler command
1582 CXXFLAGS C++ compiler flags
1583 CPP C preprocessor
1584 LT_SYS_LIBRARY_PATH
1585 User-defined run-time library search path.
1586 CXXCPP C++ preprocessor
1587 PKG_CONFIG path to pkg-config utility
1588 PKG_CONFIG_PATH
1589 directories to add to pkg-config's search path
1590 PKG_CONFIG_LIBDIR
1591 path overriding pkg-config's built-in search path
1592 VALGRIND_CFLAGS
1593 C compiler flags for VALGRIND, overriding pkg-config
1594 VALGRIND_LIBS
1595 linker flags for VALGRIND, overriding pkg-config
1596 LCOV the ltp lcov program
1597 GENHTML the ltp genhtml program
1599 Use these variables to override the choices made by `configure' or to help
1600 it to find libraries and programs with nonstandard names/locations.
1602 Report bugs to the package provider.
1603 _ACEOF
1604 ac_status=$?
1607 if test "$ac_init_help" = "recursive"; then
1608 # If there are subdirs, report their specific --help.
1609 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1610 test -d "$ac_dir" ||
1611 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1612 continue
1613 ac_builddir=.
1615 case "$ac_dir" in
1616 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1618 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1619 # A ".." for each directory in $ac_dir_suffix.
1620 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1621 case $ac_top_builddir_sub in
1622 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1623 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1624 esac ;;
1625 esac
1626 ac_abs_top_builddir=$ac_pwd
1627 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1628 # for backward compatibility:
1629 ac_top_builddir=$ac_top_build_prefix
1631 case $srcdir in
1632 .) # We are building in place.
1633 ac_srcdir=.
1634 ac_top_srcdir=$ac_top_builddir_sub
1635 ac_abs_top_srcdir=$ac_pwd ;;
1636 [\\/]* | ?:[\\/]* ) # Absolute name.
1637 ac_srcdir=$srcdir$ac_dir_suffix;
1638 ac_top_srcdir=$srcdir
1639 ac_abs_top_srcdir=$srcdir ;;
1640 *) # Relative name.
1641 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1642 ac_top_srcdir=$ac_top_build_prefix$srcdir
1643 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1644 esac
1645 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1647 cd "$ac_dir" || { ac_status=$?; continue; }
1648 # Check for guested configure.
1649 if test -f "$ac_srcdir/configure.gnu"; then
1650 echo &&
1651 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1652 elif test -f "$ac_srcdir/configure"; then
1653 echo &&
1654 $SHELL "$ac_srcdir/configure" --help=recursive
1655 else
1656 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1657 fi || ac_status=$?
1658 cd "$ac_pwd" || { ac_status=$?; break; }
1659 done
1662 test -n "$ac_init_help" && exit $ac_status
1663 if $ac_init_version; then
1664 cat <<\_ACEOF
1665 PCRE configure 8.44
1666 generated by GNU Autoconf 2.69
1668 Copyright (C) 2012 Free Software Foundation, Inc.
1669 This configure script is free software; the Free Software Foundation
1670 gives unlimited permission to copy, distribute and modify it.
1671 _ACEOF
1672 exit
1675 ## ------------------------ ##
1676 ## Autoconf initialization. ##
1677 ## ------------------------ ##
1679 # ac_fn_c_try_compile LINENO
1680 # --------------------------
1681 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1682 ac_fn_c_try_compile ()
1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685 rm -f conftest.$ac_objext
1686 if { { ac_try="$ac_compile"
1687 case "(($ac_try" in
1688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689 *) ac_try_echo=$ac_try;;
1690 esac
1691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692 $as_echo "$ac_try_echo"; } >&5
1693 (eval "$ac_compile") 2>conftest.err
1694 ac_status=$?
1695 if test -s conftest.err; then
1696 grep -v '^ *+' conftest.err >conftest.er1
1697 cat conftest.er1 >&5
1698 mv -f conftest.er1 conftest.err
1700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701 test $ac_status = 0; } && {
1702 test -z "$ac_c_werror_flag" ||
1703 test ! -s conftest.err
1704 } && test -s conftest.$ac_objext; then :
1705 ac_retval=0
1706 else
1707 $as_echo "$as_me: failed program was:" >&5
1708 sed 's/^/| /' conftest.$ac_ext >&5
1710 ac_retval=1
1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713 as_fn_set_status $ac_retval
1715 } # ac_fn_c_try_compile
1717 # ac_fn_cxx_try_compile LINENO
1718 # ----------------------------
1719 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1720 ac_fn_cxx_try_compile ()
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 rm -f conftest.$ac_objext
1724 if { { ac_try="$ac_compile"
1725 case "(($ac_try" in
1726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1727 *) ac_try_echo=$ac_try;;
1728 esac
1729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1730 $as_echo "$ac_try_echo"; } >&5
1731 (eval "$ac_compile") 2>conftest.err
1732 ac_status=$?
1733 if test -s conftest.err; then
1734 grep -v '^ *+' conftest.err >conftest.er1
1735 cat conftest.er1 >&5
1736 mv -f conftest.er1 conftest.err
1738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1739 test $ac_status = 0; } && {
1740 test -z "$ac_cxx_werror_flag" ||
1741 test ! -s conftest.err
1742 } && test -s conftest.$ac_objext; then :
1743 ac_retval=0
1744 else
1745 $as_echo "$as_me: failed program was:" >&5
1746 sed 's/^/| /' conftest.$ac_ext >&5
1748 ac_retval=1
1750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1751 as_fn_set_status $ac_retval
1753 } # ac_fn_cxx_try_compile
1755 # ac_fn_c_try_cpp LINENO
1756 # ----------------------
1757 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1758 ac_fn_c_try_cpp ()
1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761 if { { ac_try="$ac_cpp conftest.$ac_ext"
1762 case "(($ac_try" in
1763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764 *) ac_try_echo=$ac_try;;
1765 esac
1766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767 $as_echo "$ac_try_echo"; } >&5
1768 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1769 ac_status=$?
1770 if test -s conftest.err; then
1771 grep -v '^ *+' conftest.err >conftest.er1
1772 cat conftest.er1 >&5
1773 mv -f conftest.er1 conftest.err
1775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1776 test $ac_status = 0; } > conftest.i && {
1777 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1778 test ! -s conftest.err
1779 }; then :
1780 ac_retval=0
1781 else
1782 $as_echo "$as_me: failed program was:" >&5
1783 sed 's/^/| /' conftest.$ac_ext >&5
1785 ac_retval=1
1787 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788 as_fn_set_status $ac_retval
1790 } # ac_fn_c_try_cpp
1792 # ac_fn_c_try_run LINENO
1793 # ----------------------
1794 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1795 # that executables *can* be run.
1796 ac_fn_c_try_run ()
1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799 if { { ac_try="$ac_link"
1800 case "(($ac_try" in
1801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802 *) ac_try_echo=$ac_try;;
1803 esac
1804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805 $as_echo "$ac_try_echo"; } >&5
1806 (eval "$ac_link") 2>&5
1807 ac_status=$?
1808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
1817 ac_status=$?
1818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1819 test $ac_status = 0; }; }; then :
1820 ac_retval=0
1821 else
1822 $as_echo "$as_me: program exited with status $ac_status" >&5
1823 $as_echo "$as_me: failed program was:" >&5
1824 sed 's/^/| /' conftest.$ac_ext >&5
1826 ac_retval=$ac_status
1828 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1829 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1830 as_fn_set_status $ac_retval
1832 } # ac_fn_c_try_run
1834 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1835 # -------------------------------------------------------
1836 # Tests whether HEADER exists and can be compiled using the include files in
1837 # INCLUDES, setting the cache variable VAR accordingly.
1838 ac_fn_c_check_header_compile ()
1840 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1842 $as_echo_n "checking for $2... " >&6; }
1843 if eval \${$3+:} false; then :
1844 $as_echo_n "(cached) " >&6
1845 else
1846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1847 /* end confdefs.h. */
1849 #include <$2>
1850 _ACEOF
1851 if ac_fn_c_try_compile "$LINENO"; then :
1852 eval "$3=yes"
1853 else
1854 eval "$3=no"
1856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1858 eval ac_res=\$$3
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1860 $as_echo "$ac_res" >&6; }
1861 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1863 } # ac_fn_c_check_header_compile
1865 # ac_fn_c_find_intX_t LINENO BITS VAR
1866 # -----------------------------------
1867 # Finds a signed integer type with width BITS, setting cache variable VAR
1868 # accordingly.
1869 ac_fn_c_find_intX_t ()
1871 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1873 $as_echo_n "checking for int$2_t... " >&6; }
1874 if eval \${$3+:} false; then :
1875 $as_echo_n "(cached) " >&6
1876 else
1877 eval "$3=no"
1878 # Order is important - never check a type that is potentially smaller
1879 # than half of the expected target width.
1880 for ac_type in int$2_t 'int' 'long int' \
1881 'long long int' 'short int' 'signed char'; do
1882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1883 /* end confdefs.h. */
1884 $ac_includes_default
1885 enum { N = $2 / 2 - 1 };
1887 main ()
1889 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1890 test_array [0] = 0;
1891 return test_array [0];
1894 return 0;
1896 _ACEOF
1897 if ac_fn_c_try_compile "$LINENO"; then :
1898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1899 /* end confdefs.h. */
1900 $ac_includes_default
1901 enum { N = $2 / 2 - 1 };
1903 main ()
1905 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1906 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1907 test_array [0] = 0;
1908 return test_array [0];
1911 return 0;
1913 _ACEOF
1914 if ac_fn_c_try_compile "$LINENO"; then :
1916 else
1917 case $ac_type in #(
1918 int$2_t) :
1919 eval "$3=yes" ;; #(
1920 *) :
1921 eval "$3=\$ac_type" ;;
1922 esac
1924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1927 if eval test \"x\$"$3"\" = x"no"; then :
1929 else
1930 break
1932 done
1934 eval ac_res=\$$3
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1936 $as_echo "$ac_res" >&6; }
1937 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1939 } # ac_fn_c_find_intX_t
1941 # ac_fn_c_try_link LINENO
1942 # -----------------------
1943 # Try to link conftest.$ac_ext, and return whether this succeeded.
1944 ac_fn_c_try_link ()
1946 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1947 rm -f conftest.$ac_objext conftest$ac_exeext
1948 if { { ac_try="$ac_link"
1949 case "(($ac_try" in
1950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1951 *) ac_try_echo=$ac_try;;
1952 esac
1953 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1954 $as_echo "$ac_try_echo"; } >&5
1955 (eval "$ac_link") 2>conftest.err
1956 ac_status=$?
1957 if test -s conftest.err; then
1958 grep -v '^ *+' conftest.err >conftest.er1
1959 cat conftest.er1 >&5
1960 mv -f conftest.er1 conftest.err
1962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1963 test $ac_status = 0; } && {
1964 test -z "$ac_c_werror_flag" ||
1965 test ! -s conftest.err
1966 } && test -s conftest$ac_exeext && {
1967 test "$cross_compiling" = yes ||
1968 test -x conftest$ac_exeext
1969 }; then :
1970 ac_retval=0
1971 else
1972 $as_echo "$as_me: failed program was:" >&5
1973 sed 's/^/| /' conftest.$ac_ext >&5
1975 ac_retval=1
1977 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1978 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1979 # interfere with the next link command; also delete a directory that is
1980 # left behind by Apple's compiler. We do this before executing the actions.
1981 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1982 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1983 as_fn_set_status $ac_retval
1985 } # ac_fn_c_try_link
1987 # ac_fn_c_check_func LINENO FUNC VAR
1988 # ----------------------------------
1989 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1990 ac_fn_c_check_func ()
1992 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1994 $as_echo_n "checking for $2... " >&6; }
1995 if eval \${$3+:} false; then :
1996 $as_echo_n "(cached) " >&6
1997 else
1998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1999 /* end confdefs.h. */
2000 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2001 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2002 #define $2 innocuous_$2
2004 /* System header to define __stub macros and hopefully few prototypes,
2005 which can conflict with char $2 (); below.
2006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2007 <limits.h> exists even on freestanding compilers. */
2009 #ifdef __STDC__
2010 # include <limits.h>
2011 #else
2012 # include <assert.h>
2013 #endif
2015 #undef $2
2017 /* Override any GCC internal prototype to avoid an error.
2018 Use char because int might match the return type of a GCC
2019 builtin and then its argument prototype would still apply. */
2020 #ifdef __cplusplus
2021 extern "C"
2022 #endif
2023 char $2 ();
2024 /* The GNU C library defines this for functions which it implements
2025 to always fail with ENOSYS. Some functions are actually named
2026 something starting with __ and the normal name is an alias. */
2027 #if defined __stub_$2 || defined __stub___$2
2028 choke me
2029 #endif
2032 main ()
2034 return $2 ();
2036 return 0;
2038 _ACEOF
2039 if ac_fn_c_try_link "$LINENO"; then :
2040 eval "$3=yes"
2041 else
2042 eval "$3=no"
2044 rm -f core conftest.err conftest.$ac_objext \
2045 conftest$ac_exeext conftest.$ac_ext
2047 eval ac_res=\$$3
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2049 $as_echo "$ac_res" >&6; }
2050 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2052 } # ac_fn_c_check_func
2054 # ac_fn_cxx_try_cpp LINENO
2055 # ------------------------
2056 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2057 ac_fn_cxx_try_cpp ()
2059 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2060 if { { ac_try="$ac_cpp conftest.$ac_ext"
2061 case "(($ac_try" in
2062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2063 *) ac_try_echo=$ac_try;;
2064 esac
2065 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2066 $as_echo "$ac_try_echo"; } >&5
2067 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2068 ac_status=$?
2069 if test -s conftest.err; then
2070 grep -v '^ *+' conftest.err >conftest.er1
2071 cat conftest.er1 >&5
2072 mv -f conftest.er1 conftest.err
2074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2075 test $ac_status = 0; } > conftest.i && {
2076 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2077 test ! -s conftest.err
2078 }; then :
2079 ac_retval=0
2080 else
2081 $as_echo "$as_me: failed program was:" >&5
2082 sed 's/^/| /' conftest.$ac_ext >&5
2084 ac_retval=1
2086 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2087 as_fn_set_status $ac_retval
2089 } # ac_fn_cxx_try_cpp
2091 # ac_fn_cxx_try_link LINENO
2092 # -------------------------
2093 # Try to link conftest.$ac_ext, and return whether this succeeded.
2094 ac_fn_cxx_try_link ()
2096 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2097 rm -f conftest.$ac_objext conftest$ac_exeext
2098 if { { ac_try="$ac_link"
2099 case "(($ac_try" in
2100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2101 *) ac_try_echo=$ac_try;;
2102 esac
2103 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2104 $as_echo "$ac_try_echo"; } >&5
2105 (eval "$ac_link") 2>conftest.err
2106 ac_status=$?
2107 if test -s conftest.err; then
2108 grep -v '^ *+' conftest.err >conftest.er1
2109 cat conftest.er1 >&5
2110 mv -f conftest.er1 conftest.err
2112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2113 test $ac_status = 0; } && {
2114 test -z "$ac_cxx_werror_flag" ||
2115 test ! -s conftest.err
2116 } && test -s conftest$ac_exeext && {
2117 test "$cross_compiling" = yes ||
2118 test -x conftest$ac_exeext
2119 }; then :
2120 ac_retval=0
2121 else
2122 $as_echo "$as_me: failed program was:" >&5
2123 sed 's/^/| /' conftest.$ac_ext >&5
2125 ac_retval=1
2127 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2128 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2129 # interfere with the next link command; also delete a directory that is
2130 # left behind by Apple's compiler. We do this before executing the actions.
2131 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2132 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2133 as_fn_set_status $ac_retval
2135 } # ac_fn_cxx_try_link
2137 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2138 # -------------------------------------------------------
2139 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2140 # the include files in INCLUDES and setting the cache variable VAR
2141 # accordingly.
2142 ac_fn_c_check_header_mongrel ()
2144 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2145 if eval \${$3+:} false; then :
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2147 $as_echo_n "checking for $2... " >&6; }
2148 if eval \${$3+:} false; then :
2149 $as_echo_n "(cached) " >&6
2151 eval ac_res=\$$3
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2153 $as_echo "$ac_res" >&6; }
2154 else
2155 # Is the header compilable?
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2157 $as_echo_n "checking $2 usability... " >&6; }
2158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2159 /* end confdefs.h. */
2161 #include <$2>
2162 _ACEOF
2163 if ac_fn_c_try_compile "$LINENO"; then :
2164 ac_header_compiler=yes
2165 else
2166 ac_header_compiler=no
2168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2170 $as_echo "$ac_header_compiler" >&6; }
2172 # Is the header present?
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2174 $as_echo_n "checking $2 presence... " >&6; }
2175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2176 /* end confdefs.h. */
2177 #include <$2>
2178 _ACEOF
2179 if ac_fn_c_try_cpp "$LINENO"; then :
2180 ac_header_preproc=yes
2181 else
2182 ac_header_preproc=no
2184 rm -f conftest.err conftest.i conftest.$ac_ext
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2186 $as_echo "$ac_header_preproc" >&6; }
2188 # So? What about this header?
2189 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2190 yes:no: )
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2192 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2194 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2196 no:yes:* )
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2198 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2200 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2202 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2204 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2206 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2208 esac
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2210 $as_echo_n "checking for $2... " >&6; }
2211 if eval \${$3+:} false; then :
2212 $as_echo_n "(cached) " >&6
2213 else
2214 eval "$3=\$ac_header_compiler"
2216 eval ac_res=\$$3
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2218 $as_echo "$ac_res" >&6; }
2220 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2222 } # ac_fn_c_check_header_mongrel
2224 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2225 # ---------------------------------------------------------
2226 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2227 # the include files in INCLUDES and setting the cache variable VAR
2228 # accordingly.
2229 ac_fn_cxx_check_header_mongrel ()
2231 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2232 if eval \${$3+:} false; then :
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2234 $as_echo_n "checking for $2... " >&6; }
2235 if eval \${$3+:} false; then :
2236 $as_echo_n "(cached) " >&6
2238 eval ac_res=\$$3
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2240 $as_echo "$ac_res" >&6; }
2241 else
2242 # Is the header compilable?
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2244 $as_echo_n "checking $2 usability... " >&6; }
2245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2246 /* end confdefs.h. */
2248 #include <$2>
2249 _ACEOF
2250 if ac_fn_cxx_try_compile "$LINENO"; then :
2251 ac_header_compiler=yes
2252 else
2253 ac_header_compiler=no
2255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2257 $as_echo "$ac_header_compiler" >&6; }
2259 # Is the header present?
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2261 $as_echo_n "checking $2 presence... " >&6; }
2262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2263 /* end confdefs.h. */
2264 #include <$2>
2265 _ACEOF
2266 if ac_fn_cxx_try_cpp "$LINENO"; then :
2267 ac_header_preproc=yes
2268 else
2269 ac_header_preproc=no
2271 rm -f conftest.err conftest.i conftest.$ac_ext
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2273 $as_echo "$ac_header_preproc" >&6; }
2275 # So? What about this header?
2276 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2277 yes:no: )
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2279 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2281 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2283 no:yes:* )
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2285 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2287 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2289 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2291 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2293 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2295 esac
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2297 $as_echo_n "checking for $2... " >&6; }
2298 if eval \${$3+:} false; then :
2299 $as_echo_n "(cached) " >&6
2300 else
2301 eval "$3=\$ac_header_compiler"
2303 eval ac_res=\$$3
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2305 $as_echo "$ac_res" >&6; }
2307 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2309 } # ac_fn_cxx_check_header_mongrel
2311 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2312 # ---------------------------------------------
2313 # Tests whether TYPE exists after having included INCLUDES, setting cache
2314 # variable VAR accordingly.
2315 ac_fn_cxx_check_type ()
2317 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2319 $as_echo_n "checking for $2... " >&6; }
2320 if eval \${$3+:} false; then :
2321 $as_echo_n "(cached) " >&6
2322 else
2323 eval "$3=no"
2324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2325 /* end confdefs.h. */
2328 main ()
2330 if (sizeof ($2))
2331 return 0;
2333 return 0;
2335 _ACEOF
2336 if ac_fn_cxx_try_compile "$LINENO"; then :
2337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2338 /* end confdefs.h. */
2341 main ()
2343 if (sizeof (($2)))
2344 return 0;
2346 return 0;
2348 _ACEOF
2349 if ac_fn_cxx_try_compile "$LINENO"; then :
2351 else
2352 eval "$3=yes"
2354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2358 eval ac_res=\$$3
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2360 $as_echo "$ac_res" >&6; }
2361 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2363 } # ac_fn_cxx_check_type
2365 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2366 # -------------------------------------------
2367 # Tests whether TYPE exists after having included INCLUDES, setting cache
2368 # variable VAR accordingly.
2369 ac_fn_c_check_type ()
2371 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2373 $as_echo_n "checking for $2... " >&6; }
2374 if eval \${$3+:} false; then :
2375 $as_echo_n "(cached) " >&6
2376 else
2377 eval "$3=no"
2378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2379 /* end confdefs.h. */
2382 main ()
2384 if (sizeof ($2))
2385 return 0;
2387 return 0;
2389 _ACEOF
2390 if ac_fn_c_try_compile "$LINENO"; then :
2391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2392 /* end confdefs.h. */
2395 main ()
2397 if (sizeof (($2)))
2398 return 0;
2400 return 0;
2402 _ACEOF
2403 if ac_fn_c_try_compile "$LINENO"; then :
2405 else
2406 eval "$3=yes"
2408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2412 eval ac_res=\$$3
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2414 $as_echo "$ac_res" >&6; }
2415 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2417 } # ac_fn_c_check_type
2418 cat >config.log <<_ACEOF
2419 This file contains any messages produced by compilers while
2420 running configure, to aid debugging if configure makes a mistake.
2422 It was created by PCRE $as_me 8.44, which was
2423 generated by GNU Autoconf 2.69. Invocation command line was
2425 $ $0 $@
2427 _ACEOF
2428 exec 5>>config.log
2430 cat <<_ASUNAME
2431 ## --------- ##
2432 ## Platform. ##
2433 ## --------- ##
2435 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2436 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2437 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2438 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2439 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2441 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2442 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2444 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2445 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2446 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2447 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2448 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2449 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2450 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2452 _ASUNAME
2454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2455 for as_dir in $PATH
2457 IFS=$as_save_IFS
2458 test -z "$as_dir" && as_dir=.
2459 $as_echo "PATH: $as_dir"
2460 done
2461 IFS=$as_save_IFS
2463 } >&5
2465 cat >&5 <<_ACEOF
2468 ## ----------- ##
2469 ## Core tests. ##
2470 ## ----------- ##
2472 _ACEOF
2475 # Keep a trace of the command line.
2476 # Strip out --no-create and --no-recursion so they do not pile up.
2477 # Strip out --silent because we don't want to record it for future runs.
2478 # Also quote any args containing shell meta-characters.
2479 # Make two passes to allow for proper duplicate-argument suppression.
2480 ac_configure_args=
2481 ac_configure_args0=
2482 ac_configure_args1=
2483 ac_must_keep_next=false
2484 for ac_pass in 1 2
2486 for ac_arg
2488 case $ac_arg in
2489 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2490 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2491 | -silent | --silent | --silen | --sile | --sil)
2492 continue ;;
2493 *\'*)
2494 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2495 esac
2496 case $ac_pass in
2497 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2499 as_fn_append ac_configure_args1 " '$ac_arg'"
2500 if test $ac_must_keep_next = true; then
2501 ac_must_keep_next=false # Got value, back to normal.
2502 else
2503 case $ac_arg in
2504 *=* | --config-cache | -C | -disable-* | --disable-* \
2505 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2506 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2507 | -with-* | --with-* | -without-* | --without-* | --x)
2508 case "$ac_configure_args0 " in
2509 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2510 esac
2512 -* ) ac_must_keep_next=true ;;
2513 esac
2515 as_fn_append ac_configure_args " '$ac_arg'"
2517 esac
2518 done
2519 done
2520 { ac_configure_args0=; unset ac_configure_args0;}
2521 { ac_configure_args1=; unset ac_configure_args1;}
2523 # When interrupted or exit'd, cleanup temporary files, and complete
2524 # config.log. We remove comments because anyway the quotes in there
2525 # would cause problems or look ugly.
2526 # WARNING: Use '\'' to represent an apostrophe within the trap.
2527 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2528 trap 'exit_status=$?
2529 # Save into config.log some information that might help in debugging.
2531 echo
2533 $as_echo "## ---------------- ##
2534 ## Cache variables. ##
2535 ## ---------------- ##"
2536 echo
2537 # The following way of writing the cache mishandles newlines in values,
2539 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2540 eval ac_val=\$$ac_var
2541 case $ac_val in #(
2542 *${as_nl}*)
2543 case $ac_var in #(
2544 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2545 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2546 esac
2547 case $ac_var in #(
2548 _ | IFS | as_nl) ;; #(
2549 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2550 *) { eval $ac_var=; unset $ac_var;} ;;
2551 esac ;;
2552 esac
2553 done
2554 (set) 2>&1 |
2555 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2556 *${as_nl}ac_space=\ *)
2557 sed -n \
2558 "s/'\''/'\''\\\\'\'''\''/g;
2559 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2560 ;; #(
2562 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2564 esac |
2565 sort
2567 echo
2569 $as_echo "## ----------------- ##
2570 ## Output variables. ##
2571 ## ----------------- ##"
2572 echo
2573 for ac_var in $ac_subst_vars
2575 eval ac_val=\$$ac_var
2576 case $ac_val in
2577 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2578 esac
2579 $as_echo "$ac_var='\''$ac_val'\''"
2580 done | sort
2581 echo
2583 if test -n "$ac_subst_files"; then
2584 $as_echo "## ------------------- ##
2585 ## File substitutions. ##
2586 ## ------------------- ##"
2587 echo
2588 for ac_var in $ac_subst_files
2590 eval ac_val=\$$ac_var
2591 case $ac_val in
2592 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2593 esac
2594 $as_echo "$ac_var='\''$ac_val'\''"
2595 done | sort
2596 echo
2599 if test -s confdefs.h; then
2600 $as_echo "## ----------- ##
2601 ## confdefs.h. ##
2602 ## ----------- ##"
2603 echo
2604 cat confdefs.h
2605 echo
2607 test "$ac_signal" != 0 &&
2608 $as_echo "$as_me: caught signal $ac_signal"
2609 $as_echo "$as_me: exit $exit_status"
2610 } >&5
2611 rm -f core *.core core.conftest.* &&
2612 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2613 exit $exit_status
2615 for ac_signal in 1 2 13 15; do
2616 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2617 done
2618 ac_signal=0
2620 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2621 rm -f -r conftest* confdefs.h
2623 $as_echo "/* confdefs.h */" > confdefs.h
2625 # Predefined preprocessor variables.
2627 cat >>confdefs.h <<_ACEOF
2628 #define PACKAGE_NAME "$PACKAGE_NAME"
2629 _ACEOF
2631 cat >>confdefs.h <<_ACEOF
2632 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2633 _ACEOF
2635 cat >>confdefs.h <<_ACEOF
2636 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2637 _ACEOF
2639 cat >>confdefs.h <<_ACEOF
2640 #define PACKAGE_STRING "$PACKAGE_STRING"
2641 _ACEOF
2643 cat >>confdefs.h <<_ACEOF
2644 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2645 _ACEOF
2647 cat >>confdefs.h <<_ACEOF
2648 #define PACKAGE_URL "$PACKAGE_URL"
2649 _ACEOF
2652 # Let the site file select an alternate cache file if it wants to.
2653 # Prefer an explicitly selected file to automatically selected ones.
2654 ac_site_file1=NONE
2655 ac_site_file2=NONE
2656 if test -n "$CONFIG_SITE"; then
2657 # We do not want a PATH search for config.site.
2658 case $CONFIG_SITE in #((
2659 -*) ac_site_file1=./$CONFIG_SITE;;
2660 */*) ac_site_file1=$CONFIG_SITE;;
2661 *) ac_site_file1=./$CONFIG_SITE;;
2662 esac
2663 elif test "x$prefix" != xNONE; then
2664 ac_site_file1=$prefix/share/config.site
2665 ac_site_file2=$prefix/etc/config.site
2666 else
2667 ac_site_file1=$ac_default_prefix/share/config.site
2668 ac_site_file2=$ac_default_prefix/etc/config.site
2670 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2672 test "x$ac_site_file" = xNONE && continue
2673 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2675 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2676 sed 's/^/| /' "$ac_site_file" >&5
2677 . "$ac_site_file" \
2678 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2679 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2680 as_fn_error $? "failed to load site script $ac_site_file
2681 See \`config.log' for more details" "$LINENO" 5; }
2683 done
2685 if test -r "$cache_file"; then
2686 # Some versions of bash will fail to source /dev/null (special files
2687 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2688 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2690 $as_echo "$as_me: loading cache $cache_file" >&6;}
2691 case $cache_file in
2692 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2693 *) . "./$cache_file";;
2694 esac
2696 else
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2698 $as_echo "$as_me: creating cache $cache_file" >&6;}
2699 >$cache_file
2702 # Check that the precious variables saved in the cache have kept the same
2703 # value.
2704 ac_cache_corrupted=false
2705 for ac_var in $ac_precious_vars; do
2706 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2707 eval ac_new_set=\$ac_env_${ac_var}_set
2708 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2709 eval ac_new_val=\$ac_env_${ac_var}_value
2710 case $ac_old_set,$ac_new_set in
2711 set,)
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2713 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2714 ac_cache_corrupted=: ;;
2715 ,set)
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2717 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2718 ac_cache_corrupted=: ;;
2719 ,);;
2721 if test "x$ac_old_val" != "x$ac_new_val"; then
2722 # differences in whitespace do not lead to failure.
2723 ac_old_val_w=`echo x $ac_old_val`
2724 ac_new_val_w=`echo x $ac_new_val`
2725 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2727 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2728 ac_cache_corrupted=:
2729 else
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2731 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2732 eval $ac_var=\$ac_old_val
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2735 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2737 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2738 fi;;
2739 esac
2740 # Pass precious variables to config.status.
2741 if test "$ac_new_set" = set; then
2742 case $ac_new_val in
2743 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2744 *) ac_arg=$ac_var=$ac_new_val ;;
2745 esac
2746 case " $ac_configure_args " in
2747 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2748 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2749 esac
2751 done
2752 if $ac_cache_corrupted; then
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2754 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2756 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2757 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2759 ## -------------------- ##
2760 ## Main body of script. ##
2761 ## -------------------- ##
2763 ac_ext=c
2764 ac_cpp='$CPP $CPPFLAGS'
2765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2771 am__api_version='1.16'
2773 ac_aux_dir=
2774 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2775 if test -f "$ac_dir/install-sh"; then
2776 ac_aux_dir=$ac_dir
2777 ac_install_sh="$ac_aux_dir/install-sh -c"
2778 break
2779 elif test -f "$ac_dir/install.sh"; then
2780 ac_aux_dir=$ac_dir
2781 ac_install_sh="$ac_aux_dir/install.sh -c"
2782 break
2783 elif test -f "$ac_dir/shtool"; then
2784 ac_aux_dir=$ac_dir
2785 ac_install_sh="$ac_aux_dir/shtool install -c"
2786 break
2788 done
2789 if test -z "$ac_aux_dir"; then
2790 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2793 # These three variables are undocumented and unsupported,
2794 # and are intended to be withdrawn in a future Autoconf release.
2795 # They can cause serious problems if a builder's source tree is in a directory
2796 # whose full name contains unusual characters.
2797 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2798 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2799 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2802 # Find a good install program. We prefer a C program (faster),
2803 # so one script is as good as another. But avoid the broken or
2804 # incompatible versions:
2805 # SysV /etc/install, /usr/sbin/install
2806 # SunOS /usr/etc/install
2807 # IRIX /sbin/install
2808 # AIX /bin/install
2809 # AmigaOS /C/install, which installs bootblocks on floppy discs
2810 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2811 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2812 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2813 # OS/2's system install, which has a completely different semantic
2814 # ./install, which can be erroneously created by make from ./install.sh.
2815 # Reject install programs that cannot install multiple files.
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2817 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2818 if test -z "$INSTALL"; then
2819 if ${ac_cv_path_install+:} false; then :
2820 $as_echo_n "(cached) " >&6
2821 else
2822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823 for as_dir in $PATH
2825 IFS=$as_save_IFS
2826 test -z "$as_dir" && as_dir=.
2827 # Account for people who put trailing slashes in PATH elements.
2828 case $as_dir/ in #((
2829 ./ | .// | /[cC]/* | \
2830 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2831 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2832 /usr/ucb/* ) ;;
2834 # OSF1 and SCO ODT 3.0 have their own names for install.
2835 # Don't use installbsd from OSF since it installs stuff as root
2836 # by default.
2837 for ac_prog in ginstall scoinst install; do
2838 for ac_exec_ext in '' $ac_executable_extensions; do
2839 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2840 if test $ac_prog = install &&
2841 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2842 # AIX install. It has an incompatible calling convention.
2844 elif test $ac_prog = install &&
2845 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2846 # program-specific install script used by HP pwplus--don't use.
2848 else
2849 rm -rf conftest.one conftest.two conftest.dir
2850 echo one > conftest.one
2851 echo two > conftest.two
2852 mkdir conftest.dir
2853 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2854 test -s conftest.one && test -s conftest.two &&
2855 test -s conftest.dir/conftest.one &&
2856 test -s conftest.dir/conftest.two
2857 then
2858 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2859 break 3
2863 done
2864 done
2866 esac
2868 done
2869 IFS=$as_save_IFS
2871 rm -rf conftest.one conftest.two conftest.dir
2874 if test "${ac_cv_path_install+set}" = set; then
2875 INSTALL=$ac_cv_path_install
2876 else
2877 # As a last resort, use the slow shell script. Don't cache a
2878 # value for INSTALL within a source directory, because that will
2879 # break other packages using the cache if that directory is
2880 # removed, or if the value is a relative name.
2881 INSTALL=$ac_install_sh
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2885 $as_echo "$INSTALL" >&6; }
2887 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2888 # It thinks the first close brace ends the variable substitution.
2889 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2891 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2893 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2896 $as_echo_n "checking whether build environment is sane... " >&6; }
2897 # Reject unsafe characters in $srcdir or the absolute working directory
2898 # name. Accept space and tab only in the latter.
2899 am_lf='
2901 case `pwd` in
2902 *[\\\"\#\$\&\'\`$am_lf]*)
2903 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2904 esac
2905 case $srcdir in
2906 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2907 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2908 esac
2910 # Do 'set' in a subshell so we don't clobber the current shell's
2911 # arguments. Must try -L first in case configure is actually a
2912 # symlink; some systems play weird games with the mod time of symlinks
2913 # (eg FreeBSD returns the mod time of the symlink's containing
2914 # directory).
2915 if (
2916 am_has_slept=no
2917 for am_try in 1 2; do
2918 echo "timestamp, slept: $am_has_slept" > conftest.file
2919 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2920 if test "$*" = "X"; then
2921 # -L didn't work.
2922 set X `ls -t "$srcdir/configure" conftest.file`
2924 if test "$*" != "X $srcdir/configure conftest.file" \
2925 && test "$*" != "X conftest.file $srcdir/configure"; then
2927 # If neither matched, then we have a broken ls. This can happen
2928 # if, for instance, CONFIG_SHELL is bash and it inherits a
2929 # broken ls alias from the environment. This has actually
2930 # happened. Such a system could not be considered "sane".
2931 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2932 alias in your environment" "$LINENO" 5
2934 if test "$2" = conftest.file || test $am_try -eq 2; then
2935 break
2937 # Just in case.
2938 sleep 1
2939 am_has_slept=yes
2940 done
2941 test "$2" = conftest.file
2943 then
2944 # Ok.
2946 else
2947 as_fn_error $? "newly created file is older than distributed files!
2948 Check your system clock" "$LINENO" 5
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2951 $as_echo "yes" >&6; }
2952 # If we didn't sleep, we still need to ensure time stamps of config.status and
2953 # generated files are strictly newer.
2954 am_sleep_pid=
2955 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2956 ( sleep 1 ) &
2957 am_sleep_pid=$!
2960 rm -f conftest.file
2962 test "$program_prefix" != NONE &&
2963 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2964 # Use a double $ so make ignores it.
2965 test "$program_suffix" != NONE &&
2966 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2967 # Double any \ or $.
2968 # By default was `s,x,x', remove it if useless.
2969 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2970 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2972 # Expand $ac_aux_dir to an absolute path.
2973 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2975 if test x"${MISSING+set}" != xset; then
2976 case $am_aux_dir in
2977 *\ * | *\ *)
2978 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2980 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2981 esac
2983 # Use eval to expand $SHELL
2984 if eval "$MISSING --is-lightweight"; then
2985 am_missing_run="$MISSING "
2986 else
2987 am_missing_run=
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2989 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2992 if test x"${install_sh+set}" != xset; then
2993 case $am_aux_dir in
2994 *\ * | *\ *)
2995 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2997 install_sh="\${SHELL} $am_aux_dir/install-sh"
2998 esac
3001 # Installed binaries are usually stripped using 'strip' when the user
3002 # run "make install-strip". However 'strip' might not be the right
3003 # tool to use in cross-compilation environments, therefore Automake
3004 # will honor the 'STRIP' environment variable to overrule this program.
3005 if test "$cross_compiling" != no; then
3006 if test -n "$ac_tool_prefix"; then
3007 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3008 set dummy ${ac_tool_prefix}strip; ac_word=$2
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3010 $as_echo_n "checking for $ac_word... " >&6; }
3011 if ${ac_cv_prog_STRIP+:} false; then :
3012 $as_echo_n "(cached) " >&6
3013 else
3014 if test -n "$STRIP"; then
3015 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3016 else
3017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3018 for as_dir in $PATH
3020 IFS=$as_save_IFS
3021 test -z "$as_dir" && as_dir=.
3022 for ac_exec_ext in '' $ac_executable_extensions; do
3023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3024 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3026 break 2
3028 done
3029 done
3030 IFS=$as_save_IFS
3034 STRIP=$ac_cv_prog_STRIP
3035 if test -n "$STRIP"; then
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3037 $as_echo "$STRIP" >&6; }
3038 else
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3040 $as_echo "no" >&6; }
3045 if test -z "$ac_cv_prog_STRIP"; then
3046 ac_ct_STRIP=$STRIP
3047 # Extract the first word of "strip", so it can be a program name with args.
3048 set dummy strip; ac_word=$2
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3050 $as_echo_n "checking for $ac_word... " >&6; }
3051 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3052 $as_echo_n "(cached) " >&6
3053 else
3054 if test -n "$ac_ct_STRIP"; then
3055 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3056 else
3057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3058 for as_dir in $PATH
3060 IFS=$as_save_IFS
3061 test -z "$as_dir" && as_dir=.
3062 for ac_exec_ext in '' $ac_executable_extensions; do
3063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3064 ac_cv_prog_ac_ct_STRIP="strip"
3065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3066 break 2
3068 done
3069 done
3070 IFS=$as_save_IFS
3074 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3075 if test -n "$ac_ct_STRIP"; then
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3077 $as_echo "$ac_ct_STRIP" >&6; }
3078 else
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3080 $as_echo "no" >&6; }
3083 if test "x$ac_ct_STRIP" = x; then
3084 STRIP=":"
3085 else
3086 case $cross_compiling:$ac_tool_warned in
3087 yes:)
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3089 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3090 ac_tool_warned=yes ;;
3091 esac
3092 STRIP=$ac_ct_STRIP
3094 else
3095 STRIP="$ac_cv_prog_STRIP"
3099 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3102 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3103 if test -z "$MKDIR_P"; then
3104 if ${ac_cv_path_mkdir+:} false; then :
3105 $as_echo_n "(cached) " >&6
3106 else
3107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3108 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3110 IFS=$as_save_IFS
3111 test -z "$as_dir" && as_dir=.
3112 for ac_prog in mkdir gmkdir; do
3113 for ac_exec_ext in '' $ac_executable_extensions; do
3114 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3115 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3116 'mkdir (GNU coreutils) '* | \
3117 'mkdir (coreutils) '* | \
3118 'mkdir (fileutils) '4.1*)
3119 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3120 break 3;;
3121 esac
3122 done
3123 done
3124 done
3125 IFS=$as_save_IFS
3129 test -d ./--version && rmdir ./--version
3130 if test "${ac_cv_path_mkdir+set}" = set; then
3131 MKDIR_P="$ac_cv_path_mkdir -p"
3132 else
3133 # As a last resort, use the slow shell script. Don't cache a
3134 # value for MKDIR_P within a source directory, because that will
3135 # break other packages using the cache if that directory is
3136 # removed, or if the value is a relative name.
3137 MKDIR_P="$ac_install_sh -d"
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3141 $as_echo "$MKDIR_P" >&6; }
3143 for ac_prog in gawk mawk nawk awk
3145 # Extract the first word of "$ac_prog", so it can be a program name with args.
3146 set dummy $ac_prog; ac_word=$2
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3148 $as_echo_n "checking for $ac_word... " >&6; }
3149 if ${ac_cv_prog_AWK+:} false; then :
3150 $as_echo_n "(cached) " >&6
3151 else
3152 if test -n "$AWK"; then
3153 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3154 else
3155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3156 for as_dir in $PATH
3158 IFS=$as_save_IFS
3159 test -z "$as_dir" && as_dir=.
3160 for ac_exec_ext in '' $ac_executable_extensions; do
3161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3162 ac_cv_prog_AWK="$ac_prog"
3163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3164 break 2
3166 done
3167 done
3168 IFS=$as_save_IFS
3172 AWK=$ac_cv_prog_AWK
3173 if test -n "$AWK"; then
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3175 $as_echo "$AWK" >&6; }
3176 else
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3178 $as_echo "no" >&6; }
3182 test -n "$AWK" && break
3183 done
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3186 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3187 set x ${MAKE-make}
3188 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3189 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3190 $as_echo_n "(cached) " >&6
3191 else
3192 cat >conftest.make <<\_ACEOF
3193 SHELL = /bin/sh
3194 all:
3195 @echo '@@@%%%=$(MAKE)=@@@%%%'
3196 _ACEOF
3197 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3198 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3199 *@@@%%%=?*=@@@%%%*)
3200 eval ac_cv_prog_make_${ac_make}_set=yes;;
3202 eval ac_cv_prog_make_${ac_make}_set=no;;
3203 esac
3204 rm -f conftest.make
3206 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3208 $as_echo "yes" >&6; }
3209 SET_MAKE=
3210 else
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3212 $as_echo "no" >&6; }
3213 SET_MAKE="MAKE=${MAKE-make}"
3216 rm -rf .tst 2>/dev/null
3217 mkdir .tst 2>/dev/null
3218 if test -d .tst; then
3219 am__leading_dot=.
3220 else
3221 am__leading_dot=_
3223 rmdir .tst 2>/dev/null
3225 # Check whether --enable-silent-rules was given.
3226 if test "${enable_silent_rules+set}" = set; then :
3227 enableval=$enable_silent_rules;
3230 case $enable_silent_rules in # (((
3231 yes) AM_DEFAULT_VERBOSITY=0;;
3232 no) AM_DEFAULT_VERBOSITY=1;;
3233 *) AM_DEFAULT_VERBOSITY=1;;
3234 esac
3235 am_make=${MAKE-make}
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3237 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3238 if ${am_cv_make_support_nested_variables+:} false; then :
3239 $as_echo_n "(cached) " >&6
3240 else
3241 if $as_echo 'TRUE=$(BAR$(V))
3242 BAR0=false
3243 BAR1=true
3245 am__doit:
3246 @$(TRUE)
3247 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3248 am_cv_make_support_nested_variables=yes
3249 else
3250 am_cv_make_support_nested_variables=no
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3254 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3255 if test $am_cv_make_support_nested_variables = yes; then
3256 AM_V='$(V)'
3257 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3258 else
3259 AM_V=$AM_DEFAULT_VERBOSITY
3260 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3262 AM_BACKSLASH='\'
3264 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3265 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3266 # is not polluted with repeated "-I."
3267 am__isrc=' -I$(srcdir)'
3268 # test to see if srcdir already configured
3269 if test -f $srcdir/config.status; then
3270 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3274 # test whether we have cygpath
3275 if test -z "$CYGPATH_W"; then
3276 if (cygpath --version) >/dev/null 2>/dev/null; then
3277 CYGPATH_W='cygpath -w'
3278 else
3279 CYGPATH_W=echo
3284 # Define the identity of the package.
3285 PACKAGE='pcre'
3286 VERSION='8.44'
3289 cat >>confdefs.h <<_ACEOF
3290 #define PACKAGE "$PACKAGE"
3291 _ACEOF
3294 cat >>confdefs.h <<_ACEOF
3295 #define VERSION "$VERSION"
3296 _ACEOF
3298 # Some tools Automake needs.
3300 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3303 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3306 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3309 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3312 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3314 # For better backward compatibility. To be removed once Automake 1.9.x
3315 # dies out for good. For more background, see:
3316 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3317 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3318 mkdir_p='$(MKDIR_P)'
3320 # We need awk for the "check" target (and possibly the TAP driver). The
3321 # system "awk" is bad on some platforms.
3322 # Always define AMTAR for backward compatibility. Yes, it's still used
3323 # in the wild :-( We should find a proper way to deprecate it ...
3324 AMTAR='$${TAR-tar}'
3327 # We'll loop over all known methods to create a tar archive until one works.
3328 _am_tools='gnutar pax cpio none'
3330 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3337 # POSIX will say in a future version that running "rm -f" with no argument
3338 # is OK; and we want to be able to make that assumption in our Makefile
3339 # recipes. So use an aggressive probe to check that the usage we want is
3340 # actually supported "in the wild" to an acceptable degree.
3341 # See automake bug#10828.
3342 # To make any issue more visible, cause the running configure to be aborted
3343 # by default if the 'rm' program in use doesn't match our expectations; the
3344 # user can still override this though.
3345 if rm -f && rm -fr && rm -rf; then : OK; else
3346 cat >&2 <<'END'
3347 Oops!
3349 Your 'rm' program seems unable to run without file operands specified
3350 on the command line, even when the '-f' option is present. This is contrary
3351 to the behaviour of most rm programs out there, and not conforming with
3352 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3354 Please tell bug-automake@gnu.org about your system, including the value
3355 of your $PATH and any error possibly output before this message. This
3356 can help us improve future automake versions.
3359 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3360 echo 'Configuration will proceed anyway, since you have set the' >&2
3361 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3362 echo >&2
3363 else
3364 cat >&2 <<'END'
3365 Aborting the configuration process, to ensure you take notice of the issue.
3367 You can download and install GNU coreutils to get an 'rm' implementation
3368 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3370 If you want to complete the configuration process using your problematic
3371 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3372 to "yes", and re-run configure.
3375 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3379 # Check whether --enable-silent-rules was given.
3380 if test "${enable_silent_rules+set}" = set; then :
3381 enableval=$enable_silent_rules;
3384 case $enable_silent_rules in # (((
3385 yes) AM_DEFAULT_VERBOSITY=0;;
3386 no) AM_DEFAULT_VERBOSITY=1;;
3387 *) AM_DEFAULT_VERBOSITY=0;;
3388 esac
3389 am_make=${MAKE-make}
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3391 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3392 if ${am_cv_make_support_nested_variables+:} false; then :
3393 $as_echo_n "(cached) " >&6
3394 else
3395 if $as_echo 'TRUE=$(BAR$(V))
3396 BAR0=false
3397 BAR1=true
3399 am__doit:
3400 @$(TRUE)
3401 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3402 am_cv_make_support_nested_variables=yes
3403 else
3404 am_cv_make_support_nested_variables=no
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3408 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3409 if test $am_cv_make_support_nested_variables = yes; then
3410 AM_V='$(V)'
3411 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3412 else
3413 AM_V=$AM_DEFAULT_VERBOSITY
3414 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3416 AM_BACKSLASH='\'
3418 ac_config_headers="$ac_config_headers config.h"
3421 # This is a new thing required to stop a warning from automake 1.12
3422 DEPDIR="${am__leading_dot}deps"
3424 ac_config_commands="$ac_config_commands depfiles"
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3427 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3428 cat > confinc.mk << 'END'
3429 am__doit:
3430 @echo this is the am__doit target >confinc.out
3431 .PHONY: am__doit
3433 am__include="#"
3434 am__quote=
3435 # BSD make does it like this.
3436 echo '.include "confinc.mk" # ignored' > confmf.BSD
3437 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3438 echo 'include confinc.mk # ignored' > confmf.GNU
3439 _am_result=no
3440 for s in GNU BSD; do
3441 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3442 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3443 ac_status=$?
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); }
3446 case $?:`cat confinc.out 2>/dev/null` in #(
3447 '0:this is the am__doit target') :
3448 case $s in #(
3449 BSD) :
3450 am__include='.include' am__quote='"' ;; #(
3451 *) :
3452 am__include='include' am__quote='' ;;
3453 esac ;; #(
3454 *) :
3456 esac
3457 if test "$am__include" != "#"; then
3458 _am_result="yes ($s style)"
3459 break
3461 done
3462 rm -f confinc.* confmf.*
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3464 $as_echo "${_am_result}" >&6; }
3466 # Check whether --enable-dependency-tracking was given.
3467 if test "${enable_dependency_tracking+set}" = set; then :
3468 enableval=$enable_dependency_tracking;
3471 if test "x$enable_dependency_tracking" != xno; then
3472 am_depcomp="$ac_aux_dir/depcomp"
3473 AMDEPBACKSLASH='\'
3474 am__nodep='_no'
3476 if test "x$enable_dependency_tracking" != xno; then
3477 AMDEP_TRUE=
3478 AMDEP_FALSE='#'
3479 else
3480 AMDEP_TRUE='#'
3481 AMDEP_FALSE=
3485 ac_ext=c
3486 ac_cpp='$CPP $CPPFLAGS'
3487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3490 if test -n "$ac_tool_prefix"; then
3491 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3492 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3494 $as_echo_n "checking for $ac_word... " >&6; }
3495 if ${ac_cv_prog_CC+:} false; then :
3496 $as_echo_n "(cached) " >&6
3497 else
3498 if test -n "$CC"; then
3499 ac_cv_prog_CC="$CC" # Let the user override the test.
3500 else
3501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3502 for as_dir in $PATH
3504 IFS=$as_save_IFS
3505 test -z "$as_dir" && as_dir=.
3506 for ac_exec_ext in '' $ac_executable_extensions; do
3507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3508 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3510 break 2
3512 done
3513 done
3514 IFS=$as_save_IFS
3518 CC=$ac_cv_prog_CC
3519 if test -n "$CC"; then
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3521 $as_echo "$CC" >&6; }
3522 else
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3524 $as_echo "no" >&6; }
3529 if test -z "$ac_cv_prog_CC"; then
3530 ac_ct_CC=$CC
3531 # Extract the first word of "gcc", so it can be a program name with args.
3532 set dummy gcc; ac_word=$2
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3534 $as_echo_n "checking for $ac_word... " >&6; }
3535 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3536 $as_echo_n "(cached) " >&6
3537 else
3538 if test -n "$ac_ct_CC"; then
3539 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3540 else
3541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3542 for as_dir in $PATH
3544 IFS=$as_save_IFS
3545 test -z "$as_dir" && as_dir=.
3546 for ac_exec_ext in '' $ac_executable_extensions; do
3547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3548 ac_cv_prog_ac_ct_CC="gcc"
3549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3550 break 2
3552 done
3553 done
3554 IFS=$as_save_IFS
3558 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3559 if test -n "$ac_ct_CC"; then
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3561 $as_echo "$ac_ct_CC" >&6; }
3562 else
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3564 $as_echo "no" >&6; }
3567 if test "x$ac_ct_CC" = x; then
3568 CC=""
3569 else
3570 case $cross_compiling:$ac_tool_warned in
3571 yes:)
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3573 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3574 ac_tool_warned=yes ;;
3575 esac
3576 CC=$ac_ct_CC
3578 else
3579 CC="$ac_cv_prog_CC"
3582 if test -z "$CC"; then
3583 if test -n "$ac_tool_prefix"; then
3584 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3585 set dummy ${ac_tool_prefix}cc; ac_word=$2
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3587 $as_echo_n "checking for $ac_word... " >&6; }
3588 if ${ac_cv_prog_CC+:} false; then :
3589 $as_echo_n "(cached) " >&6
3590 else
3591 if test -n "$CC"; then
3592 ac_cv_prog_CC="$CC" # Let the user override the test.
3593 else
3594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3595 for as_dir in $PATH
3597 IFS=$as_save_IFS
3598 test -z "$as_dir" && as_dir=.
3599 for ac_exec_ext in '' $ac_executable_extensions; do
3600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3601 ac_cv_prog_CC="${ac_tool_prefix}cc"
3602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3603 break 2
3605 done
3606 done
3607 IFS=$as_save_IFS
3611 CC=$ac_cv_prog_CC
3612 if test -n "$CC"; then
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3614 $as_echo "$CC" >&6; }
3615 else
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3617 $as_echo "no" >&6; }
3623 if test -z "$CC"; then
3624 # Extract the first word of "cc", so it can be a program name with args.
3625 set dummy cc; ac_word=$2
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3627 $as_echo_n "checking for $ac_word... " >&6; }
3628 if ${ac_cv_prog_CC+:} false; then :
3629 $as_echo_n "(cached) " >&6
3630 else
3631 if test -n "$CC"; then
3632 ac_cv_prog_CC="$CC" # Let the user override the test.
3633 else
3634 ac_prog_rejected=no
3635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3636 for as_dir in $PATH
3638 IFS=$as_save_IFS
3639 test -z "$as_dir" && as_dir=.
3640 for ac_exec_ext in '' $ac_executable_extensions; do
3641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3642 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3643 ac_prog_rejected=yes
3644 continue
3646 ac_cv_prog_CC="cc"
3647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3648 break 2
3650 done
3651 done
3652 IFS=$as_save_IFS
3654 if test $ac_prog_rejected = yes; then
3655 # We found a bogon in the path, so make sure we never use it.
3656 set dummy $ac_cv_prog_CC
3657 shift
3658 if test $# != 0; then
3659 # We chose a different compiler from the bogus one.
3660 # However, it has the same basename, so the bogon will be chosen
3661 # first if we set CC to just the basename; use the full file name.
3662 shift
3663 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3668 CC=$ac_cv_prog_CC
3669 if test -n "$CC"; then
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3671 $as_echo "$CC" >&6; }
3672 else
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3674 $as_echo "no" >&6; }
3679 if test -z "$CC"; then
3680 if test -n "$ac_tool_prefix"; then
3681 for ac_prog in cl.exe
3683 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3684 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3686 $as_echo_n "checking for $ac_word... " >&6; }
3687 if ${ac_cv_prog_CC+:} false; then :
3688 $as_echo_n "(cached) " >&6
3689 else
3690 if test -n "$CC"; then
3691 ac_cv_prog_CC="$CC" # Let the user override the test.
3692 else
3693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3694 for as_dir in $PATH
3696 IFS=$as_save_IFS
3697 test -z "$as_dir" && as_dir=.
3698 for ac_exec_ext in '' $ac_executable_extensions; do
3699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3700 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3702 break 2
3704 done
3705 done
3706 IFS=$as_save_IFS
3710 CC=$ac_cv_prog_CC
3711 if test -n "$CC"; then
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3713 $as_echo "$CC" >&6; }
3714 else
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3716 $as_echo "no" >&6; }
3720 test -n "$CC" && break
3721 done
3723 if test -z "$CC"; then
3724 ac_ct_CC=$CC
3725 for ac_prog in cl.exe
3727 # Extract the first word of "$ac_prog", so it can be a program name with args.
3728 set dummy $ac_prog; ac_word=$2
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3730 $as_echo_n "checking for $ac_word... " >&6; }
3731 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3732 $as_echo_n "(cached) " >&6
3733 else
3734 if test -n "$ac_ct_CC"; then
3735 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3736 else
3737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3738 for as_dir in $PATH
3740 IFS=$as_save_IFS
3741 test -z "$as_dir" && as_dir=.
3742 for ac_exec_ext in '' $ac_executable_extensions; do
3743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3744 ac_cv_prog_ac_ct_CC="$ac_prog"
3745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3746 break 2
3748 done
3749 done
3750 IFS=$as_save_IFS
3754 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3755 if test -n "$ac_ct_CC"; then
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3757 $as_echo "$ac_ct_CC" >&6; }
3758 else
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3760 $as_echo "no" >&6; }
3764 test -n "$ac_ct_CC" && break
3765 done
3767 if test "x$ac_ct_CC" = x; then
3768 CC=""
3769 else
3770 case $cross_compiling:$ac_tool_warned in
3771 yes:)
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3773 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3774 ac_tool_warned=yes ;;
3775 esac
3776 CC=$ac_ct_CC
3783 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3784 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3785 as_fn_error $? "no acceptable C compiler found in \$PATH
3786 See \`config.log' for more details" "$LINENO" 5; }
3788 # Provide some information about the compiler.
3789 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3790 set X $ac_compile
3791 ac_compiler=$2
3792 for ac_option in --version -v -V -qversion; do
3793 { { ac_try="$ac_compiler $ac_option >&5"
3794 case "(($ac_try" in
3795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3796 *) ac_try_echo=$ac_try;;
3797 esac
3798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3799 $as_echo "$ac_try_echo"; } >&5
3800 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3801 ac_status=$?
3802 if test -s conftest.err; then
3803 sed '10a\
3804 ... rest of stderr output deleted ...
3805 10q' conftest.err >conftest.er1
3806 cat conftest.er1 >&5
3808 rm -f conftest.er1 conftest.err
3809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3810 test $ac_status = 0; }
3811 done
3813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3814 /* end confdefs.h. */
3817 main ()
3821 return 0;
3823 _ACEOF
3824 ac_clean_files_save=$ac_clean_files
3825 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3826 # Try to create an executable without -o first, disregard a.out.
3827 # It will help us diagnose broken compilers, and finding out an intuition
3828 # of exeext.
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3830 $as_echo_n "checking whether the C compiler works... " >&6; }
3831 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3833 # The possible output files:
3834 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3836 ac_rmfiles=
3837 for ac_file in $ac_files
3839 case $ac_file in
3840 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3841 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3842 esac
3843 done
3844 rm -f $ac_rmfiles
3846 if { { ac_try="$ac_link_default"
3847 case "(($ac_try" in
3848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3849 *) ac_try_echo=$ac_try;;
3850 esac
3851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3852 $as_echo "$ac_try_echo"; } >&5
3853 (eval "$ac_link_default") 2>&5
3854 ac_status=$?
3855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3856 test $ac_status = 0; }; then :
3857 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3858 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3859 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3860 # so that the user can short-circuit this test for compilers unknown to
3861 # Autoconf.
3862 for ac_file in $ac_files ''
3864 test -f "$ac_file" || continue
3865 case $ac_file in
3866 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3868 [ab].out )
3869 # We found the default executable, but exeext='' is most
3870 # certainly right.
3871 break;;
3872 *.* )
3873 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3874 then :; else
3875 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3877 # We set ac_cv_exeext here because the later test for it is not
3878 # safe: cross compilers may not add the suffix if given an `-o'
3879 # argument, so we may need to know it at that point already.
3880 # Even if this section looks crufty: it has the advantage of
3881 # actually working.
3882 break;;
3884 break;;
3885 esac
3886 done
3887 test "$ac_cv_exeext" = no && ac_cv_exeext=
3889 else
3890 ac_file=''
3892 if test -z "$ac_file"; then :
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3894 $as_echo "no" >&6; }
3895 $as_echo "$as_me: failed program was:" >&5
3896 sed 's/^/| /' conftest.$ac_ext >&5
3898 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3899 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3900 as_fn_error 77 "C compiler cannot create executables
3901 See \`config.log' for more details" "$LINENO" 5; }
3902 else
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3904 $as_echo "yes" >&6; }
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3907 $as_echo_n "checking for C compiler default output file name... " >&6; }
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3909 $as_echo "$ac_file" >&6; }
3910 ac_exeext=$ac_cv_exeext
3912 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3913 ac_clean_files=$ac_clean_files_save
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3915 $as_echo_n "checking for suffix of executables... " >&6; }
3916 if { { ac_try="$ac_link"
3917 case "(($ac_try" in
3918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3919 *) ac_try_echo=$ac_try;;
3920 esac
3921 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3922 $as_echo "$ac_try_echo"; } >&5
3923 (eval "$ac_link") 2>&5
3924 ac_status=$?
3925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3926 test $ac_status = 0; }; then :
3927 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3928 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3929 # work properly (i.e., refer to `conftest.exe'), while it won't with
3930 # `rm'.
3931 for ac_file in conftest.exe conftest conftest.*; do
3932 test -f "$ac_file" || continue
3933 case $ac_file in
3934 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3935 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3936 break;;
3937 * ) break;;
3938 esac
3939 done
3940 else
3941 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3943 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3944 See \`config.log' for more details" "$LINENO" 5; }
3946 rm -f conftest conftest$ac_cv_exeext
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3948 $as_echo "$ac_cv_exeext" >&6; }
3950 rm -f conftest.$ac_ext
3951 EXEEXT=$ac_cv_exeext
3952 ac_exeext=$EXEEXT
3953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3954 /* end confdefs.h. */
3955 #include <stdio.h>
3957 main ()
3959 FILE *f = fopen ("conftest.out", "w");
3960 return ferror (f) || fclose (f) != 0;
3963 return 0;
3965 _ACEOF
3966 ac_clean_files="$ac_clean_files conftest.out"
3967 # Check that the compiler produces executables we can run. If not, either
3968 # the compiler is broken, or we cross compile.
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3970 $as_echo_n "checking whether we are cross compiling... " >&6; }
3971 if test "$cross_compiling" != yes; then
3972 { { ac_try="$ac_link"
3973 case "(($ac_try" in
3974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3975 *) ac_try_echo=$ac_try;;
3976 esac
3977 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3978 $as_echo "$ac_try_echo"; } >&5
3979 (eval "$ac_link") 2>&5
3980 ac_status=$?
3981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3982 test $ac_status = 0; }
3983 if { ac_try='./conftest$ac_cv_exeext'
3984 { { case "(($ac_try" in
3985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3986 *) ac_try_echo=$ac_try;;
3987 esac
3988 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3989 $as_echo "$ac_try_echo"; } >&5
3990 (eval "$ac_try") 2>&5
3991 ac_status=$?
3992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3993 test $ac_status = 0; }; }; then
3994 cross_compiling=no
3995 else
3996 if test "$cross_compiling" = maybe; then
3997 cross_compiling=yes
3998 else
3999 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4000 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4001 as_fn_error $? "cannot run C compiled programs.
4002 If you meant to cross compile, use \`--host'.
4003 See \`config.log' for more details" "$LINENO" 5; }
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4008 $as_echo "$cross_compiling" >&6; }
4010 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4011 ac_clean_files=$ac_clean_files_save
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4013 $as_echo_n "checking for suffix of object files... " >&6; }
4014 if ${ac_cv_objext+:} false; then :
4015 $as_echo_n "(cached) " >&6
4016 else
4017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4018 /* end confdefs.h. */
4021 main ()
4025 return 0;
4027 _ACEOF
4028 rm -f conftest.o conftest.obj
4029 if { { ac_try="$ac_compile"
4030 case "(($ac_try" in
4031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4032 *) ac_try_echo=$ac_try;;
4033 esac
4034 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4035 $as_echo "$ac_try_echo"; } >&5
4036 (eval "$ac_compile") 2>&5
4037 ac_status=$?
4038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4039 test $ac_status = 0; }; then :
4040 for ac_file in conftest.o conftest.obj conftest.*; do
4041 test -f "$ac_file" || continue;
4042 case $ac_file in
4043 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4044 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4045 break;;
4046 esac
4047 done
4048 else
4049 $as_echo "$as_me: failed program was:" >&5
4050 sed 's/^/| /' conftest.$ac_ext >&5
4052 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4053 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4054 as_fn_error $? "cannot compute suffix of object files: cannot compile
4055 See \`config.log' for more details" "$LINENO" 5; }
4057 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4060 $as_echo "$ac_cv_objext" >&6; }
4061 OBJEXT=$ac_cv_objext
4062 ac_objext=$OBJEXT
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4064 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4065 if ${ac_cv_c_compiler_gnu+:} false; then :
4066 $as_echo_n "(cached) " >&6
4067 else
4068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4069 /* end confdefs.h. */
4072 main ()
4074 #ifndef __GNUC__
4075 choke me
4076 #endif
4079 return 0;
4081 _ACEOF
4082 if ac_fn_c_try_compile "$LINENO"; then :
4083 ac_compiler_gnu=yes
4084 else
4085 ac_compiler_gnu=no
4087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4088 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4092 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4093 if test $ac_compiler_gnu = yes; then
4094 GCC=yes
4095 else
4096 GCC=
4098 ac_test_CFLAGS=${CFLAGS+set}
4099 ac_save_CFLAGS=$CFLAGS
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4101 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4102 if ${ac_cv_prog_cc_g+:} false; then :
4103 $as_echo_n "(cached) " >&6
4104 else
4105 ac_save_c_werror_flag=$ac_c_werror_flag
4106 ac_c_werror_flag=yes
4107 ac_cv_prog_cc_g=no
4108 CFLAGS="-g"
4109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4110 /* end confdefs.h. */
4113 main ()
4117 return 0;
4119 _ACEOF
4120 if ac_fn_c_try_compile "$LINENO"; then :
4121 ac_cv_prog_cc_g=yes
4122 else
4123 CFLAGS=""
4124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4125 /* end confdefs.h. */
4128 main ()
4132 return 0;
4134 _ACEOF
4135 if ac_fn_c_try_compile "$LINENO"; then :
4137 else
4138 ac_c_werror_flag=$ac_save_c_werror_flag
4139 CFLAGS="-g"
4140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4141 /* end confdefs.h. */
4144 main ()
4148 return 0;
4150 _ACEOF
4151 if ac_fn_c_try_compile "$LINENO"; then :
4152 ac_cv_prog_cc_g=yes
4154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4159 ac_c_werror_flag=$ac_save_c_werror_flag
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4162 $as_echo "$ac_cv_prog_cc_g" >&6; }
4163 if test "$ac_test_CFLAGS" = set; then
4164 CFLAGS=$ac_save_CFLAGS
4165 elif test $ac_cv_prog_cc_g = yes; then
4166 if test "$GCC" = yes; then
4167 CFLAGS="-g -O2"
4168 else
4169 CFLAGS="-g"
4171 else
4172 if test "$GCC" = yes; then
4173 CFLAGS="-O2"
4174 else
4175 CFLAGS=
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4179 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4180 if ${ac_cv_prog_cc_c89+:} false; then :
4181 $as_echo_n "(cached) " >&6
4182 else
4183 ac_cv_prog_cc_c89=no
4184 ac_save_CC=$CC
4185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4186 /* end confdefs.h. */
4187 #include <stdarg.h>
4188 #include <stdio.h>
4189 struct stat;
4190 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4191 struct buf { int x; };
4192 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4193 static char *e (p, i)
4194 char **p;
4195 int i;
4197 return p[i];
4199 static char *f (char * (*g) (char **, int), char **p, ...)
4201 char *s;
4202 va_list v;
4203 va_start (v,p);
4204 s = g (p, va_arg (v,int));
4205 va_end (v);
4206 return s;
4209 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4210 function prototypes and stuff, but not '\xHH' hex character constants.
4211 These don't provoke an error unfortunately, instead are silently treated
4212 as 'x'. The following induces an error, until -std is added to get
4213 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4214 array size at least. It's necessary to write '\x00'==0 to get something
4215 that's true only with -std. */
4216 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4218 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4219 inside strings and character constants. */
4220 #define FOO(x) 'x'
4221 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4223 int test (int i, double x);
4224 struct s1 {int (*f) (int a);};
4225 struct s2 {int (*f) (double a);};
4226 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4227 int argc;
4228 char **argv;
4230 main ()
4232 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4234 return 0;
4236 _ACEOF
4237 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4238 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4240 CC="$ac_save_CC $ac_arg"
4241 if ac_fn_c_try_compile "$LINENO"; then :
4242 ac_cv_prog_cc_c89=$ac_arg
4244 rm -f core conftest.err conftest.$ac_objext
4245 test "x$ac_cv_prog_cc_c89" != "xno" && break
4246 done
4247 rm -f conftest.$ac_ext
4248 CC=$ac_save_CC
4251 # AC_CACHE_VAL
4252 case "x$ac_cv_prog_cc_c89" in
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4255 $as_echo "none needed" >&6; } ;;
4256 xno)
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4258 $as_echo "unsupported" >&6; } ;;
4260 CC="$CC $ac_cv_prog_cc_c89"
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4262 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4263 esac
4264 if test "x$ac_cv_prog_cc_c89" != xno; then :
4268 ac_ext=c
4269 ac_cpp='$CPP $CPPFLAGS'
4270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4274 ac_ext=c
4275 ac_cpp='$CPP $CPPFLAGS'
4276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4280 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4281 if ${am_cv_prog_cc_c_o+:} false; then :
4282 $as_echo_n "(cached) " >&6
4283 else
4284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4285 /* end confdefs.h. */
4288 main ()
4292 return 0;
4294 _ACEOF
4295 # Make sure it works both with $CC and with simple cc.
4296 # Following AC_PROG_CC_C_O, we do the test twice because some
4297 # compilers refuse to overwrite an existing .o file with -o,
4298 # though they will create one.
4299 am_cv_prog_cc_c_o=yes
4300 for am_i in 1 2; do
4301 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4302 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4303 ac_status=$?
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); } \
4306 && test -f conftest2.$ac_objext; then
4307 : OK
4308 else
4309 am_cv_prog_cc_c_o=no
4310 break
4312 done
4313 rm -f core conftest*
4314 unset am_i
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4317 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4318 if test "$am_cv_prog_cc_c_o" != yes; then
4319 # Losing compiler, so override with the script.
4320 # FIXME: It is wrong to rewrite CC.
4321 # But if we don't then we get into trouble of one sort or another.
4322 # A longer-term fix would be to have automake use am__CC in this case,
4323 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4324 CC="$am_aux_dir/compile $CC"
4326 ac_ext=c
4327 ac_cpp='$CPP $CPPFLAGS'
4328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4333 depcc="$CC" am_compiler_list=
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4336 $as_echo_n "checking dependency style of $depcc... " >&6; }
4337 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4338 $as_echo_n "(cached) " >&6
4339 else
4340 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4341 # We make a subdir and do the tests there. Otherwise we can end up
4342 # making bogus files that we don't know about and never remove. For
4343 # instance it was reported that on HP-UX the gcc test will end up
4344 # making a dummy file named 'D' -- because '-MD' means "put the output
4345 # in D".
4346 rm -rf conftest.dir
4347 mkdir conftest.dir
4348 # Copy depcomp to subdir because otherwise we won't find it if we're
4349 # using a relative directory.
4350 cp "$am_depcomp" conftest.dir
4351 cd conftest.dir
4352 # We will build objects and dependencies in a subdirectory because
4353 # it helps to detect inapplicable dependency modes. For instance
4354 # both Tru64's cc and ICC support -MD to output dependencies as a
4355 # side effect of compilation, but ICC will put the dependencies in
4356 # the current directory while Tru64 will put them in the object
4357 # directory.
4358 mkdir sub
4360 am_cv_CC_dependencies_compiler_type=none
4361 if test "$am_compiler_list" = ""; then
4362 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4364 am__universal=false
4365 case " $depcc " in #(
4366 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4367 esac
4369 for depmode in $am_compiler_list; do
4370 # Setup a source with many dependencies, because some compilers
4371 # like to wrap large dependency lists on column 80 (with \), and
4372 # we should not choose a depcomp mode which is confused by this.
4374 # We need to recreate these files for each test, as the compiler may
4375 # overwrite some of them when testing with obscure command lines.
4376 # This happens at least with the AIX C compiler.
4377 : > sub/conftest.c
4378 for i in 1 2 3 4 5 6; do
4379 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4380 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4381 # Solaris 10 /bin/sh.
4382 echo '/* dummy */' > sub/conftst$i.h
4383 done
4384 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4386 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4387 # mode. It turns out that the SunPro C++ compiler does not properly
4388 # handle '-M -o', and we need to detect this. Also, some Intel
4389 # versions had trouble with output in subdirs.
4390 am__obj=sub/conftest.${OBJEXT-o}
4391 am__minus_obj="-o $am__obj"
4392 case $depmode in
4393 gcc)
4394 # This depmode causes a compiler race in universal mode.
4395 test "$am__universal" = false || continue
4397 nosideeffect)
4398 # After this tag, mechanisms are not by side-effect, so they'll
4399 # only be used when explicitly requested.
4400 if test "x$enable_dependency_tracking" = xyes; then
4401 continue
4402 else
4403 break
4406 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4407 # This compiler won't grok '-c -o', but also, the minuso test has
4408 # not run yet. These depmodes are late enough in the game, and
4409 # so weak that their functioning should not be impacted.
4410 am__obj=conftest.${OBJEXT-o}
4411 am__minus_obj=
4413 none) break ;;
4414 esac
4415 if depmode=$depmode \
4416 source=sub/conftest.c object=$am__obj \
4417 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4418 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4419 >/dev/null 2>conftest.err &&
4420 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4421 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4422 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4423 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4424 # icc doesn't choke on unknown options, it will just issue warnings
4425 # or remarks (even with -Werror). So we grep stderr for any message
4426 # that says an option was ignored or not supported.
4427 # When given -MP, icc 7.0 and 7.1 complain thusly:
4428 # icc: Command line warning: ignoring option '-M'; no argument required
4429 # The diagnosis changed in icc 8.0:
4430 # icc: Command line remark: option '-MP' not supported
4431 if (grep 'ignoring option' conftest.err ||
4432 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4433 am_cv_CC_dependencies_compiler_type=$depmode
4434 break
4437 done
4439 cd ..
4440 rm -rf conftest.dir
4441 else
4442 am_cv_CC_dependencies_compiler_type=none
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4447 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4448 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4451 test "x$enable_dependency_tracking" != xno \
4452 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4453 am__fastdepCC_TRUE=
4454 am__fastdepCC_FALSE='#'
4455 else
4456 am__fastdepCC_TRUE='#'
4457 am__fastdepCC_FALSE=
4462 if test -n "$ac_tool_prefix"; then
4463 for ac_prog in ar lib "link -lib"
4465 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4466 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4468 $as_echo_n "checking for $ac_word... " >&6; }
4469 if ${ac_cv_prog_AR+:} false; then :
4470 $as_echo_n "(cached) " >&6
4471 else
4472 if test -n "$AR"; then
4473 ac_cv_prog_AR="$AR" # Let the user override the test.
4474 else
4475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476 for as_dir in $PATH
4478 IFS=$as_save_IFS
4479 test -z "$as_dir" && as_dir=.
4480 for ac_exec_ext in '' $ac_executable_extensions; do
4481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4482 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4484 break 2
4486 done
4487 done
4488 IFS=$as_save_IFS
4492 AR=$ac_cv_prog_AR
4493 if test -n "$AR"; then
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4495 $as_echo "$AR" >&6; }
4496 else
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4498 $as_echo "no" >&6; }
4502 test -n "$AR" && break
4503 done
4505 if test -z "$AR"; then
4506 ac_ct_AR=$AR
4507 for ac_prog in ar lib "link -lib"
4509 # Extract the first word of "$ac_prog", so it can be a program name with args.
4510 set dummy $ac_prog; ac_word=$2
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4512 $as_echo_n "checking for $ac_word... " >&6; }
4513 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4514 $as_echo_n "(cached) " >&6
4515 else
4516 if test -n "$ac_ct_AR"; then
4517 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4518 else
4519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4520 for as_dir in $PATH
4522 IFS=$as_save_IFS
4523 test -z "$as_dir" && as_dir=.
4524 for ac_exec_ext in '' $ac_executable_extensions; do
4525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4526 ac_cv_prog_ac_ct_AR="$ac_prog"
4527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4528 break 2
4530 done
4531 done
4532 IFS=$as_save_IFS
4536 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4537 if test -n "$ac_ct_AR"; then
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4539 $as_echo "$ac_ct_AR" >&6; }
4540 else
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4542 $as_echo "no" >&6; }
4546 test -n "$ac_ct_AR" && break
4547 done
4549 if test "x$ac_ct_AR" = x; then
4550 AR="false"
4551 else
4552 case $cross_compiling:$ac_tool_warned in
4553 yes:)
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4555 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4556 ac_tool_warned=yes ;;
4557 esac
4558 AR=$ac_ct_AR
4562 : ${AR=ar}
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4565 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4566 if ${am_cv_ar_interface+:} false; then :
4567 $as_echo_n "(cached) " >&6
4568 else
4569 ac_ext=c
4570 ac_cpp='$CPP $CPPFLAGS'
4571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4575 am_cv_ar_interface=ar
4576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4577 /* end confdefs.h. */
4578 int some_variable = 0;
4579 _ACEOF
4580 if ac_fn_c_try_compile "$LINENO"; then :
4581 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4582 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4583 (eval $am_ar_try) 2>&5
4584 ac_status=$?
4585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4586 test $ac_status = 0; }
4587 if test "$ac_status" -eq 0; then
4588 am_cv_ar_interface=ar
4589 else
4590 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4591 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4592 (eval $am_ar_try) 2>&5
4593 ac_status=$?
4594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4595 test $ac_status = 0; }
4596 if test "$ac_status" -eq 0; then
4597 am_cv_ar_interface=lib
4598 else
4599 am_cv_ar_interface=unknown
4602 rm -f conftest.lib libconftest.a
4605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4606 ac_ext=c
4607 ac_cpp='$CPP $CPPFLAGS'
4608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4614 $as_echo "$am_cv_ar_interface" >&6; }
4616 case $am_cv_ar_interface in
4619 lib)
4620 # Microsoft lib, so override with the ar-lib wrapper script.
4621 # FIXME: It is wrong to rewrite AR.
4622 # But if we don't then we get into trouble of one sort or another.
4623 # A longer-term fix would be to have automake use am__AR in this case,
4624 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4625 # similar.
4626 AR="$am_aux_dir/ar-lib $AR"
4628 unknown)
4629 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4631 esac
4634 # This was added at the suggestion of libtoolize (03-Jan-10)
4637 # The default CFLAGS and CXXFLAGS in Autoconf are "-g -O2" for gcc and just
4638 # "-g" for any other compiler. There doesn't seem to be a standard way of
4639 # getting rid of the -g (which I don't think is needed for a production
4640 # library). This fudge seems to achieve the necessary. First, we remember the
4641 # externally set values of CFLAGS and CXXFLAGS. Then call the AC_PROG_CC and
4642 # AC_PROG_CXX macros to find the compilers - if CFLAGS and CXXFLAGS are not
4643 # set, they will be set to Autoconf's defaults. Afterwards, if the original
4644 # values were not set, remove the -g from the Autoconf defaults.
4645 # (PH 02-May-07)
4647 remember_set_CFLAGS="$CFLAGS"
4648 remember_set_CXXFLAGS="$CXXFLAGS"
4650 ac_ext=c
4651 ac_cpp='$CPP $CPPFLAGS'
4652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4655 if test -n "$ac_tool_prefix"; then
4656 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4657 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4659 $as_echo_n "checking for $ac_word... " >&6; }
4660 if ${ac_cv_prog_CC+:} false; then :
4661 $as_echo_n "(cached) " >&6
4662 else
4663 if test -n "$CC"; then
4664 ac_cv_prog_CC="$CC" # Let the user override the test.
4665 else
4666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667 for as_dir in $PATH
4669 IFS=$as_save_IFS
4670 test -z "$as_dir" && as_dir=.
4671 for ac_exec_ext in '' $ac_executable_extensions; do
4672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4673 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4675 break 2
4677 done
4678 done
4679 IFS=$as_save_IFS
4683 CC=$ac_cv_prog_CC
4684 if test -n "$CC"; then
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4686 $as_echo "$CC" >&6; }
4687 else
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4689 $as_echo "no" >&6; }
4694 if test -z "$ac_cv_prog_CC"; then
4695 ac_ct_CC=$CC
4696 # Extract the first word of "gcc", so it can be a program name with args.
4697 set dummy gcc; ac_word=$2
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4699 $as_echo_n "checking for $ac_word... " >&6; }
4700 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4701 $as_echo_n "(cached) " >&6
4702 else
4703 if test -n "$ac_ct_CC"; then
4704 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4705 else
4706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707 for as_dir in $PATH
4709 IFS=$as_save_IFS
4710 test -z "$as_dir" && as_dir=.
4711 for ac_exec_ext in '' $ac_executable_extensions; do
4712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4713 ac_cv_prog_ac_ct_CC="gcc"
4714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4715 break 2
4717 done
4718 done
4719 IFS=$as_save_IFS
4723 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4724 if test -n "$ac_ct_CC"; then
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4726 $as_echo "$ac_ct_CC" >&6; }
4727 else
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4729 $as_echo "no" >&6; }
4732 if test "x$ac_ct_CC" = x; then
4733 CC=""
4734 else
4735 case $cross_compiling:$ac_tool_warned in
4736 yes:)
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4738 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4739 ac_tool_warned=yes ;;
4740 esac
4741 CC=$ac_ct_CC
4743 else
4744 CC="$ac_cv_prog_CC"
4747 if test -z "$CC"; then
4748 if test -n "$ac_tool_prefix"; then
4749 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4750 set dummy ${ac_tool_prefix}cc; ac_word=$2
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4752 $as_echo_n "checking for $ac_word... " >&6; }
4753 if ${ac_cv_prog_CC+:} false; then :
4754 $as_echo_n "(cached) " >&6
4755 else
4756 if test -n "$CC"; then
4757 ac_cv_prog_CC="$CC" # Let the user override the test.
4758 else
4759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4760 for as_dir in $PATH
4762 IFS=$as_save_IFS
4763 test -z "$as_dir" && as_dir=.
4764 for ac_exec_ext in '' $ac_executable_extensions; do
4765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4766 ac_cv_prog_CC="${ac_tool_prefix}cc"
4767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4768 break 2
4770 done
4771 done
4772 IFS=$as_save_IFS
4776 CC=$ac_cv_prog_CC
4777 if test -n "$CC"; then
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4779 $as_echo "$CC" >&6; }
4780 else
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4782 $as_echo "no" >&6; }
4788 if test -z "$CC"; then
4789 # Extract the first word of "cc", so it can be a program name with args.
4790 set dummy cc; ac_word=$2
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4792 $as_echo_n "checking for $ac_word... " >&6; }
4793 if ${ac_cv_prog_CC+:} false; then :
4794 $as_echo_n "(cached) " >&6
4795 else
4796 if test -n "$CC"; then
4797 ac_cv_prog_CC="$CC" # Let the user override the test.
4798 else
4799 ac_prog_rejected=no
4800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4801 for as_dir in $PATH
4803 IFS=$as_save_IFS
4804 test -z "$as_dir" && as_dir=.
4805 for ac_exec_ext in '' $ac_executable_extensions; do
4806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4807 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4808 ac_prog_rejected=yes
4809 continue
4811 ac_cv_prog_CC="cc"
4812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4813 break 2
4815 done
4816 done
4817 IFS=$as_save_IFS
4819 if test $ac_prog_rejected = yes; then
4820 # We found a bogon in the path, so make sure we never use it.
4821 set dummy $ac_cv_prog_CC
4822 shift
4823 if test $# != 0; then
4824 # We chose a different compiler from the bogus one.
4825 # However, it has the same basename, so the bogon will be chosen
4826 # first if we set CC to just the basename; use the full file name.
4827 shift
4828 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4833 CC=$ac_cv_prog_CC
4834 if test -n "$CC"; then
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4836 $as_echo "$CC" >&6; }
4837 else
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4839 $as_echo "no" >&6; }
4844 if test -z "$CC"; then
4845 if test -n "$ac_tool_prefix"; then
4846 for ac_prog in cl.exe
4848 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4849 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4851 $as_echo_n "checking for $ac_word... " >&6; }
4852 if ${ac_cv_prog_CC+:} false; then :
4853 $as_echo_n "(cached) " >&6
4854 else
4855 if test -n "$CC"; then
4856 ac_cv_prog_CC="$CC" # Let the user override the test.
4857 else
4858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4859 for as_dir in $PATH
4861 IFS=$as_save_IFS
4862 test -z "$as_dir" && as_dir=.
4863 for ac_exec_ext in '' $ac_executable_extensions; do
4864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4865 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4867 break 2
4869 done
4870 done
4871 IFS=$as_save_IFS
4875 CC=$ac_cv_prog_CC
4876 if test -n "$CC"; then
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4878 $as_echo "$CC" >&6; }
4879 else
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4881 $as_echo "no" >&6; }
4885 test -n "$CC" && break
4886 done
4888 if test -z "$CC"; then
4889 ac_ct_CC=$CC
4890 for ac_prog in cl.exe
4892 # Extract the first word of "$ac_prog", so it can be a program name with args.
4893 set dummy $ac_prog; ac_word=$2
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4895 $as_echo_n "checking for $ac_word... " >&6; }
4896 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4897 $as_echo_n "(cached) " >&6
4898 else
4899 if test -n "$ac_ct_CC"; then
4900 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4901 else
4902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4903 for as_dir in $PATH
4905 IFS=$as_save_IFS
4906 test -z "$as_dir" && as_dir=.
4907 for ac_exec_ext in '' $ac_executable_extensions; do
4908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4909 ac_cv_prog_ac_ct_CC="$ac_prog"
4910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4911 break 2
4913 done
4914 done
4915 IFS=$as_save_IFS
4919 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4920 if test -n "$ac_ct_CC"; then
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4922 $as_echo "$ac_ct_CC" >&6; }
4923 else
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4925 $as_echo "no" >&6; }
4929 test -n "$ac_ct_CC" && break
4930 done
4932 if test "x$ac_ct_CC" = x; then
4933 CC=""
4934 else
4935 case $cross_compiling:$ac_tool_warned in
4936 yes:)
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4938 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4939 ac_tool_warned=yes ;;
4940 esac
4941 CC=$ac_ct_CC
4948 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4949 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4950 as_fn_error $? "no acceptable C compiler found in \$PATH
4951 See \`config.log' for more details" "$LINENO" 5; }
4953 # Provide some information about the compiler.
4954 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4955 set X $ac_compile
4956 ac_compiler=$2
4957 for ac_option in --version -v -V -qversion; do
4958 { { ac_try="$ac_compiler $ac_option >&5"
4959 case "(($ac_try" in
4960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4961 *) ac_try_echo=$ac_try;;
4962 esac
4963 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4964 $as_echo "$ac_try_echo"; } >&5
4965 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4966 ac_status=$?
4967 if test -s conftest.err; then
4968 sed '10a\
4969 ... rest of stderr output deleted ...
4970 10q' conftest.err >conftest.er1
4971 cat conftest.er1 >&5
4973 rm -f conftest.er1 conftest.err
4974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4975 test $ac_status = 0; }
4976 done
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4979 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4980 if ${ac_cv_c_compiler_gnu+:} false; then :
4981 $as_echo_n "(cached) " >&6
4982 else
4983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4984 /* end confdefs.h. */
4987 main ()
4989 #ifndef __GNUC__
4990 choke me
4991 #endif
4994 return 0;
4996 _ACEOF
4997 if ac_fn_c_try_compile "$LINENO"; then :
4998 ac_compiler_gnu=yes
4999 else
5000 ac_compiler_gnu=no
5002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5003 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5007 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5008 if test $ac_compiler_gnu = yes; then
5009 GCC=yes
5010 else
5011 GCC=
5013 ac_test_CFLAGS=${CFLAGS+set}
5014 ac_save_CFLAGS=$CFLAGS
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5016 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5017 if ${ac_cv_prog_cc_g+:} false; then :
5018 $as_echo_n "(cached) " >&6
5019 else
5020 ac_save_c_werror_flag=$ac_c_werror_flag
5021 ac_c_werror_flag=yes
5022 ac_cv_prog_cc_g=no
5023 CFLAGS="-g"
5024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5025 /* end confdefs.h. */
5028 main ()
5032 return 0;
5034 _ACEOF
5035 if ac_fn_c_try_compile "$LINENO"; then :
5036 ac_cv_prog_cc_g=yes
5037 else
5038 CFLAGS=""
5039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5040 /* end confdefs.h. */
5043 main ()
5047 return 0;
5049 _ACEOF
5050 if ac_fn_c_try_compile "$LINENO"; then :
5052 else
5053 ac_c_werror_flag=$ac_save_c_werror_flag
5054 CFLAGS="-g"
5055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5056 /* end confdefs.h. */
5059 main ()
5063 return 0;
5065 _ACEOF
5066 if ac_fn_c_try_compile "$LINENO"; then :
5067 ac_cv_prog_cc_g=yes
5069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5074 ac_c_werror_flag=$ac_save_c_werror_flag
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5077 $as_echo "$ac_cv_prog_cc_g" >&6; }
5078 if test "$ac_test_CFLAGS" = set; then
5079 CFLAGS=$ac_save_CFLAGS
5080 elif test $ac_cv_prog_cc_g = yes; then
5081 if test "$GCC" = yes; then
5082 CFLAGS="-g -O2"
5083 else
5084 CFLAGS="-g"
5086 else
5087 if test "$GCC" = yes; then
5088 CFLAGS="-O2"
5089 else
5090 CFLAGS=
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5094 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5095 if ${ac_cv_prog_cc_c89+:} false; then :
5096 $as_echo_n "(cached) " >&6
5097 else
5098 ac_cv_prog_cc_c89=no
5099 ac_save_CC=$CC
5100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5101 /* end confdefs.h. */
5102 #include <stdarg.h>
5103 #include <stdio.h>
5104 struct stat;
5105 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5106 struct buf { int x; };
5107 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5108 static char *e (p, i)
5109 char **p;
5110 int i;
5112 return p[i];
5114 static char *f (char * (*g) (char **, int), char **p, ...)
5116 char *s;
5117 va_list v;
5118 va_start (v,p);
5119 s = g (p, va_arg (v,int));
5120 va_end (v);
5121 return s;
5124 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5125 function prototypes and stuff, but not '\xHH' hex character constants.
5126 These don't provoke an error unfortunately, instead are silently treated
5127 as 'x'. The following induces an error, until -std is added to get
5128 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5129 array size at least. It's necessary to write '\x00'==0 to get something
5130 that's true only with -std. */
5131 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5133 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5134 inside strings and character constants. */
5135 #define FOO(x) 'x'
5136 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5138 int test (int i, double x);
5139 struct s1 {int (*f) (int a);};
5140 struct s2 {int (*f) (double a);};
5141 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5142 int argc;
5143 char **argv;
5145 main ()
5147 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5149 return 0;
5151 _ACEOF
5152 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5153 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5155 CC="$ac_save_CC $ac_arg"
5156 if ac_fn_c_try_compile "$LINENO"; then :
5157 ac_cv_prog_cc_c89=$ac_arg
5159 rm -f core conftest.err conftest.$ac_objext
5160 test "x$ac_cv_prog_cc_c89" != "xno" && break
5161 done
5162 rm -f conftest.$ac_ext
5163 CC=$ac_save_CC
5166 # AC_CACHE_VAL
5167 case "x$ac_cv_prog_cc_c89" in
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5170 $as_echo "none needed" >&6; } ;;
5171 xno)
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5173 $as_echo "unsupported" >&6; } ;;
5175 CC="$CC $ac_cv_prog_cc_c89"
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5177 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5178 esac
5179 if test "x$ac_cv_prog_cc_c89" != xno; then :
5183 ac_ext=c
5184 ac_cpp='$CPP $CPPFLAGS'
5185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5189 ac_ext=c
5190 ac_cpp='$CPP $CPPFLAGS'
5191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5195 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5196 if ${am_cv_prog_cc_c_o+:} false; then :
5197 $as_echo_n "(cached) " >&6
5198 else
5199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5200 /* end confdefs.h. */
5203 main ()
5207 return 0;
5209 _ACEOF
5210 # Make sure it works both with $CC and with simple cc.
5211 # Following AC_PROG_CC_C_O, we do the test twice because some
5212 # compilers refuse to overwrite an existing .o file with -o,
5213 # though they will create one.
5214 am_cv_prog_cc_c_o=yes
5215 for am_i in 1 2; do
5216 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5217 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5218 ac_status=$?
5219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5220 (exit $ac_status); } \
5221 && test -f conftest2.$ac_objext; then
5222 : OK
5223 else
5224 am_cv_prog_cc_c_o=no
5225 break
5227 done
5228 rm -f core conftest*
5229 unset am_i
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5232 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5233 if test "$am_cv_prog_cc_c_o" != yes; then
5234 # Losing compiler, so override with the script.
5235 # FIXME: It is wrong to rewrite CC.
5236 # But if we don't then we get into trouble of one sort or another.
5237 # A longer-term fix would be to have automake use am__CC in this case,
5238 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5239 CC="$am_aux_dir/compile $CC"
5241 ac_ext=c
5242 ac_cpp='$CPP $CPPFLAGS'
5243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5248 depcc="$CC" am_compiler_list=
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5251 $as_echo_n "checking dependency style of $depcc... " >&6; }
5252 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5253 $as_echo_n "(cached) " >&6
5254 else
5255 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5256 # We make a subdir and do the tests there. Otherwise we can end up
5257 # making bogus files that we don't know about and never remove. For
5258 # instance it was reported that on HP-UX the gcc test will end up
5259 # making a dummy file named 'D' -- because '-MD' means "put the output
5260 # in D".
5261 rm -rf conftest.dir
5262 mkdir conftest.dir
5263 # Copy depcomp to subdir because otherwise we won't find it if we're
5264 # using a relative directory.
5265 cp "$am_depcomp" conftest.dir
5266 cd conftest.dir
5267 # We will build objects and dependencies in a subdirectory because
5268 # it helps to detect inapplicable dependency modes. For instance
5269 # both Tru64's cc and ICC support -MD to output dependencies as a
5270 # side effect of compilation, but ICC will put the dependencies in
5271 # the current directory while Tru64 will put them in the object
5272 # directory.
5273 mkdir sub
5275 am_cv_CC_dependencies_compiler_type=none
5276 if test "$am_compiler_list" = ""; then
5277 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5279 am__universal=false
5280 case " $depcc " in #(
5281 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5282 esac
5284 for depmode in $am_compiler_list; do
5285 # Setup a source with many dependencies, because some compilers
5286 # like to wrap large dependency lists on column 80 (with \), and
5287 # we should not choose a depcomp mode which is confused by this.
5289 # We need to recreate these files for each test, as the compiler may
5290 # overwrite some of them when testing with obscure command lines.
5291 # This happens at least with the AIX C compiler.
5292 : > sub/conftest.c
5293 for i in 1 2 3 4 5 6; do
5294 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5295 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5296 # Solaris 10 /bin/sh.
5297 echo '/* dummy */' > sub/conftst$i.h
5298 done
5299 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5301 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5302 # mode. It turns out that the SunPro C++ compiler does not properly
5303 # handle '-M -o', and we need to detect this. Also, some Intel
5304 # versions had trouble with output in subdirs.
5305 am__obj=sub/conftest.${OBJEXT-o}
5306 am__minus_obj="-o $am__obj"
5307 case $depmode in
5308 gcc)
5309 # This depmode causes a compiler race in universal mode.
5310 test "$am__universal" = false || continue
5312 nosideeffect)
5313 # After this tag, mechanisms are not by side-effect, so they'll
5314 # only be used when explicitly requested.
5315 if test "x$enable_dependency_tracking" = xyes; then
5316 continue
5317 else
5318 break
5321 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5322 # This compiler won't grok '-c -o', but also, the minuso test has
5323 # not run yet. These depmodes are late enough in the game, and
5324 # so weak that their functioning should not be impacted.
5325 am__obj=conftest.${OBJEXT-o}
5326 am__minus_obj=
5328 none) break ;;
5329 esac
5330 if depmode=$depmode \
5331 source=sub/conftest.c object=$am__obj \
5332 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5333 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5334 >/dev/null 2>conftest.err &&
5335 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5336 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5337 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5338 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5339 # icc doesn't choke on unknown options, it will just issue warnings
5340 # or remarks (even with -Werror). So we grep stderr for any message
5341 # that says an option was ignored or not supported.
5342 # When given -MP, icc 7.0 and 7.1 complain thusly:
5343 # icc: Command line warning: ignoring option '-M'; no argument required
5344 # The diagnosis changed in icc 8.0:
5345 # icc: Command line remark: option '-MP' not supported
5346 if (grep 'ignoring option' conftest.err ||
5347 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5348 am_cv_CC_dependencies_compiler_type=$depmode
5349 break
5352 done
5354 cd ..
5355 rm -rf conftest.dir
5356 else
5357 am_cv_CC_dependencies_compiler_type=none
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5362 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5363 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5366 test "x$enable_dependency_tracking" != xno \
5367 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5368 am__fastdepCC_TRUE=
5369 am__fastdepCC_FALSE='#'
5370 else
5371 am__fastdepCC_TRUE='#'
5372 am__fastdepCC_FALSE=
5376 ac_ext=cpp
5377 ac_cpp='$CXXCPP $CPPFLAGS'
5378 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5379 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5380 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5381 if test -z "$CXX"; then
5382 if test -n "$CCC"; then
5383 CXX=$CCC
5384 else
5385 if test -n "$ac_tool_prefix"; then
5386 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5388 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5389 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5391 $as_echo_n "checking for $ac_word... " >&6; }
5392 if ${ac_cv_prog_CXX+:} false; then :
5393 $as_echo_n "(cached) " >&6
5394 else
5395 if test -n "$CXX"; then
5396 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5397 else
5398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5399 for as_dir in $PATH
5401 IFS=$as_save_IFS
5402 test -z "$as_dir" && as_dir=.
5403 for ac_exec_ext in '' $ac_executable_extensions; do
5404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5405 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5407 break 2
5409 done
5410 done
5411 IFS=$as_save_IFS
5415 CXX=$ac_cv_prog_CXX
5416 if test -n "$CXX"; then
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5418 $as_echo "$CXX" >&6; }
5419 else
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5421 $as_echo "no" >&6; }
5425 test -n "$CXX" && break
5426 done
5428 if test -z "$CXX"; then
5429 ac_ct_CXX=$CXX
5430 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5432 # Extract the first word of "$ac_prog", so it can be a program name with args.
5433 set dummy $ac_prog; ac_word=$2
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5435 $as_echo_n "checking for $ac_word... " >&6; }
5436 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5437 $as_echo_n "(cached) " >&6
5438 else
5439 if test -n "$ac_ct_CXX"; then
5440 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5441 else
5442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5443 for as_dir in $PATH
5445 IFS=$as_save_IFS
5446 test -z "$as_dir" && as_dir=.
5447 for ac_exec_ext in '' $ac_executable_extensions; do
5448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5449 ac_cv_prog_ac_ct_CXX="$ac_prog"
5450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5451 break 2
5453 done
5454 done
5455 IFS=$as_save_IFS
5459 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5460 if test -n "$ac_ct_CXX"; then
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5462 $as_echo "$ac_ct_CXX" >&6; }
5463 else
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5465 $as_echo "no" >&6; }
5469 test -n "$ac_ct_CXX" && break
5470 done
5472 if test "x$ac_ct_CXX" = x; then
5473 CXX="g++"
5474 else
5475 case $cross_compiling:$ac_tool_warned in
5476 yes:)
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5478 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5479 ac_tool_warned=yes ;;
5480 esac
5481 CXX=$ac_ct_CXX
5487 # Provide some information about the compiler.
5488 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5489 set X $ac_compile
5490 ac_compiler=$2
5491 for ac_option in --version -v -V -qversion; do
5492 { { ac_try="$ac_compiler $ac_option >&5"
5493 case "(($ac_try" in
5494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5495 *) ac_try_echo=$ac_try;;
5496 esac
5497 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5498 $as_echo "$ac_try_echo"; } >&5
5499 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5500 ac_status=$?
5501 if test -s conftest.err; then
5502 sed '10a\
5503 ... rest of stderr output deleted ...
5504 10q' conftest.err >conftest.er1
5505 cat conftest.er1 >&5
5507 rm -f conftest.er1 conftest.err
5508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5509 test $ac_status = 0; }
5510 done
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5513 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5514 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5515 $as_echo_n "(cached) " >&6
5516 else
5517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5518 /* end confdefs.h. */
5521 main ()
5523 #ifndef __GNUC__
5524 choke me
5525 #endif
5528 return 0;
5530 _ACEOF
5531 if ac_fn_cxx_try_compile "$LINENO"; then :
5532 ac_compiler_gnu=yes
5533 else
5534 ac_compiler_gnu=no
5536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5537 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5541 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5542 if test $ac_compiler_gnu = yes; then
5543 GXX=yes
5544 else
5545 GXX=
5547 ac_test_CXXFLAGS=${CXXFLAGS+set}
5548 ac_save_CXXFLAGS=$CXXFLAGS
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5550 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5551 if ${ac_cv_prog_cxx_g+:} false; then :
5552 $as_echo_n "(cached) " >&6
5553 else
5554 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5555 ac_cxx_werror_flag=yes
5556 ac_cv_prog_cxx_g=no
5557 CXXFLAGS="-g"
5558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5559 /* end confdefs.h. */
5562 main ()
5566 return 0;
5568 _ACEOF
5569 if ac_fn_cxx_try_compile "$LINENO"; then :
5570 ac_cv_prog_cxx_g=yes
5571 else
5572 CXXFLAGS=""
5573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5574 /* end confdefs.h. */
5577 main ()
5581 return 0;
5583 _ACEOF
5584 if ac_fn_cxx_try_compile "$LINENO"; then :
5586 else
5587 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5588 CXXFLAGS="-g"
5589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5590 /* end confdefs.h. */
5593 main ()
5597 return 0;
5599 _ACEOF
5600 if ac_fn_cxx_try_compile "$LINENO"; then :
5601 ac_cv_prog_cxx_g=yes
5603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5608 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5611 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5612 if test "$ac_test_CXXFLAGS" = set; then
5613 CXXFLAGS=$ac_save_CXXFLAGS
5614 elif test $ac_cv_prog_cxx_g = yes; then
5615 if test "$GXX" = yes; then
5616 CXXFLAGS="-g -O2"
5617 else
5618 CXXFLAGS="-g"
5620 else
5621 if test "$GXX" = yes; then
5622 CXXFLAGS="-O2"
5623 else
5624 CXXFLAGS=
5627 ac_ext=c
5628 ac_cpp='$CPP $CPPFLAGS'
5629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5633 depcc="$CXX" am_compiler_list=
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5636 $as_echo_n "checking dependency style of $depcc... " >&6; }
5637 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5638 $as_echo_n "(cached) " >&6
5639 else
5640 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5641 # We make a subdir and do the tests there. Otherwise we can end up
5642 # making bogus files that we don't know about and never remove. For
5643 # instance it was reported that on HP-UX the gcc test will end up
5644 # making a dummy file named 'D' -- because '-MD' means "put the output
5645 # in D".
5646 rm -rf conftest.dir
5647 mkdir conftest.dir
5648 # Copy depcomp to subdir because otherwise we won't find it if we're
5649 # using a relative directory.
5650 cp "$am_depcomp" conftest.dir
5651 cd conftest.dir
5652 # We will build objects and dependencies in a subdirectory because
5653 # it helps to detect inapplicable dependency modes. For instance
5654 # both Tru64's cc and ICC support -MD to output dependencies as a
5655 # side effect of compilation, but ICC will put the dependencies in
5656 # the current directory while Tru64 will put them in the object
5657 # directory.
5658 mkdir sub
5660 am_cv_CXX_dependencies_compiler_type=none
5661 if test "$am_compiler_list" = ""; then
5662 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5664 am__universal=false
5665 case " $depcc " in #(
5666 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5667 esac
5669 for depmode in $am_compiler_list; do
5670 # Setup a source with many dependencies, because some compilers
5671 # like to wrap large dependency lists on column 80 (with \), and
5672 # we should not choose a depcomp mode which is confused by this.
5674 # We need to recreate these files for each test, as the compiler may
5675 # overwrite some of them when testing with obscure command lines.
5676 # This happens at least with the AIX C compiler.
5677 : > sub/conftest.c
5678 for i in 1 2 3 4 5 6; do
5679 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5680 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5681 # Solaris 10 /bin/sh.
5682 echo '/* dummy */' > sub/conftst$i.h
5683 done
5684 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5686 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5687 # mode. It turns out that the SunPro C++ compiler does not properly
5688 # handle '-M -o', and we need to detect this. Also, some Intel
5689 # versions had trouble with output in subdirs.
5690 am__obj=sub/conftest.${OBJEXT-o}
5691 am__minus_obj="-o $am__obj"
5692 case $depmode in
5693 gcc)
5694 # This depmode causes a compiler race in universal mode.
5695 test "$am__universal" = false || continue
5697 nosideeffect)
5698 # After this tag, mechanisms are not by side-effect, so they'll
5699 # only be used when explicitly requested.
5700 if test "x$enable_dependency_tracking" = xyes; then
5701 continue
5702 else
5703 break
5706 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5707 # This compiler won't grok '-c -o', but also, the minuso test has
5708 # not run yet. These depmodes are late enough in the game, and
5709 # so weak that their functioning should not be impacted.
5710 am__obj=conftest.${OBJEXT-o}
5711 am__minus_obj=
5713 none) break ;;
5714 esac
5715 if depmode=$depmode \
5716 source=sub/conftest.c object=$am__obj \
5717 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5718 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5719 >/dev/null 2>conftest.err &&
5720 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5721 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5722 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5723 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5724 # icc doesn't choke on unknown options, it will just issue warnings
5725 # or remarks (even with -Werror). So we grep stderr for any message
5726 # that says an option was ignored or not supported.
5727 # When given -MP, icc 7.0 and 7.1 complain thusly:
5728 # icc: Command line warning: ignoring option '-M'; no argument required
5729 # The diagnosis changed in icc 8.0:
5730 # icc: Command line remark: option '-MP' not supported
5731 if (grep 'ignoring option' conftest.err ||
5732 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5733 am_cv_CXX_dependencies_compiler_type=$depmode
5734 break
5737 done
5739 cd ..
5740 rm -rf conftest.dir
5741 else
5742 am_cv_CXX_dependencies_compiler_type=none
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5747 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5748 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5751 test "x$enable_dependency_tracking" != xno \
5752 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5753 am__fastdepCXX_TRUE=
5754 am__fastdepCXX_FALSE='#'
5755 else
5756 am__fastdepCXX_TRUE='#'
5757 am__fastdepCXX_FALSE=
5763 if test "x$remember_set_CFLAGS" = "x"
5764 then
5765 if test "$CFLAGS" = "-g -O2"
5766 then
5767 CFLAGS="-O2"
5768 elif test "$CFLAGS" = "-g"
5769 then
5770 CFLAGS=""
5774 if test "x$remember_set_CXXFLAGS" = "x"
5775 then
5776 if test "$CXXFLAGS" = "-g -O2"
5777 then
5778 CXXFLAGS="-O2"
5779 elif test "$CXXFLAGS" = "-g"
5780 then
5781 CXXFLAGS=""
5785 # AC_PROG_CXX will return "g++" even if no c++ compiler is installed.
5786 # Check for that case, and just disable c++ code if g++ doesn't run.
5787 ac_ext=cpp
5788 ac_cpp='$CXXCPP $CPPFLAGS'
5789 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5790 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5791 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5795 /* end confdefs.h. */
5798 main ()
5802 return 0;
5804 _ACEOF
5805 if ac_fn_cxx_try_compile "$LINENO"; then :
5807 else
5808 CXX=""; CXXCP=""; CXXFLAGS=""
5810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5811 ac_ext=c
5812 ac_cpp='$CPP $CPPFLAGS'
5813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5818 # Check for a 64-bit integer type
5819 ac_ext=c
5820 ac_cpp='$CPP $CPPFLAGS'
5821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5825 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5826 # On Suns, sometimes $CPP names a directory.
5827 if test -n "$CPP" && test -d "$CPP"; then
5828 CPP=
5830 if test -z "$CPP"; then
5831 if ${ac_cv_prog_CPP+:} false; then :
5832 $as_echo_n "(cached) " >&6
5833 else
5834 # Double quotes because CPP needs to be expanded
5835 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5837 ac_preproc_ok=false
5838 for ac_c_preproc_warn_flag in '' yes
5840 # Use a header file that comes with gcc, so configuring glibc
5841 # with a fresh cross-compiler works.
5842 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5843 # <limits.h> exists even on freestanding compilers.
5844 # On the NeXT, cc -E runs the code through the compiler's parser,
5845 # not just through cpp. "Syntax error" is here to catch this case.
5846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5847 /* end confdefs.h. */
5848 #ifdef __STDC__
5849 # include <limits.h>
5850 #else
5851 # include <assert.h>
5852 #endif
5853 Syntax error
5854 _ACEOF
5855 if ac_fn_c_try_cpp "$LINENO"; then :
5857 else
5858 # Broken: fails on valid input.
5859 continue
5861 rm -f conftest.err conftest.i conftest.$ac_ext
5863 # OK, works on sane cases. Now check whether nonexistent headers
5864 # can be detected and how.
5865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5866 /* end confdefs.h. */
5867 #include <ac_nonexistent.h>
5868 _ACEOF
5869 if ac_fn_c_try_cpp "$LINENO"; then :
5870 # Broken: success on invalid input.
5871 continue
5872 else
5873 # Passes both tests.
5874 ac_preproc_ok=:
5875 break
5877 rm -f conftest.err conftest.i conftest.$ac_ext
5879 done
5880 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5881 rm -f conftest.i conftest.err conftest.$ac_ext
5882 if $ac_preproc_ok; then :
5883 break
5886 done
5887 ac_cv_prog_CPP=$CPP
5890 CPP=$ac_cv_prog_CPP
5891 else
5892 ac_cv_prog_CPP=$CPP
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5895 $as_echo "$CPP" >&6; }
5896 ac_preproc_ok=false
5897 for ac_c_preproc_warn_flag in '' yes
5899 # Use a header file that comes with gcc, so configuring glibc
5900 # with a fresh cross-compiler works.
5901 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5902 # <limits.h> exists even on freestanding compilers.
5903 # On the NeXT, cc -E runs the code through the compiler's parser,
5904 # not just through cpp. "Syntax error" is here to catch this case.
5905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5906 /* end confdefs.h. */
5907 #ifdef __STDC__
5908 # include <limits.h>
5909 #else
5910 # include <assert.h>
5911 #endif
5912 Syntax error
5913 _ACEOF
5914 if ac_fn_c_try_cpp "$LINENO"; then :
5916 else
5917 # Broken: fails on valid input.
5918 continue
5920 rm -f conftest.err conftest.i conftest.$ac_ext
5922 # OK, works on sane cases. Now check whether nonexistent headers
5923 # can be detected and how.
5924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5925 /* end confdefs.h. */
5926 #include <ac_nonexistent.h>
5927 _ACEOF
5928 if ac_fn_c_try_cpp "$LINENO"; then :
5929 # Broken: success on invalid input.
5930 continue
5931 else
5932 # Passes both tests.
5933 ac_preproc_ok=:
5934 break
5936 rm -f conftest.err conftest.i conftest.$ac_ext
5938 done
5939 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5940 rm -f conftest.i conftest.err conftest.$ac_ext
5941 if $ac_preproc_ok; then :
5943 else
5944 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5945 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5946 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5947 See \`config.log' for more details" "$LINENO" 5; }
5950 ac_ext=c
5951 ac_cpp='$CPP $CPPFLAGS'
5952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5958 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5959 if ${ac_cv_path_GREP+:} false; then :
5960 $as_echo_n "(cached) " >&6
5961 else
5962 if test -z "$GREP"; then
5963 ac_path_GREP_found=false
5964 # Loop through the user's path and test for each of PROGNAME-LIST
5965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5966 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5968 IFS=$as_save_IFS
5969 test -z "$as_dir" && as_dir=.
5970 for ac_prog in grep ggrep; do
5971 for ac_exec_ext in '' $ac_executable_extensions; do
5972 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5973 as_fn_executable_p "$ac_path_GREP" || continue
5974 # Check for GNU ac_path_GREP and select it if it is found.
5975 # Check for GNU $ac_path_GREP
5976 case `"$ac_path_GREP" --version 2>&1` in
5977 *GNU*)
5978 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5980 ac_count=0
5981 $as_echo_n 0123456789 >"conftest.in"
5982 while :
5984 cat "conftest.in" "conftest.in" >"conftest.tmp"
5985 mv "conftest.tmp" "conftest.in"
5986 cp "conftest.in" "conftest.nl"
5987 $as_echo 'GREP' >> "conftest.nl"
5988 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5989 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5990 as_fn_arith $ac_count + 1 && ac_count=$as_val
5991 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5992 # Best one so far, save it but keep looking for a better one
5993 ac_cv_path_GREP="$ac_path_GREP"
5994 ac_path_GREP_max=$ac_count
5996 # 10*(2^10) chars as input seems more than enough
5997 test $ac_count -gt 10 && break
5998 done
5999 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6000 esac
6002 $ac_path_GREP_found && break 3
6003 done
6004 done
6005 done
6006 IFS=$as_save_IFS
6007 if test -z "$ac_cv_path_GREP"; then
6008 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6010 else
6011 ac_cv_path_GREP=$GREP
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6016 $as_echo "$ac_cv_path_GREP" >&6; }
6017 GREP="$ac_cv_path_GREP"
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6021 $as_echo_n "checking for egrep... " >&6; }
6022 if ${ac_cv_path_EGREP+:} false; then :
6023 $as_echo_n "(cached) " >&6
6024 else
6025 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6026 then ac_cv_path_EGREP="$GREP -E"
6027 else
6028 if test -z "$EGREP"; then
6029 ac_path_EGREP_found=false
6030 # Loop through the user's path and test for each of PROGNAME-LIST
6031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6032 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6034 IFS=$as_save_IFS
6035 test -z "$as_dir" && as_dir=.
6036 for ac_prog in egrep; do
6037 for ac_exec_ext in '' $ac_executable_extensions; do
6038 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6039 as_fn_executable_p "$ac_path_EGREP" || continue
6040 # Check for GNU ac_path_EGREP and select it if it is found.
6041 # Check for GNU $ac_path_EGREP
6042 case `"$ac_path_EGREP" --version 2>&1` in
6043 *GNU*)
6044 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6046 ac_count=0
6047 $as_echo_n 0123456789 >"conftest.in"
6048 while :
6050 cat "conftest.in" "conftest.in" >"conftest.tmp"
6051 mv "conftest.tmp" "conftest.in"
6052 cp "conftest.in" "conftest.nl"
6053 $as_echo 'EGREP' >> "conftest.nl"
6054 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6055 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6056 as_fn_arith $ac_count + 1 && ac_count=$as_val
6057 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6058 # Best one so far, save it but keep looking for a better one
6059 ac_cv_path_EGREP="$ac_path_EGREP"
6060 ac_path_EGREP_max=$ac_count
6062 # 10*(2^10) chars as input seems more than enough
6063 test $ac_count -gt 10 && break
6064 done
6065 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6066 esac
6068 $ac_path_EGREP_found && break 3
6069 done
6070 done
6071 done
6072 IFS=$as_save_IFS
6073 if test -z "$ac_cv_path_EGREP"; then
6074 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6076 else
6077 ac_cv_path_EGREP=$EGREP
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6083 $as_echo "$ac_cv_path_EGREP" >&6; }
6084 EGREP="$ac_cv_path_EGREP"
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6088 $as_echo_n "checking for ANSI C header files... " >&6; }
6089 if ${ac_cv_header_stdc+:} false; then :
6090 $as_echo_n "(cached) " >&6
6091 else
6092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6093 /* end confdefs.h. */
6094 #include <stdlib.h>
6095 #include <stdarg.h>
6096 #include <string.h>
6097 #include <float.h>
6100 main ()
6104 return 0;
6106 _ACEOF
6107 if ac_fn_c_try_compile "$LINENO"; then :
6108 ac_cv_header_stdc=yes
6109 else
6110 ac_cv_header_stdc=no
6112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6114 if test $ac_cv_header_stdc = yes; then
6115 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6117 /* end confdefs.h. */
6118 #include <string.h>
6120 _ACEOF
6121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6122 $EGREP "memchr" >/dev/null 2>&1; then :
6124 else
6125 ac_cv_header_stdc=no
6127 rm -f conftest*
6131 if test $ac_cv_header_stdc = yes; then
6132 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6134 /* end confdefs.h. */
6135 #include <stdlib.h>
6137 _ACEOF
6138 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6139 $EGREP "free" >/dev/null 2>&1; then :
6141 else
6142 ac_cv_header_stdc=no
6144 rm -f conftest*
6148 if test $ac_cv_header_stdc = yes; then
6149 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6150 if test "$cross_compiling" = yes; then :
6152 else
6153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6154 /* end confdefs.h. */
6155 #include <ctype.h>
6156 #include <stdlib.h>
6157 #if ((' ' & 0x0FF) == 0x020)
6158 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6159 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6160 #else
6161 # define ISLOWER(c) \
6162 (('a' <= (c) && (c) <= 'i') \
6163 || ('j' <= (c) && (c) <= 'r') \
6164 || ('s' <= (c) && (c) <= 'z'))
6165 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6166 #endif
6168 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6170 main ()
6172 int i;
6173 for (i = 0; i < 256; i++)
6174 if (XOR (islower (i), ISLOWER (i))
6175 || toupper (i) != TOUPPER (i))
6176 return 2;
6177 return 0;
6179 _ACEOF
6180 if ac_fn_c_try_run "$LINENO"; then :
6182 else
6183 ac_cv_header_stdc=no
6185 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6186 conftest.$ac_objext conftest.beam conftest.$ac_ext
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6192 $as_echo "$ac_cv_header_stdc" >&6; }
6193 if test $ac_cv_header_stdc = yes; then
6195 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6199 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6200 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6201 inttypes.h stdint.h unistd.h
6202 do :
6203 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6204 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6206 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6207 cat >>confdefs.h <<_ACEOF
6208 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6209 _ACEOF
6213 done
6216 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6217 case $ac_cv_c_int64_t in #(
6218 no|yes) ;; #(
6221 cat >>confdefs.h <<_ACEOF
6222 #define int64_t $ac_cv_c_int64_t
6223 _ACEOF
6225 esac
6229 # Make sure we can run config.sub.
6230 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6231 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6234 $as_echo_n "checking build system type... " >&6; }
6235 if ${ac_cv_build+:} false; then :
6236 $as_echo_n "(cached) " >&6
6237 else
6238 ac_build_alias=$build_alias
6239 test "x$ac_build_alias" = x &&
6240 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6241 test "x$ac_build_alias" = x &&
6242 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6243 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6244 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6248 $as_echo "$ac_cv_build" >&6; }
6249 case $ac_cv_build in
6250 *-*-*) ;;
6251 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6252 esac
6253 build=$ac_cv_build
6254 ac_save_IFS=$IFS; IFS='-'
6255 set x $ac_cv_build
6256 shift
6257 build_cpu=$1
6258 build_vendor=$2
6259 shift; shift
6260 # Remember, the first character of IFS is used to create $*,
6261 # except with old shells:
6262 build_os=$*
6263 IFS=$ac_save_IFS
6264 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6268 $as_echo_n "checking host system type... " >&6; }
6269 if ${ac_cv_host+:} false; then :
6270 $as_echo_n "(cached) " >&6
6271 else
6272 if test "x$host_alias" = x; then
6273 ac_cv_host=$ac_cv_build
6274 else
6275 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6276 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6281 $as_echo "$ac_cv_host" >&6; }
6282 case $ac_cv_host in
6283 *-*-*) ;;
6284 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6285 esac
6286 host=$ac_cv_host
6287 ac_save_IFS=$IFS; IFS='-'
6288 set x $ac_cv_host
6289 shift
6290 host_cpu=$1
6291 host_vendor=$2
6292 shift; shift
6293 # Remember, the first character of IFS is used to create $*,
6294 # except with old shells:
6295 host_os=$*
6296 IFS=$ac_save_IFS
6297 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6300 enable_win32_dll=yes
6302 case $host in
6303 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
6304 if test -n "$ac_tool_prefix"; then
6305 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6306 set dummy ${ac_tool_prefix}as; ac_word=$2
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6308 $as_echo_n "checking for $ac_word... " >&6; }
6309 if ${ac_cv_prog_AS+:} false; then :
6310 $as_echo_n "(cached) " >&6
6311 else
6312 if test -n "$AS"; then
6313 ac_cv_prog_AS="$AS" # Let the user override the test.
6314 else
6315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6316 for as_dir in $PATH
6318 IFS=$as_save_IFS
6319 test -z "$as_dir" && as_dir=.
6320 for ac_exec_ext in '' $ac_executable_extensions; do
6321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6322 ac_cv_prog_AS="${ac_tool_prefix}as"
6323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6324 break 2
6326 done
6327 done
6328 IFS=$as_save_IFS
6332 AS=$ac_cv_prog_AS
6333 if test -n "$AS"; then
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
6335 $as_echo "$AS" >&6; }
6336 else
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6338 $as_echo "no" >&6; }
6343 if test -z "$ac_cv_prog_AS"; then
6344 ac_ct_AS=$AS
6345 # Extract the first word of "as", so it can be a program name with args.
6346 set dummy as; ac_word=$2
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6348 $as_echo_n "checking for $ac_word... " >&6; }
6349 if ${ac_cv_prog_ac_ct_AS+:} false; then :
6350 $as_echo_n "(cached) " >&6
6351 else
6352 if test -n "$ac_ct_AS"; then
6353 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6354 else
6355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6356 for as_dir in $PATH
6358 IFS=$as_save_IFS
6359 test -z "$as_dir" && as_dir=.
6360 for ac_exec_ext in '' $ac_executable_extensions; do
6361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6362 ac_cv_prog_ac_ct_AS="as"
6363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6364 break 2
6366 done
6367 done
6368 IFS=$as_save_IFS
6372 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6373 if test -n "$ac_ct_AS"; then
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
6375 $as_echo "$ac_ct_AS" >&6; }
6376 else
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6378 $as_echo "no" >&6; }
6381 if test "x$ac_ct_AS" = x; then
6382 AS="false"
6383 else
6384 case $cross_compiling:$ac_tool_warned in
6385 yes:)
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6387 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6388 ac_tool_warned=yes ;;
6389 esac
6390 AS=$ac_ct_AS
6392 else
6393 AS="$ac_cv_prog_AS"
6396 if test -n "$ac_tool_prefix"; then
6397 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6398 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6400 $as_echo_n "checking for $ac_word... " >&6; }
6401 if ${ac_cv_prog_DLLTOOL+:} false; then :
6402 $as_echo_n "(cached) " >&6
6403 else
6404 if test -n "$DLLTOOL"; then
6405 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6406 else
6407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6408 for as_dir in $PATH
6410 IFS=$as_save_IFS
6411 test -z "$as_dir" && as_dir=.
6412 for ac_exec_ext in '' $ac_executable_extensions; do
6413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6414 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6416 break 2
6418 done
6419 done
6420 IFS=$as_save_IFS
6424 DLLTOOL=$ac_cv_prog_DLLTOOL
6425 if test -n "$DLLTOOL"; then
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6427 $as_echo "$DLLTOOL" >&6; }
6428 else
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6430 $as_echo "no" >&6; }
6435 if test -z "$ac_cv_prog_DLLTOOL"; then
6436 ac_ct_DLLTOOL=$DLLTOOL
6437 # Extract the first word of "dlltool", so it can be a program name with args.
6438 set dummy dlltool; ac_word=$2
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6440 $as_echo_n "checking for $ac_word... " >&6; }
6441 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6442 $as_echo_n "(cached) " >&6
6443 else
6444 if test -n "$ac_ct_DLLTOOL"; then
6445 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6446 else
6447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6448 for as_dir in $PATH
6450 IFS=$as_save_IFS
6451 test -z "$as_dir" && as_dir=.
6452 for ac_exec_ext in '' $ac_executable_extensions; do
6453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6454 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6456 break 2
6458 done
6459 done
6460 IFS=$as_save_IFS
6464 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6465 if test -n "$ac_ct_DLLTOOL"; then
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6467 $as_echo "$ac_ct_DLLTOOL" >&6; }
6468 else
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6470 $as_echo "no" >&6; }
6473 if test "x$ac_ct_DLLTOOL" = x; then
6474 DLLTOOL="false"
6475 else
6476 case $cross_compiling:$ac_tool_warned in
6477 yes:)
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6479 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6480 ac_tool_warned=yes ;;
6481 esac
6482 DLLTOOL=$ac_ct_DLLTOOL
6484 else
6485 DLLTOOL="$ac_cv_prog_DLLTOOL"
6488 if test -n "$ac_tool_prefix"; then
6489 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6490 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6492 $as_echo_n "checking for $ac_word... " >&6; }
6493 if ${ac_cv_prog_OBJDUMP+:} false; then :
6494 $as_echo_n "(cached) " >&6
6495 else
6496 if test -n "$OBJDUMP"; then
6497 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6498 else
6499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6500 for as_dir in $PATH
6502 IFS=$as_save_IFS
6503 test -z "$as_dir" && as_dir=.
6504 for ac_exec_ext in '' $ac_executable_extensions; do
6505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6506 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6508 break 2
6510 done
6511 done
6512 IFS=$as_save_IFS
6516 OBJDUMP=$ac_cv_prog_OBJDUMP
6517 if test -n "$OBJDUMP"; then
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6519 $as_echo "$OBJDUMP" >&6; }
6520 else
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6522 $as_echo "no" >&6; }
6527 if test -z "$ac_cv_prog_OBJDUMP"; then
6528 ac_ct_OBJDUMP=$OBJDUMP
6529 # Extract the first word of "objdump", so it can be a program name with args.
6530 set dummy objdump; ac_word=$2
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6532 $as_echo_n "checking for $ac_word... " >&6; }
6533 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6534 $as_echo_n "(cached) " >&6
6535 else
6536 if test -n "$ac_ct_OBJDUMP"; then
6537 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6538 else
6539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6540 for as_dir in $PATH
6542 IFS=$as_save_IFS
6543 test -z "$as_dir" && as_dir=.
6544 for ac_exec_ext in '' $ac_executable_extensions; do
6545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6546 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6548 break 2
6550 done
6551 done
6552 IFS=$as_save_IFS
6556 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6557 if test -n "$ac_ct_OBJDUMP"; then
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6559 $as_echo "$ac_ct_OBJDUMP" >&6; }
6560 else
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6562 $as_echo "no" >&6; }
6565 if test "x$ac_ct_OBJDUMP" = x; then
6566 OBJDUMP="false"
6567 else
6568 case $cross_compiling:$ac_tool_warned in
6569 yes:)
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6571 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6572 ac_tool_warned=yes ;;
6573 esac
6574 OBJDUMP=$ac_ct_OBJDUMP
6576 else
6577 OBJDUMP="$ac_cv_prog_OBJDUMP"
6581 esac
6583 test -z "$AS" && AS=as
6589 test -z "$DLLTOOL" && DLLTOOL=dlltool
6595 test -z "$OBJDUMP" && OBJDUMP=objdump
6603 case `pwd` in
6604 *\ * | *\ *)
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6606 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6607 esac
6611 macro_version='2.4.6.42-b88ce'
6612 macro_revision='2.4.6.42'
6626 ltmain=$ac_aux_dir/ltmain.sh
6628 # Backslashify metacharacters that are still active within
6629 # double-quoted strings.
6630 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6632 # Same as above, but do not quote variable references.
6633 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6635 # Sed substitution to delay expansion of an escaped shell variable in a
6636 # double_quote_subst'ed string.
6637 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6639 # Sed substitution to delay expansion of an escaped single quote.
6640 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6642 # Sed substitution to avoid accidental globbing in evaled expressions
6643 no_glob_subst='s/\*/\\\*/g'
6645 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6646 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6647 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6650 $as_echo_n "checking how to print strings... " >&6; }
6651 # Test print first, because it will be a builtin if present.
6652 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6653 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6654 ECHO='print -r --'
6655 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6656 ECHO='printf %s\n'
6657 else
6658 # Use this function as a fallback that always works.
6659 func_fallback_echo ()
6661 eval 'cat <<_LTECHO_EOF
6663 _LTECHO_EOF'
6665 ECHO='func_fallback_echo'
6668 # func_echo_all arg...
6669 # Invoke $ECHO with all args, space-separated.
6670 func_echo_all ()
6672 $ECHO ""
6675 case $ECHO in
6676 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6677 $as_echo "printf" >&6; } ;;
6678 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6679 $as_echo "print -r" >&6; } ;;
6680 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6681 $as_echo "cat" >&6; } ;;
6682 esac
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6698 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6699 if ${ac_cv_path_SED+:} false; then :
6700 $as_echo_n "(cached) " >&6
6701 else
6702 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6703 for ac_i in 1 2 3 4 5 6 7; do
6704 ac_script="$ac_script$as_nl$ac_script"
6705 done
6706 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6707 { ac_script=; unset ac_script;}
6708 if test -z "$SED"; then
6709 ac_path_SED_found=false
6710 # Loop through the user's path and test for each of PROGNAME-LIST
6711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6712 for as_dir in $PATH
6714 IFS=$as_save_IFS
6715 test -z "$as_dir" && as_dir=.
6716 for ac_prog in sed gsed; do
6717 for ac_exec_ext in '' $ac_executable_extensions; do
6718 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6719 as_fn_executable_p "$ac_path_SED" || continue
6720 # Check for GNU ac_path_SED and select it if it is found.
6721 # Check for GNU $ac_path_SED
6722 case `"$ac_path_SED" --version 2>&1` in
6723 *GNU*)
6724 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6726 ac_count=0
6727 $as_echo_n 0123456789 >"conftest.in"
6728 while :
6730 cat "conftest.in" "conftest.in" >"conftest.tmp"
6731 mv "conftest.tmp" "conftest.in"
6732 cp "conftest.in" "conftest.nl"
6733 $as_echo '' >> "conftest.nl"
6734 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6735 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6736 as_fn_arith $ac_count + 1 && ac_count=$as_val
6737 if test $ac_count -gt ${ac_path_SED_max-0}; then
6738 # Best one so far, save it but keep looking for a better one
6739 ac_cv_path_SED="$ac_path_SED"
6740 ac_path_SED_max=$ac_count
6742 # 10*(2^10) chars as input seems more than enough
6743 test $ac_count -gt 10 && break
6744 done
6745 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6746 esac
6748 $ac_path_SED_found && break 3
6749 done
6750 done
6751 done
6752 IFS=$as_save_IFS
6753 if test -z "$ac_cv_path_SED"; then
6754 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6756 else
6757 ac_cv_path_SED=$SED
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6762 $as_echo "$ac_cv_path_SED" >&6; }
6763 SED="$ac_cv_path_SED"
6764 rm -f conftest.sed
6766 test -z "$SED" && SED=sed
6767 Xsed="$SED -e 1s/^X//"
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6780 $as_echo_n "checking for fgrep... " >&6; }
6781 if ${ac_cv_path_FGREP+:} false; then :
6782 $as_echo_n "(cached) " >&6
6783 else
6784 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6785 then ac_cv_path_FGREP="$GREP -F"
6786 else
6787 if test -z "$FGREP"; then
6788 ac_path_FGREP_found=false
6789 # Loop through the user's path and test for each of PROGNAME-LIST
6790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6791 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6793 IFS=$as_save_IFS
6794 test -z "$as_dir" && as_dir=.
6795 for ac_prog in fgrep; do
6796 for ac_exec_ext in '' $ac_executable_extensions; do
6797 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6798 as_fn_executable_p "$ac_path_FGREP" || continue
6799 # Check for GNU ac_path_FGREP and select it if it is found.
6800 # Check for GNU $ac_path_FGREP
6801 case `"$ac_path_FGREP" --version 2>&1` in
6802 *GNU*)
6803 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6805 ac_count=0
6806 $as_echo_n 0123456789 >"conftest.in"
6807 while :
6809 cat "conftest.in" "conftest.in" >"conftest.tmp"
6810 mv "conftest.tmp" "conftest.in"
6811 cp "conftest.in" "conftest.nl"
6812 $as_echo 'FGREP' >> "conftest.nl"
6813 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6814 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6815 as_fn_arith $ac_count + 1 && ac_count=$as_val
6816 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6817 # Best one so far, save it but keep looking for a better one
6818 ac_cv_path_FGREP="$ac_path_FGREP"
6819 ac_path_FGREP_max=$ac_count
6821 # 10*(2^10) chars as input seems more than enough
6822 test $ac_count -gt 10 && break
6823 done
6824 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6825 esac
6827 $ac_path_FGREP_found && break 3
6828 done
6829 done
6830 done
6831 IFS=$as_save_IFS
6832 if test -z "$ac_cv_path_FGREP"; then
6833 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6835 else
6836 ac_cv_path_FGREP=$FGREP
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6842 $as_echo "$ac_cv_path_FGREP" >&6; }
6843 FGREP="$ac_cv_path_FGREP"
6846 test -z "$GREP" && GREP=grep
6866 # Check whether --with-gnu-ld was given.
6867 if test "${with_gnu_ld+set}" = set; then :
6868 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6869 else
6870 with_gnu_ld=no
6873 ac_prog=ld
6874 if test yes = "$GCC"; then
6875 # Check if gcc -print-prog-name=ld gives a path.
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6877 $as_echo_n "checking for ld used by $CC... " >&6; }
6878 case $host in
6879 *-*-mingw*)
6880 # gcc leaves a trailing carriage return, which upsets mingw
6881 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6883 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6884 esac
6885 case $ac_prog in
6886 # Accept absolute paths.
6887 [\\/]* | ?:[\\/]*)
6888 re_direlt='/[^/][^/]*/\.\./'
6889 # Canonicalize the pathname of ld
6890 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6891 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6892 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6893 done
6894 test -z "$LD" && LD=$ac_prog
6897 # If it fails, then pretend we aren't using GCC.
6898 ac_prog=ld
6901 # If it is relative, then search for the first ld in PATH.
6902 with_gnu_ld=unknown
6904 esac
6905 elif test yes = "$with_gnu_ld"; then
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6907 $as_echo_n "checking for GNU ld... " >&6; }
6908 else
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6910 $as_echo_n "checking for non-GNU ld... " >&6; }
6912 if ${lt_cv_path_LD+:} false; then :
6913 $as_echo_n "(cached) " >&6
6914 else
6915 if test -z "$LD"; then
6916 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6917 for ac_dir in $PATH; do
6918 IFS=$lt_save_ifs
6919 test -z "$ac_dir" && ac_dir=.
6920 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6921 lt_cv_path_LD=$ac_dir/$ac_prog
6922 # Check to see if the program is GNU ld. I'd rather use --version,
6923 # but apparently some variants of GNU ld only accept -v.
6924 # Break only if it was the GNU/non-GNU ld that we prefer.
6925 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6926 *GNU* | *'with BFD'*)
6927 test no != "$with_gnu_ld" && break
6930 test yes != "$with_gnu_ld" && break
6932 esac
6934 done
6935 IFS=$lt_save_ifs
6936 else
6937 lt_cv_path_LD=$LD # Let the user override the test with a path.
6941 LD=$lt_cv_path_LD
6942 if test -n "$LD"; then
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6944 $as_echo "$LD" >&6; }
6945 else
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6947 $as_echo "no" >&6; }
6949 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6951 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6952 if ${lt_cv_prog_gnu_ld+:} false; then :
6953 $as_echo_n "(cached) " >&6
6954 else
6955 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6956 case `$LD -v 2>&1 </dev/null` in
6957 *GNU* | *'with BFD'*)
6958 lt_cv_prog_gnu_ld=yes
6961 lt_cv_prog_gnu_ld=no
6963 esac
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6966 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6967 with_gnu_ld=$lt_cv_prog_gnu_ld
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6978 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6979 if ${lt_cv_path_NM+:} false; then :
6980 $as_echo_n "(cached) " >&6
6981 else
6982 if test -n "$NM"; then
6983 # Let the user override the test.
6984 lt_cv_path_NM=$NM
6985 else
6986 lt_nm_to_check=${ac_tool_prefix}nm
6987 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6988 lt_nm_to_check="$lt_nm_to_check nm"
6990 for lt_tmp_nm in $lt_nm_to_check; do
6991 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6992 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6993 IFS=$lt_save_ifs
6994 test -z "$ac_dir" && ac_dir=.
6995 tmp_nm=$ac_dir/$lt_tmp_nm
6996 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6997 # Check to see if the nm accepts a BSD-compat flag.
6998 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6999 # nm: unknown option "B" ignored
7000 # Tru64's nm complains that /dev/null is an invalid object file
7001 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7002 case $build_os in
7003 mingw*) lt_bad_file=conftest.nm/nofile ;;
7004 *) lt_bad_file=/dev/null ;;
7005 esac
7006 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7007 *$lt_bad_file* | *'Invalid file or object type'*)
7008 lt_cv_path_NM="$tmp_nm -B"
7009 break 2
7012 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7013 */dev/null*)
7014 lt_cv_path_NM="$tmp_nm -p"
7015 break 2
7018 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7019 continue # so that we can try to find one that supports BSD flags
7021 esac
7023 esac
7025 done
7026 IFS=$lt_save_ifs
7027 done
7028 : ${lt_cv_path_NM=no}
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7032 $as_echo "$lt_cv_path_NM" >&6; }
7033 if test no != "$lt_cv_path_NM"; then
7034 NM=$lt_cv_path_NM
7035 else
7036 # Didn't find any BSD compatible name lister, look for dumpbin.
7037 if test -n "$DUMPBIN"; then :
7038 # Let the user override the test.
7039 else
7040 if test -n "$ac_tool_prefix"; then
7041 for ac_prog in dumpbin "link -dump"
7043 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7044 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7046 $as_echo_n "checking for $ac_word... " >&6; }
7047 if ${ac_cv_prog_DUMPBIN+:} false; then :
7048 $as_echo_n "(cached) " >&6
7049 else
7050 if test -n "$DUMPBIN"; then
7051 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7052 else
7053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7054 for as_dir in $PATH
7056 IFS=$as_save_IFS
7057 test -z "$as_dir" && as_dir=.
7058 for ac_exec_ext in '' $ac_executable_extensions; do
7059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7060 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7062 break 2
7064 done
7065 done
7066 IFS=$as_save_IFS
7070 DUMPBIN=$ac_cv_prog_DUMPBIN
7071 if test -n "$DUMPBIN"; then
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7073 $as_echo "$DUMPBIN" >&6; }
7074 else
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7076 $as_echo "no" >&6; }
7080 test -n "$DUMPBIN" && break
7081 done
7083 if test -z "$DUMPBIN"; then
7084 ac_ct_DUMPBIN=$DUMPBIN
7085 for ac_prog in dumpbin "link -dump"
7087 # Extract the first word of "$ac_prog", so it can be a program name with args.
7088 set dummy $ac_prog; ac_word=$2
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7090 $as_echo_n "checking for $ac_word... " >&6; }
7091 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7092 $as_echo_n "(cached) " >&6
7093 else
7094 if test -n "$ac_ct_DUMPBIN"; then
7095 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7096 else
7097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7098 for as_dir in $PATH
7100 IFS=$as_save_IFS
7101 test -z "$as_dir" && as_dir=.
7102 for ac_exec_ext in '' $ac_executable_extensions; do
7103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7104 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7106 break 2
7108 done
7109 done
7110 IFS=$as_save_IFS
7114 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7115 if test -n "$ac_ct_DUMPBIN"; then
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7117 $as_echo "$ac_ct_DUMPBIN" >&6; }
7118 else
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7120 $as_echo "no" >&6; }
7124 test -n "$ac_ct_DUMPBIN" && break
7125 done
7127 if test "x$ac_ct_DUMPBIN" = x; then
7128 DUMPBIN=":"
7129 else
7130 case $cross_compiling:$ac_tool_warned in
7131 yes:)
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7133 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7134 ac_tool_warned=yes ;;
7135 esac
7136 DUMPBIN=$ac_ct_DUMPBIN
7140 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
7141 *COFF*)
7142 DUMPBIN="$DUMPBIN -symbols -headers"
7145 DUMPBIN=:
7147 esac
7150 if test : != "$DUMPBIN"; then
7151 NM=$DUMPBIN
7154 test -z "$NM" && NM=nm
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7162 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7163 if ${lt_cv_nm_interface+:} false; then :
7164 $as_echo_n "(cached) " >&6
7165 else
7166 lt_cv_nm_interface="BSD nm"
7167 echo "int some_variable = 0;" > conftest.$ac_ext
7168 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7169 (eval "$ac_compile" 2>conftest.err)
7170 cat conftest.err >&5
7171 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7172 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7173 cat conftest.err >&5
7174 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7175 cat conftest.out >&5
7176 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7177 lt_cv_nm_interface="MS dumpbin"
7179 rm -f conftest*
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7182 $as_echo "$lt_cv_nm_interface" >&6; }
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7185 $as_echo_n "checking whether ln -s works... " >&6; }
7186 LN_S=$as_ln_s
7187 if test "$LN_S" = "ln -s"; then
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7189 $as_echo "yes" >&6; }
7190 else
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7192 $as_echo "no, using $LN_S" >&6; }
7195 # find the maximum length of command line arguments
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7197 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7198 if ${lt_cv_sys_max_cmd_len+:} false; then :
7199 $as_echo_n "(cached) " >&6
7200 else
7202 teststring=ABCD
7204 case $build_os in
7205 msdosdjgpp*)
7206 # On DJGPP, this test can blow up pretty badly due to problems in libc
7207 # (any single argument exceeding 2000 bytes causes a buffer overrun
7208 # during glob expansion). Even if it were fixed, the result of this
7209 # check would be larger than it should be.
7210 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7213 gnu*)
7214 # Under GNU Hurd, this test is not required because there is
7215 # no limit to the length of command line arguments.
7216 # Libtool will interpret -1 as no limit whatsoever
7217 lt_cv_sys_max_cmd_len=-1;
7220 cygwin* | mingw* | cegcc*)
7221 # On Win9x/ME, this test blows up -- it succeeds, but takes
7222 # about 5 minutes as the teststring grows exponentially.
7223 # Worse, since 9x/ME are not pre-emptively multitasking,
7224 # you end up with a "frozen" computer, even though with patience
7225 # the test eventually succeeds (with a max line length of 256k).
7226 # Instead, let's just punt: use the minimum linelength reported by
7227 # all of the supported platforms: 8192 (on NT/2K/XP).
7228 lt_cv_sys_max_cmd_len=8192;
7231 mint*)
7232 # On MiNT this can take a long time and run out of memory.
7233 lt_cv_sys_max_cmd_len=8192;
7236 amigaos*)
7237 # On AmigaOS with pdksh, this test takes hours, literally.
7238 # So we just punt and use a minimum line length of 8192.
7239 lt_cv_sys_max_cmd_len=8192;
7242 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
7243 # This has been around since 386BSD, at least. Likely further.
7244 if test -x /sbin/sysctl; then
7245 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7246 elif test -x /usr/sbin/sysctl; then
7247 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7248 else
7249 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7251 # And add a safety zone
7252 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7253 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7256 interix*)
7257 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7258 lt_cv_sys_max_cmd_len=196608
7261 os2*)
7262 # The test takes a long time on OS/2.
7263 lt_cv_sys_max_cmd_len=8192
7266 osf*)
7267 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7268 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7269 # nice to cause kernel panics so lets avoid the loop below.
7270 # First set a reasonable default.
7271 lt_cv_sys_max_cmd_len=16384
7273 if test -x /sbin/sysconfig; then
7274 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7275 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7276 esac
7279 sco3.2v5*)
7280 lt_cv_sys_max_cmd_len=102400
7282 sysv5* | sco5v6* | sysv4.2uw2*)
7283 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7284 if test -n "$kargmax"; then
7285 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7286 else
7287 lt_cv_sys_max_cmd_len=32768
7291 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7292 if test -n "$lt_cv_sys_max_cmd_len" && \
7293 test undefined != "$lt_cv_sys_max_cmd_len"; then
7294 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7295 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7296 else
7297 # Make teststring a little bigger before we do anything with it.
7298 # a 1K string should be a reasonable start.
7299 for i in 1 2 3 4 5 6 7 8; do
7300 teststring=$teststring$teststring
7301 done
7302 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7303 # If test is not a shell built-in, we'll probably end up computing a
7304 # maximum length that is only half of the actual maximum length, but
7305 # we can't tell.
7306 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7307 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7308 test 17 != "$i" # 1/2 MB should be enough
7310 i=`expr $i + 1`
7311 teststring=$teststring$teststring
7312 done
7313 # Only check the string length outside the loop.
7314 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7315 teststring=
7316 # Add a significant safety factor because C++ compilers can tack on
7317 # massive amounts of additional arguments before passing them to the
7318 # linker. It appears as though 1/2 is a usable value.
7319 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7322 esac
7326 if test -n "$lt_cv_sys_max_cmd_len"; then
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7328 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7329 else
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7331 $as_echo "none" >&6; }
7333 max_cmd_len=$lt_cv_sys_max_cmd_len
7340 : ${CP="cp -f"}
7341 : ${MV="mv -f"}
7342 : ${RM="rm -f"}
7344 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7345 lt_unset=unset
7346 else
7347 lt_unset=false
7354 # test EBCDIC or ASCII
7355 case `echo X|tr X '\101'` in
7356 A) # ASCII based system
7357 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7358 lt_SP2NL='tr \040 \012'
7359 lt_NL2SP='tr \015\012 \040\040'
7361 *) # EBCDIC based system
7362 lt_SP2NL='tr \100 \n'
7363 lt_NL2SP='tr \r\n \100\100'
7365 esac
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7376 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7377 if ${lt_cv_to_host_file_cmd+:} false; then :
7378 $as_echo_n "(cached) " >&6
7379 else
7380 case $host in
7381 *-*-mingw* )
7382 case $build in
7383 *-*-mingw* ) # actually msys
7384 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7386 *-*-cygwin* )
7387 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7389 * ) # otherwise, assume *nix
7390 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7392 esac
7394 *-*-cygwin* )
7395 case $build in
7396 *-*-mingw* ) # actually msys
7397 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7399 *-*-cygwin* )
7400 lt_cv_to_host_file_cmd=func_convert_file_noop
7402 * ) # otherwise, assume *nix
7403 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7405 esac
7407 * ) # unhandled hosts (and "normal" native builds)
7408 lt_cv_to_host_file_cmd=func_convert_file_noop
7410 esac
7414 to_host_file_cmd=$lt_cv_to_host_file_cmd
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7416 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7423 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7424 if ${lt_cv_to_tool_file_cmd+:} false; then :
7425 $as_echo_n "(cached) " >&6
7426 else
7427 #assume ordinary cross tools, or native build.
7428 lt_cv_to_tool_file_cmd=func_convert_file_noop
7429 case $host in
7430 *-*-mingw* )
7431 case $build in
7432 *-*-mingw* ) # actually msys
7433 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7435 esac
7437 esac
7441 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7443 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7450 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7451 if ${lt_cv_ld_reload_flag+:} false; then :
7452 $as_echo_n "(cached) " >&6
7453 else
7454 lt_cv_ld_reload_flag='-r'
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7457 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7458 reload_flag=$lt_cv_ld_reload_flag
7459 case $reload_flag in
7460 "" | " "*) ;;
7461 *) reload_flag=" $reload_flag" ;;
7462 esac
7463 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7464 case $host_os in
7465 cygwin* | mingw* | pw32* | cegcc*)
7466 if test yes != "$GCC"; then
7467 reload_cmds=false
7470 darwin*)
7471 if test yes = "$GCC"; then
7472 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7473 else
7474 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7477 esac
7487 if test -n "$ac_tool_prefix"; then
7488 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7489 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7491 $as_echo_n "checking for $ac_word... " >&6; }
7492 if ${ac_cv_prog_OBJDUMP+:} false; then :
7493 $as_echo_n "(cached) " >&6
7494 else
7495 if test -n "$OBJDUMP"; then
7496 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7497 else
7498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7499 for as_dir in $PATH
7501 IFS=$as_save_IFS
7502 test -z "$as_dir" && as_dir=.
7503 for ac_exec_ext in '' $ac_executable_extensions; do
7504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7505 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7507 break 2
7509 done
7510 done
7511 IFS=$as_save_IFS
7515 OBJDUMP=$ac_cv_prog_OBJDUMP
7516 if test -n "$OBJDUMP"; then
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7518 $as_echo "$OBJDUMP" >&6; }
7519 else
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7521 $as_echo "no" >&6; }
7526 if test -z "$ac_cv_prog_OBJDUMP"; then
7527 ac_ct_OBJDUMP=$OBJDUMP
7528 # Extract the first word of "objdump", so it can be a program name with args.
7529 set dummy objdump; ac_word=$2
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7531 $as_echo_n "checking for $ac_word... " >&6; }
7532 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7533 $as_echo_n "(cached) " >&6
7534 else
7535 if test -n "$ac_ct_OBJDUMP"; then
7536 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7537 else
7538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7539 for as_dir in $PATH
7541 IFS=$as_save_IFS
7542 test -z "$as_dir" && as_dir=.
7543 for ac_exec_ext in '' $ac_executable_extensions; do
7544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7545 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7547 break 2
7549 done
7550 done
7551 IFS=$as_save_IFS
7555 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7556 if test -n "$ac_ct_OBJDUMP"; then
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7558 $as_echo "$ac_ct_OBJDUMP" >&6; }
7559 else
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7561 $as_echo "no" >&6; }
7564 if test "x$ac_ct_OBJDUMP" = x; then
7565 OBJDUMP="false"
7566 else
7567 case $cross_compiling:$ac_tool_warned in
7568 yes:)
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7570 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7571 ac_tool_warned=yes ;;
7572 esac
7573 OBJDUMP=$ac_ct_OBJDUMP
7575 else
7576 OBJDUMP="$ac_cv_prog_OBJDUMP"
7579 test -z "$OBJDUMP" && OBJDUMP=objdump
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7587 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7588 if ${lt_cv_deplibs_check_method+:} false; then :
7589 $as_echo_n "(cached) " >&6
7590 else
7591 lt_cv_file_magic_cmd='$MAGIC_CMD'
7592 lt_cv_file_magic_test_file=
7593 lt_cv_deplibs_check_method='unknown'
7594 # Need to set the preceding variable on all platforms that support
7595 # interlibrary dependencies.
7596 # 'none' -- dependencies not supported.
7597 # 'unknown' -- same as none, but documents that we really don't know.
7598 # 'pass_all' -- all dependencies passed with no checks.
7599 # 'test_compile' -- check by making test program.
7600 # 'file_magic [[regex]]' -- check by looking for files in library path
7601 # that responds to the $file_magic_cmd with a given extended regex.
7602 # If you have 'file' or equivalent on your system and you're not sure
7603 # whether 'pass_all' will *always* work, you probably want this one.
7605 case $host_os in
7606 aix[4-9]*)
7607 lt_cv_deplibs_check_method=pass_all
7610 beos*)
7611 lt_cv_deplibs_check_method=pass_all
7614 bsdi[45]*)
7615 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7616 lt_cv_file_magic_cmd='/usr/bin/file -L'
7617 lt_cv_file_magic_test_file=/shlib/libc.so
7620 cygwin*)
7621 # func_win32_libid is a shell function defined in ltmain.sh
7622 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7623 lt_cv_file_magic_cmd='func_win32_libid'
7626 mingw* | pw32*)
7627 # Base MSYS/MinGW do not provide the 'file' command needed by
7628 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7629 # unless we find 'file', for example because we are cross-compiling.
7630 if ( file / ) >/dev/null 2>&1; then
7631 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7632 lt_cv_file_magic_cmd='func_win32_libid'
7633 else
7634 # Keep this pattern in sync with the one in func_win32_libid.
7635 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7636 lt_cv_file_magic_cmd='$OBJDUMP -f'
7640 cegcc*)
7641 # use the weaker test based on 'objdump'. See mingw*.
7642 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7643 lt_cv_file_magic_cmd='$OBJDUMP -f'
7646 darwin* | rhapsody*)
7647 lt_cv_deplibs_check_method=pass_all
7650 freebsd* | dragonfly*)
7651 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7652 case $host_cpu in
7653 i*86 )
7654 # Not sure whether the presence of OpenBSD here was a mistake.
7655 # Let's accept both of them until this is cleared up.
7656 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7657 lt_cv_file_magic_cmd=/usr/bin/file
7658 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7660 esac
7661 else
7662 lt_cv_deplibs_check_method=pass_all
7666 haiku*)
7667 lt_cv_deplibs_check_method=pass_all
7670 hpux10.20* | hpux11*)
7671 lt_cv_file_magic_cmd=/usr/bin/file
7672 case $host_cpu in
7673 ia64*)
7674 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7675 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7677 hppa*64*)
7678 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]'
7679 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7682 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7683 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7685 esac
7688 interix[3-9]*)
7689 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7690 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7693 irix5* | irix6* | nonstopux*)
7694 case $LD in
7695 *-32|*"-32 ") libmagic=32-bit;;
7696 *-n32|*"-n32 ") libmagic=N32;;
7697 *-64|*"-64 ") libmagic=64-bit;;
7698 *) libmagic=never-match;;
7699 esac
7700 lt_cv_deplibs_check_method=pass_all
7703 # This must be glibc/ELF.
7704 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7705 lt_cv_deplibs_check_method=pass_all
7708 netbsd*)
7709 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7710 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7711 else
7712 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7716 newos6*)
7717 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7718 lt_cv_file_magic_cmd=/usr/bin/file
7719 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7722 *nto* | *qnx*)
7723 lt_cv_deplibs_check_method=pass_all
7726 openbsd* | bitrig*)
7727 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7728 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7729 else
7730 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7734 osf3* | osf4* | osf5*)
7735 lt_cv_deplibs_check_method=pass_all
7738 rdos*)
7739 lt_cv_deplibs_check_method=pass_all
7742 solaris*)
7743 lt_cv_deplibs_check_method=pass_all
7746 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7747 lt_cv_deplibs_check_method=pass_all
7750 sysv4 | sysv4.3*)
7751 case $host_vendor in
7752 motorola)
7753 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]'
7754 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7756 ncr)
7757 lt_cv_deplibs_check_method=pass_all
7759 sequent)
7760 lt_cv_file_magic_cmd='/bin/file'
7761 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7763 sni)
7764 lt_cv_file_magic_cmd='/bin/file'
7765 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7766 lt_cv_file_magic_test_file=/lib/libc.so
7768 siemens)
7769 lt_cv_deplibs_check_method=pass_all
7772 lt_cv_deplibs_check_method=pass_all
7774 esac
7777 tpf*)
7778 lt_cv_deplibs_check_method=pass_all
7780 os2*)
7781 lt_cv_deplibs_check_method=pass_all
7783 esac
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7787 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7789 file_magic_glob=
7790 want_nocaseglob=no
7791 if test "$build" = "$host"; then
7792 case $host_os in
7793 mingw* | pw32*)
7794 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7795 want_nocaseglob=yes
7796 else
7797 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7800 esac
7803 file_magic_cmd=$lt_cv_file_magic_cmd
7804 deplibs_check_method=$lt_cv_deplibs_check_method
7805 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7828 if test -n "$ac_tool_prefix"; then
7829 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7830 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7832 $as_echo_n "checking for $ac_word... " >&6; }
7833 if ${ac_cv_prog_DLLTOOL+:} false; then :
7834 $as_echo_n "(cached) " >&6
7835 else
7836 if test -n "$DLLTOOL"; then
7837 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7838 else
7839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7840 for as_dir in $PATH
7842 IFS=$as_save_IFS
7843 test -z "$as_dir" && as_dir=.
7844 for ac_exec_ext in '' $ac_executable_extensions; do
7845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7846 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7848 break 2
7850 done
7851 done
7852 IFS=$as_save_IFS
7856 DLLTOOL=$ac_cv_prog_DLLTOOL
7857 if test -n "$DLLTOOL"; then
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7859 $as_echo "$DLLTOOL" >&6; }
7860 else
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7862 $as_echo "no" >&6; }
7867 if test -z "$ac_cv_prog_DLLTOOL"; then
7868 ac_ct_DLLTOOL=$DLLTOOL
7869 # Extract the first word of "dlltool", so it can be a program name with args.
7870 set dummy dlltool; ac_word=$2
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7872 $as_echo_n "checking for $ac_word... " >&6; }
7873 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7874 $as_echo_n "(cached) " >&6
7875 else
7876 if test -n "$ac_ct_DLLTOOL"; then
7877 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7878 else
7879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7880 for as_dir in $PATH
7882 IFS=$as_save_IFS
7883 test -z "$as_dir" && as_dir=.
7884 for ac_exec_ext in '' $ac_executable_extensions; do
7885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7886 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7888 break 2
7890 done
7891 done
7892 IFS=$as_save_IFS
7896 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7897 if test -n "$ac_ct_DLLTOOL"; then
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7899 $as_echo "$ac_ct_DLLTOOL" >&6; }
7900 else
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7902 $as_echo "no" >&6; }
7905 if test "x$ac_ct_DLLTOOL" = x; then
7906 DLLTOOL="false"
7907 else
7908 case $cross_compiling:$ac_tool_warned in
7909 yes:)
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7911 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7912 ac_tool_warned=yes ;;
7913 esac
7914 DLLTOOL=$ac_ct_DLLTOOL
7916 else
7917 DLLTOOL="$ac_cv_prog_DLLTOOL"
7920 test -z "$DLLTOOL" && DLLTOOL=dlltool
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7929 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7930 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7931 $as_echo_n "(cached) " >&6
7932 else
7933 lt_cv_sharedlib_from_linklib_cmd='unknown'
7935 case $host_os in
7936 cygwin* | mingw* | pw32* | cegcc*)
7937 # two different shell functions defined in ltmain.sh;
7938 # decide which one to use based on capabilities of $DLLTOOL
7939 case `$DLLTOOL --help 2>&1` in
7940 *--identify-strict*)
7941 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7944 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7946 esac
7949 # fallback: assume linklib IS sharedlib
7950 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7952 esac
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7956 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7957 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7958 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7966 if test -n "$ac_tool_prefix"; then
7967 for ac_prog in ar
7969 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7970 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7972 $as_echo_n "checking for $ac_word... " >&6; }
7973 if ${ac_cv_prog_AR+:} false; then :
7974 $as_echo_n "(cached) " >&6
7975 else
7976 if test -n "$AR"; then
7977 ac_cv_prog_AR="$AR" # Let the user override the test.
7978 else
7979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7980 for as_dir in $PATH
7982 IFS=$as_save_IFS
7983 test -z "$as_dir" && as_dir=.
7984 for ac_exec_ext in '' $ac_executable_extensions; do
7985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7986 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7988 break 2
7990 done
7991 done
7992 IFS=$as_save_IFS
7996 AR=$ac_cv_prog_AR
7997 if test -n "$AR"; then
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7999 $as_echo "$AR" >&6; }
8000 else
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8002 $as_echo "no" >&6; }
8006 test -n "$AR" && break
8007 done
8009 if test -z "$AR"; then
8010 ac_ct_AR=$AR
8011 for ac_prog in ar
8013 # Extract the first word of "$ac_prog", so it can be a program name with args.
8014 set dummy $ac_prog; ac_word=$2
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8016 $as_echo_n "checking for $ac_word... " >&6; }
8017 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8018 $as_echo_n "(cached) " >&6
8019 else
8020 if test -n "$ac_ct_AR"; then
8021 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8022 else
8023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8024 for as_dir in $PATH
8026 IFS=$as_save_IFS
8027 test -z "$as_dir" && as_dir=.
8028 for ac_exec_ext in '' $ac_executable_extensions; do
8029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8030 ac_cv_prog_ac_ct_AR="$ac_prog"
8031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8032 break 2
8034 done
8035 done
8036 IFS=$as_save_IFS
8040 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8041 if test -n "$ac_ct_AR"; then
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8043 $as_echo "$ac_ct_AR" >&6; }
8044 else
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8046 $as_echo "no" >&6; }
8050 test -n "$ac_ct_AR" && break
8051 done
8053 if test "x$ac_ct_AR" = x; then
8054 AR="false"
8055 else
8056 case $cross_compiling:$ac_tool_warned in
8057 yes:)
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8059 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8060 ac_tool_warned=yes ;;
8061 esac
8062 AR=$ac_ct_AR
8066 : ${AR=ar}
8073 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
8074 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
8075 # higher priority because thats what people were doing historically (setting
8076 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
8077 # variable obsoleted/removed.
8079 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
8080 lt_ar_flags=$AR_FLAGS
8087 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
8088 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8096 $as_echo_n "checking for archiver @FILE support... " >&6; }
8097 if ${lt_cv_ar_at_file+:} false; then :
8098 $as_echo_n "(cached) " >&6
8099 else
8100 lt_cv_ar_at_file=no
8101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8102 /* end confdefs.h. */
8105 main ()
8109 return 0;
8111 _ACEOF
8112 if ac_fn_c_try_compile "$LINENO"; then :
8113 echo conftest.$ac_objext > conftest.lst
8114 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8115 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8116 (eval $lt_ar_try) 2>&5
8117 ac_status=$?
8118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8119 test $ac_status = 0; }
8120 if test 0 -eq "$ac_status"; then
8121 # Ensure the archiver fails upon bogus file names.
8122 rm -f conftest.$ac_objext libconftest.a
8123 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8124 (eval $lt_ar_try) 2>&5
8125 ac_status=$?
8126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8127 test $ac_status = 0; }
8128 if test 0 -ne "$ac_status"; then
8129 lt_cv_ar_at_file=@
8132 rm -f conftest.* libconftest.a
8135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8139 $as_echo "$lt_cv_ar_at_file" >&6; }
8141 if test no = "$lt_cv_ar_at_file"; then
8142 archiver_list_spec=
8143 else
8144 archiver_list_spec=$lt_cv_ar_at_file
8153 if test -n "$ac_tool_prefix"; then
8154 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8155 set dummy ${ac_tool_prefix}strip; ac_word=$2
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8157 $as_echo_n "checking for $ac_word... " >&6; }
8158 if ${ac_cv_prog_STRIP+:} false; then :
8159 $as_echo_n "(cached) " >&6
8160 else
8161 if test -n "$STRIP"; then
8162 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8163 else
8164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8165 for as_dir in $PATH
8167 IFS=$as_save_IFS
8168 test -z "$as_dir" && as_dir=.
8169 for ac_exec_ext in '' $ac_executable_extensions; do
8170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8171 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8173 break 2
8175 done
8176 done
8177 IFS=$as_save_IFS
8181 STRIP=$ac_cv_prog_STRIP
8182 if test -n "$STRIP"; then
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8184 $as_echo "$STRIP" >&6; }
8185 else
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8187 $as_echo "no" >&6; }
8192 if test -z "$ac_cv_prog_STRIP"; then
8193 ac_ct_STRIP=$STRIP
8194 # Extract the first word of "strip", so it can be a program name with args.
8195 set dummy strip; ac_word=$2
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8197 $as_echo_n "checking for $ac_word... " >&6; }
8198 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8199 $as_echo_n "(cached) " >&6
8200 else
8201 if test -n "$ac_ct_STRIP"; then
8202 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8203 else
8204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8205 for as_dir in $PATH
8207 IFS=$as_save_IFS
8208 test -z "$as_dir" && as_dir=.
8209 for ac_exec_ext in '' $ac_executable_extensions; do
8210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8211 ac_cv_prog_ac_ct_STRIP="strip"
8212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8213 break 2
8215 done
8216 done
8217 IFS=$as_save_IFS
8221 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8222 if test -n "$ac_ct_STRIP"; then
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8224 $as_echo "$ac_ct_STRIP" >&6; }
8225 else
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8227 $as_echo "no" >&6; }
8230 if test "x$ac_ct_STRIP" = x; then
8231 STRIP=":"
8232 else
8233 case $cross_compiling:$ac_tool_warned in
8234 yes:)
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8236 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8237 ac_tool_warned=yes ;;
8238 esac
8239 STRIP=$ac_ct_STRIP
8241 else
8242 STRIP="$ac_cv_prog_STRIP"
8245 test -z "$STRIP" && STRIP=:
8252 if test -n "$ac_tool_prefix"; then
8253 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8254 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8256 $as_echo_n "checking for $ac_word... " >&6; }
8257 if ${ac_cv_prog_RANLIB+:} false; then :
8258 $as_echo_n "(cached) " >&6
8259 else
8260 if test -n "$RANLIB"; then
8261 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8262 else
8263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8264 for as_dir in $PATH
8266 IFS=$as_save_IFS
8267 test -z "$as_dir" && as_dir=.
8268 for ac_exec_ext in '' $ac_executable_extensions; do
8269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8270 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8272 break 2
8274 done
8275 done
8276 IFS=$as_save_IFS
8280 RANLIB=$ac_cv_prog_RANLIB
8281 if test -n "$RANLIB"; then
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8283 $as_echo "$RANLIB" >&6; }
8284 else
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8286 $as_echo "no" >&6; }
8291 if test -z "$ac_cv_prog_RANLIB"; then
8292 ac_ct_RANLIB=$RANLIB
8293 # Extract the first word of "ranlib", so it can be a program name with args.
8294 set dummy ranlib; ac_word=$2
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8296 $as_echo_n "checking for $ac_word... " >&6; }
8297 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8298 $as_echo_n "(cached) " >&6
8299 else
8300 if test -n "$ac_ct_RANLIB"; then
8301 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8302 else
8303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8304 for as_dir in $PATH
8306 IFS=$as_save_IFS
8307 test -z "$as_dir" && as_dir=.
8308 for ac_exec_ext in '' $ac_executable_extensions; do
8309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8310 ac_cv_prog_ac_ct_RANLIB="ranlib"
8311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8312 break 2
8314 done
8315 done
8316 IFS=$as_save_IFS
8320 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8321 if test -n "$ac_ct_RANLIB"; then
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8323 $as_echo "$ac_ct_RANLIB" >&6; }
8324 else
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8326 $as_echo "no" >&6; }
8329 if test "x$ac_ct_RANLIB" = x; then
8330 RANLIB=":"
8331 else
8332 case $cross_compiling:$ac_tool_warned in
8333 yes:)
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8335 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8336 ac_tool_warned=yes ;;
8337 esac
8338 RANLIB=$ac_ct_RANLIB
8340 else
8341 RANLIB="$ac_cv_prog_RANLIB"
8344 test -z "$RANLIB" && RANLIB=:
8351 # Determine commands to create old-style static archives.
8352 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8353 old_postinstall_cmds='chmod 644 $oldlib'
8354 old_postuninstall_cmds=
8356 if test -n "$RANLIB"; then
8357 case $host_os in
8358 bitrig* | openbsd*)
8359 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8362 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8364 esac
8365 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8368 case $host_os in
8369 darwin*)
8370 lock_old_archive_extraction=yes ;;
8372 lock_old_archive_extraction=no ;;
8373 esac
8413 # If no C compiler was specified, use CC.
8414 LTCC=${LTCC-"$CC"}
8416 # If no C compiler flags were specified, use CFLAGS.
8417 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8419 # Allow CC to be a program name with arguments.
8420 compiler=$CC
8423 # Check for command to grab the raw symbol name followed by C symbol from nm.
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8425 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8426 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8427 $as_echo_n "(cached) " >&6
8428 else
8430 # These are sane defaults that work on at least a few old systems.
8431 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8433 # Character class describing NM global symbol codes.
8434 symcode='[BCDEGRST]'
8436 # Regexp to match symbols that can be accessed directly from C.
8437 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8439 # Define system-specific variables.
8440 case $host_os in
8441 aix*)
8442 symcode='[BCDT]'
8444 cygwin* | mingw* | pw32* | cegcc*)
8445 symcode='[ABCDGISTW]'
8447 hpux*)
8448 if test ia64 = "$host_cpu"; then
8449 symcode='[ABCDEGRST]'
8452 irix* | nonstopux*)
8453 symcode='[BCDEGRST]'
8455 osf*)
8456 symcode='[BCDEGQRST]'
8458 solaris*)
8459 symcode='[BDRT]'
8461 sco3.2v5*)
8462 symcode='[DT]'
8464 sysv4.2uw2*)
8465 symcode='[DT]'
8467 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8468 symcode='[ABDT]'
8470 sysv4)
8471 symcode='[DFNSTU]'
8473 esac
8475 # If we're using GNU nm, then use its standard symbol codes.
8476 case `$NM -V 2>&1` in
8477 *GNU* | *'with BFD'*)
8478 symcode='[ABCDGIRSTW]' ;;
8479 esac
8481 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8482 # Gets list of data symbols to import.
8483 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
8484 # Adjust the below global symbol transforms to fixup imported variables.
8485 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8486 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
8487 lt_c_name_lib_hook="\
8488 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
8489 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
8490 else
8491 # Disable hooks by default.
8492 lt_cv_sys_global_symbol_to_import=
8493 lt_cdecl_hook=
8494 lt_c_name_hook=
8495 lt_c_name_lib_hook=
8498 # Transform an extracted symbol line into a proper C declaration.
8499 # Some systems (esp. on ia64) link data and code symbols differently,
8500 # so use this general approach.
8501 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
8502 $lt_cdecl_hook\
8503 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8504 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8506 # Transform an extracted symbol line into symbol name and symbol address
8507 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
8508 $lt_c_name_hook\
8509 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8510 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
8512 # Transform an extracted symbol line into symbol name with lib prefix and
8513 # symbol address.
8514 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
8515 $lt_c_name_lib_hook\
8516 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8517 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
8518 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
8520 # Handle CRLF in mingw tool chain
8521 opt_cr=
8522 case $build_os in
8523 mingw*)
8524 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8526 esac
8528 # Try without a prefix underscore, then with it.
8529 for ac_symprfx in "" "_"; do
8531 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8532 symxfrm="\\1 $ac_symprfx\\2 \\2"
8534 # Write the raw and C identifiers.
8535 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8536 # Fake it for dumpbin and say T for any non-static function,
8537 # D for any global variable and I for any imported variable.
8538 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
8539 # which start with @ or ?.
8540 lt_cv_sys_global_symbol_pipe="$AWK '"\
8541 " {last_section=section; section=\$ 3};"\
8542 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8543 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8544 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8545 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8546 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8547 " \$ 0!~/External *\|/{next};"\
8548 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8549 " {if(hide[section]) next};"\
8550 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8551 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8552 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8553 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8554 " ' prfx=^$ac_symprfx"
8555 else
8556 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8558 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8560 # Check to see that the pipe works correctly.
8561 pipe_works=no
8563 rm -f conftest*
8564 cat > conftest.$ac_ext <<_LT_EOF
8565 #ifdef __cplusplus
8566 extern "C" {
8567 #endif
8568 char nm_test_var;
8569 void nm_test_func(void);
8570 void nm_test_func(void){}
8571 #ifdef __cplusplus
8573 #endif
8574 int main(){nm_test_var='a';nm_test_func();return(0);}
8575 _LT_EOF
8577 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8578 (eval $ac_compile) 2>&5
8579 ac_status=$?
8580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8581 test $ac_status = 0; }; then
8582 # Now try to grab the symbols.
8583 nlist=conftest.nm
8584 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8585 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8586 ac_status=$?
8587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8588 test $ac_status = 0; } && test -s "$nlist"; then
8589 # Try sorting and uniquifying the output.
8590 if sort "$nlist" | uniq > "$nlist"T; then
8591 mv -f "$nlist"T "$nlist"
8592 else
8593 rm -f "$nlist"T
8596 # Make sure that we snagged all the symbols we need.
8597 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8598 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8599 cat <<_LT_EOF > conftest.$ac_ext
8600 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8601 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8602 /* DATA imports from DLLs on WIN32 can't be const, because runtime
8603 relocations are performed -- see ld's documentation on pseudo-relocs. */
8604 # define LT_DLSYM_CONST
8605 #elif defined __osf__
8606 /* This system does not cope well with relocations in const data. */
8607 # define LT_DLSYM_CONST
8608 #else
8609 # define LT_DLSYM_CONST const
8610 #endif
8612 #ifdef __cplusplus
8613 extern "C" {
8614 #endif
8616 _LT_EOF
8617 # Now generate the symbol file.
8618 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8620 cat <<_LT_EOF >> conftest.$ac_ext
8622 /* The mapping between symbol names and symbols. */
8623 LT_DLSYM_CONST struct {
8624 const char *name;
8625 void *address;
8627 lt__PROGRAM__LTX_preloaded_symbols[] =
8629 { "@PROGRAM@", (void *) 0 },
8630 _LT_EOF
8631 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8632 cat <<\_LT_EOF >> conftest.$ac_ext
8633 {0, (void *) 0}
8636 /* This works around a problem in FreeBSD linker */
8637 #ifdef FREEBSD_WORKAROUND
8638 static const void *lt_preloaded_setup() {
8639 return lt__PROGRAM__LTX_preloaded_symbols;
8641 #endif
8643 #ifdef __cplusplus
8645 #endif
8646 _LT_EOF
8647 # Now try linking the two files.
8648 mv conftest.$ac_objext conftstm.$ac_objext
8649 lt_globsym_save_LIBS=$LIBS
8650 lt_globsym_save_CFLAGS=$CFLAGS
8651 LIBS=conftstm.$ac_objext
8652 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8653 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8654 (eval $ac_link) 2>&5
8655 ac_status=$?
8656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8657 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8658 pipe_works=yes
8660 LIBS=$lt_globsym_save_LIBS
8661 CFLAGS=$lt_globsym_save_CFLAGS
8662 else
8663 echo "cannot find nm_test_func in $nlist" >&5
8665 else
8666 echo "cannot find nm_test_var in $nlist" >&5
8668 else
8669 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8671 else
8672 echo "$progname: failed program was:" >&5
8673 cat conftest.$ac_ext >&5
8675 rm -rf conftest* conftst*
8677 # Do not use the global_symbol_pipe unless it works.
8678 if test yes = "$pipe_works"; then
8679 break
8680 else
8681 lt_cv_sys_global_symbol_pipe=
8683 done
8687 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8688 lt_cv_sys_global_symbol_to_cdecl=
8690 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8692 $as_echo "failed" >&6; }
8693 else
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8695 $as_echo "ok" >&6; }
8698 # Response file support.
8699 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8700 nm_file_list_spec='@'
8701 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8702 nm_file_list_spec='@'
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8742 $as_echo_n "checking for sysroot... " >&6; }
8744 # Check whether --with-sysroot was given.
8745 if test "${with_sysroot+set}" = set; then :
8746 withval=$with_sysroot;
8747 else
8748 with_sysroot=no
8752 lt_sysroot=
8753 case $with_sysroot in #(
8754 yes)
8755 if test yes = "$GCC"; then
8756 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8758 ;; #(
8760 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8761 ;; #(
8762 no|'')
8763 ;; #(
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8766 $as_echo "$with_sysroot" >&6; }
8767 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8769 esac
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8772 $as_echo "${lt_sysroot:-no}" >&6; }
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8779 $as_echo_n "checking for a working dd... " >&6; }
8780 if ${ac_cv_path_lt_DD+:} false; then :
8781 $as_echo_n "(cached) " >&6
8782 else
8783 printf 0123456789abcdef0123456789abcdef >conftest.i
8784 cat conftest.i conftest.i >conftest2.i
8785 : ${lt_DD:=$DD}
8786 if test -z "$lt_DD"; then
8787 ac_path_lt_DD_found=false
8788 # Loop through the user's path and test for each of PROGNAME-LIST
8789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8790 for as_dir in $PATH
8792 IFS=$as_save_IFS
8793 test -z "$as_dir" && as_dir=.
8794 for ac_prog in dd; do
8795 for ac_exec_ext in '' $ac_executable_extensions; do
8796 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
8797 as_fn_executable_p "$ac_path_lt_DD" || continue
8798 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8799 cmp -s conftest.i conftest.out \
8800 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8802 $ac_path_lt_DD_found && break 3
8803 done
8804 done
8805 done
8806 IFS=$as_save_IFS
8807 if test -z "$ac_cv_path_lt_DD"; then
8810 else
8811 ac_cv_path_lt_DD=$lt_DD
8814 rm -f conftest.i conftest2.i conftest.out
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8817 $as_echo "$ac_cv_path_lt_DD" >&6; }
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8821 $as_echo_n "checking how to truncate binary pipes... " >&6; }
8822 if ${lt_cv_truncate_bin+:} false; then :
8823 $as_echo_n "(cached) " >&6
8824 else
8825 printf 0123456789abcdef0123456789abcdef >conftest.i
8826 cat conftest.i conftest.i >conftest2.i
8827 lt_cv_truncate_bin=
8828 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8829 cmp -s conftest.i conftest.out \
8830 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8832 rm -f conftest.i conftest2.i conftest.out
8833 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8836 $as_echo "$lt_cv_truncate_bin" >&6; }
8844 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8845 func_cc_basename ()
8847 for cc_temp in $*""; do
8848 case $cc_temp in
8849 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8850 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8851 \-*) ;;
8852 *) break;;
8853 esac
8854 done
8855 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8858 # Check whether --enable-libtool-lock was given.
8859 if test "${enable_libtool_lock+set}" = set; then :
8860 enableval=$enable_libtool_lock;
8863 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8865 # Some flags need to be propagated to the compiler or linker for good
8866 # libtool support.
8867 case $host in
8868 ia64-*-hpux*)
8869 # Find out what ABI is being produced by ac_compile, and set mode
8870 # options accordingly.
8871 echo 'int i;' > conftest.$ac_ext
8872 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8873 (eval $ac_compile) 2>&5
8874 ac_status=$?
8875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8876 test $ac_status = 0; }; then
8877 case `/usr/bin/file conftest.$ac_objext` in
8878 *ELF-32*)
8879 HPUX_IA64_MODE=32
8881 *ELF-64*)
8882 HPUX_IA64_MODE=64
8884 esac
8886 rm -rf conftest*
8888 *-*-irix6*)
8889 # Find out what ABI is being produced by ac_compile, and set linker
8890 # options accordingly.
8891 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8892 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8893 (eval $ac_compile) 2>&5
8894 ac_status=$?
8895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8896 test $ac_status = 0; }; then
8897 if test yes = "$lt_cv_prog_gnu_ld"; then
8898 case `/usr/bin/file conftest.$ac_objext` in
8899 *32-bit*)
8900 LD="${LD-ld} -melf32bsmip"
8902 *N32*)
8903 LD="${LD-ld} -melf32bmipn32"
8905 *64-bit*)
8906 LD="${LD-ld} -melf64bmip"
8908 esac
8909 else
8910 case `/usr/bin/file conftest.$ac_objext` in
8911 *32-bit*)
8912 LD="${LD-ld} -32"
8914 *N32*)
8915 LD="${LD-ld} -n32"
8917 *64-bit*)
8918 LD="${LD-ld} -64"
8920 esac
8923 rm -rf conftest*
8926 mips64*-*linux*)
8927 # Find out what ABI is being produced by ac_compile, and set linker
8928 # options accordingly.
8929 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8930 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8931 (eval $ac_compile) 2>&5
8932 ac_status=$?
8933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8934 test $ac_status = 0; }; then
8935 emul=elf
8936 case `/usr/bin/file conftest.$ac_objext` in
8937 *32-bit*)
8938 emul="${emul}32"
8940 *64-bit*)
8941 emul="${emul}64"
8943 esac
8944 case `/usr/bin/file conftest.$ac_objext` in
8945 *MSB*)
8946 emul="${emul}btsmip"
8948 *LSB*)
8949 emul="${emul}ltsmip"
8951 esac
8952 case `/usr/bin/file conftest.$ac_objext` in
8953 *N32*)
8954 emul="${emul}n32"
8956 esac
8957 LD="${LD-ld} -m $emul"
8959 rm -rf conftest*
8962 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8963 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8964 # Find out what ABI is being produced by ac_compile, and set linker
8965 # options accordingly. Note that the listed cases only cover the
8966 # situations where additional linker options are needed (such as when
8967 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8968 # vice versa); the common cases where no linker options are needed do
8969 # not appear in the list.
8970 echo 'int i;' > conftest.$ac_ext
8971 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8972 (eval $ac_compile) 2>&5
8973 ac_status=$?
8974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8975 test $ac_status = 0; }; then
8976 case `/usr/bin/file conftest.o` in
8977 *32-bit*)
8978 case $host in
8979 x86_64-*kfreebsd*-gnu)
8980 LD="${LD-ld} -m elf_i386_fbsd"
8982 x86_64-*linux*)
8983 case `/usr/bin/file conftest.o` in
8984 *x86-64*)
8985 LD="${LD-ld} -m elf32_x86_64"
8988 LD="${LD-ld} -m elf_i386"
8990 esac
8992 powerpc64le-*linux*)
8993 LD="${LD-ld} -m elf32lppclinux"
8995 powerpc64-*linux*)
8996 LD="${LD-ld} -m elf32ppclinux"
8998 s390x-*linux*)
8999 LD="${LD-ld} -m elf_s390"
9001 sparc64-*linux*)
9002 LD="${LD-ld} -m elf32_sparc"
9004 esac
9006 *64-bit*)
9007 case $host in
9008 x86_64-*kfreebsd*-gnu)
9009 LD="${LD-ld} -m elf_x86_64_fbsd"
9011 x86_64-*linux*)
9012 LD="${LD-ld} -m elf_x86_64"
9014 powerpcle-*linux*)
9015 LD="${LD-ld} -m elf64lppc"
9017 powerpc-*linux*)
9018 LD="${LD-ld} -m elf64ppc"
9020 s390*-*linux*|s390*-*tpf*)
9021 LD="${LD-ld} -m elf64_s390"
9023 sparc*-*linux*)
9024 LD="${LD-ld} -m elf64_sparc"
9026 esac
9028 esac
9030 rm -rf conftest*
9033 *-*-sco3.2v5*)
9034 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9035 SAVE_CFLAGS=$CFLAGS
9036 CFLAGS="$CFLAGS -belf"
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9038 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9039 if ${lt_cv_cc_needs_belf+:} false; then :
9040 $as_echo_n "(cached) " >&6
9041 else
9042 ac_ext=c
9043 ac_cpp='$CPP $CPPFLAGS'
9044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9049 /* end confdefs.h. */
9052 main ()
9056 return 0;
9058 _ACEOF
9059 if ac_fn_c_try_link "$LINENO"; then :
9060 lt_cv_cc_needs_belf=yes
9061 else
9062 lt_cv_cc_needs_belf=no
9064 rm -f core conftest.err conftest.$ac_objext \
9065 conftest$ac_exeext conftest.$ac_ext
9066 ac_ext=c
9067 ac_cpp='$CPP $CPPFLAGS'
9068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9074 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9075 if test yes != "$lt_cv_cc_needs_belf"; then
9076 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9077 CFLAGS=$SAVE_CFLAGS
9080 *-*solaris*)
9081 # Find out what ABI is being produced by ac_compile, and set linker
9082 # options accordingly.
9083 echo 'int i;' > conftest.$ac_ext
9084 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9085 (eval $ac_compile) 2>&5
9086 ac_status=$?
9087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9088 test $ac_status = 0; }; then
9089 case `/usr/bin/file conftest.o` in
9090 *64-bit*)
9091 case $lt_cv_prog_gnu_ld in
9092 yes*)
9093 case $host in
9094 i?86-*-solaris*|x86_64-*-solaris*)
9095 LD="${LD-ld} -m elf_x86_64"
9097 sparc*-*-solaris*)
9098 LD="${LD-ld} -m elf64_sparc"
9100 esac
9101 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9102 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9103 LD=${LD-ld}_sol2
9107 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9108 LD="${LD-ld} -64"
9111 esac
9113 esac
9115 rm -rf conftest*
9117 esac
9119 need_locks=$enable_libtool_lock
9121 if test -n "$ac_tool_prefix"; then
9122 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9123 set dummy ${ac_tool_prefix}mt; ac_word=$2
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9125 $as_echo_n "checking for $ac_word... " >&6; }
9126 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9127 $as_echo_n "(cached) " >&6
9128 else
9129 if test -n "$MANIFEST_TOOL"; then
9130 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9131 else
9132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9133 for as_dir in $PATH
9135 IFS=$as_save_IFS
9136 test -z "$as_dir" && as_dir=.
9137 for ac_exec_ext in '' $ac_executable_extensions; do
9138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9139 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9141 break 2
9143 done
9144 done
9145 IFS=$as_save_IFS
9149 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9150 if test -n "$MANIFEST_TOOL"; then
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9152 $as_echo "$MANIFEST_TOOL" >&6; }
9153 else
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9155 $as_echo "no" >&6; }
9160 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9161 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9162 # Extract the first word of "mt", so it can be a program name with args.
9163 set dummy mt; ac_word=$2
9164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9165 $as_echo_n "checking for $ac_word... " >&6; }
9166 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9167 $as_echo_n "(cached) " >&6
9168 else
9169 if test -n "$ac_ct_MANIFEST_TOOL"; then
9170 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9171 else
9172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9173 for as_dir in $PATH
9175 IFS=$as_save_IFS
9176 test -z "$as_dir" && as_dir=.
9177 for ac_exec_ext in '' $ac_executable_extensions; do
9178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9179 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9181 break 2
9183 done
9184 done
9185 IFS=$as_save_IFS
9189 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9190 if test -n "$ac_ct_MANIFEST_TOOL"; then
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9192 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9193 else
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9195 $as_echo "no" >&6; }
9198 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9199 MANIFEST_TOOL=":"
9200 else
9201 case $cross_compiling:$ac_tool_warned in
9202 yes:)
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9204 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9205 ac_tool_warned=yes ;;
9206 esac
9207 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9209 else
9210 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9213 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9215 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9216 if ${lt_cv_path_mainfest_tool+:} false; then :
9217 $as_echo_n "(cached) " >&6
9218 else
9219 lt_cv_path_mainfest_tool=no
9220 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9221 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9222 cat conftest.err >&5
9223 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9224 lt_cv_path_mainfest_tool=yes
9226 rm -f conftest*
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9229 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9230 if test yes != "$lt_cv_path_mainfest_tool"; then
9231 MANIFEST_TOOL=:
9239 case $host_os in
9240 rhapsody* | darwin*)
9241 if test -n "$ac_tool_prefix"; then
9242 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9243 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9245 $as_echo_n "checking for $ac_word... " >&6; }
9246 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9247 $as_echo_n "(cached) " >&6
9248 else
9249 if test -n "$DSYMUTIL"; then
9250 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9251 else
9252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9253 for as_dir in $PATH
9255 IFS=$as_save_IFS
9256 test -z "$as_dir" && as_dir=.
9257 for ac_exec_ext in '' $ac_executable_extensions; do
9258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9259 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9261 break 2
9263 done
9264 done
9265 IFS=$as_save_IFS
9269 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9270 if test -n "$DSYMUTIL"; then
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9272 $as_echo "$DSYMUTIL" >&6; }
9273 else
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9275 $as_echo "no" >&6; }
9280 if test -z "$ac_cv_prog_DSYMUTIL"; then
9281 ac_ct_DSYMUTIL=$DSYMUTIL
9282 # Extract the first word of "dsymutil", so it can be a program name with args.
9283 set dummy dsymutil; ac_word=$2
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9285 $as_echo_n "checking for $ac_word... " >&6; }
9286 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9287 $as_echo_n "(cached) " >&6
9288 else
9289 if test -n "$ac_ct_DSYMUTIL"; then
9290 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9291 else
9292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9293 for as_dir in $PATH
9295 IFS=$as_save_IFS
9296 test -z "$as_dir" && as_dir=.
9297 for ac_exec_ext in '' $ac_executable_extensions; do
9298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9299 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9301 break 2
9303 done
9304 done
9305 IFS=$as_save_IFS
9309 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9310 if test -n "$ac_ct_DSYMUTIL"; then
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9312 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9313 else
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9315 $as_echo "no" >&6; }
9318 if test "x$ac_ct_DSYMUTIL" = x; then
9319 DSYMUTIL=":"
9320 else
9321 case $cross_compiling:$ac_tool_warned in
9322 yes:)
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9324 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9325 ac_tool_warned=yes ;;
9326 esac
9327 DSYMUTIL=$ac_ct_DSYMUTIL
9329 else
9330 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9333 if test -n "$ac_tool_prefix"; then
9334 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9335 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9337 $as_echo_n "checking for $ac_word... " >&6; }
9338 if ${ac_cv_prog_NMEDIT+:} false; then :
9339 $as_echo_n "(cached) " >&6
9340 else
9341 if test -n "$NMEDIT"; then
9342 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9343 else
9344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9345 for as_dir in $PATH
9347 IFS=$as_save_IFS
9348 test -z "$as_dir" && as_dir=.
9349 for ac_exec_ext in '' $ac_executable_extensions; do
9350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9351 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9353 break 2
9355 done
9356 done
9357 IFS=$as_save_IFS
9361 NMEDIT=$ac_cv_prog_NMEDIT
9362 if test -n "$NMEDIT"; then
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9364 $as_echo "$NMEDIT" >&6; }
9365 else
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9367 $as_echo "no" >&6; }
9372 if test -z "$ac_cv_prog_NMEDIT"; then
9373 ac_ct_NMEDIT=$NMEDIT
9374 # Extract the first word of "nmedit", so it can be a program name with args.
9375 set dummy nmedit; ac_word=$2
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9377 $as_echo_n "checking for $ac_word... " >&6; }
9378 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9379 $as_echo_n "(cached) " >&6
9380 else
9381 if test -n "$ac_ct_NMEDIT"; then
9382 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9383 else
9384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9385 for as_dir in $PATH
9387 IFS=$as_save_IFS
9388 test -z "$as_dir" && as_dir=.
9389 for ac_exec_ext in '' $ac_executable_extensions; do
9390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9391 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9393 break 2
9395 done
9396 done
9397 IFS=$as_save_IFS
9401 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9402 if test -n "$ac_ct_NMEDIT"; then
9403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9404 $as_echo "$ac_ct_NMEDIT" >&6; }
9405 else
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9407 $as_echo "no" >&6; }
9410 if test "x$ac_ct_NMEDIT" = x; then
9411 NMEDIT=":"
9412 else
9413 case $cross_compiling:$ac_tool_warned in
9414 yes:)
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9416 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9417 ac_tool_warned=yes ;;
9418 esac
9419 NMEDIT=$ac_ct_NMEDIT
9421 else
9422 NMEDIT="$ac_cv_prog_NMEDIT"
9425 if test -n "$ac_tool_prefix"; then
9426 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9427 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9429 $as_echo_n "checking for $ac_word... " >&6; }
9430 if ${ac_cv_prog_LIPO+:} false; then :
9431 $as_echo_n "(cached) " >&6
9432 else
9433 if test -n "$LIPO"; then
9434 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9435 else
9436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9437 for as_dir in $PATH
9439 IFS=$as_save_IFS
9440 test -z "$as_dir" && as_dir=.
9441 for ac_exec_ext in '' $ac_executable_extensions; do
9442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9443 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9445 break 2
9447 done
9448 done
9449 IFS=$as_save_IFS
9453 LIPO=$ac_cv_prog_LIPO
9454 if test -n "$LIPO"; then
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9456 $as_echo "$LIPO" >&6; }
9457 else
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9459 $as_echo "no" >&6; }
9464 if test -z "$ac_cv_prog_LIPO"; then
9465 ac_ct_LIPO=$LIPO
9466 # Extract the first word of "lipo", so it can be a program name with args.
9467 set dummy lipo; ac_word=$2
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9469 $as_echo_n "checking for $ac_word... " >&6; }
9470 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9471 $as_echo_n "(cached) " >&6
9472 else
9473 if test -n "$ac_ct_LIPO"; then
9474 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9475 else
9476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9477 for as_dir in $PATH
9479 IFS=$as_save_IFS
9480 test -z "$as_dir" && as_dir=.
9481 for ac_exec_ext in '' $ac_executable_extensions; do
9482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9483 ac_cv_prog_ac_ct_LIPO="lipo"
9484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9485 break 2
9487 done
9488 done
9489 IFS=$as_save_IFS
9493 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9494 if test -n "$ac_ct_LIPO"; then
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9496 $as_echo "$ac_ct_LIPO" >&6; }
9497 else
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9499 $as_echo "no" >&6; }
9502 if test "x$ac_ct_LIPO" = x; then
9503 LIPO=":"
9504 else
9505 case $cross_compiling:$ac_tool_warned in
9506 yes:)
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9508 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9509 ac_tool_warned=yes ;;
9510 esac
9511 LIPO=$ac_ct_LIPO
9513 else
9514 LIPO="$ac_cv_prog_LIPO"
9517 if test -n "$ac_tool_prefix"; then
9518 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9519 set dummy ${ac_tool_prefix}otool; ac_word=$2
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9521 $as_echo_n "checking for $ac_word... " >&6; }
9522 if ${ac_cv_prog_OTOOL+:} false; then :
9523 $as_echo_n "(cached) " >&6
9524 else
9525 if test -n "$OTOOL"; then
9526 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9527 else
9528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9529 for as_dir in $PATH
9531 IFS=$as_save_IFS
9532 test -z "$as_dir" && as_dir=.
9533 for ac_exec_ext in '' $ac_executable_extensions; do
9534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9535 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9537 break 2
9539 done
9540 done
9541 IFS=$as_save_IFS
9545 OTOOL=$ac_cv_prog_OTOOL
9546 if test -n "$OTOOL"; then
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9548 $as_echo "$OTOOL" >&6; }
9549 else
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9551 $as_echo "no" >&6; }
9556 if test -z "$ac_cv_prog_OTOOL"; then
9557 ac_ct_OTOOL=$OTOOL
9558 # Extract the first word of "otool", so it can be a program name with args.
9559 set dummy otool; ac_word=$2
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9561 $as_echo_n "checking for $ac_word... " >&6; }
9562 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9563 $as_echo_n "(cached) " >&6
9564 else
9565 if test -n "$ac_ct_OTOOL"; then
9566 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9567 else
9568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9569 for as_dir in $PATH
9571 IFS=$as_save_IFS
9572 test -z "$as_dir" && as_dir=.
9573 for ac_exec_ext in '' $ac_executable_extensions; do
9574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9575 ac_cv_prog_ac_ct_OTOOL="otool"
9576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9577 break 2
9579 done
9580 done
9581 IFS=$as_save_IFS
9585 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9586 if test -n "$ac_ct_OTOOL"; then
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9588 $as_echo "$ac_ct_OTOOL" >&6; }
9589 else
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9591 $as_echo "no" >&6; }
9594 if test "x$ac_ct_OTOOL" = x; then
9595 OTOOL=":"
9596 else
9597 case $cross_compiling:$ac_tool_warned in
9598 yes:)
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9600 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9601 ac_tool_warned=yes ;;
9602 esac
9603 OTOOL=$ac_ct_OTOOL
9605 else
9606 OTOOL="$ac_cv_prog_OTOOL"
9609 if test -n "$ac_tool_prefix"; then
9610 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9611 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9613 $as_echo_n "checking for $ac_word... " >&6; }
9614 if ${ac_cv_prog_OTOOL64+:} false; then :
9615 $as_echo_n "(cached) " >&6
9616 else
9617 if test -n "$OTOOL64"; then
9618 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9619 else
9620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9621 for as_dir in $PATH
9623 IFS=$as_save_IFS
9624 test -z "$as_dir" && as_dir=.
9625 for ac_exec_ext in '' $ac_executable_extensions; do
9626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9627 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9629 break 2
9631 done
9632 done
9633 IFS=$as_save_IFS
9637 OTOOL64=$ac_cv_prog_OTOOL64
9638 if test -n "$OTOOL64"; then
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9640 $as_echo "$OTOOL64" >&6; }
9641 else
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9643 $as_echo "no" >&6; }
9648 if test -z "$ac_cv_prog_OTOOL64"; then
9649 ac_ct_OTOOL64=$OTOOL64
9650 # Extract the first word of "otool64", so it can be a program name with args.
9651 set dummy otool64; ac_word=$2
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9653 $as_echo_n "checking for $ac_word... " >&6; }
9654 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9655 $as_echo_n "(cached) " >&6
9656 else
9657 if test -n "$ac_ct_OTOOL64"; then
9658 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9659 else
9660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9661 for as_dir in $PATH
9663 IFS=$as_save_IFS
9664 test -z "$as_dir" && as_dir=.
9665 for ac_exec_ext in '' $ac_executable_extensions; do
9666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9667 ac_cv_prog_ac_ct_OTOOL64="otool64"
9668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9669 break 2
9671 done
9672 done
9673 IFS=$as_save_IFS
9677 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9678 if test -n "$ac_ct_OTOOL64"; then
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9680 $as_echo "$ac_ct_OTOOL64" >&6; }
9681 else
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9683 $as_echo "no" >&6; }
9686 if test "x$ac_ct_OTOOL64" = x; then
9687 OTOOL64=":"
9688 else
9689 case $cross_compiling:$ac_tool_warned in
9690 yes:)
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9692 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9693 ac_tool_warned=yes ;;
9694 esac
9695 OTOOL64=$ac_ct_OTOOL64
9697 else
9698 OTOOL64="$ac_cv_prog_OTOOL64"
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9728 $as_echo_n "checking for -single_module linker flag... " >&6; }
9729 if ${lt_cv_apple_cc_single_mod+:} false; then :
9730 $as_echo_n "(cached) " >&6
9731 else
9732 lt_cv_apple_cc_single_mod=no
9733 if test -z "$LT_MULTI_MODULE"; then
9734 # By default we will add the -single_module flag. You can override
9735 # by either setting the environment variable LT_MULTI_MODULE
9736 # non-empty at configure time, or by adding -multi_module to the
9737 # link flags.
9738 rm -rf libconftest.dylib*
9739 echo "int foo(void){return 1;}" > conftest.c
9740 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9741 -dynamiclib -Wl,-single_module conftest.c" >&5
9742 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9743 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9744 _lt_result=$?
9745 # If there is a non-empty error log, and "single_module"
9746 # appears in it, assume the flag caused a linker warning
9747 if test -s conftest.err && $GREP single_module conftest.err; then
9748 cat conftest.err >&5
9749 # Otherwise, if the output was created with a 0 exit code from
9750 # the compiler, it worked.
9751 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9752 lt_cv_apple_cc_single_mod=yes
9753 else
9754 cat conftest.err >&5
9756 rm -rf libconftest.dylib*
9757 rm -f conftest.*
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9761 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9764 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9765 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9766 $as_echo_n "(cached) " >&6
9767 else
9768 lt_cv_ld_exported_symbols_list=no
9769 save_LDFLAGS=$LDFLAGS
9770 echo "_main" > conftest.sym
9771 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9773 /* end confdefs.h. */
9776 main ()
9780 return 0;
9782 _ACEOF
9783 if ac_fn_c_try_link "$LINENO"; then :
9784 lt_cv_ld_exported_symbols_list=yes
9785 else
9786 lt_cv_ld_exported_symbols_list=no
9788 rm -f core conftest.err conftest.$ac_objext \
9789 conftest$ac_exeext conftest.$ac_ext
9790 LDFLAGS=$save_LDFLAGS
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9794 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9797 $as_echo_n "checking for -force_load linker flag... " >&6; }
9798 if ${lt_cv_ld_force_load+:} false; then :
9799 $as_echo_n "(cached) " >&6
9800 else
9801 lt_cv_ld_force_load=no
9802 cat > conftest.c << _LT_EOF
9803 int forced_loaded() { return 2;}
9804 _LT_EOF
9805 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9806 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9807 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
9808 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
9809 echo "$RANLIB libconftest.a" >&5
9810 $RANLIB libconftest.a 2>&5
9811 cat > conftest.c << _LT_EOF
9812 int main() { return 0;}
9813 _LT_EOF
9814 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9815 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9816 _lt_result=$?
9817 if test -s conftest.err && $GREP force_load conftest.err; then
9818 cat conftest.err >&5
9819 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9820 lt_cv_ld_force_load=yes
9821 else
9822 cat conftest.err >&5
9824 rm -f conftest.err libconftest.a conftest conftest.c
9825 rm -rf conftest.dSYM
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9829 $as_echo "$lt_cv_ld_force_load" >&6; }
9830 case $host_os in
9831 rhapsody* | darwin1.[012])
9832 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9833 darwin1.*)
9834 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9835 darwin*) # darwin 5.x on
9836 # if running on 10.5 or later, the deployment target defaults
9837 # to the OS version, if on x86, and 10.4, the deployment
9838 # target defaults to 10.4. Don't you love it?
9839 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9840 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9841 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9842 10.[012][,.]*)
9843 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9844 10.*)
9845 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9846 esac
9848 esac
9849 if test yes = "$lt_cv_apple_cc_single_mod"; then
9850 _lt_dar_single_mod='$single_module'
9852 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9853 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9854 else
9855 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9857 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9858 _lt_dsymutil='~$DSYMUTIL $lib || :'
9859 else
9860 _lt_dsymutil=
9863 esac
9865 # func_munge_path_list VARIABLE PATH
9866 # -----------------------------------
9867 # VARIABLE is name of variable containing _space_ separated list of
9868 # directories to be munged by the contents of PATH, which is string
9869 # having a format:
9870 # "DIR[:DIR]:"
9871 # string "DIR[ DIR]" will be prepended to VARIABLE
9872 # ":DIR[:DIR]"
9873 # string "DIR[ DIR]" will be appended to VARIABLE
9874 # "DIRP[:DIRP]::[DIRA:]DIRA"
9875 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9876 # "DIRA[ DIRA]" will be appended to VARIABLE
9877 # "DIR[:DIR]"
9878 # VARIABLE will be replaced by "DIR[ DIR]"
9879 func_munge_path_list ()
9881 case x$2 in
9885 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9887 x:*)
9888 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9890 *::*)
9891 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9892 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9895 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9897 esac
9900 for ac_header in dlfcn.h
9901 do :
9902 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9904 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9905 cat >>confdefs.h <<_ACEOF
9906 #define HAVE_DLFCN_H 1
9907 _ACEOF
9911 done
9915 func_stripname_cnf ()
9917 case $2 in
9918 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
9919 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
9920 esac
9921 } # func_stripname_cnf
9927 # Set options
9931 enable_dlopen=no
9935 # Check whether --enable-shared was given.
9936 if test "${enable_shared+set}" = set; then :
9937 enableval=$enable_shared; p=${PACKAGE-default}
9938 case $enableval in
9939 yes) enable_shared=yes ;;
9940 no) enable_shared=no ;;
9942 enable_shared=no
9943 # Look at the argument we got. We use all the common list separators.
9944 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9945 for pkg in $enableval; do
9946 IFS=$lt_save_ifs
9947 if test "X$pkg" = "X$p"; then
9948 enable_shared=yes
9950 done
9951 IFS=$lt_save_ifs
9953 esac
9954 else
9955 enable_shared=yes
9966 # Check whether --enable-static was given.
9967 if test "${enable_static+set}" = set; then :
9968 enableval=$enable_static; p=${PACKAGE-default}
9969 case $enableval in
9970 yes) enable_static=yes ;;
9971 no) enable_static=no ;;
9973 enable_static=no
9974 # Look at the argument we got. We use all the common list separators.
9975 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9976 for pkg in $enableval; do
9977 IFS=$lt_save_ifs
9978 if test "X$pkg" = "X$p"; then
9979 enable_static=yes
9981 done
9982 IFS=$lt_save_ifs
9984 esac
9985 else
9986 enable_static=yes
9998 # Check whether --with-pic was given.
9999 if test "${with_pic+set}" = set; then :
10000 withval=$with_pic; lt_p=${PACKAGE-default}
10001 case $withval in
10002 yes|no) pic_mode=$withval ;;
10004 pic_mode=default
10005 # Look at the argument we got. We use all the common list separators.
10006 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10007 for lt_pkg in $withval; do
10008 IFS=$lt_save_ifs
10009 if test "X$lt_pkg" = "X$lt_p"; then
10010 pic_mode=yes
10012 done
10013 IFS=$lt_save_ifs
10015 esac
10016 else
10017 pic_mode=default
10027 # Check whether --enable-fast-install was given.
10028 if test "${enable_fast_install+set}" = set; then :
10029 enableval=$enable_fast_install; p=${PACKAGE-default}
10030 case $enableval in
10031 yes) enable_fast_install=yes ;;
10032 no) enable_fast_install=no ;;
10034 enable_fast_install=no
10035 # Look at the argument we got. We use all the common list separators.
10036 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10037 for pkg in $enableval; do
10038 IFS=$lt_save_ifs
10039 if test "X$pkg" = "X$p"; then
10040 enable_fast_install=yes
10042 done
10043 IFS=$lt_save_ifs
10045 esac
10046 else
10047 enable_fast_install=yes
10057 shared_archive_member_spec=
10058 case $host,$enable_shared in
10059 power*-*-aix[5-9]*,yes)
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10061 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
10063 # Check whether --with-aix-soname was given.
10064 if test "${with_aix_soname+set}" = set; then :
10065 withval=$with_aix_soname; case $withval in
10066 aix|svr4|both)
10069 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10071 esac
10072 lt_cv_with_aix_soname=$with_aix_soname
10073 else
10074 if ${lt_cv_with_aix_soname+:} false; then :
10075 $as_echo_n "(cached) " >&6
10076 else
10077 lt_cv_with_aix_soname=aix
10080 with_aix_soname=$lt_cv_with_aix_soname
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10084 $as_echo "$with_aix_soname" >&6; }
10085 if test aix != "$with_aix_soname"; then
10086 # For the AIX way of multilib, we name the shared archive member
10087 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10088 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10089 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10090 # the AIX toolchain works better with OBJECT_MODE set (default 32).
10091 if test 64 = "${OBJECT_MODE-32}"; then
10092 shared_archive_member_spec=shr_64
10093 else
10094 shared_archive_member_spec=shr
10099 with_aix_soname=aix
10101 esac
10112 # This can be used to rebuild libtool when needed
10113 LIBTOOL_DEPS=$ltmain
10115 # Always use our own libtool.
10116 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10147 test -z "$LN_S" && LN_S="ln -s"
10162 if test -n "${ZSH_VERSION+set}"; then
10163 setopt NO_GLOB_SUBST
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10167 $as_echo_n "checking for objdir... " >&6; }
10168 if ${lt_cv_objdir+:} false; then :
10169 $as_echo_n "(cached) " >&6
10170 else
10171 rm -f .libs 2>/dev/null
10172 mkdir .libs 2>/dev/null
10173 if test -d .libs; then
10174 lt_cv_objdir=.libs
10175 else
10176 # MS-DOS does not allow filenames that begin with a dot.
10177 lt_cv_objdir=_libs
10179 rmdir .libs 2>/dev/null
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10182 $as_echo "$lt_cv_objdir" >&6; }
10183 objdir=$lt_cv_objdir
10189 cat >>confdefs.h <<_ACEOF
10190 #define LT_OBJDIR "$lt_cv_objdir/"
10191 _ACEOF
10196 case $host_os in
10197 aix3*)
10198 # AIX sometimes has problems with the GCC collect2 program. For some
10199 # reason, if we set the COLLECT_NAMES environment variable, the problems
10200 # vanish in a puff of smoke.
10201 if test set != "${COLLECT_NAMES+set}"; then
10202 COLLECT_NAMES=
10203 export COLLECT_NAMES
10206 esac
10208 # Global variables:
10209 ofile=libtool
10210 can_build_shared=yes
10212 # All known linkers require a '.a' archive for static linking (except MSVC and
10213 # ICC, which need '.lib').
10214 libext=a
10216 with_gnu_ld=$lt_cv_prog_gnu_ld
10218 old_CC=$CC
10219 old_CFLAGS=$CFLAGS
10221 # Set sane defaults for various variables
10222 test -z "$CC" && CC=cc
10223 test -z "$LTCC" && LTCC=$CC
10224 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10225 test -z "$LD" && LD=ld
10226 test -z "$ac_objext" && ac_objext=o
10228 func_cc_basename $compiler
10229 cc_basename=$func_cc_basename_result
10232 # Only perform the check for file, if the check method requires it
10233 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10234 case $deplibs_check_method in
10235 file_magic*)
10236 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10238 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10239 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10240 $as_echo_n "(cached) " >&6
10241 else
10242 case $MAGIC_CMD in
10243 [\\/*] | ?:[\\/]*)
10244 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10247 lt_save_MAGIC_CMD=$MAGIC_CMD
10248 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10249 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10250 for ac_dir in $ac_dummy; do
10251 IFS=$lt_save_ifs
10252 test -z "$ac_dir" && ac_dir=.
10253 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10254 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10255 if test -n "$file_magic_test_file"; then
10256 case $deplibs_check_method in
10257 "file_magic "*)
10258 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10259 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10260 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10261 $EGREP "$file_magic_regex" > /dev/null; then
10263 else
10264 cat <<_LT_EOF 1>&2
10266 *** Warning: the command libtool uses to detect shared libraries,
10267 *** $file_magic_cmd, produces output that libtool cannot recognize.
10268 *** The result is that libtool may fail to recognize shared libraries
10269 *** as such. This will affect the creation of libtool libraries that
10270 *** depend on shared libraries, but programs linked with such libtool
10271 *** libraries will work regardless of this problem. Nevertheless, you
10272 *** may want to report the problem to your system manager and/or to
10273 *** bug-libtool@gnu.org
10275 _LT_EOF
10276 fi ;;
10277 esac
10279 break
10281 done
10282 IFS=$lt_save_ifs
10283 MAGIC_CMD=$lt_save_MAGIC_CMD
10285 esac
10288 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10289 if test -n "$MAGIC_CMD"; then
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10291 $as_echo "$MAGIC_CMD" >&6; }
10292 else
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10294 $as_echo "no" >&6; }
10301 if test -z "$lt_cv_path_MAGIC_CMD"; then
10302 if test -n "$ac_tool_prefix"; then
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10304 $as_echo_n "checking for file... " >&6; }
10305 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10306 $as_echo_n "(cached) " >&6
10307 else
10308 case $MAGIC_CMD in
10309 [\\/*] | ?:[\\/]*)
10310 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10313 lt_save_MAGIC_CMD=$MAGIC_CMD
10314 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10315 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10316 for ac_dir in $ac_dummy; do
10317 IFS=$lt_save_ifs
10318 test -z "$ac_dir" && ac_dir=.
10319 if test -f "$ac_dir/file"; then
10320 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10321 if test -n "$file_magic_test_file"; then
10322 case $deplibs_check_method in
10323 "file_magic "*)
10324 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10325 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10326 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10327 $EGREP "$file_magic_regex" > /dev/null; then
10329 else
10330 cat <<_LT_EOF 1>&2
10332 *** Warning: the command libtool uses to detect shared libraries,
10333 *** $file_magic_cmd, produces output that libtool cannot recognize.
10334 *** The result is that libtool may fail to recognize shared libraries
10335 *** as such. This will affect the creation of libtool libraries that
10336 *** depend on shared libraries, but programs linked with such libtool
10337 *** libraries will work regardless of this problem. Nevertheless, you
10338 *** may want to report the problem to your system manager and/or to
10339 *** bug-libtool@gnu.org
10341 _LT_EOF
10342 fi ;;
10343 esac
10345 break
10347 done
10348 IFS=$lt_save_ifs
10349 MAGIC_CMD=$lt_save_MAGIC_CMD
10351 esac
10354 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10355 if test -n "$MAGIC_CMD"; then
10356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10357 $as_echo "$MAGIC_CMD" >&6; }
10358 else
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10360 $as_echo "no" >&6; }
10364 else
10365 MAGIC_CMD=:
10371 esac
10373 # Use C for the default configuration in the libtool script
10375 lt_save_CC=$CC
10376 ac_ext=c
10377 ac_cpp='$CPP $CPPFLAGS'
10378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10383 # Source file extension for C test sources.
10384 ac_ext=c
10386 # Object file extension for compiled C test sources.
10387 objext=o
10388 objext=$objext
10390 # Code to be used in simple compile tests
10391 lt_simple_compile_test_code="int some_variable = 0;"
10393 # Code to be used in simple link tests
10394 lt_simple_link_test_code='int main(){return(0);}'
10402 # If no C compiler was specified, use CC.
10403 LTCC=${LTCC-"$CC"}
10405 # If no C compiler flags were specified, use CFLAGS.
10406 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10408 # Allow CC to be a program name with arguments.
10409 compiler=$CC
10411 # Save the default compiler, since it gets overwritten when the other
10412 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10413 compiler_DEFAULT=$CC
10415 # save warnings/boilerplate of simple test code
10416 ac_outfile=conftest.$ac_objext
10417 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10418 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10419 _lt_compiler_boilerplate=`cat conftest.err`
10420 $RM conftest*
10422 ac_outfile=conftest.$ac_objext
10423 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10424 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10425 _lt_linker_boilerplate=`cat conftest.err`
10426 $RM -r conftest*
10429 ## CAVEAT EMPTOR:
10430 ## There is no encapsulation within the following macros, do not change
10431 ## the running order or otherwise move them around unless you know exactly
10432 ## what you are doing...
10433 if test -n "$compiler"; then
10435 lt_prog_compiler_no_builtin_flag=
10437 if test yes = "$GCC"; then
10438 case $cc_basename in
10439 nvcc*)
10440 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10442 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10443 esac
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10446 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10447 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10448 $as_echo_n "(cached) " >&6
10449 else
10450 lt_cv_prog_compiler_rtti_exceptions=no
10451 ac_outfile=conftest.$ac_objext
10452 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10453 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10454 # Insert the option either (1) after the last *FLAGS variable, or
10455 # (2) before a word containing "conftest.", or (3) at the end.
10456 # Note that $ac_compile itself does not contain backslashes and begins
10457 # with a dollar sign (not a hyphen), so the echo should work correctly.
10458 # The option is referenced via a variable to avoid confusing sed.
10459 lt_compile=`echo "$ac_compile" | $SED \
10460 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10461 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10462 -e 's:$: $lt_compiler_flag:'`
10463 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10464 (eval "$lt_compile" 2>conftest.err)
10465 ac_status=$?
10466 cat conftest.err >&5
10467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468 if (exit $ac_status) && test -s "$ac_outfile"; then
10469 # The compiler can only warn and ignore the option if not recognized
10470 # So say no if there are warnings other than the usual output.
10471 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10472 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10473 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10474 lt_cv_prog_compiler_rtti_exceptions=yes
10477 $RM conftest*
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10481 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10483 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10484 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10485 else
10496 lt_prog_compiler_wl=
10497 lt_prog_compiler_pic=
10498 lt_prog_compiler_static=
10501 if test yes = "$GCC"; then
10502 lt_prog_compiler_wl='-Wl,'
10503 lt_prog_compiler_static='-static'
10505 case $host_os in
10506 aix*)
10507 # All AIX code is PIC.
10508 if test ia64 = "$host_cpu"; then
10509 # AIX 5 now supports IA64 processor
10510 lt_prog_compiler_static='-Bstatic'
10512 lt_prog_compiler_pic='-fPIC'
10515 amigaos*)
10516 case $host_cpu in
10517 powerpc)
10518 # see comment about AmigaOS4 .so support
10519 lt_prog_compiler_pic='-fPIC'
10521 m68k)
10522 # FIXME: we need at least 68020 code to build shared libraries, but
10523 # adding the '-m68020' flag to GCC prevents building anything better,
10524 # like '-m68040'.
10525 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10527 esac
10530 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10531 # PIC is the default for these OSes.
10534 mingw* | cygwin* | pw32* | os2* | cegcc*)
10535 # This hack is so that the source file can tell whether it is being
10536 # built for inclusion in a dll (and should export symbols for example).
10537 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10538 # (--disable-auto-import) libraries
10539 lt_prog_compiler_pic='-DDLL_EXPORT'
10540 case $host_os in
10541 os2*)
10542 lt_prog_compiler_static='$wl-static'
10544 esac
10547 darwin* | rhapsody*)
10548 # PIC is the default on this platform
10549 # Common symbols not allowed in MH_DYLIB files
10550 lt_prog_compiler_pic='-fno-common'
10553 haiku*)
10554 # PIC is the default for Haiku.
10555 # The "-static" flag exists, but is broken.
10556 lt_prog_compiler_static=
10559 hpux*)
10560 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10561 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10562 # sets the default TLS model and affects inlining.
10563 case $host_cpu in
10564 hppa*64*)
10565 # +Z the default
10568 lt_prog_compiler_pic='-fPIC'
10570 esac
10573 interix[3-9]*)
10574 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10575 # Instead, we relocate shared libraries at runtime.
10578 msdosdjgpp*)
10579 # Just because we use GCC doesn't mean we suddenly get shared libraries
10580 # on systems that don't support them.
10581 lt_prog_compiler_can_build_shared=no
10582 enable_shared=no
10585 *nto* | *qnx*)
10586 # QNX uses GNU C++, but need to define -shared option too, otherwise
10587 # it will coredump.
10588 lt_prog_compiler_pic='-fPIC -shared'
10591 sysv4*MP*)
10592 if test -d /usr/nec; then
10593 lt_prog_compiler_pic=-Kconform_pic
10598 lt_prog_compiler_pic='-fPIC'
10600 esac
10602 case $cc_basename in
10603 nvcc*) # Cuda Compiler Driver 2.2
10604 lt_prog_compiler_wl='-Xlinker '
10605 if test -n "$lt_prog_compiler_pic"; then
10606 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10609 esac
10610 else
10611 # PORTME Check for flag to pass linker flags through the system compiler.
10612 case $host_os in
10613 aix*)
10614 lt_prog_compiler_wl='-Wl,'
10615 if test ia64 = "$host_cpu"; then
10616 # AIX 5 now supports IA64 processor
10617 lt_prog_compiler_static='-Bstatic'
10618 else
10619 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10623 darwin* | rhapsody*)
10624 # PIC is the default on this platform
10625 # Common symbols not allowed in MH_DYLIB files
10626 lt_prog_compiler_pic='-fno-common'
10627 case $cc_basename in
10628 nagfor*)
10629 # NAG Fortran compiler
10630 lt_prog_compiler_wl='-Wl,-Wl,,'
10631 lt_prog_compiler_pic='-PIC'
10632 lt_prog_compiler_static='-Bstatic'
10634 esac
10637 mingw* | cygwin* | pw32* | os2* | cegcc*)
10638 # This hack is so that the source file can tell whether it is being
10639 # built for inclusion in a dll (and should export symbols for example).
10640 lt_prog_compiler_pic='-DDLL_EXPORT'
10641 case $host_os in
10642 os2*)
10643 lt_prog_compiler_static='$wl-static'
10645 esac
10648 hpux9* | hpux10* | hpux11*)
10649 lt_prog_compiler_wl='-Wl,'
10650 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10651 # not for PA HP-UX.
10652 case $host_cpu in
10653 hppa*64*|ia64*)
10654 # +Z the default
10657 lt_prog_compiler_pic='+Z'
10659 esac
10660 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10661 lt_prog_compiler_static='$wl-a ${wl}archive'
10664 irix5* | irix6* | nonstopux*)
10665 lt_prog_compiler_wl='-Wl,'
10666 # PIC (with -KPIC) is the default.
10667 lt_prog_compiler_static='-non_shared'
10670 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10671 case $cc_basename in
10672 # old Intel for x86_64, which still supported -KPIC.
10673 ecc*)
10674 lt_prog_compiler_wl='-Wl,'
10675 lt_prog_compiler_pic='-KPIC'
10676 lt_prog_compiler_static='-static'
10678 # icc used to be incompatible with GCC.
10679 # ICC 10 doesn't accept -KPIC any more.
10680 icc* | ifort*)
10681 lt_prog_compiler_wl='-Wl,'
10682 lt_prog_compiler_pic='-fPIC'
10683 lt_prog_compiler_static='-static'
10685 # Lahey Fortran 8.1.
10686 lf95*)
10687 lt_prog_compiler_wl='-Wl,'
10688 lt_prog_compiler_pic='--shared'
10689 lt_prog_compiler_static='--static'
10691 nagfor*)
10692 # NAG Fortran compiler
10693 lt_prog_compiler_wl='-Wl,-Wl,,'
10694 lt_prog_compiler_pic='-PIC'
10695 lt_prog_compiler_static='-Bstatic'
10697 tcc*)
10698 # Fabrice Bellard et al's Tiny C Compiler
10699 lt_prog_compiler_wl='-Wl,'
10700 lt_prog_compiler_pic='-fPIC'
10701 lt_prog_compiler_static='-static'
10703 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10704 # Portland Group compilers (*not* the Pentium gcc compiler,
10705 # which looks to be a dead project)
10706 lt_prog_compiler_wl='-Wl,'
10707 lt_prog_compiler_pic='-fpic'
10708 lt_prog_compiler_static='-Bstatic'
10710 ccc*)
10711 lt_prog_compiler_wl='-Wl,'
10712 # All Alpha code is PIC.
10713 lt_prog_compiler_static='-non_shared'
10715 xl* | bgxl* | bgf* | mpixl*)
10716 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10717 lt_prog_compiler_wl='-Wl,'
10718 lt_prog_compiler_pic='-qpic'
10719 lt_prog_compiler_static='-qstaticlink'
10722 case `$CC -V 2>&1 | sed 5q` in
10723 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10724 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10725 lt_prog_compiler_pic='-KPIC'
10726 lt_prog_compiler_static='-Bstatic'
10727 lt_prog_compiler_wl=''
10729 *Sun\ F* | *Sun*Fortran*)
10730 lt_prog_compiler_pic='-KPIC'
10731 lt_prog_compiler_static='-Bstatic'
10732 lt_prog_compiler_wl='-Qoption ld '
10734 *Sun\ C*)
10735 # Sun C 5.9
10736 lt_prog_compiler_pic='-KPIC'
10737 lt_prog_compiler_static='-Bstatic'
10738 lt_prog_compiler_wl='-Wl,'
10740 *Intel*\ [CF]*Compiler*)
10741 lt_prog_compiler_wl='-Wl,'
10742 lt_prog_compiler_pic='-fPIC'
10743 lt_prog_compiler_static='-static'
10745 *Portland\ Group*)
10746 lt_prog_compiler_wl='-Wl,'
10747 lt_prog_compiler_pic='-fpic'
10748 lt_prog_compiler_static='-Bstatic'
10750 esac
10752 esac
10755 newsos6)
10756 lt_prog_compiler_pic='-KPIC'
10757 lt_prog_compiler_static='-Bstatic'
10760 *nto* | *qnx*)
10761 # QNX uses GNU C++, but need to define -shared option too, otherwise
10762 # it will coredump.
10763 lt_prog_compiler_pic='-fPIC -shared'
10766 osf3* | osf4* | osf5*)
10767 lt_prog_compiler_wl='-Wl,'
10768 # All OSF/1 code is PIC.
10769 lt_prog_compiler_static='-non_shared'
10772 rdos*)
10773 lt_prog_compiler_static='-non_shared'
10776 solaris*)
10777 lt_prog_compiler_pic='-KPIC'
10778 lt_prog_compiler_static='-Bstatic'
10779 case $cc_basename in
10780 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10781 lt_prog_compiler_wl='-Qoption ld ';;
10783 lt_prog_compiler_wl='-Wl,';;
10784 esac
10787 sunos4*)
10788 lt_prog_compiler_wl='-Qoption ld '
10789 lt_prog_compiler_pic='-PIC'
10790 lt_prog_compiler_static='-Bstatic'
10793 sysv4 | sysv4.2uw2* | sysv4.3*)
10794 lt_prog_compiler_wl='-Wl,'
10795 lt_prog_compiler_pic='-KPIC'
10796 lt_prog_compiler_static='-Bstatic'
10799 sysv4*MP*)
10800 if test -d /usr/nec; then
10801 lt_prog_compiler_pic='-Kconform_pic'
10802 lt_prog_compiler_static='-Bstatic'
10806 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10807 lt_prog_compiler_wl='-Wl,'
10808 lt_prog_compiler_pic='-KPIC'
10809 lt_prog_compiler_static='-Bstatic'
10812 unicos*)
10813 lt_prog_compiler_wl='-Wl,'
10814 lt_prog_compiler_can_build_shared=no
10817 uts4*)
10818 lt_prog_compiler_pic='-pic'
10819 lt_prog_compiler_static='-Bstatic'
10823 lt_prog_compiler_can_build_shared=no
10825 esac
10828 case $host_os in
10829 # For platforms that do not support PIC, -DPIC is meaningless:
10830 *djgpp*)
10831 lt_prog_compiler_pic=
10834 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10836 esac
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10839 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10840 if ${lt_cv_prog_compiler_pic+:} false; then :
10841 $as_echo_n "(cached) " >&6
10842 else
10843 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10846 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10847 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10850 # Check to make sure the PIC flag actually works.
10852 if test -n "$lt_prog_compiler_pic"; then
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10854 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10855 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10856 $as_echo_n "(cached) " >&6
10857 else
10858 lt_cv_prog_compiler_pic_works=no
10859 ac_outfile=conftest.$ac_objext
10860 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10861 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10862 # Insert the option either (1) after the last *FLAGS variable, or
10863 # (2) before a word containing "conftest.", or (3) at the end.
10864 # Note that $ac_compile itself does not contain backslashes and begins
10865 # with a dollar sign (not a hyphen), so the echo should work correctly.
10866 # The option is referenced via a variable to avoid confusing sed.
10867 lt_compile=`echo "$ac_compile" | $SED \
10868 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10869 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10870 -e 's:$: $lt_compiler_flag:'`
10871 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10872 (eval "$lt_compile" 2>conftest.err)
10873 ac_status=$?
10874 cat conftest.err >&5
10875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10876 if (exit $ac_status) && test -s "$ac_outfile"; then
10877 # The compiler can only warn and ignore the option if not recognized
10878 # So say no if there are warnings other than the usual output.
10879 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10880 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10881 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10882 lt_cv_prog_compiler_pic_works=yes
10885 $RM conftest*
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10889 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10891 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10892 case $lt_prog_compiler_pic in
10893 "" | " "*) ;;
10894 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10895 esac
10896 else
10897 lt_prog_compiler_pic=
10898 lt_prog_compiler_can_build_shared=no
10914 # Check to make sure the static flag actually works.
10916 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10918 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10919 if ${lt_cv_prog_compiler_static_works+:} false; then :
10920 $as_echo_n "(cached) " >&6
10921 else
10922 lt_cv_prog_compiler_static_works=no
10923 save_LDFLAGS=$LDFLAGS
10924 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10925 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10926 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10927 # The linker can only warn and ignore the option if not recognized
10928 # So say no if there are warnings
10929 if test -s conftest.err; then
10930 # Append any errors to the config.log.
10931 cat conftest.err 1>&5
10932 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10933 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10934 if diff conftest.exp conftest.er2 >/dev/null; then
10935 lt_cv_prog_compiler_static_works=yes
10937 else
10938 lt_cv_prog_compiler_static_works=yes
10941 $RM -r conftest*
10942 LDFLAGS=$save_LDFLAGS
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10946 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10948 if test yes = "$lt_cv_prog_compiler_static_works"; then
10950 else
10951 lt_prog_compiler_static=
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10961 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10962 if ${lt_cv_prog_compiler_c_o+:} false; then :
10963 $as_echo_n "(cached) " >&6
10964 else
10965 lt_cv_prog_compiler_c_o=no
10966 $RM -r conftest 2>/dev/null
10967 mkdir conftest
10968 cd conftest
10969 mkdir out
10970 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10972 lt_compiler_flag="-o out/conftest2.$ac_objext"
10973 # Insert the option either (1) after the last *FLAGS variable, or
10974 # (2) before a word containing "conftest.", or (3) at the end.
10975 # Note that $ac_compile itself does not contain backslashes and begins
10976 # with a dollar sign (not a hyphen), so the echo should work correctly.
10977 lt_compile=`echo "$ac_compile" | $SED \
10978 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10979 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10980 -e 's:$: $lt_compiler_flag:'`
10981 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10982 (eval "$lt_compile" 2>out/conftest.err)
10983 ac_status=$?
10984 cat out/conftest.err >&5
10985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10987 then
10988 # The compiler can only warn and ignore the option if not recognized
10989 # So say no if there are warnings
10990 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10991 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10992 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10993 lt_cv_prog_compiler_c_o=yes
10996 chmod u+w . 2>&5
10997 $RM conftest*
10998 # SGI C++ compiler will create directory out/ii_files/ for
10999 # template instantiation
11000 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11001 $RM out/* && rmdir out
11002 cd ..
11003 $RM -r conftest
11004 $RM conftest*
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11008 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11016 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11017 if ${lt_cv_prog_compiler_c_o+:} false; then :
11018 $as_echo_n "(cached) " >&6
11019 else
11020 lt_cv_prog_compiler_c_o=no
11021 $RM -r conftest 2>/dev/null
11022 mkdir conftest
11023 cd conftest
11024 mkdir out
11025 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11027 lt_compiler_flag="-o out/conftest2.$ac_objext"
11028 # Insert the option either (1) after the last *FLAGS variable, or
11029 # (2) before a word containing "conftest.", or (3) at the end.
11030 # Note that $ac_compile itself does not contain backslashes and begins
11031 # with a dollar sign (not a hyphen), so the echo should work correctly.
11032 lt_compile=`echo "$ac_compile" | $SED \
11033 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11034 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11035 -e 's:$: $lt_compiler_flag:'`
11036 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11037 (eval "$lt_compile" 2>out/conftest.err)
11038 ac_status=$?
11039 cat out/conftest.err >&5
11040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11042 then
11043 # The compiler can only warn and ignore the option if not recognized
11044 # So say no if there are warnings
11045 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11046 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11047 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11048 lt_cv_prog_compiler_c_o=yes
11051 chmod u+w . 2>&5
11052 $RM conftest*
11053 # SGI C++ compiler will create directory out/ii_files/ for
11054 # template instantiation
11055 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11056 $RM out/* && rmdir out
11057 cd ..
11058 $RM -r conftest
11059 $RM conftest*
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11063 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11068 hard_links=nottested
11069 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11070 # do not overwrite the value of need_locks provided by the user
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11072 $as_echo_n "checking if we can lock with hard links... " >&6; }
11073 hard_links=yes
11074 $RM conftest*
11075 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11076 touch conftest.a
11077 ln conftest.a conftest.b 2>&5 || hard_links=no
11078 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11080 $as_echo "$hard_links" >&6; }
11081 if test no = "$hard_links"; then
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11083 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11084 need_locks=warn
11086 else
11087 need_locks=no
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11096 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11098 runpath_var=
11099 allow_undefined_flag=
11100 always_export_symbols=no
11101 archive_cmds=
11102 archive_expsym_cmds=
11103 compiler_needs_object=no
11104 enable_shared_with_static_runtimes=no
11105 export_dynamic_flag_spec=
11106 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11107 hardcode_automatic=no
11108 hardcode_direct=no
11109 hardcode_direct_absolute=no
11110 hardcode_libdir_flag_spec=
11111 hardcode_libdir_separator=
11112 hardcode_minus_L=no
11113 hardcode_shlibpath_var=unsupported
11114 inherit_rpath=no
11115 link_all_deplibs=unknown
11116 module_cmds=
11117 module_expsym_cmds=
11118 old_archive_from_new_cmds=
11119 old_archive_from_expsyms_cmds=
11120 thread_safe_flag_spec=
11121 whole_archive_flag_spec=
11122 # include_expsyms should be a list of space-separated symbols to be *always*
11123 # included in the symbol list
11124 include_expsyms=
11125 # exclude_expsyms can be an extended regexp of symbols to exclude
11126 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11127 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11128 # as well as any symbol that contains 'd'.
11129 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11130 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11131 # platforms (ab)use it in PIC code, but their linkers get confused if
11132 # the symbol is explicitly referenced. Since portable code cannot
11133 # rely on this symbol name, it's probably fine to never include it in
11134 # preloaded symbol tables.
11135 # Exclude shared library initialization/finalization symbols.
11136 extract_expsyms_cmds=
11138 case $host_os in
11139 cygwin* | mingw* | pw32* | cegcc*)
11140 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
11141 # When not using gcc, we currently assume that we are using
11142 # Microsoft Visual C++ or Intel C++ Compiler.
11143 if test yes != "$GCC"; then
11144 with_gnu_ld=no
11147 interix*)
11148 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
11149 with_gnu_ld=yes
11151 openbsd* | bitrig*)
11152 with_gnu_ld=no
11154 esac
11156 ld_shlibs=yes
11158 # On some targets, GNU ld is compatible enough with the native linker
11159 # that we're better off using the native interface for both.
11160 lt_use_gnu_ld_interface=no
11161 if test yes = "$with_gnu_ld"; then
11162 case $host_os in
11163 aix*)
11164 # The AIX port of GNU ld has always aspired to compatibility
11165 # with the native linker. However, as the warning in the GNU ld
11166 # block says, versions before 2.19.5* couldn't really create working
11167 # shared libraries, regardless of the interface used.
11168 case `$LD -v 2>&1` in
11169 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11170 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11171 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11173 lt_use_gnu_ld_interface=yes
11175 esac
11178 lt_use_gnu_ld_interface=yes
11180 esac
11183 if test yes = "$lt_use_gnu_ld_interface"; then
11184 # If archive_cmds runs LD, not CC, wlarc should be empty
11185 wlarc='$wl'
11187 # Set some defaults for GNU ld with shared library support. These
11188 # are reset later if shared libraries are not supported. Putting them
11189 # here allows them to be overridden if necessary.
11190 runpath_var=LD_RUN_PATH
11191 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11192 export_dynamic_flag_spec='$wl--export-dynamic'
11193 # ancient GNU ld didn't support --whole-archive et. al.
11194 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11195 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11196 else
11197 whole_archive_flag_spec=
11199 supports_anon_versioning=no
11200 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
11201 *GNU\ gold*) supports_anon_versioning=yes ;;
11202 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11203 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11204 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11205 *\ 2.11.*) ;; # other 2.11 versions
11206 *) supports_anon_versioning=yes ;;
11207 esac
11209 # See if GNU ld supports shared libraries.
11210 case $host_os in
11211 aix[3-9]*)
11212 # On AIX/PPC, the GNU linker is very broken
11213 if test ia64 != "$host_cpu"; then
11214 ld_shlibs=no
11215 cat <<_LT_EOF 1>&2
11217 *** Warning: the GNU linker, at least up to release 2.19, is reported
11218 *** to be unable to reliably create shared libraries on AIX.
11219 *** Therefore, libtool is disabling shared libraries support. If you
11220 *** really care for shared libraries, you may want to install binutils
11221 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11222 *** You will then need to restart the configuration process.
11224 _LT_EOF
11228 amigaos*)
11229 case $host_cpu in
11230 powerpc)
11231 # see comment about AmigaOS4 .so support
11232 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11233 archive_expsym_cmds=''
11235 m68k)
11236 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)'
11237 hardcode_libdir_flag_spec='-L$libdir'
11238 hardcode_minus_L=yes
11240 esac
11243 beos*)
11244 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11245 allow_undefined_flag=unsupported
11246 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11247 # support --undefined. This deserves some investigation. FIXME
11248 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11249 else
11250 ld_shlibs=no
11254 cygwin* | mingw* | pw32* | cegcc*)
11255 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11256 # as there is no search path for DLLs.
11257 hardcode_libdir_flag_spec='-L$libdir'
11258 export_dynamic_flag_spec='$wl--export-all-symbols'
11259 allow_undefined_flag=unsupported
11260 always_export_symbols=no
11261 enable_shared_with_static_runtimes=yes
11262 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'
11263 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11265 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11266 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11267 # If the export-symbols file already is a .def file, use it as
11268 # is; otherwise, prepend EXPORTS...
11269 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11270 cp $export_symbols $output_objdir/$soname.def;
11271 else
11272 echo EXPORTS > $output_objdir/$soname.def;
11273 cat $export_symbols >> $output_objdir/$soname.def;
11275 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11276 else
11277 ld_shlibs=no
11281 haiku*)
11282 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11283 link_all_deplibs=yes
11286 os2*)
11287 hardcode_libdir_flag_spec='-L$libdir'
11288 hardcode_minus_L=yes
11289 allow_undefined_flag=unsupported
11290 shrext_cmds=.dll
11291 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11292 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11293 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11294 $ECHO EXPORTS >> $output_objdir/$libname.def~
11295 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11296 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11297 emximp -o $lib $output_objdir/$libname.def'
11298 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11299 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11300 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11301 $ECHO EXPORTS >> $output_objdir/$libname.def~
11302 prefix_cmds="$SED"~
11303 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11304 prefix_cmds="$prefix_cmds -e 1d";
11306 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11307 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11308 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11309 emximp -o $lib $output_objdir/$libname.def'
11310 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11311 enable_shared_with_static_runtimes=yes
11312 file_list_spec='@'
11315 interix[3-9]*)
11316 hardcode_direct=no
11317 hardcode_shlibpath_var=no
11318 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11319 export_dynamic_flag_spec='$wl-E'
11320 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11321 # Instead, shared libraries are loaded at an image base (0x10000000 by
11322 # default) and relocated if they conflict, which is a slow very memory
11323 # consuming and fragmenting process. To avoid this, we pick a random,
11324 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11325 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11326 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11327 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'
11330 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11331 tmp_diet=no
11332 if test linux-dietlibc = "$host_os"; then
11333 case $cc_basename in
11334 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11335 esac
11337 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11338 && test no = "$tmp_diet"
11339 then
11340 tmp_addflag=' $pic_flag'
11341 tmp_sharedflag='-shared'
11342 case $cc_basename,$host_cpu in
11343 pgcc*) # Portland Group C compiler
11344 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'
11345 tmp_addflag=' $pic_flag'
11347 pgf77* | pgf90* | pgf95* | pgfortran*)
11348 # Portland Group f77 and f90 compilers
11349 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'
11350 tmp_addflag=' $pic_flag -Mnomain' ;;
11351 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11352 tmp_addflag=' -i_dynamic' ;;
11353 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11354 tmp_addflag=' -i_dynamic -nofor_main' ;;
11355 ifc* | ifort*) # Intel Fortran compiler
11356 tmp_addflag=' -nofor_main' ;;
11357 lf95*) # Lahey Fortran 8.1
11358 whole_archive_flag_spec=
11359 tmp_sharedflag='--shared' ;;
11360 nagfor*) # NAGFOR 5.3
11361 tmp_sharedflag='-Wl,-shared' ;;
11362 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11363 tmp_sharedflag='-qmkshrobj'
11364 tmp_addflag= ;;
11365 nvcc*) # Cuda Compiler Driver 2.2
11366 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'
11367 compiler_needs_object=yes
11369 esac
11370 case `$CC -V 2>&1 | sed 5q` in
11371 *Sun\ C*) # Sun C 5.9
11372 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'
11373 compiler_needs_object=yes
11374 tmp_sharedflag='-G' ;;
11375 *Sun\ F*) # Sun Fortran 8.3
11376 tmp_sharedflag='-G' ;;
11377 esac
11378 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11380 if test yes = "$supports_anon_versioning"; then
11381 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11382 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11383 echo "local: *; };" >> $output_objdir/$libname.ver~
11384 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11387 case $cc_basename in
11388 tcc*)
11389 export_dynamic_flag_spec='-rdynamic'
11391 xlf* | bgf* | bgxlf* | mpixlf*)
11392 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11393 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11394 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11395 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11396 if test yes = "$supports_anon_versioning"; then
11397 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11398 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11399 echo "local: *; };" >> $output_objdir/$libname.ver~
11400 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11403 esac
11404 else
11405 ld_shlibs=no
11409 netbsd*)
11410 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11411 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11412 wlarc=
11413 else
11414 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11415 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11419 solaris*)
11420 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11421 ld_shlibs=no
11422 cat <<_LT_EOF 1>&2
11424 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11425 *** create shared libraries on Solaris systems. Therefore, libtool
11426 *** is disabling shared libraries support. We urge you to upgrade GNU
11427 *** binutils to release 2.9.1 or newer. Another option is to modify
11428 *** your PATH or compiler configuration so that the native linker is
11429 *** used, and then restart.
11431 _LT_EOF
11432 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11433 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11434 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11435 else
11436 ld_shlibs=no
11440 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11441 case `$LD -v 2>&1` in
11442 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11443 ld_shlibs=no
11444 cat <<_LT_EOF 1>&2
11446 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11447 *** reliably create shared libraries on SCO systems. Therefore, libtool
11448 *** is disabling shared libraries support. We urge you to upgrade GNU
11449 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11450 *** your PATH or compiler configuration so that the native linker is
11451 *** used, and then restart.
11453 _LT_EOF
11456 # For security reasons, it is highly recommended that you always
11457 # use absolute paths for naming shared libraries, and exclude the
11458 # DT_RUNPATH tag from executables and libraries. But doing so
11459 # requires that you compile everything twice, which is a pain.
11460 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11461 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11462 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11463 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11464 else
11465 ld_shlibs=no
11468 esac
11471 sunos4*)
11472 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11473 wlarc=
11474 hardcode_direct=yes
11475 hardcode_shlibpath_var=no
11479 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11480 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11481 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11482 else
11483 ld_shlibs=no
11486 esac
11488 if test no = "$ld_shlibs"; then
11489 runpath_var=
11490 hardcode_libdir_flag_spec=
11491 export_dynamic_flag_spec=
11492 whole_archive_flag_spec=
11494 else
11495 # PORTME fill in a description of your system's linker (not GNU ld)
11496 case $host_os in
11497 aix3*)
11498 allow_undefined_flag=unsupported
11499 always_export_symbols=yes
11500 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'
11501 # Note: this linker hardcodes the directories in LIBPATH if there
11502 # are no directories specified by -L.
11503 hardcode_minus_L=yes
11504 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11505 # Neither direct hardcoding nor static linking is supported with a
11506 # broken collect2.
11507 hardcode_direct=unsupported
11511 aix[4-9]*)
11512 if test ia64 = "$host_cpu"; then
11513 # On IA64, the linker does run time linking by default, so we don't
11514 # have to do anything special.
11515 aix_use_runtimelinking=no
11516 exp_sym_flag='-Bexport'
11517 no_entry_flag=
11518 else
11519 # If we're using GNU nm, then we don't want the "-C" option.
11520 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11521 # Without the "-l" option, or with the "-B" option, AIX nm treats
11522 # weak defined symbols like other global defined symbols, whereas
11523 # GNU nm marks them as "W".
11524 # While the 'weak' keyword is ignored in the Export File, we need
11525 # it in the Import File for the 'aix-soname' feature, so we have
11526 # to replace the "-B" option with "-P" for AIX nm.
11527 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11528 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
11529 else
11530 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
11532 aix_use_runtimelinking=no
11534 # Test if we are trying to use run time linking or normal
11535 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11536 # have runtime linking enabled, and use it for executables.
11537 # For shared libraries, we enable/disable runtime linking
11538 # depending on the kind of the shared library created -
11539 # when "with_aix_soname,aix_use_runtimelinking" is:
11540 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11541 # "aix,yes" lib.so shared, rtl:yes, for executables
11542 # lib.a static archive
11543 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11544 # lib.a(lib.so.V) shared, rtl:no, for executables
11545 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11546 # lib.a(lib.so.V) shared, rtl:no
11547 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11548 # lib.a static archive
11549 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11550 for ld_flag in $LDFLAGS; do
11551 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11552 aix_use_runtimelinking=yes
11553 break
11555 done
11556 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11557 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11558 # so we don't have lib.a shared libs to link our executables.
11559 # We have to force runtime linking in this case.
11560 aix_use_runtimelinking=yes
11561 LDFLAGS="$LDFLAGS -Wl,-brtl"
11564 esac
11566 exp_sym_flag='-bexport'
11567 no_entry_flag='-bnoentry'
11570 # When large executables or shared objects are built, AIX ld can
11571 # have problems creating the table of contents. If linking a library
11572 # or program results in "error TOC overflow" add -mminimal-toc to
11573 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11574 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11576 archive_cmds=''
11577 hardcode_direct=yes
11578 hardcode_direct_absolute=yes
11579 hardcode_libdir_separator=':'
11580 link_all_deplibs=yes
11581 file_list_spec='$wl-f,'
11582 case $with_aix_soname,$aix_use_runtimelinking in
11583 aix,*) ;; # traditional, no import file
11584 svr4,* | *,yes) # use import file
11585 # The Import File defines what to hardcode.
11586 hardcode_direct=no
11587 hardcode_direct_absolute=no
11589 esac
11591 if test yes = "$GCC"; then
11592 case $host_os in aix4.[012]|aix4.[012].*)
11593 # We only want to do this on AIX 4.2 and lower, the check
11594 # below for broken collect2 doesn't work under 4.3+
11595 collect2name=`$CC -print-prog-name=collect2`
11596 if test -f "$collect2name" &&
11597 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11598 then
11599 # We have reworked collect2
11601 else
11602 # We have old collect2
11603 hardcode_direct=unsupported
11604 # It fails to find uninstalled libraries when the uninstalled
11605 # path is not listed in the libpath. Setting hardcode_minus_L
11606 # to unsupported forces relinking
11607 hardcode_minus_L=yes
11608 hardcode_libdir_flag_spec='-L$libdir'
11609 hardcode_libdir_separator=
11612 esac
11613 shared_flag='-shared'
11614 if test yes = "$aix_use_runtimelinking"; then
11615 shared_flag="$shared_flag "'$wl-G'
11617 # Need to ensure runtime linking is disabled for the traditional
11618 # shared library, or the linker may eventually find shared libraries
11619 # /with/ Import File - we do not want to mix them.
11620 shared_flag_aix='-shared'
11621 shared_flag_svr4='-shared $wl-G'
11622 else
11623 # not using gcc
11624 if test ia64 = "$host_cpu"; then
11625 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11626 # chokes on -Wl,-G. The following line is correct:
11627 shared_flag='-G'
11628 else
11629 if test yes = "$aix_use_runtimelinking"; then
11630 shared_flag='$wl-G'
11631 else
11632 shared_flag='$wl-bM:SRE'
11634 shared_flag_aix='$wl-bM:SRE'
11635 shared_flag_svr4='$wl-G'
11639 export_dynamic_flag_spec='$wl-bexpall'
11640 # It seems that -bexpall does not export symbols beginning with
11641 # underscore (_), so it is better to generate a list of symbols to export.
11642 always_export_symbols=yes
11643 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11644 # Warning - without using the other runtime loading flags (-brtl),
11645 # -berok will link without error, but may produce a broken library.
11646 allow_undefined_flag='-berok'
11647 # Determine the default libpath from the value encoded in an
11648 # empty executable.
11649 if test set = "${lt_cv_aix_libpath+set}"; then
11650 aix_libpath=$lt_cv_aix_libpath
11651 else
11652 if ${lt_cv_aix_libpath_+:} false; then :
11653 $as_echo_n "(cached) " >&6
11654 else
11655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11656 /* end confdefs.h. */
11659 main ()
11663 return 0;
11665 _ACEOF
11666 if ac_fn_c_try_link "$LINENO"; then :
11668 lt_aix_libpath_sed='
11669 /Import File Strings/,/^$/ {
11670 /^0/ {
11671 s/^0 *\([^ ]*\) *$/\1/
11675 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11676 # Check for a 64-bit object if we didn't find anything.
11677 if test -z "$lt_cv_aix_libpath_"; then
11678 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11681 rm -f core conftest.err conftest.$ac_objext \
11682 conftest$ac_exeext conftest.$ac_ext
11683 if test -z "$lt_cv_aix_libpath_"; then
11684 lt_cv_aix_libpath_=/usr/lib:/lib
11689 aix_libpath=$lt_cv_aix_libpath_
11692 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11693 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
11694 else
11695 if test ia64 = "$host_cpu"; then
11696 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11697 allow_undefined_flag="-z nodefs"
11698 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"
11699 else
11700 # Determine the default libpath from the value encoded in an
11701 # empty executable.
11702 if test set = "${lt_cv_aix_libpath+set}"; then
11703 aix_libpath=$lt_cv_aix_libpath
11704 else
11705 if ${lt_cv_aix_libpath_+:} false; then :
11706 $as_echo_n "(cached) " >&6
11707 else
11708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11709 /* end confdefs.h. */
11712 main ()
11716 return 0;
11718 _ACEOF
11719 if ac_fn_c_try_link "$LINENO"; then :
11721 lt_aix_libpath_sed='
11722 /Import File Strings/,/^$/ {
11723 /^0/ {
11724 s/^0 *\([^ ]*\) *$/\1/
11728 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11729 # Check for a 64-bit object if we didn't find anything.
11730 if test -z "$lt_cv_aix_libpath_"; then
11731 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11734 rm -f core conftest.err conftest.$ac_objext \
11735 conftest$ac_exeext conftest.$ac_ext
11736 if test -z "$lt_cv_aix_libpath_"; then
11737 lt_cv_aix_libpath_=/usr/lib:/lib
11742 aix_libpath=$lt_cv_aix_libpath_
11745 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11746 # Warning - without using the other run time loading flags,
11747 # -berok will link without error, but may produce a broken library.
11748 no_undefined_flag=' $wl-bernotok'
11749 allow_undefined_flag=' $wl-berok'
11750 if test yes = "$with_gnu_ld"; then
11751 # We only use this code for GNU lds that support --whole-archive.
11752 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11753 else
11754 # Exported symbols can be pulled into shared objects from archives
11755 whole_archive_flag_spec='$convenience'
11757 archive_cmds_need_lc=yes
11758 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11759 # -brtl affects multiple linker settings, -berok does not and is overridden later
11760 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11761 if test svr4 != "$with_aix_soname"; then
11762 # This is similar to how AIX traditionally builds its shared libraries.
11763 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
11765 if test aix != "$with_aix_soname"; then
11766 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
11767 else
11768 # used by -dlpreopen to get the symbols
11769 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11771 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11776 amigaos*)
11777 case $host_cpu in
11778 powerpc)
11779 # see comment about AmigaOS4 .so support
11780 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11781 archive_expsym_cmds=''
11783 m68k)
11784 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)'
11785 hardcode_libdir_flag_spec='-L$libdir'
11786 hardcode_minus_L=yes
11788 esac
11791 bsdi[45]*)
11792 export_dynamic_flag_spec=-rdynamic
11795 cygwin* | mingw* | pw32* | cegcc*)
11796 # When not using gcc, we currently assume that we are using
11797 # Microsoft Visual C++ or Intel C++ Compiler.
11798 # hardcode_libdir_flag_spec is actually meaningless, as there is
11799 # no search path for DLLs.
11800 case $cc_basename in
11801 cl* | icl*)
11802 # Native MSVC or ICC
11803 hardcode_libdir_flag_spec=' '
11804 allow_undefined_flag=unsupported
11805 always_export_symbols=yes
11806 file_list_spec='@'
11807 # Tell ltmain to make .lib files, not .a files.
11808 libext=lib
11809 # Tell ltmain to make .dll files, not .so files.
11810 shrext_cmds=.dll
11811 # FIXME: Setting linknames here is a bad hack.
11812 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11813 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11814 cp "$export_symbols" "$output_objdir/$soname.def";
11815 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11816 else
11817 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11819 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11820 linknames='
11821 # The linker will not automatically build a static lib if we build a DLL.
11822 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11823 enable_shared_with_static_runtimes=yes
11824 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11825 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11826 # Don't use ranlib
11827 old_postinstall_cmds='chmod 644 $oldlib'
11828 postlink_cmds='lt_outputfile="@OUTPUT@"~
11829 lt_tool_outputfile="@TOOL_OUTPUT@"~
11830 case $lt_outputfile in
11831 *.exe|*.EXE) ;;
11833 lt_outputfile=$lt_outputfile.exe
11834 lt_tool_outputfile=$lt_tool_outputfile.exe
11836 esac~
11837 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11838 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11839 $RM "$lt_outputfile.manifest";
11843 # Assume MSVC and ICC wrapper
11844 hardcode_libdir_flag_spec=' '
11845 allow_undefined_flag=unsupported
11846 # Tell ltmain to make .lib files, not .a files.
11847 libext=lib
11848 # Tell ltmain to make .dll files, not .so files.
11849 shrext_cmds=.dll
11850 # FIXME: Setting linknames here is a bad hack.
11851 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11852 # The linker will automatically build a .lib file if we build a DLL.
11853 old_archive_from_new_cmds='true'
11854 # FIXME: Should let the user specify the lib program.
11855 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11856 enable_shared_with_static_runtimes=yes
11858 esac
11861 darwin* | rhapsody*)
11864 archive_cmds_need_lc=no
11865 hardcode_direct=no
11866 hardcode_automatic=yes
11867 hardcode_shlibpath_var=unsupported
11868 if test yes = "$lt_cv_ld_force_load"; then
11869 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\"`'
11871 else
11872 whole_archive_flag_spec=''
11874 link_all_deplibs=yes
11875 allow_undefined_flag=$_lt_dar_allow_undefined
11876 case $cc_basename in
11877 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11878 *) _lt_dar_can_shared=$GCC ;;
11879 esac
11880 if test yes = "$_lt_dar_can_shared"; then
11881 output_verbose_link_cmd=func_echo_all
11882 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11883 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11884 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"
11885 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"
11887 else
11888 ld_shlibs=no
11893 dgux*)
11894 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11895 hardcode_libdir_flag_spec='-L$libdir'
11896 hardcode_shlibpath_var=no
11899 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11900 # support. Future versions do this automatically, but an explicit c++rt0.o
11901 # does not break anything, and helps significantly (at the cost of a little
11902 # extra space).
11903 freebsd2.2*)
11904 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11905 hardcode_libdir_flag_spec='-R$libdir'
11906 hardcode_direct=yes
11907 hardcode_shlibpath_var=no
11910 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11911 freebsd2.*)
11912 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11913 hardcode_direct=yes
11914 hardcode_minus_L=yes
11915 hardcode_shlibpath_var=no
11918 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11919 freebsd* | dragonfly*)
11920 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11921 hardcode_libdir_flag_spec='-R$libdir'
11922 hardcode_direct=yes
11923 hardcode_shlibpath_var=no
11926 hpux9*)
11927 if test yes = "$GCC"; then
11928 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11929 else
11930 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11932 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11933 hardcode_libdir_separator=:
11934 hardcode_direct=yes
11936 # hardcode_minus_L: Not really in the search PATH,
11937 # but as the default location of the library.
11938 hardcode_minus_L=yes
11939 export_dynamic_flag_spec='$wl-E'
11942 hpux10*)
11943 if test yes,no = "$GCC,$with_gnu_ld"; then
11944 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11945 else
11946 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11948 if test no = "$with_gnu_ld"; then
11949 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11950 hardcode_libdir_separator=:
11951 hardcode_direct=yes
11952 hardcode_direct_absolute=yes
11953 export_dynamic_flag_spec='$wl-E'
11954 # hardcode_minus_L: Not really in the search PATH,
11955 # but as the default location of the library.
11956 hardcode_minus_L=yes
11960 hpux11*)
11961 if test yes,no = "$GCC,$with_gnu_ld"; then
11962 case $host_cpu in
11963 hppa*64*)
11964 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11966 ia64*)
11967 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11970 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11972 esac
11973 else
11974 case $host_cpu in
11975 hppa*64*)
11976 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11978 ia64*)
11979 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11983 # Older versions of the 11.00 compiler do not understand -b yet
11984 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11986 $as_echo_n "checking if $CC understands -b... " >&6; }
11987 if ${lt_cv_prog_compiler__b+:} false; then :
11988 $as_echo_n "(cached) " >&6
11989 else
11990 lt_cv_prog_compiler__b=no
11991 save_LDFLAGS=$LDFLAGS
11992 LDFLAGS="$LDFLAGS -b"
11993 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11994 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11995 # The linker can only warn and ignore the option if not recognized
11996 # So say no if there are warnings
11997 if test -s conftest.err; then
11998 # Append any errors to the config.log.
11999 cat conftest.err 1>&5
12000 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12001 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12002 if diff conftest.exp conftest.er2 >/dev/null; then
12003 lt_cv_prog_compiler__b=yes
12005 else
12006 lt_cv_prog_compiler__b=yes
12009 $RM -r conftest*
12010 LDFLAGS=$save_LDFLAGS
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12014 $as_echo "$lt_cv_prog_compiler__b" >&6; }
12016 if test yes = "$lt_cv_prog_compiler__b"; then
12017 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12018 else
12019 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12023 esac
12025 if test no = "$with_gnu_ld"; then
12026 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12027 hardcode_libdir_separator=:
12029 case $host_cpu in
12030 hppa*64*|ia64*)
12031 hardcode_direct=no
12032 hardcode_shlibpath_var=no
12035 hardcode_direct=yes
12036 hardcode_direct_absolute=yes
12037 export_dynamic_flag_spec='$wl-E'
12039 # hardcode_minus_L: Not really in the search PATH,
12040 # but as the default location of the library.
12041 hardcode_minus_L=yes
12043 esac
12047 irix5* | irix6* | nonstopux*)
12048 if test yes = "$GCC"; then
12049 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'
12050 # Try to use the -exported_symbol ld option, if it does not
12051 # work, assume that -exports_file does not work either and
12052 # implicitly export all symbols.
12053 # This should be the same for all languages, so no per-tag cache variable.
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12055 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12056 if ${lt_cv_irix_exported_symbol+:} false; then :
12057 $as_echo_n "(cached) " >&6
12058 else
12059 save_LDFLAGS=$LDFLAGS
12060 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12062 /* end confdefs.h. */
12063 int foo (void) { return 0; }
12064 _ACEOF
12065 if ac_fn_c_try_link "$LINENO"; then :
12066 lt_cv_irix_exported_symbol=yes
12067 else
12068 lt_cv_irix_exported_symbol=no
12070 rm -f core conftest.err conftest.$ac_objext \
12071 conftest$ac_exeext conftest.$ac_ext
12072 LDFLAGS=$save_LDFLAGS
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12075 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
12076 if test yes = "$lt_cv_irix_exported_symbol"; then
12077 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'
12079 else
12080 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'
12081 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'
12083 archive_cmds_need_lc='no'
12084 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12085 hardcode_libdir_separator=:
12086 inherit_rpath=yes
12087 link_all_deplibs=yes
12090 linux*)
12091 case $cc_basename in
12092 tcc*)
12093 # Fabrice Bellard et al's Tiny C Compiler
12094 ld_shlibs=yes
12095 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12097 esac
12100 netbsd*)
12101 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12102 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12103 else
12104 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12106 hardcode_libdir_flag_spec='-R$libdir'
12107 hardcode_direct=yes
12108 hardcode_shlibpath_var=no
12111 newsos6)
12112 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12113 hardcode_direct=yes
12114 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12115 hardcode_libdir_separator=:
12116 hardcode_shlibpath_var=no
12119 *nto* | *qnx*)
12122 openbsd* | bitrig*)
12123 if test -f /usr/libexec/ld.so; then
12124 hardcode_direct=yes
12125 hardcode_shlibpath_var=no
12126 hardcode_direct_absolute=yes
12127 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12128 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12129 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12130 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12131 export_dynamic_flag_spec='$wl-E'
12132 else
12133 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12134 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12136 else
12137 ld_shlibs=no
12141 os2*)
12142 hardcode_libdir_flag_spec='-L$libdir'
12143 hardcode_minus_L=yes
12144 allow_undefined_flag=unsupported
12145 shrext_cmds=.dll
12146 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12147 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12148 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12149 $ECHO EXPORTS >> $output_objdir/$libname.def~
12150 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12151 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12152 emximp -o $lib $output_objdir/$libname.def'
12153 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12154 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12155 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12156 $ECHO EXPORTS >> $output_objdir/$libname.def~
12157 prefix_cmds="$SED"~
12158 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12159 prefix_cmds="$prefix_cmds -e 1d";
12161 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12162 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12163 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12164 emximp -o $lib $output_objdir/$libname.def'
12165 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12166 enable_shared_with_static_runtimes=yes
12167 file_list_spec='@'
12170 osf3*)
12171 if test yes = "$GCC"; then
12172 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12173 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'
12174 else
12175 allow_undefined_flag=' -expect_unresolved \*'
12176 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'
12178 archive_cmds_need_lc='no'
12179 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12180 hardcode_libdir_separator=:
12183 osf4* | osf5*) # as osf3* with the addition of -msym flag
12184 if test yes = "$GCC"; then
12185 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12186 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'
12187 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12188 else
12189 allow_undefined_flag=' -expect_unresolved \*'
12190 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'
12191 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~
12192 $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'
12194 # Both c and cxx compiler support -rpath directly
12195 hardcode_libdir_flag_spec='-rpath $libdir'
12197 archive_cmds_need_lc='no'
12198 hardcode_libdir_separator=:
12201 solaris*)
12202 no_undefined_flag=' -z defs'
12203 if test yes = "$GCC"; then
12204 wlarc='$wl'
12205 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12206 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12207 $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'
12208 else
12209 case `$CC -V 2>&1` in
12210 *"Compilers 5.0"*)
12211 wlarc=''
12212 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12213 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12214 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12217 wlarc='$wl'
12218 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12219 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12220 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12222 esac
12224 hardcode_libdir_flag_spec='-R$libdir'
12225 hardcode_shlibpath_var=no
12226 case $host_os in
12227 solaris2.[0-5] | solaris2.[0-5].*) ;;
12229 # The compiler driver will combine and reorder linker options,
12230 # but understands '-z linker_flag'. GCC discards it without '$wl',
12231 # but is careful enough not to reorder.
12232 # Supported since Solaris 2.6 (maybe 2.5.1?)
12233 if test yes = "$GCC"; then
12234 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12235 else
12236 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12239 esac
12240 link_all_deplibs=yes
12243 sunos4*)
12244 if test sequent = "$host_vendor"; then
12245 # Use $CC to link under sequent, because it throws in some extra .o
12246 # files that make .init and .fini sections work.
12247 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12248 else
12249 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12251 hardcode_libdir_flag_spec='-L$libdir'
12252 hardcode_direct=yes
12253 hardcode_minus_L=yes
12254 hardcode_shlibpath_var=no
12257 sysv4)
12258 case $host_vendor in
12259 sni)
12260 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12261 hardcode_direct=yes # is this really true???
12263 siemens)
12264 ## LD is ld it makes a PLAMLIB
12265 ## CC just makes a GrossModule.
12266 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12267 reload_cmds='$CC -r -o $output$reload_objs'
12268 hardcode_direct=no
12270 motorola)
12271 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12272 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12274 esac
12275 runpath_var='LD_RUN_PATH'
12276 hardcode_shlibpath_var=no
12279 sysv4.3*)
12280 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12281 hardcode_shlibpath_var=no
12282 export_dynamic_flag_spec='-Bexport'
12285 sysv4*MP*)
12286 if test -d /usr/nec; then
12287 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12288 hardcode_shlibpath_var=no
12289 runpath_var=LD_RUN_PATH
12290 hardcode_runpath_var=yes
12291 ld_shlibs=yes
12295 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12296 no_undefined_flag='$wl-z,text'
12297 archive_cmds_need_lc=no
12298 hardcode_shlibpath_var=no
12299 runpath_var='LD_RUN_PATH'
12301 if test yes = "$GCC"; then
12302 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12303 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12304 else
12305 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12306 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12310 sysv5* | sco3.2v5* | sco5v6*)
12311 # Note: We CANNOT use -z defs as we might desire, because we do not
12312 # link with -lc, and that would cause any symbols used from libc to
12313 # always be unresolved, which means just about no library would
12314 # ever link correctly. If we're not using GNU ld we use -z text
12315 # though, which does catch some bad symbols but isn't as heavy-handed
12316 # as -z defs.
12317 no_undefined_flag='$wl-z,text'
12318 allow_undefined_flag='$wl-z,nodefs'
12319 archive_cmds_need_lc=no
12320 hardcode_shlibpath_var=no
12321 hardcode_libdir_flag_spec='$wl-R,$libdir'
12322 hardcode_libdir_separator=':'
12323 link_all_deplibs=yes
12324 export_dynamic_flag_spec='$wl-Bexport'
12325 runpath_var='LD_RUN_PATH'
12327 if test yes = "$GCC"; then
12328 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12329 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12330 else
12331 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12332 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12336 uts4*)
12337 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12338 hardcode_libdir_flag_spec='-L$libdir'
12339 hardcode_shlibpath_var=no
12343 ld_shlibs=no
12345 esac
12347 if test sni = "$host_vendor"; then
12348 case $host in
12349 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12350 export_dynamic_flag_spec='$wl-Blargedynsym'
12352 esac
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12357 $as_echo "$ld_shlibs" >&6; }
12358 test no = "$ld_shlibs" && can_build_shared=no
12360 with_gnu_ld=$with_gnu_ld
12377 # Do we need to explicitly link libc?
12379 case "x$archive_cmds_need_lc" in
12380 x|xyes)
12381 # Assume -lc should be added
12382 archive_cmds_need_lc=yes
12384 if test yes,yes = "$GCC,$enable_shared"; then
12385 case $archive_cmds in
12386 *'~'*)
12387 # FIXME: we may have to deal with multi-command sequences.
12389 '$CC '*)
12390 # Test whether the compiler implicitly links with -lc since on some
12391 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12392 # to ld, don't add -lc before -lgcc.
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12394 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12395 if ${lt_cv_archive_cmds_need_lc+:} false; then :
12396 $as_echo_n "(cached) " >&6
12397 else
12398 $RM conftest*
12399 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12401 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12402 (eval $ac_compile) 2>&5
12403 ac_status=$?
12404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12405 test $ac_status = 0; } 2>conftest.err; then
12406 soname=conftest
12407 lib=conftest
12408 libobjs=conftest.$ac_objext
12409 deplibs=
12410 wl=$lt_prog_compiler_wl
12411 pic_flag=$lt_prog_compiler_pic
12412 compiler_flags=-v
12413 linker_flags=-v
12414 verstring=
12415 output_objdir=.
12416 libname=conftest
12417 lt_save_allow_undefined_flag=$allow_undefined_flag
12418 allow_undefined_flag=
12419 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12420 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12421 ac_status=$?
12422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12423 test $ac_status = 0; }
12424 then
12425 lt_cv_archive_cmds_need_lc=no
12426 else
12427 lt_cv_archive_cmds_need_lc=yes
12429 allow_undefined_flag=$lt_save_allow_undefined_flag
12430 else
12431 cat conftest.err 1>&5
12433 $RM conftest*
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12437 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12438 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12440 esac
12443 esac
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12597 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12599 if test yes = "$GCC"; then
12600 case $host_os in
12601 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12602 *) lt_awk_arg='/^libraries:/' ;;
12603 esac
12604 case $host_os in
12605 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12606 *) lt_sed_strip_eq='s|=/|/|g' ;;
12607 esac
12608 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12609 case $lt_search_path_spec in
12610 *\;*)
12611 # if the path contains ";" then we assume it to be the separator
12612 # otherwise default to the standard path separator (i.e. ":") - it is
12613 # assumed that no part of a normal pathname contains ";" but that should
12614 # okay in the real world where ";" in dirpaths is itself problematic.
12615 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12618 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12620 esac
12621 # Ok, now we have the path, separated by spaces, we can step through it
12622 # and add multilib dir if necessary...
12623 lt_tmp_lt_search_path_spec=
12624 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12625 # ...but if some path component already ends with the multilib dir we assume
12626 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12627 case "$lt_multi_os_dir; $lt_search_path_spec " in
12628 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12629 lt_multi_os_dir=
12631 esac
12632 for lt_sys_path in $lt_search_path_spec; do
12633 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12634 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12635 elif test -n "$lt_multi_os_dir"; then
12636 test -d "$lt_sys_path" && \
12637 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12639 done
12640 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12641 BEGIN {RS = " "; FS = "/|\n";} {
12642 lt_foo = "";
12643 lt_count = 0;
12644 for (lt_i = NF; lt_i > 0; lt_i--) {
12645 if ($lt_i != "" && $lt_i != ".") {
12646 if ($lt_i == "..") {
12647 lt_count++;
12648 } else {
12649 if (lt_count == 0) {
12650 lt_foo = "/" $lt_i lt_foo;
12651 } else {
12652 lt_count--;
12657 if (lt_foo != "") { lt_freq[lt_foo]++; }
12658 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12660 # AWK program above erroneously prepends '/' to C:/dos/paths
12661 # for these hosts.
12662 case $host_os in
12663 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12664 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12665 esac
12666 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12667 else
12668 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12670 library_names_spec=
12671 libname_spec='lib$name'
12672 soname_spec=
12673 shrext_cmds=.so
12674 postinstall_cmds=
12675 postuninstall_cmds=
12676 finish_cmds=
12677 finish_eval=
12678 shlibpath_var=
12679 shlibpath_overrides_runpath=unknown
12680 version_type=none
12681 dynamic_linker="$host_os ld.so"
12682 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12683 need_lib_prefix=unknown
12684 hardcode_into_libs=no
12686 # when you set need_version to no, make sure it does not cause -set_version
12687 # flags to be left without arguments
12688 need_version=unknown
12692 case $host_os in
12693 aix3*)
12694 version_type=linux # correct to gnu/linux during the next big refactor
12695 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12696 shlibpath_var=LIBPATH
12698 # AIX 3 has no versioning support, so we append a major version to the name.
12699 soname_spec='$libname$release$shared_ext$major'
12702 aix[4-9]*)
12703 version_type=linux # correct to gnu/linux during the next big refactor
12704 need_lib_prefix=no
12705 need_version=no
12706 hardcode_into_libs=yes
12707 if test ia64 = "$host_cpu"; then
12708 # AIX 5 supports IA64
12709 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12710 shlibpath_var=LD_LIBRARY_PATH
12711 else
12712 # With GCC up to 2.95.x, collect2 would create an import file
12713 # for dependence libraries. The import file would start with
12714 # the line '#! .'. This would cause the generated library to
12715 # depend on '.', always an invalid library. This was fixed in
12716 # development snapshots of GCC prior to 3.0.
12717 case $host_os in
12718 aix4 | aix4.[01] | aix4.[01].*)
12719 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12720 echo ' yes '
12721 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12723 else
12724 can_build_shared=no
12727 esac
12728 # Using Import Files as archive members, it is possible to support
12729 # filename-based versioning of shared library archives on AIX. While
12730 # this would work for both with and without runtime linking, it will
12731 # prevent static linking of such archives. So we do filename-based
12732 # shared library versioning with .so extension only, which is used
12733 # when both runtime linking and shared linking is enabled.
12734 # Unfortunately, runtime linking may impact performance, so we do
12735 # not want this to be the default eventually. Also, we use the
12736 # versioned .so libs for executables only if there is the -brtl
12737 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12738 # To allow for filename-based versioning support, we need to create
12739 # libNAME.so.V as an archive file, containing:
12740 # *) an Import File, referring to the versioned filename of the
12741 # archive as well as the shared archive member, telling the
12742 # bitwidth (32 or 64) of that shared object, and providing the
12743 # list of exported symbols of that shared object, eventually
12744 # decorated with the 'weak' keyword
12745 # *) the shared object with the F_LOADONLY flag set, to really avoid
12746 # it being seen by the linker.
12747 # At run time we better use the real file rather than another symlink,
12748 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12750 case $with_aix_soname,$aix_use_runtimelinking in
12751 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12752 # soname into executable. Probably we can add versioning support to
12753 # collect2, so additional links can be useful in future.
12754 aix,yes) # traditional libtool
12755 dynamic_linker='AIX unversionable lib.so'
12756 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12757 # instead of lib<name>.a to let people know that these are not
12758 # typical AIX shared libraries.
12759 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12761 aix,no) # traditional AIX only
12762 dynamic_linker='AIX lib.a(lib.so.V)'
12763 # We preserve .a as extension for shared libraries through AIX4.2
12764 # and later when we are not doing run time linking.
12765 library_names_spec='$libname$release.a $libname.a'
12766 soname_spec='$libname$release$shared_ext$major'
12768 svr4,*) # full svr4 only
12769 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12770 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12771 # We do not specify a path in Import Files, so LIBPATH fires.
12772 shlibpath_overrides_runpath=yes
12774 *,yes) # both, prefer svr4
12775 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12776 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12777 # unpreferred sharedlib libNAME.a needs extra handling
12778 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
12779 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
12780 # We do not specify a path in Import Files, so LIBPATH fires.
12781 shlibpath_overrides_runpath=yes
12783 *,no) # both, prefer aix
12784 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12785 library_names_spec='$libname$release.a $libname.a'
12786 soname_spec='$libname$release$shared_ext$major'
12787 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12788 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
12789 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
12791 esac
12792 shlibpath_var=LIBPATH
12796 amigaos*)
12797 case $host_cpu in
12798 powerpc)
12799 # Since July 2007 AmigaOS4 officially supports .so libraries.
12800 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12801 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12803 m68k)
12804 library_names_spec='$libname.ixlibrary $libname.a'
12805 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12806 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12808 esac
12811 beos*)
12812 library_names_spec='$libname$shared_ext'
12813 dynamic_linker="$host_os ld.so"
12814 shlibpath_var=LIBRARY_PATH
12817 bsdi[45]*)
12818 version_type=linux # correct to gnu/linux during the next big refactor
12819 need_version=no
12820 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12821 soname_spec='$libname$release$shared_ext$major'
12822 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12823 shlibpath_var=LD_LIBRARY_PATH
12824 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12825 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12826 # the default ld.so.conf also contains /usr/contrib/lib and
12827 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12828 # libtool to hard-code these into programs
12831 cygwin* | mingw* | pw32* | cegcc*)
12832 version_type=windows
12833 shrext_cmds=.dll
12834 need_version=no
12835 need_lib_prefix=no
12837 case $GCC,$cc_basename in
12838 yes,*)
12839 # gcc
12840 library_names_spec='$libname.dll.a'
12841 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12842 postinstall_cmds='base_file=`basename \$file`~
12843 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12844 dldir=$destdir/`dirname \$dlpath`~
12845 test -d \$dldir || mkdir -p \$dldir~
12846 $install_prog $dir/$dlname \$dldir/$dlname~
12847 chmod a+x \$dldir/$dlname~
12848 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12849 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12851 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12852 dlpath=$dir/\$dldll~
12853 $RM \$dlpath'
12854 shlibpath_overrides_runpath=yes
12856 case $host_os in
12857 cygwin*)
12858 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12859 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12861 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12863 mingw* | cegcc*)
12864 # MinGW DLLs use traditional 'lib' prefix
12865 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12867 pw32*)
12868 # pw32 DLLs use 'pw' prefix rather than 'lib'
12869 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12871 esac
12872 dynamic_linker='Win32 ld.exe'
12875 *,cl* | *,icl*)
12876 # Native MSVC or ICC
12877 libname_spec='$name'
12878 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12879 library_names_spec='$libname.dll.lib'
12881 case $build_os in
12882 mingw*)
12883 sys_lib_search_path_spec=
12884 lt_save_ifs=$IFS
12885 IFS=';'
12886 for lt_path in $LIB
12888 IFS=$lt_save_ifs
12889 # Let DOS variable expansion print the short 8.3 style file name.
12890 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12891 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12892 done
12893 IFS=$lt_save_ifs
12894 # Convert to MSYS style.
12895 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12897 cygwin*)
12898 # Convert to unix form, then to dos form, then back to unix form
12899 # but this time dos style (no spaces!) so that the unix form looks
12900 # like /cygdrive/c/PROGRA~1:/cygdr...
12901 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12902 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12903 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12906 sys_lib_search_path_spec=$LIB
12907 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12908 # It is most probably a Windows format PATH.
12909 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12910 else
12911 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12913 # FIXME: find the short name or the path components, as spaces are
12914 # common. (e.g. "Program Files" -> "PROGRA~1")
12916 esac
12918 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12919 postinstall_cmds='base_file=`basename \$file`~
12920 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12921 dldir=$destdir/`dirname \$dlpath`~
12922 test -d \$dldir || mkdir -p \$dldir~
12923 $install_prog $dir/$dlname \$dldir/$dlname'
12924 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12925 dlpath=$dir/\$dldll~
12926 $RM \$dlpath'
12927 shlibpath_overrides_runpath=yes
12928 dynamic_linker='Win32 link.exe'
12932 # Assume MSVC and ICC wrapper
12933 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12934 dynamic_linker='Win32 ld.exe'
12936 esac
12937 # FIXME: first we should search . and the directory the executable is in
12938 shlibpath_var=PATH
12941 darwin* | rhapsody*)
12942 dynamic_linker="$host_os dyld"
12943 version_type=darwin
12944 need_lib_prefix=no
12945 need_version=no
12946 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12947 soname_spec='$libname$release$major$shared_ext'
12948 shlibpath_overrides_runpath=yes
12949 shlibpath_var=DYLD_LIBRARY_PATH
12950 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12952 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12953 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12956 dgux*)
12957 version_type=linux # correct to gnu/linux during the next big refactor
12958 need_lib_prefix=no
12959 need_version=no
12960 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12961 soname_spec='$libname$release$shared_ext$major'
12962 shlibpath_var=LD_LIBRARY_PATH
12965 freebsd* | dragonfly*)
12966 # DragonFly does not have aout. When/if they implement a new
12967 # versioning mechanism, adjust this.
12968 if test -x /usr/bin/objformat; then
12969 objformat=`/usr/bin/objformat`
12970 else
12971 case $host_os in
12972 freebsd[23].*) objformat=aout ;;
12973 *) objformat=elf ;;
12974 esac
12976 version_type=freebsd-$objformat
12977 case $version_type in
12978 freebsd-elf*)
12979 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12980 soname_spec='$libname$release$shared_ext$major'
12981 need_version=no
12982 need_lib_prefix=no
12984 freebsd-*)
12985 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12986 need_version=yes
12988 esac
12989 shlibpath_var=LD_LIBRARY_PATH
12990 case $host_os in
12991 freebsd2.*)
12992 shlibpath_overrides_runpath=yes
12994 freebsd3.[01]* | freebsdelf3.[01]*)
12995 shlibpath_overrides_runpath=yes
12996 hardcode_into_libs=yes
12998 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12999 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13000 shlibpath_overrides_runpath=no
13001 hardcode_into_libs=yes
13003 *) # from 4.6 on, and DragonFly
13004 shlibpath_overrides_runpath=yes
13005 hardcode_into_libs=yes
13007 esac
13010 haiku*)
13011 version_type=linux # correct to gnu/linux during the next big refactor
13012 need_lib_prefix=no
13013 need_version=no
13014 dynamic_linker="$host_os runtime_loader"
13015 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13016 soname_spec='$libname$release$shared_ext$major'
13017 shlibpath_var=LIBRARY_PATH
13018 shlibpath_overrides_runpath=no
13019 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13020 hardcode_into_libs=yes
13023 hpux9* | hpux10* | hpux11*)
13024 # Give a soname corresponding to the major version so that dld.sl refuses to
13025 # link against other versions.
13026 version_type=sunos
13027 need_lib_prefix=no
13028 need_version=no
13029 case $host_cpu in
13030 ia64*)
13031 shrext_cmds='.so'
13032 hardcode_into_libs=yes
13033 dynamic_linker="$host_os dld.so"
13034 shlibpath_var=LD_LIBRARY_PATH
13035 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13036 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13037 soname_spec='$libname$release$shared_ext$major'
13038 if test 32 = "$HPUX_IA64_MODE"; then
13039 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13040 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13041 else
13042 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13043 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13046 hppa*64*)
13047 shrext_cmds='.sl'
13048 hardcode_into_libs=yes
13049 dynamic_linker="$host_os dld.sl"
13050 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13051 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13052 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13053 soname_spec='$libname$release$shared_ext$major'
13054 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13055 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13058 shrext_cmds='.sl'
13059 dynamic_linker="$host_os dld.sl"
13060 shlibpath_var=SHLIB_PATH
13061 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13062 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13063 soname_spec='$libname$release$shared_ext$major'
13065 esac
13066 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13067 postinstall_cmds='chmod 555 $lib'
13068 # or fails outright, so override atomically:
13069 install_override_mode=555
13072 interix[3-9]*)
13073 version_type=linux # correct to gnu/linux during the next big refactor
13074 need_lib_prefix=no
13075 need_version=no
13076 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13077 soname_spec='$libname$release$shared_ext$major'
13078 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13079 shlibpath_var=LD_LIBRARY_PATH
13080 shlibpath_overrides_runpath=no
13081 hardcode_into_libs=yes
13084 irix5* | irix6* | nonstopux*)
13085 case $host_os in
13086 nonstopux*) version_type=nonstopux ;;
13088 if test yes = "$lt_cv_prog_gnu_ld"; then
13089 version_type=linux # correct to gnu/linux during the next big refactor
13090 else
13091 version_type=irix
13092 fi ;;
13093 esac
13094 need_lib_prefix=no
13095 need_version=no
13096 soname_spec='$libname$release$shared_ext$major'
13097 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13098 case $host_os in
13099 irix5* | nonstopux*)
13100 libsuff= shlibsuff=
13103 case $LD in # libtool.m4 will add one of these switches to LD
13104 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13105 libsuff= shlibsuff= libmagic=32-bit;;
13106 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13107 libsuff=32 shlibsuff=N32 libmagic=N32;;
13108 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13109 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13110 *) libsuff= shlibsuff= libmagic=never-match;;
13111 esac
13113 esac
13114 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13115 shlibpath_overrides_runpath=no
13116 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13117 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13118 hardcode_into_libs=yes
13121 # No shared lib support for Linux oldld, aout, or coff.
13122 linux*oldld* | linux*aout* | linux*coff*)
13123 dynamic_linker=no
13126 linux*android*)
13127 version_type=none # Android doesn't support versioned libraries.
13128 need_lib_prefix=no
13129 need_version=no
13130 library_names_spec='$libname$release$shared_ext'
13131 soname_spec='$libname$release$shared_ext'
13132 finish_cmds=
13133 shlibpath_var=LD_LIBRARY_PATH
13134 shlibpath_overrides_runpath=yes
13136 # This implies no fast_install, which is unacceptable.
13137 # Some rework will be needed to allow for fast_install
13138 # before this can be enabled.
13139 hardcode_into_libs=yes
13141 dynamic_linker='Android linker'
13142 # Don't embed -rpath directories since the linker doesn't support them.
13143 hardcode_libdir_flag_spec='-L$libdir'
13146 # This must be glibc/ELF.
13147 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13148 version_type=linux # correct to gnu/linux during the next big refactor
13149 need_lib_prefix=no
13150 need_version=no
13151 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13152 soname_spec='$libname$release$shared_ext$major'
13153 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13154 shlibpath_var=LD_LIBRARY_PATH
13155 shlibpath_overrides_runpath=no
13157 # Some binutils ld are patched to set DT_RUNPATH
13158 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13159 $as_echo_n "(cached) " >&6
13160 else
13161 lt_cv_shlibpath_overrides_runpath=no
13162 save_LDFLAGS=$LDFLAGS
13163 save_libdir=$libdir
13164 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13165 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13167 /* end confdefs.h. */
13170 main ()
13174 return 0;
13176 _ACEOF
13177 if ac_fn_c_try_link "$LINENO"; then :
13178 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13179 lt_cv_shlibpath_overrides_runpath=yes
13182 rm -f core conftest.err conftest.$ac_objext \
13183 conftest$ac_exeext conftest.$ac_ext
13184 LDFLAGS=$save_LDFLAGS
13185 libdir=$save_libdir
13189 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13191 # This implies no fast_install, which is unacceptable.
13192 # Some rework will be needed to allow for fast_install
13193 # before this can be enabled.
13194 hardcode_into_libs=yes
13196 # Ideally, we could use ldconfig to report *all* directores which are
13197 # searched for libraries, however this is still not possible. Aside from not
13198 # being certain /sbin/ldconfig is available, command
13199 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13200 # even though it is searched at run-time. Try to do the best guess by
13201 # appending ld.so.conf contents (and includes) to the search path.
13202 if test -f /etc/ld.so.conf; then
13203 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' ' '`
13204 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13207 # We used to test for /lib/ld.so.1 and disable shared libraries on
13208 # powerpc, because MkLinux only supported shared libraries with the
13209 # GNU dynamic linker. Since this was broken with cross compilers,
13210 # most powerpc-linux boxes support dynamic linking these days and
13211 # people can always --disable-shared, the test was removed, and we
13212 # assume the GNU/Linux dynamic linker is in use.
13213 dynamic_linker='GNU/Linux ld.so'
13216 netbsd*)
13217 version_type=sunos
13218 need_lib_prefix=no
13219 need_version=no
13220 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13221 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13222 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13223 dynamic_linker='NetBSD (a.out) ld.so'
13224 else
13225 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13226 soname_spec='$libname$release$shared_ext$major'
13227 dynamic_linker='NetBSD ld.elf_so'
13229 shlibpath_var=LD_LIBRARY_PATH
13230 shlibpath_overrides_runpath=yes
13231 hardcode_into_libs=yes
13234 newsos6)
13235 version_type=linux # correct to gnu/linux during the next big refactor
13236 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13237 shlibpath_var=LD_LIBRARY_PATH
13238 shlibpath_overrides_runpath=yes
13241 *nto* | *qnx*)
13242 version_type=qnx
13243 need_lib_prefix=no
13244 need_version=no
13245 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13246 soname_spec='$libname$release$shared_ext$major'
13247 shlibpath_var=LD_LIBRARY_PATH
13248 shlibpath_overrides_runpath=no
13249 hardcode_into_libs=yes
13250 dynamic_linker='ldqnx.so'
13253 openbsd* | bitrig*)
13254 version_type=sunos
13255 sys_lib_dlsearch_path_spec=/usr/lib
13256 need_lib_prefix=no
13257 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13258 need_version=no
13259 else
13260 need_version=yes
13262 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13263 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13264 shlibpath_var=LD_LIBRARY_PATH
13265 shlibpath_overrides_runpath=yes
13268 os2*)
13269 libname_spec='$name'
13270 version_type=windows
13271 shrext_cmds=.dll
13272 need_version=no
13273 need_lib_prefix=no
13274 # OS/2 can only load a DLL with a base name of 8 characters or less.
13275 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13276 v=$($ECHO $release$versuffix | tr -d .-);
13277 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13278 $ECHO $n$v`$shared_ext'
13279 library_names_spec='${libname}_dll.$libext'
13280 dynamic_linker='OS/2 ld.exe'
13281 shlibpath_var=BEGINLIBPATH
13282 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13283 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13284 postinstall_cmds='base_file=`basename \$file`~
13285 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13286 dldir=$destdir/`dirname \$dlpath`~
13287 test -d \$dldir || mkdir -p \$dldir~
13288 $install_prog $dir/$dlname \$dldir/$dlname~
13289 chmod a+x \$dldir/$dlname~
13290 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13291 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13293 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13294 dlpath=$dir/\$dldll~
13295 $RM \$dlpath'
13298 osf3* | osf4* | osf5*)
13299 version_type=osf
13300 need_lib_prefix=no
13301 need_version=no
13302 soname_spec='$libname$release$shared_ext$major'
13303 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13304 shlibpath_var=LD_LIBRARY_PATH
13305 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13306 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13309 rdos*)
13310 dynamic_linker=no
13313 solaris*)
13314 version_type=linux # correct to gnu/linux during the next big refactor
13315 need_lib_prefix=no
13316 need_version=no
13317 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13318 soname_spec='$libname$release$shared_ext$major'
13319 shlibpath_var=LD_LIBRARY_PATH
13320 shlibpath_overrides_runpath=yes
13321 hardcode_into_libs=yes
13322 # ldd complains unless libraries are executable
13323 postinstall_cmds='chmod +x $lib'
13326 sunos4*)
13327 version_type=sunos
13328 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13329 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13330 shlibpath_var=LD_LIBRARY_PATH
13331 shlibpath_overrides_runpath=yes
13332 if test yes = "$with_gnu_ld"; then
13333 need_lib_prefix=no
13335 need_version=yes
13338 sysv4 | sysv4.3*)
13339 version_type=linux # correct to gnu/linux during the next big refactor
13340 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13341 soname_spec='$libname$release$shared_ext$major'
13342 shlibpath_var=LD_LIBRARY_PATH
13343 case $host_vendor in
13344 sni)
13345 shlibpath_overrides_runpath=no
13346 need_lib_prefix=no
13347 runpath_var=LD_RUN_PATH
13349 siemens)
13350 need_lib_prefix=no
13352 motorola)
13353 need_lib_prefix=no
13354 need_version=no
13355 shlibpath_overrides_runpath=no
13356 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13358 esac
13361 sysv4*MP*)
13362 if test -d /usr/nec; then
13363 version_type=linux # correct to gnu/linux during the next big refactor
13364 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13365 soname_spec='$libname$shared_ext.$major'
13366 shlibpath_var=LD_LIBRARY_PATH
13370 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13371 version_type=sco
13372 need_lib_prefix=no
13373 need_version=no
13374 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13375 soname_spec='$libname$release$shared_ext$major'
13376 shlibpath_var=LD_LIBRARY_PATH
13377 shlibpath_overrides_runpath=yes
13378 hardcode_into_libs=yes
13379 if test yes = "$with_gnu_ld"; then
13380 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13381 else
13382 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13383 case $host_os in
13384 sco3.2v5*)
13385 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13387 esac
13389 sys_lib_dlsearch_path_spec='/usr/lib'
13392 tpf*)
13393 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13394 version_type=linux # correct to gnu/linux during the next big refactor
13395 need_lib_prefix=no
13396 need_version=no
13397 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13398 shlibpath_var=LD_LIBRARY_PATH
13399 shlibpath_overrides_runpath=no
13400 hardcode_into_libs=yes
13403 uts4*)
13404 version_type=linux # correct to gnu/linux during the next big refactor
13405 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13406 soname_spec='$libname$release$shared_ext$major'
13407 shlibpath_var=LD_LIBRARY_PATH
13411 dynamic_linker=no
13413 esac
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13415 $as_echo "$dynamic_linker" >&6; }
13416 test no = "$dynamic_linker" && can_build_shared=no
13418 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13419 if test yes = "$GCC"; then
13420 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13423 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13424 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13427 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13428 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13431 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13432 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13434 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13435 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13437 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13438 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13537 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13538 hardcode_action=
13539 if test -n "$hardcode_libdir_flag_spec" ||
13540 test -n "$runpath_var" ||
13541 test yes = "$hardcode_automatic"; then
13543 # We can hardcode non-existent directories.
13544 if test no != "$hardcode_direct" &&
13545 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13546 # have to relink, otherwise we might link with an installed library
13547 # when we should be linking with a yet-to-be-installed one
13548 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13549 test no != "$hardcode_minus_L"; then
13550 # Linking always hardcodes the temporary library directory.
13551 hardcode_action=relink
13552 else
13553 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13554 hardcode_action=immediate
13556 else
13557 # We cannot hardcode anything, or else we can only hardcode existing
13558 # directories.
13559 hardcode_action=unsupported
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13562 $as_echo "$hardcode_action" >&6; }
13564 if test relink = "$hardcode_action" ||
13565 test yes = "$inherit_rpath"; then
13566 # Fast installation is not supported
13567 enable_fast_install=no
13568 elif test yes = "$shlibpath_overrides_runpath" ||
13569 test no = "$enable_shared"; then
13570 # Fast installation is not necessary
13571 enable_fast_install=needless
13579 if test yes != "$enable_dlopen"; then
13580 enable_dlopen=unknown
13581 enable_dlopen_self=unknown
13582 enable_dlopen_self_static=unknown
13583 else
13584 lt_cv_dlopen=no
13585 lt_cv_dlopen_libs=
13587 case $host_os in
13588 beos*)
13589 lt_cv_dlopen=load_add_on
13590 lt_cv_dlopen_libs=
13591 lt_cv_dlopen_self=yes
13594 mingw* | pw32* | cegcc*)
13595 lt_cv_dlopen=LoadLibrary
13596 lt_cv_dlopen_libs=
13599 cygwin*)
13600 lt_cv_dlopen=dlopen
13601 lt_cv_dlopen_libs=
13604 darwin*)
13605 # if libdl is installed we need to link against it
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13607 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13608 if ${ac_cv_lib_dl_dlopen+:} false; then :
13609 $as_echo_n "(cached) " >&6
13610 else
13611 ac_check_lib_save_LIBS=$LIBS
13612 LIBS="-ldl $LIBS"
13613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13614 /* end confdefs.h. */
13616 /* Override any GCC internal prototype to avoid an error.
13617 Use char because int might match the return type of a GCC
13618 builtin and then its argument prototype would still apply. */
13619 #ifdef __cplusplus
13620 extern "C"
13621 #endif
13622 char dlopen ();
13624 main ()
13626 return dlopen ();
13628 return 0;
13630 _ACEOF
13631 if ac_fn_c_try_link "$LINENO"; then :
13632 ac_cv_lib_dl_dlopen=yes
13633 else
13634 ac_cv_lib_dl_dlopen=no
13636 rm -f core conftest.err conftest.$ac_objext \
13637 conftest$ac_exeext conftest.$ac_ext
13638 LIBS=$ac_check_lib_save_LIBS
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13641 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13642 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13643 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13644 else
13646 lt_cv_dlopen=dyld
13647 lt_cv_dlopen_libs=
13648 lt_cv_dlopen_self=yes
13654 tpf*)
13655 # Don't try to run any link tests for TPF. We know it's impossible
13656 # because TPF is a cross-compiler, and we know how we open DSOs.
13657 lt_cv_dlopen=dlopen
13658 lt_cv_dlopen_libs=
13659 lt_cv_dlopen_self=no
13663 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13664 if test "x$ac_cv_func_shl_load" = xyes; then :
13665 lt_cv_dlopen=shl_load
13666 else
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13668 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13669 if ${ac_cv_lib_dld_shl_load+:} false; then :
13670 $as_echo_n "(cached) " >&6
13671 else
13672 ac_check_lib_save_LIBS=$LIBS
13673 LIBS="-ldld $LIBS"
13674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13675 /* end confdefs.h. */
13677 /* Override any GCC internal prototype to avoid an error.
13678 Use char because int might match the return type of a GCC
13679 builtin and then its argument prototype would still apply. */
13680 #ifdef __cplusplus
13681 extern "C"
13682 #endif
13683 char shl_load ();
13685 main ()
13687 return shl_load ();
13689 return 0;
13691 _ACEOF
13692 if ac_fn_c_try_link "$LINENO"; then :
13693 ac_cv_lib_dld_shl_load=yes
13694 else
13695 ac_cv_lib_dld_shl_load=no
13697 rm -f core conftest.err conftest.$ac_objext \
13698 conftest$ac_exeext conftest.$ac_ext
13699 LIBS=$ac_check_lib_save_LIBS
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13702 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13703 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13704 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13705 else
13706 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13707 if test "x$ac_cv_func_dlopen" = xyes; then :
13708 lt_cv_dlopen=dlopen
13709 else
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13711 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13712 if ${ac_cv_lib_dl_dlopen+:} false; then :
13713 $as_echo_n "(cached) " >&6
13714 else
13715 ac_check_lib_save_LIBS=$LIBS
13716 LIBS="-ldl $LIBS"
13717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13718 /* end confdefs.h. */
13720 /* Override any GCC internal prototype to avoid an error.
13721 Use char because int might match the return type of a GCC
13722 builtin and then its argument prototype would still apply. */
13723 #ifdef __cplusplus
13724 extern "C"
13725 #endif
13726 char dlopen ();
13728 main ()
13730 return dlopen ();
13732 return 0;
13734 _ACEOF
13735 if ac_fn_c_try_link "$LINENO"; then :
13736 ac_cv_lib_dl_dlopen=yes
13737 else
13738 ac_cv_lib_dl_dlopen=no
13740 rm -f core conftest.err conftest.$ac_objext \
13741 conftest$ac_exeext conftest.$ac_ext
13742 LIBS=$ac_check_lib_save_LIBS
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13745 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13746 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13747 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13748 else
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13750 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13751 if ${ac_cv_lib_svld_dlopen+:} false; then :
13752 $as_echo_n "(cached) " >&6
13753 else
13754 ac_check_lib_save_LIBS=$LIBS
13755 LIBS="-lsvld $LIBS"
13756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13757 /* end confdefs.h. */
13759 /* Override any GCC internal prototype to avoid an error.
13760 Use char because int might match the return type of a GCC
13761 builtin and then its argument prototype would still apply. */
13762 #ifdef __cplusplus
13763 extern "C"
13764 #endif
13765 char dlopen ();
13767 main ()
13769 return dlopen ();
13771 return 0;
13773 _ACEOF
13774 if ac_fn_c_try_link "$LINENO"; then :
13775 ac_cv_lib_svld_dlopen=yes
13776 else
13777 ac_cv_lib_svld_dlopen=no
13779 rm -f core conftest.err conftest.$ac_objext \
13780 conftest$ac_exeext conftest.$ac_ext
13781 LIBS=$ac_check_lib_save_LIBS
13783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13784 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13785 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13786 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13787 else
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13789 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13790 if ${ac_cv_lib_dld_dld_link+:} false; then :
13791 $as_echo_n "(cached) " >&6
13792 else
13793 ac_check_lib_save_LIBS=$LIBS
13794 LIBS="-ldld $LIBS"
13795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13796 /* end confdefs.h. */
13798 /* Override any GCC internal prototype to avoid an error.
13799 Use char because int might match the return type of a GCC
13800 builtin and then its argument prototype would still apply. */
13801 #ifdef __cplusplus
13802 extern "C"
13803 #endif
13804 char dld_link ();
13806 main ()
13808 return dld_link ();
13810 return 0;
13812 _ACEOF
13813 if ac_fn_c_try_link "$LINENO"; then :
13814 ac_cv_lib_dld_dld_link=yes
13815 else
13816 ac_cv_lib_dld_dld_link=no
13818 rm -f core conftest.err conftest.$ac_objext \
13819 conftest$ac_exeext conftest.$ac_ext
13820 LIBS=$ac_check_lib_save_LIBS
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13823 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13824 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13825 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13844 esac
13846 if test no = "$lt_cv_dlopen"; then
13847 enable_dlopen=no
13848 else
13849 enable_dlopen=yes
13852 case $lt_cv_dlopen in
13853 dlopen)
13854 save_CPPFLAGS=$CPPFLAGS
13855 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13857 save_LDFLAGS=$LDFLAGS
13858 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13860 save_LIBS=$LIBS
13861 LIBS="$lt_cv_dlopen_libs $LIBS"
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13864 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13865 if ${lt_cv_dlopen_self+:} false; then :
13866 $as_echo_n "(cached) " >&6
13867 else
13868 if test yes = "$cross_compiling"; then :
13869 lt_cv_dlopen_self=cross
13870 else
13871 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13872 lt_status=$lt_dlunknown
13873 cat > conftest.$ac_ext <<_LT_EOF
13874 #line $LINENO "configure"
13875 #include "confdefs.h"
13877 #if HAVE_DLFCN_H
13878 #include <dlfcn.h>
13879 #endif
13881 #include <stdio.h>
13883 #ifdef RTLD_GLOBAL
13884 # define LT_DLGLOBAL RTLD_GLOBAL
13885 #else
13886 # ifdef DL_GLOBAL
13887 # define LT_DLGLOBAL DL_GLOBAL
13888 # else
13889 # define LT_DLGLOBAL 0
13890 # endif
13891 #endif
13893 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13894 find out it does not work in some platform. */
13895 #ifndef LT_DLLAZY_OR_NOW
13896 # ifdef RTLD_LAZY
13897 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13898 # else
13899 # ifdef DL_LAZY
13900 # define LT_DLLAZY_OR_NOW DL_LAZY
13901 # else
13902 # ifdef RTLD_NOW
13903 # define LT_DLLAZY_OR_NOW RTLD_NOW
13904 # else
13905 # ifdef DL_NOW
13906 # define LT_DLLAZY_OR_NOW DL_NOW
13907 # else
13908 # define LT_DLLAZY_OR_NOW 0
13909 # endif
13910 # endif
13911 # endif
13912 # endif
13913 #endif
13915 /* When -fvisibility=hidden is used, assume the code has been annotated
13916 correspondingly for the symbols needed. */
13917 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13918 int fnord () __attribute__((visibility("default")));
13919 #endif
13921 int fnord () { return 42; }
13922 int main ()
13924 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13925 int status = $lt_dlunknown;
13927 if (self)
13929 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13930 else
13932 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13933 else puts (dlerror ());
13935 /* dlclose (self); */
13937 else
13938 puts (dlerror ());
13940 return status;
13942 _LT_EOF
13943 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13944 (eval $ac_link) 2>&5
13945 ac_status=$?
13946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13947 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13948 (./conftest; exit; ) >&5 2>/dev/null
13949 lt_status=$?
13950 case x$lt_status in
13951 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13952 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13953 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13954 esac
13955 else :
13956 # compilation failed
13957 lt_cv_dlopen_self=no
13960 rm -fr conftest*
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13965 $as_echo "$lt_cv_dlopen_self" >&6; }
13967 if test yes = "$lt_cv_dlopen_self"; then
13968 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13970 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13971 if ${lt_cv_dlopen_self_static+:} false; then :
13972 $as_echo_n "(cached) " >&6
13973 else
13974 if test yes = "$cross_compiling"; then :
13975 lt_cv_dlopen_self_static=cross
13976 else
13977 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13978 lt_status=$lt_dlunknown
13979 cat > conftest.$ac_ext <<_LT_EOF
13980 #line $LINENO "configure"
13981 #include "confdefs.h"
13983 #if HAVE_DLFCN_H
13984 #include <dlfcn.h>
13985 #endif
13987 #include <stdio.h>
13989 #ifdef RTLD_GLOBAL
13990 # define LT_DLGLOBAL RTLD_GLOBAL
13991 #else
13992 # ifdef DL_GLOBAL
13993 # define LT_DLGLOBAL DL_GLOBAL
13994 # else
13995 # define LT_DLGLOBAL 0
13996 # endif
13997 #endif
13999 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14000 find out it does not work in some platform. */
14001 #ifndef LT_DLLAZY_OR_NOW
14002 # ifdef RTLD_LAZY
14003 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14004 # else
14005 # ifdef DL_LAZY
14006 # define LT_DLLAZY_OR_NOW DL_LAZY
14007 # else
14008 # ifdef RTLD_NOW
14009 # define LT_DLLAZY_OR_NOW RTLD_NOW
14010 # else
14011 # ifdef DL_NOW
14012 # define LT_DLLAZY_OR_NOW DL_NOW
14013 # else
14014 # define LT_DLLAZY_OR_NOW 0
14015 # endif
14016 # endif
14017 # endif
14018 # endif
14019 #endif
14021 /* When -fvisibility=hidden is used, assume the code has been annotated
14022 correspondingly for the symbols needed. */
14023 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14024 int fnord () __attribute__((visibility("default")));
14025 #endif
14027 int fnord () { return 42; }
14028 int main ()
14030 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14031 int status = $lt_dlunknown;
14033 if (self)
14035 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14036 else
14038 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14039 else puts (dlerror ());
14041 /* dlclose (self); */
14043 else
14044 puts (dlerror ());
14046 return status;
14048 _LT_EOF
14049 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14050 (eval $ac_link) 2>&5
14051 ac_status=$?
14052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14053 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14054 (./conftest; exit; ) >&5 2>/dev/null
14055 lt_status=$?
14056 case x$lt_status in
14057 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14058 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14059 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14060 esac
14061 else :
14062 # compilation failed
14063 lt_cv_dlopen_self_static=no
14066 rm -fr conftest*
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14071 $as_echo "$lt_cv_dlopen_self_static" >&6; }
14074 CPPFLAGS=$save_CPPFLAGS
14075 LDFLAGS=$save_LDFLAGS
14076 LIBS=$save_LIBS
14078 esac
14080 case $lt_cv_dlopen_self in
14081 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14082 *) enable_dlopen_self=unknown ;;
14083 esac
14085 case $lt_cv_dlopen_self_static in
14086 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14087 *) enable_dlopen_self_static=unknown ;;
14088 esac
14107 striplib=
14108 old_striplib=
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14110 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14111 if test -z "$STRIP"; then
14112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14113 $as_echo "no" >&6; }
14114 else
14115 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14116 old_striplib="$STRIP --strip-debug"
14117 striplib="$STRIP --strip-unneeded"
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14119 $as_echo "yes" >&6; }
14120 else
14121 case $host_os in
14122 darwin*)
14123 # FIXME - insert some real tests, host_os isn't really good enough
14124 striplib="$STRIP -x"
14125 old_striplib="$STRIP -S"
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14127 $as_echo "yes" >&6; }
14129 freebsd*)
14130 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
14131 old_striplib="$STRIP --strip-debug"
14132 striplib="$STRIP --strip-unneeded"
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14134 $as_echo "yes" >&6; }
14135 else
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14137 $as_echo "no" >&6; }
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14142 $as_echo "no" >&6; }
14144 esac
14159 # Report what library types will actually be built
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14161 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14163 $as_echo "$can_build_shared" >&6; }
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14166 $as_echo_n "checking whether to build shared libraries... " >&6; }
14167 test no = "$can_build_shared" && enable_shared=no
14169 # On AIX, shared libraries and static libraries use the same namespace, and
14170 # are all built from PIC.
14171 case $host_os in
14172 aix3*)
14173 test yes = "$enable_shared" && enable_static=no
14174 if test -n "$RANLIB"; then
14175 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14176 postinstall_cmds='$RANLIB $lib'
14180 aix[4-9]*)
14181 if test ia64 != "$host_cpu"; then
14182 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14183 yes,aix,yes) ;; # shared object as lib.so file only
14184 yes,svr4,*) ;; # shared object as lib.so archive member only
14185 yes,*) enable_static=no ;; # shared object in lib.a archive as well
14186 esac
14189 esac
14190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14191 $as_echo "$enable_shared" >&6; }
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14194 $as_echo_n "checking whether to build static libraries... " >&6; }
14195 # Make sure either enable_shared or enable_static is yes.
14196 test yes = "$enable_shared" || enable_static=yes
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14198 $as_echo "$enable_static" >&6; }
14204 ac_ext=c
14205 ac_cpp='$CPP $CPPFLAGS'
14206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14210 CC=$lt_save_CC
14212 if test -n "$CXX" && ( test no != "$CXX" &&
14213 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
14214 (test g++ != "$CXX"))); then
14215 ac_ext=cpp
14216 ac_cpp='$CXXCPP $CPPFLAGS'
14217 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14218 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14219 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14221 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
14222 if test -z "$CXXCPP"; then
14223 if ${ac_cv_prog_CXXCPP+:} false; then :
14224 $as_echo_n "(cached) " >&6
14225 else
14226 # Double quotes because CXXCPP needs to be expanded
14227 for CXXCPP in "$CXX -E" "/lib/cpp"
14229 ac_preproc_ok=false
14230 for ac_cxx_preproc_warn_flag in '' yes
14232 # Use a header file that comes with gcc, so configuring glibc
14233 # with a fresh cross-compiler works.
14234 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14235 # <limits.h> exists even on freestanding compilers.
14236 # On the NeXT, cc -E runs the code through the compiler's parser,
14237 # not just through cpp. "Syntax error" is here to catch this case.
14238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14239 /* end confdefs.h. */
14240 #ifdef __STDC__
14241 # include <limits.h>
14242 #else
14243 # include <assert.h>
14244 #endif
14245 Syntax error
14246 _ACEOF
14247 if ac_fn_cxx_try_cpp "$LINENO"; then :
14249 else
14250 # Broken: fails on valid input.
14251 continue
14253 rm -f conftest.err conftest.i conftest.$ac_ext
14255 # OK, works on sane cases. Now check whether nonexistent headers
14256 # can be detected and how.
14257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14258 /* end confdefs.h. */
14259 #include <ac_nonexistent.h>
14260 _ACEOF
14261 if ac_fn_cxx_try_cpp "$LINENO"; then :
14262 # Broken: success on invalid input.
14263 continue
14264 else
14265 # Passes both tests.
14266 ac_preproc_ok=:
14267 break
14269 rm -f conftest.err conftest.i conftest.$ac_ext
14271 done
14272 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14273 rm -f conftest.i conftest.err conftest.$ac_ext
14274 if $ac_preproc_ok; then :
14275 break
14278 done
14279 ac_cv_prog_CXXCPP=$CXXCPP
14282 CXXCPP=$ac_cv_prog_CXXCPP
14283 else
14284 ac_cv_prog_CXXCPP=$CXXCPP
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14287 $as_echo "$CXXCPP" >&6; }
14288 ac_preproc_ok=false
14289 for ac_cxx_preproc_warn_flag in '' yes
14291 # Use a header file that comes with gcc, so configuring glibc
14292 # with a fresh cross-compiler works.
14293 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14294 # <limits.h> exists even on freestanding compilers.
14295 # On the NeXT, cc -E runs the code through the compiler's parser,
14296 # not just through cpp. "Syntax error" is here to catch this case.
14297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14298 /* end confdefs.h. */
14299 #ifdef __STDC__
14300 # include <limits.h>
14301 #else
14302 # include <assert.h>
14303 #endif
14304 Syntax error
14305 _ACEOF
14306 if ac_fn_cxx_try_cpp "$LINENO"; then :
14308 else
14309 # Broken: fails on valid input.
14310 continue
14312 rm -f conftest.err conftest.i conftest.$ac_ext
14314 # OK, works on sane cases. Now check whether nonexistent headers
14315 # can be detected and how.
14316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14317 /* end confdefs.h. */
14318 #include <ac_nonexistent.h>
14319 _ACEOF
14320 if ac_fn_cxx_try_cpp "$LINENO"; then :
14321 # Broken: success on invalid input.
14322 continue
14323 else
14324 # Passes both tests.
14325 ac_preproc_ok=:
14326 break
14328 rm -f conftest.err conftest.i conftest.$ac_ext
14330 done
14331 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14332 rm -f conftest.i conftest.err conftest.$ac_ext
14333 if $ac_preproc_ok; then :
14335 else
14336 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14337 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14338 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14339 See \`config.log' for more details" "$LINENO" 5; }
14342 ac_ext=c
14343 ac_cpp='$CPP $CPPFLAGS'
14344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14348 else
14349 _lt_caught_CXX_error=yes
14352 ac_ext=cpp
14353 ac_cpp='$CXXCPP $CPPFLAGS'
14354 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14355 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14356 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14358 archive_cmds_need_lc_CXX=no
14359 allow_undefined_flag_CXX=
14360 always_export_symbols_CXX=no
14361 archive_expsym_cmds_CXX=
14362 compiler_needs_object_CXX=no
14363 export_dynamic_flag_spec_CXX=
14364 hardcode_direct_CXX=no
14365 hardcode_direct_absolute_CXX=no
14366 hardcode_libdir_flag_spec_CXX=
14367 hardcode_libdir_separator_CXX=
14368 hardcode_minus_L_CXX=no
14369 hardcode_shlibpath_var_CXX=unsupported
14370 hardcode_automatic_CXX=no
14371 inherit_rpath_CXX=no
14372 module_cmds_CXX=
14373 module_expsym_cmds_CXX=
14374 link_all_deplibs_CXX=unknown
14375 old_archive_cmds_CXX=$old_archive_cmds
14376 reload_flag_CXX=$reload_flag
14377 reload_cmds_CXX=$reload_cmds
14378 no_undefined_flag_CXX=
14379 whole_archive_flag_spec_CXX=
14380 enable_shared_with_static_runtimes_CXX=no
14382 # Source file extension for C++ test sources.
14383 ac_ext=cpp
14385 # Object file extension for compiled C++ test sources.
14386 objext=o
14387 objext_CXX=$objext
14389 # No sense in running all these tests if we already determined that
14390 # the CXX compiler isn't working. Some variables (like enable_shared)
14391 # are currently assumed to apply to all compilers on this platform,
14392 # and will be corrupted by setting them based on a non-working compiler.
14393 if test yes != "$_lt_caught_CXX_error"; then
14394 # Code to be used in simple compile tests
14395 lt_simple_compile_test_code="int some_variable = 0;"
14397 # Code to be used in simple link tests
14398 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14400 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14407 # If no C compiler was specified, use CC.
14408 LTCC=${LTCC-"$CC"}
14410 # If no C compiler flags were specified, use CFLAGS.
14411 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14413 # Allow CC to be a program name with arguments.
14414 compiler=$CC
14417 # save warnings/boilerplate of simple test code
14418 ac_outfile=conftest.$ac_objext
14419 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14420 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14421 _lt_compiler_boilerplate=`cat conftest.err`
14422 $RM conftest*
14424 ac_outfile=conftest.$ac_objext
14425 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14426 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14427 _lt_linker_boilerplate=`cat conftest.err`
14428 $RM -r conftest*
14431 # Allow CC to be a program name with arguments.
14432 lt_save_CC=$CC
14433 lt_save_CFLAGS=$CFLAGS
14434 lt_save_LD=$LD
14435 lt_save_GCC=$GCC
14436 GCC=$GXX
14437 lt_save_with_gnu_ld=$with_gnu_ld
14438 lt_save_path_LD=$lt_cv_path_LD
14439 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14440 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14441 else
14442 $as_unset lt_cv_prog_gnu_ld
14444 if test -n "${lt_cv_path_LDCXX+set}"; then
14445 lt_cv_path_LD=$lt_cv_path_LDCXX
14446 else
14447 $as_unset lt_cv_path_LD
14449 test -z "${LDCXX+set}" || LD=$LDCXX
14450 CC=${CXX-"c++"}
14451 CFLAGS=$CXXFLAGS
14452 compiler=$CC
14453 compiler_CXX=$CC
14454 func_cc_basename $compiler
14455 cc_basename=$func_cc_basename_result
14458 if test -n "$compiler"; then
14459 # We don't want -fno-exception when compiling C++ code, so set the
14460 # no_builtin_flag separately
14461 if test yes = "$GXX"; then
14462 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14463 else
14464 lt_prog_compiler_no_builtin_flag_CXX=
14467 if test yes = "$GXX"; then
14468 # Set up default GNU C++ configuration
14472 # Check whether --with-gnu-ld was given.
14473 if test "${with_gnu_ld+set}" = set; then :
14474 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
14475 else
14476 with_gnu_ld=no
14479 ac_prog=ld
14480 if test yes = "$GCC"; then
14481 # Check if gcc -print-prog-name=ld gives a path.
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14483 $as_echo_n "checking for ld used by $CC... " >&6; }
14484 case $host in
14485 *-*-mingw*)
14486 # gcc leaves a trailing carriage return, which upsets mingw
14487 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14489 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14490 esac
14491 case $ac_prog in
14492 # Accept absolute paths.
14493 [\\/]* | ?:[\\/]*)
14494 re_direlt='/[^/][^/]*/\.\./'
14495 # Canonicalize the pathname of ld
14496 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14497 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14498 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14499 done
14500 test -z "$LD" && LD=$ac_prog
14503 # If it fails, then pretend we aren't using GCC.
14504 ac_prog=ld
14507 # If it is relative, then search for the first ld in PATH.
14508 with_gnu_ld=unknown
14510 esac
14511 elif test yes = "$with_gnu_ld"; then
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14513 $as_echo_n "checking for GNU ld... " >&6; }
14514 else
14515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14516 $as_echo_n "checking for non-GNU ld... " >&6; }
14518 if ${lt_cv_path_LD+:} false; then :
14519 $as_echo_n "(cached) " >&6
14520 else
14521 if test -z "$LD"; then
14522 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14523 for ac_dir in $PATH; do
14524 IFS=$lt_save_ifs
14525 test -z "$ac_dir" && ac_dir=.
14526 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14527 lt_cv_path_LD=$ac_dir/$ac_prog
14528 # Check to see if the program is GNU ld. I'd rather use --version,
14529 # but apparently some variants of GNU ld only accept -v.
14530 # Break only if it was the GNU/non-GNU ld that we prefer.
14531 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14532 *GNU* | *'with BFD'*)
14533 test no != "$with_gnu_ld" && break
14536 test yes != "$with_gnu_ld" && break
14538 esac
14540 done
14541 IFS=$lt_save_ifs
14542 else
14543 lt_cv_path_LD=$LD # Let the user override the test with a path.
14547 LD=$lt_cv_path_LD
14548 if test -n "$LD"; then
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14550 $as_echo "$LD" >&6; }
14551 else
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14553 $as_echo "no" >&6; }
14555 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14557 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14558 if ${lt_cv_prog_gnu_ld+:} false; then :
14559 $as_echo_n "(cached) " >&6
14560 else
14561 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14562 case `$LD -v 2>&1 </dev/null` in
14563 *GNU* | *'with BFD'*)
14564 lt_cv_prog_gnu_ld=yes
14567 lt_cv_prog_gnu_ld=no
14569 esac
14571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14572 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14573 with_gnu_ld=$lt_cv_prog_gnu_ld
14581 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14582 # archiving commands below assume that GNU ld is being used.
14583 if test yes = "$with_gnu_ld"; then
14584 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14585 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'
14587 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14588 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14590 # If archive_cmds runs LD, not CC, wlarc should be empty
14591 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14592 # investigate it a little bit more. (MM)
14593 wlarc='$wl'
14595 # ancient GNU ld didn't support --whole-archive et. al.
14596 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14597 $GREP 'no-whole-archive' > /dev/null; then
14598 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14599 else
14600 whole_archive_flag_spec_CXX=
14602 else
14603 with_gnu_ld=no
14604 wlarc=
14606 # A generic and very simple default shared library creation
14607 # command for GNU C++ for the case where it uses the native
14608 # linker, instead of GNU ld. If possible, this setting should
14609 # overridden to take advantage of the native linker features on
14610 # the platform it is being used on.
14611 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14614 # Commands to make compiler produce verbose output that lists
14615 # what "hidden" libraries, object files and flags are used when
14616 # linking a shared library.
14617 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14619 else
14620 GXX=no
14621 with_gnu_ld=no
14622 wlarc=
14625 # PORTME: fill in a description of your system's C++ link characteristics
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14627 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14628 ld_shlibs_CXX=yes
14629 case $host_os in
14630 aix3*)
14631 # FIXME: insert proper C++ library support
14632 ld_shlibs_CXX=no
14634 aix[4-9]*)
14635 if test ia64 = "$host_cpu"; then
14636 # On IA64, the linker does run time linking by default, so we don't
14637 # have to do anything special.
14638 aix_use_runtimelinking=no
14639 exp_sym_flag='-Bexport'
14640 no_entry_flag=
14641 else
14642 aix_use_runtimelinking=no
14644 # Test if we are trying to use run time linking or normal
14645 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14646 # have runtime linking enabled, and use it for executables.
14647 # For shared libraries, we enable/disable runtime linking
14648 # depending on the kind of the shared library created -
14649 # when "with_aix_soname,aix_use_runtimelinking" is:
14650 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
14651 # "aix,yes" lib.so shared, rtl:yes, for executables
14652 # lib.a static archive
14653 # "both,no" lib.so.V(shr.o) shared, rtl:yes
14654 # lib.a(lib.so.V) shared, rtl:no, for executables
14655 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
14656 # lib.a(lib.so.V) shared, rtl:no
14657 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
14658 # lib.a static archive
14659 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14660 for ld_flag in $LDFLAGS; do
14661 case $ld_flag in
14662 *-brtl*)
14663 aix_use_runtimelinking=yes
14664 break
14666 esac
14667 done
14668 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
14669 # With aix-soname=svr4, we create the lib.so.V shared archives only,
14670 # so we don't have lib.a shared libs to link our executables.
14671 # We have to force runtime linking in this case.
14672 aix_use_runtimelinking=yes
14673 LDFLAGS="$LDFLAGS -Wl,-brtl"
14676 esac
14678 exp_sym_flag='-bexport'
14679 no_entry_flag='-bnoentry'
14682 # When large executables or shared objects are built, AIX ld can
14683 # have problems creating the table of contents. If linking a library
14684 # or program results in "error TOC overflow" add -mminimal-toc to
14685 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14686 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14688 archive_cmds_CXX=''
14689 hardcode_direct_CXX=yes
14690 hardcode_direct_absolute_CXX=yes
14691 hardcode_libdir_separator_CXX=':'
14692 link_all_deplibs_CXX=yes
14693 file_list_spec_CXX='$wl-f,'
14694 case $with_aix_soname,$aix_use_runtimelinking in
14695 aix,*) ;; # no import file
14696 svr4,* | *,yes) # use import file
14697 # The Import File defines what to hardcode.
14698 hardcode_direct_CXX=no
14699 hardcode_direct_absolute_CXX=no
14701 esac
14703 if test yes = "$GXX"; then
14704 case $host_os in aix4.[012]|aix4.[012].*)
14705 # We only want to do this on AIX 4.2 and lower, the check
14706 # below for broken collect2 doesn't work under 4.3+
14707 collect2name=`$CC -print-prog-name=collect2`
14708 if test -f "$collect2name" &&
14709 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14710 then
14711 # We have reworked collect2
14713 else
14714 # We have old collect2
14715 hardcode_direct_CXX=unsupported
14716 # It fails to find uninstalled libraries when the uninstalled
14717 # path is not listed in the libpath. Setting hardcode_minus_L
14718 # to unsupported forces relinking
14719 hardcode_minus_L_CXX=yes
14720 hardcode_libdir_flag_spec_CXX='-L$libdir'
14721 hardcode_libdir_separator_CXX=
14723 esac
14724 shared_flag='-shared'
14725 if test yes = "$aix_use_runtimelinking"; then
14726 shared_flag=$shared_flag' $wl-G'
14728 # Need to ensure runtime linking is disabled for the traditional
14729 # shared library, or the linker may eventually find shared libraries
14730 # /with/ Import File - we do not want to mix them.
14731 shared_flag_aix='-shared'
14732 shared_flag_svr4='-shared $wl-G'
14733 else
14734 # not using gcc
14735 if test ia64 = "$host_cpu"; then
14736 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14737 # chokes on -Wl,-G. The following line is correct:
14738 shared_flag='-G'
14739 else
14740 if test yes = "$aix_use_runtimelinking"; then
14741 shared_flag='$wl-G'
14742 else
14743 shared_flag='$wl-bM:SRE'
14745 shared_flag_aix='$wl-bM:SRE'
14746 shared_flag_svr4='$wl-G'
14750 export_dynamic_flag_spec_CXX='$wl-bexpall'
14751 # It seems that -bexpall does not export symbols beginning with
14752 # underscore (_), so it is better to generate a list of symbols to
14753 # export.
14754 always_export_symbols_CXX=yes
14755 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
14756 # Warning - without using the other runtime loading flags (-brtl),
14757 # -berok will link without error, but may produce a broken library.
14758 # The "-G" linker flag allows undefined symbols.
14759 no_undefined_flag_CXX='-bernotok'
14760 # Determine the default libpath from the value encoded in an empty
14761 # executable.
14762 if test set = "${lt_cv_aix_libpath+set}"; then
14763 aix_libpath=$lt_cv_aix_libpath
14764 else
14765 if ${lt_cv_aix_libpath__CXX+:} false; then :
14766 $as_echo_n "(cached) " >&6
14767 else
14768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14769 /* end confdefs.h. */
14772 main ()
14776 return 0;
14778 _ACEOF
14779 if ac_fn_cxx_try_link "$LINENO"; then :
14781 lt_aix_libpath_sed='
14782 /Import File Strings/,/^$/ {
14783 /^0/ {
14784 s/^0 *\([^ ]*\) *$/\1/
14788 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14789 # Check for a 64-bit object if we didn't find anything.
14790 if test -z "$lt_cv_aix_libpath__CXX"; then
14791 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14794 rm -f core conftest.err conftest.$ac_objext \
14795 conftest$ac_exeext conftest.$ac_ext
14796 if test -z "$lt_cv_aix_libpath__CXX"; then
14797 lt_cv_aix_libpath__CXX=/usr/lib:/lib
14802 aix_libpath=$lt_cv_aix_libpath__CXX
14805 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14807 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
14808 else
14809 if test ia64 = "$host_cpu"; then
14810 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
14811 allow_undefined_flag_CXX="-z nodefs"
14812 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"
14813 else
14814 # Determine the default libpath from the value encoded in an
14815 # empty executable.
14816 if test set = "${lt_cv_aix_libpath+set}"; then
14817 aix_libpath=$lt_cv_aix_libpath
14818 else
14819 if ${lt_cv_aix_libpath__CXX+:} false; then :
14820 $as_echo_n "(cached) " >&6
14821 else
14822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14823 /* end confdefs.h. */
14826 main ()
14830 return 0;
14832 _ACEOF
14833 if ac_fn_cxx_try_link "$LINENO"; then :
14835 lt_aix_libpath_sed='
14836 /Import File Strings/,/^$/ {
14837 /^0/ {
14838 s/^0 *\([^ ]*\) *$/\1/
14842 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14843 # Check for a 64-bit object if we didn't find anything.
14844 if test -z "$lt_cv_aix_libpath__CXX"; then
14845 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14848 rm -f core conftest.err conftest.$ac_objext \
14849 conftest$ac_exeext conftest.$ac_ext
14850 if test -z "$lt_cv_aix_libpath__CXX"; then
14851 lt_cv_aix_libpath__CXX=/usr/lib:/lib
14856 aix_libpath=$lt_cv_aix_libpath__CXX
14859 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14860 # Warning - without using the other run time loading flags,
14861 # -berok will link without error, but may produce a broken library.
14862 no_undefined_flag_CXX=' $wl-bernotok'
14863 allow_undefined_flag_CXX=' $wl-berok'
14864 if test yes = "$with_gnu_ld"; then
14865 # We only use this code for GNU lds that support --whole-archive.
14866 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14867 else
14868 # Exported symbols can be pulled into shared objects from archives
14869 whole_archive_flag_spec_CXX='$convenience'
14871 archive_cmds_need_lc_CXX=yes
14872 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14873 # -brtl affects multiple linker settings, -berok does not and is overridden later
14874 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14875 if test svr4 != "$with_aix_soname"; then
14876 # This is similar to how AIX traditionally builds its shared
14877 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
14878 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
14880 if test aix != "$with_aix_soname"; then
14881 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
14882 else
14883 # used by -dlpreopen to get the symbols
14884 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
14886 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
14891 beos*)
14892 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14893 allow_undefined_flag_CXX=unsupported
14894 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14895 # support --undefined. This deserves some investigation. FIXME
14896 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14897 else
14898 ld_shlibs_CXX=no
14902 chorus*)
14903 case $cc_basename in
14905 # FIXME: insert proper C++ library support
14906 ld_shlibs_CXX=no
14908 esac
14911 cygwin* | mingw* | pw32* | cegcc*)
14912 case $GXX,$cc_basename in
14913 ,cl* | no,cl* | ,icl* | no,icl*)
14914 # Native MSVC or ICC
14915 # hardcode_libdir_flag_spec is actually meaningless, as there is
14916 # no search path for DLLs.
14917 hardcode_libdir_flag_spec_CXX=' '
14918 allow_undefined_flag_CXX=unsupported
14919 always_export_symbols_CXX=yes
14920 file_list_spec_CXX='@'
14921 # Tell ltmain to make .lib files, not .a files.
14922 libext=lib
14923 # Tell ltmain to make .dll files, not .so files.
14924 shrext_cmds=.dll
14925 # FIXME: Setting linknames here is a bad hack.
14926 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14927 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14928 cp "$export_symbols" "$output_objdir/$soname.def";
14929 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14930 else
14931 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14933 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14934 linknames='
14935 # The linker will not automatically build a static lib if we build a DLL.
14936 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14937 enable_shared_with_static_runtimes_CXX=yes
14938 # Don't use ranlib
14939 old_postinstall_cmds_CXX='chmod 644 $oldlib'
14940 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14941 lt_tool_outputfile="@TOOL_OUTPUT@"~
14942 case $lt_outputfile in
14943 *.exe|*.EXE) ;;
14945 lt_outputfile=$lt_outputfile.exe
14946 lt_tool_outputfile=$lt_tool_outputfile.exe
14948 esac~
14949 func_to_tool_file "$lt_outputfile"~
14950 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14951 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14952 $RM "$lt_outputfile.manifest";
14956 # g++
14957 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14958 # as there is no search path for DLLs.
14959 hardcode_libdir_flag_spec_CXX='-L$libdir'
14960 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
14961 allow_undefined_flag_CXX=unsupported
14962 always_export_symbols_CXX=no
14963 enable_shared_with_static_runtimes_CXX=yes
14965 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14966 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'
14967 # If the export-symbols file already is a .def file, use it as
14968 # is; otherwise, prepend EXPORTS...
14969 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14970 cp $export_symbols $output_objdir/$soname.def;
14971 else
14972 echo EXPORTS > $output_objdir/$soname.def;
14973 cat $export_symbols >> $output_objdir/$soname.def;
14975 $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'
14976 else
14977 ld_shlibs_CXX=no
14980 esac
14982 darwin* | rhapsody*)
14985 archive_cmds_need_lc_CXX=no
14986 hardcode_direct_CXX=no
14987 hardcode_automatic_CXX=yes
14988 hardcode_shlibpath_var_CXX=unsupported
14989 if test yes = "$lt_cv_ld_force_load"; then
14990 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\"`'
14992 else
14993 whole_archive_flag_spec_CXX=''
14995 link_all_deplibs_CXX=yes
14996 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
14997 case $cc_basename in
14998 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14999 *) _lt_dar_can_shared=$GCC ;;
15000 esac
15001 if test yes = "$_lt_dar_can_shared"; then
15002 output_verbose_link_cmd=func_echo_all
15003 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"
15004 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
15005 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"
15006 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"
15007 if test yes != "$lt_cv_apple_cc_single_mod"; then
15008 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"
15009 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"
15012 else
15013 ld_shlibs_CXX=no
15018 os2*)
15019 hardcode_libdir_flag_spec_CXX='-L$libdir'
15020 hardcode_minus_L_CXX=yes
15021 allow_undefined_flag_CXX=unsupported
15022 shrext_cmds=.dll
15023 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15024 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15025 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15026 $ECHO EXPORTS >> $output_objdir/$libname.def~
15027 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15028 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15029 emximp -o $lib $output_objdir/$libname.def'
15030 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15031 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15032 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15033 $ECHO EXPORTS >> $output_objdir/$libname.def~
15034 prefix_cmds="$SED"~
15035 if test EXPORTS = "`$SED 1q $export_symbols`"; then
15036 prefix_cmds="$prefix_cmds -e 1d";
15038 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15039 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15040 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15041 emximp -o $lib $output_objdir/$libname.def'
15042 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15043 enable_shared_with_static_runtimes_CXX=yes
15044 file_list_spec_CXX='@'
15047 dgux*)
15048 case $cc_basename in
15049 ec++*)
15050 # FIXME: insert proper C++ library support
15051 ld_shlibs_CXX=no
15053 ghcx*)
15054 # Green Hills C++ Compiler
15055 # FIXME: insert proper C++ library support
15056 ld_shlibs_CXX=no
15059 # FIXME: insert proper C++ library support
15060 ld_shlibs_CXX=no
15062 esac
15065 freebsd2.*)
15066 # C++ shared libraries reported to be fairly broken before
15067 # switch to ELF
15068 ld_shlibs_CXX=no
15071 freebsd-elf*)
15072 archive_cmds_need_lc_CXX=no
15075 freebsd* | dragonfly*)
15076 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15077 # conventions
15078 ld_shlibs_CXX=yes
15081 haiku*)
15082 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15083 link_all_deplibs_CXX=yes
15086 hpux9*)
15087 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15088 hardcode_libdir_separator_CXX=:
15089 export_dynamic_flag_spec_CXX='$wl-E'
15090 hardcode_direct_CXX=yes
15091 hardcode_minus_L_CXX=yes # Not in the search PATH,
15092 # but as the default
15093 # location of the library.
15095 case $cc_basename in
15096 CC*)
15097 # FIXME: insert proper C++ library support
15098 ld_shlibs_CXX=no
15100 aCC*)
15101 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
15102 # Commands to make compiler produce verbose output that lists
15103 # what "hidden" libraries, object files and flags are used when
15104 # linking a shared library.
15106 # There doesn't appear to be a way to prevent this compiler from
15107 # explicitly linking system object files so we need to strip them
15108 # from the output so that they don't get included in the library
15109 # dependencies.
15110 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"'
15113 if test yes = "$GXX"; then
15114 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
15115 else
15116 # FIXME: insert proper C++ library support
15117 ld_shlibs_CXX=no
15120 esac
15123 hpux10*|hpux11*)
15124 if test no = "$with_gnu_ld"; then
15125 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15126 hardcode_libdir_separator_CXX=:
15128 case $host_cpu in
15129 hppa*64*|ia64*)
15132 export_dynamic_flag_spec_CXX='$wl-E'
15134 esac
15136 case $host_cpu in
15137 hppa*64*|ia64*)
15138 hardcode_direct_CXX=no
15139 hardcode_shlibpath_var_CXX=no
15142 hardcode_direct_CXX=yes
15143 hardcode_direct_absolute_CXX=yes
15144 hardcode_minus_L_CXX=yes # Not in the search PATH,
15145 # but as the default
15146 # location of the library.
15148 esac
15150 case $cc_basename in
15151 CC*)
15152 # FIXME: insert proper C++ library support
15153 ld_shlibs_CXX=no
15155 aCC*)
15156 case $host_cpu in
15157 hppa*64*)
15158 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15160 ia64*)
15161 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15164 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15166 esac
15167 # Commands to make compiler produce verbose output that lists
15168 # what "hidden" libraries, object files and flags are used when
15169 # linking a shared library.
15171 # There doesn't appear to be a way to prevent this compiler from
15172 # explicitly linking system object files so we need to strip them
15173 # from the output so that they don't get included in the library
15174 # dependencies.
15175 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"'
15178 if test yes = "$GXX"; then
15179 if test no = "$with_gnu_ld"; then
15180 case $host_cpu in
15181 hppa*64*)
15182 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15184 ia64*)
15185 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15188 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'
15190 esac
15192 else
15193 # FIXME: insert proper C++ library support
15194 ld_shlibs_CXX=no
15197 esac
15200 interix[3-9]*)
15201 hardcode_direct_CXX=no
15202 hardcode_shlibpath_var_CXX=no
15203 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15204 export_dynamic_flag_spec_CXX='$wl-E'
15205 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15206 # Instead, shared libraries are loaded at an image base (0x10000000 by
15207 # default) and relocated if they conflict, which is a slow very memory
15208 # consuming and fragmenting process. To avoid this, we pick a random,
15209 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15210 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15211 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'
15212 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'
15214 irix5* | irix6*)
15215 case $cc_basename in
15216 CC*)
15217 # SGI C++
15218 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'
15220 # Archives containing C++ object files must be created using
15221 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15222 # necessary to make sure instantiated templates are included
15223 # in the archive.
15224 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15227 if test yes = "$GXX"; then
15228 if test no = "$with_gnu_ld"; then
15229 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'
15230 else
15231 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'
15234 link_all_deplibs_CXX=yes
15236 esac
15237 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15238 hardcode_libdir_separator_CXX=:
15239 inherit_rpath_CXX=yes
15242 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15243 case $cc_basename in
15244 KCC*)
15245 # Kuck and Associates, Inc. (KAI) C++ Compiler
15247 # KCC will only create a shared library if the output file
15248 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15249 # to its proper name (with version) after linking.
15250 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'
15251 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'
15252 # Commands to make compiler produce verbose output that lists
15253 # what "hidden" libraries, object files and flags are used when
15254 # linking a shared library.
15256 # There doesn't appear to be a way to prevent this compiler from
15257 # explicitly linking system object files so we need to strip them
15258 # from the output so that they don't get included in the library
15259 # dependencies.
15260 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"'
15262 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15263 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15265 # Archives containing C++ object files must be created using
15266 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15267 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15269 icpc* | ecpc* )
15270 # Intel C++
15271 with_gnu_ld=yes
15272 # version 8.0 and above of icpc choke on multiply defined symbols
15273 # if we add $predep_objects and $postdep_objects, however 7.1 and
15274 # earlier do not add the objects themselves.
15275 case `$CC -V 2>&1` in
15276 *"Version 7."*)
15277 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15278 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'
15280 *) # Version 8.0 or newer
15281 tmp_idyn=
15282 case $host_cpu in
15283 ia64*) tmp_idyn=' -i_dynamic';;
15284 esac
15285 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15286 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'
15288 esac
15289 archive_cmds_need_lc_CXX=no
15290 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15291 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15292 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15294 pgCC* | pgcpp*)
15295 # Portland Group C++ compiler
15296 case `$CC -V` in
15297 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
15298 prelink_cmds_CXX='tpldir=Template.dir~
15299 rm -rf $tpldir~
15300 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15301 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
15302 old_archive_cmds_CXX='tpldir=Template.dir~
15303 rm -rf $tpldir~
15304 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15305 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15306 $RANLIB $oldlib'
15307 archive_cmds_CXX='tpldir=Template.dir~
15308 rm -rf $tpldir~
15309 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15310 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15311 archive_expsym_cmds_CXX='tpldir=Template.dir~
15312 rm -rf $tpldir~
15313 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15314 $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'
15316 *) # Version 6 and above use weak symbols
15317 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15318 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'
15320 esac
15322 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
15323 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15324 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'
15326 cxx*)
15327 # Compaq C++
15328 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15329 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'
15331 runpath_var=LD_RUN_PATH
15332 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15333 hardcode_libdir_separator_CXX=:
15335 # Commands to make compiler produce verbose output that lists
15336 # what "hidden" libraries, object files and flags are used when
15337 # linking a shared library.
15339 # There doesn't appear to be a way to prevent this compiler from
15340 # explicitly linking system object files so we need to strip them
15341 # from the output so that they don't get included in the library
15342 # dependencies.
15343 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'
15345 xl* | mpixl* | bgxl*)
15346 # IBM XL 8.0 on PPC, with GNU ld
15347 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15348 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15349 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15350 if test yes = "$supports_anon_versioning"; then
15351 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15352 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15353 echo "local: *; };" >> $output_objdir/$libname.ver~
15354 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15358 case `$CC -V 2>&1 | sed 5q` in
15359 *Sun\ C*)
15360 # Sun C++ 5.9
15361 no_undefined_flag_CXX=' -zdefs'
15362 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15363 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'
15364 hardcode_libdir_flag_spec_CXX='-R$libdir'
15365 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'
15366 compiler_needs_object_CXX=yes
15368 # Not sure whether something based on
15369 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15370 # would be better.
15371 output_verbose_link_cmd='func_echo_all'
15373 # Archives containing C++ object files must be created using
15374 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15375 # necessary to make sure instantiated templates are included
15376 # in the archive.
15377 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15379 esac
15381 esac
15384 lynxos*)
15385 # FIXME: insert proper C++ library support
15386 ld_shlibs_CXX=no
15389 m88k*)
15390 # FIXME: insert proper C++ library support
15391 ld_shlibs_CXX=no
15394 mvs*)
15395 case $cc_basename in
15396 cxx*)
15397 # FIXME: insert proper C++ library support
15398 ld_shlibs_CXX=no
15401 # FIXME: insert proper C++ library support
15402 ld_shlibs_CXX=no
15404 esac
15407 netbsd*)
15408 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15409 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15410 wlarc=
15411 hardcode_libdir_flag_spec_CXX='-R$libdir'
15412 hardcode_direct_CXX=yes
15413 hardcode_shlibpath_var_CXX=no
15415 # Workaround some broken pre-1.5 toolchains
15416 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15419 *nto* | *qnx*)
15420 ld_shlibs_CXX=yes
15423 openbsd* | bitrig*)
15424 if test -f /usr/libexec/ld.so; then
15425 hardcode_direct_CXX=yes
15426 hardcode_shlibpath_var_CXX=no
15427 hardcode_direct_absolute_CXX=yes
15428 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15429 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15430 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
15431 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
15432 export_dynamic_flag_spec_CXX='$wl-E'
15433 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15435 output_verbose_link_cmd=func_echo_all
15436 else
15437 ld_shlibs_CXX=no
15441 osf3* | osf4* | osf5*)
15442 case $cc_basename in
15443 KCC*)
15444 # Kuck and Associates, Inc. (KAI) C++ Compiler
15446 # KCC will only create a shared library if the output file
15447 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15448 # to its proper name (with version) after linking.
15449 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'
15451 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15452 hardcode_libdir_separator_CXX=:
15454 # Archives containing C++ object files must be created using
15455 # the KAI C++ compiler.
15456 case $host in
15457 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15458 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15459 esac
15461 RCC*)
15462 # Rational C++ 2.4.1
15463 # FIXME: insert proper C++ library support
15464 ld_shlibs_CXX=no
15466 cxx*)
15467 case $host in
15468 osf3*)
15469 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15470 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'
15471 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15474 allow_undefined_flag_CXX=' -expect_unresolved \*'
15475 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'
15476 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15477 echo "-hidden">> $lib.exp~
15478 $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~
15479 $RM $lib.exp'
15480 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15482 esac
15484 hardcode_libdir_separator_CXX=:
15486 # Commands to make compiler produce verbose output that lists
15487 # what "hidden" libraries, object files and flags are used when
15488 # linking a shared library.
15490 # There doesn't appear to be a way to prevent this compiler from
15491 # explicitly linking system object files so we need to strip them
15492 # from the output so that they don't get included in the library
15493 # dependencies.
15494 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"'
15497 if test yes,no = "$GXX,$with_gnu_ld"; then
15498 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15499 case $host in
15500 osf3*)
15501 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'
15504 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'
15506 esac
15508 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15509 hardcode_libdir_separator_CXX=:
15511 # Commands to make compiler produce verbose output that lists
15512 # what "hidden" libraries, object files and flags are used when
15513 # linking a shared library.
15514 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15516 else
15517 # FIXME: insert proper C++ library support
15518 ld_shlibs_CXX=no
15521 esac
15524 psos*)
15525 # FIXME: insert proper C++ library support
15526 ld_shlibs_CXX=no
15529 sunos4*)
15530 case $cc_basename in
15531 CC*)
15532 # Sun C++ 4.x
15533 # FIXME: insert proper C++ library support
15534 ld_shlibs_CXX=no
15536 lcc*)
15537 # Lucid
15538 # FIXME: insert proper C++ library support
15539 ld_shlibs_CXX=no
15542 # FIXME: insert proper C++ library support
15543 ld_shlibs_CXX=no
15545 esac
15548 solaris*)
15549 case $cc_basename in
15550 CC* | sunCC*)
15551 # Sun C++ 4.2, 5.x and Centerline C++
15552 archive_cmds_need_lc_CXX=yes
15553 no_undefined_flag_CXX=' -zdefs'
15554 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15555 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15556 $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'
15558 hardcode_libdir_flag_spec_CXX='-R$libdir'
15559 hardcode_shlibpath_var_CXX=no
15560 case $host_os in
15561 solaris2.[0-5] | solaris2.[0-5].*) ;;
15563 # The compiler driver will combine and reorder linker options,
15564 # but understands '-z linker_flag'.
15565 # Supported since Solaris 2.6 (maybe 2.5.1?)
15566 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15568 esac
15569 link_all_deplibs_CXX=yes
15571 output_verbose_link_cmd='func_echo_all'
15573 # Archives containing C++ object files must be created using
15574 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15575 # necessary to make sure instantiated templates are included
15576 # in the archive.
15577 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15579 gcx*)
15580 # Green Hills C++ Compiler
15581 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15583 # The C++ compiler must be used to create the archive.
15584 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15587 # GNU C++ compiler with Solaris linker
15588 if test yes,no = "$GXX,$with_gnu_ld"; then
15589 no_undefined_flag_CXX=' $wl-z ${wl}defs'
15590 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15591 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15592 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15593 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15595 # Commands to make compiler produce verbose output that lists
15596 # what "hidden" libraries, object files and flags are used when
15597 # linking a shared library.
15598 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15599 else
15600 # g++ 2.7 appears to require '-G' NOT '-shared' on this
15601 # platform.
15602 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15603 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15604 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15606 # Commands to make compiler produce verbose output that lists
15607 # what "hidden" libraries, object files and flags are used when
15608 # linking a shared library.
15609 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15612 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
15613 case $host_os in
15614 solaris2.[0-5] | solaris2.[0-5].*) ;;
15616 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
15618 esac
15621 esac
15624 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15625 no_undefined_flag_CXX='$wl-z,text'
15626 archive_cmds_need_lc_CXX=no
15627 hardcode_shlibpath_var_CXX=no
15628 runpath_var='LD_RUN_PATH'
15630 case $cc_basename in
15631 CC*)
15632 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15633 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15636 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15637 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15639 esac
15642 sysv5* | sco3.2v5* | sco5v6*)
15643 # Note: We CANNOT use -z defs as we might desire, because we do not
15644 # link with -lc, and that would cause any symbols used from libc to
15645 # always be unresolved, which means just about no library would
15646 # ever link correctly. If we're not using GNU ld we use -z text
15647 # though, which does catch some bad symbols but isn't as heavy-handed
15648 # as -z defs.
15649 no_undefined_flag_CXX='$wl-z,text'
15650 allow_undefined_flag_CXX='$wl-z,nodefs'
15651 archive_cmds_need_lc_CXX=no
15652 hardcode_shlibpath_var_CXX=no
15653 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
15654 hardcode_libdir_separator_CXX=':'
15655 link_all_deplibs_CXX=yes
15656 export_dynamic_flag_spec_CXX='$wl-Bexport'
15657 runpath_var='LD_RUN_PATH'
15659 case $cc_basename in
15660 CC*)
15661 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15662 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15663 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15664 '"$old_archive_cmds_CXX"
15665 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15666 '"$reload_cmds_CXX"
15669 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15670 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15672 esac
15675 tandem*)
15676 case $cc_basename in
15677 NCC*)
15678 # NonStop-UX NCC 3.20
15679 # FIXME: insert proper C++ library support
15680 ld_shlibs_CXX=no
15683 # FIXME: insert proper C++ library support
15684 ld_shlibs_CXX=no
15686 esac
15689 vxworks*)
15690 # FIXME: insert proper C++ library support
15691 ld_shlibs_CXX=no
15695 # FIXME: insert proper C++ library support
15696 ld_shlibs_CXX=no
15698 esac
15700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15701 $as_echo "$ld_shlibs_CXX" >&6; }
15702 test no = "$ld_shlibs_CXX" && can_build_shared=no
15704 GCC_CXX=$GXX
15705 LD_CXX=$LD
15707 ## CAVEAT EMPTOR:
15708 ## There is no encapsulation within the following macros, do not change
15709 ## the running order or otherwise move them around unless you know exactly
15710 ## what you are doing...
15711 # Dependencies to place before and after the object being linked:
15712 predep_objects_CXX=
15713 postdep_objects_CXX=
15714 predeps_CXX=
15715 postdeps_CXX=
15716 compiler_lib_search_path_CXX=
15718 cat > conftest.$ac_ext <<_LT_EOF
15719 class Foo
15721 public:
15722 Foo (void) { a = 0; }
15723 private:
15724 int a;
15726 _LT_EOF
15729 _lt_libdeps_save_CFLAGS=$CFLAGS
15730 case "$CC $CFLAGS " in #(
15731 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15732 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15733 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15734 esac
15736 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15737 (eval $ac_compile) 2>&5
15738 ac_status=$?
15739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15740 test $ac_status = 0; }; then
15741 # Parse the compiler output and extract the necessary
15742 # objects, libraries and library flags.
15744 # Sentinel used to keep track of whether or not we are before
15745 # the conftest object file.
15746 pre_test_object_deps_done=no
15748 for p in `eval "$output_verbose_link_cmd"`; do
15749 case $prev$p in
15751 -L* | -R* | -l*)
15752 # Some compilers place space between "-{L,R}" and the path.
15753 # Remove the space.
15754 if test x-L = "$p" ||
15755 test x-R = "$p"; then
15756 prev=$p
15757 continue
15760 # Expand the sysroot to ease extracting the directories later.
15761 if test -z "$prev"; then
15762 case $p in
15763 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15764 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15765 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15766 esac
15768 case $p in
15769 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15770 esac
15771 if test no = "$pre_test_object_deps_done"; then
15772 case $prev in
15773 -L | -R)
15774 # Internal compiler library paths should come after those
15775 # provided the user. The postdeps already come after the
15776 # user supplied libs so there is no need to process them.
15777 if test -z "$compiler_lib_search_path_CXX"; then
15778 compiler_lib_search_path_CXX=$prev$p
15779 else
15780 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
15783 # The "-l" case would never come before the object being
15784 # linked, so don't bother handling this case.
15785 esac
15786 else
15787 if test -z "$postdeps_CXX"; then
15788 postdeps_CXX=$prev$p
15789 else
15790 postdeps_CXX="${postdeps_CXX} $prev$p"
15793 prev=
15796 *.lto.$objext) ;; # Ignore GCC LTO objects
15797 *.$objext)
15798 # This assumes that the test object file only shows up
15799 # once in the compiler output.
15800 if test "$p" = "conftest.$objext"; then
15801 pre_test_object_deps_done=yes
15802 continue
15805 if test no = "$pre_test_object_deps_done"; then
15806 if test -z "$predep_objects_CXX"; then
15807 predep_objects_CXX=$p
15808 else
15809 predep_objects_CXX="$predep_objects_CXX $p"
15811 else
15812 if test -z "$postdep_objects_CXX"; then
15813 postdep_objects_CXX=$p
15814 else
15815 postdep_objects_CXX="$postdep_objects_CXX $p"
15820 *) ;; # Ignore the rest.
15822 esac
15823 done
15825 # Clean up.
15826 rm -f a.out a.exe
15827 else
15828 echo "libtool.m4: error: problem compiling CXX test program"
15831 $RM -f confest.$objext
15832 CFLAGS=$_lt_libdeps_save_CFLAGS
15834 # PORTME: override above test on systems where it is broken
15835 case $host_os in
15836 interix[3-9]*)
15837 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15838 # hack all around it, let's just trust "g++" to DTRT.
15839 predep_objects_CXX=
15840 postdep_objects_CXX=
15841 postdeps_CXX=
15843 esac
15846 case " $postdeps_CXX " in
15847 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15848 esac
15849 compiler_lib_search_dirs_CXX=
15850 if test -n "${compiler_lib_search_path_CXX}"; then
15851 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
15884 lt_prog_compiler_wl_CXX=
15885 lt_prog_compiler_pic_CXX=
15886 lt_prog_compiler_static_CXX=
15889 # C++ specific cases for pic, static, wl, etc.
15890 if test yes = "$GXX"; then
15891 lt_prog_compiler_wl_CXX='-Wl,'
15892 lt_prog_compiler_static_CXX='-static'
15894 case $host_os in
15895 aix*)
15896 # All AIX code is PIC.
15897 if test ia64 = "$host_cpu"; then
15898 # AIX 5 now supports IA64 processor
15899 lt_prog_compiler_static_CXX='-Bstatic'
15901 lt_prog_compiler_pic_CXX='-fPIC'
15904 amigaos*)
15905 case $host_cpu in
15906 powerpc)
15907 # see comment about AmigaOS4 .so support
15908 lt_prog_compiler_pic_CXX='-fPIC'
15910 m68k)
15911 # FIXME: we need at least 68020 code to build shared libraries, but
15912 # adding the '-m68020' flag to GCC prevents building anything better,
15913 # like '-m68040'.
15914 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15916 esac
15919 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15920 # PIC is the default for these OSes.
15922 mingw* | cygwin* | os2* | pw32* | cegcc*)
15923 # This hack is so that the source file can tell whether it is being
15924 # built for inclusion in a dll (and should export symbols for example).
15925 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15926 # (--disable-auto-import) libraries
15927 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15928 case $host_os in
15929 os2*)
15930 lt_prog_compiler_static_CXX='$wl-static'
15932 esac
15934 darwin* | rhapsody*)
15935 # PIC is the default on this platform
15936 # Common symbols not allowed in MH_DYLIB files
15937 lt_prog_compiler_pic_CXX='-fno-common'
15939 *djgpp*)
15940 # DJGPP does not support shared libraries at all
15941 lt_prog_compiler_pic_CXX=
15943 haiku*)
15944 # PIC is the default for Haiku.
15945 # The "-static" flag exists, but is broken.
15946 lt_prog_compiler_static_CXX=
15948 interix[3-9]*)
15949 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15950 # Instead, we relocate shared libraries at runtime.
15952 sysv4*MP*)
15953 if test -d /usr/nec; then
15954 lt_prog_compiler_pic_CXX=-Kconform_pic
15957 hpux*)
15958 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15959 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15960 # sets the default TLS model and affects inlining.
15961 case $host_cpu in
15962 hppa*64*)
15965 lt_prog_compiler_pic_CXX='-fPIC'
15967 esac
15969 *qnx* | *nto*)
15970 # QNX uses GNU C++, but need to define -shared option too, otherwise
15971 # it will coredump.
15972 lt_prog_compiler_pic_CXX='-fPIC -shared'
15975 lt_prog_compiler_pic_CXX='-fPIC'
15977 esac
15978 else
15979 case $host_os in
15980 aix[4-9]*)
15981 # All AIX code is PIC.
15982 if test ia64 = "$host_cpu"; then
15983 # AIX 5 now supports IA64 processor
15984 lt_prog_compiler_static_CXX='-Bstatic'
15985 else
15986 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15989 chorus*)
15990 case $cc_basename in
15991 cxch68*)
15992 # Green Hills C++ Compiler
15993 # _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"
15995 esac
15997 mingw* | cygwin* | os2* | pw32* | cegcc*)
15998 # This hack is so that the source file can tell whether it is being
15999 # built for inclusion in a dll (and should export symbols for example).
16000 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16002 dgux*)
16003 case $cc_basename in
16004 ec++*)
16005 lt_prog_compiler_pic_CXX='-KPIC'
16007 ghcx*)
16008 # Green Hills C++ Compiler
16009 lt_prog_compiler_pic_CXX='-pic'
16013 esac
16015 freebsd* | dragonfly*)
16016 # FreeBSD uses GNU C++
16018 hpux9* | hpux10* | hpux11*)
16019 case $cc_basename in
16020 CC*)
16021 lt_prog_compiler_wl_CXX='-Wl,'
16022 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16023 if test ia64 != "$host_cpu"; then
16024 lt_prog_compiler_pic_CXX='+Z'
16027 aCC*)
16028 lt_prog_compiler_wl_CXX='-Wl,'
16029 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16030 case $host_cpu in
16031 hppa*64*|ia64*)
16032 # +Z the default
16035 lt_prog_compiler_pic_CXX='+Z'
16037 esac
16041 esac
16043 interix*)
16044 # This is c89, which is MS Visual C++ (no shared libs)
16045 # Anyone wants to do a port?
16047 irix5* | irix6* | nonstopux*)
16048 case $cc_basename in
16049 CC*)
16050 lt_prog_compiler_wl_CXX='-Wl,'
16051 lt_prog_compiler_static_CXX='-non_shared'
16052 # CC pic flag -KPIC is the default.
16056 esac
16058 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16059 case $cc_basename in
16060 KCC*)
16061 # KAI C++ Compiler
16062 lt_prog_compiler_wl_CXX='--backend -Wl,'
16063 lt_prog_compiler_pic_CXX='-fPIC'
16065 ecpc* )
16066 # old Intel C++ for x86_64, which still supported -KPIC.
16067 lt_prog_compiler_wl_CXX='-Wl,'
16068 lt_prog_compiler_pic_CXX='-KPIC'
16069 lt_prog_compiler_static_CXX='-static'
16071 icpc* )
16072 # Intel C++, used to be incompatible with GCC.
16073 # ICC 10 doesn't accept -KPIC any more.
16074 lt_prog_compiler_wl_CXX='-Wl,'
16075 lt_prog_compiler_pic_CXX='-fPIC'
16076 lt_prog_compiler_static_CXX='-static'
16078 pgCC* | pgcpp*)
16079 # Portland Group C++ compiler
16080 lt_prog_compiler_wl_CXX='-Wl,'
16081 lt_prog_compiler_pic_CXX='-fpic'
16082 lt_prog_compiler_static_CXX='-Bstatic'
16084 cxx*)
16085 # Compaq C++
16086 # Make sure the PIC flag is empty. It appears that all Alpha
16087 # Linux and Compaq Tru64 Unix objects are PIC.
16088 lt_prog_compiler_pic_CXX=
16089 lt_prog_compiler_static_CXX='-non_shared'
16091 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16092 # IBM XL 8.0, 9.0 on PPC and BlueGene
16093 lt_prog_compiler_wl_CXX='-Wl,'
16094 lt_prog_compiler_pic_CXX='-qpic'
16095 lt_prog_compiler_static_CXX='-qstaticlink'
16098 case `$CC -V 2>&1 | sed 5q` in
16099 *Sun\ C*)
16100 # Sun C++ 5.9
16101 lt_prog_compiler_pic_CXX='-KPIC'
16102 lt_prog_compiler_static_CXX='-Bstatic'
16103 lt_prog_compiler_wl_CXX='-Qoption ld '
16105 esac
16107 esac
16109 lynxos*)
16111 m88k*)
16113 mvs*)
16114 case $cc_basename in
16115 cxx*)
16116 lt_prog_compiler_pic_CXX='-W c,exportall'
16120 esac
16122 netbsd*)
16124 *qnx* | *nto*)
16125 # QNX uses GNU C++, but need to define -shared option too, otherwise
16126 # it will coredump.
16127 lt_prog_compiler_pic_CXX='-fPIC -shared'
16129 osf3* | osf4* | osf5*)
16130 case $cc_basename in
16131 KCC*)
16132 lt_prog_compiler_wl_CXX='--backend -Wl,'
16134 RCC*)
16135 # Rational C++ 2.4.1
16136 lt_prog_compiler_pic_CXX='-pic'
16138 cxx*)
16139 # Digital/Compaq C++
16140 lt_prog_compiler_wl_CXX='-Wl,'
16141 # Make sure the PIC flag is empty. It appears that all Alpha
16142 # Linux and Compaq Tru64 Unix objects are PIC.
16143 lt_prog_compiler_pic_CXX=
16144 lt_prog_compiler_static_CXX='-non_shared'
16148 esac
16150 psos*)
16152 solaris*)
16153 case $cc_basename in
16154 CC* | sunCC*)
16155 # Sun C++ 4.2, 5.x and Centerline C++
16156 lt_prog_compiler_pic_CXX='-KPIC'
16157 lt_prog_compiler_static_CXX='-Bstatic'
16158 lt_prog_compiler_wl_CXX='-Qoption ld '
16160 gcx*)
16161 # Green Hills C++ Compiler
16162 lt_prog_compiler_pic_CXX='-PIC'
16166 esac
16168 sunos4*)
16169 case $cc_basename in
16170 CC*)
16171 # Sun C++ 4.x
16172 lt_prog_compiler_pic_CXX='-pic'
16173 lt_prog_compiler_static_CXX='-Bstatic'
16175 lcc*)
16176 # Lucid
16177 lt_prog_compiler_pic_CXX='-pic'
16181 esac
16183 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16184 case $cc_basename in
16185 CC*)
16186 lt_prog_compiler_wl_CXX='-Wl,'
16187 lt_prog_compiler_pic_CXX='-KPIC'
16188 lt_prog_compiler_static_CXX='-Bstatic'
16190 esac
16192 tandem*)
16193 case $cc_basename in
16194 NCC*)
16195 # NonStop-UX NCC 3.20
16196 lt_prog_compiler_pic_CXX='-KPIC'
16200 esac
16202 vxworks*)
16205 lt_prog_compiler_can_build_shared_CXX=no
16207 esac
16210 case $host_os in
16211 # For platforms that do not support PIC, -DPIC is meaningless:
16212 *djgpp*)
16213 lt_prog_compiler_pic_CXX=
16216 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16218 esac
16220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16221 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16222 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
16223 $as_echo_n "(cached) " >&6
16224 else
16225 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
16227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
16228 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
16229 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
16232 # Check to make sure the PIC flag actually works.
16234 if test -n "$lt_prog_compiler_pic_CXX"; then
16235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16236 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16237 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
16238 $as_echo_n "(cached) " >&6
16239 else
16240 lt_cv_prog_compiler_pic_works_CXX=no
16241 ac_outfile=conftest.$ac_objext
16242 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16243 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
16244 # Insert the option either (1) after the last *FLAGS variable, or
16245 # (2) before a word containing "conftest.", or (3) at the end.
16246 # Note that $ac_compile itself does not contain backslashes and begins
16247 # with a dollar sign (not a hyphen), so the echo should work correctly.
16248 # The option is referenced via a variable to avoid confusing sed.
16249 lt_compile=`echo "$ac_compile" | $SED \
16250 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16251 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16252 -e 's:$: $lt_compiler_flag:'`
16253 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16254 (eval "$lt_compile" 2>conftest.err)
16255 ac_status=$?
16256 cat conftest.err >&5
16257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16258 if (exit $ac_status) && test -s "$ac_outfile"; then
16259 # The compiler can only warn and ignore the option if not recognized
16260 # So say no if there are warnings other than the usual output.
16261 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16262 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16263 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16264 lt_cv_prog_compiler_pic_works_CXX=yes
16267 $RM conftest*
16270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16271 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16273 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
16274 case $lt_prog_compiler_pic_CXX in
16275 "" | " "*) ;;
16276 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16277 esac
16278 else
16279 lt_prog_compiler_pic_CXX=
16280 lt_prog_compiler_can_build_shared_CXX=no
16290 # Check to make sure the static flag actually works.
16292 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16294 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16295 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
16296 $as_echo_n "(cached) " >&6
16297 else
16298 lt_cv_prog_compiler_static_works_CXX=no
16299 save_LDFLAGS=$LDFLAGS
16300 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16301 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16302 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16303 # The linker can only warn and ignore the option if not recognized
16304 # So say no if there are warnings
16305 if test -s conftest.err; then
16306 # Append any errors to the config.log.
16307 cat conftest.err 1>&5
16308 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16309 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16310 if diff conftest.exp conftest.er2 >/dev/null; then
16311 lt_cv_prog_compiler_static_works_CXX=yes
16313 else
16314 lt_cv_prog_compiler_static_works_CXX=yes
16317 $RM -r conftest*
16318 LDFLAGS=$save_LDFLAGS
16321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16322 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16324 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
16326 else
16327 lt_prog_compiler_static_CXX=
16333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16334 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16335 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16336 $as_echo_n "(cached) " >&6
16337 else
16338 lt_cv_prog_compiler_c_o_CXX=no
16339 $RM -r conftest 2>/dev/null
16340 mkdir conftest
16341 cd conftest
16342 mkdir out
16343 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16345 lt_compiler_flag="-o out/conftest2.$ac_objext"
16346 # Insert the option either (1) after the last *FLAGS variable, or
16347 # (2) before a word containing "conftest.", or (3) at the end.
16348 # Note that $ac_compile itself does not contain backslashes and begins
16349 # with a dollar sign (not a hyphen), so the echo should work correctly.
16350 lt_compile=`echo "$ac_compile" | $SED \
16351 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16352 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16353 -e 's:$: $lt_compiler_flag:'`
16354 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16355 (eval "$lt_compile" 2>out/conftest.err)
16356 ac_status=$?
16357 cat out/conftest.err >&5
16358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16360 then
16361 # The compiler can only warn and ignore the option if not recognized
16362 # So say no if there are warnings
16363 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16364 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16365 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16366 lt_cv_prog_compiler_c_o_CXX=yes
16369 chmod u+w . 2>&5
16370 $RM conftest*
16371 # SGI C++ compiler will create directory out/ii_files/ for
16372 # template instantiation
16373 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16374 $RM out/* && rmdir out
16375 cd ..
16376 $RM -r conftest
16377 $RM conftest*
16380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16381 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16386 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16387 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16388 $as_echo_n "(cached) " >&6
16389 else
16390 lt_cv_prog_compiler_c_o_CXX=no
16391 $RM -r conftest 2>/dev/null
16392 mkdir conftest
16393 cd conftest
16394 mkdir out
16395 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16397 lt_compiler_flag="-o out/conftest2.$ac_objext"
16398 # Insert the option either (1) after the last *FLAGS variable, or
16399 # (2) before a word containing "conftest.", or (3) at the end.
16400 # Note that $ac_compile itself does not contain backslashes and begins
16401 # with a dollar sign (not a hyphen), so the echo should work correctly.
16402 lt_compile=`echo "$ac_compile" | $SED \
16403 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16404 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16405 -e 's:$: $lt_compiler_flag:'`
16406 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16407 (eval "$lt_compile" 2>out/conftest.err)
16408 ac_status=$?
16409 cat out/conftest.err >&5
16410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16412 then
16413 # The compiler can only warn and ignore the option if not recognized
16414 # So say no if there are warnings
16415 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16416 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16417 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16418 lt_cv_prog_compiler_c_o_CXX=yes
16421 chmod u+w . 2>&5
16422 $RM conftest*
16423 # SGI C++ compiler will create directory out/ii_files/ for
16424 # template instantiation
16425 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16426 $RM out/* && rmdir out
16427 cd ..
16428 $RM -r conftest
16429 $RM conftest*
16432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16433 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16438 hard_links=nottested
16439 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
16440 # do not overwrite the value of need_locks provided by the user
16441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16442 $as_echo_n "checking if we can lock with hard links... " >&6; }
16443 hard_links=yes
16444 $RM conftest*
16445 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16446 touch conftest.a
16447 ln conftest.a conftest.b 2>&5 || hard_links=no
16448 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16450 $as_echo "$hard_links" >&6; }
16451 if test no = "$hard_links"; then
16452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16453 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16454 need_locks=warn
16456 else
16457 need_locks=no
16462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16463 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16465 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16466 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16467 case $host_os in
16468 aix[4-9]*)
16469 # If we're using GNU nm, then we don't want the "-C" option.
16470 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
16471 # Without the "-l" option, or with the "-B" option, AIX nm treats
16472 # weak defined symbols like other global defined symbols, whereas
16473 # GNU nm marks them as "W".
16474 # While the 'weak' keyword is ignored in the Export File, we need
16475 # it in the Import File for the 'aix-soname' feature, so we have
16476 # to replace the "-B" option with "-P" for AIX nm.
16477 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16478 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
16479 else
16480 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
16483 pw32*)
16484 export_symbols_cmds_CXX=$ltdll_cmds
16486 cygwin* | mingw* | cegcc*)
16487 case $cc_basename in
16488 cl* | icl*)
16489 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16492 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'
16493 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16495 esac
16498 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16500 esac
16502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16503 $as_echo "$ld_shlibs_CXX" >&6; }
16504 test no = "$ld_shlibs_CXX" && can_build_shared=no
16506 with_gnu_ld_CXX=$with_gnu_ld
16514 # Do we need to explicitly link libc?
16516 case "x$archive_cmds_need_lc_CXX" in
16517 x|xyes)
16518 # Assume -lc should be added
16519 archive_cmds_need_lc_CXX=yes
16521 if test yes,yes = "$GCC,$enable_shared"; then
16522 case $archive_cmds_CXX in
16523 *'~'*)
16524 # FIXME: we may have to deal with multi-command sequences.
16526 '$CC '*)
16527 # Test whether the compiler implicitly links with -lc since on some
16528 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16529 # to ld, don't add -lc before -lgcc.
16530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16531 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16532 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
16533 $as_echo_n "(cached) " >&6
16534 else
16535 $RM conftest*
16536 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16538 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16539 (eval $ac_compile) 2>&5
16540 ac_status=$?
16541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16542 test $ac_status = 0; } 2>conftest.err; then
16543 soname=conftest
16544 lib=conftest
16545 libobjs=conftest.$ac_objext
16546 deplibs=
16547 wl=$lt_prog_compiler_wl_CXX
16548 pic_flag=$lt_prog_compiler_pic_CXX
16549 compiler_flags=-v
16550 linker_flags=-v
16551 verstring=
16552 output_objdir=.
16553 libname=conftest
16554 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16555 allow_undefined_flag_CXX=
16556 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16557 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16558 ac_status=$?
16559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16560 test $ac_status = 0; }
16561 then
16562 lt_cv_archive_cmds_need_lc_CXX=no
16563 else
16564 lt_cv_archive_cmds_need_lc_CXX=yes
16566 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16567 else
16568 cat conftest.err 1>&5
16570 $RM conftest*
16573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16574 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16575 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16577 esac
16580 esac
16643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16644 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16646 library_names_spec=
16647 libname_spec='lib$name'
16648 soname_spec=
16649 shrext_cmds=.so
16650 postinstall_cmds=
16651 postuninstall_cmds=
16652 finish_cmds=
16653 finish_eval=
16654 shlibpath_var=
16655 shlibpath_overrides_runpath=unknown
16656 version_type=none
16657 dynamic_linker="$host_os ld.so"
16658 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16659 need_lib_prefix=unknown
16660 hardcode_into_libs=no
16662 # when you set need_version to no, make sure it does not cause -set_version
16663 # flags to be left without arguments
16664 need_version=unknown
16668 case $host_os in
16669 aix3*)
16670 version_type=linux # correct to gnu/linux during the next big refactor
16671 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16672 shlibpath_var=LIBPATH
16674 # AIX 3 has no versioning support, so we append a major version to the name.
16675 soname_spec='$libname$release$shared_ext$major'
16678 aix[4-9]*)
16679 version_type=linux # correct to gnu/linux during the next big refactor
16680 need_lib_prefix=no
16681 need_version=no
16682 hardcode_into_libs=yes
16683 if test ia64 = "$host_cpu"; then
16684 # AIX 5 supports IA64
16685 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16686 shlibpath_var=LD_LIBRARY_PATH
16687 else
16688 # With GCC up to 2.95.x, collect2 would create an import file
16689 # for dependence libraries. The import file would start with
16690 # the line '#! .'. This would cause the generated library to
16691 # depend on '.', always an invalid library. This was fixed in
16692 # development snapshots of GCC prior to 3.0.
16693 case $host_os in
16694 aix4 | aix4.[01] | aix4.[01].*)
16695 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16696 echo ' yes '
16697 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16699 else
16700 can_build_shared=no
16703 esac
16704 # Using Import Files as archive members, it is possible to support
16705 # filename-based versioning of shared library archives on AIX. While
16706 # this would work for both with and without runtime linking, it will
16707 # prevent static linking of such archives. So we do filename-based
16708 # shared library versioning with .so extension only, which is used
16709 # when both runtime linking and shared linking is enabled.
16710 # Unfortunately, runtime linking may impact performance, so we do
16711 # not want this to be the default eventually. Also, we use the
16712 # versioned .so libs for executables only if there is the -brtl
16713 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16714 # To allow for filename-based versioning support, we need to create
16715 # libNAME.so.V as an archive file, containing:
16716 # *) an Import File, referring to the versioned filename of the
16717 # archive as well as the shared archive member, telling the
16718 # bitwidth (32 or 64) of that shared object, and providing the
16719 # list of exported symbols of that shared object, eventually
16720 # decorated with the 'weak' keyword
16721 # *) the shared object with the F_LOADONLY flag set, to really avoid
16722 # it being seen by the linker.
16723 # At run time we better use the real file rather than another symlink,
16724 # but for link time we create the symlink libNAME.so -> libNAME.so.V
16726 case $with_aix_soname,$aix_use_runtimelinking in
16727 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16728 # soname into executable. Probably we can add versioning support to
16729 # collect2, so additional links can be useful in future.
16730 aix,yes) # traditional libtool
16731 dynamic_linker='AIX unversionable lib.so'
16732 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16733 # instead of lib<name>.a to let people know that these are not
16734 # typical AIX shared libraries.
16735 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16737 aix,no) # traditional AIX only
16738 dynamic_linker='AIX lib.a(lib.so.V)'
16739 # We preserve .a as extension for shared libraries through AIX4.2
16740 # and later when we are not doing run time linking.
16741 library_names_spec='$libname$release.a $libname.a'
16742 soname_spec='$libname$release$shared_ext$major'
16744 svr4,*) # full svr4 only
16745 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
16746 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16747 # We do not specify a path in Import Files, so LIBPATH fires.
16748 shlibpath_overrides_runpath=yes
16750 *,yes) # both, prefer svr4
16751 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
16752 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16753 # unpreferred sharedlib libNAME.a needs extra handling
16754 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
16755 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
16756 # We do not specify a path in Import Files, so LIBPATH fires.
16757 shlibpath_overrides_runpath=yes
16759 *,no) # both, prefer aix
16760 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
16761 library_names_spec='$libname$release.a $libname.a'
16762 soname_spec='$libname$release$shared_ext$major'
16763 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
16764 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
16765 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
16767 esac
16768 shlibpath_var=LIBPATH
16772 amigaos*)
16773 case $host_cpu in
16774 powerpc)
16775 # Since July 2007 AmigaOS4 officially supports .so libraries.
16776 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16777 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16779 m68k)
16780 library_names_spec='$libname.ixlibrary $libname.a'
16781 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16782 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
16784 esac
16787 beos*)
16788 library_names_spec='$libname$shared_ext'
16789 dynamic_linker="$host_os ld.so"
16790 shlibpath_var=LIBRARY_PATH
16793 bsdi[45]*)
16794 version_type=linux # correct to gnu/linux during the next big refactor
16795 need_version=no
16796 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16797 soname_spec='$libname$release$shared_ext$major'
16798 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16799 shlibpath_var=LD_LIBRARY_PATH
16800 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16801 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16802 # the default ld.so.conf also contains /usr/contrib/lib and
16803 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16804 # libtool to hard-code these into programs
16807 cygwin* | mingw* | pw32* | cegcc*)
16808 version_type=windows
16809 shrext_cmds=.dll
16810 need_version=no
16811 need_lib_prefix=no
16813 case $GCC,$cc_basename in
16814 yes,*)
16815 # gcc
16816 library_names_spec='$libname.dll.a'
16817 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16818 postinstall_cmds='base_file=`basename \$file`~
16819 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16820 dldir=$destdir/`dirname \$dlpath`~
16821 test -d \$dldir || mkdir -p \$dldir~
16822 $install_prog $dir/$dlname \$dldir/$dlname~
16823 chmod a+x \$dldir/$dlname~
16824 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16825 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16827 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16828 dlpath=$dir/\$dldll~
16829 $RM \$dlpath'
16830 shlibpath_overrides_runpath=yes
16832 case $host_os in
16833 cygwin*)
16834 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16835 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16838 mingw* | cegcc*)
16839 # MinGW DLLs use traditional 'lib' prefix
16840 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16842 pw32*)
16843 # pw32 DLLs use 'pw' prefix rather than 'lib'
16844 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16846 esac
16847 dynamic_linker='Win32 ld.exe'
16850 *,cl* | *,icl*)
16851 # Native MSVC or ICC
16852 libname_spec='$name'
16853 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16854 library_names_spec='$libname.dll.lib'
16856 case $build_os in
16857 mingw*)
16858 sys_lib_search_path_spec=
16859 lt_save_ifs=$IFS
16860 IFS=';'
16861 for lt_path in $LIB
16863 IFS=$lt_save_ifs
16864 # Let DOS variable expansion print the short 8.3 style file name.
16865 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16866 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16867 done
16868 IFS=$lt_save_ifs
16869 # Convert to MSYS style.
16870 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16872 cygwin*)
16873 # Convert to unix form, then to dos form, then back to unix form
16874 # but this time dos style (no spaces!) so that the unix form looks
16875 # like /cygdrive/c/PROGRA~1:/cygdr...
16876 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16877 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16878 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16881 sys_lib_search_path_spec=$LIB
16882 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16883 # It is most probably a Windows format PATH.
16884 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16885 else
16886 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16888 # FIXME: find the short name or the path components, as spaces are
16889 # common. (e.g. "Program Files" -> "PROGRA~1")
16891 esac
16893 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16894 postinstall_cmds='base_file=`basename \$file`~
16895 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16896 dldir=$destdir/`dirname \$dlpath`~
16897 test -d \$dldir || mkdir -p \$dldir~
16898 $install_prog $dir/$dlname \$dldir/$dlname'
16899 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16900 dlpath=$dir/\$dldll~
16901 $RM \$dlpath'
16902 shlibpath_overrides_runpath=yes
16903 dynamic_linker='Win32 link.exe'
16907 # Assume MSVC and ICC wrapper
16908 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
16909 dynamic_linker='Win32 ld.exe'
16911 esac
16912 # FIXME: first we should search . and the directory the executable is in
16913 shlibpath_var=PATH
16916 darwin* | rhapsody*)
16917 dynamic_linker="$host_os dyld"
16918 version_type=darwin
16919 need_lib_prefix=no
16920 need_version=no
16921 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
16922 soname_spec='$libname$release$major$shared_ext'
16923 shlibpath_overrides_runpath=yes
16924 shlibpath_var=DYLD_LIBRARY_PATH
16925 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16927 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16930 dgux*)
16931 version_type=linux # correct to gnu/linux during the next big refactor
16932 need_lib_prefix=no
16933 need_version=no
16934 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16935 soname_spec='$libname$release$shared_ext$major'
16936 shlibpath_var=LD_LIBRARY_PATH
16939 freebsd* | dragonfly*)
16940 # DragonFly does not have aout. When/if they implement a new
16941 # versioning mechanism, adjust this.
16942 if test -x /usr/bin/objformat; then
16943 objformat=`/usr/bin/objformat`
16944 else
16945 case $host_os in
16946 freebsd[23].*) objformat=aout ;;
16947 *) objformat=elf ;;
16948 esac
16950 version_type=freebsd-$objformat
16951 case $version_type in
16952 freebsd-elf*)
16953 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16954 soname_spec='$libname$release$shared_ext$major'
16955 need_version=no
16956 need_lib_prefix=no
16958 freebsd-*)
16959 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16960 need_version=yes
16962 esac
16963 shlibpath_var=LD_LIBRARY_PATH
16964 case $host_os in
16965 freebsd2.*)
16966 shlibpath_overrides_runpath=yes
16968 freebsd3.[01]* | freebsdelf3.[01]*)
16969 shlibpath_overrides_runpath=yes
16970 hardcode_into_libs=yes
16972 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16973 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16974 shlibpath_overrides_runpath=no
16975 hardcode_into_libs=yes
16977 *) # from 4.6 on, and DragonFly
16978 shlibpath_overrides_runpath=yes
16979 hardcode_into_libs=yes
16981 esac
16984 haiku*)
16985 version_type=linux # correct to gnu/linux during the next big refactor
16986 need_lib_prefix=no
16987 need_version=no
16988 dynamic_linker="$host_os runtime_loader"
16989 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16990 soname_spec='$libname$release$shared_ext$major'
16991 shlibpath_var=LIBRARY_PATH
16992 shlibpath_overrides_runpath=no
16993 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16994 hardcode_into_libs=yes
16997 hpux9* | hpux10* | hpux11*)
16998 # Give a soname corresponding to the major version so that dld.sl refuses to
16999 # link against other versions.
17000 version_type=sunos
17001 need_lib_prefix=no
17002 need_version=no
17003 case $host_cpu in
17004 ia64*)
17005 shrext_cmds='.so'
17006 hardcode_into_libs=yes
17007 dynamic_linker="$host_os dld.so"
17008 shlibpath_var=LD_LIBRARY_PATH
17009 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17010 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17011 soname_spec='$libname$release$shared_ext$major'
17012 if test 32 = "$HPUX_IA64_MODE"; then
17013 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17014 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17015 else
17016 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17017 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17020 hppa*64*)
17021 shrext_cmds='.sl'
17022 hardcode_into_libs=yes
17023 dynamic_linker="$host_os dld.sl"
17024 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17025 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17026 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17027 soname_spec='$libname$release$shared_ext$major'
17028 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17029 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17032 shrext_cmds='.sl'
17033 dynamic_linker="$host_os dld.sl"
17034 shlibpath_var=SHLIB_PATH
17035 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17036 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17037 soname_spec='$libname$release$shared_ext$major'
17039 esac
17040 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17041 postinstall_cmds='chmod 555 $lib'
17042 # or fails outright, so override atomically:
17043 install_override_mode=555
17046 interix[3-9]*)
17047 version_type=linux # correct to gnu/linux during the next big refactor
17048 need_lib_prefix=no
17049 need_version=no
17050 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17051 soname_spec='$libname$release$shared_ext$major'
17052 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17053 shlibpath_var=LD_LIBRARY_PATH
17054 shlibpath_overrides_runpath=no
17055 hardcode_into_libs=yes
17058 irix5* | irix6* | nonstopux*)
17059 case $host_os in
17060 nonstopux*) version_type=nonstopux ;;
17062 if test yes = "$lt_cv_prog_gnu_ld"; then
17063 version_type=linux # correct to gnu/linux during the next big refactor
17064 else
17065 version_type=irix
17066 fi ;;
17067 esac
17068 need_lib_prefix=no
17069 need_version=no
17070 soname_spec='$libname$release$shared_ext$major'
17071 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17072 case $host_os in
17073 irix5* | nonstopux*)
17074 libsuff= shlibsuff=
17077 case $LD in # libtool.m4 will add one of these switches to LD
17078 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17079 libsuff= shlibsuff= libmagic=32-bit;;
17080 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17081 libsuff=32 shlibsuff=N32 libmagic=N32;;
17082 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17083 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17084 *) libsuff= shlibsuff= libmagic=never-match;;
17085 esac
17087 esac
17088 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17089 shlibpath_overrides_runpath=no
17090 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17091 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17092 hardcode_into_libs=yes
17095 # No shared lib support for Linux oldld, aout, or coff.
17096 linux*oldld* | linux*aout* | linux*coff*)
17097 dynamic_linker=no
17100 linux*android*)
17101 version_type=none # Android doesn't support versioned libraries.
17102 need_lib_prefix=no
17103 need_version=no
17104 library_names_spec='$libname$release$shared_ext'
17105 soname_spec='$libname$release$shared_ext'
17106 finish_cmds=
17107 shlibpath_var=LD_LIBRARY_PATH
17108 shlibpath_overrides_runpath=yes
17110 # This implies no fast_install, which is unacceptable.
17111 # Some rework will be needed to allow for fast_install
17112 # before this can be enabled.
17113 hardcode_into_libs=yes
17115 dynamic_linker='Android linker'
17116 # Don't embed -rpath directories since the linker doesn't support them.
17117 hardcode_libdir_flag_spec_CXX='-L$libdir'
17120 # This must be glibc/ELF.
17121 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17122 version_type=linux # correct to gnu/linux during the next big refactor
17123 need_lib_prefix=no
17124 need_version=no
17125 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17126 soname_spec='$libname$release$shared_ext$major'
17127 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17128 shlibpath_var=LD_LIBRARY_PATH
17129 shlibpath_overrides_runpath=no
17131 # Some binutils ld are patched to set DT_RUNPATH
17132 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17133 $as_echo_n "(cached) " >&6
17134 else
17135 lt_cv_shlibpath_overrides_runpath=no
17136 save_LDFLAGS=$LDFLAGS
17137 save_libdir=$libdir
17138 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17139 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17141 /* end confdefs.h. */
17144 main ()
17148 return 0;
17150 _ACEOF
17151 if ac_fn_cxx_try_link "$LINENO"; then :
17152 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17153 lt_cv_shlibpath_overrides_runpath=yes
17156 rm -f core conftest.err conftest.$ac_objext \
17157 conftest$ac_exeext conftest.$ac_ext
17158 LDFLAGS=$save_LDFLAGS
17159 libdir=$save_libdir
17163 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17165 # This implies no fast_install, which is unacceptable.
17166 # Some rework will be needed to allow for fast_install
17167 # before this can be enabled.
17168 hardcode_into_libs=yes
17170 # Ideally, we could use ldconfig to report *all* directores which are
17171 # searched for libraries, however this is still not possible. Aside from not
17172 # being certain /sbin/ldconfig is available, command
17173 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17174 # even though it is searched at run-time. Try to do the best guess by
17175 # appending ld.so.conf contents (and includes) to the search path.
17176 if test -f /etc/ld.so.conf; then
17177 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' ' '`
17178 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17181 # We used to test for /lib/ld.so.1 and disable shared libraries on
17182 # powerpc, because MkLinux only supported shared libraries with the
17183 # GNU dynamic linker. Since this was broken with cross compilers,
17184 # most powerpc-linux boxes support dynamic linking these days and
17185 # people can always --disable-shared, the test was removed, and we
17186 # assume the GNU/Linux dynamic linker is in use.
17187 dynamic_linker='GNU/Linux ld.so'
17190 netbsd*)
17191 version_type=sunos
17192 need_lib_prefix=no
17193 need_version=no
17194 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17195 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17196 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17197 dynamic_linker='NetBSD (a.out) ld.so'
17198 else
17199 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17200 soname_spec='$libname$release$shared_ext$major'
17201 dynamic_linker='NetBSD ld.elf_so'
17203 shlibpath_var=LD_LIBRARY_PATH
17204 shlibpath_overrides_runpath=yes
17205 hardcode_into_libs=yes
17208 newsos6)
17209 version_type=linux # correct to gnu/linux during the next big refactor
17210 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17211 shlibpath_var=LD_LIBRARY_PATH
17212 shlibpath_overrides_runpath=yes
17215 *nto* | *qnx*)
17216 version_type=qnx
17217 need_lib_prefix=no
17218 need_version=no
17219 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17220 soname_spec='$libname$release$shared_ext$major'
17221 shlibpath_var=LD_LIBRARY_PATH
17222 shlibpath_overrides_runpath=no
17223 hardcode_into_libs=yes
17224 dynamic_linker='ldqnx.so'
17227 openbsd* | bitrig*)
17228 version_type=sunos
17229 sys_lib_dlsearch_path_spec=/usr/lib
17230 need_lib_prefix=no
17231 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17232 need_version=no
17233 else
17234 need_version=yes
17236 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17237 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17238 shlibpath_var=LD_LIBRARY_PATH
17239 shlibpath_overrides_runpath=yes
17242 os2*)
17243 libname_spec='$name'
17244 version_type=windows
17245 shrext_cmds=.dll
17246 need_version=no
17247 need_lib_prefix=no
17248 # OS/2 can only load a DLL with a base name of 8 characters or less.
17249 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17250 v=$($ECHO $release$versuffix | tr -d .-);
17251 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17252 $ECHO $n$v`$shared_ext'
17253 library_names_spec='${libname}_dll.$libext'
17254 dynamic_linker='OS/2 ld.exe'
17255 shlibpath_var=BEGINLIBPATH
17256 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17257 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17258 postinstall_cmds='base_file=`basename \$file`~
17259 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17260 dldir=$destdir/`dirname \$dlpath`~
17261 test -d \$dldir || mkdir -p \$dldir~
17262 $install_prog $dir/$dlname \$dldir/$dlname~
17263 chmod a+x \$dldir/$dlname~
17264 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17265 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17267 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17268 dlpath=$dir/\$dldll~
17269 $RM \$dlpath'
17272 osf3* | osf4* | osf5*)
17273 version_type=osf
17274 need_lib_prefix=no
17275 need_version=no
17276 soname_spec='$libname$release$shared_ext$major'
17277 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17278 shlibpath_var=LD_LIBRARY_PATH
17279 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17280 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17283 rdos*)
17284 dynamic_linker=no
17287 solaris*)
17288 version_type=linux # correct to gnu/linux during the next big refactor
17289 need_lib_prefix=no
17290 need_version=no
17291 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17292 soname_spec='$libname$release$shared_ext$major'
17293 shlibpath_var=LD_LIBRARY_PATH
17294 shlibpath_overrides_runpath=yes
17295 hardcode_into_libs=yes
17296 # ldd complains unless libraries are executable
17297 postinstall_cmds='chmod +x $lib'
17300 sunos4*)
17301 version_type=sunos
17302 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17303 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17304 shlibpath_var=LD_LIBRARY_PATH
17305 shlibpath_overrides_runpath=yes
17306 if test yes = "$with_gnu_ld"; then
17307 need_lib_prefix=no
17309 need_version=yes
17312 sysv4 | sysv4.3*)
17313 version_type=linux # correct to gnu/linux during the next big refactor
17314 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17315 soname_spec='$libname$release$shared_ext$major'
17316 shlibpath_var=LD_LIBRARY_PATH
17317 case $host_vendor in
17318 sni)
17319 shlibpath_overrides_runpath=no
17320 need_lib_prefix=no
17321 runpath_var=LD_RUN_PATH
17323 siemens)
17324 need_lib_prefix=no
17326 motorola)
17327 need_lib_prefix=no
17328 need_version=no
17329 shlibpath_overrides_runpath=no
17330 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17332 esac
17335 sysv4*MP*)
17336 if test -d /usr/nec; then
17337 version_type=linux # correct to gnu/linux during the next big refactor
17338 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17339 soname_spec='$libname$shared_ext.$major'
17340 shlibpath_var=LD_LIBRARY_PATH
17344 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17345 version_type=sco
17346 need_lib_prefix=no
17347 need_version=no
17348 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17349 soname_spec='$libname$release$shared_ext$major'
17350 shlibpath_var=LD_LIBRARY_PATH
17351 shlibpath_overrides_runpath=yes
17352 hardcode_into_libs=yes
17353 if test yes = "$with_gnu_ld"; then
17354 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17355 else
17356 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17357 case $host_os in
17358 sco3.2v5*)
17359 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17361 esac
17363 sys_lib_dlsearch_path_spec='/usr/lib'
17366 tpf*)
17367 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17368 version_type=linux # correct to gnu/linux during the next big refactor
17369 need_lib_prefix=no
17370 need_version=no
17371 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17372 shlibpath_var=LD_LIBRARY_PATH
17373 shlibpath_overrides_runpath=no
17374 hardcode_into_libs=yes
17377 uts4*)
17378 version_type=linux # correct to gnu/linux during the next big refactor
17379 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17380 soname_spec='$libname$release$shared_ext$major'
17381 shlibpath_var=LD_LIBRARY_PATH
17385 dynamic_linker=no
17387 esac
17388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17389 $as_echo "$dynamic_linker" >&6; }
17390 test no = "$dynamic_linker" && can_build_shared=no
17392 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17393 if test yes = "$GCC"; then
17394 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17397 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17398 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17401 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17402 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17405 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17406 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17408 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17409 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17411 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17412 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17454 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17455 hardcode_action_CXX=
17456 if test -n "$hardcode_libdir_flag_spec_CXX" ||
17457 test -n "$runpath_var_CXX" ||
17458 test yes = "$hardcode_automatic_CXX"; then
17460 # We can hardcode non-existent directories.
17461 if test no != "$hardcode_direct_CXX" &&
17462 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17463 # have to relink, otherwise we might link with an installed library
17464 # when we should be linking with a yet-to-be-installed one
17465 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
17466 test no != "$hardcode_minus_L_CXX"; then
17467 # Linking always hardcodes the temporary library directory.
17468 hardcode_action_CXX=relink
17469 else
17470 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17471 hardcode_action_CXX=immediate
17473 else
17474 # We cannot hardcode anything, or else we can only hardcode existing
17475 # directories.
17476 hardcode_action_CXX=unsupported
17478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17479 $as_echo "$hardcode_action_CXX" >&6; }
17481 if test relink = "$hardcode_action_CXX" ||
17482 test yes = "$inherit_rpath_CXX"; then
17483 # Fast installation is not supported
17484 enable_fast_install=no
17485 elif test yes = "$shlibpath_overrides_runpath" ||
17486 test no = "$enable_shared"; then
17487 # Fast installation is not necessary
17488 enable_fast_install=needless
17497 fi # test -n "$compiler"
17499 CC=$lt_save_CC
17500 CFLAGS=$lt_save_CFLAGS
17501 LDCXX=$LD
17502 LD=$lt_save_LD
17503 GCC=$lt_save_GCC
17504 with_gnu_ld=$lt_save_with_gnu_ld
17505 lt_cv_path_LDCXX=$lt_cv_path_LD
17506 lt_cv_path_LD=$lt_save_path_LD
17507 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17508 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17509 fi # test yes != "$_lt_caught_CXX_error"
17511 ac_ext=c
17512 ac_cpp='$CPP $CPPFLAGS'
17513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17531 ac_config_commands="$ac_config_commands libtool"
17536 # Only expand once:
17539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
17540 $as_echo_n "checking whether ln -s works... " >&6; }
17541 LN_S=$as_ln_s
17542 if test "$LN_S" = "ln -s"; then
17543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17544 $as_echo "yes" >&6; }
17545 else
17546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
17547 $as_echo "no, using $LN_S" >&6; }
17551 # Check for GCC visibility feature
17555 VISIBILITY_CFLAGS=
17556 VISIBILITY_CXXFLAGS=
17557 HAVE_VISIBILITY=0
17558 if test -n "$GCC"; then
17559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
17560 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
17561 if ${pcre_cv_cc_vis_werror+:} false; then :
17562 $as_echo_n "(cached) " >&6
17563 else
17565 pcre_save_CFLAGS="$CFLAGS"
17566 CFLAGS="$CFLAGS -Werror"
17567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17568 /* end confdefs.h. */
17571 main ()
17575 return 0;
17577 _ACEOF
17578 if ac_fn_c_try_compile "$LINENO"; then :
17579 pcre_cv_cc_vis_werror=yes
17580 else
17581 pcre_cv_cc_vis_werror=no
17583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17584 CFLAGS="$pcre_save_CFLAGS"
17587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pcre_cv_cc_vis_werror" >&5
17588 $as_echo "$pcre_cv_cc_vis_werror" >&6; }
17589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
17590 $as_echo_n "checking for simple visibility declarations... " >&6; }
17591 if ${pcre_cv_cc_visibility+:} false; then :
17592 $as_echo_n "(cached) " >&6
17593 else
17595 pcre_save_CFLAGS="$CFLAGS"
17596 CFLAGS="$CFLAGS -fvisibility=hidden"
17597 if test $pcre_cv_cc_vis_werror = yes; then
17598 CFLAGS="$CFLAGS -Werror"
17600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17601 /* end confdefs.h. */
17602 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
17603 extern __attribute__((__visibility__("default"))) int exportedvar;
17604 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
17605 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
17606 void dummyfunc (void) {}
17609 main ()
17613 return 0;
17615 _ACEOF
17616 if ac_fn_c_try_compile "$LINENO"; then :
17617 pcre_cv_cc_visibility=yes
17618 else
17619 pcre_cv_cc_visibility=no
17621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17622 CFLAGS="$pcre_save_CFLAGS"
17625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pcre_cv_cc_visibility" >&5
17626 $as_echo "$pcre_cv_cc_visibility" >&6; }
17627 if test $pcre_cv_cc_visibility = yes; then
17628 VISIBILITY_CFLAGS="-fvisibility=hidden"
17629 VISIBILITY_CXXFLAGS="-fvisibility=hidden -fvisibility-inlines-hidden"
17630 HAVE_VISIBILITY=1
17632 $as_echo "#define PCRE_EXP_DECL extern __attribute__ ((visibility (\"default\")))" >>confdefs.h
17635 $as_echo "#define PCRE_EXP_DEFN __attribute__ ((visibility (\"default\")))" >>confdefs.h
17638 $as_echo "#define PCRE_EXP_DATA_DEFN __attribute__ ((visibility (\"default\")))" >>confdefs.h
17641 $as_echo "#define PCREPOSIX_EXP_DECL extern __attribute__ ((visibility (\"default\")))" >>confdefs.h
17644 $as_echo "#define PCREPOSIX_EXP_DEFN extern __attribute__ ((visibility (\"default\")))" >>confdefs.h
17647 $as_echo "#define PCRECPP_EXP_DECL extern __attribute__ ((visibility (\"default\")))" >>confdefs.h
17650 $as_echo "#define PCRECPP_EXP_DEFN __attribute__ ((visibility (\"default\")))" >>confdefs.h
17658 cat >>confdefs.h <<_ACEOF
17659 #define HAVE_VISIBILITY $HAVE_VISIBILITY
17660 _ACEOF
17664 # Versioning
17666 PCRE_MAJOR="8"
17667 PCRE_MINOR="44"
17668 PCRE_PRERELEASE=""
17669 PCRE_DATE="2020-02-12"
17671 if test "$PCRE_MINOR" = "08" -o "$PCRE_MINOR" = "09"
17672 then
17673 echo "***"
17674 echo "*** Minor version number $PCRE_MINOR must not be used. ***"
17675 echo "*** Use only 01 to 07 or 10 onwards, to avoid octal issues. ***"
17676 echo "***"
17677 exit 1
17685 # Set a more sensible default value for $(htmldir).
17686 if test "x$htmldir" = 'x${docdir}'
17687 then
17688 htmldir='${docdir}/html'
17691 # Handle --disable-pcre8 (enabled by default)
17692 # Check whether --enable-pcre8 was given.
17693 if test "${enable_pcre8+set}" = set; then :
17694 enableval=$enable_pcre8;
17695 else
17696 enable_pcre8=unset
17701 # Handle --enable-pcre16 (disabled by default)
17702 # Check whether --enable-pcre16 was given.
17703 if test "${enable_pcre16+set}" = set; then :
17704 enableval=$enable_pcre16;
17705 else
17706 enable_pcre16=unset
17711 # Handle --enable-pcre32 (disabled by default)
17712 # Check whether --enable-pcre32 was given.
17713 if test "${enable_pcre32+set}" = set; then :
17714 enableval=$enable_pcre32;
17715 else
17716 enable_pcre32=unset
17721 # Handle --disable-cpp. The substitution of enable_cpp is needed for use in
17722 # pcre-config.
17723 # Check whether --enable-cpp was given.
17724 if test "${enable_cpp+set}" = set; then :
17725 enableval=$enable_cpp;
17726 else
17727 enable_cpp=unset
17732 # Handle --enable-jit (disabled by default)
17733 # Check whether --enable-jit was given.
17734 if test "${enable_jit+set}" = set; then :
17735 enableval=$enable_jit;
17736 else
17737 enable_jit=no
17741 # This code enables JIT if the hardware supports it.
17743 if test "$enable_jit" = "auto"; then
17744 ac_ext=c
17745 ac_cpp='$CPP $CPPFLAGS'
17746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17750 SAVE_CPPFLAGS=$CPPFLAGS
17751 CPPFLAGS=-I$srcdir
17752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17753 /* end confdefs.h. */
17755 #define SLJIT_CONFIG_AUTO 1
17756 #include "sljit/sljitConfigInternal.h"
17757 #if (defined SLJIT_CONFIG_UNSUPPORTED && SLJIT_CONFIG_UNSUPPORTED)
17758 #error unsupported
17759 #endif
17760 _ACEOF
17761 if ac_fn_c_try_compile "$LINENO"; then :
17762 enable_jit=yes
17763 else
17764 enable_jit=no
17766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17767 CPPFLAGS=$SAVE_CPPFLAGS
17770 # Handle --disable-pcregrep-jit (enabled by default)
17771 # Check whether --enable-pcregrep-jit was given.
17772 if test "${enable_pcregrep_jit+set}" = set; then :
17773 enableval=$enable_pcregrep_jit;
17774 else
17775 enable_pcregrep_jit=yes
17779 # Handle --enable-rebuild-chartables
17780 # Check whether --enable-rebuild-chartables was given.
17781 if test "${enable_rebuild_chartables+set}" = set; then :
17782 enableval=$enable_rebuild_chartables;
17783 else
17784 enable_rebuild_chartables=no
17788 # Handle --enable-utf8 (disabled by default)
17789 # Check whether --enable-utf8 was given.
17790 if test "${enable_utf8+set}" = set; then :
17791 enableval=$enable_utf8;
17792 else
17793 enable_utf8=unset
17797 # Handle --enable-utf (disabled by default)
17798 # Check whether --enable-utf was given.
17799 if test "${enable_utf+set}" = set; then :
17800 enableval=$enable_utf;
17801 else
17802 enable_utf=unset
17806 # Handle --enable-unicode-properties
17807 # Check whether --enable-unicode-properties was given.
17808 if test "${enable_unicode_properties+set}" = set; then :
17809 enableval=$enable_unicode_properties;
17810 else
17811 enable_unicode_properties=no
17815 # Handle newline options
17816 ac_pcre_newline=lf
17817 # Check whether --enable-newline-is-cr was given.
17818 if test "${enable_newline_is_cr+set}" = set; then :
17819 enableval=$enable_newline_is_cr; ac_pcre_newline=cr
17822 # Check whether --enable-newline-is-lf was given.
17823 if test "${enable_newline_is_lf+set}" = set; then :
17824 enableval=$enable_newline_is_lf; ac_pcre_newline=lf
17827 # Check whether --enable-newline-is-crlf was given.
17828 if test "${enable_newline_is_crlf+set}" = set; then :
17829 enableval=$enable_newline_is_crlf; ac_pcre_newline=crlf
17832 # Check whether --enable-newline-is-anycrlf was given.
17833 if test "${enable_newline_is_anycrlf+set}" = set; then :
17834 enableval=$enable_newline_is_anycrlf; ac_pcre_newline=anycrlf
17837 # Check whether --enable-newline-is-any was given.
17838 if test "${enable_newline_is_any+set}" = set; then :
17839 enableval=$enable_newline_is_any; ac_pcre_newline=any
17842 enable_newline="$ac_pcre_newline"
17844 # Handle --enable-bsr-anycrlf
17845 # Check whether --enable-bsr-anycrlf was given.
17846 if test "${enable_bsr_anycrlf+set}" = set; then :
17847 enableval=$enable_bsr_anycrlf;
17848 else
17849 enable_bsr_anycrlf=no
17853 # Handle --enable-ebcdic
17854 # Check whether --enable-ebcdic was given.
17855 if test "${enable_ebcdic+set}" = set; then :
17856 enableval=$enable_ebcdic;
17857 else
17858 enable_ebcdic=no
17862 # Handle --enable-ebcdic-nl25
17863 # Check whether --enable-ebcdic-nl25 was given.
17864 if test "${enable_ebcdic_nl25+set}" = set; then :
17865 enableval=$enable_ebcdic_nl25;
17866 else
17867 enable_ebcdic_nl25=no
17871 # Handle --disable-stack-for-recursion
17872 # Check whether --enable-stack-for-recursion was given.
17873 if test "${enable_stack_for_recursion+set}" = set; then :
17874 enableval=$enable_stack_for_recursion;
17875 else
17876 enable_stack_for_recursion=yes
17880 # Handle --enable-pcregrep-libz
17881 # Check whether --enable-pcregrep-libz was given.
17882 if test "${enable_pcregrep_libz+set}" = set; then :
17883 enableval=$enable_pcregrep_libz;
17884 else
17885 enable_pcregrep_libz=no
17889 # Handle --enable-pcregrep-libbz2
17890 # Check whether --enable-pcregrep-libbz2 was given.
17891 if test "${enable_pcregrep_libbz2+set}" = set; then :
17892 enableval=$enable_pcregrep_libbz2;
17893 else
17894 enable_pcregrep_libbz2=no
17898 # Handle --with-pcregrep-bufsize=N
17900 # Check whether --with-pcregrep-bufsize was given.
17901 if test "${with_pcregrep_bufsize+set}" = set; then :
17902 withval=$with_pcregrep_bufsize;
17903 else
17904 with_pcregrep_bufsize=20480
17908 # Handle --enable-pcretest-libedit
17909 # Check whether --enable-pcretest-libedit was given.
17910 if test "${enable_pcretest_libedit+set}" = set; then :
17911 enableval=$enable_pcretest_libedit;
17912 else
17913 enable_pcretest_libedit=no
17917 # Handle --enable-pcretest-libreadline
17918 # Check whether --enable-pcretest-libreadline was given.
17919 if test "${enable_pcretest_libreadline+set}" = set; then :
17920 enableval=$enable_pcretest_libreadline;
17921 else
17922 enable_pcretest_libreadline=no
17926 # Handle --with-posix-malloc-threshold=NBYTES
17928 # Check whether --with-posix-malloc-threshold was given.
17929 if test "${with_posix_malloc_threshold+set}" = set; then :
17930 withval=$with_posix_malloc_threshold;
17931 else
17932 with_posix_malloc_threshold=10
17936 # Handle --with-link-size=N
17938 # Check whether --with-link-size was given.
17939 if test "${with_link_size+set}" = set; then :
17940 withval=$with_link_size;
17941 else
17942 with_link_size=2
17946 # Handle --with-parens-nest-limit=N
17948 # Check whether --with-parens-nest-limit was given.
17949 if test "${with_parens_nest_limit+set}" = set; then :
17950 withval=$with_parens_nest_limit;
17951 else
17952 with_parens_nest_limit=250
17956 # Handle --with-match-limit=N
17958 # Check whether --with-match-limit was given.
17959 if test "${with_match_limit+set}" = set; then :
17960 withval=$with_match_limit;
17961 else
17962 with_match_limit=10000000
17966 # Handle --with-match-limit_recursion=N
17968 # Note: In config.h, the default is to define MATCH_LIMIT_RECURSION
17969 # symbolically as MATCH_LIMIT, which in turn is defined to be some numeric
17970 # value (e.g. 10000000). MATCH_LIMIT_RECURSION can otherwise be set to some
17971 # different numeric value (or even the same numeric value as MATCH_LIMIT,
17972 # though no longer defined in terms of the latter).
17975 # Check whether --with-match-limit-recursion was given.
17976 if test "${with_match_limit_recursion+set}" = set; then :
17977 withval=$with_match_limit_recursion;
17978 else
17979 with_match_limit_recursion=MATCH_LIMIT
17983 # Handle --enable-valgrind
17984 # Check whether --enable-valgrind was given.
17985 if test "${enable_valgrind+set}" = set; then :
17986 enableval=$enable_valgrind;
17987 else
17988 enable_valgrind=no
17992 # Enable code coverage reports using gcov
17993 # Check whether --enable-coverage was given.
17994 if test "${enable_coverage+set}" = set; then :
17995 enableval=$enable_coverage;
17996 else
17997 enable_coverage=no
18001 # Copy enable_utf8 value to enable_utf for compatibility reasons
18002 if test "x$enable_utf8" != "xunset"
18003 then
18004 if test "x$enable_utf" != "xunset"
18005 then
18006 as_fn_error $? "--enable/disable-utf8 is kept only for compatibility reasons and its value is copied to --enable/disable-utf. Newer code must use --enable/disable-utf alone." "$LINENO" 5
18008 enable_utf=$enable_utf8
18011 # Set the default value for pcre8
18012 if test "x$enable_pcre8" = "xunset"
18013 then
18014 enable_pcre8=yes
18017 # Set the default value for pcre16
18018 if test "x$enable_pcre16" = "xunset"
18019 then
18020 enable_pcre16=no
18023 # Set the default value for pcre32
18024 if test "x$enable_pcre32" = "xunset"
18025 then
18026 enable_pcre32=no
18029 # Make sure enable_pcre8 or enable_pcre16 was set
18030 if test "x$enable_pcre8$enable_pcre16$enable_pcre32" = "xnonono"
18031 then
18032 as_fn_error $? "At least one of 8, 16 or 32 bit pcre library must be enabled" "$LINENO" 5
18035 # Make sure that if enable_unicode_properties was set, that UTF support is enabled.
18036 if test "x$enable_unicode_properties" = "xyes"
18037 then
18038 if test "x$enable_utf" = "xno"
18039 then
18040 as_fn_error $? "support for Unicode properties requires UTF-8/16/32 support" "$LINENO" 5
18042 enable_utf=yes
18045 # enable_utf is disabled by default.
18046 if test "x$enable_utf" = "xunset"
18047 then
18048 enable_utf=no
18051 # enable_cpp copies the value of enable_pcre8 by default
18052 if test "x$enable_cpp" = "xunset"
18053 then
18054 enable_cpp=$enable_pcre8
18057 # Make sure that if enable_cpp was set, that enable_pcre8 support is enabled
18058 if test "x$enable_cpp" = "xyes"
18059 then
18060 if test "x$enable_pcre8" = "xno"
18061 then
18062 as_fn_error $? "C++ library requires pcre library with 8 bit characters" "$LINENO" 5
18066 # Convert the newline identifier into the appropriate integer value. The first
18067 # three are ASCII values 0x0a, 0x0d, and 0x0d0a, but if EBCDIC is enabled, they
18068 # are changed below.
18070 case "$enable_newline" in
18071 lf) ac_pcre_newline_value=10 ;;
18072 cr) ac_pcre_newline_value=13 ;;
18073 crlf) ac_pcre_newline_value=3338 ;;
18074 anycrlf) ac_pcre_newline_value=-2 ;;
18075 any) ac_pcre_newline_value=-1 ;;
18077 as_fn_error $? "invalid argument \"$enable_newline\" to --enable-newline option" "$LINENO" 5
18079 esac
18081 # --enable-ebcdic-nl25 implies --enable-ebcdic
18082 if test "x$enable_ebcdic_nl25" = "xyes"; then
18083 enable_ebcdic=yes
18086 # Make sure that if enable_ebcdic is set, rebuild_chartables is also enabled,
18087 # and the newline value is adjusted appropriately (CR is still 13, but LF is
18088 # 21 or 37). Also check that UTF support is not requested, because PCRE cannot
18089 # handle EBCDIC and UTF in the same build. To do so it would need to use
18090 # different character constants depending on the mode.
18092 if test "x$enable_ebcdic" = "xyes"; then
18093 enable_rebuild_chartables=yes
18095 if test "x$enable_utf" = "xyes"; then
18096 as_fn_error $? "support for EBCDIC and UTF-8/16/32 cannot be enabled at the same time" "$LINENO" 5
18099 if test "x$enable_ebcdic_nl25" = "xno"; then
18100 case "$ac_pcre_newline_value" in
18101 10) ac_pcre_newline_value=21 ;;
18102 3338) ac_pcre_newline_value=3349 ;;
18103 esac
18104 else
18105 case "$ac_pcre_newline_value" in
18106 10) ac_pcre_newline_value=37 ;;
18107 3338) ac_pcre_newline_value=3365 ;;
18108 esac
18112 # Check argument to --with-link-size
18113 case "$with_link_size" in
18114 2|3|4) ;;
18116 as_fn_error $? "invalid argument \"$with_link_size\" to --with-link-size option" "$LINENO" 5
18118 esac
18122 # Checks for header files.
18123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
18124 $as_echo_n "checking for ANSI C header files... " >&6; }
18125 if ${ac_cv_header_stdc+:} false; then :
18126 $as_echo_n "(cached) " >&6
18127 else
18128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18129 /* end confdefs.h. */
18130 #include <stdlib.h>
18131 #include <stdarg.h>
18132 #include <string.h>
18133 #include <float.h>
18136 main ()
18140 return 0;
18142 _ACEOF
18143 if ac_fn_c_try_compile "$LINENO"; then :
18144 ac_cv_header_stdc=yes
18145 else
18146 ac_cv_header_stdc=no
18148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18150 if test $ac_cv_header_stdc = yes; then
18151 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18153 /* end confdefs.h. */
18154 #include <string.h>
18156 _ACEOF
18157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18158 $EGREP "memchr" >/dev/null 2>&1; then :
18160 else
18161 ac_cv_header_stdc=no
18163 rm -f conftest*
18167 if test $ac_cv_header_stdc = yes; then
18168 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18170 /* end confdefs.h. */
18171 #include <stdlib.h>
18173 _ACEOF
18174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18175 $EGREP "free" >/dev/null 2>&1; then :
18177 else
18178 ac_cv_header_stdc=no
18180 rm -f conftest*
18184 if test $ac_cv_header_stdc = yes; then
18185 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18186 if test "$cross_compiling" = yes; then :
18188 else
18189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18190 /* end confdefs.h. */
18191 #include <ctype.h>
18192 #include <stdlib.h>
18193 #if ((' ' & 0x0FF) == 0x020)
18194 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18195 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18196 #else
18197 # define ISLOWER(c) \
18198 (('a' <= (c) && (c) <= 'i') \
18199 || ('j' <= (c) && (c) <= 'r') \
18200 || ('s' <= (c) && (c) <= 'z'))
18201 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18202 #endif
18204 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18206 main ()
18208 int i;
18209 for (i = 0; i < 256; i++)
18210 if (XOR (islower (i), ISLOWER (i))
18211 || toupper (i) != TOUPPER (i))
18212 return 2;
18213 return 0;
18215 _ACEOF
18216 if ac_fn_c_try_run "$LINENO"; then :
18218 else
18219 ac_cv_header_stdc=no
18221 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18222 conftest.$ac_objext conftest.beam conftest.$ac_ext
18227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
18228 $as_echo "$ac_cv_header_stdc" >&6; }
18229 if test $ac_cv_header_stdc = yes; then
18231 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
18235 for ac_header in limits.h sys/types.h sys/stat.h dirent.h
18236 do :
18237 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18238 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18239 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18240 cat >>confdefs.h <<_ACEOF
18241 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18242 _ACEOF
18246 done
18248 for ac_header in windows.h
18249 do :
18250 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
18251 if test "x$ac_cv_header_windows_h" = xyes; then :
18252 cat >>confdefs.h <<_ACEOF
18253 #define HAVE_WINDOWS_H 1
18254 _ACEOF
18255 HAVE_WINDOWS_H=1
18258 done
18261 # The files below are C++ header files.
18262 pcre_have_type_traits="0"
18263 pcre_have_bits_type_traits="0"
18265 if test "x$enable_cpp" = "xyes" -a -z "$CXX"; then
18266 as_fn_error $? "Invalid C++ compiler or C++ compiler flags" "$LINENO" 5
18269 if test "x$enable_cpp" = "xyes" -a -n "$CXX"
18270 then
18271 ac_ext=cpp
18272 ac_cpp='$CXXCPP $CPPFLAGS'
18273 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18274 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18275 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18278 # Older versions of pcre defined pcrecpp::no_arg, but in new versions
18279 # it's called pcrecpp::RE::no_arg. For backwards ABI compatibility,
18280 # we want to make one an alias for the other. Different systems do
18281 # this in different ways. Some systems, for instance, can do it via
18282 # a linker flag: -alias (for os x 10.5) or -i (for os x <=10.4).
18283 OLD_LDFLAGS="$LDFLAGS"
18284 for flag in "-alias,__ZN7pcrecpp2RE6no_argE,__ZN7pcrecpp6no_argE" \
18285 "-i__ZN7pcrecpp6no_argE:__ZN7pcrecpp2RE6no_argE"; do
18286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alias support in the linker" >&5
18287 $as_echo_n "checking for alias support in the linker... " >&6; }
18288 LDFLAGS="$OLD_LDFLAGS -Wl,$flag"
18289 # We try to run the linker with this new ld flag. If the link fails,
18290 # we give up and remove the new flag from LDFLAGS.
18291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18292 /* end confdefs.h. */
18293 namespace pcrecpp {
18294 class RE { static int no_arg; };
18295 int RE::no_arg;
18298 main ()
18302 return 0;
18304 _ACEOF
18305 if ac_fn_cxx_try_link "$LINENO"; then :
18306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18307 $as_echo "yes" >&6; };
18308 EXTRA_LIBPCRECPP_LDFLAGS="$EXTRA_LIBPCRECPP_LDFLAGS -Wl,$flag";
18309 break;
18310 else
18311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18312 $as_echo "no" >&6; }
18314 rm -f core conftest.err conftest.$ac_objext \
18315 conftest$ac_exeext conftest.$ac_ext
18316 done
18317 LDFLAGS="$OLD_LDFLAGS"
18319 # We could be more clever here, given we're doing AC_SUBST with this
18320 # (eg set a var to be the name of the include file we want). But we're not
18321 # so it's easy to change back to 'regular' autoconf vars if we needed to.
18323 for ac_header in string
18324 do :
18325 ac_fn_cxx_check_header_mongrel "$LINENO" "string" "ac_cv_header_string" "$ac_includes_default"
18326 if test "x$ac_cv_header_string" = xyes; then :
18327 cat >>confdefs.h <<_ACEOF
18328 #define HAVE_STRING 1
18329 _ACEOF
18330 pcre_have_cpp_headers="1"
18331 else
18332 pcre_have_cpp_headers="0"
18335 done
18337 for ac_header in bits/type_traits.h
18338 do :
18339 ac_fn_cxx_check_header_mongrel "$LINENO" "bits/type_traits.h" "ac_cv_header_bits_type_traits_h" "$ac_includes_default"
18340 if test "x$ac_cv_header_bits_type_traits_h" = xyes; then :
18341 cat >>confdefs.h <<_ACEOF
18342 #define HAVE_BITS_TYPE_TRAITS_H 1
18343 _ACEOF
18344 pcre_have_bits_type_traits="1"
18345 else
18346 pcre_have_bits_type_traits="0"
18349 done
18351 for ac_header in type_traits.h
18352 do :
18353 ac_fn_cxx_check_header_mongrel "$LINENO" "type_traits.h" "ac_cv_header_type_traits_h" "$ac_includes_default"
18354 if test "x$ac_cv_header_type_traits_h" = xyes; then :
18355 cat >>confdefs.h <<_ACEOF
18356 #define HAVE_TYPE_TRAITS_H 1
18357 _ACEOF
18358 pcre_have_type_traits="1"
18359 else
18360 pcre_have_type_traits="0"
18363 done
18366 # (This isn't c++-specific, but is only used in pcrecpp.cc, so try this
18367 # in a c++ context. This matters becuase strtoimax is C99 and may not
18368 # be supported by the C++ compiler.)
18369 # Figure out how to create a longlong from a string: strtoll and
18370 # equiv. It's not enough to call AC_CHECK_FUNCS: hpux has a
18371 # strtoll, for instance, but it only takes 2 args instead of 3!
18372 # We have to call AH_TEMPLATE since AC_DEFINE_UNQUOTED below is complex.
18377 have_strto_fn=0
18378 for fn in strtoq strtoll _strtoi64 strtoimax; do
18379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $fn" >&5
18380 $as_echo_n "checking for $fn... " >&6; }
18381 if test "$fn" = strtoimax; then
18382 include=stdint.h
18383 else
18384 include=stdlib.h
18386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18387 /* end confdefs.h. */
18388 #include <$include>
18390 main ()
18392 char* e; return $fn("100", &e, 10)
18394 return 0;
18396 _ACEOF
18397 if ac_fn_cxx_try_compile "$LINENO"; then :
18398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18399 $as_echo "yes" >&6; }
18401 cat >>confdefs.h <<_ACEOF
18402 #define HAVE_`echo $fn | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` 1
18403 _ACEOF
18405 have_strto_fn=1
18406 break
18407 else
18408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18409 $as_echo "no" >&6; }
18411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18412 done
18414 if test "$have_strto_fn" = 1; then
18415 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
18416 if test "x$ac_cv_type_long_long" = xyes; then :
18418 cat >>confdefs.h <<_ACEOF
18419 #define HAVE_LONG_LONG 1
18420 _ACEOF
18422 pcre_have_long_long="1"
18423 else
18424 pcre_have_long_long="0"
18427 ac_fn_cxx_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$ac_includes_default"
18428 if test "x$ac_cv_type_unsigned_long_long" = xyes; then :
18430 cat >>confdefs.h <<_ACEOF
18431 #define HAVE_UNSIGNED_LONG_LONG 1
18432 _ACEOF
18434 pcre_have_ulong_long="1"
18435 else
18436 pcre_have_ulong_long="0"
18439 else
18440 pcre_have_long_long="0"
18441 pcre_have_ulong_long="0"
18446 ac_ext=c
18447 ac_cpp='$CPP $CPPFLAGS'
18448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18453 # Using AC_SUBST eliminates the need to include config.h in a public .h file
18457 # Conditional compilation
18458 if test "x$enable_pcre8" = "xyes"; then
18459 WITH_PCRE8_TRUE=
18460 WITH_PCRE8_FALSE='#'
18461 else
18462 WITH_PCRE8_TRUE='#'
18463 WITH_PCRE8_FALSE=
18466 if test "x$enable_pcre16" = "xyes"; then
18467 WITH_PCRE16_TRUE=
18468 WITH_PCRE16_FALSE='#'
18469 else
18470 WITH_PCRE16_TRUE='#'
18471 WITH_PCRE16_FALSE=
18474 if test "x$enable_pcre32" = "xyes"; then
18475 WITH_PCRE32_TRUE=
18476 WITH_PCRE32_FALSE='#'
18477 else
18478 WITH_PCRE32_TRUE='#'
18479 WITH_PCRE32_FALSE=
18482 if test "x$enable_cpp" = "xyes"; then
18483 WITH_PCRE_CPP_TRUE=
18484 WITH_PCRE_CPP_FALSE='#'
18485 else
18486 WITH_PCRE_CPP_TRUE='#'
18487 WITH_PCRE_CPP_FALSE=
18490 if test "x$enable_rebuild_chartables" = "xyes"; then
18491 WITH_REBUILD_CHARTABLES_TRUE=
18492 WITH_REBUILD_CHARTABLES_FALSE='#'
18493 else
18494 WITH_REBUILD_CHARTABLES_TRUE='#'
18495 WITH_REBUILD_CHARTABLES_FALSE=
18498 if test "x$enable_jit" = "xyes"; then
18499 WITH_JIT_TRUE=
18500 WITH_JIT_FALSE='#'
18501 else
18502 WITH_JIT_TRUE='#'
18503 WITH_JIT_FALSE=
18506 if test "x$enable_utf" = "xyes"; then
18507 WITH_UTF_TRUE=
18508 WITH_UTF_FALSE='#'
18509 else
18510 WITH_UTF_TRUE='#'
18511 WITH_UTF_FALSE=
18514 if test "x$enable_valgrind" = "xyes"; then
18515 WITH_VALGRIND_TRUE=
18516 WITH_VALGRIND_FALSE='#'
18517 else
18518 WITH_VALGRIND_TRUE='#'
18519 WITH_VALGRIND_FALSE=
18523 # Checks for typedefs, structures, and compiler characteristics.
18525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
18526 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
18527 if ${ac_cv_c_const+:} false; then :
18528 $as_echo_n "(cached) " >&6
18529 else
18530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18531 /* end confdefs.h. */
18534 main ()
18537 #ifndef __cplusplus
18538 /* Ultrix mips cc rejects this sort of thing. */
18539 typedef int charset[2];
18540 const charset cs = { 0, 0 };
18541 /* SunOS 4.1.1 cc rejects this. */
18542 char const *const *pcpcc;
18543 char **ppc;
18544 /* NEC SVR4.0.2 mips cc rejects this. */
18545 struct point {int x, y;};
18546 static struct point const zero = {0,0};
18547 /* AIX XL C 1.02.0.0 rejects this.
18548 It does not let you subtract one const X* pointer from another in
18549 an arm of an if-expression whose if-part is not a constant
18550 expression */
18551 const char *g = "string";
18552 pcpcc = &g + (g ? g-g : 0);
18553 /* HPUX 7.0 cc rejects these. */
18554 ++pcpcc;
18555 ppc = (char**) pcpcc;
18556 pcpcc = (char const *const *) ppc;
18557 { /* SCO 3.2v4 cc rejects this sort of thing. */
18558 char tx;
18559 char *t = &tx;
18560 char const *s = 0 ? (char *) 0 : (char const *) 0;
18562 *t++ = 0;
18563 if (s) return 0;
18565 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18566 int x[] = {25, 17};
18567 const int *foo = &x[0];
18568 ++foo;
18570 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18571 typedef const int *iptr;
18572 iptr p = 0;
18573 ++p;
18575 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
18576 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18577 struct s { int j; const int *ap[3]; } bx;
18578 struct s *b = &bx; b->j = 5;
18580 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18581 const int foo = 10;
18582 if (!foo) return 0;
18584 return !cs[0] && !zero.x;
18585 #endif
18588 return 0;
18590 _ACEOF
18591 if ac_fn_c_try_compile "$LINENO"; then :
18592 ac_cv_c_const=yes
18593 else
18594 ac_cv_c_const=no
18596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18599 $as_echo "$ac_cv_c_const" >&6; }
18600 if test $ac_cv_c_const = no; then
18602 $as_echo "#define const /**/" >>confdefs.h
18606 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18607 if test "x$ac_cv_type_size_t" = xyes; then :
18609 else
18611 cat >>confdefs.h <<_ACEOF
18612 #define size_t unsigned int
18613 _ACEOF
18618 # Checks for library functions.
18620 for ac_func in bcopy memmove strerror
18621 do :
18622 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18623 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18624 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18625 cat >>confdefs.h <<_ACEOF
18626 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18627 _ACEOF
18630 done
18633 # Check for the availability of libz (aka zlib)
18635 for ac_header in zlib.h
18636 do :
18637 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
18638 if test "x$ac_cv_header_zlib_h" = xyes; then :
18639 cat >>confdefs.h <<_ACEOF
18640 #define HAVE_ZLIB_H 1
18641 _ACEOF
18642 HAVE_ZLIB_H=1
18645 done
18647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
18648 $as_echo_n "checking for gzopen in -lz... " >&6; }
18649 if ${ac_cv_lib_z_gzopen+:} false; then :
18650 $as_echo_n "(cached) " >&6
18651 else
18652 ac_check_lib_save_LIBS=$LIBS
18653 LIBS="-lz $LIBS"
18654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18655 /* end confdefs.h. */
18657 /* Override any GCC internal prototype to avoid an error.
18658 Use char because int might match the return type of a GCC
18659 builtin and then its argument prototype would still apply. */
18660 #ifdef __cplusplus
18661 extern "C"
18662 #endif
18663 char gzopen ();
18665 main ()
18667 return gzopen ();
18669 return 0;
18671 _ACEOF
18672 if ac_fn_c_try_link "$LINENO"; then :
18673 ac_cv_lib_z_gzopen=yes
18674 else
18675 ac_cv_lib_z_gzopen=no
18677 rm -f core conftest.err conftest.$ac_objext \
18678 conftest$ac_exeext conftest.$ac_ext
18679 LIBS=$ac_check_lib_save_LIBS
18681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
18682 $as_echo "$ac_cv_lib_z_gzopen" >&6; }
18683 if test "x$ac_cv_lib_z_gzopen" = xyes; then :
18684 HAVE_LIBZ=1
18688 # Check for the availability of libbz2. Originally we just used AC_CHECK_LIB,
18689 # as for libz. However, this had the following problem, diagnosed and fixed by
18690 # a user:
18692 # - libbz2 uses the Pascal calling convention (WINAPI) for the functions
18693 # under Win32.
18694 # - The standard autoconf AC_CHECK_LIB fails to include "bzlib.h",
18695 # therefore missing the function definition.
18696 # - The compiler thus generates a "C" signature for the test function.
18697 # - The linker fails to find the "C" function.
18698 # - PCRE fails to configure if asked to do so against libbz2.
18700 # Solution:
18702 # - Replace the AC_CHECK_LIB test with a custom test.
18704 for ac_header in bzlib.h
18705 do :
18706 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
18707 if test "x$ac_cv_header_bzlib_h" = xyes; then :
18708 cat >>confdefs.h <<_ACEOF
18709 #define HAVE_BZLIB_H 1
18710 _ACEOF
18711 HAVE_BZLIB_H=1
18714 done
18716 # Original test
18717 # AC_CHECK_LIB([bz2], [BZ2_bzopen], [HAVE_LIBBZ2=1])
18719 # Custom test follows
18721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbz2" >&5
18722 $as_echo_n "checking for libbz2... " >&6; }
18723 OLD_LIBS="$LIBS"
18724 LIBS="$LIBS -lbz2"
18725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18726 /* end confdefs.h. */
18728 #ifdef HAVE_BZLIB_H
18729 #include <bzlib.h>
18730 #endif
18732 main ()
18734 return (int)BZ2_bzopen("conftest", "rb");
18736 return 0;
18738 _ACEOF
18739 if ac_fn_c_try_link "$LINENO"; then :
18740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18741 $as_echo "yes" >&6; };HAVE_LIBBZ2=1; break;
18742 else
18743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18744 $as_echo "no" >&6; }
18746 rm -f core conftest.err conftest.$ac_objext \
18747 conftest$ac_exeext conftest.$ac_ext
18748 LIBS="$OLD_LIBS"
18750 # Check for the availabiity of libreadline
18752 if test "$enable_pcretest_libreadline" = "yes"; then
18753 for ac_header in readline/readline.h
18754 do :
18755 ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
18756 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
18757 cat >>confdefs.h <<_ACEOF
18758 #define HAVE_READLINE_READLINE_H 1
18759 _ACEOF
18760 HAVE_READLINE_H=1
18763 done
18765 for ac_header in readline/history.h
18766 do :
18767 ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
18768 if test "x$ac_cv_header_readline_history_h" = xyes; then :
18769 cat >>confdefs.h <<_ACEOF
18770 #define HAVE_READLINE_HISTORY_H 1
18771 _ACEOF
18772 HAVE_HISTORY_H=1
18775 done
18777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
18778 $as_echo_n "checking for readline in -lreadline... " >&6; }
18779 if ${ac_cv_lib_readline_readline+:} false; then :
18780 $as_echo_n "(cached) " >&6
18781 else
18782 ac_check_lib_save_LIBS=$LIBS
18783 LIBS="-lreadline $LIBS"
18784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18785 /* end confdefs.h. */
18787 /* Override any GCC internal prototype to avoid an error.
18788 Use char because int might match the return type of a GCC
18789 builtin and then its argument prototype would still apply. */
18790 #ifdef __cplusplus
18791 extern "C"
18792 #endif
18793 char readline ();
18795 main ()
18797 return readline ();
18799 return 0;
18801 _ACEOF
18802 if ac_fn_c_try_link "$LINENO"; then :
18803 ac_cv_lib_readline_readline=yes
18804 else
18805 ac_cv_lib_readline_readline=no
18807 rm -f core conftest.err conftest.$ac_objext \
18808 conftest$ac_exeext conftest.$ac_ext
18809 LIBS=$ac_check_lib_save_LIBS
18811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
18812 $as_echo "$ac_cv_lib_readline_readline" >&6; }
18813 if test "x$ac_cv_lib_readline_readline" = xyes; then :
18814 LIBREADLINE="-lreadline"
18815 else
18816 unset ac_cv_lib_readline_readline;
18817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
18818 $as_echo_n "checking for readline in -lreadline... " >&6; }
18819 if ${ac_cv_lib_readline_readline+:} false; then :
18820 $as_echo_n "(cached) " >&6
18821 else
18822 ac_check_lib_save_LIBS=$LIBS
18823 LIBS="-lreadline -ltinfo $LIBS"
18824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18825 /* end confdefs.h. */
18827 /* Override any GCC internal prototype to avoid an error.
18828 Use char because int might match the return type of a GCC
18829 builtin and then its argument prototype would still apply. */
18830 #ifdef __cplusplus
18831 extern "C"
18832 #endif
18833 char readline ();
18835 main ()
18837 return readline ();
18839 return 0;
18841 _ACEOF
18842 if ac_fn_c_try_link "$LINENO"; then :
18843 ac_cv_lib_readline_readline=yes
18844 else
18845 ac_cv_lib_readline_readline=no
18847 rm -f core conftest.err conftest.$ac_objext \
18848 conftest$ac_exeext conftest.$ac_ext
18849 LIBS=$ac_check_lib_save_LIBS
18851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
18852 $as_echo "$ac_cv_lib_readline_readline" >&6; }
18853 if test "x$ac_cv_lib_readline_readline" = xyes; then :
18854 LIBREADLINE="-ltinfo"
18855 else
18856 unset ac_cv_lib_readline_readline;
18857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
18858 $as_echo_n "checking for readline in -lreadline... " >&6; }
18859 if ${ac_cv_lib_readline_readline+:} false; then :
18860 $as_echo_n "(cached) " >&6
18861 else
18862 ac_check_lib_save_LIBS=$LIBS
18863 LIBS="-lreadline -lcurses $LIBS"
18864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18865 /* end confdefs.h. */
18867 /* Override any GCC internal prototype to avoid an error.
18868 Use char because int might match the return type of a GCC
18869 builtin and then its argument prototype would still apply. */
18870 #ifdef __cplusplus
18871 extern "C"
18872 #endif
18873 char readline ();
18875 main ()
18877 return readline ();
18879 return 0;
18881 _ACEOF
18882 if ac_fn_c_try_link "$LINENO"; then :
18883 ac_cv_lib_readline_readline=yes
18884 else
18885 ac_cv_lib_readline_readline=no
18887 rm -f core conftest.err conftest.$ac_objext \
18888 conftest$ac_exeext conftest.$ac_ext
18889 LIBS=$ac_check_lib_save_LIBS
18891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
18892 $as_echo "$ac_cv_lib_readline_readline" >&6; }
18893 if test "x$ac_cv_lib_readline_readline" = xyes; then :
18894 LIBREADLINE="-lcurses"
18895 else
18896 unset ac_cv_lib_readline_readline;
18897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
18898 $as_echo_n "checking for readline in -lreadline... " >&6; }
18899 if ${ac_cv_lib_readline_readline+:} false; then :
18900 $as_echo_n "(cached) " >&6
18901 else
18902 ac_check_lib_save_LIBS=$LIBS
18903 LIBS="-lreadline -lncurses $LIBS"
18904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18905 /* end confdefs.h. */
18907 /* Override any GCC internal prototype to avoid an error.
18908 Use char because int might match the return type of a GCC
18909 builtin and then its argument prototype would still apply. */
18910 #ifdef __cplusplus
18911 extern "C"
18912 #endif
18913 char readline ();
18915 main ()
18917 return readline ();
18919 return 0;
18921 _ACEOF
18922 if ac_fn_c_try_link "$LINENO"; then :
18923 ac_cv_lib_readline_readline=yes
18924 else
18925 ac_cv_lib_readline_readline=no
18927 rm -f core conftest.err conftest.$ac_objext \
18928 conftest$ac_exeext conftest.$ac_ext
18929 LIBS=$ac_check_lib_save_LIBS
18931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
18932 $as_echo "$ac_cv_lib_readline_readline" >&6; }
18933 if test "x$ac_cv_lib_readline_readline" = xyes; then :
18934 LIBREADLINE="-lncurses"
18935 else
18936 unset ac_cv_lib_readline_readline;
18937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
18938 $as_echo_n "checking for readline in -lreadline... " >&6; }
18939 if ${ac_cv_lib_readline_readline+:} false; then :
18940 $as_echo_n "(cached) " >&6
18941 else
18942 ac_check_lib_save_LIBS=$LIBS
18943 LIBS="-lreadline -lncursesw $LIBS"
18944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18945 /* end confdefs.h. */
18947 /* Override any GCC internal prototype to avoid an error.
18948 Use char because int might match the return type of a GCC
18949 builtin and then its argument prototype would still apply. */
18950 #ifdef __cplusplus
18951 extern "C"
18952 #endif
18953 char readline ();
18955 main ()
18957 return readline ();
18959 return 0;
18961 _ACEOF
18962 if ac_fn_c_try_link "$LINENO"; then :
18963 ac_cv_lib_readline_readline=yes
18964 else
18965 ac_cv_lib_readline_readline=no
18967 rm -f core conftest.err conftest.$ac_objext \
18968 conftest$ac_exeext conftest.$ac_ext
18969 LIBS=$ac_check_lib_save_LIBS
18971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
18972 $as_echo "$ac_cv_lib_readline_readline" >&6; }
18973 if test "x$ac_cv_lib_readline_readline" = xyes; then :
18974 LIBREADLINE="-lncursesw"
18975 else
18976 unset ac_cv_lib_readline_readline;
18977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
18978 $as_echo_n "checking for readline in -lreadline... " >&6; }
18979 if ${ac_cv_lib_readline_readline+:} false; then :
18980 $as_echo_n "(cached) " >&6
18981 else
18982 ac_check_lib_save_LIBS=$LIBS
18983 LIBS="-lreadline -ltermcap $LIBS"
18984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18985 /* end confdefs.h. */
18987 /* Override any GCC internal prototype to avoid an error.
18988 Use char because int might match the return type of a GCC
18989 builtin and then its argument prototype would still apply. */
18990 #ifdef __cplusplus
18991 extern "C"
18992 #endif
18993 char readline ();
18995 main ()
18997 return readline ();
18999 return 0;
19001 _ACEOF
19002 if ac_fn_c_try_link "$LINENO"; then :
19003 ac_cv_lib_readline_readline=yes
19004 else
19005 ac_cv_lib_readline_readline=no
19007 rm -f core conftest.err conftest.$ac_objext \
19008 conftest$ac_exeext conftest.$ac_ext
19009 LIBS=$ac_check_lib_save_LIBS
19011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
19012 $as_echo "$ac_cv_lib_readline_readline" >&6; }
19013 if test "x$ac_cv_lib_readline_readline" = xyes; then :
19014 LIBREADLINE="-ltermcap"
19015 else
19016 LIBREADLINE=""
19030 if test -n "$LIBREADLINE"; then
19031 if test "$LIBREADLINE" != "-lreadline"; then
19032 echo "-lreadline needs $LIBREADLINE"
19033 LIBREADLINE="-lreadline $LIBREADLINE"
19039 # Check for the availability of libedit. Different distributions put its
19040 # headers in different places. Try to cover the most common ones.
19042 if test "$enable_pcretest_libedit" = "yes"; then
19043 for ac_header in editline/readline.h
19044 do :
19045 ac_fn_c_check_header_mongrel "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
19046 if test "x$ac_cv_header_editline_readline_h" = xyes; then :
19047 cat >>confdefs.h <<_ACEOF
19048 #define HAVE_EDITLINE_READLINE_H 1
19049 _ACEOF
19050 HAVE_EDITLINE_READLINE_H=1
19051 else
19052 for ac_header in edit/readline/readline.h
19053 do :
19054 ac_fn_c_check_header_mongrel "$LINENO" "edit/readline/readline.h" "ac_cv_header_edit_readline_readline_h" "$ac_includes_default"
19055 if test "x$ac_cv_header_edit_readline_readline_h" = xyes; then :
19056 cat >>confdefs.h <<_ACEOF
19057 #define HAVE_EDIT_READLINE_READLINE_H 1
19058 _ACEOF
19059 HAVE_READLINE_READLINE_H=1
19060 else
19061 for ac_header in readline/readline.h
19062 do :
19063 ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
19064 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
19065 cat >>confdefs.h <<_ACEOF
19066 #define HAVE_READLINE_READLINE_H 1
19067 _ACEOF
19068 HAVE_READLINE_READLINE_H=1
19071 done
19075 done
19079 done
19081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -ledit" >&5
19082 $as_echo_n "checking for readline in -ledit... " >&6; }
19083 if ${ac_cv_lib_edit_readline+:} false; then :
19084 $as_echo_n "(cached) " >&6
19085 else
19086 ac_check_lib_save_LIBS=$LIBS
19087 LIBS="-ledit $LIBS"
19088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19089 /* end confdefs.h. */
19091 /* Override any GCC internal prototype to avoid an error.
19092 Use char because int might match the return type of a GCC
19093 builtin and then its argument prototype would still apply. */
19094 #ifdef __cplusplus
19095 extern "C"
19096 #endif
19097 char readline ();
19099 main ()
19101 return readline ();
19103 return 0;
19105 _ACEOF
19106 if ac_fn_c_try_link "$LINENO"; then :
19107 ac_cv_lib_edit_readline=yes
19108 else
19109 ac_cv_lib_edit_readline=no
19111 rm -f core conftest.err conftest.$ac_objext \
19112 conftest$ac_exeext conftest.$ac_ext
19113 LIBS=$ac_check_lib_save_LIBS
19115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_readline" >&5
19116 $as_echo "$ac_cv_lib_edit_readline" >&6; }
19117 if test "x$ac_cv_lib_edit_readline" = xyes; then :
19118 LIBEDIT="-ledit"
19123 # This facilitates -ansi builds under Linux
19125 PCRE_STATIC_CFLAG=""
19126 if test "x$enable_shared" = "xno" ; then
19128 $as_echo "#define PCRE_STATIC 1" >>confdefs.h
19130 PCRE_STATIC_CFLAG="-DPCRE_STATIC"
19134 # Here is where pcre specific defines are handled
19136 if test "$enable_pcre8" = "yes"; then
19138 $as_echo "#define SUPPORT_PCRE8 /**/" >>confdefs.h
19142 if test "$enable_pcre16" = "yes"; then
19144 $as_echo "#define SUPPORT_PCRE16 /**/" >>confdefs.h
19148 if test "$enable_pcre32" = "yes"; then
19150 $as_echo "#define SUPPORT_PCRE32 /**/" >>confdefs.h
19154 # Unless running under Windows, JIT support requires pthreads.
19156 if test "$enable_jit" = "yes"; then
19157 if test "$HAVE_WINDOWS_H" != "1"; then
19160 ac_ext=c
19161 ac_cpp='$CPP $CPPFLAGS'
19162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19166 ax_pthread_ok=no
19168 # We used to check for pthread.h first, but this fails if pthread.h
19169 # requires special compiler flags (e.g. on True64 or Sequent).
19170 # It gets checked for in the link test anyway.
19172 # First of all, check if the user has set any of the PTHREAD_LIBS,
19173 # etcetera environment variables, and if threads linking works using
19174 # them:
19175 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
19176 save_CFLAGS="$CFLAGS"
19177 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19178 save_LIBS="$LIBS"
19179 LIBS="$PTHREAD_LIBS $LIBS"
19180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
19181 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
19182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19183 /* end confdefs.h. */
19185 /* Override any GCC internal prototype to avoid an error.
19186 Use char because int might match the return type of a GCC
19187 builtin and then its argument prototype would still apply. */
19188 #ifdef __cplusplus
19189 extern "C"
19190 #endif
19191 char pthread_join ();
19193 main ()
19195 return pthread_join ();
19197 return 0;
19199 _ACEOF
19200 if ac_fn_c_try_link "$LINENO"; then :
19201 ax_pthread_ok=yes
19203 rm -f core conftest.err conftest.$ac_objext \
19204 conftest$ac_exeext conftest.$ac_ext
19205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
19206 $as_echo "$ax_pthread_ok" >&6; }
19207 if test x"$ax_pthread_ok" = xno; then
19208 PTHREAD_LIBS=""
19209 PTHREAD_CFLAGS=""
19211 LIBS="$save_LIBS"
19212 CFLAGS="$save_CFLAGS"
19215 # We must check for the threads library under a number of different
19216 # names; the ordering is very important because some systems
19217 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
19218 # libraries is broken (non-POSIX).
19220 # Create a list of thread flags to try. Items starting with a "-" are
19221 # C compiler flags, and other items are library names, except for "none"
19222 # which indicates that we try without any flags at all, and "pthread-config"
19223 # which is a program returning the flags for the Pth emulation library.
19225 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
19227 # The ordering *is* (sometimes) important. Some notes on the
19228 # individual items follow:
19230 # pthreads: AIX (must check this before -lpthread)
19231 # none: in case threads are in libc; should be tried before -Kthread and
19232 # other compiler flags to prevent continual compiler warnings
19233 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
19234 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
19235 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
19236 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
19237 # -pthreads: Solaris/gcc
19238 # -mthreads: Mingw32/gcc, Lynx/gcc
19239 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
19240 # doesn't hurt to check since this sometimes defines pthreads too;
19241 # also defines -D_REENTRANT)
19242 # ... -mt is also the pthreads flag for HP/aCC
19243 # pthread: Linux, etcetera
19244 # --thread-safe: KAI C++
19245 # pthread-config: use pthread-config program (for GNU Pth library)
19247 case ${host_os} in
19248 solaris*)
19250 # On Solaris (at least, for some versions), libc contains stubbed
19251 # (non-functional) versions of the pthreads routines, so link-based
19252 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
19253 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
19254 # a function called by this macro, so we could check for that, but
19255 # who knows whether they'll stub that too in a future libc.) So,
19256 # we'll just look for -pthreads and -lpthread first:
19258 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
19261 darwin*)
19262 ax_pthread_flags="-pthread $ax_pthread_flags"
19264 esac
19266 if test x"$ax_pthread_ok" = xno; then
19267 for flag in $ax_pthread_flags; do
19269 case $flag in
19270 none)
19271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
19272 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
19276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
19277 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
19278 PTHREAD_CFLAGS="$flag"
19281 pthread-config)
19282 # Extract the first word of "pthread-config", so it can be a program name with args.
19283 set dummy pthread-config; ac_word=$2
19284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19285 $as_echo_n "checking for $ac_word... " >&6; }
19286 if ${ac_cv_prog_ax_pthread_config+:} false; then :
19287 $as_echo_n "(cached) " >&6
19288 else
19289 if test -n "$ax_pthread_config"; then
19290 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
19291 else
19292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19293 for as_dir in $PATH
19295 IFS=$as_save_IFS
19296 test -z "$as_dir" && as_dir=.
19297 for ac_exec_ext in '' $ac_executable_extensions; do
19298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19299 ac_cv_prog_ax_pthread_config="yes"
19300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19301 break 2
19303 done
19304 done
19305 IFS=$as_save_IFS
19307 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
19310 ax_pthread_config=$ac_cv_prog_ax_pthread_config
19311 if test -n "$ax_pthread_config"; then
19312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
19313 $as_echo "$ax_pthread_config" >&6; }
19314 else
19315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19316 $as_echo "no" >&6; }
19320 if test x"$ax_pthread_config" = xno; then continue; fi
19321 PTHREAD_CFLAGS="`pthread-config --cflags`"
19322 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
19326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
19327 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
19328 PTHREAD_LIBS="-l$flag"
19330 esac
19332 save_LIBS="$LIBS"
19333 save_CFLAGS="$CFLAGS"
19334 LIBS="$PTHREAD_LIBS $LIBS"
19335 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19337 # Check for various functions. We must include pthread.h,
19338 # since some functions may be macros. (On the Sequent, we
19339 # need a special flag -Kthread to make this header compile.)
19340 # We check for pthread_join because it is in -lpthread on IRIX
19341 # while pthread_create is in libc. We check for pthread_attr_init
19342 # due to DEC craziness with -lpthreads. We check for
19343 # pthread_cleanup_push because it is one of the few pthread
19344 # functions on Solaris that doesn't have a non-functional libc stub.
19345 # We try pthread_create on general principles.
19346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19347 /* end confdefs.h. */
19348 #include <pthread.h>
19349 static void routine(void *a) { a = 0; }
19350 static void *start_routine(void *a) { return a; }
19352 main ()
19354 pthread_t th; pthread_attr_t attr;
19355 pthread_create(&th, 0, start_routine, 0);
19356 pthread_join(th, 0);
19357 pthread_attr_init(&attr);
19358 pthread_cleanup_push(routine, 0);
19359 pthread_cleanup_pop(0) /* ; */
19361 return 0;
19363 _ACEOF
19364 if ac_fn_c_try_link "$LINENO"; then :
19365 ax_pthread_ok=yes
19367 rm -f core conftest.err conftest.$ac_objext \
19368 conftest$ac_exeext conftest.$ac_ext
19370 LIBS="$save_LIBS"
19371 CFLAGS="$save_CFLAGS"
19373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
19374 $as_echo "$ax_pthread_ok" >&6; }
19375 if test "x$ax_pthread_ok" = xyes; then
19376 break;
19379 PTHREAD_LIBS=""
19380 PTHREAD_CFLAGS=""
19381 done
19384 # Various other checks:
19385 if test "x$ax_pthread_ok" = xyes; then
19386 save_LIBS="$LIBS"
19387 LIBS="$PTHREAD_LIBS $LIBS"
19388 save_CFLAGS="$CFLAGS"
19389 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19391 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
19392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
19393 $as_echo_n "checking for joinable pthread attribute... " >&6; }
19394 attr_name=unknown
19395 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
19396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19397 /* end confdefs.h. */
19398 #include <pthread.h>
19400 main ()
19402 int attr = $attr; return attr /* ; */
19404 return 0;
19406 _ACEOF
19407 if ac_fn_c_try_link "$LINENO"; then :
19408 attr_name=$attr; break
19410 rm -f core conftest.err conftest.$ac_objext \
19411 conftest$ac_exeext conftest.$ac_ext
19412 done
19413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
19414 $as_echo "$attr_name" >&6; }
19415 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
19417 cat >>confdefs.h <<_ACEOF
19418 #define PTHREAD_CREATE_JOINABLE $attr_name
19419 _ACEOF
19423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
19424 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
19425 flag=no
19426 case ${host_os} in
19427 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
19428 osf* | hpux*) flag="-D_REENTRANT";;
19429 solaris*)
19430 if test "$GCC" = "yes"; then
19431 flag="-D_REENTRANT"
19432 else
19433 flag="-mt -D_REENTRANT"
19436 esac
19437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
19438 $as_echo "${flag}" >&6; }
19439 if test "x$flag" != xno; then
19440 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
19443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
19444 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
19445 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
19446 $as_echo_n "(cached) " >&6
19447 else
19449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19450 /* end confdefs.h. */
19452 #include <pthread.h>
19454 main ()
19456 int i = PTHREAD_PRIO_INHERIT;
19458 return 0;
19460 _ACEOF
19461 if ac_fn_c_try_link "$LINENO"; then :
19462 ax_cv_PTHREAD_PRIO_INHERIT=yes
19463 else
19464 ax_cv_PTHREAD_PRIO_INHERIT=no
19466 rm -f core conftest.err conftest.$ac_objext \
19467 conftest$ac_exeext conftest.$ac_ext
19470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
19471 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
19472 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
19474 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
19478 LIBS="$save_LIBS"
19479 CFLAGS="$save_CFLAGS"
19481 # More AIX lossage: must compile with xlc_r or cc_r
19482 if test x"$GCC" != xyes; then
19483 for ac_prog in xlc_r cc_r
19485 # Extract the first word of "$ac_prog", so it can be a program name with args.
19486 set dummy $ac_prog; ac_word=$2
19487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19488 $as_echo_n "checking for $ac_word... " >&6; }
19489 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
19490 $as_echo_n "(cached) " >&6
19491 else
19492 if test -n "$PTHREAD_CC"; then
19493 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
19494 else
19495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19496 for as_dir in $PATH
19498 IFS=$as_save_IFS
19499 test -z "$as_dir" && as_dir=.
19500 for ac_exec_ext in '' $ac_executable_extensions; do
19501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19502 ac_cv_prog_PTHREAD_CC="$ac_prog"
19503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19504 break 2
19506 done
19507 done
19508 IFS=$as_save_IFS
19512 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
19513 if test -n "$PTHREAD_CC"; then
19514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
19515 $as_echo "$PTHREAD_CC" >&6; }
19516 else
19517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19518 $as_echo "no" >&6; }
19522 test -n "$PTHREAD_CC" && break
19523 done
19524 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
19526 else
19527 PTHREAD_CC=$CC
19529 else
19530 PTHREAD_CC="$CC"
19537 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
19538 if test x"$ax_pthread_ok" = xyes; then
19540 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
19543 else
19544 ax_pthread_ok=no
19545 as_fn_error $? "JIT support requires pthreads" "$LINENO" 5
19547 ac_ext=c
19548 ac_cpp='$CPP $CPPFLAGS'
19549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19554 CC="$PTHREAD_CC"
19555 CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
19556 LIBS="$PTHREAD_LIBS $LIBS"
19559 $as_echo "#define SUPPORT_JIT /**/" >>confdefs.h
19561 else
19562 enable_pcregrep_jit="no"
19565 if test "$enable_pcregrep_jit" = "yes"; then
19567 $as_echo "#define SUPPORT_PCREGREP_JIT /**/" >>confdefs.h
19571 if test "$enable_utf" = "yes"; then
19573 $as_echo "#define SUPPORT_UTF /**/" >>confdefs.h
19577 if test "$enable_unicode_properties" = "yes"; then
19579 $as_echo "#define SUPPORT_UCP /**/" >>confdefs.h
19583 if test "$enable_stack_for_recursion" = "no"; then
19585 $as_echo "#define NO_RECURSE /**/" >>confdefs.h
19589 if test "$enable_pcregrep_libz" = "yes"; then
19591 $as_echo "#define SUPPORT_LIBZ /**/" >>confdefs.h
19595 if test "$enable_pcregrep_libbz2" = "yes"; then
19597 $as_echo "#define SUPPORT_LIBBZ2 /**/" >>confdefs.h
19601 if test $with_pcregrep_bufsize -lt 8192 ; then
19602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $with_pcregrep_bufsize is too small for --with-pcregrep-bufsize; using 8192" >&5
19603 $as_echo "$as_me: WARNING: $with_pcregrep_bufsize is too small for --with-pcregrep-bufsize; using 8192" >&2;}
19604 with_pcregrep_bufsize="8192"
19605 else
19606 if test $? -gt 1 ; then
19607 as_fn_error $? "Bad value for --with-pcregrep-bufsize" "$LINENO" 5
19612 cat >>confdefs.h <<_ACEOF
19613 #define PCREGREP_BUFSIZE $with_pcregrep_bufsize
19614 _ACEOF
19617 if test "$enable_pcretest_libedit" = "yes"; then
19619 $as_echo "#define SUPPORT_LIBEDIT /**/" >>confdefs.h
19621 LIBREADLINE="$LIBEDIT"
19622 elif test "$enable_pcretest_libreadline" = "yes"; then
19624 $as_echo "#define SUPPORT_LIBREADLINE /**/" >>confdefs.h
19629 cat >>confdefs.h <<_ACEOF
19630 #define NEWLINE $ac_pcre_newline_value
19631 _ACEOF
19634 if test "$enable_bsr_anycrlf" = "yes"; then
19636 $as_echo "#define BSR_ANYCRLF /**/" >>confdefs.h
19641 cat >>confdefs.h <<_ACEOF
19642 #define LINK_SIZE $with_link_size
19643 _ACEOF
19647 cat >>confdefs.h <<_ACEOF
19648 #define POSIX_MALLOC_THRESHOLD $with_posix_malloc_threshold
19649 _ACEOF
19653 cat >>confdefs.h <<_ACEOF
19654 #define PARENS_NEST_LIMIT $with_parens_nest_limit
19655 _ACEOF
19659 cat >>confdefs.h <<_ACEOF
19660 #define MATCH_LIMIT $with_match_limit
19661 _ACEOF
19665 cat >>confdefs.h <<_ACEOF
19666 #define MATCH_LIMIT_RECURSION $with_match_limit_recursion
19667 _ACEOF
19671 $as_echo "#define MAX_NAME_SIZE 32" >>confdefs.h
19675 $as_echo "#define MAX_NAME_COUNT 10000" >>confdefs.h
19680 if test "$enable_ebcdic" = "yes"; then
19682 cat >>confdefs.h <<_ACEOF
19683 #define EBCDIC /**/
19684 _ACEOF
19688 if test "$enable_ebcdic_nl25" = "yes"; then
19690 cat >>confdefs.h <<_ACEOF
19691 #define EBCDIC_NL25 /**/
19692 _ACEOF
19696 if test "$enable_valgrind" = "yes"; then
19698 cat >>confdefs.h <<_ACEOF
19699 #define SUPPORT_VALGRIND /**/
19700 _ACEOF
19704 # Platform specific issues
19705 NO_UNDEFINED=
19706 EXPORT_ALL_SYMBOLS=
19707 case $host_os in
19708 cygwin* | mingw* )
19709 if test X"$enable_shared" = Xyes; then
19710 NO_UNDEFINED="-no-undefined"
19711 EXPORT_ALL_SYMBOLS="-Wl,--export-all-symbols"
19714 esac
19716 # The extra LDFLAGS for each particular library
19717 # (Note: The libpcre*_version bits are m4 variables, assigned above)
19719 EXTRA_LIBPCRE_LDFLAGS="$EXTRA_LIBPCRE_LDFLAGS \
19720 $NO_UNDEFINED -version-info 3:12:2"
19722 EXTRA_LIBPCRE16_LDFLAGS="$EXTRA_LIBPCRE16_LDFLAGS \
19723 $NO_UNDEFINED -version-info 2:12:2"
19725 EXTRA_LIBPCRE32_LDFLAGS="$EXTRA_LIBPCRE32_LDFLAGS \
19726 $NO_UNDEFINED -version-info 0:12:0"
19728 EXTRA_LIBPCREPOSIX_LDFLAGS="$EXTRA_LIBPCREPOSIX_LDFLAGS \
19729 $NO_UNDEFINED -version-info 1:0:0"
19731 EXTRA_LIBPCRECPP_LDFLAGS="$EXTRA_LIBPCRECPP_LDFLAGS \
19732 $NO_UNDEFINED -version-info 0:2:0 \
19733 $EXPORT_ALL_SYMBOLS"
19741 # When we run 'make distcheck', use these arguments. Turning off compiler
19742 # optimization makes it run faster.
19743 DISTCHECK_CONFIGURE_FLAGS="CFLAGS='' CXXFLAGS='' --enable-pcre16 --enable-pcre32 --enable-jit --enable-cpp --enable-unicode-properties"
19746 # Check that, if --enable-pcregrep-libz or --enable-pcregrep-libbz2 is
19747 # specified, the relevant library is available.
19749 if test "$enable_pcregrep_libz" = "yes"; then
19750 if test "$HAVE_ZLIB_H" != "1"; then
19751 echo "** Cannot --enable-pcregrep-libz because zlib.h was not found"
19752 exit 1
19754 if test "$HAVE_LIBZ" != "1"; then
19755 echo "** Cannot --enable-pcregrep-libz because libz was not found"
19756 exit 1
19758 LIBZ="-lz"
19762 if test "$enable_pcregrep_libbz2" = "yes"; then
19763 if test "$HAVE_BZLIB_H" != "1"; then
19764 echo "** Cannot --enable-pcregrep-libbz2 because bzlib.h was not found"
19765 exit 1
19767 if test "$HAVE_LIBBZ2" != "1"; then
19768 echo "** Cannot --enable-pcregrep-libbz2 because libbz2 was not found"
19769 exit 1
19771 LIBBZ2="-lbz2"
19775 # Similarly for --enable-pcretest-readline
19777 if test "$enable_pcretest_libedit" = "yes"; then
19778 if test "$enable_pcretest_libreadline" = "yes"; then
19779 echo "** Cannot use both --enable-pcretest-libedit and --enable-pcretest-readline"
19780 exit 1
19782 if test "$HAVE_EDITLINE_READLINE_H" != "1" -a \
19783 "$HAVE_READLINE_READLINE_H" != "1"; then
19784 echo "** Cannot --enable-pcretest-libedit because neither editline/readline.h"
19785 echo "** nor readline/readline.h was found."
19786 exit 1
19788 if test -z "$LIBEDIT"; then
19789 echo "** Cannot --enable-pcretest-libedit because libedit library was not found."
19790 exit 1
19794 if test "$enable_pcretest_libreadline" = "yes"; then
19795 if test "$HAVE_READLINE_H" != "1"; then
19796 echo "** Cannot --enable-pcretest-readline because readline/readline.h was not found."
19797 exit 1
19799 if test "$HAVE_HISTORY_H" != "1"; then
19800 echo "** Cannot --enable-pcretest-readline because readline/history.h was not found."
19801 exit 1
19803 if test -z "$LIBREADLINE"; then
19804 echo "** Cannot --enable-pcretest-readline because readline library was not found."
19805 exit 1
19809 # Handle valgrind support
19811 if test "$enable_valgrind" = "yes"; then
19819 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19820 if test -n "$ac_tool_prefix"; then
19821 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19822 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19824 $as_echo_n "checking for $ac_word... " >&6; }
19825 if ${ac_cv_path_PKG_CONFIG+:} false; then :
19826 $as_echo_n "(cached) " >&6
19827 else
19828 case $PKG_CONFIG in
19829 [\\/]* | ?:[\\/]*)
19830 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19834 for as_dir in $PATH
19836 IFS=$as_save_IFS
19837 test -z "$as_dir" && as_dir=.
19838 for ac_exec_ext in '' $ac_executable_extensions; do
19839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19840 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19842 break 2
19844 done
19845 done
19846 IFS=$as_save_IFS
19849 esac
19851 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19852 if test -n "$PKG_CONFIG"; then
19853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19854 $as_echo "$PKG_CONFIG" >&6; }
19855 else
19856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19857 $as_echo "no" >&6; }
19862 if test -z "$ac_cv_path_PKG_CONFIG"; then
19863 ac_pt_PKG_CONFIG=$PKG_CONFIG
19864 # Extract the first word of "pkg-config", so it can be a program name with args.
19865 set dummy pkg-config; ac_word=$2
19866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19867 $as_echo_n "checking for $ac_word... " >&6; }
19868 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
19869 $as_echo_n "(cached) " >&6
19870 else
19871 case $ac_pt_PKG_CONFIG in
19872 [\\/]* | ?:[\\/]*)
19873 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19877 for as_dir in $PATH
19879 IFS=$as_save_IFS
19880 test -z "$as_dir" && as_dir=.
19881 for ac_exec_ext in '' $ac_executable_extensions; do
19882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19883 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19885 break 2
19887 done
19888 done
19889 IFS=$as_save_IFS
19892 esac
19894 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19895 if test -n "$ac_pt_PKG_CONFIG"; then
19896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19897 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
19898 else
19899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19900 $as_echo "no" >&6; }
19903 if test "x$ac_pt_PKG_CONFIG" = x; then
19904 PKG_CONFIG=""
19905 else
19906 case $cross_compiling:$ac_tool_warned in
19907 yes:)
19908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19909 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19910 ac_tool_warned=yes ;;
19911 esac
19912 PKG_CONFIG=$ac_pt_PKG_CONFIG
19914 else
19915 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19919 if test -n "$PKG_CONFIG"; then
19920 _pkg_min_version=0.9.0
19921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
19922 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
19923 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19925 $as_echo "yes" >&6; }
19926 else
19927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19928 $as_echo "no" >&6; }
19929 PKG_CONFIG=""
19933 pkg_failed=no
19934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND" >&5
19935 $as_echo_n "checking for VALGRIND... " >&6; }
19937 if test -n "$VALGRIND_CFLAGS"; then
19938 pkg_cv_VALGRIND_CFLAGS="$VALGRIND_CFLAGS"
19939 elif test -n "$PKG_CONFIG"; then
19940 if test -n "$PKG_CONFIG" && \
19941 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5
19942 ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5
19943 ac_status=$?
19944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19945 test $ac_status = 0; }; then
19946 pkg_cv_VALGRIND_CFLAGS=`$PKG_CONFIG --cflags "valgrind" 2>/dev/null`
19947 test "x$?" != "x0" && pkg_failed=yes
19948 else
19949 pkg_failed=yes
19951 else
19952 pkg_failed=untried
19954 if test -n "$VALGRIND_LIBS"; then
19955 pkg_cv_VALGRIND_LIBS="$VALGRIND_LIBS"
19956 elif test -n "$PKG_CONFIG"; then
19957 if test -n "$PKG_CONFIG" && \
19958 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5
19959 ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5
19960 ac_status=$?
19961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19962 test $ac_status = 0; }; then
19963 pkg_cv_VALGRIND_LIBS=`$PKG_CONFIG --libs "valgrind" 2>/dev/null`
19964 test "x$?" != "x0" && pkg_failed=yes
19965 else
19966 pkg_failed=yes
19968 else
19969 pkg_failed=untried
19974 if test $pkg_failed = yes; then
19975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19976 $as_echo "no" >&6; }
19978 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19979 _pkg_short_errors_supported=yes
19980 else
19981 _pkg_short_errors_supported=no
19983 if test $_pkg_short_errors_supported = yes; then
19984 VALGRIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "valgrind" 2>&1`
19985 else
19986 VALGRIND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "valgrind" 2>&1`
19988 # Put the nasty error message in config.log where it belongs
19989 echo "$VALGRIND_PKG_ERRORS" >&5
19991 as_fn_error $? "Package requirements (valgrind) were not met:
19993 $VALGRIND_PKG_ERRORS
19995 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19996 installed software in a non-standard prefix.
19998 Alternatively, you may set the environment variables VALGRIND_CFLAGS
19999 and VALGRIND_LIBS to avoid the need to call pkg-config.
20000 See the pkg-config man page for more details." "$LINENO" 5
20001 elif test $pkg_failed = untried; then
20002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20003 $as_echo "no" >&6; }
20004 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20005 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20006 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
20007 is in your PATH or set the PKG_CONFIG environment variable to the full
20008 path to pkg-config.
20010 Alternatively, you may set the environment variables VALGRIND_CFLAGS
20011 and VALGRIND_LIBS to avoid the need to call pkg-config.
20012 See the pkg-config man page for more details.
20014 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20015 See \`config.log' for more details" "$LINENO" 5; }
20016 else
20017 VALGRIND_CFLAGS=$pkg_cv_VALGRIND_CFLAGS
20018 VALGRIND_LIBS=$pkg_cv_VALGRIND_LIBS
20019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20020 $as_echo "yes" >&6; }
20025 # Handle code coverage reporting support
20026 if test "$enable_coverage" = "yes"; then
20027 if test "x$GCC" != "xyes"; then
20028 as_fn_error $? "Code coverage reports can only be generated when using GCC" "$LINENO" 5
20031 # ccache is incompatible with gcov
20032 # Extract the first word of "shtool", so it can be a program name with args.
20033 set dummy shtool; ac_word=$2
20034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20035 $as_echo_n "checking for $ac_word... " >&6; }
20036 if ${ac_cv_path_SHTOOL+:} false; then :
20037 $as_echo_n "(cached) " >&6
20038 else
20039 case $SHTOOL in
20040 [\\/]* | ?:[\\/]*)
20041 ac_cv_path_SHTOOL="$SHTOOL" # Let the user override the test with a path.
20044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20045 for as_dir in $PATH
20047 IFS=$as_save_IFS
20048 test -z "$as_dir" && as_dir=.
20049 for ac_exec_ext in '' $ac_executable_extensions; do
20050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20051 ac_cv_path_SHTOOL="$as_dir/$ac_word$ac_exec_ext"
20052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20053 break 2
20055 done
20056 done
20057 IFS=$as_save_IFS
20059 test -z "$ac_cv_path_SHTOOL" && ac_cv_path_SHTOOL="false"
20061 esac
20063 SHTOOL=$ac_cv_path_SHTOOL
20064 if test -n "$SHTOOL"; then
20065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHTOOL" >&5
20066 $as_echo "$SHTOOL" >&6; }
20067 else
20068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20069 $as_echo "no" >&6; }
20073 case `$SHTOOL path $CC` in
20074 *ccache*) cc_ccache=yes;;
20075 *) cc_ccache=no;;
20076 esac
20078 if test "$cc_ccache" = "yes"; then
20079 if test -z "$CCACHE_DISABLE" -o "$CCACHE_DISABLE" != "1"; then
20080 as_fn_error $? "must export CCACHE_DISABLE=1 to disable ccache for code coverage" "$LINENO" 5
20085 # Extract the first word of "lcov", so it can be a program name with args.
20086 set dummy lcov; ac_word=$2
20087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20088 $as_echo_n "checking for $ac_word... " >&6; }
20089 if ${ac_cv_path_LCOV+:} false; then :
20090 $as_echo_n "(cached) " >&6
20091 else
20092 case $LCOV in
20093 [\\/]* | ?:[\\/]*)
20094 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
20097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20098 for as_dir in $PATH
20100 IFS=$as_save_IFS
20101 test -z "$as_dir" && as_dir=.
20102 for ac_exec_ext in '' $ac_executable_extensions; do
20103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20104 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
20105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20106 break 2
20108 done
20109 done
20110 IFS=$as_save_IFS
20112 test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV="false"
20114 esac
20116 LCOV=$ac_cv_path_LCOV
20117 if test -n "$LCOV"; then
20118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
20119 $as_echo "$LCOV" >&6; }
20120 else
20121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20122 $as_echo "no" >&6; }
20126 if test "x$LCOV" = "xfalse"; then
20127 as_fn_error $? "lcov not found" "$LINENO" 5
20131 # Extract the first word of "genhtml", so it can be a program name with args.
20132 set dummy genhtml; ac_word=$2
20133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20134 $as_echo_n "checking for $ac_word... " >&6; }
20135 if ${ac_cv_path_GENHTML+:} false; then :
20136 $as_echo_n "(cached) " >&6
20137 else
20138 case $GENHTML in
20139 [\\/]* | ?:[\\/]*)
20140 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
20143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20144 for as_dir in $PATH
20146 IFS=$as_save_IFS
20147 test -z "$as_dir" && as_dir=.
20148 for ac_exec_ext in '' $ac_executable_extensions; do
20149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20150 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
20151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20152 break 2
20154 done
20155 done
20156 IFS=$as_save_IFS
20158 test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML="false"
20160 esac
20162 GENHTML=$ac_cv_path_GENHTML
20163 if test -n "$GENHTML"; then
20164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
20165 $as_echo "$GENHTML" >&6; }
20166 else
20167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20168 $as_echo "no" >&6; }
20172 if test "x$GENHTML" = "xfalse"; then
20173 as_fn_error $? "genhtml not found" "$LINENO" 5
20176 # Set flags needed for gcov
20177 GCOV_CFLAGS="-O0 -ggdb3 -fprofile-arcs -ftest-coverage"
20178 GCOV_CXXFLAGS="-O0 -ggdb3 -fprofile-arcs -ftest-coverage"
20179 GCOV_LIBS="-lgcov"
20183 fi # enable_coverage
20185 if test "x$enable_coverage" = "xyes"; then
20186 WITH_GCOV_TRUE=
20187 WITH_GCOV_FALSE='#'
20188 else
20189 WITH_GCOV_TRUE='#'
20190 WITH_GCOV_FALSE=
20194 # Produce these files, in addition to config.h.
20195 ac_config_files="$ac_config_files Makefile libpcre.pc libpcre16.pc libpcre32.pc libpcreposix.pc libpcrecpp.pc pcre-config pcre.h pcre_stringpiece.h pcrecpparg.h"
20198 # Make the generated script files executable.
20199 ac_config_commands="$ac_config_commands script-chmod"
20202 # Make sure that pcre_chartables.c is removed in case the method for
20203 # creating it was changed by reconfiguration.
20204 ac_config_commands="$ac_config_commands delete-old-chartables"
20207 cat >confcache <<\_ACEOF
20208 # This file is a shell script that caches the results of configure
20209 # tests run on this system so they can be shared between configure
20210 # scripts and configure runs, see configure's option --config-cache.
20211 # It is not useful on other systems. If it contains results you don't
20212 # want to keep, you may remove or edit it.
20214 # config.status only pays attention to the cache file if you give it
20215 # the --recheck option to rerun configure.
20217 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20218 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20219 # following values.
20221 _ACEOF
20223 # The following way of writing the cache mishandles newlines in values,
20224 # but we know of no workaround that is simple, portable, and efficient.
20225 # So, we kill variables containing newlines.
20226 # Ultrix sh set writes to stderr and can't be redirected directly,
20227 # and sets the high bit in the cache file unless we assign to the vars.
20229 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20230 eval ac_val=\$$ac_var
20231 case $ac_val in #(
20232 *${as_nl}*)
20233 case $ac_var in #(
20234 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20235 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20236 esac
20237 case $ac_var in #(
20238 _ | IFS | as_nl) ;; #(
20239 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20240 *) { eval $ac_var=; unset $ac_var;} ;;
20241 esac ;;
20242 esac
20243 done
20245 (set) 2>&1 |
20246 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20247 *${as_nl}ac_space=\ *)
20248 # `set' does not quote correctly, so add quotes: double-quote
20249 # substitution turns \\\\ into \\, and sed turns \\ into \.
20250 sed -n \
20251 "s/'/'\\\\''/g;
20252 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20253 ;; #(
20255 # `set' quotes correctly as required by POSIX, so do not add quotes.
20256 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20258 esac |
20259 sort
20261 sed '
20262 /^ac_cv_env_/b end
20263 t clear
20264 :clear
20265 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20266 t end
20267 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20268 :end' >>confcache
20269 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20270 if test -w "$cache_file"; then
20271 if test "x$cache_file" != "x/dev/null"; then
20272 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20273 $as_echo "$as_me: updating cache $cache_file" >&6;}
20274 if test ! -f "$cache_file" || test -h "$cache_file"; then
20275 cat confcache >"$cache_file"
20276 else
20277 case $cache_file in #(
20278 */* | ?:*)
20279 mv -f confcache "$cache_file"$$ &&
20280 mv -f "$cache_file"$$ "$cache_file" ;; #(
20282 mv -f confcache "$cache_file" ;;
20283 esac
20286 else
20287 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20288 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20291 rm -f confcache
20293 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20294 # Let make expand exec_prefix.
20295 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20297 DEFS=-DHAVE_CONFIG_H
20299 ac_libobjs=
20300 ac_ltlibobjs=
20302 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20303 # 1. Remove the extension, and $U if already installed.
20304 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20305 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20306 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20307 # will be set to the directory where LIBOBJS objects are built.
20308 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20309 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20310 done
20311 LIBOBJS=$ac_libobjs
20313 LTLIBOBJS=$ac_ltlibobjs
20316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20317 $as_echo_n "checking that generated files are newer than configure... " >&6; }
20318 if test -n "$am_sleep_pid"; then
20319 # Hide warnings about reused PIDs.
20320 wait $am_sleep_pid 2>/dev/null
20322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
20323 $as_echo "done" >&6; }
20324 if test -n "$EXEEXT"; then
20325 am__EXEEXT_TRUE=
20326 am__EXEEXT_FALSE='#'
20327 else
20328 am__EXEEXT_TRUE='#'
20329 am__EXEEXT_FALSE=
20332 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20333 as_fn_error $? "conditional \"AMDEP\" was never defined.
20334 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20336 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20337 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20338 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20340 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20341 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20342 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20344 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20345 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
20346 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20348 if test -z "${WITH_PCRE8_TRUE}" && test -z "${WITH_PCRE8_FALSE}"; then
20349 as_fn_error $? "conditional \"WITH_PCRE8\" was never defined.
20350 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20352 if test -z "${WITH_PCRE16_TRUE}" && test -z "${WITH_PCRE16_FALSE}"; then
20353 as_fn_error $? "conditional \"WITH_PCRE16\" was never defined.
20354 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20356 if test -z "${WITH_PCRE32_TRUE}" && test -z "${WITH_PCRE32_FALSE}"; then
20357 as_fn_error $? "conditional \"WITH_PCRE32\" was never defined.
20358 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20360 if test -z "${WITH_PCRE_CPP_TRUE}" && test -z "${WITH_PCRE_CPP_FALSE}"; then
20361 as_fn_error $? "conditional \"WITH_PCRE_CPP\" was never defined.
20362 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20364 if test -z "${WITH_REBUILD_CHARTABLES_TRUE}" && test -z "${WITH_REBUILD_CHARTABLES_FALSE}"; then
20365 as_fn_error $? "conditional \"WITH_REBUILD_CHARTABLES\" was never defined.
20366 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20368 if test -z "${WITH_JIT_TRUE}" && test -z "${WITH_JIT_FALSE}"; then
20369 as_fn_error $? "conditional \"WITH_JIT\" was never defined.
20370 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20372 if test -z "${WITH_UTF_TRUE}" && test -z "${WITH_UTF_FALSE}"; then
20373 as_fn_error $? "conditional \"WITH_UTF\" was never defined.
20374 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20376 if test -z "${WITH_VALGRIND_TRUE}" && test -z "${WITH_VALGRIND_FALSE}"; then
20377 as_fn_error $? "conditional \"WITH_VALGRIND\" was never defined.
20378 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20380 if test -z "${WITH_GCOV_TRUE}" && test -z "${WITH_GCOV_FALSE}"; then
20381 as_fn_error $? "conditional \"WITH_GCOV\" was never defined.
20382 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20385 : "${CONFIG_STATUS=./config.status}"
20386 ac_write_fail=0
20387 ac_clean_files_save=$ac_clean_files
20388 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20389 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20390 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20391 as_write_fail=0
20392 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20393 #! $SHELL
20394 # Generated by $as_me.
20395 # Run this file to recreate the current configuration.
20396 # Compiler output produced by configure, useful for debugging
20397 # configure, is in config.log if it exists.
20399 debug=false
20400 ac_cs_recheck=false
20401 ac_cs_silent=false
20403 SHELL=\${CONFIG_SHELL-$SHELL}
20404 export SHELL
20405 _ASEOF
20406 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20407 ## -------------------- ##
20408 ## M4sh Initialization. ##
20409 ## -------------------- ##
20411 # Be more Bourne compatible
20412 DUALCASE=1; export DUALCASE # for MKS sh
20413 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20414 emulate sh
20415 NULLCMD=:
20416 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20417 # is contrary to our usage. Disable this feature.
20418 alias -g '${1+"$@"}'='"$@"'
20419 setopt NO_GLOB_SUBST
20420 else
20421 case `(set -o) 2>/dev/null` in #(
20422 *posix*) :
20423 set -o posix ;; #(
20424 *) :
20426 esac
20430 as_nl='
20432 export as_nl
20433 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20434 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20435 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20436 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20437 # Prefer a ksh shell builtin over an external printf program on Solaris,
20438 # but without wasting forks for bash or zsh.
20439 if test -z "$BASH_VERSION$ZSH_VERSION" \
20440 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20441 as_echo='print -r --'
20442 as_echo_n='print -rn --'
20443 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20444 as_echo='printf %s\n'
20445 as_echo_n='printf %s'
20446 else
20447 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20448 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20449 as_echo_n='/usr/ucb/echo -n'
20450 else
20451 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20452 as_echo_n_body='eval
20453 arg=$1;
20454 case $arg in #(
20455 *"$as_nl"*)
20456 expr "X$arg" : "X\\(.*\\)$as_nl";
20457 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20458 esac;
20459 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20461 export as_echo_n_body
20462 as_echo_n='sh -c $as_echo_n_body as_echo'
20464 export as_echo_body
20465 as_echo='sh -c $as_echo_body as_echo'
20468 # The user is always right.
20469 if test "${PATH_SEPARATOR+set}" != set; then
20470 PATH_SEPARATOR=:
20471 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20472 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20473 PATH_SEPARATOR=';'
20478 # IFS
20479 # We need space, tab and new line, in precisely that order. Quoting is
20480 # there to prevent editors from complaining about space-tab.
20481 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20482 # splitting by setting IFS to empty value.)
20483 IFS=" "" $as_nl"
20485 # Find who we are. Look in the path if we contain no directory separator.
20486 as_myself=
20487 case $0 in #((
20488 *[\\/]* ) as_myself=$0 ;;
20489 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20490 for as_dir in $PATH
20492 IFS=$as_save_IFS
20493 test -z "$as_dir" && as_dir=.
20494 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20495 done
20496 IFS=$as_save_IFS
20499 esac
20500 # We did not find ourselves, most probably we were run as `sh COMMAND'
20501 # in which case we are not to be found in the path.
20502 if test "x$as_myself" = x; then
20503 as_myself=$0
20505 if test ! -f "$as_myself"; then
20506 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20507 exit 1
20510 # Unset variables that we do not need and which cause bugs (e.g. in
20511 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20512 # suppresses any "Segmentation fault" message there. '((' could
20513 # trigger a bug in pdksh 5.2.14.
20514 for as_var in BASH_ENV ENV MAIL MAILPATH
20515 do eval test x\${$as_var+set} = xset \
20516 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20517 done
20518 PS1='$ '
20519 PS2='> '
20520 PS4='+ '
20522 # NLS nuisances.
20523 LC_ALL=C
20524 export LC_ALL
20525 LANGUAGE=C
20526 export LANGUAGE
20528 # CDPATH.
20529 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20532 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20533 # ----------------------------------------
20534 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20535 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20536 # script with STATUS, using 1 if that was 0.
20537 as_fn_error ()
20539 as_status=$1; test $as_status -eq 0 && as_status=1
20540 if test "$4"; then
20541 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20542 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20544 $as_echo "$as_me: error: $2" >&2
20545 as_fn_exit $as_status
20546 } # as_fn_error
20549 # as_fn_set_status STATUS
20550 # -----------------------
20551 # Set $? to STATUS, without forking.
20552 as_fn_set_status ()
20554 return $1
20555 } # as_fn_set_status
20557 # as_fn_exit STATUS
20558 # -----------------
20559 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20560 as_fn_exit ()
20562 set +e
20563 as_fn_set_status $1
20564 exit $1
20565 } # as_fn_exit
20567 # as_fn_unset VAR
20568 # ---------------
20569 # Portably unset VAR.
20570 as_fn_unset ()
20572 { eval $1=; unset $1;}
20574 as_unset=as_fn_unset
20575 # as_fn_append VAR VALUE
20576 # ----------------------
20577 # Append the text in VALUE to the end of the definition contained in VAR. Take
20578 # advantage of any shell optimizations that allow amortized linear growth over
20579 # repeated appends, instead of the typical quadratic growth present in naive
20580 # implementations.
20581 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20582 eval 'as_fn_append ()
20584 eval $1+=\$2
20586 else
20587 as_fn_append ()
20589 eval $1=\$$1\$2
20591 fi # as_fn_append
20593 # as_fn_arith ARG...
20594 # ------------------
20595 # Perform arithmetic evaluation on the ARGs, and store the result in the
20596 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20597 # must be portable across $(()) and expr.
20598 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20599 eval 'as_fn_arith ()
20601 as_val=$(( $* ))
20603 else
20604 as_fn_arith ()
20606 as_val=`expr "$@" || test $? -eq 1`
20608 fi # as_fn_arith
20611 if expr a : '\(a\)' >/dev/null 2>&1 &&
20612 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20613 as_expr=expr
20614 else
20615 as_expr=false
20618 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20619 as_basename=basename
20620 else
20621 as_basename=false
20624 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20625 as_dirname=dirname
20626 else
20627 as_dirname=false
20630 as_me=`$as_basename -- "$0" ||
20631 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20632 X"$0" : 'X\(//\)$' \| \
20633 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20634 $as_echo X/"$0" |
20635 sed '/^.*\/\([^/][^/]*\)\/*$/{
20636 s//\1/
20639 /^X\/\(\/\/\)$/{
20640 s//\1/
20643 /^X\/\(\/\).*/{
20644 s//\1/
20647 s/.*/./; q'`
20649 # Avoid depending upon Character Ranges.
20650 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20651 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20652 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20653 as_cr_digits='0123456789'
20654 as_cr_alnum=$as_cr_Letters$as_cr_digits
20656 ECHO_C= ECHO_N= ECHO_T=
20657 case `echo -n x` in #(((((
20658 -n*)
20659 case `echo 'xy\c'` in
20660 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20661 xy) ECHO_C='\c';;
20662 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20663 ECHO_T=' ';;
20664 esac;;
20666 ECHO_N='-n';;
20667 esac
20669 rm -f conf$$ conf$$.exe conf$$.file
20670 if test -d conf$$.dir; then
20671 rm -f conf$$.dir/conf$$.file
20672 else
20673 rm -f conf$$.dir
20674 mkdir conf$$.dir 2>/dev/null
20676 if (echo >conf$$.file) 2>/dev/null; then
20677 if ln -s conf$$.file conf$$ 2>/dev/null; then
20678 as_ln_s='ln -s'
20679 # ... but there are two gotchas:
20680 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20681 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20682 # In both cases, we have to default to `cp -pR'.
20683 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20684 as_ln_s='cp -pR'
20685 elif ln conf$$.file conf$$ 2>/dev/null; then
20686 as_ln_s=ln
20687 else
20688 as_ln_s='cp -pR'
20690 else
20691 as_ln_s='cp -pR'
20693 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20694 rmdir conf$$.dir 2>/dev/null
20697 # as_fn_mkdir_p
20698 # -------------
20699 # Create "$as_dir" as a directory, including parents if necessary.
20700 as_fn_mkdir_p ()
20703 case $as_dir in #(
20704 -*) as_dir=./$as_dir;;
20705 esac
20706 test -d "$as_dir" || eval $as_mkdir_p || {
20707 as_dirs=
20708 while :; do
20709 case $as_dir in #(
20710 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20711 *) as_qdir=$as_dir;;
20712 esac
20713 as_dirs="'$as_qdir' $as_dirs"
20714 as_dir=`$as_dirname -- "$as_dir" ||
20715 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20716 X"$as_dir" : 'X\(//\)[^/]' \| \
20717 X"$as_dir" : 'X\(//\)$' \| \
20718 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20719 $as_echo X"$as_dir" |
20720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20721 s//\1/
20724 /^X\(\/\/\)[^/].*/{
20725 s//\1/
20728 /^X\(\/\/\)$/{
20729 s//\1/
20732 /^X\(\/\).*/{
20733 s//\1/
20736 s/.*/./; q'`
20737 test -d "$as_dir" && break
20738 done
20739 test -z "$as_dirs" || eval "mkdir $as_dirs"
20740 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20743 } # as_fn_mkdir_p
20744 if mkdir -p . 2>/dev/null; then
20745 as_mkdir_p='mkdir -p "$as_dir"'
20746 else
20747 test -d ./-p && rmdir ./-p
20748 as_mkdir_p=false
20752 # as_fn_executable_p FILE
20753 # -----------------------
20754 # Test if FILE is an executable regular file.
20755 as_fn_executable_p ()
20757 test -f "$1" && test -x "$1"
20758 } # as_fn_executable_p
20759 as_test_x='test -x'
20760 as_executable_p=as_fn_executable_p
20762 # Sed expression to map a string onto a valid CPP name.
20763 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20765 # Sed expression to map a string onto a valid variable name.
20766 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20769 exec 6>&1
20770 ## ----------------------------------- ##
20771 ## Main body of $CONFIG_STATUS script. ##
20772 ## ----------------------------------- ##
20773 _ASEOF
20774 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20776 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20777 # Save the log message, to keep $0 and so on meaningful, and to
20778 # report actual input values of CONFIG_FILES etc. instead of their
20779 # values after options handling.
20780 ac_log="
20781 This file was extended by PCRE $as_me 8.44, which was
20782 generated by GNU Autoconf 2.69. Invocation command line was
20784 CONFIG_FILES = $CONFIG_FILES
20785 CONFIG_HEADERS = $CONFIG_HEADERS
20786 CONFIG_LINKS = $CONFIG_LINKS
20787 CONFIG_COMMANDS = $CONFIG_COMMANDS
20788 $ $0 $@
20790 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20793 _ACEOF
20795 case $ac_config_files in *"
20796 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20797 esac
20799 case $ac_config_headers in *"
20800 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20801 esac
20804 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20805 # Files that config.status was made for.
20806 config_files="$ac_config_files"
20807 config_headers="$ac_config_headers"
20808 config_commands="$ac_config_commands"
20810 _ACEOF
20812 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20813 ac_cs_usage="\
20814 \`$as_me' instantiates files and other configuration actions
20815 from templates according to the current configuration. Unless the files
20816 and actions are specified as TAGs, all are instantiated by default.
20818 Usage: $0 [OPTION]... [TAG]...
20820 -h, --help print this help, then exit
20821 -V, --version print version number and configuration settings, then exit
20822 --config print configuration, then exit
20823 -q, --quiet, --silent
20824 do not print progress messages
20825 -d, --debug don't remove temporary files
20826 --recheck update $as_me by reconfiguring in the same conditions
20827 --file=FILE[:TEMPLATE]
20828 instantiate the configuration file FILE
20829 --header=FILE[:TEMPLATE]
20830 instantiate the configuration header FILE
20832 Configuration files:
20833 $config_files
20835 Configuration headers:
20836 $config_headers
20838 Configuration commands:
20839 $config_commands
20841 Report bugs to the package provider."
20843 _ACEOF
20844 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20845 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20846 ac_cs_version="\\
20847 PCRE config.status 8.44
20848 configured by $0, generated by GNU Autoconf 2.69,
20849 with options \\"\$ac_cs_config\\"
20851 Copyright (C) 2012 Free Software Foundation, Inc.
20852 This config.status script is free software; the Free Software Foundation
20853 gives unlimited permission to copy, distribute and modify it."
20855 ac_pwd='$ac_pwd'
20856 srcdir='$srcdir'
20857 INSTALL='$INSTALL'
20858 MKDIR_P='$MKDIR_P'
20859 AWK='$AWK'
20860 test -n "\$AWK" || AWK=awk
20861 _ACEOF
20863 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20864 # The default lists apply if the user does not specify any file.
20865 ac_need_defaults=:
20866 while test $# != 0
20868 case $1 in
20869 --*=?*)
20870 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20871 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20872 ac_shift=:
20874 --*=)
20875 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20876 ac_optarg=
20877 ac_shift=:
20880 ac_option=$1
20881 ac_optarg=$2
20882 ac_shift=shift
20884 esac
20886 case $ac_option in
20887 # Handling of the options.
20888 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20889 ac_cs_recheck=: ;;
20890 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20891 $as_echo "$ac_cs_version"; exit ;;
20892 --config | --confi | --conf | --con | --co | --c )
20893 $as_echo "$ac_cs_config"; exit ;;
20894 --debug | --debu | --deb | --de | --d | -d )
20895 debug=: ;;
20896 --file | --fil | --fi | --f )
20897 $ac_shift
20898 case $ac_optarg in
20899 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20900 '') as_fn_error $? "missing file argument" ;;
20901 esac
20902 as_fn_append CONFIG_FILES " '$ac_optarg'"
20903 ac_need_defaults=false;;
20904 --header | --heade | --head | --hea )
20905 $ac_shift
20906 case $ac_optarg in
20907 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20908 esac
20909 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20910 ac_need_defaults=false;;
20911 --he | --h)
20912 # Conflict between --help and --header
20913 as_fn_error $? "ambiguous option: \`$1'
20914 Try \`$0 --help' for more information.";;
20915 --help | --hel | -h )
20916 $as_echo "$ac_cs_usage"; exit ;;
20917 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20918 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20919 ac_cs_silent=: ;;
20921 # This is an error.
20922 -*) as_fn_error $? "unrecognized option: \`$1'
20923 Try \`$0 --help' for more information." ;;
20925 *) as_fn_append ac_config_targets " $1"
20926 ac_need_defaults=false ;;
20928 esac
20929 shift
20930 done
20932 ac_configure_extra_args=
20934 if $ac_cs_silent; then
20935 exec 6>/dev/null
20936 ac_configure_extra_args="$ac_configure_extra_args --silent"
20939 _ACEOF
20940 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20941 if \$ac_cs_recheck; then
20942 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20943 shift
20944 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20945 CONFIG_SHELL='$SHELL'
20946 export CONFIG_SHELL
20947 exec "\$@"
20950 _ACEOF
20951 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20952 exec 5>>config.log
20954 echo
20955 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20956 ## Running $as_me. ##
20957 _ASBOX
20958 $as_echo "$ac_log"
20959 } >&5
20961 _ACEOF
20962 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20964 # INIT-COMMANDS
20966 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20969 # The HP-UX ksh and POSIX shell print the target directory to stdout
20970 # if CDPATH is set.
20971 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20973 sed_quote_subst='$sed_quote_subst'
20974 double_quote_subst='$double_quote_subst'
20975 delay_variable_subst='$delay_variable_subst'
20976 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
20977 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20978 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20979 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20980 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20981 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20982 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20983 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20984 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20985 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20986 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20987 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20988 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20989 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20990 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20991 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20992 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20993 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20994 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20995 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20996 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20997 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20998 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20999 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21000 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21001 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21002 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21003 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21004 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21005 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21006 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21007 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21008 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21009 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21010 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21011 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21012 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21013 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21014 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21015 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21016 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21017 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21018 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21019 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
21020 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21021 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21022 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21023 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21024 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21025 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21026 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21027 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21028 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21029 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21030 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21031 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21032 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21033 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21034 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21035 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21036 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"`'
21037 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21038 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21039 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21040 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21041 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21042 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21043 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21044 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21045 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21046 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21047 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21048 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21049 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21050 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21051 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21052 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21053 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21054 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21055 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21056 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21057 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21058 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21059 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21060 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21061 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21062 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21063 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21064 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21065 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21066 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21067 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21068 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21069 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21070 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21071 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21072 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21073 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21074 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21075 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21076 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21077 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21078 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21079 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21080 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21081 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21082 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21083 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21084 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21085 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21086 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21087 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21088 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21089 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21090 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21091 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21092 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21093 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21094 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21095 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21096 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21097 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21098 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21099 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21100 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21101 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21102 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21103 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21104 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21105 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
21106 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
21107 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21108 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21109 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21110 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21111 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21112 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21113 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
21114 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
21115 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
21116 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
21117 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
21118 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
21119 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
21120 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
21121 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21122 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21123 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
21124 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
21125 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
21126 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
21127 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
21128 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
21129 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
21130 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
21131 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
21132 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21133 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21134 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
21135 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21136 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21137 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21138 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21139 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21140 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21141 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
21142 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21143 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21144 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21145 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
21146 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
21147 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
21148 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
21149 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
21150 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
21151 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
21152 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
21153 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
21154 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21155 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21156 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21157 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21158 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21159 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
21160 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
21161 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
21162 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21163 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21164 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
21165 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
21166 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
21168 LTCC='$LTCC'
21169 LTCFLAGS='$LTCFLAGS'
21170 compiler='$compiler_DEFAULT'
21172 # A function that is used when there is no print builtin or printf.
21173 func_fallback_echo ()
21175 eval 'cat <<_LTECHO_EOF
21177 _LTECHO_EOF'
21180 # Quote evaled strings.
21181 for var in AS \
21182 DLLTOOL \
21183 OBJDUMP \
21184 SHELL \
21185 ECHO \
21186 PATH_SEPARATOR \
21187 SED \
21188 GREP \
21189 EGREP \
21190 FGREP \
21191 LD \
21192 NM \
21193 LN_S \
21194 lt_SP2NL \
21195 lt_NL2SP \
21196 reload_flag \
21197 deplibs_check_method \
21198 file_magic_cmd \
21199 file_magic_glob \
21200 want_nocaseglob \
21201 sharedlib_from_linklib_cmd \
21202 AR \
21203 archiver_list_spec \
21204 STRIP \
21205 RANLIB \
21206 CC \
21207 CFLAGS \
21208 compiler \
21209 lt_cv_sys_global_symbol_pipe \
21210 lt_cv_sys_global_symbol_to_cdecl \
21211 lt_cv_sys_global_symbol_to_import \
21212 lt_cv_sys_global_symbol_to_c_name_address \
21213 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21214 lt_cv_nm_interface \
21215 nm_file_list_spec \
21216 lt_cv_truncate_bin \
21217 lt_prog_compiler_no_builtin_flag \
21218 lt_prog_compiler_pic \
21219 lt_prog_compiler_wl \
21220 lt_prog_compiler_static \
21221 lt_cv_prog_compiler_c_o \
21222 need_locks \
21223 MANIFEST_TOOL \
21224 DSYMUTIL \
21225 NMEDIT \
21226 LIPO \
21227 OTOOL \
21228 OTOOL64 \
21229 shrext_cmds \
21230 export_dynamic_flag_spec \
21231 whole_archive_flag_spec \
21232 compiler_needs_object \
21233 with_gnu_ld \
21234 allow_undefined_flag \
21235 no_undefined_flag \
21236 hardcode_libdir_flag_spec \
21237 hardcode_libdir_separator \
21238 exclude_expsyms \
21239 include_expsyms \
21240 file_list_spec \
21241 variables_saved_for_relink \
21242 libname_spec \
21243 library_names_spec \
21244 soname_spec \
21245 install_override_mode \
21246 finish_eval \
21247 old_striplib \
21248 striplib \
21249 compiler_lib_search_dirs \
21250 predep_objects \
21251 postdep_objects \
21252 predeps \
21253 postdeps \
21254 compiler_lib_search_path \
21255 LD_CXX \
21256 reload_flag_CXX \
21257 compiler_CXX \
21258 lt_prog_compiler_no_builtin_flag_CXX \
21259 lt_prog_compiler_pic_CXX \
21260 lt_prog_compiler_wl_CXX \
21261 lt_prog_compiler_static_CXX \
21262 lt_cv_prog_compiler_c_o_CXX \
21263 export_dynamic_flag_spec_CXX \
21264 whole_archive_flag_spec_CXX \
21265 compiler_needs_object_CXX \
21266 with_gnu_ld_CXX \
21267 allow_undefined_flag_CXX \
21268 no_undefined_flag_CXX \
21269 hardcode_libdir_flag_spec_CXX \
21270 hardcode_libdir_separator_CXX \
21271 exclude_expsyms_CXX \
21272 include_expsyms_CXX \
21273 file_list_spec_CXX \
21274 compiler_lib_search_dirs_CXX \
21275 predep_objects_CXX \
21276 postdep_objects_CXX \
21277 predeps_CXX \
21278 postdeps_CXX \
21279 compiler_lib_search_path_CXX; do
21280 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21281 *[\\\\\\\`\\"\\\$]*)
21282 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21285 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21287 esac
21288 done
21290 # Double-quote double-evaled strings.
21291 for var in reload_cmds \
21292 old_postinstall_cmds \
21293 old_postuninstall_cmds \
21294 old_archive_cmds \
21295 extract_expsyms_cmds \
21296 old_archive_from_new_cmds \
21297 old_archive_from_expsyms_cmds \
21298 archive_cmds \
21299 archive_expsym_cmds \
21300 module_cmds \
21301 module_expsym_cmds \
21302 export_symbols_cmds \
21303 prelink_cmds \
21304 postlink_cmds \
21305 postinstall_cmds \
21306 postuninstall_cmds \
21307 finish_cmds \
21308 sys_lib_search_path_spec \
21309 configure_time_dlsearch_path \
21310 configure_time_lt_sys_library_path \
21311 reload_cmds_CXX \
21312 old_archive_cmds_CXX \
21313 old_archive_from_new_cmds_CXX \
21314 old_archive_from_expsyms_cmds_CXX \
21315 archive_cmds_CXX \
21316 archive_expsym_cmds_CXX \
21317 module_cmds_CXX \
21318 module_expsym_cmds_CXX \
21319 export_symbols_cmds_CXX \
21320 prelink_cmds_CXX \
21321 postlink_cmds_CXX; do
21322 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21323 *[\\\\\\\`\\"\\\$]*)
21324 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21327 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21329 esac
21330 done
21332 ac_aux_dir='$ac_aux_dir'
21334 # See if we are running on zsh, and set the options that allow our
21335 # commands through without removal of \ escapes INIT.
21336 if test -n "\${ZSH_VERSION+set}"; then
21337 setopt NO_GLOB_SUBST
21341 PACKAGE='$PACKAGE'
21342 VERSION='$VERSION'
21343 RM='$RM'
21344 ofile='$ofile'
21351 _ACEOF
21353 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21355 # Handling of arguments.
21356 for ac_config_target in $ac_config_targets
21358 case $ac_config_target in
21359 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21360 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21361 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21362 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21363 "libpcre.pc") CONFIG_FILES="$CONFIG_FILES libpcre.pc" ;;
21364 "libpcre16.pc") CONFIG_FILES="$CONFIG_FILES libpcre16.pc" ;;
21365 "libpcre32.pc") CONFIG_FILES="$CONFIG_FILES libpcre32.pc" ;;
21366 "libpcreposix.pc") CONFIG_FILES="$CONFIG_FILES libpcreposix.pc" ;;
21367 "libpcrecpp.pc") CONFIG_FILES="$CONFIG_FILES libpcrecpp.pc" ;;
21368 "pcre-config") CONFIG_FILES="$CONFIG_FILES pcre-config" ;;
21369 "pcre.h") CONFIG_FILES="$CONFIG_FILES pcre.h" ;;
21370 "pcre_stringpiece.h") CONFIG_FILES="$CONFIG_FILES pcre_stringpiece.h" ;;
21371 "pcrecpparg.h") CONFIG_FILES="$CONFIG_FILES pcrecpparg.h" ;;
21372 "script-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS script-chmod" ;;
21373 "delete-old-chartables") CONFIG_COMMANDS="$CONFIG_COMMANDS delete-old-chartables" ;;
21375 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21376 esac
21377 done
21380 # If the user did not use the arguments to specify the items to instantiate,
21381 # then the envvar interface is used. Set only those that are not.
21382 # We use the long form for the default assignment because of an extremely
21383 # bizarre bug on SunOS 4.1.3.
21384 if $ac_need_defaults; then
21385 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21386 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21387 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21390 # Have a temporary directory for convenience. Make it in the build tree
21391 # simply because there is no reason against having it here, and in addition,
21392 # creating and moving files from /tmp can sometimes cause problems.
21393 # Hook for its removal unless debugging.
21394 # Note that there is a small window in which the directory will not be cleaned:
21395 # after its creation but before its name has been assigned to `$tmp'.
21396 $debug ||
21398 tmp= ac_tmp=
21399 trap 'exit_status=$?
21400 : "${ac_tmp:=$tmp}"
21401 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21403 trap 'as_fn_exit 1' 1 2 13 15
21405 # Create a (secure) tmp directory for tmp files.
21408 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21409 test -d "$tmp"
21410 } ||
21412 tmp=./conf$$-$RANDOM
21413 (umask 077 && mkdir "$tmp")
21414 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21415 ac_tmp=$tmp
21417 # Set up the scripts for CONFIG_FILES section.
21418 # No need to generate them if there are no CONFIG_FILES.
21419 # This happens for instance with `./config.status config.h'.
21420 if test -n "$CONFIG_FILES"; then
21423 ac_cr=`echo X | tr X '\015'`
21424 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21425 # But we know of no other shell where ac_cr would be empty at this
21426 # point, so we can use a bashism as a fallback.
21427 if test "x$ac_cr" = x; then
21428 eval ac_cr=\$\'\\r\'
21430 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21431 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21432 ac_cs_awk_cr='\\r'
21433 else
21434 ac_cs_awk_cr=$ac_cr
21437 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21438 _ACEOF
21442 echo "cat >conf$$subs.awk <<_ACEOF" &&
21443 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21444 echo "_ACEOF"
21445 } >conf$$subs.sh ||
21446 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21447 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21448 ac_delim='%!_!# '
21449 for ac_last_try in false false false false false :; do
21450 . ./conf$$subs.sh ||
21451 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21453 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21454 if test $ac_delim_n = $ac_delim_num; then
21455 break
21456 elif $ac_last_try; then
21457 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21458 else
21459 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21461 done
21462 rm -f conf$$subs.sh
21464 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21465 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21466 _ACEOF
21467 sed -n '
21469 s/^/S["/; s/!.*/"]=/
21472 s/^[^!]*!//
21473 :repl
21474 t repl
21475 s/'"$ac_delim"'$//
21476 t delim
21479 s/\(.\{148\}\)..*/\1/
21480 t more1
21481 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21484 b repl
21485 :more1
21486 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21489 s/.\{148\}//
21490 t nl
21491 :delim
21493 s/\(.\{148\}\)..*/\1/
21494 t more2
21495 s/["\\]/\\&/g; s/^/"/; s/$/"/
21498 :more2
21499 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21502 s/.\{148\}//
21503 t delim
21504 ' <conf$$subs.awk | sed '
21505 /^[^""]/{
21507 s/\n//
21509 ' >>$CONFIG_STATUS || ac_write_fail=1
21510 rm -f conf$$subs.awk
21511 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21512 _ACAWK
21513 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21514 for (key in S) S_is_set[key] = 1
21515 FS = "\a"
21519 line = $ 0
21520 nfields = split(line, field, "@")
21521 substed = 0
21522 len = length(field[1])
21523 for (i = 2; i < nfields; i++) {
21524 key = field[i]
21525 keylen = length(key)
21526 if (S_is_set[key]) {
21527 value = S[key]
21528 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21529 len += length(value) + length(field[++i])
21530 substed = 1
21531 } else
21532 len += 1 + keylen
21535 print line
21538 _ACAWK
21539 _ACEOF
21540 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21541 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21542 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21543 else
21545 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21546 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21547 _ACEOF
21549 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21550 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21551 # trailing colons and then remove the whole line if VPATH becomes empty
21552 # (actually we leave an empty line to preserve line numbers).
21553 if test "x$srcdir" = x.; then
21554 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21556 s///
21557 s/^/:/
21558 s/[ ]*$/:/
21559 s/:\$(srcdir):/:/g
21560 s/:\${srcdir}:/:/g
21561 s/:@srcdir@:/:/g
21562 s/^:*//
21563 s/:*$//
21565 s/\(=[ ]*\).*/\1/
21567 s/\n//
21568 s/^[^=]*=[ ]*$//
21572 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21573 fi # test -n "$CONFIG_FILES"
21575 # Set up the scripts for CONFIG_HEADERS section.
21576 # No need to generate them if there are no CONFIG_HEADERS.
21577 # This happens for instance with `./config.status Makefile'.
21578 if test -n "$CONFIG_HEADERS"; then
21579 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21580 BEGIN {
21581 _ACEOF
21583 # Transform confdefs.h into an awk script `defines.awk', embedded as
21584 # here-document in config.status, that substitutes the proper values into
21585 # config.h.in to produce config.h.
21587 # Create a delimiter string that does not exist in confdefs.h, to ease
21588 # handling of long lines.
21589 ac_delim='%!_!# '
21590 for ac_last_try in false false :; do
21591 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21592 if test -z "$ac_tt"; then
21593 break
21594 elif $ac_last_try; then
21595 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21596 else
21597 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21599 done
21601 # For the awk script, D is an array of macro values keyed by name,
21602 # likewise P contains macro parameters if any. Preserve backslash
21603 # newline sequences.
21605 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21606 sed -n '
21607 s/.\{148\}/&'"$ac_delim"'/g
21608 t rset
21609 :rset
21610 s/^[ ]*#[ ]*define[ ][ ]*/ /
21611 t def
21613 :def
21614 s/\\$//
21615 t bsnl
21616 s/["\\]/\\&/g
21617 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21618 D["\1"]=" \3"/p
21619 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21621 :bsnl
21622 s/["\\]/\\&/g
21623 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21624 D["\1"]=" \3\\\\\\n"\\/p
21625 t cont
21626 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21627 t cont
21629 :cont
21631 s/.\{148\}/&'"$ac_delim"'/g
21632 t clear
21633 :clear
21634 s/\\$//
21635 t bsnlc
21636 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21638 :bsnlc
21639 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21640 b cont
21641 ' <confdefs.h | sed '
21642 s/'"$ac_delim"'/"\\\
21643 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21645 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21646 for (key in D) D_is_set[key] = 1
21647 FS = "\a"
21649 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21650 line = \$ 0
21651 split(line, arg, " ")
21652 if (arg[1] == "#") {
21653 defundef = arg[2]
21654 mac1 = arg[3]
21655 } else {
21656 defundef = substr(arg[1], 2)
21657 mac1 = arg[2]
21659 split(mac1, mac2, "(") #)
21660 macro = mac2[1]
21661 prefix = substr(line, 1, index(line, defundef) - 1)
21662 if (D_is_set[macro]) {
21663 # Preserve the white space surrounding the "#".
21664 print prefix "define", macro P[macro] D[macro]
21665 next
21666 } else {
21667 # Replace #undef with comments. This is necessary, for example,
21668 # in the case of _POSIX_SOURCE, which is predefined and required
21669 # on some systems where configure will not decide to define it.
21670 if (defundef == "undef") {
21671 print "/*", prefix defundef, macro, "*/"
21672 next
21676 { print }
21677 _ACAWK
21678 _ACEOF
21679 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21680 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21681 fi # test -n "$CONFIG_HEADERS"
21684 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21685 shift
21686 for ac_tag
21688 case $ac_tag in
21689 :[FHLC]) ac_mode=$ac_tag; continue;;
21690 esac
21691 case $ac_mode$ac_tag in
21692 :[FHL]*:*);;
21693 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21694 :[FH]-) ac_tag=-:-;;
21695 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21696 esac
21697 ac_save_IFS=$IFS
21698 IFS=:
21699 set x $ac_tag
21700 IFS=$ac_save_IFS
21701 shift
21702 ac_file=$1
21703 shift
21705 case $ac_mode in
21706 :L) ac_source=$1;;
21707 :[FH])
21708 ac_file_inputs=
21709 for ac_f
21711 case $ac_f in
21712 -) ac_f="$ac_tmp/stdin";;
21713 *) # Look for the file first in the build tree, then in the source tree
21714 # (if the path is not absolute). The absolute path cannot be DOS-style,
21715 # because $ac_f cannot contain `:'.
21716 test -f "$ac_f" ||
21717 case $ac_f in
21718 [\\/$]*) false;;
21719 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21720 esac ||
21721 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21722 esac
21723 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21724 as_fn_append ac_file_inputs " '$ac_f'"
21725 done
21727 # Let's still pretend it is `configure' which instantiates (i.e., don't
21728 # use $as_me), people would be surprised to read:
21729 # /* config.h. Generated by config.status. */
21730 configure_input='Generated from '`
21731 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21732 `' by configure.'
21733 if test x"$ac_file" != x-; then
21734 configure_input="$ac_file. $configure_input"
21735 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21736 $as_echo "$as_me: creating $ac_file" >&6;}
21738 # Neutralize special characters interpreted by sed in replacement strings.
21739 case $configure_input in #(
21740 *\&* | *\|* | *\\* )
21741 ac_sed_conf_input=`$as_echo "$configure_input" |
21742 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21743 *) ac_sed_conf_input=$configure_input;;
21744 esac
21746 case $ac_tag in
21747 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21748 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21749 esac
21751 esac
21753 ac_dir=`$as_dirname -- "$ac_file" ||
21754 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21755 X"$ac_file" : 'X\(//\)[^/]' \| \
21756 X"$ac_file" : 'X\(//\)$' \| \
21757 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21758 $as_echo X"$ac_file" |
21759 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21760 s//\1/
21763 /^X\(\/\/\)[^/].*/{
21764 s//\1/
21767 /^X\(\/\/\)$/{
21768 s//\1/
21771 /^X\(\/\).*/{
21772 s//\1/
21775 s/.*/./; q'`
21776 as_dir="$ac_dir"; as_fn_mkdir_p
21777 ac_builddir=.
21779 case "$ac_dir" in
21780 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21782 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21783 # A ".." for each directory in $ac_dir_suffix.
21784 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21785 case $ac_top_builddir_sub in
21786 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21787 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21788 esac ;;
21789 esac
21790 ac_abs_top_builddir=$ac_pwd
21791 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21792 # for backward compatibility:
21793 ac_top_builddir=$ac_top_build_prefix
21795 case $srcdir in
21796 .) # We are building in place.
21797 ac_srcdir=.
21798 ac_top_srcdir=$ac_top_builddir_sub
21799 ac_abs_top_srcdir=$ac_pwd ;;
21800 [\\/]* | ?:[\\/]* ) # Absolute name.
21801 ac_srcdir=$srcdir$ac_dir_suffix;
21802 ac_top_srcdir=$srcdir
21803 ac_abs_top_srcdir=$srcdir ;;
21804 *) # Relative name.
21805 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21806 ac_top_srcdir=$ac_top_build_prefix$srcdir
21807 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21808 esac
21809 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21812 case $ac_mode in
21815 # CONFIG_FILE
21818 case $INSTALL in
21819 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21820 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21821 esac
21822 ac_MKDIR_P=$MKDIR_P
21823 case $MKDIR_P in
21824 [\\/$]* | ?:[\\/]* ) ;;
21825 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21826 esac
21827 _ACEOF
21829 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21830 # If the template does not know about datarootdir, expand it.
21831 # FIXME: This hack should be removed a few years after 2.60.
21832 ac_datarootdir_hack=; ac_datarootdir_seen=
21833 ac_sed_dataroot='
21834 /datarootdir/ {
21838 /@datadir@/p
21839 /@docdir@/p
21840 /@infodir@/p
21841 /@localedir@/p
21842 /@mandir@/p'
21843 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21844 *datarootdir*) ac_datarootdir_seen=yes;;
21845 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21847 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21848 _ACEOF
21849 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21850 ac_datarootdir_hack='
21851 s&@datadir@&$datadir&g
21852 s&@docdir@&$docdir&g
21853 s&@infodir@&$infodir&g
21854 s&@localedir@&$localedir&g
21855 s&@mandir@&$mandir&g
21856 s&\\\${datarootdir}&$datarootdir&g' ;;
21857 esac
21858 _ACEOF
21860 # Neutralize VPATH when `$srcdir' = `.'.
21861 # Shell code in configure.ac might set extrasub.
21862 # FIXME: do we really want to maintain this feature?
21863 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21864 ac_sed_extra="$ac_vpsub
21865 $extrasub
21866 _ACEOF
21867 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21869 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21870 s|@configure_input@|$ac_sed_conf_input|;t t
21871 s&@top_builddir@&$ac_top_builddir_sub&;t t
21872 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21873 s&@srcdir@&$ac_srcdir&;t t
21874 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21875 s&@top_srcdir@&$ac_top_srcdir&;t t
21876 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21877 s&@builddir@&$ac_builddir&;t t
21878 s&@abs_builddir@&$ac_abs_builddir&;t t
21879 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21880 s&@INSTALL@&$ac_INSTALL&;t t
21881 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21882 $ac_datarootdir_hack
21884 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21885 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21887 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21888 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21889 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21890 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21892 which seems to be undefined. Please make sure it is defined" >&5
21893 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21894 which seems to be undefined. Please make sure it is defined" >&2;}
21896 rm -f "$ac_tmp/stdin"
21897 case $ac_file in
21898 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21899 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21900 esac \
21901 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21905 # CONFIG_HEADER
21907 if test x"$ac_file" != x-; then
21909 $as_echo "/* $configure_input */" \
21910 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21911 } >"$ac_tmp/config.h" \
21912 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21913 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21914 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21915 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21916 else
21917 rm -f "$ac_file"
21918 mv "$ac_tmp/config.h" "$ac_file" \
21919 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21921 else
21922 $as_echo "/* $configure_input */" \
21923 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21924 || as_fn_error $? "could not create -" "$LINENO" 5
21926 # Compute "$ac_file"'s index in $config_headers.
21927 _am_arg="$ac_file"
21928 _am_stamp_count=1
21929 for _am_header in $config_headers :; do
21930 case $_am_header in
21931 $_am_arg | $_am_arg:* )
21932 break ;;
21934 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21935 esac
21936 done
21937 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21938 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21939 X"$_am_arg" : 'X\(//\)[^/]' \| \
21940 X"$_am_arg" : 'X\(//\)$' \| \
21941 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21942 $as_echo X"$_am_arg" |
21943 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21944 s//\1/
21947 /^X\(\/\/\)[^/].*/{
21948 s//\1/
21951 /^X\(\/\/\)$/{
21952 s//\1/
21955 /^X\(\/\).*/{
21956 s//\1/
21959 s/.*/./; q'`/stamp-h$_am_stamp_count
21962 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21963 $as_echo "$as_me: executing $ac_file commands" >&6;}
21965 esac
21968 case $ac_file$ac_mode in
21969 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21970 # Older Autoconf quotes --file arguments for eval, but not when files
21971 # are listed without --file. Let's play safe and only enable the eval
21972 # if we detect the quoting.
21973 # TODO: see whether this extra hack can be removed once we start
21974 # requiring Autoconf 2.70 or later.
21975 case $CONFIG_FILES in #(
21976 *\'*) :
21977 eval set x "$CONFIG_FILES" ;; #(
21978 *) :
21979 set x $CONFIG_FILES ;; #(
21980 *) :
21982 esac
21983 shift
21984 # Used to flag and report bootstrapping failures.
21985 am_rc=0
21986 for am_mf
21988 # Strip MF so we end up with the name of the file.
21989 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
21990 # Check whether this is an Automake generated Makefile which includes
21991 # dependency-tracking related rules and includes.
21992 # Grep'ing the whole file directly is not great: AIX grep has a line
21993 # limit of 2048, but all sed's we know have understand at least 4000.
21994 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21995 || continue
21996 am_dirpart=`$as_dirname -- "$am_mf" ||
21997 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21998 X"$am_mf" : 'X\(//\)[^/]' \| \
21999 X"$am_mf" : 'X\(//\)$' \| \
22000 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22001 $as_echo X"$am_mf" |
22002 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22003 s//\1/
22006 /^X\(\/\/\)[^/].*/{
22007 s//\1/
22010 /^X\(\/\/\)$/{
22011 s//\1/
22014 /^X\(\/\).*/{
22015 s//\1/
22018 s/.*/./; q'`
22019 am_filepart=`$as_basename -- "$am_mf" ||
22020 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
22021 X"$am_mf" : 'X\(//\)$' \| \
22022 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22023 $as_echo X/"$am_mf" |
22024 sed '/^.*\/\([^/][^/]*\)\/*$/{
22025 s//\1/
22028 /^X\/\(\/\/\)$/{
22029 s//\1/
22032 /^X\/\(\/\).*/{
22033 s//\1/
22036 s/.*/./; q'`
22037 { echo "$as_me:$LINENO: cd "$am_dirpart" \
22038 && sed -e '/# am--include-marker/d' "$am_filepart" \
22039 | $MAKE -f - am--depfiles" >&5
22040 (cd "$am_dirpart" \
22041 && sed -e '/# am--include-marker/d' "$am_filepart" \
22042 | $MAKE -f - am--depfiles) >&5 2>&5
22043 ac_status=$?
22044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22045 (exit $ac_status); } || am_rc=$?
22046 done
22047 if test $am_rc -ne 0; then
22048 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22049 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22050 as_fn_error $? "Something went wrong bootstrapping makefile fragments
22051 for automatic dependency tracking. Try re-running configure with the
22052 '--disable-dependency-tracking' option to at least be able to build
22053 the package (albeit without support for automatic dependency tracking).
22054 See \`config.log' for more details" "$LINENO" 5; }
22056 { am_dirpart=; unset am_dirpart;}
22057 { am_filepart=; unset am_filepart;}
22058 { am_mf=; unset am_mf;}
22059 { am_rc=; unset am_rc;}
22060 rm -f conftest-deps.mk
22063 "libtool":C)
22065 # See if we are running on zsh, and set the options that allow our
22066 # commands through without removal of \ escapes.
22067 if test -n "${ZSH_VERSION+set}"; then
22068 setopt NO_GLOB_SUBST
22071 cfgfile=${ofile}T
22072 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22073 $RM "$cfgfile"
22075 cat <<_LT_EOF >> "$cfgfile"
22076 #! $SHELL
22077 # Generated automatically by $as_me ($PACKAGE) $VERSION
22078 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22080 # Provide generalized library-building support services.
22081 # Written by Gordon Matzigkeit, 1996
22083 # Copyright (C) 2014 Free Software Foundation, Inc.
22084 # This is free software; see the source for copying conditions. There is NO
22085 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22087 # GNU Libtool is free software; you can redistribute it and/or modify
22088 # it under the terms of the GNU General Public License as published by
22089 # the Free Software Foundation; either version 2 of of the License, or
22090 # (at your option) any later version.
22092 # As a special exception to the GNU General Public License, if you
22093 # distribute this file as part of a program or library that is built
22094 # using GNU Libtool, you may include this file under the same
22095 # distribution terms that you use for the rest of that program.
22097 # GNU Libtool is distributed in the hope that it will be useful, but
22098 # WITHOUT ANY WARRANTY; without even the implied warranty of
22099 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22100 # GNU General Public License for more details.
22102 # You should have received a copy of the GNU General Public License
22103 # along with this program. If not, see <http://www.gnu.org/licenses/>.
22106 # The names of the tagged configurations supported by this script.
22107 available_tags='CXX '
22109 # Configured defaults for sys_lib_dlsearch_path munging.
22110 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
22112 # ### BEGIN LIBTOOL CONFIG
22114 # Assembler program.
22115 AS=$lt_AS
22117 # DLL creation program.
22118 DLLTOOL=$lt_DLLTOOL
22120 # Object dumper program.
22121 OBJDUMP=$lt_OBJDUMP
22123 # Which release of libtool.m4 was used?
22124 macro_version=$macro_version
22125 macro_revision=$macro_revision
22127 # Whether or not to build shared libraries.
22128 build_libtool_libs=$enable_shared
22130 # Whether or not to build static libraries.
22131 build_old_libs=$enable_static
22133 # What type of objects to build.
22134 pic_mode=$pic_mode
22136 # Whether or not to optimize for fast installation.
22137 fast_install=$enable_fast_install
22139 # Shared archive member basename,for filename based shared library versioning on AIX.
22140 shared_archive_member_spec=$shared_archive_member_spec
22142 # Shell to use when invoking shell scripts.
22143 SHELL=$lt_SHELL
22145 # An echo program that protects backslashes.
22146 ECHO=$lt_ECHO
22148 # The PATH separator for the build system.
22149 PATH_SEPARATOR=$lt_PATH_SEPARATOR
22151 # The host system.
22152 host_alias=$host_alias
22153 host=$host
22154 host_os=$host_os
22156 # The build system.
22157 build_alias=$build_alias
22158 build=$build
22159 build_os=$build_os
22161 # A sed program that does not truncate output.
22162 SED=$lt_SED
22164 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22165 Xsed="\$SED -e 1s/^X//"
22167 # A grep program that handles long lines.
22168 GREP=$lt_GREP
22170 # An ERE matcher.
22171 EGREP=$lt_EGREP
22173 # A literal string matcher.
22174 FGREP=$lt_FGREP
22176 # A BSD- or MS-compatible name lister.
22177 NM=$lt_NM
22179 # Whether we need soft or hard links.
22180 LN_S=$lt_LN_S
22182 # What is the maximum length of a command?
22183 max_cmd_len=$max_cmd_len
22185 # Object file suffix (normally "o").
22186 objext=$ac_objext
22188 # Executable file suffix (normally "").
22189 exeext=$exeext
22191 # whether the shell understands "unset".
22192 lt_unset=$lt_unset
22194 # turn spaces into newlines.
22195 SP2NL=$lt_lt_SP2NL
22197 # turn newlines into spaces.
22198 NL2SP=$lt_lt_NL2SP
22200 # convert \$build file names to \$host format.
22201 to_host_file_cmd=$lt_cv_to_host_file_cmd
22203 # convert \$build files to toolchain format.
22204 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22206 # Method to check whether dependent libraries are shared objects.
22207 deplibs_check_method=$lt_deplibs_check_method
22209 # Command to use when deplibs_check_method = "file_magic".
22210 file_magic_cmd=$lt_file_magic_cmd
22212 # How to find potential files when deplibs_check_method = "file_magic".
22213 file_magic_glob=$lt_file_magic_glob
22215 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22216 want_nocaseglob=$lt_want_nocaseglob
22218 # Command to associate shared and link libraries.
22219 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22221 # The archiver.
22222 AR=$lt_AR
22224 # Flags to create an archive (by configure).
22225 lt_ar_flags=$lt_ar_flags
22227 # Flags to create an archive.
22228 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
22230 # How to feed a file listing to the archiver.
22231 archiver_list_spec=$lt_archiver_list_spec
22233 # A symbol stripping program.
22234 STRIP=$lt_STRIP
22236 # Commands used to install an old-style archive.
22237 RANLIB=$lt_RANLIB
22238 old_postinstall_cmds=$lt_old_postinstall_cmds
22239 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22241 # Whether to use a lock for old archive extraction.
22242 lock_old_archive_extraction=$lock_old_archive_extraction
22244 # A C compiler.
22245 LTCC=$lt_CC
22247 # LTCC compiler flags.
22248 LTCFLAGS=$lt_CFLAGS
22250 # Take the output of nm and produce a listing of raw symbols and C names.
22251 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22253 # Transform the output of nm in a proper C declaration.
22254 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22256 # Transform the output of nm into a list of symbols to manually relocate.
22257 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22259 # Transform the output of nm in a C name address pair.
22260 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22262 # Transform the output of nm in a C name address pair when lib prefix is needed.
22263 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22265 # The name lister interface.
22266 nm_interface=$lt_lt_cv_nm_interface
22268 # Specify filename containing input files for \$NM.
22269 nm_file_list_spec=$lt_nm_file_list_spec
22271 # The root where to search for dependent libraries,and where our libraries should be installed.
22272 lt_sysroot=$lt_sysroot
22274 # Command to truncate a binary pipe.
22275 lt_truncate_bin=$lt_lt_cv_truncate_bin
22277 # The name of the directory that contains temporary libtool files.
22278 objdir=$objdir
22280 # Used to examine libraries when file_magic_cmd begins with "file".
22281 MAGIC_CMD=$MAGIC_CMD
22283 # Must we lock files when doing compilation?
22284 need_locks=$lt_need_locks
22286 # Manifest tool.
22287 MANIFEST_TOOL=$lt_MANIFEST_TOOL
22289 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22290 DSYMUTIL=$lt_DSYMUTIL
22292 # Tool to change global to local symbols on Mac OS X.
22293 NMEDIT=$lt_NMEDIT
22295 # Tool to manipulate fat objects and archives on Mac OS X.
22296 LIPO=$lt_LIPO
22298 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22299 OTOOL=$lt_OTOOL
22301 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22302 OTOOL64=$lt_OTOOL64
22304 # Old archive suffix (normally "a").
22305 libext=$libext
22307 # Shared library suffix (normally ".so").
22308 shrext_cmds=$lt_shrext_cmds
22310 # The commands to extract the exported symbol list from a shared archive.
22311 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22313 # Variables whose values should be saved in libtool wrapper scripts and
22314 # restored at link time.
22315 variables_saved_for_relink=$lt_variables_saved_for_relink
22317 # Do we need the "lib" prefix for modules?
22318 need_lib_prefix=$need_lib_prefix
22320 # Do we need a version for libraries?
22321 need_version=$need_version
22323 # Library versioning type.
22324 version_type=$version_type
22326 # Shared library runtime path variable.
22327 runpath_var=$runpath_var
22329 # Shared library path variable.
22330 shlibpath_var=$shlibpath_var
22332 # Is shlibpath searched before the hard-coded library search path?
22333 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22335 # Format of library name prefix.
22336 libname_spec=$lt_libname_spec
22338 # List of archive names. First name is the real one, the rest are links.
22339 # The last name is the one that the linker finds with -lNAME
22340 library_names_spec=$lt_library_names_spec
22342 # The coded name of the library, if different from the real name.
22343 soname_spec=$lt_soname_spec
22345 # Permission mode override for installation of shared libraries.
22346 install_override_mode=$lt_install_override_mode
22348 # Command to use after installation of a shared archive.
22349 postinstall_cmds=$lt_postinstall_cmds
22351 # Command to use after uninstallation of a shared archive.
22352 postuninstall_cmds=$lt_postuninstall_cmds
22354 # Commands used to finish a libtool library installation in a directory.
22355 finish_cmds=$lt_finish_cmds
22357 # As "finish_cmds", except a single script fragment to be evaled but
22358 # not shown.
22359 finish_eval=$lt_finish_eval
22361 # Whether we should hardcode library paths into libraries.
22362 hardcode_into_libs=$hardcode_into_libs
22364 # Compile-time system search path for libraries.
22365 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22367 # Detected run-time system search path for libraries.
22368 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22370 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22371 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22373 # Whether dlopen is supported.
22374 dlopen_support=$enable_dlopen
22376 # Whether dlopen of programs is supported.
22377 dlopen_self=$enable_dlopen_self
22379 # Whether dlopen of statically linked programs is supported.
22380 dlopen_self_static=$enable_dlopen_self_static
22382 # Commands to strip libraries.
22383 old_striplib=$lt_old_striplib
22384 striplib=$lt_striplib
22387 # The linker used to build libraries.
22388 LD=$lt_LD
22390 # How to create reloadable object files.
22391 reload_flag=$lt_reload_flag
22392 reload_cmds=$lt_reload_cmds
22394 # Commands used to build an old-style archive.
22395 old_archive_cmds=$lt_old_archive_cmds
22397 # A language specific compiler.
22398 CC=$lt_compiler
22400 # Is the compiler the GNU compiler?
22401 with_gcc=$GCC
22403 # Compiler flag to turn off builtin functions.
22404 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22406 # Additional compiler flags for building library objects.
22407 pic_flag=$lt_lt_prog_compiler_pic
22409 # How to pass a linker flag through the compiler.
22410 wl=$lt_lt_prog_compiler_wl
22412 # Compiler flag to prevent dynamic linking.
22413 link_static_flag=$lt_lt_prog_compiler_static
22415 # Does compiler simultaneously support -c and -o options?
22416 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22418 # Whether or not to add -lc for building shared libraries.
22419 build_libtool_need_lc=$archive_cmds_need_lc
22421 # Whether or not to disallow shared libs when runtime libs are static.
22422 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22424 # Compiler flag to allow reflexive dlopens.
22425 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22427 # Compiler flag to generate shared objects directly from archives.
22428 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22430 # Whether the compiler copes with passing no objects directly.
22431 compiler_needs_object=$lt_compiler_needs_object
22433 # Create an old-style archive from a shared archive.
22434 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22436 # Create a temporary old-style archive to link instead of a shared archive.
22437 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22439 # Commands used to build a shared archive.
22440 archive_cmds=$lt_archive_cmds
22441 archive_expsym_cmds=$lt_archive_expsym_cmds
22443 # Commands used to build a loadable module if different from building
22444 # a shared archive.
22445 module_cmds=$lt_module_cmds
22446 module_expsym_cmds=$lt_module_expsym_cmds
22448 # Whether we are building with GNU ld or not.
22449 with_gnu_ld=$lt_with_gnu_ld
22451 # Flag that allows shared libraries with undefined symbols to be built.
22452 allow_undefined_flag=$lt_allow_undefined_flag
22454 # Flag that enforces no undefined symbols.
22455 no_undefined_flag=$lt_no_undefined_flag
22457 # Flag to hardcode \$libdir into a binary during linking.
22458 # This must work even if \$libdir does not exist
22459 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22461 # Whether we need a single "-rpath" flag with a separated argument.
22462 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22464 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22465 # DIR into the resulting binary.
22466 hardcode_direct=$hardcode_direct
22468 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22469 # DIR into the resulting binary and the resulting library dependency is
22470 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
22471 # library is relocated.
22472 hardcode_direct_absolute=$hardcode_direct_absolute
22474 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22475 # into the resulting binary.
22476 hardcode_minus_L=$hardcode_minus_L
22478 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22479 # into the resulting binary.
22480 hardcode_shlibpath_var=$hardcode_shlibpath_var
22482 # Set to "yes" if building a shared library automatically hardcodes DIR
22483 # into the library and all subsequent libraries and executables linked
22484 # against it.
22485 hardcode_automatic=$hardcode_automatic
22487 # Set to yes if linker adds runtime paths of dependent libraries
22488 # to runtime path list.
22489 inherit_rpath=$inherit_rpath
22491 # Whether libtool must link a program against all its dependency libraries.
22492 link_all_deplibs=$link_all_deplibs
22494 # Set to "yes" if exported symbols are required.
22495 always_export_symbols=$always_export_symbols
22497 # The commands to list exported symbols.
22498 export_symbols_cmds=$lt_export_symbols_cmds
22500 # Symbols that should not be listed in the preloaded symbols.
22501 exclude_expsyms=$lt_exclude_expsyms
22503 # Symbols that must always be exported.
22504 include_expsyms=$lt_include_expsyms
22506 # Commands necessary for linking programs (against libraries) with templates.
22507 prelink_cmds=$lt_prelink_cmds
22509 # Commands necessary for finishing linking programs.
22510 postlink_cmds=$lt_postlink_cmds
22512 # Specify filename containing input files.
22513 file_list_spec=$lt_file_list_spec
22515 # How to hardcode a shared library path into an executable.
22516 hardcode_action=$hardcode_action
22518 # The directories searched by this compiler when creating a shared library.
22519 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22521 # Dependencies to place before and after the objects being linked to
22522 # create a shared library.
22523 predep_objects=$lt_predep_objects
22524 postdep_objects=$lt_postdep_objects
22525 predeps=$lt_predeps
22526 postdeps=$lt_postdeps
22528 # The library search path used internally by the compiler when linking
22529 # a shared library.
22530 compiler_lib_search_path=$lt_compiler_lib_search_path
22532 # ### END LIBTOOL CONFIG
22534 _LT_EOF
22536 cat <<'_LT_EOF' >> "$cfgfile"
22538 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22540 # func_munge_path_list VARIABLE PATH
22541 # -----------------------------------
22542 # VARIABLE is name of variable containing _space_ separated list of
22543 # directories to be munged by the contents of PATH, which is string
22544 # having a format:
22545 # "DIR[:DIR]:"
22546 # string "DIR[ DIR]" will be prepended to VARIABLE
22547 # ":DIR[:DIR]"
22548 # string "DIR[ DIR]" will be appended to VARIABLE
22549 # "DIRP[:DIRP]::[DIRA:]DIRA"
22550 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22551 # "DIRA[ DIRA]" will be appended to VARIABLE
22552 # "DIR[:DIR]"
22553 # VARIABLE will be replaced by "DIR[ DIR]"
22554 func_munge_path_list ()
22556 case x$2 in
22560 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22562 x:*)
22563 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22565 *::*)
22566 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22567 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22570 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22572 esac
22576 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
22577 func_cc_basename ()
22579 for cc_temp in $*""; do
22580 case $cc_temp in
22581 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22582 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22583 \-*) ;;
22584 *) break;;
22585 esac
22586 done
22587 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22591 # ### END FUNCTIONS SHARED WITH CONFIGURE
22593 _LT_EOF
22595 case $host_os in
22596 aix3*)
22597 cat <<\_LT_EOF >> "$cfgfile"
22598 # AIX sometimes has problems with the GCC collect2 program. For some
22599 # reason, if we set the COLLECT_NAMES environment variable, the problems
22600 # vanish in a puff of smoke.
22601 if test set != "${COLLECT_NAMES+set}"; then
22602 COLLECT_NAMES=
22603 export COLLECT_NAMES
22605 _LT_EOF
22607 esac
22610 ltmain=$ac_aux_dir/ltmain.sh
22613 # We use sed instead of cat because bash on DJGPP gets confused if
22614 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22615 # text mode, it properly converts lines to CR/LF. This bash problem
22616 # is reportedly fixed, but why not run on old versions too?
22617 sed '$q' "$ltmain" >> "$cfgfile" \
22618 || (rm -f "$cfgfile"; exit 1)
22620 mv -f "$cfgfile" "$ofile" ||
22621 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22622 chmod +x "$ofile"
22625 cat <<_LT_EOF >> "$ofile"
22627 # ### BEGIN LIBTOOL TAG CONFIG: CXX
22629 # The linker used to build libraries.
22630 LD=$lt_LD_CXX
22632 # How to create reloadable object files.
22633 reload_flag=$lt_reload_flag_CXX
22634 reload_cmds=$lt_reload_cmds_CXX
22636 # Commands used to build an old-style archive.
22637 old_archive_cmds=$lt_old_archive_cmds_CXX
22639 # A language specific compiler.
22640 CC=$lt_compiler_CXX
22642 # Is the compiler the GNU compiler?
22643 with_gcc=$GCC_CXX
22645 # Compiler flag to turn off builtin functions.
22646 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22648 # Additional compiler flags for building library objects.
22649 pic_flag=$lt_lt_prog_compiler_pic_CXX
22651 # How to pass a linker flag through the compiler.
22652 wl=$lt_lt_prog_compiler_wl_CXX
22654 # Compiler flag to prevent dynamic linking.
22655 link_static_flag=$lt_lt_prog_compiler_static_CXX
22657 # Does compiler simultaneously support -c and -o options?
22658 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22660 # Whether or not to add -lc for building shared libraries.
22661 build_libtool_need_lc=$archive_cmds_need_lc_CXX
22663 # Whether or not to disallow shared libs when runtime libs are static.
22664 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22666 # Compiler flag to allow reflexive dlopens.
22667 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22669 # Compiler flag to generate shared objects directly from archives.
22670 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22672 # Whether the compiler copes with passing no objects directly.
22673 compiler_needs_object=$lt_compiler_needs_object_CXX
22675 # Create an old-style archive from a shared archive.
22676 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22678 # Create a temporary old-style archive to link instead of a shared archive.
22679 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22681 # Commands used to build a shared archive.
22682 archive_cmds=$lt_archive_cmds_CXX
22683 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22685 # Commands used to build a loadable module if different from building
22686 # a shared archive.
22687 module_cmds=$lt_module_cmds_CXX
22688 module_expsym_cmds=$lt_module_expsym_cmds_CXX
22690 # Whether we are building with GNU ld or not.
22691 with_gnu_ld=$lt_with_gnu_ld_CXX
22693 # Flag that allows shared libraries with undefined symbols to be built.
22694 allow_undefined_flag=$lt_allow_undefined_flag_CXX
22696 # Flag that enforces no undefined symbols.
22697 no_undefined_flag=$lt_no_undefined_flag_CXX
22699 # Flag to hardcode \$libdir into a binary during linking.
22700 # This must work even if \$libdir does not exist
22701 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22703 # Whether we need a single "-rpath" flag with a separated argument.
22704 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22706 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22707 # DIR into the resulting binary.
22708 hardcode_direct=$hardcode_direct_CXX
22710 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22711 # DIR into the resulting binary and the resulting library dependency is
22712 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
22713 # library is relocated.
22714 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22716 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22717 # into the resulting binary.
22718 hardcode_minus_L=$hardcode_minus_L_CXX
22720 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22721 # into the resulting binary.
22722 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22724 # Set to "yes" if building a shared library automatically hardcodes DIR
22725 # into the library and all subsequent libraries and executables linked
22726 # against it.
22727 hardcode_automatic=$hardcode_automatic_CXX
22729 # Set to yes if linker adds runtime paths of dependent libraries
22730 # to runtime path list.
22731 inherit_rpath=$inherit_rpath_CXX
22733 # Whether libtool must link a program against all its dependency libraries.
22734 link_all_deplibs=$link_all_deplibs_CXX
22736 # Set to "yes" if exported symbols are required.
22737 always_export_symbols=$always_export_symbols_CXX
22739 # The commands to list exported symbols.
22740 export_symbols_cmds=$lt_export_symbols_cmds_CXX
22742 # Symbols that should not be listed in the preloaded symbols.
22743 exclude_expsyms=$lt_exclude_expsyms_CXX
22745 # Symbols that must always be exported.
22746 include_expsyms=$lt_include_expsyms_CXX
22748 # Commands necessary for linking programs (against libraries) with templates.
22749 prelink_cmds=$lt_prelink_cmds_CXX
22751 # Commands necessary for finishing linking programs.
22752 postlink_cmds=$lt_postlink_cmds_CXX
22754 # Specify filename containing input files.
22755 file_list_spec=$lt_file_list_spec_CXX
22757 # How to hardcode a shared library path into an executable.
22758 hardcode_action=$hardcode_action_CXX
22760 # The directories searched by this compiler when creating a shared library.
22761 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22763 # Dependencies to place before and after the objects being linked to
22764 # create a shared library.
22765 predep_objects=$lt_predep_objects_CXX
22766 postdep_objects=$lt_postdep_objects_CXX
22767 predeps=$lt_predeps_CXX
22768 postdeps=$lt_postdeps_CXX
22770 # The library search path used internally by the compiler when linking
22771 # a shared library.
22772 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22774 # ### END LIBTOOL TAG CONFIG: CXX
22775 _LT_EOF
22778 "script-chmod":C) chmod a+x pcre-config ;;
22779 "delete-old-chartables":C) rm -f pcre_chartables.c ;;
22781 esac
22782 done # for ac_tag
22785 as_fn_exit 0
22786 _ACEOF
22787 ac_clean_files=$ac_clean_files_save
22789 test $ac_write_fail = 0 ||
22790 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22793 # configure is writing to config.log, and then calls config.status.
22794 # config.status does its own redirection, appending to config.log.
22795 # Unfortunately, on DOS this fails, as config.log is still kept open
22796 # by configure, so config.status won't be able to write to it; its
22797 # output is simply discarded. So we exec the FD to /dev/null,
22798 # effectively closing config.log, so it can be properly (re)opened and
22799 # appended to by config.status. When coming back to configure, we
22800 # need to make the FD available again.
22801 if test "$no_create" != yes; then
22802 ac_cs_success=:
22803 ac_config_status_args=
22804 test "$silent" = yes &&
22805 ac_config_status_args="$ac_config_status_args --quiet"
22806 exec 5>/dev/null
22807 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22808 exec 5>>config.log
22809 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22810 # would make configure fail if this is the last instruction.
22811 $ac_cs_success || as_fn_exit 1
22813 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22815 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22819 # Print out a nice little message after configure is run displaying the
22820 # chosen options.
22822 ebcdic_nl_code=n/a
22823 if test "$enable_ebcdic_nl25" = "yes"; then
22824 ebcdic_nl_code=0x25
22825 elif test "$enable_ebcdic" = "yes"; then
22826 ebcdic_nl_code=0x15
22829 cat <<EOF
22831 $PACKAGE-$VERSION configuration summary:
22833 Install prefix .................. : ${prefix}
22834 C preprocessor .................. : ${CPP}
22835 C compiler ...................... : ${CC}
22836 C++ preprocessor ................ : ${CXXCPP}
22837 C++ compiler .................... : ${CXX}
22838 Linker .......................... : ${LD}
22839 C preprocessor flags ............ : ${CPPFLAGS}
22840 C compiler flags ................ : ${CFLAGS} ${VISIBILITY_CFLAGS}
22841 C++ compiler flags .............. : ${CXXFLAGS} ${VISIBILITY_CXXFLAGS}
22842 Linker flags .................... : ${LDFLAGS}
22843 Extra libraries ................. : ${LIBS}
22845 Build 8 bit pcre library ........ : ${enable_pcre8}
22846 Build 16 bit pcre library ....... : ${enable_pcre16}
22847 Build 32 bit pcre library ....... : ${enable_pcre32}
22848 Build C++ library ............... : ${enable_cpp}
22849 Enable JIT compiling support .... : ${enable_jit}
22850 Enable UTF-8/16/32 support ...... : ${enable_utf}
22851 Unicode properties .............. : ${enable_unicode_properties}
22852 Newline char/sequence ........... : ${enable_newline}
22853 \R matches only ANYCRLF ......... : ${enable_bsr_anycrlf}
22854 EBCDIC coding ................... : ${enable_ebcdic}
22855 EBCDIC code for NL .............. : ${ebcdic_nl_code}
22856 Rebuild char tables ............. : ${enable_rebuild_chartables}
22857 Use stack recursion ............. : ${enable_stack_for_recursion}
22858 POSIX mem threshold ............. : ${with_posix_malloc_threshold}
22859 Internal link size .............. : ${with_link_size}
22860 Nested parentheses limit ........ : ${with_parens_nest_limit}
22861 Match limit ..................... : ${with_match_limit}
22862 Match limit recursion ........... : ${with_match_limit_recursion}
22863 Build shared libs ............... : ${enable_shared}
22864 Build static libs ............... : ${enable_static}
22865 Use JIT in pcregrep ............. : ${enable_pcregrep_jit}
22866 Buffer size for pcregrep ........ : ${with_pcregrep_bufsize}
22867 Link pcregrep with libz ......... : ${enable_pcregrep_libz}
22868 Link pcregrep with libbz2 ....... : ${enable_pcregrep_libbz2}
22869 Link pcretest with libedit ...... : ${enable_pcretest_libedit}
22870 Link pcretest with libreadline .. : ${enable_pcretest_libreadline}
22871 Valgrind support ................ : ${enable_valgrind}
22872 Code coverage ................... : ${enable_coverage}