Clean up spec file for packaging
[profile/ivi/pcre.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for PCRE 8.11.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8 # Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
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
33 fi
34
35
36 as_nl='
37 '
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'
72 fi
73
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   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 case $0 in #((
93   *[\\/]* ) as_myself=$0 ;;
94   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97   IFS=$as_save_IFS
98   test -z "$as_dir" && as_dir=.
99     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100   done
101 IFS=$as_save_IFS
102
103      ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108   as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112   exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there.  '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138   emulate sh
139   NULLCMD=:
140   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141   # is contrary to our usage.  Disable this feature.
142   alias -g '\${1+\"\$@\"}'='\"\$@\"'
143   setopt NO_GLOB_SUBST
144 else
145   case \`(set -o) 2>/dev/null\` in #(
146   *posix*) :
147     set -o posix ;; #(
148   *) :
149      ;;
150 esac
151 fi
152 "
153   as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167   exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1
175
176   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
177     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
178     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180     PATH=/empty FPATH=/empty; export PATH FPATH
181     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
182       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
183   if (eval "$as_required") 2>/dev/null; then :
184   as_have_required=yes
185 else
186   as_have_required=no
187 fi
188   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
189
190 else
191   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
192 as_found=false
193 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
194 do
195   IFS=$as_save_IFS
196   test -z "$as_dir" && as_dir=.
197   as_found=:
198   case $as_dir in #(
199          /*)
200            for as_base in sh bash ksh sh5; do
201              # Try only shells that exist, to save several forks.
202              as_shell=$as_dir/$as_base
203              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
204                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
205   CONFIG_SHELL=$as_shell as_have_required=yes
206                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
207   break 2
208 fi
209 fi
210            done;;
211        esac
212   as_found=false
213 done
214 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
215               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
216   CONFIG_SHELL=$SHELL as_have_required=yes
217 fi; }
218 IFS=$as_save_IFS
219
220
221       if test "x$CONFIG_SHELL" != x; then :
222   # We cannot yet assume a decent shell, so we have to provide a
223         # neutralization value for shells without unset; and this also
224         # works around shells that cannot unset nonexistent variables.
225         BASH_ENV=/dev/null
226         ENV=/dev/null
227         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
228         export CONFIG_SHELL
229         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 fi
231
232     if test x$as_have_required = xno; then :
233   $as_echo "$0: This script requires a shell more modern than all"
234   $as_echo "$0: the shells that I found on your system."
235   if test x${ZSH_VERSION+set} = xset ; then
236     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238   else
239     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
243   fi
244   exit 1
245 fi
246 fi
247 fi
248 SHELL=${CONFIG_SHELL-/bin/sh}
249 export SHELL
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
253
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
257 # as_fn_unset VAR
258 # ---------------
259 # Portably unset VAR.
260 as_fn_unset ()
261 {
262   { eval $1=; unset $1;}
263 }
264 as_unset=as_fn_unset
265
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
269 as_fn_set_status ()
270 {
271   return $1
272 } # as_fn_set_status
273
274 # as_fn_exit STATUS
275 # -----------------
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277 as_fn_exit ()
278 {
279   set +e
280   as_fn_set_status $1
281   exit $1
282 } # as_fn_exit
283
284 # as_fn_mkdir_p
285 # -------------
286 # Create "$as_dir" as a directory, including parents if necessary.
287 as_fn_mkdir_p ()
288 {
289
290   case $as_dir in #(
291   -*) as_dir=./$as_dir;;
292   esac
293   test -d "$as_dir" || eval $as_mkdir_p || {
294     as_dirs=
295     while :; do
296       case $as_dir in #(
297       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298       *) as_qdir=$as_dir;;
299       esac
300       as_dirs="'$as_qdir' $as_dirs"
301       as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303          X"$as_dir" : 'X\(//\)[^/]' \| \
304          X"$as_dir" : 'X\(//\)$' \| \
305          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308             s//\1/
309             q
310           }
311           /^X\(\/\/\)[^/].*/{
312             s//\1/
313             q
314           }
315           /^X\(\/\/\)$/{
316             s//\1/
317             q
318           }
319           /^X\(\/\).*/{
320             s//\1/
321             q
322           }
323           s/.*/./; q'`
324       test -d "$as_dir" && break
325     done
326     test -z "$as_dirs" || eval "mkdir $as_dirs"
327   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328
329
330 } # as_fn_mkdir_p
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
336 # implementations.
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338   eval 'as_fn_append ()
339   {
340     eval $1+=\$2
341   }'
342 else
343   as_fn_append ()
344   {
345     eval $1=\$$1\$2
346   }
347 fi # as_fn_append
348
349 # as_fn_arith ARG...
350 # ------------------
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355   eval 'as_fn_arith ()
356   {
357     as_val=$(( $* ))
358   }'
359 else
360   as_fn_arith ()
361   {
362     as_val=`expr "$@" || test $? -eq 1`
363   }
364 fi # as_fn_arith
365
366
367 # as_fn_error ERROR [LINENO LOG_FD]
368 # ---------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with status $?, using 1 if that was 0.
372 as_fn_error ()
373 {
374   as_status=$?; test $as_status -eq 0 && as_status=1
375   if test "$3"; then
376     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
378   fi
379   $as_echo "$as_me: error: $1" >&2
380   as_fn_exit $as_status
381 } # as_fn_error
382
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384    test "X`expr 00001 : '.*\(...\)'`" = X001; then
385   as_expr=expr
386 else
387   as_expr=false
388 fi
389
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391   as_basename=basename
392 else
393   as_basename=false
394 fi
395
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397   as_dirname=dirname
398 else
399   as_dirname=false
400 fi
401
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404          X"$0" : 'X\(//\)$' \| \
405          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406 $as_echo X/"$0" |
407     sed '/^.*\/\([^/][^/]*\)\/*$/{
408             s//\1/
409             q
410           }
411           /^X\/\(\/\/\)$/{
412             s//\1/
413             q
414           }
415           /^X\/\(\/\).*/{
416             s//\1/
417             q
418           }
419           s/.*/./; q'`
420
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
427
428
429   as_lineno_1=$LINENO as_lineno_1a=$LINENO
430   as_lineno_2=$LINENO as_lineno_2a=$LINENO
431   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
434   sed -n '
435     p
436     /[$]LINENO/=
437   ' <$as_myself |
438     sed '
439       s/[$]LINENO.*/&-/
440       t lineno
441       b
442       :lineno
443       N
444       :loop
445       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446       t loop
447       s/-\n.*//
448     ' >$as_me.lineno &&
449   chmod +x "$as_me.lineno" ||
450     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
451
452   # Don't try to exec as it changes $[0], causing all sort of problems
453   # (the dirname of $[0] is not the place where we might find the
454   # original and so on.  Autoconf is especially sensitive to this).
455   . "./$as_me.lineno"
456   # Exit status is that of the last command.
457   exit
458 }
459
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
462 -n*)
463   case `echo 'xy\c'` in
464   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
465   xy)  ECHO_C='\c';;
466   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
467        ECHO_T=' ';;
468   esac;;
469 *)
470   ECHO_N='-n';;
471 esac
472
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475   rm -f conf$$.dir/conf$$.file
476 else
477   rm -f conf$$.dir
478   mkdir conf$$.dir 2>/dev/null
479 fi
480 if (echo >conf$$.file) 2>/dev/null; then
481   if ln -s conf$$.file conf$$ 2>/dev/null; then
482     as_ln_s='ln -s'
483     # ... but there are two gotchas:
484     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486     # In both cases, we have to default to `cp -p'.
487     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488       as_ln_s='cp -p'
489   elif ln conf$$.file conf$$ 2>/dev/null; then
490     as_ln_s=ln
491   else
492     as_ln_s='cp -p'
493   fi
494 else
495   as_ln_s='cp -p'
496 fi
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
499
500 if mkdir -p . 2>/dev/null; then
501   as_mkdir_p='mkdir -p "$as_dir"'
502 else
503   test -d ./-p && rmdir ./-p
504   as_mkdir_p=false
505 fi
506
507 if test -x / >/dev/null 2>&1; then
508   as_test_x='test -x'
509 else
510   if ls -dL / >/dev/null 2>&1; then
511     as_ls_L_option=L
512   else
513     as_ls_L_option=
514   fi
515   as_test_x='
516     eval sh -c '\''
517       if test -d "$1"; then
518         test -d "$1/.";
519       else
520         case $1 in #(
521         -*)set "./$1";;
522         esac;
523         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524         ???[sx]*):;;*)false;;esac;fi
525     '\'' sh
526   '
527 fi
528 as_executable_p=$as_test_x
529
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
535
536 SHELL=${CONFIG_SHELL-/bin/sh}
537
538
539 test -n "$DJDIR" || exec 7<&0 </dev/null
540 exec 6>&1
541
542 # Name of the host.
543 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
544 # so uname gets run too.
545 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
546
547 #
548 # Initializations.
549 #
550 ac_default_prefix=/usr/local
551 ac_clean_files=
552 ac_config_libobj_dir=.
553 LIBOBJS=
554 cross_compiling=no
555 subdirs=
556 MFLAGS=
557 MAKEFLAGS=
558
559 # Identity of this package.
560 PACKAGE_NAME='PCRE'
561 PACKAGE_TARNAME='pcre'
562 PACKAGE_VERSION='8.11'
563 PACKAGE_STRING='PCRE 8.11'
564 PACKAGE_BUGREPORT=''
565 PACKAGE_URL=''
566
567 ac_unique_file="pcre.h.in"
568 # Factoring default headers for most tests.
569 ac_includes_default="\
570 #include <stdio.h>
571 #ifdef HAVE_SYS_TYPES_H
572 # include <sys/types.h>
573 #endif
574 #ifdef HAVE_SYS_STAT_H
575 # include <sys/stat.h>
576 #endif
577 #ifdef STDC_HEADERS
578 # include <stdlib.h>
579 # include <stddef.h>
580 #else
581 # ifdef HAVE_STDLIB_H
582 #  include <stdlib.h>
583 # endif
584 #endif
585 #ifdef HAVE_STRING_H
586 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
587 #  include <memory.h>
588 # endif
589 # include <string.h>
590 #endif
591 #ifdef HAVE_STRINGS_H
592 # include <strings.h>
593 #endif
594 #ifdef HAVE_INTTYPES_H
595 # include <inttypes.h>
596 #endif
597 #ifdef HAVE_STDINT_H
598 # include <stdint.h>
599 #endif
600 #ifdef HAVE_UNISTD_H
601 # include <unistd.h>
602 #endif"
603
604 ac_subst_vars='am__EXEEXT_FALSE
605 am__EXEEXT_TRUE
606 LTLIBOBJS
607 LIBOBJS
608 LIBREADLINE
609 LIBBZ2
610 LIBZ
611 DISTCHECK_CONFIGURE_FLAGS
612 EXTRA_LIBPCRECPP_LDFLAGS
613 EXTRA_LIBPCREPOSIX_LDFLAGS
614 EXTRA_LIBPCRE_LDFLAGS
615 PCRE_STATIC_CFLAG
616 WITH_REBUILD_CHARTABLES_FALSE
617 WITH_REBUILD_CHARTABLES_TRUE
618 WITH_PCRE_CPP_FALSE
619 WITH_PCRE_CPP_TRUE
620 pcre_have_bits_type_traits
621 pcre_have_type_traits
622 pcre_have_ulong_long
623 pcre_have_long_long
624 enable_cpp
625 PCRE_DATE
626 PCRE_PRERELEASE
627 PCRE_MINOR
628 PCRE_MAJOR
629 CXXCPP
630 OTOOL64
631 OTOOL
632 LIPO
633 NMEDIT
634 DSYMUTIL
635 RANLIB
636 AR
637 LN_S
638 NM
639 ac_ct_DUMPBIN
640 DUMPBIN
641 LD
642 FGREP
643 SED
644 LIBTOOL
645 OBJDUMP
646 DLLTOOL
647 AS
648 host_os
649 host_vendor
650 host_cpu
651 host
652 build_os
653 build_vendor
654 build_cpu
655 build
656 EGREP
657 GREP
658 CPP
659 am__fastdepCXX_FALSE
660 am__fastdepCXX_TRUE
661 CXXDEPMODE
662 ac_ct_CXX
663 CXXFLAGS
664 CXX
665 am__fastdepCC_FALSE
666 am__fastdepCC_TRUE
667 CCDEPMODE
668 AMDEPBACKSLASH
669 AMDEP_FALSE
670 AMDEP_TRUE
671 am__quote
672 am__include
673 DEPDIR
674 OBJEXT
675 EXEEXT
676 ac_ct_CC
677 CPPFLAGS
678 LDFLAGS
679 CFLAGS
680 CC
681 am__untar
682 am__tar
683 AMTAR
684 am__leading_dot
685 SET_MAKE
686 AWK
687 mkdir_p
688 MKDIR_P
689 INSTALL_STRIP_PROGRAM
690 STRIP
691 install_sh
692 MAKEINFO
693 AUTOHEADER
694 AUTOMAKE
695 AUTOCONF
696 ACLOCAL
697 VERSION
698 PACKAGE
699 CYGPATH_W
700 am__isrc
701 INSTALL_DATA
702 INSTALL_SCRIPT
703 INSTALL_PROGRAM
704 target_alias
705 host_alias
706 build_alias
707 LIBS
708 ECHO_T
709 ECHO_N
710 ECHO_C
711 DEFS
712 mandir
713 localedir
714 libdir
715 psdir
716 pdfdir
717 dvidir
718 htmldir
719 infodir
720 docdir
721 oldincludedir
722 includedir
723 localstatedir
724 sharedstatedir
725 sysconfdir
726 datadir
727 datarootdir
728 libexecdir
729 sbindir
730 bindir
731 program_transform_name
732 prefix
733 exec_prefix
734 PACKAGE_URL
735 PACKAGE_BUGREPORT
736 PACKAGE_STRING
737 PACKAGE_VERSION
738 PACKAGE_TARNAME
739 PACKAGE_NAME
740 PATH_SEPARATOR
741 SHELL'
742 ac_subst_files=''
743 ac_user_opts='
744 enable_option_checking
745 enable_dependency_tracking
746 enable_shared
747 enable_static
748 with_pic
749 enable_fast_install
750 with_gnu_ld
751 enable_libtool_lock
752 enable_cpp
753 enable_rebuild_chartables
754 enable_utf8
755 enable_unicode_properties
756 enable_newline_is_cr
757 enable_newline_is_lf
758 enable_newline_is_crlf
759 enable_newline_is_anycrlf
760 enable_newline_is_any
761 enable_bsr_anycrlf
762 enable_ebcdic
763 enable_stack_for_recursion
764 enable_pcregrep_libz
765 enable_pcregrep_libbz2
766 enable_pcretest_libreadline
767 with_posix_malloc_threshold
768 with_link_size
769 with_match_limit
770 with_match_limit_recursion
771 '
772       ac_precious_vars='build_alias
773 host_alias
774 target_alias
775 CC
776 CFLAGS
777 LDFLAGS
778 LIBS
779 CPPFLAGS
780 CXX
781 CXXFLAGS
782 CCC
783 CPP
784 CXXCPP'
785
786
787 # Initialize some variables set by options.
788 ac_init_help=
789 ac_init_version=false
790 ac_unrecognized_opts=
791 ac_unrecognized_sep=
792 # The variables have the same names as the options, with
793 # dashes changed to underlines.
794 cache_file=/dev/null
795 exec_prefix=NONE
796 no_create=
797 no_recursion=
798 prefix=NONE
799 program_prefix=NONE
800 program_suffix=NONE
801 program_transform_name=s,x,x,
802 silent=
803 site=
804 srcdir=
805 verbose=
806 x_includes=NONE
807 x_libraries=NONE
808
809 # Installation directory options.
810 # These are left unexpanded so users can "make install exec_prefix=/foo"
811 # and all the variables that are supposed to be based on exec_prefix
812 # by default will actually change.
813 # Use braces instead of parens because sh, perl, etc. also accept them.
814 # (The list follows the same order as the GNU Coding Standards.)
815 bindir='${exec_prefix}/bin'
816 sbindir='${exec_prefix}/sbin'
817 libexecdir='${exec_prefix}/libexec'
818 datarootdir='${prefix}/share'
819 datadir='${datarootdir}'
820 sysconfdir='${prefix}/etc'
821 sharedstatedir='${prefix}/com'
822 localstatedir='${prefix}/var'
823 includedir='${prefix}/include'
824 oldincludedir='/usr/include'
825 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
826 infodir='${datarootdir}/info'
827 htmldir='${docdir}'
828 dvidir='${docdir}'
829 pdfdir='${docdir}'
830 psdir='${docdir}'
831 libdir='${exec_prefix}/lib'
832 localedir='${datarootdir}/locale'
833 mandir='${datarootdir}/man'
834
835 ac_prev=
836 ac_dashdash=
837 for ac_option
838 do
839   # If the previous option needs an argument, assign it.
840   if test -n "$ac_prev"; then
841     eval $ac_prev=\$ac_option
842     ac_prev=
843     continue
844   fi
845
846   case $ac_option in
847   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
848   *)    ac_optarg=yes ;;
849   esac
850
851   # Accept the important Cygnus configure options, so we can diagnose typos.
852
853   case $ac_dashdash$ac_option in
854   --)
855     ac_dashdash=yes ;;
856
857   -bindir | --bindir | --bindi | --bind | --bin | --bi)
858     ac_prev=bindir ;;
859   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
860     bindir=$ac_optarg ;;
861
862   -build | --build | --buil | --bui | --bu)
863     ac_prev=build_alias ;;
864   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
865     build_alias=$ac_optarg ;;
866
867   -cache-file | --cache-file | --cache-fil | --cache-fi \
868   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
869     ac_prev=cache_file ;;
870   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
871   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
872     cache_file=$ac_optarg ;;
873
874   --config-cache | -C)
875     cache_file=config.cache ;;
876
877   -datadir | --datadir | --datadi | --datad)
878     ac_prev=datadir ;;
879   -datadir=* | --datadir=* | --datadi=* | --datad=*)
880     datadir=$ac_optarg ;;
881
882   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
883   | --dataroo | --dataro | --datar)
884     ac_prev=datarootdir ;;
885   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
886   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
887     datarootdir=$ac_optarg ;;
888
889   -disable-* | --disable-*)
890     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
891     # Reject names that are not valid shell variable names.
892     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
893       as_fn_error "invalid feature name: $ac_useropt"
894     ac_useropt_orig=$ac_useropt
895     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
896     case $ac_user_opts in
897       *"
898 "enable_$ac_useropt"
899 "*) ;;
900       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
901          ac_unrecognized_sep=', ';;
902     esac
903     eval enable_$ac_useropt=no ;;
904
905   -docdir | --docdir | --docdi | --doc | --do)
906     ac_prev=docdir ;;
907   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
908     docdir=$ac_optarg ;;
909
910   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
911     ac_prev=dvidir ;;
912   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
913     dvidir=$ac_optarg ;;
914
915   -enable-* | --enable-*)
916     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
917     # Reject names that are not valid shell variable names.
918     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
919       as_fn_error "invalid feature name: $ac_useropt"
920     ac_useropt_orig=$ac_useropt
921     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
922     case $ac_user_opts in
923       *"
924 "enable_$ac_useropt"
925 "*) ;;
926       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
927          ac_unrecognized_sep=', ';;
928     esac
929     eval enable_$ac_useropt=\$ac_optarg ;;
930
931   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
932   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
933   | --exec | --exe | --ex)
934     ac_prev=exec_prefix ;;
935   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
936   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
937   | --exec=* | --exe=* | --ex=*)
938     exec_prefix=$ac_optarg ;;
939
940   -gas | --gas | --ga | --g)
941     # Obsolete; use --with-gas.
942     with_gas=yes ;;
943
944   -help | --help | --hel | --he | -h)
945     ac_init_help=long ;;
946   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
947     ac_init_help=recursive ;;
948   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
949     ac_init_help=short ;;
950
951   -host | --host | --hos | --ho)
952     ac_prev=host_alias ;;
953   -host=* | --host=* | --hos=* | --ho=*)
954     host_alias=$ac_optarg ;;
955
956   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
957     ac_prev=htmldir ;;
958   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
959   | --ht=*)
960     htmldir=$ac_optarg ;;
961
962   -includedir | --includedir | --includedi | --included | --include \
963   | --includ | --inclu | --incl | --inc)
964     ac_prev=includedir ;;
965   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
966   | --includ=* | --inclu=* | --incl=* | --inc=*)
967     includedir=$ac_optarg ;;
968
969   -infodir | --infodir | --infodi | --infod | --info | --inf)
970     ac_prev=infodir ;;
971   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
972     infodir=$ac_optarg ;;
973
974   -libdir | --libdir | --libdi | --libd)
975     ac_prev=libdir ;;
976   -libdir=* | --libdir=* | --libdi=* | --libd=*)
977     libdir=$ac_optarg ;;
978
979   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
980   | --libexe | --libex | --libe)
981     ac_prev=libexecdir ;;
982   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
983   | --libexe=* | --libex=* | --libe=*)
984     libexecdir=$ac_optarg ;;
985
986   -localedir | --localedir | --localedi | --localed | --locale)
987     ac_prev=localedir ;;
988   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
989     localedir=$ac_optarg ;;
990
991   -localstatedir | --localstatedir | --localstatedi | --localstated \
992   | --localstate | --localstat | --localsta | --localst | --locals)
993     ac_prev=localstatedir ;;
994   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
995   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
996     localstatedir=$ac_optarg ;;
997
998   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
999     ac_prev=mandir ;;
1000   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1001     mandir=$ac_optarg ;;
1002
1003   -nfp | --nfp | --nf)
1004     # Obsolete; use --without-fp.
1005     with_fp=no ;;
1006
1007   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1008   | --no-cr | --no-c | -n)
1009     no_create=yes ;;
1010
1011   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1012   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1013     no_recursion=yes ;;
1014
1015   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1016   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1017   | --oldin | --oldi | --old | --ol | --o)
1018     ac_prev=oldincludedir ;;
1019   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1020   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1021   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1022     oldincludedir=$ac_optarg ;;
1023
1024   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1025     ac_prev=prefix ;;
1026   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1027     prefix=$ac_optarg ;;
1028
1029   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1030   | --program-pre | --program-pr | --program-p)
1031     ac_prev=program_prefix ;;
1032   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1033   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1034     program_prefix=$ac_optarg ;;
1035
1036   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1037   | --program-suf | --program-su | --program-s)
1038     ac_prev=program_suffix ;;
1039   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1040   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1041     program_suffix=$ac_optarg ;;
1042
1043   -program-transform-name | --program-transform-name \
1044   | --program-transform-nam | --program-transform-na \
1045   | --program-transform-n | --program-transform- \
1046   | --program-transform | --program-transfor \
1047   | --program-transfo | --program-transf \
1048   | --program-trans | --program-tran \
1049   | --progr-tra | --program-tr | --program-t)
1050     ac_prev=program_transform_name ;;
1051   -program-transform-name=* | --program-transform-name=* \
1052   | --program-transform-nam=* | --program-transform-na=* \
1053   | --program-transform-n=* | --program-transform-=* \
1054   | --program-transform=* | --program-transfor=* \
1055   | --program-transfo=* | --program-transf=* \
1056   | --program-trans=* | --program-tran=* \
1057   | --progr-tra=* | --program-tr=* | --program-t=*)
1058     program_transform_name=$ac_optarg ;;
1059
1060   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1061     ac_prev=pdfdir ;;
1062   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1063     pdfdir=$ac_optarg ;;
1064
1065   -psdir | --psdir | --psdi | --psd | --ps)
1066     ac_prev=psdir ;;
1067   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1068     psdir=$ac_optarg ;;
1069
1070   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071   | -silent | --silent | --silen | --sile | --sil)
1072     silent=yes ;;
1073
1074   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1075     ac_prev=sbindir ;;
1076   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1077   | --sbi=* | --sb=*)
1078     sbindir=$ac_optarg ;;
1079
1080   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1081   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1082   | --sharedst | --shareds | --shared | --share | --shar \
1083   | --sha | --sh)
1084     ac_prev=sharedstatedir ;;
1085   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1086   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1087   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1088   | --sha=* | --sh=*)
1089     sharedstatedir=$ac_optarg ;;
1090
1091   -site | --site | --sit)
1092     ac_prev=site ;;
1093   -site=* | --site=* | --sit=*)
1094     site=$ac_optarg ;;
1095
1096   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1097     ac_prev=srcdir ;;
1098   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1099     srcdir=$ac_optarg ;;
1100
1101   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1102   | --syscon | --sysco | --sysc | --sys | --sy)
1103     ac_prev=sysconfdir ;;
1104   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1105   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1106     sysconfdir=$ac_optarg ;;
1107
1108   -target | --target | --targe | --targ | --tar | --ta | --t)
1109     ac_prev=target_alias ;;
1110   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1111     target_alias=$ac_optarg ;;
1112
1113   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1114     verbose=yes ;;
1115
1116   -version | --version | --versio | --versi | --vers | -V)
1117     ac_init_version=: ;;
1118
1119   -with-* | --with-*)
1120     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1121     # Reject names that are not valid shell variable names.
1122     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1123       as_fn_error "invalid package name: $ac_useropt"
1124     ac_useropt_orig=$ac_useropt
1125     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1126     case $ac_user_opts in
1127       *"
1128 "with_$ac_useropt"
1129 "*) ;;
1130       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1131          ac_unrecognized_sep=', ';;
1132     esac
1133     eval with_$ac_useropt=\$ac_optarg ;;
1134
1135   -without-* | --without-*)
1136     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1137     # Reject names that are not valid shell variable names.
1138     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1139       as_fn_error "invalid package name: $ac_useropt"
1140     ac_useropt_orig=$ac_useropt
1141     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1142     case $ac_user_opts in
1143       *"
1144 "with_$ac_useropt"
1145 "*) ;;
1146       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1147          ac_unrecognized_sep=', ';;
1148     esac
1149     eval with_$ac_useropt=no ;;
1150
1151   --x)
1152     # Obsolete; use --with-x.
1153     with_x=yes ;;
1154
1155   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1156   | --x-incl | --x-inc | --x-in | --x-i)
1157     ac_prev=x_includes ;;
1158   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1159   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1160     x_includes=$ac_optarg ;;
1161
1162   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1163   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1164     ac_prev=x_libraries ;;
1165   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1166   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1167     x_libraries=$ac_optarg ;;
1168
1169   -*) as_fn_error "unrecognized option: \`$ac_option'
1170 Try \`$0 --help' for more information."
1171     ;;
1172
1173   *=*)
1174     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1175     # Reject names that are not valid shell variable names.
1176     case $ac_envvar in #(
1177       '' | [0-9]* | *[!_$as_cr_alnum]* )
1178       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1179     esac
1180     eval $ac_envvar=\$ac_optarg
1181     export $ac_envvar ;;
1182
1183   *)
1184     # FIXME: should be removed in autoconf 3.0.
1185     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1186     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1187       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1188     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1189     ;;
1190
1191   esac
1192 done
1193
1194 if test -n "$ac_prev"; then
1195   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1196   as_fn_error "missing argument to $ac_option"
1197 fi
1198
1199 if test -n "$ac_unrecognized_opts"; then
1200   case $enable_option_checking in
1201     no) ;;
1202     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1203     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1204   esac
1205 fi
1206
1207 # Check all directory arguments for consistency.
1208 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1209                 datadir sysconfdir sharedstatedir localstatedir includedir \
1210                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1211                 libdir localedir mandir
1212 do
1213   eval ac_val=\$$ac_var
1214   # Remove trailing slashes.
1215   case $ac_val in
1216     */ )
1217       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1218       eval $ac_var=\$ac_val;;
1219   esac
1220   # Be sure to have absolute directory names.
1221   case $ac_val in
1222     [\\/$]* | ?:[\\/]* )  continue;;
1223     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1224   esac
1225   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1226 done
1227
1228 # There might be people who depend on the old broken behavior: `$host'
1229 # used to hold the argument of --host etc.
1230 # FIXME: To remove some day.
1231 build=$build_alias
1232 host=$host_alias
1233 target=$target_alias
1234
1235 # FIXME: To remove some day.
1236 if test "x$host_alias" != x; then
1237   if test "x$build_alias" = x; then
1238     cross_compiling=maybe
1239     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1240     If a cross compiler is detected then cross compile mode will be used." >&2
1241   elif test "x$build_alias" != "x$host_alias"; then
1242     cross_compiling=yes
1243   fi
1244 fi
1245
1246 ac_tool_prefix=
1247 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1248
1249 test "$silent" = yes && exec 6>/dev/null
1250
1251
1252 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1253 ac_ls_di=`ls -di .` &&
1254 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1255   as_fn_error "working directory cannot be determined"
1256 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1257   as_fn_error "pwd does not report name of working directory"
1258
1259
1260 # Find the source files, if location was not specified.
1261 if test -z "$srcdir"; then
1262   ac_srcdir_defaulted=yes
1263   # Try the directory containing this script, then the parent directory.
1264   ac_confdir=`$as_dirname -- "$as_myself" ||
1265 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1266          X"$as_myself" : 'X\(//\)[^/]' \| \
1267          X"$as_myself" : 'X\(//\)$' \| \
1268          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1269 $as_echo X"$as_myself" |
1270     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1271             s//\1/
1272             q
1273           }
1274           /^X\(\/\/\)[^/].*/{
1275             s//\1/
1276             q
1277           }
1278           /^X\(\/\/\)$/{
1279             s//\1/
1280             q
1281           }
1282           /^X\(\/\).*/{
1283             s//\1/
1284             q
1285           }
1286           s/.*/./; q'`
1287   srcdir=$ac_confdir
1288   if test ! -r "$srcdir/$ac_unique_file"; then
1289     srcdir=..
1290   fi
1291 else
1292   ac_srcdir_defaulted=no
1293 fi
1294 if test ! -r "$srcdir/$ac_unique_file"; then
1295   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1296   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1297 fi
1298 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1299 ac_abs_confdir=`(
1300         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1301         pwd)`
1302 # When building in place, set srcdir=.
1303 if test "$ac_abs_confdir" = "$ac_pwd"; then
1304   srcdir=.
1305 fi
1306 # Remove unnecessary trailing slashes from srcdir.
1307 # Double slashes in file names in object file debugging info
1308 # mess up M-x gdb in Emacs.
1309 case $srcdir in
1310 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1311 esac
1312 for ac_var in $ac_precious_vars; do
1313   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1314   eval ac_env_${ac_var}_value=\$${ac_var}
1315   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1316   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1317 done
1318
1319 #
1320 # Report the --help message.
1321 #
1322 if test "$ac_init_help" = "long"; then
1323   # Omit some internal or obsolete options to make the list less imposing.
1324   # This message is too long to be a string in the A/UX 3.1 sh.
1325   cat <<_ACEOF
1326 \`configure' configures PCRE 8.11 to adapt to many kinds of systems.
1327
1328 Usage: $0 [OPTION]... [VAR=VALUE]...
1329
1330 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1331 VAR=VALUE.  See below for descriptions of some of the useful variables.
1332
1333 Defaults for the options are specified in brackets.
1334
1335 Configuration:
1336   -h, --help              display this help and exit
1337       --help=short        display options specific to this package
1338       --help=recursive    display the short help of all the included packages
1339   -V, --version           display version information and exit
1340   -q, --quiet, --silent   do not print \`checking...' messages
1341       --cache-file=FILE   cache test results in FILE [disabled]
1342   -C, --config-cache      alias for \`--cache-file=config.cache'
1343   -n, --no-create         do not create output files
1344       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1345
1346 Installation directories:
1347   --prefix=PREFIX         install architecture-independent files in PREFIX
1348                           [$ac_default_prefix]
1349   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1350                           [PREFIX]
1351
1352 By default, \`make install' will install all the files in
1353 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1354 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1355 for instance \`--prefix=\$HOME'.
1356
1357 For better control, use the options below.
1358
1359 Fine tuning of the installation directories:
1360   --bindir=DIR            user executables [EPREFIX/bin]
1361   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1362   --libexecdir=DIR        program executables [EPREFIX/libexec]
1363   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1364   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1365   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1366   --libdir=DIR            object code libraries [EPREFIX/lib]
1367   --includedir=DIR        C header files [PREFIX/include]
1368   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1369   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1370   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1371   --infodir=DIR           info documentation [DATAROOTDIR/info]
1372   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1373   --mandir=DIR            man documentation [DATAROOTDIR/man]
1374   --docdir=DIR            documentation root [DATAROOTDIR/doc/pcre]
1375   --htmldir=DIR           html documentation [DOCDIR]
1376   --dvidir=DIR            dvi documentation [DOCDIR]
1377   --pdfdir=DIR            pdf documentation [DOCDIR]
1378   --psdir=DIR             ps documentation [DOCDIR]
1379 _ACEOF
1380
1381   cat <<\_ACEOF
1382
1383 Program names:
1384   --program-prefix=PREFIX            prepend PREFIX to installed program names
1385   --program-suffix=SUFFIX            append SUFFIX to installed program names
1386   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1387
1388 System types:
1389   --build=BUILD     configure for building on BUILD [guessed]
1390   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1391 _ACEOF
1392 fi
1393
1394 if test -n "$ac_init_help"; then
1395   case $ac_init_help in
1396      short | recursive ) echo "Configuration of PCRE 8.11:";;
1397    esac
1398   cat <<\_ACEOF
1399
1400 Optional Features:
1401   --disable-option-checking  ignore unrecognized --enable/--with options
1402   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1403   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1404   --disable-dependency-tracking  speeds up one-time build
1405   --enable-dependency-tracking   do not reject slow dependency extractors
1406   --enable-shared[=PKGS]  build shared libraries [default=yes]
1407   --enable-static[=PKGS]  build static libraries [default=yes]
1408   --enable-fast-install[=PKGS]
1409                           optimize for fast installation [default=yes]
1410   --disable-libtool-lock  avoid locking (might break parallel builds)
1411   --disable-cpp           disable C++ support
1412   --enable-rebuild-chartables
1413                           rebuild character tables in current locale
1414   --enable-utf8           enable UTF-8 support (incompatible with
1415                           --enable-ebcdic)
1416   --enable-unicode-properties
1417                           enable Unicode properties support (implies
1418                           --enable-utf8)
1419   --enable-newline-is-cr  use CR as newline character
1420   --enable-newline-is-lf  use LF as newline character (default)
1421   --enable-newline-is-crlf
1422                           use CRLF as newline sequence
1423   --enable-newline-is-anycrlf
1424                           use CR, LF, or CRLF as newline sequence
1425   --enable-newline-is-any use any valid Unicode newline sequence
1426   --enable-bsr-anycrlf    \R matches only CR, LF, CRLF by default
1427   --enable-ebcdic         assume EBCDIC coding rather than ASCII; incompatible
1428                           with --enable-utf8; use only in (uncommon) EBCDIC
1429                           environments; it implies --enable-rebuild-chartables
1430   --disable-stack-for-recursion
1431                           don't use stack recursion when matching
1432   --enable-pcregrep-libz  link pcregrep with libz to handle .gz files
1433   --enable-pcregrep-libbz2
1434                           link pcregrep with libbz2 to handle .bz2 files
1435   --enable-pcretest-libreadline
1436                           link pcretest with libreadline
1437
1438 Optional Packages:
1439   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1440   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1441   --with-pic              try to use only PIC/non-PIC objects [default=use
1442                           both]
1443   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1444   --with-posix-malloc-threshold=NBYTES
1445                           threshold for POSIX malloc usage (default=10)
1446   --with-link-size=N      internal link size (2, 3, or 4 allowed; default=2)
1447   --with-match-limit=N    default limit on internal looping (default=10000000)
1448   --with-match-limit-recursion=N
1449                           default limit on internal recursion
1450                           (default=MATCH_LIMIT)
1451
1452 Some influential environment variables:
1453   CC          C compiler command
1454   CFLAGS      C compiler flags
1455   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1456               nonstandard directory <lib dir>
1457   LIBS        libraries to pass to the linker, e.g. -l<library>
1458   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1459               you have headers in a nonstandard directory <include dir>
1460   CXX         C++ compiler command
1461   CXXFLAGS    C++ compiler flags
1462   CPP         C preprocessor
1463   CXXCPP      C++ preprocessor
1464
1465 Use these variables to override the choices made by `configure' or to help
1466 it to find libraries and programs with nonstandard names/locations.
1467
1468 Report bugs to the package provider.
1469 _ACEOF
1470 ac_status=$?
1471 fi
1472
1473 if test "$ac_init_help" = "recursive"; then
1474   # If there are subdirs, report their specific --help.
1475   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1476     test -d "$ac_dir" ||
1477       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1478       continue
1479     ac_builddir=.
1480
1481 case "$ac_dir" in
1482 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1483 *)
1484   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1485   # A ".." for each directory in $ac_dir_suffix.
1486   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1487   case $ac_top_builddir_sub in
1488   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1489   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1490   esac ;;
1491 esac
1492 ac_abs_top_builddir=$ac_pwd
1493 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1494 # for backward compatibility:
1495 ac_top_builddir=$ac_top_build_prefix
1496
1497 case $srcdir in
1498   .)  # We are building in place.
1499     ac_srcdir=.
1500     ac_top_srcdir=$ac_top_builddir_sub
1501     ac_abs_top_srcdir=$ac_pwd ;;
1502   [\\/]* | ?:[\\/]* )  # Absolute name.
1503     ac_srcdir=$srcdir$ac_dir_suffix;
1504     ac_top_srcdir=$srcdir
1505     ac_abs_top_srcdir=$srcdir ;;
1506   *) # Relative name.
1507     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1508     ac_top_srcdir=$ac_top_build_prefix$srcdir
1509     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1510 esac
1511 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1512
1513     cd "$ac_dir" || { ac_status=$?; continue; }
1514     # Check for guested configure.
1515     if test -f "$ac_srcdir/configure.gnu"; then
1516       echo &&
1517       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1518     elif test -f "$ac_srcdir/configure"; then
1519       echo &&
1520       $SHELL "$ac_srcdir/configure" --help=recursive
1521     else
1522       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1523     fi || ac_status=$?
1524     cd "$ac_pwd" || { ac_status=$?; break; }
1525   done
1526 fi
1527
1528 test -n "$ac_init_help" && exit $ac_status
1529 if $ac_init_version; then
1530   cat <<\_ACEOF
1531 PCRE configure 8.11
1532 generated by GNU Autoconf 2.65
1533
1534 Copyright (C) 2009 Free Software Foundation, Inc.
1535 This configure script is free software; the Free Software Foundation
1536 gives unlimited permission to copy, distribute and modify it.
1537 _ACEOF
1538   exit
1539 fi
1540
1541 ## ------------------------ ##
1542 ## Autoconf initialization. ##
1543 ## ------------------------ ##
1544
1545 # ac_fn_c_try_compile LINENO
1546 # --------------------------
1547 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1548 ac_fn_c_try_compile ()
1549 {
1550   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1551   rm -f conftest.$ac_objext
1552   if { { ac_try="$ac_compile"
1553 case "(($ac_try" in
1554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1555   *) ac_try_echo=$ac_try;;
1556 esac
1557 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1558 $as_echo "$ac_try_echo"; } >&5
1559   (eval "$ac_compile") 2>conftest.err
1560   ac_status=$?
1561   if test -s conftest.err; then
1562     grep -v '^ *+' conftest.err >conftest.er1
1563     cat conftest.er1 >&5
1564     mv -f conftest.er1 conftest.err
1565   fi
1566   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1567   test $ac_status = 0; } && {
1568          test -z "$ac_c_werror_flag" ||
1569          test ! -s conftest.err
1570        } && test -s conftest.$ac_objext; then :
1571   ac_retval=0
1572 else
1573   $as_echo "$as_me: failed program was:" >&5
1574 sed 's/^/| /' conftest.$ac_ext >&5
1575
1576         ac_retval=1
1577 fi
1578   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1579   as_fn_set_status $ac_retval
1580
1581 } # ac_fn_c_try_compile
1582
1583 # ac_fn_cxx_try_compile LINENO
1584 # ----------------------------
1585 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1586 ac_fn_cxx_try_compile ()
1587 {
1588   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1589   rm -f conftest.$ac_objext
1590   if { { ac_try="$ac_compile"
1591 case "(($ac_try" in
1592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1593   *) ac_try_echo=$ac_try;;
1594 esac
1595 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1596 $as_echo "$ac_try_echo"; } >&5
1597   (eval "$ac_compile") 2>conftest.err
1598   ac_status=$?
1599   if test -s conftest.err; then
1600     grep -v '^ *+' conftest.err >conftest.er1
1601     cat conftest.er1 >&5
1602     mv -f conftest.er1 conftest.err
1603   fi
1604   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1605   test $ac_status = 0; } && {
1606          test -z "$ac_cxx_werror_flag" ||
1607          test ! -s conftest.err
1608        } && test -s conftest.$ac_objext; then :
1609   ac_retval=0
1610 else
1611   $as_echo "$as_me: failed program was:" >&5
1612 sed 's/^/| /' conftest.$ac_ext >&5
1613
1614         ac_retval=1
1615 fi
1616   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1617   as_fn_set_status $ac_retval
1618
1619 } # ac_fn_cxx_try_compile
1620
1621 # ac_fn_c_try_cpp LINENO
1622 # ----------------------
1623 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1624 ac_fn_c_try_cpp ()
1625 {
1626   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1627   if { { ac_try="$ac_cpp conftest.$ac_ext"
1628 case "(($ac_try" in
1629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1630   *) ac_try_echo=$ac_try;;
1631 esac
1632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1633 $as_echo "$ac_try_echo"; } >&5
1634   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1635   ac_status=$?
1636   if test -s conftest.err; then
1637     grep -v '^ *+' conftest.err >conftest.er1
1638     cat conftest.er1 >&5
1639     mv -f conftest.er1 conftest.err
1640   fi
1641   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1642   test $ac_status = 0; } >/dev/null && {
1643          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1644          test ! -s conftest.err
1645        }; then :
1646   ac_retval=0
1647 else
1648   $as_echo "$as_me: failed program was:" >&5
1649 sed 's/^/| /' conftest.$ac_ext >&5
1650
1651     ac_retval=1
1652 fi
1653   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1654   as_fn_set_status $ac_retval
1655
1656 } # ac_fn_c_try_cpp
1657
1658 # ac_fn_c_try_run LINENO
1659 # ----------------------
1660 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1661 # that executables *can* be run.
1662 ac_fn_c_try_run ()
1663 {
1664   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665   if { { ac_try="$ac_link"
1666 case "(($ac_try" in
1667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1668   *) ac_try_echo=$ac_try;;
1669 esac
1670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671 $as_echo "$ac_try_echo"; } >&5
1672   (eval "$ac_link") 2>&5
1673   ac_status=$?
1674   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1675   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1676   { { case "(($ac_try" in
1677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1678   *) ac_try_echo=$ac_try;;
1679 esac
1680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1681 $as_echo "$ac_try_echo"; } >&5
1682   (eval "$ac_try") 2>&5
1683   ac_status=$?
1684   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1685   test $ac_status = 0; }; }; then :
1686   ac_retval=0
1687 else
1688   $as_echo "$as_me: program exited with status $ac_status" >&5
1689        $as_echo "$as_me: failed program was:" >&5
1690 sed 's/^/| /' conftest.$ac_ext >&5
1691
1692        ac_retval=$ac_status
1693 fi
1694   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1695   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1696   as_fn_set_status $ac_retval
1697
1698 } # ac_fn_c_try_run
1699
1700 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1701 # -------------------------------------------------------
1702 # Tests whether HEADER exists and can be compiled using the include files in
1703 # INCLUDES, setting the cache variable VAR accordingly.
1704 ac_fn_c_check_header_compile ()
1705 {
1706   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1707   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1708 $as_echo_n "checking for $2... " >&6; }
1709 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1710   $as_echo_n "(cached) " >&6
1711 else
1712   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1713 /* end confdefs.h.  */
1714 $4
1715 #include <$2>
1716 _ACEOF
1717 if ac_fn_c_try_compile "$LINENO"; then :
1718   eval "$3=yes"
1719 else
1720   eval "$3=no"
1721 fi
1722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1723 fi
1724 eval ac_res=\$$3
1725                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1726 $as_echo "$ac_res" >&6; }
1727   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1728
1729 } # ac_fn_c_check_header_compile
1730
1731 # ac_fn_c_find_intX_t LINENO BITS VAR
1732 # -----------------------------------
1733 # Finds a signed integer type with width BITS, setting cache variable VAR
1734 # accordingly.
1735 ac_fn_c_find_intX_t ()
1736 {
1737   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1739 $as_echo_n "checking for int$2_t... " >&6; }
1740 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1741   $as_echo_n "(cached) " >&6
1742 else
1743   eval "$3=no"
1744      # Order is important - never check a type that is potentially smaller
1745      # than half of the expected target width.
1746      for ac_type in int$2_t 'int' 'long int' \
1747          'long long int' 'short int' 'signed char'; do
1748        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1749 /* end confdefs.h.  */
1750 $ac_includes_default
1751              enum { N = $2 / 2 - 1 };
1752 int
1753 main ()
1754 {
1755 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1756 test_array [0] = 0
1757
1758   ;
1759   return 0;
1760 }
1761 _ACEOF
1762 if ac_fn_c_try_compile "$LINENO"; then :
1763   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1764 /* end confdefs.h.  */
1765 $ac_includes_default
1766                 enum { N = $2 / 2 - 1 };
1767 int
1768 main ()
1769 {
1770 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1771                  < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1772 test_array [0] = 0
1773
1774   ;
1775   return 0;
1776 }
1777 _ACEOF
1778 if ac_fn_c_try_compile "$LINENO"; then :
1779
1780 else
1781   case $ac_type in #(
1782   int$2_t) :
1783     eval "$3=yes" ;; #(
1784   *) :
1785     eval "$3=\$ac_type" ;;
1786 esac
1787 fi
1788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1789 fi
1790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1791        eval as_val=\$$3
1792    if test "x$as_val" = x""no; then :
1793
1794 else
1795   break
1796 fi
1797      done
1798 fi
1799 eval ac_res=\$$3
1800                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1801 $as_echo "$ac_res" >&6; }
1802   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1803
1804 } # ac_fn_c_find_intX_t
1805
1806 # ac_fn_c_try_link LINENO
1807 # -----------------------
1808 # Try to link conftest.$ac_ext, and return whether this succeeded.
1809 ac_fn_c_try_link ()
1810 {
1811   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812   rm -f conftest.$ac_objext conftest$ac_exeext
1813   if { { ac_try="$ac_link"
1814 case "(($ac_try" in
1815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1816   *) ac_try_echo=$ac_try;;
1817 esac
1818 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1819 $as_echo "$ac_try_echo"; } >&5
1820   (eval "$ac_link") 2>conftest.err
1821   ac_status=$?
1822   if test -s conftest.err; then
1823     grep -v '^ *+' conftest.err >conftest.er1
1824     cat conftest.er1 >&5
1825     mv -f conftest.er1 conftest.err
1826   fi
1827   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828   test $ac_status = 0; } && {
1829          test -z "$ac_c_werror_flag" ||
1830          test ! -s conftest.err
1831        } && test -s conftest$ac_exeext && {
1832          test "$cross_compiling" = yes ||
1833          $as_test_x conftest$ac_exeext
1834        }; then :
1835   ac_retval=0
1836 else
1837   $as_echo "$as_me: failed program was:" >&5
1838 sed 's/^/| /' conftest.$ac_ext >&5
1839
1840         ac_retval=1
1841 fi
1842   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1843   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1844   # interfere with the next link command; also delete a directory that is
1845   # left behind by Apple's compiler.  We do this before executing the actions.
1846   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1847   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1848   as_fn_set_status $ac_retval
1849
1850 } # ac_fn_c_try_link
1851
1852 # ac_fn_c_check_func LINENO FUNC VAR
1853 # ----------------------------------
1854 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1855 ac_fn_c_check_func ()
1856 {
1857   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1859 $as_echo_n "checking for $2... " >&6; }
1860 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1861   $as_echo_n "(cached) " >&6
1862 else
1863   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1864 /* end confdefs.h.  */
1865 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1866    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1867 #define $2 innocuous_$2
1868
1869 /* System header to define __stub macros and hopefully few prototypes,
1870     which can conflict with char $2 (); below.
1871     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1872     <limits.h> exists even on freestanding compilers.  */
1873
1874 #ifdef __STDC__
1875 # include <limits.h>
1876 #else
1877 # include <assert.h>
1878 #endif
1879
1880 #undef $2
1881
1882 /* Override any GCC internal prototype to avoid an error.
1883    Use char because int might match the return type of a GCC
1884    builtin and then its argument prototype would still apply.  */
1885 #ifdef __cplusplus
1886 extern "C"
1887 #endif
1888 char $2 ();
1889 /* The GNU C library defines this for functions which it implements
1890     to always fail with ENOSYS.  Some functions are actually named
1891     something starting with __ and the normal name is an alias.  */
1892 #if defined __stub_$2 || defined __stub___$2
1893 choke me
1894 #endif
1895
1896 int
1897 main ()
1898 {
1899 return $2 ();
1900   ;
1901   return 0;
1902 }
1903 _ACEOF
1904 if ac_fn_c_try_link "$LINENO"; then :
1905   eval "$3=yes"
1906 else
1907   eval "$3=no"
1908 fi
1909 rm -f core conftest.err conftest.$ac_objext \
1910     conftest$ac_exeext conftest.$ac_ext
1911 fi
1912 eval ac_res=\$$3
1913                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1914 $as_echo "$ac_res" >&6; }
1915   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1916
1917 } # ac_fn_c_check_func
1918
1919 # ac_fn_cxx_try_cpp LINENO
1920 # ------------------------
1921 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1922 ac_fn_cxx_try_cpp ()
1923 {
1924   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1925   if { { ac_try="$ac_cpp conftest.$ac_ext"
1926 case "(($ac_try" in
1927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1928   *) ac_try_echo=$ac_try;;
1929 esac
1930 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1931 $as_echo "$ac_try_echo"; } >&5
1932   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1933   ac_status=$?
1934   if test -s conftest.err; then
1935     grep -v '^ *+' conftest.err >conftest.er1
1936     cat conftest.er1 >&5
1937     mv -f conftest.er1 conftest.err
1938   fi
1939   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1940   test $ac_status = 0; } >/dev/null && {
1941          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1942          test ! -s conftest.err
1943        }; then :
1944   ac_retval=0
1945 else
1946   $as_echo "$as_me: failed program was:" >&5
1947 sed 's/^/| /' conftest.$ac_ext >&5
1948
1949     ac_retval=1
1950 fi
1951   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1952   as_fn_set_status $ac_retval
1953
1954 } # ac_fn_cxx_try_cpp
1955
1956 # ac_fn_cxx_try_link LINENO
1957 # -------------------------
1958 # Try to link conftest.$ac_ext, and return whether this succeeded.
1959 ac_fn_cxx_try_link ()
1960 {
1961   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1962   rm -f conftest.$ac_objext conftest$ac_exeext
1963   if { { ac_try="$ac_link"
1964 case "(($ac_try" in
1965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1966   *) ac_try_echo=$ac_try;;
1967 esac
1968 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1969 $as_echo "$ac_try_echo"; } >&5
1970   (eval "$ac_link") 2>conftest.err
1971   ac_status=$?
1972   if test -s conftest.err; then
1973     grep -v '^ *+' conftest.err >conftest.er1
1974     cat conftest.er1 >&5
1975     mv -f conftest.er1 conftest.err
1976   fi
1977   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1978   test $ac_status = 0; } && {
1979          test -z "$ac_cxx_werror_flag" ||
1980          test ! -s conftest.err
1981        } && test -s conftest$ac_exeext && {
1982          test "$cross_compiling" = yes ||
1983          $as_test_x conftest$ac_exeext
1984        }; then :
1985   ac_retval=0
1986 else
1987   $as_echo "$as_me: failed program was:" >&5
1988 sed 's/^/| /' conftest.$ac_ext >&5
1989
1990         ac_retval=1
1991 fi
1992   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1993   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1994   # interfere with the next link command; also delete a directory that is
1995   # left behind by Apple's compiler.  We do this before executing the actions.
1996   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1997   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1998   as_fn_set_status $ac_retval
1999
2000 } # ac_fn_cxx_try_link
2001
2002 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2003 # -------------------------------------------------------
2004 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2005 # the include files in INCLUDES and setting the cache variable VAR
2006 # accordingly.
2007 ac_fn_c_check_header_mongrel ()
2008 {
2009   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2010   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2011   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2012 $as_echo_n "checking for $2... " >&6; }
2013 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2014   $as_echo_n "(cached) " >&6
2015 fi
2016 eval ac_res=\$$3
2017                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2018 $as_echo "$ac_res" >&6; }
2019 else
2020   # Is the header compilable?
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2022 $as_echo_n "checking $2 usability... " >&6; }
2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024 /* end confdefs.h.  */
2025 $4
2026 #include <$2>
2027 _ACEOF
2028 if ac_fn_c_try_compile "$LINENO"; then :
2029   ac_header_compiler=yes
2030 else
2031   ac_header_compiler=no
2032 fi
2033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2035 $as_echo "$ac_header_compiler" >&6; }
2036
2037 # Is the header present?
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2039 $as_echo_n "checking $2 presence... " >&6; }
2040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2041 /* end confdefs.h.  */
2042 #include <$2>
2043 _ACEOF
2044 if ac_fn_c_try_cpp "$LINENO"; then :
2045   ac_header_preproc=yes
2046 else
2047   ac_header_preproc=no
2048 fi
2049 rm -f conftest.err conftest.$ac_ext
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2051 $as_echo "$ac_header_preproc" >&6; }
2052
2053 # So?  What about this header?
2054 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2055   yes:no: )
2056     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2057 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2058     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2059 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2060     ;;
2061   no:yes:* )
2062     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2063 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2064     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2065 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2066     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2067 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2068     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2069 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2070     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2071 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2072     ;;
2073 esac
2074   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2075 $as_echo_n "checking for $2... " >&6; }
2076 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2077   $as_echo_n "(cached) " >&6
2078 else
2079   eval "$3=\$ac_header_compiler"
2080 fi
2081 eval ac_res=\$$3
2082                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2083 $as_echo "$ac_res" >&6; }
2084 fi
2085   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2086
2087 } # ac_fn_c_check_header_mongrel
2088
2089 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2090 # ---------------------------------------------------------
2091 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2092 # the include files in INCLUDES and setting the cache variable VAR
2093 # accordingly.
2094 ac_fn_cxx_check_header_mongrel ()
2095 {
2096   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2097   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2098   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2099 $as_echo_n "checking for $2... " >&6; }
2100 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2101   $as_echo_n "(cached) " >&6
2102 fi
2103 eval ac_res=\$$3
2104                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2105 $as_echo "$ac_res" >&6; }
2106 else
2107   # Is the header compilable?
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2109 $as_echo_n "checking $2 usability... " >&6; }
2110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2111 /* end confdefs.h.  */
2112 $4
2113 #include <$2>
2114 _ACEOF
2115 if ac_fn_cxx_try_compile "$LINENO"; then :
2116   ac_header_compiler=yes
2117 else
2118   ac_header_compiler=no
2119 fi
2120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2122 $as_echo "$ac_header_compiler" >&6; }
2123
2124 # Is the header present?
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2126 $as_echo_n "checking $2 presence... " >&6; }
2127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128 /* end confdefs.h.  */
2129 #include <$2>
2130 _ACEOF
2131 if ac_fn_cxx_try_cpp "$LINENO"; then :
2132   ac_header_preproc=yes
2133 else
2134   ac_header_preproc=no
2135 fi
2136 rm -f conftest.err conftest.$ac_ext
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2138 $as_echo "$ac_header_preproc" >&6; }
2139
2140 # So?  What about this header?
2141 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2142   yes:no: )
2143     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2144 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2145     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2146 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2147     ;;
2148   no:yes:* )
2149     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2150 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2151     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2152 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2153     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2154 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2155     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2156 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2157     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2158 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2159     ;;
2160 esac
2161   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2162 $as_echo_n "checking for $2... " >&6; }
2163 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2164   $as_echo_n "(cached) " >&6
2165 else
2166   eval "$3=\$ac_header_compiler"
2167 fi
2168 eval ac_res=\$$3
2169                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2170 $as_echo "$ac_res" >&6; }
2171 fi
2172   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2173
2174 } # ac_fn_cxx_check_header_mongrel
2175
2176 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2177 # ---------------------------------------------
2178 # Tests whether TYPE exists after having included INCLUDES, setting cache
2179 # variable VAR accordingly.
2180 ac_fn_cxx_check_type ()
2181 {
2182   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2183   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2184 $as_echo_n "checking for $2... " >&6; }
2185 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2186   $as_echo_n "(cached) " >&6
2187 else
2188   eval "$3=no"
2189   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2190 /* end confdefs.h.  */
2191 $4
2192 int
2193 main ()
2194 {
2195 if (sizeof ($2))
2196          return 0;
2197   ;
2198   return 0;
2199 }
2200 _ACEOF
2201 if ac_fn_cxx_try_compile "$LINENO"; then :
2202   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2203 /* end confdefs.h.  */
2204 $4
2205 int
2206 main ()
2207 {
2208 if (sizeof (($2)))
2209             return 0;
2210   ;
2211   return 0;
2212 }
2213 _ACEOF
2214 if ac_fn_cxx_try_compile "$LINENO"; then :
2215
2216 else
2217   eval "$3=yes"
2218 fi
2219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2220 fi
2221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2222 fi
2223 eval ac_res=\$$3
2224                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2225 $as_echo "$ac_res" >&6; }
2226   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2227
2228 } # ac_fn_cxx_check_type
2229
2230 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2231 # -------------------------------------------
2232 # Tests whether TYPE exists after having included INCLUDES, setting cache
2233 # variable VAR accordingly.
2234 ac_fn_c_check_type ()
2235 {
2236   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2237   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2238 $as_echo_n "checking for $2... " >&6; }
2239 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2240   $as_echo_n "(cached) " >&6
2241 else
2242   eval "$3=no"
2243   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2244 /* end confdefs.h.  */
2245 $4
2246 int
2247 main ()
2248 {
2249 if (sizeof ($2))
2250          return 0;
2251   ;
2252   return 0;
2253 }
2254 _ACEOF
2255 if ac_fn_c_try_compile "$LINENO"; then :
2256   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2257 /* end confdefs.h.  */
2258 $4
2259 int
2260 main ()
2261 {
2262 if (sizeof (($2)))
2263             return 0;
2264   ;
2265   return 0;
2266 }
2267 _ACEOF
2268 if ac_fn_c_try_compile "$LINENO"; then :
2269
2270 else
2271   eval "$3=yes"
2272 fi
2273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2274 fi
2275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2276 fi
2277 eval ac_res=\$$3
2278                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2279 $as_echo "$ac_res" >&6; }
2280   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2281
2282 } # ac_fn_c_check_type
2283 cat >config.log <<_ACEOF
2284 This file contains any messages produced by compilers while
2285 running configure, to aid debugging if configure makes a mistake.
2286
2287 It was created by PCRE $as_me 8.11, which was
2288 generated by GNU Autoconf 2.65.  Invocation command line was
2289
2290   $ $0 $@
2291
2292 _ACEOF
2293 exec 5>>config.log
2294 {
2295 cat <<_ASUNAME
2296 ## --------- ##
2297 ## Platform. ##
2298 ## --------- ##
2299
2300 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2301 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2302 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2303 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2304 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2305
2306 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2307 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2308
2309 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2310 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2311 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2312 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2313 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2314 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2315 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2316
2317 _ASUNAME
2318
2319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2320 for as_dir in $PATH
2321 do
2322   IFS=$as_save_IFS
2323   test -z "$as_dir" && as_dir=.
2324     $as_echo "PATH: $as_dir"
2325   done
2326 IFS=$as_save_IFS
2327
2328 } >&5
2329
2330 cat >&5 <<_ACEOF
2331
2332
2333 ## ----------- ##
2334 ## Core tests. ##
2335 ## ----------- ##
2336
2337 _ACEOF
2338
2339
2340 # Keep a trace of the command line.
2341 # Strip out --no-create and --no-recursion so they do not pile up.
2342 # Strip out --silent because we don't want to record it for future runs.
2343 # Also quote any args containing shell meta-characters.
2344 # Make two passes to allow for proper duplicate-argument suppression.
2345 ac_configure_args=
2346 ac_configure_args0=
2347 ac_configure_args1=
2348 ac_must_keep_next=false
2349 for ac_pass in 1 2
2350 do
2351   for ac_arg
2352   do
2353     case $ac_arg in
2354     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2355     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2356     | -silent | --silent | --silen | --sile | --sil)
2357       continue ;;
2358     *\'*)
2359       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2360     esac
2361     case $ac_pass in
2362     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2363     2)
2364       as_fn_append ac_configure_args1 " '$ac_arg'"
2365       if test $ac_must_keep_next = true; then
2366         ac_must_keep_next=false # Got value, back to normal.
2367       else
2368         case $ac_arg in
2369           *=* | --config-cache | -C | -disable-* | --disable-* \
2370           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2371           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2372           | -with-* | --with-* | -without-* | --without-* | --x)
2373             case "$ac_configure_args0 " in
2374               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2375             esac
2376             ;;
2377           -* ) ac_must_keep_next=true ;;
2378         esac
2379       fi
2380       as_fn_append ac_configure_args " '$ac_arg'"
2381       ;;
2382     esac
2383   done
2384 done
2385 { ac_configure_args0=; unset ac_configure_args0;}
2386 { ac_configure_args1=; unset ac_configure_args1;}
2387
2388 # When interrupted or exit'd, cleanup temporary files, and complete
2389 # config.log.  We remove comments because anyway the quotes in there
2390 # would cause problems or look ugly.
2391 # WARNING: Use '\'' to represent an apostrophe within the trap.
2392 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2393 trap 'exit_status=$?
2394   # Save into config.log some information that might help in debugging.
2395   {
2396     echo
2397
2398     cat <<\_ASBOX
2399 ## ---------------- ##
2400 ## Cache variables. ##
2401 ## ---------------- ##
2402 _ASBOX
2403     echo
2404     # The following way of writing the cache mishandles newlines in values,
2405 (
2406   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2407     eval ac_val=\$$ac_var
2408     case $ac_val in #(
2409     *${as_nl}*)
2410       case $ac_var in #(
2411       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2412 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2413       esac
2414       case $ac_var in #(
2415       _ | IFS | as_nl) ;; #(
2416       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2417       *) { eval $ac_var=; unset $ac_var;} ;;
2418       esac ;;
2419     esac
2420   done
2421   (set) 2>&1 |
2422     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2423     *${as_nl}ac_space=\ *)
2424       sed -n \
2425         "s/'\''/'\''\\\\'\'''\''/g;
2426           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2427       ;; #(
2428     *)
2429       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2430       ;;
2431     esac |
2432     sort
2433 )
2434     echo
2435
2436     cat <<\_ASBOX
2437 ## ----------------- ##
2438 ## Output variables. ##
2439 ## ----------------- ##
2440 _ASBOX
2441     echo
2442     for ac_var in $ac_subst_vars
2443     do
2444       eval ac_val=\$$ac_var
2445       case $ac_val in
2446       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2447       esac
2448       $as_echo "$ac_var='\''$ac_val'\''"
2449     done | sort
2450     echo
2451
2452     if test -n "$ac_subst_files"; then
2453       cat <<\_ASBOX
2454 ## ------------------- ##
2455 ## File substitutions. ##
2456 ## ------------------- ##
2457 _ASBOX
2458       echo
2459       for ac_var in $ac_subst_files
2460       do
2461         eval ac_val=\$$ac_var
2462         case $ac_val in
2463         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2464         esac
2465         $as_echo "$ac_var='\''$ac_val'\''"
2466       done | sort
2467       echo
2468     fi
2469
2470     if test -s confdefs.h; then
2471       cat <<\_ASBOX
2472 ## ----------- ##
2473 ## confdefs.h. ##
2474 ## ----------- ##
2475 _ASBOX
2476       echo
2477       cat confdefs.h
2478       echo
2479     fi
2480     test "$ac_signal" != 0 &&
2481       $as_echo "$as_me: caught signal $ac_signal"
2482     $as_echo "$as_me: exit $exit_status"
2483   } >&5
2484   rm -f core *.core core.conftest.* &&
2485     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2486     exit $exit_status
2487 ' 0
2488 for ac_signal in 1 2 13 15; do
2489   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2490 done
2491 ac_signal=0
2492
2493 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2494 rm -f -r conftest* confdefs.h
2495
2496 $as_echo "/* confdefs.h */" > confdefs.h
2497
2498 # Predefined preprocessor variables.
2499
2500 cat >>confdefs.h <<_ACEOF
2501 #define PACKAGE_NAME "$PACKAGE_NAME"
2502 _ACEOF
2503
2504 cat >>confdefs.h <<_ACEOF
2505 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2506 _ACEOF
2507
2508 cat >>confdefs.h <<_ACEOF
2509 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2510 _ACEOF
2511
2512 cat >>confdefs.h <<_ACEOF
2513 #define PACKAGE_STRING "$PACKAGE_STRING"
2514 _ACEOF
2515
2516 cat >>confdefs.h <<_ACEOF
2517 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2518 _ACEOF
2519
2520 cat >>confdefs.h <<_ACEOF
2521 #define PACKAGE_URL "$PACKAGE_URL"
2522 _ACEOF
2523
2524
2525 # Let the site file select an alternate cache file if it wants to.
2526 # Prefer an explicitly selected file to automatically selected ones.
2527 ac_site_file1=NONE
2528 ac_site_file2=NONE
2529 if test -n "$CONFIG_SITE"; then
2530   ac_site_file1=$CONFIG_SITE
2531 elif test "x$prefix" != xNONE; then
2532   ac_site_file1=$prefix/share/config.site
2533   ac_site_file2=$prefix/etc/config.site
2534 else
2535   ac_site_file1=$ac_default_prefix/share/config.site
2536   ac_site_file2=$ac_default_prefix/etc/config.site
2537 fi
2538 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2539 do
2540   test "x$ac_site_file" = xNONE && continue
2541   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2542     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2543 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2544     sed 's/^/| /' "$ac_site_file" >&5
2545     . "$ac_site_file"
2546   fi
2547 done
2548
2549 if test -r "$cache_file"; then
2550   # Some versions of bash will fail to source /dev/null (special files
2551   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2552   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2553     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2554 $as_echo "$as_me: loading cache $cache_file" >&6;}
2555     case $cache_file in
2556       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2557       *)                      . "./$cache_file";;
2558     esac
2559   fi
2560 else
2561   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2562 $as_echo "$as_me: creating cache $cache_file" >&6;}
2563   >$cache_file
2564 fi
2565
2566 # Check that the precious variables saved in the cache have kept the same
2567 # value.
2568 ac_cache_corrupted=false
2569 for ac_var in $ac_precious_vars; do
2570   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2571   eval ac_new_set=\$ac_env_${ac_var}_set
2572   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2573   eval ac_new_val=\$ac_env_${ac_var}_value
2574   case $ac_old_set,$ac_new_set in
2575     set,)
2576       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2577 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2578       ac_cache_corrupted=: ;;
2579     ,set)
2580       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2581 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2582       ac_cache_corrupted=: ;;
2583     ,);;
2584     *)
2585       if test "x$ac_old_val" != "x$ac_new_val"; then
2586         # differences in whitespace do not lead to failure.
2587         ac_old_val_w=`echo x $ac_old_val`
2588         ac_new_val_w=`echo x $ac_new_val`
2589         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2590           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2591 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2592           ac_cache_corrupted=:
2593         else
2594           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2595 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2596           eval $ac_var=\$ac_old_val
2597         fi
2598         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2599 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2600         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2601 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2602       fi;;
2603   esac
2604   # Pass precious variables to config.status.
2605   if test "$ac_new_set" = set; then
2606     case $ac_new_val in
2607     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2608     *) ac_arg=$ac_var=$ac_new_val ;;
2609     esac
2610     case " $ac_configure_args " in
2611       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2612       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2613     esac
2614   fi
2615 done
2616 if $ac_cache_corrupted; then
2617   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2618 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2619   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2620 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2621   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2622 fi
2623 ## -------------------- ##
2624 ## Main body of script. ##
2625 ## -------------------- ##
2626
2627 ac_ext=c
2628 ac_cpp='$CPP $CPPFLAGS'
2629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2632
2633
2634
2635 am__api_version='1.11'
2636
2637 ac_aux_dir=
2638 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2639   for ac_t in install-sh install.sh shtool; do
2640     if test -f "$ac_dir/$ac_t"; then
2641       ac_aux_dir=$ac_dir
2642       ac_install_sh="$ac_aux_dir/$ac_t -c"
2643       break 2
2644     fi
2645   done
2646 done
2647 if test -z "$ac_aux_dir"; then
2648   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2649 fi
2650
2651 # These three variables are undocumented and unsupported,
2652 # and are intended to be withdrawn in a future Autoconf release.
2653 # They can cause serious problems if a builder's source tree is in a directory
2654 # whose full name contains unusual characters.
2655 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2656 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2657 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2658
2659
2660 # Find a good install program.  We prefer a C program (faster),
2661 # so one script is as good as another.  But avoid the broken or
2662 # incompatible versions:
2663 # SysV /etc/install, /usr/sbin/install
2664 # SunOS /usr/etc/install
2665 # IRIX /sbin/install
2666 # AIX /bin/install
2667 # AmigaOS /C/install, which installs bootblocks on floppy discs
2668 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2669 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2670 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2671 # OS/2's system install, which has a completely different semantic
2672 # ./install, which can be erroneously created by make from ./install.sh.
2673 # Reject install programs that cannot install multiple files.
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2675 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2676 if test -z "$INSTALL"; then
2677 if test "${ac_cv_path_install+set}" = set; then :
2678   $as_echo_n "(cached) " >&6
2679 else
2680   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2681 for as_dir in $PATH
2682 do
2683   IFS=$as_save_IFS
2684   test -z "$as_dir" && as_dir=.
2685     # Account for people who put trailing slashes in PATH elements.
2686 case $as_dir/ in #((
2687   ./ | .// | /[cC]/* | \
2688   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2689   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2690   /usr/ucb/* ) ;;
2691   *)
2692     # OSF1 and SCO ODT 3.0 have their own names for install.
2693     # Don't use installbsd from OSF since it installs stuff as root
2694     # by default.
2695     for ac_prog in ginstall scoinst install; do
2696       for ac_exec_ext in '' $ac_executable_extensions; do
2697         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2698           if test $ac_prog = install &&
2699             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2700             # AIX install.  It has an incompatible calling convention.
2701             :
2702           elif test $ac_prog = install &&
2703             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2704             # program-specific install script used by HP pwplus--don't use.
2705             :
2706           else
2707             rm -rf conftest.one conftest.two conftest.dir
2708             echo one > conftest.one
2709             echo two > conftest.two
2710             mkdir conftest.dir
2711             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2712               test -s conftest.one && test -s conftest.two &&
2713               test -s conftest.dir/conftest.one &&
2714               test -s conftest.dir/conftest.two
2715             then
2716               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2717               break 3
2718             fi
2719           fi
2720         fi
2721       done
2722     done
2723     ;;
2724 esac
2725
2726   done
2727 IFS=$as_save_IFS
2728
2729 rm -rf conftest.one conftest.two conftest.dir
2730
2731 fi
2732   if test "${ac_cv_path_install+set}" = set; then
2733     INSTALL=$ac_cv_path_install
2734   else
2735     # As a last resort, use the slow shell script.  Don't cache a
2736     # value for INSTALL within a source directory, because that will
2737     # break other packages using the cache if that directory is
2738     # removed, or if the value is a relative name.
2739     INSTALL=$ac_install_sh
2740   fi
2741 fi
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2743 $as_echo "$INSTALL" >&6; }
2744
2745 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2746 # It thinks the first close brace ends the variable substitution.
2747 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2748
2749 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2750
2751 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2752
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2754 $as_echo_n "checking whether build environment is sane... " >&6; }
2755 # Just in case
2756 sleep 1
2757 echo timestamp > conftest.file
2758 # Reject unsafe characters in $srcdir or the absolute working directory
2759 # name.  Accept space and tab only in the latter.
2760 am_lf='
2761 '
2762 case `pwd` in
2763   *[\\\"\#\$\&\'\`$am_lf]*)
2764     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2765 esac
2766 case $srcdir in
2767   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2768     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2769 esac
2770
2771 # Do `set' in a subshell so we don't clobber the current shell's
2772 # arguments.  Must try -L first in case configure is actually a
2773 # symlink; some systems play weird games with the mod time of symlinks
2774 # (eg FreeBSD returns the mod time of the symlink's containing
2775 # directory).
2776 if (
2777    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2778    if test "$*" = "X"; then
2779       # -L didn't work.
2780       set X `ls -t "$srcdir/configure" conftest.file`
2781    fi
2782    rm -f conftest.file
2783    if test "$*" != "X $srcdir/configure conftest.file" \
2784       && test "$*" != "X conftest.file $srcdir/configure"; then
2785
2786       # If neither matched, then we have a broken ls.  This can happen
2787       # if, for instance, CONFIG_SHELL is bash and it inherits a
2788       # broken ls alias from the environment.  This has actually
2789       # happened.  Such a system could not be considered "sane".
2790       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2791 alias in your environment" "$LINENO" 5
2792    fi
2793
2794    test "$2" = conftest.file
2795    )
2796 then
2797    # Ok.
2798    :
2799 else
2800    as_fn_error "newly created file is older than distributed files!
2801 Check your system clock" "$LINENO" 5
2802 fi
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2804 $as_echo "yes" >&6; }
2805 test "$program_prefix" != NONE &&
2806   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2807 # Use a double $ so make ignores it.
2808 test "$program_suffix" != NONE &&
2809   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2810 # Double any \ or $.
2811 # By default was `s,x,x', remove it if useless.
2812 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2813 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2814
2815 # expand $ac_aux_dir to an absolute path
2816 am_aux_dir=`cd $ac_aux_dir && pwd`
2817
2818 if test x"${MISSING+set}" != xset; then
2819   case $am_aux_dir in
2820   *\ * | *\     *)
2821     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2822   *)
2823     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2824   esac
2825 fi
2826 # Use eval to expand $SHELL
2827 if eval "$MISSING --run true"; then
2828   am_missing_run="$MISSING --run "
2829 else
2830   am_missing_run=
2831   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2832 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2833 fi
2834
2835 if test x"${install_sh}" != xset; then
2836   case $am_aux_dir in
2837   *\ * | *\     *)
2838     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2839   *)
2840     install_sh="\${SHELL} $am_aux_dir/install-sh"
2841   esac
2842 fi
2843
2844 # Installed binaries are usually stripped using `strip' when the user
2845 # run `make install-strip'.  However `strip' might not be the right
2846 # tool to use in cross-compilation environments, therefore Automake
2847 # will honor the `STRIP' environment variable to overrule this program.
2848 if test "$cross_compiling" != no; then
2849   if test -n "$ac_tool_prefix"; then
2850   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2851 set dummy ${ac_tool_prefix}strip; ac_word=$2
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2853 $as_echo_n "checking for $ac_word... " >&6; }
2854 if test "${ac_cv_prog_STRIP+set}" = set; then :
2855   $as_echo_n "(cached) " >&6
2856 else
2857   if test -n "$STRIP"; then
2858   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2859 else
2860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2861 for as_dir in $PATH
2862 do
2863   IFS=$as_save_IFS
2864   test -z "$as_dir" && as_dir=.
2865     for ac_exec_ext in '' $ac_executable_extensions; do
2866   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2867     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2868     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2869     break 2
2870   fi
2871 done
2872   done
2873 IFS=$as_save_IFS
2874
2875 fi
2876 fi
2877 STRIP=$ac_cv_prog_STRIP
2878 if test -n "$STRIP"; then
2879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2880 $as_echo "$STRIP" >&6; }
2881 else
2882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2883 $as_echo "no" >&6; }
2884 fi
2885
2886
2887 fi
2888 if test -z "$ac_cv_prog_STRIP"; then
2889   ac_ct_STRIP=$STRIP
2890   # Extract the first word of "strip", so it can be a program name with args.
2891 set dummy strip; ac_word=$2
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2893 $as_echo_n "checking for $ac_word... " >&6; }
2894 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2895   $as_echo_n "(cached) " >&6
2896 else
2897   if test -n "$ac_ct_STRIP"; then
2898   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2899 else
2900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2901 for as_dir in $PATH
2902 do
2903   IFS=$as_save_IFS
2904   test -z "$as_dir" && as_dir=.
2905     for ac_exec_ext in '' $ac_executable_extensions; do
2906   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2907     ac_cv_prog_ac_ct_STRIP="strip"
2908     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2909     break 2
2910   fi
2911 done
2912   done
2913 IFS=$as_save_IFS
2914
2915 fi
2916 fi
2917 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2918 if test -n "$ac_ct_STRIP"; then
2919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2920 $as_echo "$ac_ct_STRIP" >&6; }
2921 else
2922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2923 $as_echo "no" >&6; }
2924 fi
2925
2926   if test "x$ac_ct_STRIP" = x; then
2927     STRIP=":"
2928   else
2929     case $cross_compiling:$ac_tool_warned in
2930 yes:)
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2932 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2933 ac_tool_warned=yes ;;
2934 esac
2935     STRIP=$ac_ct_STRIP
2936   fi
2937 else
2938   STRIP="$ac_cv_prog_STRIP"
2939 fi
2940
2941 fi
2942 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2943
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2945 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2946 if test -z "$MKDIR_P"; then
2947   if test "${ac_cv_path_mkdir+set}" = set; then :
2948   $as_echo_n "(cached) " >&6
2949 else
2950   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2952 do
2953   IFS=$as_save_IFS
2954   test -z "$as_dir" && as_dir=.
2955     for ac_prog in mkdir gmkdir; do
2956          for ac_exec_ext in '' $ac_executable_extensions; do
2957            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2958            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2959              'mkdir (GNU coreutils) '* | \
2960              'mkdir (coreutils) '* | \
2961              'mkdir (fileutils) '4.1*)
2962                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2963                break 3;;
2964            esac
2965          done
2966        done
2967   done
2968 IFS=$as_save_IFS
2969
2970 fi
2971
2972   test -d ./--version && rmdir ./--version
2973   if test "${ac_cv_path_mkdir+set}" = set; then
2974     MKDIR_P="$ac_cv_path_mkdir -p"
2975   else
2976     # As a last resort, use the slow shell script.  Don't cache a
2977     # value for MKDIR_P within a source directory, because that will
2978     # break other packages using the cache if that directory is
2979     # removed, or if the value is a relative name.
2980     MKDIR_P="$ac_install_sh -d"
2981   fi
2982 fi
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2984 $as_echo "$MKDIR_P" >&6; }
2985
2986 mkdir_p="$MKDIR_P"
2987 case $mkdir_p in
2988   [\\/$]* | ?:[\\/]*) ;;
2989   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2990 esac
2991
2992 for ac_prog in gawk mawk nawk awk
2993 do
2994   # Extract the first word of "$ac_prog", so it can be a program name with args.
2995 set dummy $ac_prog; ac_word=$2
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2997 $as_echo_n "checking for $ac_word... " >&6; }
2998 if test "${ac_cv_prog_AWK+set}" = set; then :
2999   $as_echo_n "(cached) " >&6
3000 else
3001   if test -n "$AWK"; then
3002   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3003 else
3004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3005 for as_dir in $PATH
3006 do
3007   IFS=$as_save_IFS
3008   test -z "$as_dir" && as_dir=.
3009     for ac_exec_ext in '' $ac_executable_extensions; do
3010   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3011     ac_cv_prog_AWK="$ac_prog"
3012     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3013     break 2
3014   fi
3015 done
3016   done
3017 IFS=$as_save_IFS
3018
3019 fi
3020 fi
3021 AWK=$ac_cv_prog_AWK
3022 if test -n "$AWK"; then
3023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3024 $as_echo "$AWK" >&6; }
3025 else
3026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3027 $as_echo "no" >&6; }
3028 fi
3029
3030
3031   test -n "$AWK" && break
3032 done
3033
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3035 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3036 set x ${MAKE-make}
3037 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3038 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3039   $as_echo_n "(cached) " >&6
3040 else
3041   cat >conftest.make <<\_ACEOF
3042 SHELL = /bin/sh
3043 all:
3044         @echo '@@@%%%=$(MAKE)=@@@%%%'
3045 _ACEOF
3046 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3047 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3048   *@@@%%%=?*=@@@%%%*)
3049     eval ac_cv_prog_make_${ac_make}_set=yes;;
3050   *)
3051     eval ac_cv_prog_make_${ac_make}_set=no;;
3052 esac
3053 rm -f conftest.make
3054 fi
3055 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3057 $as_echo "yes" >&6; }
3058   SET_MAKE=
3059 else
3060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3061 $as_echo "no" >&6; }
3062   SET_MAKE="MAKE=${MAKE-make}"
3063 fi
3064
3065 rm -rf .tst 2>/dev/null
3066 mkdir .tst 2>/dev/null
3067 if test -d .tst; then
3068   am__leading_dot=.
3069 else
3070   am__leading_dot=_
3071 fi
3072 rmdir .tst 2>/dev/null
3073
3074 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3075   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3076   # is not polluted with repeated "-I."
3077   am__isrc=' -I$(srcdir)'
3078   # test to see if srcdir already configured
3079   if test -f $srcdir/config.status; then
3080     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3081   fi
3082 fi
3083
3084 # test whether we have cygpath
3085 if test -z "$CYGPATH_W"; then
3086   if (cygpath --version) >/dev/null 2>/dev/null; then
3087     CYGPATH_W='cygpath -w'
3088   else
3089     CYGPATH_W=echo
3090   fi
3091 fi
3092
3093
3094 # Define the identity of the package.
3095  PACKAGE='pcre'
3096  VERSION='8.11'
3097
3098
3099 cat >>confdefs.h <<_ACEOF
3100 #define PACKAGE "$PACKAGE"
3101 _ACEOF
3102
3103
3104 cat >>confdefs.h <<_ACEOF
3105 #define VERSION "$VERSION"
3106 _ACEOF
3107
3108 # Some tools Automake needs.
3109
3110 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3111
3112
3113 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3114
3115
3116 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3117
3118
3119 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3120
3121
3122 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3123
3124 # We need awk for the "check" target.  The system "awk" is bad on
3125 # some platforms.
3126 # Always define AMTAR for backward compatibility.
3127
3128 AMTAR=${AMTAR-"${am_missing_run}tar"}
3129
3130 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3131
3132
3133
3134
3135
3136 ac_config_headers="$ac_config_headers config.h"
3137
3138
3139 # This was added at the suggestion of libtoolize (03-Jan-10)
3140
3141
3142 # The default CFLAGS and CXXFLAGS in Autoconf are "-g -O2" for gcc and just
3143 # "-g" for any other compiler. There doesn't seem to be a standard way of
3144 # getting rid of the -g (which I don't think is needed for a production
3145 # library). This fudge seems to achieve the necessary. First, we remember the
3146 # externally set values of CFLAGS and CXXFLAGS. Then call the AC_PROG_CC and
3147 # AC_PROG_CXX macros to find the compilers - if CFLAGS and CXXFLAGS are not
3148 # set, they will be set to Autoconf's defaults. Afterwards, if the original
3149 # values were not set, remove the -g from the Autoconf defaults.
3150 # (PH 02-May-07)
3151
3152 remember_set_CFLAGS="$CFLAGS"
3153 remember_set_CXXFLAGS="$CXXFLAGS"
3154
3155 ac_ext=c
3156 ac_cpp='$CPP $CPPFLAGS'
3157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3160 if test -n "$ac_tool_prefix"; then
3161   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3162 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3164 $as_echo_n "checking for $ac_word... " >&6; }
3165 if test "${ac_cv_prog_CC+set}" = set; then :
3166   $as_echo_n "(cached) " >&6
3167 else
3168   if test -n "$CC"; then
3169   ac_cv_prog_CC="$CC" # Let the user override the test.
3170 else
3171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3172 for as_dir in $PATH
3173 do
3174   IFS=$as_save_IFS
3175   test -z "$as_dir" && as_dir=.
3176     for ac_exec_ext in '' $ac_executable_extensions; do
3177   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3178     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3179     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3180     break 2
3181   fi
3182 done
3183   done
3184 IFS=$as_save_IFS
3185
3186 fi
3187 fi
3188 CC=$ac_cv_prog_CC
3189 if test -n "$CC"; then
3190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3191 $as_echo "$CC" >&6; }
3192 else
3193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3194 $as_echo "no" >&6; }
3195 fi
3196
3197
3198 fi
3199 if test -z "$ac_cv_prog_CC"; then
3200   ac_ct_CC=$CC
3201   # Extract the first word of "gcc", so it can be a program name with args.
3202 set dummy gcc; ac_word=$2
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3204 $as_echo_n "checking for $ac_word... " >&6; }
3205 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3206   $as_echo_n "(cached) " >&6
3207 else
3208   if test -n "$ac_ct_CC"; then
3209   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3210 else
3211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3212 for as_dir in $PATH
3213 do
3214   IFS=$as_save_IFS
3215   test -z "$as_dir" && as_dir=.
3216     for ac_exec_ext in '' $ac_executable_extensions; do
3217   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3218     ac_cv_prog_ac_ct_CC="gcc"
3219     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3220     break 2
3221   fi
3222 done
3223   done
3224 IFS=$as_save_IFS
3225
3226 fi
3227 fi
3228 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3229 if test -n "$ac_ct_CC"; then
3230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3231 $as_echo "$ac_ct_CC" >&6; }
3232 else
3233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3234 $as_echo "no" >&6; }
3235 fi
3236
3237   if test "x$ac_ct_CC" = x; then
3238     CC=""
3239   else
3240     case $cross_compiling:$ac_tool_warned in
3241 yes:)
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3243 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3244 ac_tool_warned=yes ;;
3245 esac
3246     CC=$ac_ct_CC
3247   fi
3248 else
3249   CC="$ac_cv_prog_CC"
3250 fi
3251
3252 if test -z "$CC"; then
3253           if test -n "$ac_tool_prefix"; then
3254     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3255 set dummy ${ac_tool_prefix}cc; ac_word=$2
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3257 $as_echo_n "checking for $ac_word... " >&6; }
3258 if test "${ac_cv_prog_CC+set}" = set; then :
3259   $as_echo_n "(cached) " >&6
3260 else
3261   if test -n "$CC"; then
3262   ac_cv_prog_CC="$CC" # Let the user override the test.
3263 else
3264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3265 for as_dir in $PATH
3266 do
3267   IFS=$as_save_IFS
3268   test -z "$as_dir" && as_dir=.
3269     for ac_exec_ext in '' $ac_executable_extensions; do
3270   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3271     ac_cv_prog_CC="${ac_tool_prefix}cc"
3272     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3273     break 2
3274   fi
3275 done
3276   done
3277 IFS=$as_save_IFS
3278
3279 fi
3280 fi
3281 CC=$ac_cv_prog_CC
3282 if test -n "$CC"; then
3283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3284 $as_echo "$CC" >&6; }
3285 else
3286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3287 $as_echo "no" >&6; }
3288 fi
3289
3290
3291   fi
3292 fi
3293 if test -z "$CC"; then
3294   # Extract the first word of "cc", so it can be a program name with args.
3295 set dummy cc; ac_word=$2
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3297 $as_echo_n "checking for $ac_word... " >&6; }
3298 if test "${ac_cv_prog_CC+set}" = set; then :
3299   $as_echo_n "(cached) " >&6
3300 else
3301   if test -n "$CC"; then
3302   ac_cv_prog_CC="$CC" # Let the user override the test.
3303 else
3304   ac_prog_rejected=no
3305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3306 for as_dir in $PATH
3307 do
3308   IFS=$as_save_IFS
3309   test -z "$as_dir" && as_dir=.
3310     for ac_exec_ext in '' $ac_executable_extensions; do
3311   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3312     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3313        ac_prog_rejected=yes
3314        continue
3315      fi
3316     ac_cv_prog_CC="cc"
3317     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3318     break 2
3319   fi
3320 done
3321   done
3322 IFS=$as_save_IFS
3323
3324 if test $ac_prog_rejected = yes; then
3325   # We found a bogon in the path, so make sure we never use it.
3326   set dummy $ac_cv_prog_CC
3327   shift
3328   if test $# != 0; then
3329     # We chose a different compiler from the bogus one.
3330     # However, it has the same basename, so the bogon will be chosen
3331     # first if we set CC to just the basename; use the full file name.
3332     shift
3333     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3334   fi
3335 fi
3336 fi
3337 fi
3338 CC=$ac_cv_prog_CC
3339 if test -n "$CC"; then
3340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3341 $as_echo "$CC" >&6; }
3342 else
3343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3344 $as_echo "no" >&6; }
3345 fi
3346
3347
3348 fi
3349 if test -z "$CC"; then
3350   if test -n "$ac_tool_prefix"; then
3351   for ac_prog in cl.exe
3352   do
3353     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3354 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3356 $as_echo_n "checking for $ac_word... " >&6; }
3357 if test "${ac_cv_prog_CC+set}" = set; then :
3358   $as_echo_n "(cached) " >&6
3359 else
3360   if test -n "$CC"; then
3361   ac_cv_prog_CC="$CC" # Let the user override the test.
3362 else
3363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3364 for as_dir in $PATH
3365 do
3366   IFS=$as_save_IFS
3367   test -z "$as_dir" && as_dir=.
3368     for ac_exec_ext in '' $ac_executable_extensions; do
3369   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3370     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3371     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3372     break 2
3373   fi
3374 done
3375   done
3376 IFS=$as_save_IFS
3377
3378 fi
3379 fi
3380 CC=$ac_cv_prog_CC
3381 if test -n "$CC"; then
3382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3383 $as_echo "$CC" >&6; }
3384 else
3385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3386 $as_echo "no" >&6; }
3387 fi
3388
3389
3390     test -n "$CC" && break
3391   done
3392 fi
3393 if test -z "$CC"; then
3394   ac_ct_CC=$CC
3395   for ac_prog in cl.exe
3396 do
3397   # Extract the first word of "$ac_prog", so it can be a program name with args.
3398 set dummy $ac_prog; ac_word=$2
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3400 $as_echo_n "checking for $ac_word... " >&6; }
3401 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3402   $as_echo_n "(cached) " >&6
3403 else
3404   if test -n "$ac_ct_CC"; then
3405   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3406 else
3407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3408 for as_dir in $PATH
3409 do
3410   IFS=$as_save_IFS
3411   test -z "$as_dir" && as_dir=.
3412     for ac_exec_ext in '' $ac_executable_extensions; do
3413   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3414     ac_cv_prog_ac_ct_CC="$ac_prog"
3415     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3416     break 2
3417   fi
3418 done
3419   done
3420 IFS=$as_save_IFS
3421
3422 fi
3423 fi
3424 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3425 if test -n "$ac_ct_CC"; then
3426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3427 $as_echo "$ac_ct_CC" >&6; }
3428 else
3429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3430 $as_echo "no" >&6; }
3431 fi
3432
3433
3434   test -n "$ac_ct_CC" && break
3435 done
3436
3437   if test "x$ac_ct_CC" = x; then
3438     CC=""
3439   else
3440     case $cross_compiling:$ac_tool_warned in
3441 yes:)
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3443 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3444 ac_tool_warned=yes ;;
3445 esac
3446     CC=$ac_ct_CC
3447   fi
3448 fi
3449
3450 fi
3451
3452
3453 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3454 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3455 as_fn_error "no acceptable C compiler found in \$PATH
3456 See \`config.log' for more details." "$LINENO" 5; }
3457
3458 # Provide some information about the compiler.
3459 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3460 set X $ac_compile
3461 ac_compiler=$2
3462 for ac_option in --version -v -V -qversion; do
3463   { { ac_try="$ac_compiler $ac_option >&5"
3464 case "(($ac_try" in
3465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3466   *) ac_try_echo=$ac_try;;
3467 esac
3468 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3469 $as_echo "$ac_try_echo"; } >&5
3470   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3471   ac_status=$?
3472   if test -s conftest.err; then
3473     sed '10a\
3474 ... rest of stderr output deleted ...
3475          10q' conftest.err >conftest.er1
3476     cat conftest.er1 >&5
3477   fi
3478   rm -f conftest.er1 conftest.err
3479   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3480   test $ac_status = 0; }
3481 done
3482
3483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3484 /* end confdefs.h.  */
3485
3486 int
3487 main ()
3488 {
3489
3490   ;
3491   return 0;
3492 }
3493 _ACEOF
3494 ac_clean_files_save=$ac_clean_files
3495 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3496 # Try to create an executable without -o first, disregard a.out.
3497 # It will help us diagnose broken compilers, and finding out an intuition
3498 # of exeext.
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3500 $as_echo_n "checking whether the C compiler works... " >&6; }
3501 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3502
3503 # The possible output files:
3504 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3505
3506 ac_rmfiles=
3507 for ac_file in $ac_files
3508 do
3509   case $ac_file in
3510     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3511     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3512   esac
3513 done
3514 rm -f $ac_rmfiles
3515
3516 if { { ac_try="$ac_link_default"
3517 case "(($ac_try" in
3518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519   *) ac_try_echo=$ac_try;;
3520 esac
3521 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3522 $as_echo "$ac_try_echo"; } >&5
3523   (eval "$ac_link_default") 2>&5
3524   ac_status=$?
3525   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3526   test $ac_status = 0; }; then :
3527   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3528 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3529 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3530 # so that the user can short-circuit this test for compilers unknown to
3531 # Autoconf.
3532 for ac_file in $ac_files ''
3533 do
3534   test -f "$ac_file" || continue
3535   case $ac_file in
3536     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3537         ;;
3538     [ab].out )
3539         # We found the default executable, but exeext='' is most
3540         # certainly right.
3541         break;;
3542     *.* )
3543         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3544         then :; else
3545            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3546         fi
3547         # We set ac_cv_exeext here because the later test for it is not
3548         # safe: cross compilers may not add the suffix if given an `-o'
3549         # argument, so we may need to know it at that point already.
3550         # Even if this section looks crufty: it has the advantage of
3551         # actually working.
3552         break;;
3553     * )
3554         break;;
3555   esac
3556 done
3557 test "$ac_cv_exeext" = no && ac_cv_exeext=
3558
3559 else
3560   ac_file=''
3561 fi
3562 if test -z "$ac_file"; then :
3563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3564 $as_echo "no" >&6; }
3565 $as_echo "$as_me: failed program was:" >&5
3566 sed 's/^/| /' conftest.$ac_ext >&5
3567
3568 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3569 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3570 { as_fn_set_status 77
3571 as_fn_error "C compiler cannot create executables
3572 See \`config.log' for more details." "$LINENO" 5; }; }
3573 else
3574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3575 $as_echo "yes" >&6; }
3576 fi
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3578 $as_echo_n "checking for C compiler default output file name... " >&6; }
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3580 $as_echo "$ac_file" >&6; }
3581 ac_exeext=$ac_cv_exeext
3582
3583 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3584 ac_clean_files=$ac_clean_files_save
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3586 $as_echo_n "checking for suffix of executables... " >&6; }
3587 if { { ac_try="$ac_link"
3588 case "(($ac_try" in
3589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3590   *) ac_try_echo=$ac_try;;
3591 esac
3592 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3593 $as_echo "$ac_try_echo"; } >&5
3594   (eval "$ac_link") 2>&5
3595   ac_status=$?
3596   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3597   test $ac_status = 0; }; then :
3598   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3599 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3600 # work properly (i.e., refer to `conftest.exe'), while it won't with
3601 # `rm'.
3602 for ac_file in conftest.exe conftest conftest.*; do
3603   test -f "$ac_file" || continue
3604   case $ac_file in
3605     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3606     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3607           break;;
3608     * ) break;;
3609   esac
3610 done
3611 else
3612   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3613 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3614 as_fn_error "cannot compute suffix of executables: cannot compile and link
3615 See \`config.log' for more details." "$LINENO" 5; }
3616 fi
3617 rm -f conftest conftest$ac_cv_exeext
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3619 $as_echo "$ac_cv_exeext" >&6; }
3620
3621 rm -f conftest.$ac_ext
3622 EXEEXT=$ac_cv_exeext
3623 ac_exeext=$EXEEXT
3624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3625 /* end confdefs.h.  */
3626 #include <stdio.h>
3627 int
3628 main ()
3629 {
3630 FILE *f = fopen ("conftest.out", "w");
3631  return ferror (f) || fclose (f) != 0;
3632
3633   ;
3634   return 0;
3635 }
3636 _ACEOF
3637 ac_clean_files="$ac_clean_files conftest.out"
3638 # Check that the compiler produces executables we can run.  If not, either
3639 # the compiler is broken, or we cross compile.
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3641 $as_echo_n "checking whether we are cross compiling... " >&6; }
3642 if test "$cross_compiling" != yes; then
3643   { { ac_try="$ac_link"
3644 case "(($ac_try" in
3645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3646   *) ac_try_echo=$ac_try;;
3647 esac
3648 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3649 $as_echo "$ac_try_echo"; } >&5
3650   (eval "$ac_link") 2>&5
3651   ac_status=$?
3652   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3653   test $ac_status = 0; }
3654   if { ac_try='./conftest$ac_cv_exeext'
3655   { { case "(($ac_try" in
3656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3657   *) ac_try_echo=$ac_try;;
3658 esac
3659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3660 $as_echo "$ac_try_echo"; } >&5
3661   (eval "$ac_try") 2>&5
3662   ac_status=$?
3663   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3664   test $ac_status = 0; }; }; then
3665     cross_compiling=no
3666   else
3667     if test "$cross_compiling" = maybe; then
3668         cross_compiling=yes
3669     else
3670         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3671 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3672 as_fn_error "cannot run C compiled programs.
3673 If you meant to cross compile, use \`--host'.
3674 See \`config.log' for more details." "$LINENO" 5; }
3675     fi
3676   fi
3677 fi
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3679 $as_echo "$cross_compiling" >&6; }
3680
3681 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3682 ac_clean_files=$ac_clean_files_save
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3684 $as_echo_n "checking for suffix of object files... " >&6; }
3685 if test "${ac_cv_objext+set}" = set; then :
3686   $as_echo_n "(cached) " >&6
3687 else
3688   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3689 /* end confdefs.h.  */
3690
3691 int
3692 main ()
3693 {
3694
3695   ;
3696   return 0;
3697 }
3698 _ACEOF
3699 rm -f conftest.o conftest.obj
3700 if { { ac_try="$ac_compile"
3701 case "(($ac_try" in
3702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3703   *) ac_try_echo=$ac_try;;
3704 esac
3705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3706 $as_echo "$ac_try_echo"; } >&5
3707   (eval "$ac_compile") 2>&5
3708   ac_status=$?
3709   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3710   test $ac_status = 0; }; then :
3711   for ac_file in conftest.o conftest.obj conftest.*; do
3712   test -f "$ac_file" || continue;
3713   case $ac_file in
3714     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3715     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3716        break;;
3717   esac
3718 done
3719 else
3720   $as_echo "$as_me: failed program was:" >&5
3721 sed 's/^/| /' conftest.$ac_ext >&5
3722
3723 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3724 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3725 as_fn_error "cannot compute suffix of object files: cannot compile
3726 See \`config.log' for more details." "$LINENO" 5; }
3727 fi
3728 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3729 fi
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3731 $as_echo "$ac_cv_objext" >&6; }
3732 OBJEXT=$ac_cv_objext
3733 ac_objext=$OBJEXT
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3735 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3736 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3737   $as_echo_n "(cached) " >&6
3738 else
3739   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3740 /* end confdefs.h.  */
3741
3742 int
3743 main ()
3744 {
3745 #ifndef __GNUC__
3746        choke me
3747 #endif
3748
3749   ;
3750   return 0;
3751 }
3752 _ACEOF
3753 if ac_fn_c_try_compile "$LINENO"; then :
3754   ac_compiler_gnu=yes
3755 else
3756   ac_compiler_gnu=no
3757 fi
3758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3759 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3760
3761 fi
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3763 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3764 if test $ac_compiler_gnu = yes; then
3765   GCC=yes
3766 else
3767   GCC=
3768 fi
3769 ac_test_CFLAGS=${CFLAGS+set}
3770 ac_save_CFLAGS=$CFLAGS
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3772 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3773 if test "${ac_cv_prog_cc_g+set}" = set; then :
3774   $as_echo_n "(cached) " >&6
3775 else
3776   ac_save_c_werror_flag=$ac_c_werror_flag
3777    ac_c_werror_flag=yes
3778    ac_cv_prog_cc_g=no
3779    CFLAGS="-g"
3780    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3781 /* end confdefs.h.  */
3782
3783 int
3784 main ()
3785 {
3786
3787   ;
3788   return 0;
3789 }
3790 _ACEOF
3791 if ac_fn_c_try_compile "$LINENO"; then :
3792   ac_cv_prog_cc_g=yes
3793 else
3794   CFLAGS=""
3795       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3796 /* end confdefs.h.  */
3797
3798 int
3799 main ()
3800 {
3801
3802   ;
3803   return 0;
3804 }
3805 _ACEOF
3806 if ac_fn_c_try_compile "$LINENO"; then :
3807
3808 else
3809   ac_c_werror_flag=$ac_save_c_werror_flag
3810          CFLAGS="-g"
3811          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3812 /* end confdefs.h.  */
3813
3814 int
3815 main ()
3816 {
3817
3818   ;
3819   return 0;
3820 }
3821 _ACEOF
3822 if ac_fn_c_try_compile "$LINENO"; then :
3823   ac_cv_prog_cc_g=yes
3824 fi
3825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3826 fi
3827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3828 fi
3829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3830    ac_c_werror_flag=$ac_save_c_werror_flag
3831 fi
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3833 $as_echo "$ac_cv_prog_cc_g" >&6; }
3834 if test "$ac_test_CFLAGS" = set; then
3835   CFLAGS=$ac_save_CFLAGS
3836 elif test $ac_cv_prog_cc_g = yes; then
3837   if test "$GCC" = yes; then
3838     CFLAGS="-g -O2"
3839   else
3840     CFLAGS="-g"
3841   fi
3842 else
3843   if test "$GCC" = yes; then
3844     CFLAGS="-O2"
3845   else
3846     CFLAGS=
3847   fi
3848 fi
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3850 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3851 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3852   $as_echo_n "(cached) " >&6
3853 else
3854   ac_cv_prog_cc_c89=no
3855 ac_save_CC=$CC
3856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3857 /* end confdefs.h.  */
3858 #include <stdarg.h>
3859 #include <stdio.h>
3860 #include <sys/types.h>
3861 #include <sys/stat.h>
3862 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3863 struct buf { int x; };
3864 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3865 static char *e (p, i)
3866      char **p;
3867      int i;
3868 {
3869   return p[i];
3870 }
3871 static char *f (char * (*g) (char **, int), char **p, ...)
3872 {
3873   char *s;
3874   va_list v;
3875   va_start (v,p);
3876   s = g (p, va_arg (v,int));
3877   va_end (v);
3878   return s;
3879 }
3880
3881 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3882    function prototypes and stuff, but not '\xHH' hex character constants.
3883    These don't provoke an error unfortunately, instead are silently treated
3884    as 'x'.  The following induces an error, until -std is added to get
3885    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3886    array size at least.  It's necessary to write '\x00'==0 to get something
3887    that's true only with -std.  */
3888 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3889
3890 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3891    inside strings and character constants.  */
3892 #define FOO(x) 'x'
3893 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3894
3895 int test (int i, double x);
3896 struct s1 {int (*f) (int a);};
3897 struct s2 {int (*f) (double a);};
3898 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3899 int argc;
3900 char **argv;
3901 int
3902 main ()
3903 {
3904 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3905   ;
3906   return 0;
3907 }
3908 _ACEOF
3909 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3910         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3911 do
3912   CC="$ac_save_CC $ac_arg"
3913   if ac_fn_c_try_compile "$LINENO"; then :
3914   ac_cv_prog_cc_c89=$ac_arg
3915 fi
3916 rm -f core conftest.err conftest.$ac_objext
3917   test "x$ac_cv_prog_cc_c89" != "xno" && break
3918 done
3919 rm -f conftest.$ac_ext
3920 CC=$ac_save_CC
3921
3922 fi
3923 # AC_CACHE_VAL
3924 case "x$ac_cv_prog_cc_c89" in
3925   x)
3926     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3927 $as_echo "none needed" >&6; } ;;
3928   xno)
3929     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3930 $as_echo "unsupported" >&6; } ;;
3931   *)
3932     CC="$CC $ac_cv_prog_cc_c89"
3933     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3934 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3935 esac
3936 if test "x$ac_cv_prog_cc_c89" != xno; then :
3937
3938 fi
3939
3940 ac_ext=c
3941 ac_cpp='$CPP $CPPFLAGS'
3942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3945 DEPDIR="${am__leading_dot}deps"
3946
3947 ac_config_commands="$ac_config_commands depfiles"
3948
3949
3950 am_make=${MAKE-make}
3951 cat > confinc << 'END'
3952 am__doit:
3953         @echo this is the am__doit target
3954 .PHONY: am__doit
3955 END
3956 # If we don't find an include directive, just comment out the code.
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3958 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3959 am__include="#"
3960 am__quote=
3961 _am_result=none
3962 # First try GNU make style include.
3963 echo "include confinc" > confmf
3964 # Ignore all kinds of additional output from `make'.
3965 case `$am_make -s -f confmf 2> /dev/null` in #(
3966 *the\ am__doit\ target*)
3967   am__include=include
3968   am__quote=
3969   _am_result=GNU
3970   ;;
3971 esac
3972 # Now try BSD make style include.
3973 if test "$am__include" = "#"; then
3974    echo '.include "confinc"' > confmf
3975    case `$am_make -s -f confmf 2> /dev/null` in #(
3976    *the\ am__doit\ target*)
3977      am__include=.include
3978      am__quote="\""
3979      _am_result=BSD
3980      ;;
3981    esac
3982 fi
3983
3984
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3986 $as_echo "$_am_result" >&6; }
3987 rm -f confinc confmf
3988
3989 # Check whether --enable-dependency-tracking was given.
3990 if test "${enable_dependency_tracking+set}" = set; then :
3991   enableval=$enable_dependency_tracking;
3992 fi
3993
3994 if test "x$enable_dependency_tracking" != xno; then
3995   am_depcomp="$ac_aux_dir/depcomp"
3996   AMDEPBACKSLASH='\'
3997 fi
3998  if test "x$enable_dependency_tracking" != xno; then
3999   AMDEP_TRUE=
4000   AMDEP_FALSE='#'
4001 else
4002   AMDEP_TRUE='#'
4003   AMDEP_FALSE=
4004 fi
4005
4006
4007
4008 depcc="$CC"   am_compiler_list=
4009
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4011 $as_echo_n "checking dependency style of $depcc... " >&6; }
4012 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4013   $as_echo_n "(cached) " >&6
4014 else
4015   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4016   # We make a subdir and do the tests there.  Otherwise we can end up
4017   # making bogus files that we don't know about and never remove.  For
4018   # instance it was reported that on HP-UX the gcc test will end up
4019   # making a dummy file named `D' -- because `-MD' means `put the output
4020   # in D'.
4021   mkdir conftest.dir
4022   # Copy depcomp to subdir because otherwise we won't find it if we're
4023   # using a relative directory.
4024   cp "$am_depcomp" conftest.dir
4025   cd conftest.dir
4026   # We will build objects and dependencies in a subdirectory because
4027   # it helps to detect inapplicable dependency modes.  For instance
4028   # both Tru64's cc and ICC support -MD to output dependencies as a
4029   # side effect of compilation, but ICC will put the dependencies in
4030   # the current directory while Tru64 will put them in the object
4031   # directory.
4032   mkdir sub
4033
4034   am_cv_CC_dependencies_compiler_type=none
4035   if test "$am_compiler_list" = ""; then
4036      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4037   fi
4038   am__universal=false
4039   case " $depcc " in #(
4040      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4041      esac
4042
4043   for depmode in $am_compiler_list; do
4044     # Setup a source with many dependencies, because some compilers
4045     # like to wrap large dependency lists on column 80 (with \), and
4046     # we should not choose a depcomp mode which is confused by this.
4047     #
4048     # We need to recreate these files for each test, as the compiler may
4049     # overwrite some of them when testing with obscure command lines.
4050     # This happens at least with the AIX C compiler.
4051     : > sub/conftest.c
4052     for i in 1 2 3 4 5 6; do
4053       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4054       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4055       # Solaris 8's {/usr,}/bin/sh.
4056       touch sub/conftst$i.h
4057     done
4058     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4059
4060     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4061     # mode.  It turns out that the SunPro C++ compiler does not properly
4062     # handle `-M -o', and we need to detect this.  Also, some Intel
4063     # versions had trouble with output in subdirs
4064     am__obj=sub/conftest.${OBJEXT-o}
4065     am__minus_obj="-o $am__obj"
4066     case $depmode in
4067     gcc)
4068       # This depmode causes a compiler race in universal mode.
4069       test "$am__universal" = false || continue
4070       ;;
4071     nosideeffect)
4072       # after this tag, mechanisms are not by side-effect, so they'll
4073       # only be used when explicitly requested
4074       if test "x$enable_dependency_tracking" = xyes; then
4075         continue
4076       else
4077         break
4078       fi
4079       ;;
4080     msvisualcpp | msvcmsys)
4081       # This compiler won't grok `-c -o', but also, the minuso test has
4082       # not run yet.  These depmodes are late enough in the game, and
4083       # so weak that their functioning should not be impacted.
4084       am__obj=conftest.${OBJEXT-o}
4085       am__minus_obj=
4086       ;;
4087     none) break ;;
4088     esac
4089     if depmode=$depmode \
4090        source=sub/conftest.c object=$am__obj \
4091        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4092        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4093          >/dev/null 2>conftest.err &&
4094        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4095        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4096        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4097        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4098       # icc doesn't choke on unknown options, it will just issue warnings
4099       # or remarks (even with -Werror).  So we grep stderr for any message
4100       # that says an option was ignored or not supported.
4101       # When given -MP, icc 7.0 and 7.1 complain thusly:
4102       #   icc: Command line warning: ignoring option '-M'; no argument required
4103       # The diagnosis changed in icc 8.0:
4104       #   icc: Command line remark: option '-MP' not supported
4105       if (grep 'ignoring option' conftest.err ||
4106           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4107         am_cv_CC_dependencies_compiler_type=$depmode
4108         break
4109       fi
4110     fi
4111   done
4112
4113   cd ..
4114   rm -rf conftest.dir
4115 else
4116   am_cv_CC_dependencies_compiler_type=none
4117 fi
4118
4119 fi
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4121 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4122 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4123
4124  if
4125   test "x$enable_dependency_tracking" != xno \
4126   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4127   am__fastdepCC_TRUE=
4128   am__fastdepCC_FALSE='#'
4129 else
4130   am__fastdepCC_TRUE='#'
4131   am__fastdepCC_FALSE=
4132 fi
4133
4134
4135 ac_ext=cpp
4136 ac_cpp='$CXXCPP $CPPFLAGS'
4137 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4138 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4139 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4140 if test -z "$CXX"; then
4141   if test -n "$CCC"; then
4142     CXX=$CCC
4143   else
4144     if test -n "$ac_tool_prefix"; then
4145   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4146   do
4147     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4148 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4150 $as_echo_n "checking for $ac_word... " >&6; }
4151 if test "${ac_cv_prog_CXX+set}" = set; then :
4152   $as_echo_n "(cached) " >&6
4153 else
4154   if test -n "$CXX"; then
4155   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4156 else
4157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4158 for as_dir in $PATH
4159 do
4160   IFS=$as_save_IFS
4161   test -z "$as_dir" && as_dir=.
4162     for ac_exec_ext in '' $ac_executable_extensions; do
4163   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4164     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4165     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4166     break 2
4167   fi
4168 done
4169   done
4170 IFS=$as_save_IFS
4171
4172 fi
4173 fi
4174 CXX=$ac_cv_prog_CXX
4175 if test -n "$CXX"; then
4176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4177 $as_echo "$CXX" >&6; }
4178 else
4179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4180 $as_echo "no" >&6; }
4181 fi
4182
4183
4184     test -n "$CXX" && break
4185   done
4186 fi
4187 if test -z "$CXX"; then
4188   ac_ct_CXX=$CXX
4189   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4190 do
4191   # Extract the first word of "$ac_prog", so it can be a program name with args.
4192 set dummy $ac_prog; ac_word=$2
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4194 $as_echo_n "checking for $ac_word... " >&6; }
4195 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4196   $as_echo_n "(cached) " >&6
4197 else
4198   if test -n "$ac_ct_CXX"; then
4199   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4200 else
4201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4202 for as_dir in $PATH
4203 do
4204   IFS=$as_save_IFS
4205   test -z "$as_dir" && as_dir=.
4206     for ac_exec_ext in '' $ac_executable_extensions; do
4207   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4208     ac_cv_prog_ac_ct_CXX="$ac_prog"
4209     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4210     break 2
4211   fi
4212 done
4213   done
4214 IFS=$as_save_IFS
4215
4216 fi
4217 fi
4218 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4219 if test -n "$ac_ct_CXX"; then
4220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4221 $as_echo "$ac_ct_CXX" >&6; }
4222 else
4223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4224 $as_echo "no" >&6; }
4225 fi
4226
4227
4228   test -n "$ac_ct_CXX" && break
4229 done
4230
4231   if test "x$ac_ct_CXX" = x; then
4232     CXX="g++"
4233   else
4234     case $cross_compiling:$ac_tool_warned in
4235 yes:)
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4237 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4238 ac_tool_warned=yes ;;
4239 esac
4240     CXX=$ac_ct_CXX
4241   fi
4242 fi
4243
4244   fi
4245 fi
4246 # Provide some information about the compiler.
4247 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4248 set X $ac_compile
4249 ac_compiler=$2
4250 for ac_option in --version -v -V -qversion; do
4251   { { ac_try="$ac_compiler $ac_option >&5"
4252 case "(($ac_try" in
4253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4254   *) ac_try_echo=$ac_try;;
4255 esac
4256 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4257 $as_echo "$ac_try_echo"; } >&5
4258   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4259   ac_status=$?
4260   if test -s conftest.err; then
4261     sed '10a\
4262 ... rest of stderr output deleted ...
4263          10q' conftest.err >conftest.er1
4264     cat conftest.er1 >&5
4265   fi
4266   rm -f conftest.er1 conftest.err
4267   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4268   test $ac_status = 0; }
4269 done
4270
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4272 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4273 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4274   $as_echo_n "(cached) " >&6
4275 else
4276   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4277 /* end confdefs.h.  */
4278
4279 int
4280 main ()
4281 {
4282 #ifndef __GNUC__
4283        choke me
4284 #endif
4285
4286   ;
4287   return 0;
4288 }
4289 _ACEOF
4290 if ac_fn_cxx_try_compile "$LINENO"; then :
4291   ac_compiler_gnu=yes
4292 else
4293   ac_compiler_gnu=no
4294 fi
4295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4296 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4297
4298 fi
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4300 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4301 if test $ac_compiler_gnu = yes; then
4302   GXX=yes
4303 else
4304   GXX=
4305 fi
4306 ac_test_CXXFLAGS=${CXXFLAGS+set}
4307 ac_save_CXXFLAGS=$CXXFLAGS
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4309 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4310 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4311   $as_echo_n "(cached) " >&6
4312 else
4313   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4314    ac_cxx_werror_flag=yes
4315    ac_cv_prog_cxx_g=no
4316    CXXFLAGS="-g"
4317    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4318 /* end confdefs.h.  */
4319
4320 int
4321 main ()
4322 {
4323
4324   ;
4325   return 0;
4326 }
4327 _ACEOF
4328 if ac_fn_cxx_try_compile "$LINENO"; then :
4329   ac_cv_prog_cxx_g=yes
4330 else
4331   CXXFLAGS=""
4332       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4333 /* end confdefs.h.  */
4334
4335 int
4336 main ()
4337 {
4338
4339   ;
4340   return 0;
4341 }
4342 _ACEOF
4343 if ac_fn_cxx_try_compile "$LINENO"; then :
4344
4345 else
4346   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4347          CXXFLAGS="-g"
4348          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4349 /* end confdefs.h.  */
4350
4351 int
4352 main ()
4353 {
4354
4355   ;
4356   return 0;
4357 }
4358 _ACEOF
4359 if ac_fn_cxx_try_compile "$LINENO"; then :
4360   ac_cv_prog_cxx_g=yes
4361 fi
4362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4363 fi
4364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4365 fi
4366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4367    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4368 fi
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4370 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4371 if test "$ac_test_CXXFLAGS" = set; then
4372   CXXFLAGS=$ac_save_CXXFLAGS
4373 elif test $ac_cv_prog_cxx_g = yes; then
4374   if test "$GXX" = yes; then
4375     CXXFLAGS="-g -O2"
4376   else
4377     CXXFLAGS="-g"
4378   fi
4379 else
4380   if test "$GXX" = yes; then
4381     CXXFLAGS="-O2"
4382   else
4383     CXXFLAGS=
4384   fi
4385 fi
4386 ac_ext=c
4387 ac_cpp='$CPP $CPPFLAGS'
4388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4391
4392 depcc="$CXX"  am_compiler_list=
4393
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4395 $as_echo_n "checking dependency style of $depcc... " >&6; }
4396 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4397   $as_echo_n "(cached) " >&6
4398 else
4399   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4400   # We make a subdir and do the tests there.  Otherwise we can end up
4401   # making bogus files that we don't know about and never remove.  For
4402   # instance it was reported that on HP-UX the gcc test will end up
4403   # making a dummy file named `D' -- because `-MD' means `put the output
4404   # in D'.
4405   mkdir conftest.dir
4406   # Copy depcomp to subdir because otherwise we won't find it if we're
4407   # using a relative directory.
4408   cp "$am_depcomp" conftest.dir
4409   cd conftest.dir
4410   # We will build objects and dependencies in a subdirectory because
4411   # it helps to detect inapplicable dependency modes.  For instance
4412   # both Tru64's cc and ICC support -MD to output dependencies as a
4413   # side effect of compilation, but ICC will put the dependencies in
4414   # the current directory while Tru64 will put them in the object
4415   # directory.
4416   mkdir sub
4417
4418   am_cv_CXX_dependencies_compiler_type=none
4419   if test "$am_compiler_list" = ""; then
4420      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4421   fi
4422   am__universal=false
4423   case " $depcc " in #(
4424      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4425      esac
4426
4427   for depmode in $am_compiler_list; do
4428     # Setup a source with many dependencies, because some compilers
4429     # like to wrap large dependency lists on column 80 (with \), and
4430     # we should not choose a depcomp mode which is confused by this.
4431     #
4432     # We need to recreate these files for each test, as the compiler may
4433     # overwrite some of them when testing with obscure command lines.
4434     # This happens at least with the AIX C compiler.
4435     : > sub/conftest.c
4436     for i in 1 2 3 4 5 6; do
4437       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4438       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4439       # Solaris 8's {/usr,}/bin/sh.
4440       touch sub/conftst$i.h
4441     done
4442     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4443
4444     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4445     # mode.  It turns out that the SunPro C++ compiler does not properly
4446     # handle `-M -o', and we need to detect this.  Also, some Intel
4447     # versions had trouble with output in subdirs
4448     am__obj=sub/conftest.${OBJEXT-o}
4449     am__minus_obj="-o $am__obj"
4450     case $depmode in
4451     gcc)
4452       # This depmode causes a compiler race in universal mode.
4453       test "$am__universal" = false || continue
4454       ;;
4455     nosideeffect)
4456       # after this tag, mechanisms are not by side-effect, so they'll
4457       # only be used when explicitly requested
4458       if test "x$enable_dependency_tracking" = xyes; then
4459         continue
4460       else
4461         break
4462       fi
4463       ;;
4464     msvisualcpp | msvcmsys)
4465       # This compiler won't grok `-c -o', but also, the minuso test has
4466       # not run yet.  These depmodes are late enough in the game, and
4467       # so weak that their functioning should not be impacted.
4468       am__obj=conftest.${OBJEXT-o}
4469       am__minus_obj=
4470       ;;
4471     none) break ;;
4472     esac
4473     if depmode=$depmode \
4474        source=sub/conftest.c object=$am__obj \
4475        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4476        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4477          >/dev/null 2>conftest.err &&
4478        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4479        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4480        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4481        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4482       # icc doesn't choke on unknown options, it will just issue warnings
4483       # or remarks (even with -Werror).  So we grep stderr for any message
4484       # that says an option was ignored or not supported.
4485       # When given -MP, icc 7.0 and 7.1 complain thusly:
4486       #   icc: Command line warning: ignoring option '-M'; no argument required
4487       # The diagnosis changed in icc 8.0:
4488       #   icc: Command line remark: option '-MP' not supported
4489       if (grep 'ignoring option' conftest.err ||
4490           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4491         am_cv_CXX_dependencies_compiler_type=$depmode
4492         break
4493       fi
4494     fi
4495   done
4496
4497   cd ..
4498   rm -rf conftest.dir
4499 else
4500   am_cv_CXX_dependencies_compiler_type=none
4501 fi
4502
4503 fi
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4505 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4506 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4507
4508  if
4509   test "x$enable_dependency_tracking" != xno \
4510   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4511   am__fastdepCXX_TRUE=
4512   am__fastdepCXX_FALSE='#'
4513 else
4514   am__fastdepCXX_TRUE='#'
4515   am__fastdepCXX_FALSE=
4516 fi
4517
4518
4519
4520 if test "x$remember_set_CFLAGS" = "x"
4521 then
4522   if test "$CFLAGS" = "-g -O2"
4523   then
4524     CFLAGS="-O2"
4525   elif test "$CFLAGS" = "-g"
4526   then
4527     CFLAGS=""
4528   fi
4529 fi
4530
4531 if test "x$remember_set_CXXFLAGS" = "x"
4532 then
4533   if test "$CXXFLAGS" = "-g -O2"
4534   then
4535     CXXFLAGS="-O2"
4536   elif test "$CXXFLAGS" = "-g"
4537   then
4538     CXXFLAGS=""
4539   fi
4540 fi
4541
4542 # AC_PROG_CXX will return "g++" even if no c++ compiler is installed.
4543 # Check for that case, and just disable c++ code if g++ doesn't run.
4544 ac_ext=cpp
4545 ac_cpp='$CXXCPP $CPPFLAGS'
4546 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4547 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4548 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4549
4550
4551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4552 /* end confdefs.h.  */
4553
4554 int
4555 main ()
4556 {
4557
4558   ;
4559   return 0;
4560 }
4561 _ACEOF
4562 if ac_fn_cxx_try_compile "$LINENO"; then :
4563
4564 else
4565   CXX=""; CXXCP=""; CXXFLAGS=""
4566 fi
4567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4568 ac_ext=c
4569 ac_cpp='$CPP $CPPFLAGS'
4570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4573
4574
4575 # Check for a 64-bit integer type
4576
4577 ac_ext=c
4578 ac_cpp='$CPP $CPPFLAGS'
4579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4583 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4584 # On Suns, sometimes $CPP names a directory.
4585 if test -n "$CPP" && test -d "$CPP"; then
4586   CPP=
4587 fi
4588 if test -z "$CPP"; then
4589   if test "${ac_cv_prog_CPP+set}" = set; then :
4590   $as_echo_n "(cached) " >&6
4591 else
4592       # Double quotes because CPP needs to be expanded
4593     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4594     do
4595       ac_preproc_ok=false
4596 for ac_c_preproc_warn_flag in '' yes
4597 do
4598   # Use a header file that comes with gcc, so configuring glibc
4599   # with a fresh cross-compiler works.
4600   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4601   # <limits.h> exists even on freestanding compilers.
4602   # On the NeXT, cc -E runs the code through the compiler's parser,
4603   # not just through cpp. "Syntax error" is here to catch this case.
4604   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4605 /* end confdefs.h.  */
4606 #ifdef __STDC__
4607 # include <limits.h>
4608 #else
4609 # include <assert.h>
4610 #endif
4611                      Syntax error
4612 _ACEOF
4613 if ac_fn_c_try_cpp "$LINENO"; then :
4614
4615 else
4616   # Broken: fails on valid input.
4617 continue
4618 fi
4619 rm -f conftest.err conftest.$ac_ext
4620
4621   # OK, works on sane cases.  Now check whether nonexistent headers
4622   # can be detected and how.
4623   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4624 /* end confdefs.h.  */
4625 #include <ac_nonexistent.h>
4626 _ACEOF
4627 if ac_fn_c_try_cpp "$LINENO"; then :
4628   # Broken: success on invalid input.
4629 continue
4630 else
4631   # Passes both tests.
4632 ac_preproc_ok=:
4633 break
4634 fi
4635 rm -f conftest.err conftest.$ac_ext
4636
4637 done
4638 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4639 rm -f conftest.err conftest.$ac_ext
4640 if $ac_preproc_ok; then :
4641   break
4642 fi
4643
4644     done
4645     ac_cv_prog_CPP=$CPP
4646
4647 fi
4648   CPP=$ac_cv_prog_CPP
4649 else
4650   ac_cv_prog_CPP=$CPP
4651 fi
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4653 $as_echo "$CPP" >&6; }
4654 ac_preproc_ok=false
4655 for ac_c_preproc_warn_flag in '' yes
4656 do
4657   # Use a header file that comes with gcc, so configuring glibc
4658   # with a fresh cross-compiler works.
4659   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4660   # <limits.h> exists even on freestanding compilers.
4661   # On the NeXT, cc -E runs the code through the compiler's parser,
4662   # not just through cpp. "Syntax error" is here to catch this case.
4663   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4664 /* end confdefs.h.  */
4665 #ifdef __STDC__
4666 # include <limits.h>
4667 #else
4668 # include <assert.h>
4669 #endif
4670                      Syntax error
4671 _ACEOF
4672 if ac_fn_c_try_cpp "$LINENO"; then :
4673
4674 else
4675   # Broken: fails on valid input.
4676 continue
4677 fi
4678 rm -f conftest.err conftest.$ac_ext
4679
4680   # OK, works on sane cases.  Now check whether nonexistent headers
4681   # can be detected and how.
4682   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4683 /* end confdefs.h.  */
4684 #include <ac_nonexistent.h>
4685 _ACEOF
4686 if ac_fn_c_try_cpp "$LINENO"; then :
4687   # Broken: success on invalid input.
4688 continue
4689 else
4690   # Passes both tests.
4691 ac_preproc_ok=:
4692 break
4693 fi
4694 rm -f conftest.err conftest.$ac_ext
4695
4696 done
4697 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4698 rm -f conftest.err conftest.$ac_ext
4699 if $ac_preproc_ok; then :
4700
4701 else
4702   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4703 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4704 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4705 See \`config.log' for more details." "$LINENO" 5; }
4706 fi
4707
4708 ac_ext=c
4709 ac_cpp='$CPP $CPPFLAGS'
4710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4713
4714
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4716 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4717 if test "${ac_cv_path_GREP+set}" = set; then :
4718   $as_echo_n "(cached) " >&6
4719 else
4720   if test -z "$GREP"; then
4721   ac_path_GREP_found=false
4722   # Loop through the user's path and test for each of PROGNAME-LIST
4723   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4724 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4725 do
4726   IFS=$as_save_IFS
4727   test -z "$as_dir" && as_dir=.
4728     for ac_prog in grep ggrep; do
4729     for ac_exec_ext in '' $ac_executable_extensions; do
4730       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4731       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4732 # Check for GNU ac_path_GREP and select it if it is found.
4733   # Check for GNU $ac_path_GREP
4734 case `"$ac_path_GREP" --version 2>&1` in
4735 *GNU*)
4736   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4737 *)
4738   ac_count=0
4739   $as_echo_n 0123456789 >"conftest.in"
4740   while :
4741   do
4742     cat "conftest.in" "conftest.in" >"conftest.tmp"
4743     mv "conftest.tmp" "conftest.in"
4744     cp "conftest.in" "conftest.nl"
4745     $as_echo 'GREP' >> "conftest.nl"
4746     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4747     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4748     as_fn_arith $ac_count + 1 && ac_count=$as_val
4749     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4750       # Best one so far, save it but keep looking for a better one
4751       ac_cv_path_GREP="$ac_path_GREP"
4752       ac_path_GREP_max=$ac_count
4753     fi
4754     # 10*(2^10) chars as input seems more than enough
4755     test $ac_count -gt 10 && break
4756   done
4757   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4758 esac
4759
4760       $ac_path_GREP_found && break 3
4761     done
4762   done
4763   done
4764 IFS=$as_save_IFS
4765   if test -z "$ac_cv_path_GREP"; then
4766     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4767   fi
4768 else
4769   ac_cv_path_GREP=$GREP
4770 fi
4771
4772 fi
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4774 $as_echo "$ac_cv_path_GREP" >&6; }
4775  GREP="$ac_cv_path_GREP"
4776
4777
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4779 $as_echo_n "checking for egrep... " >&6; }
4780 if test "${ac_cv_path_EGREP+set}" = set; then :
4781   $as_echo_n "(cached) " >&6
4782 else
4783   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4784    then ac_cv_path_EGREP="$GREP -E"
4785    else
4786      if test -z "$EGREP"; then
4787   ac_path_EGREP_found=false
4788   # Loop through the user's path and test for each of PROGNAME-LIST
4789   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4791 do
4792   IFS=$as_save_IFS
4793   test -z "$as_dir" && as_dir=.
4794     for ac_prog in egrep; do
4795     for ac_exec_ext in '' $ac_executable_extensions; do
4796       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4797       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4798 # Check for GNU ac_path_EGREP and select it if it is found.
4799   # Check for GNU $ac_path_EGREP
4800 case `"$ac_path_EGREP" --version 2>&1` in
4801 *GNU*)
4802   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4803 *)
4804   ac_count=0
4805   $as_echo_n 0123456789 >"conftest.in"
4806   while :
4807   do
4808     cat "conftest.in" "conftest.in" >"conftest.tmp"
4809     mv "conftest.tmp" "conftest.in"
4810     cp "conftest.in" "conftest.nl"
4811     $as_echo 'EGREP' >> "conftest.nl"
4812     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4813     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4814     as_fn_arith $ac_count + 1 && ac_count=$as_val
4815     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4816       # Best one so far, save it but keep looking for a better one
4817       ac_cv_path_EGREP="$ac_path_EGREP"
4818       ac_path_EGREP_max=$ac_count
4819     fi
4820     # 10*(2^10) chars as input seems more than enough
4821     test $ac_count -gt 10 && break
4822   done
4823   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4824 esac
4825
4826       $ac_path_EGREP_found && break 3
4827     done
4828   done
4829   done
4830 IFS=$as_save_IFS
4831   if test -z "$ac_cv_path_EGREP"; then
4832     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4833   fi
4834 else
4835   ac_cv_path_EGREP=$EGREP
4836 fi
4837
4838    fi
4839 fi
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4841 $as_echo "$ac_cv_path_EGREP" >&6; }
4842  EGREP="$ac_cv_path_EGREP"
4843
4844
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4846 $as_echo_n "checking for ANSI C header files... " >&6; }
4847 if test "${ac_cv_header_stdc+set}" = set; then :
4848   $as_echo_n "(cached) " >&6
4849 else
4850   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4851 /* end confdefs.h.  */
4852 #include <stdlib.h>
4853 #include <stdarg.h>
4854 #include <string.h>
4855 #include <float.h>
4856
4857 int
4858 main ()
4859 {
4860
4861   ;
4862   return 0;
4863 }
4864 _ACEOF
4865 if ac_fn_c_try_compile "$LINENO"; then :
4866   ac_cv_header_stdc=yes
4867 else
4868   ac_cv_header_stdc=no
4869 fi
4870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4871
4872 if test $ac_cv_header_stdc = yes; then
4873   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4874   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4875 /* end confdefs.h.  */
4876 #include <string.h>
4877
4878 _ACEOF
4879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4880   $EGREP "memchr" >/dev/null 2>&1; then :
4881
4882 else
4883   ac_cv_header_stdc=no
4884 fi
4885 rm -f conftest*
4886
4887 fi
4888
4889 if test $ac_cv_header_stdc = yes; then
4890   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4891   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4892 /* end confdefs.h.  */
4893 #include <stdlib.h>
4894
4895 _ACEOF
4896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4897   $EGREP "free" >/dev/null 2>&1; then :
4898
4899 else
4900   ac_cv_header_stdc=no
4901 fi
4902 rm -f conftest*
4903
4904 fi
4905
4906 if test $ac_cv_header_stdc = yes; then
4907   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4908   if test "$cross_compiling" = yes; then :
4909   :
4910 else
4911   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4912 /* end confdefs.h.  */
4913 #include <ctype.h>
4914 #include <stdlib.h>
4915 #if ((' ' & 0x0FF) == 0x020)
4916 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4917 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4918 #else
4919 # define ISLOWER(c) \
4920                    (('a' <= (c) && (c) <= 'i') \
4921                      || ('j' <= (c) && (c) <= 'r') \
4922                      || ('s' <= (c) && (c) <= 'z'))
4923 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4924 #endif
4925
4926 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4927 int
4928 main ()
4929 {
4930   int i;
4931   for (i = 0; i < 256; i++)
4932     if (XOR (islower (i), ISLOWER (i))
4933         || toupper (i) != TOUPPER (i))
4934       return 2;
4935   return 0;
4936 }
4937 _ACEOF
4938 if ac_fn_c_try_run "$LINENO"; then :
4939
4940 else
4941   ac_cv_header_stdc=no
4942 fi
4943 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4944   conftest.$ac_objext conftest.beam conftest.$ac_ext
4945 fi
4946
4947 fi
4948 fi
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4950 $as_echo "$ac_cv_header_stdc" >&6; }
4951 if test $ac_cv_header_stdc = yes; then
4952
4953 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4954
4955 fi
4956
4957 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4958 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4959                   inttypes.h stdint.h unistd.h
4960 do :
4961   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4962 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4963 "
4964 eval as_val=\$$as_ac_Header
4965    if test "x$as_val" = x""yes; then :
4966   cat >>confdefs.h <<_ACEOF
4967 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4968 _ACEOF
4969
4970 fi
4971
4972 done
4973
4974
4975 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
4976 case $ac_cv_c_int64_t in #(
4977   no|yes) ;; #(
4978   *)
4979
4980 cat >>confdefs.h <<_ACEOF
4981 #define int64_t $ac_cv_c_int64_t
4982 _ACEOF
4983 ;;
4984 esac
4985
4986
4987
4988 # Make sure we can run config.sub.
4989 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4990   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4991
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4993 $as_echo_n "checking build system type... " >&6; }
4994 if test "${ac_cv_build+set}" = set; then :
4995   $as_echo_n "(cached) " >&6
4996 else
4997   ac_build_alias=$build_alias
4998 test "x$ac_build_alias" = x &&
4999   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5000 test "x$ac_build_alias" = x &&
5001   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
5002 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5003   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5004
5005 fi
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5007 $as_echo "$ac_cv_build" >&6; }
5008 case $ac_cv_build in
5009 *-*-*) ;;
5010 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
5011 esac
5012 build=$ac_cv_build
5013 ac_save_IFS=$IFS; IFS='-'
5014 set x $ac_cv_build
5015 shift
5016 build_cpu=$1
5017 build_vendor=$2
5018 shift; shift
5019 # Remember, the first character of IFS is used to create $*,
5020 # except with old shells:
5021 build_os=$*
5022 IFS=$ac_save_IFS
5023 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5024
5025
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5027 $as_echo_n "checking host system type... " >&6; }
5028 if test "${ac_cv_host+set}" = set; then :
5029   $as_echo_n "(cached) " >&6
5030 else
5031   if test "x$host_alias" = x; then
5032   ac_cv_host=$ac_cv_build
5033 else
5034   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5035     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5036 fi
5037
5038 fi
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5040 $as_echo "$ac_cv_host" >&6; }
5041 case $ac_cv_host in
5042 *-*-*) ;;
5043 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
5044 esac
5045 host=$ac_cv_host
5046 ac_save_IFS=$IFS; IFS='-'
5047 set x $ac_cv_host
5048 shift
5049 host_cpu=$1
5050 host_vendor=$2
5051 shift; shift
5052 # Remember, the first character of IFS is used to create $*,
5053 # except with old shells:
5054 host_os=$*
5055 IFS=$ac_save_IFS
5056 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5057
5058
5059 enable_win32_dll=yes
5060
5061 case $host in
5062 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
5063   if test -n "$ac_tool_prefix"; then
5064   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5065 set dummy ${ac_tool_prefix}as; ac_word=$2
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5067 $as_echo_n "checking for $ac_word... " >&6; }
5068 if test "${ac_cv_prog_AS+set}" = set; then :
5069   $as_echo_n "(cached) " >&6
5070 else
5071   if test -n "$AS"; then
5072   ac_cv_prog_AS="$AS" # Let the user override the test.
5073 else
5074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075 for as_dir in $PATH
5076 do
5077   IFS=$as_save_IFS
5078   test -z "$as_dir" && as_dir=.
5079     for ac_exec_ext in '' $ac_executable_extensions; do
5080   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5081     ac_cv_prog_AS="${ac_tool_prefix}as"
5082     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5083     break 2
5084   fi
5085 done
5086   done
5087 IFS=$as_save_IFS
5088
5089 fi
5090 fi
5091 AS=$ac_cv_prog_AS
5092 if test -n "$AS"; then
5093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5094 $as_echo "$AS" >&6; }
5095 else
5096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5097 $as_echo "no" >&6; }
5098 fi
5099
5100
5101 fi
5102 if test -z "$ac_cv_prog_AS"; then
5103   ac_ct_AS=$AS
5104   # Extract the first word of "as", so it can be a program name with args.
5105 set dummy as; ac_word=$2
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5107 $as_echo_n "checking for $ac_word... " >&6; }
5108 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5109   $as_echo_n "(cached) " >&6
5110 else
5111   if test -n "$ac_ct_AS"; then
5112   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5113 else
5114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5115 for as_dir in $PATH
5116 do
5117   IFS=$as_save_IFS
5118   test -z "$as_dir" && as_dir=.
5119     for ac_exec_ext in '' $ac_executable_extensions; do
5120   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5121     ac_cv_prog_ac_ct_AS="as"
5122     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5123     break 2
5124   fi
5125 done
5126   done
5127 IFS=$as_save_IFS
5128
5129 fi
5130 fi
5131 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5132 if test -n "$ac_ct_AS"; then
5133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5134 $as_echo "$ac_ct_AS" >&6; }
5135 else
5136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5137 $as_echo "no" >&6; }
5138 fi
5139
5140   if test "x$ac_ct_AS" = x; then
5141     AS="false"
5142   else
5143     case $cross_compiling:$ac_tool_warned in
5144 yes:)
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5146 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5147 ac_tool_warned=yes ;;
5148 esac
5149     AS=$ac_ct_AS
5150   fi
5151 else
5152   AS="$ac_cv_prog_AS"
5153 fi
5154
5155   if test -n "$ac_tool_prefix"; then
5156   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5157 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5159 $as_echo_n "checking for $ac_word... " >&6; }
5160 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
5161   $as_echo_n "(cached) " >&6
5162 else
5163   if test -n "$DLLTOOL"; then
5164   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5165 else
5166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5167 for as_dir in $PATH
5168 do
5169   IFS=$as_save_IFS
5170   test -z "$as_dir" && as_dir=.
5171     for ac_exec_ext in '' $ac_executable_extensions; do
5172   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5173     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5174     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5175     break 2
5176   fi
5177 done
5178   done
5179 IFS=$as_save_IFS
5180
5181 fi
5182 fi
5183 DLLTOOL=$ac_cv_prog_DLLTOOL
5184 if test -n "$DLLTOOL"; then
5185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5186 $as_echo "$DLLTOOL" >&6; }
5187 else
5188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5189 $as_echo "no" >&6; }
5190 fi
5191
5192
5193 fi
5194 if test -z "$ac_cv_prog_DLLTOOL"; then
5195   ac_ct_DLLTOOL=$DLLTOOL
5196   # Extract the first word of "dlltool", so it can be a program name with args.
5197 set dummy dlltool; ac_word=$2
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5199 $as_echo_n "checking for $ac_word... " >&6; }
5200 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
5201   $as_echo_n "(cached) " >&6
5202 else
5203   if test -n "$ac_ct_DLLTOOL"; then
5204   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5205 else
5206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5207 for as_dir in $PATH
5208 do
5209   IFS=$as_save_IFS
5210   test -z "$as_dir" && as_dir=.
5211     for ac_exec_ext in '' $ac_executable_extensions; do
5212   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5213     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5214     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5215     break 2
5216   fi
5217 done
5218   done
5219 IFS=$as_save_IFS
5220
5221 fi
5222 fi
5223 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5224 if test -n "$ac_ct_DLLTOOL"; then
5225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5226 $as_echo "$ac_ct_DLLTOOL" >&6; }
5227 else
5228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5229 $as_echo "no" >&6; }
5230 fi
5231
5232   if test "x$ac_ct_DLLTOOL" = x; then
5233     DLLTOOL="false"
5234   else
5235     case $cross_compiling:$ac_tool_warned in
5236 yes:)
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5238 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5239 ac_tool_warned=yes ;;
5240 esac
5241     DLLTOOL=$ac_ct_DLLTOOL
5242   fi
5243 else
5244   DLLTOOL="$ac_cv_prog_DLLTOOL"
5245 fi
5246
5247   if test -n "$ac_tool_prefix"; then
5248   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5249 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5251 $as_echo_n "checking for $ac_word... " >&6; }
5252 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5253   $as_echo_n "(cached) " >&6
5254 else
5255   if test -n "$OBJDUMP"; then
5256   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5257 else
5258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5259 for as_dir in $PATH
5260 do
5261   IFS=$as_save_IFS
5262   test -z "$as_dir" && as_dir=.
5263     for ac_exec_ext in '' $ac_executable_extensions; do
5264   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5265     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5266     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5267     break 2
5268   fi
5269 done
5270   done
5271 IFS=$as_save_IFS
5272
5273 fi
5274 fi
5275 OBJDUMP=$ac_cv_prog_OBJDUMP
5276 if test -n "$OBJDUMP"; then
5277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5278 $as_echo "$OBJDUMP" >&6; }
5279 else
5280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5281 $as_echo "no" >&6; }
5282 fi
5283
5284
5285 fi
5286 if test -z "$ac_cv_prog_OBJDUMP"; then
5287   ac_ct_OBJDUMP=$OBJDUMP
5288   # Extract the first word of "objdump", so it can be a program name with args.
5289 set dummy objdump; ac_word=$2
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5291 $as_echo_n "checking for $ac_word... " >&6; }
5292 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5293   $as_echo_n "(cached) " >&6
5294 else
5295   if test -n "$ac_ct_OBJDUMP"; then
5296   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5297 else
5298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5299 for as_dir in $PATH
5300 do
5301   IFS=$as_save_IFS
5302   test -z "$as_dir" && as_dir=.
5303     for ac_exec_ext in '' $ac_executable_extensions; do
5304   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5305     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5306     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5307     break 2
5308   fi
5309 done
5310   done
5311 IFS=$as_save_IFS
5312
5313 fi
5314 fi
5315 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5316 if test -n "$ac_ct_OBJDUMP"; then
5317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5318 $as_echo "$ac_ct_OBJDUMP" >&6; }
5319 else
5320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5321 $as_echo "no" >&6; }
5322 fi
5323
5324   if test "x$ac_ct_OBJDUMP" = x; then
5325     OBJDUMP="false"
5326   else
5327     case $cross_compiling:$ac_tool_warned in
5328 yes:)
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5330 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5331 ac_tool_warned=yes ;;
5332 esac
5333     OBJDUMP=$ac_ct_OBJDUMP
5334   fi
5335 else
5336   OBJDUMP="$ac_cv_prog_OBJDUMP"
5337 fi
5338
5339   ;;
5340 esac
5341
5342 test -z "$AS" && AS=as
5343
5344
5345
5346
5347
5348 test -z "$DLLTOOL" && DLLTOOL=dlltool
5349
5350
5351
5352
5353
5354 test -z "$OBJDUMP" && OBJDUMP=objdump
5355
5356
5357
5358
5359
5360
5361
5362 case `pwd` in
5363   *\ * | *\     *)
5364     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5365 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5366 esac
5367
5368
5369
5370 macro_version='2.2.10'
5371 macro_revision='1.3175'
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385 ltmain="$ac_aux_dir/ltmain.sh"
5386
5387 # Backslashify metacharacters that are still active within
5388 # double-quoted strings.
5389 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5390
5391 # Same as above, but do not quote variable references.
5392 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5393
5394 # Sed substitution to delay expansion of an escaped shell variable in a
5395 # double_quote_subst'ed string.
5396 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5397
5398 # Sed substitution to delay expansion of an escaped single quote.
5399 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5400
5401 # Sed substitution to avoid accidental globbing in evaled expressions
5402 no_glob_subst='s/\*/\\\*/g'
5403
5404 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5405 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5406 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5407
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5409 $as_echo_n "checking how to print strings... " >&6; }
5410 # Test print first, because it will be a builtin if present.
5411 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5412    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5413   ECHO='print -r --'
5414 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5415   ECHO='printf %s\n'
5416 else
5417   # Use this function as a fallback that always works.
5418   func_fallback_echo ()
5419   {
5420     eval 'cat <<_LTECHO_EOF
5421 $1
5422 _LTECHO_EOF'
5423   }
5424   ECHO='func_fallback_echo'
5425 fi
5426
5427 # func_echo_all arg...
5428 # Invoke $ECHO with all args, space-separated.
5429 func_echo_all ()
5430 {
5431     $ECHO ""
5432 }
5433
5434 case "$ECHO" in
5435   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5436 $as_echo "printf" >&6; } ;;
5437   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5438 $as_echo "print -r" >&6; } ;;
5439   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5440 $as_echo "cat" >&6; } ;;
5441 esac
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5457 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5458 if test "${ac_cv_path_SED+set}" = set; then :
5459   $as_echo_n "(cached) " >&6
5460 else
5461             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5462      for ac_i in 1 2 3 4 5 6 7; do
5463        ac_script="$ac_script$as_nl$ac_script"
5464      done
5465      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5466      { ac_script=; unset ac_script;}
5467      if test -z "$SED"; then
5468   ac_path_SED_found=false
5469   # Loop through the user's path and test for each of PROGNAME-LIST
5470   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5471 for as_dir in $PATH
5472 do
5473   IFS=$as_save_IFS
5474   test -z "$as_dir" && as_dir=.
5475     for ac_prog in sed gsed; do
5476     for ac_exec_ext in '' $ac_executable_extensions; do
5477       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5478       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5479 # Check for GNU ac_path_SED and select it if it is found.
5480   # Check for GNU $ac_path_SED
5481 case `"$ac_path_SED" --version 2>&1` in
5482 *GNU*)
5483   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5484 *)
5485   ac_count=0
5486   $as_echo_n 0123456789 >"conftest.in"
5487   while :
5488   do
5489     cat "conftest.in" "conftest.in" >"conftest.tmp"
5490     mv "conftest.tmp" "conftest.in"
5491     cp "conftest.in" "conftest.nl"
5492     $as_echo '' >> "conftest.nl"
5493     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5494     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5495     as_fn_arith $ac_count + 1 && ac_count=$as_val
5496     if test $ac_count -gt ${ac_path_SED_max-0}; then
5497       # Best one so far, save it but keep looking for a better one
5498       ac_cv_path_SED="$ac_path_SED"
5499       ac_path_SED_max=$ac_count
5500     fi
5501     # 10*(2^10) chars as input seems more than enough
5502     test $ac_count -gt 10 && break
5503   done
5504   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5505 esac
5506
5507       $ac_path_SED_found && break 3
5508     done
5509   done
5510   done
5511 IFS=$as_save_IFS
5512   if test -z "$ac_cv_path_SED"; then
5513     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5514   fi
5515 else
5516   ac_cv_path_SED=$SED
5517 fi
5518
5519 fi
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5521 $as_echo "$ac_cv_path_SED" >&6; }
5522  SED="$ac_cv_path_SED"
5523   rm -f conftest.sed
5524
5525 test -z "$SED" && SED=sed
5526 Xsed="$SED -e 1s/^X//"
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5539 $as_echo_n "checking for fgrep... " >&6; }
5540 if test "${ac_cv_path_FGREP+set}" = set; then :
5541   $as_echo_n "(cached) " >&6
5542 else
5543   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5544    then ac_cv_path_FGREP="$GREP -F"
5545    else
5546      if test -z "$FGREP"; then
5547   ac_path_FGREP_found=false
5548   # Loop through the user's path and test for each of PROGNAME-LIST
5549   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5550 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5551 do
5552   IFS=$as_save_IFS
5553   test -z "$as_dir" && as_dir=.
5554     for ac_prog in fgrep; do
5555     for ac_exec_ext in '' $ac_executable_extensions; do
5556       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5557       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5558 # Check for GNU ac_path_FGREP and select it if it is found.
5559   # Check for GNU $ac_path_FGREP
5560 case `"$ac_path_FGREP" --version 2>&1` in
5561 *GNU*)
5562   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5563 *)
5564   ac_count=0
5565   $as_echo_n 0123456789 >"conftest.in"
5566   while :
5567   do
5568     cat "conftest.in" "conftest.in" >"conftest.tmp"
5569     mv "conftest.tmp" "conftest.in"
5570     cp "conftest.in" "conftest.nl"
5571     $as_echo 'FGREP' >> "conftest.nl"
5572     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5573     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5574     as_fn_arith $ac_count + 1 && ac_count=$as_val
5575     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5576       # Best one so far, save it but keep looking for a better one
5577       ac_cv_path_FGREP="$ac_path_FGREP"
5578       ac_path_FGREP_max=$ac_count
5579     fi
5580     # 10*(2^10) chars as input seems more than enough
5581     test $ac_count -gt 10 && break
5582   done
5583   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5584 esac
5585
5586       $ac_path_FGREP_found && break 3
5587     done
5588   done
5589   done
5590 IFS=$as_save_IFS
5591   if test -z "$ac_cv_path_FGREP"; then
5592     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5593   fi
5594 else
5595   ac_cv_path_FGREP=$FGREP
5596 fi
5597
5598    fi
5599 fi
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5601 $as_echo "$ac_cv_path_FGREP" >&6; }
5602  FGREP="$ac_cv_path_FGREP"
5603
5604
5605 test -z "$GREP" && GREP=grep
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625 # Check whether --with-gnu-ld was given.
5626 if test "${with_gnu_ld+set}" = set; then :
5627   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5628 else
5629   with_gnu_ld=no
5630 fi
5631
5632 ac_prog=ld
5633 if test "$GCC" = yes; then
5634   # Check if gcc -print-prog-name=ld gives a path.
5635   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5636 $as_echo_n "checking for ld used by $CC... " >&6; }
5637   case $host in
5638   *-*-mingw*)
5639     # gcc leaves a trailing carriage return which upsets mingw
5640     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5641   *)
5642     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5643   esac
5644   case $ac_prog in
5645     # Accept absolute paths.
5646     [\\/]* | ?:[\\/]*)
5647       re_direlt='/[^/][^/]*/\.\./'
5648       # Canonicalize the pathname of ld
5649       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5650       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5651         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5652       done
5653       test -z "$LD" && LD="$ac_prog"
5654       ;;
5655   "")
5656     # If it fails, then pretend we aren't using GCC.
5657     ac_prog=ld
5658     ;;
5659   *)
5660     # If it is relative, then search for the first ld in PATH.
5661     with_gnu_ld=unknown
5662     ;;
5663   esac
5664 elif test "$with_gnu_ld" = yes; then
5665   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5666 $as_echo_n "checking for GNU ld... " >&6; }
5667 else
5668   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5669 $as_echo_n "checking for non-GNU ld... " >&6; }
5670 fi
5671 if test "${lt_cv_path_LD+set}" = set; then :
5672   $as_echo_n "(cached) " >&6
5673 else
5674   if test -z "$LD"; then
5675   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5676   for ac_dir in $PATH; do
5677     IFS="$lt_save_ifs"
5678     test -z "$ac_dir" && ac_dir=.
5679     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5680       lt_cv_path_LD="$ac_dir/$ac_prog"
5681       # Check to see if the program is GNU ld.  I'd rather use --version,
5682       # but apparently some variants of GNU ld only accept -v.
5683       # Break only if it was the GNU/non-GNU ld that we prefer.
5684       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5685       *GNU* | *'with BFD'*)
5686         test "$with_gnu_ld" != no && break
5687         ;;
5688       *)
5689         test "$with_gnu_ld" != yes && break
5690         ;;
5691       esac
5692     fi
5693   done
5694   IFS="$lt_save_ifs"
5695 else
5696   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5697 fi
5698 fi
5699
5700 LD="$lt_cv_path_LD"
5701 if test -n "$LD"; then
5702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5703 $as_echo "$LD" >&6; }
5704 else
5705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5706 $as_echo "no" >&6; }
5707 fi
5708 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5710 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5711 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5712   $as_echo_n "(cached) " >&6
5713 else
5714   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5715 case `$LD -v 2>&1 </dev/null` in
5716 *GNU* | *'with BFD'*)
5717   lt_cv_prog_gnu_ld=yes
5718   ;;
5719 *)
5720   lt_cv_prog_gnu_ld=no
5721   ;;
5722 esac
5723 fi
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5725 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5726 with_gnu_ld=$lt_cv_prog_gnu_ld
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5737 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5738 if test "${lt_cv_path_NM+set}" = set; then :
5739   $as_echo_n "(cached) " >&6
5740 else
5741   if test -n "$NM"; then
5742   # Let the user override the test.
5743   lt_cv_path_NM="$NM"
5744 else
5745   lt_nm_to_check="${ac_tool_prefix}nm"
5746   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5747     lt_nm_to_check="$lt_nm_to_check nm"
5748   fi
5749   for lt_tmp_nm in $lt_nm_to_check; do
5750     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5751     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5752       IFS="$lt_save_ifs"
5753       test -z "$ac_dir" && ac_dir=.
5754       tmp_nm="$ac_dir/$lt_tmp_nm"
5755       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5756         # Check to see if the nm accepts a BSD-compat flag.
5757         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5758         #   nm: unknown option "B" ignored
5759         # Tru64's nm complains that /dev/null is an invalid object file
5760         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5761         */dev/null* | *'Invalid file or object type'*)
5762           lt_cv_path_NM="$tmp_nm -B"
5763           break
5764           ;;
5765         *)
5766           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5767           */dev/null*)
5768             lt_cv_path_NM="$tmp_nm -p"
5769             break
5770             ;;
5771           *)
5772             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5773             continue # so that we can try to find one that supports BSD flags
5774             ;;
5775           esac
5776           ;;
5777         esac
5778       fi
5779     done
5780     IFS="$lt_save_ifs"
5781   done
5782   : ${lt_cv_path_NM=no}
5783 fi
5784 fi
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5786 $as_echo "$lt_cv_path_NM" >&6; }
5787 if test "$lt_cv_path_NM" != "no"; then
5788   NM="$lt_cv_path_NM"
5789 else
5790   # Didn't find any BSD compatible name lister, look for dumpbin.
5791   if test -n "$DUMPBIN"; then :
5792     # Let the user override the test.
5793   else
5794     if test -n "$ac_tool_prefix"; then
5795   for ac_prog in dumpbin "link -dump"
5796   do
5797     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5798 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5800 $as_echo_n "checking for $ac_word... " >&6; }
5801 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5802   $as_echo_n "(cached) " >&6
5803 else
5804   if test -n "$DUMPBIN"; then
5805   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5806 else
5807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5808 for as_dir in $PATH
5809 do
5810   IFS=$as_save_IFS
5811   test -z "$as_dir" && as_dir=.
5812     for ac_exec_ext in '' $ac_executable_extensions; do
5813   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5814     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5815     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5816     break 2
5817   fi
5818 done
5819   done
5820 IFS=$as_save_IFS
5821
5822 fi
5823 fi
5824 DUMPBIN=$ac_cv_prog_DUMPBIN
5825 if test -n "$DUMPBIN"; then
5826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5827 $as_echo "$DUMPBIN" >&6; }
5828 else
5829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5830 $as_echo "no" >&6; }
5831 fi
5832
5833
5834     test -n "$DUMPBIN" && break
5835   done
5836 fi
5837 if test -z "$DUMPBIN"; then
5838   ac_ct_DUMPBIN=$DUMPBIN
5839   for ac_prog in dumpbin "link -dump"
5840 do
5841   # Extract the first word of "$ac_prog", so it can be a program name with args.
5842 set dummy $ac_prog; ac_word=$2
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5844 $as_echo_n "checking for $ac_word... " >&6; }
5845 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5846   $as_echo_n "(cached) " >&6
5847 else
5848   if test -n "$ac_ct_DUMPBIN"; then
5849   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5850 else
5851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5852 for as_dir in $PATH
5853 do
5854   IFS=$as_save_IFS
5855   test -z "$as_dir" && as_dir=.
5856     for ac_exec_ext in '' $ac_executable_extensions; do
5857   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5858     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5859     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5860     break 2
5861   fi
5862 done
5863   done
5864 IFS=$as_save_IFS
5865
5866 fi
5867 fi
5868 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5869 if test -n "$ac_ct_DUMPBIN"; then
5870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5871 $as_echo "$ac_ct_DUMPBIN" >&6; }
5872 else
5873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5874 $as_echo "no" >&6; }
5875 fi
5876
5877
5878   test -n "$ac_ct_DUMPBIN" && break
5879 done
5880
5881   if test "x$ac_ct_DUMPBIN" = x; then
5882     DUMPBIN=":"
5883   else
5884     case $cross_compiling:$ac_tool_warned in
5885 yes:)
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5887 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5888 ac_tool_warned=yes ;;
5889 esac
5890     DUMPBIN=$ac_ct_DUMPBIN
5891   fi
5892 fi
5893
5894     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5895     *COFF*)
5896       DUMPBIN="$DUMPBIN -symbols"
5897       ;;
5898     *)
5899       DUMPBIN=:
5900       ;;
5901     esac
5902   fi
5903
5904   if test "$DUMPBIN" != ":"; then
5905     NM="$DUMPBIN"
5906   fi
5907 fi
5908 test -z "$NM" && NM=nm
5909
5910
5911
5912
5913
5914
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5916 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5917 if test "${lt_cv_nm_interface+set}" = set; then :
5918   $as_echo_n "(cached) " >&6
5919 else
5920   lt_cv_nm_interface="BSD nm"
5921   echo "int some_variable = 0;" > conftest.$ac_ext
5922   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5923   (eval "$ac_compile" 2>conftest.err)
5924   cat conftest.err >&5
5925   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5926   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5927   cat conftest.err >&5
5928   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5929   cat conftest.out >&5
5930   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5931     lt_cv_nm_interface="MS dumpbin"
5932   fi
5933   rm -f conftest*
5934 fi
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5936 $as_echo "$lt_cv_nm_interface" >&6; }
5937
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5939 $as_echo_n "checking whether ln -s works... " >&6; }
5940 LN_S=$as_ln_s
5941 if test "$LN_S" = "ln -s"; then
5942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5943 $as_echo "yes" >&6; }
5944 else
5945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5946 $as_echo "no, using $LN_S" >&6; }
5947 fi
5948
5949 # find the maximum length of command line arguments
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5951 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5952 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5953   $as_echo_n "(cached) " >&6
5954 else
5955     i=0
5956   teststring="ABCD"
5957
5958   case $build_os in
5959   msdosdjgpp*)
5960     # On DJGPP, this test can blow up pretty badly due to problems in libc
5961     # (any single argument exceeding 2000 bytes causes a buffer overrun
5962     # during glob expansion).  Even if it were fixed, the result of this
5963     # check would be larger than it should be.
5964     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5965     ;;
5966
5967   gnu*)
5968     # Under GNU Hurd, this test is not required because there is
5969     # no limit to the length of command line arguments.
5970     # Libtool will interpret -1 as no limit whatsoever
5971     lt_cv_sys_max_cmd_len=-1;
5972     ;;
5973
5974   cygwin* | mingw* | cegcc*)
5975     # On Win9x/ME, this test blows up -- it succeeds, but takes
5976     # about 5 minutes as the teststring grows exponentially.
5977     # Worse, since 9x/ME are not pre-emptively multitasking,
5978     # you end up with a "frozen" computer, even though with patience
5979     # the test eventually succeeds (with a max line length of 256k).
5980     # Instead, let's just punt: use the minimum linelength reported by
5981     # all of the supported platforms: 8192 (on NT/2K/XP).
5982     lt_cv_sys_max_cmd_len=8192;
5983     ;;
5984
5985   mint*)
5986     # On MiNT this can take a long time and run out of memory.
5987     lt_cv_sys_max_cmd_len=8192;
5988     ;;
5989
5990   amigaos*)
5991     # On AmigaOS with pdksh, this test takes hours, literally.
5992     # So we just punt and use a minimum line length of 8192.
5993     lt_cv_sys_max_cmd_len=8192;
5994     ;;
5995
5996   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5997     # This has been around since 386BSD, at least.  Likely further.
5998     if test -x /sbin/sysctl; then
5999       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6000     elif test -x /usr/sbin/sysctl; then
6001       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6002     else
6003       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6004     fi
6005     # And add a safety zone
6006     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6007     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6008     ;;
6009
6010   interix*)
6011     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6012     lt_cv_sys_max_cmd_len=196608
6013     ;;
6014
6015   osf*)
6016     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6017     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6018     # nice to cause kernel panics so lets avoid the loop below.
6019     # First set a reasonable default.
6020     lt_cv_sys_max_cmd_len=16384
6021     #
6022     if test -x /sbin/sysconfig; then
6023       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6024         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6025       esac
6026     fi
6027     ;;
6028   sco3.2v5*)
6029     lt_cv_sys_max_cmd_len=102400
6030     ;;
6031   sysv5* | sco5v6* | sysv4.2uw2*)
6032     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6033     if test -n "$kargmax"; then
6034       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6035     else
6036       lt_cv_sys_max_cmd_len=32768
6037     fi
6038     ;;
6039   *)
6040     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6041     if test -n "$lt_cv_sys_max_cmd_len"; then
6042       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6043       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6044     else
6045       # Make teststring a little bigger before we do anything with it.
6046       # a 1K string should be a reasonable start.
6047       for i in 1 2 3 4 5 6 7 8 ; do
6048         teststring=$teststring$teststring
6049       done
6050       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6051       # If test is not a shell built-in, we'll probably end up computing a
6052       # maximum length that is only half of the actual maximum length, but
6053       # we can't tell.
6054       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6055                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6056               test $i != 17 # 1/2 MB should be enough
6057       do
6058         i=`expr $i + 1`
6059         teststring=$teststring$teststring
6060       done
6061       # Only check the string length outside the loop.
6062       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6063       teststring=
6064       # Add a significant safety factor because C++ compilers can tack on
6065       # massive amounts of additional arguments before passing them to the
6066       # linker.  It appears as though 1/2 is a usable value.
6067       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6068     fi
6069     ;;
6070   esac
6071
6072 fi
6073
6074 if test -n $lt_cv_sys_max_cmd_len ; then
6075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6076 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6077 else
6078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6079 $as_echo "none" >&6; }
6080 fi
6081 max_cmd_len=$lt_cv_sys_max_cmd_len
6082
6083
6084
6085
6086
6087
6088 : ${CP="cp -f"}
6089 : ${MV="mv -f"}
6090 : ${RM="rm -f"}
6091
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6093 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6094 # Try some XSI features
6095 xsi_shell=no
6096 ( _lt_dummy="a/b/c"
6097   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6098       = c,a/b,, \
6099     && eval 'test $(( 1 + 1 )) -eq 2 \
6100     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6101   && xsi_shell=yes
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6103 $as_echo "$xsi_shell" >&6; }
6104
6105
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6107 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6108 lt_shell_append=no
6109 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6110     >/dev/null 2>&1 \
6111   && lt_shell_append=yes
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6113 $as_echo "$lt_shell_append" >&6; }
6114
6115
6116 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6117   lt_unset=unset
6118 else
6119   lt_unset=false
6120 fi
6121
6122
6123
6124
6125
6126 # test EBCDIC or ASCII
6127 case `echo X|tr X '\101'` in
6128  A) # ASCII based system
6129     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6130   lt_SP2NL='tr \040 \012'
6131   lt_NL2SP='tr \015\012 \040\040'
6132   ;;
6133  *) # EBCDIC based system
6134   lt_SP2NL='tr \100 \n'
6135   lt_NL2SP='tr \r\n \100\100'
6136   ;;
6137 esac
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6148 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6149 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6150   $as_echo_n "(cached) " >&6
6151 else
6152   lt_cv_ld_reload_flag='-r'
6153 fi
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6155 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6156 reload_flag=$lt_cv_ld_reload_flag
6157 case $reload_flag in
6158 "" | " "*) ;;
6159 *) reload_flag=" $reload_flag" ;;
6160 esac
6161 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6162 case $host_os in
6163   darwin*)
6164     if test "$GCC" = yes; then
6165       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6166     else
6167       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6168     fi
6169     ;;
6170 esac
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180 if test -n "$ac_tool_prefix"; then
6181   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6182 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6184 $as_echo_n "checking for $ac_word... " >&6; }
6185 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6186   $as_echo_n "(cached) " >&6
6187 else
6188   if test -n "$OBJDUMP"; then
6189   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6190 else
6191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6192 for as_dir in $PATH
6193 do
6194   IFS=$as_save_IFS
6195   test -z "$as_dir" && as_dir=.
6196     for ac_exec_ext in '' $ac_executable_extensions; do
6197   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6198     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6199     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6200     break 2
6201   fi
6202 done
6203   done
6204 IFS=$as_save_IFS
6205
6206 fi
6207 fi
6208 OBJDUMP=$ac_cv_prog_OBJDUMP
6209 if test -n "$OBJDUMP"; then
6210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6211 $as_echo "$OBJDUMP" >&6; }
6212 else
6213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6214 $as_echo "no" >&6; }
6215 fi
6216
6217
6218 fi
6219 if test -z "$ac_cv_prog_OBJDUMP"; then
6220   ac_ct_OBJDUMP=$OBJDUMP
6221   # Extract the first word of "objdump", so it can be a program name with args.
6222 set dummy objdump; ac_word=$2
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6224 $as_echo_n "checking for $ac_word... " >&6; }
6225 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6226   $as_echo_n "(cached) " >&6
6227 else
6228   if test -n "$ac_ct_OBJDUMP"; then
6229   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6230 else
6231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6232 for as_dir in $PATH
6233 do
6234   IFS=$as_save_IFS
6235   test -z "$as_dir" && as_dir=.
6236     for ac_exec_ext in '' $ac_executable_extensions; do
6237   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6238     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6239     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6240     break 2
6241   fi
6242 done
6243   done
6244 IFS=$as_save_IFS
6245
6246 fi
6247 fi
6248 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6249 if test -n "$ac_ct_OBJDUMP"; then
6250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6251 $as_echo "$ac_ct_OBJDUMP" >&6; }
6252 else
6253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6254 $as_echo "no" >&6; }
6255 fi
6256
6257   if test "x$ac_ct_OBJDUMP" = x; then
6258     OBJDUMP="false"
6259   else
6260     case $cross_compiling:$ac_tool_warned in
6261 yes:)
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6263 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6264 ac_tool_warned=yes ;;
6265 esac
6266     OBJDUMP=$ac_ct_OBJDUMP
6267   fi
6268 else
6269   OBJDUMP="$ac_cv_prog_OBJDUMP"
6270 fi
6271
6272 test -z "$OBJDUMP" && OBJDUMP=objdump
6273
6274
6275
6276
6277
6278
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6280 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6281 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6282   $as_echo_n "(cached) " >&6
6283 else
6284   lt_cv_file_magic_cmd='$MAGIC_CMD'
6285 lt_cv_file_magic_test_file=
6286 lt_cv_deplibs_check_method='unknown'
6287 # Need to set the preceding variable on all platforms that support
6288 # interlibrary dependencies.
6289 # 'none' -- dependencies not supported.
6290 # `unknown' -- same as none, but documents that we really don't know.
6291 # 'pass_all' -- all dependencies passed with no checks.
6292 # 'test_compile' -- check by making test program.
6293 # 'file_magic [[regex]]' -- check by looking for files in library path
6294 # which responds to the $file_magic_cmd with a given extended regex.
6295 # If you have `file' or equivalent on your system and you're not sure
6296 # whether `pass_all' will *always* work, you probably want this one.
6297
6298 case $host_os in
6299 aix[4-9]*)
6300   lt_cv_deplibs_check_method=pass_all
6301   ;;
6302
6303 beos*)
6304   lt_cv_deplibs_check_method=pass_all
6305   ;;
6306
6307 bsdi[45]*)
6308   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6309   lt_cv_file_magic_cmd='/usr/bin/file -L'
6310   lt_cv_file_magic_test_file=/shlib/libc.so
6311   ;;
6312
6313 cygwin*)
6314   # func_win32_libid is a shell function defined in ltmain.sh
6315   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6316   lt_cv_file_magic_cmd='func_win32_libid'
6317   ;;
6318
6319 mingw* | pw32*)
6320   # Base MSYS/MinGW do not provide the 'file' command needed by
6321   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6322   # unless we find 'file', for example because we are cross-compiling.
6323   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6324   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6325     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6326     lt_cv_file_magic_cmd='func_win32_libid'
6327   else
6328     # Keep this pattern in sync with the one in func_win32_libid.
6329     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6330     lt_cv_file_magic_cmd='$OBJDUMP -f'
6331   fi
6332   ;;
6333
6334 cegcc*)
6335   # use the weaker test based on 'objdump'. See mingw*.
6336   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6337   lt_cv_file_magic_cmd='$OBJDUMP -f'
6338   ;;
6339
6340 darwin* | rhapsody*)
6341   lt_cv_deplibs_check_method=pass_all
6342   ;;
6343
6344 freebsd* | dragonfly*)
6345   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6346     case $host_cpu in
6347     i*86 )
6348       # Not sure whether the presence of OpenBSD here was a mistake.
6349       # Let's accept both of them until this is cleared up.
6350       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6351       lt_cv_file_magic_cmd=/usr/bin/file
6352       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6353       ;;
6354     esac
6355   else
6356     lt_cv_deplibs_check_method=pass_all
6357   fi
6358   ;;
6359
6360 gnu*)
6361   lt_cv_deplibs_check_method=pass_all
6362   ;;
6363
6364 haiku*)
6365   lt_cv_deplibs_check_method=pass_all
6366   ;;
6367
6368 hpux10.20* | hpux11*)
6369   lt_cv_file_magic_cmd=/usr/bin/file
6370   case $host_cpu in
6371   ia64*)
6372     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6373     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6374     ;;
6375   hppa*64*)
6376     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]'
6377     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6378     ;;
6379   *)
6380     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6381     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6382     ;;
6383   esac
6384   ;;
6385
6386 interix[3-9]*)
6387   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6388   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6389   ;;
6390
6391 irix5* | irix6* | nonstopux*)
6392   case $LD in
6393   *-32|*"-32 ") libmagic=32-bit;;
6394   *-n32|*"-n32 ") libmagic=N32;;
6395   *-64|*"-64 ") libmagic=64-bit;;
6396   *) libmagic=never-match;;
6397   esac
6398   lt_cv_deplibs_check_method=pass_all
6399   ;;
6400
6401 # This must be Linux ELF.
6402 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6403   lt_cv_deplibs_check_method=pass_all
6404   ;;
6405
6406 netbsd*)
6407   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6408     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6409   else
6410     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6411   fi
6412   ;;
6413
6414 newos6*)
6415   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6416   lt_cv_file_magic_cmd=/usr/bin/file
6417   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6418   ;;
6419
6420 *nto* | *qnx*)
6421   lt_cv_deplibs_check_method=pass_all
6422   ;;
6423
6424 openbsd*)
6425   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6426     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6427   else
6428     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6429   fi
6430   ;;
6431
6432 osf3* | osf4* | osf5*)
6433   lt_cv_deplibs_check_method=pass_all
6434   ;;
6435
6436 rdos*)
6437   lt_cv_deplibs_check_method=pass_all
6438   ;;
6439
6440 solaris*)
6441   lt_cv_deplibs_check_method=pass_all
6442   ;;
6443
6444 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6445   lt_cv_deplibs_check_method=pass_all
6446   ;;
6447
6448 sysv4 | sysv4.3*)
6449   case $host_vendor in
6450   motorola)
6451     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]'
6452     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6453     ;;
6454   ncr)
6455     lt_cv_deplibs_check_method=pass_all
6456     ;;
6457   sequent)
6458     lt_cv_file_magic_cmd='/bin/file'
6459     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6460     ;;
6461   sni)
6462     lt_cv_file_magic_cmd='/bin/file'
6463     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6464     lt_cv_file_magic_test_file=/lib/libc.so
6465     ;;
6466   siemens)
6467     lt_cv_deplibs_check_method=pass_all
6468     ;;
6469   pc)
6470     lt_cv_deplibs_check_method=pass_all
6471     ;;
6472   esac
6473   ;;
6474
6475 tpf*)
6476   lt_cv_deplibs_check_method=pass_all
6477   ;;
6478 esac
6479
6480 fi
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6482 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6483 file_magic_cmd=$lt_cv_file_magic_cmd
6484 deplibs_check_method=$lt_cv_deplibs_check_method
6485 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498 if test -n "$ac_tool_prefix"; then
6499   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6500 set dummy ${ac_tool_prefix}ar; ac_word=$2
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6502 $as_echo_n "checking for $ac_word... " >&6; }
6503 if test "${ac_cv_prog_AR+set}" = set; then :
6504   $as_echo_n "(cached) " >&6
6505 else
6506   if test -n "$AR"; then
6507   ac_cv_prog_AR="$AR" # Let the user override the test.
6508 else
6509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6510 for as_dir in $PATH
6511 do
6512   IFS=$as_save_IFS
6513   test -z "$as_dir" && as_dir=.
6514     for ac_exec_ext in '' $ac_executable_extensions; do
6515   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6516     ac_cv_prog_AR="${ac_tool_prefix}ar"
6517     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6518     break 2
6519   fi
6520 done
6521   done
6522 IFS=$as_save_IFS
6523
6524 fi
6525 fi
6526 AR=$ac_cv_prog_AR
6527 if test -n "$AR"; then
6528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6529 $as_echo "$AR" >&6; }
6530 else
6531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6532 $as_echo "no" >&6; }
6533 fi
6534
6535
6536 fi
6537 if test -z "$ac_cv_prog_AR"; then
6538   ac_ct_AR=$AR
6539   # Extract the first word of "ar", so it can be a program name with args.
6540 set dummy ar; ac_word=$2
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6542 $as_echo_n "checking for $ac_word... " >&6; }
6543 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6544   $as_echo_n "(cached) " >&6
6545 else
6546   if test -n "$ac_ct_AR"; then
6547   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6548 else
6549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6550 for as_dir in $PATH
6551 do
6552   IFS=$as_save_IFS
6553   test -z "$as_dir" && as_dir=.
6554     for ac_exec_ext in '' $ac_executable_extensions; do
6555   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6556     ac_cv_prog_ac_ct_AR="ar"
6557     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6558     break 2
6559   fi
6560 done
6561   done
6562 IFS=$as_save_IFS
6563
6564 fi
6565 fi
6566 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6567 if test -n "$ac_ct_AR"; then
6568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6569 $as_echo "$ac_ct_AR" >&6; }
6570 else
6571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6572 $as_echo "no" >&6; }
6573 fi
6574
6575   if test "x$ac_ct_AR" = x; then
6576     AR="false"
6577   else
6578     case $cross_compiling:$ac_tool_warned in
6579 yes:)
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6581 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6582 ac_tool_warned=yes ;;
6583 esac
6584     AR=$ac_ct_AR
6585   fi
6586 else
6587   AR="$ac_cv_prog_AR"
6588 fi
6589
6590 test -z "$AR" && AR=ar
6591 test -z "$AR_FLAGS" && AR_FLAGS=cru
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603 if test -n "$ac_tool_prefix"; then
6604   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6605 set dummy ${ac_tool_prefix}strip; ac_word=$2
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6607 $as_echo_n "checking for $ac_word... " >&6; }
6608 if test "${ac_cv_prog_STRIP+set}" = set; then :
6609   $as_echo_n "(cached) " >&6
6610 else
6611   if test -n "$STRIP"; then
6612   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6613 else
6614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6615 for as_dir in $PATH
6616 do
6617   IFS=$as_save_IFS
6618   test -z "$as_dir" && as_dir=.
6619     for ac_exec_ext in '' $ac_executable_extensions; do
6620   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6621     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6622     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6623     break 2
6624   fi
6625 done
6626   done
6627 IFS=$as_save_IFS
6628
6629 fi
6630 fi
6631 STRIP=$ac_cv_prog_STRIP
6632 if test -n "$STRIP"; then
6633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6634 $as_echo "$STRIP" >&6; }
6635 else
6636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6637 $as_echo "no" >&6; }
6638 fi
6639
6640
6641 fi
6642 if test -z "$ac_cv_prog_STRIP"; then
6643   ac_ct_STRIP=$STRIP
6644   # Extract the first word of "strip", so it can be a program name with args.
6645 set dummy strip; ac_word=$2
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6647 $as_echo_n "checking for $ac_word... " >&6; }
6648 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6649   $as_echo_n "(cached) " >&6
6650 else
6651   if test -n "$ac_ct_STRIP"; then
6652   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6653 else
6654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6655 for as_dir in $PATH
6656 do
6657   IFS=$as_save_IFS
6658   test -z "$as_dir" && as_dir=.
6659     for ac_exec_ext in '' $ac_executable_extensions; do
6660   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6661     ac_cv_prog_ac_ct_STRIP="strip"
6662     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6663     break 2
6664   fi
6665 done
6666   done
6667 IFS=$as_save_IFS
6668
6669 fi
6670 fi
6671 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6672 if test -n "$ac_ct_STRIP"; then
6673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6674 $as_echo "$ac_ct_STRIP" >&6; }
6675 else
6676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6677 $as_echo "no" >&6; }
6678 fi
6679
6680   if test "x$ac_ct_STRIP" = x; then
6681     STRIP=":"
6682   else
6683     case $cross_compiling:$ac_tool_warned in
6684 yes:)
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6686 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6687 ac_tool_warned=yes ;;
6688 esac
6689     STRIP=$ac_ct_STRIP
6690   fi
6691 else
6692   STRIP="$ac_cv_prog_STRIP"
6693 fi
6694
6695 test -z "$STRIP" && STRIP=:
6696
6697
6698
6699
6700
6701
6702 if test -n "$ac_tool_prefix"; then
6703   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6704 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6706 $as_echo_n "checking for $ac_word... " >&6; }
6707 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6708   $as_echo_n "(cached) " >&6
6709 else
6710   if test -n "$RANLIB"; then
6711   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6712 else
6713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6714 for as_dir in $PATH
6715 do
6716   IFS=$as_save_IFS
6717   test -z "$as_dir" && as_dir=.
6718     for ac_exec_ext in '' $ac_executable_extensions; do
6719   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6720     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6721     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6722     break 2
6723   fi
6724 done
6725   done
6726 IFS=$as_save_IFS
6727
6728 fi
6729 fi
6730 RANLIB=$ac_cv_prog_RANLIB
6731 if test -n "$RANLIB"; then
6732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6733 $as_echo "$RANLIB" >&6; }
6734 else
6735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6736 $as_echo "no" >&6; }
6737 fi
6738
6739
6740 fi
6741 if test -z "$ac_cv_prog_RANLIB"; then
6742   ac_ct_RANLIB=$RANLIB
6743   # Extract the first word of "ranlib", so it can be a program name with args.
6744 set dummy ranlib; ac_word=$2
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6746 $as_echo_n "checking for $ac_word... " >&6; }
6747 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6748   $as_echo_n "(cached) " >&6
6749 else
6750   if test -n "$ac_ct_RANLIB"; then
6751   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6752 else
6753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6754 for as_dir in $PATH
6755 do
6756   IFS=$as_save_IFS
6757   test -z "$as_dir" && as_dir=.
6758     for ac_exec_ext in '' $ac_executable_extensions; do
6759   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6760     ac_cv_prog_ac_ct_RANLIB="ranlib"
6761     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6762     break 2
6763   fi
6764 done
6765   done
6766 IFS=$as_save_IFS
6767
6768 fi
6769 fi
6770 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6771 if test -n "$ac_ct_RANLIB"; then
6772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6773 $as_echo "$ac_ct_RANLIB" >&6; }
6774 else
6775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6776 $as_echo "no" >&6; }
6777 fi
6778
6779   if test "x$ac_ct_RANLIB" = x; then
6780     RANLIB=":"
6781   else
6782     case $cross_compiling:$ac_tool_warned in
6783 yes:)
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6785 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6786 ac_tool_warned=yes ;;
6787 esac
6788     RANLIB=$ac_ct_RANLIB
6789   fi
6790 else
6791   RANLIB="$ac_cv_prog_RANLIB"
6792 fi
6793
6794 test -z "$RANLIB" && RANLIB=:
6795
6796
6797
6798
6799
6800
6801 # Determine commands to create old-style static archives.
6802 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6803 old_postinstall_cmds='chmod 644 $oldlib'
6804 old_postuninstall_cmds=
6805
6806 if test -n "$RANLIB"; then
6807   case $host_os in
6808   openbsd*)
6809     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6810     ;;
6811   *)
6812     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6813     ;;
6814   esac
6815   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6816 fi
6817
6818 case $host_os in
6819   darwin*)
6820     lock_old_archive_extraction=yes ;;
6821   *)
6822     lock_old_archive_extraction=no ;;
6823 esac
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863 # If no C compiler was specified, use CC.
6864 LTCC=${LTCC-"$CC"}
6865
6866 # If no C compiler flags were specified, use CFLAGS.
6867 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6868
6869 # Allow CC to be a program name with arguments.
6870 compiler=$CC
6871
6872
6873 # Check for command to grab the raw symbol name followed by C symbol from nm.
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6875 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6876 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6877   $as_echo_n "(cached) " >&6
6878 else
6879
6880 # These are sane defaults that work on at least a few old systems.
6881 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6882
6883 # Character class describing NM global symbol codes.
6884 symcode='[BCDEGRST]'
6885
6886 # Regexp to match symbols that can be accessed directly from C.
6887 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6888
6889 # Define system-specific variables.
6890 case $host_os in
6891 aix*)
6892   symcode='[BCDT]'
6893   ;;
6894 cygwin* | mingw* | pw32* | cegcc*)
6895   symcode='[ABCDGISTW]'
6896   ;;
6897 hpux*)
6898   if test "$host_cpu" = ia64; then
6899     symcode='[ABCDEGRST]'
6900   fi
6901   ;;
6902 irix* | nonstopux*)
6903   symcode='[BCDEGRST]'
6904   ;;
6905 osf*)
6906   symcode='[BCDEGQRST]'
6907   ;;
6908 solaris*)
6909   symcode='[BDRT]'
6910   ;;
6911 sco3.2v5*)
6912   symcode='[DT]'
6913   ;;
6914 sysv4.2uw2*)
6915   symcode='[DT]'
6916   ;;
6917 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6918   symcode='[ABDT]'
6919   ;;
6920 sysv4)
6921   symcode='[DFNSTU]'
6922   ;;
6923 esac
6924
6925 # If we're using GNU nm, then use its standard symbol codes.
6926 case `$NM -V 2>&1` in
6927 *GNU* | *'with BFD'*)
6928   symcode='[ABCDGIRSTW]' ;;
6929 esac
6930
6931 # Transform an extracted symbol line into a proper C declaration.
6932 # Some systems (esp. on ia64) link data and code symbols differently,
6933 # so use this general approach.
6934 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6935
6936 # Transform an extracted symbol line into symbol name and symbol address
6937 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6938 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'"
6939
6940 # Handle CRLF in mingw tool chain
6941 opt_cr=
6942 case $build_os in
6943 mingw*)
6944   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6945   ;;
6946 esac
6947
6948 # Try without a prefix underscore, then with it.
6949 for ac_symprfx in "" "_"; do
6950
6951   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6952   symxfrm="\\1 $ac_symprfx\\2 \\2"
6953
6954   # Write the raw and C identifiers.
6955   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6956     # Fake it for dumpbin and say T for any non-static function
6957     # and D for any global variable.
6958     # Also find C++ and __fastcall symbols from MSVC++,
6959     # which start with @ or ?.
6960     lt_cv_sys_global_symbol_pipe="$AWK '"\
6961 "     {last_section=section; section=\$ 3};"\
6962 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6963 "     \$ 0!~/External *\|/{next};"\
6964 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6965 "     {if(hide[section]) next};"\
6966 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6967 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6968 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6969 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6970 "     ' prfx=^$ac_symprfx"
6971   else
6972     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6973   fi
6974
6975   # Check to see that the pipe works correctly.
6976   pipe_works=no
6977
6978   rm -f conftest*
6979   cat > conftest.$ac_ext <<_LT_EOF
6980 #ifdef __cplusplus
6981 extern "C" {
6982 #endif
6983 char nm_test_var;
6984 void nm_test_func(void);
6985 void nm_test_func(void){}
6986 #ifdef __cplusplus
6987 }
6988 #endif
6989 int main(){nm_test_var='a';nm_test_func();return(0);}
6990 _LT_EOF
6991
6992   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6993   (eval $ac_compile) 2>&5
6994   ac_status=$?
6995   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6996   test $ac_status = 0; }; then
6997     # Now try to grab the symbols.
6998     nlist=conftest.nm
6999     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7000   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7001   ac_status=$?
7002   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7003   test $ac_status = 0; } && test -s "$nlist"; then
7004       # Try sorting and uniquifying the output.
7005       if sort "$nlist" | uniq > "$nlist"T; then
7006         mv -f "$nlist"T "$nlist"
7007       else
7008         rm -f "$nlist"T
7009       fi
7010
7011       # Make sure that we snagged all the symbols we need.
7012       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7013         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7014           cat <<_LT_EOF > conftest.$ac_ext
7015 #ifdef __cplusplus
7016 extern "C" {
7017 #endif
7018
7019 _LT_EOF
7020           # Now generate the symbol file.
7021           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7022
7023           cat <<_LT_EOF >> conftest.$ac_ext
7024
7025 /* The mapping between symbol names and symbols.  */
7026 const struct {
7027   const char *name;
7028   void       *address;
7029 }
7030 lt__PROGRAM__LTX_preloaded_symbols[] =
7031 {
7032   { "@PROGRAM@", (void *) 0 },
7033 _LT_EOF
7034           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7035           cat <<\_LT_EOF >> conftest.$ac_ext
7036   {0, (void *) 0}
7037 };
7038
7039 /* This works around a problem in FreeBSD linker */
7040 #ifdef FREEBSD_WORKAROUND
7041 static const void *lt_preloaded_setup() {
7042   return lt__PROGRAM__LTX_preloaded_symbols;
7043 }
7044 #endif
7045
7046 #ifdef __cplusplus
7047 }
7048 #endif
7049 _LT_EOF
7050           # Now try linking the two files.
7051           mv conftest.$ac_objext conftstm.$ac_objext
7052           lt_save_LIBS="$LIBS"
7053           lt_save_CFLAGS="$CFLAGS"
7054           LIBS="conftstm.$ac_objext"
7055           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7056           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7057   (eval $ac_link) 2>&5
7058   ac_status=$?
7059   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7060   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7061             pipe_works=yes
7062           fi
7063           LIBS="$lt_save_LIBS"
7064           CFLAGS="$lt_save_CFLAGS"
7065         else
7066           echo "cannot find nm_test_func in $nlist" >&5
7067         fi
7068       else
7069         echo "cannot find nm_test_var in $nlist" >&5
7070       fi
7071     else
7072       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7073     fi
7074   else
7075     echo "$progname: failed program was:" >&5
7076     cat conftest.$ac_ext >&5
7077   fi
7078   rm -rf conftest* conftst*
7079
7080   # Do not use the global_symbol_pipe unless it works.
7081   if test "$pipe_works" = yes; then
7082     break
7083   else
7084     lt_cv_sys_global_symbol_pipe=
7085   fi
7086 done
7087
7088 fi
7089
7090 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7091   lt_cv_sys_global_symbol_to_cdecl=
7092 fi
7093 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7095 $as_echo "failed" >&6; }
7096 else
7097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7098 $as_echo "ok" >&6; }
7099 fi
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122 # Check whether --enable-libtool-lock was given.
7123 if test "${enable_libtool_lock+set}" = set; then :
7124   enableval=$enable_libtool_lock;
7125 fi
7126
7127 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7128
7129 # Some flags need to be propagated to the compiler or linker for good
7130 # libtool support.
7131 case $host in
7132 ia64-*-hpux*)
7133   # Find out which ABI we are using.
7134   echo 'int i;' > conftest.$ac_ext
7135   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7136   (eval $ac_compile) 2>&5
7137   ac_status=$?
7138   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7139   test $ac_status = 0; }; then
7140     case `/usr/bin/file conftest.$ac_objext` in
7141       *ELF-32*)
7142         HPUX_IA64_MODE="32"
7143         ;;
7144       *ELF-64*)
7145         HPUX_IA64_MODE="64"
7146         ;;
7147     esac
7148   fi
7149   rm -rf conftest*
7150   ;;
7151 *-*-irix6*)
7152   # Find out which ABI we are using.
7153   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7154   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7155   (eval $ac_compile) 2>&5
7156   ac_status=$?
7157   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7158   test $ac_status = 0; }; then
7159     if test "$lt_cv_prog_gnu_ld" = yes; then
7160       case `/usr/bin/file conftest.$ac_objext` in
7161         *32-bit*)
7162           LD="${LD-ld} -melf32bsmip"
7163           ;;
7164         *N32*)
7165           LD="${LD-ld} -melf32bmipn32"
7166           ;;
7167         *64-bit*)
7168           LD="${LD-ld} -melf64bmip"
7169         ;;
7170       esac
7171     else
7172       case `/usr/bin/file conftest.$ac_objext` in
7173         *32-bit*)
7174           LD="${LD-ld} -32"
7175           ;;
7176         *N32*)
7177           LD="${LD-ld} -n32"
7178           ;;
7179         *64-bit*)
7180           LD="${LD-ld} -64"
7181           ;;
7182       esac
7183     fi
7184   fi
7185   rm -rf conftest*
7186   ;;
7187
7188 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7189 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7190   # Find out which ABI we are using.
7191   echo 'int i;' > conftest.$ac_ext
7192   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7193   (eval $ac_compile) 2>&5
7194   ac_status=$?
7195   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7196   test $ac_status = 0; }; then
7197     case `/usr/bin/file conftest.o` in
7198       *32-bit*)
7199         case $host in
7200           x86_64-*kfreebsd*-gnu)
7201             LD="${LD-ld} -m elf_i386_fbsd"
7202             ;;
7203           x86_64-*linux*)
7204             LD="${LD-ld} -m elf_i386"
7205             ;;
7206           ppc64-*linux*|powerpc64-*linux*)
7207             LD="${LD-ld} -m elf32ppclinux"
7208             ;;
7209           s390x-*linux*)
7210             LD="${LD-ld} -m elf_s390"
7211             ;;
7212           sparc64-*linux*)
7213             LD="${LD-ld} -m elf32_sparc"
7214             ;;
7215         esac
7216         ;;
7217       *64-bit*)
7218         case $host in
7219           x86_64-*kfreebsd*-gnu)
7220             LD="${LD-ld} -m elf_x86_64_fbsd"
7221             ;;
7222           x86_64-*linux*)
7223             LD="${LD-ld} -m elf_x86_64"
7224             ;;
7225           ppc*-*linux*|powerpc*-*linux*)
7226             LD="${LD-ld} -m elf64ppc"
7227             ;;
7228           s390*-*linux*|s390*-*tpf*)
7229             LD="${LD-ld} -m elf64_s390"
7230             ;;
7231           sparc*-*linux*)
7232             LD="${LD-ld} -m elf64_sparc"
7233             ;;
7234         esac
7235         ;;
7236     esac
7237   fi
7238   rm -rf conftest*
7239   ;;
7240
7241 *-*-sco3.2v5*)
7242   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7243   SAVE_CFLAGS="$CFLAGS"
7244   CFLAGS="$CFLAGS -belf"
7245   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7246 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7247 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7248   $as_echo_n "(cached) " >&6
7249 else
7250   ac_ext=c
7251 ac_cpp='$CPP $CPPFLAGS'
7252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7255
7256      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7257 /* end confdefs.h.  */
7258
7259 int
7260 main ()
7261 {
7262
7263   ;
7264   return 0;
7265 }
7266 _ACEOF
7267 if ac_fn_c_try_link "$LINENO"; then :
7268   lt_cv_cc_needs_belf=yes
7269 else
7270   lt_cv_cc_needs_belf=no
7271 fi
7272 rm -f core conftest.err conftest.$ac_objext \
7273     conftest$ac_exeext conftest.$ac_ext
7274      ac_ext=c
7275 ac_cpp='$CPP $CPPFLAGS'
7276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7279
7280 fi
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7282 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7283   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7284     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7285     CFLAGS="$SAVE_CFLAGS"
7286   fi
7287   ;;
7288 sparc*-*solaris*)
7289   # Find out which ABI we are using.
7290   echo 'int i;' > conftest.$ac_ext
7291   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7292   (eval $ac_compile) 2>&5
7293   ac_status=$?
7294   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7295   test $ac_status = 0; }; then
7296     case `/usr/bin/file conftest.o` in
7297     *64-bit*)
7298       case $lt_cv_prog_gnu_ld in
7299       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7300       *)
7301         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7302           LD="${LD-ld} -64"
7303         fi
7304         ;;
7305       esac
7306       ;;
7307     esac
7308   fi
7309   rm -rf conftest*
7310   ;;
7311 esac
7312
7313 need_locks="$enable_libtool_lock"
7314
7315
7316   case $host_os in
7317     rhapsody* | darwin*)
7318     if test -n "$ac_tool_prefix"; then
7319   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7320 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7322 $as_echo_n "checking for $ac_word... " >&6; }
7323 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7324   $as_echo_n "(cached) " >&6
7325 else
7326   if test -n "$DSYMUTIL"; then
7327   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7328 else
7329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7330 for as_dir in $PATH
7331 do
7332   IFS=$as_save_IFS
7333   test -z "$as_dir" && as_dir=.
7334     for ac_exec_ext in '' $ac_executable_extensions; do
7335   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7336     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7337     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7338     break 2
7339   fi
7340 done
7341   done
7342 IFS=$as_save_IFS
7343
7344 fi
7345 fi
7346 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7347 if test -n "$DSYMUTIL"; then
7348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7349 $as_echo "$DSYMUTIL" >&6; }
7350 else
7351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7352 $as_echo "no" >&6; }
7353 fi
7354
7355
7356 fi
7357 if test -z "$ac_cv_prog_DSYMUTIL"; then
7358   ac_ct_DSYMUTIL=$DSYMUTIL
7359   # Extract the first word of "dsymutil", so it can be a program name with args.
7360 set dummy dsymutil; ac_word=$2
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7362 $as_echo_n "checking for $ac_word... " >&6; }
7363 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7364   $as_echo_n "(cached) " >&6
7365 else
7366   if test -n "$ac_ct_DSYMUTIL"; then
7367   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7368 else
7369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7370 for as_dir in $PATH
7371 do
7372   IFS=$as_save_IFS
7373   test -z "$as_dir" && as_dir=.
7374     for ac_exec_ext in '' $ac_executable_extensions; do
7375   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7376     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7377     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7378     break 2
7379   fi
7380 done
7381   done
7382 IFS=$as_save_IFS
7383
7384 fi
7385 fi
7386 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7387 if test -n "$ac_ct_DSYMUTIL"; then
7388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7389 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7390 else
7391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7392 $as_echo "no" >&6; }
7393 fi
7394
7395   if test "x$ac_ct_DSYMUTIL" = x; then
7396     DSYMUTIL=":"
7397   else
7398     case $cross_compiling:$ac_tool_warned in
7399 yes:)
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7401 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7402 ac_tool_warned=yes ;;
7403 esac
7404     DSYMUTIL=$ac_ct_DSYMUTIL
7405   fi
7406 else
7407   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7408 fi
7409
7410     if test -n "$ac_tool_prefix"; then
7411   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7412 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7414 $as_echo_n "checking for $ac_word... " >&6; }
7415 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7416   $as_echo_n "(cached) " >&6
7417 else
7418   if test -n "$NMEDIT"; then
7419   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7420 else
7421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7422 for as_dir in $PATH
7423 do
7424   IFS=$as_save_IFS
7425   test -z "$as_dir" && as_dir=.
7426     for ac_exec_ext in '' $ac_executable_extensions; do
7427   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7428     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7429     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7430     break 2
7431   fi
7432 done
7433   done
7434 IFS=$as_save_IFS
7435
7436 fi
7437 fi
7438 NMEDIT=$ac_cv_prog_NMEDIT
7439 if test -n "$NMEDIT"; then
7440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7441 $as_echo "$NMEDIT" >&6; }
7442 else
7443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7444 $as_echo "no" >&6; }
7445 fi
7446
7447
7448 fi
7449 if test -z "$ac_cv_prog_NMEDIT"; then
7450   ac_ct_NMEDIT=$NMEDIT
7451   # Extract the first word of "nmedit", so it can be a program name with args.
7452 set dummy nmedit; ac_word=$2
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7454 $as_echo_n "checking for $ac_word... " >&6; }
7455 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7456   $as_echo_n "(cached) " >&6
7457 else
7458   if test -n "$ac_ct_NMEDIT"; then
7459   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7460 else
7461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7462 for as_dir in $PATH
7463 do
7464   IFS=$as_save_IFS
7465   test -z "$as_dir" && as_dir=.
7466     for ac_exec_ext in '' $ac_executable_extensions; do
7467   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7468     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7469     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7470     break 2
7471   fi
7472 done
7473   done
7474 IFS=$as_save_IFS
7475
7476 fi
7477 fi
7478 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7479 if test -n "$ac_ct_NMEDIT"; then
7480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7481 $as_echo "$ac_ct_NMEDIT" >&6; }
7482 else
7483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7484 $as_echo "no" >&6; }
7485 fi
7486
7487   if test "x$ac_ct_NMEDIT" = x; then
7488     NMEDIT=":"
7489   else
7490     case $cross_compiling:$ac_tool_warned in
7491 yes:)
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7493 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7494 ac_tool_warned=yes ;;
7495 esac
7496     NMEDIT=$ac_ct_NMEDIT
7497   fi
7498 else
7499   NMEDIT="$ac_cv_prog_NMEDIT"
7500 fi
7501
7502     if test -n "$ac_tool_prefix"; then
7503   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7504 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7506 $as_echo_n "checking for $ac_word... " >&6; }
7507 if test "${ac_cv_prog_LIPO+set}" = set; then :
7508   $as_echo_n "(cached) " >&6
7509 else
7510   if test -n "$LIPO"; then
7511   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7512 else
7513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7514 for as_dir in $PATH
7515 do
7516   IFS=$as_save_IFS
7517   test -z "$as_dir" && as_dir=.
7518     for ac_exec_ext in '' $ac_executable_extensions; do
7519   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7520     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7521     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7522     break 2
7523   fi
7524 done
7525   done
7526 IFS=$as_save_IFS
7527
7528 fi
7529 fi
7530 LIPO=$ac_cv_prog_LIPO
7531 if test -n "$LIPO"; then
7532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7533 $as_echo "$LIPO" >&6; }
7534 else
7535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7536 $as_echo "no" >&6; }
7537 fi
7538
7539
7540 fi
7541 if test -z "$ac_cv_prog_LIPO"; then
7542   ac_ct_LIPO=$LIPO
7543   # Extract the first word of "lipo", so it can be a program name with args.
7544 set dummy lipo; ac_word=$2
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7546 $as_echo_n "checking for $ac_word... " >&6; }
7547 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7548   $as_echo_n "(cached) " >&6
7549 else
7550   if test -n "$ac_ct_LIPO"; then
7551   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7552 else
7553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7554 for as_dir in $PATH
7555 do
7556   IFS=$as_save_IFS
7557   test -z "$as_dir" && as_dir=.
7558     for ac_exec_ext in '' $ac_executable_extensions; do
7559   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7560     ac_cv_prog_ac_ct_LIPO="lipo"
7561     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7562     break 2
7563   fi
7564 done
7565   done
7566 IFS=$as_save_IFS
7567
7568 fi
7569 fi
7570 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7571 if test -n "$ac_ct_LIPO"; then
7572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7573 $as_echo "$ac_ct_LIPO" >&6; }
7574 else
7575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7576 $as_echo "no" >&6; }
7577 fi
7578
7579   if test "x$ac_ct_LIPO" = x; then
7580     LIPO=":"
7581   else
7582     case $cross_compiling:$ac_tool_warned in
7583 yes:)
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7585 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7586 ac_tool_warned=yes ;;
7587 esac
7588     LIPO=$ac_ct_LIPO
7589   fi
7590 else
7591   LIPO="$ac_cv_prog_LIPO"
7592 fi
7593
7594     if test -n "$ac_tool_prefix"; then
7595   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7596 set dummy ${ac_tool_prefix}otool; ac_word=$2
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7598 $as_echo_n "checking for $ac_word... " >&6; }
7599 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7600   $as_echo_n "(cached) " >&6
7601 else
7602   if test -n "$OTOOL"; then
7603   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7604 else
7605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7606 for as_dir in $PATH
7607 do
7608   IFS=$as_save_IFS
7609   test -z "$as_dir" && as_dir=.
7610     for ac_exec_ext in '' $ac_executable_extensions; do
7611   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7612     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7613     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7614     break 2
7615   fi
7616 done
7617   done
7618 IFS=$as_save_IFS
7619
7620 fi
7621 fi
7622 OTOOL=$ac_cv_prog_OTOOL
7623 if test -n "$OTOOL"; then
7624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7625 $as_echo "$OTOOL" >&6; }
7626 else
7627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7628 $as_echo "no" >&6; }
7629 fi
7630
7631
7632 fi
7633 if test -z "$ac_cv_prog_OTOOL"; then
7634   ac_ct_OTOOL=$OTOOL
7635   # Extract the first word of "otool", so it can be a program name with args.
7636 set dummy otool; ac_word=$2
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7638 $as_echo_n "checking for $ac_word... " >&6; }
7639 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7640   $as_echo_n "(cached) " >&6
7641 else
7642   if test -n "$ac_ct_OTOOL"; then
7643   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7644 else
7645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7646 for as_dir in $PATH
7647 do
7648   IFS=$as_save_IFS
7649   test -z "$as_dir" && as_dir=.
7650     for ac_exec_ext in '' $ac_executable_extensions; do
7651   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7652     ac_cv_prog_ac_ct_OTOOL="otool"
7653     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7654     break 2
7655   fi
7656 done
7657   done
7658 IFS=$as_save_IFS
7659
7660 fi
7661 fi
7662 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7663 if test -n "$ac_ct_OTOOL"; then
7664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7665 $as_echo "$ac_ct_OTOOL" >&6; }
7666 else
7667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7668 $as_echo "no" >&6; }
7669 fi
7670
7671   if test "x$ac_ct_OTOOL" = x; then
7672     OTOOL=":"
7673   else
7674     case $cross_compiling:$ac_tool_warned in
7675 yes:)
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7677 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7678 ac_tool_warned=yes ;;
7679 esac
7680     OTOOL=$ac_ct_OTOOL
7681   fi
7682 else
7683   OTOOL="$ac_cv_prog_OTOOL"
7684 fi
7685
7686     if test -n "$ac_tool_prefix"; then
7687   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7688 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7690 $as_echo_n "checking for $ac_word... " >&6; }
7691 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7692   $as_echo_n "(cached) " >&6
7693 else
7694   if test -n "$OTOOL64"; then
7695   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7696 else
7697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7698 for as_dir in $PATH
7699 do
7700   IFS=$as_save_IFS
7701   test -z "$as_dir" && as_dir=.
7702     for ac_exec_ext in '' $ac_executable_extensions; do
7703   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7704     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7705     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7706     break 2
7707   fi
7708 done
7709   done
7710 IFS=$as_save_IFS
7711
7712 fi
7713 fi
7714 OTOOL64=$ac_cv_prog_OTOOL64
7715 if test -n "$OTOOL64"; then
7716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7717 $as_echo "$OTOOL64" >&6; }
7718 else
7719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7720 $as_echo "no" >&6; }
7721 fi
7722
7723
7724 fi
7725 if test -z "$ac_cv_prog_OTOOL64"; then
7726   ac_ct_OTOOL64=$OTOOL64
7727   # Extract the first word of "otool64", so it can be a program name with args.
7728 set dummy otool64; ac_word=$2
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7730 $as_echo_n "checking for $ac_word... " >&6; }
7731 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7732   $as_echo_n "(cached) " >&6
7733 else
7734   if test -n "$ac_ct_OTOOL64"; then
7735   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7736 else
7737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7738 for as_dir in $PATH
7739 do
7740   IFS=$as_save_IFS
7741   test -z "$as_dir" && as_dir=.
7742     for ac_exec_ext in '' $ac_executable_extensions; do
7743   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7744     ac_cv_prog_ac_ct_OTOOL64="otool64"
7745     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7746     break 2
7747   fi
7748 done
7749   done
7750 IFS=$as_save_IFS
7751
7752 fi
7753 fi
7754 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7755 if test -n "$ac_ct_OTOOL64"; then
7756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7757 $as_echo "$ac_ct_OTOOL64" >&6; }
7758 else
7759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7760 $as_echo "no" >&6; }
7761 fi
7762
7763   if test "x$ac_ct_OTOOL64" = x; then
7764     OTOOL64=":"
7765   else
7766     case $cross_compiling:$ac_tool_warned in
7767 yes:)
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7769 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7770 ac_tool_warned=yes ;;
7771 esac
7772     OTOOL64=$ac_ct_OTOOL64
7773   fi
7774 else
7775   OTOOL64="$ac_cv_prog_OTOOL64"
7776 fi
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7805 $as_echo_n "checking for -single_module linker flag... " >&6; }
7806 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7807   $as_echo_n "(cached) " >&6
7808 else
7809   lt_cv_apple_cc_single_mod=no
7810       if test -z "${LT_MULTI_MODULE}"; then
7811         # By default we will add the -single_module flag. You can override
7812         # by either setting the environment variable LT_MULTI_MODULE
7813         # non-empty at configure time, or by adding -multi_module to the
7814         # link flags.
7815         rm -rf libconftest.dylib*
7816         echo "int foo(void){return 1;}" > conftest.c
7817         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7818 -dynamiclib -Wl,-single_module conftest.c" >&5
7819         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7820           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7821         _lt_result=$?
7822         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7823           lt_cv_apple_cc_single_mod=yes
7824         else
7825           cat conftest.err >&5
7826         fi
7827         rm -rf libconftest.dylib*
7828         rm -f conftest.*
7829       fi
7830 fi
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7832 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7833     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7834 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7835 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7836   $as_echo_n "(cached) " >&6
7837 else
7838   lt_cv_ld_exported_symbols_list=no
7839       save_LDFLAGS=$LDFLAGS
7840       echo "_main" > conftest.sym
7841       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7842       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7843 /* end confdefs.h.  */
7844
7845 int
7846 main ()
7847 {
7848
7849   ;
7850   return 0;
7851 }
7852 _ACEOF
7853 if ac_fn_c_try_link "$LINENO"; then :
7854   lt_cv_ld_exported_symbols_list=yes
7855 else
7856   lt_cv_ld_exported_symbols_list=no
7857 fi
7858 rm -f core conftest.err conftest.$ac_objext \
7859     conftest$ac_exeext conftest.$ac_ext
7860         LDFLAGS="$save_LDFLAGS"
7861
7862 fi
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7864 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7865     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7866 $as_echo_n "checking for -force_load linker flag... " >&6; }
7867 if test "${lt_cv_ld_force_load+set}" = set; then :
7868   $as_echo_n "(cached) " >&6
7869 else
7870   lt_cv_ld_force_load=no
7871       cat > conftest.c << _LT_EOF
7872 int forced_loaded() { return 2;}
7873 _LT_EOF
7874       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7875       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7876       echo "$AR cru libconftest.a conftest.o" >&5
7877       $AR cru libconftest.a conftest.o 2>&5
7878       echo "$RANLIB libconftest.a" >&5
7879       $RANLIB libconftest.a 2>&5
7880       cat > conftest.c << _LT_EOF
7881 int main() { return 0;}
7882 _LT_EOF
7883       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7884       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7885       _lt_result=$?
7886       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7887         lt_cv_ld_force_load=yes
7888       else
7889         cat conftest.err >&5
7890       fi
7891         rm -f conftest.err libconftest.a conftest conftest.c
7892         rm -rf conftest.dSYM
7893
7894 fi
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7896 $as_echo "$lt_cv_ld_force_load" >&6; }
7897     case $host_os in
7898     rhapsody* | darwin1.[012])
7899       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7900     darwin1.*)
7901       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7902     darwin*) # darwin 5.x on
7903       # if running on 10.5 or later, the deployment target defaults
7904       # to the OS version, if on x86, and 10.4, the deployment
7905       # target defaults to 10.4. Don't you love it?
7906       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7907         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7908           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7909         10.[012]*)
7910           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7911         10.*)
7912           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7913       esac
7914     ;;
7915   esac
7916     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7917       _lt_dar_single_mod='$single_module'
7918     fi
7919     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7920       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7921     else
7922       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7923     fi
7924     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7925       _lt_dsymutil='~$DSYMUTIL $lib || :'
7926     else
7927       _lt_dsymutil=
7928     fi
7929     ;;
7930   esac
7931
7932 for ac_header in dlfcn.h
7933 do :
7934   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7935 "
7936 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7937   cat >>confdefs.h <<_ACEOF
7938 #define HAVE_DLFCN_H 1
7939 _ACEOF
7940
7941 fi
7942
7943 done
7944
7945
7946
7947
7948
7949 # Set options
7950
7951
7952
7953         enable_dlopen=no
7954
7955
7956
7957             # Check whether --enable-shared was given.
7958 if test "${enable_shared+set}" = set; then :
7959   enableval=$enable_shared; p=${PACKAGE-default}
7960     case $enableval in
7961     yes) enable_shared=yes ;;
7962     no) enable_shared=no ;;
7963     *)
7964       enable_shared=no
7965       # Look at the argument we got.  We use all the common list separators.
7966       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7967       for pkg in $enableval; do
7968         IFS="$lt_save_ifs"
7969         if test "X$pkg" = "X$p"; then
7970           enable_shared=yes
7971         fi
7972       done
7973       IFS="$lt_save_ifs"
7974       ;;
7975     esac
7976 else
7977   enable_shared=yes
7978 fi
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988   # Check whether --enable-static was given.
7989 if test "${enable_static+set}" = set; then :
7990   enableval=$enable_static; p=${PACKAGE-default}
7991     case $enableval in
7992     yes) enable_static=yes ;;
7993     no) enable_static=no ;;
7994     *)
7995      enable_static=no
7996       # Look at the argument we got.  We use all the common list separators.
7997       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7998       for pkg in $enableval; do
7999         IFS="$lt_save_ifs"
8000         if test "X$pkg" = "X$p"; then
8001           enable_static=yes
8002         fi
8003       done
8004       IFS="$lt_save_ifs"
8005       ;;
8006     esac
8007 else
8008   enable_static=yes
8009 fi
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020 # Check whether --with-pic was given.
8021 if test "${with_pic+set}" = set; then :
8022   withval=$with_pic; pic_mode="$withval"
8023 else
8024   pic_mode=default
8025 fi
8026
8027
8028 test -z "$pic_mode" && pic_mode=default
8029
8030
8031
8032
8033
8034
8035
8036   # Check whether --enable-fast-install was given.
8037 if test "${enable_fast_install+set}" = set; then :
8038   enableval=$enable_fast_install; p=${PACKAGE-default}
8039     case $enableval in
8040     yes) enable_fast_install=yes ;;
8041     no) enable_fast_install=no ;;
8042     *)
8043       enable_fast_install=no
8044       # Look at the argument we got.  We use all the common list separators.
8045       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8046       for pkg in $enableval; do
8047         IFS="$lt_save_ifs"
8048         if test "X$pkg" = "X$p"; then
8049           enable_fast_install=yes
8050         fi
8051       done
8052       IFS="$lt_save_ifs"
8053       ;;
8054     esac
8055 else
8056   enable_fast_install=yes
8057 fi
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069 # This can be used to rebuild libtool when needed
8070 LIBTOOL_DEPS="$ltmain"
8071
8072 # Always use our own libtool.
8073 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100 test -z "$LN_S" && LN_S="ln -s"
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115 if test -n "${ZSH_VERSION+set}" ; then
8116    setopt NO_GLOB_SUBST
8117 fi
8118
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8120 $as_echo_n "checking for objdir... " >&6; }
8121 if test "${lt_cv_objdir+set}" = set; then :
8122   $as_echo_n "(cached) " >&6
8123 else
8124   rm -f .libs 2>/dev/null
8125 mkdir .libs 2>/dev/null
8126 if test -d .libs; then
8127   lt_cv_objdir=.libs
8128 else
8129   # MS-DOS does not allow filenames that begin with a dot.
8130   lt_cv_objdir=_libs
8131 fi
8132 rmdir .libs 2>/dev/null
8133 fi
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8135 $as_echo "$lt_cv_objdir" >&6; }
8136 objdir=$lt_cv_objdir
8137
8138
8139
8140
8141
8142 cat >>confdefs.h <<_ACEOF
8143 #define LT_OBJDIR "$lt_cv_objdir/"
8144 _ACEOF
8145
8146
8147
8148
8149 case $host_os in
8150 aix3*)
8151   # AIX sometimes has problems with the GCC collect2 program.  For some
8152   # reason, if we set the COLLECT_NAMES environment variable, the problems
8153   # vanish in a puff of smoke.
8154   if test "X${COLLECT_NAMES+set}" != Xset; then
8155     COLLECT_NAMES=
8156     export COLLECT_NAMES
8157   fi
8158   ;;
8159 esac
8160
8161 # Global variables:
8162 ofile=libtool
8163 can_build_shared=yes
8164
8165 # All known linkers require a `.a' archive for static linking (except MSVC,
8166 # which needs '.lib').
8167 libext=a
8168
8169 with_gnu_ld="$lt_cv_prog_gnu_ld"
8170
8171 old_CC="$CC"
8172 old_CFLAGS="$CFLAGS"
8173
8174 # Set sane defaults for various variables
8175 test -z "$CC" && CC=cc
8176 test -z "$LTCC" && LTCC=$CC
8177 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8178 test -z "$LD" && LD=ld
8179 test -z "$ac_objext" && ac_objext=o
8180
8181 for cc_temp in $compiler""; do
8182   case $cc_temp in
8183     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8184     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8185     \-*) ;;
8186     *) break;;
8187   esac
8188 done
8189 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8190
8191
8192 # Only perform the check for file, if the check method requires it
8193 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8194 case $deplibs_check_method in
8195 file_magic*)
8196   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8197     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8198 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8199 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8200   $as_echo_n "(cached) " >&6
8201 else
8202   case $MAGIC_CMD in
8203 [\\/*] |  ?:[\\/]*)
8204   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8205   ;;
8206 *)
8207   lt_save_MAGIC_CMD="$MAGIC_CMD"
8208   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8209   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8210   for ac_dir in $ac_dummy; do
8211     IFS="$lt_save_ifs"
8212     test -z "$ac_dir" && ac_dir=.
8213     if test -f $ac_dir/${ac_tool_prefix}file; then
8214       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8215       if test -n "$file_magic_test_file"; then
8216         case $deplibs_check_method in
8217         "file_magic "*)
8218           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8219           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8220           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8221             $EGREP "$file_magic_regex" > /dev/null; then
8222             :
8223           else
8224             cat <<_LT_EOF 1>&2
8225
8226 *** Warning: the command libtool uses to detect shared libraries,
8227 *** $file_magic_cmd, produces output that libtool cannot recognize.
8228 *** The result is that libtool may fail to recognize shared libraries
8229 *** as such.  This will affect the creation of libtool libraries that
8230 *** depend on shared libraries, but programs linked with such libtool
8231 *** libraries will work regardless of this problem.  Nevertheless, you
8232 *** may want to report the problem to your system manager and/or to
8233 *** bug-libtool@gnu.org
8234
8235 _LT_EOF
8236           fi ;;
8237         esac
8238       fi
8239       break
8240     fi
8241   done
8242   IFS="$lt_save_ifs"
8243   MAGIC_CMD="$lt_save_MAGIC_CMD"
8244   ;;
8245 esac
8246 fi
8247
8248 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8249 if test -n "$MAGIC_CMD"; then
8250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8251 $as_echo "$MAGIC_CMD" >&6; }
8252 else
8253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8254 $as_echo "no" >&6; }
8255 fi
8256
8257
8258
8259
8260
8261 if test -z "$lt_cv_path_MAGIC_CMD"; then
8262   if test -n "$ac_tool_prefix"; then
8263     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8264 $as_echo_n "checking for file... " >&6; }
8265 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8266   $as_echo_n "(cached) " >&6
8267 else
8268   case $MAGIC_CMD in
8269 [\\/*] |  ?:[\\/]*)
8270   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8271   ;;
8272 *)
8273   lt_save_MAGIC_CMD="$MAGIC_CMD"
8274   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8275   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8276   for ac_dir in $ac_dummy; do
8277     IFS="$lt_save_ifs"
8278     test -z "$ac_dir" && ac_dir=.
8279     if test -f $ac_dir/file; then
8280       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8281       if test -n "$file_magic_test_file"; then
8282         case $deplibs_check_method in
8283         "file_magic "*)
8284           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8285           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8286           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8287             $EGREP "$file_magic_regex" > /dev/null; then
8288             :
8289           else
8290             cat <<_LT_EOF 1>&2
8291
8292 *** Warning: the command libtool uses to detect shared libraries,
8293 *** $file_magic_cmd, produces output that libtool cannot recognize.
8294 *** The result is that libtool may fail to recognize shared libraries
8295 *** as such.  This will affect the creation of libtool libraries that
8296 *** depend on shared libraries, but programs linked with such libtool
8297 *** libraries will work regardless of this problem.  Nevertheless, you
8298 *** may want to report the problem to your system manager and/or to
8299 *** bug-libtool@gnu.org
8300
8301 _LT_EOF
8302           fi ;;
8303         esac
8304       fi
8305       break
8306     fi
8307   done
8308   IFS="$lt_save_ifs"
8309   MAGIC_CMD="$lt_save_MAGIC_CMD"
8310   ;;
8311 esac
8312 fi
8313
8314 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8315 if test -n "$MAGIC_CMD"; then
8316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8317 $as_echo "$MAGIC_CMD" >&6; }
8318 else
8319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8320 $as_echo "no" >&6; }
8321 fi
8322
8323
8324   else
8325     MAGIC_CMD=:
8326   fi
8327 fi
8328
8329   fi
8330   ;;
8331 esac
8332
8333 # Use C for the default configuration in the libtool script
8334
8335 lt_save_CC="$CC"
8336 ac_ext=c
8337 ac_cpp='$CPP $CPPFLAGS'
8338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8341
8342
8343 # Source file extension for C test sources.
8344 ac_ext=c
8345
8346 # Object file extension for compiled C test sources.
8347 objext=o
8348 objext=$objext
8349
8350 # Code to be used in simple compile tests
8351 lt_simple_compile_test_code="int some_variable = 0;"
8352
8353 # Code to be used in simple link tests
8354 lt_simple_link_test_code='int main(){return(0);}'
8355
8356
8357
8358
8359
8360
8361
8362 # If no C compiler was specified, use CC.
8363 LTCC=${LTCC-"$CC"}
8364
8365 # If no C compiler flags were specified, use CFLAGS.
8366 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8367
8368 # Allow CC to be a program name with arguments.
8369 compiler=$CC
8370
8371 # Save the default compiler, since it gets overwritten when the other
8372 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8373 compiler_DEFAULT=$CC
8374
8375 # save warnings/boilerplate of simple test code
8376 ac_outfile=conftest.$ac_objext
8377 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8378 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8379 _lt_compiler_boilerplate=`cat conftest.err`
8380 $RM conftest*
8381
8382 ac_outfile=conftest.$ac_objext
8383 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8384 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8385 _lt_linker_boilerplate=`cat conftest.err`
8386 $RM -r conftest*
8387
8388
8389 if test -n "$compiler"; then
8390
8391 lt_prog_compiler_no_builtin_flag=
8392
8393 if test "$GCC" = yes; then
8394   case $cc_basename in
8395   nvcc*)
8396     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8397   *)
8398     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8399   esac
8400
8401   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8402 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8403 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8404   $as_echo_n "(cached) " >&6
8405 else
8406   lt_cv_prog_compiler_rtti_exceptions=no
8407    ac_outfile=conftest.$ac_objext
8408    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8409    lt_compiler_flag="-fno-rtti -fno-exceptions"
8410    # Insert the option either (1) after the last *FLAGS variable, or
8411    # (2) before a word containing "conftest.", or (3) at the end.
8412    # Note that $ac_compile itself does not contain backslashes and begins
8413    # with a dollar sign (not a hyphen), so the echo should work correctly.
8414    # The option is referenced via a variable to avoid confusing sed.
8415    lt_compile=`echo "$ac_compile" | $SED \
8416    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8417    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8418    -e 's:$: $lt_compiler_flag:'`
8419    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8420    (eval "$lt_compile" 2>conftest.err)
8421    ac_status=$?
8422    cat conftest.err >&5
8423    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424    if (exit $ac_status) && test -s "$ac_outfile"; then
8425      # The compiler can only warn and ignore the option if not recognized
8426      # So say no if there are warnings other than the usual output.
8427      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8428      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8429      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8430        lt_cv_prog_compiler_rtti_exceptions=yes
8431      fi
8432    fi
8433    $RM conftest*
8434
8435 fi
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8437 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8438
8439 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8440     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8441 else
8442     :
8443 fi
8444
8445 fi
8446
8447
8448
8449
8450
8451
8452   lt_prog_compiler_wl=
8453 lt_prog_compiler_pic=
8454 lt_prog_compiler_static=
8455
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8457 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8458
8459   if test "$GCC" = yes; then
8460     lt_prog_compiler_wl='-Wl,'
8461     lt_prog_compiler_static='-static'
8462
8463     case $host_os in
8464       aix*)
8465       # All AIX code is PIC.
8466       if test "$host_cpu" = ia64; then
8467         # AIX 5 now supports IA64 processor
8468         lt_prog_compiler_static='-Bstatic'
8469       fi
8470       ;;
8471
8472     amigaos*)
8473       case $host_cpu in
8474       powerpc)
8475             # see comment about AmigaOS4 .so support
8476             lt_prog_compiler_pic='-fPIC'
8477         ;;
8478       m68k)
8479             # FIXME: we need at least 68020 code to build shared libraries, but
8480             # adding the `-m68020' flag to GCC prevents building anything better,
8481             # like `-m68040'.
8482             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8483         ;;
8484       esac
8485       ;;
8486
8487     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8488       # PIC is the default for these OSes.
8489       ;;
8490
8491     mingw* | cygwin* | pw32* | os2* | cegcc*)
8492       # This hack is so that the source file can tell whether it is being
8493       # built for inclusion in a dll (and should export symbols for example).
8494       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8495       # (--disable-auto-import) libraries
8496       lt_prog_compiler_pic='-DDLL_EXPORT'
8497       ;;
8498
8499     darwin* | rhapsody*)
8500       # PIC is the default on this platform
8501       # Common symbols not allowed in MH_DYLIB files
8502       lt_prog_compiler_pic='-fno-common'
8503       ;;
8504
8505     haiku*)
8506       # PIC is the default for Haiku.
8507       # The "-static" flag exists, but is broken.
8508       lt_prog_compiler_static=
8509       ;;
8510
8511     hpux*)
8512       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8513       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8514       # sets the default TLS model and affects inlining.
8515       case $host_cpu in
8516       hppa*64*)
8517         # +Z the default
8518         ;;
8519       *)
8520         lt_prog_compiler_pic='-fPIC'
8521         ;;
8522       esac
8523       ;;
8524
8525     interix[3-9]*)
8526       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8527       # Instead, we relocate shared libraries at runtime.
8528       ;;
8529
8530     msdosdjgpp*)
8531       # Just because we use GCC doesn't mean we suddenly get shared libraries
8532       # on systems that don't support them.
8533       lt_prog_compiler_can_build_shared=no
8534       enable_shared=no
8535       ;;
8536
8537     *nto* | *qnx*)
8538       # QNX uses GNU C++, but need to define -shared option too, otherwise
8539       # it will coredump.
8540       lt_prog_compiler_pic='-fPIC -shared'
8541       ;;
8542
8543     sysv4*MP*)
8544       if test -d /usr/nec; then
8545         lt_prog_compiler_pic=-Kconform_pic
8546       fi
8547       ;;
8548
8549     *)
8550       lt_prog_compiler_pic='-fPIC'
8551       ;;
8552     esac
8553
8554     case $cc_basename in
8555     nvcc*) # Cuda Compiler Driver 2.2
8556       lt_prog_compiler_wl='-Xlinker '
8557       lt_prog_compiler_pic='-Xcompiler -fPIC'
8558       ;;
8559     esac
8560   else
8561     # PORTME Check for flag to pass linker flags through the system compiler.
8562     case $host_os in
8563     aix*)
8564       lt_prog_compiler_wl='-Wl,'
8565       if test "$host_cpu" = ia64; then
8566         # AIX 5 now supports IA64 processor
8567         lt_prog_compiler_static='-Bstatic'
8568       else
8569         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8570       fi
8571       ;;
8572
8573     mingw* | cygwin* | pw32* | os2* | cegcc*)
8574       # This hack is so that the source file can tell whether it is being
8575       # built for inclusion in a dll (and should export symbols for example).
8576       lt_prog_compiler_pic='-DDLL_EXPORT'
8577       ;;
8578
8579     hpux9* | hpux10* | hpux11*)
8580       lt_prog_compiler_wl='-Wl,'
8581       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8582       # not for PA HP-UX.
8583       case $host_cpu in
8584       hppa*64*|ia64*)
8585         # +Z the default
8586         ;;
8587       *)
8588         lt_prog_compiler_pic='+Z'
8589         ;;
8590       esac
8591       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8592       lt_prog_compiler_static='${wl}-a ${wl}archive'
8593       ;;
8594
8595     irix5* | irix6* | nonstopux*)
8596       lt_prog_compiler_wl='-Wl,'
8597       # PIC (with -KPIC) is the default.
8598       lt_prog_compiler_static='-non_shared'
8599       ;;
8600
8601     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8602       case $cc_basename in
8603       # old Intel for x86_64 which still supported -KPIC.
8604       ecc*)
8605         lt_prog_compiler_wl='-Wl,'
8606         lt_prog_compiler_pic='-KPIC'
8607         lt_prog_compiler_static='-static'
8608         ;;
8609       # icc used to be incompatible with GCC.
8610       # ICC 10 doesn't accept -KPIC any more.
8611       icc* | ifort*)
8612         lt_prog_compiler_wl='-Wl,'
8613         lt_prog_compiler_pic='-fPIC'
8614         lt_prog_compiler_static='-static'
8615         ;;
8616       # Lahey Fortran 8.1.
8617       lf95*)
8618         lt_prog_compiler_wl='-Wl,'
8619         lt_prog_compiler_pic='--shared'
8620         lt_prog_compiler_static='--static'
8621         ;;
8622       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8623         # Portland Group compilers (*not* the Pentium gcc compiler,
8624         # which looks to be a dead project)
8625         lt_prog_compiler_wl='-Wl,'
8626         lt_prog_compiler_pic='-fpic'
8627         lt_prog_compiler_static='-Bstatic'
8628         ;;
8629       ccc*)
8630         lt_prog_compiler_wl='-Wl,'
8631         # All Alpha code is PIC.
8632         lt_prog_compiler_static='-non_shared'
8633         ;;
8634       xl* | bgxl* | bgf* | mpixl*)
8635         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8636         lt_prog_compiler_wl='-Wl,'
8637         lt_prog_compiler_pic='-qpic'
8638         lt_prog_compiler_static='-qstaticlink'
8639         ;;
8640       *)
8641         case `$CC -V 2>&1 | sed 5q` in
8642         *Sun\ F* | *Sun*Fortran*)
8643           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8644           lt_prog_compiler_pic='-KPIC'
8645           lt_prog_compiler_static='-Bstatic'
8646           lt_prog_compiler_wl=''
8647           ;;
8648         *Sun\ C*)
8649           # Sun C 5.9
8650           lt_prog_compiler_pic='-KPIC'
8651           lt_prog_compiler_static='-Bstatic'
8652           lt_prog_compiler_wl='-Wl,'
8653           ;;
8654         esac
8655         ;;
8656       esac
8657       ;;
8658
8659     newsos6)
8660       lt_prog_compiler_pic='-KPIC'
8661       lt_prog_compiler_static='-Bstatic'
8662       ;;
8663
8664     *nto* | *qnx*)
8665       # QNX uses GNU C++, but need to define -shared option too, otherwise
8666       # it will coredump.
8667       lt_prog_compiler_pic='-fPIC -shared'
8668       ;;
8669
8670     osf3* | osf4* | osf5*)
8671       lt_prog_compiler_wl='-Wl,'
8672       # All OSF/1 code is PIC.
8673       lt_prog_compiler_static='-non_shared'
8674       ;;
8675
8676     rdos*)
8677       lt_prog_compiler_static='-non_shared'
8678       ;;
8679
8680     solaris*)
8681       lt_prog_compiler_pic='-KPIC'
8682       lt_prog_compiler_static='-Bstatic'
8683       case $cc_basename in
8684       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8685         lt_prog_compiler_wl='-Qoption ld ';;
8686       *)
8687         lt_prog_compiler_wl='-Wl,';;
8688       esac
8689       ;;
8690
8691     sunos4*)
8692       lt_prog_compiler_wl='-Qoption ld '
8693       lt_prog_compiler_pic='-PIC'
8694       lt_prog_compiler_static='-Bstatic'
8695       ;;
8696
8697     sysv4 | sysv4.2uw2* | sysv4.3*)
8698       lt_prog_compiler_wl='-Wl,'
8699       lt_prog_compiler_pic='-KPIC'
8700       lt_prog_compiler_static='-Bstatic'
8701       ;;
8702
8703     sysv4*MP*)
8704       if test -d /usr/nec ;then
8705         lt_prog_compiler_pic='-Kconform_pic'
8706         lt_prog_compiler_static='-Bstatic'
8707       fi
8708       ;;
8709
8710     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8711       lt_prog_compiler_wl='-Wl,'
8712       lt_prog_compiler_pic='-KPIC'
8713       lt_prog_compiler_static='-Bstatic'
8714       ;;
8715
8716     unicos*)
8717       lt_prog_compiler_wl='-Wl,'
8718       lt_prog_compiler_can_build_shared=no
8719       ;;
8720
8721     uts4*)
8722       lt_prog_compiler_pic='-pic'
8723       lt_prog_compiler_static='-Bstatic'
8724       ;;
8725
8726     *)
8727       lt_prog_compiler_can_build_shared=no
8728       ;;
8729     esac
8730   fi
8731
8732 case $host_os in
8733   # For platforms which do not support PIC, -DPIC is meaningless:
8734   *djgpp*)
8735     lt_prog_compiler_pic=
8736     ;;
8737   *)
8738     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8739     ;;
8740 esac
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8742 $as_echo "$lt_prog_compiler_pic" >&6; }
8743
8744
8745
8746
8747
8748
8749 #
8750 # Check to make sure the PIC flag actually works.
8751 #
8752 if test -n "$lt_prog_compiler_pic"; then
8753   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8754 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8755 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8756   $as_echo_n "(cached) " >&6
8757 else
8758   lt_cv_prog_compiler_pic_works=no
8759    ac_outfile=conftest.$ac_objext
8760    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8761    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8762    # Insert the option either (1) after the last *FLAGS variable, or
8763    # (2) before a word containing "conftest.", or (3) at the end.
8764    # Note that $ac_compile itself does not contain backslashes and begins
8765    # with a dollar sign (not a hyphen), so the echo should work correctly.
8766    # The option is referenced via a variable to avoid confusing sed.
8767    lt_compile=`echo "$ac_compile" | $SED \
8768    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8769    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8770    -e 's:$: $lt_compiler_flag:'`
8771    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8772    (eval "$lt_compile" 2>conftest.err)
8773    ac_status=$?
8774    cat conftest.err >&5
8775    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776    if (exit $ac_status) && test -s "$ac_outfile"; then
8777      # The compiler can only warn and ignore the option if not recognized
8778      # So say no if there are warnings other than the usual output.
8779      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8780      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8781      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8782        lt_cv_prog_compiler_pic_works=yes
8783      fi
8784    fi
8785    $RM conftest*
8786
8787 fi
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8789 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8790
8791 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8792     case $lt_prog_compiler_pic in
8793      "" | " "*) ;;
8794      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8795      esac
8796 else
8797     lt_prog_compiler_pic=
8798      lt_prog_compiler_can_build_shared=no
8799 fi
8800
8801 fi
8802
8803
8804
8805
8806
8807
8808 #
8809 # Check to make sure the static flag actually works.
8810 #
8811 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8813 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8814 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8815   $as_echo_n "(cached) " >&6
8816 else
8817   lt_cv_prog_compiler_static_works=no
8818    save_LDFLAGS="$LDFLAGS"
8819    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8820    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8821    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8822      # The linker can only warn and ignore the option if not recognized
8823      # So say no if there are warnings
8824      if test -s conftest.err; then
8825        # Append any errors to the config.log.
8826        cat conftest.err 1>&5
8827        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8828        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8829        if diff conftest.exp conftest.er2 >/dev/null; then
8830          lt_cv_prog_compiler_static_works=yes
8831        fi
8832      else
8833        lt_cv_prog_compiler_static_works=yes
8834      fi
8835    fi
8836    $RM -r conftest*
8837    LDFLAGS="$save_LDFLAGS"
8838
8839 fi
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8841 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8842
8843 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8844     :
8845 else
8846     lt_prog_compiler_static=
8847 fi
8848
8849
8850
8851
8852
8853
8854
8855   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8856 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8857 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8858   $as_echo_n "(cached) " >&6
8859 else
8860   lt_cv_prog_compiler_c_o=no
8861    $RM -r conftest 2>/dev/null
8862    mkdir conftest
8863    cd conftest
8864    mkdir out
8865    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8866
8867    lt_compiler_flag="-o out/conftest2.$ac_objext"
8868    # Insert the option either (1) after the last *FLAGS variable, or
8869    # (2) before a word containing "conftest.", or (3) at the end.
8870    # Note that $ac_compile itself does not contain backslashes and begins
8871    # with a dollar sign (not a hyphen), so the echo should work correctly.
8872    lt_compile=`echo "$ac_compile" | $SED \
8873    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8874    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8875    -e 's:$: $lt_compiler_flag:'`
8876    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8877    (eval "$lt_compile" 2>out/conftest.err)
8878    ac_status=$?
8879    cat out/conftest.err >&5
8880    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8882    then
8883      # The compiler can only warn and ignore the option if not recognized
8884      # So say no if there are warnings
8885      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8886      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8887      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8888        lt_cv_prog_compiler_c_o=yes
8889      fi
8890    fi
8891    chmod u+w . 2>&5
8892    $RM conftest*
8893    # SGI C++ compiler will create directory out/ii_files/ for
8894    # template instantiation
8895    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8896    $RM out/* && rmdir out
8897    cd ..
8898    $RM -r conftest
8899    $RM conftest*
8900
8901 fi
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8903 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8904
8905
8906
8907
8908
8909
8910   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8911 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8912 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8913   $as_echo_n "(cached) " >&6
8914 else
8915   lt_cv_prog_compiler_c_o=no
8916    $RM -r conftest 2>/dev/null
8917    mkdir conftest
8918    cd conftest
8919    mkdir out
8920    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8921
8922    lt_compiler_flag="-o out/conftest2.$ac_objext"
8923    # Insert the option either (1) after the last *FLAGS variable, or
8924    # (2) before a word containing "conftest.", or (3) at the end.
8925    # Note that $ac_compile itself does not contain backslashes and begins
8926    # with a dollar sign (not a hyphen), so the echo should work correctly.
8927    lt_compile=`echo "$ac_compile" | $SED \
8928    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8929    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8930    -e 's:$: $lt_compiler_flag:'`
8931    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8932    (eval "$lt_compile" 2>out/conftest.err)
8933    ac_status=$?
8934    cat out/conftest.err >&5
8935    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8937    then
8938      # The compiler can only warn and ignore the option if not recognized
8939      # So say no if there are warnings
8940      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8941      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8942      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8943        lt_cv_prog_compiler_c_o=yes
8944      fi
8945    fi
8946    chmod u+w . 2>&5
8947    $RM conftest*
8948    # SGI C++ compiler will create directory out/ii_files/ for
8949    # template instantiation
8950    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8951    $RM out/* && rmdir out
8952    cd ..
8953    $RM -r conftest
8954    $RM conftest*
8955
8956 fi
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8958 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8959
8960
8961
8962
8963 hard_links="nottested"
8964 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8965   # do not overwrite the value of need_locks provided by the user
8966   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8967 $as_echo_n "checking if we can lock with hard links... " >&6; }
8968   hard_links=yes
8969   $RM conftest*
8970   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8971   touch conftest.a
8972   ln conftest.a conftest.b 2>&5 || hard_links=no
8973   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8975 $as_echo "$hard_links" >&6; }
8976   if test "$hard_links" = no; then
8977     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8978 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8979     need_locks=warn
8980   fi
8981 else
8982   need_locks=no
8983 fi
8984
8985
8986
8987
8988
8989
8990   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8991 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8992
8993   runpath_var=
8994   allow_undefined_flag=
8995   always_export_symbols=no
8996   archive_cmds=
8997   archive_expsym_cmds=
8998   compiler_needs_object=no
8999   enable_shared_with_static_runtimes=no
9000   export_dynamic_flag_spec=
9001   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9002   hardcode_automatic=no
9003   hardcode_direct=no
9004   hardcode_direct_absolute=no
9005   hardcode_libdir_flag_spec=
9006   hardcode_libdir_flag_spec_ld=
9007   hardcode_libdir_separator=
9008   hardcode_minus_L=no
9009   hardcode_shlibpath_var=unsupported
9010   inherit_rpath=no
9011   link_all_deplibs=unknown
9012   module_cmds=
9013   module_expsym_cmds=
9014   old_archive_from_new_cmds=
9015   old_archive_from_expsyms_cmds=
9016   thread_safe_flag_spec=
9017   whole_archive_flag_spec=
9018   # include_expsyms should be a list of space-separated symbols to be *always*
9019   # included in the symbol list
9020   include_expsyms=
9021   # exclude_expsyms can be an extended regexp of symbols to exclude
9022   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9023   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9024   # as well as any symbol that contains `d'.
9025   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9026   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9027   # platforms (ab)use it in PIC code, but their linkers get confused if
9028   # the symbol is explicitly referenced.  Since portable code cannot
9029   # rely on this symbol name, it's probably fine to never include it in
9030   # preloaded symbol tables.
9031   # Exclude shared library initialization/finalization symbols.
9032   extract_expsyms_cmds=
9033
9034   case $host_os in
9035   cygwin* | mingw* | pw32* | cegcc*)
9036     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9037     # When not using gcc, we currently assume that we are using
9038     # Microsoft Visual C++.
9039     if test "$GCC" != yes; then
9040       with_gnu_ld=no
9041     fi
9042     ;;
9043   interix*)
9044     # we just hope/assume this is gcc and not c89 (= MSVC++)
9045     with_gnu_ld=yes
9046     ;;
9047   openbsd*)
9048     with_gnu_ld=no
9049     ;;
9050   esac
9051
9052   ld_shlibs=yes
9053
9054   # On some targets, GNU ld is compatible enough with the native linker
9055   # that we're better off using the native interface for both.
9056   lt_use_gnu_ld_interface=no
9057   if test "$with_gnu_ld" = yes; then
9058     case $host_os in
9059       aix*)
9060         # The AIX port of GNU ld has always aspired to compatibility
9061         # with the native linker.  However, as the warning in the GNU ld
9062         # block says, versions before 2.19.5* couldn't really create working
9063         # shared libraries, regardless of the interface used.
9064         case `$LD -v 2>&1` in
9065           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9066           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9067           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9068           *)
9069             lt_use_gnu_ld_interface=yes
9070             ;;
9071         esac
9072         ;;
9073       *)
9074         lt_use_gnu_ld_interface=yes
9075         ;;
9076     esac
9077   fi
9078
9079   if test "$lt_use_gnu_ld_interface" = yes; then
9080     # If archive_cmds runs LD, not CC, wlarc should be empty
9081     wlarc='${wl}'
9082
9083     # Set some defaults for GNU ld with shared library support. These
9084     # are reset later if shared libraries are not supported. Putting them
9085     # here allows them to be overridden if necessary.
9086     runpath_var=LD_RUN_PATH
9087     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9088     export_dynamic_flag_spec='${wl}--export-dynamic'
9089     # ancient GNU ld didn't support --whole-archive et. al.
9090     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9091       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9092     else
9093       whole_archive_flag_spec=
9094     fi
9095     supports_anon_versioning=no
9096     case `$LD -v 2>&1` in
9097       *GNU\ gold*) supports_anon_versioning=yes ;;
9098       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9099       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9100       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9101       *\ 2.11.*) ;; # other 2.11 versions
9102       *) supports_anon_versioning=yes ;;
9103     esac
9104
9105     # See if GNU ld supports shared libraries.
9106     case $host_os in
9107     aix[3-9]*)
9108       # On AIX/PPC, the GNU linker is very broken
9109       if test "$host_cpu" != ia64; then
9110         ld_shlibs=no
9111         cat <<_LT_EOF 1>&2
9112
9113 *** Warning: the GNU linker, at least up to release 2.19, is reported
9114 *** to be unable to reliably create shared libraries on AIX.
9115 *** Therefore, libtool is disabling shared libraries support.  If you
9116 *** really care for shared libraries, you may want to install binutils
9117 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9118 *** You will then need to restart the configuration process.
9119
9120 _LT_EOF
9121       fi
9122       ;;
9123
9124     amigaos*)
9125       case $host_cpu in
9126       powerpc)
9127             # see comment about AmigaOS4 .so support
9128             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9129             archive_expsym_cmds=''
9130         ;;
9131       m68k)
9132             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)'
9133             hardcode_libdir_flag_spec='-L$libdir'
9134             hardcode_minus_L=yes
9135         ;;
9136       esac
9137       ;;
9138
9139     beos*)
9140       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9141         allow_undefined_flag=unsupported
9142         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9143         # support --undefined.  This deserves some investigation.  FIXME
9144         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9145       else
9146         ld_shlibs=no
9147       fi
9148       ;;
9149
9150     cygwin* | mingw* | pw32* | cegcc*)
9151       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9152       # as there is no search path for DLLs.
9153       hardcode_libdir_flag_spec='-L$libdir'
9154       export_dynamic_flag_spec='${wl}--export-all-symbols'
9155       allow_undefined_flag=unsupported
9156       always_export_symbols=no
9157       enable_shared_with_static_runtimes=yes
9158       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9159
9160       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9161         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9162         # If the export-symbols file already is a .def file (1st line
9163         # is EXPORTS), use it as is; otherwise, prepend...
9164         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9165           cp $export_symbols $output_objdir/$soname.def;
9166         else
9167           echo EXPORTS > $output_objdir/$soname.def;
9168           cat $export_symbols >> $output_objdir/$soname.def;
9169         fi~
9170         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9171       else
9172         ld_shlibs=no
9173       fi
9174       ;;
9175
9176     haiku*)
9177       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9178       link_all_deplibs=yes
9179       ;;
9180
9181     interix[3-9]*)
9182       hardcode_direct=no
9183       hardcode_shlibpath_var=no
9184       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9185       export_dynamic_flag_spec='${wl}-E'
9186       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9187       # Instead, shared libraries are loaded at an image base (0x10000000 by
9188       # default) and relocated if they conflict, which is a slow very memory
9189       # consuming and fragmenting process.  To avoid this, we pick a random,
9190       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9191       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9192       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9193       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'
9194       ;;
9195
9196     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9197       tmp_diet=no
9198       if test "$host_os" = linux-dietlibc; then
9199         case $cc_basename in
9200           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9201         esac
9202       fi
9203       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9204          && test "$tmp_diet" = no
9205       then
9206         tmp_addflag=
9207         tmp_sharedflag='-shared'
9208         case $cc_basename,$host_cpu in
9209         pgcc*)                          # Portland Group C compiler
9210           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'
9211           tmp_addflag=' $pic_flag'
9212           ;;
9213         pgf77* | pgf90* | pgf95* | pgfortran*)
9214                                         # Portland Group f77 and f90 compilers
9215           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'
9216           tmp_addflag=' $pic_flag -Mnomain' ;;
9217         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9218           tmp_addflag=' -i_dynamic' ;;
9219         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9220           tmp_addflag=' -i_dynamic -nofor_main' ;;
9221         ifc* | ifort*)                  # Intel Fortran compiler
9222           tmp_addflag=' -nofor_main' ;;
9223         lf95*)                          # Lahey Fortran 8.1
9224           whole_archive_flag_spec=
9225           tmp_sharedflag='--shared' ;;
9226         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9227           tmp_sharedflag='-qmkshrobj'
9228           tmp_addflag= ;;
9229         nvcc*)  # Cuda Compiler Driver 2.2
9230           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'
9231           compiler_needs_object=yes
9232           ;;
9233         esac
9234         case `$CC -V 2>&1 | sed 5q` in
9235         *Sun\ C*)                       # Sun C 5.9
9236           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'
9237           compiler_needs_object=yes
9238           tmp_sharedflag='-G' ;;
9239         *Sun\ F*)                       # Sun Fortran 8.3
9240           tmp_sharedflag='-G' ;;
9241         esac
9242         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9243
9244         if test "x$supports_anon_versioning" = xyes; then
9245           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9246             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9247             echo "local: *; };" >> $output_objdir/$libname.ver~
9248             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9249         fi
9250
9251         case $cc_basename in
9252         xlf* | bgf* | bgxlf* | mpixlf*)
9253           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9254           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9255           hardcode_libdir_flag_spec=
9256           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9257           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9258           if test "x$supports_anon_versioning" = xyes; then
9259             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9260               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9261               echo "local: *; };" >> $output_objdir/$libname.ver~
9262               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9263           fi
9264           ;;
9265         esac
9266       else
9267         ld_shlibs=no
9268       fi
9269       ;;
9270
9271     netbsd*)
9272       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9273         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9274         wlarc=
9275       else
9276         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9277         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9278       fi
9279       ;;
9280
9281     solaris*)
9282       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9283         ld_shlibs=no
9284         cat <<_LT_EOF 1>&2
9285
9286 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9287 *** create shared libraries on Solaris systems.  Therefore, libtool
9288 *** is disabling shared libraries support.  We urge you to upgrade GNU
9289 *** binutils to release 2.9.1 or newer.  Another option is to modify
9290 *** your PATH or compiler configuration so that the native linker is
9291 *** used, and then restart.
9292
9293 _LT_EOF
9294       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9295         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9296         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9297       else
9298         ld_shlibs=no
9299       fi
9300       ;;
9301
9302     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9303       case `$LD -v 2>&1` in
9304         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9305         ld_shlibs=no
9306         cat <<_LT_EOF 1>&2
9307
9308 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9309 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9310 *** is disabling shared libraries support.  We urge you to upgrade GNU
9311 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9312 *** your PATH or compiler configuration so that the native linker is
9313 *** used, and then restart.
9314
9315 _LT_EOF
9316         ;;
9317         *)
9318           # For security reasons, it is highly recommended that you always
9319           # use absolute paths for naming shared libraries, and exclude the
9320           # DT_RUNPATH tag from executables and libraries.  But doing so
9321           # requires that you compile everything twice, which is a pain.
9322           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9323             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9324             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9325             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9326           else
9327             ld_shlibs=no
9328           fi
9329         ;;
9330       esac
9331       ;;
9332
9333     sunos4*)
9334       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9335       wlarc=
9336       hardcode_direct=yes
9337       hardcode_shlibpath_var=no
9338       ;;
9339
9340     *)
9341       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9342         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9343         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9344       else
9345         ld_shlibs=no
9346       fi
9347       ;;
9348     esac
9349
9350     if test "$ld_shlibs" = no; then
9351       runpath_var=
9352       hardcode_libdir_flag_spec=
9353       export_dynamic_flag_spec=
9354       whole_archive_flag_spec=
9355     fi
9356   else
9357     # PORTME fill in a description of your system's linker (not GNU ld)
9358     case $host_os in
9359     aix3*)
9360       allow_undefined_flag=unsupported
9361       always_export_symbols=yes
9362       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'
9363       # Note: this linker hardcodes the directories in LIBPATH if there
9364       # are no directories specified by -L.
9365       hardcode_minus_L=yes
9366       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9367         # Neither direct hardcoding nor static linking is supported with a
9368         # broken collect2.
9369         hardcode_direct=unsupported
9370       fi
9371       ;;
9372
9373     aix[4-9]*)
9374       if test "$host_cpu" = ia64; then
9375         # On IA64, the linker does run time linking by default, so we don't
9376         # have to do anything special.
9377         aix_use_runtimelinking=no
9378         exp_sym_flag='-Bexport'
9379         no_entry_flag=""
9380       else
9381         # If we're using GNU nm, then we don't want the "-C" option.
9382         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9383         # Also, AIX nm treats weak defined symbols like other global
9384         # defined symbols, whereas GNU nm marks them as "W".
9385         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9386           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'
9387         else
9388           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'
9389         fi
9390         aix_use_runtimelinking=no
9391
9392         # Test if we are trying to use run time linking or normal
9393         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9394         # need to do runtime linking.
9395         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9396           for ld_flag in $LDFLAGS; do
9397           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9398             aix_use_runtimelinking=yes
9399             break
9400           fi
9401           done
9402           ;;
9403         esac
9404
9405         exp_sym_flag='-bexport'
9406         no_entry_flag='-bnoentry'
9407       fi
9408
9409       # When large executables or shared objects are built, AIX ld can
9410       # have problems creating the table of contents.  If linking a library
9411       # or program results in "error TOC overflow" add -mminimal-toc to
9412       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9413       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9414
9415       archive_cmds=''
9416       hardcode_direct=yes
9417       hardcode_direct_absolute=yes
9418       hardcode_libdir_separator=':'
9419       link_all_deplibs=yes
9420       file_list_spec='${wl}-f,'
9421
9422       if test "$GCC" = yes; then
9423         case $host_os in aix4.[012]|aix4.[012].*)
9424         # We only want to do this on AIX 4.2 and lower, the check
9425         # below for broken collect2 doesn't work under 4.3+
9426           collect2name=`${CC} -print-prog-name=collect2`
9427           if test -f "$collect2name" &&
9428            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9429           then
9430           # We have reworked collect2
9431           :
9432           else
9433           # We have old collect2
9434           hardcode_direct=unsupported
9435           # It fails to find uninstalled libraries when the uninstalled
9436           # path is not listed in the libpath.  Setting hardcode_minus_L
9437           # to unsupported forces relinking
9438           hardcode_minus_L=yes
9439           hardcode_libdir_flag_spec='-L$libdir'
9440           hardcode_libdir_separator=
9441           fi
9442           ;;
9443         esac
9444         shared_flag='-shared'
9445         if test "$aix_use_runtimelinking" = yes; then
9446           shared_flag="$shared_flag "'${wl}-G'
9447         fi
9448       else
9449         # not using gcc
9450         if test "$host_cpu" = ia64; then
9451         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9452         # chokes on -Wl,-G. The following line is correct:
9453           shared_flag='-G'
9454         else
9455           if test "$aix_use_runtimelinking" = yes; then
9456             shared_flag='${wl}-G'
9457           else
9458             shared_flag='${wl}-bM:SRE'
9459           fi
9460         fi
9461       fi
9462
9463       export_dynamic_flag_spec='${wl}-bexpall'
9464       # It seems that -bexpall does not export symbols beginning with
9465       # underscore (_), so it is better to generate a list of symbols to export.
9466       always_export_symbols=yes
9467       if test "$aix_use_runtimelinking" = yes; then
9468         # Warning - without using the other runtime loading flags (-brtl),
9469         # -berok will link without error, but may produce a broken library.
9470         allow_undefined_flag='-berok'
9471         # Determine the default libpath from the value encoded in an
9472         # empty executable.
9473         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9474 /* end confdefs.h.  */
9475
9476 int
9477 main ()
9478 {
9479
9480   ;
9481   return 0;
9482 }
9483 _ACEOF
9484 if ac_fn_c_try_link "$LINENO"; then :
9485
9486 lt_aix_libpath_sed='
9487     /Import File Strings/,/^$/ {
9488         /^0/ {
9489             s/^0  *\(.*\)$/\1/
9490             p
9491         }
9492     }'
9493 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9494 # Check for a 64-bit object if we didn't find anything.
9495 if test -z "$aix_libpath"; then
9496   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9497 fi
9498 fi
9499 rm -f core conftest.err conftest.$ac_objext \
9500     conftest$ac_exeext conftest.$ac_ext
9501 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9502
9503         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9504         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"
9505       else
9506         if test "$host_cpu" = ia64; then
9507           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9508           allow_undefined_flag="-z nodefs"
9509           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"
9510         else
9511          # Determine the default libpath from the value encoded in an
9512          # empty executable.
9513          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9514 /* end confdefs.h.  */
9515
9516 int
9517 main ()
9518 {
9519
9520   ;
9521   return 0;
9522 }
9523 _ACEOF
9524 if ac_fn_c_try_link "$LINENO"; then :
9525
9526 lt_aix_libpath_sed='
9527     /Import File Strings/,/^$/ {
9528         /^0/ {
9529             s/^0  *\(.*\)$/\1/
9530             p
9531         }
9532     }'
9533 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9534 # Check for a 64-bit object if we didn't find anything.
9535 if test -z "$aix_libpath"; then
9536   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9537 fi
9538 fi
9539 rm -f core conftest.err conftest.$ac_objext \
9540     conftest$ac_exeext conftest.$ac_ext
9541 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9542
9543          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9544           # Warning - without using the other run time loading flags,
9545           # -berok will link without error, but may produce a broken library.
9546           no_undefined_flag=' ${wl}-bernotok'
9547           allow_undefined_flag=' ${wl}-berok'
9548           if test "$with_gnu_ld" = yes; then
9549             # We only use this code for GNU lds that support --whole-archive.
9550             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9551           else
9552             # Exported symbols can be pulled into shared objects from archives
9553             whole_archive_flag_spec='$convenience'
9554           fi
9555           archive_cmds_need_lc=yes
9556           # This is similar to how AIX traditionally builds its shared libraries.
9557           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'
9558         fi
9559       fi
9560       ;;
9561
9562     amigaos*)
9563       case $host_cpu in
9564       powerpc)
9565             # see comment about AmigaOS4 .so support
9566             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9567             archive_expsym_cmds=''
9568         ;;
9569       m68k)
9570             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)'
9571             hardcode_libdir_flag_spec='-L$libdir'
9572             hardcode_minus_L=yes
9573         ;;
9574       esac
9575       ;;
9576
9577     bsdi[45]*)
9578       export_dynamic_flag_spec=-rdynamic
9579       ;;
9580
9581     cygwin* | mingw* | pw32* | cegcc*)
9582       # When not using gcc, we currently assume that we are using
9583       # Microsoft Visual C++.
9584       # hardcode_libdir_flag_spec is actually meaningless, as there is
9585       # no search path for DLLs.
9586       hardcode_libdir_flag_spec=' '
9587       allow_undefined_flag=unsupported
9588       # Tell ltmain to make .lib files, not .a files.
9589       libext=lib
9590       # Tell ltmain to make .dll files, not .so files.
9591       shrext_cmds=".dll"
9592       # FIXME: Setting linknames here is a bad hack.
9593       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9594       # The linker will automatically build a .lib file if we build a DLL.
9595       old_archive_from_new_cmds='true'
9596       # FIXME: Should let the user specify the lib program.
9597       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9598       fix_srcfile_path='`cygpath -w "$srcfile"`'
9599       enable_shared_with_static_runtimes=yes
9600       ;;
9601
9602     darwin* | rhapsody*)
9603
9604
9605   archive_cmds_need_lc=no
9606   hardcode_direct=no
9607   hardcode_automatic=yes
9608   hardcode_shlibpath_var=unsupported
9609   if test "$lt_cv_ld_force_load" = "yes"; then
9610     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\"`'
9611   else
9612     whole_archive_flag_spec=''
9613   fi
9614   link_all_deplibs=yes
9615   allow_undefined_flag="$_lt_dar_allow_undefined"
9616   case $cc_basename in
9617      ifort*) _lt_dar_can_shared=yes ;;
9618      *) _lt_dar_can_shared=$GCC ;;
9619   esac
9620   if test "$_lt_dar_can_shared" = "yes"; then
9621     output_verbose_link_cmd=func_echo_all
9622     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9623     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9624     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}"
9625     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}"
9626
9627   else
9628   ld_shlibs=no
9629   fi
9630
9631       ;;
9632
9633     dgux*)
9634       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9635       hardcode_libdir_flag_spec='-L$libdir'
9636       hardcode_shlibpath_var=no
9637       ;;
9638
9639     freebsd1*)
9640       ld_shlibs=no
9641       ;;
9642
9643     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9644     # support.  Future versions do this automatically, but an explicit c++rt0.o
9645     # does not break anything, and helps significantly (at the cost of a little
9646     # extra space).
9647     freebsd2.2*)
9648       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9649       hardcode_libdir_flag_spec='-R$libdir'
9650       hardcode_direct=yes
9651       hardcode_shlibpath_var=no
9652       ;;
9653
9654     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9655     freebsd2*)
9656       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9657       hardcode_direct=yes
9658       hardcode_minus_L=yes
9659       hardcode_shlibpath_var=no
9660       ;;
9661
9662     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9663     freebsd* | dragonfly*)
9664       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9665       hardcode_libdir_flag_spec='-R$libdir'
9666       hardcode_direct=yes
9667       hardcode_shlibpath_var=no
9668       ;;
9669
9670     hpux9*)
9671       if test "$GCC" = yes; then
9672         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9673       else
9674         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'
9675       fi
9676       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9677       hardcode_libdir_separator=:
9678       hardcode_direct=yes
9679
9680       # hardcode_minus_L: Not really in the search PATH,
9681       # but as the default location of the library.
9682       hardcode_minus_L=yes
9683       export_dynamic_flag_spec='${wl}-E'
9684       ;;
9685
9686     hpux10*)
9687       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9688         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9689       else
9690         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9691       fi
9692       if test "$with_gnu_ld" = no; then
9693         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9694         hardcode_libdir_flag_spec_ld='+b $libdir'
9695         hardcode_libdir_separator=:
9696         hardcode_direct=yes
9697         hardcode_direct_absolute=yes
9698         export_dynamic_flag_spec='${wl}-E'
9699         # hardcode_minus_L: Not really in the search PATH,
9700         # but as the default location of the library.
9701         hardcode_minus_L=yes
9702       fi
9703       ;;
9704
9705     hpux11*)
9706       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9707         case $host_cpu in
9708         hppa*64*)
9709           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9710           ;;
9711         ia64*)
9712           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9713           ;;
9714         *)
9715           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9716           ;;
9717         esac
9718       else
9719         case $host_cpu in
9720         hppa*64*)
9721           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9722           ;;
9723         ia64*)
9724           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9725           ;;
9726         *)
9727
9728           # Older versions of the 11.00 compiler do not understand -b yet
9729           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9730           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9731 $as_echo_n "checking if $CC understands -b... " >&6; }
9732 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9733   $as_echo_n "(cached) " >&6
9734 else
9735   lt_cv_prog_compiler__b=no
9736    save_LDFLAGS="$LDFLAGS"
9737    LDFLAGS="$LDFLAGS -b"
9738    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9739    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9740      # The linker can only warn and ignore the option if not recognized
9741      # So say no if there are warnings
9742      if test -s conftest.err; then
9743        # Append any errors to the config.log.
9744        cat conftest.err 1>&5
9745        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9746        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9747        if diff conftest.exp conftest.er2 >/dev/null; then
9748          lt_cv_prog_compiler__b=yes
9749        fi
9750      else
9751        lt_cv_prog_compiler__b=yes
9752      fi
9753    fi
9754    $RM -r conftest*
9755    LDFLAGS="$save_LDFLAGS"
9756
9757 fi
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9759 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9760
9761 if test x"$lt_cv_prog_compiler__b" = xyes; then
9762     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9763 else
9764     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9765 fi
9766
9767           ;;
9768         esac
9769       fi
9770       if test "$with_gnu_ld" = no; then
9771         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9772         hardcode_libdir_separator=:
9773
9774         case $host_cpu in
9775         hppa*64*|ia64*)
9776           hardcode_direct=no
9777           hardcode_shlibpath_var=no
9778           ;;
9779         *)
9780           hardcode_direct=yes
9781           hardcode_direct_absolute=yes
9782           export_dynamic_flag_spec='${wl}-E'
9783
9784           # hardcode_minus_L: Not really in the search PATH,
9785           # but as the default location of the library.
9786           hardcode_minus_L=yes
9787           ;;
9788         esac
9789       fi
9790       ;;
9791
9792     irix5* | irix6* | nonstopux*)
9793       if test "$GCC" = yes; then
9794         archive_cmds='$CC -shared $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'
9795         # Try to use the -exported_symbol ld option, if it does not
9796         # work, assume that -exports_file does not work either and
9797         # implicitly export all symbols.
9798         save_LDFLAGS="$LDFLAGS"
9799         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9800         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9801 /* end confdefs.h.  */
9802 int foo(void) {}
9803 _ACEOF
9804 if ac_fn_c_try_link "$LINENO"; then :
9805   archive_expsym_cmds='$CC -shared $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'
9806
9807 fi
9808 rm -f core conftest.err conftest.$ac_objext \
9809     conftest$ac_exeext conftest.$ac_ext
9810         LDFLAGS="$save_LDFLAGS"
9811       else
9812         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'
9813         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'
9814       fi
9815       archive_cmds_need_lc='no'
9816       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9817       hardcode_libdir_separator=:
9818       inherit_rpath=yes
9819       link_all_deplibs=yes
9820       ;;
9821
9822     netbsd*)
9823       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9824         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9825       else
9826         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9827       fi
9828       hardcode_libdir_flag_spec='-R$libdir'
9829       hardcode_direct=yes
9830       hardcode_shlibpath_var=no
9831       ;;
9832
9833     newsos6)
9834       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9835       hardcode_direct=yes
9836       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9837       hardcode_libdir_separator=:
9838       hardcode_shlibpath_var=no
9839       ;;
9840
9841     *nto* | *qnx*)
9842       ;;
9843
9844     openbsd*)
9845       if test -f /usr/libexec/ld.so; then
9846         hardcode_direct=yes
9847         hardcode_shlibpath_var=no
9848         hardcode_direct_absolute=yes
9849         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9850           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9851           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9852           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9853           export_dynamic_flag_spec='${wl}-E'
9854         else
9855           case $host_os in
9856            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9857              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9858              hardcode_libdir_flag_spec='-R$libdir'
9859              ;;
9860            *)
9861              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9862              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9863              ;;
9864           esac
9865         fi
9866       else
9867         ld_shlibs=no
9868       fi
9869       ;;
9870
9871     os2*)
9872       hardcode_libdir_flag_spec='-L$libdir'
9873       hardcode_minus_L=yes
9874       allow_undefined_flag=unsupported
9875       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'
9876       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9877       ;;
9878
9879     osf3*)
9880       if test "$GCC" = yes; then
9881         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9882         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'
9883       else
9884         allow_undefined_flag=' -expect_unresolved \*'
9885         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'
9886       fi
9887       archive_cmds_need_lc='no'
9888       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9889       hardcode_libdir_separator=:
9890       ;;
9891
9892     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9893       if test "$GCC" = yes; then
9894         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9895         archive_cmds='$CC -shared${allow_undefined_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'
9896         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9897       else
9898         allow_undefined_flag=' -expect_unresolved \*'
9899         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'
9900         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~
9901         $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'
9902
9903         # Both c and cxx compiler support -rpath directly
9904         hardcode_libdir_flag_spec='-rpath $libdir'
9905       fi
9906       archive_cmds_need_lc='no'
9907       hardcode_libdir_separator=:
9908       ;;
9909
9910     solaris*)
9911       no_undefined_flag=' -z defs'
9912       if test "$GCC" = yes; then
9913         wlarc='${wl}'
9914         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9915         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9916           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9917       else
9918         case `$CC -V 2>&1` in
9919         *"Compilers 5.0"*)
9920           wlarc=''
9921           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9922           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9923           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9924           ;;
9925         *)
9926           wlarc='${wl}'
9927           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9928           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9929           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9930           ;;
9931         esac
9932       fi
9933       hardcode_libdir_flag_spec='-R$libdir'
9934       hardcode_shlibpath_var=no
9935       case $host_os in
9936       solaris2.[0-5] | solaris2.[0-5].*) ;;
9937       *)
9938         # The compiler driver will combine and reorder linker options,
9939         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9940         # but is careful enough not to reorder.
9941         # Supported since Solaris 2.6 (maybe 2.5.1?)
9942         if test "$GCC" = yes; then
9943           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9944         else
9945           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9946         fi
9947         ;;
9948       esac
9949       link_all_deplibs=yes
9950       ;;
9951
9952     sunos4*)
9953       if test "x$host_vendor" = xsequent; then
9954         # Use $CC to link under sequent, because it throws in some extra .o
9955         # files that make .init and .fini sections work.
9956         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9957       else
9958         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9959       fi
9960       hardcode_libdir_flag_spec='-L$libdir'
9961       hardcode_direct=yes
9962       hardcode_minus_L=yes
9963       hardcode_shlibpath_var=no
9964       ;;
9965
9966     sysv4)
9967       case $host_vendor in
9968         sni)
9969           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9970           hardcode_direct=yes # is this really true???
9971         ;;
9972         siemens)
9973           ## LD is ld it makes a PLAMLIB
9974           ## CC just makes a GrossModule.
9975           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9976           reload_cmds='$CC -r -o $output$reload_objs'
9977           hardcode_direct=no
9978         ;;
9979         motorola)
9980           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9981           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9982         ;;
9983       esac
9984       runpath_var='LD_RUN_PATH'
9985       hardcode_shlibpath_var=no
9986       ;;
9987
9988     sysv4.3*)
9989       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9990       hardcode_shlibpath_var=no
9991       export_dynamic_flag_spec='-Bexport'
9992       ;;
9993
9994     sysv4*MP*)
9995       if test -d /usr/nec; then
9996         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9997         hardcode_shlibpath_var=no
9998         runpath_var=LD_RUN_PATH
9999         hardcode_runpath_var=yes
10000         ld_shlibs=yes
10001       fi
10002       ;;
10003
10004     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10005       no_undefined_flag='${wl}-z,text'
10006       archive_cmds_need_lc=no
10007       hardcode_shlibpath_var=no
10008       runpath_var='LD_RUN_PATH'
10009
10010       if test "$GCC" = yes; then
10011         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10012         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10013       else
10014         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10015         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10016       fi
10017       ;;
10018
10019     sysv5* | sco3.2v5* | sco5v6*)
10020       # Note: We can NOT use -z defs as we might desire, because we do not
10021       # link with -lc, and that would cause any symbols used from libc to
10022       # always be unresolved, which means just about no library would
10023       # ever link correctly.  If we're not using GNU ld we use -z text
10024       # though, which does catch some bad symbols but isn't as heavy-handed
10025       # as -z defs.
10026       no_undefined_flag='${wl}-z,text'
10027       allow_undefined_flag='${wl}-z,nodefs'
10028       archive_cmds_need_lc=no
10029       hardcode_shlibpath_var=no
10030       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10031       hardcode_libdir_separator=':'
10032       link_all_deplibs=yes
10033       export_dynamic_flag_spec='${wl}-Bexport'
10034       runpath_var='LD_RUN_PATH'
10035
10036       if test "$GCC" = yes; then
10037         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10038         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10039       else
10040         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10041         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10042       fi
10043       ;;
10044
10045     uts4*)
10046       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10047       hardcode_libdir_flag_spec='-L$libdir'
10048       hardcode_shlibpath_var=no
10049       ;;
10050
10051     *)
10052       ld_shlibs=no
10053       ;;
10054     esac
10055
10056     if test x$host_vendor = xsni; then
10057       case $host in
10058       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10059         export_dynamic_flag_spec='${wl}-Blargedynsym'
10060         ;;
10061       esac
10062     fi
10063   fi
10064
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10066 $as_echo "$ld_shlibs" >&6; }
10067 test "$ld_shlibs" = no && can_build_shared=no
10068
10069 with_gnu_ld=$with_gnu_ld
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085 #
10086 # Do we need to explicitly link libc?
10087 #
10088 case "x$archive_cmds_need_lc" in
10089 x|xyes)
10090   # Assume -lc should be added
10091   archive_cmds_need_lc=yes
10092
10093   if test "$enable_shared" = yes && test "$GCC" = yes; then
10094     case $archive_cmds in
10095     *'~'*)
10096       # FIXME: we may have to deal with multi-command sequences.
10097       ;;
10098     '$CC '*)
10099       # Test whether the compiler implicitly links with -lc since on some
10100       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10101       # to ld, don't add -lc before -lgcc.
10102       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10103 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10104 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10105   $as_echo_n "(cached) " >&6
10106 else
10107   $RM conftest*
10108         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10109
10110         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10111   (eval $ac_compile) 2>&5
10112   ac_status=$?
10113   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10114   test $ac_status = 0; } 2>conftest.err; then
10115           soname=conftest
10116           lib=conftest
10117           libobjs=conftest.$ac_objext
10118           deplibs=
10119           wl=$lt_prog_compiler_wl
10120           pic_flag=$lt_prog_compiler_pic
10121           compiler_flags=-v
10122           linker_flags=-v
10123           verstring=
10124           output_objdir=.
10125           libname=conftest
10126           lt_save_allow_undefined_flag=$allow_undefined_flag
10127           allow_undefined_flag=
10128           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10129   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10130   ac_status=$?
10131   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10132   test $ac_status = 0; }
10133           then
10134             lt_cv_archive_cmds_need_lc=no
10135           else
10136             lt_cv_archive_cmds_need_lc=yes
10137           fi
10138           allow_undefined_flag=$lt_save_allow_undefined_flag
10139         else
10140           cat conftest.err 1>&5
10141         fi
10142         $RM conftest*
10143
10144 fi
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10146 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10147       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10148       ;;
10149     esac
10150   fi
10151   ;;
10152 esac
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10311 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10312
10313 if test "$GCC" = yes; then
10314   case $host_os in
10315     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10316     *) lt_awk_arg="/^libraries:/" ;;
10317   esac
10318   case $host_os in
10319     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10320     *) lt_sed_strip_eq="s,=/,/,g" ;;
10321   esac
10322   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10323   case $lt_search_path_spec in
10324   *\;*)
10325     # if the path contains ";" then we assume it to be the separator
10326     # otherwise default to the standard path separator (i.e. ":") - it is
10327     # assumed that no part of a normal pathname contains ";" but that should
10328     # okay in the real world where ";" in dirpaths is itself problematic.
10329     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10330     ;;
10331   *)
10332     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10333     ;;
10334   esac
10335   # Ok, now we have the path, separated by spaces, we can step through it
10336   # and add multilib dir if necessary.
10337   lt_tmp_lt_search_path_spec=
10338   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10339   for lt_sys_path in $lt_search_path_spec; do
10340     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10341       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10342     else
10343       test -d "$lt_sys_path" && \
10344         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10345     fi
10346   done
10347   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10348 BEGIN {RS=" "; FS="/|\n";} {
10349   lt_foo="";
10350   lt_count=0;
10351   for (lt_i = NF; lt_i > 0; lt_i--) {
10352     if ($lt_i != "" && $lt_i != ".") {
10353       if ($lt_i == "..") {
10354         lt_count++;
10355       } else {
10356         if (lt_count == 0) {
10357           lt_foo="/" $lt_i lt_foo;
10358         } else {
10359           lt_count--;
10360         }
10361       }
10362     }
10363   }
10364   if (lt_foo != "") { lt_freq[lt_foo]++; }
10365   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10366 }'`
10367   # AWK program above erroneously prepends '/' to C:/dos/paths
10368   # for these hosts.
10369   case $host_os in
10370     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10371       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10372   esac
10373   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10374 else
10375   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10376 fi
10377 library_names_spec=
10378 libname_spec='lib$name'
10379 soname_spec=
10380 shrext_cmds=".so"
10381 postinstall_cmds=
10382 postuninstall_cmds=
10383 finish_cmds=
10384 finish_eval=
10385 shlibpath_var=
10386 shlibpath_overrides_runpath=unknown
10387 version_type=none
10388 dynamic_linker="$host_os ld.so"
10389 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10390 need_lib_prefix=unknown
10391 hardcode_into_libs=no
10392
10393 # when you set need_version to no, make sure it does not cause -set_version
10394 # flags to be left without arguments
10395 need_version=unknown
10396
10397 case $host_os in
10398 aix3*)
10399   version_type=linux
10400   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10401   shlibpath_var=LIBPATH
10402
10403   # AIX 3 has no versioning support, so we append a major version to the name.
10404   soname_spec='${libname}${release}${shared_ext}$major'
10405   ;;
10406
10407 aix[4-9]*)
10408   version_type=linux
10409   need_lib_prefix=no
10410   need_version=no
10411   hardcode_into_libs=yes
10412   if test "$host_cpu" = ia64; then
10413     # AIX 5 supports IA64
10414     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10415     shlibpath_var=LD_LIBRARY_PATH
10416   else
10417     # With GCC up to 2.95.x, collect2 would create an import file
10418     # for dependence libraries.  The import file would start with
10419     # the line `#! .'.  This would cause the generated library to
10420     # depend on `.', always an invalid library.  This was fixed in
10421     # development snapshots of GCC prior to 3.0.
10422     case $host_os in
10423       aix4 | aix4.[01] | aix4.[01].*)
10424       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10425            echo ' yes '
10426            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10427         :
10428       else
10429         can_build_shared=no
10430       fi
10431       ;;
10432     esac
10433     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10434     # soname into executable. Probably we can add versioning support to
10435     # collect2, so additional links can be useful in future.
10436     if test "$aix_use_runtimelinking" = yes; then
10437       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10438       # instead of lib<name>.a to let people know that these are not
10439       # typical AIX shared libraries.
10440       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10441     else
10442       # We preserve .a as extension for shared libraries through AIX4.2
10443       # and later when we are not doing run time linking.
10444       library_names_spec='${libname}${release}.a $libname.a'
10445       soname_spec='${libname}${release}${shared_ext}$major'
10446     fi
10447     shlibpath_var=LIBPATH
10448   fi
10449   ;;
10450
10451 amigaos*)
10452   case $host_cpu in
10453   powerpc)
10454     # Since July 2007 AmigaOS4 officially supports .so libraries.
10455     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10456     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10457     ;;
10458   m68k)
10459     library_names_spec='$libname.ixlibrary $libname.a'
10460     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10461     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'
10462     ;;
10463   esac
10464   ;;
10465
10466 beos*)
10467   library_names_spec='${libname}${shared_ext}'
10468   dynamic_linker="$host_os ld.so"
10469   shlibpath_var=LIBRARY_PATH
10470   ;;
10471
10472 bsdi[45]*)
10473   version_type=linux
10474   need_version=no
10475   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10476   soname_spec='${libname}${release}${shared_ext}$major'
10477   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10478   shlibpath_var=LD_LIBRARY_PATH
10479   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10480   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10481   # the default ld.so.conf also contains /usr/contrib/lib and
10482   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10483   # libtool to hard-code these into programs
10484   ;;
10485
10486 cygwin* | mingw* | pw32* | cegcc*)
10487   version_type=windows
10488   shrext_cmds=".dll"
10489   need_version=no
10490   need_lib_prefix=no
10491
10492   case $GCC,$host_os in
10493   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10494     library_names_spec='$libname.dll.a'
10495     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10496     postinstall_cmds='base_file=`basename \${file}`~
10497       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10498       dldir=$destdir/`dirname \$dlpath`~
10499       test -d \$dldir || mkdir -p \$dldir~
10500       $install_prog $dir/$dlname \$dldir/$dlname~
10501       chmod a+x \$dldir/$dlname~
10502       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10503         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10504       fi'
10505     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10506       dlpath=$dir/\$dldll~
10507        $RM \$dlpath'
10508     shlibpath_overrides_runpath=yes
10509
10510     case $host_os in
10511     cygwin*)
10512       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10513       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10514
10515       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10516       ;;
10517     mingw* | cegcc*)
10518       # MinGW DLLs use traditional 'lib' prefix
10519       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10520       ;;
10521     pw32*)
10522       # pw32 DLLs use 'pw' prefix rather than 'lib'
10523       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10524       ;;
10525     esac
10526     ;;
10527
10528   *)
10529     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10530     ;;
10531   esac
10532   dynamic_linker='Win32 ld.exe'
10533   # FIXME: first we should search . and the directory the executable is in
10534   shlibpath_var=PATH
10535   ;;
10536
10537 darwin* | rhapsody*)
10538   dynamic_linker="$host_os dyld"
10539   version_type=darwin
10540   need_lib_prefix=no
10541   need_version=no
10542   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10543   soname_spec='${libname}${release}${major}$shared_ext'
10544   shlibpath_overrides_runpath=yes
10545   shlibpath_var=DYLD_LIBRARY_PATH
10546   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10547
10548   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10549   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10550   ;;
10551
10552 dgux*)
10553   version_type=linux
10554   need_lib_prefix=no
10555   need_version=no
10556   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10557   soname_spec='${libname}${release}${shared_ext}$major'
10558   shlibpath_var=LD_LIBRARY_PATH
10559   ;;
10560
10561 freebsd1*)
10562   dynamic_linker=no
10563   ;;
10564
10565 freebsd* | dragonfly*)
10566   # DragonFly does not have aout.  When/if they implement a new
10567   # versioning mechanism, adjust this.
10568   if test -x /usr/bin/objformat; then
10569     objformat=`/usr/bin/objformat`
10570   else
10571     case $host_os in
10572     freebsd[123]*) objformat=aout ;;
10573     *) objformat=elf ;;
10574     esac
10575   fi
10576   # Handle Gentoo/FreeBSD as it was Linux
10577   case $host_vendor in
10578     gentoo)
10579       version_type=linux ;;
10580     *)
10581       version_type=freebsd-$objformat ;;
10582   esac
10583
10584   case $version_type in
10585     freebsd-elf*)
10586       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10587       need_version=no
10588       need_lib_prefix=no
10589       ;;
10590     freebsd-*)
10591       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10592       need_version=yes
10593       ;;
10594     linux)
10595       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10596       soname_spec='${libname}${release}${shared_ext}$major'
10597       need_lib_prefix=no
10598       need_version=no
10599       ;;
10600   esac
10601   shlibpath_var=LD_LIBRARY_PATH
10602   case $host_os in
10603   freebsd2*)
10604     shlibpath_overrides_runpath=yes
10605     ;;
10606   freebsd3.[01]* | freebsdelf3.[01]*)
10607     shlibpath_overrides_runpath=yes
10608     hardcode_into_libs=yes
10609     ;;
10610   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10611   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10612     shlibpath_overrides_runpath=no
10613     hardcode_into_libs=yes
10614     ;;
10615   *) # from 4.6 on, and DragonFly
10616     shlibpath_overrides_runpath=yes
10617     hardcode_into_libs=yes
10618     ;;
10619   esac
10620   ;;
10621
10622 gnu*)
10623   version_type=linux
10624   need_lib_prefix=no
10625   need_version=no
10626   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10627   soname_spec='${libname}${release}${shared_ext}$major'
10628   shlibpath_var=LD_LIBRARY_PATH
10629   hardcode_into_libs=yes
10630   ;;
10631
10632 haiku*)
10633   version_type=linux
10634   need_lib_prefix=no
10635   need_version=no
10636   dynamic_linker="$host_os runtime_loader"
10637   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10638   soname_spec='${libname}${release}${shared_ext}$major'
10639   shlibpath_var=LIBRARY_PATH
10640   shlibpath_overrides_runpath=yes
10641   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10642   hardcode_into_libs=yes
10643   ;;
10644
10645 hpux9* | hpux10* | hpux11*)
10646   # Give a soname corresponding to the major version so that dld.sl refuses to
10647   # link against other versions.
10648   version_type=sunos
10649   need_lib_prefix=no
10650   need_version=no
10651   case $host_cpu in
10652   ia64*)
10653     shrext_cmds='.so'
10654     hardcode_into_libs=yes
10655     dynamic_linker="$host_os dld.so"
10656     shlibpath_var=LD_LIBRARY_PATH
10657     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10658     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10659     soname_spec='${libname}${release}${shared_ext}$major'
10660     if test "X$HPUX_IA64_MODE" = X32; then
10661       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10662     else
10663       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10664     fi
10665     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10666     ;;
10667   hppa*64*)
10668     shrext_cmds='.sl'
10669     hardcode_into_libs=yes
10670     dynamic_linker="$host_os dld.sl"
10671     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10672     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10673     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10674     soname_spec='${libname}${release}${shared_ext}$major'
10675     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10676     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10677     ;;
10678   *)
10679     shrext_cmds='.sl'
10680     dynamic_linker="$host_os dld.sl"
10681     shlibpath_var=SHLIB_PATH
10682     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10683     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10684     soname_spec='${libname}${release}${shared_ext}$major'
10685     ;;
10686   esac
10687   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10688   postinstall_cmds='chmod 555 $lib'
10689   # or fails outright, so override atomically:
10690   install_override_mode=555
10691   ;;
10692
10693 interix[3-9]*)
10694   version_type=linux
10695   need_lib_prefix=no
10696   need_version=no
10697   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10698   soname_spec='${libname}${release}${shared_ext}$major'
10699   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10700   shlibpath_var=LD_LIBRARY_PATH
10701   shlibpath_overrides_runpath=no
10702   hardcode_into_libs=yes
10703   ;;
10704
10705 irix5* | irix6* | nonstopux*)
10706   case $host_os in
10707     nonstopux*) version_type=nonstopux ;;
10708     *)
10709         if test "$lt_cv_prog_gnu_ld" = yes; then
10710                 version_type=linux
10711         else
10712                 version_type=irix
10713         fi ;;
10714   esac
10715   need_lib_prefix=no
10716   need_version=no
10717   soname_spec='${libname}${release}${shared_ext}$major'
10718   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10719   case $host_os in
10720   irix5* | nonstopux*)
10721     libsuff= shlibsuff=
10722     ;;
10723   *)
10724     case $LD in # libtool.m4 will add one of these switches to LD
10725     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10726       libsuff= shlibsuff= libmagic=32-bit;;
10727     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10728       libsuff=32 shlibsuff=N32 libmagic=N32;;
10729     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10730       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10731     *) libsuff= shlibsuff= libmagic=never-match;;
10732     esac
10733     ;;
10734   esac
10735   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10736   shlibpath_overrides_runpath=no
10737   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10738   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10739   hardcode_into_libs=yes
10740   ;;
10741
10742 # No shared lib support for Linux oldld, aout, or coff.
10743 linux*oldld* | linux*aout* | linux*coff*)
10744   dynamic_linker=no
10745   ;;
10746
10747 # This must be Linux ELF.
10748 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10749   version_type=linux
10750   need_lib_prefix=no
10751   need_version=no
10752   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10753   soname_spec='${libname}${release}${shared_ext}$major'
10754   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10755   shlibpath_var=LD_LIBRARY_PATH
10756   shlibpath_overrides_runpath=no
10757
10758   # Some binutils ld are patched to set DT_RUNPATH
10759   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10760   $as_echo_n "(cached) " >&6
10761 else
10762   lt_cv_shlibpath_overrides_runpath=no
10763     save_LDFLAGS=$LDFLAGS
10764     save_libdir=$libdir
10765     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10766          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10767     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10768 /* end confdefs.h.  */
10769
10770 int
10771 main ()
10772 {
10773
10774   ;
10775   return 0;
10776 }
10777 _ACEOF
10778 if ac_fn_c_try_link "$LINENO"; then :
10779   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10780   lt_cv_shlibpath_overrides_runpath=yes
10781 fi
10782 fi
10783 rm -f core conftest.err conftest.$ac_objext \
10784     conftest$ac_exeext conftest.$ac_ext
10785     LDFLAGS=$save_LDFLAGS
10786     libdir=$save_libdir
10787
10788 fi
10789
10790   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10791
10792   # This implies no fast_install, which is unacceptable.
10793   # Some rework will be needed to allow for fast_install
10794   # before this can be enabled.
10795   hardcode_into_libs=yes
10796
10797   # Append ld.so.conf contents to the search path
10798   if test -f /etc/ld.so.conf; then
10799     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' ' '`
10800     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10801   fi
10802
10803   # We used to test for /lib/ld.so.1 and disable shared libraries on
10804   # powerpc, because MkLinux only supported shared libraries with the
10805   # GNU dynamic linker.  Since this was broken with cross compilers,
10806   # most powerpc-linux boxes support dynamic linking these days and
10807   # people can always --disable-shared, the test was removed, and we
10808   # assume the GNU/Linux dynamic linker is in use.
10809   dynamic_linker='GNU/Linux ld.so'
10810   ;;
10811
10812 netbsd*)
10813   version_type=sunos
10814   need_lib_prefix=no
10815   need_version=no
10816   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10817     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10818     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10819     dynamic_linker='NetBSD (a.out) ld.so'
10820   else
10821     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10822     soname_spec='${libname}${release}${shared_ext}$major'
10823     dynamic_linker='NetBSD ld.elf_so'
10824   fi
10825   shlibpath_var=LD_LIBRARY_PATH
10826   shlibpath_overrides_runpath=yes
10827   hardcode_into_libs=yes
10828   ;;
10829
10830 newsos6)
10831   version_type=linux
10832   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10833   shlibpath_var=LD_LIBRARY_PATH
10834   shlibpath_overrides_runpath=yes
10835   ;;
10836
10837 *nto* | *qnx*)
10838   version_type=qnx
10839   need_lib_prefix=no
10840   need_version=no
10841   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10842   soname_spec='${libname}${release}${shared_ext}$major'
10843   shlibpath_var=LD_LIBRARY_PATH
10844   shlibpath_overrides_runpath=no
10845   hardcode_into_libs=yes
10846   dynamic_linker='ldqnx.so'
10847   ;;
10848
10849 openbsd*)
10850   version_type=sunos
10851   sys_lib_dlsearch_path_spec="/usr/lib"
10852   need_lib_prefix=no
10853   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10854   case $host_os in
10855     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10856     *)                          need_version=no  ;;
10857   esac
10858   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10859   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10860   shlibpath_var=LD_LIBRARY_PATH
10861   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10862     case $host_os in
10863       openbsd2.[89] | openbsd2.[89].*)
10864         shlibpath_overrides_runpath=no
10865         ;;
10866       *)
10867         shlibpath_overrides_runpath=yes
10868         ;;
10869       esac
10870   else
10871     shlibpath_overrides_runpath=yes
10872   fi
10873   ;;
10874
10875 os2*)
10876   libname_spec='$name'
10877   shrext_cmds=".dll"
10878   need_lib_prefix=no
10879   library_names_spec='$libname${shared_ext} $libname.a'
10880   dynamic_linker='OS/2 ld.exe'
10881   shlibpath_var=LIBPATH
10882   ;;
10883
10884 osf3* | osf4* | osf5*)
10885   version_type=osf
10886   need_lib_prefix=no
10887   need_version=no
10888   soname_spec='${libname}${release}${shared_ext}$major'
10889   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10890   shlibpath_var=LD_LIBRARY_PATH
10891   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10892   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10893   ;;
10894
10895 rdos*)
10896   dynamic_linker=no
10897   ;;
10898
10899 solaris*)
10900   version_type=linux
10901   need_lib_prefix=no
10902   need_version=no
10903   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10904   soname_spec='${libname}${release}${shared_ext}$major'
10905   shlibpath_var=LD_LIBRARY_PATH
10906   shlibpath_overrides_runpath=yes
10907   hardcode_into_libs=yes
10908   # ldd complains unless libraries are executable
10909   postinstall_cmds='chmod +x $lib'
10910   ;;
10911
10912 sunos4*)
10913   version_type=sunos
10914   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10915   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10916   shlibpath_var=LD_LIBRARY_PATH
10917   shlibpath_overrides_runpath=yes
10918   if test "$with_gnu_ld" = yes; then
10919     need_lib_prefix=no
10920   fi
10921   need_version=yes
10922   ;;
10923
10924 sysv4 | sysv4.3*)
10925   version_type=linux
10926   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10927   soname_spec='${libname}${release}${shared_ext}$major'
10928   shlibpath_var=LD_LIBRARY_PATH
10929   case $host_vendor in
10930     sni)
10931       shlibpath_overrides_runpath=no
10932       need_lib_prefix=no
10933       runpath_var=LD_RUN_PATH
10934       ;;
10935     siemens)
10936       need_lib_prefix=no
10937       ;;
10938     motorola)
10939       need_lib_prefix=no
10940       need_version=no
10941       shlibpath_overrides_runpath=no
10942       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10943       ;;
10944   esac
10945   ;;
10946
10947 sysv4*MP*)
10948   if test -d /usr/nec ;then
10949     version_type=linux
10950     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10951     soname_spec='$libname${shared_ext}.$major'
10952     shlibpath_var=LD_LIBRARY_PATH
10953   fi
10954   ;;
10955
10956 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10957   version_type=freebsd-elf
10958   need_lib_prefix=no
10959   need_version=no
10960   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10961   soname_spec='${libname}${release}${shared_ext}$major'
10962   shlibpath_var=LD_LIBRARY_PATH
10963   shlibpath_overrides_runpath=yes
10964   hardcode_into_libs=yes
10965   if test "$with_gnu_ld" = yes; then
10966     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10967   else
10968     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10969     case $host_os in
10970       sco3.2v5*)
10971         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10972         ;;
10973     esac
10974   fi
10975   sys_lib_dlsearch_path_spec='/usr/lib'
10976   ;;
10977
10978 tpf*)
10979   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10980   version_type=linux
10981   need_lib_prefix=no
10982   need_version=no
10983   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10984   shlibpath_var=LD_LIBRARY_PATH
10985   shlibpath_overrides_runpath=no
10986   hardcode_into_libs=yes
10987   ;;
10988
10989 uts4*)
10990   version_type=linux
10991   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10992   soname_spec='${libname}${release}${shared_ext}$major'
10993   shlibpath_var=LD_LIBRARY_PATH
10994   ;;
10995
10996 *)
10997   dynamic_linker=no
10998   ;;
10999 esac
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11001 $as_echo "$dynamic_linker" >&6; }
11002 test "$dynamic_linker" = no && can_build_shared=no
11003
11004 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11005 if test "$GCC" = yes; then
11006   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11007 fi
11008
11009 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11010   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11011 fi
11012 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11013   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11014 fi
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11108 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11109 hardcode_action=
11110 if test -n "$hardcode_libdir_flag_spec" ||
11111    test -n "$runpath_var" ||
11112    test "X$hardcode_automatic" = "Xyes" ; then
11113
11114   # We can hardcode non-existent directories.
11115   if test "$hardcode_direct" != no &&
11116      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11117      # have to relink, otherwise we might link with an installed library
11118      # when we should be linking with a yet-to-be-installed one
11119      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11120      test "$hardcode_minus_L" != no; then
11121     # Linking always hardcodes the temporary library directory.
11122     hardcode_action=relink
11123   else
11124     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11125     hardcode_action=immediate
11126   fi
11127 else
11128   # We cannot hardcode anything, or else we can only hardcode existing
11129   # directories.
11130   hardcode_action=unsupported
11131 fi
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11133 $as_echo "$hardcode_action" >&6; }
11134
11135 if test "$hardcode_action" = relink ||
11136    test "$inherit_rpath" = yes; then
11137   # Fast installation is not supported
11138   enable_fast_install=no
11139 elif test "$shlibpath_overrides_runpath" = yes ||
11140      test "$enable_shared" = no; then
11141   # Fast installation is not necessary
11142   enable_fast_install=needless
11143 fi
11144
11145
11146
11147
11148
11149
11150   if test "x$enable_dlopen" != xyes; then
11151   enable_dlopen=unknown
11152   enable_dlopen_self=unknown
11153   enable_dlopen_self_static=unknown
11154 else
11155   lt_cv_dlopen=no
11156   lt_cv_dlopen_libs=
11157
11158   case $host_os in
11159   beos*)
11160     lt_cv_dlopen="load_add_on"
11161     lt_cv_dlopen_libs=
11162     lt_cv_dlopen_self=yes
11163     ;;
11164
11165   mingw* | pw32* | cegcc*)
11166     lt_cv_dlopen="LoadLibrary"
11167     lt_cv_dlopen_libs=
11168     ;;
11169
11170   cygwin*)
11171     lt_cv_dlopen="dlopen"
11172     lt_cv_dlopen_libs=
11173     ;;
11174
11175   darwin*)
11176   # if libdl is installed we need to link against it
11177     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11178 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11179 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11180   $as_echo_n "(cached) " >&6
11181 else
11182   ac_check_lib_save_LIBS=$LIBS
11183 LIBS="-ldl  $LIBS"
11184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11185 /* end confdefs.h.  */
11186
11187 /* Override any GCC internal prototype to avoid an error.
11188    Use char because int might match the return type of a GCC
11189    builtin and then its argument prototype would still apply.  */
11190 #ifdef __cplusplus
11191 extern "C"
11192 #endif
11193 char dlopen ();
11194 int
11195 main ()
11196 {
11197 return dlopen ();
11198   ;
11199   return 0;
11200 }
11201 _ACEOF
11202 if ac_fn_c_try_link "$LINENO"; then :
11203   ac_cv_lib_dl_dlopen=yes
11204 else
11205   ac_cv_lib_dl_dlopen=no
11206 fi
11207 rm -f core conftest.err conftest.$ac_objext \
11208     conftest$ac_exeext conftest.$ac_ext
11209 LIBS=$ac_check_lib_save_LIBS
11210 fi
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11212 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11213 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11214   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11215 else
11216
11217     lt_cv_dlopen="dyld"
11218     lt_cv_dlopen_libs=
11219     lt_cv_dlopen_self=yes
11220
11221 fi
11222
11223     ;;
11224
11225   *)
11226     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11227 if test "x$ac_cv_func_shl_load" = x""yes; then :
11228   lt_cv_dlopen="shl_load"
11229 else
11230   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11231 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11232 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11233   $as_echo_n "(cached) " >&6
11234 else
11235   ac_check_lib_save_LIBS=$LIBS
11236 LIBS="-ldld  $LIBS"
11237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11238 /* end confdefs.h.  */
11239
11240 /* Override any GCC internal prototype to avoid an error.
11241    Use char because int might match the return type of a GCC
11242    builtin and then its argument prototype would still apply.  */
11243 #ifdef __cplusplus
11244 extern "C"
11245 #endif
11246 char shl_load ();
11247 int
11248 main ()
11249 {
11250 return shl_load ();
11251   ;
11252   return 0;
11253 }
11254 _ACEOF
11255 if ac_fn_c_try_link "$LINENO"; then :
11256   ac_cv_lib_dld_shl_load=yes
11257 else
11258   ac_cv_lib_dld_shl_load=no
11259 fi
11260 rm -f core conftest.err conftest.$ac_objext \
11261     conftest$ac_exeext conftest.$ac_ext
11262 LIBS=$ac_check_lib_save_LIBS
11263 fi
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11265 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11266 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11267   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11268 else
11269   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11270 if test "x$ac_cv_func_dlopen" = x""yes; then :
11271   lt_cv_dlopen="dlopen"
11272 else
11273   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11274 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11275 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11276   $as_echo_n "(cached) " >&6
11277 else
11278   ac_check_lib_save_LIBS=$LIBS
11279 LIBS="-ldl  $LIBS"
11280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11281 /* end confdefs.h.  */
11282
11283 /* Override any GCC internal prototype to avoid an error.
11284    Use char because int might match the return type of a GCC
11285    builtin and then its argument prototype would still apply.  */
11286 #ifdef __cplusplus
11287 extern "C"
11288 #endif
11289 char dlopen ();
11290 int
11291 main ()
11292 {
11293 return dlopen ();
11294   ;
11295   return 0;
11296 }
11297 _ACEOF
11298 if ac_fn_c_try_link "$LINENO"; then :
11299   ac_cv_lib_dl_dlopen=yes
11300 else
11301   ac_cv_lib_dl_dlopen=no
11302 fi
11303 rm -f core conftest.err conftest.$ac_objext \
11304     conftest$ac_exeext conftest.$ac_ext
11305 LIBS=$ac_check_lib_save_LIBS
11306 fi
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11308 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11309 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11310   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11311 else
11312   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11313 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11314 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11315   $as_echo_n "(cached) " >&6
11316 else
11317   ac_check_lib_save_LIBS=$LIBS
11318 LIBS="-lsvld  $LIBS"
11319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11320 /* end confdefs.h.  */
11321
11322 /* Override any GCC internal prototype to avoid an error.
11323    Use char because int might match the return type of a GCC
11324    builtin and then its argument prototype would still apply.  */
11325 #ifdef __cplusplus
11326 extern "C"
11327 #endif
11328 char dlopen ();
11329 int
11330 main ()
11331 {
11332 return dlopen ();
11333   ;
11334   return 0;
11335 }
11336 _ACEOF
11337 if ac_fn_c_try_link "$LINENO"; then :
11338   ac_cv_lib_svld_dlopen=yes
11339 else
11340   ac_cv_lib_svld_dlopen=no
11341 fi
11342 rm -f core conftest.err conftest.$ac_objext \
11343     conftest$ac_exeext conftest.$ac_ext
11344 LIBS=$ac_check_lib_save_LIBS
11345 fi
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11347 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11348 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11349   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11350 else
11351   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11352 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11353 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11354   $as_echo_n "(cached) " >&6
11355 else
11356   ac_check_lib_save_LIBS=$LIBS
11357 LIBS="-ldld  $LIBS"
11358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11359 /* end confdefs.h.  */
11360
11361 /* Override any GCC internal prototype to avoid an error.
11362    Use char because int might match the return type of a GCC
11363    builtin and then its argument prototype would still apply.  */
11364 #ifdef __cplusplus
11365 extern "C"
11366 #endif
11367 char dld_link ();
11368 int
11369 main ()
11370 {
11371 return dld_link ();
11372   ;
11373   return 0;
11374 }
11375 _ACEOF
11376 if ac_fn_c_try_link "$LINENO"; then :
11377   ac_cv_lib_dld_dld_link=yes
11378 else
11379   ac_cv_lib_dld_dld_link=no
11380 fi
11381 rm -f core conftest.err conftest.$ac_objext \
11382     conftest$ac_exeext conftest.$ac_ext
11383 LIBS=$ac_check_lib_save_LIBS
11384 fi
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11386 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11387 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11388   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11389 fi
11390
11391
11392 fi
11393
11394
11395 fi
11396
11397
11398 fi
11399
11400
11401 fi
11402
11403
11404 fi
11405
11406     ;;
11407   esac
11408
11409   if test "x$lt_cv_dlopen" != xno; then
11410     enable_dlopen=yes
11411   else
11412     enable_dlopen=no
11413   fi
11414
11415   case $lt_cv_dlopen in
11416   dlopen)
11417     save_CPPFLAGS="$CPPFLAGS"
11418     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11419
11420     save_LDFLAGS="$LDFLAGS"
11421     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11422
11423     save_LIBS="$LIBS"
11424     LIBS="$lt_cv_dlopen_libs $LIBS"
11425
11426     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11427 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11428 if test "${lt_cv_dlopen_self+set}" = set; then :
11429   $as_echo_n "(cached) " >&6
11430 else
11431           if test "$cross_compiling" = yes; then :
11432   lt_cv_dlopen_self=cross
11433 else
11434   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11435   lt_status=$lt_dlunknown
11436   cat > conftest.$ac_ext <<_LT_EOF
11437 #line $LINENO "configure"
11438 #include "confdefs.h"
11439
11440 #if HAVE_DLFCN_H
11441 #include <dlfcn.h>
11442 #endif
11443
11444 #include <stdio.h>
11445
11446 #ifdef RTLD_GLOBAL
11447 #  define LT_DLGLOBAL           RTLD_GLOBAL
11448 #else
11449 #  ifdef DL_GLOBAL
11450 #    define LT_DLGLOBAL         DL_GLOBAL
11451 #  else
11452 #    define LT_DLGLOBAL         0
11453 #  endif
11454 #endif
11455
11456 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11457    find out it does not work in some platform. */
11458 #ifndef LT_DLLAZY_OR_NOW
11459 #  ifdef RTLD_LAZY
11460 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11461 #  else
11462 #    ifdef DL_LAZY
11463 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11464 #    else
11465 #      ifdef RTLD_NOW
11466 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11467 #      else
11468 #        ifdef DL_NOW
11469 #          define LT_DLLAZY_OR_NOW      DL_NOW
11470 #        else
11471 #          define LT_DLLAZY_OR_NOW      0
11472 #        endif
11473 #      endif
11474 #    endif
11475 #  endif
11476 #endif
11477
11478 /* When -fvisbility=hidden is used, assume the code has been annotated
11479    correspondingly for the symbols needed.  */
11480 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11481 void fnord () __attribute__((visibility("default")));
11482 #endif
11483
11484 void fnord () { int i=42; }
11485 int main ()
11486 {
11487   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11488   int status = $lt_dlunknown;
11489
11490   if (self)
11491     {
11492       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11493       else
11494         {
11495           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11496           else puts (dlerror ());
11497         }
11498       /* dlclose (self); */
11499     }
11500   else
11501     puts (dlerror ());
11502
11503   return status;
11504 }
11505 _LT_EOF
11506   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11507   (eval $ac_link) 2>&5
11508   ac_status=$?
11509   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11510   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11511     (./conftest; exit; ) >&5 2>/dev/null
11512     lt_status=$?
11513     case x$lt_status in
11514       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11515       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11516       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11517     esac
11518   else :
11519     # compilation failed
11520     lt_cv_dlopen_self=no
11521   fi
11522 fi
11523 rm -fr conftest*
11524
11525
11526 fi
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11528 $as_echo "$lt_cv_dlopen_self" >&6; }
11529
11530     if test "x$lt_cv_dlopen_self" = xyes; then
11531       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11532       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11533 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11534 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11535   $as_echo_n "(cached) " >&6
11536 else
11537           if test "$cross_compiling" = yes; then :
11538   lt_cv_dlopen_self_static=cross
11539 else
11540   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11541   lt_status=$lt_dlunknown
11542   cat > conftest.$ac_ext <<_LT_EOF
11543 #line $LINENO "configure"
11544 #include "confdefs.h"
11545
11546 #if HAVE_DLFCN_H
11547 #include <dlfcn.h>
11548 #endif
11549
11550 #include <stdio.h>
11551
11552 #ifdef RTLD_GLOBAL
11553 #  define LT_DLGLOBAL           RTLD_GLOBAL
11554 #else
11555 #  ifdef DL_GLOBAL
11556 #    define LT_DLGLOBAL         DL_GLOBAL
11557 #  else
11558 #    define LT_DLGLOBAL         0
11559 #  endif
11560 #endif
11561
11562 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11563    find out it does not work in some platform. */
11564 #ifndef LT_DLLAZY_OR_NOW
11565 #  ifdef RTLD_LAZY
11566 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11567 #  else
11568 #    ifdef DL_LAZY
11569 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11570 #    else
11571 #      ifdef RTLD_NOW
11572 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11573 #      else
11574 #        ifdef DL_NOW
11575 #          define LT_DLLAZY_OR_NOW      DL_NOW
11576 #        else
11577 #          define LT_DLLAZY_OR_NOW      0
11578 #        endif
11579 #      endif
11580 #    endif
11581 #  endif
11582 #endif
11583
11584 /* When -fvisbility=hidden is used, assume the code has been annotated
11585    correspondingly for the symbols needed.  */
11586 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11587 void fnord () __attribute__((visibility("default")));
11588 #endif
11589
11590 void fnord () { int i=42; }
11591 int main ()
11592 {
11593   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11594   int status = $lt_dlunknown;
11595
11596   if (self)
11597     {
11598       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11599       else
11600         {
11601           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11602           else puts (dlerror ());
11603         }
11604       /* dlclose (self); */
11605     }
11606   else
11607     puts (dlerror ());
11608
11609   return status;
11610 }
11611 _LT_EOF
11612   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11613   (eval $ac_link) 2>&5
11614   ac_status=$?
11615   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11616   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11617     (./conftest; exit; ) >&5 2>/dev/null
11618     lt_status=$?
11619     case x$lt_status in
11620       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11621       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11622       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11623     esac
11624   else :
11625     # compilation failed
11626     lt_cv_dlopen_self_static=no
11627   fi
11628 fi
11629 rm -fr conftest*
11630
11631
11632 fi
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11634 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11635     fi
11636
11637     CPPFLAGS="$save_CPPFLAGS"
11638     LDFLAGS="$save_LDFLAGS"
11639     LIBS="$save_LIBS"
11640     ;;
11641   esac
11642
11643   case $lt_cv_dlopen_self in
11644   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11645   *) enable_dlopen_self=unknown ;;
11646   esac
11647
11648   case $lt_cv_dlopen_self_static in
11649   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11650   *) enable_dlopen_self_static=unknown ;;
11651   esac
11652 fi
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670 striplib=
11671 old_striplib=
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11673 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11674 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11675   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11676   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11678 $as_echo "yes" >&6; }
11679 else
11680 # FIXME - insert some real tests, host_os isn't really good enough
11681   case $host_os in
11682   darwin*)
11683     if test -n "$STRIP" ; then
11684       striplib="$STRIP -x"
11685       old_striplib="$STRIP -S"
11686       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11687 $as_echo "yes" >&6; }
11688     else
11689       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11690 $as_echo "no" >&6; }
11691     fi
11692     ;;
11693   *)
11694     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11695 $as_echo "no" >&6; }
11696     ;;
11697   esac
11698 fi
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711   # Report which library types will actually be built
11712   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11713 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11715 $as_echo "$can_build_shared" >&6; }
11716
11717   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11718 $as_echo_n "checking whether to build shared libraries... " >&6; }
11719   test "$can_build_shared" = "no" && enable_shared=no
11720
11721   # On AIX, shared libraries and static libraries use the same namespace, and
11722   # are all built from PIC.
11723   case $host_os in
11724   aix3*)
11725     test "$enable_shared" = yes && enable_static=no
11726     if test -n "$RANLIB"; then
11727       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11728       postinstall_cmds='$RANLIB $lib'
11729     fi
11730     ;;
11731
11732   aix[4-9]*)
11733     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11734       test "$enable_shared" = yes && enable_static=no
11735     fi
11736     ;;
11737   esac
11738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11739 $as_echo "$enable_shared" >&6; }
11740
11741   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11742 $as_echo_n "checking whether to build static libraries... " >&6; }
11743   # Make sure either enable_shared or enable_static is yes.
11744   test "$enable_shared" = yes || enable_static=yes
11745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11746 $as_echo "$enable_static" >&6; }
11747
11748
11749
11750
11751 fi
11752 ac_ext=c
11753 ac_cpp='$CPP $CPPFLAGS'
11754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11757
11758 CC="$lt_save_CC"
11759
11760       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11761     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11762     (test "X$CXX" != "Xg++"))) ; then
11763   ac_ext=cpp
11764 ac_cpp='$CXXCPP $CPPFLAGS'
11765 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11766 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11767 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11769 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11770 if test -z "$CXXCPP"; then
11771   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11772   $as_echo_n "(cached) " >&6
11773 else
11774       # Double quotes because CXXCPP needs to be expanded
11775     for CXXCPP in "$CXX -E" "/lib/cpp"
11776     do
11777       ac_preproc_ok=false
11778 for ac_cxx_preproc_warn_flag in '' yes
11779 do
11780   # Use a header file that comes with gcc, so configuring glibc
11781   # with a fresh cross-compiler works.
11782   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11783   # <limits.h> exists even on freestanding compilers.
11784   # On the NeXT, cc -E runs the code through the compiler's parser,
11785   # not just through cpp. "Syntax error" is here to catch this case.
11786   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11787 /* end confdefs.h.  */
11788 #ifdef __STDC__
11789 # include <limits.h>
11790 #else
11791 # include <assert.h>
11792 #endif
11793                      Syntax error
11794 _ACEOF
11795 if ac_fn_cxx_try_cpp "$LINENO"; then :
11796
11797 else
11798   # Broken: fails on valid input.
11799 continue
11800 fi
11801 rm -f conftest.err conftest.$ac_ext
11802
11803   # OK, works on sane cases.  Now check whether nonexistent headers
11804   # can be detected and how.
11805   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11806 /* end confdefs.h.  */
11807 #include <ac_nonexistent.h>
11808 _ACEOF
11809 if ac_fn_cxx_try_cpp "$LINENO"; then :
11810   # Broken: success on invalid input.
11811 continue
11812 else
11813   # Passes both tests.
11814 ac_preproc_ok=:
11815 break
11816 fi
11817 rm -f conftest.err conftest.$ac_ext
11818
11819 done
11820 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11821 rm -f conftest.err conftest.$ac_ext
11822 if $ac_preproc_ok; then :
11823   break
11824 fi
11825
11826     done
11827     ac_cv_prog_CXXCPP=$CXXCPP
11828
11829 fi
11830   CXXCPP=$ac_cv_prog_CXXCPP
11831 else
11832   ac_cv_prog_CXXCPP=$CXXCPP
11833 fi
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11835 $as_echo "$CXXCPP" >&6; }
11836 ac_preproc_ok=false
11837 for ac_cxx_preproc_warn_flag in '' yes
11838 do
11839   # Use a header file that comes with gcc, so configuring glibc
11840   # with a fresh cross-compiler works.
11841   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11842   # <limits.h> exists even on freestanding compilers.
11843   # On the NeXT, cc -E runs the code through the compiler's parser,
11844   # not just through cpp. "Syntax error" is here to catch this case.
11845   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11846 /* end confdefs.h.  */
11847 #ifdef __STDC__
11848 # include <limits.h>
11849 #else
11850 # include <assert.h>
11851 #endif
11852                      Syntax error
11853 _ACEOF
11854 if ac_fn_cxx_try_cpp "$LINENO"; then :
11855
11856 else
11857   # Broken: fails on valid input.
11858 continue
11859 fi
11860 rm -f conftest.err conftest.$ac_ext
11861
11862   # OK, works on sane cases.  Now check whether nonexistent headers
11863   # can be detected and how.
11864   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11865 /* end confdefs.h.  */
11866 #include <ac_nonexistent.h>
11867 _ACEOF
11868 if ac_fn_cxx_try_cpp "$LINENO"; then :
11869   # Broken: success on invalid input.
11870 continue
11871 else
11872   # Passes both tests.
11873 ac_preproc_ok=:
11874 break
11875 fi
11876 rm -f conftest.err conftest.$ac_ext
11877
11878 done
11879 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11880 rm -f conftest.err conftest.$ac_ext
11881 if $ac_preproc_ok; then :
11882
11883 else
11884   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11885 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11886 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
11887 See \`config.log' for more details." "$LINENO" 5; }
11888 fi
11889
11890 ac_ext=c
11891 ac_cpp='$CPP $CPPFLAGS'
11892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11895
11896 else
11897   _lt_caught_CXX_error=yes
11898 fi
11899
11900 ac_ext=cpp
11901 ac_cpp='$CXXCPP $CPPFLAGS'
11902 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11903 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11904 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11905
11906 archive_cmds_need_lc_CXX=no
11907 allow_undefined_flag_CXX=
11908 always_export_symbols_CXX=no
11909 archive_expsym_cmds_CXX=
11910 compiler_needs_object_CXX=no
11911 export_dynamic_flag_spec_CXX=
11912 hardcode_direct_CXX=no
11913 hardcode_direct_absolute_CXX=no
11914 hardcode_libdir_flag_spec_CXX=
11915 hardcode_libdir_flag_spec_ld_CXX=
11916 hardcode_libdir_separator_CXX=
11917 hardcode_minus_L_CXX=no
11918 hardcode_shlibpath_var_CXX=unsupported
11919 hardcode_automatic_CXX=no
11920 inherit_rpath_CXX=no
11921 module_cmds_CXX=
11922 module_expsym_cmds_CXX=
11923 link_all_deplibs_CXX=unknown
11924 old_archive_cmds_CXX=$old_archive_cmds
11925 reload_flag_CXX=$reload_flag
11926 reload_cmds_CXX=$reload_cmds
11927 no_undefined_flag_CXX=
11928 whole_archive_flag_spec_CXX=
11929 enable_shared_with_static_runtimes_CXX=no
11930
11931 # Source file extension for C++ test sources.
11932 ac_ext=cpp
11933
11934 # Object file extension for compiled C++ test sources.
11935 objext=o
11936 objext_CXX=$objext
11937
11938 # No sense in running all these tests if we already determined that
11939 # the CXX compiler isn't working.  Some variables (like enable_shared)
11940 # are currently assumed to apply to all compilers on this platform,
11941 # and will be corrupted by setting them based on a non-working compiler.
11942 if test "$_lt_caught_CXX_error" != yes; then
11943   # Code to be used in simple compile tests
11944   lt_simple_compile_test_code="int some_variable = 0;"
11945
11946   # Code to be used in simple link tests
11947   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11948
11949   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11950
11951
11952
11953
11954
11955
11956 # If no C compiler was specified, use CC.
11957 LTCC=${LTCC-"$CC"}
11958
11959 # If no C compiler flags were specified, use CFLAGS.
11960 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11961
11962 # Allow CC to be a program name with arguments.
11963 compiler=$CC
11964
11965
11966   # save warnings/boilerplate of simple test code
11967   ac_outfile=conftest.$ac_objext
11968 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11969 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11970 _lt_compiler_boilerplate=`cat conftest.err`
11971 $RM conftest*
11972
11973   ac_outfile=conftest.$ac_objext
11974 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11975 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11976 _lt_linker_boilerplate=`cat conftest.err`
11977 $RM -r conftest*
11978
11979
11980   # Allow CC to be a program name with arguments.
11981   lt_save_CC=$CC
11982   lt_save_LD=$LD
11983   lt_save_GCC=$GCC
11984   GCC=$GXX
11985   lt_save_with_gnu_ld=$with_gnu_ld
11986   lt_save_path_LD=$lt_cv_path_LD
11987   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11988     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11989   else
11990     $as_unset lt_cv_prog_gnu_ld
11991   fi
11992   if test -n "${lt_cv_path_LDCXX+set}"; then
11993     lt_cv_path_LD=$lt_cv_path_LDCXX
11994   else
11995     $as_unset lt_cv_path_LD
11996   fi
11997   test -z "${LDCXX+set}" || LD=$LDCXX
11998   CC=${CXX-"c++"}
11999   compiler=$CC
12000   compiler_CXX=$CC
12001   for cc_temp in $compiler""; do
12002   case $cc_temp in
12003     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12004     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12005     \-*) ;;
12006     *) break;;
12007   esac
12008 done
12009 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12010
12011
12012   if test -n "$compiler"; then
12013     # We don't want -fno-exception when compiling C++ code, so set the
12014     # no_builtin_flag separately
12015     if test "$GXX" = yes; then
12016       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12017     else
12018       lt_prog_compiler_no_builtin_flag_CXX=
12019     fi
12020
12021     if test "$GXX" = yes; then
12022       # Set up default GNU C++ configuration
12023
12024
12025
12026 # Check whether --with-gnu-ld was given.
12027 if test "${with_gnu_ld+set}" = set; then :
12028   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12029 else
12030   with_gnu_ld=no
12031 fi
12032
12033 ac_prog=ld
12034 if test "$GCC" = yes; then
12035   # Check if gcc -print-prog-name=ld gives a path.
12036   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12037 $as_echo_n "checking for ld used by $CC... " >&6; }
12038   case $host in
12039   *-*-mingw*)
12040     # gcc leaves a trailing carriage return which upsets mingw
12041     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12042   *)
12043     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12044   esac
12045   case $ac_prog in
12046     # Accept absolute paths.
12047     [\\/]* | ?:[\\/]*)
12048       re_direlt='/[^/][^/]*/\.\./'
12049       # Canonicalize the pathname of ld
12050       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12051       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12052         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12053       done
12054       test -z "$LD" && LD="$ac_prog"
12055       ;;
12056   "")
12057     # If it fails, then pretend we aren't using GCC.
12058     ac_prog=ld
12059     ;;
12060   *)
12061     # If it is relative, then search for the first ld in PATH.
12062     with_gnu_ld=unknown
12063     ;;
12064   esac
12065 elif test "$with_gnu_ld" = yes; then
12066   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12067 $as_echo_n "checking for GNU ld... " >&6; }
12068 else
12069   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12070 $as_echo_n "checking for non-GNU ld... " >&6; }
12071 fi
12072 if test "${lt_cv_path_LD+set}" = set; then :
12073   $as_echo_n "(cached) " >&6
12074 else
12075   if test -z "$LD"; then
12076   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12077   for ac_dir in $PATH; do
12078     IFS="$lt_save_ifs"
12079     test -z "$ac_dir" && ac_dir=.
12080     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12081       lt_cv_path_LD="$ac_dir/$ac_prog"
12082       # Check to see if the program is GNU ld.  I'd rather use --version,
12083       # but apparently some variants of GNU ld only accept -v.
12084       # Break only if it was the GNU/non-GNU ld that we prefer.
12085       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12086       *GNU* | *'with BFD'*)
12087         test "$with_gnu_ld" != no && break
12088         ;;
12089       *)
12090         test "$with_gnu_ld" != yes && break
12091         ;;
12092       esac
12093     fi
12094   done
12095   IFS="$lt_save_ifs"
12096 else
12097   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12098 fi
12099 fi
12100
12101 LD="$lt_cv_path_LD"
12102 if test -n "$LD"; then
12103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12104 $as_echo "$LD" >&6; }
12105 else
12106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12107 $as_echo "no" >&6; }
12108 fi
12109 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12111 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12112 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12113   $as_echo_n "(cached) " >&6
12114 else
12115   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12116 case `$LD -v 2>&1 </dev/null` in
12117 *GNU* | *'with BFD'*)
12118   lt_cv_prog_gnu_ld=yes
12119   ;;
12120 *)
12121   lt_cv_prog_gnu_ld=no
12122   ;;
12123 esac
12124 fi
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12126 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12127 with_gnu_ld=$lt_cv_prog_gnu_ld
12128
12129
12130
12131
12132
12133
12134
12135       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12136       # archiving commands below assume that GNU ld is being used.
12137       if test "$with_gnu_ld" = yes; then
12138         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12139         archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12140
12141         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12142         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12143
12144         # If archive_cmds runs LD, not CC, wlarc should be empty
12145         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12146         #     investigate it a little bit more. (MM)
12147         wlarc='${wl}'
12148
12149         # ancient GNU ld didn't support --whole-archive et. al.
12150         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12151           $GREP 'no-whole-archive' > /dev/null; then
12152           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12153         else
12154           whole_archive_flag_spec_CXX=
12155         fi
12156       else
12157         with_gnu_ld=no
12158         wlarc=
12159
12160         # A generic and very simple default shared library creation
12161         # command for GNU C++ for the case where it uses the native
12162         # linker, instead of GNU ld.  If possible, this setting should
12163         # overridden to take advantage of the native linker features on
12164         # the platform it is being used on.
12165         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12166       fi
12167
12168       # Commands to make compiler produce verbose output that lists
12169       # what "hidden" libraries, object files and flags are used when
12170       # linking a shared library.
12171       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12172
12173     else
12174       GXX=no
12175       with_gnu_ld=no
12176       wlarc=
12177     fi
12178
12179     # PORTME: fill in a description of your system's C++ link characteristics
12180     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12181 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12182     ld_shlibs_CXX=yes
12183     case $host_os in
12184       aix3*)
12185         # FIXME: insert proper C++ library support
12186         ld_shlibs_CXX=no
12187         ;;
12188       aix[4-9]*)
12189         if test "$host_cpu" = ia64; then
12190           # On IA64, the linker does run time linking by default, so we don't
12191           # have to do anything special.
12192           aix_use_runtimelinking=no
12193           exp_sym_flag='-Bexport'
12194           no_entry_flag=""
12195         else
12196           aix_use_runtimelinking=no
12197
12198           # Test if we are trying to use run time linking or normal
12199           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12200           # need to do runtime linking.
12201           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12202             for ld_flag in $LDFLAGS; do
12203               case $ld_flag in
12204               *-brtl*)
12205                 aix_use_runtimelinking=yes
12206                 break
12207                 ;;
12208               esac
12209             done
12210             ;;
12211           esac
12212
12213           exp_sym_flag='-bexport'
12214           no_entry_flag='-bnoentry'
12215         fi
12216
12217         # When large executables or shared objects are built, AIX ld can
12218         # have problems creating the table of contents.  If linking a library
12219         # or program results in "error TOC overflow" add -mminimal-toc to
12220         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12221         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12222
12223         archive_cmds_CXX=''
12224         hardcode_direct_CXX=yes
12225         hardcode_direct_absolute_CXX=yes
12226         hardcode_libdir_separator_CXX=':'
12227         link_all_deplibs_CXX=yes
12228         file_list_spec_CXX='${wl}-f,'
12229
12230         if test "$GXX" = yes; then
12231           case $host_os in aix4.[012]|aix4.[012].*)
12232           # We only want to do this on AIX 4.2 and lower, the check
12233           # below for broken collect2 doesn't work under 4.3+
12234           collect2name=`${CC} -print-prog-name=collect2`
12235           if test -f "$collect2name" &&
12236              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12237           then
12238             # We have reworked collect2
12239             :
12240           else
12241             # We have old collect2
12242             hardcode_direct_CXX=unsupported
12243             # It fails to find uninstalled libraries when the uninstalled
12244             # path is not listed in the libpath.  Setting hardcode_minus_L
12245             # to unsupported forces relinking
12246             hardcode_minus_L_CXX=yes
12247             hardcode_libdir_flag_spec_CXX='-L$libdir'
12248             hardcode_libdir_separator_CXX=
12249           fi
12250           esac
12251           shared_flag='-shared'
12252           if test "$aix_use_runtimelinking" = yes; then
12253             shared_flag="$shared_flag "'${wl}-G'
12254           fi
12255         else
12256           # not using gcc
12257           if test "$host_cpu" = ia64; then
12258           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12259           # chokes on -Wl,-G. The following line is correct:
12260           shared_flag='-G'
12261           else
12262             if test "$aix_use_runtimelinking" = yes; then
12263               shared_flag='${wl}-G'
12264             else
12265               shared_flag='${wl}-bM:SRE'
12266             fi
12267           fi
12268         fi
12269
12270         export_dynamic_flag_spec_CXX='${wl}-bexpall'
12271         # It seems that -bexpall does not export symbols beginning with
12272         # underscore (_), so it is better to generate a list of symbols to
12273         # export.
12274         always_export_symbols_CXX=yes
12275         if test "$aix_use_runtimelinking" = yes; then
12276           # Warning - without using the other runtime loading flags (-brtl),
12277           # -berok will link without error, but may produce a broken library.
12278           allow_undefined_flag_CXX='-berok'
12279           # Determine the default libpath from the value encoded in an empty
12280           # executable.
12281           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12282 /* end confdefs.h.  */
12283
12284 int
12285 main ()
12286 {
12287
12288   ;
12289   return 0;
12290 }
12291 _ACEOF
12292 if ac_fn_cxx_try_link "$LINENO"; then :
12293
12294 lt_aix_libpath_sed='
12295     /Import File Strings/,/^$/ {
12296         /^0/ {
12297             s/^0  *\(.*\)$/\1/
12298             p
12299         }
12300     }'
12301 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12302 # Check for a 64-bit object if we didn't find anything.
12303 if test -z "$aix_libpath"; then
12304   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12305 fi
12306 fi
12307 rm -f core conftest.err conftest.$ac_objext \
12308     conftest$ac_exeext conftest.$ac_ext
12309 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12310
12311           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12312
12313           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"
12314         else
12315           if test "$host_cpu" = ia64; then
12316             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12317             allow_undefined_flag_CXX="-z nodefs"
12318             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"
12319           else
12320             # Determine the default libpath from the value encoded in an
12321             # empty executable.
12322             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12323 /* end confdefs.h.  */
12324
12325 int
12326 main ()
12327 {
12328
12329   ;
12330   return 0;
12331 }
12332 _ACEOF
12333 if ac_fn_cxx_try_link "$LINENO"; then :
12334
12335 lt_aix_libpath_sed='
12336     /Import File Strings/,/^$/ {
12337         /^0/ {
12338             s/^0  *\(.*\)$/\1/
12339             p
12340         }
12341     }'
12342 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12343 # Check for a 64-bit object if we didn't find anything.
12344 if test -z "$aix_libpath"; then
12345   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12346 fi
12347 fi
12348 rm -f core conftest.err conftest.$ac_objext \
12349     conftest$ac_exeext conftest.$ac_ext
12350 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12351
12352             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12353             # Warning - without using the other run time loading flags,
12354             # -berok will link without error, but may produce a broken library.
12355             no_undefined_flag_CXX=' ${wl}-bernotok'
12356             allow_undefined_flag_CXX=' ${wl}-berok'
12357             if test "$with_gnu_ld" = yes; then
12358               # We only use this code for GNU lds that support --whole-archive.
12359               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12360             else
12361               # Exported symbols can be pulled into shared objects from archives
12362               whole_archive_flag_spec_CXX='$convenience'
12363             fi
12364             archive_cmds_need_lc_CXX=yes
12365             # This is similar to how AIX traditionally builds its shared
12366             # libraries.
12367             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'
12368           fi
12369         fi
12370         ;;
12371
12372       beos*)
12373         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12374           allow_undefined_flag_CXX=unsupported
12375           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12376           # support --undefined.  This deserves some investigation.  FIXME
12377           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12378         else
12379           ld_shlibs_CXX=no
12380         fi
12381         ;;
12382
12383       chorus*)
12384         case $cc_basename in
12385           *)
12386           # FIXME: insert proper C++ library support
12387           ld_shlibs_CXX=no
12388           ;;
12389         esac
12390         ;;
12391
12392       cygwin* | mingw* | pw32* | cegcc*)
12393         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12394         # as there is no search path for DLLs.
12395         hardcode_libdir_flag_spec_CXX='-L$libdir'
12396         export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12397         allow_undefined_flag_CXX=unsupported
12398         always_export_symbols_CXX=no
12399         enable_shared_with_static_runtimes_CXX=yes
12400
12401         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12402           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'
12403           # If the export-symbols file already is a .def file (1st line
12404           # is EXPORTS), use it as is; otherwise, prepend...
12405           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12406             cp $export_symbols $output_objdir/$soname.def;
12407           else
12408             echo EXPORTS > $output_objdir/$soname.def;
12409             cat $export_symbols >> $output_objdir/$soname.def;
12410           fi~
12411           $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'
12412         else
12413           ld_shlibs_CXX=no
12414         fi
12415         ;;
12416       darwin* | rhapsody*)
12417
12418
12419   archive_cmds_need_lc_CXX=no
12420   hardcode_direct_CXX=no
12421   hardcode_automatic_CXX=yes
12422   hardcode_shlibpath_var_CXX=unsupported
12423   if test "$lt_cv_ld_force_load" = "yes"; then
12424     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\"`'
12425   else
12426     whole_archive_flag_spec_CXX=''
12427   fi
12428   link_all_deplibs_CXX=yes
12429   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12430   case $cc_basename in
12431      ifort*) _lt_dar_can_shared=yes ;;
12432      *) _lt_dar_can_shared=$GCC ;;
12433   esac
12434   if test "$_lt_dar_can_shared" = "yes"; then
12435     output_verbose_link_cmd=func_echo_all
12436     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}"
12437     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12438     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}"
12439     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}"
12440        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12441       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}"
12442       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}"
12443     fi
12444
12445   else
12446   ld_shlibs_CXX=no
12447   fi
12448
12449         ;;
12450
12451       dgux*)
12452         case $cc_basename in
12453           ec++*)
12454             # FIXME: insert proper C++ library support
12455             ld_shlibs_CXX=no
12456             ;;
12457           ghcx*)
12458             # Green Hills C++ Compiler
12459             # FIXME: insert proper C++ library support
12460             ld_shlibs_CXX=no
12461             ;;
12462           *)
12463             # FIXME: insert proper C++ library support
12464             ld_shlibs_CXX=no
12465             ;;
12466         esac
12467         ;;
12468
12469       freebsd[12]*)
12470         # C++ shared libraries reported to be fairly broken before
12471         # switch to ELF
12472         ld_shlibs_CXX=no
12473         ;;
12474
12475       freebsd-elf*)
12476         archive_cmds_need_lc_CXX=no
12477         ;;
12478
12479       freebsd* | dragonfly*)
12480         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12481         # conventions
12482         ld_shlibs_CXX=yes
12483         ;;
12484
12485       gnu*)
12486         ;;
12487
12488       haiku*)
12489         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12490         link_all_deplibs_CXX=yes
12491         ;;
12492
12493       hpux9*)
12494         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12495         hardcode_libdir_separator_CXX=:
12496         export_dynamic_flag_spec_CXX='${wl}-E'
12497         hardcode_direct_CXX=yes
12498         hardcode_minus_L_CXX=yes # Not in the search PATH,
12499                                              # but as the default
12500                                              # location of the library.
12501
12502         case $cc_basename in
12503           CC*)
12504             # FIXME: insert proper C++ library support
12505             ld_shlibs_CXX=no
12506             ;;
12507           aCC*)
12508             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'
12509             # Commands to make compiler produce verbose output that lists
12510             # what "hidden" libraries, object files and flags are used when
12511             # linking a shared library.
12512             #
12513             # There doesn't appear to be a way to prevent this compiler from
12514             # explicitly linking system object files so we need to strip them
12515             # from the output so that they don't get included in the library
12516             # dependencies.
12517             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"'
12518             ;;
12519           *)
12520             if test "$GXX" = yes; then
12521               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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'
12522             else
12523               # FIXME: insert proper C++ library support
12524               ld_shlibs_CXX=no
12525             fi
12526             ;;
12527         esac
12528         ;;
12529
12530       hpux10*|hpux11*)
12531         if test $with_gnu_ld = no; then
12532           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12533           hardcode_libdir_separator_CXX=:
12534
12535           case $host_cpu in
12536             hppa*64*|ia64*)
12537               ;;
12538             *)
12539               export_dynamic_flag_spec_CXX='${wl}-E'
12540               ;;
12541           esac
12542         fi
12543         case $host_cpu in
12544           hppa*64*|ia64*)
12545             hardcode_direct_CXX=no
12546             hardcode_shlibpath_var_CXX=no
12547             ;;
12548           *)
12549             hardcode_direct_CXX=yes
12550             hardcode_direct_absolute_CXX=yes
12551             hardcode_minus_L_CXX=yes # Not in the search PATH,
12552                                                  # but as the default
12553                                                  # location of the library.
12554             ;;
12555         esac
12556
12557         case $cc_basename in
12558           CC*)
12559             # FIXME: insert proper C++ library support
12560             ld_shlibs_CXX=no
12561             ;;
12562           aCC*)
12563             case $host_cpu in
12564               hppa*64*)
12565                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12566                 ;;
12567               ia64*)
12568                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12569                 ;;
12570               *)
12571                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12572                 ;;
12573             esac
12574             # Commands to make compiler produce verbose output that lists
12575             # what "hidden" libraries, object files and flags are used when
12576             # linking a shared library.
12577             #
12578             # There doesn't appear to be a way to prevent this compiler from
12579             # explicitly linking system object files so we need to strip them
12580             # from the output so that they don't get included in the library
12581             # dependencies.
12582             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"'
12583             ;;
12584           *)
12585             if test "$GXX" = yes; then
12586               if test $with_gnu_ld = no; then
12587                 case $host_cpu in
12588                   hppa*64*)
12589                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12590                     ;;
12591                   ia64*)
12592                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12593                     ;;
12594                   *)
12595                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12596                     ;;
12597                 esac
12598               fi
12599             else
12600               # FIXME: insert proper C++ library support
12601               ld_shlibs_CXX=no
12602             fi
12603             ;;
12604         esac
12605         ;;
12606
12607       interix[3-9]*)
12608         hardcode_direct_CXX=no
12609         hardcode_shlibpath_var_CXX=no
12610         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12611         export_dynamic_flag_spec_CXX='${wl}-E'
12612         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12613         # Instead, shared libraries are loaded at an image base (0x10000000 by
12614         # default) and relocated if they conflict, which is a slow very memory
12615         # consuming and fragmenting process.  To avoid this, we pick a random,
12616         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12617         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12618         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'
12619         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'
12620         ;;
12621       irix5* | irix6*)
12622         case $cc_basename in
12623           CC*)
12624             # SGI C++
12625             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'
12626
12627             # Archives containing C++ object files must be created using
12628             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12629             # necessary to make sure instantiated templates are included
12630             # in the archive.
12631             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12632             ;;
12633           *)
12634             if test "$GXX" = yes; then
12635               if test "$with_gnu_ld" = no; then
12636                 archive_cmds_CXX='$CC -shared -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'
12637               else
12638                 archive_cmds_CXX='$CC -shared -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'
12639               fi
12640             fi
12641             link_all_deplibs_CXX=yes
12642             ;;
12643         esac
12644         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12645         hardcode_libdir_separator_CXX=:
12646         inherit_rpath_CXX=yes
12647         ;;
12648
12649       linux* | k*bsd*-gnu | kopensolaris*-gnu)
12650         case $cc_basename in
12651           KCC*)
12652             # Kuck and Associates, Inc. (KAI) C++ Compiler
12653
12654             # KCC will only create a shared library if the output file
12655             # ends with ".so" (or ".sl" for HP-UX), so rename the library
12656             # to its proper name (with version) after linking.
12657             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'
12658             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'
12659             # Commands to make compiler produce verbose output that lists
12660             # what "hidden" libraries, object files and flags are used when
12661             # linking a shared library.
12662             #
12663             # There doesn't appear to be a way to prevent this compiler from
12664             # explicitly linking system object files so we need to strip them
12665             # from the output so that they don't get included in the library
12666             # dependencies.
12667             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"'
12668
12669             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12670             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12671
12672             # Archives containing C++ object files must be created using
12673             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12674             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12675             ;;
12676           icpc* | ecpc* )
12677             # Intel C++
12678             with_gnu_ld=yes
12679             # version 8.0 and above of icpc choke on multiply defined symbols
12680             # if we add $predep_objects and $postdep_objects, however 7.1 and
12681             # earlier do not add the objects themselves.
12682             case `$CC -V 2>&1` in
12683               *"Version 7."*)
12684                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12685                 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'
12686                 ;;
12687               *)  # Version 8.0 or newer
12688                 tmp_idyn=
12689                 case $host_cpu in
12690                   ia64*) tmp_idyn=' -i_dynamic';;
12691                 esac
12692                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12693                 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'
12694                 ;;
12695             esac
12696             archive_cmds_need_lc_CXX=no
12697             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12698             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12699             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12700             ;;
12701           pgCC* | pgcpp*)
12702             # Portland Group C++ compiler
12703             case `$CC -V` in
12704             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12705               prelink_cmds_CXX='tpldir=Template.dir~
12706                 rm -rf $tpldir~
12707                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12708                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12709               old_archive_cmds_CXX='tpldir=Template.dir~
12710                 rm -rf $tpldir~
12711                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12712                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12713                 $RANLIB $oldlib'
12714               archive_cmds_CXX='tpldir=Template.dir~
12715                 rm -rf $tpldir~
12716                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12717                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12718               archive_expsym_cmds_CXX='tpldir=Template.dir~
12719                 rm -rf $tpldir~
12720                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12721                 $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'
12722               ;;
12723             *) # Version 6 and above use weak symbols
12724               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12725               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'
12726               ;;
12727             esac
12728
12729             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12730             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12731             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'
12732             ;;
12733           cxx*)
12734             # Compaq C++
12735             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12736             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'
12737
12738             runpath_var=LD_RUN_PATH
12739             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12740             hardcode_libdir_separator_CXX=:
12741
12742             # Commands to make compiler produce verbose output that lists
12743             # what "hidden" libraries, object files and flags are used when
12744             # linking a shared library.
12745             #
12746             # There doesn't appear to be a way to prevent this compiler from
12747             # explicitly linking system object files so we need to strip them
12748             # from the output so that they don't get included in the library
12749             # dependencies.
12750             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'
12751             ;;
12752           xl* | mpixl* | bgxl*)
12753             # IBM XL 8.0 on PPC, with GNU ld
12754             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12755             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12756             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12757             if test "x$supports_anon_versioning" = xyes; then
12758               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12759                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12760                 echo "local: *; };" >> $output_objdir/$libname.ver~
12761                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12762             fi
12763             ;;
12764           *)
12765             case `$CC -V 2>&1 | sed 5q` in
12766             *Sun\ C*)
12767               # Sun C++ 5.9
12768               no_undefined_flag_CXX=' -zdefs'
12769               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12770               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'
12771               hardcode_libdir_flag_spec_CXX='-R$libdir'
12772               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'
12773               compiler_needs_object_CXX=yes
12774
12775               # Not sure whether something based on
12776               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12777               # would be better.
12778               output_verbose_link_cmd='func_echo_all'
12779
12780               # Archives containing C++ object files must be created using
12781               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12782               # necessary to make sure instantiated templates are included
12783               # in the archive.
12784               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12785               ;;
12786             esac
12787             ;;
12788         esac
12789         ;;
12790
12791       lynxos*)
12792         # FIXME: insert proper C++ library support
12793         ld_shlibs_CXX=no
12794         ;;
12795
12796       m88k*)
12797         # FIXME: insert proper C++ library support
12798         ld_shlibs_CXX=no
12799         ;;
12800
12801       mvs*)
12802         case $cc_basename in
12803           cxx*)
12804             # FIXME: insert proper C++ library support
12805             ld_shlibs_CXX=no
12806             ;;
12807           *)
12808             # FIXME: insert proper C++ library support
12809             ld_shlibs_CXX=no
12810             ;;
12811         esac
12812         ;;
12813
12814       netbsd*)
12815         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12816           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12817           wlarc=
12818           hardcode_libdir_flag_spec_CXX='-R$libdir'
12819           hardcode_direct_CXX=yes
12820           hardcode_shlibpath_var_CXX=no
12821         fi
12822         # Workaround some broken pre-1.5 toolchains
12823         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12824         ;;
12825
12826       *nto* | *qnx*)
12827         ld_shlibs_CXX=yes
12828         ;;
12829
12830       openbsd2*)
12831         # C++ shared libraries are fairly broken
12832         ld_shlibs_CXX=no
12833         ;;
12834
12835       openbsd*)
12836         if test -f /usr/libexec/ld.so; then
12837           hardcode_direct_CXX=yes
12838           hardcode_shlibpath_var_CXX=no
12839           hardcode_direct_absolute_CXX=yes
12840           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12841           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12842           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12843             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12844             export_dynamic_flag_spec_CXX='${wl}-E'
12845             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12846           fi
12847           output_verbose_link_cmd=func_echo_all
12848         else
12849           ld_shlibs_CXX=no
12850         fi
12851         ;;
12852
12853       osf3* | osf4* | osf5*)
12854         case $cc_basename in
12855           KCC*)
12856             # Kuck and Associates, Inc. (KAI) C++ Compiler
12857
12858             # KCC will only create a shared library if the output file
12859             # ends with ".so" (or ".sl" for HP-UX), so rename the library
12860             # to its proper name (with version) after linking.
12861             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'
12862
12863             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12864             hardcode_libdir_separator_CXX=:
12865
12866             # Archives containing C++ object files must be created using
12867             # the KAI C++ compiler.
12868             case $host in
12869               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12870               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12871             esac
12872             ;;
12873           RCC*)
12874             # Rational C++ 2.4.1
12875             # FIXME: insert proper C++ library support
12876             ld_shlibs_CXX=no
12877             ;;
12878           cxx*)
12879             case $host in
12880               osf3*)
12881                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12882                 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'
12883                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12884                 ;;
12885               *)
12886                 allow_undefined_flag_CXX=' -expect_unresolved \*'
12887                 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'
12888                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12889                   echo "-hidden">> $lib.exp~
12890                   $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~
12891                   $RM $lib.exp'
12892                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12893                 ;;
12894             esac
12895
12896             hardcode_libdir_separator_CXX=:
12897
12898             # Commands to make compiler produce verbose output that lists
12899             # what "hidden" libraries, object files and flags are used when
12900             # linking a shared library.
12901             #
12902             # There doesn't appear to be a way to prevent this compiler from
12903             # explicitly linking system object files so we need to strip them
12904             # from the output so that they don't get included in the library
12905             # dependencies.
12906             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"'
12907             ;;
12908           *)
12909             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12910               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12911               case $host in
12912                 osf3*)
12913                   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'
12914                   ;;
12915                 *)
12916                   archive_cmds_CXX='$CC -shared -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'
12917                   ;;
12918               esac
12919
12920               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12921               hardcode_libdir_separator_CXX=:
12922
12923               # Commands to make compiler produce verbose output that lists
12924               # what "hidden" libraries, object files and flags are used when
12925               # linking a shared library.
12926               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12927
12928             else
12929               # FIXME: insert proper C++ library support
12930               ld_shlibs_CXX=no
12931             fi
12932             ;;
12933         esac
12934         ;;
12935
12936       psos*)
12937         # FIXME: insert proper C++ library support
12938         ld_shlibs_CXX=no
12939         ;;
12940
12941       sunos4*)
12942         case $cc_basename in
12943           CC*)
12944             # Sun C++ 4.x
12945             # FIXME: insert proper C++ library support
12946             ld_shlibs_CXX=no
12947             ;;
12948           lcc*)
12949             # Lucid
12950             # FIXME: insert proper C++ library support
12951             ld_shlibs_CXX=no
12952             ;;
12953           *)
12954             # FIXME: insert proper C++ library support
12955             ld_shlibs_CXX=no
12956             ;;
12957         esac
12958         ;;
12959
12960       solaris*)
12961         case $cc_basename in
12962           CC* | sunCC*)
12963             # Sun C++ 4.2, 5.x and Centerline C++
12964             archive_cmds_need_lc_CXX=yes
12965             no_undefined_flag_CXX=' -zdefs'
12966             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12967             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12968               $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'
12969
12970             hardcode_libdir_flag_spec_CXX='-R$libdir'
12971             hardcode_shlibpath_var_CXX=no
12972             case $host_os in
12973               solaris2.[0-5] | solaris2.[0-5].*) ;;
12974               *)
12975                 # The compiler driver will combine and reorder linker options,
12976                 # but understands `-z linker_flag'.
12977                 # Supported since Solaris 2.6 (maybe 2.5.1?)
12978                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12979                 ;;
12980             esac
12981             link_all_deplibs_CXX=yes
12982
12983             output_verbose_link_cmd='func_echo_all'
12984
12985             # Archives containing C++ object files must be created using
12986             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12987             # necessary to make sure instantiated templates are included
12988             # in the archive.
12989             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12990             ;;
12991           gcx*)
12992             # Green Hills C++ Compiler
12993             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12994
12995             # The C++ compiler must be used to create the archive.
12996             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12997             ;;
12998           *)
12999             # GNU C++ compiler with Solaris linker
13000             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13001               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13002               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13003                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13004                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13005                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13006
13007                 # Commands to make compiler produce verbose output that lists
13008                 # what "hidden" libraries, object files and flags are used when
13009                 # linking a shared library.
13010                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13011               else
13012                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13013                 # platform.
13014                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13015                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13016                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13017
13018                 # Commands to make compiler produce verbose output that lists
13019                 # what "hidden" libraries, object files and flags are used when
13020                 # linking a shared library.
13021                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13022               fi
13023
13024               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13025               case $host_os in
13026                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13027                 *)
13028                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13029                   ;;
13030               esac
13031             fi
13032             ;;
13033         esac
13034         ;;
13035
13036     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13037       no_undefined_flag_CXX='${wl}-z,text'
13038       archive_cmds_need_lc_CXX=no
13039       hardcode_shlibpath_var_CXX=no
13040       runpath_var='LD_RUN_PATH'
13041
13042       case $cc_basename in
13043         CC*)
13044           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13045           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13046           ;;
13047         *)
13048           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13049           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13050           ;;
13051       esac
13052       ;;
13053
13054       sysv5* | sco3.2v5* | sco5v6*)
13055         # Note: We can NOT use -z defs as we might desire, because we do not
13056         # link with -lc, and that would cause any symbols used from libc to
13057         # always be unresolved, which means just about no library would
13058         # ever link correctly.  If we're not using GNU ld we use -z text
13059         # though, which does catch some bad symbols but isn't as heavy-handed
13060         # as -z defs.
13061         no_undefined_flag_CXX='${wl}-z,text'
13062         allow_undefined_flag_CXX='${wl}-z,nodefs'
13063         archive_cmds_need_lc_CXX=no
13064         hardcode_shlibpath_var_CXX=no
13065         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13066         hardcode_libdir_separator_CXX=':'
13067         link_all_deplibs_CXX=yes
13068         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13069         runpath_var='LD_RUN_PATH'
13070
13071         case $cc_basename in
13072           CC*)
13073             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13074             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13075             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13076               '"$old_archive_cmds_CXX"
13077             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13078               '"$reload_cmds_CXX"
13079             ;;
13080           *)
13081             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13082             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13083             ;;
13084         esac
13085       ;;
13086
13087       tandem*)
13088         case $cc_basename in
13089           NCC*)
13090             # NonStop-UX NCC 3.20
13091             # FIXME: insert proper C++ library support
13092             ld_shlibs_CXX=no
13093             ;;
13094           *)
13095             # FIXME: insert proper C++ library support
13096             ld_shlibs_CXX=no
13097             ;;
13098         esac
13099         ;;
13100
13101       vxworks*)
13102         # FIXME: insert proper C++ library support
13103         ld_shlibs_CXX=no
13104         ;;
13105
13106       *)
13107         # FIXME: insert proper C++ library support
13108         ld_shlibs_CXX=no
13109         ;;
13110     esac
13111
13112     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13113 $as_echo "$ld_shlibs_CXX" >&6; }
13114     test "$ld_shlibs_CXX" = no && can_build_shared=no
13115
13116     GCC_CXX="$GXX"
13117     LD_CXX="$LD"
13118
13119     ## CAVEAT EMPTOR:
13120     ## There is no encapsulation within the following macros, do not change
13121     ## the running order or otherwise move them around unless you know exactly
13122     ## what you are doing...
13123     # Dependencies to place before and after the object being linked:
13124 predep_objects_CXX=
13125 postdep_objects_CXX=
13126 predeps_CXX=
13127 postdeps_CXX=
13128 compiler_lib_search_path_CXX=
13129
13130 cat > conftest.$ac_ext <<_LT_EOF
13131 class Foo
13132 {
13133 public:
13134   Foo (void) { a = 0; }
13135 private:
13136   int a;
13137 };
13138 _LT_EOF
13139
13140 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13141   (eval $ac_compile) 2>&5
13142   ac_status=$?
13143   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13144   test $ac_status = 0; }; then
13145   # Parse the compiler output and extract the necessary
13146   # objects, libraries and library flags.
13147
13148   # Sentinel used to keep track of whether or not we are before
13149   # the conftest object file.
13150   pre_test_object_deps_done=no
13151
13152   for p in `eval "$output_verbose_link_cmd"`; do
13153     case $p in
13154
13155     -L* | -R* | -l*)
13156        # Some compilers place space between "-{L,R}" and the path.
13157        # Remove the space.
13158        if test $p = "-L" ||
13159           test $p = "-R"; then
13160          prev=$p
13161          continue
13162        else
13163          prev=
13164        fi
13165
13166        if test "$pre_test_object_deps_done" = no; then
13167          case $p in
13168          -L* | -R*)
13169            # Internal compiler library paths should come after those
13170            # provided the user.  The postdeps already come after the
13171            # user supplied libs so there is no need to process them.
13172            if test -z "$compiler_lib_search_path_CXX"; then
13173              compiler_lib_search_path_CXX="${prev}${p}"
13174            else
13175              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13176            fi
13177            ;;
13178          # The "-l" case would never come before the object being
13179          # linked, so don't bother handling this case.
13180          esac
13181        else
13182          if test -z "$postdeps_CXX"; then
13183            postdeps_CXX="${prev}${p}"
13184          else
13185            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13186          fi
13187        fi
13188        ;;
13189
13190     *.$objext)
13191        # This assumes that the test object file only shows up
13192        # once in the compiler output.
13193        if test "$p" = "conftest.$objext"; then
13194          pre_test_object_deps_done=yes
13195          continue
13196        fi
13197
13198        if test "$pre_test_object_deps_done" = no; then
13199          if test -z "$predep_objects_CXX"; then
13200            predep_objects_CXX="$p"
13201          else
13202            predep_objects_CXX="$predep_objects_CXX $p"
13203          fi
13204        else
13205          if test -z "$postdep_objects_CXX"; then
13206            postdep_objects_CXX="$p"
13207          else
13208            postdep_objects_CXX="$postdep_objects_CXX $p"
13209          fi
13210        fi
13211        ;;
13212
13213     *) ;; # Ignore the rest.
13214
13215     esac
13216   done
13217
13218   # Clean up.
13219   rm -f a.out a.exe
13220 else
13221   echo "libtool.m4: error: problem compiling CXX test program"
13222 fi
13223
13224 $RM -f confest.$objext
13225
13226 # PORTME: override above test on systems where it is broken
13227 case $host_os in
13228 interix[3-9]*)
13229   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13230   # hack all around it, let's just trust "g++" to DTRT.
13231   predep_objects_CXX=
13232   postdep_objects_CXX=
13233   postdeps_CXX=
13234   ;;
13235
13236 linux*)
13237   case `$CC -V 2>&1 | sed 5q` in
13238   *Sun\ C*)
13239     # Sun C++ 5.9
13240
13241     # The more standards-conforming stlport4 library is
13242     # incompatible with the Cstd library. Avoid specifying
13243     # it if it's in CXXFLAGS. Ignore libCrun as
13244     # -library=stlport4 depends on it.
13245     case " $CXX $CXXFLAGS " in
13246     *" -library=stlport4 "*)
13247       solaris_use_stlport4=yes
13248       ;;
13249     esac
13250
13251     if test "$solaris_use_stlport4" != yes; then
13252       postdeps_CXX='-library=Cstd -library=Crun'
13253     fi
13254     ;;
13255   esac
13256   ;;
13257
13258 solaris*)
13259   case $cc_basename in
13260   CC* | sunCC*)
13261     # The more standards-conforming stlport4 library is
13262     # incompatible with the Cstd library. Avoid specifying
13263     # it if it's in CXXFLAGS. Ignore libCrun as
13264     # -library=stlport4 depends on it.
13265     case " $CXX $CXXFLAGS " in
13266     *" -library=stlport4 "*)
13267       solaris_use_stlport4=yes
13268       ;;
13269     esac
13270
13271     # Adding this requires a known-good setup of shared libraries for
13272     # Sun compiler versions before 5.6, else PIC objects from an old
13273     # archive will be linked into the output, leading to subtle bugs.
13274     if test "$solaris_use_stlport4" != yes; then
13275       postdeps_CXX='-library=Cstd -library=Crun'
13276     fi
13277     ;;
13278   esac
13279   ;;
13280 esac
13281
13282
13283 case " $postdeps_CXX " in
13284 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13285 esac
13286  compiler_lib_search_dirs_CXX=
13287 if test -n "${compiler_lib_search_path_CXX}"; then
13288  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13289 fi
13290
13291
13292
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321     lt_prog_compiler_wl_CXX=
13322 lt_prog_compiler_pic_CXX=
13323 lt_prog_compiler_static_CXX=
13324
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13326 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13327
13328   # C++ specific cases for pic, static, wl, etc.
13329   if test "$GXX" = yes; then
13330     lt_prog_compiler_wl_CXX='-Wl,'
13331     lt_prog_compiler_static_CXX='-static'
13332
13333     case $host_os in
13334     aix*)
13335       # All AIX code is PIC.
13336       if test "$host_cpu" = ia64; then
13337         # AIX 5 now supports IA64 processor
13338         lt_prog_compiler_static_CXX='-Bstatic'
13339       fi
13340       ;;
13341
13342     amigaos*)
13343       case $host_cpu in
13344       powerpc)
13345             # see comment about AmigaOS4 .so support
13346             lt_prog_compiler_pic_CXX='-fPIC'
13347         ;;
13348       m68k)
13349             # FIXME: we need at least 68020 code to build shared libraries, but
13350             # adding the `-m68020' flag to GCC prevents building anything better,
13351             # like `-m68040'.
13352             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13353         ;;
13354       esac
13355       ;;
13356
13357     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13358       # PIC is the default for these OSes.
13359       ;;
13360     mingw* | cygwin* | os2* | pw32* | cegcc*)
13361       # This hack is so that the source file can tell whether it is being
13362       # built for inclusion in a dll (and should export symbols for example).
13363       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13364       # (--disable-auto-import) libraries
13365       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13366       ;;
13367     darwin* | rhapsody*)
13368       # PIC is the default on this platform
13369       # Common symbols not allowed in MH_DYLIB files
13370       lt_prog_compiler_pic_CXX='-fno-common'
13371       ;;
13372     *djgpp*)
13373       # DJGPP does not support shared libraries at all
13374       lt_prog_compiler_pic_CXX=
13375       ;;
13376     haiku*)
13377       # PIC is the default for Haiku.
13378       # The "-static" flag exists, but is broken.
13379       lt_prog_compiler_static_CXX=
13380       ;;
13381     interix[3-9]*)
13382       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13383       # Instead, we relocate shared libraries at runtime.
13384       ;;
13385     sysv4*MP*)
13386       if test -d /usr/nec; then
13387         lt_prog_compiler_pic_CXX=-Kconform_pic
13388       fi
13389       ;;
13390     hpux*)
13391       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13392       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13393       # sets the default TLS model and affects inlining.
13394       case $host_cpu in
13395       hppa*64*)
13396         ;;
13397       *)
13398         lt_prog_compiler_pic_CXX='-fPIC'
13399         ;;
13400       esac
13401       ;;
13402     *qnx* | *nto*)
13403       # QNX uses GNU C++, but need to define -shared option too, otherwise
13404       # it will coredump.
13405       lt_prog_compiler_pic_CXX='-fPIC -shared'
13406       ;;
13407     *)
13408       lt_prog_compiler_pic_CXX='-fPIC'
13409       ;;
13410     esac
13411   else
13412     case $host_os in
13413       aix[4-9]*)
13414         # All AIX code is PIC.
13415         if test "$host_cpu" = ia64; then
13416           # AIX 5 now supports IA64 processor
13417           lt_prog_compiler_static_CXX='-Bstatic'
13418         else
13419           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13420         fi
13421         ;;
13422       chorus*)
13423         case $cc_basename in
13424         cxch68*)
13425           # Green Hills C++ Compiler
13426           # _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"
13427           ;;
13428         esac
13429         ;;
13430       dgux*)
13431         case $cc_basename in
13432           ec++*)
13433             lt_prog_compiler_pic_CXX='-KPIC'
13434             ;;
13435           ghcx*)
13436             # Green Hills C++ Compiler
13437             lt_prog_compiler_pic_CXX='-pic'
13438             ;;
13439           *)
13440             ;;
13441         esac
13442         ;;
13443       freebsd* | dragonfly*)
13444         # FreeBSD uses GNU C++
13445         ;;
13446       hpux9* | hpux10* | hpux11*)
13447         case $cc_basename in
13448           CC*)
13449             lt_prog_compiler_wl_CXX='-Wl,'
13450             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13451             if test "$host_cpu" != ia64; then
13452               lt_prog_compiler_pic_CXX='+Z'
13453             fi
13454             ;;
13455           aCC*)
13456             lt_prog_compiler_wl_CXX='-Wl,'
13457             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13458             case $host_cpu in
13459             hppa*64*|ia64*)
13460               # +Z the default
13461               ;;
13462             *)
13463               lt_prog_compiler_pic_CXX='+Z'
13464               ;;
13465             esac
13466             ;;
13467           *)
13468             ;;
13469         esac
13470         ;;
13471       interix*)
13472         # This is c89, which is MS Visual C++ (no shared libs)
13473         # Anyone wants to do a port?
13474         ;;
13475       irix5* | irix6* | nonstopux*)
13476         case $cc_basename in
13477           CC*)
13478             lt_prog_compiler_wl_CXX='-Wl,'
13479             lt_prog_compiler_static_CXX='-non_shared'
13480             # CC pic flag -KPIC is the default.
13481             ;;
13482           *)
13483             ;;
13484         esac
13485         ;;
13486       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13487         case $cc_basename in
13488           KCC*)
13489             # KAI C++ Compiler
13490             lt_prog_compiler_wl_CXX='--backend -Wl,'
13491             lt_prog_compiler_pic_CXX='-fPIC'
13492             ;;
13493           ecpc* )
13494             # old Intel C++ for x86_64 which still supported -KPIC.
13495             lt_prog_compiler_wl_CXX='-Wl,'
13496             lt_prog_compiler_pic_CXX='-KPIC'
13497             lt_prog_compiler_static_CXX='-static'
13498             ;;
13499           icpc* )
13500             # Intel C++, used to be incompatible with GCC.
13501             # ICC 10 doesn't accept -KPIC any more.
13502             lt_prog_compiler_wl_CXX='-Wl,'
13503             lt_prog_compiler_pic_CXX='-fPIC'
13504             lt_prog_compiler_static_CXX='-static'
13505             ;;
13506           pgCC* | pgcpp*)
13507             # Portland Group C++ compiler
13508             lt_prog_compiler_wl_CXX='-Wl,'
13509             lt_prog_compiler_pic_CXX='-fpic'
13510             lt_prog_compiler_static_CXX='-Bstatic'
13511             ;;
13512           cxx*)
13513             # Compaq C++
13514             # Make sure the PIC flag is empty.  It appears that all Alpha
13515             # Linux and Compaq Tru64 Unix objects are PIC.
13516             lt_prog_compiler_pic_CXX=
13517             lt_prog_compiler_static_CXX='-non_shared'
13518             ;;
13519           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13520             # IBM XL 8.0, 9.0 on PPC and BlueGene
13521             lt_prog_compiler_wl_CXX='-Wl,'
13522             lt_prog_compiler_pic_CXX='-qpic'
13523             lt_prog_compiler_static_CXX='-qstaticlink'
13524             ;;
13525           *)
13526             case `$CC -V 2>&1 | sed 5q` in
13527             *Sun\ C*)
13528               # Sun C++ 5.9
13529               lt_prog_compiler_pic_CXX='-KPIC'
13530               lt_prog_compiler_static_CXX='-Bstatic'
13531               lt_prog_compiler_wl_CXX='-Qoption ld '
13532               ;;
13533             esac
13534             ;;
13535         esac
13536         ;;
13537       lynxos*)
13538         ;;
13539       m88k*)
13540         ;;
13541       mvs*)
13542         case $cc_basename in
13543           cxx*)
13544             lt_prog_compiler_pic_CXX='-W c,exportall'
13545             ;;
13546           *)
13547             ;;
13548         esac
13549         ;;
13550       netbsd*)
13551         ;;
13552       *qnx* | *nto*)
13553         # QNX uses GNU C++, but need to define -shared option too, otherwise
13554         # it will coredump.
13555         lt_prog_compiler_pic_CXX='-fPIC -shared'
13556         ;;
13557       osf3* | osf4* | osf5*)
13558         case $cc_basename in
13559           KCC*)
13560             lt_prog_compiler_wl_CXX='--backend -Wl,'
13561             ;;
13562           RCC*)
13563             # Rational C++ 2.4.1
13564             lt_prog_compiler_pic_CXX='-pic'
13565             ;;
13566           cxx*)
13567             # Digital/Compaq C++
13568             lt_prog_compiler_wl_CXX='-Wl,'
13569             # Make sure the PIC flag is empty.  It appears that all Alpha
13570             # Linux and Compaq Tru64 Unix objects are PIC.
13571             lt_prog_compiler_pic_CXX=
13572             lt_prog_compiler_static_CXX='-non_shared'
13573             ;;
13574           *)
13575             ;;
13576         esac
13577         ;;
13578       psos*)
13579         ;;
13580       solaris*)
13581         case $cc_basename in
13582           CC* | sunCC*)
13583             # Sun C++ 4.2, 5.x and Centerline C++
13584             lt_prog_compiler_pic_CXX='-KPIC'
13585             lt_prog_compiler_static_CXX='-Bstatic'
13586             lt_prog_compiler_wl_CXX='-Qoption ld '
13587             ;;
13588           gcx*)
13589             # Green Hills C++ Compiler
13590             lt_prog_compiler_pic_CXX='-PIC'
13591             ;;
13592           *)
13593             ;;
13594         esac
13595         ;;
13596       sunos4*)
13597         case $cc_basename in
13598           CC*)
13599             # Sun C++ 4.x
13600             lt_prog_compiler_pic_CXX='-pic'
13601             lt_prog_compiler_static_CXX='-Bstatic'
13602             ;;
13603           lcc*)
13604             # Lucid
13605             lt_prog_compiler_pic_CXX='-pic'
13606             ;;
13607           *)
13608             ;;
13609         esac
13610         ;;
13611       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13612         case $cc_basename in
13613           CC*)
13614             lt_prog_compiler_wl_CXX='-Wl,'
13615             lt_prog_compiler_pic_CXX='-KPIC'
13616             lt_prog_compiler_static_CXX='-Bstatic'
13617             ;;
13618         esac
13619         ;;
13620       tandem*)
13621         case $cc_basename in
13622           NCC*)
13623             # NonStop-UX NCC 3.20
13624             lt_prog_compiler_pic_CXX='-KPIC'
13625             ;;
13626           *)
13627             ;;
13628         esac
13629         ;;
13630       vxworks*)
13631         ;;
13632       *)
13633         lt_prog_compiler_can_build_shared_CXX=no
13634         ;;
13635     esac
13636   fi
13637
13638 case $host_os in
13639   # For platforms which do not support PIC, -DPIC is meaningless:
13640   *djgpp*)
13641     lt_prog_compiler_pic_CXX=
13642     ;;
13643   *)
13644     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13645     ;;
13646 esac
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13648 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13649
13650
13651
13652 #
13653 # Check to make sure the PIC flag actually works.
13654 #
13655 if test -n "$lt_prog_compiler_pic_CXX"; then
13656   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13657 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13658 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13659   $as_echo_n "(cached) " >&6
13660 else
13661   lt_cv_prog_compiler_pic_works_CXX=no
13662    ac_outfile=conftest.$ac_objext
13663    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13664    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13665    # Insert the option either (1) after the last *FLAGS variable, or
13666    # (2) before a word containing "conftest.", or (3) at the end.
13667    # Note that $ac_compile itself does not contain backslashes and begins
13668    # with a dollar sign (not a hyphen), so the echo should work correctly.
13669    # The option is referenced via a variable to avoid confusing sed.
13670    lt_compile=`echo "$ac_compile" | $SED \
13671    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13672    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13673    -e 's:$: $lt_compiler_flag:'`
13674    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13675    (eval "$lt_compile" 2>conftest.err)
13676    ac_status=$?
13677    cat conftest.err >&5
13678    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679    if (exit $ac_status) && test -s "$ac_outfile"; then
13680      # The compiler can only warn and ignore the option if not recognized
13681      # So say no if there are warnings other than the usual output.
13682      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13683      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13684      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13685        lt_cv_prog_compiler_pic_works_CXX=yes
13686      fi
13687    fi
13688    $RM conftest*
13689
13690 fi
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13692 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13693
13694 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13695     case $lt_prog_compiler_pic_CXX in
13696      "" | " "*) ;;
13697      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13698      esac
13699 else
13700     lt_prog_compiler_pic_CXX=
13701      lt_prog_compiler_can_build_shared_CXX=no
13702 fi
13703
13704 fi
13705
13706
13707
13708 #
13709 # Check to make sure the static flag actually works.
13710 #
13711 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13713 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13714 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13715   $as_echo_n "(cached) " >&6
13716 else
13717   lt_cv_prog_compiler_static_works_CXX=no
13718    save_LDFLAGS="$LDFLAGS"
13719    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13720    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13721    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13722      # The linker can only warn and ignore the option if not recognized
13723      # So say no if there are warnings
13724      if test -s conftest.err; then
13725        # Append any errors to the config.log.
13726        cat conftest.err 1>&5
13727        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13728        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13729        if diff conftest.exp conftest.er2 >/dev/null; then
13730          lt_cv_prog_compiler_static_works_CXX=yes
13731        fi
13732      else
13733        lt_cv_prog_compiler_static_works_CXX=yes
13734      fi
13735    fi
13736    $RM -r conftest*
13737    LDFLAGS="$save_LDFLAGS"
13738
13739 fi
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13741 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13742
13743 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13744     :
13745 else
13746     lt_prog_compiler_static_CXX=
13747 fi
13748
13749
13750
13751
13752     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13753 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13754 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13755   $as_echo_n "(cached) " >&6
13756 else
13757   lt_cv_prog_compiler_c_o_CXX=no
13758    $RM -r conftest 2>/dev/null
13759    mkdir conftest
13760    cd conftest
13761    mkdir out
13762    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13763
13764    lt_compiler_flag="-o out/conftest2.$ac_objext"
13765    # Insert the option either (1) after the last *FLAGS variable, or
13766    # (2) before a word containing "conftest.", or (3) at the end.
13767    # Note that $ac_compile itself does not contain backslashes and begins
13768    # with a dollar sign (not a hyphen), so the echo should work correctly.
13769    lt_compile=`echo "$ac_compile" | $SED \
13770    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13771    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13772    -e 's:$: $lt_compiler_flag:'`
13773    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13774    (eval "$lt_compile" 2>out/conftest.err)
13775    ac_status=$?
13776    cat out/conftest.err >&5
13777    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13779    then
13780      # The compiler can only warn and ignore the option if not recognized
13781      # So say no if there are warnings
13782      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13783      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13784      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13785        lt_cv_prog_compiler_c_o_CXX=yes
13786      fi
13787    fi
13788    chmod u+w . 2>&5
13789    $RM conftest*
13790    # SGI C++ compiler will create directory out/ii_files/ for
13791    # template instantiation
13792    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13793    $RM out/* && rmdir out
13794    cd ..
13795    $RM -r conftest
13796    $RM conftest*
13797
13798 fi
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13800 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13801
13802
13803
13804     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13805 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13806 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13807   $as_echo_n "(cached) " >&6
13808 else
13809   lt_cv_prog_compiler_c_o_CXX=no
13810    $RM -r conftest 2>/dev/null
13811    mkdir conftest
13812    cd conftest
13813    mkdir out
13814    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13815
13816    lt_compiler_flag="-o out/conftest2.$ac_objext"
13817    # Insert the option either (1) after the last *FLAGS variable, or
13818    # (2) before a word containing "conftest.", or (3) at the end.
13819    # Note that $ac_compile itself does not contain backslashes and begins
13820    # with a dollar sign (not a hyphen), so the echo should work correctly.
13821    lt_compile=`echo "$ac_compile" | $SED \
13822    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13823    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13824    -e 's:$: $lt_compiler_flag:'`
13825    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13826    (eval "$lt_compile" 2>out/conftest.err)
13827    ac_status=$?
13828    cat out/conftest.err >&5
13829    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13831    then
13832      # The compiler can only warn and ignore the option if not recognized
13833      # So say no if there are warnings
13834      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13835      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13836      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13837        lt_cv_prog_compiler_c_o_CXX=yes
13838      fi
13839    fi
13840    chmod u+w . 2>&5
13841    $RM conftest*
13842    # SGI C++ compiler will create directory out/ii_files/ for
13843    # template instantiation
13844    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13845    $RM out/* && rmdir out
13846    cd ..
13847    $RM -r conftest
13848    $RM conftest*
13849
13850 fi
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13852 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13853
13854
13855
13856
13857 hard_links="nottested"
13858 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13859   # do not overwrite the value of need_locks provided by the user
13860   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13861 $as_echo_n "checking if we can lock with hard links... " >&6; }
13862   hard_links=yes
13863   $RM conftest*
13864   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13865   touch conftest.a
13866   ln conftest.a conftest.b 2>&5 || hard_links=no
13867   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13869 $as_echo "$hard_links" >&6; }
13870   if test "$hard_links" = no; then
13871     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13872 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13873     need_locks=warn
13874   fi
13875 else
13876   need_locks=no
13877 fi
13878
13879
13880
13881     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13882 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13883
13884   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13885   case $host_os in
13886   aix[4-9]*)
13887     # If we're using GNU nm, then we don't want the "-C" option.
13888     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13889     # Also, AIX nm treats weak defined symbols like other global defined
13890     # symbols, whereas GNU nm marks them as "W".
13891     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13892       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'
13893     else
13894       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'
13895     fi
13896     ;;
13897   pw32*)
13898     export_symbols_cmds_CXX="$ltdll_cmds"
13899   ;;
13900   cygwin* | mingw* | cegcc*)
13901     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
13902   ;;
13903   *)
13904     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13905   ;;
13906   esac
13907   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13908
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13910 $as_echo "$ld_shlibs_CXX" >&6; }
13911 test "$ld_shlibs_CXX" = no && can_build_shared=no
13912
13913 with_gnu_ld_CXX=$with_gnu_ld
13914
13915
13916
13917
13918
13919
13920 #
13921 # Do we need to explicitly link libc?
13922 #
13923 case "x$archive_cmds_need_lc_CXX" in
13924 x|xyes)
13925   # Assume -lc should be added
13926   archive_cmds_need_lc_CXX=yes
13927
13928   if test "$enable_shared" = yes && test "$GCC" = yes; then
13929     case $archive_cmds_CXX in
13930     *'~'*)
13931       # FIXME: we may have to deal with multi-command sequences.
13932       ;;
13933     '$CC '*)
13934       # Test whether the compiler implicitly links with -lc since on some
13935       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13936       # to ld, don't add -lc before -lgcc.
13937       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13938 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13939 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
13940   $as_echo_n "(cached) " >&6
13941 else
13942   $RM conftest*
13943         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13944
13945         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13946   (eval $ac_compile) 2>&5
13947   ac_status=$?
13948   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13949   test $ac_status = 0; } 2>conftest.err; then
13950           soname=conftest
13951           lib=conftest
13952           libobjs=conftest.$ac_objext
13953           deplibs=
13954           wl=$lt_prog_compiler_wl_CXX
13955           pic_flag=$lt_prog_compiler_pic_CXX
13956           compiler_flags=-v
13957           linker_flags=-v
13958           verstring=
13959           output_objdir=.
13960           libname=conftest
13961           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13962           allow_undefined_flag_CXX=
13963           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13964   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13965   ac_status=$?
13966   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13967   test $ac_status = 0; }
13968           then
13969             lt_cv_archive_cmds_need_lc_CXX=no
13970           else
13971             lt_cv_archive_cmds_need_lc_CXX=yes
13972           fi
13973           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13974         else
13975           cat conftest.err 1>&5
13976         fi
13977         $RM conftest*
13978
13979 fi
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
13981 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
13982       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
13983       ;;
13984     esac
13985   fi
13986   ;;
13987 esac
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14053 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14054
14055 library_names_spec=
14056 libname_spec='lib$name'
14057 soname_spec=
14058 shrext_cmds=".so"
14059 postinstall_cmds=
14060 postuninstall_cmds=
14061 finish_cmds=
14062 finish_eval=
14063 shlibpath_var=
14064 shlibpath_overrides_runpath=unknown
14065 version_type=none
14066 dynamic_linker="$host_os ld.so"
14067 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14068 need_lib_prefix=unknown
14069 hardcode_into_libs=no
14070
14071 # when you set need_version to no, make sure it does not cause -set_version
14072 # flags to be left without arguments
14073 need_version=unknown
14074
14075 case $host_os in
14076 aix3*)
14077   version_type=linux
14078   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14079   shlibpath_var=LIBPATH
14080
14081   # AIX 3 has no versioning support, so we append a major version to the name.
14082   soname_spec='${libname}${release}${shared_ext}$major'
14083   ;;
14084
14085 aix[4-9]*)
14086   version_type=linux
14087   need_lib_prefix=no
14088   need_version=no
14089   hardcode_into_libs=yes
14090   if test "$host_cpu" = ia64; then
14091     # AIX 5 supports IA64
14092     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14093     shlibpath_var=LD_LIBRARY_PATH
14094   else
14095     # With GCC up to 2.95.x, collect2 would create an import file
14096     # for dependence libraries.  The import file would start with
14097     # the line `#! .'.  This would cause the generated library to
14098     # depend on `.', always an invalid library.  This was fixed in
14099     # development snapshots of GCC prior to 3.0.
14100     case $host_os in
14101       aix4 | aix4.[01] | aix4.[01].*)
14102       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14103            echo ' yes '
14104            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14105         :
14106       else
14107         can_build_shared=no
14108       fi
14109       ;;
14110     esac
14111     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14112     # soname into executable. Probably we can add versioning support to
14113     # collect2, so additional links can be useful in future.
14114     if test "$aix_use_runtimelinking" = yes; then
14115       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14116       # instead of lib<name>.a to let people know that these are not
14117       # typical AIX shared libraries.
14118       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14119     else
14120       # We preserve .a as extension for shared libraries through AIX4.2
14121       # and later when we are not doing run time linking.
14122       library_names_spec='${libname}${release}.a $libname.a'
14123       soname_spec='${libname}${release}${shared_ext}$major'
14124     fi
14125     shlibpath_var=LIBPATH
14126   fi
14127   ;;
14128
14129 amigaos*)
14130   case $host_cpu in
14131   powerpc)
14132     # Since July 2007 AmigaOS4 officially supports .so libraries.
14133     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14134     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14135     ;;
14136   m68k)
14137     library_names_spec='$libname.ixlibrary $libname.a'
14138     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14139     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'
14140     ;;
14141   esac
14142   ;;
14143
14144 beos*)
14145   library_names_spec='${libname}${shared_ext}'
14146   dynamic_linker="$host_os ld.so"
14147   shlibpath_var=LIBRARY_PATH
14148   ;;
14149
14150 bsdi[45]*)
14151   version_type=linux
14152   need_version=no
14153   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14154   soname_spec='${libname}${release}${shared_ext}$major'
14155   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14156   shlibpath_var=LD_LIBRARY_PATH
14157   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14158   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14159   # the default ld.so.conf also contains /usr/contrib/lib and
14160   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14161   # libtool to hard-code these into programs
14162   ;;
14163
14164 cygwin* | mingw* | pw32* | cegcc*)
14165   version_type=windows
14166   shrext_cmds=".dll"
14167   need_version=no
14168   need_lib_prefix=no
14169
14170   case $GCC,$host_os in
14171   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14172     library_names_spec='$libname.dll.a'
14173     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14174     postinstall_cmds='base_file=`basename \${file}`~
14175       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14176       dldir=$destdir/`dirname \$dlpath`~
14177       test -d \$dldir || mkdir -p \$dldir~
14178       $install_prog $dir/$dlname \$dldir/$dlname~
14179       chmod a+x \$dldir/$dlname~
14180       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14181         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14182       fi'
14183     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14184       dlpath=$dir/\$dldll~
14185        $RM \$dlpath'
14186     shlibpath_overrides_runpath=yes
14187
14188     case $host_os in
14189     cygwin*)
14190       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14191       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14192
14193       ;;
14194     mingw* | cegcc*)
14195       # MinGW DLLs use traditional 'lib' prefix
14196       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14197       ;;
14198     pw32*)
14199       # pw32 DLLs use 'pw' prefix rather than 'lib'
14200       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14201       ;;
14202     esac
14203     ;;
14204
14205   *)
14206     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14207     ;;
14208   esac
14209   dynamic_linker='Win32 ld.exe'
14210   # FIXME: first we should search . and the directory the executable is in
14211   shlibpath_var=PATH
14212   ;;
14213
14214 darwin* | rhapsody*)
14215   dynamic_linker="$host_os dyld"
14216   version_type=darwin
14217   need_lib_prefix=no
14218   need_version=no
14219   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14220   soname_spec='${libname}${release}${major}$shared_ext'
14221   shlibpath_overrides_runpath=yes
14222   shlibpath_var=DYLD_LIBRARY_PATH
14223   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14224
14225   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14226   ;;
14227
14228 dgux*)
14229   version_type=linux
14230   need_lib_prefix=no
14231   need_version=no
14232   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14233   soname_spec='${libname}${release}${shared_ext}$major'
14234   shlibpath_var=LD_LIBRARY_PATH
14235   ;;
14236
14237 freebsd1*)
14238   dynamic_linker=no
14239   ;;
14240
14241 freebsd* | dragonfly*)
14242   # DragonFly does not have aout.  When/if they implement a new
14243   # versioning mechanism, adjust this.
14244   if test -x /usr/bin/objformat; then
14245     objformat=`/usr/bin/objformat`
14246   else
14247     case $host_os in
14248     freebsd[123]*) objformat=aout ;;
14249     *) objformat=elf ;;
14250     esac
14251   fi
14252   # Handle Gentoo/FreeBSD as it was Linux
14253   case $host_vendor in
14254     gentoo)
14255       version_type=linux ;;
14256     *)
14257       version_type=freebsd-$objformat ;;
14258   esac
14259
14260   case $version_type in
14261     freebsd-elf*)
14262       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14263       need_version=no
14264       need_lib_prefix=no
14265       ;;
14266     freebsd-*)
14267       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14268       need_version=yes
14269       ;;
14270     linux)
14271       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14272       soname_spec='${libname}${release}${shared_ext}$major'
14273       need_lib_prefix=no
14274       need_version=no
14275       ;;
14276   esac
14277   shlibpath_var=LD_LIBRARY_PATH
14278   case $host_os in
14279   freebsd2*)
14280     shlibpath_overrides_runpath=yes
14281     ;;
14282   freebsd3.[01]* | freebsdelf3.[01]*)
14283     shlibpath_overrides_runpath=yes
14284     hardcode_into_libs=yes
14285     ;;
14286   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14287   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14288     shlibpath_overrides_runpath=no
14289     hardcode_into_libs=yes
14290     ;;
14291   *) # from 4.6 on, and DragonFly
14292     shlibpath_overrides_runpath=yes
14293     hardcode_into_libs=yes
14294     ;;
14295   esac
14296   ;;
14297
14298 gnu*)
14299   version_type=linux
14300   need_lib_prefix=no
14301   need_version=no
14302   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14303   soname_spec='${libname}${release}${shared_ext}$major'
14304   shlibpath_var=LD_LIBRARY_PATH
14305   hardcode_into_libs=yes
14306   ;;
14307
14308 haiku*)
14309   version_type=linux
14310   need_lib_prefix=no
14311   need_version=no
14312   dynamic_linker="$host_os runtime_loader"
14313   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14314   soname_spec='${libname}${release}${shared_ext}$major'
14315   shlibpath_var=LIBRARY_PATH
14316   shlibpath_overrides_runpath=yes
14317   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14318   hardcode_into_libs=yes
14319   ;;
14320
14321 hpux9* | hpux10* | hpux11*)
14322   # Give a soname corresponding to the major version so that dld.sl refuses to
14323   # link against other versions.
14324   version_type=sunos
14325   need_lib_prefix=no
14326   need_version=no
14327   case $host_cpu in
14328   ia64*)
14329     shrext_cmds='.so'
14330     hardcode_into_libs=yes
14331     dynamic_linker="$host_os dld.so"
14332     shlibpath_var=LD_LIBRARY_PATH
14333     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14334     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14335     soname_spec='${libname}${release}${shared_ext}$major'
14336     if test "X$HPUX_IA64_MODE" = X32; then
14337       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14338     else
14339       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14340     fi
14341     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14342     ;;
14343   hppa*64*)
14344     shrext_cmds='.sl'
14345     hardcode_into_libs=yes
14346     dynamic_linker="$host_os dld.sl"
14347     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14348     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14349     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14350     soname_spec='${libname}${release}${shared_ext}$major'
14351     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14352     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14353     ;;
14354   *)
14355     shrext_cmds='.sl'
14356     dynamic_linker="$host_os dld.sl"
14357     shlibpath_var=SHLIB_PATH
14358     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14359     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14360     soname_spec='${libname}${release}${shared_ext}$major'
14361     ;;
14362   esac
14363   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14364   postinstall_cmds='chmod 555 $lib'
14365   # or fails outright, so override atomically:
14366   install_override_mode=555
14367   ;;
14368
14369 interix[3-9]*)
14370   version_type=linux
14371   need_lib_prefix=no
14372   need_version=no
14373   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14374   soname_spec='${libname}${release}${shared_ext}$major'
14375   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14376   shlibpath_var=LD_LIBRARY_PATH
14377   shlibpath_overrides_runpath=no
14378   hardcode_into_libs=yes
14379   ;;
14380
14381 irix5* | irix6* | nonstopux*)
14382   case $host_os in
14383     nonstopux*) version_type=nonstopux ;;
14384     *)
14385         if test "$lt_cv_prog_gnu_ld" = yes; then
14386                 version_type=linux
14387         else
14388                 version_type=irix
14389         fi ;;
14390   esac
14391   need_lib_prefix=no
14392   need_version=no
14393   soname_spec='${libname}${release}${shared_ext}$major'
14394   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14395   case $host_os in
14396   irix5* | nonstopux*)
14397     libsuff= shlibsuff=
14398     ;;
14399   *)
14400     case $LD in # libtool.m4 will add one of these switches to LD
14401     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14402       libsuff= shlibsuff= libmagic=32-bit;;
14403     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14404       libsuff=32 shlibsuff=N32 libmagic=N32;;
14405     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14406       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14407     *) libsuff= shlibsuff= libmagic=never-match;;
14408     esac
14409     ;;
14410   esac
14411   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14412   shlibpath_overrides_runpath=no
14413   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14414   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14415   hardcode_into_libs=yes
14416   ;;
14417
14418 # No shared lib support for Linux oldld, aout, or coff.
14419 linux*oldld* | linux*aout* | linux*coff*)
14420   dynamic_linker=no
14421   ;;
14422
14423 # This must be Linux ELF.
14424 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14425   version_type=linux
14426   need_lib_prefix=no
14427   need_version=no
14428   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14429   soname_spec='${libname}${release}${shared_ext}$major'
14430   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14431   shlibpath_var=LD_LIBRARY_PATH
14432   shlibpath_overrides_runpath=no
14433
14434   # Some binutils ld are patched to set DT_RUNPATH
14435   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14436   $as_echo_n "(cached) " >&6
14437 else
14438   lt_cv_shlibpath_overrides_runpath=no
14439     save_LDFLAGS=$LDFLAGS
14440     save_libdir=$libdir
14441     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14442          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14443     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14444 /* end confdefs.h.  */
14445
14446 int
14447 main ()
14448 {
14449
14450   ;
14451   return 0;
14452 }
14453 _ACEOF
14454 if ac_fn_cxx_try_link "$LINENO"; then :
14455   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14456   lt_cv_shlibpath_overrides_runpath=yes
14457 fi
14458 fi
14459 rm -f core conftest.err conftest.$ac_objext \
14460     conftest$ac_exeext conftest.$ac_ext
14461     LDFLAGS=$save_LDFLAGS
14462     libdir=$save_libdir
14463
14464 fi
14465
14466   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14467
14468   # This implies no fast_install, which is unacceptable.
14469   # Some rework will be needed to allow for fast_install
14470   # before this can be enabled.
14471   hardcode_into_libs=yes
14472
14473   # Append ld.so.conf contents to the search path
14474   if test -f /etc/ld.so.conf; then
14475     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' ' '`
14476     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14477   fi
14478
14479   # We used to test for /lib/ld.so.1 and disable shared libraries on
14480   # powerpc, because MkLinux only supported shared libraries with the
14481   # GNU dynamic linker.  Since this was broken with cross compilers,
14482   # most powerpc-linux boxes support dynamic linking these days and
14483   # people can always --disable-shared, the test was removed, and we
14484   # assume the GNU/Linux dynamic linker is in use.
14485   dynamic_linker='GNU/Linux ld.so'
14486   ;;
14487
14488 netbsd*)
14489   version_type=sunos
14490   need_lib_prefix=no
14491   need_version=no
14492   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14493     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14494     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14495     dynamic_linker='NetBSD (a.out) ld.so'
14496   else
14497     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14498     soname_spec='${libname}${release}${shared_ext}$major'
14499     dynamic_linker='NetBSD ld.elf_so'
14500   fi
14501   shlibpath_var=LD_LIBRARY_PATH
14502   shlibpath_overrides_runpath=yes
14503   hardcode_into_libs=yes
14504   ;;
14505
14506 newsos6)
14507   version_type=linux
14508   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14509   shlibpath_var=LD_LIBRARY_PATH
14510   shlibpath_overrides_runpath=yes
14511   ;;
14512
14513 *nto* | *qnx*)
14514   version_type=qnx
14515   need_lib_prefix=no
14516   need_version=no
14517   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14518   soname_spec='${libname}${release}${shared_ext}$major'
14519   shlibpath_var=LD_LIBRARY_PATH
14520   shlibpath_overrides_runpath=no
14521   hardcode_into_libs=yes
14522   dynamic_linker='ldqnx.so'
14523   ;;
14524
14525 openbsd*)
14526   version_type=sunos
14527   sys_lib_dlsearch_path_spec="/usr/lib"
14528   need_lib_prefix=no
14529   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14530   case $host_os in
14531     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
14532     *)                          need_version=no  ;;
14533   esac
14534   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14535   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14536   shlibpath_var=LD_LIBRARY_PATH
14537   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14538     case $host_os in
14539       openbsd2.[89] | openbsd2.[89].*)
14540         shlibpath_overrides_runpath=no
14541         ;;
14542       *)
14543         shlibpath_overrides_runpath=yes
14544         ;;
14545       esac
14546   else
14547     shlibpath_overrides_runpath=yes
14548   fi
14549   ;;
14550
14551 os2*)
14552   libname_spec='$name'
14553   shrext_cmds=".dll"
14554   need_lib_prefix=no
14555   library_names_spec='$libname${shared_ext} $libname.a'
14556   dynamic_linker='OS/2 ld.exe'
14557   shlibpath_var=LIBPATH
14558   ;;
14559
14560 osf3* | osf4* | osf5*)
14561   version_type=osf
14562   need_lib_prefix=no
14563   need_version=no
14564   soname_spec='${libname}${release}${shared_ext}$major'
14565   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14566   shlibpath_var=LD_LIBRARY_PATH
14567   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14568   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14569   ;;
14570
14571 rdos*)
14572   dynamic_linker=no
14573   ;;
14574
14575 solaris*)
14576   version_type=linux
14577   need_lib_prefix=no
14578   need_version=no
14579   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14580   soname_spec='${libname}${release}${shared_ext}$major'
14581   shlibpath_var=LD_LIBRARY_PATH
14582   shlibpath_overrides_runpath=yes
14583   hardcode_into_libs=yes
14584   # ldd complains unless libraries are executable
14585   postinstall_cmds='chmod +x $lib'
14586   ;;
14587
14588 sunos4*)
14589   version_type=sunos
14590   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14591   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14592   shlibpath_var=LD_LIBRARY_PATH
14593   shlibpath_overrides_runpath=yes
14594   if test "$with_gnu_ld" = yes; then
14595     need_lib_prefix=no
14596   fi
14597   need_version=yes
14598   ;;
14599
14600 sysv4 | sysv4.3*)
14601   version_type=linux
14602   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14603   soname_spec='${libname}${release}${shared_ext}$major'
14604   shlibpath_var=LD_LIBRARY_PATH
14605   case $host_vendor in
14606     sni)
14607       shlibpath_overrides_runpath=no
14608       need_lib_prefix=no
14609       runpath_var=LD_RUN_PATH
14610       ;;
14611     siemens)
14612       need_lib_prefix=no
14613       ;;
14614     motorola)
14615       need_lib_prefix=no
14616       need_version=no
14617       shlibpath_overrides_runpath=no
14618       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14619       ;;
14620   esac
14621   ;;
14622
14623 sysv4*MP*)
14624   if test -d /usr/nec ;then
14625     version_type=linux
14626     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14627     soname_spec='$libname${shared_ext}.$major'
14628     shlibpath_var=LD_LIBRARY_PATH
14629   fi
14630   ;;
14631
14632 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14633   version_type=freebsd-elf
14634   need_lib_prefix=no
14635   need_version=no
14636   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14637   soname_spec='${libname}${release}${shared_ext}$major'
14638   shlibpath_var=LD_LIBRARY_PATH
14639   shlibpath_overrides_runpath=yes
14640   hardcode_into_libs=yes
14641   if test "$with_gnu_ld" = yes; then
14642     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14643   else
14644     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14645     case $host_os in
14646       sco3.2v5*)
14647         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14648         ;;
14649     esac
14650   fi
14651   sys_lib_dlsearch_path_spec='/usr/lib'
14652   ;;
14653
14654 tpf*)
14655   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14656   version_type=linux
14657   need_lib_prefix=no
14658   need_version=no
14659   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14660   shlibpath_var=LD_LIBRARY_PATH
14661   shlibpath_overrides_runpath=no
14662   hardcode_into_libs=yes
14663   ;;
14664
14665 uts4*)
14666   version_type=linux
14667   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14668   soname_spec='${libname}${release}${shared_ext}$major'
14669   shlibpath_var=LD_LIBRARY_PATH
14670   ;;
14671
14672 *)
14673   dynamic_linker=no
14674   ;;
14675 esac
14676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14677 $as_echo "$dynamic_linker" >&6; }
14678 test "$dynamic_linker" = no && can_build_shared=no
14679
14680 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14681 if test "$GCC" = yes; then
14682   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14683 fi
14684
14685 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14686   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14687 fi
14688 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14689   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14690 fi
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14730 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14731 hardcode_action_CXX=
14732 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14733    test -n "$runpath_var_CXX" ||
14734    test "X$hardcode_automatic_CXX" = "Xyes" ; then
14735
14736   # We can hardcode non-existent directories.
14737   if test "$hardcode_direct_CXX" != no &&
14738      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14739      # have to relink, otherwise we might link with an installed library
14740      # when we should be linking with a yet-to-be-installed one
14741      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14742      test "$hardcode_minus_L_CXX" != no; then
14743     # Linking always hardcodes the temporary library directory.
14744     hardcode_action_CXX=relink
14745   else
14746     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14747     hardcode_action_CXX=immediate
14748   fi
14749 else
14750   # We cannot hardcode anything, or else we can only hardcode existing
14751   # directories.
14752   hardcode_action_CXX=unsupported
14753 fi
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14755 $as_echo "$hardcode_action_CXX" >&6; }
14756
14757 if test "$hardcode_action_CXX" = relink ||
14758    test "$inherit_rpath_CXX" = yes; then
14759   # Fast installation is not supported
14760   enable_fast_install=no
14761 elif test "$shlibpath_overrides_runpath" = yes ||
14762      test "$enable_shared" = no; then
14763   # Fast installation is not necessary
14764   enable_fast_install=needless
14765 fi
14766
14767
14768
14769
14770
14771
14772
14773   fi # test -n "$compiler"
14774
14775   CC=$lt_save_CC
14776   LDCXX=$LD
14777   LD=$lt_save_LD
14778   GCC=$lt_save_GCC
14779   with_gnu_ld=$lt_save_with_gnu_ld
14780   lt_cv_path_LDCXX=$lt_cv_path_LD
14781   lt_cv_path_LD=$lt_save_path_LD
14782   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14783   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14784 fi # test "$_lt_caught_CXX_error" != yes
14785
14786 ac_ext=c
14787 ac_cpp='$CPP $CPPFLAGS'
14788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804         ac_config_commands="$ac_config_commands libtool"
14805
14806
14807
14808
14809 # Only expand once:
14810
14811
14812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
14813 $as_echo_n "checking whether ln -s works... " >&6; }
14814 LN_S=$as_ln_s
14815 if test "$LN_S" = "ln -s"; then
14816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14817 $as_echo "yes" >&6; }
14818 else
14819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
14820 $as_echo "no, using $LN_S" >&6; }
14821 fi
14822
14823
14824 PCRE_MAJOR="8"
14825 PCRE_MINOR="11"
14826 PCRE_PRERELEASE=""
14827 PCRE_DATE="2010-12-10"
14828
14829 if test "$PCRE_MINOR" = "08" -o "$PCRE_MINOR" = "09"
14830 then
14831   echo "***"
14832   echo "*** Minor version number $PCRE_MINOR must not be used. ***"
14833   echo "*** Use only 01 to 07 or 10 onwards, to avoid octal issues. ***"
14834   echo "***"
14835   exit 1
14836 fi
14837
14838
14839
14840
14841
14842
14843 # Set a more sensible default value for $(htmldir).
14844 if test "x$htmldir" = 'x${docdir}'
14845 then
14846   htmldir='${docdir}/html'
14847 fi
14848
14849 # Handle --disable-cpp. The substitution of enable_cpp is needed for use in
14850 # pcre-config.
14851 # Check whether --enable-cpp was given.
14852 if test "${enable_cpp+set}" = set; then :
14853   enableval=$enable_cpp;
14854 else
14855   enable_cpp=yes
14856 fi
14857
14858
14859
14860 # Handle --enable-rebuild-chartables
14861 # Check whether --enable-rebuild-chartables was given.
14862 if test "${enable_rebuild_chartables+set}" = set; then :
14863   enableval=$enable_rebuild_chartables;
14864 else
14865   enable_rebuild_chartables=no
14866 fi
14867
14868
14869 # Handle --enable-utf8 (disabled by default)
14870 # Check whether --enable-utf8 was given.
14871 if test "${enable_utf8+set}" = set; then :
14872   enableval=$enable_utf8;
14873 else
14874   enable_utf8=unset
14875 fi
14876
14877
14878 # Handle --enable-unicode-properties
14879 # Check whether --enable-unicode-properties was given.
14880 if test "${enable_unicode_properties+set}" = set; then :
14881   enableval=$enable_unicode_properties;
14882 else
14883   enable_unicode_properties=no
14884 fi
14885
14886
14887 # Handle --enable-newline=NL
14888
14889 # Separate newline options
14890 ac_pcre_newline=lf
14891 # Check whether --enable-newline-is-cr was given.
14892 if test "${enable_newline_is_cr+set}" = set; then :
14893   enableval=$enable_newline_is_cr; ac_pcre_newline=cr
14894 fi
14895
14896 # Check whether --enable-newline-is-lf was given.
14897 if test "${enable_newline_is_lf+set}" = set; then :
14898   enableval=$enable_newline_is_lf; ac_pcre_newline=lf
14899 fi
14900
14901 # Check whether --enable-newline-is-crlf was given.
14902 if test "${enable_newline_is_crlf+set}" = set; then :
14903   enableval=$enable_newline_is_crlf; ac_pcre_newline=crlf
14904 fi
14905
14906 # Check whether --enable-newline-is-anycrlf was given.
14907 if test "${enable_newline_is_anycrlf+set}" = set; then :
14908   enableval=$enable_newline_is_anycrlf; ac_pcre_newline=anycrlf
14909 fi
14910
14911 # Check whether --enable-newline-is-any was given.
14912 if test "${enable_newline_is_any+set}" = set; then :
14913   enableval=$enable_newline_is_any; ac_pcre_newline=any
14914 fi
14915
14916 enable_newline="$ac_pcre_newline"
14917
14918 # Handle --enable-bsr-anycrlf
14919 # Check whether --enable-bsr-anycrlf was given.
14920 if test "${enable_bsr_anycrlf+set}" = set; then :
14921   enableval=$enable_bsr_anycrlf;
14922 else
14923   enable_bsr_anycrlf=no
14924 fi
14925
14926
14927 # Handle --enable-ebcdic
14928 # Check whether --enable-ebcdic was given.
14929 if test "${enable_ebcdic+set}" = set; then :
14930   enableval=$enable_ebcdic;
14931 else
14932   enable_ebcdic=no
14933 fi
14934
14935
14936 # Handle --disable-stack-for-recursion
14937 # Check whether --enable-stack-for-recursion was given.
14938 if test "${enable_stack_for_recursion+set}" = set; then :
14939   enableval=$enable_stack_for_recursion;
14940 else
14941   enable_stack_for_recursion=yes
14942 fi
14943
14944
14945 # Handle --enable-pcregrep-libz
14946 # Check whether --enable-pcregrep-libz was given.
14947 if test "${enable_pcregrep_libz+set}" = set; then :
14948   enableval=$enable_pcregrep_libz;
14949 else
14950   enable_pcregrep_libz=no
14951 fi
14952
14953
14954 # Handle --enable-pcregrep-libbz2
14955 # Check whether --enable-pcregrep-libbz2 was given.
14956 if test "${enable_pcregrep_libbz2+set}" = set; then :
14957   enableval=$enable_pcregrep_libbz2;
14958 else
14959   enable_pcregrep_libbz2=no
14960 fi
14961
14962
14963 # Handle --enable-pcretest-libreadline
14964 # Check whether --enable-pcretest-libreadline was given.
14965 if test "${enable_pcretest_libreadline+set}" = set; then :
14966   enableval=$enable_pcretest_libreadline;
14967 else
14968   enable_pcretest_libreadline=no
14969 fi
14970
14971
14972 # Handle --with-posix-malloc-threshold=NBYTES
14973
14974 # Check whether --with-posix-malloc-threshold was given.
14975 if test "${with_posix_malloc_threshold+set}" = set; then :
14976   withval=$with_posix_malloc_threshold;
14977 else
14978   with_posix_malloc_threshold=10
14979 fi
14980
14981
14982 # Handle --with-link-size=N
14983
14984 # Check whether --with-link-size was given.
14985 if test "${with_link_size+set}" = set; then :
14986   withval=$with_link_size;
14987 else
14988   with_link_size=2
14989 fi
14990
14991
14992 # Handle --with-match-limit=N
14993
14994 # Check whether --with-match-limit was given.
14995 if test "${with_match_limit+set}" = set; then :
14996   withval=$with_match_limit;
14997 else
14998   with_match_limit=10000000
14999 fi
15000
15001
15002 # Handle --with-match-limit_recursion=N
15003 #
15004 # Note: In config.h, the default is to define MATCH_LIMIT_RECURSION
15005 # symbolically as MATCH_LIMIT, which in turn is defined to be some numeric
15006 # value (e.g. 10000000). MATCH_LIMIT_RECURSION can otherwise be set to some
15007 # different numeric value (or even the same numeric value as MATCH_LIMIT,
15008 # though no longer defined in terms of the latter).
15009 #
15010
15011 # Check whether --with-match-limit-recursion was given.
15012 if test "${with_match_limit_recursion+set}" = set; then :
15013   withval=$with_match_limit_recursion;
15014 else
15015   with_match_limit_recursion=MATCH_LIMIT
15016 fi
15017
15018
15019 # Make sure that if enable_unicode_properties was set, that UTF-8 support
15020 # is enabled.
15021 #
15022 if test "x$enable_unicode_properties" = "xyes"
15023 then
15024   if test "x$enable_utf8" = "xno"
15025   then
15026     as_fn_error "support for Unicode properties requires UTF-8 support" "$LINENO" 5
15027   fi
15028   enable_utf8=yes
15029 fi
15030
15031 if test "x$enable_utf8" = "xunset"
15032 then
15033   enable_utf8=no
15034 fi
15035
15036 # Make sure that if enable_ebcdic is set, rebuild_chartables is also enabled.
15037 # Also check that UTF-8 support is not requested, because PCRE cannot handle
15038 # EBCDIC and UTF-8 in the same build. To do so it would need to use different
15039 # character constants depending on the mode.
15040 #
15041 if test "x$enable_ebcdic" = "xyes"
15042 then
15043   enable_rebuild_chartables=yes
15044   if test "x$enable_utf8" = "xyes"
15045   then
15046     as_fn_error "support for EBCDIC and UTF-8 cannot be enabled at the same time" "$LINENO" 5
15047   fi
15048 fi
15049
15050 # Convert the newline identifier into the appropriate integer value.
15051 case "$enable_newline" in
15052   lf)      ac_pcre_newline_value=10   ;;
15053   cr)      ac_pcre_newline_value=13   ;;
15054   crlf)    ac_pcre_newline_value=3338 ;;
15055   anycrlf) ac_pcre_newline_value=-2   ;;
15056   any)     ac_pcre_newline_value=-1   ;;
15057   *)
15058   as_fn_error "invalid argument \"$enable_newline\" to --enable-newline option" "$LINENO" 5
15059   ;;
15060 esac
15061
15062 # Check argument to --with-link-size
15063 case "$with_link_size" in
15064   2|3|4) ;;
15065   *)
15066   as_fn_error "invalid argument \"$with_link_size\" to --with-link-size option" "$LINENO" 5
15067   ;;
15068 esac
15069
15070
15071
15072 # Checks for header files.
15073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15074 $as_echo_n "checking for ANSI C header files... " >&6; }
15075 if test "${ac_cv_header_stdc+set}" = set; then :
15076   $as_echo_n "(cached) " >&6
15077 else
15078   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15079 /* end confdefs.h.  */
15080 #include <stdlib.h>
15081 #include <stdarg.h>
15082 #include <string.h>
15083 #include <float.h>
15084
15085 int
15086 main ()
15087 {
15088
15089   ;
15090   return 0;
15091 }
15092 _ACEOF
15093 if ac_fn_c_try_compile "$LINENO"; then :
15094   ac_cv_header_stdc=yes
15095 else
15096   ac_cv_header_stdc=no
15097 fi
15098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15099
15100 if test $ac_cv_header_stdc = yes; then
15101   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15102   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15103 /* end confdefs.h.  */
15104 #include <string.h>
15105
15106 _ACEOF
15107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15108   $EGREP "memchr" >/dev/null 2>&1; then :
15109
15110 else
15111   ac_cv_header_stdc=no
15112 fi
15113 rm -f conftest*
15114
15115 fi
15116
15117 if test $ac_cv_header_stdc = yes; then
15118   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15119   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15120 /* end confdefs.h.  */
15121 #include <stdlib.h>
15122
15123 _ACEOF
15124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15125   $EGREP "free" >/dev/null 2>&1; then :
15126
15127 else
15128   ac_cv_header_stdc=no
15129 fi
15130 rm -f conftest*
15131
15132 fi
15133
15134 if test $ac_cv_header_stdc = yes; then
15135   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15136   if test "$cross_compiling" = yes; then :
15137   :
15138 else
15139   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15140 /* end confdefs.h.  */
15141 #include <ctype.h>
15142 #include <stdlib.h>
15143 #if ((' ' & 0x0FF) == 0x020)
15144 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15145 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15146 #else
15147 # define ISLOWER(c) \
15148                    (('a' <= (c) && (c) <= 'i') \
15149                      || ('j' <= (c) && (c) <= 'r') \
15150                      || ('s' <= (c) && (c) <= 'z'))
15151 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15152 #endif
15153
15154 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15155 int
15156 main ()
15157 {
15158   int i;
15159   for (i = 0; i < 256; i++)
15160     if (XOR (islower (i), ISLOWER (i))
15161         || toupper (i) != TOUPPER (i))
15162       return 2;
15163   return 0;
15164 }
15165 _ACEOF
15166 if ac_fn_c_try_run "$LINENO"; then :
15167
15168 else
15169   ac_cv_header_stdc=no
15170 fi
15171 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15172   conftest.$ac_objext conftest.beam conftest.$ac_ext
15173 fi
15174
15175 fi
15176 fi
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15178 $as_echo "$ac_cv_header_stdc" >&6; }
15179 if test $ac_cv_header_stdc = yes; then
15180
15181 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15182
15183 fi
15184
15185 for ac_header in limits.h sys/types.h sys/stat.h dirent.h windows.h
15186 do :
15187   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15188 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15189 eval as_val=\$$as_ac_Header
15190    if test "x$as_val" = x""yes; then :
15191   cat >>confdefs.h <<_ACEOF
15192 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15193 _ACEOF
15194
15195 fi
15196
15197 done
15198
15199
15200 # The files below are C++ header files.
15201 pcre_have_type_traits="0"
15202 pcre_have_bits_type_traits="0"
15203 if test "x$enable_cpp" = "xyes" -a -n "$CXX"
15204 then
15205 ac_ext=cpp
15206 ac_cpp='$CXXCPP $CPPFLAGS'
15207 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15208 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15209 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15210
15211
15212 # Older versions of pcre defined pcrecpp::no_arg, but in new versions
15213 # it's called pcrecpp::RE::no_arg.  For backwards ABI compatibility,
15214 # we want to make one an alias for the other.  Different systems do
15215 # this in different ways.  Some systems, for instance, can do it via
15216 # a linker flag: -alias (for os x 10.5) or -i (for os x <=10.4).
15217 OLD_LDFLAGS="$LDFLAGS"
15218 for flag in "-alias,__ZN7pcrecpp2RE6no_argE,__ZN7pcrecpp6no_argE" \
15219             "-i__ZN7pcrecpp6no_argE:__ZN7pcrecpp2RE6no_argE"; do
15220   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alias support in the linker" >&5
15221 $as_echo_n "checking for alias support in the linker... " >&6; }
15222   LDFLAGS="$OLD_LDFLAGS -Wl,$flag"
15223   # We try to run the linker with this new ld flag.  If the link fails,
15224   # we give up and remove the new flag from LDFLAGS.
15225   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15226 /* end confdefs.h.  */
15227 namespace pcrecpp {
15228                                     class RE { static int no_arg; };
15229                                     int RE::no_arg;
15230                                   }
15231 int
15232 main ()
15233 {
15234
15235   ;
15236   return 0;
15237 }
15238 _ACEOF
15239 if ac_fn_cxx_try_link "$LINENO"; then :
15240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15241 $as_echo "yes" >&6; };
15242                   EXTRA_LIBPCRECPP_LDFLAGS="$EXTRA_LIBPCRECPP_LDFLAGS -Wl,$flag";
15243                   break;
15244 else
15245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15246 $as_echo "no" >&6; }
15247 fi
15248 rm -f core conftest.err conftest.$ac_objext \
15249     conftest$ac_exeext conftest.$ac_ext
15250 done
15251 LDFLAGS="$OLD_LDFLAGS"
15252
15253 # We could be more clever here, given we're doing AC_SUBST with this
15254 # (eg set a var to be the name of the include file we want). But we're not
15255 # so it's easy to change back to 'regular' autoconf vars if we needed to.
15256
15257 for ac_header in string
15258 do :
15259   ac_fn_cxx_check_header_mongrel "$LINENO" "string" "ac_cv_header_string" "$ac_includes_default"
15260 if test "x$ac_cv_header_string" = x""yes; then :
15261   cat >>confdefs.h <<_ACEOF
15262 #define HAVE_STRING 1
15263 _ACEOF
15264  pcre_have_cpp_headers="1"
15265 else
15266   pcre_have_cpp_headers="0"
15267 fi
15268
15269 done
15270
15271 for ac_header in bits/type_traits.h
15272 do :
15273   ac_fn_cxx_check_header_mongrel "$LINENO" "bits/type_traits.h" "ac_cv_header_bits_type_traits_h" "$ac_includes_default"
15274 if test "x$ac_cv_header_bits_type_traits_h" = x""yes; then :
15275   cat >>confdefs.h <<_ACEOF
15276 #define HAVE_BITS_TYPE_TRAITS_H 1
15277 _ACEOF
15278  pcre_have_bits_type_traits="1"
15279 else
15280   pcre_have_bits_type_traits="0"
15281 fi
15282
15283 done
15284
15285 for ac_header in type_traits.h
15286 do :
15287   ac_fn_cxx_check_header_mongrel "$LINENO" "type_traits.h" "ac_cv_header_type_traits_h" "$ac_includes_default"
15288 if test "x$ac_cv_header_type_traits_h" = x""yes; then :
15289   cat >>confdefs.h <<_ACEOF
15290 #define HAVE_TYPE_TRAITS_H 1
15291 _ACEOF
15292  pcre_have_type_traits="1"
15293 else
15294   pcre_have_type_traits="0"
15295 fi
15296
15297 done
15298
15299
15300 # (This isn't c++-specific, but is only used in pcrecpp.cc, so try this
15301 # in a c++ context.  This matters becuase strtoimax is C99 and may not
15302 # be supported by the C++ compiler.)
15303 # Figure out how to create a longlong from a string: strtoll and
15304 # equiv.  It's not enough to call AC_CHECK_FUNCS: hpux has a
15305 # strtoll, for instance, but it only takes 2 args instead of 3!
15306 # We have to call AH_TEMPLATE since AC_DEFINE_UNQUOTED below is complex.
15307
15308
15309
15310
15311 have_strto_fn=0
15312 for fn in strtoq strtoll _strtoi64 strtoimax; do
15313   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $fn" >&5
15314 $as_echo_n "checking for $fn... " >&6; }
15315   if test "$fn" = strtoimax; then
15316     include=stdint.h
15317   else
15318     include=stdlib.h
15319   fi
15320   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15321 /* end confdefs.h.  */
15322 #include <$include>
15323 int
15324 main ()
15325 {
15326 char* e; return $fn("100", &e, 10)
15327   ;
15328   return 0;
15329 }
15330 _ACEOF
15331 if ac_fn_cxx_try_compile "$LINENO"; then :
15332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15333 $as_echo "yes" >&6; }
15334
15335 cat >>confdefs.h <<_ACEOF
15336 #define HAVE_`echo $fn | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` 1
15337 _ACEOF
15338
15339                      have_strto_fn=1
15340                      break
15341 else
15342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15343 $as_echo "no" >&6; }
15344 fi
15345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15346 done
15347
15348 if test "$have_strto_fn" = 1; then
15349   ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
15350 if test "x$ac_cv_type_long_long" = x""yes; then :
15351
15352 cat >>confdefs.h <<_ACEOF
15353 #define HAVE_LONG_LONG 1
15354 _ACEOF
15355
15356 pcre_have_long_long="1"
15357 else
15358   pcre_have_long_long="0"
15359 fi
15360
15361   ac_fn_cxx_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$ac_includes_default"
15362 if test "x$ac_cv_type_unsigned_long_long" = x""yes; then :
15363
15364 cat >>confdefs.h <<_ACEOF
15365 #define HAVE_UNSIGNED_LONG_LONG 1
15366 _ACEOF
15367
15368 pcre_have_ulong_long="1"
15369 else
15370   pcre_have_ulong_long="0"
15371 fi
15372
15373 else
15374   pcre_have_long_long="0"
15375   pcre_have_ulong_long="0"
15376 fi
15377
15378
15379
15380 ac_ext=c
15381 ac_cpp='$CPP $CPPFLAGS'
15382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15385
15386 fi
15387 # Using AC_SUBST eliminates the need to include config.h in a public .h file
15388
15389
15390
15391 # Conditional compilation
15392  if test "x$enable_cpp" = "xyes"; then
15393   WITH_PCRE_CPP_TRUE=
15394   WITH_PCRE_CPP_FALSE='#'
15395 else
15396   WITH_PCRE_CPP_TRUE='#'
15397   WITH_PCRE_CPP_FALSE=
15398 fi
15399
15400  if test "x$enable_rebuild_chartables" = "xyes"; then
15401   WITH_REBUILD_CHARTABLES_TRUE=
15402   WITH_REBUILD_CHARTABLES_FALSE='#'
15403 else
15404   WITH_REBUILD_CHARTABLES_TRUE='#'
15405   WITH_REBUILD_CHARTABLES_FALSE=
15406 fi
15407
15408
15409 # Checks for typedefs, structures, and compiler characteristics.
15410
15411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15412 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
15413 if test "${ac_cv_c_const+set}" = set; then :
15414   $as_echo_n "(cached) " >&6
15415 else
15416   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15417 /* end confdefs.h.  */
15418
15419 int
15420 main ()
15421 {
15422 /* FIXME: Include the comments suggested by Paul. */
15423 #ifndef __cplusplus
15424   /* Ultrix mips cc rejects this.  */
15425   typedef int charset[2];
15426   const charset cs;
15427   /* SunOS 4.1.1 cc rejects this.  */
15428   char const *const *pcpcc;
15429   char **ppc;
15430   /* NEC SVR4.0.2 mips cc rejects this.  */
15431   struct point {int x, y;};
15432   static struct point const zero = {0,0};
15433   /* AIX XL C 1.02.0.0 rejects this.
15434      It does not let you subtract one const X* pointer from another in
15435      an arm of an if-expression whose if-part is not a constant
15436      expression */
15437   const char *g = "string";
15438   pcpcc = &g + (g ? g-g : 0);
15439   /* HPUX 7.0 cc rejects these. */
15440   ++pcpcc;
15441   ppc = (char**) pcpcc;
15442   pcpcc = (char const *const *) ppc;
15443   { /* SCO 3.2v4 cc rejects this.  */
15444     char *t;
15445     char const *s = 0 ? (char *) 0 : (char const *) 0;
15446
15447     *t++ = 0;
15448     if (s) return 0;
15449   }
15450   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
15451     int x[] = {25, 17};
15452     const int *foo = &x[0];
15453     ++foo;
15454   }
15455   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15456     typedef const int *iptr;
15457     iptr p = 0;
15458     ++p;
15459   }
15460   { /* AIX XL C 1.02.0.0 rejects this saying
15461        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15462     struct s { int j; const int *ap[3]; };
15463     struct s *b; b->j = 5;
15464   }
15465   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15466     const int foo = 10;
15467     if (!foo) return 0;
15468   }
15469   return !cs[0] && !zero.x;
15470 #endif
15471
15472   ;
15473   return 0;
15474 }
15475 _ACEOF
15476 if ac_fn_c_try_compile "$LINENO"; then :
15477   ac_cv_c_const=yes
15478 else
15479   ac_cv_c_const=no
15480 fi
15481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15482 fi
15483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
15484 $as_echo "$ac_cv_c_const" >&6; }
15485 if test $ac_cv_c_const = no; then
15486
15487 $as_echo "#define const /**/" >>confdefs.h
15488
15489 fi
15490
15491 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15492 if test "x$ac_cv_type_size_t" = x""yes; then :
15493
15494 else
15495
15496 cat >>confdefs.h <<_ACEOF
15497 #define size_t unsigned int
15498 _ACEOF
15499
15500 fi
15501
15502
15503 # Checks for library functions.
15504
15505 for ac_func in bcopy memmove strerror
15506 do :
15507   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15508 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15509 eval as_val=\$$as_ac_var
15510    if test "x$as_val" = x""yes; then :
15511   cat >>confdefs.h <<_ACEOF
15512 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15513 _ACEOF
15514
15515 fi
15516 done
15517
15518
15519 # Check for the availability of libz (aka zlib)
15520
15521 for ac_header in zlib.h
15522 do :
15523   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
15524 if test "x$ac_cv_header_zlib_h" = x""yes; then :
15525   cat >>confdefs.h <<_ACEOF
15526 #define HAVE_ZLIB_H 1
15527 _ACEOF
15528  HAVE_ZLIB_H=1
15529 fi
15530
15531 done
15532
15533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
15534 $as_echo_n "checking for gzopen in -lz... " >&6; }
15535 if test "${ac_cv_lib_z_gzopen+set}" = set; then :
15536   $as_echo_n "(cached) " >&6
15537 else
15538   ac_check_lib_save_LIBS=$LIBS
15539 LIBS="-lz  $LIBS"
15540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15541 /* end confdefs.h.  */
15542
15543 /* Override any GCC internal prototype to avoid an error.
15544    Use char because int might match the return type of a GCC
15545    builtin and then its argument prototype would still apply.  */
15546 #ifdef __cplusplus
15547 extern "C"
15548 #endif
15549 char gzopen ();
15550 int
15551 main ()
15552 {
15553 return gzopen ();
15554   ;
15555   return 0;
15556 }
15557 _ACEOF
15558 if ac_fn_c_try_link "$LINENO"; then :
15559   ac_cv_lib_z_gzopen=yes
15560 else
15561   ac_cv_lib_z_gzopen=no
15562 fi
15563 rm -f core conftest.err conftest.$ac_objext \
15564     conftest$ac_exeext conftest.$ac_ext
15565 LIBS=$ac_check_lib_save_LIBS
15566 fi
15567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
15568 $as_echo "$ac_cv_lib_z_gzopen" >&6; }
15569 if test "x$ac_cv_lib_z_gzopen" = x""yes; then :
15570   HAVE_LIBZ=1
15571 fi
15572
15573
15574 # Check for the availability of libbz2. Originally we just used AC_CHECK_LIB,
15575 # as for libz. However, this had the following problem, diagnosed and fixed by
15576 # a user:
15577 #
15578 #   - libbz2 uses the Pascal calling convention (WINAPI) for the functions
15579 #     under Win32.
15580 #   - The standard autoconf AC_CHECK_LIB fails to include "bzlib.h",
15581 #     therefore missing the function definition.
15582 #   - The compiler thus generates a "C" signature for the test function.
15583 #   - The linker fails to find the "C" function.
15584 #   - PCRE fails to configure if asked to do so against libbz2.
15585 #
15586 # Solution:
15587 #
15588 #   - Replace the AC_CHECK_LIB test with a custom test.
15589
15590 for ac_header in bzlib.h
15591 do :
15592   ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
15593 if test "x$ac_cv_header_bzlib_h" = x""yes; then :
15594   cat >>confdefs.h <<_ACEOF
15595 #define HAVE_BZLIB_H 1
15596 _ACEOF
15597  HAVE_BZLIB_H=1
15598 fi
15599
15600 done
15601
15602 # Original test
15603 # AC_CHECK_LIB([bz2], [BZ2_bzopen], [HAVE_LIBBZ2=1])
15604 #
15605 # Custom test follows
15606
15607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbz2" >&5
15608 $as_echo_n "checking for libbz2... " >&6; }
15609 OLD_LIBS="$LIBS"
15610 LIBS="$LIBS -lbz2"
15611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15612 /* end confdefs.h.  */
15613
15614 #ifdef HAVE_BZLIB_H
15615 #include <bzlib.h>
15616 #endif
15617 int
15618 main ()
15619 {
15620 return (int)BZ2_bzopen("conftest", "rb");
15621   ;
15622   return 0;
15623 }
15624 _ACEOF
15625 if ac_fn_c_try_link "$LINENO"; then :
15626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15627 $as_echo "yes" >&6; };HAVE_LIBBZ2=1; break;
15628 else
15629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15630 $as_echo "no" >&6; }
15631 fi
15632 rm -f core conftest.err conftest.$ac_objext \
15633     conftest$ac_exeext conftest.$ac_ext
15634 LIBS="$OLD_LIBS"
15635
15636 # Check for the availabiity of libreadline
15637
15638 for ac_header in readline/readline.h
15639 do :
15640   ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
15641 if test "x$ac_cv_header_readline_readline_h" = x""yes; then :
15642   cat >>confdefs.h <<_ACEOF
15643 #define HAVE_READLINE_READLINE_H 1
15644 _ACEOF
15645  HAVE_READLINE_H=1
15646 fi
15647
15648 done
15649
15650 for ac_header in readline/history.h
15651 do :
15652   ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
15653 if test "x$ac_cv_header_readline_history_h" = x""yes; then :
15654   cat >>confdefs.h <<_ACEOF
15655 #define HAVE_READLINE_HISTORY_H 1
15656 _ACEOF
15657  HAVE_HISTORY_H=1
15658 fi
15659
15660 done
15661
15662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
15663 $as_echo_n "checking for readline in -lreadline... " >&6; }
15664 if test "${ac_cv_lib_readline_readline+set}" = set; then :
15665   $as_echo_n "(cached) " >&6
15666 else
15667   ac_check_lib_save_LIBS=$LIBS
15668 LIBS="-lreadline  $LIBS"
15669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15670 /* end confdefs.h.  */
15671
15672 /* Override any GCC internal prototype to avoid an error.
15673    Use char because int might match the return type of a GCC
15674    builtin and then its argument prototype would still apply.  */
15675 #ifdef __cplusplus
15676 extern "C"
15677 #endif
15678 char readline ();
15679 int
15680 main ()
15681 {
15682 return readline ();
15683   ;
15684   return 0;
15685 }
15686 _ACEOF
15687 if ac_fn_c_try_link "$LINENO"; then :
15688   ac_cv_lib_readline_readline=yes
15689 else
15690   ac_cv_lib_readline_readline=no
15691 fi
15692 rm -f core conftest.err conftest.$ac_objext \
15693     conftest$ac_exeext conftest.$ac_ext
15694 LIBS=$ac_check_lib_save_LIBS
15695 fi
15696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
15697 $as_echo "$ac_cv_lib_readline_readline" >&6; }
15698 if test "x$ac_cv_lib_readline_readline" = x""yes; then :
15699   HAVE_LIB_READLINE=1
15700 fi
15701
15702
15703 # This facilitates -ansi builds under Linux
15704
15705 PCRE_STATIC_CFLAG=""
15706 if test "x$enable_shared" = "xno" ; then
15707
15708 $as_echo "#define PCRE_STATIC 1" >>confdefs.h
15709
15710   PCRE_STATIC_CFLAG="-DPCRE_STATIC"
15711 fi
15712
15713
15714 # Here is where pcre specific defines are handled
15715
15716 if test "$enable_utf8" = "yes"; then
15717
15718 $as_echo "#define SUPPORT_UTF8 /**/" >>confdefs.h
15719
15720 fi
15721
15722 if test "$enable_unicode_properties" = "yes"; then
15723
15724 $as_echo "#define SUPPORT_UCP /**/" >>confdefs.h
15725
15726 fi
15727
15728 if test "$enable_stack_for_recursion" = "no"; then
15729
15730 $as_echo "#define NO_RECURSE /**/" >>confdefs.h
15731
15732 fi
15733
15734 if test "$enable_pcregrep_libz" = "yes"; then
15735
15736 $as_echo "#define SUPPORT_LIBZ /**/" >>confdefs.h
15737
15738 fi
15739
15740 if test "$enable_pcregrep_libbz2" = "yes"; then
15741
15742 $as_echo "#define SUPPORT_LIBBZ2 /**/" >>confdefs.h
15743
15744 fi
15745
15746 if test "$enable_pcretest_libreadline" = "yes"; then
15747
15748 $as_echo "#define SUPPORT_LIBREADLINE /**/" >>confdefs.h
15749
15750 fi
15751
15752
15753 cat >>confdefs.h <<_ACEOF
15754 #define NEWLINE $ac_pcre_newline_value
15755 _ACEOF
15756
15757
15758 if test "$enable_bsr_anycrlf" = "yes"; then
15759
15760 $as_echo "#define BSR_ANYCRLF /**/" >>confdefs.h
15761
15762 fi
15763
15764
15765 cat >>confdefs.h <<_ACEOF
15766 #define LINK_SIZE $with_link_size
15767 _ACEOF
15768
15769
15770
15771 cat >>confdefs.h <<_ACEOF
15772 #define POSIX_MALLOC_THRESHOLD $with_posix_malloc_threshold
15773 _ACEOF
15774
15775
15776
15777 cat >>confdefs.h <<_ACEOF
15778 #define MATCH_LIMIT $with_match_limit
15779 _ACEOF
15780
15781
15782
15783 cat >>confdefs.h <<_ACEOF
15784 #define MATCH_LIMIT_RECURSION $with_match_limit_recursion
15785 _ACEOF
15786
15787
15788
15789 $as_echo "#define MAX_NAME_SIZE 32" >>confdefs.h
15790
15791
15792
15793 $as_echo "#define MAX_NAME_COUNT 10000" >>confdefs.h
15794
15795
15796
15797
15798 if test "$enable_ebcdic" = "yes"; then
15799
15800 cat >>confdefs.h <<_ACEOF
15801 #define EBCDIC /**/
15802 _ACEOF
15803
15804 fi
15805
15806 # Platform specific issues
15807 NO_UNDEFINED=
15808 EXPORT_ALL_SYMBOLS=
15809 case $host_os in
15810   cygwin* | mingw* )
15811     if test X"$enable_shared" = Xyes; then
15812       NO_UNDEFINED="-no-undefined"
15813       EXPORT_ALL_SYMBOLS="-Wl,--export-all-symbols"
15814     fi
15815     ;;
15816 esac
15817
15818 # The extra LDFLAGS for each particular library
15819 # (Note: The libpcre*_version bits are m4 variables, assigned above)
15820
15821 EXTRA_LIBPCRE_LDFLAGS="$EXTRA_LIBPCRE_LDFLAGS \
15822                        $NO_UNDEFINED -version-info 0:1:0"
15823
15824 EXTRA_LIBPCREPOSIX_LDFLAGS="$EXTRA_LIBPCREPOSIX_LDFLAGS \
15825                             $NO_UNDEFINED -version-info 0:0:0"
15826
15827 EXTRA_LIBPCRECPP_LDFLAGS="$EXTRA_LIBPCRECPP_LDFLAGS \
15828                           $NO_UNDEFINED -version-info 0:0:0 \
15829                           $EXPORT_ALL_SYMBOLS"
15830
15831
15832
15833
15834
15835 # When we run 'make distcheck', use these arguments.
15836 DISTCHECK_CONFIGURE_FLAGS="--enable-cpp --enable-unicode-properties"
15837
15838
15839 # Check that, if --enable-pcregrep-libz or --enable-pcregrep-libbz2 is
15840 # specified, the relevant library is available.
15841
15842 if test "$enable_pcregrep_libz" = "yes"; then
15843   if test "$HAVE_ZLIB_H" != "1"; then
15844     echo "** Cannot --enable-pcregrep-libz because zlib.h was not found"
15845     exit 1
15846   fi
15847   if test "$HAVE_LIBZ" != "1"; then
15848     echo "** Cannot --enable-pcregrep-libz because libz was not found"
15849     exit 1
15850   fi
15851   LIBZ="-lz"
15852 fi
15853
15854
15855 if test "$enable_pcregrep_libbz2" = "yes"; then
15856   if test "$HAVE_BZLIB_H" != "1"; then
15857     echo "** Cannot --enable-pcregrep-libbz2 because bzlib.h was not found"
15858     exit 1
15859   fi
15860   if test "$HAVE_LIBBZ2" != "1"; then
15861     echo "** Cannot --enable-pcregrep-libbz2 because libbz2 was not found"
15862     exit 1
15863   fi
15864   LIBBZ2="-lbz2"
15865 fi
15866
15867
15868 # Similarly for --enable-pcretest-readline
15869
15870 if test "$enable_pcretest_libreadline" = "yes"; then
15871   if test "$HAVE_READLINE_H" != "1"; then
15872     echo "** Cannot --enable-pcretest-readline because readline/readline.h was not found."
15873     exit 1
15874   fi
15875   if test "$HAVE_HISTORY_H" != "1"; then
15876     echo "** Cannot --enable-pcretest-readline because readline/history.h was not found."
15877     exit 1
15878   fi
15879   LIBREADLINE="-lreadline"
15880 fi
15881
15882
15883 # Produce these files, in addition to config.h.
15884 ac_config_files="$ac_config_files Makefile libpcre.pc libpcreposix.pc libpcrecpp.pc pcre-config pcre.h pcre_stringpiece.h pcrecpparg.h"
15885
15886
15887 # Make the generated script files executable.
15888 ac_config_commands="$ac_config_commands script-chmod"
15889
15890
15891 # Make sure that pcre_chartables.c is removed in case the method for
15892 # creating it was changed by reconfiguration.
15893 ac_config_commands="$ac_config_commands delete-old-chartables"
15894
15895
15896 cat >confcache <<\_ACEOF
15897 # This file is a shell script that caches the results of configure
15898 # tests run on this system so they can be shared between configure
15899 # scripts and configure runs, see configure's option --config-cache.
15900 # It is not useful on other systems.  If it contains results you don't
15901 # want to keep, you may remove or edit it.
15902 #
15903 # config.status only pays attention to the cache file if you give it
15904 # the --recheck option to rerun configure.
15905 #
15906 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15907 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15908 # following values.
15909
15910 _ACEOF
15911
15912 # The following way of writing the cache mishandles newlines in values,
15913 # but we know of no workaround that is simple, portable, and efficient.
15914 # So, we kill variables containing newlines.
15915 # Ultrix sh set writes to stderr and can't be redirected directly,
15916 # and sets the high bit in the cache file unless we assign to the vars.
15917 (
15918   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15919     eval ac_val=\$$ac_var
15920     case $ac_val in #(
15921     *${as_nl}*)
15922       case $ac_var in #(
15923       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15924 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15925       esac
15926       case $ac_var in #(
15927       _ | IFS | as_nl) ;; #(
15928       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15929       *) { eval $ac_var=; unset $ac_var;} ;;
15930       esac ;;
15931     esac
15932   done
15933
15934   (set) 2>&1 |
15935     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15936     *${as_nl}ac_space=\ *)
15937       # `set' does not quote correctly, so add quotes: double-quote
15938       # substitution turns \\\\ into \\, and sed turns \\ into \.
15939       sed -n \
15940         "s/'/'\\\\''/g;
15941           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15942       ;; #(
15943     *)
15944       # `set' quotes correctly as required by POSIX, so do not add quotes.
15945       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15946       ;;
15947     esac |
15948     sort
15949 ) |
15950   sed '
15951      /^ac_cv_env_/b end
15952      t clear
15953      :clear
15954      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15955      t end
15956      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15957      :end' >>confcache
15958 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15959   if test -w "$cache_file"; then
15960     test "x$cache_file" != "x/dev/null" &&
15961       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15962 $as_echo "$as_me: updating cache $cache_file" >&6;}
15963     cat confcache >$cache_file
15964   else
15965     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15966 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15967   fi
15968 fi
15969 rm -f confcache
15970
15971 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15972 # Let make expand exec_prefix.
15973 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15974
15975 DEFS=-DHAVE_CONFIG_H
15976
15977 ac_libobjs=
15978 ac_ltlibobjs=
15979 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15980   # 1. Remove the extension, and $U if already installed.
15981   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15982   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15983   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15984   #    will be set to the directory where LIBOBJS objects are built.
15985   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15986   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15987 done
15988 LIBOBJS=$ac_libobjs
15989
15990 LTLIBOBJS=$ac_ltlibobjs
15991
15992
15993  if test -n "$EXEEXT"; then
15994   am__EXEEXT_TRUE=
15995   am__EXEEXT_FALSE='#'
15996 else
15997   am__EXEEXT_TRUE='#'
15998   am__EXEEXT_FALSE=
15999 fi
16000
16001 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16002   as_fn_error "conditional \"AMDEP\" was never defined.
16003 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16004 fi
16005 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16006   as_fn_error "conditional \"am__fastdepCC\" was never defined.
16007 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16008 fi
16009 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16010   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
16011 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16012 fi
16013 if test -z "${WITH_PCRE_CPP_TRUE}" && test -z "${WITH_PCRE_CPP_FALSE}"; then
16014   as_fn_error "conditional \"WITH_PCRE_CPP\" was never defined.
16015 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16016 fi
16017 if test -z "${WITH_REBUILD_CHARTABLES_TRUE}" && test -z "${WITH_REBUILD_CHARTABLES_FALSE}"; then
16018   as_fn_error "conditional \"WITH_REBUILD_CHARTABLES\" was never defined.
16019 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16020 fi
16021
16022 : ${CONFIG_STATUS=./config.status}
16023 ac_write_fail=0
16024 ac_clean_files_save=$ac_clean_files
16025 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16026 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16027 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16028 as_write_fail=0
16029 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16030 #! $SHELL
16031 # Generated by $as_me.
16032 # Run this file to recreate the current configuration.
16033 # Compiler output produced by configure, useful for debugging
16034 # configure, is in config.log if it exists.
16035
16036 debug=false
16037 ac_cs_recheck=false
16038 ac_cs_silent=false
16039
16040 SHELL=\${CONFIG_SHELL-$SHELL}
16041 export SHELL
16042 _ASEOF
16043 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16044 ## -------------------- ##
16045 ## M4sh Initialization. ##
16046 ## -------------------- ##
16047
16048 # Be more Bourne compatible
16049 DUALCASE=1; export DUALCASE # for MKS sh
16050 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16051   emulate sh
16052   NULLCMD=:
16053   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16054   # is contrary to our usage.  Disable this feature.
16055   alias -g '${1+"$@"}'='"$@"'
16056   setopt NO_GLOB_SUBST
16057 else
16058   case `(set -o) 2>/dev/null` in #(
16059   *posix*) :
16060     set -o posix ;; #(
16061   *) :
16062      ;;
16063 esac
16064 fi
16065
16066
16067 as_nl='
16068 '
16069 export as_nl
16070 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16071 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16072 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16073 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16074 # Prefer a ksh shell builtin over an external printf program on Solaris,
16075 # but without wasting forks for bash or zsh.
16076 if test -z "$BASH_VERSION$ZSH_VERSION" \
16077     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16078   as_echo='print -r --'
16079   as_echo_n='print -rn --'
16080 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16081   as_echo='printf %s\n'
16082   as_echo_n='printf %s'
16083 else
16084   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16085     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16086     as_echo_n='/usr/ucb/echo -n'
16087   else
16088     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16089     as_echo_n_body='eval
16090       arg=$1;
16091       case $arg in #(
16092       *"$as_nl"*)
16093         expr "X$arg" : "X\\(.*\\)$as_nl";
16094         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16095       esac;
16096       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16097     '
16098     export as_echo_n_body
16099     as_echo_n='sh -c $as_echo_n_body as_echo'
16100   fi
16101   export as_echo_body
16102   as_echo='sh -c $as_echo_body as_echo'
16103 fi
16104
16105 # The user is always right.
16106 if test "${PATH_SEPARATOR+set}" != set; then
16107   PATH_SEPARATOR=:
16108   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16109     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16110       PATH_SEPARATOR=';'
16111   }
16112 fi
16113
16114
16115 # IFS
16116 # We need space, tab and new line, in precisely that order.  Quoting is
16117 # there to prevent editors from complaining about space-tab.
16118 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16119 # splitting by setting IFS to empty value.)
16120 IFS=" ""        $as_nl"
16121
16122 # Find who we are.  Look in the path if we contain no directory separator.
16123 case $0 in #((
16124   *[\\/]* ) as_myself=$0 ;;
16125   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16126 for as_dir in $PATH
16127 do
16128   IFS=$as_save_IFS
16129   test -z "$as_dir" && as_dir=.
16130     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16131   done
16132 IFS=$as_save_IFS
16133
16134      ;;
16135 esac
16136 # We did not find ourselves, most probably we were run as `sh COMMAND'
16137 # in which case we are not to be found in the path.
16138 if test "x$as_myself" = x; then
16139   as_myself=$0
16140 fi
16141 if test ! -f "$as_myself"; then
16142   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16143   exit 1
16144 fi
16145
16146 # Unset variables that we do not need and which cause bugs (e.g. in
16147 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16148 # suppresses any "Segmentation fault" message there.  '((' could
16149 # trigger a bug in pdksh 5.2.14.
16150 for as_var in BASH_ENV ENV MAIL MAILPATH
16151 do eval test x\${$as_var+set} = xset \
16152   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16153 done
16154 PS1='$ '
16155 PS2='> '
16156 PS4='+ '
16157
16158 # NLS nuisances.
16159 LC_ALL=C
16160 export LC_ALL
16161 LANGUAGE=C
16162 export LANGUAGE
16163
16164 # CDPATH.
16165 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16166
16167
16168 # as_fn_error ERROR [LINENO LOG_FD]
16169 # ---------------------------------
16170 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16171 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16172 # script with status $?, using 1 if that was 0.
16173 as_fn_error ()
16174 {
16175   as_status=$?; test $as_status -eq 0 && as_status=1
16176   if test "$3"; then
16177     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16178     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16179   fi
16180   $as_echo "$as_me: error: $1" >&2
16181   as_fn_exit $as_status
16182 } # as_fn_error
16183
16184
16185 # as_fn_set_status STATUS
16186 # -----------------------
16187 # Set $? to STATUS, without forking.
16188 as_fn_set_status ()
16189 {
16190   return $1
16191 } # as_fn_set_status
16192
16193 # as_fn_exit STATUS
16194 # -----------------
16195 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16196 as_fn_exit ()
16197 {
16198   set +e
16199   as_fn_set_status $1
16200   exit $1
16201 } # as_fn_exit
16202
16203 # as_fn_unset VAR
16204 # ---------------
16205 # Portably unset VAR.
16206 as_fn_unset ()
16207 {
16208   { eval $1=; unset $1;}
16209 }
16210 as_unset=as_fn_unset
16211 # as_fn_append VAR VALUE
16212 # ----------------------
16213 # Append the text in VALUE to the end of the definition contained in VAR. Take
16214 # advantage of any shell optimizations that allow amortized linear growth over
16215 # repeated appends, instead of the typical quadratic growth present in naive
16216 # implementations.
16217 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16218   eval 'as_fn_append ()
16219   {
16220     eval $1+=\$2
16221   }'
16222 else
16223   as_fn_append ()
16224   {
16225     eval $1=\$$1\$2
16226   }
16227 fi # as_fn_append
16228
16229 # as_fn_arith ARG...
16230 # ------------------
16231 # Perform arithmetic evaluation on the ARGs, and store the result in the
16232 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16233 # must be portable across $(()) and expr.
16234 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16235   eval 'as_fn_arith ()
16236   {
16237     as_val=$(( $* ))
16238   }'
16239 else
16240   as_fn_arith ()
16241   {
16242     as_val=`expr "$@" || test $? -eq 1`
16243   }
16244 fi # as_fn_arith
16245
16246
16247 if expr a : '\(a\)' >/dev/null 2>&1 &&
16248    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16249   as_expr=expr
16250 else
16251   as_expr=false
16252 fi
16253
16254 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16255   as_basename=basename
16256 else
16257   as_basename=false
16258 fi
16259
16260 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16261   as_dirname=dirname
16262 else
16263   as_dirname=false
16264 fi
16265
16266 as_me=`$as_basename -- "$0" ||
16267 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16268          X"$0" : 'X\(//\)$' \| \
16269          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16270 $as_echo X/"$0" |
16271     sed '/^.*\/\([^/][^/]*\)\/*$/{
16272             s//\1/
16273             q
16274           }
16275           /^X\/\(\/\/\)$/{
16276             s//\1/
16277             q
16278           }
16279           /^X\/\(\/\).*/{
16280             s//\1/
16281             q
16282           }
16283           s/.*/./; q'`
16284
16285 # Avoid depending upon Character Ranges.
16286 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16287 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16288 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16289 as_cr_digits='0123456789'
16290 as_cr_alnum=$as_cr_Letters$as_cr_digits
16291
16292 ECHO_C= ECHO_N= ECHO_T=
16293 case `echo -n x` in #(((((
16294 -n*)
16295   case `echo 'xy\c'` in
16296   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16297   xy)  ECHO_C='\c';;
16298   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16299        ECHO_T=' ';;
16300   esac;;
16301 *)
16302   ECHO_N='-n';;
16303 esac
16304
16305 rm -f conf$$ conf$$.exe conf$$.file
16306 if test -d conf$$.dir; then
16307   rm -f conf$$.dir/conf$$.file
16308 else
16309   rm -f conf$$.dir
16310   mkdir conf$$.dir 2>/dev/null
16311 fi
16312 if (echo >conf$$.file) 2>/dev/null; then
16313   if ln -s conf$$.file conf$$ 2>/dev/null; then
16314     as_ln_s='ln -s'
16315     # ... but there are two gotchas:
16316     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16317     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16318     # In both cases, we have to default to `cp -p'.
16319     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16320       as_ln_s='cp -p'
16321   elif ln conf$$.file conf$$ 2>/dev/null; then
16322     as_ln_s=ln
16323   else
16324     as_ln_s='cp -p'
16325   fi
16326 else
16327   as_ln_s='cp -p'
16328 fi
16329 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16330 rmdir conf$$.dir 2>/dev/null
16331
16332
16333 # as_fn_mkdir_p
16334 # -------------
16335 # Create "$as_dir" as a directory, including parents if necessary.
16336 as_fn_mkdir_p ()
16337 {
16338
16339   case $as_dir in #(
16340   -*) as_dir=./$as_dir;;
16341   esac
16342   test -d "$as_dir" || eval $as_mkdir_p || {
16343     as_dirs=
16344     while :; do
16345       case $as_dir in #(
16346       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16347       *) as_qdir=$as_dir;;
16348       esac
16349       as_dirs="'$as_qdir' $as_dirs"
16350       as_dir=`$as_dirname -- "$as_dir" ||
16351 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16352          X"$as_dir" : 'X\(//\)[^/]' \| \
16353          X"$as_dir" : 'X\(//\)$' \| \
16354          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16355 $as_echo X"$as_dir" |
16356     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16357             s//\1/
16358             q
16359           }
16360           /^X\(\/\/\)[^/].*/{
16361             s//\1/
16362             q
16363           }
16364           /^X\(\/\/\)$/{
16365             s//\1/
16366             q
16367           }
16368           /^X\(\/\).*/{
16369             s//\1/
16370             q
16371           }
16372           s/.*/./; q'`
16373       test -d "$as_dir" && break
16374     done
16375     test -z "$as_dirs" || eval "mkdir $as_dirs"
16376   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16377
16378
16379 } # as_fn_mkdir_p
16380 if mkdir -p . 2>/dev/null; then
16381   as_mkdir_p='mkdir -p "$as_dir"'
16382 else
16383   test -d ./-p && rmdir ./-p
16384   as_mkdir_p=false
16385 fi
16386
16387 if test -x / >/dev/null 2>&1; then
16388   as_test_x='test -x'
16389 else
16390   if ls -dL / >/dev/null 2>&1; then
16391     as_ls_L_option=L
16392   else
16393     as_ls_L_option=
16394   fi
16395   as_test_x='
16396     eval sh -c '\''
16397       if test -d "$1"; then
16398         test -d "$1/.";
16399       else
16400         case $1 in #(
16401         -*)set "./$1";;
16402         esac;
16403         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16404         ???[sx]*):;;*)false;;esac;fi
16405     '\'' sh
16406   '
16407 fi
16408 as_executable_p=$as_test_x
16409
16410 # Sed expression to map a string onto a valid CPP name.
16411 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16412
16413 # Sed expression to map a string onto a valid variable name.
16414 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16415
16416
16417 exec 6>&1
16418 ## ----------------------------------- ##
16419 ## Main body of $CONFIG_STATUS script. ##
16420 ## ----------------------------------- ##
16421 _ASEOF
16422 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16423
16424 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16425 # Save the log message, to keep $0 and so on meaningful, and to
16426 # report actual input values of CONFIG_FILES etc. instead of their
16427 # values after options handling.
16428 ac_log="
16429 This file was extended by PCRE $as_me 8.11, which was
16430 generated by GNU Autoconf 2.65.  Invocation command line was
16431
16432   CONFIG_FILES    = $CONFIG_FILES
16433   CONFIG_HEADERS  = $CONFIG_HEADERS
16434   CONFIG_LINKS    = $CONFIG_LINKS
16435   CONFIG_COMMANDS = $CONFIG_COMMANDS
16436   $ $0 $@
16437
16438 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16439 "
16440
16441 _ACEOF
16442
16443 case $ac_config_files in *"
16444 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16445 esac
16446
16447 case $ac_config_headers in *"
16448 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16449 esac
16450
16451
16452 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16453 # Files that config.status was made for.
16454 config_files="$ac_config_files"
16455 config_headers="$ac_config_headers"
16456 config_commands="$ac_config_commands"
16457
16458 _ACEOF
16459
16460 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16461 ac_cs_usage="\
16462 \`$as_me' instantiates files and other configuration actions
16463 from templates according to the current configuration.  Unless the files
16464 and actions are specified as TAGs, all are instantiated by default.
16465
16466 Usage: $0 [OPTION]... [TAG]...
16467
16468   -h, --help       print this help, then exit
16469   -V, --version    print version number and configuration settings, then exit
16470       --config     print configuration, then exit
16471   -q, --quiet, --silent
16472                    do not print progress messages
16473   -d, --debug      don't remove temporary files
16474       --recheck    update $as_me by reconfiguring in the same conditions
16475       --file=FILE[:TEMPLATE]
16476                    instantiate the configuration file FILE
16477       --header=FILE[:TEMPLATE]
16478                    instantiate the configuration header FILE
16479
16480 Configuration files:
16481 $config_files
16482
16483 Configuration headers:
16484 $config_headers
16485
16486 Configuration commands:
16487 $config_commands
16488
16489 Report bugs to the package provider."
16490
16491 _ACEOF
16492 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16493 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16494 ac_cs_version="\\
16495 PCRE config.status 8.11
16496 configured by $0, generated by GNU Autoconf 2.65,
16497   with options \\"\$ac_cs_config\\"
16498
16499 Copyright (C) 2009 Free Software Foundation, Inc.
16500 This config.status script is free software; the Free Software Foundation
16501 gives unlimited permission to copy, distribute and modify it."
16502
16503 ac_pwd='$ac_pwd'
16504 srcdir='$srcdir'
16505 INSTALL='$INSTALL'
16506 MKDIR_P='$MKDIR_P'
16507 AWK='$AWK'
16508 test -n "\$AWK" || AWK=awk
16509 _ACEOF
16510
16511 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16512 # The default lists apply if the user does not specify any file.
16513 ac_need_defaults=:
16514 while test $# != 0
16515 do
16516   case $1 in
16517   --*=*)
16518     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16519     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16520     ac_shift=:
16521     ;;
16522   *)
16523     ac_option=$1
16524     ac_optarg=$2
16525     ac_shift=shift
16526     ;;
16527   esac
16528
16529   case $ac_option in
16530   # Handling of the options.
16531   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16532     ac_cs_recheck=: ;;
16533   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16534     $as_echo "$ac_cs_version"; exit ;;
16535   --config | --confi | --conf | --con | --co | --c )
16536     $as_echo "$ac_cs_config"; exit ;;
16537   --debug | --debu | --deb | --de | --d | -d )
16538     debug=: ;;
16539   --file | --fil | --fi | --f )
16540     $ac_shift
16541     case $ac_optarg in
16542     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16543     esac
16544     as_fn_append CONFIG_FILES " '$ac_optarg'"
16545     ac_need_defaults=false;;
16546   --header | --heade | --head | --hea )
16547     $ac_shift
16548     case $ac_optarg in
16549     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16550     esac
16551     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16552     ac_need_defaults=false;;
16553   --he | --h)
16554     # Conflict between --help and --header
16555     as_fn_error "ambiguous option: \`$1'
16556 Try \`$0 --help' for more information.";;
16557   --help | --hel | -h )
16558     $as_echo "$ac_cs_usage"; exit ;;
16559   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16560   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16561     ac_cs_silent=: ;;
16562
16563   # This is an error.
16564   -*) as_fn_error "unrecognized option: \`$1'
16565 Try \`$0 --help' for more information." ;;
16566
16567   *) as_fn_append ac_config_targets " $1"
16568      ac_need_defaults=false ;;
16569
16570   esac
16571   shift
16572 done
16573
16574 ac_configure_extra_args=
16575
16576 if $ac_cs_silent; then
16577   exec 6>/dev/null
16578   ac_configure_extra_args="$ac_configure_extra_args --silent"
16579 fi
16580
16581 _ACEOF
16582 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16583 if \$ac_cs_recheck; then
16584   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16585   shift
16586   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16587   CONFIG_SHELL='$SHELL'
16588   export CONFIG_SHELL
16589   exec "\$@"
16590 fi
16591
16592 _ACEOF
16593 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16594 exec 5>>config.log
16595 {
16596   echo
16597   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16598 ## Running $as_me. ##
16599 _ASBOX
16600   $as_echo "$ac_log"
16601 } >&5
16602
16603 _ACEOF
16604 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16605 #
16606 # INIT-COMMANDS
16607 #
16608 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16609
16610
16611 # The HP-UX ksh and POSIX shell print the target directory to stdout
16612 # if CDPATH is set.
16613 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16614
16615 sed_quote_subst='$sed_quote_subst'
16616 double_quote_subst='$double_quote_subst'
16617 delay_variable_subst='$delay_variable_subst'
16618 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
16619 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16620 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16621 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16622 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16623 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16624 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16625 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16626 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16627 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16628 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16629 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16630 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16631 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16632 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16633 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16634 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16635 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16636 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16637 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16638 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16639 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16640 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16641 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16642 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16643 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16644 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16645 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16646 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16647 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16648 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16649 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16650 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16651 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16652 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16653 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16654 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16655 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16656 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16657 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16658 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16659 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16660 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16661 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16662 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16663 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16664 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16665 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16666 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16667 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16668 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"`'
16669 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16670 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16671 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16672 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16673 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16674 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16675 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16676 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16677 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16678 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16679 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16680 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16681 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16682 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16683 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16684 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16685 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16686 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16687 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16688 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16689 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16690 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16691 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16692 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16693 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16694 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16695 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16696 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16697 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16698 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16699 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16700 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16701 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16702 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16703 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16704 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16705 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16706 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16707 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16708 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16709 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16710 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16711 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16712 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16713 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16714 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16715 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16716 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16717 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16718 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16719 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16720 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16721 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16722 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16723 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16724 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16725 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16726 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16727 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16728 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16729 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16730 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16731 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16732 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16733 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16734 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16735 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16736 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16737 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16738 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16739 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16740 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16741 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16742 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16743 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16744 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16745 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16746 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16747 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16748 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16749 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16750 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16751 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16752 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16753 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16754 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16755 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16756 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16757 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16758 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16759 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16760 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16761 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16762 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16763 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16764 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16765 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16766 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16767 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16768 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16769 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16770 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16771 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16772 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
16773 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16774 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16775 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16776 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16777 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16778 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16779 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16780 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16781 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
16782 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16783 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16784 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16785 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16786 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16787 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16788 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16789 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16790 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16791 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16792 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16793 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16794 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
16795
16796 LTCC='$LTCC'
16797 LTCFLAGS='$LTCFLAGS'
16798 compiler='$compiler_DEFAULT'
16799
16800 # A function that is used when there is no print builtin or printf.
16801 func_fallback_echo ()
16802 {
16803   eval 'cat <<_LTECHO_EOF
16804 \$1
16805 _LTECHO_EOF'
16806 }
16807
16808 # Quote evaled strings.
16809 for var in AS \
16810 DLLTOOL \
16811 OBJDUMP \
16812 SHELL \
16813 ECHO \
16814 SED \
16815 GREP \
16816 EGREP \
16817 FGREP \
16818 LD \
16819 NM \
16820 LN_S \
16821 lt_SP2NL \
16822 lt_NL2SP \
16823 reload_flag \
16824 deplibs_check_method \
16825 file_magic_cmd \
16826 AR \
16827 AR_FLAGS \
16828 STRIP \
16829 RANLIB \
16830 CC \
16831 CFLAGS \
16832 compiler \
16833 lt_cv_sys_global_symbol_pipe \
16834 lt_cv_sys_global_symbol_to_cdecl \
16835 lt_cv_sys_global_symbol_to_c_name_address \
16836 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16837 lt_prog_compiler_no_builtin_flag \
16838 lt_prog_compiler_wl \
16839 lt_prog_compiler_pic \
16840 lt_prog_compiler_static \
16841 lt_cv_prog_compiler_c_o \
16842 need_locks \
16843 DSYMUTIL \
16844 NMEDIT \
16845 LIPO \
16846 OTOOL \
16847 OTOOL64 \
16848 shrext_cmds \
16849 export_dynamic_flag_spec \
16850 whole_archive_flag_spec \
16851 compiler_needs_object \
16852 with_gnu_ld \
16853 allow_undefined_flag \
16854 no_undefined_flag \
16855 hardcode_libdir_flag_spec \
16856 hardcode_libdir_flag_spec_ld \
16857 hardcode_libdir_separator \
16858 fix_srcfile_path \
16859 exclude_expsyms \
16860 include_expsyms \
16861 file_list_spec \
16862 variables_saved_for_relink \
16863 libname_spec \
16864 library_names_spec \
16865 soname_spec \
16866 install_override_mode \
16867 finish_eval \
16868 old_striplib \
16869 striplib \
16870 compiler_lib_search_dirs \
16871 predep_objects \
16872 postdep_objects \
16873 predeps \
16874 postdeps \
16875 compiler_lib_search_path \
16876 LD_CXX \
16877 reload_flag_CXX \
16878 compiler_CXX \
16879 lt_prog_compiler_no_builtin_flag_CXX \
16880 lt_prog_compiler_wl_CXX \
16881 lt_prog_compiler_pic_CXX \
16882 lt_prog_compiler_static_CXX \
16883 lt_cv_prog_compiler_c_o_CXX \
16884 export_dynamic_flag_spec_CXX \
16885 whole_archive_flag_spec_CXX \
16886 compiler_needs_object_CXX \
16887 with_gnu_ld_CXX \
16888 allow_undefined_flag_CXX \
16889 no_undefined_flag_CXX \
16890 hardcode_libdir_flag_spec_CXX \
16891 hardcode_libdir_flag_spec_ld_CXX \
16892 hardcode_libdir_separator_CXX \
16893 fix_srcfile_path_CXX \
16894 exclude_expsyms_CXX \
16895 include_expsyms_CXX \
16896 file_list_spec_CXX \
16897 compiler_lib_search_dirs_CXX \
16898 predep_objects_CXX \
16899 postdep_objects_CXX \
16900 predeps_CXX \
16901 postdeps_CXX \
16902 compiler_lib_search_path_CXX; do
16903     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16904     *[\\\\\\\`\\"\\\$]*)
16905       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16906       ;;
16907     *)
16908       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16909       ;;
16910     esac
16911 done
16912
16913 # Double-quote double-evaled strings.
16914 for var in reload_cmds \
16915 old_postinstall_cmds \
16916 old_postuninstall_cmds \
16917 old_archive_cmds \
16918 extract_expsyms_cmds \
16919 old_archive_from_new_cmds \
16920 old_archive_from_expsyms_cmds \
16921 archive_cmds \
16922 archive_expsym_cmds \
16923 module_cmds \
16924 module_expsym_cmds \
16925 export_symbols_cmds \
16926 prelink_cmds \
16927 postinstall_cmds \
16928 postuninstall_cmds \
16929 finish_cmds \
16930 sys_lib_search_path_spec \
16931 sys_lib_dlsearch_path_spec \
16932 reload_cmds_CXX \
16933 old_archive_cmds_CXX \
16934 old_archive_from_new_cmds_CXX \
16935 old_archive_from_expsyms_cmds_CXX \
16936 archive_cmds_CXX \
16937 archive_expsym_cmds_CXX \
16938 module_cmds_CXX \
16939 module_expsym_cmds_CXX \
16940 export_symbols_cmds_CXX \
16941 prelink_cmds_CXX; do
16942     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16943     *[\\\\\\\`\\"\\\$]*)
16944       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16945       ;;
16946     *)
16947       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16948       ;;
16949     esac
16950 done
16951
16952 ac_aux_dir='$ac_aux_dir'
16953 xsi_shell='$xsi_shell'
16954 lt_shell_append='$lt_shell_append'
16955
16956 # See if we are running on zsh, and set the options which allow our
16957 # commands through without removal of \ escapes INIT.
16958 if test -n "\${ZSH_VERSION+set}" ; then
16959    setopt NO_GLOB_SUBST
16960 fi
16961
16962
16963     PACKAGE='$PACKAGE'
16964     VERSION='$VERSION'
16965     TIMESTAMP='$TIMESTAMP'
16966     RM='$RM'
16967     ofile='$ofile'
16968
16969
16970
16971
16972
16973
16974 _ACEOF
16975
16976 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16977
16978 # Handling of arguments.
16979 for ac_config_target in $ac_config_targets
16980 do
16981   case $ac_config_target in
16982     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16983     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16984     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16985     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16986     "libpcre.pc") CONFIG_FILES="$CONFIG_FILES libpcre.pc" ;;
16987     "libpcreposix.pc") CONFIG_FILES="$CONFIG_FILES libpcreposix.pc" ;;
16988     "libpcrecpp.pc") CONFIG_FILES="$CONFIG_FILES libpcrecpp.pc" ;;
16989     "pcre-config") CONFIG_FILES="$CONFIG_FILES pcre-config" ;;
16990     "pcre.h") CONFIG_FILES="$CONFIG_FILES pcre.h" ;;
16991     "pcre_stringpiece.h") CONFIG_FILES="$CONFIG_FILES pcre_stringpiece.h" ;;
16992     "pcrecpparg.h") CONFIG_FILES="$CONFIG_FILES pcrecpparg.h" ;;
16993     "script-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS script-chmod" ;;
16994     "delete-old-chartables") CONFIG_COMMANDS="$CONFIG_COMMANDS delete-old-chartables" ;;
16995
16996   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16997   esac
16998 done
16999
17000
17001 # If the user did not use the arguments to specify the items to instantiate,
17002 # then the envvar interface is used.  Set only those that are not.
17003 # We use the long form for the default assignment because of an extremely
17004 # bizarre bug on SunOS 4.1.3.
17005 if $ac_need_defaults; then
17006   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17007   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17008   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17009 fi
17010
17011 # Have a temporary directory for convenience.  Make it in the build tree
17012 # simply because there is no reason against having it here, and in addition,
17013 # creating and moving files from /tmp can sometimes cause problems.
17014 # Hook for its removal unless debugging.
17015 # Note that there is a small window in which the directory will not be cleaned:
17016 # after its creation but before its name has been assigned to `$tmp'.
17017 $debug ||
17018 {
17019   tmp=
17020   trap 'exit_status=$?
17021   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17022 ' 0
17023   trap 'as_fn_exit 1' 1 2 13 15
17024 }
17025 # Create a (secure) tmp directory for tmp files.
17026
17027 {
17028   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17029   test -n "$tmp" && test -d "$tmp"
17030 }  ||
17031 {
17032   tmp=./conf$$-$RANDOM
17033   (umask 077 && mkdir "$tmp")
17034 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17035
17036 # Set up the scripts for CONFIG_FILES section.
17037 # No need to generate them if there are no CONFIG_FILES.
17038 # This happens for instance with `./config.status config.h'.
17039 if test -n "$CONFIG_FILES"; then
17040
17041
17042 ac_cr=`echo X | tr X '\015'`
17043 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17044 # But we know of no other shell where ac_cr would be empty at this
17045 # point, so we can use a bashism as a fallback.
17046 if test "x$ac_cr" = x; then
17047   eval ac_cr=\$\'\\r\'
17048 fi
17049 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17050 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17051   ac_cs_awk_cr='\r'
17052 else
17053   ac_cs_awk_cr=$ac_cr
17054 fi
17055
17056 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17057 _ACEOF
17058
17059
17060 {
17061   echo "cat >conf$$subs.awk <<_ACEOF" &&
17062   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17063   echo "_ACEOF"
17064 } >conf$$subs.sh ||
17065   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17066 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17067 ac_delim='%!_!# '
17068 for ac_last_try in false false false false false :; do
17069   . ./conf$$subs.sh ||
17070     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17071
17072   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17073   if test $ac_delim_n = $ac_delim_num; then
17074     break
17075   elif $ac_last_try; then
17076     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17077   else
17078     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17079   fi
17080 done
17081 rm -f conf$$subs.sh
17082
17083 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17084 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17085 _ACEOF
17086 sed -n '
17087 h
17088 s/^/S["/; s/!.*/"]=/
17089 p
17090 g
17091 s/^[^!]*!//
17092 :repl
17093 t repl
17094 s/'"$ac_delim"'$//
17095 t delim
17096 :nl
17097 h
17098 s/\(.\{148\}\)..*/\1/
17099 t more1
17100 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17101 p
17102 n
17103 b repl
17104 :more1
17105 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17106 p
17107 g
17108 s/.\{148\}//
17109 t nl
17110 :delim
17111 h
17112 s/\(.\{148\}\)..*/\1/
17113 t more2
17114 s/["\\]/\\&/g; s/^/"/; s/$/"/
17115 p
17116 b
17117 :more2
17118 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17119 p
17120 g
17121 s/.\{148\}//
17122 t delim
17123 ' <conf$$subs.awk | sed '
17124 /^[^""]/{
17125   N
17126   s/\n//
17127 }
17128 ' >>$CONFIG_STATUS || ac_write_fail=1
17129 rm -f conf$$subs.awk
17130 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17131 _ACAWK
17132 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17133   for (key in S) S_is_set[key] = 1
17134   FS = "\a"
17135
17136 }
17137 {
17138   line = $ 0
17139   nfields = split(line, field, "@")
17140   substed = 0
17141   len = length(field[1])
17142   for (i = 2; i < nfields; i++) {
17143     key = field[i]
17144     keylen = length(key)
17145     if (S_is_set[key]) {
17146       value = S[key]
17147       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17148       len += length(value) + length(field[++i])
17149       substed = 1
17150     } else
17151       len += 1 + keylen
17152   }
17153
17154   print line
17155 }
17156
17157 _ACAWK
17158 _ACEOF
17159 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17160 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17161   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17162 else
17163   cat
17164 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17165   || as_fn_error "could not setup config files machinery" "$LINENO" 5
17166 _ACEOF
17167
17168 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17169 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17170 # trailing colons and then remove the whole line if VPATH becomes empty
17171 # (actually we leave an empty line to preserve line numbers).
17172 if test "x$srcdir" = x.; then
17173   ac_vpsub='/^[  ]*VPATH[        ]*=/{
17174 s/:*\$(srcdir):*/:/
17175 s/:*\${srcdir}:*/:/
17176 s/:*@srcdir@:*/:/
17177 s/^\([^=]*=[     ]*\):*/\1/
17178 s/:*$//
17179 s/^[^=]*=[       ]*$//
17180 }'
17181 fi
17182
17183 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17184 fi # test -n "$CONFIG_FILES"
17185
17186 # Set up the scripts for CONFIG_HEADERS section.
17187 # No need to generate them if there are no CONFIG_HEADERS.
17188 # This happens for instance with `./config.status Makefile'.
17189 if test -n "$CONFIG_HEADERS"; then
17190 cat >"$tmp/defines.awk" <<\_ACAWK ||
17191 BEGIN {
17192 _ACEOF
17193
17194 # Transform confdefs.h into an awk script `defines.awk', embedded as
17195 # here-document in config.status, that substitutes the proper values into
17196 # config.h.in to produce config.h.
17197
17198 # Create a delimiter string that does not exist in confdefs.h, to ease
17199 # handling of long lines.
17200 ac_delim='%!_!# '
17201 for ac_last_try in false false :; do
17202   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17203   if test -z "$ac_t"; then
17204     break
17205   elif $ac_last_try; then
17206     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17207   else
17208     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17209   fi
17210 done
17211
17212 # For the awk script, D is an array of macro values keyed by name,
17213 # likewise P contains macro parameters if any.  Preserve backslash
17214 # newline sequences.
17215
17216 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17217 sed -n '
17218 s/.\{148\}/&'"$ac_delim"'/g
17219 t rset
17220 :rset
17221 s/^[     ]*#[    ]*define[       ][      ]*/ /
17222 t def
17223 d
17224 :def
17225 s/\\$//
17226 t bsnl
17227 s/["\\]/\\&/g
17228 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17229 D["\1"]=" \3"/p
17230 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17231 d
17232 :bsnl
17233 s/["\\]/\\&/g
17234 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17235 D["\1"]=" \3\\\\\\n"\\/p
17236 t cont
17237 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17238 t cont
17239 d
17240 :cont
17241 n
17242 s/.\{148\}/&'"$ac_delim"'/g
17243 t clear
17244 :clear
17245 s/\\$//
17246 t bsnlc
17247 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17248 d
17249 :bsnlc
17250 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17251 b cont
17252 ' <confdefs.h | sed '
17253 s/'"$ac_delim"'/"\\\
17254 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17255
17256 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17257   for (key in D) D_is_set[key] = 1
17258   FS = "\a"
17259 }
17260 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17261   line = \$ 0
17262   split(line, arg, " ")
17263   if (arg[1] == "#") {
17264     defundef = arg[2]
17265     mac1 = arg[3]
17266   } else {
17267     defundef = substr(arg[1], 2)
17268     mac1 = arg[2]
17269   }
17270   split(mac1, mac2, "(") #)
17271   macro = mac2[1]
17272   prefix = substr(line, 1, index(line, defundef) - 1)
17273   if (D_is_set[macro]) {
17274     # Preserve the white space surrounding the "#".
17275     print prefix "define", macro P[macro] D[macro]
17276     next
17277   } else {
17278     # Replace #undef with comments.  This is necessary, for example,
17279     # in the case of _POSIX_SOURCE, which is predefined and required
17280     # on some systems where configure will not decide to define it.
17281     if (defundef == "undef") {
17282       print "/*", prefix defundef, macro, "*/"
17283       next
17284     }
17285   }
17286 }
17287 { print }
17288 _ACAWK
17289 _ACEOF
17290 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17291   as_fn_error "could not setup config headers machinery" "$LINENO" 5
17292 fi # test -n "$CONFIG_HEADERS"
17293
17294
17295 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17296 shift
17297 for ac_tag
17298 do
17299   case $ac_tag in
17300   :[FHLC]) ac_mode=$ac_tag; continue;;
17301   esac
17302   case $ac_mode$ac_tag in
17303   :[FHL]*:*);;
17304   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17305   :[FH]-) ac_tag=-:-;;
17306   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17307   esac
17308   ac_save_IFS=$IFS
17309   IFS=:
17310   set x $ac_tag
17311   IFS=$ac_save_IFS
17312   shift
17313   ac_file=$1
17314   shift
17315
17316   case $ac_mode in
17317   :L) ac_source=$1;;
17318   :[FH])
17319     ac_file_inputs=
17320     for ac_f
17321     do
17322       case $ac_f in
17323       -) ac_f="$tmp/stdin";;
17324       *) # Look for the file first in the build tree, then in the source tree
17325          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17326          # because $ac_f cannot contain `:'.
17327          test -f "$ac_f" ||
17328            case $ac_f in
17329            [\\/$]*) false;;
17330            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17331            esac ||
17332            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17333       esac
17334       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17335       as_fn_append ac_file_inputs " '$ac_f'"
17336     done
17337
17338     # Let's still pretend it is `configure' which instantiates (i.e., don't
17339     # use $as_me), people would be surprised to read:
17340     #    /* config.h.  Generated by config.status.  */
17341     configure_input='Generated from '`
17342           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17343         `' by configure.'
17344     if test x"$ac_file" != x-; then
17345       configure_input="$ac_file.  $configure_input"
17346       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17347 $as_echo "$as_me: creating $ac_file" >&6;}
17348     fi
17349     # Neutralize special characters interpreted by sed in replacement strings.
17350     case $configure_input in #(
17351     *\&* | *\|* | *\\* )
17352        ac_sed_conf_input=`$as_echo "$configure_input" |
17353        sed 's/[\\\\&|]/\\\\&/g'`;; #(
17354     *) ac_sed_conf_input=$configure_input;;
17355     esac
17356
17357     case $ac_tag in
17358     *:-:* | *:-) cat >"$tmp/stdin" \
17359       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17360     esac
17361     ;;
17362   esac
17363
17364   ac_dir=`$as_dirname -- "$ac_file" ||
17365 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17366          X"$ac_file" : 'X\(//\)[^/]' \| \
17367          X"$ac_file" : 'X\(//\)$' \| \
17368          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17369 $as_echo X"$ac_file" |
17370     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17371             s//\1/
17372             q
17373           }
17374           /^X\(\/\/\)[^/].*/{
17375             s//\1/
17376             q
17377           }
17378           /^X\(\/\/\)$/{
17379             s//\1/
17380             q
17381           }
17382           /^X\(\/\).*/{
17383             s//\1/
17384             q
17385           }
17386           s/.*/./; q'`
17387   as_dir="$ac_dir"; as_fn_mkdir_p
17388   ac_builddir=.
17389
17390 case "$ac_dir" in
17391 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17392 *)
17393   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17394   # A ".." for each directory in $ac_dir_suffix.
17395   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17396   case $ac_top_builddir_sub in
17397   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17398   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17399   esac ;;
17400 esac
17401 ac_abs_top_builddir=$ac_pwd
17402 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17403 # for backward compatibility:
17404 ac_top_builddir=$ac_top_build_prefix
17405
17406 case $srcdir in
17407   .)  # We are building in place.
17408     ac_srcdir=.
17409     ac_top_srcdir=$ac_top_builddir_sub
17410     ac_abs_top_srcdir=$ac_pwd ;;
17411   [\\/]* | ?:[\\/]* )  # Absolute name.
17412     ac_srcdir=$srcdir$ac_dir_suffix;
17413     ac_top_srcdir=$srcdir
17414     ac_abs_top_srcdir=$srcdir ;;
17415   *) # Relative name.
17416     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17417     ac_top_srcdir=$ac_top_build_prefix$srcdir
17418     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17419 esac
17420 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17421
17422
17423   case $ac_mode in
17424   :F)
17425   #
17426   # CONFIG_FILE
17427   #
17428
17429   case $INSTALL in
17430   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17431   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17432   esac
17433   ac_MKDIR_P=$MKDIR_P
17434   case $MKDIR_P in
17435   [\\/$]* | ?:[\\/]* ) ;;
17436   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17437   esac
17438 _ACEOF
17439
17440 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17441 # If the template does not know about datarootdir, expand it.
17442 # FIXME: This hack should be removed a few years after 2.60.
17443 ac_datarootdir_hack=; ac_datarootdir_seen=
17444 ac_sed_dataroot='
17445 /datarootdir/ {
17446   p
17447   q
17448 }
17449 /@datadir@/p
17450 /@docdir@/p
17451 /@infodir@/p
17452 /@localedir@/p
17453 /@mandir@/p'
17454 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17455 *datarootdir*) ac_datarootdir_seen=yes;;
17456 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17457   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17458 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17459 _ACEOF
17460 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17461   ac_datarootdir_hack='
17462   s&@datadir@&$datadir&g
17463   s&@docdir@&$docdir&g
17464   s&@infodir@&$infodir&g
17465   s&@localedir@&$localedir&g
17466   s&@mandir@&$mandir&g
17467   s&\\\${datarootdir}&$datarootdir&g' ;;
17468 esac
17469 _ACEOF
17470
17471 # Neutralize VPATH when `$srcdir' = `.'.
17472 # Shell code in configure.ac might set extrasub.
17473 # FIXME: do we really want to maintain this feature?
17474 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17475 ac_sed_extra="$ac_vpsub
17476 $extrasub
17477 _ACEOF
17478 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17479 :t
17480 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17481 s|@configure_input@|$ac_sed_conf_input|;t t
17482 s&@top_builddir@&$ac_top_builddir_sub&;t t
17483 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17484 s&@srcdir@&$ac_srcdir&;t t
17485 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17486 s&@top_srcdir@&$ac_top_srcdir&;t t
17487 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17488 s&@builddir@&$ac_builddir&;t t
17489 s&@abs_builddir@&$ac_abs_builddir&;t t
17490 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17491 s&@INSTALL@&$ac_INSTALL&;t t
17492 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17493 $ac_datarootdir_hack
17494 "
17495 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17496   || as_fn_error "could not create $ac_file" "$LINENO" 5
17497
17498 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17499   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17500   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17501   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17502 which seems to be undefined.  Please make sure it is defined." >&5
17503 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17504 which seems to be undefined.  Please make sure it is defined." >&2;}
17505
17506   rm -f "$tmp/stdin"
17507   case $ac_file in
17508   -) cat "$tmp/out" && rm -f "$tmp/out";;
17509   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17510   esac \
17511   || as_fn_error "could not create $ac_file" "$LINENO" 5
17512  ;;
17513   :H)
17514   #
17515   # CONFIG_HEADER
17516   #
17517   if test x"$ac_file" != x-; then
17518     {
17519       $as_echo "/* $configure_input  */" \
17520       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17521     } >"$tmp/config.h" \
17522       || as_fn_error "could not create $ac_file" "$LINENO" 5
17523     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17524       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17525 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17526     else
17527       rm -f "$ac_file"
17528       mv "$tmp/config.h" "$ac_file" \
17529         || as_fn_error "could not create $ac_file" "$LINENO" 5
17530     fi
17531   else
17532     $as_echo "/* $configure_input  */" \
17533       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17534       || as_fn_error "could not create -" "$LINENO" 5
17535   fi
17536 # Compute "$ac_file"'s index in $config_headers.
17537 _am_arg="$ac_file"
17538 _am_stamp_count=1
17539 for _am_header in $config_headers :; do
17540   case $_am_header in
17541     $_am_arg | $_am_arg:* )
17542       break ;;
17543     * )
17544       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17545   esac
17546 done
17547 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17548 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17549          X"$_am_arg" : 'X\(//\)[^/]' \| \
17550          X"$_am_arg" : 'X\(//\)$' \| \
17551          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17552 $as_echo X"$_am_arg" |
17553     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17554             s//\1/
17555             q
17556           }
17557           /^X\(\/\/\)[^/].*/{
17558             s//\1/
17559             q
17560           }
17561           /^X\(\/\/\)$/{
17562             s//\1/
17563             q
17564           }
17565           /^X\(\/\).*/{
17566             s//\1/
17567             q
17568           }
17569           s/.*/./; q'`/stamp-h$_am_stamp_count
17570  ;;
17571
17572   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17573 $as_echo "$as_me: executing $ac_file commands" >&6;}
17574  ;;
17575   esac
17576
17577
17578   case $ac_file$ac_mode in
17579     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17580   # Autoconf 2.62 quotes --file arguments for eval, but not when files
17581   # are listed without --file.  Let's play safe and only enable the eval
17582   # if we detect the quoting.
17583   case $CONFIG_FILES in
17584   *\'*) eval set x "$CONFIG_FILES" ;;
17585   *)   set x $CONFIG_FILES ;;
17586   esac
17587   shift
17588   for mf
17589   do
17590     # Strip MF so we end up with the name of the file.
17591     mf=`echo "$mf" | sed -e 's/:.*$//'`
17592     # Check whether this is an Automake generated Makefile or not.
17593     # We used to match only the files named `Makefile.in', but
17594     # some people rename them; so instead we look at the file content.
17595     # Grep'ing the first line is not enough: some people post-process
17596     # each Makefile.in and add a new line on top of each file to say so.
17597     # Grep'ing the whole file is not good either: AIX grep has a line
17598     # limit of 2048, but all sed's we know have understand at least 4000.
17599     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17600       dirpart=`$as_dirname -- "$mf" ||
17601 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17602          X"$mf" : 'X\(//\)[^/]' \| \
17603          X"$mf" : 'X\(//\)$' \| \
17604          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17605 $as_echo X"$mf" |
17606     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17607             s//\1/
17608             q
17609           }
17610           /^X\(\/\/\)[^/].*/{
17611             s//\1/
17612             q
17613           }
17614           /^X\(\/\/\)$/{
17615             s//\1/
17616             q
17617           }
17618           /^X\(\/\).*/{
17619             s//\1/
17620             q
17621           }
17622           s/.*/./; q'`
17623     else
17624       continue
17625     fi
17626     # Extract the definition of DEPDIR, am__include, and am__quote
17627     # from the Makefile without running `make'.
17628     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17629     test -z "$DEPDIR" && continue
17630     am__include=`sed -n 's/^am__include = //p' < "$mf"`
17631     test -z "am__include" && continue
17632     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17633     # When using ansi2knr, U may be empty or an underscore; expand it
17634     U=`sed -n 's/^U = //p' < "$mf"`
17635     # Find all dependency output files, they are included files with
17636     # $(DEPDIR) in their names.  We invoke sed twice because it is the
17637     # simplest approach to changing $(DEPDIR) to its actual value in the
17638     # expansion.
17639     for file in `sed -n "
17640       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17641          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17642       # Make sure the directory exists.
17643       test -f "$dirpart/$file" && continue
17644       fdir=`$as_dirname -- "$file" ||
17645 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17646          X"$file" : 'X\(//\)[^/]' \| \
17647          X"$file" : 'X\(//\)$' \| \
17648          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17649 $as_echo X"$file" |
17650     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17651             s//\1/
17652             q
17653           }
17654           /^X\(\/\/\)[^/].*/{
17655             s//\1/
17656             q
17657           }
17658           /^X\(\/\/\)$/{
17659             s//\1/
17660             q
17661           }
17662           /^X\(\/\).*/{
17663             s//\1/
17664             q
17665           }
17666           s/.*/./; q'`
17667       as_dir=$dirpart/$fdir; as_fn_mkdir_p
17668       # echo "creating $dirpart/$file"
17669       echo '# dummy' > "$dirpart/$file"
17670     done
17671   done
17672 }
17673  ;;
17674     "libtool":C)
17675
17676     # See if we are running on zsh, and set the options which allow our
17677     # commands through without removal of \ escapes.
17678     if test -n "${ZSH_VERSION+set}" ; then
17679       setopt NO_GLOB_SUBST
17680     fi
17681
17682     cfgfile="${ofile}T"
17683     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17684     $RM "$cfgfile"
17685
17686     cat <<_LT_EOF >> "$cfgfile"
17687 #! $SHELL
17688
17689 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17690 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17691 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17692 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17693 #
17694 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17695 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
17696 #                 Inc.
17697 #   Written by Gordon Matzigkeit, 1996
17698 #
17699 #   This file is part of GNU Libtool.
17700 #
17701 # GNU Libtool is free software; you can redistribute it and/or
17702 # modify it under the terms of the GNU General Public License as
17703 # published by the Free Software Foundation; either version 2 of
17704 # the License, or (at your option) any later version.
17705 #
17706 # As a special exception to the GNU General Public License,
17707 # if you distribute this file as part of a program or library that
17708 # is built using GNU Libtool, you may include this file under the
17709 # same distribution terms that you use for the rest of that program.
17710 #
17711 # GNU Libtool is distributed in the hope that it will be useful,
17712 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17713 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17714 # GNU General Public License for more details.
17715 #
17716 # You should have received a copy of the GNU General Public License
17717 # along with GNU Libtool; see the file COPYING.  If not, a copy
17718 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17719 # obtained by writing to the Free Software Foundation, Inc.,
17720 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17721
17722
17723 # The names of the tagged configurations supported by this script.
17724 available_tags="CXX "
17725
17726 # ### BEGIN LIBTOOL CONFIG
17727
17728 # Assembler program.
17729 AS=$lt_AS
17730
17731 # DLL creation program.
17732 DLLTOOL=$lt_DLLTOOL
17733
17734 # Object dumper program.
17735 OBJDUMP=$lt_OBJDUMP
17736
17737 # Which release of libtool.m4 was used?
17738 macro_version=$macro_version
17739 macro_revision=$macro_revision
17740
17741 # Whether or not to build shared libraries.
17742 build_libtool_libs=$enable_shared
17743
17744 # Whether or not to build static libraries.
17745 build_old_libs=$enable_static
17746
17747 # What type of objects to build.
17748 pic_mode=$pic_mode
17749
17750 # Whether or not to optimize for fast installation.
17751 fast_install=$enable_fast_install
17752
17753 # Shell to use when invoking shell scripts.
17754 SHELL=$lt_SHELL
17755
17756 # An echo program that protects backslashes.
17757 ECHO=$lt_ECHO
17758
17759 # The host system.
17760 host_alias=$host_alias
17761 host=$host
17762 host_os=$host_os
17763
17764 # The build system.
17765 build_alias=$build_alias
17766 build=$build
17767 build_os=$build_os
17768
17769 # A sed program that does not truncate output.
17770 SED=$lt_SED
17771
17772 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17773 Xsed="\$SED -e 1s/^X//"
17774
17775 # A grep program that handles long lines.
17776 GREP=$lt_GREP
17777
17778 # An ERE matcher.
17779 EGREP=$lt_EGREP
17780
17781 # A literal string matcher.
17782 FGREP=$lt_FGREP
17783
17784 # A BSD- or MS-compatible name lister.
17785 NM=$lt_NM
17786
17787 # Whether we need soft or hard links.
17788 LN_S=$lt_LN_S
17789
17790 # What is the maximum length of a command?
17791 max_cmd_len=$max_cmd_len
17792
17793 # Object file suffix (normally "o").
17794 objext=$ac_objext
17795
17796 # Executable file suffix (normally "").
17797 exeext=$exeext
17798
17799 # whether the shell understands "unset".
17800 lt_unset=$lt_unset
17801
17802 # turn spaces into newlines.
17803 SP2NL=$lt_lt_SP2NL
17804
17805 # turn newlines into spaces.
17806 NL2SP=$lt_lt_NL2SP
17807
17808 # Method to check whether dependent libraries are shared objects.
17809 deplibs_check_method=$lt_deplibs_check_method
17810
17811 # Command to use when deplibs_check_method == "file_magic".
17812 file_magic_cmd=$lt_file_magic_cmd
17813
17814 # The archiver.
17815 AR=$lt_AR
17816 AR_FLAGS=$lt_AR_FLAGS
17817
17818 # A symbol stripping program.
17819 STRIP=$lt_STRIP
17820
17821 # Commands used to install an old-style archive.
17822 RANLIB=$lt_RANLIB
17823 old_postinstall_cmds=$lt_old_postinstall_cmds
17824 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17825
17826 # Whether to use a lock for old archive extraction.
17827 lock_old_archive_extraction=$lock_old_archive_extraction
17828
17829 # A C compiler.
17830 LTCC=$lt_CC
17831
17832 # LTCC compiler flags.
17833 LTCFLAGS=$lt_CFLAGS
17834
17835 # Take the output of nm and produce a listing of raw symbols and C names.
17836 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17837
17838 # Transform the output of nm in a proper C declaration.
17839 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17840
17841 # Transform the output of nm in a C name address pair.
17842 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17843
17844 # Transform the output of nm in a C name address pair when lib prefix is needed.
17845 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17846
17847 # The name of the directory that contains temporary libtool files.
17848 objdir=$objdir
17849
17850 # Used to examine libraries when file_magic_cmd begins with "file".
17851 MAGIC_CMD=$MAGIC_CMD
17852
17853 # Must we lock files when doing compilation?
17854 need_locks=$lt_need_locks
17855
17856 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17857 DSYMUTIL=$lt_DSYMUTIL
17858
17859 # Tool to change global to local symbols on Mac OS X.
17860 NMEDIT=$lt_NMEDIT
17861
17862 # Tool to manipulate fat objects and archives on Mac OS X.
17863 LIPO=$lt_LIPO
17864
17865 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17866 OTOOL=$lt_OTOOL
17867
17868 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17869 OTOOL64=$lt_OTOOL64
17870
17871 # Old archive suffix (normally "a").
17872 libext=$libext
17873
17874 # Shared library suffix (normally ".so").
17875 shrext_cmds=$lt_shrext_cmds
17876
17877 # The commands to extract the exported symbol list from a shared archive.
17878 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17879
17880 # Variables whose values should be saved in libtool wrapper scripts and
17881 # restored at link time.
17882 variables_saved_for_relink=$lt_variables_saved_for_relink
17883
17884 # Do we need the "lib" prefix for modules?
17885 need_lib_prefix=$need_lib_prefix
17886
17887 # Do we need a version for libraries?
17888 need_version=$need_version
17889
17890 # Library versioning type.
17891 version_type=$version_type
17892
17893 # Shared library runtime path variable.
17894 runpath_var=$runpath_var
17895
17896 # Shared library path variable.
17897 shlibpath_var=$shlibpath_var
17898
17899 # Is shlibpath searched before the hard-coded library search path?
17900 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17901
17902 # Format of library name prefix.
17903 libname_spec=$lt_libname_spec
17904
17905 # List of archive names.  First name is the real one, the rest are links.
17906 # The last name is the one that the linker finds with -lNAME
17907 library_names_spec=$lt_library_names_spec
17908
17909 # The coded name of the library, if different from the real name.
17910 soname_spec=$lt_soname_spec
17911
17912 # Permission mode override for installation of shared libraries.
17913 install_override_mode=$lt_install_override_mode
17914
17915 # Command to use after installation of a shared archive.
17916 postinstall_cmds=$lt_postinstall_cmds
17917
17918 # Command to use after uninstallation of a shared archive.
17919 postuninstall_cmds=$lt_postuninstall_cmds
17920
17921 # Commands used to finish a libtool library installation in a directory.
17922 finish_cmds=$lt_finish_cmds
17923
17924 # As "finish_cmds", except a single script fragment to be evaled but
17925 # not shown.
17926 finish_eval=$lt_finish_eval
17927
17928 # Whether we should hardcode library paths into libraries.
17929 hardcode_into_libs=$hardcode_into_libs
17930
17931 # Compile-time system search path for libraries.
17932 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17933
17934 # Run-time system search path for libraries.
17935 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17936
17937 # Whether dlopen is supported.
17938 dlopen_support=$enable_dlopen
17939
17940 # Whether dlopen of programs is supported.
17941 dlopen_self=$enable_dlopen_self
17942
17943 # Whether dlopen of statically linked programs is supported.
17944 dlopen_self_static=$enable_dlopen_self_static
17945
17946 # Commands to strip libraries.
17947 old_striplib=$lt_old_striplib
17948 striplib=$lt_striplib
17949
17950
17951 # The linker used to build libraries.
17952 LD=$lt_LD
17953
17954 # How to create reloadable object files.
17955 reload_flag=$lt_reload_flag
17956 reload_cmds=$lt_reload_cmds
17957
17958 # Commands used to build an old-style archive.
17959 old_archive_cmds=$lt_old_archive_cmds
17960
17961 # A language specific compiler.
17962 CC=$lt_compiler
17963
17964 # Is the compiler the GNU compiler?
17965 with_gcc=$GCC
17966
17967 # Compiler flag to turn off builtin functions.
17968 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17969
17970 # How to pass a linker flag through the compiler.
17971 wl=$lt_lt_prog_compiler_wl
17972
17973 # Additional compiler flags for building library objects.
17974 pic_flag=$lt_lt_prog_compiler_pic
17975
17976 # Compiler flag to prevent dynamic linking.
17977 link_static_flag=$lt_lt_prog_compiler_static
17978
17979 # Does compiler simultaneously support -c and -o options?
17980 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17981
17982 # Whether or not to add -lc for building shared libraries.
17983 build_libtool_need_lc=$archive_cmds_need_lc
17984
17985 # Whether or not to disallow shared libs when runtime libs are static.
17986 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17987
17988 # Compiler flag to allow reflexive dlopens.
17989 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17990
17991 # Compiler flag to generate shared objects directly from archives.
17992 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17993
17994 # Whether the compiler copes with passing no objects directly.
17995 compiler_needs_object=$lt_compiler_needs_object
17996
17997 # Create an old-style archive from a shared archive.
17998 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17999
18000 # Create a temporary old-style archive to link instead of a shared archive.
18001 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18002
18003 # Commands used to build a shared archive.
18004 archive_cmds=$lt_archive_cmds
18005 archive_expsym_cmds=$lt_archive_expsym_cmds
18006
18007 # Commands used to build a loadable module if different from building
18008 # a shared archive.
18009 module_cmds=$lt_module_cmds
18010 module_expsym_cmds=$lt_module_expsym_cmds
18011
18012 # Whether we are building with GNU ld or not.
18013 with_gnu_ld=$lt_with_gnu_ld
18014
18015 # Flag that allows shared libraries with undefined symbols to be built.
18016 allow_undefined_flag=$lt_allow_undefined_flag
18017
18018 # Flag that enforces no undefined symbols.
18019 no_undefined_flag=$lt_no_undefined_flag
18020
18021 # Flag to hardcode \$libdir into a binary during linking.
18022 # This must work even if \$libdir does not exist
18023 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18024
18025 # If ld is used when linking, flag to hardcode \$libdir into a binary
18026 # during linking.  This must work even if \$libdir does not exist.
18027 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18028
18029 # Whether we need a single "-rpath" flag with a separated argument.
18030 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18031
18032 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18033 # DIR into the resulting binary.
18034 hardcode_direct=$hardcode_direct
18035
18036 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18037 # DIR into the resulting binary and the resulting library dependency is
18038 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18039 # library is relocated.
18040 hardcode_direct_absolute=$hardcode_direct_absolute
18041
18042 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18043 # into the resulting binary.
18044 hardcode_minus_L=$hardcode_minus_L
18045
18046 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18047 # into the resulting binary.
18048 hardcode_shlibpath_var=$hardcode_shlibpath_var
18049
18050 # Set to "yes" if building a shared library automatically hardcodes DIR
18051 # into the library and all subsequent libraries and executables linked
18052 # against it.
18053 hardcode_automatic=$hardcode_automatic
18054
18055 # Set to yes if linker adds runtime paths of dependent libraries
18056 # to runtime path list.
18057 inherit_rpath=$inherit_rpath
18058
18059 # Whether libtool must link a program against all its dependency libraries.
18060 link_all_deplibs=$link_all_deplibs
18061
18062 # Fix the shell variable \$srcfile for the compiler.
18063 fix_srcfile_path=$lt_fix_srcfile_path
18064
18065 # Set to "yes" if exported symbols are required.
18066 always_export_symbols=$always_export_symbols
18067
18068 # The commands to list exported symbols.
18069 export_symbols_cmds=$lt_export_symbols_cmds
18070
18071 # Symbols that should not be listed in the preloaded symbols.
18072 exclude_expsyms=$lt_exclude_expsyms
18073
18074 # Symbols that must always be exported.
18075 include_expsyms=$lt_include_expsyms
18076
18077 # Commands necessary for linking programs (against libraries) with templates.
18078 prelink_cmds=$lt_prelink_cmds
18079
18080 # Specify filename containing input files.
18081 file_list_spec=$lt_file_list_spec
18082
18083 # How to hardcode a shared library path into an executable.
18084 hardcode_action=$hardcode_action
18085
18086 # The directories searched by this compiler when creating a shared library.
18087 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18088
18089 # Dependencies to place before and after the objects being linked to
18090 # create a shared library.
18091 predep_objects=$lt_predep_objects
18092 postdep_objects=$lt_postdep_objects
18093 predeps=$lt_predeps
18094 postdeps=$lt_postdeps
18095
18096 # The library search path used internally by the compiler when linking
18097 # a shared library.
18098 compiler_lib_search_path=$lt_compiler_lib_search_path
18099
18100 # ### END LIBTOOL CONFIG
18101
18102 _LT_EOF
18103
18104   case $host_os in
18105   aix3*)
18106     cat <<\_LT_EOF >> "$cfgfile"
18107 # AIX sometimes has problems with the GCC collect2 program.  For some
18108 # reason, if we set the COLLECT_NAMES environment variable, the problems
18109 # vanish in a puff of smoke.
18110 if test "X${COLLECT_NAMES+set}" != Xset; then
18111   COLLECT_NAMES=
18112   export COLLECT_NAMES
18113 fi
18114 _LT_EOF
18115     ;;
18116   esac
18117
18118
18119 ltmain="$ac_aux_dir/ltmain.sh"
18120
18121
18122   # We use sed instead of cat because bash on DJGPP gets confused if
18123   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18124   # text mode, it properly converts lines to CR/LF.  This bash problem
18125   # is reportedly fixed, but why not run on old versions too?
18126   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18127     || (rm -f "$cfgfile"; exit 1)
18128
18129   case $xsi_shell in
18130   yes)
18131     cat << \_LT_EOF >> "$cfgfile"
18132
18133 # func_dirname file append nondir_replacement
18134 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
18135 # otherwise set result to NONDIR_REPLACEMENT.
18136 func_dirname ()
18137 {
18138   case ${1} in
18139     */*) func_dirname_result="${1%/*}${2}" ;;
18140     *  ) func_dirname_result="${3}" ;;
18141   esac
18142 }
18143
18144 # func_basename file
18145 func_basename ()
18146 {
18147   func_basename_result="${1##*/}"
18148 }
18149
18150 # func_dirname_and_basename file append nondir_replacement
18151 # perform func_basename and func_dirname in a single function
18152 # call:
18153 #   dirname:  Compute the dirname of FILE.  If nonempty,
18154 #             add APPEND to the result, otherwise set result
18155 #             to NONDIR_REPLACEMENT.
18156 #             value returned in "$func_dirname_result"
18157 #   basename: Compute filename of FILE.
18158 #             value retuned in "$func_basename_result"
18159 # Implementation must be kept synchronized with func_dirname
18160 # and func_basename. For efficiency, we do not delegate to
18161 # those functions but instead duplicate the functionality here.
18162 func_dirname_and_basename ()
18163 {
18164   case ${1} in
18165     */*) func_dirname_result="${1%/*}${2}" ;;
18166     *  ) func_dirname_result="${3}" ;;
18167   esac
18168   func_basename_result="${1##*/}"
18169 }
18170
18171 # func_stripname prefix suffix name
18172 # strip PREFIX and SUFFIX off of NAME.
18173 # PREFIX and SUFFIX must not contain globbing or regex special
18174 # characters, hashes, percent signs, but SUFFIX may contain a leading
18175 # dot (in which case that matches only a dot).
18176 func_stripname ()
18177 {
18178   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18179   # positional parameters, so assign one to ordinary parameter first.
18180   func_stripname_result=${3}
18181   func_stripname_result=${func_stripname_result#"${1}"}
18182   func_stripname_result=${func_stripname_result%"${2}"}
18183 }
18184
18185 # func_opt_split
18186 func_opt_split ()
18187 {
18188   func_opt_split_opt=${1%%=*}
18189   func_opt_split_arg=${1#*=}
18190 }
18191
18192 # func_lo2o object
18193 func_lo2o ()
18194 {
18195   case ${1} in
18196     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18197     *)    func_lo2o_result=${1} ;;
18198   esac
18199 }
18200
18201 # func_xform libobj-or-source
18202 func_xform ()
18203 {
18204   func_xform_result=${1%.*}.lo
18205 }
18206
18207 # func_arith arithmetic-term...
18208 func_arith ()
18209 {
18210   func_arith_result=$(( $* ))
18211 }
18212
18213 # func_len string
18214 # STRING may not start with a hyphen.
18215 func_len ()
18216 {
18217   func_len_result=${#1}
18218 }
18219
18220 _LT_EOF
18221     ;;
18222   *) # Bourne compatible functions.
18223     cat << \_LT_EOF >> "$cfgfile"
18224
18225 # func_dirname file append nondir_replacement
18226 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
18227 # otherwise set result to NONDIR_REPLACEMENT.
18228 func_dirname ()
18229 {
18230   # Extract subdirectory from the argument.
18231   func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18232   if test "X$func_dirname_result" = "X${1}"; then
18233     func_dirname_result="${3}"
18234   else
18235     func_dirname_result="$func_dirname_result${2}"
18236   fi
18237 }
18238
18239 # func_basename file
18240 func_basename ()
18241 {
18242   func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18243 }
18244
18245
18246 # func_stripname prefix suffix name
18247 # strip PREFIX and SUFFIX off of NAME.
18248 # PREFIX and SUFFIX must not contain globbing or regex special
18249 # characters, hashes, percent signs, but SUFFIX may contain a leading
18250 # dot (in which case that matches only a dot).
18251 # func_strip_suffix prefix name
18252 func_stripname ()
18253 {
18254   case ${2} in
18255     .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18256     *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18257   esac
18258 }
18259
18260 # sed scripts:
18261 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18262 my_sed_long_arg='1s/^-[^=]*=//'
18263
18264 # func_opt_split
18265 func_opt_split ()
18266 {
18267   func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18268   func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18269 }
18270
18271 # func_lo2o object
18272 func_lo2o ()
18273 {
18274   func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18275 }
18276
18277 # func_xform libobj-or-source
18278 func_xform ()
18279 {
18280   func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18281 }
18282
18283 # func_arith arithmetic-term...
18284 func_arith ()
18285 {
18286   func_arith_result=`expr "$@"`
18287 }
18288
18289 # func_len string
18290 # STRING may not start with a hyphen.
18291 func_len ()
18292 {
18293   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18294 }
18295
18296 _LT_EOF
18297 esac
18298
18299 case $lt_shell_append in
18300   yes)
18301     cat << \_LT_EOF >> "$cfgfile"
18302
18303 # func_append var value
18304 # Append VALUE to the end of shell variable VAR.
18305 func_append ()
18306 {
18307   eval "$1+=\$2"
18308 }
18309 _LT_EOF
18310     ;;
18311   *)
18312     cat << \_LT_EOF >> "$cfgfile"
18313
18314 # func_append var value
18315 # Append VALUE to the end of shell variable VAR.
18316 func_append ()
18317 {
18318   eval "$1=\$$1\$2"
18319 }
18320
18321 _LT_EOF
18322     ;;
18323   esac
18324
18325
18326   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18327     || (rm -f "$cfgfile"; exit 1)
18328
18329   mv -f "$cfgfile" "$ofile" ||
18330     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18331   chmod +x "$ofile"
18332
18333
18334     cat <<_LT_EOF >> "$ofile"
18335
18336 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18337
18338 # The linker used to build libraries.
18339 LD=$lt_LD_CXX
18340
18341 # How to create reloadable object files.
18342 reload_flag=$lt_reload_flag_CXX
18343 reload_cmds=$lt_reload_cmds_CXX
18344
18345 # Commands used to build an old-style archive.
18346 old_archive_cmds=$lt_old_archive_cmds_CXX
18347
18348 # A language specific compiler.
18349 CC=$lt_compiler_CXX
18350
18351 # Is the compiler the GNU compiler?
18352 with_gcc=$GCC_CXX
18353
18354 # Compiler flag to turn off builtin functions.
18355 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18356
18357 # How to pass a linker flag through the compiler.
18358 wl=$lt_lt_prog_compiler_wl_CXX
18359
18360 # Additional compiler flags for building library objects.
18361 pic_flag=$lt_lt_prog_compiler_pic_CXX
18362
18363 # Compiler flag to prevent dynamic linking.
18364 link_static_flag=$lt_lt_prog_compiler_static_CXX
18365
18366 # Does compiler simultaneously support -c and -o options?
18367 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18368
18369 # Whether or not to add -lc for building shared libraries.
18370 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18371
18372 # Whether or not to disallow shared libs when runtime libs are static.
18373 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18374
18375 # Compiler flag to allow reflexive dlopens.
18376 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18377
18378 # Compiler flag to generate shared objects directly from archives.
18379 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18380
18381 # Whether the compiler copes with passing no objects directly.
18382 compiler_needs_object=$lt_compiler_needs_object_CXX
18383
18384 # Create an old-style archive from a shared archive.
18385 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18386
18387 # Create a temporary old-style archive to link instead of a shared archive.
18388 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18389
18390 # Commands used to build a shared archive.
18391 archive_cmds=$lt_archive_cmds_CXX
18392 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18393
18394 # Commands used to build a loadable module if different from building
18395 # a shared archive.
18396 module_cmds=$lt_module_cmds_CXX
18397 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18398
18399 # Whether we are building with GNU ld or not.
18400 with_gnu_ld=$lt_with_gnu_ld_CXX
18401
18402 # Flag that allows shared libraries with undefined symbols to be built.
18403 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18404
18405 # Flag that enforces no undefined symbols.
18406 no_undefined_flag=$lt_no_undefined_flag_CXX
18407
18408 # Flag to hardcode \$libdir into a binary during linking.
18409 # This must work even if \$libdir does not exist
18410 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18411
18412 # If ld is used when linking, flag to hardcode \$libdir into a binary
18413 # during linking.  This must work even if \$libdir does not exist.
18414 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18415
18416 # Whether we need a single "-rpath" flag with a separated argument.
18417 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18418
18419 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18420 # DIR into the resulting binary.
18421 hardcode_direct=$hardcode_direct_CXX
18422
18423 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18424 # DIR into the resulting binary and the resulting library dependency is
18425 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18426 # library is relocated.
18427 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18428
18429 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18430 # into the resulting binary.
18431 hardcode_minus_L=$hardcode_minus_L_CXX
18432
18433 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18434 # into the resulting binary.
18435 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18436
18437 # Set to "yes" if building a shared library automatically hardcodes DIR
18438 # into the library and all subsequent libraries and executables linked
18439 # against it.
18440 hardcode_automatic=$hardcode_automatic_CXX
18441
18442 # Set to yes if linker adds runtime paths of dependent libraries
18443 # to runtime path list.
18444 inherit_rpath=$inherit_rpath_CXX
18445
18446 # Whether libtool must link a program against all its dependency libraries.
18447 link_all_deplibs=$link_all_deplibs_CXX
18448
18449 # Fix the shell variable \$srcfile for the compiler.
18450 fix_srcfile_path=$lt_fix_srcfile_path_CXX
18451
18452 # Set to "yes" if exported symbols are required.
18453 always_export_symbols=$always_export_symbols_CXX
18454
18455 # The commands to list exported symbols.
18456 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18457
18458 # Symbols that should not be listed in the preloaded symbols.
18459 exclude_expsyms=$lt_exclude_expsyms_CXX
18460
18461 # Symbols that must always be exported.
18462 include_expsyms=$lt_include_expsyms_CXX
18463
18464 # Commands necessary for linking programs (against libraries) with templates.
18465 prelink_cmds=$lt_prelink_cmds_CXX
18466
18467 # Specify filename containing input files.
18468 file_list_spec=$lt_file_list_spec_CXX
18469
18470 # How to hardcode a shared library path into an executable.
18471 hardcode_action=$hardcode_action_CXX
18472
18473 # The directories searched by this compiler when creating a shared library.
18474 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18475
18476 # Dependencies to place before and after the objects being linked to
18477 # create a shared library.
18478 predep_objects=$lt_predep_objects_CXX
18479 postdep_objects=$lt_postdep_objects_CXX
18480 predeps=$lt_predeps_CXX
18481 postdeps=$lt_postdeps_CXX
18482
18483 # The library search path used internally by the compiler when linking
18484 # a shared library.
18485 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18486
18487 # ### END LIBTOOL TAG CONFIG: CXX
18488 _LT_EOF
18489
18490  ;;
18491     "script-chmod":C) chmod a+x pcre-config ;;
18492     "delete-old-chartables":C) rm -f pcre_chartables.c ;;
18493
18494   esac
18495 done # for ac_tag
18496
18497
18498 as_fn_exit 0
18499 _ACEOF
18500 ac_clean_files=$ac_clean_files_save
18501
18502 test $ac_write_fail = 0 ||
18503   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18504
18505
18506 # configure is writing to config.log, and then calls config.status.
18507 # config.status does its own redirection, appending to config.log.
18508 # Unfortunately, on DOS this fails, as config.log is still kept open
18509 # by configure, so config.status won't be able to write to it; its
18510 # output is simply discarded.  So we exec the FD to /dev/null,
18511 # effectively closing config.log, so it can be properly (re)opened and
18512 # appended to by config.status.  When coming back to configure, we
18513 # need to make the FD available again.
18514 if test "$no_create" != yes; then
18515   ac_cs_success=:
18516   ac_config_status_args=
18517   test "$silent" = yes &&
18518     ac_config_status_args="$ac_config_status_args --quiet"
18519   exec 5>/dev/null
18520   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18521   exec 5>>config.log
18522   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18523   # would make configure fail if this is the last instruction.
18524   $ac_cs_success || as_fn_exit $?
18525 fi
18526 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18527   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18528 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18529 fi
18530
18531
18532 # Print out a nice little message after configure is run displaying your
18533 # chosen options.
18534
18535 cat <<EOF
18536
18537 $PACKAGE-$VERSION configuration summary:
18538
18539     Install prefix .................. : ${prefix}
18540     C preprocessor .................. : ${CPP}
18541     C compiler ...................... : ${CC}
18542     C++ preprocessor ................ : ${CXXCPP}
18543     C++ compiler .................... : ${CXX}
18544     Linker .......................... : ${LD}
18545     C preprocessor flags ............ : ${CPPFLAGS}
18546     C compiler flags ................ : ${CFLAGS}
18547     C++ compiler flags .............. : ${CXXFLAGS}
18548     Linker flags .................... : ${LDFLAGS}
18549     Extra libraries ................. : ${LIBS}
18550
18551     Build C++ library ............... : ${enable_cpp}
18552     Enable UTF-8 support ............ : ${enable_utf8}
18553     Unicode properties .............. : ${enable_unicode_properties}
18554     Newline char/sequence ........... : ${enable_newline}
18555     \R matches only ANYCRLF ......... : ${enable_bsr_anycrlf}
18556     EBCDIC coding ................... : ${enable_ebcdic}
18557     Rebuild char tables ............. : ${enable_rebuild_chartables}
18558     Use stack recursion ............. : ${enable_stack_for_recursion}
18559     POSIX mem threshold ............. : ${with_posix_malloc_threshold}
18560     Internal link size .............. : ${with_link_size}
18561     Match limit ..................... : ${with_match_limit}
18562     Match limit recursion ........... : ${with_match_limit_recursion}
18563     Build shared libs ............... : ${enable_shared}
18564     Build static libs ............... : ${enable_static}
18565     Link pcregrep with libz ......... : ${enable_pcregrep_libz}
18566     Link pcregrep with libbz2 ....... : ${enable_pcregrep_libbz2}
18567     Link pcretest with libreadline .. : ${enable_pcretest_libreadline}
18568
18569 EOF
18570