Busybox: Upgrade to 1.21.1 (stable). lsof active.
[tomato.git] / release / src / router / pcre / autom4te.cache / output.1
blobc288190fe38db9c24d2ab31ed3b888c3335b0362
1 @%:@! /bin/sh
2 @%:@ Guess values for system-dependent variables and create Makefiles.
3 @%:@ Generated by GNU Autoconf 2.68 for PCRE 8.32.
4 @%:@ 
5 @%:@ 
6 @%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 @%:@ 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 @%:@ Foundation, Inc.
9 @%:@ 
10 @%:@ 
11 @%:@ This configure script is free software; the Free Software Foundation
12 @%:@ gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in @%:@(
28   *posix*) :
29     set -o posix ;; @%:@(
30   *) :
31      ;;
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in @%:@(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in @%:@((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x; then
138   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139   emulate sh
140   NULLCMD=:
141   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142   # is contrary to our usage.  Disable this feature.
143   alias -g '\${1+\"\$@\"}'='\"\$@\"'
144   setopt NO_GLOB_SUBST
145 else
146   case \`(set -o) 2>/dev/null\` in @%:@(
147   *posix*) :
148     set -o posix ;; @%:@(
149   *) :
150      ;;
151 esac
154   as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166   
167 else
168   exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1
177   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
178     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
179     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181     PATH=/empty FPATH=/empty; export PATH FPATH
182     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
183       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
184   if (eval "$as_required") 2>/dev/null; then :
185   as_have_required=yes
186 else
187   as_have_required=no
189   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
190   
191 else
192   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
193 as_found=false
194 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
196   IFS=$as_save_IFS
197   test -z "$as_dir" && as_dir=.
198   as_found=:
199   case $as_dir in @%:@(
200          /*)
201            for as_base in sh bash ksh sh5; do
202              # Try only shells that exist, to save several forks.
203              as_shell=$as_dir/$as_base
204              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206   CONFIG_SHELL=$as_shell as_have_required=yes
207                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208   break 2
211            done;;
212        esac
213   as_found=false
214 done
215 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217   CONFIG_SHELL=$SHELL as_have_required=yes
218 fi; }
219 IFS=$as_save_IFS
222       if test "x$CONFIG_SHELL" != x; then :
223   # We cannot yet assume a decent shell, so we have to provide a
224         # neutralization value for shells without unset; and this also
225         # works around shells that cannot unset nonexistent variables.
226         # Preserve -v and -x to the replacement shell.
227         BASH_ENV=/dev/null
228         ENV=/dev/null
229         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230         export CONFIG_SHELL
231         case $- in @%:@ ((((
232           *v*x* | *x*v* ) as_opts=-vx ;;
233           *v* ) as_opts=-v ;;
234           *x* ) as_opts=-x ;;
235           * ) as_opts= ;;
236         esac
237         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240     if test x$as_have_required = xno; then :
241   $as_echo "$0: This script requires a shell more modern than all"
242   $as_echo "$0: the shells that I found on your system."
243   if test x${ZSH_VERSION+set} = xset ; then
244     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
246   else
247     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248 $0: including any error possibly output before this
249 $0: message. Then install a modern shell, or manually run
250 $0: the script under such a shell if you do have one."
251   fi
252   exit 1
256 SHELL=${CONFIG_SHELL-/bin/sh}
257 export SHELL
258 # Unset more variables known to interfere with behavior of common tools.
259 CLICOLOR_FORCE= GREP_OPTIONS=
260 unset CLICOLOR_FORCE GREP_OPTIONS
262 ## --------------------- ##
263 ## M4sh Shell Functions. ##
264 ## --------------------- ##
265 @%:@ as_fn_unset VAR
266 @%:@ ---------------
267 @%:@ Portably unset VAR.
268 as_fn_unset ()
270   { eval $1=; unset $1;}
272 as_unset=as_fn_unset
274 @%:@ as_fn_set_status STATUS
275 @%:@ -----------------------
276 @%:@ Set @S|@? to STATUS, without forking.
277 as_fn_set_status ()
279   return $1
280 } @%:@ as_fn_set_status
282 @%:@ as_fn_exit STATUS
283 @%:@ -----------------
284 @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
285 as_fn_exit ()
287   set +e
288   as_fn_set_status $1
289   exit $1
290 } @%:@ as_fn_exit
292 @%:@ as_fn_mkdir_p
293 @%:@ -------------
294 @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
295 as_fn_mkdir_p ()
298   case $as_dir in #(
299   -*) as_dir=./$as_dir;;
300   esac
301   test -d "$as_dir" || eval $as_mkdir_p || {
302     as_dirs=
303     while :; do
304       case $as_dir in #(
305       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
306       *) as_qdir=$as_dir;;
307       esac
308       as_dirs="'$as_qdir' $as_dirs"
309       as_dir=`$as_dirname -- "$as_dir" ||
310 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311          X"$as_dir" : 'X\(//\)[^/]' \| \
312          X"$as_dir" : 'X\(//\)$' \| \
313          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314 $as_echo X"$as_dir" |
315     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316             s//\1/
317             q
318           }
319           /^X\(\/\/\)[^/].*/{
320             s//\1/
321             q
322           }
323           /^X\(\/\/\)$/{
324             s//\1/
325             q
326           }
327           /^X\(\/\).*/{
328             s//\1/
329             q
330           }
331           s/.*/./; q'`
332       test -d "$as_dir" && break
333     done
334     test -z "$as_dirs" || eval "mkdir $as_dirs"
335   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
338 } @%:@ as_fn_mkdir_p
339 @%:@ as_fn_append VAR VALUE
340 @%:@ ----------------------
341 @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
342 @%:@ advantage of any shell optimizations that allow amortized linear growth over
343 @%:@ repeated appends, instead of the typical quadratic growth present in naive
344 @%:@ implementations.
345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346   eval 'as_fn_append ()
347   {
348     eval $1+=\$2
349   }'
350 else
351   as_fn_append ()
352   {
353     eval $1=\$$1\$2
354   }
355 fi # as_fn_append
357 @%:@ as_fn_arith ARG...
358 @%:@ ------------------
359 @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
360 @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
361 @%:@ must be portable across @S|@(()) and expr.
362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
363   eval 'as_fn_arith ()
364   {
365     as_val=$(( $* ))
366   }'
367 else
368   as_fn_arith ()
369   {
370     as_val=`expr "$@" || test $? -eq 1`
371   }
372 fi # as_fn_arith
375 @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
376 @%:@ ----------------------------------------
377 @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378 @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379 @%:@ script with STATUS, using 1 if that was 0.
380 as_fn_error ()
382   as_status=$1; test $as_status -eq 0 && as_status=1
383   if test "$4"; then
384     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
386   fi
387   $as_echo "$as_me: error: $2" >&2
388   as_fn_exit $as_status
389 } @%:@ as_fn_error
391 if expr a : '\(a\)' >/dev/null 2>&1 &&
392    test "X`expr 00001 : '.*\(...\)'`" = X001; then
393   as_expr=expr
394 else
395   as_expr=false
398 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399   as_basename=basename
400 else
401   as_basename=false
404 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405   as_dirname=dirname
406 else
407   as_dirname=false
410 as_me=`$as_basename -- "$0" ||
411 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412          X"$0" : 'X\(//\)$' \| \
413          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
414 $as_echo X/"$0" |
415     sed '/^.*\/\([^/][^/]*\)\/*$/{
416             s//\1/
417             q
418           }
419           /^X\/\(\/\/\)$/{
420             s//\1/
421             q
422           }
423           /^X\/\(\/\).*/{
424             s//\1/
425             q
426           }
427           s/.*/./; q'`
429 # Avoid depending upon Character Ranges.
430 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433 as_cr_digits='0123456789'
434 as_cr_alnum=$as_cr_Letters$as_cr_digits
437   as_lineno_1=$LINENO as_lineno_1a=$LINENO
438   as_lineno_2=$LINENO as_lineno_2a=$LINENO
439   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
442   sed -n '
443     p
444     /[$]LINENO/=
445   ' <$as_myself |
446     sed '
447       s/[$]LINENO.*/&-/
448       t lineno
449       b
450       :lineno
451       N
452       :loop
453       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454       t loop
455       s/-\n.*//
456     ' >$as_me.lineno &&
457   chmod +x "$as_me.lineno" ||
458     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
460   # Don't try to exec as it changes $[0], causing all sort of problems
461   # (the dirname of $[0] is not the place where we might find the
462   # original and so on.  Autoconf is especially sensitive to this).
463   . "./$as_me.lineno"
464   # Exit status is that of the last command.
465   exit
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in @%:@(((((
470 -n*)
471   case `echo 'xy\c'` in
472   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
473   xy)  ECHO_C='\c';;
474   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
475        ECHO_T=' ';;
476   esac;;
478   ECHO_N='-n';;
479 esac
481 rm -f conf$$ conf$$.exe conf$$.file
482 if test -d conf$$.dir; then
483   rm -f conf$$.dir/conf$$.file
484 else
485   rm -f conf$$.dir
486   mkdir conf$$.dir 2>/dev/null
488 if (echo >conf$$.file) 2>/dev/null; then
489   if ln -s conf$$.file conf$$ 2>/dev/null; then
490     as_ln_s='ln -s'
491     # ... but there are two gotchas:
492     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494     # In both cases, we have to default to `cp -p'.
495     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
496       as_ln_s='cp -p'
497   elif ln conf$$.file conf$$ 2>/dev/null; then
498     as_ln_s=ln
499   else
500     as_ln_s='cp -p'
501   fi
502 else
503   as_ln_s='cp -p'
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
508 if mkdir -p . 2>/dev/null; then
509   as_mkdir_p='mkdir -p "$as_dir"'
510 else
511   test -d ./-p && rmdir ./-p
512   as_mkdir_p=false
515 if test -x / >/dev/null 2>&1; then
516   as_test_x='test -x'
517 else
518   if ls -dL / >/dev/null 2>&1; then
519     as_ls_L_option=L
520   else
521     as_ls_L_option=
522   fi
523   as_test_x='
524     eval sh -c '\''
525       if test -d "$1"; then
526         test -d "$1/.";
527       else
528         case $1 in @%:@(
529         -*)set "./$1";;
530         esac;
531         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
532         ???[sx]*):;;*)false;;esac;fi
533     '\'' sh
534   '
536 as_executable_p=$as_test_x
538 # Sed expression to map a string onto a valid CPP name.
539 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
541 # Sed expression to map a string onto a valid variable name.
542 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
544 SHELL=${CONFIG_SHELL-/bin/sh}
547 test -n "$DJDIR" || exec 7<&0 </dev/null
548 exec 6>&1
550 # Name of the host.
551 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552 # so uname gets run too.
553 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
556 # Initializations.
558 ac_default_prefix=/usr/local
559 ac_clean_files=
560 ac_config_libobj_dir=.
561 LIB@&t@OBJS=
562 cross_compiling=no
563 subdirs=
564 MFLAGS=
565 MAKEFLAGS=
567 # Identity of this package.
568 PACKAGE_NAME='PCRE'
569 PACKAGE_TARNAME='pcre'
570 PACKAGE_VERSION='8.32'
571 PACKAGE_STRING='PCRE 8.32'
572 PACKAGE_BUGREPORT=''
573 PACKAGE_URL=''
575 ac_unique_file="pcre.h.in"
576 # Factoring default headers for most tests.
577 ac_includes_default="\
578 #include <stdio.h>
579 #ifdef HAVE_SYS_TYPES_H
580 # include <sys/types.h>
581 #endif
582 #ifdef HAVE_SYS_STAT_H
583 # include <sys/stat.h>
584 #endif
585 #ifdef STDC_HEADERS
586 # include <stdlib.h>
587 # include <stddef.h>
588 #else
589 # ifdef HAVE_STDLIB_H
590 #  include <stdlib.h>
591 # endif
592 #endif
593 #ifdef HAVE_STRING_H
594 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
595 #  include <memory.h>
596 # endif
597 # include <string.h>
598 #endif
599 #ifdef HAVE_STRINGS_H
600 # include <strings.h>
601 #endif
602 #ifdef HAVE_INTTYPES_H
603 # include <inttypes.h>
604 #endif
605 #ifdef HAVE_STDINT_H
606 # include <stdint.h>
607 #endif
608 #ifdef HAVE_UNISTD_H
609 # include <unistd.h>
610 #endif"
612 ac_subst_vars='am__EXEEXT_FALSE
613 am__EXEEXT_TRUE
614 LTLIBOBJS
615 LIB@&t@OBJS
616 WITH_GCOV_FALSE
617 WITH_GCOV_TRUE
618 GCOV_LIBS
619 GCOV_CXXFLAGS
620 GCOV_CFLAGS
621 GENHTML
622 LCOV
623 SHTOOL
624 VALGRIND_LIBS
625 VALGRIND_CFLAGS
626 PKG_CONFIG_LIBDIR
627 PKG_CONFIG_PATH
628 PKG_CONFIG
629 LIBBZ2
630 LIBZ
631 DISTCHECK_CONFIGURE_FLAGS
632 EXTRA_LIBPCRECPP_LDFLAGS
633 EXTRA_LIBPCREPOSIX_LDFLAGS
634 EXTRA_LIBPCRE32_LDFLAGS
635 EXTRA_LIBPCRE16_LDFLAGS
636 EXTRA_LIBPCRE_LDFLAGS
637 PTHREAD_CFLAGS
638 PTHREAD_LIBS
639 PTHREAD_CC
640 ax_pthread_config
641 PCRE_STATIC_CFLAG
642 LIBREADLINE
643 WITH_VALGRIND_FALSE
644 WITH_VALGRIND_TRUE
645 WITH_UTF_FALSE
646 WITH_UTF_TRUE
647 WITH_JIT_FALSE
648 WITH_JIT_TRUE
649 WITH_REBUILD_CHARTABLES_FALSE
650 WITH_REBUILD_CHARTABLES_TRUE
651 WITH_PCRE_CPP_FALSE
652 WITH_PCRE_CPP_TRUE
653 WITH_PCRE32_FALSE
654 WITH_PCRE32_TRUE
655 WITH_PCRE16_FALSE
656 WITH_PCRE16_TRUE
657 WITH_PCRE8_FALSE
658 WITH_PCRE8_TRUE
659 pcre_have_bits_type_traits
660 pcre_have_type_traits
661 pcre_have_ulong_long
662 pcre_have_long_long
663 enable_cpp
664 enable_pcre32
665 enable_pcre16
666 enable_pcre8
667 PCRE_DATE
668 PCRE_PRERELEASE
669 PCRE_MINOR
670 PCRE_MAJOR
671 HAVE_VISIBILITY
672 VISIBILITY_CXXFLAGS
673 VISIBILITY_CFLAGS
674 CXXCPP
675 OTOOL64
676 OTOOL
677 LIPO
678 NMEDIT
679 DSYMUTIL
680 MANIFEST_TOOL
681 RANLIB
682 ac_ct_AR
684 LN_S
686 ac_ct_DUMPBIN
687 DUMPBIN
689 FGREP
691 LIBTOOL
692 OBJDUMP
693 DLLTOOL
695 host_os
696 host_vendor
697 host_cpu
698 host
699 build_os
700 build_vendor
701 build_cpu
702 build
703 EGREP
704 GREP
706 am__fastdepCXX_FALSE
707 am__fastdepCXX_TRUE
708 CXXDEPMODE
709 ac_ct_CXX
710 CXXFLAGS
712 am__fastdepCC_FALSE
713 am__fastdepCC_TRUE
714 CCDEPMODE
715 am__nodep
716 AMDEPBACKSLASH
717 AMDEP_FALSE
718 AMDEP_TRUE
719 am__quote
720 am__include
721 DEPDIR
722 OBJEXT
723 EXEEXT
724 ac_ct_CC
725 CPPFLAGS
726 LDFLAGS
727 CFLAGS
729 AM_BACKSLASH
730 AM_DEFAULT_VERBOSITY
731 AM_DEFAULT_V
732 AM_V
733 am__untar
734 am__tar
735 AMTAR
736 am__leading_dot
737 SET_MAKE
739 mkdir_p
740 MKDIR_P
741 INSTALL_STRIP_PROGRAM
742 STRIP
743 install_sh
744 MAKEINFO
745 AUTOHEADER
746 AUTOMAKE
747 AUTOCONF
748 ACLOCAL
749 VERSION
750 PACKAGE
751 CYGPATH_W
752 am__isrc
753 INSTALL_DATA
754 INSTALL_SCRIPT
755 INSTALL_PROGRAM
756 target_alias
757 host_alias
758 build_alias
759 LIBS
760 ECHO_T
761 ECHO_N
762 ECHO_C
763 DEFS
764 mandir
765 localedir
766 libdir
767 psdir
768 pdfdir
769 dvidir
770 htmldir
771 infodir
772 docdir
773 oldincludedir
774 includedir
775 localstatedir
776 sharedstatedir
777 sysconfdir
778 datadir
779 datarootdir
780 libexecdir
781 sbindir
782 bindir
783 program_transform_name
784 prefix
785 exec_prefix
786 PACKAGE_URL
787 PACKAGE_BUGREPORT
788 PACKAGE_STRING
789 PACKAGE_VERSION
790 PACKAGE_TARNAME
791 PACKAGE_NAME
792 PATH_SEPARATOR
793 SHELL'
794 ac_subst_files=''
795 ac_user_opts='
796 enable_option_checking
797 enable_silent_rules
798 enable_dependency_tracking
799 enable_shared
800 enable_static
801 with_pic
802 enable_fast_install
803 with_gnu_ld
804 with_sysroot
805 enable_libtool_lock
806 enable_pcre8
807 enable_pcre16
808 enable_pcre32
809 enable_cpp
810 enable_jit
811 enable_pcregrep_jit
812 enable_rebuild_chartables
813 enable_utf8
814 enable_utf
815 enable_unicode_properties
816 enable_newline_is_cr
817 enable_newline_is_lf
818 enable_newline_is_crlf
819 enable_newline_is_anycrlf
820 enable_newline_is_any
821 enable_bsr_anycrlf
822 enable_ebcdic
823 enable_ebcdic_nl25
824 enable_stack_for_recursion
825 enable_pcregrep_libz
826 enable_pcregrep_libbz2
827 with_pcregrep_bufsize
828 enable_pcretest_libedit
829 enable_pcretest_libreadline
830 with_posix_malloc_threshold
831 with_link_size
832 with_match_limit
833 with_match_limit_recursion
834 enable_valgrind
835 enable_coverage
837       ac_precious_vars='build_alias
838 host_alias
839 target_alias
841 CFLAGS
842 LDFLAGS
843 LIBS
844 CPPFLAGS
846 CXXFLAGS
849 CXXCPP
850 PKG_CONFIG
851 PKG_CONFIG_PATH
852 PKG_CONFIG_LIBDIR
853 VALGRIND_CFLAGS
854 VALGRIND_LIBS
855 LCOV
856 GENHTML'
859 # Initialize some variables set by options.
860 ac_init_help=
861 ac_init_version=false
862 ac_unrecognized_opts=
863 ac_unrecognized_sep=
864 # The variables have the same names as the options, with
865 # dashes changed to underlines.
866 cache_file=/dev/null
867 exec_prefix=NONE
868 no_create=
869 no_recursion=
870 prefix=NONE
871 program_prefix=NONE
872 program_suffix=NONE
873 program_transform_name=s,x,x,
874 silent=
875 site=
876 srcdir=
877 verbose=
878 x_includes=NONE
879 x_libraries=NONE
881 # Installation directory options.
882 # These are left unexpanded so users can "make install exec_prefix=/foo"
883 # and all the variables that are supposed to be based on exec_prefix
884 # by default will actually change.
885 # Use braces instead of parens because sh, perl, etc. also accept them.
886 # (The list follows the same order as the GNU Coding Standards.)
887 bindir='${exec_prefix}/bin'
888 sbindir='${exec_prefix}/sbin'
889 libexecdir='${exec_prefix}/libexec'
890 datarootdir='${prefix}/share'
891 datadir='${datarootdir}'
892 sysconfdir='${prefix}/etc'
893 sharedstatedir='${prefix}/com'
894 localstatedir='${prefix}/var'
895 includedir='${prefix}/include'
896 oldincludedir='/usr/include'
897 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
898 infodir='${datarootdir}/info'
899 htmldir='${docdir}'
900 dvidir='${docdir}'
901 pdfdir='${docdir}'
902 psdir='${docdir}'
903 libdir='${exec_prefix}/lib'
904 localedir='${datarootdir}/locale'
905 mandir='${datarootdir}/man'
907 ac_prev=
908 ac_dashdash=
909 for ac_option
911   # If the previous option needs an argument, assign it.
912   if test -n "$ac_prev"; then
913     eval $ac_prev=\$ac_option
914     ac_prev=
915     continue
916   fi
918   case $ac_option in
919   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
920   *=)   ac_optarg= ;;
921   *)    ac_optarg=yes ;;
922   esac
924   # Accept the important Cygnus configure options, so we can diagnose typos.
926   case $ac_dashdash$ac_option in
927   --)
928     ac_dashdash=yes ;;
930   -bindir | --bindir | --bindi | --bind | --bin | --bi)
931     ac_prev=bindir ;;
932   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
933     bindir=$ac_optarg ;;
935   -build | --build | --buil | --bui | --bu)
936     ac_prev=build_alias ;;
937   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
938     build_alias=$ac_optarg ;;
940   -cache-file | --cache-file | --cache-fil | --cache-fi \
941   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
942     ac_prev=cache_file ;;
943   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
944   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
945     cache_file=$ac_optarg ;;
947   --config-cache | -C)
948     cache_file=config.cache ;;
950   -datadir | --datadir | --datadi | --datad)
951     ac_prev=datadir ;;
952   -datadir=* | --datadir=* | --datadi=* | --datad=*)
953     datadir=$ac_optarg ;;
955   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
956   | --dataroo | --dataro | --datar)
957     ac_prev=datarootdir ;;
958   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
959   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
960     datarootdir=$ac_optarg ;;
962   -disable-* | --disable-*)
963     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
964     # Reject names that are not valid shell variable names.
965     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
966       as_fn_error $? "invalid feature name: $ac_useropt"
967     ac_useropt_orig=$ac_useropt
968     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
969     case $ac_user_opts in
970       *"
971 "enable_$ac_useropt"
972 "*) ;;
973       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
974          ac_unrecognized_sep=', ';;
975     esac
976     eval enable_$ac_useropt=no ;;
978   -docdir | --docdir | --docdi | --doc | --do)
979     ac_prev=docdir ;;
980   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
981     docdir=$ac_optarg ;;
983   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
984     ac_prev=dvidir ;;
985   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
986     dvidir=$ac_optarg ;;
988   -enable-* | --enable-*)
989     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
990     # Reject names that are not valid shell variable names.
991     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
992       as_fn_error $? "invalid feature name: $ac_useropt"
993     ac_useropt_orig=$ac_useropt
994     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
995     case $ac_user_opts in
996       *"
997 "enable_$ac_useropt"
998 "*) ;;
999       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1000          ac_unrecognized_sep=', ';;
1001     esac
1002     eval enable_$ac_useropt=\$ac_optarg ;;
1004   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1005   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1006   | --exec | --exe | --ex)
1007     ac_prev=exec_prefix ;;
1008   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1009   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1010   | --exec=* | --exe=* | --ex=*)
1011     exec_prefix=$ac_optarg ;;
1013   -gas | --gas | --ga | --g)
1014     # Obsolete; use --with-gas.
1015     with_gas=yes ;;
1017   -help | --help | --hel | --he | -h)
1018     ac_init_help=long ;;
1019   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1020     ac_init_help=recursive ;;
1021   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1022     ac_init_help=short ;;
1024   -host | --host | --hos | --ho)
1025     ac_prev=host_alias ;;
1026   -host=* | --host=* | --hos=* | --ho=*)
1027     host_alias=$ac_optarg ;;
1029   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1030     ac_prev=htmldir ;;
1031   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1032   | --ht=*)
1033     htmldir=$ac_optarg ;;
1035   -includedir | --includedir | --includedi | --included | --include \
1036   | --includ | --inclu | --incl | --inc)
1037     ac_prev=includedir ;;
1038   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1039   | --includ=* | --inclu=* | --incl=* | --inc=*)
1040     includedir=$ac_optarg ;;
1042   -infodir | --infodir | --infodi | --infod | --info | --inf)
1043     ac_prev=infodir ;;
1044   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1045     infodir=$ac_optarg ;;
1047   -libdir | --libdir | --libdi | --libd)
1048     ac_prev=libdir ;;
1049   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1050     libdir=$ac_optarg ;;
1052   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1053   | --libexe | --libex | --libe)
1054     ac_prev=libexecdir ;;
1055   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1056   | --libexe=* | --libex=* | --libe=*)
1057     libexecdir=$ac_optarg ;;
1059   -localedir | --localedir | --localedi | --localed | --locale)
1060     ac_prev=localedir ;;
1061   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1062     localedir=$ac_optarg ;;
1064   -localstatedir | --localstatedir | --localstatedi | --localstated \
1065   | --localstate | --localstat | --localsta | --localst | --locals)
1066     ac_prev=localstatedir ;;
1067   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1068   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1069     localstatedir=$ac_optarg ;;
1071   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1072     ac_prev=mandir ;;
1073   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1074     mandir=$ac_optarg ;;
1076   -nfp | --nfp | --nf)
1077     # Obsolete; use --without-fp.
1078     with_fp=no ;;
1080   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1081   | --no-cr | --no-c | -n)
1082     no_create=yes ;;
1084   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1085   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1086     no_recursion=yes ;;
1088   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1089   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1090   | --oldin | --oldi | --old | --ol | --o)
1091     ac_prev=oldincludedir ;;
1092   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1093   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1094   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1095     oldincludedir=$ac_optarg ;;
1097   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1098     ac_prev=prefix ;;
1099   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1100     prefix=$ac_optarg ;;
1102   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1103   | --program-pre | --program-pr | --program-p)
1104     ac_prev=program_prefix ;;
1105   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1106   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1107     program_prefix=$ac_optarg ;;
1109   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1110   | --program-suf | --program-su | --program-s)
1111     ac_prev=program_suffix ;;
1112   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1113   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1114     program_suffix=$ac_optarg ;;
1116   -program-transform-name | --program-transform-name \
1117   | --program-transform-nam | --program-transform-na \
1118   | --program-transform-n | --program-transform- \
1119   | --program-transform | --program-transfor \
1120   | --program-transfo | --program-transf \
1121   | --program-trans | --program-tran \
1122   | --progr-tra | --program-tr | --program-t)
1123     ac_prev=program_transform_name ;;
1124   -program-transform-name=* | --program-transform-name=* \
1125   | --program-transform-nam=* | --program-transform-na=* \
1126   | --program-transform-n=* | --program-transform-=* \
1127   | --program-transform=* | --program-transfor=* \
1128   | --program-transfo=* | --program-transf=* \
1129   | --program-trans=* | --program-tran=* \
1130   | --progr-tra=* | --program-tr=* | --program-t=*)
1131     program_transform_name=$ac_optarg ;;
1133   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1134     ac_prev=pdfdir ;;
1135   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1136     pdfdir=$ac_optarg ;;
1138   -psdir | --psdir | --psdi | --psd | --ps)
1139     ac_prev=psdir ;;
1140   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1141     psdir=$ac_optarg ;;
1143   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1144   | -silent | --silent | --silen | --sile | --sil)
1145     silent=yes ;;
1147   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1148     ac_prev=sbindir ;;
1149   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1150   | --sbi=* | --sb=*)
1151     sbindir=$ac_optarg ;;
1153   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1154   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1155   | --sharedst | --shareds | --shared | --share | --shar \
1156   | --sha | --sh)
1157     ac_prev=sharedstatedir ;;
1158   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1159   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1160   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1161   | --sha=* | --sh=*)
1162     sharedstatedir=$ac_optarg ;;
1164   -site | --site | --sit)
1165     ac_prev=site ;;
1166   -site=* | --site=* | --sit=*)
1167     site=$ac_optarg ;;
1169   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1170     ac_prev=srcdir ;;
1171   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1172     srcdir=$ac_optarg ;;
1174   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1175   | --syscon | --sysco | --sysc | --sys | --sy)
1176     ac_prev=sysconfdir ;;
1177   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1178   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1179     sysconfdir=$ac_optarg ;;
1181   -target | --target | --targe | --targ | --tar | --ta | --t)
1182     ac_prev=target_alias ;;
1183   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1184     target_alias=$ac_optarg ;;
1186   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1187     verbose=yes ;;
1189   -version | --version | --versio | --versi | --vers | -V)
1190     ac_init_version=: ;;
1192   -with-* | --with-*)
1193     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1194     # Reject names that are not valid shell variable names.
1195     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1196       as_fn_error $? "invalid package name: $ac_useropt"
1197     ac_useropt_orig=$ac_useropt
1198     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1199     case $ac_user_opts in
1200       *"
1201 "with_$ac_useropt"
1202 "*) ;;
1203       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1204          ac_unrecognized_sep=', ';;
1205     esac
1206     eval with_$ac_useropt=\$ac_optarg ;;
1208   -without-* | --without-*)
1209     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1210     # Reject names that are not valid shell variable names.
1211     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1212       as_fn_error $? "invalid package name: $ac_useropt"
1213     ac_useropt_orig=$ac_useropt
1214     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1215     case $ac_user_opts in
1216       *"
1217 "with_$ac_useropt"
1218 "*) ;;
1219       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1220          ac_unrecognized_sep=', ';;
1221     esac
1222     eval with_$ac_useropt=no ;;
1224   --x)
1225     # Obsolete; use --with-x.
1226     with_x=yes ;;
1228   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1229   | --x-incl | --x-inc | --x-in | --x-i)
1230     ac_prev=x_includes ;;
1231   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1232   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1233     x_includes=$ac_optarg ;;
1235   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1236   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1237     ac_prev=x_libraries ;;
1238   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1239   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1240     x_libraries=$ac_optarg ;;
1242   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1243 Try \`$0 --help' for more information"
1244     ;;
1246   *=*)
1247     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1248     # Reject names that are not valid shell variable names.
1249     case $ac_envvar in #(
1250       '' | [0-9]* | *[!_$as_cr_alnum]* )
1251       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1252     esac
1253     eval $ac_envvar=\$ac_optarg
1254     export $ac_envvar ;;
1256   *)
1257     # FIXME: should be removed in autoconf 3.0.
1258     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1259     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1260       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1261     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1262     ;;
1264   esac
1265 done
1267 if test -n "$ac_prev"; then
1268   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1269   as_fn_error $? "missing argument to $ac_option"
1272 if test -n "$ac_unrecognized_opts"; then
1273   case $enable_option_checking in
1274     no) ;;
1275     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1276     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1277   esac
1280 # Check all directory arguments for consistency.
1281 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1282                 datadir sysconfdir sharedstatedir localstatedir includedir \
1283                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1284                 libdir localedir mandir
1286   eval ac_val=\$$ac_var
1287   # Remove trailing slashes.
1288   case $ac_val in
1289     */ )
1290       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1291       eval $ac_var=\$ac_val;;
1292   esac
1293   # Be sure to have absolute directory names.
1294   case $ac_val in
1295     [\\/$]* | ?:[\\/]* )  continue;;
1296     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1297   esac
1298   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1299 done
1301 # There might be people who depend on the old broken behavior: `$host'
1302 # used to hold the argument of --host etc.
1303 # FIXME: To remove some day.
1304 build=$build_alias
1305 host=$host_alias
1306 target=$target_alias
1308 # FIXME: To remove some day.
1309 if test "x$host_alias" != x; then
1310   if test "x$build_alias" = x; then
1311     cross_compiling=maybe
1312     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1313     If a cross compiler is detected then cross compile mode will be used" >&2
1314   elif test "x$build_alias" != "x$host_alias"; then
1315     cross_compiling=yes
1316   fi
1319 ac_tool_prefix=
1320 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1322 test "$silent" = yes && exec 6>/dev/null
1325 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1326 ac_ls_di=`ls -di .` &&
1327 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1328   as_fn_error $? "working directory cannot be determined"
1329 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1330   as_fn_error $? "pwd does not report name of working directory"
1333 # Find the source files, if location was not specified.
1334 if test -z "$srcdir"; then
1335   ac_srcdir_defaulted=yes
1336   # Try the directory containing this script, then the parent directory.
1337   ac_confdir=`$as_dirname -- "$as_myself" ||
1338 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1339          X"$as_myself" : 'X\(//\)[^/]' \| \
1340          X"$as_myself" : 'X\(//\)$' \| \
1341          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1342 $as_echo X"$as_myself" |
1343     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1344             s//\1/
1345             q
1346           }
1347           /^X\(\/\/\)[^/].*/{
1348             s//\1/
1349             q
1350           }
1351           /^X\(\/\/\)$/{
1352             s//\1/
1353             q
1354           }
1355           /^X\(\/\).*/{
1356             s//\1/
1357             q
1358           }
1359           s/.*/./; q'`
1360   srcdir=$ac_confdir
1361   if test ! -r "$srcdir/$ac_unique_file"; then
1362     srcdir=..
1363   fi
1364 else
1365   ac_srcdir_defaulted=no
1367 if test ! -r "$srcdir/$ac_unique_file"; then
1368   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1369   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1371 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1372 ac_abs_confdir=`(
1373         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1374         pwd)`
1375 # When building in place, set srcdir=.
1376 if test "$ac_abs_confdir" = "$ac_pwd"; then
1377   srcdir=.
1379 # Remove unnecessary trailing slashes from srcdir.
1380 # Double slashes in file names in object file debugging info
1381 # mess up M-x gdb in Emacs.
1382 case $srcdir in
1383 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1384 esac
1385 for ac_var in $ac_precious_vars; do
1386   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1387   eval ac_env_${ac_var}_value=\$${ac_var}
1388   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1389   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1390 done
1393 # Report the --help message.
1395 if test "$ac_init_help" = "long"; then
1396   # Omit some internal or obsolete options to make the list less imposing.
1397   # This message is too long to be a string in the A/UX 3.1 sh.
1398   cat <<_ACEOF
1399 \`configure' configures PCRE 8.32 to adapt to many kinds of systems.
1401 Usage: $0 [OPTION]... [VAR=VALUE]...
1403 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1404 VAR=VALUE.  See below for descriptions of some of the useful variables.
1406 Defaults for the options are specified in brackets.
1408 Configuration:
1409   -h, --help              display this help and exit
1410       --help=short        display options specific to this package
1411       --help=recursive    display the short help of all the included packages
1412   -V, --version           display version information and exit
1413   -q, --quiet, --silent   do not print \`checking ...' messages
1414       --cache-file=FILE   cache test results in FILE [disabled]
1415   -C, --config-cache      alias for \`--cache-file=config.cache'
1416   -n, --no-create         do not create output files
1417       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1419 Installation directories:
1420   --prefix=PREFIX         install architecture-independent files in PREFIX
1421                           @<:@@S|@ac_default_prefix@:>@
1422   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1423                           @<:@PREFIX@:>@
1425 By default, \`make install' will install all the files in
1426 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1427 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1428 for instance \`--prefix=\$HOME'.
1430 For better control, use the options below.
1432 Fine tuning of the installation directories:
1433   --bindir=DIR            user executables [EPREFIX/bin]
1434   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1435   --libexecdir=DIR        program executables [EPREFIX/libexec]
1436   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1437   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1438   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1439   --libdir=DIR            object code libraries [EPREFIX/lib]
1440   --includedir=DIR        C header files [PREFIX/include]
1441   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1442   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1443   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1444   --infodir=DIR           info documentation [DATAROOTDIR/info]
1445   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1446   --mandir=DIR            man documentation [DATAROOTDIR/man]
1447   --docdir=DIR            documentation root @<:@DATAROOTDIR/doc/pcre@:>@
1448   --htmldir=DIR           html documentation [DOCDIR]
1449   --dvidir=DIR            dvi documentation [DOCDIR]
1450   --pdfdir=DIR            pdf documentation [DOCDIR]
1451   --psdir=DIR             ps documentation [DOCDIR]
1452 _ACEOF
1454   cat <<\_ACEOF
1456 Program names:
1457   --program-prefix=PREFIX            prepend PREFIX to installed program names
1458   --program-suffix=SUFFIX            append SUFFIX to installed program names
1459   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1461 System types:
1462   --build=BUILD     configure for building on BUILD [guessed]
1463   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1464 _ACEOF
1467 if test -n "$ac_init_help"; then
1468   case $ac_init_help in
1469      short | recursive ) echo "Configuration of PCRE 8.32:";;
1470    esac
1471   cat <<\_ACEOF
1473 Optional Features:
1474   --disable-option-checking  ignore unrecognized --enable/--with options
1475   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1476   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1477   --enable-silent-rules          less verbose build output (undo: `make V=1')
1478   --disable-silent-rules         verbose build output (undo: `make V=0')
1479   --disable-dependency-tracking  speeds up one-time build
1480   --enable-dependency-tracking   do not reject slow dependency extractors
1481   --enable-shared@<:@=PKGS@:>@  build shared libraries @<:@default=yes@:>@
1482   --enable-static@<:@=PKGS@:>@  build static libraries @<:@default=yes@:>@
1483   --enable-fast-install@<:@=PKGS@:>@ 
1484                           optimize for fast installation @<:@default=yes@:>@
1485   --disable-libtool-lock  avoid locking (might break parallel builds)
1486   --disable-pcre8         disable 8 bit character support
1487   --enable-pcre16         enable 16 bit character support
1488   --enable-pcre32         enable 32 bit character support
1489   --disable-cpp           disable C++ support
1490   --enable-jit            enable Just-In-Time compiling support
1491   --disable-pcregrep-jit  disable JIT support in pcregrep
1492   --enable-rebuild-chartables 
1493                           rebuild character tables in current locale
1494   --enable-utf8           another name for --enable-utf. Kept only for
1495                           compatibility reasons
1496   --enable-utf            enable UTF-8/16/32 support (incompatible with
1497                           --enable-ebcdic)
1498   --enable-unicode-properties 
1499                           enable Unicode properties support (implies
1500                           --enable-utf)
1501   --enable-newline-is-cr  use CR as newline character
1502   --enable-newline-is-lf  use LF as newline character (default)
1503   --enable-newline-is-crlf 
1504                           use CRLF as newline sequence
1505   --enable-newline-is-anycrlf 
1506                           use CR, LF, or CRLF as newline sequence
1507   --enable-newline-is-any use any valid Unicode newline sequence
1508   --enable-bsr-anycrlf    \R matches only CR, LF, CRLF by default
1509   --enable-ebcdic         assume EBCDIC coding rather than ASCII; incompatible
1510                           with --enable-utf; use only in (uncommon) EBCDIC
1511                           environments; it implies --enable-rebuild-chartables
1512   --enable-ebcdic-nl25    set EBCDIC code for NL to 0x25 instead of 0x15; it
1513                           implies --enable-ebcdic
1514   --disable-stack-for-recursion 
1515                           don't use stack recursion when matching
1516   --enable-pcregrep-libz  link pcregrep with libz to handle .gz files
1517   --enable-pcregrep-libbz2 
1518                           link pcregrep with libbz2 to handle .bz2 files
1519   --enable-pcretest-libedit 
1520                           link pcretest with libedit
1521   --enable-pcretest-libreadline 
1522                           link pcretest with libreadline
1523   --enable-valgrind       valgrind support
1524   --enable-coverage       enable code coverage reports using gcov
1526 Optional Packages:
1527   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1528   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1529   --with-pic              try to use only PIC/non-PIC objects @<:@default=use
1530                           both@:>@
1531   --with-gnu-ld           assume the C compiler uses GNU ld @<:@default=no@:>@
1532   --with-sysroot=DIR Search for dependent libraries within DIR
1533                         (or the compiler's sysroot if not specified).
1534   --with-pcregrep-bufsize=N 
1535                           pcregrep buffer size (default=20480)
1536   --with-posix-malloc-threshold=NBYTES 
1537                           threshold for POSIX malloc usage (default=10)
1538   --with-link-size=N      internal link size (2, 3, or 4 allowed; default=2)
1539   --with-match-limit=N    default limit on internal looping (default=10000000)
1540   --with-match-limit-recursion=N 
1541                           default limit on internal recursion
1542                           (default=MATCH_LIMIT)
1544 Some influential environment variables:
1545   CC          C compiler command
1546   CFLAGS      C compiler flags
1547   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1548               nonstandard directory <lib dir>
1549   LIBS        libraries to pass to the linker, e.g. -l<library>
1550   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1551               you have headers in a nonstandard directory <include dir>
1552   CXX         C++ compiler command
1553   CXXFLAGS    C++ compiler flags
1554   CPP         C preprocessor
1555   CXXCPP      C++ preprocessor
1556   PKG_CONFIG  path to pkg-config utility
1557   PKG_CONFIG_PATH 
1558               directories to add to pkg-config's search path
1559   PKG_CONFIG_LIBDIR 
1560               path overriding pkg-config's built-in search path
1561   VALGRIND_CFLAGS 
1562               C compiler flags for VALGRIND, overriding pkg-config
1563   VALGRIND_LIBS 
1564               linker flags for VALGRIND, overriding pkg-config
1565   LCOV        the ltp lcov program
1566   GENHTML     the ltp genhtml program
1568 Use these variables to override the choices made by `configure' or to help
1569 it to find libraries and programs with nonstandard names/locations.
1571 Report bugs to the package provider.
1572 _ACEOF
1573 ac_status=$?
1576 if test "$ac_init_help" = "recursive"; then
1577   # If there are subdirs, report their specific --help.
1578   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1579     test -d "$ac_dir" ||
1580       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1581       continue
1582     ac_builddir=.
1584 case "$ac_dir" in
1585 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1587   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1588   # A ".." for each directory in $ac_dir_suffix.
1589   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1590   case $ac_top_builddir_sub in
1591   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1592   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1593   esac ;;
1594 esac
1595 ac_abs_top_builddir=$ac_pwd
1596 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1597 # for backward compatibility:
1598 ac_top_builddir=$ac_top_build_prefix
1600 case $srcdir in
1601   .)  # We are building in place.
1602     ac_srcdir=.
1603     ac_top_srcdir=$ac_top_builddir_sub
1604     ac_abs_top_srcdir=$ac_pwd ;;
1605   [\\/]* | ?:[\\/]* )  # Absolute name.
1606     ac_srcdir=$srcdir$ac_dir_suffix;
1607     ac_top_srcdir=$srcdir
1608     ac_abs_top_srcdir=$srcdir ;;
1609   *) # Relative name.
1610     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1611     ac_top_srcdir=$ac_top_build_prefix$srcdir
1612     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1613 esac
1614 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1616     cd "$ac_dir" || { ac_status=$?; continue; }
1617     # Check for guested configure.
1618     if test -f "$ac_srcdir/configure.gnu"; then
1619       echo &&
1620       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1621     elif test -f "$ac_srcdir/configure"; then
1622       echo &&
1623       $SHELL "$ac_srcdir/configure" --help=recursive
1624     else
1625       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1626     fi || ac_status=$?
1627     cd "$ac_pwd" || { ac_status=$?; break; }
1628   done
1631 test -n "$ac_init_help" && exit $ac_status
1632 if $ac_init_version; then
1633   cat <<\_ACEOF
1634 PCRE configure 8.32
1635 generated by GNU Autoconf 2.68
1637 Copyright (C) 2010 Free Software Foundation, Inc.
1638 This configure script is free software; the Free Software Foundation
1639 gives unlimited permission to copy, distribute and modify it.
1640 _ACEOF
1641   exit
1644 ## ------------------------ ##
1645 ## Autoconf initialization. ##
1646 ## ------------------------ ##
1648 @%:@ ac_fn_c_try_compile LINENO
1649 @%:@ --------------------------
1650 @%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1651 ac_fn_c_try_compile ()
1653   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654   rm -f conftest.$ac_objext
1655   if { { ac_try="$ac_compile"
1656 case "(($ac_try" in
1657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1658   *) ac_try_echo=$ac_try;;
1659 esac
1660 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1661 $as_echo "$ac_try_echo"; } >&5
1662   (eval "$ac_compile") 2>conftest.err
1663   ac_status=$?
1664   if test -s conftest.err; then
1665     grep -v '^ *+' conftest.err >conftest.er1
1666     cat conftest.er1 >&5
1667     mv -f conftest.er1 conftest.err
1668   fi
1669   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1670   test $ac_status = 0; } && {
1671          test -z "$ac_c_werror_flag" ||
1672          test ! -s conftest.err
1673        } && test -s conftest.$ac_objext; then :
1674   ac_retval=0
1675 else
1676   $as_echo "$as_me: failed program was:" >&5
1677 sed 's/^/| /' conftest.$ac_ext >&5
1679         ac_retval=1
1681   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1682   as_fn_set_status $ac_retval
1684 } @%:@ ac_fn_c_try_compile
1686 @%:@ ac_fn_cxx_try_compile LINENO
1687 @%:@ ----------------------------
1688 @%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1689 ac_fn_cxx_try_compile ()
1691   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692   rm -f conftest.$ac_objext
1693   if { { ac_try="$ac_compile"
1694 case "(($ac_try" in
1695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696   *) ac_try_echo=$ac_try;;
1697 esac
1698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699 $as_echo "$ac_try_echo"; } >&5
1700   (eval "$ac_compile") 2>conftest.err
1701   ac_status=$?
1702   if test -s conftest.err; then
1703     grep -v '^ *+' conftest.err >conftest.er1
1704     cat conftest.er1 >&5
1705     mv -f conftest.er1 conftest.err
1706   fi
1707   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708   test $ac_status = 0; } && {
1709          test -z "$ac_cxx_werror_flag" ||
1710          test ! -s conftest.err
1711        } && test -s conftest.$ac_objext; then :
1712   ac_retval=0
1713 else
1714   $as_echo "$as_me: failed program was:" >&5
1715 sed 's/^/| /' conftest.$ac_ext >&5
1717         ac_retval=1
1719   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1720   as_fn_set_status $ac_retval
1722 } @%:@ ac_fn_cxx_try_compile
1724 @%:@ ac_fn_c_try_cpp LINENO
1725 @%:@ ----------------------
1726 @%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
1727 ac_fn_c_try_cpp ()
1729   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730   if { { ac_try="$ac_cpp conftest.$ac_ext"
1731 case "(($ac_try" in
1732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1733   *) ac_try_echo=$ac_try;;
1734 esac
1735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736 $as_echo "$ac_try_echo"; } >&5
1737   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1738   ac_status=$?
1739   if test -s conftest.err; then
1740     grep -v '^ *+' conftest.err >conftest.er1
1741     cat conftest.er1 >&5
1742     mv -f conftest.er1 conftest.err
1743   fi
1744   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745   test $ac_status = 0; } > conftest.i && {
1746          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1747          test ! -s conftest.err
1748        }; then :
1749   ac_retval=0
1750 else
1751   $as_echo "$as_me: failed program was:" >&5
1752 sed 's/^/| /' conftest.$ac_ext >&5
1754     ac_retval=1
1756   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1757   as_fn_set_status $ac_retval
1759 } @%:@ ac_fn_c_try_cpp
1761 @%:@ ac_fn_c_try_run LINENO
1762 @%:@ ----------------------
1763 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
1764 @%:@ that executables *can* be run.
1765 ac_fn_c_try_run ()
1767   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768   if { { ac_try="$ac_link"
1769 case "(($ac_try" in
1770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1771   *) ac_try_echo=$ac_try;;
1772 esac
1773 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1774 $as_echo "$ac_try_echo"; } >&5
1775   (eval "$ac_link") 2>&5
1776   ac_status=$?
1777   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1778   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1779   { { case "(($ac_try" in
1780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1781   *) ac_try_echo=$ac_try;;
1782 esac
1783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1784 $as_echo "$ac_try_echo"; } >&5
1785   (eval "$ac_try") 2>&5
1786   ac_status=$?
1787   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1788   test $ac_status = 0; }; }; then :
1789   ac_retval=0
1790 else
1791   $as_echo "$as_me: program exited with status $ac_status" >&5
1792        $as_echo "$as_me: failed program was:" >&5
1793 sed 's/^/| /' conftest.$ac_ext >&5
1795        ac_retval=$ac_status
1797   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1798   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1799   as_fn_set_status $ac_retval
1801 } @%:@ ac_fn_c_try_run
1803 @%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1804 @%:@ -------------------------------------------------------
1805 @%:@ Tests whether HEADER exists and can be compiled using the include files in
1806 @%:@ INCLUDES, setting the cache variable VAR accordingly.
1807 ac_fn_c_check_header_compile ()
1809   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1811 $as_echo_n "checking for $2... " >&6; }
1812 if eval \${$3+:} false; then :
1813   $as_echo_n "(cached) " >&6
1814 else
1815   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1816 /* end confdefs.h.  */
1818 @%:@include <$2>
1819 _ACEOF
1820 if ac_fn_c_try_compile "$LINENO"; then :
1821   eval "$3=yes"
1822 else
1823   eval "$3=no"
1825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1827 eval ac_res=\$$3
1828                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1829 $as_echo "$ac_res" >&6; }
1830   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1832 } @%:@ ac_fn_c_check_header_compile
1834 @%:@ ac_fn_c_find_intX_t LINENO BITS VAR
1835 @%:@ -----------------------------------
1836 @%:@ Finds a signed integer type with width BITS, setting cache variable VAR
1837 @%:@ accordingly.
1838 ac_fn_c_find_intX_t ()
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 int$2_t" >&5
1842 $as_echo_n "checking for int$2_t... " >&6; }
1843 if eval \${$3+:} false; then :
1844   $as_echo_n "(cached) " >&6
1845 else
1846   eval "$3=no"
1847      # Order is important - never check a type that is potentially smaller
1848      # than half of the expected target width.
1849      for ac_type in int$2_t 'int' 'long int' \
1850          'long long int' 'short int' 'signed char'; do
1851        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1852 /* end confdefs.h.  */
1853 $ac_includes_default
1854              enum { N = $2 / 2 - 1 };
1856 main ()
1858 static int test_array @<:@1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))@:>@;
1859 test_array @<:@0@:>@ = 0
1861   ;
1862   return 0;
1864 _ACEOF
1865 if ac_fn_c_try_compile "$LINENO"; then :
1866   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1867 /* end confdefs.h.  */
1868 $ac_includes_default
1869                 enum { N = $2 / 2 - 1 };
1871 main ()
1873 static int test_array @<:@1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1874                  < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))@:>@;
1875 test_array @<:@0@:>@ = 0
1877   ;
1878   return 0;
1880 _ACEOF
1881 if ac_fn_c_try_compile "$LINENO"; then :
1882   
1883 else
1884   case $ac_type in @%:@(
1885   int$2_t) :
1886     eval "$3=yes" ;; @%:@(
1887   *) :
1888     eval "$3=\$ac_type" ;;
1889 esac
1891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1894        if eval test \"x\$"$3"\" = x"no"; then :
1895   
1896 else
1897   break
1899      done
1901 eval ac_res=\$$3
1902                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1903 $as_echo "$ac_res" >&6; }
1904   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1906 } @%:@ ac_fn_c_find_intX_t
1908 @%:@ ac_fn_c_try_link LINENO
1909 @%:@ -----------------------
1910 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
1911 ac_fn_c_try_link ()
1913   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1914   rm -f conftest.$ac_objext conftest$ac_exeext
1915   if { { ac_try="$ac_link"
1916 case "(($ac_try" in
1917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1918   *) ac_try_echo=$ac_try;;
1919 esac
1920 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1921 $as_echo "$ac_try_echo"; } >&5
1922   (eval "$ac_link") 2>conftest.err
1923   ac_status=$?
1924   if test -s conftest.err; then
1925     grep -v '^ *+' conftest.err >conftest.er1
1926     cat conftest.er1 >&5
1927     mv -f conftest.er1 conftest.err
1928   fi
1929   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1930   test $ac_status = 0; } && {
1931          test -z "$ac_c_werror_flag" ||
1932          test ! -s conftest.err
1933        } && test -s conftest$ac_exeext && {
1934          test "$cross_compiling" = yes ||
1935          $as_test_x conftest$ac_exeext
1936        }; then :
1937   ac_retval=0
1938 else
1939   $as_echo "$as_me: failed program was:" >&5
1940 sed 's/^/| /' conftest.$ac_ext >&5
1942         ac_retval=1
1944   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1945   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1946   # interfere with the next link command; also delete a directory that is
1947   # left behind by Apple's compiler.  We do this before executing the actions.
1948   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1949   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1950   as_fn_set_status $ac_retval
1952 } @%:@ ac_fn_c_try_link
1954 @%:@ ac_fn_c_check_func LINENO FUNC VAR
1955 @%:@ ----------------------------------
1956 @%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
1957 ac_fn_c_check_func ()
1959   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1960   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1961 $as_echo_n "checking for $2... " >&6; }
1962 if eval \${$3+:} false; then :
1963   $as_echo_n "(cached) " >&6
1964 else
1965   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1966 /* end confdefs.h.  */
1967 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1968    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1969 #define $2 innocuous_$2
1971 /* System header to define __stub macros and hopefully few prototypes,
1972     which can conflict with char $2 (); below.
1973     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1974     <limits.h> exists even on freestanding compilers.  */
1976 #ifdef __STDC__
1977 # include <limits.h>
1978 #else
1979 # include <assert.h>
1980 #endif
1982 #undef $2
1984 /* Override any GCC internal prototype to avoid an error.
1985    Use char because int might match the return type of a GCC
1986    builtin and then its argument prototype would still apply.  */
1987 #ifdef __cplusplus
1988 extern "C"
1989 #endif
1990 char $2 ();
1991 /* The GNU C library defines this for functions which it implements
1992     to always fail with ENOSYS.  Some functions are actually named
1993     something starting with __ and the normal name is an alias.  */
1994 #if defined __stub_$2 || defined __stub___$2
1995 choke me
1996 #endif
1999 main ()
2001 return $2 ();
2002   ;
2003   return 0;
2005 _ACEOF
2006 if ac_fn_c_try_link "$LINENO"; then :
2007   eval "$3=yes"
2008 else
2009   eval "$3=no"
2011 rm -f core conftest.err conftest.$ac_objext \
2012     conftest$ac_exeext conftest.$ac_ext
2014 eval ac_res=\$$3
2015                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2016 $as_echo "$ac_res" >&6; }
2017   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2019 } @%:@ ac_fn_c_check_func
2021 @%:@ ac_fn_cxx_try_cpp LINENO
2022 @%:@ ------------------------
2023 @%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
2024 ac_fn_cxx_try_cpp ()
2026   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2027   if { { ac_try="$ac_cpp conftest.$ac_ext"
2028 case "(($ac_try" in
2029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2030   *) ac_try_echo=$ac_try;;
2031 esac
2032 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2033 $as_echo "$ac_try_echo"; } >&5
2034   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2035   ac_status=$?
2036   if test -s conftest.err; then
2037     grep -v '^ *+' conftest.err >conftest.er1
2038     cat conftest.er1 >&5
2039     mv -f conftest.er1 conftest.err
2040   fi
2041   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2042   test $ac_status = 0; } > conftest.i && {
2043          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2044          test ! -s conftest.err
2045        }; then :
2046   ac_retval=0
2047 else
2048   $as_echo "$as_me: failed program was:" >&5
2049 sed 's/^/| /' conftest.$ac_ext >&5
2051     ac_retval=1
2053   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2054   as_fn_set_status $ac_retval
2056 } @%:@ ac_fn_cxx_try_cpp
2058 @%:@ ac_fn_cxx_try_link LINENO
2059 @%:@ -------------------------
2060 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
2061 ac_fn_cxx_try_link ()
2063   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2064   rm -f conftest.$ac_objext conftest$ac_exeext
2065   if { { ac_try="$ac_link"
2066 case "(($ac_try" in
2067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2068   *) ac_try_echo=$ac_try;;
2069 esac
2070 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2071 $as_echo "$ac_try_echo"; } >&5
2072   (eval "$ac_link") 2>conftest.err
2073   ac_status=$?
2074   if test -s conftest.err; then
2075     grep -v '^ *+' conftest.err >conftest.er1
2076     cat conftest.er1 >&5
2077     mv -f conftest.er1 conftest.err
2078   fi
2079   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2080   test $ac_status = 0; } && {
2081          test -z "$ac_cxx_werror_flag" ||
2082          test ! -s conftest.err
2083        } && test -s conftest$ac_exeext && {
2084          test "$cross_compiling" = yes ||
2085          $as_test_x conftest$ac_exeext
2086        }; then :
2087   ac_retval=0
2088 else
2089   $as_echo "$as_me: failed program was:" >&5
2090 sed 's/^/| /' conftest.$ac_ext >&5
2092         ac_retval=1
2094   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2095   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2096   # interfere with the next link command; also delete a directory that is
2097   # left behind by Apple's compiler.  We do this before executing the actions.
2098   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2099   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2100   as_fn_set_status $ac_retval
2102 } @%:@ ac_fn_cxx_try_link
2104 @%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2105 @%:@ -------------------------------------------------------
2106 @%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using
2107 @%:@ the include files in INCLUDES and setting the cache variable VAR
2108 @%:@ accordingly.
2109 ac_fn_c_check_header_mongrel ()
2111   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2112   if eval \${$3+:} false; then :
2113   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2114 $as_echo_n "checking for $2... " >&6; }
2115 if eval \${$3+:} false; then :
2116   $as_echo_n "(cached) " >&6
2118 eval ac_res=\$$3
2119                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2120 $as_echo "$ac_res" >&6; }
2121 else
2122   # Is the header compilable?
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2124 $as_echo_n "checking $2 usability... " >&6; }
2125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2126 /* end confdefs.h.  */
2128 @%:@include <$2>
2129 _ACEOF
2130 if ac_fn_c_try_compile "$LINENO"; then :
2131   ac_header_compiler=yes
2132 else
2133   ac_header_compiler=no
2135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2137 $as_echo "$ac_header_compiler" >&6; }
2139 # Is the header present?
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2141 $as_echo_n "checking $2 presence... " >&6; }
2142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2143 /* end confdefs.h.  */
2144 @%:@include <$2>
2145 _ACEOF
2146 if ac_fn_c_try_cpp "$LINENO"; then :
2147   ac_header_preproc=yes
2148 else
2149   ac_header_preproc=no
2151 rm -f conftest.err conftest.i conftest.$ac_ext
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2153 $as_echo "$ac_header_preproc" >&6; }
2155 # So?  What about this header?
2156 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2157   yes:no: )
2158     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2159 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2160     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2161 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2162     ;;
2163   no:yes:* )
2164     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2165 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2166     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2167 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2168     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2169 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2170     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2171 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2172     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2173 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2174     ;;
2175 esac
2176   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2177 $as_echo_n "checking for $2... " >&6; }
2178 if eval \${$3+:} false; then :
2179   $as_echo_n "(cached) " >&6
2180 else
2181   eval "$3=\$ac_header_compiler"
2183 eval ac_res=\$$3
2184                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2185 $as_echo "$ac_res" >&6; }
2187   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2189 } @%:@ ac_fn_c_check_header_mongrel
2191 @%:@ ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2192 @%:@ ---------------------------------------------------------
2193 @%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using
2194 @%:@ the include files in INCLUDES and setting the cache variable VAR
2195 @%:@ accordingly.
2196 ac_fn_cxx_check_header_mongrel ()
2198   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2199   if eval \${$3+:} false; then :
2200   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2201 $as_echo_n "checking for $2... " >&6; }
2202 if eval \${$3+:} false; then :
2203   $as_echo_n "(cached) " >&6
2205 eval ac_res=\$$3
2206                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2207 $as_echo "$ac_res" >&6; }
2208 else
2209   # Is the header compilable?
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2211 $as_echo_n "checking $2 usability... " >&6; }
2212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2213 /* end confdefs.h.  */
2215 @%:@include <$2>
2216 _ACEOF
2217 if ac_fn_cxx_try_compile "$LINENO"; then :
2218   ac_header_compiler=yes
2219 else
2220   ac_header_compiler=no
2222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2224 $as_echo "$ac_header_compiler" >&6; }
2226 # Is the header present?
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2228 $as_echo_n "checking $2 presence... " >&6; }
2229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2230 /* end confdefs.h.  */
2231 @%:@include <$2>
2232 _ACEOF
2233 if ac_fn_cxx_try_cpp "$LINENO"; then :
2234   ac_header_preproc=yes
2235 else
2236   ac_header_preproc=no
2238 rm -f conftest.err conftest.i conftest.$ac_ext
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2240 $as_echo "$ac_header_preproc" >&6; }
2242 # So?  What about this header?
2243 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2244   yes:no: )
2245     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2246 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2247     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2248 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2249     ;;
2250   no:yes:* )
2251     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2252 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2253     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2254 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2255     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2256 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2257     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2258 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2259     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2260 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2261     ;;
2262 esac
2263   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2264 $as_echo_n "checking for $2... " >&6; }
2265 if eval \${$3+:} false; then :
2266   $as_echo_n "(cached) " >&6
2267 else
2268   eval "$3=\$ac_header_compiler"
2270 eval ac_res=\$$3
2271                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2272 $as_echo "$ac_res" >&6; }
2274   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2276 } @%:@ ac_fn_cxx_check_header_mongrel
2278 @%:@ ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2279 @%:@ ---------------------------------------------
2280 @%:@ Tests whether TYPE exists after having included INCLUDES, setting cache
2281 @%:@ variable VAR accordingly.
2282 ac_fn_cxx_check_type ()
2284   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2285   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2286 $as_echo_n "checking for $2... " >&6; }
2287 if eval \${$3+:} false; then :
2288   $as_echo_n "(cached) " >&6
2289 else
2290   eval "$3=no"
2291   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2292 /* end confdefs.h.  */
2295 main ()
2297 if (sizeof ($2))
2298          return 0;
2299   ;
2300   return 0;
2302 _ACEOF
2303 if ac_fn_cxx_try_compile "$LINENO"; then :
2304   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2305 /* end confdefs.h.  */
2308 main ()
2310 if (sizeof (($2)))
2311             return 0;
2312   ;
2313   return 0;
2315 _ACEOF
2316 if ac_fn_cxx_try_compile "$LINENO"; then :
2317   
2318 else
2319   eval "$3=yes"
2321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2325 eval ac_res=\$$3
2326                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2327 $as_echo "$ac_res" >&6; }
2328   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2330 } @%:@ ac_fn_cxx_check_type
2332 @%:@ ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2333 @%:@ -------------------------------------------
2334 @%:@ Tests whether TYPE exists after having included INCLUDES, setting cache
2335 @%:@ variable VAR accordingly.
2336 ac_fn_c_check_type ()
2338   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2339   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2340 $as_echo_n "checking for $2... " >&6; }
2341 if eval \${$3+:} false; then :
2342   $as_echo_n "(cached) " >&6
2343 else
2344   eval "$3=no"
2345   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2346 /* end confdefs.h.  */
2349 main ()
2351 if (sizeof ($2))
2352          return 0;
2353   ;
2354   return 0;
2356 _ACEOF
2357 if ac_fn_c_try_compile "$LINENO"; then :
2358   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2359 /* end confdefs.h.  */
2362 main ()
2364 if (sizeof (($2)))
2365             return 0;
2366   ;
2367   return 0;
2369 _ACEOF
2370 if ac_fn_c_try_compile "$LINENO"; then :
2371   
2372 else
2373   eval "$3=yes"
2375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2379 eval ac_res=\$$3
2380                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2381 $as_echo "$ac_res" >&6; }
2382   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2384 } @%:@ ac_fn_c_check_type
2385 cat >config.log <<_ACEOF
2386 This file contains any messages produced by compilers while
2387 running configure, to aid debugging if configure makes a mistake.
2389 It was created by PCRE $as_me 8.32, which was
2390 generated by GNU Autoconf 2.68.  Invocation command line was
2392   $ $0 $@
2394 _ACEOF
2395 exec 5>>config.log
2397 cat <<_ASUNAME
2398 ## --------- ##
2399 ## Platform. ##
2400 ## --------- ##
2402 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2403 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2404 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2405 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2406 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2408 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2409 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2411 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2412 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2413 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2414 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2415 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2416 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2417 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2419 _ASUNAME
2421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2422 for as_dir in $PATH
2424   IFS=$as_save_IFS
2425   test -z "$as_dir" && as_dir=.
2426     $as_echo "PATH: $as_dir"
2427   done
2428 IFS=$as_save_IFS
2430 } >&5
2432 cat >&5 <<_ACEOF
2435 ## ----------- ##
2436 ## Core tests. ##
2437 ## ----------- ##
2439 _ACEOF
2442 # Keep a trace of the command line.
2443 # Strip out --no-create and --no-recursion so they do not pile up.
2444 # Strip out --silent because we don't want to record it for future runs.
2445 # Also quote any args containing shell meta-characters.
2446 # Make two passes to allow for proper duplicate-argument suppression.
2447 ac_configure_args=
2448 ac_configure_args0=
2449 ac_configure_args1=
2450 ac_must_keep_next=false
2451 for ac_pass in 1 2
2453   for ac_arg
2454   do
2455     case $ac_arg in
2456     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2457     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2458     | -silent | --silent | --silen | --sile | --sil)
2459       continue ;;
2460     *\'*)
2461       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2462     esac
2463     case $ac_pass in
2464     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2465     2)
2466       as_fn_append ac_configure_args1 " '$ac_arg'"
2467       if test $ac_must_keep_next = true; then
2468         ac_must_keep_next=false # Got value, back to normal.
2469       else
2470         case $ac_arg in
2471           *=* | --config-cache | -C | -disable-* | --disable-* \
2472           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2473           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2474           | -with-* | --with-* | -without-* | --without-* | --x)
2475             case "$ac_configure_args0 " in
2476               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2477             esac
2478             ;;
2479           -* ) ac_must_keep_next=true ;;
2480         esac
2481       fi
2482       as_fn_append ac_configure_args " '$ac_arg'"
2483       ;;
2484     esac
2485   done
2486 done
2487 { ac_configure_args0=; unset ac_configure_args0;}
2488 { ac_configure_args1=; unset ac_configure_args1;}
2490 # When interrupted or exit'd, cleanup temporary files, and complete
2491 # config.log.  We remove comments because anyway the quotes in there
2492 # would cause problems or look ugly.
2493 # WARNING: Use '\'' to represent an apostrophe within the trap.
2494 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2495 trap 'exit_status=$?
2496   # Save into config.log some information that might help in debugging.
2497   {
2498     echo
2500     $as_echo "## ---------------- ##
2501 ## Cache variables. ##
2502 ## ---------------- ##"
2503     echo
2504     # The following way of writing the cache mishandles newlines in values,
2506   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2507     eval ac_val=\$$ac_var
2508     case $ac_val in #(
2509     *${as_nl}*)
2510       case $ac_var in #(
2511       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2512 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2513       esac
2514       case $ac_var in #(
2515       _ | IFS | as_nl) ;; #(
2516       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2517       *) { eval $ac_var=; unset $ac_var;} ;;
2518       esac ;;
2519     esac
2520   done
2521   (set) 2>&1 |
2522     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2523     *${as_nl}ac_space=\ *)
2524       sed -n \
2525         "s/'\''/'\''\\\\'\'''\''/g;
2526           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2527       ;; #(
2528     *)
2529       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2530       ;;
2531     esac |
2532     sort
2534     echo
2536     $as_echo "## ----------------- ##
2537 ## Output variables. ##
2538 ## ----------------- ##"
2539     echo
2540     for ac_var in $ac_subst_vars
2541     do
2542       eval ac_val=\$$ac_var
2543       case $ac_val in
2544       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2545       esac
2546       $as_echo "$ac_var='\''$ac_val'\''"
2547     done | sort
2548     echo
2550     if test -n "$ac_subst_files"; then
2551       $as_echo "## ------------------- ##
2552 ## File substitutions. ##
2553 ## ------------------- ##"
2554       echo
2555       for ac_var in $ac_subst_files
2556       do
2557         eval ac_val=\$$ac_var
2558         case $ac_val in
2559         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2560         esac
2561         $as_echo "$ac_var='\''$ac_val'\''"
2562       done | sort
2563       echo
2564     fi
2566     if test -s confdefs.h; then
2567       $as_echo "## ----------- ##
2568 ## confdefs.h. ##
2569 ## ----------- ##"
2570       echo
2571       cat confdefs.h
2572       echo
2573     fi
2574     test "$ac_signal" != 0 &&
2575       $as_echo "$as_me: caught signal $ac_signal"
2576     $as_echo "$as_me: exit $exit_status"
2577   } >&5
2578   rm -f core *.core core.conftest.* &&
2579     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2580     exit $exit_status
2581 ' 0
2582 for ac_signal in 1 2 13 15; do
2583   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2584 done
2585 ac_signal=0
2587 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2588 rm -f -r conftest* confdefs.h
2590 $as_echo "/* confdefs.h */" > confdefs.h
2592 # Predefined preprocessor variables.
2594 cat >>confdefs.h <<_ACEOF
2595 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
2596 _ACEOF
2598 cat >>confdefs.h <<_ACEOF
2599 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2600 _ACEOF
2602 cat >>confdefs.h <<_ACEOF
2603 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
2604 _ACEOF
2606 cat >>confdefs.h <<_ACEOF
2607 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
2608 _ACEOF
2610 cat >>confdefs.h <<_ACEOF
2611 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2612 _ACEOF
2614 cat >>confdefs.h <<_ACEOF
2615 @%:@define PACKAGE_URL "$PACKAGE_URL"
2616 _ACEOF
2619 # Let the site file select an alternate cache file if it wants to.
2620 # Prefer an explicitly selected file to automatically selected ones.
2621 ac_site_file1=NONE
2622 ac_site_file2=NONE
2623 if test -n "$CONFIG_SITE"; then
2624   # We do not want a PATH search for config.site.
2625   case $CONFIG_SITE in @%:@((
2626     -*)  ac_site_file1=./$CONFIG_SITE;;
2627     */*) ac_site_file1=$CONFIG_SITE;;
2628     *)   ac_site_file1=./$CONFIG_SITE;;
2629   esac
2630 elif test "x$prefix" != xNONE; then
2631   ac_site_file1=$prefix/share/config.site
2632   ac_site_file2=$prefix/etc/config.site
2633 else
2634   ac_site_file1=$ac_default_prefix/share/config.site
2635   ac_site_file2=$ac_default_prefix/etc/config.site
2637 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2639   test "x$ac_site_file" = xNONE && continue
2640   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2641     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2642 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2643     sed 's/^/| /' "$ac_site_file" >&5
2644     . "$ac_site_file" \
2645       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2646 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2647 as_fn_error $? "failed to load site script $ac_site_file
2648 See \`config.log' for more details" "$LINENO" 5; }
2649   fi
2650 done
2652 if test -r "$cache_file"; then
2653   # Some versions of bash will fail to source /dev/null (special files
2654   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2655   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2656     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2657 $as_echo "$as_me: loading cache $cache_file" >&6;}
2658     case $cache_file in
2659       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2660       *)                      . "./$cache_file";;
2661     esac
2662   fi
2663 else
2664   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2665 $as_echo "$as_me: creating cache $cache_file" >&6;}
2666   >$cache_file
2669 # Check that the precious variables saved in the cache have kept the same
2670 # value.
2671 ac_cache_corrupted=false
2672 for ac_var in $ac_precious_vars; do
2673   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2674   eval ac_new_set=\$ac_env_${ac_var}_set
2675   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2676   eval ac_new_val=\$ac_env_${ac_var}_value
2677   case $ac_old_set,$ac_new_set in
2678     set,)
2679       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2680 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2681       ac_cache_corrupted=: ;;
2682     ,set)
2683       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2684 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2685       ac_cache_corrupted=: ;;
2686     ,);;
2687     *)
2688       if test "x$ac_old_val" != "x$ac_new_val"; then
2689         # differences in whitespace do not lead to failure.
2690         ac_old_val_w=`echo x $ac_old_val`
2691         ac_new_val_w=`echo x $ac_new_val`
2692         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2693           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2694 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2695           ac_cache_corrupted=:
2696         else
2697           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2698 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2699           eval $ac_var=\$ac_old_val
2700         fi
2701         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2702 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2703         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2704 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2705       fi;;
2706   esac
2707   # Pass precious variables to config.status.
2708   if test "$ac_new_set" = set; then
2709     case $ac_new_val in
2710     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2711     *) ac_arg=$ac_var=$ac_new_val ;;
2712     esac
2713     case " $ac_configure_args " in
2714       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2715       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2716     esac
2717   fi
2718 done
2719 if $ac_cache_corrupted; then
2720   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2721 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2722   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2723 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2724   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2726 ## -------------------- ##
2727 ## Main body of script. ##
2728 ## -------------------- ##
2730 ac_ext=c
2731 ac_cpp='$CPP $CPPFLAGS'
2732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2738 am__api_version='1.11'
2740 ac_aux_dir=
2741 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2742   if test -f "$ac_dir/install-sh"; then
2743     ac_aux_dir=$ac_dir
2744     ac_install_sh="$ac_aux_dir/install-sh -c"
2745     break
2746   elif test -f "$ac_dir/install.sh"; then
2747     ac_aux_dir=$ac_dir
2748     ac_install_sh="$ac_aux_dir/install.sh -c"
2749     break
2750   elif test -f "$ac_dir/shtool"; then
2751     ac_aux_dir=$ac_dir
2752     ac_install_sh="$ac_aux_dir/shtool install -c"
2753     break
2754   fi
2755 done
2756 if test -z "$ac_aux_dir"; then
2757   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2760 # These three variables are undocumented and unsupported,
2761 # and are intended to be withdrawn in a future Autoconf release.
2762 # They can cause serious problems if a builder's source tree is in a directory
2763 # whose full name contains unusual characters.
2764 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2765 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2766 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2769 # Find a good install program.  We prefer a C program (faster),
2770 # so one script is as good as another.  But avoid the broken or
2771 # incompatible versions:
2772 # SysV /etc/install, /usr/sbin/install
2773 # SunOS /usr/etc/install
2774 # IRIX /sbin/install
2775 # AIX /bin/install
2776 # AmigaOS /C/install, which installs bootblocks on floppy discs
2777 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2778 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2779 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2780 # OS/2's system install, which has a completely different semantic
2781 # ./install, which can be erroneously created by make from ./install.sh.
2782 # Reject install programs that cannot install multiple files.
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2784 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2785 if test -z "$INSTALL"; then
2786 if ${ac_cv_path_install+:} false; then :
2787   $as_echo_n "(cached) " >&6
2788 else
2789   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2790 for as_dir in $PATH
2792   IFS=$as_save_IFS
2793   test -z "$as_dir" && as_dir=.
2794     # Account for people who put trailing slashes in PATH elements.
2795 case $as_dir/ in @%:@((
2796   ./ | .// | /[cC]/* | \
2797   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2798   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2799   /usr/ucb/* ) ;;
2800   *)
2801     # OSF1 and SCO ODT 3.0 have their own names for install.
2802     # Don't use installbsd from OSF since it installs stuff as root
2803     # by default.
2804     for ac_prog in ginstall scoinst install; do
2805       for ac_exec_ext in '' $ac_executable_extensions; do
2806         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2807           if test $ac_prog = install &&
2808             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2809             # AIX install.  It has an incompatible calling convention.
2810             :
2811           elif test $ac_prog = install &&
2812             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2813             # program-specific install script used by HP pwplus--don't use.
2814             :
2815           else
2816             rm -rf conftest.one conftest.two conftest.dir
2817             echo one > conftest.one
2818             echo two > conftest.two
2819             mkdir conftest.dir
2820             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2821               test -s conftest.one && test -s conftest.two &&
2822               test -s conftest.dir/conftest.one &&
2823               test -s conftest.dir/conftest.two
2824             then
2825               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2826               break 3
2827             fi
2828           fi
2829         fi
2830       done
2831     done
2832     ;;
2833 esac
2835   done
2836 IFS=$as_save_IFS
2838 rm -rf conftest.one conftest.two conftest.dir
2841   if test "${ac_cv_path_install+set}" = set; then
2842     INSTALL=$ac_cv_path_install
2843   else
2844     # As a last resort, use the slow shell script.  Don't cache a
2845     # value for INSTALL within a source directory, because that will
2846     # break other packages using the cache if that directory is
2847     # removed, or if the value is a relative name.
2848     INSTALL=$ac_install_sh
2849   fi
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2852 $as_echo "$INSTALL" >&6; }
2854 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2855 # It thinks the first close brace ends the variable substitution.
2856 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2858 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2860 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2863 $as_echo_n "checking whether build environment is sane... " >&6; }
2864 # Just in case
2865 sleep 1
2866 echo timestamp > conftest.file
2867 # Reject unsafe characters in $srcdir or the absolute working directory
2868 # name.  Accept space and tab only in the latter.
2869 am_lf='
2871 case `pwd` in
2872   *[\\\"\#\$\&\'\`$am_lf]*)
2873     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2874 esac
2875 case $srcdir in
2876   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2877     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2878 esac
2880 # Do `set' in a subshell so we don't clobber the current shell's
2881 # arguments.  Must try -L first in case configure is actually a
2882 # symlink; some systems play weird games with the mod time of symlinks
2883 # (eg FreeBSD returns the mod time of the symlink's containing
2884 # directory).
2885 if (
2886    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2887    if test "$*" = "X"; then
2888       # -L didn't work.
2889       set X `ls -t "$srcdir/configure" conftest.file`
2890    fi
2891    rm -f conftest.file
2892    if test "$*" != "X $srcdir/configure conftest.file" \
2893       && test "$*" != "X conftest.file $srcdir/configure"; then
2895       # If neither matched, then we have a broken ls.  This can happen
2896       # if, for instance, CONFIG_SHELL is bash and it inherits a
2897       # broken ls alias from the environment.  This has actually
2898       # happened.  Such a system could not be considered "sane".
2899       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2900 alias in your environment" "$LINENO" 5
2901    fi
2903    test "$2" = conftest.file
2904    )
2905 then
2906    # Ok.
2907    :
2908 else
2909    as_fn_error $? "newly created file is older than distributed files!
2910 Check your system clock" "$LINENO" 5
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2913 $as_echo "yes" >&6; }
2914 test "$program_prefix" != NONE &&
2915   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2916 # Use a double $ so make ignores it.
2917 test "$program_suffix" != NONE &&
2918   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2919 # Double any \ or $.
2920 # By default was `s,x,x', remove it if useless.
2921 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2922 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2924 # expand $ac_aux_dir to an absolute path
2925 am_aux_dir=`cd $ac_aux_dir && pwd`
2927 if test x"${MISSING+set}" != xset; then
2928   case $am_aux_dir in
2929   *\ * | *\     *)
2930     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2931   *)
2932     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2933   esac
2935 # Use eval to expand $SHELL
2936 if eval "$MISSING --run true"; then
2937   am_missing_run="$MISSING --run "
2938 else
2939   am_missing_run=
2940   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2941 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2944 if test x"${install_sh}" != xset; then
2945   case $am_aux_dir in
2946   *\ * | *\     *)
2947     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2948   *)
2949     install_sh="\${SHELL} $am_aux_dir/install-sh"
2950   esac
2953 # Installed binaries are usually stripped using `strip' when the user
2954 # run `make install-strip'.  However `strip' might not be the right
2955 # tool to use in cross-compilation environments, therefore Automake
2956 # will honor the `STRIP' environment variable to overrule this program.
2957 if test "$cross_compiling" != no; then
2958   if test -n "$ac_tool_prefix"; then
2959   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2960 set dummy ${ac_tool_prefix}strip; ac_word=$2
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2962 $as_echo_n "checking for $ac_word... " >&6; }
2963 if ${ac_cv_prog_STRIP+:} false; then :
2964   $as_echo_n "(cached) " >&6
2965 else
2966   if test -n "$STRIP"; then
2967   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2968 else
2969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2970 for as_dir in $PATH
2972   IFS=$as_save_IFS
2973   test -z "$as_dir" && as_dir=.
2974     for ac_exec_ext in '' $ac_executable_extensions; do
2975   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2976     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2977     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2978     break 2
2979   fi
2980 done
2981   done
2982 IFS=$as_save_IFS
2986 STRIP=$ac_cv_prog_STRIP
2987 if test -n "$STRIP"; then
2988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2989 $as_echo "$STRIP" >&6; }
2990 else
2991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2992 $as_echo "no" >&6; }
2997 if test -z "$ac_cv_prog_STRIP"; then
2998   ac_ct_STRIP=$STRIP
2999   # Extract the first word of "strip", so it can be a program name with args.
3000 set dummy strip; ac_word=$2
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3002 $as_echo_n "checking for $ac_word... " >&6; }
3003 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3004   $as_echo_n "(cached) " >&6
3005 else
3006   if test -n "$ac_ct_STRIP"; then
3007   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3008 else
3009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3010 for as_dir in $PATH
3012   IFS=$as_save_IFS
3013   test -z "$as_dir" && as_dir=.
3014     for ac_exec_ext in '' $ac_executable_extensions; do
3015   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3016     ac_cv_prog_ac_ct_STRIP="strip"
3017     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3018     break 2
3019   fi
3020 done
3021   done
3022 IFS=$as_save_IFS
3026 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3027 if test -n "$ac_ct_STRIP"; then
3028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3029 $as_echo "$ac_ct_STRIP" >&6; }
3030 else
3031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3032 $as_echo "no" >&6; }
3035   if test "x$ac_ct_STRIP" = x; then
3036     STRIP=":"
3037   else
3038     case $cross_compiling:$ac_tool_warned in
3039 yes:)
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3041 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3042 ac_tool_warned=yes ;;
3043 esac
3044     STRIP=$ac_ct_STRIP
3045   fi
3046 else
3047   STRIP="$ac_cv_prog_STRIP"
3051 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3054 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3055 if test -z "$MKDIR_P"; then
3056   if ${ac_cv_path_mkdir+:} false; then :
3057   $as_echo_n "(cached) " >&6
3058 else
3059   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3060 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3062   IFS=$as_save_IFS
3063   test -z "$as_dir" && as_dir=.
3064     for ac_prog in mkdir gmkdir; do
3065          for ac_exec_ext in '' $ac_executable_extensions; do
3066            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3067            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3068              'mkdir (GNU coreutils) '* | \
3069              'mkdir (coreutils) '* | \
3070              'mkdir (fileutils) '4.1*)
3071                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3072                break 3;;
3073            esac
3074          done
3075        done
3076   done
3077 IFS=$as_save_IFS
3081   test -d ./--version && rmdir ./--version
3082   if test "${ac_cv_path_mkdir+set}" = set; then
3083     MKDIR_P="$ac_cv_path_mkdir -p"
3084   else
3085     # As a last resort, use the slow shell script.  Don't cache a
3086     # value for MKDIR_P within a source directory, because that will
3087     # break other packages using the cache if that directory is
3088     # removed, or if the value is a relative name.
3089     MKDIR_P="$ac_install_sh -d"
3090   fi
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3093 $as_echo "$MKDIR_P" >&6; }
3095 mkdir_p="$MKDIR_P"
3096 case $mkdir_p in
3097   [\\/$]* | ?:[\\/]*) ;;
3098   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3099 esac
3101 for ac_prog in gawk mawk nawk awk
3103   # Extract the first word of "$ac_prog", so it can be a program name with args.
3104 set dummy $ac_prog; ac_word=$2
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3106 $as_echo_n "checking for $ac_word... " >&6; }
3107 if ${ac_cv_prog_AWK+:} false; then :
3108   $as_echo_n "(cached) " >&6
3109 else
3110   if test -n "$AWK"; then
3111   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3112 else
3113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3114 for as_dir in $PATH
3116   IFS=$as_save_IFS
3117   test -z "$as_dir" && as_dir=.
3118     for ac_exec_ext in '' $ac_executable_extensions; do
3119   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3120     ac_cv_prog_AWK="$ac_prog"
3121     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3122     break 2
3123   fi
3124 done
3125   done
3126 IFS=$as_save_IFS
3130 AWK=$ac_cv_prog_AWK
3131 if test -n "$AWK"; then
3132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3133 $as_echo "$AWK" >&6; }
3134 else
3135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3136 $as_echo "no" >&6; }
3140   test -n "$AWK" && break
3141 done
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3144 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3145 set x ${MAKE-make}
3146 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3147 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3148   $as_echo_n "(cached) " >&6
3149 else
3150   cat >conftest.make <<\_ACEOF
3151 SHELL = /bin/sh
3152 all:
3153         @echo '@@@%%%=$(MAKE)=@@@%%%'
3154 _ACEOF
3155 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3156 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3157   *@@@%%%=?*=@@@%%%*)
3158     eval ac_cv_prog_make_${ac_make}_set=yes;;
3159   *)
3160     eval ac_cv_prog_make_${ac_make}_set=no;;
3161 esac
3162 rm -f conftest.make
3164 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3166 $as_echo "yes" >&6; }
3167   SET_MAKE=
3168 else
3169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3170 $as_echo "no" >&6; }
3171   SET_MAKE="MAKE=${MAKE-make}"
3174 rm -rf .tst 2>/dev/null
3175 mkdir .tst 2>/dev/null
3176 if test -d .tst; then
3177   am__leading_dot=.
3178 else
3179   am__leading_dot=_
3181 rmdir .tst 2>/dev/null
3183 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3184   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3185   # is not polluted with repeated "-I."
3186   am__isrc=' -I$(srcdir)'
3187   # test to see if srcdir already configured
3188   if test -f $srcdir/config.status; then
3189     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3190   fi
3193 # test whether we have cygpath
3194 if test -z "$CYGPATH_W"; then
3195   if (cygpath --version) >/dev/null 2>/dev/null; then
3196     CYGPATH_W='cygpath -w'
3197   else
3198     CYGPATH_W=echo
3199   fi
3203 # Define the identity of the package.
3204  PACKAGE='pcre'
3205  VERSION='8.32'
3208 cat >>confdefs.h <<_ACEOF
3209 @%:@define PACKAGE "$PACKAGE"
3210 _ACEOF
3213 cat >>confdefs.h <<_ACEOF
3214 @%:@define VERSION "$VERSION"
3215 _ACEOF
3217 # Some tools Automake needs.
3219 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3222 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3225 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3228 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3231 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3233 # We need awk for the "check" target.  The system "awk" is bad on
3234 # some platforms.
3235 # Always define AMTAR for backward compatibility.  Yes, it's still used
3236 # in the wild :-(  We should find a proper way to deprecate it ...
3237 AMTAR='$${TAR-tar}'
3239 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3245 @%:@ Check whether --enable-silent-rules was given.
3246 if test "${enable_silent_rules+set}" = set; then :
3247   enableval=$enable_silent_rules; 
3250 case $enable_silent_rules in
3251 yes) AM_DEFAULT_VERBOSITY=0;;
3252 no)  AM_DEFAULT_VERBOSITY=1;;
3253 *)   AM_DEFAULT_VERBOSITY=0;;
3254 esac
3255 am_make=${MAKE-make}
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3257 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3258 if ${am_cv_make_support_nested_variables+:} false; then :
3259   $as_echo_n "(cached) " >&6
3260 else
3261   if $as_echo 'TRUE=$(BAR$(V))
3262 BAR0=false
3263 BAR1=true
3265 am__doit:
3266         @$(TRUE)
3267 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3268   am_cv_make_support_nested_variables=yes
3269 else
3270   am_cv_make_support_nested_variables=no
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3274 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3275 if test $am_cv_make_support_nested_variables = yes; then
3276     AM_V='$(V)'
3277   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3278 else
3279   AM_V=$AM_DEFAULT_VERBOSITY
3280   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3282 AM_BACKSLASH='\'
3284 ac_config_headers="$ac_config_headers config.h"
3287 # This was added at the suggestion of libtoolize (03-Jan-10)
3290 # The default CFLAGS and CXXFLAGS in Autoconf are "-g -O2" for gcc and just
3291 # "-g" for any other compiler. There doesn't seem to be a standard way of
3292 # getting rid of the -g (which I don't think is needed for a production
3293 # library). This fudge seems to achieve the necessary. First, we remember the
3294 # externally set values of CFLAGS and CXXFLAGS. Then call the AC_PROG_CC and
3295 # AC_PROG_CXX macros to find the compilers - if CFLAGS and CXXFLAGS are not
3296 # set, they will be set to Autoconf's defaults. Afterwards, if the original
3297 # values were not set, remove the -g from the Autoconf defaults.
3298 # (PH 02-May-07)
3300 remember_set_CFLAGS="$CFLAGS"
3301 remember_set_CXXFLAGS="$CXXFLAGS"
3303 ac_ext=c
3304 ac_cpp='$CPP $CPPFLAGS'
3305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3308 if test -n "$ac_tool_prefix"; then
3309   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3310 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3312 $as_echo_n "checking for $ac_word... " >&6; }
3313 if ${ac_cv_prog_CC+:} false; then :
3314   $as_echo_n "(cached) " >&6
3315 else
3316   if test -n "$CC"; then
3317   ac_cv_prog_CC="$CC" # Let the user override the test.
3318 else
3319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3320 for as_dir in $PATH
3322   IFS=$as_save_IFS
3323   test -z "$as_dir" && as_dir=.
3324     for ac_exec_ext in '' $ac_executable_extensions; do
3325   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3326     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3327     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3328     break 2
3329   fi
3330 done
3331   done
3332 IFS=$as_save_IFS
3336 CC=$ac_cv_prog_CC
3337 if test -n "$CC"; then
3338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3339 $as_echo "$CC" >&6; }
3340 else
3341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3342 $as_echo "no" >&6; }
3347 if test -z "$ac_cv_prog_CC"; then
3348   ac_ct_CC=$CC
3349   # Extract the first word of "gcc", so it can be a program name with args.
3350 set dummy gcc; ac_word=$2
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3352 $as_echo_n "checking for $ac_word... " >&6; }
3353 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3354   $as_echo_n "(cached) " >&6
3355 else
3356   if test -n "$ac_ct_CC"; then
3357   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3358 else
3359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3360 for as_dir in $PATH
3362   IFS=$as_save_IFS
3363   test -z "$as_dir" && as_dir=.
3364     for ac_exec_ext in '' $ac_executable_extensions; do
3365   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3366     ac_cv_prog_ac_ct_CC="gcc"
3367     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3368     break 2
3369   fi
3370 done
3371   done
3372 IFS=$as_save_IFS
3376 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3377 if test -n "$ac_ct_CC"; then
3378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3379 $as_echo "$ac_ct_CC" >&6; }
3380 else
3381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3382 $as_echo "no" >&6; }
3385   if test "x$ac_ct_CC" = x; then
3386     CC=""
3387   else
3388     case $cross_compiling:$ac_tool_warned in
3389 yes:)
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3391 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3392 ac_tool_warned=yes ;;
3393 esac
3394     CC=$ac_ct_CC
3395   fi
3396 else
3397   CC="$ac_cv_prog_CC"
3400 if test -z "$CC"; then
3401           if test -n "$ac_tool_prefix"; then
3402     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3403 set dummy ${ac_tool_prefix}cc; ac_word=$2
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3405 $as_echo_n "checking for $ac_word... " >&6; }
3406 if ${ac_cv_prog_CC+:} false; then :
3407   $as_echo_n "(cached) " >&6
3408 else
3409   if test -n "$CC"; then
3410   ac_cv_prog_CC="$CC" # Let the user override the test.
3411 else
3412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3413 for as_dir in $PATH
3415   IFS=$as_save_IFS
3416   test -z "$as_dir" && as_dir=.
3417     for ac_exec_ext in '' $ac_executable_extensions; do
3418   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3419     ac_cv_prog_CC="${ac_tool_prefix}cc"
3420     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3421     break 2
3422   fi
3423 done
3424   done
3425 IFS=$as_save_IFS
3429 CC=$ac_cv_prog_CC
3430 if test -n "$CC"; then
3431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3432 $as_echo "$CC" >&6; }
3433 else
3434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3435 $as_echo "no" >&6; }
3439   fi
3441 if test -z "$CC"; then
3442   # Extract the first word of "cc", so it can be a program name with args.
3443 set dummy cc; ac_word=$2
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3445 $as_echo_n "checking for $ac_word... " >&6; }
3446 if ${ac_cv_prog_CC+:} false; then :
3447   $as_echo_n "(cached) " >&6
3448 else
3449   if test -n "$CC"; then
3450   ac_cv_prog_CC="$CC" # Let the user override the test.
3451 else
3452   ac_prog_rejected=no
3453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3454 for as_dir in $PATH
3456   IFS=$as_save_IFS
3457   test -z "$as_dir" && as_dir=.
3458     for ac_exec_ext in '' $ac_executable_extensions; do
3459   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3460     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3461        ac_prog_rejected=yes
3462        continue
3463      fi
3464     ac_cv_prog_CC="cc"
3465     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3466     break 2
3467   fi
3468 done
3469   done
3470 IFS=$as_save_IFS
3472 if test $ac_prog_rejected = yes; then
3473   # We found a bogon in the path, so make sure we never use it.
3474   set dummy $ac_cv_prog_CC
3475   shift
3476   if test $@%:@ != 0; then
3477     # We chose a different compiler from the bogus one.
3478     # However, it has the same basename, so the bogon will be chosen
3479     # first if we set CC to just the basename; use the full file name.
3480     shift
3481     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3482   fi
3486 CC=$ac_cv_prog_CC
3487 if test -n "$CC"; then
3488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3489 $as_echo "$CC" >&6; }
3490 else
3491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3492 $as_echo "no" >&6; }
3497 if test -z "$CC"; then
3498   if test -n "$ac_tool_prefix"; then
3499   for ac_prog in cl.exe
3500   do
3501     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3502 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3504 $as_echo_n "checking for $ac_word... " >&6; }
3505 if ${ac_cv_prog_CC+:} false; then :
3506   $as_echo_n "(cached) " >&6
3507 else
3508   if test -n "$CC"; then
3509   ac_cv_prog_CC="$CC" # Let the user override the test.
3510 else
3511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3512 for as_dir in $PATH
3514   IFS=$as_save_IFS
3515   test -z "$as_dir" && as_dir=.
3516     for ac_exec_ext in '' $ac_executable_extensions; do
3517   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3518     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3519     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3520     break 2
3521   fi
3522 done
3523   done
3524 IFS=$as_save_IFS
3528 CC=$ac_cv_prog_CC
3529 if test -n "$CC"; then
3530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3531 $as_echo "$CC" >&6; }
3532 else
3533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3534 $as_echo "no" >&6; }
3538     test -n "$CC" && break
3539   done
3541 if test -z "$CC"; then
3542   ac_ct_CC=$CC
3543   for ac_prog in cl.exe
3545   # Extract the first word of "$ac_prog", so it can be a program name with args.
3546 set dummy $ac_prog; ac_word=$2
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3548 $as_echo_n "checking for $ac_word... " >&6; }
3549 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3550   $as_echo_n "(cached) " >&6
3551 else
3552   if test -n "$ac_ct_CC"; then
3553   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3554 else
3555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3556 for as_dir in $PATH
3558   IFS=$as_save_IFS
3559   test -z "$as_dir" && as_dir=.
3560     for ac_exec_ext in '' $ac_executable_extensions; do
3561   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3562     ac_cv_prog_ac_ct_CC="$ac_prog"
3563     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3564     break 2
3565   fi
3566 done
3567   done
3568 IFS=$as_save_IFS
3572 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3573 if test -n "$ac_ct_CC"; then
3574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3575 $as_echo "$ac_ct_CC" >&6; }
3576 else
3577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3578 $as_echo "no" >&6; }
3582   test -n "$ac_ct_CC" && break
3583 done
3585   if test "x$ac_ct_CC" = x; then
3586     CC=""
3587   else
3588     case $cross_compiling:$ac_tool_warned in
3589 yes:)
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3591 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3592 ac_tool_warned=yes ;;
3593 esac
3594     CC=$ac_ct_CC
3595   fi
3601 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3603 as_fn_error $? "no acceptable C compiler found in \$PATH
3604 See \`config.log' for more details" "$LINENO" 5; }
3606 # Provide some information about the compiler.
3607 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3608 set X $ac_compile
3609 ac_compiler=$2
3610 for ac_option in --version -v -V -qversion; do
3611   { { ac_try="$ac_compiler $ac_option >&5"
3612 case "(($ac_try" in
3613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3614   *) ac_try_echo=$ac_try;;
3615 esac
3616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3617 $as_echo "$ac_try_echo"; } >&5
3618   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3619   ac_status=$?
3620   if test -s conftest.err; then
3621     sed '10a\
3622 ... rest of stderr output deleted ...
3623          10q' conftest.err >conftest.er1
3624     cat conftest.er1 >&5
3625   fi
3626   rm -f conftest.er1 conftest.err
3627   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3628   test $ac_status = 0; }
3629 done
3631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3632 /* end confdefs.h.  */
3635 main ()
3638   ;
3639   return 0;
3641 _ACEOF
3642 ac_clean_files_save=$ac_clean_files
3643 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3644 # Try to create an executable without -o first, disregard a.out.
3645 # It will help us diagnose broken compilers, and finding out an intuition
3646 # of exeext.
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3648 $as_echo_n "checking whether the C compiler works... " >&6; }
3649 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3651 # The possible output files:
3652 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3654 ac_rmfiles=
3655 for ac_file in $ac_files
3657   case $ac_file in
3658     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3659     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3660   esac
3661 done
3662 rm -f $ac_rmfiles
3664 if { { ac_try="$ac_link_default"
3665 case "(($ac_try" in
3666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667   *) ac_try_echo=$ac_try;;
3668 esac
3669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3670 $as_echo "$ac_try_echo"; } >&5
3671   (eval "$ac_link_default") 2>&5
3672   ac_status=$?
3673   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3674   test $ac_status = 0; }; then :
3675   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3676 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3677 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3678 # so that the user can short-circuit this test for compilers unknown to
3679 # Autoconf.
3680 for ac_file in $ac_files ''
3682   test -f "$ac_file" || continue
3683   case $ac_file in
3684     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3685         ;;
3686     [ab].out )
3687         # We found the default executable, but exeext='' is most
3688         # certainly right.
3689         break;;
3690     *.* )
3691         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3692         then :; else
3693            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3694         fi
3695         # We set ac_cv_exeext here because the later test for it is not
3696         # safe: cross compilers may not add the suffix if given an `-o'
3697         # argument, so we may need to know it at that point already.
3698         # Even if this section looks crufty: it has the advantage of
3699         # actually working.
3700         break;;
3701     * )
3702         break;;
3703   esac
3704 done
3705 test "$ac_cv_exeext" = no && ac_cv_exeext=
3707 else
3708   ac_file=''
3710 if test -z "$ac_file"; then :
3711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3712 $as_echo "no" >&6; }
3713 $as_echo "$as_me: failed program was:" >&5
3714 sed 's/^/| /' conftest.$ac_ext >&5
3716 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3717 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3718 as_fn_error 77 "C compiler cannot create executables
3719 See \`config.log' for more details" "$LINENO" 5; }
3720 else
3721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3722 $as_echo "yes" >&6; }
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3725 $as_echo_n "checking for C compiler default output file name... " >&6; }
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3727 $as_echo "$ac_file" >&6; }
3728 ac_exeext=$ac_cv_exeext
3730 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3731 ac_clean_files=$ac_clean_files_save
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3733 $as_echo_n "checking for suffix of executables... " >&6; }
3734 if { { ac_try="$ac_link"
3735 case "(($ac_try" in
3736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3737   *) ac_try_echo=$ac_try;;
3738 esac
3739 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3740 $as_echo "$ac_try_echo"; } >&5
3741   (eval "$ac_link") 2>&5
3742   ac_status=$?
3743   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3744   test $ac_status = 0; }; then :
3745   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3746 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3747 # work properly (i.e., refer to `conftest.exe'), while it won't with
3748 # `rm'.
3749 for ac_file in conftest.exe conftest conftest.*; do
3750   test -f "$ac_file" || continue
3751   case $ac_file in
3752     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3753     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3754           break;;
3755     * ) break;;
3756   esac
3757 done
3758 else
3759   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3760 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3761 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3762 See \`config.log' for more details" "$LINENO" 5; }
3764 rm -f conftest conftest$ac_cv_exeext
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3766 $as_echo "$ac_cv_exeext" >&6; }
3768 rm -f conftest.$ac_ext
3769 EXEEXT=$ac_cv_exeext
3770 ac_exeext=$EXEEXT
3771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3772 /* end confdefs.h.  */
3773 @%:@include <stdio.h>
3775 main ()
3777 FILE *f = fopen ("conftest.out", "w");
3778  return ferror (f) || fclose (f) != 0;
3780   ;
3781   return 0;
3783 _ACEOF
3784 ac_clean_files="$ac_clean_files conftest.out"
3785 # Check that the compiler produces executables we can run.  If not, either
3786 # the compiler is broken, or we cross compile.
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3788 $as_echo_n "checking whether we are cross compiling... " >&6; }
3789 if test "$cross_compiling" != yes; then
3790   { { ac_try="$ac_link"
3791 case "(($ac_try" in
3792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3793   *) ac_try_echo=$ac_try;;
3794 esac
3795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3796 $as_echo "$ac_try_echo"; } >&5
3797   (eval "$ac_link") 2>&5
3798   ac_status=$?
3799   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3800   test $ac_status = 0; }
3801   if { ac_try='./conftest$ac_cv_exeext'
3802   { { case "(($ac_try" in
3803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3804   *) ac_try_echo=$ac_try;;
3805 esac
3806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3807 $as_echo "$ac_try_echo"; } >&5
3808   (eval "$ac_try") 2>&5
3809   ac_status=$?
3810   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3811   test $ac_status = 0; }; }; then
3812     cross_compiling=no
3813   else
3814     if test "$cross_compiling" = maybe; then
3815         cross_compiling=yes
3816     else
3817         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3818 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3819 as_fn_error $? "cannot run C compiled programs.
3820 If you meant to cross compile, use \`--host'.
3821 See \`config.log' for more details" "$LINENO" 5; }
3822     fi
3823   fi
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3826 $as_echo "$cross_compiling" >&6; }
3828 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3829 ac_clean_files=$ac_clean_files_save
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3831 $as_echo_n "checking for suffix of object files... " >&6; }
3832 if ${ac_cv_objext+:} false; then :
3833   $as_echo_n "(cached) " >&6
3834 else
3835   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3836 /* end confdefs.h.  */
3839 main ()
3842   ;
3843   return 0;
3845 _ACEOF
3846 rm -f conftest.o conftest.obj
3847 if { { ac_try="$ac_compile"
3848 case "(($ac_try" in
3849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3850   *) ac_try_echo=$ac_try;;
3851 esac
3852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3853 $as_echo "$ac_try_echo"; } >&5
3854   (eval "$ac_compile") 2>&5
3855   ac_status=$?
3856   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3857   test $ac_status = 0; }; then :
3858   for ac_file in conftest.o conftest.obj conftest.*; do
3859   test -f "$ac_file" || continue;
3860   case $ac_file in
3861     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3862     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3863        break;;
3864   esac
3865 done
3866 else
3867   $as_echo "$as_me: failed program was:" >&5
3868 sed 's/^/| /' conftest.$ac_ext >&5
3870 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3871 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3872 as_fn_error $? "cannot compute suffix of object files: cannot compile
3873 See \`config.log' for more details" "$LINENO" 5; }
3875 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3878 $as_echo "$ac_cv_objext" >&6; }
3879 OBJEXT=$ac_cv_objext
3880 ac_objext=$OBJEXT
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3882 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3883 if ${ac_cv_c_compiler_gnu+:} false; then :
3884   $as_echo_n "(cached) " >&6
3885 else
3886   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3887 /* end confdefs.h.  */
3890 main ()
3892 #ifndef __GNUC__
3893        choke me
3894 #endif
3896   ;
3897   return 0;
3899 _ACEOF
3900 if ac_fn_c_try_compile "$LINENO"; then :
3901   ac_compiler_gnu=yes
3902 else
3903   ac_compiler_gnu=no
3905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3906 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3910 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3911 if test $ac_compiler_gnu = yes; then
3912   GCC=yes
3913 else
3914   GCC=
3916 ac_test_CFLAGS=${CFLAGS+set}
3917 ac_save_CFLAGS=$CFLAGS
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3919 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3920 if ${ac_cv_prog_cc_g+:} false; then :
3921   $as_echo_n "(cached) " >&6
3922 else
3923   ac_save_c_werror_flag=$ac_c_werror_flag
3924    ac_c_werror_flag=yes
3925    ac_cv_prog_cc_g=no
3926    CFLAGS="-g"
3927    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3928 /* end confdefs.h.  */
3931 main ()
3934   ;
3935   return 0;
3937 _ACEOF
3938 if ac_fn_c_try_compile "$LINENO"; then :
3939   ac_cv_prog_cc_g=yes
3940 else
3941   CFLAGS=""
3942       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3943 /* end confdefs.h.  */
3946 main ()
3949   ;
3950   return 0;
3952 _ACEOF
3953 if ac_fn_c_try_compile "$LINENO"; then :
3954   
3955 else
3956   ac_c_werror_flag=$ac_save_c_werror_flag
3957          CFLAGS="-g"
3958          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3959 /* end confdefs.h.  */
3962 main ()
3965   ;
3966   return 0;
3968 _ACEOF
3969 if ac_fn_c_try_compile "$LINENO"; then :
3970   ac_cv_prog_cc_g=yes
3972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3977    ac_c_werror_flag=$ac_save_c_werror_flag
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3980 $as_echo "$ac_cv_prog_cc_g" >&6; }
3981 if test "$ac_test_CFLAGS" = set; then
3982   CFLAGS=$ac_save_CFLAGS
3983 elif test $ac_cv_prog_cc_g = yes; then
3984   if test "$GCC" = yes; then
3985     CFLAGS="-g -O2"
3986   else
3987     CFLAGS="-g"
3988   fi
3989 else
3990   if test "$GCC" = yes; then
3991     CFLAGS="-O2"
3992   else
3993     CFLAGS=
3994   fi
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3997 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3998 if ${ac_cv_prog_cc_c89+:} false; then :
3999   $as_echo_n "(cached) " >&6
4000 else
4001   ac_cv_prog_cc_c89=no
4002 ac_save_CC=$CC
4003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4004 /* end confdefs.h.  */
4005 #include <stdarg.h>
4006 #include <stdio.h>
4007 #include <sys/types.h>
4008 #include <sys/stat.h>
4009 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4010 struct buf { int x; };
4011 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4012 static char *e (p, i)
4013      char **p;
4014      int i;
4016   return p[i];
4018 static char *f (char * (*g) (char **, int), char **p, ...)
4020   char *s;
4021   va_list v;
4022   va_start (v,p);
4023   s = g (p, va_arg (v,int));
4024   va_end (v);
4025   return s;
4028 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4029    function prototypes and stuff, but not '\xHH' hex character constants.
4030    These don't provoke an error unfortunately, instead are silently treated
4031    as 'x'.  The following induces an error, until -std is added to get
4032    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4033    array size at least.  It's necessary to write '\x00'==0 to get something
4034    that's true only with -std.  */
4035 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4037 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4038    inside strings and character constants.  */
4039 #define FOO(x) 'x'
4040 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4042 int test (int i, double x);
4043 struct s1 {int (*f) (int a);};
4044 struct s2 {int (*f) (double a);};
4045 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4046 int argc;
4047 char **argv;
4049 main ()
4051 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4052   ;
4053   return 0;
4055 _ACEOF
4056 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4057         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4059   CC="$ac_save_CC $ac_arg"
4060   if ac_fn_c_try_compile "$LINENO"; then :
4061   ac_cv_prog_cc_c89=$ac_arg
4063 rm -f core conftest.err conftest.$ac_objext
4064   test "x$ac_cv_prog_cc_c89" != "xno" && break
4065 done
4066 rm -f conftest.$ac_ext
4067 CC=$ac_save_CC
4070 # AC_CACHE_VAL
4071 case "x$ac_cv_prog_cc_c89" in
4072   x)
4073     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4074 $as_echo "none needed" >&6; } ;;
4075   xno)
4076     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4077 $as_echo "unsupported" >&6; } ;;
4078   *)
4079     CC="$CC $ac_cv_prog_cc_c89"
4080     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4081 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4082 esac
4083 if test "x$ac_cv_prog_cc_c89" != xno; then :
4084   
4087 ac_ext=c
4088 ac_cpp='$CPP $CPPFLAGS'
4089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4092 DEPDIR="${am__leading_dot}deps"
4094 ac_config_commands="$ac_config_commands depfiles"
4097 am_make=${MAKE-make}
4098 cat > confinc << 'END'
4099 am__doit:
4100         @echo this is the am__doit target
4101 .PHONY: am__doit
4103 # If we don't find an include directive, just comment out the code.
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4105 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4106 am__include="#"
4107 am__quote=
4108 _am_result=none
4109 # First try GNU make style include.
4110 echo "include confinc" > confmf
4111 # Ignore all kinds of additional output from `make'.
4112 case `$am_make -s -f confmf 2> /dev/null` in #(
4113 *the\ am__doit\ target*)
4114   am__include=include
4115   am__quote=
4116   _am_result=GNU
4117   ;;
4118 esac
4119 # Now try BSD make style include.
4120 if test "$am__include" = "#"; then
4121    echo '.include "confinc"' > confmf
4122    case `$am_make -s -f confmf 2> /dev/null` in #(
4123    *the\ am__doit\ target*)
4124      am__include=.include
4125      am__quote="\""
4126      _am_result=BSD
4127      ;;
4128    esac
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4133 $as_echo "$_am_result" >&6; }
4134 rm -f confinc confmf
4136 @%:@ Check whether --enable-dependency-tracking was given.
4137 if test "${enable_dependency_tracking+set}" = set; then :
4138   enableval=$enable_dependency_tracking; 
4141 if test "x$enable_dependency_tracking" != xno; then
4142   am_depcomp="$ac_aux_dir/depcomp"
4143   AMDEPBACKSLASH='\'
4144   am__nodep='_no'
4146  if test "x$enable_dependency_tracking" != xno; then
4147   AMDEP_TRUE=
4148   AMDEP_FALSE='#'
4149 else
4150   AMDEP_TRUE='#'
4151   AMDEP_FALSE=
4156 depcc="$CC"   am_compiler_list=
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4159 $as_echo_n "checking dependency style of $depcc... " >&6; }
4160 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4161   $as_echo_n "(cached) " >&6
4162 else
4163   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4164   # We make a subdir and do the tests there.  Otherwise we can end up
4165   # making bogus files that we don't know about and never remove.  For
4166   # instance it was reported that on HP-UX the gcc test will end up
4167   # making a dummy file named `D' -- because `-MD' means `put the output
4168   # in D'.
4169   rm -rf conftest.dir
4170   mkdir conftest.dir
4171   # Copy depcomp to subdir because otherwise we won't find it if we're
4172   # using a relative directory.
4173   cp "$am_depcomp" conftest.dir
4174   cd conftest.dir
4175   # We will build objects and dependencies in a subdirectory because
4176   # it helps to detect inapplicable dependency modes.  For instance
4177   # both Tru64's cc and ICC support -MD to output dependencies as a
4178   # side effect of compilation, but ICC will put the dependencies in
4179   # the current directory while Tru64 will put them in the object
4180   # directory.
4181   mkdir sub
4183   am_cv_CC_dependencies_compiler_type=none
4184   if test "$am_compiler_list" = ""; then
4185      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4186   fi
4187   am__universal=false
4188   case " $depcc " in #(
4189      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4190      esac
4192   for depmode in $am_compiler_list; do
4193     # Setup a source with many dependencies, because some compilers
4194     # like to wrap large dependency lists on column 80 (with \), and
4195     # we should not choose a depcomp mode which is confused by this.
4196     #
4197     # We need to recreate these files for each test, as the compiler may
4198     # overwrite some of them when testing with obscure command lines.
4199     # This happens at least with the AIX C compiler.
4200     : > sub/conftest.c
4201     for i in 1 2 3 4 5 6; do
4202       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4203       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4204       # Solaris 8's {/usr,}/bin/sh.
4205       touch sub/conftst$i.h
4206     done
4207     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4209     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4210     # mode.  It turns out that the SunPro C++ compiler does not properly
4211     # handle `-M -o', and we need to detect this.  Also, some Intel
4212     # versions had trouble with output in subdirs
4213     am__obj=sub/conftest.${OBJEXT-o}
4214     am__minus_obj="-o $am__obj"
4215     case $depmode in
4216     gcc)
4217       # This depmode causes a compiler race in universal mode.
4218       test "$am__universal" = false || continue
4219       ;;
4220     nosideeffect)
4221       # after this tag, mechanisms are not by side-effect, so they'll
4222       # only be used when explicitly requested
4223       if test "x$enable_dependency_tracking" = xyes; then
4224         continue
4225       else
4226         break
4227       fi
4228       ;;
4229     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4230       # This compiler won't grok `-c -o', but also, the minuso test has
4231       # not run yet.  These depmodes are late enough in the game, and
4232       # so weak that their functioning should not be impacted.
4233       am__obj=conftest.${OBJEXT-o}
4234       am__minus_obj=
4235       ;;
4236     none) break ;;
4237     esac
4238     if depmode=$depmode \
4239        source=sub/conftest.c object=$am__obj \
4240        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4241        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4242          >/dev/null 2>conftest.err &&
4243        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4244        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4245        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4246        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4247       # icc doesn't choke on unknown options, it will just issue warnings
4248       # or remarks (even with -Werror).  So we grep stderr for any message
4249       # that says an option was ignored or not supported.
4250       # When given -MP, icc 7.0 and 7.1 complain thusly:
4251       #   icc: Command line warning: ignoring option '-M'; no argument required
4252       # The diagnosis changed in icc 8.0:
4253       #   icc: Command line remark: option '-MP' not supported
4254       if (grep 'ignoring option' conftest.err ||
4255           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4256         am_cv_CC_dependencies_compiler_type=$depmode
4257         break
4258       fi
4259     fi
4260   done
4262   cd ..
4263   rm -rf conftest.dir
4264 else
4265   am_cv_CC_dependencies_compiler_type=none
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4270 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4271 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4273  if 
4274   test "x$enable_dependency_tracking" != xno \
4275   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4276   am__fastdepCC_TRUE=
4277   am__fastdepCC_FALSE='#'
4278 else
4279   am__fastdepCC_TRUE='#'
4280   am__fastdepCC_FALSE=
4284 ac_ext=cpp
4285 ac_cpp='$CXXCPP $CPPFLAGS'
4286 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4287 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4288 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4289 if test -z "$CXX"; then
4290   if test -n "$CCC"; then
4291     CXX=$CCC
4292   else
4293     if test -n "$ac_tool_prefix"; then
4294   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4295   do
4296     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4297 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4299 $as_echo_n "checking for $ac_word... " >&6; }
4300 if ${ac_cv_prog_CXX+:} false; then :
4301   $as_echo_n "(cached) " >&6
4302 else
4303   if test -n "$CXX"; then
4304   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4305 else
4306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4307 for as_dir in $PATH
4309   IFS=$as_save_IFS
4310   test -z "$as_dir" && as_dir=.
4311     for ac_exec_ext in '' $ac_executable_extensions; do
4312   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4313     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4314     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4315     break 2
4316   fi
4317 done
4318   done
4319 IFS=$as_save_IFS
4323 CXX=$ac_cv_prog_CXX
4324 if test -n "$CXX"; then
4325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4326 $as_echo "$CXX" >&6; }
4327 else
4328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4329 $as_echo "no" >&6; }
4333     test -n "$CXX" && break
4334   done
4336 if test -z "$CXX"; then
4337   ac_ct_CXX=$CXX
4338   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4340   # Extract the first word of "$ac_prog", so it can be a program name with args.
4341 set dummy $ac_prog; ac_word=$2
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4343 $as_echo_n "checking for $ac_word... " >&6; }
4344 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4345   $as_echo_n "(cached) " >&6
4346 else
4347   if test -n "$ac_ct_CXX"; then
4348   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4349 else
4350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4351 for as_dir in $PATH
4353   IFS=$as_save_IFS
4354   test -z "$as_dir" && as_dir=.
4355     for ac_exec_ext in '' $ac_executable_extensions; do
4356   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4357     ac_cv_prog_ac_ct_CXX="$ac_prog"
4358     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4359     break 2
4360   fi
4361 done
4362   done
4363 IFS=$as_save_IFS
4367 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4368 if test -n "$ac_ct_CXX"; then
4369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4370 $as_echo "$ac_ct_CXX" >&6; }
4371 else
4372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4373 $as_echo "no" >&6; }
4377   test -n "$ac_ct_CXX" && break
4378 done
4380   if test "x$ac_ct_CXX" = x; then
4381     CXX="g++"
4382   else
4383     case $cross_compiling:$ac_tool_warned in
4384 yes:)
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4386 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4387 ac_tool_warned=yes ;;
4388 esac
4389     CXX=$ac_ct_CXX
4390   fi
4393   fi
4395 # Provide some information about the compiler.
4396 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4397 set X $ac_compile
4398 ac_compiler=$2
4399 for ac_option in --version -v -V -qversion; do
4400   { { ac_try="$ac_compiler $ac_option >&5"
4401 case "(($ac_try" in
4402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4403   *) ac_try_echo=$ac_try;;
4404 esac
4405 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4406 $as_echo "$ac_try_echo"; } >&5
4407   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4408   ac_status=$?
4409   if test -s conftest.err; then
4410     sed '10a\
4411 ... rest of stderr output deleted ...
4412          10q' conftest.err >conftest.er1
4413     cat conftest.er1 >&5
4414   fi
4415   rm -f conftest.er1 conftest.err
4416   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4417   test $ac_status = 0; }
4418 done
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4421 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4422 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4423   $as_echo_n "(cached) " >&6
4424 else
4425   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4426 /* end confdefs.h.  */
4429 main ()
4431 #ifndef __GNUC__
4432        choke me
4433 #endif
4435   ;
4436   return 0;
4438 _ACEOF
4439 if ac_fn_cxx_try_compile "$LINENO"; then :
4440   ac_compiler_gnu=yes
4441 else
4442   ac_compiler_gnu=no
4444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4445 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4449 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4450 if test $ac_compiler_gnu = yes; then
4451   GXX=yes
4452 else
4453   GXX=
4455 ac_test_CXXFLAGS=${CXXFLAGS+set}
4456 ac_save_CXXFLAGS=$CXXFLAGS
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4458 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4459 if ${ac_cv_prog_cxx_g+:} false; then :
4460   $as_echo_n "(cached) " >&6
4461 else
4462   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4463    ac_cxx_werror_flag=yes
4464    ac_cv_prog_cxx_g=no
4465    CXXFLAGS="-g"
4466    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4467 /* end confdefs.h.  */
4470 main ()
4473   ;
4474   return 0;
4476 _ACEOF
4477 if ac_fn_cxx_try_compile "$LINENO"; then :
4478   ac_cv_prog_cxx_g=yes
4479 else
4480   CXXFLAGS=""
4481       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4482 /* end confdefs.h.  */
4485 main ()
4488   ;
4489   return 0;
4491 _ACEOF
4492 if ac_fn_cxx_try_compile "$LINENO"; then :
4493   
4494 else
4495   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4496          CXXFLAGS="-g"
4497          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4498 /* end confdefs.h.  */
4501 main ()
4504   ;
4505   return 0;
4507 _ACEOF
4508 if ac_fn_cxx_try_compile "$LINENO"; then :
4509   ac_cv_prog_cxx_g=yes
4511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4516    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4519 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4520 if test "$ac_test_CXXFLAGS" = set; then
4521   CXXFLAGS=$ac_save_CXXFLAGS
4522 elif test $ac_cv_prog_cxx_g = yes; then
4523   if test "$GXX" = yes; then
4524     CXXFLAGS="-g -O2"
4525   else
4526     CXXFLAGS="-g"
4527   fi
4528 else
4529   if test "$GXX" = yes; then
4530     CXXFLAGS="-O2"
4531   else
4532     CXXFLAGS=
4533   fi
4535 ac_ext=c
4536 ac_cpp='$CPP $CPPFLAGS'
4537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4541 depcc="$CXX"  am_compiler_list=
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4544 $as_echo_n "checking dependency style of $depcc... " >&6; }
4545 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4546   $as_echo_n "(cached) " >&6
4547 else
4548   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4549   # We make a subdir and do the tests there.  Otherwise we can end up
4550   # making bogus files that we don't know about and never remove.  For
4551   # instance it was reported that on HP-UX the gcc test will end up
4552   # making a dummy file named `D' -- because `-MD' means `put the output
4553   # in D'.
4554   rm -rf conftest.dir
4555   mkdir conftest.dir
4556   # Copy depcomp to subdir because otherwise we won't find it if we're
4557   # using a relative directory.
4558   cp "$am_depcomp" conftest.dir
4559   cd conftest.dir
4560   # We will build objects and dependencies in a subdirectory because
4561   # it helps to detect inapplicable dependency modes.  For instance
4562   # both Tru64's cc and ICC support -MD to output dependencies as a
4563   # side effect of compilation, but ICC will put the dependencies in
4564   # the current directory while Tru64 will put them in the object
4565   # directory.
4566   mkdir sub
4568   am_cv_CXX_dependencies_compiler_type=none
4569   if test "$am_compiler_list" = ""; then
4570      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4571   fi
4572   am__universal=false
4573   case " $depcc " in #(
4574      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4575      esac
4577   for depmode in $am_compiler_list; do
4578     # Setup a source with many dependencies, because some compilers
4579     # like to wrap large dependency lists on column 80 (with \), and
4580     # we should not choose a depcomp mode which is confused by this.
4581     #
4582     # We need to recreate these files for each test, as the compiler may
4583     # overwrite some of them when testing with obscure command lines.
4584     # This happens at least with the AIX C compiler.
4585     : > sub/conftest.c
4586     for i in 1 2 3 4 5 6; do
4587       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4588       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4589       # Solaris 8's {/usr,}/bin/sh.
4590       touch sub/conftst$i.h
4591     done
4592     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4594     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4595     # mode.  It turns out that the SunPro C++ compiler does not properly
4596     # handle `-M -o', and we need to detect this.  Also, some Intel
4597     # versions had trouble with output in subdirs
4598     am__obj=sub/conftest.${OBJEXT-o}
4599     am__minus_obj="-o $am__obj"
4600     case $depmode in
4601     gcc)
4602       # This depmode causes a compiler race in universal mode.
4603       test "$am__universal" = false || continue
4604       ;;
4605     nosideeffect)
4606       # after this tag, mechanisms are not by side-effect, so they'll
4607       # only be used when explicitly requested
4608       if test "x$enable_dependency_tracking" = xyes; then
4609         continue
4610       else
4611         break
4612       fi
4613       ;;
4614     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4615       # This compiler won't grok `-c -o', but also, the minuso test has
4616       # not run yet.  These depmodes are late enough in the game, and
4617       # so weak that their functioning should not be impacted.
4618       am__obj=conftest.${OBJEXT-o}
4619       am__minus_obj=
4620       ;;
4621     none) break ;;
4622     esac
4623     if depmode=$depmode \
4624        source=sub/conftest.c object=$am__obj \
4625        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4626        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4627          >/dev/null 2>conftest.err &&
4628        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4629        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4630        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4631        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4632       # icc doesn't choke on unknown options, it will just issue warnings
4633       # or remarks (even with -Werror).  So we grep stderr for any message
4634       # that says an option was ignored or not supported.
4635       # When given -MP, icc 7.0 and 7.1 complain thusly:
4636       #   icc: Command line warning: ignoring option '-M'; no argument required
4637       # The diagnosis changed in icc 8.0:
4638       #   icc: Command line remark: option '-MP' not supported
4639       if (grep 'ignoring option' conftest.err ||
4640           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4641         am_cv_CXX_dependencies_compiler_type=$depmode
4642         break
4643       fi
4644     fi
4645   done
4647   cd ..
4648   rm -rf conftest.dir
4649 else
4650   am_cv_CXX_dependencies_compiler_type=none
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4655 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4656 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4658  if 
4659   test "x$enable_dependency_tracking" != xno \
4660   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4661   am__fastdepCXX_TRUE=
4662   am__fastdepCXX_FALSE='#'
4663 else
4664   am__fastdepCXX_TRUE='#'
4665   am__fastdepCXX_FALSE=
4669 if test "x$CC" != xcc; then
4670   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4671 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4672 else
4673   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4674 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4676 set dummy $CC; ac_cc=`$as_echo "$2" |
4677                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4678 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4679   $as_echo_n "(cached) " >&6
4680 else
4681   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4682 /* end confdefs.h.  */
4685 main ()
4688   ;
4689   return 0;
4691 _ACEOF
4692 # Make sure it works both with $CC and with simple cc.
4693 # We do the test twice because some compilers refuse to overwrite an
4694 # existing .o file with -o, though they will create one.
4695 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4696 rm -f conftest2.*
4697 if { { case "(($ac_try" in
4698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4699   *) ac_try_echo=$ac_try;;
4700 esac
4701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4702 $as_echo "$ac_try_echo"; } >&5
4703   (eval "$ac_try") 2>&5
4704   ac_status=$?
4705   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4706   test $ac_status = 0; } &&
4707    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4709   *) ac_try_echo=$ac_try;;
4710 esac
4711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4712 $as_echo "$ac_try_echo"; } >&5
4713   (eval "$ac_try") 2>&5
4714   ac_status=$?
4715   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4716   test $ac_status = 0; };
4717 then
4718   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4719   if test "x$CC" != xcc; then
4720     # Test first that cc exists at all.
4721     if { ac_try='cc -c conftest.$ac_ext >&5'
4722   { { case "(($ac_try" in
4723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4724   *) ac_try_echo=$ac_try;;
4725 esac
4726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4727 $as_echo "$ac_try_echo"; } >&5
4728   (eval "$ac_try") 2>&5
4729   ac_status=$?
4730   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4731   test $ac_status = 0; }; }; then
4732       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4733       rm -f conftest2.*
4734       if { { case "(($ac_try" in
4735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4736   *) ac_try_echo=$ac_try;;
4737 esac
4738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4739 $as_echo "$ac_try_echo"; } >&5
4740   (eval "$ac_try") 2>&5
4741   ac_status=$?
4742   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4743   test $ac_status = 0; } &&
4744          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4746   *) ac_try_echo=$ac_try;;
4747 esac
4748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4749 $as_echo "$ac_try_echo"; } >&5
4750   (eval "$ac_try") 2>&5
4751   ac_status=$?
4752   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4753   test $ac_status = 0; };
4754       then
4755         # cc works too.
4756         :
4757       else
4758         # cc exists but doesn't like -o.
4759         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4760       fi
4761     fi
4762   fi
4763 else
4764   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4766 rm -f core conftest*
4769 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4771 $as_echo "yes" >&6; }
4772 else
4773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4774 $as_echo "no" >&6; }
4775   
4776 $as_echo "@%:@define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4780 # FIXME: we rely on the cache variable name because
4781 # there is no other way.
4782 set dummy $CC
4783 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4784 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4785 if test "$am_t" != yes; then
4786    # Losing compiler, so override with the script.
4787    # FIXME: It is wrong to rewrite CC.
4788    # But if we don't then we get into trouble of one sort or another.
4789    # A longer-term fix would be to have automake use am__CC in this case,
4790    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4791    CC="$am_aux_dir/compile $CC"
4796 if test "x$remember_set_CFLAGS" = "x"
4797 then
4798   if test "$CFLAGS" = "-g -O2"
4799   then
4800     CFLAGS="-O2"
4801   elif test "$CFLAGS" = "-g"
4802   then
4803     CFLAGS=""
4804   fi
4807 if test "x$remember_set_CXXFLAGS" = "x"
4808 then
4809   if test "$CXXFLAGS" = "-g -O2"
4810   then
4811     CXXFLAGS="-O2"
4812   elif test "$CXXFLAGS" = "-g"
4813   then
4814     CXXFLAGS=""
4815   fi
4818 # AC_PROG_CXX will return "g++" even if no c++ compiler is installed.
4819 # Check for that case, and just disable c++ code if g++ doesn't run.
4820 ac_ext=cpp
4821 ac_cpp='$CXXCPP $CPPFLAGS'
4822 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4823 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4824 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4828 /* end confdefs.h.  */
4831 main ()
4834   ;
4835   return 0;
4837 _ACEOF
4838 if ac_fn_cxx_try_compile "$LINENO"; then :
4839   
4840 else
4841   CXX=""; CXXCP=""; CXXFLAGS=""
4843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4844 ac_ext=c
4845 ac_cpp='$CPP $CPPFLAGS'
4846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4851 # Check for a 64-bit integer type
4853 ac_ext=c
4854 ac_cpp='$CPP $CPPFLAGS'
4855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4859 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4860 # On Suns, sometimes $CPP names a directory.
4861 if test -n "$CPP" && test -d "$CPP"; then
4862   CPP=
4864 if test -z "$CPP"; then
4865   if ${ac_cv_prog_CPP+:} false; then :
4866   $as_echo_n "(cached) " >&6
4867 else
4868       # Double quotes because CPP needs to be expanded
4869     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4870     do
4871       ac_preproc_ok=false
4872 for ac_c_preproc_warn_flag in '' yes
4874   # Use a header file that comes with gcc, so configuring glibc
4875   # with a fresh cross-compiler works.
4876   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4877   # <limits.h> exists even on freestanding compilers.
4878   # On the NeXT, cc -E runs the code through the compiler's parser,
4879   # not just through cpp. "Syntax error" is here to catch this case.
4880   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4881 /* end confdefs.h.  */
4882 @%:@ifdef __STDC__
4883 @%:@ include <limits.h>
4884 @%:@else
4885 @%:@ include <assert.h>
4886 @%:@endif
4887                      Syntax error
4888 _ACEOF
4889 if ac_fn_c_try_cpp "$LINENO"; then :
4890   
4891 else
4892   # Broken: fails on valid input.
4893 continue
4895 rm -f conftest.err conftest.i conftest.$ac_ext
4897   # OK, works on sane cases.  Now check whether nonexistent headers
4898   # can be detected and how.
4899   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4900 /* end confdefs.h.  */
4901 @%:@include <ac_nonexistent.h>
4902 _ACEOF
4903 if ac_fn_c_try_cpp "$LINENO"; then :
4904   # Broken: success on invalid input.
4905 continue
4906 else
4907   # Passes both tests.
4908 ac_preproc_ok=:
4909 break
4911 rm -f conftest.err conftest.i conftest.$ac_ext
4913 done
4914 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4915 rm -f conftest.i conftest.err conftest.$ac_ext
4916 if $ac_preproc_ok; then :
4917   break
4920     done
4921     ac_cv_prog_CPP=$CPP
4922   
4924   CPP=$ac_cv_prog_CPP
4925 else
4926   ac_cv_prog_CPP=$CPP
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4929 $as_echo "$CPP" >&6; }
4930 ac_preproc_ok=false
4931 for ac_c_preproc_warn_flag in '' yes
4933   # Use a header file that comes with gcc, so configuring glibc
4934   # with a fresh cross-compiler works.
4935   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4936   # <limits.h> exists even on freestanding compilers.
4937   # On the NeXT, cc -E runs the code through the compiler's parser,
4938   # not just through cpp. "Syntax error" is here to catch this case.
4939   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4940 /* end confdefs.h.  */
4941 @%:@ifdef __STDC__
4942 @%:@ include <limits.h>
4943 @%:@else
4944 @%:@ include <assert.h>
4945 @%:@endif
4946                      Syntax error
4947 _ACEOF
4948 if ac_fn_c_try_cpp "$LINENO"; then :
4949   
4950 else
4951   # Broken: fails on valid input.
4952 continue
4954 rm -f conftest.err conftest.i conftest.$ac_ext
4956   # OK, works on sane cases.  Now check whether nonexistent headers
4957   # can be detected and how.
4958   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4959 /* end confdefs.h.  */
4960 @%:@include <ac_nonexistent.h>
4961 _ACEOF
4962 if ac_fn_c_try_cpp "$LINENO"; then :
4963   # Broken: success on invalid input.
4964 continue
4965 else
4966   # Passes both tests.
4967 ac_preproc_ok=:
4968 break
4970 rm -f conftest.err conftest.i conftest.$ac_ext
4972 done
4973 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4974 rm -f conftest.i conftest.err conftest.$ac_ext
4975 if $ac_preproc_ok; then :
4976   
4977 else
4978   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4979 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4980 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4981 See \`config.log' for more details" "$LINENO" 5; }
4984 ac_ext=c
4985 ac_cpp='$CPP $CPPFLAGS'
4986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4992 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4993 if ${ac_cv_path_GREP+:} false; then :
4994   $as_echo_n "(cached) " >&6
4995 else
4996   if test -z "$GREP"; then
4997   ac_path_GREP_found=false
4998   # Loop through the user's path and test for each of PROGNAME-LIST
4999   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5000 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5002   IFS=$as_save_IFS
5003   test -z "$as_dir" && as_dir=.
5004     for ac_prog in grep ggrep; do
5005     for ac_exec_ext in '' $ac_executable_extensions; do
5006       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5007       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5008 # Check for GNU ac_path_GREP and select it if it is found.
5009   # Check for GNU $ac_path_GREP
5010 case `"$ac_path_GREP" --version 2>&1` in
5011 *GNU*)
5012   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5014   ac_count=0
5015   $as_echo_n 0123456789 >"conftest.in"
5016   while :
5017   do
5018     cat "conftest.in" "conftest.in" >"conftest.tmp"
5019     mv "conftest.tmp" "conftest.in"
5020     cp "conftest.in" "conftest.nl"
5021     $as_echo 'GREP' >> "conftest.nl"
5022     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5023     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5024     as_fn_arith $ac_count + 1 && ac_count=$as_val
5025     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5026       # Best one so far, save it but keep looking for a better one
5027       ac_cv_path_GREP="$ac_path_GREP"
5028       ac_path_GREP_max=$ac_count
5029     fi
5030     # 10*(2^10) chars as input seems more than enough
5031     test $ac_count -gt 10 && break
5032   done
5033   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5034 esac
5036       $ac_path_GREP_found && break 3
5037     done
5038   done
5039   done
5040 IFS=$as_save_IFS
5041   if test -z "$ac_cv_path_GREP"; then
5042     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5043   fi
5044 else
5045   ac_cv_path_GREP=$GREP
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5050 $as_echo "$ac_cv_path_GREP" >&6; }
5051  GREP="$ac_cv_path_GREP"
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5055 $as_echo_n "checking for egrep... " >&6; }
5056 if ${ac_cv_path_EGREP+:} false; then :
5057   $as_echo_n "(cached) " >&6
5058 else
5059   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5060    then ac_cv_path_EGREP="$GREP -E"
5061    else
5062      if test -z "$EGREP"; then
5063   ac_path_EGREP_found=false
5064   # Loop through the user's path and test for each of PROGNAME-LIST
5065   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5066 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5068   IFS=$as_save_IFS
5069   test -z "$as_dir" && as_dir=.
5070     for ac_prog in egrep; do
5071     for ac_exec_ext in '' $ac_executable_extensions; do
5072       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5073       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5074 # Check for GNU ac_path_EGREP and select it if it is found.
5075   # Check for GNU $ac_path_EGREP
5076 case `"$ac_path_EGREP" --version 2>&1` in
5077 *GNU*)
5078   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5080   ac_count=0
5081   $as_echo_n 0123456789 >"conftest.in"
5082   while :
5083   do
5084     cat "conftest.in" "conftest.in" >"conftest.tmp"
5085     mv "conftest.tmp" "conftest.in"
5086     cp "conftest.in" "conftest.nl"
5087     $as_echo 'EGREP' >> "conftest.nl"
5088     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5089     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5090     as_fn_arith $ac_count + 1 && ac_count=$as_val
5091     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5092       # Best one so far, save it but keep looking for a better one
5093       ac_cv_path_EGREP="$ac_path_EGREP"
5094       ac_path_EGREP_max=$ac_count
5095     fi
5096     # 10*(2^10) chars as input seems more than enough
5097     test $ac_count -gt 10 && break
5098   done
5099   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5100 esac
5102       $ac_path_EGREP_found && break 3
5103     done
5104   done
5105   done
5106 IFS=$as_save_IFS
5107   if test -z "$ac_cv_path_EGREP"; then
5108     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5109   fi
5110 else
5111   ac_cv_path_EGREP=$EGREP
5114    fi
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5117 $as_echo "$ac_cv_path_EGREP" >&6; }
5118  EGREP="$ac_cv_path_EGREP"
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5122 $as_echo_n "checking for ANSI C header files... " >&6; }
5123 if ${ac_cv_header_stdc+:} false; then :
5124   $as_echo_n "(cached) " >&6
5125 else
5126   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5127 /* end confdefs.h.  */
5128 #include <stdlib.h>
5129 #include <stdarg.h>
5130 #include <string.h>
5131 #include <float.h>
5134 main ()
5137   ;
5138   return 0;
5140 _ACEOF
5141 if ac_fn_c_try_compile "$LINENO"; then :
5142   ac_cv_header_stdc=yes
5143 else
5144   ac_cv_header_stdc=no
5146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5148 if test $ac_cv_header_stdc = yes; then
5149   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5150   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5151 /* end confdefs.h.  */
5152 #include <string.h>
5154 _ACEOF
5155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5156   $EGREP "memchr" >/dev/null 2>&1; then :
5157   
5158 else
5159   ac_cv_header_stdc=no
5161 rm -f conftest*
5165 if test $ac_cv_header_stdc = yes; then
5166   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5167   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5168 /* end confdefs.h.  */
5169 #include <stdlib.h>
5171 _ACEOF
5172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5173   $EGREP "free" >/dev/null 2>&1; then :
5174   
5175 else
5176   ac_cv_header_stdc=no
5178 rm -f conftest*
5182 if test $ac_cv_header_stdc = yes; then
5183   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5184   if test "$cross_compiling" = yes; then :
5185   :
5186 else
5187   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5188 /* end confdefs.h.  */
5189 #include <ctype.h>
5190 #include <stdlib.h>
5191 #if ((' ' & 0x0FF) == 0x020)
5192 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5193 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5194 #else
5195 # define ISLOWER(c) \
5196                    (('a' <= (c) && (c) <= 'i') \
5197                      || ('j' <= (c) && (c) <= 'r') \
5198                      || ('s' <= (c) && (c) <= 'z'))
5199 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5200 #endif
5202 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5204 main ()
5206   int i;
5207   for (i = 0; i < 256; i++)
5208     if (XOR (islower (i), ISLOWER (i))
5209         || toupper (i) != TOUPPER (i))
5210       return 2;
5211   return 0;
5213 _ACEOF
5214 if ac_fn_c_try_run "$LINENO"; then :
5215   
5216 else
5217   ac_cv_header_stdc=no
5219 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5220   conftest.$ac_objext conftest.beam conftest.$ac_ext
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5226 $as_echo "$ac_cv_header_stdc" >&6; }
5227 if test $ac_cv_header_stdc = yes; then
5228   
5229 $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
5233 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5234 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5235                   inttypes.h stdint.h unistd.h
5236 do :
5237   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5238 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5240 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5241   cat >>confdefs.h <<_ACEOF
5242 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5243 _ACEOF
5247 done
5250 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5251 case $ac_cv_c_int64_t in #(
5252   no|yes) ;; #(
5253   *)
5254     
5255 cat >>confdefs.h <<_ACEOF
5256 @%:@define int64_t $ac_cv_c_int64_t
5257 _ACEOF
5259 esac
5263 # Make sure we can run config.sub.
5264 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5265   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5268 $as_echo_n "checking build system type... " >&6; }
5269 if ${ac_cv_build+:} false; then :
5270   $as_echo_n "(cached) " >&6
5271 else
5272   ac_build_alias=$build_alias
5273 test "x$ac_build_alias" = x &&
5274   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5275 test "x$ac_build_alias" = x &&
5276   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5277 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5278   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5282 $as_echo "$ac_cv_build" >&6; }
5283 case $ac_cv_build in
5284 *-*-*) ;;
5285 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5286 esac
5287 build=$ac_cv_build
5288 ac_save_IFS=$IFS; IFS='-'
5289 set x $ac_cv_build
5290 shift
5291 build_cpu=$1
5292 build_vendor=$2
5293 shift; shift
5294 # Remember, the first character of IFS is used to create $*,
5295 # except with old shells:
5296 build_os=$*
5297 IFS=$ac_save_IFS
5298 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5302 $as_echo_n "checking host system type... " >&6; }
5303 if ${ac_cv_host+:} false; then :
5304   $as_echo_n "(cached) " >&6
5305 else
5306   if test "x$host_alias" = x; then
5307   ac_cv_host=$ac_cv_build
5308 else
5309   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5310     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5315 $as_echo "$ac_cv_host" >&6; }
5316 case $ac_cv_host in
5317 *-*-*) ;;
5318 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5319 esac
5320 host=$ac_cv_host
5321 ac_save_IFS=$IFS; IFS='-'
5322 set x $ac_cv_host
5323 shift
5324 host_cpu=$1
5325 host_vendor=$2
5326 shift; shift
5327 # Remember, the first character of IFS is used to create $*,
5328 # except with old shells:
5329 host_os=$*
5330 IFS=$ac_save_IFS
5331 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5334 enable_win32_dll=yes
5336 case $host in
5337 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
5338   if test -n "$ac_tool_prefix"; then
5339   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5340 set dummy ${ac_tool_prefix}as; ac_word=$2
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5342 $as_echo_n "checking for $ac_word... " >&6; }
5343 if ${ac_cv_prog_AS+:} false; then :
5344   $as_echo_n "(cached) " >&6
5345 else
5346   if test -n "$AS"; then
5347   ac_cv_prog_AS="$AS" # Let the user override the test.
5348 else
5349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5350 for as_dir in $PATH
5352   IFS=$as_save_IFS
5353   test -z "$as_dir" && as_dir=.
5354     for ac_exec_ext in '' $ac_executable_extensions; do
5355   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5356     ac_cv_prog_AS="${ac_tool_prefix}as"
5357     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5358     break 2
5359   fi
5360 done
5361   done
5362 IFS=$as_save_IFS
5366 AS=$ac_cv_prog_AS
5367 if test -n "$AS"; then
5368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5369 $as_echo "$AS" >&6; }
5370 else
5371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5372 $as_echo "no" >&6; }
5377 if test -z "$ac_cv_prog_AS"; then
5378   ac_ct_AS=$AS
5379   # Extract the first word of "as", so it can be a program name with args.
5380 set dummy as; ac_word=$2
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5382 $as_echo_n "checking for $ac_word... " >&6; }
5383 if ${ac_cv_prog_ac_ct_AS+:} false; then :
5384   $as_echo_n "(cached) " >&6
5385 else
5386   if test -n "$ac_ct_AS"; then
5387   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5388 else
5389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5390 for as_dir in $PATH
5392   IFS=$as_save_IFS
5393   test -z "$as_dir" && as_dir=.
5394     for ac_exec_ext in '' $ac_executable_extensions; do
5395   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5396     ac_cv_prog_ac_ct_AS="as"
5397     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5398     break 2
5399   fi
5400 done
5401   done
5402 IFS=$as_save_IFS
5406 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5407 if test -n "$ac_ct_AS"; then
5408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5409 $as_echo "$ac_ct_AS" >&6; }
5410 else
5411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5412 $as_echo "no" >&6; }
5415   if test "x$ac_ct_AS" = x; then
5416     AS="false"
5417   else
5418     case $cross_compiling:$ac_tool_warned in
5419 yes:)
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5421 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5422 ac_tool_warned=yes ;;
5423 esac
5424     AS=$ac_ct_AS
5425   fi
5426 else
5427   AS="$ac_cv_prog_AS"
5430   if test -n "$ac_tool_prefix"; then
5431   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5432 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5434 $as_echo_n "checking for $ac_word... " >&6; }
5435 if ${ac_cv_prog_DLLTOOL+:} false; then :
5436   $as_echo_n "(cached) " >&6
5437 else
5438   if test -n "$DLLTOOL"; then
5439   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5440 else
5441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5442 for as_dir in $PATH
5444   IFS=$as_save_IFS
5445   test -z "$as_dir" && as_dir=.
5446     for ac_exec_ext in '' $ac_executable_extensions; do
5447   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5448     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5449     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5450     break 2
5451   fi
5452 done
5453   done
5454 IFS=$as_save_IFS
5458 DLLTOOL=$ac_cv_prog_DLLTOOL
5459 if test -n "$DLLTOOL"; then
5460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5461 $as_echo "$DLLTOOL" >&6; }
5462 else
5463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5464 $as_echo "no" >&6; }
5469 if test -z "$ac_cv_prog_DLLTOOL"; then
5470   ac_ct_DLLTOOL=$DLLTOOL
5471   # Extract the first word of "dlltool", so it can be a program name with args.
5472 set dummy dlltool; ac_word=$2
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5474 $as_echo_n "checking for $ac_word... " >&6; }
5475 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5476   $as_echo_n "(cached) " >&6
5477 else
5478   if test -n "$ac_ct_DLLTOOL"; then
5479   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5480 else
5481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5482 for as_dir in $PATH
5484   IFS=$as_save_IFS
5485   test -z "$as_dir" && as_dir=.
5486     for ac_exec_ext in '' $ac_executable_extensions; do
5487   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5488     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5489     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5490     break 2
5491   fi
5492 done
5493   done
5494 IFS=$as_save_IFS
5498 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5499 if test -n "$ac_ct_DLLTOOL"; then
5500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5501 $as_echo "$ac_ct_DLLTOOL" >&6; }
5502 else
5503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5504 $as_echo "no" >&6; }
5507   if test "x$ac_ct_DLLTOOL" = x; then
5508     DLLTOOL="false"
5509   else
5510     case $cross_compiling:$ac_tool_warned in
5511 yes:)
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5513 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5514 ac_tool_warned=yes ;;
5515 esac
5516     DLLTOOL=$ac_ct_DLLTOOL
5517   fi
5518 else
5519   DLLTOOL="$ac_cv_prog_DLLTOOL"
5522   if test -n "$ac_tool_prefix"; then
5523   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5524 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5526 $as_echo_n "checking for $ac_word... " >&6; }
5527 if ${ac_cv_prog_OBJDUMP+:} false; then :
5528   $as_echo_n "(cached) " >&6
5529 else
5530   if test -n "$OBJDUMP"; then
5531   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5532 else
5533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5534 for as_dir in $PATH
5536   IFS=$as_save_IFS
5537   test -z "$as_dir" && as_dir=.
5538     for ac_exec_ext in '' $ac_executable_extensions; do
5539   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5540     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5541     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5542     break 2
5543   fi
5544 done
5545   done
5546 IFS=$as_save_IFS
5550 OBJDUMP=$ac_cv_prog_OBJDUMP
5551 if test -n "$OBJDUMP"; then
5552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5553 $as_echo "$OBJDUMP" >&6; }
5554 else
5555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5556 $as_echo "no" >&6; }
5561 if test -z "$ac_cv_prog_OBJDUMP"; then
5562   ac_ct_OBJDUMP=$OBJDUMP
5563   # Extract the first word of "objdump", so it can be a program name with args.
5564 set dummy objdump; ac_word=$2
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5566 $as_echo_n "checking for $ac_word... " >&6; }
5567 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5568   $as_echo_n "(cached) " >&6
5569 else
5570   if test -n "$ac_ct_OBJDUMP"; then
5571   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5572 else
5573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5574 for as_dir in $PATH
5576   IFS=$as_save_IFS
5577   test -z "$as_dir" && as_dir=.
5578     for ac_exec_ext in '' $ac_executable_extensions; do
5579   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5580     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5581     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5582     break 2
5583   fi
5584 done
5585   done
5586 IFS=$as_save_IFS
5590 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5591 if test -n "$ac_ct_OBJDUMP"; then
5592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5593 $as_echo "$ac_ct_OBJDUMP" >&6; }
5594 else
5595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5596 $as_echo "no" >&6; }
5599   if test "x$ac_ct_OBJDUMP" = x; then
5600     OBJDUMP="false"
5601   else
5602     case $cross_compiling:$ac_tool_warned in
5603 yes:)
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5605 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5606 ac_tool_warned=yes ;;
5607 esac
5608     OBJDUMP=$ac_ct_OBJDUMP
5609   fi
5610 else
5611   OBJDUMP="$ac_cv_prog_OBJDUMP"
5614   ;;
5615 esac
5617 test -z "$AS" && AS=as
5619     
5620     
5621     
5623 test -z "$DLLTOOL" && DLLTOOL=dlltool
5625     
5626     
5627     
5629 test -z "$OBJDUMP" && OBJDUMP=objdump
5631     
5632     
5633     
5637 case `pwd` in
5638   *\ * | *\     *)
5639     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5640 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5641 esac
5645 macro_version='2.4'
5646 macro_revision='1.3293'
5648     
5649     
5650     
5653     
5654     
5655     
5660 ltmain="$ac_aux_dir/ltmain.sh"
5662 # Backslashify metacharacters that are still active within
5663 # double-quoted strings.
5664 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5666 # Same as above, but do not quote variable references.
5667 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5669 # Sed substitution to delay expansion of an escaped shell variable in a
5670 # double_quote_subst'ed string.
5671 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5673 # Sed substitution to delay expansion of an escaped single quote.
5674 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5676 # Sed substitution to avoid accidental globbing in evaled expressions
5677 no_glob_subst='s/\*/\\\*/g'
5679 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5680 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5681 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5684 $as_echo_n "checking how to print strings... " >&6; }
5685 # Test print first, because it will be a builtin if present.
5686 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5687    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5688   ECHO='print -r --'
5689 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5690   ECHO='printf %s\n'
5691 else
5692   # Use this function as a fallback that always works.
5693   func_fallback_echo ()
5694   {
5695     eval 'cat <<_LTECHO_EOF
5697 _LTECHO_EOF'
5698   }
5699   ECHO='func_fallback_echo'
5702 # func_echo_all arg...
5703 # Invoke $ECHO with all args, space-separated.
5704 func_echo_all ()
5706     $ECHO "" 
5709 case "$ECHO" in
5710   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5711 $as_echo "printf" >&6; } ;;
5712   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5713 $as_echo "print -r" >&6; } ;;
5714   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5715 $as_echo "cat" >&6; } ;;
5716 esac
5721     
5722     
5723     
5726     
5727     
5728     
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5732 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5733 if ${ac_cv_path_SED+:} false; then :
5734   $as_echo_n "(cached) " >&6
5735 else
5736             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5737      for ac_i in 1 2 3 4 5 6 7; do
5738        ac_script="$ac_script$as_nl$ac_script"
5739      done
5740      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5741      { ac_script=; unset ac_script;}
5742      if test -z "$SED"; then
5743   ac_path_SED_found=false
5744   # Loop through the user's path and test for each of PROGNAME-LIST
5745   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5746 for as_dir in $PATH
5748   IFS=$as_save_IFS
5749   test -z "$as_dir" && as_dir=.
5750     for ac_prog in sed gsed; do
5751     for ac_exec_ext in '' $ac_executable_extensions; do
5752       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5753       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5754 # Check for GNU ac_path_SED and select it if it is found.
5755   # Check for GNU $ac_path_SED
5756 case `"$ac_path_SED" --version 2>&1` in
5757 *GNU*)
5758   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5760   ac_count=0
5761   $as_echo_n 0123456789 >"conftest.in"
5762   while :
5763   do
5764     cat "conftest.in" "conftest.in" >"conftest.tmp"
5765     mv "conftest.tmp" "conftest.in"
5766     cp "conftest.in" "conftest.nl"
5767     $as_echo '' >> "conftest.nl"
5768     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5769     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5770     as_fn_arith $ac_count + 1 && ac_count=$as_val
5771     if test $ac_count -gt ${ac_path_SED_max-0}; then
5772       # Best one so far, save it but keep looking for a better one
5773       ac_cv_path_SED="$ac_path_SED"
5774       ac_path_SED_max=$ac_count
5775     fi
5776     # 10*(2^10) chars as input seems more than enough
5777     test $ac_count -gt 10 && break
5778   done
5779   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5780 esac
5782       $ac_path_SED_found && break 3
5783     done
5784   done
5785   done
5786 IFS=$as_save_IFS
5787   if test -z "$ac_cv_path_SED"; then
5788     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5789   fi
5790 else
5791   ac_cv_path_SED=$SED
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5796 $as_echo "$ac_cv_path_SED" >&6; }
5797  SED="$ac_cv_path_SED"
5798   rm -f conftest.sed
5800 test -z "$SED" && SED=sed
5801 Xsed="$SED -e 1s/^X//"
5803     
5804     
5805     
5808     
5809     
5810     
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5814 $as_echo_n "checking for fgrep... " >&6; }
5815 if ${ac_cv_path_FGREP+:} false; then :
5816   $as_echo_n "(cached) " >&6
5817 else
5818   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5819    then ac_cv_path_FGREP="$GREP -F"
5820    else
5821      if test -z "$FGREP"; then
5822   ac_path_FGREP_found=false
5823   # Loop through the user's path and test for each of PROGNAME-LIST
5824   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5825 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5827   IFS=$as_save_IFS
5828   test -z "$as_dir" && as_dir=.
5829     for ac_prog in fgrep; do
5830     for ac_exec_ext in '' $ac_executable_extensions; do
5831       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5832       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5833 # Check for GNU ac_path_FGREP and select it if it is found.
5834   # Check for GNU $ac_path_FGREP
5835 case `"$ac_path_FGREP" --version 2>&1` in
5836 *GNU*)
5837   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5839   ac_count=0
5840   $as_echo_n 0123456789 >"conftest.in"
5841   while :
5842   do
5843     cat "conftest.in" "conftest.in" >"conftest.tmp"
5844     mv "conftest.tmp" "conftest.in"
5845     cp "conftest.in" "conftest.nl"
5846     $as_echo 'FGREP' >> "conftest.nl"
5847     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5848     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5849     as_fn_arith $ac_count + 1 && ac_count=$as_val
5850     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5851       # Best one so far, save it but keep looking for a better one
5852       ac_cv_path_FGREP="$ac_path_FGREP"
5853       ac_path_FGREP_max=$ac_count
5854     fi
5855     # 10*(2^10) chars as input seems more than enough
5856     test $ac_count -gt 10 && break
5857   done
5858   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5859 esac
5861       $ac_path_FGREP_found && break 3
5862     done
5863   done
5864   done
5865 IFS=$as_save_IFS
5866   if test -z "$ac_cv_path_FGREP"; then
5867     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5868   fi
5869 else
5870   ac_cv_path_FGREP=$FGREP
5873    fi
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5876 $as_echo "$ac_cv_path_FGREP" >&6; }
5877  FGREP="$ac_cv_path_FGREP"
5880 test -z "$GREP" && GREP=grep
5882     
5883     
5884     
5887     
5888     
5889     
5892     
5893     
5894     
5900 @%:@ Check whether --with-gnu-ld was given.
5901 if test "${with_gnu_ld+set}" = set; then :
5902   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5903 else
5904   with_gnu_ld=no
5907 ac_prog=ld
5908 if test "$GCC" = yes; then
5909   # Check if gcc -print-prog-name=ld gives a path.
5910   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5911 $as_echo_n "checking for ld used by $CC... " >&6; }
5912   case $host in
5913   *-*-mingw*)
5914     # gcc leaves a trailing carriage return which upsets mingw
5915     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5916   *)
5917     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5918   esac
5919   case $ac_prog in
5920     # Accept absolute paths.
5921     [\\/]* | ?:[\\/]*)
5922       re_direlt='/[^/][^/]*/\.\./'
5923       # Canonicalize the pathname of ld
5924       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5925       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5926         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5927       done
5928       test -z "$LD" && LD="$ac_prog"
5929       ;;
5930   "")
5931     # If it fails, then pretend we aren't using GCC.
5932     ac_prog=ld
5933     ;;
5934   *)
5935     # If it is relative, then search for the first ld in PATH.
5936     with_gnu_ld=unknown
5937     ;;
5938   esac
5939 elif test "$with_gnu_ld" = yes; then
5940   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5941 $as_echo_n "checking for GNU ld... " >&6; }
5942 else
5943   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5944 $as_echo_n "checking for non-GNU ld... " >&6; }
5946 if ${lt_cv_path_LD+:} false; then :
5947   $as_echo_n "(cached) " >&6
5948 else
5949   if test -z "$LD"; then
5950   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5951   for ac_dir in $PATH; do
5952     IFS="$lt_save_ifs"
5953     test -z "$ac_dir" && ac_dir=.
5954     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5955       lt_cv_path_LD="$ac_dir/$ac_prog"
5956       # Check to see if the program is GNU ld.  I'd rather use --version,
5957       # but apparently some variants of GNU ld only accept -v.
5958       # Break only if it was the GNU/non-GNU ld that we prefer.
5959       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5960       *GNU* | *'with BFD'*)
5961         test "$with_gnu_ld" != no && break
5962         ;;
5963       *)
5964         test "$with_gnu_ld" != yes && break
5965         ;;
5966       esac
5967     fi
5968   done
5969   IFS="$lt_save_ifs"
5970 else
5971   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5975 LD="$lt_cv_path_LD"
5976 if test -n "$LD"; then
5977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5978 $as_echo "$LD" >&6; }
5979 else
5980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5981 $as_echo "no" >&6; }
5983 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5985 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5986 if ${lt_cv_prog_gnu_ld+:} false; then :
5987   $as_echo_n "(cached) " >&6
5988 else
5989   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5990 case `$LD -v 2>&1 </dev/null` in
5991 *GNU* | *'with BFD'*)
5992   lt_cv_prog_gnu_ld=yes
5993   ;;
5995   lt_cv_prog_gnu_ld=no
5996   ;;
5997 esac
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6000 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6001 with_gnu_ld=$lt_cv_prog_gnu_ld
6006     
6007     
6008     
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6012 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6013 if ${lt_cv_path_NM+:} false; then :
6014   $as_echo_n "(cached) " >&6
6015 else
6016   if test -n "$NM"; then
6017   # Let the user override the test.
6018   lt_cv_path_NM="$NM"
6019 else
6020   lt_nm_to_check="${ac_tool_prefix}nm"
6021   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6022     lt_nm_to_check="$lt_nm_to_check nm"
6023   fi
6024   for lt_tmp_nm in $lt_nm_to_check; do
6025     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6026     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6027       IFS="$lt_save_ifs"
6028       test -z "$ac_dir" && ac_dir=.
6029       tmp_nm="$ac_dir/$lt_tmp_nm"
6030       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6031         # Check to see if the nm accepts a BSD-compat flag.
6032         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6033         #   nm: unknown option "B" ignored
6034         # Tru64's nm complains that /dev/null is an invalid object file
6035         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6036         */dev/null* | *'Invalid file or object type'*)
6037           lt_cv_path_NM="$tmp_nm -B"
6038           break
6039           ;;
6040         *)
6041           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6042           */dev/null*)
6043             lt_cv_path_NM="$tmp_nm -p"
6044             break
6045             ;;
6046           *)
6047             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6048             continue # so that we can try to find one that supports BSD flags
6049             ;;
6050           esac
6051           ;;
6052         esac
6053       fi
6054     done
6055     IFS="$lt_save_ifs"
6056   done
6057   : ${lt_cv_path_NM=no}
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6061 $as_echo "$lt_cv_path_NM" >&6; }
6062 if test "$lt_cv_path_NM" != "no"; then
6063   NM="$lt_cv_path_NM"
6064 else
6065   # Didn't find any BSD compatible name lister, look for dumpbin.
6066   if test -n "$DUMPBIN"; then :
6067     # Let the user override the test.
6068   else
6069     if test -n "$ac_tool_prefix"; then
6070   for ac_prog in dumpbin "link -dump"
6071   do
6072     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6073 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6075 $as_echo_n "checking for $ac_word... " >&6; }
6076 if ${ac_cv_prog_DUMPBIN+:} false; then :
6077   $as_echo_n "(cached) " >&6
6078 else
6079   if test -n "$DUMPBIN"; then
6080   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6081 else
6082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6083 for as_dir in $PATH
6085   IFS=$as_save_IFS
6086   test -z "$as_dir" && as_dir=.
6087     for ac_exec_ext in '' $ac_executable_extensions; do
6088   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6089     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6090     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6091     break 2
6092   fi
6093 done
6094   done
6095 IFS=$as_save_IFS
6099 DUMPBIN=$ac_cv_prog_DUMPBIN
6100 if test -n "$DUMPBIN"; then
6101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6102 $as_echo "$DUMPBIN" >&6; }
6103 else
6104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6105 $as_echo "no" >&6; }
6109     test -n "$DUMPBIN" && break
6110   done
6112 if test -z "$DUMPBIN"; then
6113   ac_ct_DUMPBIN=$DUMPBIN
6114   for ac_prog in dumpbin "link -dump"
6116   # Extract the first word of "$ac_prog", so it can be a program name with args.
6117 set dummy $ac_prog; ac_word=$2
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6119 $as_echo_n "checking for $ac_word... " >&6; }
6120 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6121   $as_echo_n "(cached) " >&6
6122 else
6123   if test -n "$ac_ct_DUMPBIN"; then
6124   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6125 else
6126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6127 for as_dir in $PATH
6129   IFS=$as_save_IFS
6130   test -z "$as_dir" && as_dir=.
6131     for ac_exec_ext in '' $ac_executable_extensions; do
6132   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6133     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6134     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6135     break 2
6136   fi
6137 done
6138   done
6139 IFS=$as_save_IFS
6143 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6144 if test -n "$ac_ct_DUMPBIN"; then
6145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6146 $as_echo "$ac_ct_DUMPBIN" >&6; }
6147 else
6148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6149 $as_echo "no" >&6; }
6153   test -n "$ac_ct_DUMPBIN" && break
6154 done
6156   if test "x$ac_ct_DUMPBIN" = x; then
6157     DUMPBIN=":"
6158   else
6159     case $cross_compiling:$ac_tool_warned in
6160 yes:)
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6162 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6163 ac_tool_warned=yes ;;
6164 esac
6165     DUMPBIN=$ac_ct_DUMPBIN
6166   fi
6169     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6170     *COFF*)
6171       DUMPBIN="$DUMPBIN -symbols"
6172       ;;
6173     *)
6174       DUMPBIN=:
6175       ;;
6176     esac
6177   fi
6178   
6179   if test "$DUMPBIN" != ":"; then
6180     NM="$DUMPBIN"
6181   fi
6183 test -z "$NM" && NM=nm
6186     
6187     
6188     
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6191 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6192 if ${lt_cv_nm_interface+:} false; then :
6193   $as_echo_n "(cached) " >&6
6194 else
6195   lt_cv_nm_interface="BSD nm"
6196   echo "int some_variable = 0;" > conftest.$ac_ext
6197   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6198   (eval "$ac_compile" 2>conftest.err)
6199   cat conftest.err >&5
6200   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6201   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6202   cat conftest.err >&5
6203   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6204   cat conftest.out >&5
6205   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6206     lt_cv_nm_interface="MS dumpbin"
6207   fi
6208   rm -f conftest*
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6211 $as_echo "$lt_cv_nm_interface" >&6; }
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6214 $as_echo_n "checking whether ln -s works... " >&6; }
6215 LN_S=$as_ln_s
6216 if test "$LN_S" = "ln -s"; then
6217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6218 $as_echo "yes" >&6; }
6219 else
6220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6221 $as_echo "no, using $LN_S" >&6; }
6224 # find the maximum length of command line arguments
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6226 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6227 if ${lt_cv_sys_max_cmd_len+:} false; then :
6228   $as_echo_n "(cached) " >&6
6229 else
6230     i=0
6231   teststring="ABCD"
6233   case $build_os in
6234   msdosdjgpp*)
6235     # On DJGPP, this test can blow up pretty badly due to problems in libc
6236     # (any single argument exceeding 2000 bytes causes a buffer overrun
6237     # during glob expansion).  Even if it were fixed, the result of this
6238     # check would be larger than it should be.
6239     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6240     ;;
6242   gnu*)
6243     # Under GNU Hurd, this test is not required because there is
6244     # no limit to the length of command line arguments.
6245     # Libtool will interpret -1 as no limit whatsoever
6246     lt_cv_sys_max_cmd_len=-1;
6247     ;;
6249   cygwin* | mingw* | cegcc*)
6250     # On Win9x/ME, this test blows up -- it succeeds, but takes
6251     # about 5 minutes as the teststring grows exponentially.
6252     # Worse, since 9x/ME are not pre-emptively multitasking,
6253     # you end up with a "frozen" computer, even though with patience
6254     # the test eventually succeeds (with a max line length of 256k).
6255     # Instead, let's just punt: use the minimum linelength reported by
6256     # all of the supported platforms: 8192 (on NT/2K/XP).
6257     lt_cv_sys_max_cmd_len=8192;
6258     ;;
6260   mint*)
6261     # On MiNT this can take a long time and run out of memory.
6262     lt_cv_sys_max_cmd_len=8192;
6263     ;;
6265   amigaos*)
6266     # On AmigaOS with pdksh, this test takes hours, literally.
6267     # So we just punt and use a minimum line length of 8192.
6268     lt_cv_sys_max_cmd_len=8192;
6269     ;;
6271   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6272     # This has been around since 386BSD, at least.  Likely further.
6273     if test -x /sbin/sysctl; then
6274       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6275     elif test -x /usr/sbin/sysctl; then
6276       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6277     else
6278       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6279     fi
6280     # And add a safety zone
6281     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6282     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6283     ;;
6285   interix*)
6286     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6287     lt_cv_sys_max_cmd_len=196608
6288     ;;
6290   osf*)
6291     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6292     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6293     # nice to cause kernel panics so lets avoid the loop below.
6294     # First set a reasonable default.
6295     lt_cv_sys_max_cmd_len=16384
6296     #
6297     if test -x /sbin/sysconfig; then
6298       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6299         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6300       esac
6301     fi
6302     ;;
6303   sco3.2v5*)
6304     lt_cv_sys_max_cmd_len=102400
6305     ;;
6306   sysv5* | sco5v6* | sysv4.2uw2*)
6307     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6308     if test -n "$kargmax"; then
6309       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6310     else
6311       lt_cv_sys_max_cmd_len=32768
6312     fi
6313     ;;
6314   *)
6315     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6316     if test -n "$lt_cv_sys_max_cmd_len"; then
6317       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6318       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6319     else
6320       # Make teststring a little bigger before we do anything with it.
6321       # a 1K string should be a reasonable start.
6322       for i in 1 2 3 4 5 6 7 8 ; do
6323         teststring=$teststring$teststring
6324       done
6325       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6326       # If test is not a shell built-in, we'll probably end up computing a
6327       # maximum length that is only half of the actual maximum length, but
6328       # we can't tell.
6329       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6330                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6331               test $i != 17 # 1/2 MB should be enough
6332       do
6333         i=`expr $i + 1`
6334         teststring=$teststring$teststring
6335       done
6336       # Only check the string length outside the loop.
6337       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6338       teststring=
6339       # Add a significant safety factor because C++ compilers can tack on
6340       # massive amounts of additional arguments before passing them to the
6341       # linker.  It appears as though 1/2 is a usable value.
6342       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6343     fi
6344     ;;
6345   esac
6349 if test -n $lt_cv_sys_max_cmd_len ; then
6350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6351 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6352 else
6353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6354 $as_echo "none" >&6; }
6356 max_cmd_len=$lt_cv_sys_max_cmd_len
6358     
6359     
6360     
6363 : ${CP="cp -f"}
6364 : ${MV="mv -f"}
6365 : ${RM="rm -f"}
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6368 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6369 # Try some XSI features
6370 xsi_shell=no
6371 ( _lt_dummy="a/b/c"
6372   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6373       = c,a/b,b/c, \
6374     && eval 'test $(( 1 + 1 )) -eq 2 \
6375     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6376   && xsi_shell=yes
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6378 $as_echo "$xsi_shell" >&6; }
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6382 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6383 lt_shell_append=no
6384 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6385     >/dev/null 2>&1 \
6386   && lt_shell_append=yes
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6388 $as_echo "$lt_shell_append" >&6; }
6391 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6392   lt_unset=unset
6393 else
6394   lt_unset=false
6397     
6398     
6399     
6401 # test EBCDIC or ASCII
6402 case `echo X|tr X '\101'` in
6403  A) # ASCII based system
6404     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6405   lt_SP2NL='tr \040 \012'
6406   lt_NL2SP='tr \015\012 \040\040'
6407   ;;
6408  *) # EBCDIC based system
6409   lt_SP2NL='tr \100 \n'
6410   lt_NL2SP='tr \r\n \100\100'
6411   ;;
6412 esac
6414     
6415     
6416     
6418     
6419     
6420     
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6423 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6424 if ${lt_cv_to_host_file_cmd+:} false; then :
6425   $as_echo_n "(cached) " >&6
6426 else
6427   case $host in
6428   *-*-mingw* )
6429     case $build in
6430       *-*-mingw* ) # actually msys
6431         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6432         ;;
6433       *-*-cygwin* )
6434         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6435         ;;
6436       * ) # otherwise, assume *nix
6437         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6438         ;;
6439     esac
6440     ;;
6441   *-*-cygwin* )
6442     case $build in
6443       *-*-mingw* ) # actually msys
6444         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6445         ;;
6446       *-*-cygwin* )
6447         lt_cv_to_host_file_cmd=func_convert_file_noop
6448         ;;
6449       * ) # otherwise, assume *nix
6450         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6451         ;;
6452     esac
6453     ;;
6454   * ) # unhandled hosts (and "normal" native builds)
6455     lt_cv_to_host_file_cmd=func_convert_file_noop
6456     ;;
6457 esac
6461 to_host_file_cmd=$lt_cv_to_host_file_cmd
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6463 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6465     
6466     
6467     
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6470 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6471 if ${lt_cv_to_tool_file_cmd+:} false; then :
6472   $as_echo_n "(cached) " >&6
6473 else
6474   #assume ordinary cross tools, or native build.
6475 lt_cv_to_tool_file_cmd=func_convert_file_noop
6476 case $host in
6477   *-*-mingw* )
6478     case $build in
6479       *-*-mingw* ) # actually msys
6480         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6481         ;;
6482     esac
6483     ;;
6484 esac
6488 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6490 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6492     
6493     
6494     
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6497 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6498 if ${lt_cv_ld_reload_flag+:} false; then :
6499   $as_echo_n "(cached) " >&6
6500 else
6501   lt_cv_ld_reload_flag='-r'
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6504 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6505 reload_flag=$lt_cv_ld_reload_flag
6506 case $reload_flag in
6507 "" | " "*) ;;
6508 *) reload_flag=" $reload_flag" ;;
6509 esac
6510 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6511 case $host_os in
6512   cygwin* | mingw* | pw32* | cegcc*)
6513     if test "$GCC" != yes; then
6514       reload_cmds=false
6515     fi
6516     ;;
6517   darwin*)
6518     if test "$GCC" = yes; then
6519       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6520     else
6521       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6522     fi
6523     ;;
6524 esac
6526     
6527     
6528     
6530     
6531     
6532     
6534 if test -n "$ac_tool_prefix"; then
6535   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6536 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6538 $as_echo_n "checking for $ac_word... " >&6; }
6539 if ${ac_cv_prog_OBJDUMP+:} false; then :
6540   $as_echo_n "(cached) " >&6
6541 else
6542   if test -n "$OBJDUMP"; then
6543   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6544 else
6545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6546 for as_dir in $PATH
6548   IFS=$as_save_IFS
6549   test -z "$as_dir" && as_dir=.
6550     for ac_exec_ext in '' $ac_executable_extensions; do
6551   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6552     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6553     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6554     break 2
6555   fi
6556 done
6557   done
6558 IFS=$as_save_IFS
6562 OBJDUMP=$ac_cv_prog_OBJDUMP
6563 if test -n "$OBJDUMP"; then
6564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6565 $as_echo "$OBJDUMP" >&6; }
6566 else
6567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6568 $as_echo "no" >&6; }
6573 if test -z "$ac_cv_prog_OBJDUMP"; then
6574   ac_ct_OBJDUMP=$OBJDUMP
6575   # Extract the first word of "objdump", so it can be a program name with args.
6576 set dummy objdump; ac_word=$2
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6578 $as_echo_n "checking for $ac_word... " >&6; }
6579 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6580   $as_echo_n "(cached) " >&6
6581 else
6582   if test -n "$ac_ct_OBJDUMP"; then
6583   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6584 else
6585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6586 for as_dir in $PATH
6588   IFS=$as_save_IFS
6589   test -z "$as_dir" && as_dir=.
6590     for ac_exec_ext in '' $ac_executable_extensions; do
6591   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6592     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6593     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6594     break 2
6595   fi
6596 done
6597   done
6598 IFS=$as_save_IFS
6602 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6603 if test -n "$ac_ct_OBJDUMP"; then
6604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6605 $as_echo "$ac_ct_OBJDUMP" >&6; }
6606 else
6607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6608 $as_echo "no" >&6; }
6611   if test "x$ac_ct_OBJDUMP" = x; then
6612     OBJDUMP="false"
6613   else
6614     case $cross_compiling:$ac_tool_warned in
6615 yes:)
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6617 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6618 ac_tool_warned=yes ;;
6619 esac
6620     OBJDUMP=$ac_ct_OBJDUMP
6621   fi
6622 else
6623   OBJDUMP="$ac_cv_prog_OBJDUMP"
6626 test -z "$OBJDUMP" && OBJDUMP=objdump
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6634 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6635 if ${lt_cv_deplibs_check_method+:} false; then :
6636   $as_echo_n "(cached) " >&6
6637 else
6638   lt_cv_file_magic_cmd='$MAGIC_CMD'
6639 lt_cv_file_magic_test_file=
6640 lt_cv_deplibs_check_method='unknown'
6641 # Need to set the preceding variable on all platforms that support
6642 # interlibrary dependencies.
6643 # 'none' -- dependencies not supported.
6644 # `unknown' -- same as none, but documents that we really don't know.
6645 # 'pass_all' -- all dependencies passed with no checks.
6646 # 'test_compile' -- check by making test program.
6647 # 'file_magic [[regex]]' -- check by looking for files in library path
6648 # which responds to the $file_magic_cmd with a given extended regex.
6649 # If you have `file' or equivalent on your system and you're not sure
6650 # whether `pass_all' will *always* work, you probably want this one.
6652 case $host_os in
6653 aix[4-9]*)
6654   lt_cv_deplibs_check_method=pass_all
6655   ;;
6657 beos*)
6658   lt_cv_deplibs_check_method=pass_all
6659   ;;
6661 bsdi[45]*)
6662   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6663   lt_cv_file_magic_cmd='/usr/bin/file -L'
6664   lt_cv_file_magic_test_file=/shlib/libc.so
6665   ;;
6667 cygwin*)
6668   # func_win32_libid is a shell function defined in ltmain.sh
6669   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6670   lt_cv_file_magic_cmd='func_win32_libid'
6671   ;;
6673 mingw* | pw32*)
6674   # Base MSYS/MinGW do not provide the 'file' command needed by
6675   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6676   # unless we find 'file', for example because we are cross-compiling.
6677   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6678   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6679     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6680     lt_cv_file_magic_cmd='func_win32_libid'
6681   else
6682     # Keep this pattern in sync with the one in func_win32_libid.
6683     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6684     lt_cv_file_magic_cmd='$OBJDUMP -f'
6685   fi
6686   ;;
6688 cegcc*)
6689   # use the weaker test based on 'objdump'. See mingw*.
6690   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6691   lt_cv_file_magic_cmd='$OBJDUMP -f'
6692   ;;
6694 darwin* | rhapsody*)
6695   lt_cv_deplibs_check_method=pass_all
6696   ;;
6698 freebsd* | dragonfly*)
6699   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6700     case $host_cpu in
6701     i*86 )
6702       # Not sure whether the presence of OpenBSD here was a mistake.
6703       # Let's accept both of them until this is cleared up.
6704       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6705       lt_cv_file_magic_cmd=/usr/bin/file
6706       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6707       ;;
6708     esac
6709   else
6710     lt_cv_deplibs_check_method=pass_all
6711   fi
6712   ;;
6714 gnu*)
6715   lt_cv_deplibs_check_method=pass_all
6716   ;;
6718 haiku*)
6719   lt_cv_deplibs_check_method=pass_all
6720   ;;
6722 hpux10.20* | hpux11*)
6723   lt_cv_file_magic_cmd=/usr/bin/file
6724   case $host_cpu in
6725   ia64*)
6726     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6727     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6728     ;;
6729   hppa*64*)
6730     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]'
6731     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6732     ;;
6733   *)
6734     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6735     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6736     ;;
6737   esac
6738   ;;
6740 interix[3-9]*)
6741   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6742   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6743   ;;
6745 irix5* | irix6* | nonstopux*)
6746   case $LD in
6747   *-32|*"-32 ") libmagic=32-bit;;
6748   *-n32|*"-n32 ") libmagic=N32;;
6749   *-64|*"-64 ") libmagic=64-bit;;
6750   *) libmagic=never-match;;
6751   esac
6752   lt_cv_deplibs_check_method=pass_all
6753   ;;
6755 # This must be Linux ELF.
6756 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6757   lt_cv_deplibs_check_method=pass_all
6758   ;;
6760 netbsd*)
6761   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6762     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6763   else
6764     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6765   fi
6766   ;;
6768 newos6*)
6769   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6770   lt_cv_file_magic_cmd=/usr/bin/file
6771   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6772   ;;
6774 *nto* | *qnx*)
6775   lt_cv_deplibs_check_method=pass_all
6776   ;;
6778 openbsd*)
6779   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6780     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6781   else
6782     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6783   fi
6784   ;;
6786 osf3* | osf4* | osf5*)
6787   lt_cv_deplibs_check_method=pass_all
6788   ;;
6790 rdos*)
6791   lt_cv_deplibs_check_method=pass_all
6792   ;;
6794 solaris*)
6795   lt_cv_deplibs_check_method=pass_all
6796   ;;
6798 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6799   lt_cv_deplibs_check_method=pass_all
6800   ;;
6802 sysv4 | sysv4.3*)
6803   case $host_vendor in
6804   motorola)
6805     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]'
6806     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6807     ;;
6808   ncr)
6809     lt_cv_deplibs_check_method=pass_all
6810     ;;
6811   sequent)
6812     lt_cv_file_magic_cmd='/bin/file'
6813     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6814     ;;
6815   sni)
6816     lt_cv_file_magic_cmd='/bin/file'
6817     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6818     lt_cv_file_magic_test_file=/lib/libc.so
6819     ;;
6820   siemens)
6821     lt_cv_deplibs_check_method=pass_all
6822     ;;
6823   pc)
6824     lt_cv_deplibs_check_method=pass_all
6825     ;;
6826   esac
6827   ;;
6829 tpf*)
6830   lt_cv_deplibs_check_method=pass_all
6831   ;;
6832 esac
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6836 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6838 file_magic_glob=
6839 want_nocaseglob=no
6840 if test "$build" = "$host"; then
6841   case $host_os in
6842   mingw* | pw32*)
6843     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6844       want_nocaseglob=yes
6845     else
6846       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6847     fi
6848     ;;
6849   esac
6852 file_magic_cmd=$lt_cv_file_magic_cmd
6853 deplibs_check_method=$lt_cv_deplibs_check_method
6854 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6857     
6858     
6859     
6862     
6863     
6864     
6867     
6868     
6869     
6872     
6873     
6874     
6877 if test -n "$ac_tool_prefix"; then
6878   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6879 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6881 $as_echo_n "checking for $ac_word... " >&6; }
6882 if ${ac_cv_prog_DLLTOOL+:} false; then :
6883   $as_echo_n "(cached) " >&6
6884 else
6885   if test -n "$DLLTOOL"; then
6886   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6887 else
6888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6889 for as_dir in $PATH
6891   IFS=$as_save_IFS
6892   test -z "$as_dir" && as_dir=.
6893     for ac_exec_ext in '' $ac_executable_extensions; do
6894   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6895     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6896     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6897     break 2
6898   fi
6899 done
6900   done
6901 IFS=$as_save_IFS
6905 DLLTOOL=$ac_cv_prog_DLLTOOL
6906 if test -n "$DLLTOOL"; then
6907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6908 $as_echo "$DLLTOOL" >&6; }
6909 else
6910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6911 $as_echo "no" >&6; }
6916 if test -z "$ac_cv_prog_DLLTOOL"; then
6917   ac_ct_DLLTOOL=$DLLTOOL
6918   # Extract the first word of "dlltool", so it can be a program name with args.
6919 set dummy dlltool; ac_word=$2
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6921 $as_echo_n "checking for $ac_word... " >&6; }
6922 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6923   $as_echo_n "(cached) " >&6
6924 else
6925   if test -n "$ac_ct_DLLTOOL"; then
6926   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6927 else
6928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6929 for as_dir in $PATH
6931   IFS=$as_save_IFS
6932   test -z "$as_dir" && as_dir=.
6933     for ac_exec_ext in '' $ac_executable_extensions; do
6934   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6935     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6936     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6937     break 2
6938   fi
6939 done
6940   done
6941 IFS=$as_save_IFS
6945 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6946 if test -n "$ac_ct_DLLTOOL"; then
6947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6948 $as_echo "$ac_ct_DLLTOOL" >&6; }
6949 else
6950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6951 $as_echo "no" >&6; }
6954   if test "x$ac_ct_DLLTOOL" = x; then
6955     DLLTOOL="false"
6956   else
6957     case $cross_compiling:$ac_tool_warned in
6958 yes:)
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6960 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6961 ac_tool_warned=yes ;;
6962 esac
6963     DLLTOOL=$ac_ct_DLLTOOL
6964   fi
6965 else
6966   DLLTOOL="$ac_cv_prog_DLLTOOL"
6969 test -z "$DLLTOOL" && DLLTOOL=dlltool
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6978 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6979 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6980   $as_echo_n "(cached) " >&6
6981 else
6982   lt_cv_sharedlib_from_linklib_cmd='unknown'
6984 case $host_os in
6985 cygwin* | mingw* | pw32* | cegcc*)
6986   # two different shell functions defined in ltmain.sh
6987   # decide which to use based on capabilities of $DLLTOOL
6988   case `$DLLTOOL --help 2>&1` in
6989   *--identify-strict*)
6990     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6991     ;;
6992   *)
6993     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6994     ;;
6995   esac
6996   ;;
6998   # fallback: assume linklib IS sharedlib
6999   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7000   ;;
7001 esac
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7005 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7006 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7007 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7010     
7011     
7012     
7015 if test -n "$ac_tool_prefix"; then
7016   for ac_prog in ar
7017   do
7018     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7019 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7021 $as_echo_n "checking for $ac_word... " >&6; }
7022 if ${ac_cv_prog_AR+:} false; then :
7023   $as_echo_n "(cached) " >&6
7024 else
7025   if test -n "$AR"; then
7026   ac_cv_prog_AR="$AR" # Let the user override the test.
7027 else
7028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7029 for as_dir in $PATH
7031   IFS=$as_save_IFS
7032   test -z "$as_dir" && as_dir=.
7033     for ac_exec_ext in '' $ac_executable_extensions; do
7034   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7035     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7036     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7037     break 2
7038   fi
7039 done
7040   done
7041 IFS=$as_save_IFS
7045 AR=$ac_cv_prog_AR
7046 if test -n "$AR"; then
7047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7048 $as_echo "$AR" >&6; }
7049 else
7050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7051 $as_echo "no" >&6; }
7055     test -n "$AR" && break
7056   done
7058 if test -z "$AR"; then
7059   ac_ct_AR=$AR
7060   for ac_prog in ar
7062   # Extract the first word of "$ac_prog", so it can be a program name with args.
7063 set dummy $ac_prog; ac_word=$2
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7065 $as_echo_n "checking for $ac_word... " >&6; }
7066 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7067   $as_echo_n "(cached) " >&6
7068 else
7069   if test -n "$ac_ct_AR"; then
7070   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7071 else
7072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7073 for as_dir in $PATH
7075   IFS=$as_save_IFS
7076   test -z "$as_dir" && as_dir=.
7077     for ac_exec_ext in '' $ac_executable_extensions; do
7078   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7079     ac_cv_prog_ac_ct_AR="$ac_prog"
7080     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7081     break 2
7082   fi
7083 done
7084   done
7085 IFS=$as_save_IFS
7089 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7090 if test -n "$ac_ct_AR"; then
7091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7092 $as_echo "$ac_ct_AR" >&6; }
7093 else
7094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7095 $as_echo "no" >&6; }
7099   test -n "$ac_ct_AR" && break
7100 done
7102   if test "x$ac_ct_AR" = x; then
7103     AR="false"
7104   else
7105     case $cross_compiling:$ac_tool_warned in
7106 yes:)
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7108 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7109 ac_tool_warned=yes ;;
7110 esac
7111     AR=$ac_ct_AR
7112   fi
7115 : ${AR=ar}
7116 : ${AR_FLAGS=cru}
7118     
7119     
7120     
7123     
7124     
7125     
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7129 $as_echo_n "checking for archiver @FILE support... " >&6; }
7130 if ${lt_cv_ar_at_file+:} false; then :
7131   $as_echo_n "(cached) " >&6
7132 else
7133   lt_cv_ar_at_file=no
7134    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7135 /* end confdefs.h.  */
7138 main ()
7141   ;
7142   return 0;
7144 _ACEOF
7145 if ac_fn_c_try_compile "$LINENO"; then :
7146   echo conftest.$ac_objext > conftest.lst
7147       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7148       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7149   (eval $lt_ar_try) 2>&5
7150   ac_status=$?
7151   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7152   test $ac_status = 0; }
7153       if test "$ac_status" -eq 0; then
7154         # Ensure the archiver fails upon bogus file names.
7155         rm -f conftest.$ac_objext libconftest.a
7156         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7157   (eval $lt_ar_try) 2>&5
7158   ac_status=$?
7159   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7160   test $ac_status = 0; }
7161         if test "$ac_status" -ne 0; then
7162           lt_cv_ar_at_file=@
7163         fi
7164       fi
7165       rm -f conftest.* libconftest.a
7166      
7168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7169   
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7172 $as_echo "$lt_cv_ar_at_file" >&6; }
7174 if test "x$lt_cv_ar_at_file" = xno; then
7175   archiver_list_spec=
7176 else
7177   archiver_list_spec=$lt_cv_ar_at_file
7180     
7181     
7182     
7186 if test -n "$ac_tool_prefix"; then
7187   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7188 set dummy ${ac_tool_prefix}strip; ac_word=$2
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7190 $as_echo_n "checking for $ac_word... " >&6; }
7191 if ${ac_cv_prog_STRIP+:} false; then :
7192   $as_echo_n "(cached) " >&6
7193 else
7194   if test -n "$STRIP"; then
7195   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7196 else
7197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7198 for as_dir in $PATH
7200   IFS=$as_save_IFS
7201   test -z "$as_dir" && as_dir=.
7202     for ac_exec_ext in '' $ac_executable_extensions; do
7203   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7204     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7205     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7206     break 2
7207   fi
7208 done
7209   done
7210 IFS=$as_save_IFS
7214 STRIP=$ac_cv_prog_STRIP
7215 if test -n "$STRIP"; then
7216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7217 $as_echo "$STRIP" >&6; }
7218 else
7219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7220 $as_echo "no" >&6; }
7225 if test -z "$ac_cv_prog_STRIP"; then
7226   ac_ct_STRIP=$STRIP
7227   # Extract the first word of "strip", so it can be a program name with args.
7228 set dummy strip; ac_word=$2
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7230 $as_echo_n "checking for $ac_word... " >&6; }
7231 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7232   $as_echo_n "(cached) " >&6
7233 else
7234   if test -n "$ac_ct_STRIP"; then
7235   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7236 else
7237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7238 for as_dir in $PATH
7240   IFS=$as_save_IFS
7241   test -z "$as_dir" && as_dir=.
7242     for ac_exec_ext in '' $ac_executable_extensions; do
7243   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7244     ac_cv_prog_ac_ct_STRIP="strip"
7245     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7246     break 2
7247   fi
7248 done
7249   done
7250 IFS=$as_save_IFS
7254 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7255 if test -n "$ac_ct_STRIP"; then
7256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7257 $as_echo "$ac_ct_STRIP" >&6; }
7258 else
7259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7260 $as_echo "no" >&6; }
7263   if test "x$ac_ct_STRIP" = x; then
7264     STRIP=":"
7265   else
7266     case $cross_compiling:$ac_tool_warned in
7267 yes:)
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7269 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7270 ac_tool_warned=yes ;;
7271 esac
7272     STRIP=$ac_ct_STRIP
7273   fi
7274 else
7275   STRIP="$ac_cv_prog_STRIP"
7278 test -z "$STRIP" && STRIP=:
7280     
7281     
7282     
7285 if test -n "$ac_tool_prefix"; then
7286   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7287 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7289 $as_echo_n "checking for $ac_word... " >&6; }
7290 if ${ac_cv_prog_RANLIB+:} false; then :
7291   $as_echo_n "(cached) " >&6
7292 else
7293   if test -n "$RANLIB"; then
7294   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7295 else
7296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7297 for as_dir in $PATH
7299   IFS=$as_save_IFS
7300   test -z "$as_dir" && as_dir=.
7301     for ac_exec_ext in '' $ac_executable_extensions; do
7302   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7303     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7304     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7305     break 2
7306   fi
7307 done
7308   done
7309 IFS=$as_save_IFS
7313 RANLIB=$ac_cv_prog_RANLIB
7314 if test -n "$RANLIB"; then
7315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7316 $as_echo "$RANLIB" >&6; }
7317 else
7318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7319 $as_echo "no" >&6; }
7324 if test -z "$ac_cv_prog_RANLIB"; then
7325   ac_ct_RANLIB=$RANLIB
7326   # Extract the first word of "ranlib", so it can be a program name with args.
7327 set dummy ranlib; ac_word=$2
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7329 $as_echo_n "checking for $ac_word... " >&6; }
7330 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7331   $as_echo_n "(cached) " >&6
7332 else
7333   if test -n "$ac_ct_RANLIB"; then
7334   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7335 else
7336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7337 for as_dir in $PATH
7339   IFS=$as_save_IFS
7340   test -z "$as_dir" && as_dir=.
7341     for ac_exec_ext in '' $ac_executable_extensions; do
7342   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7343     ac_cv_prog_ac_ct_RANLIB="ranlib"
7344     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7345     break 2
7346   fi
7347 done
7348   done
7349 IFS=$as_save_IFS
7353 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7354 if test -n "$ac_ct_RANLIB"; then
7355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7356 $as_echo "$ac_ct_RANLIB" >&6; }
7357 else
7358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7359 $as_echo "no" >&6; }
7362   if test "x$ac_ct_RANLIB" = x; then
7363     RANLIB=":"
7364   else
7365     case $cross_compiling:$ac_tool_warned in
7366 yes:)
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7368 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7369 ac_tool_warned=yes ;;
7370 esac
7371     RANLIB=$ac_ct_RANLIB
7372   fi
7373 else
7374   RANLIB="$ac_cv_prog_RANLIB"
7377 test -z "$RANLIB" && RANLIB=:
7379     
7380     
7381     
7384 # Determine commands to create old-style static archives.
7385 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7386 old_postinstall_cmds='chmod 644 $oldlib'
7387 old_postuninstall_cmds=
7389 if test -n "$RANLIB"; then
7390   case $host_os in
7391   openbsd*)
7392     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7393     ;;
7394   *)
7395     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7396     ;;
7397   esac
7398   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7401 case $host_os in
7402   darwin*)
7403     lock_old_archive_extraction=yes ;;
7404   *)
7405     lock_old_archive_extraction=no ;;
7406 esac
7408     
7409     
7410     
7413     
7414     
7415     
7418     
7419     
7420     
7423     
7424     
7425     
7430     
7431     
7432     
7434     
7435     
7436     
7438     
7439     
7440     
7442     
7443     
7444     
7446 # If no C compiler was specified, use CC.
7447 LTCC=${LTCC-"$CC"}
7449 # If no C compiler flags were specified, use CFLAGS.
7450 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7452 # Allow CC to be a program name with arguments.
7453 compiler=$CC
7456 # Check for command to grab the raw symbol name followed by C symbol from nm.
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7458 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7459 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7460   $as_echo_n "(cached) " >&6
7461 else
7462   
7463 # These are sane defaults that work on at least a few old systems.
7464 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7466 # Character class describing NM global symbol codes.
7467 symcode='[BCDEGRST]'
7469 # Regexp to match symbols that can be accessed directly from C.
7470 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7472 # Define system-specific variables.
7473 case $host_os in
7474 aix*)
7475   symcode='[BCDT]'
7476   ;;
7477 cygwin* | mingw* | pw32* | cegcc*)
7478   symcode='[ABCDGISTW]'
7479   ;;
7480 hpux*)
7481   if test "$host_cpu" = ia64; then
7482     symcode='[ABCDEGRST]'
7483   fi
7484   ;;
7485 irix* | nonstopux*)
7486   symcode='[BCDEGRST]'
7487   ;;
7488 osf*)
7489   symcode='[BCDEGQRST]'
7490   ;;
7491 solaris*)
7492   symcode='[BDRT]'
7493   ;;
7494 sco3.2v5*)
7495   symcode='[DT]'
7496   ;;
7497 sysv4.2uw2*)
7498   symcode='[DT]'
7499   ;;
7500 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7501   symcode='[ABDT]'
7502   ;;
7503 sysv4)
7504   symcode='[DFNSTU]'
7505   ;;
7506 esac
7508 # If we're using GNU nm, then use its standard symbol codes.
7509 case `$NM -V 2>&1` in
7510 *GNU* | *'with BFD'*)
7511   symcode='[ABCDGIRSTW]' ;;
7512 esac
7514 # Transform an extracted symbol line into a proper C declaration.
7515 # Some systems (esp. on ia64) link data and code symbols differently,
7516 # so use this general approach.
7517 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7519 # Transform an extracted symbol line into symbol name and symbol address
7520 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7521 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
7523 # Handle CRLF in mingw tool chain
7524 opt_cr=
7525 case $build_os in
7526 mingw*)
7527   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7528   ;;
7529 esac
7531 # Try without a prefix underscore, then with it.
7532 for ac_symprfx in "" "_"; do
7534   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7535   symxfrm="\\1 $ac_symprfx\\2 \\2"
7537   # Write the raw and C identifiers.
7538   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7539     # Fake it for dumpbin and say T for any non-static function
7540     # and D for any global variable.
7541     # Also find C++ and __fastcall symbols from MSVC++,
7542     # which start with @ or ?.
7543     lt_cv_sys_global_symbol_pipe="$AWK '"\
7544 "     {last_section=section; section=\$ 3};"\
7545 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7546 "     \$ 0!~/External *\|/{next};"\
7547 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7548 "     {if(hide[section]) next};"\
7549 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7550 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7551 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7552 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7553 "     ' prfx=^$ac_symprfx"
7554   else
7555     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7556   fi
7557   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7559   # Check to see that the pipe works correctly.
7560   pipe_works=no
7562   rm -f conftest*
7563   cat > conftest.$ac_ext <<_LT_EOF
7564 #ifdef __cplusplus
7565 extern "C" {
7566 #endif
7567 char nm_test_var;
7568 void nm_test_func(void);
7569 void nm_test_func(void){}
7570 #ifdef __cplusplus
7572 #endif
7573 int main(){nm_test_var='a';nm_test_func();return(0);}
7574 _LT_EOF
7576   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7577   (eval $ac_compile) 2>&5
7578   ac_status=$?
7579   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7580   test $ac_status = 0; }; then
7581     # Now try to grab the symbols.
7582     nlist=conftest.nm
7583     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7584   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7585   ac_status=$?
7586   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7587   test $ac_status = 0; } && test -s "$nlist"; then
7588       # Try sorting and uniquifying the output.
7589       if sort "$nlist" | uniq > "$nlist"T; then
7590         mv -f "$nlist"T "$nlist"
7591       else
7592         rm -f "$nlist"T
7593       fi
7595       # Make sure that we snagged all the symbols we need.
7596       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7597         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7598           cat <<_LT_EOF > conftest.$ac_ext
7599 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7600 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7601 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7602    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7603 # define LT@&t@_DLSYM_CONST
7604 #elif defined(__osf__)
7605 /* This system does not cope well with relocations in const data.  */
7606 # define LT@&t@_DLSYM_CONST
7607 #else
7608 # define LT@&t@_DLSYM_CONST const
7609 #endif
7611 #ifdef __cplusplus
7612 extern "C" {
7613 #endif
7615 _LT_EOF
7616           # Now generate the symbol file.
7617           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7619           cat <<_LT_EOF >> conftest.$ac_ext
7621 /* The mapping between symbol names and symbols.  */
7622 LT@&t@_DLSYM_CONST struct {
7623   const char *name;
7624   void       *address;
7626 lt__PROGRAM__LTX_preloaded_symbols[] =
7628   { "@PROGRAM@", (void *) 0 },
7629 _LT_EOF
7630           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7631           cat <<\_LT_EOF >> conftest.$ac_ext
7632   {0, (void *) 0}
7635 /* This works around a problem in FreeBSD linker */
7636 #ifdef FREEBSD_WORKAROUND
7637 static const void *lt_preloaded_setup() {
7638   return lt__PROGRAM__LTX_preloaded_symbols;
7640 #endif
7642 #ifdef __cplusplus
7644 #endif
7645 _LT_EOF
7646           # Now try linking the two files.
7647           mv conftest.$ac_objext conftstm.$ac_objext
7648           lt_globsym_save_LIBS=$LIBS
7649           lt_globsym_save_CFLAGS=$CFLAGS
7650           LIBS="conftstm.$ac_objext"
7651           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7652           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7653   (eval $ac_link) 2>&5
7654   ac_status=$?
7655   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7656   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7657             pipe_works=yes
7658           fi
7659           LIBS=$lt_globsym_save_LIBS
7660           CFLAGS=$lt_globsym_save_CFLAGS
7661         else
7662           echo "cannot find nm_test_func in $nlist" >&5
7663         fi
7664       else
7665         echo "cannot find nm_test_var in $nlist" >&5
7666       fi
7667     else
7668       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7669     fi
7670   else
7671     echo "$progname: failed program was:" >&5
7672     cat conftest.$ac_ext >&5
7673   fi
7674   rm -rf conftest* conftst*
7676   # Do not use the global_symbol_pipe unless it works.
7677   if test "$pipe_works" = yes; then
7678     break
7679   else
7680     lt_cv_sys_global_symbol_pipe=
7681   fi
7682 done
7686 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7687   lt_cv_sys_global_symbol_to_cdecl=
7689 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7691 $as_echo "failed" >&6; }
7692 else
7693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7694 $as_echo "ok" >&6; }
7697 # Response file support.
7698 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7699   nm_file_list_spec='@'
7700 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7701   nm_file_list_spec='@'
7705     
7706     
7707     
7710     
7711     
7712     
7715     
7716     
7717     
7720     
7721     
7722     
7725     
7726     
7727     
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7731 $as_echo_n "checking for sysroot... " >&6; }
7733 @%:@ Check whether --with-sysroot was given.
7734 if test "${with_sysroot+set}" = set; then :
7735   withval=$with_sysroot; 
7736 else
7737   with_sysroot=no
7741 lt_sysroot=
7742 case ${with_sysroot} in #(
7743  yes)
7744    if test "$GCC" = yes; then
7745      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7746    fi
7747    ;; #(
7748  /*)
7749    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7750    ;; #(
7751  no|'')
7752    ;; #(
7753  *)
7754    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7755 $as_echo "${with_sysroot}" >&6; }
7756    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7757    ;;
7758 esac
7760  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7761 $as_echo "${lt_sysroot:-no}" >&6; }
7763     
7764     
7765     
7767 @%:@ Check whether --enable-libtool-lock was given.
7768 if test "${enable_libtool_lock+set}" = set; then :
7769   enableval=$enable_libtool_lock; 
7772 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7774 # Some flags need to be propagated to the compiler or linker for good
7775 # libtool support.
7776 case $host in
7777 ia64-*-hpux*)
7778   # Find out which ABI we are using.
7779   echo 'int i;' > conftest.$ac_ext
7780   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7781   (eval $ac_compile) 2>&5
7782   ac_status=$?
7783   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7784   test $ac_status = 0; }; then
7785     case `/usr/bin/file conftest.$ac_objext` in
7786       *ELF-32*)
7787         HPUX_IA64_MODE="32"
7788         ;;
7789       *ELF-64*)
7790         HPUX_IA64_MODE="64"
7791         ;;
7792     esac
7793   fi
7794   rm -rf conftest*
7795   ;;
7796 *-*-irix6*)
7797   # Find out which ABI we are using.
7798   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7799   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7800   (eval $ac_compile) 2>&5
7801   ac_status=$?
7802   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7803   test $ac_status = 0; }; then
7804     if test "$lt_cv_prog_gnu_ld" = yes; then
7805       case `/usr/bin/file conftest.$ac_objext` in
7806         *32-bit*)
7807           LD="${LD-ld} -melf32bsmip"
7808           ;;
7809         *N32*)
7810           LD="${LD-ld} -melf32bmipn32"
7811           ;;
7812         *64-bit*)
7813           LD="${LD-ld} -melf64bmip"
7814         ;;
7815       esac
7816     else
7817       case `/usr/bin/file conftest.$ac_objext` in
7818         *32-bit*)
7819           LD="${LD-ld} -32"
7820           ;;
7821         *N32*)
7822           LD="${LD-ld} -n32"
7823           ;;
7824         *64-bit*)
7825           LD="${LD-ld} -64"
7826           ;;
7827       esac
7828     fi
7829   fi
7830   rm -rf conftest*
7831   ;;
7833 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7834 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7835   # Find out which ABI we are using.
7836   echo 'int i;' > conftest.$ac_ext
7837   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7838   (eval $ac_compile) 2>&5
7839   ac_status=$?
7840   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7841   test $ac_status = 0; }; then
7842     case `/usr/bin/file conftest.o` in
7843       *32-bit*)
7844         case $host in
7845           x86_64-*kfreebsd*-gnu)
7846             LD="${LD-ld} -m elf_i386_fbsd"
7847             ;;
7848           x86_64-*linux*)
7849             LD="${LD-ld} -m elf_i386"
7850             ;;
7851           ppc64-*linux*|powerpc64-*linux*)
7852             LD="${LD-ld} -m elf32ppclinux"
7853             ;;
7854           s390x-*linux*)
7855             LD="${LD-ld} -m elf_s390"
7856             ;;
7857           sparc64-*linux*)
7858             LD="${LD-ld} -m elf32_sparc"
7859             ;;
7860         esac
7861         ;;
7862       *64-bit*)
7863         case $host in
7864           x86_64-*kfreebsd*-gnu)
7865             LD="${LD-ld} -m elf_x86_64_fbsd"
7866             ;;
7867           x86_64-*linux*)
7868             LD="${LD-ld} -m elf_x86_64"
7869             ;;
7870           ppc*-*linux*|powerpc*-*linux*)
7871             LD="${LD-ld} -m elf64ppc"
7872             ;;
7873           s390*-*linux*|s390*-*tpf*)
7874             LD="${LD-ld} -m elf64_s390"
7875             ;;
7876           sparc*-*linux*)
7877             LD="${LD-ld} -m elf64_sparc"
7878             ;;
7879         esac
7880         ;;
7881     esac
7882   fi
7883   rm -rf conftest*
7884   ;;
7886 *-*-sco3.2v5*)
7887   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7888   SAVE_CFLAGS="$CFLAGS"
7889   CFLAGS="$CFLAGS -belf"
7890   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7891 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7892 if ${lt_cv_cc_needs_belf+:} false; then :
7893   $as_echo_n "(cached) " >&6
7894 else
7895   ac_ext=c
7896 ac_cpp='$CPP $CPPFLAGS'
7897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7901      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7902 /* end confdefs.h.  */
7905 main ()
7908   ;
7909   return 0;
7911 _ACEOF
7912 if ac_fn_c_try_link "$LINENO"; then :
7913   lt_cv_cc_needs_belf=yes
7914 else
7915   lt_cv_cc_needs_belf=no
7917 rm -f core conftest.err conftest.$ac_objext \
7918     conftest$ac_exeext conftest.$ac_ext
7919      ac_ext=c
7920 ac_cpp='$CPP $CPPFLAGS'
7921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7927 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7928   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7929     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7930     CFLAGS="$SAVE_CFLAGS"
7931   fi
7932   ;;
7933 sparc*-*solaris*)
7934   # Find out which ABI we are using.
7935   echo 'int i;' > conftest.$ac_ext
7936   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7937   (eval $ac_compile) 2>&5
7938   ac_status=$?
7939   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7940   test $ac_status = 0; }; then
7941     case `/usr/bin/file conftest.o` in
7942     *64-bit*)
7943       case $lt_cv_prog_gnu_ld in
7944       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7945       *)
7946         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7947           LD="${LD-ld} -64"
7948         fi
7949         ;;
7950       esac
7951       ;;
7952     esac
7953   fi
7954   rm -rf conftest*
7955   ;;
7956 esac
7958 need_locks="$enable_libtool_lock"
7960 if test -n "$ac_tool_prefix"; then
7961   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7962 set dummy ${ac_tool_prefix}mt; ac_word=$2
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7964 $as_echo_n "checking for $ac_word... " >&6; }
7965 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7966   $as_echo_n "(cached) " >&6
7967 else
7968   if test -n "$MANIFEST_TOOL"; then
7969   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7970 else
7971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7972 for as_dir in $PATH
7974   IFS=$as_save_IFS
7975   test -z "$as_dir" && as_dir=.
7976     for ac_exec_ext in '' $ac_executable_extensions; do
7977   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7978     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7979     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7980     break 2
7981   fi
7982 done
7983   done
7984 IFS=$as_save_IFS
7988 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7989 if test -n "$MANIFEST_TOOL"; then
7990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7991 $as_echo "$MANIFEST_TOOL" >&6; }
7992 else
7993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7994 $as_echo "no" >&6; }
7999 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8000   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8001   # Extract the first word of "mt", so it can be a program name with args.
8002 set dummy mt; ac_word=$2
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8004 $as_echo_n "checking for $ac_word... " >&6; }
8005 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8006   $as_echo_n "(cached) " >&6
8007 else
8008   if test -n "$ac_ct_MANIFEST_TOOL"; then
8009   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8010 else
8011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8012 for as_dir in $PATH
8014   IFS=$as_save_IFS
8015   test -z "$as_dir" && as_dir=.
8016     for ac_exec_ext in '' $ac_executable_extensions; do
8017   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8018     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8019     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8020     break 2
8021   fi
8022 done
8023   done
8024 IFS=$as_save_IFS
8028 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8029 if test -n "$ac_ct_MANIFEST_TOOL"; then
8030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8031 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8032 else
8033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8034 $as_echo "no" >&6; }
8037   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8038     MANIFEST_TOOL=":"
8039   else
8040     case $cross_compiling:$ac_tool_warned in
8041 yes:)
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8043 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8044 ac_tool_warned=yes ;;
8045 esac
8046     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8047   fi
8048 else
8049   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8052 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8054 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8055 if ${lt_cv_path_mainfest_tool+:} false; then :
8056   $as_echo_n "(cached) " >&6
8057 else
8058   lt_cv_path_mainfest_tool=no
8059   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8060   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8061   cat conftest.err >&5
8062   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8063     lt_cv_path_mainfest_tool=yes
8064   fi
8065   rm -f conftest*
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8068 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8069 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8070   MANIFEST_TOOL=:
8073     
8074     
8075     
8078   case $host_os in
8079     rhapsody* | darwin*)
8080     if test -n "$ac_tool_prefix"; then
8081   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8082 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8084 $as_echo_n "checking for $ac_word... " >&6; }
8085 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8086   $as_echo_n "(cached) " >&6
8087 else
8088   if test -n "$DSYMUTIL"; then
8089   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8090 else
8091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8092 for as_dir in $PATH
8094   IFS=$as_save_IFS
8095   test -z "$as_dir" && as_dir=.
8096     for ac_exec_ext in '' $ac_executable_extensions; do
8097   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8098     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8099     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8100     break 2
8101   fi
8102 done
8103   done
8104 IFS=$as_save_IFS
8108 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8109 if test -n "$DSYMUTIL"; then
8110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8111 $as_echo "$DSYMUTIL" >&6; }
8112 else
8113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8114 $as_echo "no" >&6; }
8119 if test -z "$ac_cv_prog_DSYMUTIL"; then
8120   ac_ct_DSYMUTIL=$DSYMUTIL
8121   # Extract the first word of "dsymutil", so it can be a program name with args.
8122 set dummy dsymutil; ac_word=$2
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8124 $as_echo_n "checking for $ac_word... " >&6; }
8125 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8126   $as_echo_n "(cached) " >&6
8127 else
8128   if test -n "$ac_ct_DSYMUTIL"; then
8129   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8130 else
8131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8132 for as_dir in $PATH
8134   IFS=$as_save_IFS
8135   test -z "$as_dir" && as_dir=.
8136     for ac_exec_ext in '' $ac_executable_extensions; do
8137   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8138     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8139     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8140     break 2
8141   fi
8142 done
8143   done
8144 IFS=$as_save_IFS
8148 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8149 if test -n "$ac_ct_DSYMUTIL"; then
8150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8151 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8152 else
8153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8154 $as_echo "no" >&6; }
8157   if test "x$ac_ct_DSYMUTIL" = x; then
8158     DSYMUTIL=":"
8159   else
8160     case $cross_compiling:$ac_tool_warned in
8161 yes:)
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8163 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8164 ac_tool_warned=yes ;;
8165 esac
8166     DSYMUTIL=$ac_ct_DSYMUTIL
8167   fi
8168 else
8169   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8172     if test -n "$ac_tool_prefix"; then
8173   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8174 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8176 $as_echo_n "checking for $ac_word... " >&6; }
8177 if ${ac_cv_prog_NMEDIT+:} false; then :
8178   $as_echo_n "(cached) " >&6
8179 else
8180   if test -n "$NMEDIT"; then
8181   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8182 else
8183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8184 for as_dir in $PATH
8186   IFS=$as_save_IFS
8187   test -z "$as_dir" && as_dir=.
8188     for ac_exec_ext in '' $ac_executable_extensions; do
8189   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8190     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8191     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8192     break 2
8193   fi
8194 done
8195   done
8196 IFS=$as_save_IFS
8200 NMEDIT=$ac_cv_prog_NMEDIT
8201 if test -n "$NMEDIT"; then
8202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8203 $as_echo "$NMEDIT" >&6; }
8204 else
8205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8206 $as_echo "no" >&6; }
8211 if test -z "$ac_cv_prog_NMEDIT"; then
8212   ac_ct_NMEDIT=$NMEDIT
8213   # Extract the first word of "nmedit", so it can be a program name with args.
8214 set dummy nmedit; ac_word=$2
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8216 $as_echo_n "checking for $ac_word... " >&6; }
8217 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8218   $as_echo_n "(cached) " >&6
8219 else
8220   if test -n "$ac_ct_NMEDIT"; then
8221   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8222 else
8223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8224 for as_dir in $PATH
8226   IFS=$as_save_IFS
8227   test -z "$as_dir" && as_dir=.
8228     for ac_exec_ext in '' $ac_executable_extensions; do
8229   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8230     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8231     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8232     break 2
8233   fi
8234 done
8235   done
8236 IFS=$as_save_IFS
8240 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8241 if test -n "$ac_ct_NMEDIT"; then
8242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8243 $as_echo "$ac_ct_NMEDIT" >&6; }
8244 else
8245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8246 $as_echo "no" >&6; }
8249   if test "x$ac_ct_NMEDIT" = x; then
8250     NMEDIT=":"
8251   else
8252     case $cross_compiling:$ac_tool_warned in
8253 yes:)
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8255 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8256 ac_tool_warned=yes ;;
8257 esac
8258     NMEDIT=$ac_ct_NMEDIT
8259   fi
8260 else
8261   NMEDIT="$ac_cv_prog_NMEDIT"
8264     if test -n "$ac_tool_prefix"; then
8265   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8266 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8268 $as_echo_n "checking for $ac_word... " >&6; }
8269 if ${ac_cv_prog_LIPO+:} false; then :
8270   $as_echo_n "(cached) " >&6
8271 else
8272   if test -n "$LIPO"; then
8273   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8274 else
8275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8276 for as_dir in $PATH
8278   IFS=$as_save_IFS
8279   test -z "$as_dir" && as_dir=.
8280     for ac_exec_ext in '' $ac_executable_extensions; do
8281   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8282     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8283     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8284     break 2
8285   fi
8286 done
8287   done
8288 IFS=$as_save_IFS
8292 LIPO=$ac_cv_prog_LIPO
8293 if test -n "$LIPO"; then
8294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8295 $as_echo "$LIPO" >&6; }
8296 else
8297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8298 $as_echo "no" >&6; }
8303 if test -z "$ac_cv_prog_LIPO"; then
8304   ac_ct_LIPO=$LIPO
8305   # Extract the first word of "lipo", so it can be a program name with args.
8306 set dummy lipo; ac_word=$2
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8308 $as_echo_n "checking for $ac_word... " >&6; }
8309 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8310   $as_echo_n "(cached) " >&6
8311 else
8312   if test -n "$ac_ct_LIPO"; then
8313   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8314 else
8315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8316 for as_dir in $PATH
8318   IFS=$as_save_IFS
8319   test -z "$as_dir" && as_dir=.
8320     for ac_exec_ext in '' $ac_executable_extensions; do
8321   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8322     ac_cv_prog_ac_ct_LIPO="lipo"
8323     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8324     break 2
8325   fi
8326 done
8327   done
8328 IFS=$as_save_IFS
8332 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8333 if test -n "$ac_ct_LIPO"; then
8334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8335 $as_echo "$ac_ct_LIPO" >&6; }
8336 else
8337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8338 $as_echo "no" >&6; }
8341   if test "x$ac_ct_LIPO" = x; then
8342     LIPO=":"
8343   else
8344     case $cross_compiling:$ac_tool_warned in
8345 yes:)
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8347 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8348 ac_tool_warned=yes ;;
8349 esac
8350     LIPO=$ac_ct_LIPO
8351   fi
8352 else
8353   LIPO="$ac_cv_prog_LIPO"
8356     if test -n "$ac_tool_prefix"; then
8357   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8358 set dummy ${ac_tool_prefix}otool; ac_word=$2
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8360 $as_echo_n "checking for $ac_word... " >&6; }
8361 if ${ac_cv_prog_OTOOL+:} false; then :
8362   $as_echo_n "(cached) " >&6
8363 else
8364   if test -n "$OTOOL"; then
8365   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8366 else
8367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8368 for as_dir in $PATH
8370   IFS=$as_save_IFS
8371   test -z "$as_dir" && as_dir=.
8372     for ac_exec_ext in '' $ac_executable_extensions; do
8373   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8374     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8375     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8376     break 2
8377   fi
8378 done
8379   done
8380 IFS=$as_save_IFS
8384 OTOOL=$ac_cv_prog_OTOOL
8385 if test -n "$OTOOL"; then
8386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8387 $as_echo "$OTOOL" >&6; }
8388 else
8389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8390 $as_echo "no" >&6; }
8395 if test -z "$ac_cv_prog_OTOOL"; then
8396   ac_ct_OTOOL=$OTOOL
8397   # Extract the first word of "otool", so it can be a program name with args.
8398 set dummy otool; ac_word=$2
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8400 $as_echo_n "checking for $ac_word... " >&6; }
8401 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8402   $as_echo_n "(cached) " >&6
8403 else
8404   if test -n "$ac_ct_OTOOL"; then
8405   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8406 else
8407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8408 for as_dir in $PATH
8410   IFS=$as_save_IFS
8411   test -z "$as_dir" && as_dir=.
8412     for ac_exec_ext in '' $ac_executable_extensions; do
8413   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8414     ac_cv_prog_ac_ct_OTOOL="otool"
8415     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8416     break 2
8417   fi
8418 done
8419   done
8420 IFS=$as_save_IFS
8424 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8425 if test -n "$ac_ct_OTOOL"; then
8426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8427 $as_echo "$ac_ct_OTOOL" >&6; }
8428 else
8429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8430 $as_echo "no" >&6; }
8433   if test "x$ac_ct_OTOOL" = x; then
8434     OTOOL=":"
8435   else
8436     case $cross_compiling:$ac_tool_warned in
8437 yes:)
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8439 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8440 ac_tool_warned=yes ;;
8441 esac
8442     OTOOL=$ac_ct_OTOOL
8443   fi
8444 else
8445   OTOOL="$ac_cv_prog_OTOOL"
8448     if test -n "$ac_tool_prefix"; then
8449   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8450 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8452 $as_echo_n "checking for $ac_word... " >&6; }
8453 if ${ac_cv_prog_OTOOL64+:} false; then :
8454   $as_echo_n "(cached) " >&6
8455 else
8456   if test -n "$OTOOL64"; then
8457   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8458 else
8459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8460 for as_dir in $PATH
8462   IFS=$as_save_IFS
8463   test -z "$as_dir" && as_dir=.
8464     for ac_exec_ext in '' $ac_executable_extensions; do
8465   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8466     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8467     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8468     break 2
8469   fi
8470 done
8471   done
8472 IFS=$as_save_IFS
8476 OTOOL64=$ac_cv_prog_OTOOL64
8477 if test -n "$OTOOL64"; then
8478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8479 $as_echo "$OTOOL64" >&6; }
8480 else
8481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8482 $as_echo "no" >&6; }
8487 if test -z "$ac_cv_prog_OTOOL64"; then
8488   ac_ct_OTOOL64=$OTOOL64
8489   # Extract the first word of "otool64", so it can be a program name with args.
8490 set dummy otool64; ac_word=$2
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8492 $as_echo_n "checking for $ac_word... " >&6; }
8493 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8494   $as_echo_n "(cached) " >&6
8495 else
8496   if test -n "$ac_ct_OTOOL64"; then
8497   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8498 else
8499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8500 for as_dir in $PATH
8502   IFS=$as_save_IFS
8503   test -z "$as_dir" && as_dir=.
8504     for ac_exec_ext in '' $ac_executable_extensions; do
8505   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8506     ac_cv_prog_ac_ct_OTOOL64="otool64"
8507     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8508     break 2
8509   fi
8510 done
8511   done
8512 IFS=$as_save_IFS
8516 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8517 if test -n "$ac_ct_OTOOL64"; then
8518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8519 $as_echo "$ac_ct_OTOOL64" >&6; }
8520 else
8521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8522 $as_echo "no" >&6; }
8525   if test "x$ac_ct_OTOOL64" = x; then
8526     OTOOL64=":"
8527   else
8528     case $cross_compiling:$ac_tool_warned in
8529 yes:)
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8531 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8532 ac_tool_warned=yes ;;
8533 esac
8534     OTOOL64=$ac_ct_OTOOL64
8535   fi
8536 else
8537   OTOOL64="$ac_cv_prog_OTOOL64"
8540     
8541     
8542     
8543     
8545     
8546     
8547     
8548     
8550     
8551     
8552     
8553     
8555     
8556     
8557     
8558     
8560     
8561     
8562     
8563     
8566     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8567 $as_echo_n "checking for -single_module linker flag... " >&6; }
8568 if ${lt_cv_apple_cc_single_mod+:} false; then :
8569   $as_echo_n "(cached) " >&6
8570 else
8571   lt_cv_apple_cc_single_mod=no
8572       if test -z "${LT_MULTI_MODULE}"; then
8573         # By default we will add the -single_module flag. You can override
8574         # by either setting the environment variable LT_MULTI_MODULE
8575         # non-empty at configure time, or by adding -multi_module to the
8576         # link flags.
8577         rm -rf libconftest.dylib*
8578         echo "int foo(void){return 1;}" > conftest.c
8579         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8580 -dynamiclib -Wl,-single_module conftest.c" >&5
8581         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8582           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8583         _lt_result=$?
8584         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8585           lt_cv_apple_cc_single_mod=yes
8586         else
8587           cat conftest.err >&5
8588         fi
8589         rm -rf libconftest.dylib*
8590         rm -f conftest.*
8591       fi
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8594 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8595     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8596 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8597 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8598   $as_echo_n "(cached) " >&6
8599 else
8600   lt_cv_ld_exported_symbols_list=no
8601       save_LDFLAGS=$LDFLAGS
8602       echo "_main" > conftest.sym
8603       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8604       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8605 /* end confdefs.h.  */
8608 main ()
8611   ;
8612   return 0;
8614 _ACEOF
8615 if ac_fn_c_try_link "$LINENO"; then :
8616   lt_cv_ld_exported_symbols_list=yes
8617 else
8618   lt_cv_ld_exported_symbols_list=no
8620 rm -f core conftest.err conftest.$ac_objext \
8621     conftest$ac_exeext conftest.$ac_ext
8622         LDFLAGS="$save_LDFLAGS"
8623     
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8626 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8627     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8628 $as_echo_n "checking for -force_load linker flag... " >&6; }
8629 if ${lt_cv_ld_force_load+:} false; then :
8630   $as_echo_n "(cached) " >&6
8631 else
8632   lt_cv_ld_force_load=no
8633       cat > conftest.c << _LT_EOF
8634 int forced_loaded() { return 2;}
8635 _LT_EOF
8636       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8637       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8638       echo "$AR cru libconftest.a conftest.o" >&5
8639       $AR cru libconftest.a conftest.o 2>&5
8640       echo "$RANLIB libconftest.a" >&5
8641       $RANLIB libconftest.a 2>&5
8642       cat > conftest.c << _LT_EOF
8643 int main() { return 0;}
8644 _LT_EOF
8645       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8646       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8647       _lt_result=$?
8648       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8649         lt_cv_ld_force_load=yes
8650       else
8651         cat conftest.err >&5
8652       fi
8653         rm -f conftest.err libconftest.a conftest conftest.c
8654         rm -rf conftest.dSYM
8655     
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8658 $as_echo "$lt_cv_ld_force_load" >&6; }
8659     case $host_os in
8660     rhapsody* | darwin1.[012])
8661       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8662     darwin1.*)
8663       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8664     darwin*) # darwin 5.x on
8665       # if running on 10.5 or later, the deployment target defaults
8666       # to the OS version, if on x86, and 10.4, the deployment
8667       # target defaults to 10.4. Don't you love it?
8668       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8669         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8670           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8671         10.[012]*)
8672           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8673         10.*)
8674           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8675       esac
8676     ;;
8677   esac
8678     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8679       _lt_dar_single_mod='$single_module'
8680     fi
8681     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8682       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8683     else
8684       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8685     fi
8686     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8687       _lt_dsymutil='~$DSYMUTIL $lib || :'
8688     else
8689       _lt_dsymutil=
8690     fi
8691     ;;
8692   esac
8694 for ac_header in dlfcn.h
8695 do :
8696   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8698 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8699   cat >>confdefs.h <<_ACEOF
8700 @%:@define HAVE_DLFCN_H 1
8701 _ACEOF
8705 done
8709 func_stripname_cnf ()
8711   case ${2} in
8712   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8713   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8714   esac
8715 } # func_stripname_cnf
8721 # Set options
8725         enable_dlopen=no
8726   
8728   
8729             @%:@ Check whether --enable-shared was given.
8730 if test "${enable_shared+set}" = set; then :
8731   enableval=$enable_shared; p=${PACKAGE-default}
8732     case $enableval in
8733     yes) enable_shared=yes ;;
8734     no) enable_shared=no ;;
8735     *)
8736       enable_shared=no
8737       # Look at the argument we got.  We use all the common list separators.
8738       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8739       for pkg in $enableval; do
8740         IFS="$lt_save_ifs"
8741         if test "X$pkg" = "X$p"; then
8742           enable_shared=yes
8743         fi
8744       done
8745       IFS="$lt_save_ifs"
8746       ;;
8747     esac
8748 else
8749   enable_shared=yes
8753     
8754     
8755     
8756     
8760   @%:@ Check whether --enable-static was given.
8761 if test "${enable_static+set}" = set; then :
8762   enableval=$enable_static; p=${PACKAGE-default}
8763     case $enableval in
8764     yes) enable_static=yes ;;
8765     no) enable_static=no ;;
8766     *)
8767      enable_static=no
8768       # Look at the argument we got.  We use all the common list separators.
8769       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8770       for pkg in $enableval; do
8771         IFS="$lt_save_ifs"
8772         if test "X$pkg" = "X$p"; then
8773           enable_static=yes
8774         fi
8775       done
8776       IFS="$lt_save_ifs"
8777       ;;
8778     esac
8779 else
8780   enable_static=yes
8784     
8785     
8786     
8787     
8791   
8792 @%:@ Check whether --with-pic was given.
8793 if test "${with_pic+set}" = set; then :
8794   withval=$with_pic; pic_mode="$withval"
8795 else
8796   pic_mode=default
8800 test -z "$pic_mode" && pic_mode=default
8803     
8804     
8805     
8808   @%:@ Check whether --enable-fast-install was given.
8809 if test "${enable_fast_install+set}" = set; then :
8810   enableval=$enable_fast_install; p=${PACKAGE-default}
8811     case $enableval in
8812     yes) enable_fast_install=yes ;;
8813     no) enable_fast_install=no ;;
8814     *)
8815       enable_fast_install=no
8816       # Look at the argument we got.  We use all the common list separators.
8817       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8818       for pkg in $enableval; do
8819         IFS="$lt_save_ifs"
8820         if test "X$pkg" = "X$p"; then
8821           enable_fast_install=yes
8822         fi
8823       done
8824       IFS="$lt_save_ifs"
8825       ;;
8826     esac
8827 else
8828   enable_fast_install=yes
8833     
8834     
8835     
8838   
8841 # This can be used to rebuild libtool when needed
8842 LIBTOOL_DEPS="$ltmain"
8844 # Always use our own libtool.
8845 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8849     
8850     
8851     
8853     
8854     
8855     
8857     
8858     
8859     
8861     
8862     
8863     
8865     
8866     
8867     
8869     
8870     
8871     
8872 test -z "$LN_S" && LN_S="ln -s"
8874     
8875     
8876     
8878     
8879     
8880     
8882     
8883     
8884     
8887 if test -n "${ZSH_VERSION+set}" ; then
8888    setopt NO_GLOB_SUBST
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8892 $as_echo_n "checking for objdir... " >&6; }
8893 if ${lt_cv_objdir+:} false; then :
8894   $as_echo_n "(cached) " >&6
8895 else
8896   rm -f .libs 2>/dev/null
8897 mkdir .libs 2>/dev/null
8898 if test -d .libs; then
8899   lt_cv_objdir=.libs
8900 else
8901   # MS-DOS does not allow filenames that begin with a dot.
8902   lt_cv_objdir=_libs
8904 rmdir .libs 2>/dev/null
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8907 $as_echo "$lt_cv_objdir" >&6; }
8908 objdir=$lt_cv_objdir
8910     
8911     
8912     
8914 cat >>confdefs.h <<_ACEOF
8915 @%:@define LT_OBJDIR "$lt_cv_objdir/"
8916 _ACEOF
8921 case $host_os in
8922 aix3*)
8923   # AIX sometimes has problems with the GCC collect2 program.  For some
8924   # reason, if we set the COLLECT_NAMES environment variable, the problems
8925   # vanish in a puff of smoke.
8926   if test "X${COLLECT_NAMES+set}" != Xset; then
8927     COLLECT_NAMES=
8928     export COLLECT_NAMES
8929   fi
8930   ;;
8931 esac
8933 # Global variables:
8934 ofile=libtool
8935 can_build_shared=yes
8937 # All known linkers require a `.a' archive for static linking (except MSVC,
8938 # which needs '.lib').
8939 libext=a
8941 with_gnu_ld="$lt_cv_prog_gnu_ld"
8943 old_CC="$CC"
8944 old_CFLAGS="$CFLAGS"
8946 # Set sane defaults for various variables
8947 test -z "$CC" && CC=cc
8948 test -z "$LTCC" && LTCC=$CC
8949 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8950 test -z "$LD" && LD=ld
8951 test -z "$ac_objext" && ac_objext=o
8953 for cc_temp in $compiler""; do
8954   case $cc_temp in
8955     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8956     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8957     \-*) ;;
8958     *) break;;
8959   esac
8960 done
8961 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8964 # Only perform the check for file, if the check method requires it
8965 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8966 case $deplibs_check_method in
8967 file_magic*)
8968   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8969     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8970 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8971 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8972   $as_echo_n "(cached) " >&6
8973 else
8974   case $MAGIC_CMD in
8975 [\\/*] |  ?:[\\/]*)
8976   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8977   ;;
8979   lt_save_MAGIC_CMD="$MAGIC_CMD"
8980   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8981   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8982   for ac_dir in $ac_dummy; do
8983     IFS="$lt_save_ifs"
8984     test -z "$ac_dir" && ac_dir=.
8985     if test -f $ac_dir/${ac_tool_prefix}file; then
8986       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8987       if test -n "$file_magic_test_file"; then
8988         case $deplibs_check_method in
8989         "file_magic "*)
8990           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8991           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8992           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8993             $EGREP "$file_magic_regex" > /dev/null; then
8994             :
8995           else
8996             cat <<_LT_EOF 1>&2
8998 *** Warning: the command libtool uses to detect shared libraries,
8999 *** $file_magic_cmd, produces output that libtool cannot recognize.
9000 *** The result is that libtool may fail to recognize shared libraries
9001 *** as such.  This will affect the creation of libtool libraries that
9002 *** depend on shared libraries, but programs linked with such libtool
9003 *** libraries will work regardless of this problem.  Nevertheless, you
9004 *** may want to report the problem to your system manager and/or to
9005 *** bug-libtool@gnu.org
9007 _LT_EOF
9008           fi ;;
9009         esac
9010       fi
9011       break
9012     fi
9013   done
9014   IFS="$lt_save_ifs"
9015   MAGIC_CMD="$lt_save_MAGIC_CMD"
9016   ;;
9017 esac
9020 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9021 if test -n "$MAGIC_CMD"; then
9022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9023 $as_echo "$MAGIC_CMD" >&6; }
9024 else
9025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9026 $as_echo "no" >&6; }
9029     
9030     
9031     
9033 if test -z "$lt_cv_path_MAGIC_CMD"; then
9034   if test -n "$ac_tool_prefix"; then
9035     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9036 $as_echo_n "checking for file... " >&6; }
9037 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9038   $as_echo_n "(cached) " >&6
9039 else
9040   case $MAGIC_CMD in
9041 [\\/*] |  ?:[\\/]*)
9042   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9043   ;;
9045   lt_save_MAGIC_CMD="$MAGIC_CMD"
9046   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9047   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9048   for ac_dir in $ac_dummy; do
9049     IFS="$lt_save_ifs"
9050     test -z "$ac_dir" && ac_dir=.
9051     if test -f $ac_dir/file; then
9052       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9053       if test -n "$file_magic_test_file"; then
9054         case $deplibs_check_method in
9055         "file_magic "*)
9056           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9057           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9058           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9059             $EGREP "$file_magic_regex" > /dev/null; then
9060             :
9061           else
9062             cat <<_LT_EOF 1>&2
9064 *** Warning: the command libtool uses to detect shared libraries,
9065 *** $file_magic_cmd, produces output that libtool cannot recognize.
9066 *** The result is that libtool may fail to recognize shared libraries
9067 *** as such.  This will affect the creation of libtool libraries that
9068 *** depend on shared libraries, but programs linked with such libtool
9069 *** libraries will work regardless of this problem.  Nevertheless, you
9070 *** may want to report the problem to your system manager and/or to
9071 *** bug-libtool@gnu.org
9073 _LT_EOF
9074           fi ;;
9075         esac
9076       fi
9077       break
9078     fi
9079   done
9080   IFS="$lt_save_ifs"
9081   MAGIC_CMD="$lt_save_MAGIC_CMD"
9082   ;;
9083 esac
9086 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9087 if test -n "$MAGIC_CMD"; then
9088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9089 $as_echo "$MAGIC_CMD" >&6; }
9090 else
9091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9092 $as_echo "no" >&6; }
9096   else
9097     MAGIC_CMD=:
9098   fi
9101   fi
9102   ;;
9103 esac
9105 # Use C for the default configuration in the libtool script
9107 lt_save_CC="$CC"
9108 ac_ext=c
9109 ac_cpp='$CPP $CPPFLAGS'
9110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9115 # Source file extension for C test sources.
9116 ac_ext=c
9118 # Object file extension for compiled C test sources.
9119 objext=o
9120 objext=$objext
9122 # Code to be used in simple compile tests
9123 lt_simple_compile_test_code="int some_variable = 0;"
9125 # Code to be used in simple link tests
9126 lt_simple_link_test_code='int main(){return(0);}'
9134 # If no C compiler was specified, use CC.
9135 LTCC=${LTCC-"$CC"}
9137 # If no C compiler flags were specified, use CFLAGS.
9138 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9140 # Allow CC to be a program name with arguments.
9141 compiler=$CC
9143 # Save the default compiler, since it gets overwritten when the other
9144 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9145 compiler_DEFAULT=$CC
9147 # save warnings/boilerplate of simple test code
9148 ac_outfile=conftest.$ac_objext
9149 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9150 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9151 _lt_compiler_boilerplate=`cat conftest.err`
9152 $RM conftest*
9154 ac_outfile=conftest.$ac_objext
9155 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9156 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9157 _lt_linker_boilerplate=`cat conftest.err`
9158 $RM -r conftest*
9161 ## CAVEAT EMPTOR:
9162 ## There is no encapsulation within the following macros, do not change
9163 ## the running order or otherwise move them around unless you know exactly
9164 ## what you are doing...
9165 if test -n "$compiler"; then
9166   
9167 lt_prog_compiler_no_builtin_flag=
9169 if test "$GCC" = yes; then
9170   case $cc_basename in
9171   nvcc*)
9172     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9173   *)
9174     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9175   esac
9177   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9178 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9179 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9180   $as_echo_n "(cached) " >&6
9181 else
9182   lt_cv_prog_compiler_rtti_exceptions=no
9183    ac_outfile=conftest.$ac_objext
9184    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9185    lt_compiler_flag="-fno-rtti -fno-exceptions"
9186    # Insert the option either (1) after the last *FLAGS variable, or
9187    # (2) before a word containing "conftest.", or (3) at the end.
9188    # Note that $ac_compile itself does not contain backslashes and begins
9189    # with a dollar sign (not a hyphen), so the echo should work correctly.
9190    # The option is referenced via a variable to avoid confusing sed.
9191    lt_compile=`echo "$ac_compile" | $SED \
9192    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9193    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9194    -e 's:$: $lt_compiler_flag:'`
9195    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9196    (eval "$lt_compile" 2>conftest.err)
9197    ac_status=$?
9198    cat conftest.err >&5
9199    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200    if (exit $ac_status) && test -s "$ac_outfile"; then
9201      # The compiler can only warn and ignore the option if not recognized
9202      # So say no if there are warnings other than the usual output.
9203      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9204      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9205      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9206        lt_cv_prog_compiler_rtti_exceptions=yes
9207      fi
9208    fi
9209    $RM conftest*
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9213 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9215 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9216     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9217 else
9218     :
9223     
9224     
9225     
9228   lt_prog_compiler_wl=
9229 lt_prog_compiler_pic=
9230 lt_prog_compiler_static=
9233   if test "$GCC" = yes; then
9234     lt_prog_compiler_wl='-Wl,'
9235     lt_prog_compiler_static='-static'
9237     case $host_os in
9238       aix*)
9239       # All AIX code is PIC.
9240       if test "$host_cpu" = ia64; then
9241         # AIX 5 now supports IA64 processor
9242         lt_prog_compiler_static='-Bstatic'
9243       fi
9244       ;;
9246     amigaos*)
9247       case $host_cpu in
9248       powerpc)
9249             # see comment about AmigaOS4 .so support
9250             lt_prog_compiler_pic='-fPIC'
9251         ;;
9252       m68k)
9253             # FIXME: we need at least 68020 code to build shared libraries, but
9254             # adding the `-m68020' flag to GCC prevents building anything better,
9255             # like `-m68040'.
9256             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9257         ;;
9258       esac
9259       ;;
9261     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9262       # PIC is the default for these OSes.
9263       ;;
9265     mingw* | cygwin* | pw32* | os2* | cegcc*)
9266       # This hack is so that the source file can tell whether it is being
9267       # built for inclusion in a dll (and should export symbols for example).
9268       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9269       # (--disable-auto-import) libraries
9270       lt_prog_compiler_pic='-DDLL_EXPORT'
9271       ;;
9273     darwin* | rhapsody*)
9274       # PIC is the default on this platform
9275       # Common symbols not allowed in MH_DYLIB files
9276       lt_prog_compiler_pic='-fno-common'
9277       ;;
9279     haiku*)
9280       # PIC is the default for Haiku.
9281       # The "-static" flag exists, but is broken.
9282       lt_prog_compiler_static=
9283       ;;
9285     hpux*)
9286       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9287       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9288       # sets the default TLS model and affects inlining.
9289       case $host_cpu in
9290       hppa*64*)
9291         # +Z the default
9292         ;;
9293       *)
9294         lt_prog_compiler_pic='-fPIC'
9295         ;;
9296       esac
9297       ;;
9299     interix[3-9]*)
9300       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9301       # Instead, we relocate shared libraries at runtime.
9302       ;;
9304     msdosdjgpp*)
9305       # Just because we use GCC doesn't mean we suddenly get shared libraries
9306       # on systems that don't support them.
9307       lt_prog_compiler_can_build_shared=no
9308       enable_shared=no
9309       ;;
9311     *nto* | *qnx*)
9312       # QNX uses GNU C++, but need to define -shared option too, otherwise
9313       # it will coredump.
9314       lt_prog_compiler_pic='-fPIC -shared'
9315       ;;
9317     sysv4*MP*)
9318       if test -d /usr/nec; then
9319         lt_prog_compiler_pic=-Kconform_pic
9320       fi
9321       ;;
9323     *)
9324       lt_prog_compiler_pic='-fPIC'
9325       ;;
9326     esac
9328     case $cc_basename in
9329     nvcc*) # Cuda Compiler Driver 2.2
9330       lt_prog_compiler_wl='-Xlinker '
9331       lt_prog_compiler_pic='-Xcompiler -fPIC'
9332       ;;
9333     esac
9334   else
9335     # PORTME Check for flag to pass linker flags through the system compiler.
9336     case $host_os in
9337     aix*)
9338       lt_prog_compiler_wl='-Wl,'
9339       if test "$host_cpu" = ia64; then
9340         # AIX 5 now supports IA64 processor
9341         lt_prog_compiler_static='-Bstatic'
9342       else
9343         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9344       fi
9345       ;;
9347     mingw* | cygwin* | pw32* | os2* | cegcc*)
9348       # This hack is so that the source file can tell whether it is being
9349       # built for inclusion in a dll (and should export symbols for example).
9350       lt_prog_compiler_pic='-DDLL_EXPORT'
9351       ;;
9353     hpux9* | hpux10* | hpux11*)
9354       lt_prog_compiler_wl='-Wl,'
9355       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9356       # not for PA HP-UX.
9357       case $host_cpu in
9358       hppa*64*|ia64*)
9359         # +Z the default
9360         ;;
9361       *)
9362         lt_prog_compiler_pic='+Z'
9363         ;;
9364       esac
9365       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9366       lt_prog_compiler_static='${wl}-a ${wl}archive'
9367       ;;
9369     irix5* | irix6* | nonstopux*)
9370       lt_prog_compiler_wl='-Wl,'
9371       # PIC (with -KPIC) is the default.
9372       lt_prog_compiler_static='-non_shared'
9373       ;;
9375     linux* | k*bsd*-gnu | kopensolaris*-gnu)
9376       case $cc_basename in
9377       # old Intel for x86_64 which still supported -KPIC.
9378       ecc*)
9379         lt_prog_compiler_wl='-Wl,'
9380         lt_prog_compiler_pic='-KPIC'
9381         lt_prog_compiler_static='-static'
9382         ;;
9383       # icc used to be incompatible with GCC.
9384       # ICC 10 doesn't accept -KPIC any more.
9385       icc* | ifort*)
9386         lt_prog_compiler_wl='-Wl,'
9387         lt_prog_compiler_pic='-fPIC'
9388         lt_prog_compiler_static='-static'
9389         ;;
9390       # Lahey Fortran 8.1.
9391       lf95*)
9392         lt_prog_compiler_wl='-Wl,'
9393         lt_prog_compiler_pic='--shared'
9394         lt_prog_compiler_static='--static'
9395         ;;
9396       nagfor*)
9397         # NAG Fortran compiler
9398         lt_prog_compiler_wl='-Wl,-Wl,,'
9399         lt_prog_compiler_pic='-PIC'
9400         lt_prog_compiler_static='-Bstatic'
9401         ;;
9402       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9403         # Portland Group compilers (*not* the Pentium gcc compiler,
9404         # which looks to be a dead project)
9405         lt_prog_compiler_wl='-Wl,'
9406         lt_prog_compiler_pic='-fpic'
9407         lt_prog_compiler_static='-Bstatic'
9408         ;;
9409       ccc*)
9410         lt_prog_compiler_wl='-Wl,'
9411         # All Alpha code is PIC.
9412         lt_prog_compiler_static='-non_shared'
9413         ;;
9414       xl* | bgxl* | bgf* | mpixl*)
9415         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9416         lt_prog_compiler_wl='-Wl,'
9417         lt_prog_compiler_pic='-qpic'
9418         lt_prog_compiler_static='-qstaticlink'
9419         ;;
9420       *)
9421         case `$CC -V 2>&1 | sed 5q` in
9422         *Sun\ F* | *Sun*Fortran*)
9423           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9424           lt_prog_compiler_pic='-KPIC'
9425           lt_prog_compiler_static='-Bstatic'
9426           lt_prog_compiler_wl=''
9427           ;;
9428         *Sun\ C*)
9429           # Sun C 5.9
9430           lt_prog_compiler_pic='-KPIC'
9431           lt_prog_compiler_static='-Bstatic'
9432           lt_prog_compiler_wl='-Wl,'
9433           ;;
9434         esac
9435         ;;
9436       esac
9437       ;;
9439     newsos6)
9440       lt_prog_compiler_pic='-KPIC'
9441       lt_prog_compiler_static='-Bstatic'
9442       ;;
9444     *nto* | *qnx*)
9445       # QNX uses GNU C++, but need to define -shared option too, otherwise
9446       # it will coredump.
9447       lt_prog_compiler_pic='-fPIC -shared'
9448       ;;
9450     osf3* | osf4* | osf5*)
9451       lt_prog_compiler_wl='-Wl,'
9452       # All OSF/1 code is PIC.
9453       lt_prog_compiler_static='-non_shared'
9454       ;;
9456     rdos*)
9457       lt_prog_compiler_static='-non_shared'
9458       ;;
9460     solaris*)
9461       lt_prog_compiler_pic='-KPIC'
9462       lt_prog_compiler_static='-Bstatic'
9463       case $cc_basename in
9464       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9465         lt_prog_compiler_wl='-Qoption ld ';;
9466       *)
9467         lt_prog_compiler_wl='-Wl,';;
9468       esac
9469       ;;
9471     sunos4*)
9472       lt_prog_compiler_wl='-Qoption ld '
9473       lt_prog_compiler_pic='-PIC'
9474       lt_prog_compiler_static='-Bstatic'
9475       ;;
9477     sysv4 | sysv4.2uw2* | sysv4.3*)
9478       lt_prog_compiler_wl='-Wl,'
9479       lt_prog_compiler_pic='-KPIC'
9480       lt_prog_compiler_static='-Bstatic'
9481       ;;
9483     sysv4*MP*)
9484       if test -d /usr/nec ;then
9485         lt_prog_compiler_pic='-Kconform_pic'
9486         lt_prog_compiler_static='-Bstatic'
9487       fi
9488       ;;
9490     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9491       lt_prog_compiler_wl='-Wl,'
9492       lt_prog_compiler_pic='-KPIC'
9493       lt_prog_compiler_static='-Bstatic'
9494       ;;
9496     unicos*)
9497       lt_prog_compiler_wl='-Wl,'
9498       lt_prog_compiler_can_build_shared=no
9499       ;;
9501     uts4*)
9502       lt_prog_compiler_pic='-pic'
9503       lt_prog_compiler_static='-Bstatic'
9504       ;;
9506     *)
9507       lt_prog_compiler_can_build_shared=no
9508       ;;
9509     esac
9510   fi
9512 case $host_os in
9513   # For platforms which do not support PIC, -DPIC is meaningless:
9514   *djgpp*)
9515     lt_prog_compiler_pic=
9516     ;;
9517   *)
9518     lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC"
9519     ;;
9520 esac
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9523 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9524 if ${lt_cv_prog_compiler_pic+:} false; then :
9525   $as_echo_n "(cached) " >&6
9526 else
9527   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9530 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9531 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9534 # Check to make sure the PIC flag actually works.
9536 if test -n "$lt_prog_compiler_pic"; then
9537   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9538 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9539 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9540   $as_echo_n "(cached) " >&6
9541 else
9542   lt_cv_prog_compiler_pic_works=no
9543    ac_outfile=conftest.$ac_objext
9544    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9545    lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC"
9546    # Insert the option either (1) after the last *FLAGS variable, or
9547    # (2) before a word containing "conftest.", or (3) at the end.
9548    # Note that $ac_compile itself does not contain backslashes and begins
9549    # with a dollar sign (not a hyphen), so the echo should work correctly.
9550    # The option is referenced via a variable to avoid confusing sed.
9551    lt_compile=`echo "$ac_compile" | $SED \
9552    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9553    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9554    -e 's:$: $lt_compiler_flag:'`
9555    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9556    (eval "$lt_compile" 2>conftest.err)
9557    ac_status=$?
9558    cat conftest.err >&5
9559    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9560    if (exit $ac_status) && test -s "$ac_outfile"; then
9561      # The compiler can only warn and ignore the option if not recognized
9562      # So say no if there are warnings other than the usual output.
9563      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9564      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9565      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9566        lt_cv_prog_compiler_pic_works=yes
9567      fi
9568    fi
9569    $RM conftest*
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9573 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9575 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9576     case $lt_prog_compiler_pic in
9577      "" | " "*) ;;
9578      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9579      esac
9580 else
9581     lt_prog_compiler_pic=
9582      lt_prog_compiler_can_build_shared=no
9587     
9588     
9589     
9593     
9594     
9595     
9598 # Check to make sure the static flag actually works.
9600 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9602 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9603 if ${lt_cv_prog_compiler_static_works+:} false; then :
9604   $as_echo_n "(cached) " >&6
9605 else
9606   lt_cv_prog_compiler_static_works=no
9607    save_LDFLAGS="$LDFLAGS"
9608    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9609    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9610    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9611      # The linker can only warn and ignore the option if not recognized
9612      # So say no if there are warnings
9613      if test -s conftest.err; then
9614        # Append any errors to the config.log.
9615        cat conftest.err 1>&5
9616        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9617        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9618        if diff conftest.exp conftest.er2 >/dev/null; then
9619          lt_cv_prog_compiler_static_works=yes
9620        fi
9621      else
9622        lt_cv_prog_compiler_static_works=yes
9623      fi
9624    fi
9625    $RM -r conftest*
9626    LDFLAGS="$save_LDFLAGS"
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9630 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9632 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9633     :
9634 else
9635     lt_prog_compiler_static=
9639     
9640     
9641     
9644   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9645 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9646 if ${lt_cv_prog_compiler_c_o+:} false; then :
9647   $as_echo_n "(cached) " >&6
9648 else
9649   lt_cv_prog_compiler_c_o=no
9650    $RM -r conftest 2>/dev/null
9651    mkdir conftest
9652    cd conftest
9653    mkdir out
9654    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9656    lt_compiler_flag="-o out/conftest2.$ac_objext"
9657    # Insert the option either (1) after the last *FLAGS variable, or
9658    # (2) before a word containing "conftest.", or (3) at the end.
9659    # Note that $ac_compile itself does not contain backslashes and begins
9660    # with a dollar sign (not a hyphen), so the echo should work correctly.
9661    lt_compile=`echo "$ac_compile" | $SED \
9662    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9663    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9664    -e 's:$: $lt_compiler_flag:'`
9665    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9666    (eval "$lt_compile" 2>out/conftest.err)
9667    ac_status=$?
9668    cat out/conftest.err >&5
9669    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9671    then
9672      # The compiler can only warn and ignore the option if not recognized
9673      # So say no if there are warnings
9674      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9675      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9676      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9677        lt_cv_prog_compiler_c_o=yes
9678      fi
9679    fi
9680    chmod u+w . 2>&5
9681    $RM conftest*
9682    # SGI C++ compiler will create directory out/ii_files/ for
9683    # template instantiation
9684    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9685    $RM out/* && rmdir out
9686    cd ..
9687    $RM -r conftest
9688    $RM conftest*
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9692 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9694     
9695     
9696     
9699   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9700 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9701 if ${lt_cv_prog_compiler_c_o+:} false; then :
9702   $as_echo_n "(cached) " >&6
9703 else
9704   lt_cv_prog_compiler_c_o=no
9705    $RM -r conftest 2>/dev/null
9706    mkdir conftest
9707    cd conftest
9708    mkdir out
9709    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9711    lt_compiler_flag="-o out/conftest2.$ac_objext"
9712    # Insert the option either (1) after the last *FLAGS variable, or
9713    # (2) before a word containing "conftest.", or (3) at the end.
9714    # Note that $ac_compile itself does not contain backslashes and begins
9715    # with a dollar sign (not a hyphen), so the echo should work correctly.
9716    lt_compile=`echo "$ac_compile" | $SED \
9717    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9718    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9719    -e 's:$: $lt_compiler_flag:'`
9720    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9721    (eval "$lt_compile" 2>out/conftest.err)
9722    ac_status=$?
9723    cat out/conftest.err >&5
9724    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9726    then
9727      # The compiler can only warn and ignore the option if not recognized
9728      # So say no if there are warnings
9729      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9730      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9731      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9732        lt_cv_prog_compiler_c_o=yes
9733      fi
9734    fi
9735    chmod u+w . 2>&5
9736    $RM conftest*
9737    # SGI C++ compiler will create directory out/ii_files/ for
9738    # template instantiation
9739    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9740    $RM out/* && rmdir out
9741    cd ..
9742    $RM -r conftest
9743    $RM conftest*
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9747 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9752 hard_links="nottested"
9753 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9754   # do not overwrite the value of need_locks provided by the user
9755   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9756 $as_echo_n "checking if we can lock with hard links... " >&6; }
9757   hard_links=yes
9758   $RM conftest*
9759   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9760   touch conftest.a
9761   ln conftest.a conftest.b 2>&5 || hard_links=no
9762   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9764 $as_echo "$hard_links" >&6; }
9765   if test "$hard_links" = no; then
9766     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9767 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9768     need_locks=warn
9769   fi
9770 else
9771   need_locks=no
9774     
9775     
9776     
9779   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9780 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9782   runpath_var=
9783   allow_undefined_flag=
9784   always_export_symbols=no
9785   archive_cmds=
9786   archive_expsym_cmds=
9787   compiler_needs_object=no
9788   enable_shared_with_static_runtimes=no
9789   export_dynamic_flag_spec=
9790   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9791   hardcode_automatic=no
9792   hardcode_direct=no
9793   hardcode_direct_absolute=no
9794   hardcode_libdir_flag_spec=
9795   hardcode_libdir_flag_spec_ld=
9796   hardcode_libdir_separator=
9797   hardcode_minus_L=no
9798   hardcode_shlibpath_var=unsupported
9799   inherit_rpath=no
9800   link_all_deplibs=unknown
9801   module_cmds=
9802   module_expsym_cmds=
9803   old_archive_from_new_cmds=
9804   old_archive_from_expsyms_cmds=
9805   thread_safe_flag_spec=
9806   whole_archive_flag_spec=
9807   # include_expsyms should be a list of space-separated symbols to be *always*
9808   # included in the symbol list
9809   include_expsyms=
9810   # exclude_expsyms can be an extended regexp of symbols to exclude
9811   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9812   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9813   # as well as any symbol that contains `d'.
9814   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9815   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9816   # platforms (ab)use it in PIC code, but their linkers get confused if
9817   # the symbol is explicitly referenced.  Since portable code cannot
9818   # rely on this symbol name, it's probably fine to never include it in
9819   # preloaded symbol tables.
9820   # Exclude shared library initialization/finalization symbols.
9821   extract_expsyms_cmds=
9823   case $host_os in
9824   cygwin* | mingw* | pw32* | cegcc*)
9825     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9826     # When not using gcc, we currently assume that we are using
9827     # Microsoft Visual C++.
9828     if test "$GCC" != yes; then
9829       with_gnu_ld=no
9830     fi
9831     ;;
9832   interix*)
9833     # we just hope/assume this is gcc and not c89 (= MSVC++)
9834     with_gnu_ld=yes
9835     ;;
9836   openbsd*)
9837     with_gnu_ld=no
9838     ;;
9839   esac
9841   ld_shlibs=yes
9843   # On some targets, GNU ld is compatible enough with the native linker
9844   # that we're better off using the native interface for both.
9845   lt_use_gnu_ld_interface=no
9846   if test "$with_gnu_ld" = yes; then
9847     case $host_os in
9848       aix*)
9849         # The AIX port of GNU ld has always aspired to compatibility
9850         # with the native linker.  However, as the warning in the GNU ld
9851         # block says, versions before 2.19.5* couldn't really create working
9852         # shared libraries, regardless of the interface used.
9853         case `$LD -v 2>&1` in
9854           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9855           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9856           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9857           *)
9858             lt_use_gnu_ld_interface=yes
9859             ;;
9860         esac
9861         ;;
9862       *)
9863         lt_use_gnu_ld_interface=yes
9864         ;;
9865     esac
9866   fi
9868   if test "$lt_use_gnu_ld_interface" = yes; then
9869     # If archive_cmds runs LD, not CC, wlarc should be empty
9870     wlarc='${wl}'
9872     # Set some defaults for GNU ld with shared library support. These
9873     # are reset later if shared libraries are not supported. Putting them
9874     # here allows them to be overridden if necessary.
9875     runpath_var=LD_RUN_PATH
9876     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9877     export_dynamic_flag_spec='${wl}--export-dynamic'
9878     # ancient GNU ld didn't support --whole-archive et. al.
9879     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9880       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9881     else
9882       whole_archive_flag_spec=
9883     fi
9884     supports_anon_versioning=no
9885     case `$LD -v 2>&1` in
9886       *GNU\ gold*) supports_anon_versioning=yes ;;
9887       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9888       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9889       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9890       *\ 2.11.*) ;; # other 2.11 versions
9891       *) supports_anon_versioning=yes ;;
9892     esac
9894     # See if GNU ld supports shared libraries.
9895     case $host_os in
9896     aix[3-9]*)
9897       # On AIX/PPC, the GNU linker is very broken
9898       if test "$host_cpu" != ia64; then
9899         ld_shlibs=no
9900         cat <<_LT_EOF 1>&2
9902 *** Warning: the GNU linker, at least up to release 2.19, is reported
9903 *** to be unable to reliably create shared libraries on AIX.
9904 *** Therefore, libtool is disabling shared libraries support.  If you
9905 *** really care for shared libraries, you may want to install binutils
9906 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9907 *** You will then need to restart the configuration process.
9909 _LT_EOF
9910       fi
9911       ;;
9913     amigaos*)
9914       case $host_cpu in
9915       powerpc)
9916             # see comment about AmigaOS4 .so support
9917             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9918             archive_expsym_cmds=''
9919         ;;
9920       m68k)
9921             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)'
9922             hardcode_libdir_flag_spec='-L$libdir'
9923             hardcode_minus_L=yes
9924         ;;
9925       esac
9926       ;;
9928     beos*)
9929       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9930         allow_undefined_flag=unsupported
9931         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9932         # support --undefined.  This deserves some investigation.  FIXME
9933         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9934       else
9935         ld_shlibs=no
9936       fi
9937       ;;
9939     cygwin* | mingw* | pw32* | cegcc*)
9940       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9941       # as there is no search path for DLLs.
9942       hardcode_libdir_flag_spec='-L$libdir'
9943       export_dynamic_flag_spec='${wl}--export-all-symbols'
9944       allow_undefined_flag=unsupported
9945       always_export_symbols=no
9946       enable_shared_with_static_runtimes=yes
9947       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'
9948       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9950       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9951         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9952         # If the export-symbols file already is a .def file (1st line
9953         # is EXPORTS), use it as is; otherwise, prepend...
9954         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9955           cp $export_symbols $output_objdir/$soname.def;
9956         else
9957           echo EXPORTS > $output_objdir/$soname.def;
9958           cat $export_symbols >> $output_objdir/$soname.def;
9959         fi~
9960         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9961       else
9962         ld_shlibs=no
9963       fi
9964       ;;
9966     haiku*)
9967       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9968       link_all_deplibs=yes
9969       ;;
9971     interix[3-9]*)
9972       hardcode_direct=no
9973       hardcode_shlibpath_var=no
9974       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9975       export_dynamic_flag_spec='${wl}-E'
9976       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9977       # Instead, shared libraries are loaded at an image base (0x10000000 by
9978       # default) and relocated if they conflict, which is a slow very memory
9979       # consuming and fragmenting process.  To avoid this, we pick a random,
9980       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9981       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9982       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9983       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'
9984       ;;
9986     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9987       tmp_diet=no
9988       if test "$host_os" = linux-dietlibc; then
9989         case $cc_basename in
9990           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9991         esac
9992       fi
9993       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9994          && test "$tmp_diet" = no
9995       then
9996         tmp_addflag=' $pic_flag'
9997         tmp_sharedflag='-shared'
9998         case $cc_basename,$host_cpu in
9999         pgcc*)                          # Portland Group C compiler
10000           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'
10001           tmp_addflag=' $pic_flag'
10002           ;;
10003         pgf77* | pgf90* | pgf95* | pgfortran*)
10004                                         # Portland Group f77 and f90 compilers
10005           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'
10006           tmp_addflag=' $pic_flag -Mnomain' ;;
10007         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10008           tmp_addflag=' -i_dynamic' ;;
10009         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10010           tmp_addflag=' -i_dynamic -nofor_main' ;;
10011         ifc* | ifort*)                  # Intel Fortran compiler
10012           tmp_addflag=' -nofor_main' ;;
10013         lf95*)                          # Lahey Fortran 8.1
10014           whole_archive_flag_spec=
10015           tmp_sharedflag='--shared' ;;
10016         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10017           tmp_sharedflag='-qmkshrobj'
10018           tmp_addflag= ;;
10019         nvcc*)  # Cuda Compiler Driver 2.2
10020           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'
10021           compiler_needs_object=yes
10022           ;;
10023         esac
10024         case `$CC -V 2>&1 | sed 5q` in
10025         *Sun\ C*)                       # Sun C 5.9
10026           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'
10027           compiler_needs_object=yes
10028           tmp_sharedflag='-G' ;;
10029         *Sun\ F*)                       # Sun Fortran 8.3
10030           tmp_sharedflag='-G' ;;
10031         esac
10032         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10034         if test "x$supports_anon_versioning" = xyes; then
10035           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10036             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10037             echo "local: *; };" >> $output_objdir/$libname.ver~
10038             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10039         fi
10041         case $cc_basename in
10042         xlf* | bgf* | bgxlf* | mpixlf*)
10043           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10044           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10045           hardcode_libdir_flag_spec=
10046           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10047           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10048           if test "x$supports_anon_versioning" = xyes; then
10049             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10050               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10051               echo "local: *; };" >> $output_objdir/$libname.ver~
10052               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10053           fi
10054           ;;
10055         esac
10056       else
10057         ld_shlibs=no
10058       fi
10059       ;;
10061     netbsd*)
10062       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10063         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10064         wlarc=
10065       else
10066         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10067         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10068       fi
10069       ;;
10071     solaris*)
10072       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10073         ld_shlibs=no
10074         cat <<_LT_EOF 1>&2
10076 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10077 *** create shared libraries on Solaris systems.  Therefore, libtool
10078 *** is disabling shared libraries support.  We urge you to upgrade GNU
10079 *** binutils to release 2.9.1 or newer.  Another option is to modify
10080 *** your PATH or compiler configuration so that the native linker is
10081 *** used, and then restart.
10083 _LT_EOF
10084       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10085         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10086         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10087       else
10088         ld_shlibs=no
10089       fi
10090       ;;
10092     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10093       case `$LD -v 2>&1` in
10094         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10095         ld_shlibs=no
10096         cat <<_LT_EOF 1>&2
10098 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10099 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10100 *** is disabling shared libraries support.  We urge you to upgrade GNU
10101 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10102 *** your PATH or compiler configuration so that the native linker is
10103 *** used, and then restart.
10105 _LT_EOF
10106         ;;
10107         *)
10108           # For security reasons, it is highly recommended that you always
10109           # use absolute paths for naming shared libraries, and exclude the
10110           # DT_RUNPATH tag from executables and libraries.  But doing so
10111           # requires that you compile everything twice, which is a pain.
10112           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10113             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10114             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10115             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10116           else
10117             ld_shlibs=no
10118           fi
10119         ;;
10120       esac
10121       ;;
10123     sunos4*)
10124       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10125       wlarc=
10126       hardcode_direct=yes
10127       hardcode_shlibpath_var=no
10128       ;;
10130     *)
10131       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10132         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10133         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10134       else
10135         ld_shlibs=no
10136       fi
10137       ;;
10138     esac
10140     if test "$ld_shlibs" = no; then
10141       runpath_var=
10142       hardcode_libdir_flag_spec=
10143       export_dynamic_flag_spec=
10144       whole_archive_flag_spec=
10145     fi
10146   else
10147     # PORTME fill in a description of your system's linker (not GNU ld)
10148     case $host_os in
10149     aix3*)
10150       allow_undefined_flag=unsupported
10151       always_export_symbols=yes
10152       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'
10153       # Note: this linker hardcodes the directories in LIBPATH if there
10154       # are no directories specified by -L.
10155       hardcode_minus_L=yes
10156       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10157         # Neither direct hardcoding nor static linking is supported with a
10158         # broken collect2.
10159         hardcode_direct=unsupported
10160       fi
10161       ;;
10163     aix[4-9]*)
10164       if test "$host_cpu" = ia64; then
10165         # On IA64, the linker does run time linking by default, so we don't
10166         # have to do anything special.
10167         aix_use_runtimelinking=no
10168         exp_sym_flag='-Bexport'
10169         no_entry_flag=""
10170       else
10171         # If we're using GNU nm, then we don't want the "-C" option.
10172         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10173         # Also, AIX nm treats weak defined symbols like other global
10174         # defined symbols, whereas GNU nm marks them as "W".
10175         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10176           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10177         else
10178           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10179         fi
10180         aix_use_runtimelinking=no
10182         # Test if we are trying to use run time linking or normal
10183         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10184         # need to do runtime linking.
10185         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10186           for ld_flag in $LDFLAGS; do
10187           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10188             aix_use_runtimelinking=yes
10189             break
10190           fi
10191           done
10192           ;;
10193         esac
10195         exp_sym_flag='-bexport'
10196         no_entry_flag='-bnoentry'
10197       fi
10199       # When large executables or shared objects are built, AIX ld can
10200       # have problems creating the table of contents.  If linking a library
10201       # or program results in "error TOC overflow" add -mminimal-toc to
10202       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10203       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10205       archive_cmds=''
10206       hardcode_direct=yes
10207       hardcode_direct_absolute=yes
10208       hardcode_libdir_separator=':'
10209       link_all_deplibs=yes
10210       file_list_spec='${wl}-f,'
10212       if test "$GCC" = yes; then
10213         case $host_os in aix4.[012]|aix4.[012].*)
10214         # We only want to do this on AIX 4.2 and lower, the check
10215         # below for broken collect2 doesn't work under 4.3+
10216           collect2name=`${CC} -print-prog-name=collect2`
10217           if test -f "$collect2name" &&
10218            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10219           then
10220           # We have reworked collect2
10221           :
10222           else
10223           # We have old collect2
10224           hardcode_direct=unsupported
10225           # It fails to find uninstalled libraries when the uninstalled
10226           # path is not listed in the libpath.  Setting hardcode_minus_L
10227           # to unsupported forces relinking
10228           hardcode_minus_L=yes
10229           hardcode_libdir_flag_spec='-L$libdir'
10230           hardcode_libdir_separator=
10231           fi
10232           ;;
10233         esac
10234         shared_flag='-shared'
10235         if test "$aix_use_runtimelinking" = yes; then
10236           shared_flag="$shared_flag "'${wl}-G'
10237         fi
10238       else
10239         # not using gcc
10240         if test "$host_cpu" = ia64; then
10241         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10242         # chokes on -Wl,-G. The following line is correct:
10243           shared_flag='-G'
10244         else
10245           if test "$aix_use_runtimelinking" = yes; then
10246             shared_flag='${wl}-G'
10247           else
10248             shared_flag='${wl}-bM:SRE'
10249           fi
10250         fi
10251       fi
10253       export_dynamic_flag_spec='${wl}-bexpall'
10254       # It seems that -bexpall does not export symbols beginning with
10255       # underscore (_), so it is better to generate a list of symbols to export.
10256       always_export_symbols=yes
10257       if test "$aix_use_runtimelinking" = yes; then
10258         # Warning - without using the other runtime loading flags (-brtl),
10259         # -berok will link without error, but may produce a broken library.
10260         allow_undefined_flag='-berok'
10261         # Determine the default libpath from the value encoded in an
10262         # empty executable.
10263         if test "${lt_cv_aix_libpath+set}" = set; then
10264   aix_libpath=$lt_cv_aix_libpath
10265 else
10266   if ${lt_cv_aix_libpath_+:} false; then :
10267   $as_echo_n "(cached) " >&6
10268 else
10269   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10270 /* end confdefs.h.  */
10273 main ()
10276   ;
10277   return 0;
10279 _ACEOF
10280 if ac_fn_c_try_link "$LINENO"; then :
10281   
10282   lt_aix_libpath_sed='
10283       /Import File Strings/,/^$/ {
10284           /^0/ {
10285               s/^0  *\([^ ]*\) *$/\1/
10286               p
10287           }
10288       }'
10289   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10290   # Check for a 64-bit object if we didn't find anything.
10291   if test -z "$lt_cv_aix_libpath_"; then
10292     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10293   fi
10295 rm -f core conftest.err conftest.$ac_objext \
10296     conftest$ac_exeext conftest.$ac_ext
10297   if test -z "$lt_cv_aix_libpath_"; then
10298     lt_cv_aix_libpath_="/usr/lib:/lib"
10299   fi
10300   
10303   aix_libpath=$lt_cv_aix_libpath_
10306         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10307         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10308       else
10309         if test "$host_cpu" = ia64; then
10310           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10311           allow_undefined_flag="-z nodefs"
10312           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"
10313         else
10314          # Determine the default libpath from the value encoded in an
10315          # empty executable.
10316          if test "${lt_cv_aix_libpath+set}" = set; then
10317   aix_libpath=$lt_cv_aix_libpath
10318 else
10319   if ${lt_cv_aix_libpath_+:} false; then :
10320   $as_echo_n "(cached) " >&6
10321 else
10322   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10323 /* end confdefs.h.  */
10326 main ()
10329   ;
10330   return 0;
10332 _ACEOF
10333 if ac_fn_c_try_link "$LINENO"; then :
10334   
10335   lt_aix_libpath_sed='
10336       /Import File Strings/,/^$/ {
10337           /^0/ {
10338               s/^0  *\([^ ]*\) *$/\1/
10339               p
10340           }
10341       }'
10342   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10343   # Check for a 64-bit object if we didn't find anything.
10344   if test -z "$lt_cv_aix_libpath_"; then
10345     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10346   fi
10348 rm -f core conftest.err conftest.$ac_objext \
10349     conftest$ac_exeext conftest.$ac_ext
10350   if test -z "$lt_cv_aix_libpath_"; then
10351     lt_cv_aix_libpath_="/usr/lib:/lib"
10352   fi
10353   
10356   aix_libpath=$lt_cv_aix_libpath_
10359          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10360           # Warning - without using the other run time loading flags,
10361           # -berok will link without error, but may produce a broken library.
10362           no_undefined_flag=' ${wl}-bernotok'
10363           allow_undefined_flag=' ${wl}-berok'
10364           if test "$with_gnu_ld" = yes; then
10365             # We only use this code for GNU lds that support --whole-archive.
10366             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10367           else
10368             # Exported symbols can be pulled into shared objects from archives
10369             whole_archive_flag_spec='$convenience'
10370           fi
10371           archive_cmds_need_lc=yes
10372           # This is similar to how AIX traditionally builds its shared libraries.
10373           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10374         fi
10375       fi
10376       ;;
10378     amigaos*)
10379       case $host_cpu in
10380       powerpc)
10381             # see comment about AmigaOS4 .so support
10382             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10383             archive_expsym_cmds=''
10384         ;;
10385       m68k)
10386             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)'
10387             hardcode_libdir_flag_spec='-L$libdir'
10388             hardcode_minus_L=yes
10389         ;;
10390       esac
10391       ;;
10393     bsdi[45]*)
10394       export_dynamic_flag_spec=-rdynamic
10395       ;;
10397     cygwin* | mingw* | pw32* | cegcc*)
10398       # When not using gcc, we currently assume that we are using
10399       # Microsoft Visual C++.
10400       # hardcode_libdir_flag_spec is actually meaningless, as there is
10401       # no search path for DLLs.
10402       case $cc_basename in
10403       cl*)
10404         # Native MSVC
10405         hardcode_libdir_flag_spec=' '
10406         allow_undefined_flag=unsupported
10407         always_export_symbols=yes
10408         file_list_spec='@'
10409         # Tell ltmain to make .lib files, not .a files.
10410         libext=lib
10411         # Tell ltmain to make .dll files, not .so files.
10412         shrext_cmds=".dll"
10413         # FIXME: Setting linknames here is a bad hack.
10414         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10415         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10416             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10417           else
10418             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10419           fi~
10420           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10421           linknames='
10422         # The linker will not automatically build a static lib if we build a DLL.
10423         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10424         enable_shared_with_static_runtimes=yes
10425         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10426         # Don't use ranlib
10427         old_postinstall_cmds='chmod 644 $oldlib'
10428         postlink_cmds='lt_outputfile="@OUTPUT@"~
10429           lt_tool_outputfile="@TOOL_OUTPUT@"~
10430           case $lt_outputfile in
10431             *.exe|*.EXE) ;;
10432             *)
10433               lt_outputfile="$lt_outputfile.exe"
10434               lt_tool_outputfile="$lt_tool_outputfile.exe"
10435               ;;
10436           esac~
10437           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10438             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10439             $RM "$lt_outputfile.manifest";
10440           fi'
10441         ;;
10442       *)
10443         # Assume MSVC wrapper
10444         hardcode_libdir_flag_spec=' '
10445         allow_undefined_flag=unsupported
10446         # Tell ltmain to make .lib files, not .a files.
10447         libext=lib
10448         # Tell ltmain to make .dll files, not .so files.
10449         shrext_cmds=".dll"
10450         # FIXME: Setting linknames here is a bad hack.
10451         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10452         # The linker will automatically build a .lib file if we build a DLL.
10453         old_archive_from_new_cmds='true'
10454         # FIXME: Should let the user specify the lib program.
10455         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10456         enable_shared_with_static_runtimes=yes
10457         ;;
10458       esac
10459       ;;
10461     darwin* | rhapsody*)
10462       
10463   
10464   archive_cmds_need_lc=no
10465   hardcode_direct=no
10466   hardcode_automatic=yes
10467   hardcode_shlibpath_var=unsupported
10468   if test "$lt_cv_ld_force_load" = "yes"; then
10469     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\"`'
10470   else
10471     whole_archive_flag_spec=''
10472   fi
10473   link_all_deplibs=yes
10474   allow_undefined_flag="$_lt_dar_allow_undefined"
10475   case $cc_basename in
10476      ifort*) _lt_dar_can_shared=yes ;;
10477      *) _lt_dar_can_shared=$GCC ;;
10478   esac
10479   if test "$_lt_dar_can_shared" = "yes"; then
10480     output_verbose_link_cmd=func_echo_all
10481     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10482     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10483     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}"
10484     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}"
10485     
10486   else
10487   ld_shlibs=no
10488   fi
10490       ;;
10492     dgux*)
10493       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10494       hardcode_libdir_flag_spec='-L$libdir'
10495       hardcode_shlibpath_var=no
10496       ;;
10498     freebsd1*)
10499       ld_shlibs=no
10500       ;;
10502     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10503     # support.  Future versions do this automatically, but an explicit c++rt0.o
10504     # does not break anything, and helps significantly (at the cost of a little
10505     # extra space).
10506     freebsd2.2*)
10507       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10508       hardcode_libdir_flag_spec='-R$libdir'
10509       hardcode_direct=yes
10510       hardcode_shlibpath_var=no
10511       ;;
10513     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10514     freebsd2*)
10515       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10516       hardcode_direct=yes
10517       hardcode_minus_L=yes
10518       hardcode_shlibpath_var=no
10519       ;;
10521     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10522     freebsd* | dragonfly*)
10523       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10524       hardcode_libdir_flag_spec='-R$libdir'
10525       hardcode_direct=yes
10526       hardcode_shlibpath_var=no
10527       ;;
10529     hpux9*)
10530       if test "$GCC" = yes; then
10531         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10532       else
10533         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10534       fi
10535       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10536       hardcode_libdir_separator=:
10537       hardcode_direct=yes
10539       # hardcode_minus_L: Not really in the search PATH,
10540       # but as the default location of the library.
10541       hardcode_minus_L=yes
10542       export_dynamic_flag_spec='${wl}-E'
10543       ;;
10545     hpux10*)
10546       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10547         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10548       else
10549         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10550       fi
10551       if test "$with_gnu_ld" = no; then
10552         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10553         hardcode_libdir_flag_spec_ld='+b $libdir'
10554         hardcode_libdir_separator=:
10555         hardcode_direct=yes
10556         hardcode_direct_absolute=yes
10557         export_dynamic_flag_spec='${wl}-E'
10558         # hardcode_minus_L: Not really in the search PATH,
10559         # but as the default location of the library.
10560         hardcode_minus_L=yes
10561       fi
10562       ;;
10564     hpux11*)
10565       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10566         case $host_cpu in
10567         hppa*64*)
10568           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10569           ;;
10570         ia64*)
10571           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10572           ;;
10573         *)
10574           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10575           ;;
10576         esac
10577       else
10578         case $host_cpu in
10579         hppa*64*)
10580           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10581           ;;
10582         ia64*)
10583           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10584           ;;
10585         *)
10586         
10587           # Older versions of the 11.00 compiler do not understand -b yet
10588           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10589           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10590 $as_echo_n "checking if $CC understands -b... " >&6; }
10591 if ${lt_cv_prog_compiler__b+:} false; then :
10592   $as_echo_n "(cached) " >&6
10593 else
10594   lt_cv_prog_compiler__b=no
10595    save_LDFLAGS="$LDFLAGS"
10596    LDFLAGS="$LDFLAGS -b"
10597    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10598    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10599      # The linker can only warn and ignore the option if not recognized
10600      # So say no if there are warnings
10601      if test -s conftest.err; then
10602        # Append any errors to the config.log.
10603        cat conftest.err 1>&5
10604        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10605        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10606        if diff conftest.exp conftest.er2 >/dev/null; then
10607          lt_cv_prog_compiler__b=yes
10608        fi
10609      else
10610        lt_cv_prog_compiler__b=yes
10611      fi
10612    fi
10613    $RM -r conftest*
10614    LDFLAGS="$save_LDFLAGS"
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10618 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10620 if test x"$lt_cv_prog_compiler__b" = xyes; then
10621     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10622 else
10623     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10626           ;;
10627         esac
10628       fi
10629       if test "$with_gnu_ld" = no; then
10630         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10631         hardcode_libdir_separator=:
10633         case $host_cpu in
10634         hppa*64*|ia64*)
10635           hardcode_direct=no
10636           hardcode_shlibpath_var=no
10637           ;;
10638         *)
10639           hardcode_direct=yes
10640           hardcode_direct_absolute=yes
10641           export_dynamic_flag_spec='${wl}-E'
10643           # hardcode_minus_L: Not really in the search PATH,
10644           # but as the default location of the library.
10645           hardcode_minus_L=yes
10646           ;;
10647         esac
10648       fi
10649       ;;
10651     irix5* | irix6* | nonstopux*)
10652       if test "$GCC" = yes; then
10653         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'
10654         # Try to use the -exported_symbol ld option, if it does not
10655         # work, assume that -exports_file does not work either and
10656         # implicitly export all symbols.
10657         # This should be the same for all languages, so no per-tag cache variable.
10658         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10659 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10660 if ${lt_cv_irix_exported_symbol+:} false; then :
10661   $as_echo_n "(cached) " >&6
10662 else
10663   save_LDFLAGS="$LDFLAGS"
10664            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10665            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10666 /* end confdefs.h.  */
10667 int foo (void) { return 0; }
10668 _ACEOF
10669 if ac_fn_c_try_link "$LINENO"; then :
10670   lt_cv_irix_exported_symbol=yes
10671 else
10672   lt_cv_irix_exported_symbol=no
10674 rm -f core conftest.err conftest.$ac_objext \
10675     conftest$ac_exeext conftest.$ac_ext
10676            LDFLAGS="$save_LDFLAGS"
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10679 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10680         if test "$lt_cv_irix_exported_symbol" = yes; then
10681           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'
10682         fi
10683       else
10684         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'
10685         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'
10686       fi
10687       archive_cmds_need_lc='no'
10688       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10689       hardcode_libdir_separator=:
10690       inherit_rpath=yes
10691       link_all_deplibs=yes
10692       ;;
10694     netbsd*)
10695       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10696         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10697       else
10698         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10699       fi
10700       hardcode_libdir_flag_spec='-R$libdir'
10701       hardcode_direct=yes
10702       hardcode_shlibpath_var=no
10703       ;;
10705     newsos6)
10706       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10707       hardcode_direct=yes
10708       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10709       hardcode_libdir_separator=:
10710       hardcode_shlibpath_var=no
10711       ;;
10713     *nto* | *qnx*)
10714       ;;
10716     openbsd*)
10717       if test -f /usr/libexec/ld.so; then
10718         hardcode_direct=yes
10719         hardcode_shlibpath_var=no
10720         hardcode_direct_absolute=yes
10721         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10722           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10723           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10724           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10725           export_dynamic_flag_spec='${wl}-E'
10726         else
10727           case $host_os in
10728            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10729              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10730              hardcode_libdir_flag_spec='-R$libdir'
10731              ;;
10732            *)
10733              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10734              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10735              ;;
10736           esac
10737         fi
10738       else
10739         ld_shlibs=no
10740       fi
10741       ;;
10743     os2*)
10744       hardcode_libdir_flag_spec='-L$libdir'
10745       hardcode_minus_L=yes
10746       allow_undefined_flag=unsupported
10747       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10748       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10749       ;;
10751     osf3*)
10752       if test "$GCC" = yes; then
10753         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10754         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'
10755       else
10756         allow_undefined_flag=' -expect_unresolved \*'
10757         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'
10758       fi
10759       archive_cmds_need_lc='no'
10760       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10761       hardcode_libdir_separator=:
10762       ;;
10764     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10765       if test "$GCC" = yes; then
10766         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10767         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'
10768         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10769       else
10770         allow_undefined_flag=' -expect_unresolved \*'
10771         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'
10772         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~
10773         $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'
10775         # Both c and cxx compiler support -rpath directly
10776         hardcode_libdir_flag_spec='-rpath $libdir'
10777       fi
10778       archive_cmds_need_lc='no'
10779       hardcode_libdir_separator=:
10780       ;;
10782     solaris*)
10783       no_undefined_flag=' -z defs'
10784       if test "$GCC" = yes; then
10785         wlarc='${wl}'
10786         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10787         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10788           $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'
10789       else
10790         case `$CC -V 2>&1` in
10791         *"Compilers 5.0"*)
10792           wlarc=''
10793           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10794           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10795           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10796           ;;
10797         *)
10798           wlarc='${wl}'
10799           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10800           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10801           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10802           ;;
10803         esac
10804       fi
10805       hardcode_libdir_flag_spec='-R$libdir'
10806       hardcode_shlibpath_var=no
10807       case $host_os in
10808       solaris2.[0-5] | solaris2.[0-5].*) ;;
10809       *)
10810         # The compiler driver will combine and reorder linker options,
10811         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10812         # but is careful enough not to reorder.
10813         # Supported since Solaris 2.6 (maybe 2.5.1?)
10814         if test "$GCC" = yes; then
10815           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10816         else
10817           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10818         fi
10819         ;;
10820       esac
10821       link_all_deplibs=yes
10822       ;;
10824     sunos4*)
10825       if test "x$host_vendor" = xsequent; then
10826         # Use $CC to link under sequent, because it throws in some extra .o
10827         # files that make .init and .fini sections work.
10828         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10829       else
10830         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10831       fi
10832       hardcode_libdir_flag_spec='-L$libdir'
10833       hardcode_direct=yes
10834       hardcode_minus_L=yes
10835       hardcode_shlibpath_var=no
10836       ;;
10838     sysv4)
10839       case $host_vendor in
10840         sni)
10841           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10842           hardcode_direct=yes # is this really true???
10843         ;;
10844         siemens)
10845           ## LD is ld it makes a PLAMLIB
10846           ## CC just makes a GrossModule.
10847           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10848           reload_cmds='$CC -r -o $output$reload_objs'
10849           hardcode_direct=no
10850         ;;
10851         motorola)
10852           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10853           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10854         ;;
10855       esac
10856       runpath_var='LD_RUN_PATH'
10857       hardcode_shlibpath_var=no
10858       ;;
10860     sysv4.3*)
10861       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10862       hardcode_shlibpath_var=no
10863       export_dynamic_flag_spec='-Bexport'
10864       ;;
10866     sysv4*MP*)
10867       if test -d /usr/nec; then
10868         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10869         hardcode_shlibpath_var=no
10870         runpath_var=LD_RUN_PATH
10871         hardcode_runpath_var=yes
10872         ld_shlibs=yes
10873       fi
10874       ;;
10876     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10877       no_undefined_flag='${wl}-z,text'
10878       archive_cmds_need_lc=no
10879       hardcode_shlibpath_var=no
10880       runpath_var='LD_RUN_PATH'
10882       if test "$GCC" = yes; then
10883         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10884         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10885       else
10886         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10887         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10888       fi
10889       ;;
10891     sysv5* | sco3.2v5* | sco5v6*)
10892       # Note: We can NOT use -z defs as we might desire, because we do not
10893       # link with -lc, and that would cause any symbols used from libc to
10894       # always be unresolved, which means just about no library would
10895       # ever link correctly.  If we're not using GNU ld we use -z text
10896       # though, which does catch some bad symbols but isn't as heavy-handed
10897       # as -z defs.
10898       no_undefined_flag='${wl}-z,text'
10899       allow_undefined_flag='${wl}-z,nodefs'
10900       archive_cmds_need_lc=no
10901       hardcode_shlibpath_var=no
10902       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10903       hardcode_libdir_separator=':'
10904       link_all_deplibs=yes
10905       export_dynamic_flag_spec='${wl}-Bexport'
10906       runpath_var='LD_RUN_PATH'
10908       if test "$GCC" = yes; then
10909         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10910         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10911       else
10912         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10913         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10914       fi
10915       ;;
10917     uts4*)
10918       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10919       hardcode_libdir_flag_spec='-L$libdir'
10920       hardcode_shlibpath_var=no
10921       ;;
10923     *)
10924       ld_shlibs=no
10925       ;;
10926     esac
10928     if test x$host_vendor = xsni; then
10929       case $host in
10930       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10931         export_dynamic_flag_spec='${wl}-Blargedynsym'
10932         ;;
10933       esac
10934     fi
10935   fi
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10938 $as_echo "$ld_shlibs" >&6; }
10939 test "$ld_shlibs" = no && can_build_shared=no
10941 with_gnu_ld=$with_gnu_ld
10944     
10945     
10946     
10948     
10949     
10950     
10952     
10953     
10954     
10958 # Do we need to explicitly link libc?
10960 case "x$archive_cmds_need_lc" in
10961 x|xyes)
10962   # Assume -lc should be added
10963   archive_cmds_need_lc=yes
10965   if test "$enable_shared" = yes && test "$GCC" = yes; then
10966     case $archive_cmds in
10967     *'~'*)
10968       # FIXME: we may have to deal with multi-command sequences.
10969       ;;
10970     '$CC '*)
10971       # Test whether the compiler implicitly links with -lc since on some
10972       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10973       # to ld, don't add -lc before -lgcc.
10974       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10975 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10976 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10977   $as_echo_n "(cached) " >&6
10978 else
10979   $RM conftest*
10980         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10982         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10983   (eval $ac_compile) 2>&5
10984   ac_status=$?
10985   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10986   test $ac_status = 0; } 2>conftest.err; then
10987           soname=conftest
10988           lib=conftest
10989           libobjs=conftest.$ac_objext
10990           deplibs=
10991           wl=$lt_prog_compiler_wl
10992           pic_flag=$lt_prog_compiler_pic
10993           compiler_flags=-v
10994           linker_flags=-v
10995           verstring=
10996           output_objdir=.
10997           libname=conftest
10998           lt_save_allow_undefined_flag=$allow_undefined_flag
10999           allow_undefined_flag=
11000           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11001   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11002   ac_status=$?
11003   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11004   test $ac_status = 0; }
11005           then
11006             lt_cv_archive_cmds_need_lc=no
11007           else
11008             lt_cv_archive_cmds_need_lc=yes
11009           fi
11010           allow_undefined_flag=$lt_save_allow_undefined_flag
11011         else
11012           cat conftest.err 1>&5
11013         fi
11014         $RM conftest*
11015         
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11018 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11019       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11020       ;;
11021     esac
11022   fi
11023   ;;
11024 esac
11027     
11028     
11029     
11032     
11033     
11034     
11037     
11038     
11039     
11042     
11043     
11044     
11047     
11048     
11049     
11052     
11053     
11054     
11057     
11058     
11059     
11062     
11063     
11064     
11067     
11068     
11069     
11072     
11073     
11074     
11077     
11078     
11079     
11082     
11083     
11084     
11087     
11088     
11089     
11092     
11093     
11094     
11097     
11098     
11099     
11102     
11103     
11104     
11107     
11108     
11109     
11112     
11113     
11114     
11117     
11118     
11119     
11122     
11123     
11124     
11127     
11128     
11129     
11132     
11133     
11134     
11137     
11138     
11139     
11142     
11143     
11144     
11147     
11148     
11149     
11152     
11153     
11154     
11157     
11158     
11159     
11162     
11163     
11164     
11167     
11168     
11169     
11172     
11173     
11174     
11177     
11178     
11179     
11182   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11183 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11185 if test "$GCC" = yes; then
11186   case $host_os in
11187     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11188     *) lt_awk_arg="/^libraries:/" ;;
11189   esac
11190   case $host_os in
11191     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11192     *) lt_sed_strip_eq="s,=/,/,g" ;;
11193   esac
11194   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11195   case $lt_search_path_spec in
11196   *\;*)
11197     # if the path contains ";" then we assume it to be the separator
11198     # otherwise default to the standard path separator (i.e. ":") - it is
11199     # assumed that no part of a normal pathname contains ";" but that should
11200     # okay in the real world where ";" in dirpaths is itself problematic.
11201     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11202     ;;
11203   *)
11204     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11205     ;;
11206   esac
11207   # Ok, now we have the path, separated by spaces, we can step through it
11208   # and add multilib dir if necessary.
11209   lt_tmp_lt_search_path_spec=
11210   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11211   for lt_sys_path in $lt_search_path_spec; do
11212     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11213       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11214     else
11215       test -d "$lt_sys_path" && \
11216         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11217     fi
11218   done
11219   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11220 BEGIN {RS=" "; FS="/|\n";} {
11221   lt_foo="";
11222   lt_count=0;
11223   for (lt_i = NF; lt_i > 0; lt_i--) {
11224     if ($lt_i != "" && $lt_i != ".") {
11225       if ($lt_i == "..") {
11226         lt_count++;
11227       } else {
11228         if (lt_count == 0) {
11229           lt_foo="/" $lt_i lt_foo;
11230         } else {
11231           lt_count--;
11232         }
11233       }
11234     }
11235   }
11236   if (lt_foo != "") { lt_freq[lt_foo]++; }
11237   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11239   # AWK program above erroneously prepends '/' to C:/dos/paths
11240   # for these hosts.
11241   case $host_os in
11242     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11243       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11244   esac
11245   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11246 else
11247   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11249 library_names_spec=
11250 libname_spec='lib$name'
11251 soname_spec=
11252 shrext_cmds=".so"
11253 postinstall_cmds=
11254 postuninstall_cmds=
11255 finish_cmds=
11256 finish_eval=
11257 shlibpath_var=
11258 shlibpath_overrides_runpath=unknown
11259 version_type=none
11260 dynamic_linker="$host_os ld.so"
11261 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11262 need_lib_prefix=unknown
11263 hardcode_into_libs=no
11265 # when you set need_version to no, make sure it does not cause -set_version
11266 # flags to be left without arguments
11267 need_version=unknown
11269 case $host_os in
11270 aix3*)
11271   version_type=linux
11272   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11273   shlibpath_var=LIBPATH
11275   # AIX 3 has no versioning support, so we append a major version to the name.
11276   soname_spec='${libname}${release}${shared_ext}$major'
11277   ;;
11279 aix[4-9]*)
11280   version_type=linux
11281   need_lib_prefix=no
11282   need_version=no
11283   hardcode_into_libs=yes
11284   if test "$host_cpu" = ia64; then
11285     # AIX 5 supports IA64
11286     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11287     shlibpath_var=LD_LIBRARY_PATH
11288   else
11289     # With GCC up to 2.95.x, collect2 would create an import file
11290     # for dependence libraries.  The import file would start with
11291     # the line `#! .'.  This would cause the generated library to
11292     # depend on `.', always an invalid library.  This was fixed in
11293     # development snapshots of GCC prior to 3.0.
11294     case $host_os in
11295       aix4 | aix4.[01] | aix4.[01].*)
11296       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11297            echo ' yes '
11298            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11299         :
11300       else
11301         can_build_shared=no
11302       fi
11303       ;;
11304     esac
11305     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11306     # soname into executable. Probably we can add versioning support to
11307     # collect2, so additional links can be useful in future.
11308     if test "$aix_use_runtimelinking" = yes; then
11309       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11310       # instead of lib<name>.a to let people know that these are not
11311       # typical AIX shared libraries.
11312       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11313     else
11314       # We preserve .a as extension for shared libraries through AIX4.2
11315       # and later when we are not doing run time linking.
11316       library_names_spec='${libname}${release}.a $libname.a'
11317       soname_spec='${libname}${release}${shared_ext}$major'
11318     fi
11319     shlibpath_var=LIBPATH
11320   fi
11321   ;;
11323 amigaos*)
11324   case $host_cpu in
11325   powerpc)
11326     # Since July 2007 AmigaOS4 officially supports .so libraries.
11327     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11328     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11329     ;;
11330   m68k)
11331     library_names_spec='$libname.ixlibrary $libname.a'
11332     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11333     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11334     ;;
11335   esac
11336   ;;
11338 beos*)
11339   library_names_spec='${libname}${shared_ext}'
11340   dynamic_linker="$host_os ld.so"
11341   shlibpath_var=LIBRARY_PATH
11342   ;;
11344 bsdi[45]*)
11345   version_type=linux
11346   need_version=no
11347   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11348   soname_spec='${libname}${release}${shared_ext}$major'
11349   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11350   shlibpath_var=LD_LIBRARY_PATH
11351   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11352   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11353   # the default ld.so.conf also contains /usr/contrib/lib and
11354   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11355   # libtool to hard-code these into programs
11356   ;;
11358 cygwin* | mingw* | pw32* | cegcc*)
11359   version_type=windows
11360   shrext_cmds=".dll"
11361   need_version=no
11362   need_lib_prefix=no
11364   case $GCC,$cc_basename in
11365   yes,*)
11366     # gcc
11367     library_names_spec='$libname.dll.a'
11368     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11369     postinstall_cmds='base_file=`basename \${file}`~
11370       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11371       dldir=$destdir/`dirname \$dlpath`~
11372       test -d \$dldir || mkdir -p \$dldir~
11373       $install_prog $dir/$dlname \$dldir/$dlname~
11374       chmod a+x \$dldir/$dlname~
11375       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11376         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11377       fi'
11378     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11379       dlpath=$dir/\$dldll~
11380        $RM \$dlpath'
11381     shlibpath_overrides_runpath=yes
11383     case $host_os in
11384     cygwin*)
11385       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11386       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11388       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11389       ;;
11390     mingw* | cegcc*)
11391       # MinGW DLLs use traditional 'lib' prefix
11392       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11393       ;;
11394     pw32*)
11395       # pw32 DLLs use 'pw' prefix rather than 'lib'
11396       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11397       ;;
11398     esac
11399     dynamic_linker='Win32 ld.exe'
11400     ;;
11402   *,cl*)
11403     # Native MSVC
11404     libname_spec='$name'
11405     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11406     library_names_spec='${libname}.dll.lib'
11408     case $build_os in
11409     mingw*)
11410       sys_lib_search_path_spec=
11411       lt_save_ifs=$IFS
11412       IFS=';'
11413       for lt_path in $LIB
11414       do
11415         IFS=$lt_save_ifs
11416         # Let DOS variable expansion print the short 8.3 style file name.
11417         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11418         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11419       done
11420       IFS=$lt_save_ifs
11421       # Convert to MSYS style.
11422       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11423       ;;
11424     cygwin*)
11425       # Convert to unix form, then to dos form, then back to unix form
11426       # but this time dos style (no spaces!) so that the unix form looks
11427       # like /cygdrive/c/PROGRA~1:/cygdr...
11428       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11429       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11430       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11431       ;;
11432     *)
11433       sys_lib_search_path_spec="$LIB"
11434       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11435         # It is most probably a Windows format PATH.
11436         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11437       else
11438         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11439       fi
11440       # FIXME: find the short name or the path components, as spaces are
11441       # common. (e.g. "Program Files" -> "PROGRA~1")
11442       ;;
11443     esac
11445     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11446     postinstall_cmds='base_file=`basename \${file}`~
11447       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11448       dldir=$destdir/`dirname \$dlpath`~
11449       test -d \$dldir || mkdir -p \$dldir~
11450       $install_prog $dir/$dlname \$dldir/$dlname'
11451     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11452       dlpath=$dir/\$dldll~
11453        $RM \$dlpath'
11454     shlibpath_overrides_runpath=yes
11455     dynamic_linker='Win32 link.exe'
11456     ;;
11458   *)
11459     # Assume MSVC wrapper
11460     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11461     dynamic_linker='Win32 ld.exe'
11462     ;;
11463   esac
11464   # FIXME: first we should search . and the directory the executable is in
11465   shlibpath_var=PATH
11466   ;;
11468 darwin* | rhapsody*)
11469   dynamic_linker="$host_os dyld"
11470   version_type=darwin
11471   need_lib_prefix=no
11472   need_version=no
11473   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11474   soname_spec='${libname}${release}${major}$shared_ext'
11475   shlibpath_overrides_runpath=yes
11476   shlibpath_var=DYLD_LIBRARY_PATH
11477   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11479   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11480   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11481   ;;
11483 dgux*)
11484   version_type=linux
11485   need_lib_prefix=no
11486   need_version=no
11487   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11488   soname_spec='${libname}${release}${shared_ext}$major'
11489   shlibpath_var=LD_LIBRARY_PATH
11490   ;;
11492 freebsd1*)
11493   dynamic_linker=no
11494   ;;
11496 freebsd* | dragonfly*)
11497   # DragonFly does not have aout.  When/if they implement a new
11498   # versioning mechanism, adjust this.
11499   if test -x /usr/bin/objformat; then
11500     objformat=`/usr/bin/objformat`
11501   else
11502     case $host_os in
11503     freebsd[123]*) objformat=aout ;;
11504     *) objformat=elf ;;
11505     esac
11506   fi
11507   # Handle Gentoo/FreeBSD as it was Linux
11508   case $host_vendor in
11509     gentoo)
11510       version_type=linux ;;
11511     *)
11512       version_type=freebsd-$objformat ;;
11513   esac
11515   case $version_type in
11516     freebsd-elf*)
11517       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11518       need_version=no
11519       need_lib_prefix=no
11520       ;;
11521     freebsd-*)
11522       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11523       need_version=yes
11524       ;;
11525     linux)
11526       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11527       soname_spec='${libname}${release}${shared_ext}$major'
11528       need_lib_prefix=no
11529       need_version=no
11530       ;;
11531   esac
11532   shlibpath_var=LD_LIBRARY_PATH
11533   case $host_os in
11534   freebsd2*)
11535     shlibpath_overrides_runpath=yes
11536     ;;
11537   freebsd3.[01]* | freebsdelf3.[01]*)
11538     shlibpath_overrides_runpath=yes
11539     hardcode_into_libs=yes
11540     ;;
11541   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11542   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11543     shlibpath_overrides_runpath=no
11544     hardcode_into_libs=yes
11545     ;;
11546   *) # from 4.6 on, and DragonFly
11547     shlibpath_overrides_runpath=yes
11548     hardcode_into_libs=yes
11549     ;;
11550   esac
11551   ;;
11553 gnu*)
11554   version_type=linux
11555   need_lib_prefix=no
11556   need_version=no
11557   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11558   soname_spec='${libname}${release}${shared_ext}$major'
11559   shlibpath_var=LD_LIBRARY_PATH
11560   hardcode_into_libs=yes
11561   ;;
11563 haiku*)
11564   version_type=linux
11565   need_lib_prefix=no
11566   need_version=no
11567   dynamic_linker="$host_os runtime_loader"
11568   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11569   soname_spec='${libname}${release}${shared_ext}$major'
11570   shlibpath_var=LIBRARY_PATH
11571   shlibpath_overrides_runpath=yes
11572   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11573   hardcode_into_libs=yes
11574   ;;
11576 hpux9* | hpux10* | hpux11*)
11577   # Give a soname corresponding to the major version so that dld.sl refuses to
11578   # link against other versions.
11579   version_type=sunos
11580   need_lib_prefix=no
11581   need_version=no
11582   case $host_cpu in
11583   ia64*)
11584     shrext_cmds='.so'
11585     hardcode_into_libs=yes
11586     dynamic_linker="$host_os dld.so"
11587     shlibpath_var=LD_LIBRARY_PATH
11588     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11589     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11590     soname_spec='${libname}${release}${shared_ext}$major'
11591     if test "X$HPUX_IA64_MODE" = X32; then
11592       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11593     else
11594       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11595     fi
11596     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11597     ;;
11598   hppa*64*)
11599     shrext_cmds='.sl'
11600     hardcode_into_libs=yes
11601     dynamic_linker="$host_os dld.sl"
11602     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11603     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11604     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11605     soname_spec='${libname}${release}${shared_ext}$major'
11606     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11607     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11608     ;;
11609   *)
11610     shrext_cmds='.sl'
11611     dynamic_linker="$host_os dld.sl"
11612     shlibpath_var=SHLIB_PATH
11613     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11614     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11615     soname_spec='${libname}${release}${shared_ext}$major'
11616     ;;
11617   esac
11618   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11619   postinstall_cmds='chmod 555 $lib'
11620   # or fails outright, so override atomically:
11621   install_override_mode=555
11622   ;;
11624 interix[3-9]*)
11625   version_type=linux
11626   need_lib_prefix=no
11627   need_version=no
11628   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11629   soname_spec='${libname}${release}${shared_ext}$major'
11630   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11631   shlibpath_var=LD_LIBRARY_PATH
11632   shlibpath_overrides_runpath=no
11633   hardcode_into_libs=yes
11634   ;;
11636 irix5* | irix6* | nonstopux*)
11637   case $host_os in
11638     nonstopux*) version_type=nonstopux ;;
11639     *)
11640         if test "$lt_cv_prog_gnu_ld" = yes; then
11641                 version_type=linux
11642         else
11643                 version_type=irix
11644         fi ;;
11645   esac
11646   need_lib_prefix=no
11647   need_version=no
11648   soname_spec='${libname}${release}${shared_ext}$major'
11649   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11650   case $host_os in
11651   irix5* | nonstopux*)
11652     libsuff= shlibsuff=
11653     ;;
11654   *)
11655     case $LD in # libtool.m4 will add one of these switches to LD
11656     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11657       libsuff= shlibsuff= libmagic=32-bit;;
11658     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11659       libsuff=32 shlibsuff=N32 libmagic=N32;;
11660     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11661       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11662     *) libsuff= shlibsuff= libmagic=never-match;;
11663     esac
11664     ;;
11665   esac
11666   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11667   shlibpath_overrides_runpath=no
11668   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11669   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11670   hardcode_into_libs=yes
11671   ;;
11673 # No shared lib support for Linux oldld, aout, or coff.
11674 linux*oldld* | linux*aout* | linux*coff*)
11675   dynamic_linker=no
11676   ;;
11678 # This must be Linux ELF.
11679 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11680   version_type=linux
11681   need_lib_prefix=no
11682   need_version=no
11683   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11684   soname_spec='${libname}${release}${shared_ext}$major'
11685   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11686   shlibpath_var=LD_LIBRARY_PATH
11687   shlibpath_overrides_runpath=no
11689   # Some binutils ld are patched to set DT_RUNPATH
11690   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11691   $as_echo_n "(cached) " >&6
11692 else
11693   lt_cv_shlibpath_overrides_runpath=no
11694     save_LDFLAGS=$LDFLAGS
11695     save_libdir=$libdir
11696     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11697          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11698     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11699 /* end confdefs.h.  */
11702 main ()
11705   ;
11706   return 0;
11708 _ACEOF
11709 if ac_fn_c_try_link "$LINENO"; then :
11710   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11711   lt_cv_shlibpath_overrides_runpath=yes
11714 rm -f core conftest.err conftest.$ac_objext \
11715     conftest$ac_exeext conftest.$ac_ext
11716     LDFLAGS=$save_LDFLAGS
11717     libdir=$save_libdir
11718     
11721   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11723   # This implies no fast_install, which is unacceptable.
11724   # Some rework will be needed to allow for fast_install
11725   # before this can be enabled.
11726   hardcode_into_libs=yes
11728   # Append ld.so.conf contents to the search path
11729   if test -f /etc/ld.so.conf; then
11730     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' ' '`
11731     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11732   fi
11734   # We used to test for /lib/ld.so.1 and disable shared libraries on
11735   # powerpc, because MkLinux only supported shared libraries with the
11736   # GNU dynamic linker.  Since this was broken with cross compilers,
11737   # most powerpc-linux boxes support dynamic linking these days and
11738   # people can always --disable-shared, the test was removed, and we
11739   # assume the GNU/Linux dynamic linker is in use.
11740   dynamic_linker='GNU/Linux ld.so'
11741   ;;
11743 netbsd*)
11744   version_type=sunos
11745   need_lib_prefix=no
11746   need_version=no
11747   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11748     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11749     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11750     dynamic_linker='NetBSD (a.out) ld.so'
11751   else
11752     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11753     soname_spec='${libname}${release}${shared_ext}$major'
11754     dynamic_linker='NetBSD ld.elf_so'
11755   fi
11756   shlibpath_var=LD_LIBRARY_PATH
11757   shlibpath_overrides_runpath=yes
11758   hardcode_into_libs=yes
11759   ;;
11761 newsos6)
11762   version_type=linux
11763   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11764   shlibpath_var=LD_LIBRARY_PATH
11765   shlibpath_overrides_runpath=yes
11766   ;;
11768 *nto* | *qnx*)
11769   version_type=qnx
11770   need_lib_prefix=no
11771   need_version=no
11772   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11773   soname_spec='${libname}${release}${shared_ext}$major'
11774   shlibpath_var=LD_LIBRARY_PATH
11775   shlibpath_overrides_runpath=no
11776   hardcode_into_libs=yes
11777   dynamic_linker='ldqnx.so'
11778   ;;
11780 openbsd*)
11781   version_type=sunos
11782   sys_lib_dlsearch_path_spec="/usr/lib"
11783   need_lib_prefix=no
11784   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11785   case $host_os in
11786     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11787     *)                          need_version=no  ;;
11788   esac
11789   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11790   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11791   shlibpath_var=LD_LIBRARY_PATH
11792   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11793     case $host_os in
11794       openbsd2.[89] | openbsd2.[89].*)
11795         shlibpath_overrides_runpath=no
11796         ;;
11797       *)
11798         shlibpath_overrides_runpath=yes
11799         ;;
11800       esac
11801   else
11802     shlibpath_overrides_runpath=yes
11803   fi
11804   ;;
11806 os2*)
11807   libname_spec='$name'
11808   shrext_cmds=".dll"
11809   need_lib_prefix=no
11810   library_names_spec='$libname${shared_ext} $libname.a'
11811   dynamic_linker='OS/2 ld.exe'
11812   shlibpath_var=LIBPATH
11813   ;;
11815 osf3* | osf4* | osf5*)
11816   version_type=osf
11817   need_lib_prefix=no
11818   need_version=no
11819   soname_spec='${libname}${release}${shared_ext}$major'
11820   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11821   shlibpath_var=LD_LIBRARY_PATH
11822   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11823   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11824   ;;
11826 rdos*)
11827   dynamic_linker=no
11828   ;;
11830 solaris*)
11831   version_type=linux
11832   need_lib_prefix=no
11833   need_version=no
11834   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11835   soname_spec='${libname}${release}${shared_ext}$major'
11836   shlibpath_var=LD_LIBRARY_PATH
11837   shlibpath_overrides_runpath=yes
11838   hardcode_into_libs=yes
11839   # ldd complains unless libraries are executable
11840   postinstall_cmds='chmod +x $lib'
11841   ;;
11843 sunos4*)
11844   version_type=sunos
11845   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11846   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11847   shlibpath_var=LD_LIBRARY_PATH
11848   shlibpath_overrides_runpath=yes
11849   if test "$with_gnu_ld" = yes; then
11850     need_lib_prefix=no
11851   fi
11852   need_version=yes
11853   ;;
11855 sysv4 | sysv4.3*)
11856   version_type=linux
11857   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11858   soname_spec='${libname}${release}${shared_ext}$major'
11859   shlibpath_var=LD_LIBRARY_PATH
11860   case $host_vendor in
11861     sni)
11862       shlibpath_overrides_runpath=no
11863       need_lib_prefix=no
11864       runpath_var=LD_RUN_PATH
11865       ;;
11866     siemens)
11867       need_lib_prefix=no
11868       ;;
11869     motorola)
11870       need_lib_prefix=no
11871       need_version=no
11872       shlibpath_overrides_runpath=no
11873       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11874       ;;
11875   esac
11876   ;;
11878 sysv4*MP*)
11879   if test -d /usr/nec ;then
11880     version_type=linux
11881     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11882     soname_spec='$libname${shared_ext}.$major'
11883     shlibpath_var=LD_LIBRARY_PATH
11884   fi
11885   ;;
11887 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11888   version_type=freebsd-elf
11889   need_lib_prefix=no
11890   need_version=no
11891   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11892   soname_spec='${libname}${release}${shared_ext}$major'
11893   shlibpath_var=LD_LIBRARY_PATH
11894   shlibpath_overrides_runpath=yes
11895   hardcode_into_libs=yes
11896   if test "$with_gnu_ld" = yes; then
11897     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11898   else
11899     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11900     case $host_os in
11901       sco3.2v5*)
11902         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11903         ;;
11904     esac
11905   fi
11906   sys_lib_dlsearch_path_spec='/usr/lib'
11907   ;;
11909 tpf*)
11910   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11911   version_type=linux
11912   need_lib_prefix=no
11913   need_version=no
11914   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11915   shlibpath_var=LD_LIBRARY_PATH
11916   shlibpath_overrides_runpath=no
11917   hardcode_into_libs=yes
11918   ;;
11920 uts4*)
11921   version_type=linux
11922   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11923   soname_spec='${libname}${release}${shared_ext}$major'
11924   shlibpath_var=LD_LIBRARY_PATH
11925   ;;
11928   dynamic_linker=no
11929   ;;
11930 esac
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11932 $as_echo "$dynamic_linker" >&6; }
11933 test "$dynamic_linker" = no && can_build_shared=no
11935 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11936 if test "$GCC" = yes; then
11937   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11940 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11941   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11943 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11944   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11948     
11949     
11950     
11953     
11954     
11955     
11958     
11959     
11960     
11963     
11964     
11965     
11968     
11969     
11970     
11973     
11974     
11975     
11978     
11979     
11980     
11983     
11984     
11985     
11988     
11989     
11990     
11993     
11994     
11995     
11998     
11999     
12000     
12003     
12004     
12005     
12008     
12009     
12010     
12013     
12014     
12015     
12018     
12019     
12020     
12023     
12024     
12025     
12028     
12029     
12030     
12033     
12034     
12035     
12038   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12039 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12040 hardcode_action=
12041 if test -n "$hardcode_libdir_flag_spec" ||
12042    test -n "$runpath_var" ||
12043    test "X$hardcode_automatic" = "Xyes" ; then
12045   # We can hardcode non-existent directories.
12046   if test "$hardcode_direct" != no &&
12047      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12048      # have to relink, otherwise we might link with an installed library
12049      # when we should be linking with a yet-to-be-installed one
12050      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12051      test "$hardcode_minus_L" != no; then
12052     # Linking always hardcodes the temporary library directory.
12053     hardcode_action=relink
12054   else
12055     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12056     hardcode_action=immediate
12057   fi
12058 else
12059   # We cannot hardcode anything, or else we can only hardcode existing
12060   # directories.
12061   hardcode_action=unsupported
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12064 $as_echo "$hardcode_action" >&6; }
12066 if test "$hardcode_action" = relink ||
12067    test "$inherit_rpath" = yes; then
12068   # Fast installation is not supported
12069   enable_fast_install=no
12070 elif test "$shlibpath_overrides_runpath" = yes ||
12071      test "$enable_shared" = no; then
12072   # Fast installation is not necessary
12073   enable_fast_install=needless
12076     
12077     
12078     
12081   if test "x$enable_dlopen" != xyes; then
12082   enable_dlopen=unknown
12083   enable_dlopen_self=unknown
12084   enable_dlopen_self_static=unknown
12085 else
12086   lt_cv_dlopen=no
12087   lt_cv_dlopen_libs=
12089   case $host_os in
12090   beos*)
12091     lt_cv_dlopen="load_add_on"
12092     lt_cv_dlopen_libs=
12093     lt_cv_dlopen_self=yes
12094     ;;
12096   mingw* | pw32* | cegcc*)
12097     lt_cv_dlopen="LoadLibrary"
12098     lt_cv_dlopen_libs=
12099     ;;
12101   cygwin*)
12102     lt_cv_dlopen="dlopen"
12103     lt_cv_dlopen_libs=
12104     ;;
12106   darwin*)
12107   # if libdl is installed we need to link against it
12108     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12109 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12110 if ${ac_cv_lib_dl_dlopen+:} false; then :
12111   $as_echo_n "(cached) " >&6
12112 else
12113   ac_check_lib_save_LIBS=$LIBS
12114 LIBS="-ldl  $LIBS"
12115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12116 /* end confdefs.h.  */
12118 /* Override any GCC internal prototype to avoid an error.
12119    Use char because int might match the return type of a GCC
12120    builtin and then its argument prototype would still apply.  */
12121 #ifdef __cplusplus
12122 extern "C"
12123 #endif
12124 char dlopen ();
12126 main ()
12128 return dlopen ();
12129   ;
12130   return 0;
12132 _ACEOF
12133 if ac_fn_c_try_link "$LINENO"; then :
12134   ac_cv_lib_dl_dlopen=yes
12135 else
12136   ac_cv_lib_dl_dlopen=no
12138 rm -f core conftest.err conftest.$ac_objext \
12139     conftest$ac_exeext conftest.$ac_ext
12140 LIBS=$ac_check_lib_save_LIBS
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12143 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12144 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12145   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12146 else
12147   
12148     lt_cv_dlopen="dyld"
12149     lt_cv_dlopen_libs=
12150     lt_cv_dlopen_self=yes
12151     
12154     ;;
12156   *)
12157     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12158 if test "x$ac_cv_func_shl_load" = xyes; then :
12159   lt_cv_dlopen="shl_load"
12160 else
12161   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12162 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12163 if ${ac_cv_lib_dld_shl_load+:} false; then :
12164   $as_echo_n "(cached) " >&6
12165 else
12166   ac_check_lib_save_LIBS=$LIBS
12167 LIBS="-ldld  $LIBS"
12168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12169 /* end confdefs.h.  */
12171 /* Override any GCC internal prototype to avoid an error.
12172    Use char because int might match the return type of a GCC
12173    builtin and then its argument prototype would still apply.  */
12174 #ifdef __cplusplus
12175 extern "C"
12176 #endif
12177 char shl_load ();
12179 main ()
12181 return shl_load ();
12182   ;
12183   return 0;
12185 _ACEOF
12186 if ac_fn_c_try_link "$LINENO"; then :
12187   ac_cv_lib_dld_shl_load=yes
12188 else
12189   ac_cv_lib_dld_shl_load=no
12191 rm -f core conftest.err conftest.$ac_objext \
12192     conftest$ac_exeext conftest.$ac_ext
12193 LIBS=$ac_check_lib_save_LIBS
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12196 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12197 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12198   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12199 else
12200   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12201 if test "x$ac_cv_func_dlopen" = xyes; then :
12202   lt_cv_dlopen="dlopen"
12203 else
12204   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12205 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12206 if ${ac_cv_lib_dl_dlopen+:} false; then :
12207   $as_echo_n "(cached) " >&6
12208 else
12209   ac_check_lib_save_LIBS=$LIBS
12210 LIBS="-ldl  $LIBS"
12211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12212 /* end confdefs.h.  */
12214 /* Override any GCC internal prototype to avoid an error.
12215    Use char because int might match the return type of a GCC
12216    builtin and then its argument prototype would still apply.  */
12217 #ifdef __cplusplus
12218 extern "C"
12219 #endif
12220 char dlopen ();
12222 main ()
12224 return dlopen ();
12225   ;
12226   return 0;
12228 _ACEOF
12229 if ac_fn_c_try_link "$LINENO"; then :
12230   ac_cv_lib_dl_dlopen=yes
12231 else
12232   ac_cv_lib_dl_dlopen=no
12234 rm -f core conftest.err conftest.$ac_objext \
12235     conftest$ac_exeext conftest.$ac_ext
12236 LIBS=$ac_check_lib_save_LIBS
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12239 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12240 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12241   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12242 else
12243   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12244 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12245 if ${ac_cv_lib_svld_dlopen+:} false; then :
12246   $as_echo_n "(cached) " >&6
12247 else
12248   ac_check_lib_save_LIBS=$LIBS
12249 LIBS="-lsvld  $LIBS"
12250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12251 /* end confdefs.h.  */
12253 /* Override any GCC internal prototype to avoid an error.
12254    Use char because int might match the return type of a GCC
12255    builtin and then its argument prototype would still apply.  */
12256 #ifdef __cplusplus
12257 extern "C"
12258 #endif
12259 char dlopen ();
12261 main ()
12263 return dlopen ();
12264   ;
12265   return 0;
12267 _ACEOF
12268 if ac_fn_c_try_link "$LINENO"; then :
12269   ac_cv_lib_svld_dlopen=yes
12270 else
12271   ac_cv_lib_svld_dlopen=no
12273 rm -f core conftest.err conftest.$ac_objext \
12274     conftest$ac_exeext conftest.$ac_ext
12275 LIBS=$ac_check_lib_save_LIBS
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12278 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12279 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12280   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12281 else
12282   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12283 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12284 if ${ac_cv_lib_dld_dld_link+:} false; then :
12285   $as_echo_n "(cached) " >&6
12286 else
12287   ac_check_lib_save_LIBS=$LIBS
12288 LIBS="-ldld  $LIBS"
12289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12290 /* end confdefs.h.  */
12292 /* Override any GCC internal prototype to avoid an error.
12293    Use char because int might match the return type of a GCC
12294    builtin and then its argument prototype would still apply.  */
12295 #ifdef __cplusplus
12296 extern "C"
12297 #endif
12298 char dld_link ();
12300 main ()
12302 return dld_link ();
12303   ;
12304   return 0;
12306 _ACEOF
12307 if ac_fn_c_try_link "$LINENO"; then :
12308   ac_cv_lib_dld_dld_link=yes
12309 else
12310   ac_cv_lib_dld_dld_link=no
12312 rm -f core conftest.err conftest.$ac_objext \
12313     conftest$ac_exeext conftest.$ac_ext
12314 LIBS=$ac_check_lib_save_LIBS
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12317 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12318 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12319   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12322               
12325             
12328           
12331         
12334       
12337     ;;
12338   esac
12340   if test "x$lt_cv_dlopen" != xno; then
12341     enable_dlopen=yes
12342   else
12343     enable_dlopen=no
12344   fi
12346   case $lt_cv_dlopen in
12347   dlopen)
12348     save_CPPFLAGS="$CPPFLAGS"
12349     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12351     save_LDFLAGS="$LDFLAGS"
12352     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12354     save_LIBS="$LIBS"
12355     LIBS="$lt_cv_dlopen_libs $LIBS"
12357     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12358 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12359 if ${lt_cv_dlopen_self+:} false; then :
12360   $as_echo_n "(cached) " >&6
12361 else
12362           if test "$cross_compiling" = yes; then :
12363   lt_cv_dlopen_self=cross
12364 else
12365   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12366   lt_status=$lt_dlunknown
12367   cat > conftest.$ac_ext <<_LT_EOF
12368 #line $LINENO "configure"
12369 #include "confdefs.h"
12371 #if HAVE_DLFCN_H
12372 #include <dlfcn.h>
12373 #endif
12375 #include <stdio.h>
12377 #ifdef RTLD_GLOBAL
12378 #  define LT_DLGLOBAL           RTLD_GLOBAL
12379 #else
12380 #  ifdef DL_GLOBAL
12381 #    define LT_DLGLOBAL         DL_GLOBAL
12382 #  else
12383 #    define LT_DLGLOBAL         0
12384 #  endif
12385 #endif
12387 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12388    find out it does not work in some platform. */
12389 #ifndef LT_DLLAZY_OR_NOW
12390 #  ifdef RTLD_LAZY
12391 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12392 #  else
12393 #    ifdef DL_LAZY
12394 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12395 #    else
12396 #      ifdef RTLD_NOW
12397 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12398 #      else
12399 #        ifdef DL_NOW
12400 #          define LT_DLLAZY_OR_NOW      DL_NOW
12401 #        else
12402 #          define LT_DLLAZY_OR_NOW      0
12403 #        endif
12404 #      endif
12405 #    endif
12406 #  endif
12407 #endif
12409 /* When -fvisbility=hidden is used, assume the code has been annotated
12410    correspondingly for the symbols needed.  */
12411 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12412 int fnord () __attribute__((visibility("default")));
12413 #endif
12415 int fnord () { return 42; }
12416 int main ()
12418   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12419   int status = $lt_dlunknown;
12421   if (self)
12422     {
12423       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12424       else
12425         {
12426           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12427           else puts (dlerror ());
12428         }
12429       /* dlclose (self); */
12430     }
12431   else
12432     puts (dlerror ());
12434   return status;
12436 _LT_EOF
12437   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12438   (eval $ac_link) 2>&5
12439   ac_status=$?
12440   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12441   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12442     (./conftest; exit; ) >&5 2>/dev/null
12443     lt_status=$?
12444     case x$lt_status in
12445       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12446       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12447       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12448     esac
12449   else :
12450     # compilation failed
12451     lt_cv_dlopen_self=no
12452   fi
12454 rm -fr conftest*
12456     
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12459 $as_echo "$lt_cv_dlopen_self" >&6; }
12461     if test "x$lt_cv_dlopen_self" = xyes; then
12462       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12463       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12464 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12465 if ${lt_cv_dlopen_self_static+:} false; then :
12466   $as_echo_n "(cached) " >&6
12467 else
12468           if test "$cross_compiling" = yes; then :
12469   lt_cv_dlopen_self_static=cross
12470 else
12471   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12472   lt_status=$lt_dlunknown
12473   cat > conftest.$ac_ext <<_LT_EOF
12474 #line $LINENO "configure"
12475 #include "confdefs.h"
12477 #if HAVE_DLFCN_H
12478 #include <dlfcn.h>
12479 #endif
12481 #include <stdio.h>
12483 #ifdef RTLD_GLOBAL
12484 #  define LT_DLGLOBAL           RTLD_GLOBAL
12485 #else
12486 #  ifdef DL_GLOBAL
12487 #    define LT_DLGLOBAL         DL_GLOBAL
12488 #  else
12489 #    define LT_DLGLOBAL         0
12490 #  endif
12491 #endif
12493 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12494    find out it does not work in some platform. */
12495 #ifndef LT_DLLAZY_OR_NOW
12496 #  ifdef RTLD_LAZY
12497 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12498 #  else
12499 #    ifdef DL_LAZY
12500 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12501 #    else
12502 #      ifdef RTLD_NOW
12503 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12504 #      else
12505 #        ifdef DL_NOW
12506 #          define LT_DLLAZY_OR_NOW      DL_NOW
12507 #        else
12508 #          define LT_DLLAZY_OR_NOW      0
12509 #        endif
12510 #      endif
12511 #    endif
12512 #  endif
12513 #endif
12515 /* When -fvisbility=hidden is used, assume the code has been annotated
12516    correspondingly for the symbols needed.  */
12517 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12518 int fnord () __attribute__((visibility("default")));
12519 #endif
12521 int fnord () { return 42; }
12522 int main ()
12524   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12525   int status = $lt_dlunknown;
12527   if (self)
12528     {
12529       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12530       else
12531         {
12532           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12533           else puts (dlerror ());
12534         }
12535       /* dlclose (self); */
12536     }
12537   else
12538     puts (dlerror ());
12540   return status;
12542 _LT_EOF
12543   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12544   (eval $ac_link) 2>&5
12545   ac_status=$?
12546   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12547   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12548     (./conftest; exit; ) >&5 2>/dev/null
12549     lt_status=$?
12550     case x$lt_status in
12551       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12552       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12553       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12554     esac
12555   else :
12556     # compilation failed
12557     lt_cv_dlopen_self_static=no
12558   fi
12560 rm -fr conftest*
12562       
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12565 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12566     fi
12568     CPPFLAGS="$save_CPPFLAGS"
12569     LDFLAGS="$save_LDFLAGS"
12570     LIBS="$save_LIBS"
12571     ;;
12572   esac
12574   case $lt_cv_dlopen_self in
12575   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12576   *) enable_dlopen_self=unknown ;;
12577   esac
12579   case $lt_cv_dlopen_self_static in
12580   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12581   *) enable_dlopen_self_static=unknown ;;
12582   esac
12585     
12586     
12587     
12590     
12591     
12592     
12595     
12596     
12597     
12600   
12601 striplib=
12602 old_striplib=
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12604 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12605 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12606   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12607   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12609 $as_echo "yes" >&6; }
12610 else
12611 # FIXME - insert some real tests, host_os isn't really good enough
12612   case $host_os in
12613   darwin*)
12614     if test -n "$STRIP" ; then
12615       striplib="$STRIP -x"
12616       old_striplib="$STRIP -S"
12617       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12618 $as_echo "yes" >&6; }
12619     else
12620       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12621 $as_echo "no" >&6; }
12622     fi
12623     ;;
12624   *)
12625     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12626 $as_echo "no" >&6; }
12627     ;;
12628   esac
12631     
12632     
12633     
12636     
12637     
12638     
12642   # Report which library types will actually be built
12643   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12644 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12646 $as_echo "$can_build_shared" >&6; }
12648   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12649 $as_echo_n "checking whether to build shared libraries... " >&6; }
12650   test "$can_build_shared" = "no" && enable_shared=no
12652   # On AIX, shared libraries and static libraries use the same namespace, and
12653   # are all built from PIC.
12654   case $host_os in
12655   aix3*)
12656     test "$enable_shared" = yes && enable_static=no
12657     if test -n "$RANLIB"; then
12658       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12659       postinstall_cmds='$RANLIB $lib'
12660     fi
12661     ;;
12663   aix[4-9]*)
12664     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12665       test "$enable_shared" = yes && enable_static=no
12666     fi
12667     ;;
12668   esac
12669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12670 $as_echo "$enable_shared" >&6; }
12672   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12673 $as_echo_n "checking whether to build static libraries... " >&6; }
12674   # Make sure either enable_shared or enable_static is yes.
12675   test "$enable_shared" = yes || enable_static=yes
12676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12677 $as_echo "$enable_static" >&6; }
12679   
12683 ac_ext=c
12684 ac_cpp='$CPP $CPPFLAGS'
12685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12689 CC="$lt_save_CC"
12691       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12692     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12693     (test "X$CXX" != "Xg++"))) ; then
12694   ac_ext=cpp
12695 ac_cpp='$CXXCPP $CPPFLAGS'
12696 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12697 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12698 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12700 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12701 if test -z "$CXXCPP"; then
12702   if ${ac_cv_prog_CXXCPP+:} false; then :
12703   $as_echo_n "(cached) " >&6
12704 else
12705       # Double quotes because CXXCPP needs to be expanded
12706     for CXXCPP in "$CXX -E" "/lib/cpp"
12707     do
12708       ac_preproc_ok=false
12709 for ac_cxx_preproc_warn_flag in '' yes
12711   # Use a header file that comes with gcc, so configuring glibc
12712   # with a fresh cross-compiler works.
12713   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12714   # <limits.h> exists even on freestanding compilers.
12715   # On the NeXT, cc -E runs the code through the compiler's parser,
12716   # not just through cpp. "Syntax error" is here to catch this case.
12717   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12718 /* end confdefs.h.  */
12719 @%:@ifdef __STDC__
12720 @%:@ include <limits.h>
12721 @%:@else
12722 @%:@ include <assert.h>
12723 @%:@endif
12724                      Syntax error
12725 _ACEOF
12726 if ac_fn_cxx_try_cpp "$LINENO"; then :
12727   
12728 else
12729   # Broken: fails on valid input.
12730 continue
12732 rm -f conftest.err conftest.i conftest.$ac_ext
12734   # OK, works on sane cases.  Now check whether nonexistent headers
12735   # can be detected and how.
12736   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12737 /* end confdefs.h.  */
12738 @%:@include <ac_nonexistent.h>
12739 _ACEOF
12740 if ac_fn_cxx_try_cpp "$LINENO"; then :
12741   # Broken: success on invalid input.
12742 continue
12743 else
12744   # Passes both tests.
12745 ac_preproc_ok=:
12746 break
12748 rm -f conftest.err conftest.i conftest.$ac_ext
12750 done
12751 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12752 rm -f conftest.i conftest.err conftest.$ac_ext
12753 if $ac_preproc_ok; then :
12754   break
12757     done
12758     ac_cv_prog_CXXCPP=$CXXCPP
12759   
12761   CXXCPP=$ac_cv_prog_CXXCPP
12762 else
12763   ac_cv_prog_CXXCPP=$CXXCPP
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12766 $as_echo "$CXXCPP" >&6; }
12767 ac_preproc_ok=false
12768 for ac_cxx_preproc_warn_flag in '' yes
12770   # Use a header file that comes with gcc, so configuring glibc
12771   # with a fresh cross-compiler works.
12772   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12773   # <limits.h> exists even on freestanding compilers.
12774   # On the NeXT, cc -E runs the code through the compiler's parser,
12775   # not just through cpp. "Syntax error" is here to catch this case.
12776   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12777 /* end confdefs.h.  */
12778 @%:@ifdef __STDC__
12779 @%:@ include <limits.h>
12780 @%:@else
12781 @%:@ include <assert.h>
12782 @%:@endif
12783                      Syntax error
12784 _ACEOF
12785 if ac_fn_cxx_try_cpp "$LINENO"; then :
12786   
12787 else
12788   # Broken: fails on valid input.
12789 continue
12791 rm -f conftest.err conftest.i conftest.$ac_ext
12793   # OK, works on sane cases.  Now check whether nonexistent headers
12794   # can be detected and how.
12795   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12796 /* end confdefs.h.  */
12797 @%:@include <ac_nonexistent.h>
12798 _ACEOF
12799 if ac_fn_cxx_try_cpp "$LINENO"; then :
12800   # Broken: success on invalid input.
12801 continue
12802 else
12803   # Passes both tests.
12804 ac_preproc_ok=:
12805 break
12807 rm -f conftest.err conftest.i conftest.$ac_ext
12809 done
12810 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12811 rm -f conftest.i conftest.err conftest.$ac_ext
12812 if $ac_preproc_ok; then :
12813   
12814 else
12815   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12816 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12817 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12818 See \`config.log' for more details" "$LINENO" 5; }
12821 ac_ext=c
12822 ac_cpp='$CPP $CPPFLAGS'
12823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12827 else
12828   _lt_caught_CXX_error=yes
12831 ac_ext=cpp
12832 ac_cpp='$CXXCPP $CPPFLAGS'
12833 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12834 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12835 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12837 archive_cmds_need_lc_CXX=no
12838 allow_undefined_flag_CXX=
12839 always_export_symbols_CXX=no
12840 archive_expsym_cmds_CXX=
12841 compiler_needs_object_CXX=no
12842 export_dynamic_flag_spec_CXX=
12843 hardcode_direct_CXX=no
12844 hardcode_direct_absolute_CXX=no
12845 hardcode_libdir_flag_spec_CXX=
12846 hardcode_libdir_flag_spec_ld_CXX=
12847 hardcode_libdir_separator_CXX=
12848 hardcode_minus_L_CXX=no
12849 hardcode_shlibpath_var_CXX=unsupported
12850 hardcode_automatic_CXX=no
12851 inherit_rpath_CXX=no
12852 module_cmds_CXX=
12853 module_expsym_cmds_CXX=
12854 link_all_deplibs_CXX=unknown
12855 old_archive_cmds_CXX=$old_archive_cmds
12856 reload_flag_CXX=$reload_flag
12857 reload_cmds_CXX=$reload_cmds
12858 no_undefined_flag_CXX=
12859 whole_archive_flag_spec_CXX=
12860 enable_shared_with_static_runtimes_CXX=no
12862 # Source file extension for C++ test sources.
12863 ac_ext=cpp
12865 # Object file extension for compiled C++ test sources.
12866 objext=o
12867 objext_CXX=$objext
12869 # No sense in running all these tests if we already determined that
12870 # the CXX compiler isn't working.  Some variables (like enable_shared)
12871 # are currently assumed to apply to all compilers on this platform,
12872 # and will be corrupted by setting them based on a non-working compiler.
12873 if test "$_lt_caught_CXX_error" != yes; then
12874   # Code to be used in simple compile tests
12875   lt_simple_compile_test_code="int some_variable = 0;"
12877   # Code to be used in simple link tests
12878   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12880   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12881   
12887 # If no C compiler was specified, use CC.
12888 LTCC=${LTCC-"$CC"}
12890 # If no C compiler flags were specified, use CFLAGS.
12891 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12893 # Allow CC to be a program name with arguments.
12894 compiler=$CC
12897   # save warnings/boilerplate of simple test code
12898   ac_outfile=conftest.$ac_objext
12899 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12900 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12901 _lt_compiler_boilerplate=`cat conftest.err`
12902 $RM conftest*
12904   ac_outfile=conftest.$ac_objext
12905 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12906 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12907 _lt_linker_boilerplate=`cat conftest.err`
12908 $RM -r conftest*
12911   # Allow CC to be a program name with arguments.
12912   lt_save_CC=$CC
12913   lt_save_CFLAGS=$CFLAGS
12914   lt_save_LD=$LD
12915   lt_save_GCC=$GCC
12916   GCC=$GXX
12917   lt_save_with_gnu_ld=$with_gnu_ld
12918   lt_save_path_LD=$lt_cv_path_LD
12919   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12920     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12921   else
12922     $as_unset lt_cv_prog_gnu_ld
12923   fi
12924   if test -n "${lt_cv_path_LDCXX+set}"; then
12925     lt_cv_path_LD=$lt_cv_path_LDCXX
12926   else
12927     $as_unset lt_cv_path_LD
12928   fi
12929   test -z "${LDCXX+set}" || LD=$LDCXX
12930   CC=${CXX-"c++"}
12931   CFLAGS=$CXXFLAGS
12932   compiler=$CC
12933   compiler_CXX=$CC
12934   for cc_temp in $compiler""; do
12935   case $cc_temp in
12936     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12937     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12938     \-*) ;;
12939     *) break;;
12940   esac
12941 done
12942 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12945   if test -n "$compiler"; then
12946     # We don't want -fno-exception when compiling C++ code, so set the
12947     # no_builtin_flag separately
12948     if test "$GXX" = yes; then
12949       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12950     else
12951       lt_prog_compiler_no_builtin_flag_CXX=
12952     fi
12954     if test "$GXX" = yes; then
12955       # Set up default GNU C++ configuration
12957       
12959 @%:@ Check whether --with-gnu-ld was given.
12960 if test "${with_gnu_ld+set}" = set; then :
12961   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12962 else
12963   with_gnu_ld=no
12966 ac_prog=ld
12967 if test "$GCC" = yes; then
12968   # Check if gcc -print-prog-name=ld gives a path.
12969   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12970 $as_echo_n "checking for ld used by $CC... " >&6; }
12971   case $host in
12972   *-*-mingw*)
12973     # gcc leaves a trailing carriage return which upsets mingw
12974     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12975   *)
12976     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12977   esac
12978   case $ac_prog in
12979     # Accept absolute paths.
12980     [\\/]* | ?:[\\/]*)
12981       re_direlt='/[^/][^/]*/\.\./'
12982       # Canonicalize the pathname of ld
12983       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12984       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12985         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12986       done
12987       test -z "$LD" && LD="$ac_prog"
12988       ;;
12989   "")
12990     # If it fails, then pretend we aren't using GCC.
12991     ac_prog=ld
12992     ;;
12993   *)
12994     # If it is relative, then search for the first ld in PATH.
12995     with_gnu_ld=unknown
12996     ;;
12997   esac
12998 elif test "$with_gnu_ld" = yes; then
12999   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13000 $as_echo_n "checking for GNU ld... " >&6; }
13001 else
13002   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13003 $as_echo_n "checking for non-GNU ld... " >&6; }
13005 if ${lt_cv_path_LD+:} false; then :
13006   $as_echo_n "(cached) " >&6
13007 else
13008   if test -z "$LD"; then
13009   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13010   for ac_dir in $PATH; do
13011     IFS="$lt_save_ifs"
13012     test -z "$ac_dir" && ac_dir=.
13013     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13014       lt_cv_path_LD="$ac_dir/$ac_prog"
13015       # Check to see if the program is GNU ld.  I'd rather use --version,
13016       # but apparently some variants of GNU ld only accept -v.
13017       # Break only if it was the GNU/non-GNU ld that we prefer.
13018       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13019       *GNU* | *'with BFD'*)
13020         test "$with_gnu_ld" != no && break
13021         ;;
13022       *)
13023         test "$with_gnu_ld" != yes && break
13024         ;;
13025       esac
13026     fi
13027   done
13028   IFS="$lt_save_ifs"
13029 else
13030   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13034 LD="$lt_cv_path_LD"
13035 if test -n "$LD"; then
13036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13037 $as_echo "$LD" >&6; }
13038 else
13039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13040 $as_echo "no" >&6; }
13042 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13044 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13045 if ${lt_cv_prog_gnu_ld+:} false; then :
13046   $as_echo_n "(cached) " >&6
13047 else
13048   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13049 case `$LD -v 2>&1 </dev/null` in
13050 *GNU* | *'with BFD'*)
13051   lt_cv_prog_gnu_ld=yes
13052   ;;
13054   lt_cv_prog_gnu_ld=no
13055   ;;
13056 esac
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13059 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13060 with_gnu_ld=$lt_cv_prog_gnu_ld
13068       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13069       # archiving commands below assume that GNU ld is being used.
13070       if test "$with_gnu_ld" = yes; then
13071         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13072         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'
13074         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13075         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13077         # If archive_cmds runs LD, not CC, wlarc should be empty
13078         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13079         #     investigate it a little bit more. (MM)
13080         wlarc='${wl}'
13082         # ancient GNU ld didn't support --whole-archive et. al.
13083         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13084           $GREP 'no-whole-archive' > /dev/null; then
13085           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13086         else
13087           whole_archive_flag_spec_CXX=
13088         fi
13089       else
13090         with_gnu_ld=no
13091         wlarc=
13093         # A generic and very simple default shared library creation
13094         # command for GNU C++ for the case where it uses the native
13095         # linker, instead of GNU ld.  If possible, this setting should
13096         # overridden to take advantage of the native linker features on
13097         # the platform it is being used on.
13098         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13099       fi
13101       # Commands to make compiler produce verbose output that lists
13102       # what "hidden" libraries, object files and flags are used when
13103       # linking a shared library.
13104       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13106     else
13107       GXX=no
13108       with_gnu_ld=no
13109       wlarc=
13110     fi
13112     # PORTME: fill in a description of your system's C++ link characteristics
13113     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13114 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13115     ld_shlibs_CXX=yes
13116     case $host_os in
13117       aix3*)
13118         # FIXME: insert proper C++ library support
13119         ld_shlibs_CXX=no
13120         ;;
13121       aix[4-9]*)
13122         if test "$host_cpu" = ia64; then
13123           # On IA64, the linker does run time linking by default, so we don't
13124           # have to do anything special.
13125           aix_use_runtimelinking=no
13126           exp_sym_flag='-Bexport'
13127           no_entry_flag=""
13128         else
13129           aix_use_runtimelinking=no
13131           # Test if we are trying to use run time linking or normal
13132           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13133           # need to do runtime linking.
13134           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13135             for ld_flag in $LDFLAGS; do
13136               case $ld_flag in
13137               *-brtl*)
13138                 aix_use_runtimelinking=yes
13139                 break
13140                 ;;
13141               esac
13142             done
13143             ;;
13144           esac
13146           exp_sym_flag='-bexport'
13147           no_entry_flag='-bnoentry'
13148         fi
13150         # When large executables or shared objects are built, AIX ld can
13151         # have problems creating the table of contents.  If linking a library
13152         # or program results in "error TOC overflow" add -mminimal-toc to
13153         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13154         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13156         archive_cmds_CXX=''
13157         hardcode_direct_CXX=yes
13158         hardcode_direct_absolute_CXX=yes
13159         hardcode_libdir_separator_CXX=':'
13160         link_all_deplibs_CXX=yes
13161         file_list_spec_CXX='${wl}-f,'
13163         if test "$GXX" = yes; then
13164           case $host_os in aix4.[012]|aix4.[012].*)
13165           # We only want to do this on AIX 4.2 and lower, the check
13166           # below for broken collect2 doesn't work under 4.3+
13167           collect2name=`${CC} -print-prog-name=collect2`
13168           if test -f "$collect2name" &&
13169              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13170           then
13171             # We have reworked collect2
13172             :
13173           else
13174             # We have old collect2
13175             hardcode_direct_CXX=unsupported
13176             # It fails to find uninstalled libraries when the uninstalled
13177             # path is not listed in the libpath.  Setting hardcode_minus_L
13178             # to unsupported forces relinking
13179             hardcode_minus_L_CXX=yes
13180             hardcode_libdir_flag_spec_CXX='-L$libdir'
13181             hardcode_libdir_separator_CXX=
13182           fi
13183           esac
13184           shared_flag='-shared'
13185           if test "$aix_use_runtimelinking" = yes; then
13186             shared_flag="$shared_flag "'${wl}-G'
13187           fi
13188         else
13189           # not using gcc
13190           if test "$host_cpu" = ia64; then
13191           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13192           # chokes on -Wl,-G. The following line is correct:
13193           shared_flag='-G'
13194           else
13195             if test "$aix_use_runtimelinking" = yes; then
13196               shared_flag='${wl}-G'
13197             else
13198               shared_flag='${wl}-bM:SRE'
13199             fi
13200           fi
13201         fi
13203         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13204         # It seems that -bexpall does not export symbols beginning with
13205         # underscore (_), so it is better to generate a list of symbols to
13206         # export.
13207         always_export_symbols_CXX=yes
13208         if test "$aix_use_runtimelinking" = yes; then
13209           # Warning - without using the other runtime loading flags (-brtl),
13210           # -berok will link without error, but may produce a broken library.
13211           allow_undefined_flag_CXX='-berok'
13212           # Determine the default libpath from the value encoded in an empty
13213           # executable.
13214           if test "${lt_cv_aix_libpath+set}" = set; then
13215   aix_libpath=$lt_cv_aix_libpath
13216 else
13217   if ${lt_cv_aix_libpath__CXX+:} false; then :
13218   $as_echo_n "(cached) " >&6
13219 else
13220   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13221 /* end confdefs.h.  */
13224 main ()
13227   ;
13228   return 0;
13230 _ACEOF
13231 if ac_fn_cxx_try_link "$LINENO"; then :
13232   
13233   lt_aix_libpath_sed='
13234       /Import File Strings/,/^$/ {
13235           /^0/ {
13236               s/^0  *\([^ ]*\) *$/\1/
13237               p
13238           }
13239       }'
13240   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13241   # Check for a 64-bit object if we didn't find anything.
13242   if test -z "$lt_cv_aix_libpath__CXX"; then
13243     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13244   fi
13246 rm -f core conftest.err conftest.$ac_objext \
13247     conftest$ac_exeext conftest.$ac_ext
13248   if test -z "$lt_cv_aix_libpath__CXX"; then
13249     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13250   fi
13251   
13254   aix_libpath=$lt_cv_aix_libpath__CXX
13257           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13259           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13260         else
13261           if test "$host_cpu" = ia64; then
13262             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13263             allow_undefined_flag_CXX="-z nodefs"
13264             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"
13265           else
13266             # Determine the default libpath from the value encoded in an
13267             # empty executable.
13268             if test "${lt_cv_aix_libpath+set}" = set; then
13269   aix_libpath=$lt_cv_aix_libpath
13270 else
13271   if ${lt_cv_aix_libpath__CXX+:} false; then :
13272   $as_echo_n "(cached) " >&6
13273 else
13274   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13275 /* end confdefs.h.  */
13278 main ()
13281   ;
13282   return 0;
13284 _ACEOF
13285 if ac_fn_cxx_try_link "$LINENO"; then :
13286   
13287   lt_aix_libpath_sed='
13288       /Import File Strings/,/^$/ {
13289           /^0/ {
13290               s/^0  *\([^ ]*\) *$/\1/
13291               p
13292           }
13293       }'
13294   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13295   # Check for a 64-bit object if we didn't find anything.
13296   if test -z "$lt_cv_aix_libpath__CXX"; then
13297     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13298   fi
13300 rm -f core conftest.err conftest.$ac_objext \
13301     conftest$ac_exeext conftest.$ac_ext
13302   if test -z "$lt_cv_aix_libpath__CXX"; then
13303     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13304   fi
13305   
13308   aix_libpath=$lt_cv_aix_libpath__CXX
13311             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13312             # Warning - without using the other run time loading flags,
13313             # -berok will link without error, but may produce a broken library.
13314             no_undefined_flag_CXX=' ${wl}-bernotok'
13315             allow_undefined_flag_CXX=' ${wl}-berok'
13316             if test "$with_gnu_ld" = yes; then
13317               # We only use this code for GNU lds that support --whole-archive.
13318               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13319             else
13320               # Exported symbols can be pulled into shared objects from archives
13321               whole_archive_flag_spec_CXX='$convenience'
13322             fi
13323             archive_cmds_need_lc_CXX=yes
13324             # This is similar to how AIX traditionally builds its shared
13325             # libraries.
13326             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13327           fi
13328         fi
13329         ;;
13331       beos*)
13332         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13333           allow_undefined_flag_CXX=unsupported
13334           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13335           # support --undefined.  This deserves some investigation.  FIXME
13336           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13337         else
13338           ld_shlibs_CXX=no
13339         fi
13340         ;;
13342       chorus*)
13343         case $cc_basename in
13344           *)
13345           # FIXME: insert proper C++ library support
13346           ld_shlibs_CXX=no
13347           ;;
13348         esac
13349         ;;
13351       cygwin* | mingw* | pw32* | cegcc*)
13352         case $GXX,$cc_basename in
13353         ,cl* | no,cl*)
13354           # Native MSVC
13355           # hardcode_libdir_flag_spec is actually meaningless, as there is
13356           # no search path for DLLs.
13357           hardcode_libdir_flag_spec_CXX=' '
13358           allow_undefined_flag_CXX=unsupported
13359           always_export_symbols_CXX=yes
13360           file_list_spec_CXX='@'
13361           # Tell ltmain to make .lib files, not .a files.
13362           libext=lib
13363           # Tell ltmain to make .dll files, not .so files.
13364           shrext_cmds=".dll"
13365           # FIXME: Setting linknames here is a bad hack.
13366           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13367           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13368               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13369             else
13370               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13371             fi~
13372             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13373             linknames='
13374           # The linker will not automatically build a static lib if we build a DLL.
13375           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13376           enable_shared_with_static_runtimes_CXX=yes
13377           # Don't use ranlib
13378           old_postinstall_cmds_CXX='chmod 644 $oldlib'
13379           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13380             lt_tool_outputfile="@TOOL_OUTPUT@"~
13381             case $lt_outputfile in
13382               *.exe|*.EXE) ;;
13383               *)
13384                 lt_outputfile="$lt_outputfile.exe"
13385                 lt_tool_outputfile="$lt_tool_outputfile.exe"
13386                 ;;
13387             esac~
13388             func_to_tool_file "$lt_outputfile"~
13389             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13390               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13391               $RM "$lt_outputfile.manifest";
13392             fi'
13393           ;;
13394         *)
13395           # g++
13396           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13397           # as there is no search path for DLLs.
13398           hardcode_libdir_flag_spec_CXX='-L$libdir'
13399           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13400           allow_undefined_flag_CXX=unsupported
13401           always_export_symbols_CXX=no
13402           enable_shared_with_static_runtimes_CXX=yes
13404           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13405             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'
13406             # If the export-symbols file already is a .def file (1st line
13407             # is EXPORTS), use it as is; otherwise, prepend...
13408             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13409               cp $export_symbols $output_objdir/$soname.def;
13410             else
13411               echo EXPORTS > $output_objdir/$soname.def;
13412               cat $export_symbols >> $output_objdir/$soname.def;
13413             fi~
13414             $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'
13415           else
13416             ld_shlibs_CXX=no
13417           fi
13418           ;;
13419         esac
13420         ;;
13421       darwin* | rhapsody*)
13422         
13423   
13424   archive_cmds_need_lc_CXX=no
13425   hardcode_direct_CXX=no
13426   hardcode_automatic_CXX=yes
13427   hardcode_shlibpath_var_CXX=unsupported
13428   if test "$lt_cv_ld_force_load" = "yes"; then
13429     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\"`'
13430   else
13431     whole_archive_flag_spec_CXX=''
13432   fi
13433   link_all_deplibs_CXX=yes
13434   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13435   case $cc_basename in
13436      ifort*) _lt_dar_can_shared=yes ;;
13437      *) _lt_dar_can_shared=$GCC ;;
13438   esac
13439   if test "$_lt_dar_can_shared" = "yes"; then
13440     output_verbose_link_cmd=func_echo_all
13441     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}"
13442     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13443     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}"
13444     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}"
13445        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13446       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}"
13447       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}"
13448     fi
13450   else
13451   ld_shlibs_CXX=no
13452   fi
13454         ;;
13456       dgux*)
13457         case $cc_basename in
13458           ec++*)
13459             # FIXME: insert proper C++ library support
13460             ld_shlibs_CXX=no
13461             ;;
13462           ghcx*)
13463             # Green Hills C++ Compiler
13464             # FIXME: insert proper C++ library support
13465             ld_shlibs_CXX=no
13466             ;;
13467           *)
13468             # FIXME: insert proper C++ library support
13469             ld_shlibs_CXX=no
13470             ;;
13471         esac
13472         ;;
13474       freebsd[12]*)
13475         # C++ shared libraries reported to be fairly broken before
13476         # switch to ELF
13477         ld_shlibs_CXX=no
13478         ;;
13480       freebsd-elf*)
13481         archive_cmds_need_lc_CXX=no
13482         ;;
13484       freebsd* | dragonfly*)
13485         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13486         # conventions
13487         ld_shlibs_CXX=yes
13488         ;;
13490       gnu*)
13491         ;;
13493       haiku*)
13494         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13495         link_all_deplibs_CXX=yes
13496         ;;
13498       hpux9*)
13499         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13500         hardcode_libdir_separator_CXX=:
13501         export_dynamic_flag_spec_CXX='${wl}-E'
13502         hardcode_direct_CXX=yes
13503         hardcode_minus_L_CXX=yes # Not in the search PATH,
13504                                              # but as the default
13505                                              # location of the library.
13507         case $cc_basename in
13508           CC*)
13509             # FIXME: insert proper C++ library support
13510             ld_shlibs_CXX=no
13511             ;;
13512           aCC*)
13513             archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13514             # Commands to make compiler produce verbose output that lists
13515             # what "hidden" libraries, object files and flags are used when
13516             # linking a shared library.
13517             #
13518             # There doesn't appear to be a way to prevent this compiler from
13519             # explicitly linking system object files so we need to strip them
13520             # from the output so that they don't get included in the library
13521             # dependencies.
13522             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"'
13523             ;;
13524           *)
13525             if test "$GXX" = yes; then
13526               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13527             else
13528               # FIXME: insert proper C++ library support
13529               ld_shlibs_CXX=no
13530             fi
13531             ;;
13532         esac
13533         ;;
13535       hpux10*|hpux11*)
13536         if test $with_gnu_ld = no; then
13537           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13538           hardcode_libdir_separator_CXX=:
13540           case $host_cpu in
13541             hppa*64*|ia64*)
13542               ;;
13543             *)
13544               export_dynamic_flag_spec_CXX='${wl}-E'
13545               ;;
13546           esac
13547         fi
13548         case $host_cpu in
13549           hppa*64*|ia64*)
13550             hardcode_direct_CXX=no
13551             hardcode_shlibpath_var_CXX=no
13552             ;;
13553           *)
13554             hardcode_direct_CXX=yes
13555             hardcode_direct_absolute_CXX=yes
13556             hardcode_minus_L_CXX=yes # Not in the search PATH,
13557                                                  # but as the default
13558                                                  # location of the library.
13559             ;;
13560         esac
13562         case $cc_basename in
13563           CC*)
13564             # FIXME: insert proper C++ library support
13565             ld_shlibs_CXX=no
13566             ;;
13567           aCC*)
13568             case $host_cpu in
13569               hppa*64*)
13570                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13571                 ;;
13572               ia64*)
13573                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13574                 ;;
13575               *)
13576                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13577                 ;;
13578             esac
13579             # Commands to make compiler produce verbose output that lists
13580             # what "hidden" libraries, object files and flags are used when
13581             # linking a shared library.
13582             #
13583             # There doesn't appear to be a way to prevent this compiler from
13584             # explicitly linking system object files so we need to strip them
13585             # from the output so that they don't get included in the library
13586             # dependencies.
13587             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"'
13588             ;;
13589           *)
13590             if test "$GXX" = yes; then
13591               if test $with_gnu_ld = no; then
13592                 case $host_cpu in
13593                   hppa*64*)
13594                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13595                     ;;
13596                   ia64*)
13597                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13598                     ;;
13599                   *)
13600                     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'
13601                     ;;
13602                 esac
13603               fi
13604             else
13605               # FIXME: insert proper C++ library support
13606               ld_shlibs_CXX=no
13607             fi
13608             ;;
13609         esac
13610         ;;
13612       interix[3-9]*)
13613         hardcode_direct_CXX=no
13614         hardcode_shlibpath_var_CXX=no
13615         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13616         export_dynamic_flag_spec_CXX='${wl}-E'
13617         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13618         # Instead, shared libraries are loaded at an image base (0x10000000 by
13619         # default) and relocated if they conflict, which is a slow very memory
13620         # consuming and fragmenting process.  To avoid this, we pick a random,
13621         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13622         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13623         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'
13624         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'
13625         ;;
13626       irix5* | irix6*)
13627         case $cc_basename in
13628           CC*)
13629             # SGI C++
13630             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'
13632             # Archives containing C++ object files must be created using
13633             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13634             # necessary to make sure instantiated templates are included
13635             # in the archive.
13636             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13637             ;;
13638           *)
13639             if test "$GXX" = yes; then
13640               if test "$with_gnu_ld" = no; then
13641                 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'
13642               else
13643                 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'
13644               fi
13645             fi
13646             link_all_deplibs_CXX=yes
13647             ;;
13648         esac
13649         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13650         hardcode_libdir_separator_CXX=:
13651         inherit_rpath_CXX=yes
13652         ;;
13654       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13655         case $cc_basename in
13656           KCC*)
13657             # Kuck and Associates, Inc. (KAI) C++ Compiler
13659             # KCC will only create a shared library if the output file
13660             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13661             # to its proper name (with version) after linking.
13662             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'
13663             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'
13664             # Commands to make compiler produce verbose output that lists
13665             # what "hidden" libraries, object files and flags are used when
13666             # linking a shared library.
13667             #
13668             # There doesn't appear to be a way to prevent this compiler from
13669             # explicitly linking system object files so we need to strip them
13670             # from the output so that they don't get included in the library
13671             # dependencies.
13672             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"'
13674             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13675             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13677             # Archives containing C++ object files must be created using
13678             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13679             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13680             ;;
13681           icpc* | ecpc* )
13682             # Intel C++
13683             with_gnu_ld=yes
13684             # version 8.0 and above of icpc choke on multiply defined symbols
13685             # if we add $predep_objects and $postdep_objects, however 7.1 and
13686             # earlier do not add the objects themselves.
13687             case `$CC -V 2>&1` in
13688               *"Version 7."*)
13689                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13690                 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'
13691                 ;;
13692               *)  # Version 8.0 or newer
13693                 tmp_idyn=
13694                 case $host_cpu in
13695                   ia64*) tmp_idyn=' -i_dynamic';;
13696                 esac
13697                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13698                 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'
13699                 ;;
13700             esac
13701             archive_cmds_need_lc_CXX=no
13702             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13703             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13704             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13705             ;;
13706           pgCC* | pgcpp*)
13707             # Portland Group C++ compiler
13708             case `$CC -V` in
13709             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13710               prelink_cmds_CXX='tpldir=Template.dir~
13711                 rm -rf $tpldir~
13712                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13713                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13714               old_archive_cmds_CXX='tpldir=Template.dir~
13715                 rm -rf $tpldir~
13716                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13717                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13718                 $RANLIB $oldlib'
13719               archive_cmds_CXX='tpldir=Template.dir~
13720                 rm -rf $tpldir~
13721                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13722                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13723               archive_expsym_cmds_CXX='tpldir=Template.dir~
13724                 rm -rf $tpldir~
13725                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13726                 $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'
13727               ;;
13728             *) # Version 6 and above use weak symbols
13729               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13730               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'
13731               ;;
13732             esac
13734             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13735             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13736             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'
13737             ;;
13738           cxx*)
13739             # Compaq C++
13740             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13741             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'
13743             runpath_var=LD_RUN_PATH
13744             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13745             hardcode_libdir_separator_CXX=:
13747             # Commands to make compiler produce verbose output that lists
13748             # what "hidden" libraries, object files and flags are used when
13749             # linking a shared library.
13750             #
13751             # There doesn't appear to be a way to prevent this compiler from
13752             # explicitly linking system object files so we need to strip them
13753             # from the output so that they don't get included in the library
13754             # dependencies.
13755             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'
13756             ;;
13757           xl* | mpixl* | bgxl*)
13758             # IBM XL 8.0 on PPC, with GNU ld
13759             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13760             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13761             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13762             if test "x$supports_anon_versioning" = xyes; then
13763               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13764                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13765                 echo "local: *; };" >> $output_objdir/$libname.ver~
13766                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13767             fi
13768             ;;
13769           *)
13770             case `$CC -V 2>&1 | sed 5q` in
13771             *Sun\ C*)
13772               # Sun C++ 5.9
13773               no_undefined_flag_CXX=' -zdefs'
13774               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13775               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'
13776               hardcode_libdir_flag_spec_CXX='-R$libdir'
13777               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'
13778               compiler_needs_object_CXX=yes
13780               # Not sure whether something based on
13781               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13782               # would be better.
13783               output_verbose_link_cmd='func_echo_all'
13785               # Archives containing C++ object files must be created using
13786               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13787               # necessary to make sure instantiated templates are included
13788               # in the archive.
13789               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13790               ;;
13791             esac
13792             ;;
13793         esac
13794         ;;
13796       lynxos*)
13797         # FIXME: insert proper C++ library support
13798         ld_shlibs_CXX=no
13799         ;;
13801       m88k*)
13802         # FIXME: insert proper C++ library support
13803         ld_shlibs_CXX=no
13804         ;;
13806       mvs*)
13807         case $cc_basename in
13808           cxx*)
13809             # FIXME: insert proper C++ library support
13810             ld_shlibs_CXX=no
13811             ;;
13812           *)
13813             # FIXME: insert proper C++ library support
13814             ld_shlibs_CXX=no
13815             ;;
13816         esac
13817         ;;
13819       netbsd*)
13820         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13821           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13822           wlarc=
13823           hardcode_libdir_flag_spec_CXX='-R$libdir'
13824           hardcode_direct_CXX=yes
13825           hardcode_shlibpath_var_CXX=no
13826         fi
13827         # Workaround some broken pre-1.5 toolchains
13828         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13829         ;;
13831       *nto* | *qnx*)
13832         ld_shlibs_CXX=yes
13833         ;;
13835       openbsd2*)
13836         # C++ shared libraries are fairly broken
13837         ld_shlibs_CXX=no
13838         ;;
13840       openbsd*)
13841         if test -f /usr/libexec/ld.so; then
13842           hardcode_direct_CXX=yes
13843           hardcode_shlibpath_var_CXX=no
13844           hardcode_direct_absolute_CXX=yes
13845           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13846           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13847           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13848             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13849             export_dynamic_flag_spec_CXX='${wl}-E'
13850             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13851           fi
13852           output_verbose_link_cmd=func_echo_all
13853         else
13854           ld_shlibs_CXX=no
13855         fi
13856         ;;
13858       osf3* | osf4* | osf5*)
13859         case $cc_basename in
13860           KCC*)
13861             # Kuck and Associates, Inc. (KAI) C++ Compiler
13863             # KCC will only create a shared library if the output file
13864             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13865             # to its proper name (with version) after linking.
13866             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'
13868             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13869             hardcode_libdir_separator_CXX=:
13871             # Archives containing C++ object files must be created using
13872             # the KAI C++ compiler.
13873             case $host in
13874               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13875               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13876             esac
13877             ;;
13878           RCC*)
13879             # Rational C++ 2.4.1
13880             # FIXME: insert proper C++ library support
13881             ld_shlibs_CXX=no
13882             ;;
13883           cxx*)
13884             case $host in
13885               osf3*)
13886                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13887                 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'
13888                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13889                 ;;
13890               *)
13891                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13892                 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'
13893                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13894                   echo "-hidden">> $lib.exp~
13895                   $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~
13896                   $RM $lib.exp'
13897                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13898                 ;;
13899             esac
13901             hardcode_libdir_separator_CXX=:
13903             # Commands to make compiler produce verbose output that lists
13904             # what "hidden" libraries, object files and flags are used when
13905             # linking a shared library.
13906             #
13907             # There doesn't appear to be a way to prevent this compiler from
13908             # explicitly linking system object files so we need to strip them
13909             # from the output so that they don't get included in the library
13910             # dependencies.
13911             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"'
13912             ;;
13913           *)
13914             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13915               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13916               case $host in
13917                 osf3*)
13918                   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'
13919                   ;;
13920                 *)
13921                   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'
13922                   ;;
13923               esac
13925               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13926               hardcode_libdir_separator_CXX=:
13928               # Commands to make compiler produce verbose output that lists
13929               # what "hidden" libraries, object files and flags are used when
13930               # linking a shared library.
13931               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13933             else
13934               # FIXME: insert proper C++ library support
13935               ld_shlibs_CXX=no
13936             fi
13937             ;;
13938         esac
13939         ;;
13941       psos*)
13942         # FIXME: insert proper C++ library support
13943         ld_shlibs_CXX=no
13944         ;;
13946       sunos4*)
13947         case $cc_basename in
13948           CC*)
13949             # Sun C++ 4.x
13950             # FIXME: insert proper C++ library support
13951             ld_shlibs_CXX=no
13952             ;;
13953           lcc*)
13954             # Lucid
13955             # FIXME: insert proper C++ library support
13956             ld_shlibs_CXX=no
13957             ;;
13958           *)
13959             # FIXME: insert proper C++ library support
13960             ld_shlibs_CXX=no
13961             ;;
13962         esac
13963         ;;
13965       solaris*)
13966         case $cc_basename in
13967           CC* | sunCC*)
13968             # Sun C++ 4.2, 5.x and Centerline C++
13969             archive_cmds_need_lc_CXX=yes
13970             no_undefined_flag_CXX=' -zdefs'
13971             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13972             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13973               $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'
13975             hardcode_libdir_flag_spec_CXX='-R$libdir'
13976             hardcode_shlibpath_var_CXX=no
13977             case $host_os in
13978               solaris2.[0-5] | solaris2.[0-5].*) ;;
13979               *)
13980                 # The compiler driver will combine and reorder linker options,
13981                 # but understands `-z linker_flag'.
13982                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13983                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13984                 ;;
13985             esac
13986             link_all_deplibs_CXX=yes
13988             output_verbose_link_cmd='func_echo_all'
13990             # Archives containing C++ object files must be created using
13991             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13992             # necessary to make sure instantiated templates are included
13993             # in the archive.
13994             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13995             ;;
13996           gcx*)
13997             # Green Hills C++ Compiler
13998             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14000             # The C++ compiler must be used to create the archive.
14001             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14002             ;;
14003           *)
14004             # GNU C++ compiler with Solaris linker
14005             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14006               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14007               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14008                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14009                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14010                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14012                 # Commands to make compiler produce verbose output that lists
14013                 # what "hidden" libraries, object files and flags are used when
14014                 # linking a shared library.
14015                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14016               else
14017                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14018                 # platform.
14019                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14020                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14021                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14023                 # Commands to make compiler produce verbose output that lists
14024                 # what "hidden" libraries, object files and flags are used when
14025                 # linking a shared library.
14026                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14027               fi
14029               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14030               case $host_os in
14031                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14032                 *)
14033                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14034                   ;;
14035               esac
14036             fi
14037             ;;
14038         esac
14039         ;;
14041     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14042       no_undefined_flag_CXX='${wl}-z,text'
14043       archive_cmds_need_lc_CXX=no
14044       hardcode_shlibpath_var_CXX=no
14045       runpath_var='LD_RUN_PATH'
14047       case $cc_basename in
14048         CC*)
14049           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14050           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14051           ;;
14052         *)
14053           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14054           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14055           ;;
14056       esac
14057       ;;
14059       sysv5* | sco3.2v5* | sco5v6*)
14060         # Note: We can NOT use -z defs as we might desire, because we do not
14061         # link with -lc, and that would cause any symbols used from libc to
14062         # always be unresolved, which means just about no library would
14063         # ever link correctly.  If we're not using GNU ld we use -z text
14064         # though, which does catch some bad symbols but isn't as heavy-handed
14065         # as -z defs.
14066         no_undefined_flag_CXX='${wl}-z,text'
14067         allow_undefined_flag_CXX='${wl}-z,nodefs'
14068         archive_cmds_need_lc_CXX=no
14069         hardcode_shlibpath_var_CXX=no
14070         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14071         hardcode_libdir_separator_CXX=':'
14072         link_all_deplibs_CXX=yes
14073         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14074         runpath_var='LD_RUN_PATH'
14076         case $cc_basename in
14077           CC*)
14078             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14079             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14080             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14081               '"$old_archive_cmds_CXX"
14082             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14083               '"$reload_cmds_CXX"
14084             ;;
14085           *)
14086             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14087             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14088             ;;
14089         esac
14090       ;;
14092       tandem*)
14093         case $cc_basename in
14094           NCC*)
14095             # NonStop-UX NCC 3.20
14096             # FIXME: insert proper C++ library support
14097             ld_shlibs_CXX=no
14098             ;;
14099           *)
14100             # FIXME: insert proper C++ library support
14101             ld_shlibs_CXX=no
14102             ;;
14103         esac
14104         ;;
14106       vxworks*)
14107         # FIXME: insert proper C++ library support
14108         ld_shlibs_CXX=no
14109         ;;
14111       *)
14112         # FIXME: insert proper C++ library support
14113         ld_shlibs_CXX=no
14114         ;;
14115     esac
14117     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14118 $as_echo "$ld_shlibs_CXX" >&6; }
14119     test "$ld_shlibs_CXX" = no && can_build_shared=no
14121     GCC_CXX="$GXX"
14122     LD_CXX="$LD"
14124     ## CAVEAT EMPTOR:
14125     ## There is no encapsulation within the following macros, do not change
14126     ## the running order or otherwise move them around unless you know exactly
14127     ## what you are doing...
14128     # Dependencies to place before and after the object being linked:
14129 predep_objects_CXX=
14130 postdep_objects_CXX=
14131 predeps_CXX=
14132 postdeps_CXX=
14133 compiler_lib_search_path_CXX=
14135 cat > conftest.$ac_ext <<_LT_EOF
14136 class Foo
14138 public:
14139   Foo (void) { a = 0; }
14140 private:
14141   int a;
14143 _LT_EOF
14146 _lt_libdeps_save_CFLAGS=$CFLAGS
14147 case "$CC $CFLAGS " in #(
14148 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14149 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14150 esac
14152 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14153   (eval $ac_compile) 2>&5
14154   ac_status=$?
14155   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14156   test $ac_status = 0; }; then
14157   # Parse the compiler output and extract the necessary
14158   # objects, libraries and library flags.
14160   # Sentinel used to keep track of whether or not we are before
14161   # the conftest object file.
14162   pre_test_object_deps_done=no
14164   for p in `eval "$output_verbose_link_cmd"`; do
14165     case ${prev}${p} in
14167     -L* | -R* | -l*)
14168        # Some compilers place space between "-{L,R}" and the path.
14169        # Remove the space.
14170        if test $p = "-L" ||
14171           test $p = "-R"; then
14172          prev=$p
14173          continue
14174        fi
14176        # Expand the sysroot to ease extracting the directories later.
14177        if test -z "$prev"; then
14178          case $p in
14179          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14180          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14181          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14182          esac
14183        fi
14184        case $p in
14185        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14186        esac
14187        if test "$pre_test_object_deps_done" = no; then
14188          case ${prev} in
14189          -L | -R)
14190            # Internal compiler library paths should come after those
14191            # provided the user.  The postdeps already come after the
14192            # user supplied libs so there is no need to process them.
14193            if test -z "$compiler_lib_search_path_CXX"; then
14194              compiler_lib_search_path_CXX="${prev}${p}"
14195            else
14196              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14197            fi
14198            ;;
14199          # The "-l" case would never come before the object being
14200          # linked, so don't bother handling this case.
14201          esac
14202        else
14203          if test -z "$postdeps_CXX"; then
14204            postdeps_CXX="${prev}${p}"
14205          else
14206            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14207          fi
14208        fi
14209        prev=
14210        ;;
14212     *.lto.$objext) ;; # Ignore GCC LTO objects
14213     *.$objext)
14214        # This assumes that the test object file only shows up
14215        # once in the compiler output.
14216        if test "$p" = "conftest.$objext"; then
14217          pre_test_object_deps_done=yes
14218          continue
14219        fi
14221        if test "$pre_test_object_deps_done" = no; then
14222          if test -z "$predep_objects_CXX"; then
14223            predep_objects_CXX="$p"
14224          else
14225            predep_objects_CXX="$predep_objects_CXX $p"
14226          fi
14227        else
14228          if test -z "$postdep_objects_CXX"; then
14229            postdep_objects_CXX="$p"
14230          else
14231            postdep_objects_CXX="$postdep_objects_CXX $p"
14232          fi
14233        fi
14234        ;;
14236     *) ;; # Ignore the rest.
14238     esac
14239   done
14241   # Clean up.
14242   rm -f a.out a.exe
14243 else
14244   echo "libtool.m4: error: problem compiling CXX test program"
14247 $RM -f confest.$objext
14248 CFLAGS=$_lt_libdeps_save_CFLAGS
14250 # PORTME: override above test on systems where it is broken
14251 case $host_os in
14252 interix[3-9]*)
14253   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14254   # hack all around it, let's just trust "g++" to DTRT.
14255   predep_objects_CXX=
14256   postdep_objects_CXX=
14257   postdeps_CXX=
14258   ;;
14260 linux*)
14261   case `$CC -V 2>&1 | sed 5q` in
14262   *Sun\ C*)
14263     # Sun C++ 5.9
14265     # The more standards-conforming stlport4 library is
14266     # incompatible with the Cstd library. Avoid specifying
14267     # it if it's in CXXFLAGS. Ignore libCrun as
14268     # -library=stlport4 depends on it.
14269     case " $CXX $CXXFLAGS " in
14270     *" -library=stlport4 "*)
14271       solaris_use_stlport4=yes
14272       ;;
14273     esac
14275     if test "$solaris_use_stlport4" != yes; then
14276       postdeps_CXX='-library=Cstd -library=Crun'
14277     fi
14278     ;;
14279   esac
14280   ;;
14282 solaris*)
14283   case $cc_basename in
14284   CC* | sunCC*)
14285     # The more standards-conforming stlport4 library is
14286     # incompatible with the Cstd library. Avoid specifying
14287     # it if it's in CXXFLAGS. Ignore libCrun as
14288     # -library=stlport4 depends on it.
14289     case " $CXX $CXXFLAGS " in
14290     *" -library=stlport4 "*)
14291       solaris_use_stlport4=yes
14292       ;;
14293     esac
14295     # Adding this requires a known-good setup of shared libraries for
14296     # Sun compiler versions before 5.6, else PIC objects from an old
14297     # archive will be linked into the output, leading to subtle bugs.
14298     if test "$solaris_use_stlport4" != yes; then
14299       postdeps_CXX='-library=Cstd -library=Crun'
14300     fi
14301     ;;
14302   esac
14303   ;;
14304 esac
14307 case " $postdeps_CXX " in
14308 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14309 esac
14310  compiler_lib_search_dirs_CXX=
14311 if test -n "${compiler_lib_search_path_CXX}"; then
14312  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14315     
14316     
14317     
14320     
14321     
14322     
14325     
14326     
14327     
14330     
14331     
14332     
14335     
14336     
14337     
14340     
14341     
14342     
14345     lt_prog_compiler_wl_CXX=
14346 lt_prog_compiler_pic_CXX=
14347 lt_prog_compiler_static_CXX=
14350   # C++ specific cases for pic, static, wl, etc.
14351   if test "$GXX" = yes; then
14352     lt_prog_compiler_wl_CXX='-Wl,'
14353     lt_prog_compiler_static_CXX='-static'
14355     case $host_os in
14356     aix*)
14357       # All AIX code is PIC.
14358       if test "$host_cpu" = ia64; then
14359         # AIX 5 now supports IA64 processor
14360         lt_prog_compiler_static_CXX='-Bstatic'
14361       fi
14362       ;;
14364     amigaos*)
14365       case $host_cpu in
14366       powerpc)
14367             # see comment about AmigaOS4 .so support
14368             lt_prog_compiler_pic_CXX='-fPIC'
14369         ;;
14370       m68k)
14371             # FIXME: we need at least 68020 code to build shared libraries, but
14372             # adding the `-m68020' flag to GCC prevents building anything better,
14373             # like `-m68040'.
14374             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14375         ;;
14376       esac
14377       ;;
14379     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14380       # PIC is the default for these OSes.
14381       ;;
14382     mingw* | cygwin* | os2* | pw32* | cegcc*)
14383       # This hack is so that the source file can tell whether it is being
14384       # built for inclusion in a dll (and should export symbols for example).
14385       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14386       # (--disable-auto-import) libraries
14387       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14388       ;;
14389     darwin* | rhapsody*)
14390       # PIC is the default on this platform
14391       # Common symbols not allowed in MH_DYLIB files
14392       lt_prog_compiler_pic_CXX='-fno-common'
14393       ;;
14394     *djgpp*)
14395       # DJGPP does not support shared libraries at all
14396       lt_prog_compiler_pic_CXX=
14397       ;;
14398     haiku*)
14399       # PIC is the default for Haiku.
14400       # The "-static" flag exists, but is broken.
14401       lt_prog_compiler_static_CXX=
14402       ;;
14403     interix[3-9]*)
14404       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14405       # Instead, we relocate shared libraries at runtime.
14406       ;;
14407     sysv4*MP*)
14408       if test -d /usr/nec; then
14409         lt_prog_compiler_pic_CXX=-Kconform_pic
14410       fi
14411       ;;
14412     hpux*)
14413       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14414       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14415       # sets the default TLS model and affects inlining.
14416       case $host_cpu in
14417       hppa*64*)
14418         ;;
14419       *)
14420         lt_prog_compiler_pic_CXX='-fPIC'
14421         ;;
14422       esac
14423       ;;
14424     *qnx* | *nto*)
14425       # QNX uses GNU C++, but need to define -shared option too, otherwise
14426       # it will coredump.
14427       lt_prog_compiler_pic_CXX='-fPIC -shared'
14428       ;;
14429     *)
14430       lt_prog_compiler_pic_CXX='-fPIC'
14431       ;;
14432     esac
14433   else
14434     case $host_os in
14435       aix[4-9]*)
14436         # All AIX code is PIC.
14437         if test "$host_cpu" = ia64; then
14438           # AIX 5 now supports IA64 processor
14439           lt_prog_compiler_static_CXX='-Bstatic'
14440         else
14441           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14442         fi
14443         ;;
14444       chorus*)
14445         case $cc_basename in
14446         cxch68*)
14447           # Green Hills C++ Compiler
14448           # _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"
14449           ;;
14450         esac
14451         ;;
14452       mingw* | cygwin* | os2* | pw32* | cegcc*)
14453         # This hack is so that the source file can tell whether it is being
14454         # built for inclusion in a dll (and should export symbols for example).
14455         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14456         ;;
14457       dgux*)
14458         case $cc_basename in
14459           ec++*)
14460             lt_prog_compiler_pic_CXX='-KPIC'
14461             ;;
14462           ghcx*)
14463             # Green Hills C++ Compiler
14464             lt_prog_compiler_pic_CXX='-pic'
14465             ;;
14466           *)
14467             ;;
14468         esac
14469         ;;
14470       freebsd* | dragonfly*)
14471         # FreeBSD uses GNU C++
14472         ;;
14473       hpux9* | hpux10* | hpux11*)
14474         case $cc_basename in
14475           CC*)
14476             lt_prog_compiler_wl_CXX='-Wl,'
14477             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14478             if test "$host_cpu" != ia64; then
14479               lt_prog_compiler_pic_CXX='+Z'
14480             fi
14481             ;;
14482           aCC*)
14483             lt_prog_compiler_wl_CXX='-Wl,'
14484             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14485             case $host_cpu in
14486             hppa*64*|ia64*)
14487               # +Z the default
14488               ;;
14489             *)
14490               lt_prog_compiler_pic_CXX='+Z'
14491               ;;
14492             esac
14493             ;;
14494           *)
14495             ;;
14496         esac
14497         ;;
14498       interix*)
14499         # This is c89, which is MS Visual C++ (no shared libs)
14500         # Anyone wants to do a port?
14501         ;;
14502       irix5* | irix6* | nonstopux*)
14503         case $cc_basename in
14504           CC*)
14505             lt_prog_compiler_wl_CXX='-Wl,'
14506             lt_prog_compiler_static_CXX='-non_shared'
14507             # CC pic flag -KPIC is the default.
14508             ;;
14509           *)
14510             ;;
14511         esac
14512         ;;
14513       linux* | k*bsd*-gnu | kopensolaris*-gnu)
14514         case $cc_basename in
14515           KCC*)
14516             # KAI C++ Compiler
14517             lt_prog_compiler_wl_CXX='--backend -Wl,'
14518             lt_prog_compiler_pic_CXX='-fPIC'
14519             ;;
14520           ecpc* )
14521             # old Intel C++ for x86_64 which still supported -KPIC.
14522             lt_prog_compiler_wl_CXX='-Wl,'
14523             lt_prog_compiler_pic_CXX='-KPIC'
14524             lt_prog_compiler_static_CXX='-static'
14525             ;;
14526           icpc* )
14527             # Intel C++, used to be incompatible with GCC.
14528             # ICC 10 doesn't accept -KPIC any more.
14529             lt_prog_compiler_wl_CXX='-Wl,'
14530             lt_prog_compiler_pic_CXX='-fPIC'
14531             lt_prog_compiler_static_CXX='-static'
14532             ;;
14533           pgCC* | pgcpp*)
14534             # Portland Group C++ compiler
14535             lt_prog_compiler_wl_CXX='-Wl,'
14536             lt_prog_compiler_pic_CXX='-fpic'
14537             lt_prog_compiler_static_CXX='-Bstatic'
14538             ;;
14539           cxx*)
14540             # Compaq C++
14541             # Make sure the PIC flag is empty.  It appears that all Alpha
14542             # Linux and Compaq Tru64 Unix objects are PIC.
14543             lt_prog_compiler_pic_CXX=
14544             lt_prog_compiler_static_CXX='-non_shared'
14545             ;;
14546           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14547             # IBM XL 8.0, 9.0 on PPC and BlueGene
14548             lt_prog_compiler_wl_CXX='-Wl,'
14549             lt_prog_compiler_pic_CXX='-qpic'
14550             lt_prog_compiler_static_CXX='-qstaticlink'
14551             ;;
14552           *)
14553             case `$CC -V 2>&1 | sed 5q` in
14554             *Sun\ C*)
14555               # Sun C++ 5.9
14556               lt_prog_compiler_pic_CXX='-KPIC'
14557               lt_prog_compiler_static_CXX='-Bstatic'
14558               lt_prog_compiler_wl_CXX='-Qoption ld '
14559               ;;
14560             esac
14561             ;;
14562         esac
14563         ;;
14564       lynxos*)
14565         ;;
14566       m88k*)
14567         ;;
14568       mvs*)
14569         case $cc_basename in
14570           cxx*)
14571             lt_prog_compiler_pic_CXX='-W c,exportall'
14572             ;;
14573           *)
14574             ;;
14575         esac
14576         ;;
14577       netbsd*)
14578         ;;
14579       *qnx* | *nto*)
14580         # QNX uses GNU C++, but need to define -shared option too, otherwise
14581         # it will coredump.
14582         lt_prog_compiler_pic_CXX='-fPIC -shared'
14583         ;;
14584       osf3* | osf4* | osf5*)
14585         case $cc_basename in
14586           KCC*)
14587             lt_prog_compiler_wl_CXX='--backend -Wl,'
14588             ;;
14589           RCC*)
14590             # Rational C++ 2.4.1
14591             lt_prog_compiler_pic_CXX='-pic'
14592             ;;
14593           cxx*)
14594             # Digital/Compaq C++
14595             lt_prog_compiler_wl_CXX='-Wl,'
14596             # Make sure the PIC flag is empty.  It appears that all Alpha
14597             # Linux and Compaq Tru64 Unix objects are PIC.
14598             lt_prog_compiler_pic_CXX=
14599             lt_prog_compiler_static_CXX='-non_shared'
14600             ;;
14601           *)
14602             ;;
14603         esac
14604         ;;
14605       psos*)
14606         ;;
14607       solaris*)
14608         case $cc_basename in
14609           CC* | sunCC*)
14610             # Sun C++ 4.2, 5.x and Centerline C++
14611             lt_prog_compiler_pic_CXX='-KPIC'
14612             lt_prog_compiler_static_CXX='-Bstatic'
14613             lt_prog_compiler_wl_CXX='-Qoption ld '
14614             ;;
14615           gcx*)
14616             # Green Hills C++ Compiler
14617             lt_prog_compiler_pic_CXX='-PIC'
14618             ;;
14619           *)
14620             ;;
14621         esac
14622         ;;
14623       sunos4*)
14624         case $cc_basename in
14625           CC*)
14626             # Sun C++ 4.x
14627             lt_prog_compiler_pic_CXX='-pic'
14628             lt_prog_compiler_static_CXX='-Bstatic'
14629             ;;
14630           lcc*)
14631             # Lucid
14632             lt_prog_compiler_pic_CXX='-pic'
14633             ;;
14634           *)
14635             ;;
14636         esac
14637         ;;
14638       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14639         case $cc_basename in
14640           CC*)
14641             lt_prog_compiler_wl_CXX='-Wl,'
14642             lt_prog_compiler_pic_CXX='-KPIC'
14643             lt_prog_compiler_static_CXX='-Bstatic'
14644             ;;
14645         esac
14646         ;;
14647       tandem*)
14648         case $cc_basename in
14649           NCC*)
14650             # NonStop-UX NCC 3.20
14651             lt_prog_compiler_pic_CXX='-KPIC'
14652             ;;
14653           *)
14654             ;;
14655         esac
14656         ;;
14657       vxworks*)
14658         ;;
14659       *)
14660         lt_prog_compiler_can_build_shared_CXX=no
14661         ;;
14662     esac
14663   fi
14665 case $host_os in
14666   # For platforms which do not support PIC, -DPIC is meaningless:
14667   *djgpp*)
14668     lt_prog_compiler_pic_CXX=
14669     ;;
14670   *)
14671     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX@&t@ -DPIC"
14672     ;;
14673 esac
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14676 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14677 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14678   $as_echo_n "(cached) " >&6
14679 else
14680   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14683 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14684 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14687 # Check to make sure the PIC flag actually works.
14689 if test -n "$lt_prog_compiler_pic_CXX"; then
14690   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14691 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14692 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14693   $as_echo_n "(cached) " >&6
14694 else
14695   lt_cv_prog_compiler_pic_works_CXX=no
14696    ac_outfile=conftest.$ac_objext
14697    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14698    lt_compiler_flag="$lt_prog_compiler_pic_CXX@&t@ -DPIC"
14699    # Insert the option either (1) after the last *FLAGS variable, or
14700    # (2) before a word containing "conftest.", or (3) at the end.
14701    # Note that $ac_compile itself does not contain backslashes and begins
14702    # with a dollar sign (not a hyphen), so the echo should work correctly.
14703    # The option is referenced via a variable to avoid confusing sed.
14704    lt_compile=`echo "$ac_compile" | $SED \
14705    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14706    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14707    -e 's:$: $lt_compiler_flag:'`
14708    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14709    (eval "$lt_compile" 2>conftest.err)
14710    ac_status=$?
14711    cat conftest.err >&5
14712    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14713    if (exit $ac_status) && test -s "$ac_outfile"; then
14714      # The compiler can only warn and ignore the option if not recognized
14715      # So say no if there are warnings other than the usual output.
14716      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14717      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14718      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14719        lt_cv_prog_compiler_pic_works_CXX=yes
14720      fi
14721    fi
14722    $RM conftest*
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14726 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14728 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14729     case $lt_prog_compiler_pic_CXX in
14730      "" | " "*) ;;
14731      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14732      esac
14733 else
14734     lt_prog_compiler_pic_CXX=
14735      lt_prog_compiler_can_build_shared_CXX=no
14745 # Check to make sure the static flag actually works.
14747 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14749 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14750 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14751   $as_echo_n "(cached) " >&6
14752 else
14753   lt_cv_prog_compiler_static_works_CXX=no
14754    save_LDFLAGS="$LDFLAGS"
14755    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14756    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14757    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14758      # The linker can only warn and ignore the option if not recognized
14759      # So say no if there are warnings
14760      if test -s conftest.err; then
14761        # Append any errors to the config.log.
14762        cat conftest.err 1>&5
14763        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14764        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14765        if diff conftest.exp conftest.er2 >/dev/null; then
14766          lt_cv_prog_compiler_static_works_CXX=yes
14767        fi
14768      else
14769        lt_cv_prog_compiler_static_works_CXX=yes
14770      fi
14771    fi
14772    $RM -r conftest*
14773    LDFLAGS="$save_LDFLAGS"
14776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14777 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14779 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14780     :
14781 else
14782     lt_prog_compiler_static_CXX=
14788     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14789 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14790 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14791   $as_echo_n "(cached) " >&6
14792 else
14793   lt_cv_prog_compiler_c_o_CXX=no
14794    $RM -r conftest 2>/dev/null
14795    mkdir conftest
14796    cd conftest
14797    mkdir out
14798    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14800    lt_compiler_flag="-o out/conftest2.$ac_objext"
14801    # Insert the option either (1) after the last *FLAGS variable, or
14802    # (2) before a word containing "conftest.", or (3) at the end.
14803    # Note that $ac_compile itself does not contain backslashes and begins
14804    # with a dollar sign (not a hyphen), so the echo should work correctly.
14805    lt_compile=`echo "$ac_compile" | $SED \
14806    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14807    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14808    -e 's:$: $lt_compiler_flag:'`
14809    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14810    (eval "$lt_compile" 2>out/conftest.err)
14811    ac_status=$?
14812    cat out/conftest.err >&5
14813    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14814    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14815    then
14816      # The compiler can only warn and ignore the option if not recognized
14817      # So say no if there are warnings
14818      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14819      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14820      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14821        lt_cv_prog_compiler_c_o_CXX=yes
14822      fi
14823    fi
14824    chmod u+w . 2>&5
14825    $RM conftest*
14826    # SGI C++ compiler will create directory out/ii_files/ for
14827    # template instantiation
14828    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14829    $RM out/* && rmdir out
14830    cd ..
14831    $RM -r conftest
14832    $RM conftest*
14835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14836 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14840     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14841 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14842 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14843   $as_echo_n "(cached) " >&6
14844 else
14845   lt_cv_prog_compiler_c_o_CXX=no
14846    $RM -r conftest 2>/dev/null
14847    mkdir conftest
14848    cd conftest
14849    mkdir out
14850    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14852    lt_compiler_flag="-o out/conftest2.$ac_objext"
14853    # Insert the option either (1) after the last *FLAGS variable, or
14854    # (2) before a word containing "conftest.", or (3) at the end.
14855    # Note that $ac_compile itself does not contain backslashes and begins
14856    # with a dollar sign (not a hyphen), so the echo should work correctly.
14857    lt_compile=`echo "$ac_compile" | $SED \
14858    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14859    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14860    -e 's:$: $lt_compiler_flag:'`
14861    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14862    (eval "$lt_compile" 2>out/conftest.err)
14863    ac_status=$?
14864    cat out/conftest.err >&5
14865    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14866    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14867    then
14868      # The compiler can only warn and ignore the option if not recognized
14869      # So say no if there are warnings
14870      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14871      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14872      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14873        lt_cv_prog_compiler_c_o_CXX=yes
14874      fi
14875    fi
14876    chmod u+w . 2>&5
14877    $RM conftest*
14878    # SGI C++ compiler will create directory out/ii_files/ for
14879    # template instantiation
14880    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14881    $RM out/* && rmdir out
14882    cd ..
14883    $RM -r conftest
14884    $RM conftest*
14887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14888 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14893 hard_links="nottested"
14894 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14895   # do not overwrite the value of need_locks provided by the user
14896   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14897 $as_echo_n "checking if we can lock with hard links... " >&6; }
14898   hard_links=yes
14899   $RM conftest*
14900   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14901   touch conftest.a
14902   ln conftest.a conftest.b 2>&5 || hard_links=no
14903   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14905 $as_echo "$hard_links" >&6; }
14906   if test "$hard_links" = no; then
14907     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14908 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14909     need_locks=warn
14910   fi
14911 else
14912   need_locks=no
14917     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14918 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14920   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14921   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14922   case $host_os in
14923   aix[4-9]*)
14924     # If we're using GNU nm, then we don't want the "-C" option.
14925     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14926     # Also, AIX nm treats weak defined symbols like other global defined
14927     # symbols, whereas GNU nm marks them as "W".
14928     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14929       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14930     else
14931       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14932     fi
14933     ;;
14934   pw32*)
14935     export_symbols_cmds_CXX="$ltdll_cmds"
14936     ;;
14937   cygwin* | mingw* | cegcc*)
14938     case $cc_basename in
14939     cl*) ;;
14940     *)
14941       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'
14942       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14943       ;;
14944     esac
14945     ;;
14946   *)
14947     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14948     ;;
14949   esac
14951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14952 $as_echo "$ld_shlibs_CXX" >&6; }
14953 test "$ld_shlibs_CXX" = no && can_build_shared=no
14955 with_gnu_ld_CXX=$with_gnu_ld
14963 # Do we need to explicitly link libc?
14965 case "x$archive_cmds_need_lc_CXX" in
14966 x|xyes)
14967   # Assume -lc should be added
14968   archive_cmds_need_lc_CXX=yes
14970   if test "$enable_shared" = yes && test "$GCC" = yes; then
14971     case $archive_cmds_CXX in
14972     *'~'*)
14973       # FIXME: we may have to deal with multi-command sequences.
14974       ;;
14975     '$CC '*)
14976       # Test whether the compiler implicitly links with -lc since on some
14977       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14978       # to ld, don't add -lc before -lgcc.
14979       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14980 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14981 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14982   $as_echo_n "(cached) " >&6
14983 else
14984   $RM conftest*
14985         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14987         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14988   (eval $ac_compile) 2>&5
14989   ac_status=$?
14990   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14991   test $ac_status = 0; } 2>conftest.err; then
14992           soname=conftest
14993           lib=conftest
14994           libobjs=conftest.$ac_objext
14995           deplibs=
14996           wl=$lt_prog_compiler_wl_CXX
14997           pic_flag=$lt_prog_compiler_pic_CXX
14998           compiler_flags=-v
14999           linker_flags=-v
15000           verstring=
15001           output_objdir=.
15002           libname=conftest
15003           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15004           allow_undefined_flag_CXX=
15005           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15006   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15007   ac_status=$?
15008   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15009   test $ac_status = 0; }
15010           then
15011             lt_cv_archive_cmds_need_lc_CXX=no
15012           else
15013             lt_cv_archive_cmds_need_lc_CXX=yes
15014           fi
15015           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15016         else
15017           cat conftest.err 1>&5
15018         fi
15019         $RM conftest*
15020         
15022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15023 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15024       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15025       ;;
15026     esac
15027   fi
15028   ;;
15029 esac
15094     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15095 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15097 library_names_spec=
15098 libname_spec='lib$name'
15099 soname_spec=
15100 shrext_cmds=".so"
15101 postinstall_cmds=
15102 postuninstall_cmds=
15103 finish_cmds=
15104 finish_eval=
15105 shlibpath_var=
15106 shlibpath_overrides_runpath=unknown
15107 version_type=none
15108 dynamic_linker="$host_os ld.so"
15109 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15110 need_lib_prefix=unknown
15111 hardcode_into_libs=no
15113 # when you set need_version to no, make sure it does not cause -set_version
15114 # flags to be left without arguments
15115 need_version=unknown
15117 case $host_os in
15118 aix3*)
15119   version_type=linux
15120   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15121   shlibpath_var=LIBPATH
15123   # AIX 3 has no versioning support, so we append a major version to the name.
15124   soname_spec='${libname}${release}${shared_ext}$major'
15125   ;;
15127 aix[4-9]*)
15128   version_type=linux
15129   need_lib_prefix=no
15130   need_version=no
15131   hardcode_into_libs=yes
15132   if test "$host_cpu" = ia64; then
15133     # AIX 5 supports IA64
15134     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15135     shlibpath_var=LD_LIBRARY_PATH
15136   else
15137     # With GCC up to 2.95.x, collect2 would create an import file
15138     # for dependence libraries.  The import file would start with
15139     # the line `#! .'.  This would cause the generated library to
15140     # depend on `.', always an invalid library.  This was fixed in
15141     # development snapshots of GCC prior to 3.0.
15142     case $host_os in
15143       aix4 | aix4.[01] | aix4.[01].*)
15144       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15145            echo ' yes '
15146            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15147         :
15148       else
15149         can_build_shared=no
15150       fi
15151       ;;
15152     esac
15153     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15154     # soname into executable. Probably we can add versioning support to
15155     # collect2, so additional links can be useful in future.
15156     if test "$aix_use_runtimelinking" = yes; then
15157       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15158       # instead of lib<name>.a to let people know that these are not
15159       # typical AIX shared libraries.
15160       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15161     else
15162       # We preserve .a as extension for shared libraries through AIX4.2
15163       # and later when we are not doing run time linking.
15164       library_names_spec='${libname}${release}.a $libname.a'
15165       soname_spec='${libname}${release}${shared_ext}$major'
15166     fi
15167     shlibpath_var=LIBPATH
15168   fi
15169   ;;
15171 amigaos*)
15172   case $host_cpu in
15173   powerpc)
15174     # Since July 2007 AmigaOS4 officially supports .so libraries.
15175     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15176     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15177     ;;
15178   m68k)
15179     library_names_spec='$libname.ixlibrary $libname.a'
15180     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15181     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15182     ;;
15183   esac
15184   ;;
15186 beos*)
15187   library_names_spec='${libname}${shared_ext}'
15188   dynamic_linker="$host_os ld.so"
15189   shlibpath_var=LIBRARY_PATH
15190   ;;
15192 bsdi[45]*)
15193   version_type=linux
15194   need_version=no
15195   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15196   soname_spec='${libname}${release}${shared_ext}$major'
15197   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15198   shlibpath_var=LD_LIBRARY_PATH
15199   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15200   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15201   # the default ld.so.conf also contains /usr/contrib/lib and
15202   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15203   # libtool to hard-code these into programs
15204   ;;
15206 cygwin* | mingw* | pw32* | cegcc*)
15207   version_type=windows
15208   shrext_cmds=".dll"
15209   need_version=no
15210   need_lib_prefix=no
15212   case $GCC,$cc_basename in
15213   yes,*)
15214     # gcc
15215     library_names_spec='$libname.dll.a'
15216     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15217     postinstall_cmds='base_file=`basename \${file}`~
15218       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15219       dldir=$destdir/`dirname \$dlpath`~
15220       test -d \$dldir || mkdir -p \$dldir~
15221       $install_prog $dir/$dlname \$dldir/$dlname~
15222       chmod a+x \$dldir/$dlname~
15223       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15224         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15225       fi'
15226     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15227       dlpath=$dir/\$dldll~
15228        $RM \$dlpath'
15229     shlibpath_overrides_runpath=yes
15231     case $host_os in
15232     cygwin*)
15233       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15234       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15236       ;;
15237     mingw* | cegcc*)
15238       # MinGW DLLs use traditional 'lib' prefix
15239       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15240       ;;
15241     pw32*)
15242       # pw32 DLLs use 'pw' prefix rather than 'lib'
15243       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15244       ;;
15245     esac
15246     dynamic_linker='Win32 ld.exe'
15247     ;;
15249   *,cl*)
15250     # Native MSVC
15251     libname_spec='$name'
15252     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15253     library_names_spec='${libname}.dll.lib'
15255     case $build_os in
15256     mingw*)
15257       sys_lib_search_path_spec=
15258       lt_save_ifs=$IFS
15259       IFS=';'
15260       for lt_path in $LIB
15261       do
15262         IFS=$lt_save_ifs
15263         # Let DOS variable expansion print the short 8.3 style file name.
15264         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15265         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15266       done
15267       IFS=$lt_save_ifs
15268       # Convert to MSYS style.
15269       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15270       ;;
15271     cygwin*)
15272       # Convert to unix form, then to dos form, then back to unix form
15273       # but this time dos style (no spaces!) so that the unix form looks
15274       # like /cygdrive/c/PROGRA~1:/cygdr...
15275       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15276       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15277       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15278       ;;
15279     *)
15280       sys_lib_search_path_spec="$LIB"
15281       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15282         # It is most probably a Windows format PATH.
15283         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15284       else
15285         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15286       fi
15287       # FIXME: find the short name or the path components, as spaces are
15288       # common. (e.g. "Program Files" -> "PROGRA~1")
15289       ;;
15290     esac
15292     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15293     postinstall_cmds='base_file=`basename \${file}`~
15294       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15295       dldir=$destdir/`dirname \$dlpath`~
15296       test -d \$dldir || mkdir -p \$dldir~
15297       $install_prog $dir/$dlname \$dldir/$dlname'
15298     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15299       dlpath=$dir/\$dldll~
15300        $RM \$dlpath'
15301     shlibpath_overrides_runpath=yes
15302     dynamic_linker='Win32 link.exe'
15303     ;;
15305   *)
15306     # Assume MSVC wrapper
15307     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15308     dynamic_linker='Win32 ld.exe'
15309     ;;
15310   esac
15311   # FIXME: first we should search . and the directory the executable is in
15312   shlibpath_var=PATH
15313   ;;
15315 darwin* | rhapsody*)
15316   dynamic_linker="$host_os dyld"
15317   version_type=darwin
15318   need_lib_prefix=no
15319   need_version=no
15320   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15321   soname_spec='${libname}${release}${major}$shared_ext'
15322   shlibpath_overrides_runpath=yes
15323   shlibpath_var=DYLD_LIBRARY_PATH
15324   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15326   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15327   ;;
15329 dgux*)
15330   version_type=linux
15331   need_lib_prefix=no
15332   need_version=no
15333   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15334   soname_spec='${libname}${release}${shared_ext}$major'
15335   shlibpath_var=LD_LIBRARY_PATH
15336   ;;
15338 freebsd1*)
15339   dynamic_linker=no
15340   ;;
15342 freebsd* | dragonfly*)
15343   # DragonFly does not have aout.  When/if they implement a new
15344   # versioning mechanism, adjust this.
15345   if test -x /usr/bin/objformat; then
15346     objformat=`/usr/bin/objformat`
15347   else
15348     case $host_os in
15349     freebsd[123]*) objformat=aout ;;
15350     *) objformat=elf ;;
15351     esac
15352   fi
15353   # Handle Gentoo/FreeBSD as it was Linux
15354   case $host_vendor in
15355     gentoo)
15356       version_type=linux ;;
15357     *)
15358       version_type=freebsd-$objformat ;;
15359   esac
15361   case $version_type in
15362     freebsd-elf*)
15363       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15364       need_version=no
15365       need_lib_prefix=no
15366       ;;
15367     freebsd-*)
15368       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15369       need_version=yes
15370       ;;
15371     linux)
15372       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15373       soname_spec='${libname}${release}${shared_ext}$major'
15374       need_lib_prefix=no
15375       need_version=no
15376       ;;
15377   esac
15378   shlibpath_var=LD_LIBRARY_PATH
15379   case $host_os in
15380   freebsd2*)
15381     shlibpath_overrides_runpath=yes
15382     ;;
15383   freebsd3.[01]* | freebsdelf3.[01]*)
15384     shlibpath_overrides_runpath=yes
15385     hardcode_into_libs=yes
15386     ;;
15387   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15388   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15389     shlibpath_overrides_runpath=no
15390     hardcode_into_libs=yes
15391     ;;
15392   *) # from 4.6 on, and DragonFly
15393     shlibpath_overrides_runpath=yes
15394     hardcode_into_libs=yes
15395     ;;
15396   esac
15397   ;;
15399 gnu*)
15400   version_type=linux
15401   need_lib_prefix=no
15402   need_version=no
15403   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15404   soname_spec='${libname}${release}${shared_ext}$major'
15405   shlibpath_var=LD_LIBRARY_PATH
15406   hardcode_into_libs=yes
15407   ;;
15409 haiku*)
15410   version_type=linux
15411   need_lib_prefix=no
15412   need_version=no
15413   dynamic_linker="$host_os runtime_loader"
15414   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15415   soname_spec='${libname}${release}${shared_ext}$major'
15416   shlibpath_var=LIBRARY_PATH
15417   shlibpath_overrides_runpath=yes
15418   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15419   hardcode_into_libs=yes
15420   ;;
15422 hpux9* | hpux10* | hpux11*)
15423   # Give a soname corresponding to the major version so that dld.sl refuses to
15424   # link against other versions.
15425   version_type=sunos
15426   need_lib_prefix=no
15427   need_version=no
15428   case $host_cpu in
15429   ia64*)
15430     shrext_cmds='.so'
15431     hardcode_into_libs=yes
15432     dynamic_linker="$host_os dld.so"
15433     shlibpath_var=LD_LIBRARY_PATH
15434     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15435     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15436     soname_spec='${libname}${release}${shared_ext}$major'
15437     if test "X$HPUX_IA64_MODE" = X32; then
15438       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15439     else
15440       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15441     fi
15442     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15443     ;;
15444   hppa*64*)
15445     shrext_cmds='.sl'
15446     hardcode_into_libs=yes
15447     dynamic_linker="$host_os dld.sl"
15448     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15449     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15450     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15451     soname_spec='${libname}${release}${shared_ext}$major'
15452     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15453     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15454     ;;
15455   *)
15456     shrext_cmds='.sl'
15457     dynamic_linker="$host_os dld.sl"
15458     shlibpath_var=SHLIB_PATH
15459     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15460     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15461     soname_spec='${libname}${release}${shared_ext}$major'
15462     ;;
15463   esac
15464   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15465   postinstall_cmds='chmod 555 $lib'
15466   # or fails outright, so override atomically:
15467   install_override_mode=555
15468   ;;
15470 interix[3-9]*)
15471   version_type=linux
15472   need_lib_prefix=no
15473   need_version=no
15474   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15475   soname_spec='${libname}${release}${shared_ext}$major'
15476   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15477   shlibpath_var=LD_LIBRARY_PATH
15478   shlibpath_overrides_runpath=no
15479   hardcode_into_libs=yes
15480   ;;
15482 irix5* | irix6* | nonstopux*)
15483   case $host_os in
15484     nonstopux*) version_type=nonstopux ;;
15485     *)
15486         if test "$lt_cv_prog_gnu_ld" = yes; then
15487                 version_type=linux
15488         else
15489                 version_type=irix
15490         fi ;;
15491   esac
15492   need_lib_prefix=no
15493   need_version=no
15494   soname_spec='${libname}${release}${shared_ext}$major'
15495   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15496   case $host_os in
15497   irix5* | nonstopux*)
15498     libsuff= shlibsuff=
15499     ;;
15500   *)
15501     case $LD in # libtool.m4 will add one of these switches to LD
15502     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15503       libsuff= shlibsuff= libmagic=32-bit;;
15504     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15505       libsuff=32 shlibsuff=N32 libmagic=N32;;
15506     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15507       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15508     *) libsuff= shlibsuff= libmagic=never-match;;
15509     esac
15510     ;;
15511   esac
15512   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15513   shlibpath_overrides_runpath=no
15514   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15515   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15516   hardcode_into_libs=yes
15517   ;;
15519 # No shared lib support for Linux oldld, aout, or coff.
15520 linux*oldld* | linux*aout* | linux*coff*)
15521   dynamic_linker=no
15522   ;;
15524 # This must be Linux ELF.
15525 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15526   version_type=linux
15527   need_lib_prefix=no
15528   need_version=no
15529   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15530   soname_spec='${libname}${release}${shared_ext}$major'
15531   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15532   shlibpath_var=LD_LIBRARY_PATH
15533   shlibpath_overrides_runpath=no
15535   # Some binutils ld are patched to set DT_RUNPATH
15536   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15537   $as_echo_n "(cached) " >&6
15538 else
15539   lt_cv_shlibpath_overrides_runpath=no
15540     save_LDFLAGS=$LDFLAGS
15541     save_libdir=$libdir
15542     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15543          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15544     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15545 /* end confdefs.h.  */
15548 main ()
15551   ;
15552   return 0;
15554 _ACEOF
15555 if ac_fn_cxx_try_link "$LINENO"; then :
15556   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15557   lt_cv_shlibpath_overrides_runpath=yes
15560 rm -f core conftest.err conftest.$ac_objext \
15561     conftest$ac_exeext conftest.$ac_ext
15562     LDFLAGS=$save_LDFLAGS
15563     libdir=$save_libdir
15564     
15567   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15569   # This implies no fast_install, which is unacceptable.
15570   # Some rework will be needed to allow for fast_install
15571   # before this can be enabled.
15572   hardcode_into_libs=yes
15574   # Append ld.so.conf contents to the search path
15575   if test -f /etc/ld.so.conf; then
15576     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' ' '`
15577     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15578   fi
15580   # We used to test for /lib/ld.so.1 and disable shared libraries on
15581   # powerpc, because MkLinux only supported shared libraries with the
15582   # GNU dynamic linker.  Since this was broken with cross compilers,
15583   # most powerpc-linux boxes support dynamic linking these days and
15584   # people can always --disable-shared, the test was removed, and we
15585   # assume the GNU/Linux dynamic linker is in use.
15586   dynamic_linker='GNU/Linux ld.so'
15587   ;;
15589 netbsd*)
15590   version_type=sunos
15591   need_lib_prefix=no
15592   need_version=no
15593   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15594     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15595     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15596     dynamic_linker='NetBSD (a.out) ld.so'
15597   else
15598     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15599     soname_spec='${libname}${release}${shared_ext}$major'
15600     dynamic_linker='NetBSD ld.elf_so'
15601   fi
15602   shlibpath_var=LD_LIBRARY_PATH
15603   shlibpath_overrides_runpath=yes
15604   hardcode_into_libs=yes
15605   ;;
15607 newsos6)
15608   version_type=linux
15609   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15610   shlibpath_var=LD_LIBRARY_PATH
15611   shlibpath_overrides_runpath=yes
15612   ;;
15614 *nto* | *qnx*)
15615   version_type=qnx
15616   need_lib_prefix=no
15617   need_version=no
15618   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15619   soname_spec='${libname}${release}${shared_ext}$major'
15620   shlibpath_var=LD_LIBRARY_PATH
15621   shlibpath_overrides_runpath=no
15622   hardcode_into_libs=yes
15623   dynamic_linker='ldqnx.so'
15624   ;;
15626 openbsd*)
15627   version_type=sunos
15628   sys_lib_dlsearch_path_spec="/usr/lib"
15629   need_lib_prefix=no
15630   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15631   case $host_os in
15632     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15633     *)                          need_version=no  ;;
15634   esac
15635   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15636   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15637   shlibpath_var=LD_LIBRARY_PATH
15638   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15639     case $host_os in
15640       openbsd2.[89] | openbsd2.[89].*)
15641         shlibpath_overrides_runpath=no
15642         ;;
15643       *)
15644         shlibpath_overrides_runpath=yes
15645         ;;
15646       esac
15647   else
15648     shlibpath_overrides_runpath=yes
15649   fi
15650   ;;
15652 os2*)
15653   libname_spec='$name'
15654   shrext_cmds=".dll"
15655   need_lib_prefix=no
15656   library_names_spec='$libname${shared_ext} $libname.a'
15657   dynamic_linker='OS/2 ld.exe'
15658   shlibpath_var=LIBPATH
15659   ;;
15661 osf3* | osf4* | osf5*)
15662   version_type=osf
15663   need_lib_prefix=no
15664   need_version=no
15665   soname_spec='${libname}${release}${shared_ext}$major'
15666   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15667   shlibpath_var=LD_LIBRARY_PATH
15668   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15669   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15670   ;;
15672 rdos*)
15673   dynamic_linker=no
15674   ;;
15676 solaris*)
15677   version_type=linux
15678   need_lib_prefix=no
15679   need_version=no
15680   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15681   soname_spec='${libname}${release}${shared_ext}$major'
15682   shlibpath_var=LD_LIBRARY_PATH
15683   shlibpath_overrides_runpath=yes
15684   hardcode_into_libs=yes
15685   # ldd complains unless libraries are executable
15686   postinstall_cmds='chmod +x $lib'
15687   ;;
15689 sunos4*)
15690   version_type=sunos
15691   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15692   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15693   shlibpath_var=LD_LIBRARY_PATH
15694   shlibpath_overrides_runpath=yes
15695   if test "$with_gnu_ld" = yes; then
15696     need_lib_prefix=no
15697   fi
15698   need_version=yes
15699   ;;
15701 sysv4 | sysv4.3*)
15702   version_type=linux
15703   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15704   soname_spec='${libname}${release}${shared_ext}$major'
15705   shlibpath_var=LD_LIBRARY_PATH
15706   case $host_vendor in
15707     sni)
15708       shlibpath_overrides_runpath=no
15709       need_lib_prefix=no
15710       runpath_var=LD_RUN_PATH
15711       ;;
15712     siemens)
15713       need_lib_prefix=no
15714       ;;
15715     motorola)
15716       need_lib_prefix=no
15717       need_version=no
15718       shlibpath_overrides_runpath=no
15719       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15720       ;;
15721   esac
15722   ;;
15724 sysv4*MP*)
15725   if test -d /usr/nec ;then
15726     version_type=linux
15727     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15728     soname_spec='$libname${shared_ext}.$major'
15729     shlibpath_var=LD_LIBRARY_PATH
15730   fi
15731   ;;
15733 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15734   version_type=freebsd-elf
15735   need_lib_prefix=no
15736   need_version=no
15737   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15738   soname_spec='${libname}${release}${shared_ext}$major'
15739   shlibpath_var=LD_LIBRARY_PATH
15740   shlibpath_overrides_runpath=yes
15741   hardcode_into_libs=yes
15742   if test "$with_gnu_ld" = yes; then
15743     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15744   else
15745     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15746     case $host_os in
15747       sco3.2v5*)
15748         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15749         ;;
15750     esac
15751   fi
15752   sys_lib_dlsearch_path_spec='/usr/lib'
15753   ;;
15755 tpf*)
15756   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15757   version_type=linux
15758   need_lib_prefix=no
15759   need_version=no
15760   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15761   shlibpath_var=LD_LIBRARY_PATH
15762   shlibpath_overrides_runpath=no
15763   hardcode_into_libs=yes
15764   ;;
15766 uts4*)
15767   version_type=linux
15768   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15769   soname_spec='${libname}${release}${shared_ext}$major'
15770   shlibpath_var=LD_LIBRARY_PATH
15771   ;;
15774   dynamic_linker=no
15775   ;;
15776 esac
15777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15778 $as_echo "$dynamic_linker" >&6; }
15779 test "$dynamic_linker" = no && can_build_shared=no
15781 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15782 if test "$GCC" = yes; then
15783   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15786 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15787   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15789 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15790   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15830     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15831 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15832 hardcode_action_CXX=
15833 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15834    test -n "$runpath_var_CXX" ||
15835    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15837   # We can hardcode non-existent directories.
15838   if test "$hardcode_direct_CXX" != no &&
15839      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15840      # have to relink, otherwise we might link with an installed library
15841      # when we should be linking with a yet-to-be-installed one
15842      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15843      test "$hardcode_minus_L_CXX" != no; then
15844     # Linking always hardcodes the temporary library directory.
15845     hardcode_action_CXX=relink
15846   else
15847     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15848     hardcode_action_CXX=immediate
15849   fi
15850 else
15851   # We cannot hardcode anything, or else we can only hardcode existing
15852   # directories.
15853   hardcode_action_CXX=unsupported
15855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15856 $as_echo "$hardcode_action_CXX" >&6; }
15858 if test "$hardcode_action_CXX" = relink ||
15859    test "$inherit_rpath_CXX" = yes; then
15860   # Fast installation is not supported
15861   enable_fast_install=no
15862 elif test "$shlibpath_overrides_runpath" = yes ||
15863      test "$enable_shared" = no; then
15864   # Fast installation is not necessary
15865   enable_fast_install=needless
15871     
15874   fi # test -n "$compiler"
15876   CC=$lt_save_CC
15877   CFLAGS=$lt_save_CFLAGS
15878   LDCXX=$LD
15879   LD=$lt_save_LD
15880   GCC=$lt_save_GCC
15881   with_gnu_ld=$lt_save_with_gnu_ld
15882   lt_cv_path_LDCXX=$lt_cv_path_LD
15883   lt_cv_path_LD=$lt_save_path_LD
15884   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15885   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15886 fi # test "$_lt_caught_CXX_error" != yes
15888 ac_ext=c
15889 ac_cpp='$CPP $CPPFLAGS'
15890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15901        
15902        
15906         ac_config_commands="$ac_config_commands libtool"
15911 # Only expand once:
15914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
15915 $as_echo_n "checking whether ln -s works... " >&6; }
15916 LN_S=$as_ln_s
15917 if test "$LN_S" = "ln -s"; then
15918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15919 $as_echo "yes" >&6; }
15920 else
15921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
15922 $as_echo "no, using $LN_S" >&6; }
15926 # Check for GCC visibility feature
15929   
15930   VISIBILITY_CFLAGS=
15931   VISIBILITY_CXXFLAGS=
15932   HAVE_VISIBILITY=0
15933   if test -n "$GCC"; then
15934                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
15935 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
15936     if ${pcre_cv_cc_vis_werror+:} false; then :
15937   $as_echo_n "(cached) " >&6
15938 else
15939   
15940       pcre_save_CFLAGS="$CFLAGS"
15941       CFLAGS="$CFLAGS -Werror"
15942       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15943 /* end confdefs.h.  */
15946 main ()
15949   ;
15950   return 0;
15952 _ACEOF
15953 if ac_fn_c_try_compile "$LINENO"; then :
15954   pcre_cv_cc_vis_werror=yes
15955 else
15956   pcre_cv_cc_vis_werror=no
15958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15959       CFLAGS="$pcre_save_CFLAGS"
15962     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pcre_cv_cc_vis_werror" >&5
15963 $as_echo "$pcre_cv_cc_vis_werror" >&6; }
15964         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
15965 $as_echo_n "checking for simple visibility declarations... " >&6; }
15966     if ${pcre_cv_cc_visibility+:} false; then :
15967   $as_echo_n "(cached) " >&6
15968 else
15969   
15970       pcre_save_CFLAGS="$CFLAGS"
15971       CFLAGS="$CFLAGS -fvisibility=hidden"
15972                                     if test $pcre_cv_cc_vis_werror = yes; then
15973         CFLAGS="$CFLAGS -Werror"
15974       fi
15975       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15976 /* end confdefs.h.  */
15977 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
15978              extern __attribute__((__visibility__("default"))) int exportedvar;
15979              extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
15980              extern __attribute__((__visibility__("default"))) int exportedfunc (void);
15981              void dummyfunc (void) {}
15982            
15984 main ()
15987   ;
15988   return 0;
15990 _ACEOF
15991 if ac_fn_c_try_compile "$LINENO"; then :
15992   pcre_cv_cc_visibility=yes
15993 else
15994   pcre_cv_cc_visibility=no
15996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15997       CFLAGS="$pcre_save_CFLAGS"
16000     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pcre_cv_cc_visibility" >&5
16001 $as_echo "$pcre_cv_cc_visibility" >&6; }
16002     if test $pcre_cv_cc_visibility = yes; then
16003       VISIBILITY_CFLAGS="-fvisibility=hidden"
16004       VISIBILITY_CXXFLAGS="-fvisibility=hidden -fvisibility-inlines-hidden"
16005       HAVE_VISIBILITY=1
16006       
16007 $as_echo "@%:@define PCRE_EXP_DECL extern __attribute__ ((visibility (\"default\")))" >>confdefs.h
16009       
16010 $as_echo "@%:@define PCRE_EXP_DEFN __attribute__ ((visibility (\"default\")))" >>confdefs.h
16012       
16013 $as_echo "@%:@define PCRE_EXP_DATA_DEFN __attribute__ ((visibility (\"default\")))" >>confdefs.h
16015       
16016 $as_echo "@%:@define PCREPOSIX_EXP_DECL extern __attribute__ ((visibility (\"default\")))" >>confdefs.h
16018       
16019 $as_echo "@%:@define PCREPOSIX_EXP_DEFN extern __attribute__ ((visibility (\"default\")))" >>confdefs.h
16021       
16022 $as_echo "@%:@define PCRECPP_EXP_DECL extern __attribute__ ((visibility (\"default\")))" >>confdefs.h
16024       
16025 $as_echo "@%:@define PCRECPP_EXP_DEFN __attribute__ ((visibility (\"default\")))" >>confdefs.h
16027     fi
16028   fi
16029   
16030   
16031   
16032   
16033 cat >>confdefs.h <<_ACEOF
16034 @%:@define HAVE_VISIBILITY $HAVE_VISIBILITY
16035 _ACEOF
16039 # Versioning
16041 PCRE_MAJOR="8"
16042 PCRE_MINOR="32"
16043 PCRE_PRERELEASE=""
16044 PCRE_DATE="2012-11-30"
16046 if test "$PCRE_MINOR" = "08" -o "$PCRE_MINOR" = "09"
16047 then
16048   echo "***"
16049   echo "*** Minor version number $PCRE_MINOR must not be used. ***"
16050   echo "*** Use only 01 to 07 or 10 onwards, to avoid octal issues. ***"
16051   echo "***"
16052   exit 1
16060 # Set a more sensible default value for $(htmldir).
16061 if test "x$htmldir" = 'x${docdir}'
16062 then
16063   htmldir='${docdir}/html'
16066 # Handle --disable-pcre8 (enabled by default)
16067 @%:@ Check whether --enable-pcre8 was given.
16068 if test "${enable_pcre8+set}" = set; then :
16069   enableval=$enable_pcre8; 
16070 else
16071   enable_pcre8=unset
16076 # Handle --enable-pcre16 (disabled by default)
16077 @%:@ Check whether --enable-pcre16 was given.
16078 if test "${enable_pcre16+set}" = set; then :
16079   enableval=$enable_pcre16; 
16080 else
16081   enable_pcre16=unset
16086 # Handle --enable-pcre32 (disabled by default)
16087 @%:@ Check whether --enable-pcre32 was given.
16088 if test "${enable_pcre32+set}" = set; then :
16089   enableval=$enable_pcre32; 
16090 else
16091   enable_pcre32=unset
16096 # Handle --disable-cpp. The substitution of enable_cpp is needed for use in
16097 # pcre-config.
16098 @%:@ Check whether --enable-cpp was given.
16099 if test "${enable_cpp+set}" = set; then :
16100   enableval=$enable_cpp; 
16101 else
16102   enable_cpp=unset
16107 # Handle --enable-jit (disabled by default)
16108 @%:@ Check whether --enable-jit was given.
16109 if test "${enable_jit+set}" = set; then :
16110   enableval=$enable_jit; 
16111 else
16112   enable_jit=no
16116 # Handle --disable-pcregrep-jit (enabled by default)
16117 @%:@ Check whether --enable-pcregrep-jit was given.
16118 if test "${enable_pcregrep_jit+set}" = set; then :
16119   enableval=$enable_pcregrep_jit; 
16120 else
16121   enable_pcregrep_jit=yes
16125 # Handle --enable-rebuild-chartables
16126 @%:@ Check whether --enable-rebuild-chartables was given.
16127 if test "${enable_rebuild_chartables+set}" = set; then :
16128   enableval=$enable_rebuild_chartables; 
16129 else
16130   enable_rebuild_chartables=no
16134 # Handle --enable-utf8 (disabled by default)
16135 @%:@ Check whether --enable-utf8 was given.
16136 if test "${enable_utf8+set}" = set; then :
16137   enableval=$enable_utf8; 
16138 else
16139   enable_utf8=unset
16143 # Handle --enable-utf (disabled by default)
16144 @%:@ Check whether --enable-utf was given.
16145 if test "${enable_utf+set}" = set; then :
16146   enableval=$enable_utf; 
16147 else
16148   enable_utf=unset
16152 # Handle --enable-unicode-properties
16153 @%:@ Check whether --enable-unicode-properties was given.
16154 if test "${enable_unicode_properties+set}" = set; then :
16155   enableval=$enable_unicode_properties; 
16156 else
16157   enable_unicode_properties=no
16161 # Handle newline options
16162 ac_pcre_newline=lf
16163 @%:@ Check whether --enable-newline-is-cr was given.
16164 if test "${enable_newline_is_cr+set}" = set; then :
16165   enableval=$enable_newline_is_cr; ac_pcre_newline=cr
16168 @%:@ Check whether --enable-newline-is-lf was given.
16169 if test "${enable_newline_is_lf+set}" = set; then :
16170   enableval=$enable_newline_is_lf; ac_pcre_newline=lf
16173 @%:@ Check whether --enable-newline-is-crlf was given.
16174 if test "${enable_newline_is_crlf+set}" = set; then :
16175   enableval=$enable_newline_is_crlf; ac_pcre_newline=crlf
16178 @%:@ Check whether --enable-newline-is-anycrlf was given.
16179 if test "${enable_newline_is_anycrlf+set}" = set; then :
16180   enableval=$enable_newline_is_anycrlf; ac_pcre_newline=anycrlf
16183 @%:@ Check whether --enable-newline-is-any was given.
16184 if test "${enable_newline_is_any+set}" = set; then :
16185   enableval=$enable_newline_is_any; ac_pcre_newline=any
16188 enable_newline="$ac_pcre_newline"
16190 # Handle --enable-bsr-anycrlf
16191 @%:@ Check whether --enable-bsr-anycrlf was given.
16192 if test "${enable_bsr_anycrlf+set}" = set; then :
16193   enableval=$enable_bsr_anycrlf; 
16194 else
16195   enable_bsr_anycrlf=no
16199 # Handle --enable-ebcdic
16200 @%:@ Check whether --enable-ebcdic was given.
16201 if test "${enable_ebcdic+set}" = set; then :
16202   enableval=$enable_ebcdic; 
16203 else
16204   enable_ebcdic=no
16208 # Handle --enable-ebcdic-nl25
16209 @%:@ Check whether --enable-ebcdic-nl25 was given.
16210 if test "${enable_ebcdic_nl25+set}" = set; then :
16211   enableval=$enable_ebcdic_nl25; 
16212 else
16213   enable_ebcdic_nl25=no
16217 # Handle --disable-stack-for-recursion
16218 @%:@ Check whether --enable-stack-for-recursion was given.
16219 if test "${enable_stack_for_recursion+set}" = set; then :
16220   enableval=$enable_stack_for_recursion; 
16221 else
16222   enable_stack_for_recursion=yes
16226 # Handle --enable-pcregrep-libz
16227 @%:@ Check whether --enable-pcregrep-libz was given.
16228 if test "${enable_pcregrep_libz+set}" = set; then :
16229   enableval=$enable_pcregrep_libz; 
16230 else
16231   enable_pcregrep_libz=no
16235 # Handle --enable-pcregrep-libbz2
16236 @%:@ Check whether --enable-pcregrep-libbz2 was given.
16237 if test "${enable_pcregrep_libbz2+set}" = set; then :
16238   enableval=$enable_pcregrep_libbz2; 
16239 else
16240   enable_pcregrep_libbz2=no
16244 # Handle --with-pcregrep-bufsize=N
16246 @%:@ Check whether --with-pcregrep-bufsize was given.
16247 if test "${with_pcregrep_bufsize+set}" = set; then :
16248   withval=$with_pcregrep_bufsize; 
16249 else
16250   with_pcregrep_bufsize=20480
16254 # Handle --enable-pcretest-libedit
16255 @%:@ Check whether --enable-pcretest-libedit was given.
16256 if test "${enable_pcretest_libedit+set}" = set; then :
16257   enableval=$enable_pcretest_libedit; 
16258 else
16259   enable_pcretest_libedit=no
16263 # Handle --enable-pcretest-libreadline
16264 @%:@ Check whether --enable-pcretest-libreadline was given.
16265 if test "${enable_pcretest_libreadline+set}" = set; then :
16266   enableval=$enable_pcretest_libreadline; 
16267 else
16268   enable_pcretest_libreadline=no
16272 # Handle --with-posix-malloc-threshold=NBYTES
16274 @%:@ Check whether --with-posix-malloc-threshold was given.
16275 if test "${with_posix_malloc_threshold+set}" = set; then :
16276   withval=$with_posix_malloc_threshold; 
16277 else
16278   with_posix_malloc_threshold=10
16282 # Handle --with-link-size=N
16284 @%:@ Check whether --with-link-size was given.
16285 if test "${with_link_size+set}" = set; then :
16286   withval=$with_link_size; 
16287 else
16288   with_link_size=2
16292 # Handle --with-match-limit=N
16294 @%:@ Check whether --with-match-limit was given.
16295 if test "${with_match_limit+set}" = set; then :
16296   withval=$with_match_limit; 
16297 else
16298   with_match_limit=10000000
16302 # Handle --with-match-limit_recursion=N
16304 # Note: In config.h, the default is to define MATCH_LIMIT_RECURSION
16305 # symbolically as MATCH_LIMIT, which in turn is defined to be some numeric
16306 # value (e.g. 10000000). MATCH_LIMIT_RECURSION can otherwise be set to some
16307 # different numeric value (or even the same numeric value as MATCH_LIMIT,
16308 # though no longer defined in terms of the latter).
16311 @%:@ Check whether --with-match-limit-recursion was given.
16312 if test "${with_match_limit_recursion+set}" = set; then :
16313   withval=$with_match_limit_recursion; 
16314 else
16315   with_match_limit_recursion=MATCH_LIMIT
16319 # Handle --enable-valgrind
16320 @%:@ Check whether --enable-valgrind was given.
16321 if test "${enable_valgrind+set}" = set; then :
16322   enableval=$enable_valgrind; 
16323 else
16324   enable_valgrind=no
16328 # Enable code coverage reports using gcov
16329 @%:@ Check whether --enable-coverage was given.
16330 if test "${enable_coverage+set}" = set; then :
16331   enableval=$enable_coverage; 
16332 else
16333   enable_coverage=no
16337 # Copy enable_utf8 value to enable_utf for compatibility reasons
16338 if test "x$enable_utf8" != "xunset"
16339 then
16340   if test "x$enable_utf" != "xunset"
16341   then
16342     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
16343   fi
16344   enable_utf=$enable_utf8
16347 # Set the default value for pcre8
16348 if test "x$enable_pcre8" = "xunset"
16349 then
16350   enable_pcre8=yes
16353 # Set the default value for pcre16
16354 if test "x$enable_pcre16" = "xunset"
16355 then
16356   enable_pcre16=no
16359 # Set the default value for pcre32
16360 if test "x$enable_pcre32" = "xunset"
16361 then
16362   enable_pcre32=no
16365 # Make sure enable_pcre8 or enable_pcre16 was set
16366 if test "x$enable_pcre8$enable_pcre16$enable_pcre32" = "xnonono"
16367 then
16368   as_fn_error $? "At least one of 8, 16 or 32 bit pcre library must be enabled" "$LINENO" 5
16371 # Make sure that if enable_unicode_properties was set, that UTF support is enabled.
16372 if test "x$enable_unicode_properties" = "xyes"
16373 then
16374   if test "x$enable_utf" = "xno"
16375   then
16376     as_fn_error $? "support for Unicode properties requires UTF-8/16/32 support" "$LINENO" 5
16377   fi
16378   enable_utf=yes
16381 # enable_utf is disabled by default.
16382 if test "x$enable_utf" = "xunset"
16383 then
16384   enable_utf=no
16387 # enable_cpp copies the value of enable_pcre8 by default
16388 if test "x$enable_cpp" = "xunset"
16389 then
16390   enable_cpp=$enable_pcre8
16393 # Make sure that if enable_cpp was set, that enable_pcre8 support is enabled
16394 if test "x$enable_cpp" = "xyes"
16395 then
16396   if test "x$enable_pcre8" = "xno"
16397   then
16398     as_fn_error $? "C++ library requires pcre library with 8 bit characters" "$LINENO" 5
16399   fi
16402 # Convert the newline identifier into the appropriate integer value. The first
16403 # three are ASCII values 0x0a, 0x0d, and 0x0d0a, but if EBCDIC is enabled, they
16404 # are changed below.
16406 case "$enable_newline" in
16407   lf)      ac_pcre_newline_value=10   ;;
16408   cr)      ac_pcre_newline_value=13   ;;
16409   crlf)    ac_pcre_newline_value=3338 ;;
16410   anycrlf) ac_pcre_newline_value=-2   ;;
16411   any)     ac_pcre_newline_value=-1   ;;
16412   *)
16413   as_fn_error $? "invalid argument \"$enable_newline\" to --enable-newline option" "$LINENO" 5
16414   ;;
16415 esac
16417 # --enable-ebcdic-nl25 implies --enable-ebcdic
16418 if test "x$enable_ebcdic_nl25" = "xyes"; then
16419   enable_ebcdic=yes
16422 # Make sure that if enable_ebcdic is set, rebuild_chartables is also enabled,
16423 # and the newline value is adjusted appropriately (CR is still 13, but LF is
16424 # 21 or 37). Also check that UTF support is not requested, because PCRE cannot
16425 # handle EBCDIC and UTF in the same build. To do so it would need to use
16426 # different character constants depending on the mode.
16428 if test "x$enable_ebcdic" = "xyes"; then
16429   enable_rebuild_chartables=yes
16431   if test "x$enable_utf" = "xyes"; then
16432     as_fn_error $? "support for EBCDIC and UTF-8/16/32 cannot be enabled at the same time" "$LINENO" 5
16433   fi
16435   if test "x$enable_ebcdic_nl25" = "xno"; then
16436     case "$ac_pcre_newline_value" in
16437       10)   ac_pcre_newline_value=21 ;;
16438       3338) ac_pcre_newline_value=3349 ;;
16439     esac
16440   else
16441     case "$ac_pcre_newline_value" in
16442       10)   ac_pcre_newline_value=37 ;;
16443       3338) ac_pcre_newline_value=3365 ;;
16444     esac
16445   fi
16448 # Check argument to --with-link-size
16449 case "$with_link_size" in
16450   2|3|4) ;;
16451   *)
16452   as_fn_error $? "invalid argument \"$with_link_size\" to --with-link-size option" "$LINENO" 5
16453   ;;
16454 esac
16458 # Checks for header files.
16459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
16460 $as_echo_n "checking for ANSI C header files... " >&6; }
16461 if ${ac_cv_header_stdc+:} false; then :
16462   $as_echo_n "(cached) " >&6
16463 else
16464   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16465 /* end confdefs.h.  */
16466 #include <stdlib.h>
16467 #include <stdarg.h>
16468 #include <string.h>
16469 #include <float.h>
16472 main ()
16475   ;
16476   return 0;
16478 _ACEOF
16479 if ac_fn_c_try_compile "$LINENO"; then :
16480   ac_cv_header_stdc=yes
16481 else
16482   ac_cv_header_stdc=no
16484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16486 if test $ac_cv_header_stdc = yes; then
16487   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16488   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16489 /* end confdefs.h.  */
16490 #include <string.h>
16492 _ACEOF
16493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16494   $EGREP "memchr" >/dev/null 2>&1; then :
16495   
16496 else
16497   ac_cv_header_stdc=no
16499 rm -f conftest*
16503 if test $ac_cv_header_stdc = yes; then
16504   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16505   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16506 /* end confdefs.h.  */
16507 #include <stdlib.h>
16509 _ACEOF
16510 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16511   $EGREP "free" >/dev/null 2>&1; then :
16512   
16513 else
16514   ac_cv_header_stdc=no
16516 rm -f conftest*
16520 if test $ac_cv_header_stdc = yes; then
16521   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16522   if test "$cross_compiling" = yes; then :
16523   :
16524 else
16525   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16526 /* end confdefs.h.  */
16527 #include <ctype.h>
16528 #include <stdlib.h>
16529 #if ((' ' & 0x0FF) == 0x020)
16530 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16531 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16532 #else
16533 # define ISLOWER(c) \
16534                    (('a' <= (c) && (c) <= 'i') \
16535                      || ('j' <= (c) && (c) <= 'r') \
16536                      || ('s' <= (c) && (c) <= 'z'))
16537 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16538 #endif
16540 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16542 main ()
16544   int i;
16545   for (i = 0; i < 256; i++)
16546     if (XOR (islower (i), ISLOWER (i))
16547         || toupper (i) != TOUPPER (i))
16548       return 2;
16549   return 0;
16551 _ACEOF
16552 if ac_fn_c_try_run "$LINENO"; then :
16553   
16554 else
16555   ac_cv_header_stdc=no
16557 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16558   conftest.$ac_objext conftest.beam conftest.$ac_ext
16563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16564 $as_echo "$ac_cv_header_stdc" >&6; }
16565 if test $ac_cv_header_stdc = yes; then
16566   
16567 $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
16571 for ac_header in limits.h sys/types.h sys/stat.h dirent.h windows.h
16572 do :
16573   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16574 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16575 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16576   cat >>confdefs.h <<_ACEOF
16577 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16578 _ACEOF
16582 done
16585 # The files below are C++ header files.
16586 pcre_have_type_traits="0"
16587 pcre_have_bits_type_traits="0"
16589 if test "x$enable_cpp" = "xyes" -a -z "$CXX"; then
16590    as_fn_error $? "You need a C++ compiler for C++ support." "$LINENO" 5
16593 if test "x$enable_cpp" = "xyes" -a -n "$CXX"
16594 then
16595 ac_ext=cpp
16596 ac_cpp='$CXXCPP $CPPFLAGS'
16597 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16598 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16599 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16602 # Older versions of pcre defined pcrecpp::no_arg, but in new versions
16603 # it's called pcrecpp::RE::no_arg.  For backwards ABI compatibility,
16604 # we want to make one an alias for the other.  Different systems do
16605 # this in different ways.  Some systems, for instance, can do it via
16606 # a linker flag: -alias (for os x 10.5) or -i (for os x <=10.4).
16607 OLD_LDFLAGS="$LDFLAGS"
16608 for flag in "-alias,__ZN7pcrecpp2RE6no_argE,__ZN7pcrecpp6no_argE" \
16609             "-i__ZN7pcrecpp6no_argE:__ZN7pcrecpp2RE6no_argE"; do
16610   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alias support in the linker" >&5
16611 $as_echo_n "checking for alias support in the linker... " >&6; }
16612   LDFLAGS="$OLD_LDFLAGS -Wl,$flag"
16613   # We try to run the linker with this new ld flag.  If the link fails,
16614   # we give up and remove the new flag from LDFLAGS.
16615   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16616 /* end confdefs.h.  */
16617 namespace pcrecpp {
16618                                     class RE { static int no_arg; };
16619                                     int RE::no_arg;
16620                                   }
16622 main ()
16625   ;
16626   return 0;
16628 _ACEOF
16629 if ac_fn_cxx_try_link "$LINENO"; then :
16630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16631 $as_echo "yes" >&6; };
16632                   EXTRA_LIBPCRECPP_LDFLAGS="$EXTRA_LIBPCRECPP_LDFLAGS -Wl,$flag";
16633                   break;
16634 else
16635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16636 $as_echo "no" >&6; }
16638 rm -f core conftest.err conftest.$ac_objext \
16639     conftest$ac_exeext conftest.$ac_ext
16640 done
16641 LDFLAGS="$OLD_LDFLAGS"
16643 # We could be more clever here, given we're doing AC_SUBST with this
16644 # (eg set a var to be the name of the include file we want). But we're not
16645 # so it's easy to change back to 'regular' autoconf vars if we needed to.
16647 for ac_header in string
16648 do :
16649   ac_fn_cxx_check_header_mongrel "$LINENO" "string" "ac_cv_header_string" "$ac_includes_default"
16650 if test "x$ac_cv_header_string" = xyes; then :
16651   cat >>confdefs.h <<_ACEOF
16652 @%:@define HAVE_STRING 1
16653 _ACEOF
16654  pcre_have_cpp_headers="1"
16655 else
16656   pcre_have_cpp_headers="0"
16659 done
16661 for ac_header in bits/type_traits.h
16662 do :
16663   ac_fn_cxx_check_header_mongrel "$LINENO" "bits/type_traits.h" "ac_cv_header_bits_type_traits_h" "$ac_includes_default"
16664 if test "x$ac_cv_header_bits_type_traits_h" = xyes; then :
16665   cat >>confdefs.h <<_ACEOF
16666 @%:@define HAVE_BITS_TYPE_TRAITS_H 1
16667 _ACEOF
16668  pcre_have_bits_type_traits="1"
16669 else
16670   pcre_have_bits_type_traits="0"
16673 done
16675 for ac_header in type_traits.h
16676 do :
16677   ac_fn_cxx_check_header_mongrel "$LINENO" "type_traits.h" "ac_cv_header_type_traits_h" "$ac_includes_default"
16678 if test "x$ac_cv_header_type_traits_h" = xyes; then :
16679   cat >>confdefs.h <<_ACEOF
16680 @%:@define HAVE_TYPE_TRAITS_H 1
16681 _ACEOF
16682  pcre_have_type_traits="1"
16683 else
16684   pcre_have_type_traits="0"
16687 done
16690 # (This isn't c++-specific, but is only used in pcrecpp.cc, so try this
16691 # in a c++ context.  This matters becuase strtoimax is C99 and may not
16692 # be supported by the C++ compiler.)
16693 # Figure out how to create a longlong from a string: strtoll and
16694 # equiv.  It's not enough to call AC_CHECK_FUNCS: hpux has a
16695 # strtoll, for instance, but it only takes 2 args instead of 3!
16696 # We have to call AH_TEMPLATE since AC_DEFINE_UNQUOTED below is complex.
16701 have_strto_fn=0
16702 for fn in strtoq strtoll _strtoi64 strtoimax; do
16703   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $fn" >&5
16704 $as_echo_n "checking for $fn... " >&6; }
16705   if test "$fn" = strtoimax; then
16706     include=stdint.h
16707   else
16708     include=stdlib.h
16709   fi
16710   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16711 /* end confdefs.h.  */
16712 #include <$include>
16714 main ()
16716 char* e; return $fn("100", &e, 10)
16717   ;
16718   return 0;
16720 _ACEOF
16721 if ac_fn_cxx_try_compile "$LINENO"; then :
16722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16723 $as_echo "yes" >&6; }
16724                      
16725 cat >>confdefs.h <<_ACEOF
16726 @%:@define HAVE_`echo $fn | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` 1
16727 _ACEOF
16729                      have_strto_fn=1
16730                      break
16731 else
16732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16733 $as_echo "no" >&6; }
16735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16736 done
16738 if test "$have_strto_fn" = 1; then
16739   ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
16740 if test "x$ac_cv_type_long_long" = xyes; then :
16741   
16742 cat >>confdefs.h <<_ACEOF
16743 @%:@define HAVE_LONG_LONG 1
16744 _ACEOF
16746 pcre_have_long_long="1"
16747 else
16748   pcre_have_long_long="0"
16751   ac_fn_cxx_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$ac_includes_default"
16752 if test "x$ac_cv_type_unsigned_long_long" = xyes; then :
16753   
16754 cat >>confdefs.h <<_ACEOF
16755 @%:@define HAVE_UNSIGNED_LONG_LONG 1
16756 _ACEOF
16758 pcre_have_ulong_long="1"
16759 else
16760   pcre_have_ulong_long="0"
16763 else
16764   pcre_have_long_long="0"
16765   pcre_have_ulong_long="0"
16770 ac_ext=c
16771 ac_cpp='$CPP $CPPFLAGS'
16772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16777 # Using AC_SUBST eliminates the need to include config.h in a public .h file
16781 # Conditional compilation
16782  if test "x$enable_pcre8" = "xyes"; then
16783   WITH_PCRE8_TRUE=
16784   WITH_PCRE8_FALSE='#'
16785 else
16786   WITH_PCRE8_TRUE='#'
16787   WITH_PCRE8_FALSE=
16790  if test "x$enable_pcre16" = "xyes"; then
16791   WITH_PCRE16_TRUE=
16792   WITH_PCRE16_FALSE='#'
16793 else
16794   WITH_PCRE16_TRUE='#'
16795   WITH_PCRE16_FALSE=
16798  if test "x$enable_pcre32" = "xyes"; then
16799   WITH_PCRE32_TRUE=
16800   WITH_PCRE32_FALSE='#'
16801 else
16802   WITH_PCRE32_TRUE='#'
16803   WITH_PCRE32_FALSE=
16806  if test "x$enable_cpp" = "xyes"; then
16807   WITH_PCRE_CPP_TRUE=
16808   WITH_PCRE_CPP_FALSE='#'
16809 else
16810   WITH_PCRE_CPP_TRUE='#'
16811   WITH_PCRE_CPP_FALSE=
16814  if test "x$enable_rebuild_chartables" = "xyes"; then
16815   WITH_REBUILD_CHARTABLES_TRUE=
16816   WITH_REBUILD_CHARTABLES_FALSE='#'
16817 else
16818   WITH_REBUILD_CHARTABLES_TRUE='#'
16819   WITH_REBUILD_CHARTABLES_FALSE=
16822  if test "x$enable_jit" = "xyes"; then
16823   WITH_JIT_TRUE=
16824   WITH_JIT_FALSE='#'
16825 else
16826   WITH_JIT_TRUE='#'
16827   WITH_JIT_FALSE=
16830  if test "x$enable_utf" = "xyes"; then
16831   WITH_UTF_TRUE=
16832   WITH_UTF_FALSE='#'
16833 else
16834   WITH_UTF_TRUE='#'
16835   WITH_UTF_FALSE=
16838  if test "x$enable_valgrind" = "xyes"; then
16839   WITH_VALGRIND_TRUE=
16840   WITH_VALGRIND_FALSE='#'
16841 else
16842   WITH_VALGRIND_TRUE='#'
16843   WITH_VALGRIND_FALSE=
16847 # Checks for typedefs, structures, and compiler characteristics.
16849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16850 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16851 if ${ac_cv_c_const+:} false; then :
16852   $as_echo_n "(cached) " >&6
16853 else
16854   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16855 /* end confdefs.h.  */
16858 main ()
16860 /* FIXME: Include the comments suggested by Paul. */
16861 #ifndef __cplusplus
16862   /* Ultrix mips cc rejects this.  */
16863   typedef int charset[2];
16864   const charset cs;
16865   /* SunOS 4.1.1 cc rejects this.  */
16866   char const *const *pcpcc;
16867   char **ppc;
16868   /* NEC SVR4.0.2 mips cc rejects this.  */
16869   struct point {int x, y;};
16870   static struct point const zero = {0,0};
16871   /* AIX XL C 1.02.0.0 rejects this.
16872      It does not let you subtract one const X* pointer from another in
16873      an arm of an if-expression whose if-part is not a constant
16874      expression */
16875   const char *g = "string";
16876   pcpcc = &g + (g ? g-g : 0);
16877   /* HPUX 7.0 cc rejects these. */
16878   ++pcpcc;
16879   ppc = (char**) pcpcc;
16880   pcpcc = (char const *const *) ppc;
16881   { /* SCO 3.2v4 cc rejects this.  */
16882     char *t;
16883     char const *s = 0 ? (char *) 0 : (char const *) 0;
16885     *t++ = 0;
16886     if (s) return 0;
16887   }
16888   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
16889     int x[] = {25, 17};
16890     const int *foo = &x[0];
16891     ++foo;
16892   }
16893   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16894     typedef const int *iptr;
16895     iptr p = 0;
16896     ++p;
16897   }
16898   { /* AIX XL C 1.02.0.0 rejects this saying
16899        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16900     struct s { int j; const int *ap[3]; };
16901     struct s *b; b->j = 5;
16902   }
16903   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16904     const int foo = 10;
16905     if (!foo) return 0;
16906   }
16907   return !cs[0] && !zero.x;
16908 #endif
16910   ;
16911   return 0;
16913 _ACEOF
16914 if ac_fn_c_try_compile "$LINENO"; then :
16915   ac_cv_c_const=yes
16916 else
16917   ac_cv_c_const=no
16919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16922 $as_echo "$ac_cv_c_const" >&6; }
16923 if test $ac_cv_c_const = no; then
16924   
16925 $as_echo "@%:@define const /**/" >>confdefs.h
16929 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16930 if test "x$ac_cv_type_size_t" = xyes; then :
16931   
16932 else
16933   
16934 cat >>confdefs.h <<_ACEOF
16935 @%:@define size_t unsigned int
16936 _ACEOF
16941 # Checks for library functions.
16943 for ac_func in bcopy memmove strerror
16944 do :
16945   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16946 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16947 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16948   cat >>confdefs.h <<_ACEOF
16949 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16950 _ACEOF
16953 done
16956 # Check for the availability of libz (aka zlib)
16958 for ac_header in zlib.h
16959 do :
16960   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
16961 if test "x$ac_cv_header_zlib_h" = xyes; then :
16962   cat >>confdefs.h <<_ACEOF
16963 @%:@define HAVE_ZLIB_H 1
16964 _ACEOF
16965  HAVE_ZLIB_H=1
16968 done
16970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
16971 $as_echo_n "checking for gzopen in -lz... " >&6; }
16972 if ${ac_cv_lib_z_gzopen+:} false; then :
16973   $as_echo_n "(cached) " >&6
16974 else
16975   ac_check_lib_save_LIBS=$LIBS
16976 LIBS="-lz  $LIBS"
16977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16978 /* end confdefs.h.  */
16980 /* Override any GCC internal prototype to avoid an error.
16981    Use char because int might match the return type of a GCC
16982    builtin and then its argument prototype would still apply.  */
16983 #ifdef __cplusplus
16984 extern "C"
16985 #endif
16986 char gzopen ();
16988 main ()
16990 return gzopen ();
16991   ;
16992   return 0;
16994 _ACEOF
16995 if ac_fn_c_try_link "$LINENO"; then :
16996   ac_cv_lib_z_gzopen=yes
16997 else
16998   ac_cv_lib_z_gzopen=no
17000 rm -f core conftest.err conftest.$ac_objext \
17001     conftest$ac_exeext conftest.$ac_ext
17002 LIBS=$ac_check_lib_save_LIBS
17004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
17005 $as_echo "$ac_cv_lib_z_gzopen" >&6; }
17006 if test "x$ac_cv_lib_z_gzopen" = xyes; then :
17007   HAVE_LIBZ=1
17011 # Check for the availability of libbz2. Originally we just used AC_CHECK_LIB,
17012 # as for libz. However, this had the following problem, diagnosed and fixed by
17013 # a user:
17015 #   - libbz2 uses the Pascal calling convention (WINAPI) for the functions
17016 #     under Win32.
17017 #   - The standard autoconf AC_CHECK_LIB fails to include "bzlib.h",
17018 #     therefore missing the function definition.
17019 #   - The compiler thus generates a "C" signature for the test function.
17020 #   - The linker fails to find the "C" function.
17021 #   - PCRE fails to configure if asked to do so against libbz2.
17023 # Solution:
17025 #   - Replace the AC_CHECK_LIB test with a custom test.
17027 for ac_header in bzlib.h
17028 do :
17029   ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
17030 if test "x$ac_cv_header_bzlib_h" = xyes; then :
17031   cat >>confdefs.h <<_ACEOF
17032 @%:@define HAVE_BZLIB_H 1
17033 _ACEOF
17034  HAVE_BZLIB_H=1
17037 done
17039 # Original test
17040 # AC_CHECK_LIB([bz2], [BZ2_bzopen], [HAVE_LIBBZ2=1])
17042 # Custom test follows
17044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbz2" >&5
17045 $as_echo_n "checking for libbz2... " >&6; }
17046 OLD_LIBS="$LIBS"
17047 LIBS="$LIBS -lbz2"
17048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17049 /* end confdefs.h.  */
17051 #ifdef HAVE_BZLIB_H
17052 #include <bzlib.h>
17053 #endif
17055 main ()
17057 return (int)BZ2_bzopen("conftest", "rb");
17058   ;
17059   return 0;
17061 _ACEOF
17062 if ac_fn_c_try_link "$LINENO"; then :
17063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17064 $as_echo "yes" >&6; };HAVE_LIBBZ2=1; break;
17065 else
17066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17067 $as_echo "no" >&6; }
17069 rm -f core conftest.err conftest.$ac_objext \
17070     conftest$ac_exeext conftest.$ac_ext
17071 LIBS="$OLD_LIBS"
17073 # Check for the availabiity of libreadline
17075 if test "$enable_pcretest_libreadline" = "yes"; then
17076  for ac_header in readline/readline.h
17077 do :
17078   ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
17079 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
17080   cat >>confdefs.h <<_ACEOF
17081 @%:@define HAVE_READLINE_READLINE_H 1
17082 _ACEOF
17083  HAVE_READLINE_H=1
17086 done
17088  for ac_header in readline/history.h
17089 do :
17090   ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
17091 if test "x$ac_cv_header_readline_history_h" = xyes; then :
17092   cat >>confdefs.h <<_ACEOF
17093 @%:@define HAVE_READLINE_HISTORY_H 1
17094 _ACEOF
17095  HAVE_HISTORY_H=1
17098 done
17100  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
17101 $as_echo_n "checking for readline in -lreadline... " >&6; }
17102 if ${ac_cv_lib_readline_readline+:} false; then :
17103   $as_echo_n "(cached) " >&6
17104 else
17105   ac_check_lib_save_LIBS=$LIBS
17106 LIBS="-lreadline  $LIBS"
17107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17108 /* end confdefs.h.  */
17110 /* Override any GCC internal prototype to avoid an error.
17111    Use char because int might match the return type of a GCC
17112    builtin and then its argument prototype would still apply.  */
17113 #ifdef __cplusplus
17114 extern "C"
17115 #endif
17116 char readline ();
17118 main ()
17120 return readline ();
17121   ;
17122   return 0;
17124 _ACEOF
17125 if ac_fn_c_try_link "$LINENO"; then :
17126   ac_cv_lib_readline_readline=yes
17127 else
17128   ac_cv_lib_readline_readline=no
17130 rm -f core conftest.err conftest.$ac_objext \
17131     conftest$ac_exeext conftest.$ac_ext
17132 LIBS=$ac_check_lib_save_LIBS
17134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
17135 $as_echo "$ac_cv_lib_readline_readline" >&6; }
17136 if test "x$ac_cv_lib_readline_readline" = xyes; then :
17137   LIBREADLINE="-lreadline"
17138 else
17139   unset ac_cv_lib_readline_readline;
17140     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
17141 $as_echo_n "checking for readline in -lreadline... " >&6; }
17142 if ${ac_cv_lib_readline_readline+:} false; then :
17143   $as_echo_n "(cached) " >&6
17144 else
17145   ac_check_lib_save_LIBS=$LIBS
17146 LIBS="-lreadline -ltinfo $LIBS"
17147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17148 /* end confdefs.h.  */
17150 /* Override any GCC internal prototype to avoid an error.
17151    Use char because int might match the return type of a GCC
17152    builtin and then its argument prototype would still apply.  */
17153 #ifdef __cplusplus
17154 extern "C"
17155 #endif
17156 char readline ();
17158 main ()
17160 return readline ();
17161   ;
17162   return 0;
17164 _ACEOF
17165 if ac_fn_c_try_link "$LINENO"; then :
17166   ac_cv_lib_readline_readline=yes
17167 else
17168   ac_cv_lib_readline_readline=no
17170 rm -f core conftest.err conftest.$ac_objext \
17171     conftest$ac_exeext conftest.$ac_ext
17172 LIBS=$ac_check_lib_save_LIBS
17174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
17175 $as_echo "$ac_cv_lib_readline_readline" >&6; }
17176 if test "x$ac_cv_lib_readline_readline" = xyes; then :
17177   LIBREADLINE="-ltinfo"
17178 else
17179   unset ac_cv_lib_readline_readline;
17180       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
17181 $as_echo_n "checking for readline in -lreadline... " >&6; }
17182 if ${ac_cv_lib_readline_readline+:} false; then :
17183   $as_echo_n "(cached) " >&6
17184 else
17185   ac_check_lib_save_LIBS=$LIBS
17186 LIBS="-lreadline -lcurses $LIBS"
17187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17188 /* end confdefs.h.  */
17190 /* Override any GCC internal prototype to avoid an error.
17191    Use char because int might match the return type of a GCC
17192    builtin and then its argument prototype would still apply.  */
17193 #ifdef __cplusplus
17194 extern "C"
17195 #endif
17196 char readline ();
17198 main ()
17200 return readline ();
17201   ;
17202   return 0;
17204 _ACEOF
17205 if ac_fn_c_try_link "$LINENO"; then :
17206   ac_cv_lib_readline_readline=yes
17207 else
17208   ac_cv_lib_readline_readline=no
17210 rm -f core conftest.err conftest.$ac_objext \
17211     conftest$ac_exeext conftest.$ac_ext
17212 LIBS=$ac_check_lib_save_LIBS
17214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
17215 $as_echo "$ac_cv_lib_readline_readline" >&6; }
17216 if test "x$ac_cv_lib_readline_readline" = xyes; then :
17217   LIBREADLINE="-lcurses"
17218 else
17219   unset ac_cv_lib_readline_readline;
17220         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
17221 $as_echo_n "checking for readline in -lreadline... " >&6; }
17222 if ${ac_cv_lib_readline_readline+:} false; then :
17223   $as_echo_n "(cached) " >&6
17224 else
17225   ac_check_lib_save_LIBS=$LIBS
17226 LIBS="-lreadline -lncurses $LIBS"
17227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17228 /* end confdefs.h.  */
17230 /* Override any GCC internal prototype to avoid an error.
17231    Use char because int might match the return type of a GCC
17232    builtin and then its argument prototype would still apply.  */
17233 #ifdef __cplusplus
17234 extern "C"
17235 #endif
17236 char readline ();
17238 main ()
17240 return readline ();
17241   ;
17242   return 0;
17244 _ACEOF
17245 if ac_fn_c_try_link "$LINENO"; then :
17246   ac_cv_lib_readline_readline=yes
17247 else
17248   ac_cv_lib_readline_readline=no
17250 rm -f core conftest.err conftest.$ac_objext \
17251     conftest$ac_exeext conftest.$ac_ext
17252 LIBS=$ac_check_lib_save_LIBS
17254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
17255 $as_echo "$ac_cv_lib_readline_readline" >&6; }
17256 if test "x$ac_cv_lib_readline_readline" = xyes; then :
17257   LIBREADLINE="-lncurses"
17258 else
17259   unset ac_cv_lib_readline_readline;
17260           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
17261 $as_echo_n "checking for readline in -lreadline... " >&6; }
17262 if ${ac_cv_lib_readline_readline+:} false; then :
17263   $as_echo_n "(cached) " >&6
17264 else
17265   ac_check_lib_save_LIBS=$LIBS
17266 LIBS="-lreadline -lncursesw $LIBS"
17267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17268 /* end confdefs.h.  */
17270 /* Override any GCC internal prototype to avoid an error.
17271    Use char because int might match the return type of a GCC
17272    builtin and then its argument prototype would still apply.  */
17273 #ifdef __cplusplus
17274 extern "C"
17275 #endif
17276 char readline ();
17278 main ()
17280 return readline ();
17281   ;
17282   return 0;
17284 _ACEOF
17285 if ac_fn_c_try_link "$LINENO"; then :
17286   ac_cv_lib_readline_readline=yes
17287 else
17288   ac_cv_lib_readline_readline=no
17290 rm -f core conftest.err conftest.$ac_objext \
17291     conftest$ac_exeext conftest.$ac_ext
17292 LIBS=$ac_check_lib_save_LIBS
17294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
17295 $as_echo "$ac_cv_lib_readline_readline" >&6; }
17296 if test "x$ac_cv_lib_readline_readline" = xyes; then :
17297   LIBREADLINE="-lncursesw"
17298 else
17299   unset ac_cv_lib_readline_readline;
17300             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
17301 $as_echo_n "checking for readline in -lreadline... " >&6; }
17302 if ${ac_cv_lib_readline_readline+:} false; then :
17303   $as_echo_n "(cached) " >&6
17304 else
17305   ac_check_lib_save_LIBS=$LIBS
17306 LIBS="-lreadline -ltermcap $LIBS"
17307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17308 /* end confdefs.h.  */
17310 /* Override any GCC internal prototype to avoid an error.
17311    Use char because int might match the return type of a GCC
17312    builtin and then its argument prototype would still apply.  */
17313 #ifdef __cplusplus
17314 extern "C"
17315 #endif
17316 char readline ();
17318 main ()
17320 return readline ();
17321   ;
17322   return 0;
17324 _ACEOF
17325 if ac_fn_c_try_link "$LINENO"; then :
17326   ac_cv_lib_readline_readline=yes
17327 else
17328   ac_cv_lib_readline_readline=no
17330 rm -f core conftest.err conftest.$ac_objext \
17331     conftest$ac_exeext conftest.$ac_ext
17332 LIBS=$ac_check_lib_save_LIBS
17334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
17335 $as_echo "$ac_cv_lib_readline_readline" >&6; }
17336 if test "x$ac_cv_lib_readline_readline" = xyes; then :
17337   LIBREADLINE="-ltermcap"
17338 else
17339   LIBREADLINE=""
17353  if test -n "$LIBREADLINE"; then
17354    if test "$LIBREADLINE" != "-lreadline"; then
17355      echo "-lreadline needs $LIBREADLINE"
17356      LIBREADLINE="-lreadline $LIBREADLINE"
17357    fi
17358  fi
17362 # Check for the availability of libedit. Different distributions put its
17363 # headers in different places. Try to cover the most common ones.
17365 if test "$enable_pcretest_libedit" = "yes"; then
17366   for ac_header in editline/readline.h
17367 do :
17368   ac_fn_c_check_header_mongrel "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
17369 if test "x$ac_cv_header_editline_readline_h" = xyes; then :
17370   cat >>confdefs.h <<_ACEOF
17371 @%:@define HAVE_EDITLINE_READLINE_H 1
17372 _ACEOF
17373  HAVE_EDITLINE_READLINE_H=1
17374 else
17375   for ac_header in edit/readline/readline.h
17376 do :
17377   ac_fn_c_check_header_mongrel "$LINENO" "edit/readline/readline.h" "ac_cv_header_edit_readline_readline_h" "$ac_includes_default"
17378 if test "x$ac_cv_header_edit_readline_readline_h" = xyes; then :
17379   cat >>confdefs.h <<_ACEOF
17380 @%:@define HAVE_EDIT_READLINE_READLINE_H 1
17381 _ACEOF
17382  HAVE_READLINE_READLINE_H=1
17383 else
17384   for ac_header in readline/readline.h
17385 do :
17386   ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
17387 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
17388   cat >>confdefs.h <<_ACEOF
17389 @%:@define HAVE_READLINE_READLINE_H 1
17390 _ACEOF
17391  HAVE_READLINE_READLINE_H=1
17394 done
17398 done
17402 done
17404   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -ledit" >&5
17405 $as_echo_n "checking for readline in -ledit... " >&6; }
17406 if ${ac_cv_lib_edit_readline+:} false; then :
17407   $as_echo_n "(cached) " >&6
17408 else
17409   ac_check_lib_save_LIBS=$LIBS
17410 LIBS="-ledit  $LIBS"
17411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17412 /* end confdefs.h.  */
17414 /* Override any GCC internal prototype to avoid an error.
17415    Use char because int might match the return type of a GCC
17416    builtin and then its argument prototype would still apply.  */
17417 #ifdef __cplusplus
17418 extern "C"
17419 #endif
17420 char readline ();
17422 main ()
17424 return readline ();
17425   ;
17426   return 0;
17428 _ACEOF
17429 if ac_fn_c_try_link "$LINENO"; then :
17430   ac_cv_lib_edit_readline=yes
17431 else
17432   ac_cv_lib_edit_readline=no
17434 rm -f core conftest.err conftest.$ac_objext \
17435     conftest$ac_exeext conftest.$ac_ext
17436 LIBS=$ac_check_lib_save_LIBS
17438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_readline" >&5
17439 $as_echo "$ac_cv_lib_edit_readline" >&6; }
17440 if test "x$ac_cv_lib_edit_readline" = xyes; then :
17441   LIBEDIT="-ledit"
17446 # This facilitates -ansi builds under Linux
17448 PCRE_STATIC_CFLAG=""
17449 if test "x$enable_shared" = "xno" ; then
17450   
17451 $as_echo "@%:@define PCRE_STATIC 1" >>confdefs.h
17453   PCRE_STATIC_CFLAG="-DPCRE_STATIC"
17457 # Here is where pcre specific defines are handled
17459 if test "$enable_pcre8" = "yes"; then
17460   
17461 $as_echo "@%:@define SUPPORT_PCRE8 /**/" >>confdefs.h
17465 if test "$enable_pcre16" = "yes"; then
17466   
17467 $as_echo "@%:@define SUPPORT_PCRE16 /**/" >>confdefs.h
17471 if test "$enable_pcre32" = "yes"; then
17472   
17473 $as_echo "@%:@define SUPPORT_PCRE32 /**/" >>confdefs.h
17477 if test "$enable_jit" = "yes"; then
17478   
17480 ac_ext=c
17481 ac_cpp='$CPP $CPPFLAGS'
17482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17486 ax_pthread_ok=no
17488 # We used to check for pthread.h first, but this fails if pthread.h
17489 # requires special compiler flags (e.g. on True64 or Sequent).
17490 # It gets checked for in the link test anyway.
17492 # First of all, check if the user has set any of the PTHREAD_LIBS,
17493 # etcetera environment variables, and if threads linking works using
17494 # them:
17495 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
17496         save_CFLAGS="$CFLAGS"
17497         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17498         save_LIBS="$LIBS"
17499         LIBS="$PTHREAD_LIBS $LIBS"
17500         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
17501 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
17502         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17503 /* end confdefs.h.  */
17505 /* Override any GCC internal prototype to avoid an error.
17506    Use char because int might match the return type of a GCC
17507    builtin and then its argument prototype would still apply.  */
17508 #ifdef __cplusplus
17509 extern "C"
17510 #endif
17511 char pthread_join ();
17513 main ()
17515 return pthread_join ();
17516   ;
17517   return 0;
17519 _ACEOF
17520 if ac_fn_c_try_link "$LINENO"; then :
17521   ax_pthread_ok=yes
17523 rm -f core conftest.err conftest.$ac_objext \
17524     conftest$ac_exeext conftest.$ac_ext
17525         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
17526 $as_echo "$ax_pthread_ok" >&6; }
17527         if test x"$ax_pthread_ok" = xno; then
17528                 PTHREAD_LIBS=""
17529                 PTHREAD_CFLAGS=""
17530         fi
17531         LIBS="$save_LIBS"
17532         CFLAGS="$save_CFLAGS"
17535 # We must check for the threads library under a number of different
17536 # names; the ordering is very important because some systems
17537 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
17538 # libraries is broken (non-POSIX).
17540 # Create a list of thread flags to try.  Items starting with a "-" are
17541 # C compiler flags, and other items are library names, except for "none"
17542 # which indicates that we try without any flags at all, and "pthread-config"
17543 # which is a program returning the flags for the Pth emulation library.
17545 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
17547 # The ordering *is* (sometimes) important.  Some notes on the
17548 # individual items follow:
17550 # pthreads: AIX (must check this before -lpthread)
17551 # none: in case threads are in libc; should be tried before -Kthread and
17552 #       other compiler flags to prevent continual compiler warnings
17553 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
17554 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
17555 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
17556 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
17557 # -pthreads: Solaris/gcc
17558 # -mthreads: Mingw32/gcc, Lynx/gcc
17559 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
17560 #      doesn't hurt to check since this sometimes defines pthreads too;
17561 #      also defines -D_REENTRANT)
17562 #      ... -mt is also the pthreads flag for HP/aCC
17563 # pthread: Linux, etcetera
17564 # --thread-safe: KAI C++
17565 # pthread-config: use pthread-config program (for GNU Pth library)
17567 case ${host_os} in
17568         solaris*)
17570         # On Solaris (at least, for some versions), libc contains stubbed
17571         # (non-functional) versions of the pthreads routines, so link-based
17572         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
17573         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
17574         # a function called by this macro, so we could check for that, but
17575         # who knows whether they'll stub that too in a future libc.)  So,
17576         # we'll just look for -pthreads and -lpthread first:
17578         ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
17579         ;;
17581         darwin*)
17582         ax_pthread_flags="-pthread $ax_pthread_flags"
17583         ;;
17584 esac
17586 if test x"$ax_pthread_ok" = xno; then
17587 for flag in $ax_pthread_flags; do
17589         case $flag in
17590                 none)
17591                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
17592 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
17593                 ;;
17595                 -*)
17596                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
17597 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
17598                 PTHREAD_CFLAGS="$flag"
17599                 ;;
17601                 pthread-config)
17602                 # Extract the first word of "pthread-config", so it can be a program name with args.
17603 set dummy pthread-config; ac_word=$2
17604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17605 $as_echo_n "checking for $ac_word... " >&6; }
17606 if ${ac_cv_prog_ax_pthread_config+:} false; then :
17607   $as_echo_n "(cached) " >&6
17608 else
17609   if test -n "$ax_pthread_config"; then
17610   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
17611 else
17612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17613 for as_dir in $PATH
17615   IFS=$as_save_IFS
17616   test -z "$as_dir" && as_dir=.
17617     for ac_exec_ext in '' $ac_executable_extensions; do
17618   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17619     ac_cv_prog_ax_pthread_config="yes"
17620     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17621     break 2
17622   fi
17623 done
17624   done
17625 IFS=$as_save_IFS
17627   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
17630 ax_pthread_config=$ac_cv_prog_ax_pthread_config
17631 if test -n "$ax_pthread_config"; then
17632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
17633 $as_echo "$ax_pthread_config" >&6; }
17634 else
17635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17636 $as_echo "no" >&6; }
17640                 if test x"$ax_pthread_config" = xno; then continue; fi
17641                 PTHREAD_CFLAGS="`pthread-config --cflags`"
17642                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
17643                 ;;
17645                 *)
17646                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
17647 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
17648                 PTHREAD_LIBS="-l$flag"
17649                 ;;
17650         esac
17652         save_LIBS="$LIBS"
17653         save_CFLAGS="$CFLAGS"
17654         LIBS="$PTHREAD_LIBS $LIBS"
17655         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17657         # Check for various functions.  We must include pthread.h,
17658         # since some functions may be macros.  (On the Sequent, we
17659         # need a special flag -Kthread to make this header compile.)
17660         # We check for pthread_join because it is in -lpthread on IRIX
17661         # while pthread_create is in libc.  We check for pthread_attr_init
17662         # due to DEC craziness with -lpthreads.  We check for
17663         # pthread_cleanup_push because it is one of the few pthread
17664         # functions on Solaris that doesn't have a non-functional libc stub.
17665         # We try pthread_create on general principles.
17666         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17667 /* end confdefs.h.  */
17668 #include <pthread.h>
17669                         static void routine(void *a) { a = 0; }
17670                         static void *start_routine(void *a) { return a; }
17672 main ()
17674 pthread_t th; pthread_attr_t attr;
17675                         pthread_create(&th, 0, start_routine, 0);
17676                         pthread_join(th, 0);
17677                         pthread_attr_init(&attr);
17678                         pthread_cleanup_push(routine, 0);
17679                         pthread_cleanup_pop(0) /* ; */
17680   ;
17681   return 0;
17683 _ACEOF
17684 if ac_fn_c_try_link "$LINENO"; then :
17685   ax_pthread_ok=yes
17687 rm -f core conftest.err conftest.$ac_objext \
17688     conftest$ac_exeext conftest.$ac_ext
17690         LIBS="$save_LIBS"
17691         CFLAGS="$save_CFLAGS"
17693         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
17694 $as_echo "$ax_pthread_ok" >&6; }
17695         if test "x$ax_pthread_ok" = xyes; then
17696                 break;
17697         fi
17699         PTHREAD_LIBS=""
17700         PTHREAD_CFLAGS=""
17701 done
17704 # Various other checks:
17705 if test "x$ax_pthread_ok" = xyes; then
17706         save_LIBS="$LIBS"
17707         LIBS="$PTHREAD_LIBS $LIBS"
17708         save_CFLAGS="$CFLAGS"
17709         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17711         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
17712         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
17713 $as_echo_n "checking for joinable pthread attribute... " >&6; }
17714         attr_name=unknown
17715         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
17716             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17717 /* end confdefs.h.  */
17718 #include <pthread.h>
17720 main ()
17722 int attr = $attr; return attr /* ; */
17723   ;
17724   return 0;
17726 _ACEOF
17727 if ac_fn_c_try_link "$LINENO"; then :
17728   attr_name=$attr; break
17730 rm -f core conftest.err conftest.$ac_objext \
17731     conftest$ac_exeext conftest.$ac_ext
17732         done
17733         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
17734 $as_echo "$attr_name" >&6; }
17735         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
17736             
17737 cat >>confdefs.h <<_ACEOF
17738 @%:@define PTHREAD_CREATE_JOINABLE $attr_name
17739 _ACEOF
17741         fi
17743         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
17744 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
17745         flag=no
17746         case ${host_os} in
17747             aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
17748             osf* | hpux*) flag="-D_REENTRANT";;
17749             solaris*)
17750             if test "$GCC" = "yes"; then
17751                 flag="-D_REENTRANT"
17752             else
17753                 flag="-mt -D_REENTRANT"
17754             fi
17755             ;;
17756         esac
17757         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
17758 $as_echo "${flag}" >&6; }
17759         if test "x$flag" != xno; then
17760             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
17761         fi
17763         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
17764 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
17765 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
17766   $as_echo_n "(cached) " >&6
17767 else
17768   
17769                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17770 /* end confdefs.h.  */
17772                     #include <pthread.h>
17774 main ()
17776 int i = PTHREAD_PRIO_INHERIT;
17777   ;
17778   return 0;
17780 _ACEOF
17781 if ac_fn_c_try_link "$LINENO"; then :
17782   ax_cv_PTHREAD_PRIO_INHERIT=yes
17783 else
17784   ax_cv_PTHREAD_PRIO_INHERIT=no
17786 rm -f core conftest.err conftest.$ac_objext \
17787     conftest$ac_exeext conftest.$ac_ext
17788             
17790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
17791 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
17792         if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
17793   
17794 $as_echo "@%:@define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
17798         LIBS="$save_LIBS"
17799         CFLAGS="$save_CFLAGS"
17801         # More AIX lossage: must compile with xlc_r or cc_r
17802         if test x"$GCC" != xyes; then
17803           for ac_prog in xlc_r cc_r
17805   # Extract the first word of "$ac_prog", so it can be a program name with args.
17806 set dummy $ac_prog; ac_word=$2
17807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17808 $as_echo_n "checking for $ac_word... " >&6; }
17809 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
17810   $as_echo_n "(cached) " >&6
17811 else
17812   if test -n "$PTHREAD_CC"; then
17813   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
17814 else
17815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17816 for as_dir in $PATH
17818   IFS=$as_save_IFS
17819   test -z "$as_dir" && as_dir=.
17820     for ac_exec_ext in '' $ac_executable_extensions; do
17821   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17822     ac_cv_prog_PTHREAD_CC="$ac_prog"
17823     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17824     break 2
17825   fi
17826 done
17827   done
17828 IFS=$as_save_IFS
17832 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
17833 if test -n "$PTHREAD_CC"; then
17834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
17835 $as_echo "$PTHREAD_CC" >&6; }
17836 else
17837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17838 $as_echo "no" >&6; }
17842   test -n "$PTHREAD_CC" && break
17843 done
17844 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
17846         else
17847           PTHREAD_CC=$CC
17848         fi
17849 else
17850         PTHREAD_CC="$CC"
17857 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
17858 if test x"$ax_pthread_ok" = xyes; then
17859         
17860 $as_echo "@%:@define HAVE_PTHREAD 1" >>confdefs.h
17862         :
17863 else
17864         ax_pthread_ok=no
17865         as_fn_error $? "JIT support requires pthreads" "$LINENO" 5
17867 ac_ext=c
17868 ac_cpp='$CPP $CPPFLAGS'
17869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17874   CC="$PTHREAD_CC"
17875   CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
17876   LIBS="$PTHREAD_LIBS $LIBS"
17877   
17878 $as_echo "@%:@define SUPPORT_JIT /**/" >>confdefs.h
17880 else
17881   enable_pcregrep_jit="no"
17884 if test "$enable_pcregrep_jit" = "yes"; then
17885   
17886 $as_echo "@%:@define SUPPORT_PCREGREP_JIT /**/" >>confdefs.h
17890 if test "$enable_utf" = "yes"; then
17891   
17892 $as_echo "@%:@define SUPPORT_UTF /**/" >>confdefs.h
17896 if test "$enable_unicode_properties" = "yes"; then
17897   
17898 $as_echo "@%:@define SUPPORT_UCP /**/" >>confdefs.h
17902 if test "$enable_stack_for_recursion" = "no"; then
17903   
17904 $as_echo "@%:@define NO_RECURSE /**/" >>confdefs.h
17908 if test "$enable_pcregrep_libz" = "yes"; then
17909   
17910 $as_echo "@%:@define SUPPORT_LIBZ /**/" >>confdefs.h
17914 if test "$enable_pcregrep_libbz2" = "yes"; then
17915   
17916 $as_echo "@%:@define SUPPORT_LIBBZ2 /**/" >>confdefs.h
17920 if test $with_pcregrep_bufsize -lt 8192 ; then
17921   with_pcregrep_bufsize="8192"
17925 cat >>confdefs.h <<_ACEOF
17926 @%:@define PCREGREP_BUFSIZE $with_pcregrep_bufsize
17927 _ACEOF
17930 if test "$enable_pcretest_libedit" = "yes"; then
17931   
17932 $as_echo "@%:@define SUPPORT_LIBEDIT /**/" >>confdefs.h
17934   LIBREADLINE="$LIBEDIT"
17935 elif test "$enable_pcretest_libreadline" = "yes"; then
17936   
17937 $as_echo "@%:@define SUPPORT_LIBREADLINE /**/" >>confdefs.h
17942 cat >>confdefs.h <<_ACEOF
17943 @%:@define NEWLINE $ac_pcre_newline_value
17944 _ACEOF
17947 if test "$enable_bsr_anycrlf" = "yes"; then
17948   
17949 $as_echo "@%:@define BSR_ANYCRLF /**/" >>confdefs.h
17954 cat >>confdefs.h <<_ACEOF
17955 @%:@define LINK_SIZE $with_link_size
17956 _ACEOF
17960 cat >>confdefs.h <<_ACEOF
17961 @%:@define POSIX_MALLOC_THRESHOLD $with_posix_malloc_threshold
17962 _ACEOF
17966 cat >>confdefs.h <<_ACEOF
17967 @%:@define MATCH_LIMIT $with_match_limit
17968 _ACEOF
17972 cat >>confdefs.h <<_ACEOF
17973 @%:@define MATCH_LIMIT_RECURSION $with_match_limit_recursion
17974 _ACEOF
17978 $as_echo "@%:@define MAX_NAME_SIZE 32" >>confdefs.h
17982 $as_echo "@%:@define MAX_NAME_COUNT 10000" >>confdefs.h
17987 if test "$enable_ebcdic" = "yes"; then
17988   
17989 cat >>confdefs.h <<_ACEOF
17990 @%:@define EBCDIC /**/
17991 _ACEOF
17995 if test "$enable_ebcdic_nl25" = "yes"; then
17996   
17997 cat >>confdefs.h <<_ACEOF
17998 @%:@define EBCDIC_NL25 /**/
17999 _ACEOF
18003 if test "$enable_valgrind" = "yes"; then
18004   
18005 cat >>confdefs.h <<_ACEOF
18006 @%:@define SUPPORT_VALGRIND /**/
18007 _ACEOF
18011 # Platform specific issues
18012 NO_UNDEFINED=
18013 EXPORT_ALL_SYMBOLS=
18014 case $host_os in
18015   cygwin* | mingw* )
18016     if test X"$enable_shared" = Xyes; then
18017       NO_UNDEFINED="-no-undefined"
18018       EXPORT_ALL_SYMBOLS="-Wl,--export-all-symbols"
18019     fi
18020     ;;
18021 esac
18023 # The extra LDFLAGS for each particular library
18024 # (Note: The libpcre*_version bits are m4 variables, assigned above)
18026 EXTRA_LIBPCRE_LDFLAGS="$EXTRA_LIBPCRE_LDFLAGS \
18027                        $NO_UNDEFINED -version-info 3:0:2"
18029 EXTRA_LIBPCRE16_LDFLAGS="$EXTRA_LIBPCRE16_LDFLAGS \
18030                        $NO_UNDEFINED -version-info 2:0:2"
18032 EXTRA_LIBPCRE32_LDFLAGS="$EXTRA_LIBPCRE32_LDFLAGS \
18033                        $NO_UNDEFINED -version-info 0:0:0"
18035 EXTRA_LIBPCREPOSIX_LDFLAGS="$EXTRA_LIBPCREPOSIX_LDFLAGS \
18036                             $NO_UNDEFINED -version-info 0:1:0"
18038 EXTRA_LIBPCRECPP_LDFLAGS="$EXTRA_LIBPCRECPP_LDFLAGS \
18039                           $NO_UNDEFINED -version-info 0:0:0 \
18040                           $EXPORT_ALL_SYMBOLS"
18048 # When we run 'make distcheck', use these arguments. Turning off compiler
18049 # optimization makes it run faster.
18050 DISTCHECK_CONFIGURE_FLAGS="CFLAGS='' CXXFLAGS='' --enable-pcre16 --enable-pcre32 --enable-jit --enable-cpp --enable-unicode-properties"
18053 # Check that, if --enable-pcregrep-libz or --enable-pcregrep-libbz2 is
18054 # specified, the relevant library is available.
18056 if test "$enable_pcregrep_libz" = "yes"; then
18057   if test "$HAVE_ZLIB_H" != "1"; then
18058     echo "** Cannot --enable-pcregrep-libz because zlib.h was not found"
18059     exit 1
18060   fi
18061   if test "$HAVE_LIBZ" != "1"; then
18062     echo "** Cannot --enable-pcregrep-libz because libz was not found"
18063     exit 1
18064   fi
18065   LIBZ="-lz"
18069 if test "$enable_pcregrep_libbz2" = "yes"; then
18070   if test "$HAVE_BZLIB_H" != "1"; then
18071     echo "** Cannot --enable-pcregrep-libbz2 because bzlib.h was not found"
18072     exit 1
18073   fi
18074   if test "$HAVE_LIBBZ2" != "1"; then
18075     echo "** Cannot --enable-pcregrep-libbz2 because libbz2 was not found"
18076     exit 1
18077   fi
18078   LIBBZ2="-lbz2"
18082 # Similarly for --enable-pcretest-readline
18084 if test "$enable_pcretest_libedit" = "yes"; then
18085   if test "$enable_pcretest_libreadline" = "yes"; then
18086     echo "** Cannot use both --enable-pcretest-libedit and --enable-pcretest-readline"
18087     exit 1
18088   fi
18089   if test "$HAVE_EDITLINE_READLINE_H" != "1" -a \
18090           "$HAVE_READLINE_READLINE_H" != "1"; then
18091     echo "** Cannot --enable-pcretest-libedit because neither editline/readline.h"
18092     echo "** nor readline/readline.h was found."
18093     exit 1
18094   fi
18095   if test -z "$LIBEDIT"; then
18096     echo "** Cannot --enable-pcretest-libedit because libedit library was not found."
18097     exit 1
18098   fi
18101 if test "$enable_pcretest_libreadline" = "yes"; then
18102   if test "$HAVE_READLINE_H" != "1"; then
18103     echo "** Cannot --enable-pcretest-readline because readline/readline.h was not found."
18104     exit 1
18105   fi
18106   if test "$HAVE_HISTORY_H" != "1"; then
18107     echo "** Cannot --enable-pcretest-readline because readline/history.h was not found."
18108     exit 1
18109   fi
18110   if test -z "$LIBREADLINE"; then
18111     echo "** Cannot --enable-pcretest-readline because readline library was not found."
18112     exit 1
18113   fi
18116 # Check for valgrind
18118 if test "$enable_valgrind" = "yes"; then
18119   
18126 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18127         if test -n "$ac_tool_prefix"; then
18128   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18129 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18131 $as_echo_n "checking for $ac_word... " >&6; }
18132 if ${ac_cv_path_PKG_CONFIG+:} false; then :
18133   $as_echo_n "(cached) " >&6
18134 else
18135   case $PKG_CONFIG in
18136   [\\/]* | ?:[\\/]*)
18137   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18138   ;;
18139   *)
18140   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18141 for as_dir in $PATH
18143   IFS=$as_save_IFS
18144   test -z "$as_dir" && as_dir=.
18145     for ac_exec_ext in '' $ac_executable_extensions; do
18146   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18147     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18148     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18149     break 2
18150   fi
18151 done
18152   done
18153 IFS=$as_save_IFS
18155   ;;
18156 esac
18158 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18159 if test -n "$PKG_CONFIG"; then
18160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18161 $as_echo "$PKG_CONFIG" >&6; }
18162 else
18163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18164 $as_echo "no" >&6; }
18169 if test -z "$ac_cv_path_PKG_CONFIG"; then
18170   ac_pt_PKG_CONFIG=$PKG_CONFIG
18171   # Extract the first word of "pkg-config", so it can be a program name with args.
18172 set dummy pkg-config; ac_word=$2
18173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18174 $as_echo_n "checking for $ac_word... " >&6; }
18175 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
18176   $as_echo_n "(cached) " >&6
18177 else
18178   case $ac_pt_PKG_CONFIG in
18179   [\\/]* | ?:[\\/]*)
18180   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18181   ;;
18182   *)
18183   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18184 for as_dir in $PATH
18186   IFS=$as_save_IFS
18187   test -z "$as_dir" && as_dir=.
18188     for ac_exec_ext in '' $ac_executable_extensions; do
18189   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18190     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18191     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18192     break 2
18193   fi
18194 done
18195   done
18196 IFS=$as_save_IFS
18198   ;;
18199 esac
18201 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18202 if test -n "$ac_pt_PKG_CONFIG"; then
18203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18204 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
18205 else
18206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18207 $as_echo "no" >&6; }
18210   if test "x$ac_pt_PKG_CONFIG" = x; then
18211     PKG_CONFIG=""
18212   else
18213     case $cross_compiling:$ac_tool_warned in
18214 yes:)
18215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18216 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18217 ac_tool_warned=yes ;;
18218 esac
18219     PKG_CONFIG=$ac_pt_PKG_CONFIG
18220   fi
18221 else
18222   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18226 if test -n "$PKG_CONFIG"; then
18227         _pkg_min_version=0.9.0
18228         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
18229 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18230         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18231                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18232 $as_echo "yes" >&6; }
18233         else
18234                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18235 $as_echo "no" >&6; }
18236                 PKG_CONFIG=""
18237         fi
18240 pkg_failed=no
18241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND" >&5
18242 $as_echo_n "checking for VALGRIND... " >&6; }
18244 if test -n "$VALGRIND_CFLAGS"; then
18245     pkg_cv_VALGRIND_CFLAGS="$VALGRIND_CFLAGS"
18246  elif test -n "$PKG_CONFIG"; then
18247     if test -n "$PKG_CONFIG" && \
18248     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5
18249   ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5
18250   ac_status=$?
18251   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18252   test $ac_status = 0; }; then
18253   pkg_cv_VALGRIND_CFLAGS=`$PKG_CONFIG --cflags "valgrind" 2>/dev/null`
18254                       test "x$?" != "x0" && pkg_failed=yes 
18255 else
18256   pkg_failed=yes
18258  else
18259     pkg_failed=untried
18261 if test -n "$VALGRIND_LIBS"; then
18262     pkg_cv_VALGRIND_LIBS="$VALGRIND_LIBS"
18263  elif test -n "$PKG_CONFIG"; then
18264     if test -n "$PKG_CONFIG" && \
18265     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5
18266   ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5
18267   ac_status=$?
18268   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18269   test $ac_status = 0; }; then
18270   pkg_cv_VALGRIND_LIBS=`$PKG_CONFIG --libs "valgrind" 2>/dev/null`
18271                       test "x$?" != "x0" && pkg_failed=yes 
18272 else
18273   pkg_failed=yes
18275  else
18276     pkg_failed=untried
18281 if test $pkg_failed = yes; then
18282         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18283 $as_echo "no" >&6; }
18284         
18285 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18286         _pkg_short_errors_supported=yes
18287 else
18288         _pkg_short_errors_supported=no
18290         if test $_pkg_short_errors_supported = yes; then
18291                 VALGRIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "valgrind" 2>&1`
18292         else 
18293                 VALGRIND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "valgrind" 2>&1`
18294         fi
18295         # Put the nasty error message in config.log where it belongs
18296         echo "$VALGRIND_PKG_ERRORS" >&5
18298         as_fn_error $? "Package requirements (valgrind) were not met:
18300 $VALGRIND_PKG_ERRORS
18302 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18303 installed software in a non-standard prefix.
18305 Alternatively, you may set the environment variables VALGRIND_CFLAGS
18306 and VALGRIND_LIBS to avoid the need to call pkg-config.
18307 See the pkg-config man page for more details." "$LINENO" 5        
18308 elif test $pkg_failed = untried; then
18309         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18310 $as_echo "no" >&6; }
18311         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18312 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18313 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18314 is in your PATH or set the PKG_CONFIG environment variable to the full
18315 path to pkg-config.
18317 Alternatively, you may set the environment variables VALGRIND_CFLAGS
18318 and VALGRIND_LIBS to avoid the need to call pkg-config.
18319 See the pkg-config man page for more details.
18321 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18322 See \`config.log' for more details" "$LINENO" 5; }        
18323 else
18324         VALGRIND_CFLAGS=$pkg_cv_VALGRIND_CFLAGS
18325         VALGRIND_LIBS=$pkg_cv_VALGRIND_LIBS
18326         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18327 $as_echo "yes" >&6; }
18328         
18332 # test code coverage reporting
18333 if test "$enable_coverage" = "yes"; then
18334   if test "x$GCC" != "xyes"; then
18335     as_fn_error $? "Code coverage reports can only be generated when using GCC" "$LINENO" 5
18336   fi
18338   # ccache is incompatible with gcov
18339   # Extract the first word of "shtool", so it can be a program name with args.
18340 set dummy shtool; ac_word=$2
18341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18342 $as_echo_n "checking for $ac_word... " >&6; }
18343 if ${ac_cv_path_SHTOOL+:} false; then :
18344   $as_echo_n "(cached) " >&6
18345 else
18346   case $SHTOOL in
18347   [\\/]* | ?:[\\/]*)
18348   ac_cv_path_SHTOOL="$SHTOOL" # Let the user override the test with a path.
18349   ;;
18350   *)
18351   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18352 for as_dir in $PATH
18354   IFS=$as_save_IFS
18355   test -z "$as_dir" && as_dir=.
18356     for ac_exec_ext in '' $ac_executable_extensions; do
18357   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18358     ac_cv_path_SHTOOL="$as_dir/$ac_word$ac_exec_ext"
18359     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18360     break 2
18361   fi
18362 done
18363   done
18364 IFS=$as_save_IFS
18366   test -z "$ac_cv_path_SHTOOL" && ac_cv_path_SHTOOL="false"
18367   ;;
18368 esac
18370 SHTOOL=$ac_cv_path_SHTOOL
18371 if test -n "$SHTOOL"; then
18372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHTOOL" >&5
18373 $as_echo "$SHTOOL" >&6; }
18374 else
18375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18376 $as_echo "no" >&6; }
18380   case `$SHTOOL path $CC` in
18381     *ccache*) cc_ccache=yes;;
18382     *) cc_ccache=no;;
18383   esac
18385   if test "$cc_ccache" = "yes"; then
18386     if test -z "$CCACHE_DISABLE" -o "$CCACHE_DISABLE" != "1"; then
18387       as_fn_error $? "must export CCACHE_DISABLE=1 to disable ccache for code coverage" "$LINENO" 5
18388     fi
18389   fi
18391   
18392   # Extract the first word of "lcov", so it can be a program name with args.
18393 set dummy lcov; ac_word=$2
18394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18395 $as_echo_n "checking for $ac_word... " >&6; }
18396 if ${ac_cv_path_LCOV+:} false; then :
18397   $as_echo_n "(cached) " >&6
18398 else
18399   case $LCOV in
18400   [\\/]* | ?:[\\/]*)
18401   ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
18402   ;;
18403   *)
18404   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18405 for as_dir in $PATH
18407   IFS=$as_save_IFS
18408   test -z "$as_dir" && as_dir=.
18409     for ac_exec_ext in '' $ac_executable_extensions; do
18410   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18411     ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
18412     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18413     break 2
18414   fi
18415 done
18416   done
18417 IFS=$as_save_IFS
18419   test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV="false"
18420   ;;
18421 esac
18423 LCOV=$ac_cv_path_LCOV
18424 if test -n "$LCOV"; then
18425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
18426 $as_echo "$LCOV" >&6; }
18427 else
18428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18429 $as_echo "no" >&6; }
18433   if test "x$LCOV" = "xfalse"; then
18434     as_fn_error $? "lcov not found" "$LINENO" 5
18435   fi
18437   
18438   # Extract the first word of "genhtml", so it can be a program name with args.
18439 set dummy genhtml; ac_word=$2
18440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18441 $as_echo_n "checking for $ac_word... " >&6; }
18442 if ${ac_cv_path_GENHTML+:} false; then :
18443   $as_echo_n "(cached) " >&6
18444 else
18445   case $GENHTML in
18446   [\\/]* | ?:[\\/]*)
18447   ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
18448   ;;
18449   *)
18450   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18451 for as_dir in $PATH
18453   IFS=$as_save_IFS
18454   test -z "$as_dir" && as_dir=.
18455     for ac_exec_ext in '' $ac_executable_extensions; do
18456   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18457     ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
18458     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18459     break 2
18460   fi
18461 done
18462   done
18463 IFS=$as_save_IFS
18465   test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML="false"
18466   ;;
18467 esac
18469 GENHTML=$ac_cv_path_GENHTML
18470 if test -n "$GENHTML"; then
18471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
18472 $as_echo "$GENHTML" >&6; }
18473 else
18474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18475 $as_echo "no" >&6; }
18479   if test "x$GENHTML" = "xfalse"; then
18480     as_fn_error $? "genhtml not found" "$LINENO" 5
18481   fi
18483   
18484 $as_echo "@%:@define SUPPORT_GCOV 1" >>confdefs.h
18487   # And add flags needed for gcov
18488   GCOV_CFLAGS="-O0 -ggdb3 -fprofile-arcs -ftest-coverage"
18489   GCOV_CXXFLAGS="-O0 -ggdb3 -fprofile-arcs -ftest-coverage"
18490   GCOV_LIBS="-lgcov"
18491   
18492   
18493   
18494 fi # enable_coverage
18496  if test "x$enable_coverage" = "xyes"; then
18497   WITH_GCOV_TRUE=
18498   WITH_GCOV_FALSE='#'
18499 else
18500   WITH_GCOV_TRUE='#'
18501   WITH_GCOV_FALSE=
18505 # Produce these files, in addition to config.h.
18506 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"
18509 # Make the generated script files executable.
18510 ac_config_commands="$ac_config_commands script-chmod"
18513 # Make sure that pcre_chartables.c is removed in case the method for
18514 # creating it was changed by reconfiguration.
18515 ac_config_commands="$ac_config_commands delete-old-chartables"
18518 cat >confcache <<\_ACEOF
18519 # This file is a shell script that caches the results of configure
18520 # tests run on this system so they can be shared between configure
18521 # scripts and configure runs, see configure's option --config-cache.
18522 # It is not useful on other systems.  If it contains results you don't
18523 # want to keep, you may remove or edit it.
18525 # config.status only pays attention to the cache file if you give it
18526 # the --recheck option to rerun configure.
18528 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18529 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18530 # following values.
18532 _ACEOF
18534 # The following way of writing the cache mishandles newlines in values,
18535 # but we know of no workaround that is simple, portable, and efficient.
18536 # So, we kill variables containing newlines.
18537 # Ultrix sh set writes to stderr and can't be redirected directly,
18538 # and sets the high bit in the cache file unless we assign to the vars.
18540   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18541     eval ac_val=\$$ac_var
18542     case $ac_val in #(
18543     *${as_nl}*)
18544       case $ac_var in #(
18545       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18546 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18547       esac
18548       case $ac_var in #(
18549       _ | IFS | as_nl) ;; #(
18550       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18551       *) { eval $ac_var=; unset $ac_var;} ;;
18552       esac ;;
18553     esac
18554   done
18556   (set) 2>&1 |
18557     case $as_nl`(ac_space=' '; set) 2>&1` in #(
18558     *${as_nl}ac_space=\ *)
18559       # `set' does not quote correctly, so add quotes: double-quote
18560       # substitution turns \\\\ into \\, and sed turns \\ into \.
18561       sed -n \
18562         "s/'/'\\\\''/g;
18563           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18564       ;; #(
18565     *)
18566       # `set' quotes correctly as required by POSIX, so do not add quotes.
18567       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18568       ;;
18569     esac |
18570     sort
18571 ) |
18572   sed '
18573      /^ac_cv_env_/b end
18574      t clear
18575      :clear
18576      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18577      t end
18578      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18579      :end' >>confcache
18580 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18581   if test -w "$cache_file"; then
18582     if test "x$cache_file" != "x/dev/null"; then
18583       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18584 $as_echo "$as_me: updating cache $cache_file" >&6;}
18585       if test ! -f "$cache_file" || test -h "$cache_file"; then
18586         cat confcache >"$cache_file"
18587       else
18588         case $cache_file in #(
18589         */* | ?:*)
18590           mv -f confcache "$cache_file"$$ &&
18591           mv -f "$cache_file"$$ "$cache_file" ;; #(
18592         *)
18593           mv -f confcache "$cache_file" ;;
18594         esac
18595       fi
18596     fi
18597   else
18598     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18599 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18600   fi
18602 rm -f confcache
18604 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18605 # Let make expand exec_prefix.
18606 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18608 DEFS=-DHAVE_CONFIG_H
18610 ac_libobjs=
18611 ac_ltlibobjs=
18613 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
18614   # 1. Remove the extension, and $U if already installed.
18615   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18616   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18617   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18618   #    will be set to the directory where LIBOBJS objects are built.
18619   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18620   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18621 done
18622 LIB@&t@OBJS=$ac_libobjs
18624 LTLIBOBJS=$ac_ltlibobjs
18627  if test -n "$EXEEXT"; then
18628   am__EXEEXT_TRUE=
18629   am__EXEEXT_FALSE='#'
18630 else
18631   am__EXEEXT_TRUE='#'
18632   am__EXEEXT_FALSE=
18635 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18636   as_fn_error $? "conditional \"AMDEP\" was never defined.
18637 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18639 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18640   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18641 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18643 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18644   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
18645 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18647 if test -z "${WITH_PCRE8_TRUE}" && test -z "${WITH_PCRE8_FALSE}"; then
18648   as_fn_error $? "conditional \"WITH_PCRE8\" was never defined.
18649 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18651 if test -z "${WITH_PCRE16_TRUE}" && test -z "${WITH_PCRE16_FALSE}"; then
18652   as_fn_error $? "conditional \"WITH_PCRE16\" was never defined.
18653 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18655 if test -z "${WITH_PCRE32_TRUE}" && test -z "${WITH_PCRE32_FALSE}"; then
18656   as_fn_error $? "conditional \"WITH_PCRE32\" was never defined.
18657 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18659 if test -z "${WITH_PCRE_CPP_TRUE}" && test -z "${WITH_PCRE_CPP_FALSE}"; then
18660   as_fn_error $? "conditional \"WITH_PCRE_CPP\" was never defined.
18661 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18663 if test -z "${WITH_REBUILD_CHARTABLES_TRUE}" && test -z "${WITH_REBUILD_CHARTABLES_FALSE}"; then
18664   as_fn_error $? "conditional \"WITH_REBUILD_CHARTABLES\" was never defined.
18665 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18667 if test -z "${WITH_JIT_TRUE}" && test -z "${WITH_JIT_FALSE}"; then
18668   as_fn_error $? "conditional \"WITH_JIT\" was never defined.
18669 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18671 if test -z "${WITH_UTF_TRUE}" && test -z "${WITH_UTF_FALSE}"; then
18672   as_fn_error $? "conditional \"WITH_UTF\" was never defined.
18673 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18675 if test -z "${WITH_VALGRIND_TRUE}" && test -z "${WITH_VALGRIND_FALSE}"; then
18676   as_fn_error $? "conditional \"WITH_VALGRIND\" was never defined.
18677 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18679 if test -z "${WITH_GCOV_TRUE}" && test -z "${WITH_GCOV_FALSE}"; then
18680   as_fn_error $? "conditional \"WITH_GCOV\" was never defined.
18681 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18684 : "${CONFIG_STATUS=./config.status}"
18685 ac_write_fail=0
18686 ac_clean_files_save=$ac_clean_files
18687 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18688 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18689 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18690 as_write_fail=0
18691 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18692 #! $SHELL
18693 # Generated by $as_me.
18694 # Run this file to recreate the current configuration.
18695 # Compiler output produced by configure, useful for debugging
18696 # configure, is in config.log if it exists.
18698 debug=false
18699 ac_cs_recheck=false
18700 ac_cs_silent=false
18702 SHELL=\${CONFIG_SHELL-$SHELL}
18703 export SHELL
18704 _ASEOF
18705 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18706 ## -------------------- ##
18707 ## M4sh Initialization. ##
18708 ## -------------------- ##
18710 # Be more Bourne compatible
18711 DUALCASE=1; export DUALCASE # for MKS sh
18712 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18713   emulate sh
18714   NULLCMD=:
18715   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18716   # is contrary to our usage.  Disable this feature.
18717   alias -g '${1+"$@"}'='"$@"'
18718   setopt NO_GLOB_SUBST
18719 else
18720   case `(set -o) 2>/dev/null` in @%:@(
18721   *posix*) :
18722     set -o posix ;; @%:@(
18723   *) :
18724      ;;
18725 esac
18729 as_nl='
18731 export as_nl
18732 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18733 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18734 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18735 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18736 # Prefer a ksh shell builtin over an external printf program on Solaris,
18737 # but without wasting forks for bash or zsh.
18738 if test -z "$BASH_VERSION$ZSH_VERSION" \
18739     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18740   as_echo='print -r --'
18741   as_echo_n='print -rn --'
18742 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18743   as_echo='printf %s\n'
18744   as_echo_n='printf %s'
18745 else
18746   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18747     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18748     as_echo_n='/usr/ucb/echo -n'
18749   else
18750     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18751     as_echo_n_body='eval
18752       arg=$1;
18753       case $arg in @%:@(
18754       *"$as_nl"*)
18755         expr "X$arg" : "X\\(.*\\)$as_nl";
18756         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18757       esac;
18758       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18759     '
18760     export as_echo_n_body
18761     as_echo_n='sh -c $as_echo_n_body as_echo'
18762   fi
18763   export as_echo_body
18764   as_echo='sh -c $as_echo_body as_echo'
18767 # The user is always right.
18768 if test "${PATH_SEPARATOR+set}" != set; then
18769   PATH_SEPARATOR=:
18770   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18771     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18772       PATH_SEPARATOR=';'
18773   }
18777 # IFS
18778 # We need space, tab and new line, in precisely that order.  Quoting is
18779 # there to prevent editors from complaining about space-tab.
18780 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18781 # splitting by setting IFS to empty value.)
18782 IFS=" ""        $as_nl"
18784 # Find who we are.  Look in the path if we contain no directory separator.
18785 as_myself=
18786 case $0 in @%:@((
18787   *[\\/]* ) as_myself=$0 ;;
18788   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18789 for as_dir in $PATH
18791   IFS=$as_save_IFS
18792   test -z "$as_dir" && as_dir=.
18793     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18794   done
18795 IFS=$as_save_IFS
18797      ;;
18798 esac
18799 # We did not find ourselves, most probably we were run as `sh COMMAND'
18800 # in which case we are not to be found in the path.
18801 if test "x$as_myself" = x; then
18802   as_myself=$0
18804 if test ! -f "$as_myself"; then
18805   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18806   exit 1
18809 # Unset variables that we do not need and which cause bugs (e.g. in
18810 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18811 # suppresses any "Segmentation fault" message there.  '((' could
18812 # trigger a bug in pdksh 5.2.14.
18813 for as_var in BASH_ENV ENV MAIL MAILPATH
18814 do eval test x\${$as_var+set} = xset \
18815   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18816 done
18817 PS1='$ '
18818 PS2='> '
18819 PS4='+ '
18821 # NLS nuisances.
18822 LC_ALL=C
18823 export LC_ALL
18824 LANGUAGE=C
18825 export LANGUAGE
18827 # CDPATH.
18828 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18831 @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
18832 @%:@ ----------------------------------------
18833 @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18834 @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18835 @%:@ script with STATUS, using 1 if that was 0.
18836 as_fn_error ()
18838   as_status=$1; test $as_status -eq 0 && as_status=1
18839   if test "$4"; then
18840     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18841     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18842   fi
18843   $as_echo "$as_me: error: $2" >&2
18844   as_fn_exit $as_status
18845 } @%:@ as_fn_error
18848 @%:@ as_fn_set_status STATUS
18849 @%:@ -----------------------
18850 @%:@ Set @S|@? to STATUS, without forking.
18851 as_fn_set_status ()
18853   return $1
18854 } @%:@ as_fn_set_status
18856 @%:@ as_fn_exit STATUS
18857 @%:@ -----------------
18858 @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18859 as_fn_exit ()
18861   set +e
18862   as_fn_set_status $1
18863   exit $1
18864 } @%:@ as_fn_exit
18866 @%:@ as_fn_unset VAR
18867 @%:@ ---------------
18868 @%:@ Portably unset VAR.
18869 as_fn_unset ()
18871   { eval $1=; unset $1;}
18873 as_unset=as_fn_unset
18874 @%:@ as_fn_append VAR VALUE
18875 @%:@ ----------------------
18876 @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
18877 @%:@ advantage of any shell optimizations that allow amortized linear growth over
18878 @%:@ repeated appends, instead of the typical quadratic growth present in naive
18879 @%:@ implementations.
18880 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18881   eval 'as_fn_append ()
18882   {
18883     eval $1+=\$2
18884   }'
18885 else
18886   as_fn_append ()
18887   {
18888     eval $1=\$$1\$2
18889   }
18890 fi # as_fn_append
18892 @%:@ as_fn_arith ARG...
18893 @%:@ ------------------
18894 @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
18895 @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
18896 @%:@ must be portable across @S|@(()) and expr.
18897 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18898   eval 'as_fn_arith ()
18899   {
18900     as_val=$(( $* ))
18901   }'
18902 else
18903   as_fn_arith ()
18904   {
18905     as_val=`expr "$@" || test $? -eq 1`
18906   }
18907 fi # as_fn_arith
18910 if expr a : '\(a\)' >/dev/null 2>&1 &&
18911    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18912   as_expr=expr
18913 else
18914   as_expr=false
18917 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18918   as_basename=basename
18919 else
18920   as_basename=false
18923 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18924   as_dirname=dirname
18925 else
18926   as_dirname=false
18929 as_me=`$as_basename -- "$0" ||
18930 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18931          X"$0" : 'X\(//\)$' \| \
18932          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18933 $as_echo X/"$0" |
18934     sed '/^.*\/\([^/][^/]*\)\/*$/{
18935             s//\1/
18936             q
18937           }
18938           /^X\/\(\/\/\)$/{
18939             s//\1/
18940             q
18941           }
18942           /^X\/\(\/\).*/{
18943             s//\1/
18944             q
18945           }
18946           s/.*/./; q'`
18948 # Avoid depending upon Character Ranges.
18949 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18950 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18951 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18952 as_cr_digits='0123456789'
18953 as_cr_alnum=$as_cr_Letters$as_cr_digits
18955 ECHO_C= ECHO_N= ECHO_T=
18956 case `echo -n x` in @%:@(((((
18957 -n*)
18958   case `echo 'xy\c'` in
18959   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
18960   xy)  ECHO_C='\c';;
18961   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18962        ECHO_T=' ';;
18963   esac;;
18965   ECHO_N='-n';;
18966 esac
18968 rm -f conf$$ conf$$.exe conf$$.file
18969 if test -d conf$$.dir; then
18970   rm -f conf$$.dir/conf$$.file
18971 else
18972   rm -f conf$$.dir
18973   mkdir conf$$.dir 2>/dev/null
18975 if (echo >conf$$.file) 2>/dev/null; then
18976   if ln -s conf$$.file conf$$ 2>/dev/null; then
18977     as_ln_s='ln -s'
18978     # ... but there are two gotchas:
18979     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18980     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18981     # In both cases, we have to default to `cp -p'.
18982     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18983       as_ln_s='cp -p'
18984   elif ln conf$$.file conf$$ 2>/dev/null; then
18985     as_ln_s=ln
18986   else
18987     as_ln_s='cp -p'
18988   fi
18989 else
18990   as_ln_s='cp -p'
18992 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18993 rmdir conf$$.dir 2>/dev/null
18996 @%:@ as_fn_mkdir_p
18997 @%:@ -------------
18998 @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
18999 as_fn_mkdir_p ()
19002   case $as_dir in #(
19003   -*) as_dir=./$as_dir;;
19004   esac
19005   test -d "$as_dir" || eval $as_mkdir_p || {
19006     as_dirs=
19007     while :; do
19008       case $as_dir in #(
19009       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19010       *) as_qdir=$as_dir;;
19011       esac
19012       as_dirs="'$as_qdir' $as_dirs"
19013       as_dir=`$as_dirname -- "$as_dir" ||
19014 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19015          X"$as_dir" : 'X\(//\)[^/]' \| \
19016          X"$as_dir" : 'X\(//\)$' \| \
19017          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19018 $as_echo X"$as_dir" |
19019     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19020             s//\1/
19021             q
19022           }
19023           /^X\(\/\/\)[^/].*/{
19024             s//\1/
19025             q
19026           }
19027           /^X\(\/\/\)$/{
19028             s//\1/
19029             q
19030           }
19031           /^X\(\/\).*/{
19032             s//\1/
19033             q
19034           }
19035           s/.*/./; q'`
19036       test -d "$as_dir" && break
19037     done
19038     test -z "$as_dirs" || eval "mkdir $as_dirs"
19039   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19042 } @%:@ as_fn_mkdir_p
19043 if mkdir -p . 2>/dev/null; then
19044   as_mkdir_p='mkdir -p "$as_dir"'
19045 else
19046   test -d ./-p && rmdir ./-p
19047   as_mkdir_p=false
19050 if test -x / >/dev/null 2>&1; then
19051   as_test_x='test -x'
19052 else
19053   if ls -dL / >/dev/null 2>&1; then
19054     as_ls_L_option=L
19055   else
19056     as_ls_L_option=
19057   fi
19058   as_test_x='
19059     eval sh -c '\''
19060       if test -d "$1"; then
19061         test -d "$1/.";
19062       else
19063         case $1 in @%:@(
19064         -*)set "./$1";;
19065         esac;
19066         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
19067         ???[sx]*):;;*)false;;esac;fi
19068     '\'' sh
19069   '
19071 as_executable_p=$as_test_x
19073 # Sed expression to map a string onto a valid CPP name.
19074 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19076 # Sed expression to map a string onto a valid variable name.
19077 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19080 exec 6>&1
19081 ## ----------------------------------- ##
19082 ## Main body of $CONFIG_STATUS script. ##
19083 ## ----------------------------------- ##
19084 _ASEOF
19085 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19087 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19088 # Save the log message, to keep $0 and so on meaningful, and to
19089 # report actual input values of CONFIG_FILES etc. instead of their
19090 # values after options handling.
19091 ac_log="
19092 This file was extended by PCRE $as_me 8.32, which was
19093 generated by GNU Autoconf 2.68.  Invocation command line was
19095   CONFIG_FILES    = $CONFIG_FILES
19096   CONFIG_HEADERS  = $CONFIG_HEADERS
19097   CONFIG_LINKS    = $CONFIG_LINKS
19098   CONFIG_COMMANDS = $CONFIG_COMMANDS
19099   $ $0 $@
19101 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19104 _ACEOF
19106 case $ac_config_files in *"
19107 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19108 esac
19110 case $ac_config_headers in *"
19111 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19112 esac
19115 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19116 # Files that config.status was made for.
19117 config_files="$ac_config_files"
19118 config_headers="$ac_config_headers"
19119 config_commands="$ac_config_commands"
19121 _ACEOF
19123 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19124 ac_cs_usage="\
19125 \`$as_me' instantiates files and other configuration actions
19126 from templates according to the current configuration.  Unless the files
19127 and actions are specified as TAGs, all are instantiated by default.
19129 Usage: $0 [OPTION]... [TAG]...
19131   -h, --help       print this help, then exit
19132   -V, --version    print version number and configuration settings, then exit
19133       --config     print configuration, then exit
19134   -q, --quiet, --silent
19135                    do not print progress messages
19136   -d, --debug      don't remove temporary files
19137       --recheck    update $as_me by reconfiguring in the same conditions
19138       --file=FILE[:TEMPLATE] 
19139                    instantiate the configuration file FILE
19140       --header=FILE[:TEMPLATE] 
19141                    instantiate the configuration header FILE
19143 Configuration files:
19144 $config_files
19146 Configuration headers:
19147 $config_headers
19149 Configuration commands:
19150 $config_commands
19152 Report bugs to the package provider."
19154 _ACEOF
19155 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19156 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19157 ac_cs_version="\\
19158 PCRE config.status 8.32
19159 configured by $0, generated by GNU Autoconf 2.68,
19160   with options \\"\$ac_cs_config\\"
19162 Copyright (C) 2010 Free Software Foundation, Inc.
19163 This config.status script is free software; the Free Software Foundation
19164 gives unlimited permission to copy, distribute and modify it."
19166 ac_pwd='$ac_pwd'
19167 srcdir='$srcdir'
19168 INSTALL='$INSTALL'
19169 MKDIR_P='$MKDIR_P'
19170 AWK='$AWK'
19171 test -n "\$AWK" || AWK=awk
19172 _ACEOF
19174 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19175 # The default lists apply if the user does not specify any file.
19176 ac_need_defaults=:
19177 while test $# != 0
19179   case $1 in
19180   --*=?*)
19181     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19182     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19183     ac_shift=:
19184     ;;
19185   --*=)
19186     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19187     ac_optarg=
19188     ac_shift=:
19189     ;;
19190   *)
19191     ac_option=$1
19192     ac_optarg=$2
19193     ac_shift=shift
19194     ;;
19195   esac
19197   case $ac_option in
19198   # Handling of the options.
19199   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19200     ac_cs_recheck=: ;;
19201   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19202     $as_echo "$ac_cs_version"; exit ;;
19203   --config | --confi | --conf | --con | --co | --c )
19204     $as_echo "$ac_cs_config"; exit ;;
19205   --debug | --debu | --deb | --de | --d | -d )
19206     debug=: ;;
19207   --file | --fil | --fi | --f )
19208     $ac_shift
19209     case $ac_optarg in
19210     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19211     '') as_fn_error $? "missing file argument" ;;
19212     esac
19213     as_fn_append CONFIG_FILES " '$ac_optarg'"
19214     ac_need_defaults=false;;
19215   --header | --heade | --head | --hea )
19216     $ac_shift
19217     case $ac_optarg in
19218     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19219     esac
19220     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19221     ac_need_defaults=false;;
19222   --he | --h)
19223     # Conflict between --help and --header
19224     as_fn_error $? "ambiguous option: \`$1'
19225 Try \`$0 --help' for more information.";;
19226   --help | --hel | -h )
19227     $as_echo "$ac_cs_usage"; exit ;;
19228   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19229   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19230     ac_cs_silent=: ;;
19232   # This is an error.
19233   -*) as_fn_error $? "unrecognized option: \`$1'
19234 Try \`$0 --help' for more information." ;;
19236   *) as_fn_append ac_config_targets " $1"
19237      ac_need_defaults=false ;;
19239   esac
19240   shift
19241 done
19243 ac_configure_extra_args=
19245 if $ac_cs_silent; then
19246   exec 6>/dev/null
19247   ac_configure_extra_args="$ac_configure_extra_args --silent"
19250 _ACEOF
19251 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19252 if \$ac_cs_recheck; then
19253   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19254   shift
19255   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19256   CONFIG_SHELL='$SHELL'
19257   export CONFIG_SHELL
19258   exec "\$@"
19261 _ACEOF
19262 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19263 exec 5>>config.log
19265   echo
19266   sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
19267 @%:@@%:@ Running $as_me. @%:@@%:@
19268 _ASBOX
19269   $as_echo "$ac_log"
19270 } >&5
19272 _ACEOF
19273 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19275 # INIT-COMMANDS
19277 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19280 # The HP-UX ksh and POSIX shell print the target directory to stdout
19281 # if CDPATH is set.
19282 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19284 sed_quote_subst='$sed_quote_subst'
19285 double_quote_subst='$double_quote_subst'
19286 delay_variable_subst='$delay_variable_subst'
19287 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
19288 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19289 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19290 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19291 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19292 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19293 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19294 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19295 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19296 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19297 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19298 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19299 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19300 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19301 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19302 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19303 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19304 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19305 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19306 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19307 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19308 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19309 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19310 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19311 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19312 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19313 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19314 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19315 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19316 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19317 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19318 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19319 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19320 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19321 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19322 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19323 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19324 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19325 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19326 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19327 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19328 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19329 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19330 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19331 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19332 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19333 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19334 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19335 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19336 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19337 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19338 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19339 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19340 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19341 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19342 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19343 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"`'
19344 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19345 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19346 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19347 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19348 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19349 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19350 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19351 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19352 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19353 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19354 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19355 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19356 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19357 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19358 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19359 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19360 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19361 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19362 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19363 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19364 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19365 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19366 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19367 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19368 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19369 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19370 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19371 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19372 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19373 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19374 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19375 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19376 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19377 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19378 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
19379 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19380 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19381 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19382 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19383 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19384 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19385 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19386 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19387 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19388 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19389 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19390 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19391 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19392 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19393 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19394 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19395 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19396 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19397 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19398 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19399 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19400 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19401 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19402 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19403 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19404 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19405 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19406 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19407 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19408 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19409 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19410 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19411 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19412 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19413 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19414 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19415 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19416 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19417 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19418 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
19419 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
19420 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
19421 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
19422 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
19423 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
19424 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
19425 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
19426 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19427 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19428 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
19429 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
19430 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
19431 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
19432 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
19433 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
19434 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
19435 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
19436 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
19437 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19438 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19439 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
19440 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19441 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19442 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19443 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19444 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19445 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19446 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
19447 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19448 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19449 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19450 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
19451 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
19452 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
19453 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
19454 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
19455 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
19456 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
19457 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
19458 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
19459 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
19460 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19461 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19462 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19463 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19464 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19465 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
19466 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
19467 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
19468 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19469 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19470 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
19471 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
19472 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
19474 LTCC='$LTCC'
19475 LTCFLAGS='$LTCFLAGS'
19476 compiler='$compiler_DEFAULT'
19478 # A function that is used when there is no print builtin or printf.
19479 func_fallback_echo ()
19481   eval 'cat <<_LTECHO_EOF
19483 _LTECHO_EOF'
19486 # Quote evaled strings.
19487 for var in AS \
19488 DLLTOOL \
19489 OBJDUMP \
19490 SHELL \
19491 ECHO \
19492 SED \
19493 GREP \
19494 EGREP \
19495 FGREP \
19496 LD \
19497 NM \
19498 LN_S \
19499 lt_SP2NL \
19500 lt_NL2SP \
19501 reload_flag \
19502 deplibs_check_method \
19503 file_magic_cmd \
19504 file_magic_glob \
19505 want_nocaseglob \
19506 sharedlib_from_linklib_cmd \
19507 AR \
19508 AR_FLAGS \
19509 archiver_list_spec \
19510 STRIP \
19511 RANLIB \
19512 CC \
19513 CFLAGS \
19514 compiler \
19515 lt_cv_sys_global_symbol_pipe \
19516 lt_cv_sys_global_symbol_to_cdecl \
19517 lt_cv_sys_global_symbol_to_c_name_address \
19518 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19519 nm_file_list_spec \
19520 lt_prog_compiler_no_builtin_flag \
19521 lt_prog_compiler_pic \
19522 lt_prog_compiler_wl \
19523 lt_prog_compiler_static \
19524 lt_cv_prog_compiler_c_o \
19525 need_locks \
19526 MANIFEST_TOOL \
19527 DSYMUTIL \
19528 NMEDIT \
19529 LIPO \
19530 OTOOL \
19531 OTOOL64 \
19532 shrext_cmds \
19533 export_dynamic_flag_spec \
19534 whole_archive_flag_spec \
19535 compiler_needs_object \
19536 with_gnu_ld \
19537 allow_undefined_flag \
19538 no_undefined_flag \
19539 hardcode_libdir_flag_spec \
19540 hardcode_libdir_flag_spec_ld \
19541 hardcode_libdir_separator \
19542 exclude_expsyms \
19543 include_expsyms \
19544 file_list_spec \
19545 variables_saved_for_relink \
19546 libname_spec \
19547 library_names_spec \
19548 soname_spec \
19549 install_override_mode \
19550 finish_eval \
19551 old_striplib \
19552 striplib \
19553 compiler_lib_search_dirs \
19554 predep_objects \
19555 postdep_objects \
19556 predeps \
19557 postdeps \
19558 compiler_lib_search_path \
19559 LD_CXX \
19560 reload_flag_CXX \
19561 compiler_CXX \
19562 lt_prog_compiler_no_builtin_flag_CXX \
19563 lt_prog_compiler_pic_CXX \
19564 lt_prog_compiler_wl_CXX \
19565 lt_prog_compiler_static_CXX \
19566 lt_cv_prog_compiler_c_o_CXX \
19567 export_dynamic_flag_spec_CXX \
19568 whole_archive_flag_spec_CXX \
19569 compiler_needs_object_CXX \
19570 with_gnu_ld_CXX \
19571 allow_undefined_flag_CXX \
19572 no_undefined_flag_CXX \
19573 hardcode_libdir_flag_spec_CXX \
19574 hardcode_libdir_flag_spec_ld_CXX \
19575 hardcode_libdir_separator_CXX \
19576 exclude_expsyms_CXX \
19577 include_expsyms_CXX \
19578 file_list_spec_CXX \
19579 compiler_lib_search_dirs_CXX \
19580 predep_objects_CXX \
19581 postdep_objects_CXX \
19582 predeps_CXX \
19583 postdeps_CXX \
19584 compiler_lib_search_path_CXX; do
19585     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19586     *[\\\\\\\`\\"\\\$]*)
19587       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19588       ;;
19589     *)
19590       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19591       ;;
19592     esac
19593 done
19595 # Double-quote double-evaled strings.
19596 for var in reload_cmds \
19597 old_postinstall_cmds \
19598 old_postuninstall_cmds \
19599 old_archive_cmds \
19600 extract_expsyms_cmds \
19601 old_archive_from_new_cmds \
19602 old_archive_from_expsyms_cmds \
19603 archive_cmds \
19604 archive_expsym_cmds \
19605 module_cmds \
19606 module_expsym_cmds \
19607 export_symbols_cmds \
19608 prelink_cmds \
19609 postlink_cmds \
19610 postinstall_cmds \
19611 postuninstall_cmds \
19612 finish_cmds \
19613 sys_lib_search_path_spec \
19614 sys_lib_dlsearch_path_spec \
19615 reload_cmds_CXX \
19616 old_archive_cmds_CXX \
19617 old_archive_from_new_cmds_CXX \
19618 old_archive_from_expsyms_cmds_CXX \
19619 archive_cmds_CXX \
19620 archive_expsym_cmds_CXX \
19621 module_cmds_CXX \
19622 module_expsym_cmds_CXX \
19623 export_symbols_cmds_CXX \
19624 prelink_cmds_CXX \
19625 postlink_cmds_CXX; do
19626     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19627     *[\\\\\\\`\\"\\\$]*)
19628       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19629       ;;
19630     *)
19631       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19632       ;;
19633     esac
19634 done
19636 ac_aux_dir='$ac_aux_dir'
19637 xsi_shell='$xsi_shell'
19638 lt_shell_append='$lt_shell_append'
19640 # See if we are running on zsh, and set the options which allow our
19641 # commands through without removal of \ escapes INIT.
19642 if test -n "\${ZSH_VERSION+set}" ; then
19643    setopt NO_GLOB_SUBST
19647     PACKAGE='$PACKAGE'
19648     VERSION='$VERSION'
19649     TIMESTAMP='$TIMESTAMP'
19650     RM='$RM'
19651     ofile='$ofile'
19658 _ACEOF
19660 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19662 # Handling of arguments.
19663 for ac_config_target in $ac_config_targets
19665   case $ac_config_target in
19666     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19667     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19668     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19669     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19670     "libpcre.pc") CONFIG_FILES="$CONFIG_FILES libpcre.pc" ;;
19671     "libpcre16.pc") CONFIG_FILES="$CONFIG_FILES libpcre16.pc" ;;
19672     "libpcre32.pc") CONFIG_FILES="$CONFIG_FILES libpcre32.pc" ;;
19673     "libpcreposix.pc") CONFIG_FILES="$CONFIG_FILES libpcreposix.pc" ;;
19674     "libpcrecpp.pc") CONFIG_FILES="$CONFIG_FILES libpcrecpp.pc" ;;
19675     "pcre-config") CONFIG_FILES="$CONFIG_FILES pcre-config" ;;
19676     "pcre.h") CONFIG_FILES="$CONFIG_FILES pcre.h" ;;
19677     "pcre_stringpiece.h") CONFIG_FILES="$CONFIG_FILES pcre_stringpiece.h" ;;
19678     "pcrecpparg.h") CONFIG_FILES="$CONFIG_FILES pcrecpparg.h" ;;
19679     "script-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS script-chmod" ;;
19680     "delete-old-chartables") CONFIG_COMMANDS="$CONFIG_COMMANDS delete-old-chartables" ;;
19682   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19683   esac
19684 done
19687 # If the user did not use the arguments to specify the items to instantiate,
19688 # then the envvar interface is used.  Set only those that are not.
19689 # We use the long form for the default assignment because of an extremely
19690 # bizarre bug on SunOS 4.1.3.
19691 if $ac_need_defaults; then
19692   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19693   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19694   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19697 # Have a temporary directory for convenience.  Make it in the build tree
19698 # simply because there is no reason against having it here, and in addition,
19699 # creating and moving files from /tmp can sometimes cause problems.
19700 # Hook for its removal unless debugging.
19701 # Note that there is a small window in which the directory will not be cleaned:
19702 # after its creation but before its name has been assigned to `$tmp'.
19703 $debug ||
19705   tmp= ac_tmp=
19706   trap 'exit_status=$?
19707   : "${ac_tmp:=$tmp}"
19708   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19709 ' 0
19710   trap 'as_fn_exit 1' 1 2 13 15
19712 # Create a (secure) tmp directory for tmp files.
19715   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19716   test -d "$tmp"
19717 }  ||
19719   tmp=./conf$$-$RANDOM
19720   (umask 077 && mkdir "$tmp")
19721 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19722 ac_tmp=$tmp
19724 # Set up the scripts for CONFIG_FILES section.
19725 # No need to generate them if there are no CONFIG_FILES.
19726 # This happens for instance with `./config.status config.h'.
19727 if test -n "$CONFIG_FILES"; then
19730 ac_cr=`echo X | tr X '\015'`
19731 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19732 # But we know of no other shell where ac_cr would be empty at this
19733 # point, so we can use a bashism as a fallback.
19734 if test "x$ac_cr" = x; then
19735   eval ac_cr=\$\'\\r\'
19737 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19738 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19739   ac_cs_awk_cr='\\r'
19740 else
19741   ac_cs_awk_cr=$ac_cr
19744 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19745 _ACEOF
19749   echo "cat >conf$$subs.awk <<_ACEOF" &&
19750   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19751   echo "_ACEOF"
19752 } >conf$$subs.sh ||
19753   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19754 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19755 ac_delim='%!_!# '
19756 for ac_last_try in false false false false false :; do
19757   . ./conf$$subs.sh ||
19758     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19760   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19761   if test $ac_delim_n = $ac_delim_num; then
19762     break
19763   elif $ac_last_try; then
19764     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19765   else
19766     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19767   fi
19768 done
19769 rm -f conf$$subs.sh
19771 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19772 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19773 _ACEOF
19774 sed -n '
19776 s/^/S["/; s/!.*/"]=/
19779 s/^[^!]*!//
19780 :repl
19781 t repl
19782 s/'"$ac_delim"'$//
19783 t delim
19786 s/\(.\{148\}\)..*/\1/
19787 t more1
19788 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19791 b repl
19792 :more1
19793 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19796 s/.\{148\}//
19797 t nl
19798 :delim
19800 s/\(.\{148\}\)..*/\1/
19801 t more2
19802 s/["\\]/\\&/g; s/^/"/; s/$/"/
19805 :more2
19806 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19809 s/.\{148\}//
19810 t delim
19811 ' <conf$$subs.awk | sed '
19812 /^[^""]/{
19813   N
19814   s/\n//
19816 ' >>$CONFIG_STATUS || ac_write_fail=1
19817 rm -f conf$$subs.awk
19818 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19819 _ACAWK
19820 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19821   for (key in S) S_is_set[key] = 1
19822   FS = "\a"
19826   line = $ 0
19827   nfields = split(line, field, "@")
19828   substed = 0
19829   len = length(field[1])
19830   for (i = 2; i < nfields; i++) {
19831     key = field[i]
19832     keylen = length(key)
19833     if (S_is_set[key]) {
19834       value = S[key]
19835       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19836       len += length(value) + length(field[++i])
19837       substed = 1
19838     } else
19839       len += 1 + keylen
19840   }
19842   print line
19845 _ACAWK
19846 _ACEOF
19847 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19848 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19849   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19850 else
19851   cat
19852 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19853   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19854 _ACEOF
19856 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19857 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19858 # trailing colons and then remove the whole line if VPATH becomes empty
19859 # (actually we leave an empty line to preserve line numbers).
19860 if test "x$srcdir" = x.; then
19861   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
19863 s///
19864 s/^/:/
19865 s/[      ]*$/:/
19866 s/:\$(srcdir):/:/g
19867 s/:\${srcdir}:/:/g
19868 s/:@srcdir@:/:/g
19869 s/^:*//
19870 s/:*$//
19872 s/\(=[   ]*\).*/\1/
19874 s/\n//
19875 s/^[^=]*=[       ]*$//
19879 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19880 fi # test -n "$CONFIG_FILES"
19882 # Set up the scripts for CONFIG_HEADERS section.
19883 # No need to generate them if there are no CONFIG_HEADERS.
19884 # This happens for instance with `./config.status Makefile'.
19885 if test -n "$CONFIG_HEADERS"; then
19886 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19887 BEGIN {
19888 _ACEOF
19890 # Transform confdefs.h into an awk script `defines.awk', embedded as
19891 # here-document in config.status, that substitutes the proper values into
19892 # config.h.in to produce config.h.
19894 # Create a delimiter string that does not exist in confdefs.h, to ease
19895 # handling of long lines.
19896 ac_delim='%!_!# '
19897 for ac_last_try in false false :; do
19898   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19899   if test -z "$ac_tt"; then
19900     break
19901   elif $ac_last_try; then
19902     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19903   else
19904     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19905   fi
19906 done
19908 # For the awk script, D is an array of macro values keyed by name,
19909 # likewise P contains macro parameters if any.  Preserve backslash
19910 # newline sequences.
19912 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19913 sed -n '
19914 s/.\{148\}/&'"$ac_delim"'/g
19915 t rset
19916 :rset
19917 s/^[     ]*#[    ]*define[       ][      ]*/ /
19918 t def
19920 :def
19921 s/\\$//
19922 t bsnl
19923 s/["\\]/\\&/g
19924 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19925 D["\1"]=" \3"/p
19926 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
19928 :bsnl
19929 s/["\\]/\\&/g
19930 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19931 D["\1"]=" \3\\\\\\n"\\/p
19932 t cont
19933 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19934 t cont
19936 :cont
19938 s/.\{148\}/&'"$ac_delim"'/g
19939 t clear
19940 :clear
19941 s/\\$//
19942 t bsnlc
19943 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19945 :bsnlc
19946 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19947 b cont
19948 ' <confdefs.h | sed '
19949 s/'"$ac_delim"'/"\\\
19950 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19952 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19953   for (key in D) D_is_set[key] = 1
19954   FS = "\a"
19956 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19957   line = \$ 0
19958   split(line, arg, " ")
19959   if (arg[1] == "#") {
19960     defundef = arg[2]
19961     mac1 = arg[3]
19962   } else {
19963     defundef = substr(arg[1], 2)
19964     mac1 = arg[2]
19965   }
19966   split(mac1, mac2, "(") #)
19967   macro = mac2[1]
19968   prefix = substr(line, 1, index(line, defundef) - 1)
19969   if (D_is_set[macro]) {
19970     # Preserve the white space surrounding the "#".
19971     print prefix "define", macro P[macro] D[macro]
19972     next
19973   } else {
19974     # Replace #undef with comments.  This is necessary, for example,
19975     # in the case of _POSIX_SOURCE, which is predefined and required
19976     # on some systems where configure will not decide to define it.
19977     if (defundef == "undef") {
19978       print "/*", prefix defundef, macro, "*/"
19979       next
19980     }
19981   }
19983 { print }
19984 _ACAWK
19985 _ACEOF
19986 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19987   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19988 fi # test -n "$CONFIG_HEADERS"
19991 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19992 shift
19993 for ac_tag
19995   case $ac_tag in
19996   :[FHLC]) ac_mode=$ac_tag; continue;;
19997   esac
19998   case $ac_mode$ac_tag in
19999   :[FHL]*:*);;
20000   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20001   :[FH]-) ac_tag=-:-;;
20002   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20003   esac
20004   ac_save_IFS=$IFS
20005   IFS=:
20006   set x $ac_tag
20007   IFS=$ac_save_IFS
20008   shift
20009   ac_file=$1
20010   shift
20012   case $ac_mode in
20013   :L) ac_source=$1;;
20014   :[FH])
20015     ac_file_inputs=
20016     for ac_f
20017     do
20018       case $ac_f in
20019       -) ac_f="$ac_tmp/stdin";;
20020       *) # Look for the file first in the build tree, then in the source tree
20021          # (if the path is not absolute).  The absolute path cannot be DOS-style,
20022          # because $ac_f cannot contain `:'.
20023          test -f "$ac_f" ||
20024            case $ac_f in
20025            [\\/$]*) false;;
20026            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20027            esac ||
20028            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20029       esac
20030       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20031       as_fn_append ac_file_inputs " '$ac_f'"
20032     done
20034     # Let's still pretend it is `configure' which instantiates (i.e., don't
20035     # use $as_me), people would be surprised to read:
20036     #    /* config.h.  Generated by config.status.  */
20037     configure_input='Generated from '`
20038           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20039         `' by configure.'
20040     if test x"$ac_file" != x-; then
20041       configure_input="$ac_file.  $configure_input"
20042       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20043 $as_echo "$as_me: creating $ac_file" >&6;}
20044     fi
20045     # Neutralize special characters interpreted by sed in replacement strings.
20046     case $configure_input in #(
20047     *\&* | *\|* | *\\* )
20048        ac_sed_conf_input=`$as_echo "$configure_input" |
20049        sed 's/[\\\\&|]/\\\\&/g'`;; #(
20050     *) ac_sed_conf_input=$configure_input;;
20051     esac
20053     case $ac_tag in
20054     *:-:* | *:-) cat >"$ac_tmp/stdin" \
20055       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20056     esac
20057     ;;
20058   esac
20060   ac_dir=`$as_dirname -- "$ac_file" ||
20061 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20062          X"$ac_file" : 'X\(//\)[^/]' \| \
20063          X"$ac_file" : 'X\(//\)$' \| \
20064          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20065 $as_echo X"$ac_file" |
20066     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20067             s//\1/
20068             q
20069           }
20070           /^X\(\/\/\)[^/].*/{
20071             s//\1/
20072             q
20073           }
20074           /^X\(\/\/\)$/{
20075             s//\1/
20076             q
20077           }
20078           /^X\(\/\).*/{
20079             s//\1/
20080             q
20081           }
20082           s/.*/./; q'`
20083   as_dir="$ac_dir"; as_fn_mkdir_p
20084   ac_builddir=.
20086 case "$ac_dir" in
20087 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20089   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20090   # A ".." for each directory in $ac_dir_suffix.
20091   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20092   case $ac_top_builddir_sub in
20093   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20094   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20095   esac ;;
20096 esac
20097 ac_abs_top_builddir=$ac_pwd
20098 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20099 # for backward compatibility:
20100 ac_top_builddir=$ac_top_build_prefix
20102 case $srcdir in
20103   .)  # We are building in place.
20104     ac_srcdir=.
20105     ac_top_srcdir=$ac_top_builddir_sub
20106     ac_abs_top_srcdir=$ac_pwd ;;
20107   [\\/]* | ?:[\\/]* )  # Absolute name.
20108     ac_srcdir=$srcdir$ac_dir_suffix;
20109     ac_top_srcdir=$srcdir
20110     ac_abs_top_srcdir=$srcdir ;;
20111   *) # Relative name.
20112     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20113     ac_top_srcdir=$ac_top_build_prefix$srcdir
20114     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20115 esac
20116 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20119   case $ac_mode in
20120   :F)
20121   #
20122   # CONFIG_FILE
20123   #
20125   case $INSTALL in
20126   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20127   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20128   esac
20129   ac_MKDIR_P=$MKDIR_P
20130   case $MKDIR_P in
20131   [\\/$]* | ?:[\\/]* ) ;;
20132   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20133   esac
20134 _ACEOF
20136 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20137 # If the template does not know about datarootdir, expand it.
20138 # FIXME: This hack should be removed a few years after 2.60.
20139 ac_datarootdir_hack=; ac_datarootdir_seen=
20140 ac_sed_dataroot='
20141 /datarootdir/ {
20142   p
20143   q
20145 /@datadir@/p
20146 /@docdir@/p
20147 /@infodir@/p
20148 /@localedir@/p
20149 /@mandir@/p'
20150 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20151 *datarootdir*) ac_datarootdir_seen=yes;;
20152 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20153   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20154 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20155 _ACEOF
20156 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20157   ac_datarootdir_hack='
20158   s&@datadir@&$datadir&g
20159   s&@docdir@&$docdir&g
20160   s&@infodir@&$infodir&g
20161   s&@localedir@&$localedir&g
20162   s&@mandir@&$mandir&g
20163   s&\\\${datarootdir}&$datarootdir&g' ;;
20164 esac
20165 _ACEOF
20167 # Neutralize VPATH when `$srcdir' = `.'.
20168 # Shell code in configure.ac might set extrasub.
20169 # FIXME: do we really want to maintain this feature?
20170 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20171 ac_sed_extra="$ac_vpsub
20172 $extrasub
20173 _ACEOF
20174 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20176 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20177 s|@configure_input@|$ac_sed_conf_input|;t t
20178 s&@top_builddir@&$ac_top_builddir_sub&;t t
20179 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20180 s&@srcdir@&$ac_srcdir&;t t
20181 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20182 s&@top_srcdir@&$ac_top_srcdir&;t t
20183 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20184 s&@builddir@&$ac_builddir&;t t
20185 s&@abs_builddir@&$ac_abs_builddir&;t t
20186 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20187 s&@INSTALL@&$ac_INSTALL&;t t
20188 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20189 $ac_datarootdir_hack
20191 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20192   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20194 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20195   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20196   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
20197       "$ac_tmp/out"`; test -z "$ac_out"; } &&
20198   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20199 which seems to be undefined.  Please make sure it is defined" >&5
20200 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20201 which seems to be undefined.  Please make sure it is defined" >&2;}
20203   rm -f "$ac_tmp/stdin"
20204   case $ac_file in
20205   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20206   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20207   esac \
20208   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20209  ;;
20210   :H)
20211   #
20212   # CONFIG_HEADER
20213   #
20214   if test x"$ac_file" != x-; then
20215     {
20216       $as_echo "/* $configure_input  */" \
20217       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20218     } >"$ac_tmp/config.h" \
20219       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20220     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20221       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20222 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20223     else
20224       rm -f "$ac_file"
20225       mv "$ac_tmp/config.h" "$ac_file" \
20226         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20227     fi
20228   else
20229     $as_echo "/* $configure_input  */" \
20230       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20231       || as_fn_error $? "could not create -" "$LINENO" 5
20232   fi
20233 # Compute "$ac_file"'s index in $config_headers.
20234 _am_arg="$ac_file"
20235 _am_stamp_count=1
20236 for _am_header in $config_headers :; do
20237   case $_am_header in
20238     $_am_arg | $_am_arg:* )
20239       break ;;
20240     * )
20241       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20242   esac
20243 done
20244 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20245 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20246          X"$_am_arg" : 'X\(//\)[^/]' \| \
20247          X"$_am_arg" : 'X\(//\)$' \| \
20248          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20249 $as_echo X"$_am_arg" |
20250     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20251             s//\1/
20252             q
20253           }
20254           /^X\(\/\/\)[^/].*/{
20255             s//\1/
20256             q
20257           }
20258           /^X\(\/\/\)$/{
20259             s//\1/
20260             q
20261           }
20262           /^X\(\/\).*/{
20263             s//\1/
20264             q
20265           }
20266           s/.*/./; q'`/stamp-h$_am_stamp_count
20267  ;;
20268   
20269   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20270 $as_echo "$as_me: executing $ac_file commands" >&6;}
20271  ;;
20272   esac
20275   case $ac_file$ac_mode in
20276     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20277   # Autoconf 2.62 quotes --file arguments for eval, but not when files
20278   # are listed without --file.  Let's play safe and only enable the eval
20279   # if we detect the quoting.
20280   case $CONFIG_FILES in
20281   *\'*) eval set x "$CONFIG_FILES" ;;
20282   *)   set x $CONFIG_FILES ;;
20283   esac
20284   shift
20285   for mf
20286   do
20287     # Strip MF so we end up with the name of the file.
20288     mf=`echo "$mf" | sed -e 's/:.*$//'`
20289     # Check whether this is an Automake generated Makefile or not.
20290     # We used to match only the files named `Makefile.in', but
20291     # some people rename them; so instead we look at the file content.
20292     # Grep'ing the first line is not enough: some people post-process
20293     # each Makefile.in and add a new line on top of each file to say so.
20294     # Grep'ing the whole file is not good either: AIX grep has a line
20295     # limit of 2048, but all sed's we know have understand at least 4000.
20296     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20297       dirpart=`$as_dirname -- "$mf" ||
20298 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20299          X"$mf" : 'X\(//\)[^/]' \| \
20300          X"$mf" : 'X\(//\)$' \| \
20301          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20302 $as_echo X"$mf" |
20303     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20304             s//\1/
20305             q
20306           }
20307           /^X\(\/\/\)[^/].*/{
20308             s//\1/
20309             q
20310           }
20311           /^X\(\/\/\)$/{
20312             s//\1/
20313             q
20314           }
20315           /^X\(\/\).*/{
20316             s//\1/
20317             q
20318           }
20319           s/.*/./; q'`
20320     else
20321       continue
20322     fi
20323     # Extract the definition of DEPDIR, am__include, and am__quote
20324     # from the Makefile without running `make'.
20325     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20326     test -z "$DEPDIR" && continue
20327     am__include=`sed -n 's/^am__include = //p' < "$mf"`
20328     test -z "am__include" && continue
20329     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20330     # When using ansi2knr, U may be empty or an underscore; expand it
20331     U=`sed -n 's/^U = //p' < "$mf"`
20332     # Find all dependency output files, they are included files with
20333     # $(DEPDIR) in their names.  We invoke sed twice because it is the
20334     # simplest approach to changing $(DEPDIR) to its actual value in the
20335     # expansion.
20336     for file in `sed -n "
20337       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20338          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20339       # Make sure the directory exists.
20340       test -f "$dirpart/$file" && continue
20341       fdir=`$as_dirname -- "$file" ||
20342 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20343          X"$file" : 'X\(//\)[^/]' \| \
20344          X"$file" : 'X\(//\)$' \| \
20345          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20346 $as_echo X"$file" |
20347     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20348             s//\1/
20349             q
20350           }
20351           /^X\(\/\/\)[^/].*/{
20352             s//\1/
20353             q
20354           }
20355           /^X\(\/\/\)$/{
20356             s//\1/
20357             q
20358           }
20359           /^X\(\/\).*/{
20360             s//\1/
20361             q
20362           }
20363           s/.*/./; q'`
20364       as_dir=$dirpart/$fdir; as_fn_mkdir_p
20365       # echo "creating $dirpart/$file"
20366       echo '# dummy' > "$dirpart/$file"
20367     done
20368   done
20370  ;;
20371     "libtool":C) 
20372     
20373     # See if we are running on zsh, and set the options which allow our
20374     # commands through without removal of \ escapes.
20375     if test -n "${ZSH_VERSION+set}" ; then
20376       setopt NO_GLOB_SUBST
20377     fi
20379     cfgfile="${ofile}T"
20380     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20381     $RM "$cfgfile"
20383     cat <<_LT_EOF >> "$cfgfile"
20384 #! $SHELL
20386 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20387 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20388 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20389 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20391 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20392 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
20393 #                 Inc.
20394 #   Written by Gordon Matzigkeit, 1996
20396 #   This file is part of GNU Libtool.
20398 # GNU Libtool is free software; you can redistribute it and/or
20399 # modify it under the terms of the GNU General Public License as
20400 # published by the Free Software Foundation; either version 2 of
20401 # the License, or (at your option) any later version.
20403 # As a special exception to the GNU General Public License,
20404 # if you distribute this file as part of a program or library that
20405 # is built using GNU Libtool, you may include this file under the
20406 # same distribution terms that you use for the rest of that program.
20408 # GNU Libtool is distributed in the hope that it will be useful,
20409 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20410 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20411 # GNU General Public License for more details.
20413 # You should have received a copy of the GNU General Public License
20414 # along with GNU Libtool; see the file COPYING.  If not, a copy
20415 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20416 # obtained by writing to the Free Software Foundation, Inc.,
20417 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20420 # The names of the tagged configurations supported by this script.
20421 available_tags="CXX "
20423 # ### BEGIN LIBTOOL CONFIG
20425 # Assembler program.
20426 AS=$lt_AS
20428 # DLL creation program.
20429 DLLTOOL=$lt_DLLTOOL
20431 # Object dumper program.
20432 OBJDUMP=$lt_OBJDUMP
20434 # Which release of libtool.m4 was used?
20435 macro_version=$macro_version
20436 macro_revision=$macro_revision
20438 # Whether or not to build shared libraries.
20439 build_libtool_libs=$enable_shared
20441 # Whether or not to build static libraries.
20442 build_old_libs=$enable_static
20444 # What type of objects to build.
20445 pic_mode=$pic_mode
20447 # Whether or not to optimize for fast installation.
20448 fast_install=$enable_fast_install
20450 # Shell to use when invoking shell scripts.
20451 SHELL=$lt_SHELL
20453 # An echo program that protects backslashes.
20454 ECHO=$lt_ECHO
20456 # The host system.
20457 host_alias=$host_alias
20458 host=$host
20459 host_os=$host_os
20461 # The build system.
20462 build_alias=$build_alias
20463 build=$build
20464 build_os=$build_os
20466 # A sed program that does not truncate output.
20467 SED=$lt_SED
20469 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20470 Xsed="\$SED -e 1s/^X//"
20472 # A grep program that handles long lines.
20473 GREP=$lt_GREP
20475 # An ERE matcher.
20476 EGREP=$lt_EGREP
20478 # A literal string matcher.
20479 FGREP=$lt_FGREP
20481 # A BSD- or MS-compatible name lister.
20482 NM=$lt_NM
20484 # Whether we need soft or hard links.
20485 LN_S=$lt_LN_S
20487 # What is the maximum length of a command?
20488 max_cmd_len=$max_cmd_len
20490 # Object file suffix (normally "o").
20491 objext=$ac_objext
20493 # Executable file suffix (normally "").
20494 exeext=$exeext
20496 # whether the shell understands "unset".
20497 lt_unset=$lt_unset
20499 # turn spaces into newlines.
20500 SP2NL=$lt_lt_SP2NL
20502 # turn newlines into spaces.
20503 NL2SP=$lt_lt_NL2SP
20505 # convert \$build file names to \$host format.
20506 to_host_file_cmd=$lt_cv_to_host_file_cmd
20508 # convert \$build files to toolchain format.
20509 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20511 # Method to check whether dependent libraries are shared objects.
20512 deplibs_check_method=$lt_deplibs_check_method
20514 # Command to use when deplibs_check_method = "file_magic".
20515 file_magic_cmd=$lt_file_magic_cmd
20517 # How to find potential files when deplibs_check_method = "file_magic".
20518 file_magic_glob=$lt_file_magic_glob
20520 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20521 want_nocaseglob=$lt_want_nocaseglob
20523 # Command to associate shared and link libraries.
20524 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20526 # The archiver.
20527 AR=$lt_AR
20529 # Flags to create an archive.
20530 AR_FLAGS=$lt_AR_FLAGS
20532 # How to feed a file listing to the archiver.
20533 archiver_list_spec=$lt_archiver_list_spec
20535 # A symbol stripping program.
20536 STRIP=$lt_STRIP
20538 # Commands used to install an old-style archive.
20539 RANLIB=$lt_RANLIB
20540 old_postinstall_cmds=$lt_old_postinstall_cmds
20541 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20543 # Whether to use a lock for old archive extraction.
20544 lock_old_archive_extraction=$lock_old_archive_extraction
20546 # A C compiler.
20547 LTCC=$lt_CC
20549 # LTCC compiler flags.
20550 LTCFLAGS=$lt_CFLAGS
20552 # Take the output of nm and produce a listing of raw symbols and C names.
20553 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20555 # Transform the output of nm in a proper C declaration.
20556 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20558 # Transform the output of nm in a C name address pair.
20559 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20561 # Transform the output of nm in a C name address pair when lib prefix is needed.
20562 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20564 # Specify filename containing input files for \$NM.
20565 nm_file_list_spec=$lt_nm_file_list_spec
20567 # The root where to search for dependent libraries,and in which our libraries should be installed.
20568 lt_sysroot=$lt_sysroot
20570 # The name of the directory that contains temporary libtool files.
20571 objdir=$objdir
20573 # Used to examine libraries when file_magic_cmd begins with "file".
20574 MAGIC_CMD=$MAGIC_CMD
20576 # Must we lock files when doing compilation?
20577 need_locks=$lt_need_locks
20579 # Manifest tool.
20580 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20582 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20583 DSYMUTIL=$lt_DSYMUTIL
20585 # Tool to change global to local symbols on Mac OS X.
20586 NMEDIT=$lt_NMEDIT
20588 # Tool to manipulate fat objects and archives on Mac OS X.
20589 LIPO=$lt_LIPO
20591 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20592 OTOOL=$lt_OTOOL
20594 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20595 OTOOL64=$lt_OTOOL64
20597 # Old archive suffix (normally "a").
20598 libext=$libext
20600 # Shared library suffix (normally ".so").
20601 shrext_cmds=$lt_shrext_cmds
20603 # The commands to extract the exported symbol list from a shared archive.
20604 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20606 # Variables whose values should be saved in libtool wrapper scripts and
20607 # restored at link time.
20608 variables_saved_for_relink=$lt_variables_saved_for_relink
20610 # Do we need the "lib" prefix for modules?
20611 need_lib_prefix=$need_lib_prefix
20613 # Do we need a version for libraries?
20614 need_version=$need_version
20616 # Library versioning type.
20617 version_type=$version_type
20619 # Shared library runtime path variable.
20620 runpath_var=$runpath_var
20622 # Shared library path variable.
20623 shlibpath_var=$shlibpath_var
20625 # Is shlibpath searched before the hard-coded library search path?
20626 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20628 # Format of library name prefix.
20629 libname_spec=$lt_libname_spec
20631 # List of archive names.  First name is the real one, the rest are links.
20632 # The last name is the one that the linker finds with -lNAME
20633 library_names_spec=$lt_library_names_spec
20635 # The coded name of the library, if different from the real name.
20636 soname_spec=$lt_soname_spec
20638 # Permission mode override for installation of shared libraries.
20639 install_override_mode=$lt_install_override_mode
20641 # Command to use after installation of a shared archive.
20642 postinstall_cmds=$lt_postinstall_cmds
20644 # Command to use after uninstallation of a shared archive.
20645 postuninstall_cmds=$lt_postuninstall_cmds
20647 # Commands used to finish a libtool library installation in a directory.
20648 finish_cmds=$lt_finish_cmds
20650 # As "finish_cmds", except a single script fragment to be evaled but
20651 # not shown.
20652 finish_eval=$lt_finish_eval
20654 # Whether we should hardcode library paths into libraries.
20655 hardcode_into_libs=$hardcode_into_libs
20657 # Compile-time system search path for libraries.
20658 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20660 # Run-time system search path for libraries.
20661 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20663 # Whether dlopen is supported.
20664 dlopen_support=$enable_dlopen
20666 # Whether dlopen of programs is supported.
20667 dlopen_self=$enable_dlopen_self
20669 # Whether dlopen of statically linked programs is supported.
20670 dlopen_self_static=$enable_dlopen_self_static
20672 # Commands to strip libraries.
20673 old_striplib=$lt_old_striplib
20674 striplib=$lt_striplib
20677 # The linker used to build libraries.
20678 LD=$lt_LD
20680 # How to create reloadable object files.
20681 reload_flag=$lt_reload_flag
20682 reload_cmds=$lt_reload_cmds
20684 # Commands used to build an old-style archive.
20685 old_archive_cmds=$lt_old_archive_cmds
20687 # A language specific compiler.
20688 CC=$lt_compiler
20690 # Is the compiler the GNU compiler?
20691 with_gcc=$GCC
20693 # Compiler flag to turn off builtin functions.
20694 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20696 # Additional compiler flags for building library objects.
20697 pic_flag=$lt_lt_prog_compiler_pic
20699 # How to pass a linker flag through the compiler.
20700 wl=$lt_lt_prog_compiler_wl
20702 # Compiler flag to prevent dynamic linking.
20703 link_static_flag=$lt_lt_prog_compiler_static
20705 # Does compiler simultaneously support -c and -o options?
20706 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20708 # Whether or not to add -lc for building shared libraries.
20709 build_libtool_need_lc=$archive_cmds_need_lc
20711 # Whether or not to disallow shared libs when runtime libs are static.
20712 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20714 # Compiler flag to allow reflexive dlopens.
20715 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20717 # Compiler flag to generate shared objects directly from archives.
20718 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20720 # Whether the compiler copes with passing no objects directly.
20721 compiler_needs_object=$lt_compiler_needs_object
20723 # Create an old-style archive from a shared archive.
20724 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20726 # Create a temporary old-style archive to link instead of a shared archive.
20727 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20729 # Commands used to build a shared archive.
20730 archive_cmds=$lt_archive_cmds
20731 archive_expsym_cmds=$lt_archive_expsym_cmds
20733 # Commands used to build a loadable module if different from building
20734 # a shared archive.
20735 module_cmds=$lt_module_cmds
20736 module_expsym_cmds=$lt_module_expsym_cmds
20738 # Whether we are building with GNU ld or not.
20739 with_gnu_ld=$lt_with_gnu_ld
20741 # Flag that allows shared libraries with undefined symbols to be built.
20742 allow_undefined_flag=$lt_allow_undefined_flag
20744 # Flag that enforces no undefined symbols.
20745 no_undefined_flag=$lt_no_undefined_flag
20747 # Flag to hardcode \$libdir into a binary during linking.
20748 # This must work even if \$libdir does not exist
20749 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20751 # If ld is used when linking, flag to hardcode \$libdir into a binary
20752 # during linking.  This must work even if \$libdir does not exist.
20753 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20755 # Whether we need a single "-rpath" flag with a separated argument.
20756 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20758 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20759 # DIR into the resulting binary.
20760 hardcode_direct=$hardcode_direct
20762 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20763 # DIR into the resulting binary and the resulting library dependency is
20764 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20765 # library is relocated.
20766 hardcode_direct_absolute=$hardcode_direct_absolute
20768 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20769 # into the resulting binary.
20770 hardcode_minus_L=$hardcode_minus_L
20772 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20773 # into the resulting binary.
20774 hardcode_shlibpath_var=$hardcode_shlibpath_var
20776 # Set to "yes" if building a shared library automatically hardcodes DIR
20777 # into the library and all subsequent libraries and executables linked
20778 # against it.
20779 hardcode_automatic=$hardcode_automatic
20781 # Set to yes if linker adds runtime paths of dependent libraries
20782 # to runtime path list.
20783 inherit_rpath=$inherit_rpath
20785 # Whether libtool must link a program against all its dependency libraries.
20786 link_all_deplibs=$link_all_deplibs
20788 # Set to "yes" if exported symbols are required.
20789 always_export_symbols=$always_export_symbols
20791 # The commands to list exported symbols.
20792 export_symbols_cmds=$lt_export_symbols_cmds
20794 # Symbols that should not be listed in the preloaded symbols.
20795 exclude_expsyms=$lt_exclude_expsyms
20797 # Symbols that must always be exported.
20798 include_expsyms=$lt_include_expsyms
20800 # Commands necessary for linking programs (against libraries) with templates.
20801 prelink_cmds=$lt_prelink_cmds
20803 # Commands necessary for finishing linking programs.
20804 postlink_cmds=$lt_postlink_cmds
20806 # Specify filename containing input files.
20807 file_list_spec=$lt_file_list_spec
20809 # How to hardcode a shared library path into an executable.
20810 hardcode_action=$hardcode_action
20812 # The directories searched by this compiler when creating a shared library.
20813 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20815 # Dependencies to place before and after the objects being linked to
20816 # create a shared library.
20817 predep_objects=$lt_predep_objects
20818 postdep_objects=$lt_postdep_objects
20819 predeps=$lt_predeps
20820 postdeps=$lt_postdeps
20822 # The library search path used internally by the compiler when linking
20823 # a shared library.
20824 compiler_lib_search_path=$lt_compiler_lib_search_path
20826 # ### END LIBTOOL CONFIG
20828 _LT_EOF
20830   case $host_os in
20831   aix3*)
20832     cat <<\_LT_EOF >> "$cfgfile"
20833 # AIX sometimes has problems with the GCC collect2 program.  For some
20834 # reason, if we set the COLLECT_NAMES environment variable, the problems
20835 # vanish in a puff of smoke.
20836 if test "X${COLLECT_NAMES+set}" != Xset; then
20837   COLLECT_NAMES=
20838   export COLLECT_NAMES
20840 _LT_EOF
20841     ;;
20842   esac
20844   
20845 ltmain="$ac_aux_dir/ltmain.sh"
20848   # We use sed instead of cat because bash on DJGPP gets confused if
20849   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20850   # text mode, it properly converts lines to CR/LF.  This bash problem
20851   # is reportedly fixed, but why not run on old versions too?
20852   sed '$q' "$ltmain" >> "$cfgfile" \
20853      || (rm -f "$cfgfile"; exit 1)
20855   if test x"$xsi_shell" = xyes; then
20856   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20857 func_dirname ()\
20859 \    case ${1} in\
20860 \      */*) func_dirname_result="${1%/*}${2}" ;;\
20861 \      *  ) func_dirname_result="${3}" ;;\
20862 \    esac\
20863 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20864   && mv -f "$cfgfile.tmp" "$cfgfile" \
20865     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20866 test 0 -eq $? || _lt_function_replace_fail=:
20869   sed -e '/^func_basename ()$/,/^} # func_basename /c\
20870 func_basename ()\
20872 \    func_basename_result="${1##*/}"\
20873 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20874   && mv -f "$cfgfile.tmp" "$cfgfile" \
20875     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20876 test 0 -eq $? || _lt_function_replace_fail=:
20879   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20880 func_dirname_and_basename ()\
20882 \    case ${1} in\
20883 \      */*) func_dirname_result="${1%/*}${2}" ;;\
20884 \      *  ) func_dirname_result="${3}" ;;\
20885 \    esac\
20886 \    func_basename_result="${1##*/}"\
20887 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20888   && mv -f "$cfgfile.tmp" "$cfgfile" \
20889     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20890 test 0 -eq $? || _lt_function_replace_fail=:
20893   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20894 func_stripname ()\
20896 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20897 \    # positional parameters, so assign one to ordinary parameter first.\
20898 \    func_stripname_result=${3}\
20899 \    func_stripname_result=${func_stripname_result#"${1}"}\
20900 \    func_stripname_result=${func_stripname_result%"${2}"}\
20901 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20902   && mv -f "$cfgfile.tmp" "$cfgfile" \
20903     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20904 test 0 -eq $? || _lt_function_replace_fail=:
20907   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20908 func_split_long_opt ()\
20910 \    func_split_long_opt_name=${1%%=*}\
20911 \    func_split_long_opt_arg=${1#*=}\
20912 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20913   && mv -f "$cfgfile.tmp" "$cfgfile" \
20914     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20915 test 0 -eq $? || _lt_function_replace_fail=:
20918   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20919 func_split_short_opt ()\
20921 \    func_split_short_opt_arg=${1#??}\
20922 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20923 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20924   && mv -f "$cfgfile.tmp" "$cfgfile" \
20925     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20926 test 0 -eq $? || _lt_function_replace_fail=:
20929   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20930 func_lo2o ()\
20932 \    case ${1} in\
20933 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20934 \      *)    func_lo2o_result=${1} ;;\
20935 \    esac\
20936 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20937   && mv -f "$cfgfile.tmp" "$cfgfile" \
20938     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20939 test 0 -eq $? || _lt_function_replace_fail=:
20942   sed -e '/^func_xform ()$/,/^} # func_xform /c\
20943 func_xform ()\
20945     func_xform_result=${1%.*}.lo\
20946 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20947   && mv -f "$cfgfile.tmp" "$cfgfile" \
20948     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20949 test 0 -eq $? || _lt_function_replace_fail=:
20952   sed -e '/^func_arith ()$/,/^} # func_arith /c\
20953 func_arith ()\
20955     func_arith_result=$(( $* ))\
20956 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20957   && mv -f "$cfgfile.tmp" "$cfgfile" \
20958     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20959 test 0 -eq $? || _lt_function_replace_fail=:
20962   sed -e '/^func_len ()$/,/^} # func_len /c\
20963 func_len ()\
20965     func_len_result=${#1}\
20966 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20967   && mv -f "$cfgfile.tmp" "$cfgfile" \
20968     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20969 test 0 -eq $? || _lt_function_replace_fail=:
20973 if test x"$lt_shell_append" = xyes; then
20974   sed -e '/^func_append ()$/,/^} # func_append /c\
20975 func_append ()\
20977     eval "${1}+=\\${2}"\
20978 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20979   && mv -f "$cfgfile.tmp" "$cfgfile" \
20980     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20981 test 0 -eq $? || _lt_function_replace_fail=:
20984   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20985 func_append_quoted ()\
20987 \    func_quote_for_eval "${2}"\
20988 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20989 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20990   && mv -f "$cfgfile.tmp" "$cfgfile" \
20991     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20992 test 0 -eq $? || _lt_function_replace_fail=:
20995   # Save a `func_append' function call where possible by direct use of '+='
20996   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20997     && mv -f "$cfgfile.tmp" "$cfgfile" \
20998       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20999   test 0 -eq $? || _lt_function_replace_fail=:
21000 else
21001   # Save a `func_append' function call even when '+=' is not available
21002   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21003     && mv -f "$cfgfile.tmp" "$cfgfile" \
21004       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21005   test 0 -eq $? || _lt_function_replace_fail=:
21008 if test x"$_lt_function_replace_fail" = x":"; then
21009   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21010 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
21014    mv -f "$cfgfile" "$ofile" ||
21015     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21016   chmod +x "$ofile"
21019     cat <<_LT_EOF >> "$ofile"
21021 # ### BEGIN LIBTOOL TAG CONFIG: CXX
21023 # The linker used to build libraries.
21024 LD=$lt_LD_CXX
21026 # How to create reloadable object files.
21027 reload_flag=$lt_reload_flag_CXX
21028 reload_cmds=$lt_reload_cmds_CXX
21030 # Commands used to build an old-style archive.
21031 old_archive_cmds=$lt_old_archive_cmds_CXX
21033 # A language specific compiler.
21034 CC=$lt_compiler_CXX
21036 # Is the compiler the GNU compiler?
21037 with_gcc=$GCC_CXX
21039 # Compiler flag to turn off builtin functions.
21040 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21042 # Additional compiler flags for building library objects.
21043 pic_flag=$lt_lt_prog_compiler_pic_CXX
21045 # How to pass a linker flag through the compiler.
21046 wl=$lt_lt_prog_compiler_wl_CXX
21048 # Compiler flag to prevent dynamic linking.
21049 link_static_flag=$lt_lt_prog_compiler_static_CXX
21051 # Does compiler simultaneously support -c and -o options?
21052 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21054 # Whether or not to add -lc for building shared libraries.
21055 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21057 # Whether or not to disallow shared libs when runtime libs are static.
21058 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21060 # Compiler flag to allow reflexive dlopens.
21061 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21063 # Compiler flag to generate shared objects directly from archives.
21064 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21066 # Whether the compiler copes with passing no objects directly.
21067 compiler_needs_object=$lt_compiler_needs_object_CXX
21069 # Create an old-style archive from a shared archive.
21070 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21072 # Create a temporary old-style archive to link instead of a shared archive.
21073 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21075 # Commands used to build a shared archive.
21076 archive_cmds=$lt_archive_cmds_CXX
21077 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21079 # Commands used to build a loadable module if different from building
21080 # a shared archive.
21081 module_cmds=$lt_module_cmds_CXX
21082 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21084 # Whether we are building with GNU ld or not.
21085 with_gnu_ld=$lt_with_gnu_ld_CXX
21087 # Flag that allows shared libraries with undefined symbols to be built.
21088 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21090 # Flag that enforces no undefined symbols.
21091 no_undefined_flag=$lt_no_undefined_flag_CXX
21093 # Flag to hardcode \$libdir into a binary during linking.
21094 # This must work even if \$libdir does not exist
21095 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21097 # If ld is used when linking, flag to hardcode \$libdir into a binary
21098 # during linking.  This must work even if \$libdir does not exist.
21099 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21101 # Whether we need a single "-rpath" flag with a separated argument.
21102 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21104 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21105 # DIR into the resulting binary.
21106 hardcode_direct=$hardcode_direct_CXX
21108 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21109 # DIR into the resulting binary and the resulting library dependency is
21110 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21111 # library is relocated.
21112 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21114 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21115 # into the resulting binary.
21116 hardcode_minus_L=$hardcode_minus_L_CXX
21118 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21119 # into the resulting binary.
21120 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21122 # Set to "yes" if building a shared library automatically hardcodes DIR
21123 # into the library and all subsequent libraries and executables linked
21124 # against it.
21125 hardcode_automatic=$hardcode_automatic_CXX
21127 # Set to yes if linker adds runtime paths of dependent libraries
21128 # to runtime path list.
21129 inherit_rpath=$inherit_rpath_CXX
21131 # Whether libtool must link a program against all its dependency libraries.
21132 link_all_deplibs=$link_all_deplibs_CXX
21134 # Set to "yes" if exported symbols are required.
21135 always_export_symbols=$always_export_symbols_CXX
21137 # The commands to list exported symbols.
21138 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21140 # Symbols that should not be listed in the preloaded symbols.
21141 exclude_expsyms=$lt_exclude_expsyms_CXX
21143 # Symbols that must always be exported.
21144 include_expsyms=$lt_include_expsyms_CXX
21146 # Commands necessary for linking programs (against libraries) with templates.
21147 prelink_cmds=$lt_prelink_cmds_CXX
21149 # Commands necessary for finishing linking programs.
21150 postlink_cmds=$lt_postlink_cmds_CXX
21152 # Specify filename containing input files.
21153 file_list_spec=$lt_file_list_spec_CXX
21155 # How to hardcode a shared library path into an executable.
21156 hardcode_action=$hardcode_action_CXX
21158 # The directories searched by this compiler when creating a shared library.
21159 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21161 # Dependencies to place before and after the objects being linked to
21162 # create a shared library.
21163 predep_objects=$lt_predep_objects_CXX
21164 postdep_objects=$lt_postdep_objects_CXX
21165 predeps=$lt_predeps_CXX
21166 postdeps=$lt_postdeps_CXX
21168 # The library search path used internally by the compiler when linking
21169 # a shared library.
21170 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21172 # ### END LIBTOOL TAG CONFIG: CXX
21173 _LT_EOF
21175  ;;
21176     "script-chmod":C) chmod a+x pcre-config ;;
21177     "delete-old-chartables":C) rm -f pcre_chartables.c ;;
21179   esac
21180 done # for ac_tag
21183 as_fn_exit 0
21184 _ACEOF
21185 ac_clean_files=$ac_clean_files_save
21187 test $ac_write_fail = 0 ||
21188   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21191 # configure is writing to config.log, and then calls config.status.
21192 # config.status does its own redirection, appending to config.log.
21193 # Unfortunately, on DOS this fails, as config.log is still kept open
21194 # by configure, so config.status won't be able to write to it; its
21195 # output is simply discarded.  So we exec the FD to /dev/null,
21196 # effectively closing config.log, so it can be properly (re)opened and
21197 # appended to by config.status.  When coming back to configure, we
21198 # need to make the FD available again.
21199 if test "$no_create" != yes; then
21200   ac_cs_success=:
21201   ac_config_status_args=
21202   test "$silent" = yes &&
21203     ac_config_status_args="$ac_config_status_args --quiet"
21204   exec 5>/dev/null
21205   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21206   exec 5>>config.log
21207   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21208   # would make configure fail if this is the last instruction.
21209   $ac_cs_success || as_fn_exit 1
21211 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21212   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21213 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21217 # Print out a nice little message after configure is run displaying the
21218 # chosen options.
21220 ebcdic_nl_code=n/a
21221 if test "$enable_ebcdic_nl25" = "yes"; then
21222   ebcdic_nl_code=0x25
21223 elif test "$enable_ebcdic" = "yes"; then
21224   ebcdic_nl_code=0x15
21227 cat <<EOF
21229 $PACKAGE-$VERSION configuration summary:
21231     Install prefix .................. : ${prefix}
21232     C preprocessor .................. : ${CPP}
21233     C compiler ...................... : ${CC}
21234     C++ preprocessor ................ : ${CXXCPP}
21235     C++ compiler .................... : ${CXX}
21236     Linker .......................... : ${LD}
21237     C preprocessor flags ............ : ${CPPFLAGS}
21238     C compiler flags ................ : ${CFLAGS} ${VISIBILITY_CFLAGS}
21239     C++ compiler flags .............. : ${CXXFLAGS} ${VISIBILITY_CXXFLAGS}
21240     Linker flags .................... : ${LDFLAGS}
21241     Extra libraries ................. : ${LIBS}
21243     Build 8 bit pcre library ........ : ${enable_pcre8}
21244     Build 16 bit pcre library ....... : ${enable_pcre16}
21245     Build 32 bit pcre library ....... : ${enable_pcre32}
21246     Build C++ library ............... : ${enable_cpp}
21247     Enable JIT compiling support .... : ${enable_jit}
21248     Enable UTF-8/16/32 support ...... : ${enable_utf}
21249     Unicode properties .............. : ${enable_unicode_properties}
21250     Newline char/sequence ........... : ${enable_newline}
21251     \R matches only ANYCRLF ......... : ${enable_bsr_anycrlf}
21252     EBCDIC coding ................... : ${enable_ebcdic}
21253     EBCDIC code for NL .............. : ${ebcdic_nl_code}
21254     Rebuild char tables ............. : ${enable_rebuild_chartables}
21255     Use stack recursion ............. : ${enable_stack_for_recursion}
21256     POSIX mem threshold ............. : ${with_posix_malloc_threshold}
21257     Internal link size .............. : ${with_link_size}
21258     Match limit ..................... : ${with_match_limit}
21259     Match limit recursion ........... : ${with_match_limit_recursion}
21260     Build shared libs ............... : ${enable_shared}
21261     Build static libs ............... : ${enable_static}
21262     Use JIT in pcregrep ............. : ${enable_pcregrep_jit}
21263     Buffer size for pcregrep ........ : ${with_pcregrep_bufsize}
21264     Link pcregrep with libz ......... : ${enable_pcregrep_libz}
21265     Link pcregrep with libbz2 ....... : ${enable_pcregrep_libbz2}
21266     Link pcretest with libedit ...... : ${enable_pcretest_libedit}
21267     Link pcretest with libreadline .. : ${enable_pcretest_libreadline}
21268     Valgrind support ................ : ${enable_valgrind}
21269     Code coverage ................... : ${enable_coverage}