1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.63 for PCRE 8.02.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization.  ##
11## --------------------- ##
12
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16  emulate sh
17  NULLCMD=:
18  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19  # is contrary to our usage.  Disable this feature.
20  alias -g '${1+"$@"}'='"$@"'
21  setopt NO_GLOB_SUBST
22else
23  case `(set -o) 2>/dev/null` in
24  *posix*) set -o posix ;;
25esac
26
27fi
28
29
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40as_nl='
41'
42export as_nl
43# Printing a long string crashes Solaris 7 /usr/bin/printf.
44as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81# Support unset when possible.
82if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83  as_unset=unset
84else
85  as_unset=false
86fi
87
88
89# IFS
90# We need space, tab and new line, in precisely that order.  Quoting is
91# there to prevent editors from complaining about space-tab.
92# (If _AS_PATH_WALK were called with IFS unset, it would disable word
93# splitting by setting IFS to empty value.)
94IFS=" ""	$as_nl"
95
96# Find who we are.  Look in the path if we contain no directory separator.
97case $0 in
98  *[\\/]* ) as_myself=$0 ;;
99  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100for as_dir in $PATH
101do
102  IFS=$as_save_IFS
103  test -z "$as_dir" && as_dir=.
104  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105done
106IFS=$as_save_IFS
107
108     ;;
109esac
110# We did not find ourselves, most probably we were run as `sh COMMAND'
111# in which case we are not to be found in the path.
112if test "x$as_myself" = x; then
113  as_myself=$0
114fi
115if test ! -f "$as_myself"; then
116  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117  { (exit 1); exit 1; }
118fi
119
120# Work around bugs in pre-3.0 UWIN ksh.
121for as_var in ENV MAIL MAILPATH
122do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# Required to use basename.
135if expr a : '\(a\)' >/dev/null 2>&1 &&
136   test "X`expr 00001 : '.*\(...\)'`" = X001; then
137  as_expr=expr
138else
139  as_expr=false
140fi
141
142if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143  as_basename=basename
144else
145  as_basename=false
146fi
147
148
149# Name of the executable.
150as_me=`$as_basename -- "$0" ||
151$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152	 X"$0" : 'X\(//\)$' \| \
153	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154$as_echo X/"$0" |
155    sed '/^.*\/\([^/][^/]*\)\/*$/{
156	    s//\1/
157	    q
158	  }
159	  /^X\/\(\/\/\)$/{
160	    s//\1/
161	    q
162	  }
163	  /^X\/\(\/\).*/{
164	    s//\1/
165	    q
166	  }
167	  s/.*/./; q'`
168
169# CDPATH.
170$as_unset CDPATH
171
172
173if test "x$CONFIG_SHELL" = x; then
174  if (eval ":") 2>/dev/null; then
175  as_have_required=yes
176else
177  as_have_required=no
178fi
179
180  if test $as_have_required = yes &&	 (eval ":
181(as_func_return () {
182  (exit \$1)
183}
184as_func_success () {
185  as_func_return 0
186}
187as_func_failure () {
188  as_func_return 1
189}
190as_func_ret_success () {
191  return 0
192}
193as_func_ret_failure () {
194  return 1
195}
196
197exitcode=0
198if as_func_success; then
199  :
200else
201  exitcode=1
202  echo as_func_success failed.
203fi
204
205if as_func_failure; then
206  exitcode=1
207  echo as_func_failure succeeded.
208fi
209
210if as_func_ret_success; then
211  :
212else
213  exitcode=1
214  echo as_func_ret_success failed.
215fi
216
217if as_func_ret_failure; then
218  exitcode=1
219  echo as_func_ret_failure succeeded.
220fi
221
222if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223  :
224else
225  exitcode=1
226  echo positional parameters were not saved.
227fi
228
229test \$exitcode = 0) || { (exit 1); exit 1; }
230
231(
232  as_lineno_1=\$LINENO
233  as_lineno_2=\$LINENO
234  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236") 2> /dev/null; then
237  :
238else
239  as_candidate_shells=
240    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242do
243  IFS=$as_save_IFS
244  test -z "$as_dir" && as_dir=.
245  case $as_dir in
246	 /*)
247	   for as_base in sh bash ksh sh5; do
248	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249	   done;;
250       esac
251done
252IFS=$as_save_IFS
253
254
255      for as_shell in $as_candidate_shells $SHELL; do
256	 # Try only shells that exist, to save several forks.
257	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258		{ ("$as_shell") 2> /dev/null <<\_ASEOF
259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260  emulate sh
261  NULLCMD=:
262  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263  # is contrary to our usage.  Disable this feature.
264  alias -g '${1+"$@"}'='"$@"'
265  setopt NO_GLOB_SUBST
266else
267  case `(set -o) 2>/dev/null` in
268  *posix*) set -o posix ;;
269esac
270
271fi
272
273
274:
275_ASEOF
276}; then
277  CONFIG_SHELL=$as_shell
278	       as_have_required=yes
279	       if { "$as_shell" 2> /dev/null <<\_ASEOF
280if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281  emulate sh
282  NULLCMD=:
283  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284  # is contrary to our usage.  Disable this feature.
285  alias -g '${1+"$@"}'='"$@"'
286  setopt NO_GLOB_SUBST
287else
288  case `(set -o) 2>/dev/null` in
289  *posix*) set -o posix ;;
290esac
291
292fi
293
294
295:
296(as_func_return () {
297  (exit $1)
298}
299as_func_success () {
300  as_func_return 0
301}
302as_func_failure () {
303  as_func_return 1
304}
305as_func_ret_success () {
306  return 0
307}
308as_func_ret_failure () {
309  return 1
310}
311
312exitcode=0
313if as_func_success; then
314  :
315else
316  exitcode=1
317  echo as_func_success failed.
318fi
319
320if as_func_failure; then
321  exitcode=1
322  echo as_func_failure succeeded.
323fi
324
325if as_func_ret_success; then
326  :
327else
328  exitcode=1
329  echo as_func_ret_success failed.
330fi
331
332if as_func_ret_failure; then
333  exitcode=1
334  echo as_func_ret_failure succeeded.
335fi
336
337if ( set x; as_func_ret_success y && test x = "$1" ); then
338  :
339else
340  exitcode=1
341  echo positional parameters were not saved.
342fi
343
344test $exitcode = 0) || { (exit 1); exit 1; }
345
346(
347  as_lineno_1=$LINENO
348  as_lineno_2=$LINENO
349  test "x$as_lineno_1" != "x$as_lineno_2" &&
350  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352_ASEOF
353}; then
354  break
355fi
356
357fi
358
359      done
360
361      if test "x$CONFIG_SHELL" != x; then
362  for as_var in BASH_ENV ENV
363	do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364	done
365	export CONFIG_SHELL
366	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367fi
368
369
370    if test $as_have_required = no; then
371  echo This script requires a shell more modern than all the
372      echo shells that I found on your system.  Please install a
373      echo modern shell, or manually run the script under such a
374      echo shell if you do have one.
375      { (exit 1); exit 1; }
376fi
377
378
379fi
380
381fi
382
383
384
385(eval "as_func_return () {
386  (exit \$1)
387}
388as_func_success () {
389  as_func_return 0
390}
391as_func_failure () {
392  as_func_return 1
393}
394as_func_ret_success () {
395  return 0
396}
397as_func_ret_failure () {
398  return 1
399}
400
401exitcode=0
402if as_func_success; then
403  :
404else
405  exitcode=1
406  echo as_func_success failed.
407fi
408
409if as_func_failure; then
410  exitcode=1
411  echo as_func_failure succeeded.
412fi
413
414if as_func_ret_success; then
415  :
416else
417  exitcode=1
418  echo as_func_ret_success failed.
419fi
420
421if as_func_ret_failure; then
422  exitcode=1
423  echo as_func_ret_failure succeeded.
424fi
425
426if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427  :
428else
429  exitcode=1
430  echo positional parameters were not saved.
431fi
432
433test \$exitcode = 0") || {
434  echo No shell found that supports shell functions.
435  echo Please tell bug-autoconf@gnu.org about your system,
436  echo including any error possibly output before this message.
437  echo This can help us improve future autoconf versions.
438  echo Configuration will now proceed without shell functions.
439}
440
441
442
443  as_lineno_1=$LINENO
444  as_lineno_2=$LINENO
445  test "x$as_lineno_1" != "x$as_lineno_2" &&
446  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449  # uniformly replaced by the line number.  The first 'sed' inserts a
450  # line-number line after each line using $LINENO; the second 'sed'
451  # does the real work.  The second script uses 'N' to pair each
452  # line-number line with the line containing $LINENO, and appends
453  # trailing '-' during substitution so that $LINENO is not a special
454  # case at line end.
455  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456  # scripts with optimization help from Paolo Bonzini.  Blame Lee
457  # E. McMahon (1931-1989) for sed's syntax.  :-)
458  sed -n '
459    p
460    /[$]LINENO/=
461  ' <$as_myself |
462    sed '
463      s/[$]LINENO.*/&-/
464      t lineno
465      b
466      :lineno
467      N
468      :loop
469      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470      t loop
471      s/-\n.*//
472    ' >$as_me.lineno &&
473  chmod +x "$as_me.lineno" ||
474    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475   { (exit 1); exit 1; }; }
476
477  # Don't try to exec as it changes $[0], causing all sort of problems
478  # (the dirname of $[0] is not the place where we might find the
479  # original and so on.  Autoconf is especially sensitive to this).
480  . "./$as_me.lineno"
481  # Exit status is that of the last command.
482  exit
483}
484
485
486if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487  as_dirname=dirname
488else
489  as_dirname=false
490fi
491
492ECHO_C= ECHO_N= ECHO_T=
493case `echo -n x` in
494-n*)
495  case `echo 'x\c'` in
496  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
497  *)   ECHO_C='\c';;
498  esac;;
499*)
500  ECHO_N='-n';;
501esac
502if expr a : '\(a\)' >/dev/null 2>&1 &&
503   test "X`expr 00001 : '.*\(...\)'`" = X001; then
504  as_expr=expr
505else
506  as_expr=false
507fi
508
509rm -f conf$$ conf$$.exe conf$$.file
510if test -d conf$$.dir; then
511  rm -f conf$$.dir/conf$$.file
512else
513  rm -f conf$$.dir
514  mkdir conf$$.dir 2>/dev/null
515fi
516if (echo >conf$$.file) 2>/dev/null; then
517  if ln -s conf$$.file conf$$ 2>/dev/null; then
518    as_ln_s='ln -s'
519    # ... but there are two gotchas:
520    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522    # In both cases, we have to default to `cp -p'.
523    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524      as_ln_s='cp -p'
525  elif ln conf$$.file conf$$ 2>/dev/null; then
526    as_ln_s=ln
527  else
528    as_ln_s='cp -p'
529  fi
530else
531  as_ln_s='cp -p'
532fi
533rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534rmdir conf$$.dir 2>/dev/null
535
536if mkdir -p . 2>/dev/null; then
537  as_mkdir_p=:
538else
539  test -d ./-p && rmdir ./-p
540  as_mkdir_p=false
541fi
542
543if test -x / >/dev/null 2>&1; then
544  as_test_x='test -x'
545else
546  if ls -dL / >/dev/null 2>&1; then
547    as_ls_L_option=L
548  else
549    as_ls_L_option=
550  fi
551  as_test_x='
552    eval sh -c '\''
553      if test -d "$1"; then
554	test -d "$1/.";
555      else
556	case $1 in
557	-*)set "./$1";;
558	esac;
559	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560	???[sx]*):;;*)false;;esac;fi
561    '\'' sh
562  '
563fi
564as_executable_p=$as_test_x
565
566# Sed expression to map a string onto a valid CPP name.
567as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569# Sed expression to map a string onto a valid variable name.
570as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574
575# Check that we are running under the correct shell.
576SHELL=${CONFIG_SHELL-/bin/sh}
577
578case X$lt_ECHO in
579X*--fallback-echo)
580  # Remove one level of quotation (which was required for Make).
581  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
582  ;;
583esac
584
585ECHO=${lt_ECHO-echo}
586if test "X$1" = X--no-reexec; then
587  # Discard the --no-reexec flag, and continue.
588  shift
589elif test "X$1" = X--fallback-echo; then
590  # Avoid inline document here, it may be left over
591  :
592elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593  # Yippee, $ECHO works!
594  :
595else
596  # Restart under the correct shell.
597  exec $SHELL "$0" --no-reexec ${1+"$@"}
598fi
599
600if test "X$1" = X--fallback-echo; then
601  # used as fallback echo
602  shift
603  cat <<_LT_EOF
604$*
605_LT_EOF
606  exit 0
607fi
608
609# The HP-UX ksh and POSIX shell print the target directory to stdout
610# if CDPATH is set.
611(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
612
613if test -z "$lt_ECHO"; then
614  if test "X${echo_test_string+set}" != Xset; then
615    # find a string as large as possible, as long as the shell can cope with it
616    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
619	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
620      then
621        break
622      fi
623    done
624  fi
625
626  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628     test "X$echo_testing_string" = "X$echo_test_string"; then
629    :
630  else
631    # The Solaris, AIX, and Digital Unix default echo programs unquote
632    # backslashes.  This makes it impossible to quote backslashes using
633    #   echo "$something" | sed 's/\\/\\\\/g'
634    #
635    # So, first we look for a working echo in the user's PATH.
636
637    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
638    for dir in $PATH /usr/ucb; do
639      IFS="$lt_save_ifs"
640      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
641         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
642         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
643         test "X$echo_testing_string" = "X$echo_test_string"; then
644        ECHO="$dir/echo"
645        break
646      fi
647    done
648    IFS="$lt_save_ifs"
649
650    if test "X$ECHO" = Xecho; then
651      # We didn't find a better echo, so look for alternatives.
652      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
653         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
654         test "X$echo_testing_string" = "X$echo_test_string"; then
655        # This shell has a builtin print -r that does the trick.
656        ECHO='print -r'
657      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
658	   test "X$CONFIG_SHELL" != X/bin/ksh; then
659        # If we have ksh, try running configure again with it.
660        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
661        export ORIGINAL_CONFIG_SHELL
662        CONFIG_SHELL=/bin/ksh
663        export CONFIG_SHELL
664        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
665      else
666        # Try using printf.
667        ECHO='printf %s\n'
668        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
669	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
670	   test "X$echo_testing_string" = "X$echo_test_string"; then
671	  # Cool, printf works
672	  :
673        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674	     test "X$echo_testing_string" = 'X\t' &&
675	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676	     test "X$echo_testing_string" = "X$echo_test_string"; then
677	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
678	  export CONFIG_SHELL
679	  SHELL="$CONFIG_SHELL"
680	  export SHELL
681	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
682        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
683	     test "X$echo_testing_string" = 'X\t' &&
684	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
685	     test "X$echo_testing_string" = "X$echo_test_string"; then
686	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
687        else
688	  # maybe with a smaller string...
689	  prev=:
690
691	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
692	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
693	    then
694	      break
695	    fi
696	    prev="$cmd"
697	  done
698
699	  if test "$prev" != 'sed 50q "$0"'; then
700	    echo_test_string=`eval $prev`
701	    export echo_test_string
702	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
703	  else
704	    # Oops.  We lost completely, so just stick with echo.
705	    ECHO=echo
706	  fi
707        fi
708      fi
709    fi
710  fi
711fi
712
713# Copy echo and quote the copy suitably for passing to libtool from
714# the Makefile, instead of quoting the original, which is used later.
715lt_ECHO=$ECHO
716if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
718fi
719
720
721
722
723exec 7<&0 </dev/null 6>&1
724
725# Name of the host.
726# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
727# so uname gets run too.
728ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
729
730#
731# Initializations.
732#
733ac_default_prefix=/usr/local
734ac_clean_files=
735ac_config_libobj_dir=.
736LIBOBJS=
737cross_compiling=no
738subdirs=
739MFLAGS=
740MAKEFLAGS=
741SHELL=${CONFIG_SHELL-/bin/sh}
742
743# Identity of this package.
744PACKAGE_NAME='PCRE'
745PACKAGE_TARNAME='pcre'
746PACKAGE_VERSION='8.02'
747PACKAGE_STRING='PCRE 8.02'
748PACKAGE_BUGREPORT=''
749
750ac_unique_file="pcre.h.in"
751# Factoring default headers for most tests.
752ac_includes_default="\
753#include <stdio.h>
754#ifdef HAVE_SYS_TYPES_H
755# include <sys/types.h>
756#endif
757#ifdef HAVE_SYS_STAT_H
758# include <sys/stat.h>
759#endif
760#ifdef STDC_HEADERS
761# include <stdlib.h>
762# include <stddef.h>
763#else
764# ifdef HAVE_STDLIB_H
765#  include <stdlib.h>
766# endif
767#endif
768#ifdef HAVE_STRING_H
769# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
770#  include <memory.h>
771# endif
772# include <string.h>
773#endif
774#ifdef HAVE_STRINGS_H
775# include <strings.h>
776#endif
777#ifdef HAVE_INTTYPES_H
778# include <inttypes.h>
779#endif
780#ifdef HAVE_STDINT_H
781# include <stdint.h>
782#endif
783#ifdef HAVE_UNISTD_H
784# include <unistd.h>
785#endif"
786
787ac_subst_vars='LTLIBOBJS
788LIBOBJS
789LIBREADLINE
790LIBBZ2
791LIBZ
792DISTCHECK_CONFIGURE_FLAGS
793EXTRA_LIBPCRECPP_LDFLAGS
794EXTRA_LIBPCREPOSIX_LDFLAGS
795EXTRA_LIBPCRE_LDFLAGS
796PCRE_STATIC_CFLAG
797WITH_REBUILD_CHARTABLES_FALSE
798WITH_REBUILD_CHARTABLES_TRUE
799WITH_PCRE_CPP_FALSE
800WITH_PCRE_CPP_TRUE
801pcre_have_bits_type_traits
802pcre_have_type_traits
803pcre_have_ulong_long
804pcre_have_long_long
805enable_cpp
806PCRE_DATE
807PCRE_PRERELEASE
808PCRE_MINOR
809PCRE_MAJOR
810CXXCPP
811OTOOL64
812OTOOL
813LIPO
814NMEDIT
815DSYMUTIL
816lt_ECHO
817RANLIB
818AR
819LN_S
820NM
821ac_ct_DUMPBIN
822DUMPBIN
823LD
824FGREP
825SED
826LIBTOOL
827OBJDUMP
828DLLTOOL
829AS
830host_os
831host_vendor
832host_cpu
833host
834build_os
835build_vendor
836build_cpu
837build
838EGREP
839GREP
840CPP
841am__fastdepCXX_FALSE
842am__fastdepCXX_TRUE
843CXXDEPMODE
844ac_ct_CXX
845CXXFLAGS
846CXX
847am__fastdepCC_FALSE
848am__fastdepCC_TRUE
849CCDEPMODE
850AMDEPBACKSLASH
851AMDEP_FALSE
852AMDEP_TRUE
853am__quote
854am__include
855DEPDIR
856OBJEXT
857EXEEXT
858ac_ct_CC
859CPPFLAGS
860LDFLAGS
861CFLAGS
862CC
863am__untar
864am__tar
865AMTAR
866am__leading_dot
867SET_MAKE
868AWK
869mkdir_p
870MKDIR_P
871INSTALL_STRIP_PROGRAM
872STRIP
873install_sh
874MAKEINFO
875AUTOHEADER
876AUTOMAKE
877AUTOCONF
878ACLOCAL
879VERSION
880PACKAGE
881CYGPATH_W
882am__isrc
883INSTALL_DATA
884INSTALL_SCRIPT
885INSTALL_PROGRAM
886target_alias
887host_alias
888build_alias
889LIBS
890ECHO_T
891ECHO_N
892ECHO_C
893DEFS
894mandir
895localedir
896libdir
897psdir
898pdfdir
899dvidir
900htmldir
901infodir
902docdir
903oldincludedir
904includedir
905localstatedir
906sharedstatedir
907sysconfdir
908datadir
909datarootdir
910libexecdir
911sbindir
912bindir
913program_transform_name
914prefix
915exec_prefix
916PACKAGE_BUGREPORT
917PACKAGE_STRING
918PACKAGE_VERSION
919PACKAGE_TARNAME
920PACKAGE_NAME
921PATH_SEPARATOR
922SHELL'
923ac_subst_files=''
924ac_user_opts='
925enable_option_checking
926enable_dependency_tracking
927enable_shared
928enable_static
929with_pic
930enable_fast_install
931with_gnu_ld
932enable_libtool_lock
933enable_cpp
934enable_rebuild_chartables
935enable_utf8
936enable_unicode_properties
937enable_newline_is_cr
938enable_newline_is_lf
939enable_newline_is_crlf
940enable_newline_is_anycrlf
941enable_newline_is_any
942enable_bsr_anycrlf
943enable_ebcdic
944enable_stack_for_recursion
945enable_pcregrep_libz
946enable_pcregrep_libbz2
947enable_pcretest_libreadline
948with_posix_malloc_threshold
949with_link_size
950with_match_limit
951with_match_limit_recursion
952'
953      ac_precious_vars='build_alias
954host_alias
955target_alias
956CC
957CFLAGS
958LDFLAGS
959LIBS
960CPPFLAGS
961CXX
962CXXFLAGS
963CCC
964CPP
965CXXCPP'
966
967
968# Initialize some variables set by options.
969ac_init_help=
970ac_init_version=false
971ac_unrecognized_opts=
972ac_unrecognized_sep=
973# The variables have the same names as the options, with
974# dashes changed to underlines.
975cache_file=/dev/null
976exec_prefix=NONE
977no_create=
978no_recursion=
979prefix=NONE
980program_prefix=NONE
981program_suffix=NONE
982program_transform_name=s,x,x,
983silent=
984site=
985srcdir=
986verbose=
987x_includes=NONE
988x_libraries=NONE
989
990# Installation directory options.
991# These are left unexpanded so users can "make install exec_prefix=/foo"
992# and all the variables that are supposed to be based on exec_prefix
993# by default will actually change.
994# Use braces instead of parens because sh, perl, etc. also accept them.
995# (The list follows the same order as the GNU Coding Standards.)
996bindir='${exec_prefix}/bin'
997sbindir='${exec_prefix}/sbin'
998libexecdir='${exec_prefix}/libexec'
999datarootdir='${prefix}/share'
1000datadir='${datarootdir}'
1001sysconfdir='${prefix}/etc'
1002sharedstatedir='${prefix}/com'
1003localstatedir='${prefix}/var'
1004includedir='${prefix}/include'
1005oldincludedir='/usr/include'
1006docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1007infodir='${datarootdir}/info'
1008htmldir='${docdir}'
1009dvidir='${docdir}'
1010pdfdir='${docdir}'
1011psdir='${docdir}'
1012libdir='${exec_prefix}/lib'
1013localedir='${datarootdir}/locale'
1014mandir='${datarootdir}/man'
1015
1016ac_prev=
1017ac_dashdash=
1018for ac_option
1019do
1020  # If the previous option needs an argument, assign it.
1021  if test -n "$ac_prev"; then
1022    eval $ac_prev=\$ac_option
1023    ac_prev=
1024    continue
1025  fi
1026
1027  case $ac_option in
1028  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1029  *)	ac_optarg=yes ;;
1030  esac
1031
1032  # Accept the important Cygnus configure options, so we can diagnose typos.
1033
1034  case $ac_dashdash$ac_option in
1035  --)
1036    ac_dashdash=yes ;;
1037
1038  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1039    ac_prev=bindir ;;
1040  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1041    bindir=$ac_optarg ;;
1042
1043  -build | --build | --buil | --bui | --bu)
1044    ac_prev=build_alias ;;
1045  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1046    build_alias=$ac_optarg ;;
1047
1048  -cache-file | --cache-file | --cache-fil | --cache-fi \
1049  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1050    ac_prev=cache_file ;;
1051  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1052  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1053    cache_file=$ac_optarg ;;
1054
1055  --config-cache | -C)
1056    cache_file=config.cache ;;
1057
1058  -datadir | --datadir | --datadi | --datad)
1059    ac_prev=datadir ;;
1060  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1061    datadir=$ac_optarg ;;
1062
1063  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1064  | --dataroo | --dataro | --datar)
1065    ac_prev=datarootdir ;;
1066  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1067  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1068    datarootdir=$ac_optarg ;;
1069
1070  -disable-* | --disable-*)
1071    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1072    # Reject names that are not valid shell variable names.
1073    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1074      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1075   { (exit 1); exit 1; }; }
1076    ac_useropt_orig=$ac_useropt
1077    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1078    case $ac_user_opts in
1079      *"
1080"enable_$ac_useropt"
1081"*) ;;
1082      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1083	 ac_unrecognized_sep=', ';;
1084    esac
1085    eval enable_$ac_useropt=no ;;
1086
1087  -docdir | --docdir | --docdi | --doc | --do)
1088    ac_prev=docdir ;;
1089  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1090    docdir=$ac_optarg ;;
1091
1092  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1093    ac_prev=dvidir ;;
1094  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1095    dvidir=$ac_optarg ;;
1096
1097  -enable-* | --enable-*)
1098    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1099    # Reject names that are not valid shell variable names.
1100    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1101      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1102   { (exit 1); exit 1; }; }
1103    ac_useropt_orig=$ac_useropt
1104    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1105    case $ac_user_opts in
1106      *"
1107"enable_$ac_useropt"
1108"*) ;;
1109      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1110	 ac_unrecognized_sep=', ';;
1111    esac
1112    eval enable_$ac_useropt=\$ac_optarg ;;
1113
1114  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1115  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1116  | --exec | --exe | --ex)
1117    ac_prev=exec_prefix ;;
1118  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1119  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1120  | --exec=* | --exe=* | --ex=*)
1121    exec_prefix=$ac_optarg ;;
1122
1123  -gas | --gas | --ga | --g)
1124    # Obsolete; use --with-gas.
1125    with_gas=yes ;;
1126
1127  -help | --help | --hel | --he | -h)
1128    ac_init_help=long ;;
1129  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1130    ac_init_help=recursive ;;
1131  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1132    ac_init_help=short ;;
1133
1134  -host | --host | --hos | --ho)
1135    ac_prev=host_alias ;;
1136  -host=* | --host=* | --hos=* | --ho=*)
1137    host_alias=$ac_optarg ;;
1138
1139  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1140    ac_prev=htmldir ;;
1141  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1142  | --ht=*)
1143    htmldir=$ac_optarg ;;
1144
1145  -includedir | --includedir | --includedi | --included | --include \
1146  | --includ | --inclu | --incl | --inc)
1147    ac_prev=includedir ;;
1148  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1149  | --includ=* | --inclu=* | --incl=* | --inc=*)
1150    includedir=$ac_optarg ;;
1151
1152  -infodir | --infodir | --infodi | --infod | --info | --inf)
1153    ac_prev=infodir ;;
1154  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1155    infodir=$ac_optarg ;;
1156
1157  -libdir | --libdir | --libdi | --libd)
1158    ac_prev=libdir ;;
1159  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1160    libdir=$ac_optarg ;;
1161
1162  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1163  | --libexe | --libex | --libe)
1164    ac_prev=libexecdir ;;
1165  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1166  | --libexe=* | --libex=* | --libe=*)
1167    libexecdir=$ac_optarg ;;
1168
1169  -localedir | --localedir | --localedi | --localed | --locale)
1170    ac_prev=localedir ;;
1171  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1172    localedir=$ac_optarg ;;
1173
1174  -localstatedir | --localstatedir | --localstatedi | --localstated \
1175  | --localstate | --localstat | --localsta | --localst | --locals)
1176    ac_prev=localstatedir ;;
1177  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1178  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1179    localstatedir=$ac_optarg ;;
1180
1181  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1182    ac_prev=mandir ;;
1183  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1184    mandir=$ac_optarg ;;
1185
1186  -nfp | --nfp | --nf)
1187    # Obsolete; use --without-fp.
1188    with_fp=no ;;
1189
1190  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1191  | --no-cr | --no-c | -n)
1192    no_create=yes ;;
1193
1194  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1195  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1196    no_recursion=yes ;;
1197
1198  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1199  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1200  | --oldin | --oldi | --old | --ol | --o)
1201    ac_prev=oldincludedir ;;
1202  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1203  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1204  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1205    oldincludedir=$ac_optarg ;;
1206
1207  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1208    ac_prev=prefix ;;
1209  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1210    prefix=$ac_optarg ;;
1211
1212  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1213  | --program-pre | --program-pr | --program-p)
1214    ac_prev=program_prefix ;;
1215  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1216  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1217    program_prefix=$ac_optarg ;;
1218
1219  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1220  | --program-suf | --program-su | --program-s)
1221    ac_prev=program_suffix ;;
1222  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1223  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1224    program_suffix=$ac_optarg ;;
1225
1226  -program-transform-name | --program-transform-name \
1227  | --program-transform-nam | --program-transform-na \
1228  | --program-transform-n | --program-transform- \
1229  | --program-transform | --program-transfor \
1230  | --program-transfo | --program-transf \
1231  | --program-trans | --program-tran \
1232  | --progr-tra | --program-tr | --program-t)
1233    ac_prev=program_transform_name ;;
1234  -program-transform-name=* | --program-transform-name=* \
1235  | --program-transform-nam=* | --program-transform-na=* \
1236  | --program-transform-n=* | --program-transform-=* \
1237  | --program-transform=* | --program-transfor=* \
1238  | --program-transfo=* | --program-transf=* \
1239  | --program-trans=* | --program-tran=* \
1240  | --progr-tra=* | --program-tr=* | --program-t=*)
1241    program_transform_name=$ac_optarg ;;
1242
1243  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1244    ac_prev=pdfdir ;;
1245  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1246    pdfdir=$ac_optarg ;;
1247
1248  -psdir | --psdir | --psdi | --psd | --ps)
1249    ac_prev=psdir ;;
1250  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1251    psdir=$ac_optarg ;;
1252
1253  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1254  | -silent | --silent | --silen | --sile | --sil)
1255    silent=yes ;;
1256
1257  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1258    ac_prev=sbindir ;;
1259  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1260  | --sbi=* | --sb=*)
1261    sbindir=$ac_optarg ;;
1262
1263  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1264  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1265  | --sharedst | --shareds | --shared | --share | --shar \
1266  | --sha | --sh)
1267    ac_prev=sharedstatedir ;;
1268  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1269  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1270  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1271  | --sha=* | --sh=*)
1272    sharedstatedir=$ac_optarg ;;
1273
1274  -site | --site | --sit)
1275    ac_prev=site ;;
1276  -site=* | --site=* | --sit=*)
1277    site=$ac_optarg ;;
1278
1279  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1280    ac_prev=srcdir ;;
1281  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1282    srcdir=$ac_optarg ;;
1283
1284  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1285  | --syscon | --sysco | --sysc | --sys | --sy)
1286    ac_prev=sysconfdir ;;
1287  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1288  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1289    sysconfdir=$ac_optarg ;;
1290
1291  -target | --target | --targe | --targ | --tar | --ta | --t)
1292    ac_prev=target_alias ;;
1293  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1294    target_alias=$ac_optarg ;;
1295
1296  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1297    verbose=yes ;;
1298
1299  -version | --version | --versio | --versi | --vers | -V)
1300    ac_init_version=: ;;
1301
1302  -with-* | --with-*)
1303    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1304    # Reject names that are not valid shell variable names.
1305    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1306      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1307   { (exit 1); exit 1; }; }
1308    ac_useropt_orig=$ac_useropt
1309    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1310    case $ac_user_opts in
1311      *"
1312"with_$ac_useropt"
1313"*) ;;
1314      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1315	 ac_unrecognized_sep=', ';;
1316    esac
1317    eval with_$ac_useropt=\$ac_optarg ;;
1318
1319  -without-* | --without-*)
1320    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1321    # Reject names that are not valid shell variable names.
1322    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1323      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1324   { (exit 1); exit 1; }; }
1325    ac_useropt_orig=$ac_useropt
1326    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1327    case $ac_user_opts in
1328      *"
1329"with_$ac_useropt"
1330"*) ;;
1331      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1332	 ac_unrecognized_sep=', ';;
1333    esac
1334    eval with_$ac_useropt=no ;;
1335
1336  --x)
1337    # Obsolete; use --with-x.
1338    with_x=yes ;;
1339
1340  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1341  | --x-incl | --x-inc | --x-in | --x-i)
1342    ac_prev=x_includes ;;
1343  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1344  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1345    x_includes=$ac_optarg ;;
1346
1347  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1348  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1349    ac_prev=x_libraries ;;
1350  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1351  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1352    x_libraries=$ac_optarg ;;
1353
1354  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1355Try \`$0 --help' for more information." >&2
1356   { (exit 1); exit 1; }; }
1357    ;;
1358
1359  *=*)
1360    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1361    # Reject names that are not valid shell variable names.
1362    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1363      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1364   { (exit 1); exit 1; }; }
1365    eval $ac_envvar=\$ac_optarg
1366    export $ac_envvar ;;
1367
1368  *)
1369    # FIXME: should be removed in autoconf 3.0.
1370    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1371    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1372      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1373    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1374    ;;
1375
1376  esac
1377done
1378
1379if test -n "$ac_prev"; then
1380  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1381  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1382   { (exit 1); exit 1; }; }
1383fi
1384
1385if test -n "$ac_unrecognized_opts"; then
1386  case $enable_option_checking in
1387    no) ;;
1388    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1389   { (exit 1); exit 1; }; } ;;
1390    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1391  esac
1392fi
1393
1394# Check all directory arguments for consistency.
1395for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1396		datadir sysconfdir sharedstatedir localstatedir includedir \
1397		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1398		libdir localedir mandir
1399do
1400  eval ac_val=\$$ac_var
1401  # Remove trailing slashes.
1402  case $ac_val in
1403    */ )
1404      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1405      eval $ac_var=\$ac_val;;
1406  esac
1407  # Be sure to have absolute directory names.
1408  case $ac_val in
1409    [\\/$]* | ?:[\\/]* )  continue;;
1410    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1411  esac
1412  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1413   { (exit 1); exit 1; }; }
1414done
1415
1416# There might be people who depend on the old broken behavior: `$host'
1417# used to hold the argument of --host etc.
1418# FIXME: To remove some day.
1419build=$build_alias
1420host=$host_alias
1421target=$target_alias
1422
1423# FIXME: To remove some day.
1424if test "x$host_alias" != x; then
1425  if test "x$build_alias" = x; then
1426    cross_compiling=maybe
1427    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1428    If a cross compiler is detected then cross compile mode will be used." >&2
1429  elif test "x$build_alias" != "x$host_alias"; then
1430    cross_compiling=yes
1431  fi
1432fi
1433
1434ac_tool_prefix=
1435test -n "$host_alias" && ac_tool_prefix=$host_alias-
1436
1437test "$silent" = yes && exec 6>/dev/null
1438
1439
1440ac_pwd=`pwd` && test -n "$ac_pwd" &&
1441ac_ls_di=`ls -di .` &&
1442ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1443  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1444   { (exit 1); exit 1; }; }
1445test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1446  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1447   { (exit 1); exit 1; }; }
1448
1449
1450# Find the source files, if location was not specified.
1451if test -z "$srcdir"; then
1452  ac_srcdir_defaulted=yes
1453  # Try the directory containing this script, then the parent directory.
1454  ac_confdir=`$as_dirname -- "$as_myself" ||
1455$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1456	 X"$as_myself" : 'X\(//\)[^/]' \| \
1457	 X"$as_myself" : 'X\(//\)$' \| \
1458	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1459$as_echo X"$as_myself" |
1460    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1461	    s//\1/
1462	    q
1463	  }
1464	  /^X\(\/\/\)[^/].*/{
1465	    s//\1/
1466	    q
1467	  }
1468	  /^X\(\/\/\)$/{
1469	    s//\1/
1470	    q
1471	  }
1472	  /^X\(\/\).*/{
1473	    s//\1/
1474	    q
1475	  }
1476	  s/.*/./; q'`
1477  srcdir=$ac_confdir
1478  if test ! -r "$srcdir/$ac_unique_file"; then
1479    srcdir=..
1480  fi
1481else
1482  ac_srcdir_defaulted=no
1483fi
1484if test ! -r "$srcdir/$ac_unique_file"; then
1485  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1486  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1487   { (exit 1); exit 1; }; }
1488fi
1489ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1490ac_abs_confdir=`(
1491	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1492   { (exit 1); exit 1; }; }
1493	pwd)`
1494# When building in place, set srcdir=.
1495if test "$ac_abs_confdir" = "$ac_pwd"; then
1496  srcdir=.
1497fi
1498# Remove unnecessary trailing slashes from srcdir.
1499# Double slashes in file names in object file debugging info
1500# mess up M-x gdb in Emacs.
1501case $srcdir in
1502*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1503esac
1504for ac_var in $ac_precious_vars; do
1505  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1506  eval ac_env_${ac_var}_value=\$${ac_var}
1507  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1508  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1509done
1510
1511#
1512# Report the --help message.
1513#
1514if test "$ac_init_help" = "long"; then
1515  # Omit some internal or obsolete options to make the list less imposing.
1516  # This message is too long to be a string in the A/UX 3.1 sh.
1517  cat <<_ACEOF
1518\`configure' configures PCRE 8.02 to adapt to many kinds of systems.
1519
1520Usage: $0 [OPTION]... [VAR=VALUE]...
1521
1522To assign environment variables (e.g., CC, CFLAGS...), specify them as
1523VAR=VALUE.  See below for descriptions of some of the useful variables.
1524
1525Defaults for the options are specified in brackets.
1526
1527Configuration:
1528  -h, --help              display this help and exit
1529      --help=short        display options specific to this package
1530      --help=recursive    display the short help of all the included packages
1531  -V, --version           display version information and exit
1532  -q, --quiet, --silent   do not print \`checking...' messages
1533      --cache-file=FILE   cache test results in FILE [disabled]
1534  -C, --config-cache      alias for \`--cache-file=config.cache'
1535  -n, --no-create         do not create output files
1536      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1537
1538Installation directories:
1539  --prefix=PREFIX         install architecture-independent files in PREFIX
1540                          [$ac_default_prefix]
1541  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1542                          [PREFIX]
1543
1544By default, \`make install' will install all the files in
1545\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1546an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1547for instance \`--prefix=\$HOME'.
1548
1549For better control, use the options below.
1550
1551Fine tuning of the installation directories:
1552  --bindir=DIR            user executables [EPREFIX/bin]
1553  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1554  --libexecdir=DIR        program executables [EPREFIX/libexec]
1555  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1556  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1557  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1558  --libdir=DIR            object code libraries [EPREFIX/lib]
1559  --includedir=DIR        C header files [PREFIX/include]
1560  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1561  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1562  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1563  --infodir=DIR           info documentation [DATAROOTDIR/info]
1564  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1565  --mandir=DIR            man documentation [DATAROOTDIR/man]
1566  --docdir=DIR            documentation root [DATAROOTDIR/doc/pcre]
1567  --htmldir=DIR           html documentation [DOCDIR]
1568  --dvidir=DIR            dvi documentation [DOCDIR]
1569  --pdfdir=DIR            pdf documentation [DOCDIR]
1570  --psdir=DIR             ps documentation [DOCDIR]
1571_ACEOF
1572
1573  cat <<\_ACEOF
1574
1575Program names:
1576  --program-prefix=PREFIX            prepend PREFIX to installed program names
1577  --program-suffix=SUFFIX            append SUFFIX to installed program names
1578  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1579
1580System types:
1581  --build=BUILD     configure for building on BUILD [guessed]
1582  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1583_ACEOF
1584fi
1585
1586if test -n "$ac_init_help"; then
1587  case $ac_init_help in
1588     short | recursive ) echo "Configuration of PCRE 8.02:";;
1589   esac
1590  cat <<\_ACEOF
1591
1592Optional Features:
1593  --disable-option-checking  ignore unrecognized --enable/--with options
1594  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1595  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1596  --disable-dependency-tracking  speeds up one-time build
1597  --enable-dependency-tracking   do not reject slow dependency extractors
1598  --enable-shared[=PKGS]  build shared libraries [default=yes]
1599  --enable-static[=PKGS]  build static libraries [default=yes]
1600  --enable-fast-install[=PKGS]
1601                          optimize for fast installation [default=yes]
1602  --disable-libtool-lock  avoid locking (might break parallel builds)
1603  --disable-cpp           disable C++ support
1604  --enable-rebuild-chartables
1605                          rebuild character tables in current locale
1606  --enable-utf8           enable UTF-8 support (incompatible with
1607                          --enable-ebcdic)
1608  --enable-unicode-properties
1609                          enable Unicode properties support (implies
1610                          --enable-utf8)
1611  --enable-newline-is-cr  use CR as newline character
1612  --enable-newline-is-lf  use LF as newline character (default)
1613  --enable-newline-is-crlf
1614                          use CRLF as newline sequence
1615  --enable-newline-is-anycrlf
1616                          use CR, LF, or CRLF as newline sequence
1617  --enable-newline-is-any use any valid Unicode newline sequence
1618  --enable-bsr-anycrlf    \R matches only CR, LF, CRLF by default
1619  --enable-ebcdic         assume EBCDIC coding rather than ASCII; incompatible
1620                          with --enable-utf8; use only in (uncommon) EBCDIC
1621                          environments; it implies --enable-rebuild-chartables
1622  --disable-stack-for-recursion
1623                          don't use stack recursion when matching
1624  --enable-pcregrep-libz  link pcregrep with libz to handle .gz files
1625  --enable-pcregrep-libbz2
1626                          link pcregrep with libbz2 to handle .bz2 files
1627  --enable-pcretest-libreadline
1628                          link pcretest with libreadline
1629
1630Optional Packages:
1631  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1632  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1633  --with-pic              try to use only PIC/non-PIC objects [default=use
1634                          both]
1635  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1636  --with-posix-malloc-threshold=NBYTES
1637                          threshold for POSIX malloc usage (default=10)
1638  --with-link-size=N      internal link size (2, 3, or 4 allowed; default=2)
1639  --with-match-limit=N    default limit on internal looping (default=10000000)
1640  --with-match-limit-recursion=N
1641                          default limit on internal recursion
1642                          (default=MATCH_LIMIT)
1643
1644Some influential environment variables:
1645  CC          C compiler command
1646  CFLAGS      C compiler flags
1647  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1648              nonstandard directory <lib dir>
1649  LIBS        libraries to pass to the linker, e.g. -l<library>
1650  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1651              you have headers in a nonstandard directory <include dir>
1652  CXX         C++ compiler command
1653  CXXFLAGS    C++ compiler flags
1654  CPP         C preprocessor
1655  CXXCPP      C++ preprocessor
1656
1657Use these variables to override the choices made by `configure' or to help
1658it to find libraries and programs with nonstandard names/locations.
1659
1660_ACEOF
1661ac_status=$?
1662fi
1663
1664if test "$ac_init_help" = "recursive"; then
1665  # If there are subdirs, report their specific --help.
1666  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1667    test -d "$ac_dir" ||
1668      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1669      continue
1670    ac_builddir=.
1671
1672case "$ac_dir" in
1673.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1674*)
1675  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1676  # A ".." for each directory in $ac_dir_suffix.
1677  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1678  case $ac_top_builddir_sub in
1679  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1680  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1681  esac ;;
1682esac
1683ac_abs_top_builddir=$ac_pwd
1684ac_abs_builddir=$ac_pwd$ac_dir_suffix
1685# for backward compatibility:
1686ac_top_builddir=$ac_top_build_prefix
1687
1688case $srcdir in
1689  .)  # We are building in place.
1690    ac_srcdir=.
1691    ac_top_srcdir=$ac_top_builddir_sub
1692    ac_abs_top_srcdir=$ac_pwd ;;
1693  [\\/]* | ?:[\\/]* )  # Absolute name.
1694    ac_srcdir=$srcdir$ac_dir_suffix;
1695    ac_top_srcdir=$srcdir
1696    ac_abs_top_srcdir=$srcdir ;;
1697  *) # Relative name.
1698    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1699    ac_top_srcdir=$ac_top_build_prefix$srcdir
1700    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1701esac
1702ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1703
1704    cd "$ac_dir" || { ac_status=$?; continue; }
1705    # Check for guested configure.
1706    if test -f "$ac_srcdir/configure.gnu"; then
1707      echo &&
1708      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1709    elif test -f "$ac_srcdir/configure"; then
1710      echo &&
1711      $SHELL "$ac_srcdir/configure" --help=recursive
1712    else
1713      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1714    fi || ac_status=$?
1715    cd "$ac_pwd" || { ac_status=$?; break; }
1716  done
1717fi
1718
1719test -n "$ac_init_help" && exit $ac_status
1720if $ac_init_version; then
1721  cat <<\_ACEOF
1722PCRE configure 8.02
1723generated by GNU Autoconf 2.63
1724
1725Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
17262002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1727This configure script is free software; the Free Software Foundation
1728gives unlimited permission to copy, distribute and modify it.
1729_ACEOF
1730  exit
1731fi
1732cat >config.log <<_ACEOF
1733This file contains any messages produced by compilers while
1734running configure, to aid debugging if configure makes a mistake.
1735
1736It was created by PCRE $as_me 8.02, which was
1737generated by GNU Autoconf 2.63.  Invocation command line was
1738
1739  $ $0 $@
1740
1741_ACEOF
1742exec 5>>config.log
1743{
1744cat <<_ASUNAME
1745## --------- ##
1746## Platform. ##
1747## --------- ##
1748
1749hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1750uname -m = `(uname -m) 2>/dev/null || echo unknown`
1751uname -r = `(uname -r) 2>/dev/null || echo unknown`
1752uname -s = `(uname -s) 2>/dev/null || echo unknown`
1753uname -v = `(uname -v) 2>/dev/null || echo unknown`
1754
1755/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1756/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1757
1758/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1759/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1760/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1761/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1762/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1763/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1764/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1765
1766_ASUNAME
1767
1768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1769for as_dir in $PATH
1770do
1771  IFS=$as_save_IFS
1772  test -z "$as_dir" && as_dir=.
1773  $as_echo "PATH: $as_dir"
1774done
1775IFS=$as_save_IFS
1776
1777} >&5
1778
1779cat >&5 <<_ACEOF
1780
1781
1782## ----------- ##
1783## Core tests. ##
1784## ----------- ##
1785
1786_ACEOF
1787
1788
1789# Keep a trace of the command line.
1790# Strip out --no-create and --no-recursion so they do not pile up.
1791# Strip out --silent because we don't want to record it for future runs.
1792# Also quote any args containing shell meta-characters.
1793# Make two passes to allow for proper duplicate-argument suppression.
1794ac_configure_args=
1795ac_configure_args0=
1796ac_configure_args1=
1797ac_must_keep_next=false
1798for ac_pass in 1 2
1799do
1800  for ac_arg
1801  do
1802    case $ac_arg in
1803    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1804    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1805    | -silent | --silent | --silen | --sile | --sil)
1806      continue ;;
1807    *\'*)
1808      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1809    esac
1810    case $ac_pass in
1811    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1812    2)
1813      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1814      if test $ac_must_keep_next = true; then
1815	ac_must_keep_next=false # Got value, back to normal.
1816      else
1817	case $ac_arg in
1818	  *=* | --config-cache | -C | -disable-* | --disable-* \
1819	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1820	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1821	  | -with-* | --with-* | -without-* | --without-* | --x)
1822	    case "$ac_configure_args0 " in
1823	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1824	    esac
1825	    ;;
1826	  -* ) ac_must_keep_next=true ;;
1827	esac
1828      fi
1829      ac_configure_args="$ac_configure_args '$ac_arg'"
1830      ;;
1831    esac
1832  done
1833done
1834$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1835$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1836
1837# When interrupted or exit'd, cleanup temporary files, and complete
1838# config.log.  We remove comments because anyway the quotes in there
1839# would cause problems or look ugly.
1840# WARNING: Use '\'' to represent an apostrophe within the trap.
1841# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1842trap 'exit_status=$?
1843  # Save into config.log some information that might help in debugging.
1844  {
1845    echo
1846
1847    cat <<\_ASBOX
1848## ---------------- ##
1849## Cache variables. ##
1850## ---------------- ##
1851_ASBOX
1852    echo
1853    # The following way of writing the cache mishandles newlines in values,
1854(
1855  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1856    eval ac_val=\$$ac_var
1857    case $ac_val in #(
1858    *${as_nl}*)
1859      case $ac_var in #(
1860      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1861$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1862      esac
1863      case $ac_var in #(
1864      _ | IFS | as_nl) ;; #(
1865      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1866      *) $as_unset $ac_var ;;
1867      esac ;;
1868    esac
1869  done
1870  (set) 2>&1 |
1871    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1872    *${as_nl}ac_space=\ *)
1873      sed -n \
1874	"s/'\''/'\''\\\\'\'''\''/g;
1875	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1876      ;; #(
1877    *)
1878      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1879      ;;
1880    esac |
1881    sort
1882)
1883    echo
1884
1885    cat <<\_ASBOX
1886## ----------------- ##
1887## Output variables. ##
1888## ----------------- ##
1889_ASBOX
1890    echo
1891    for ac_var in $ac_subst_vars
1892    do
1893      eval ac_val=\$$ac_var
1894      case $ac_val in
1895      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1896      esac
1897      $as_echo "$ac_var='\''$ac_val'\''"
1898    done | sort
1899    echo
1900
1901    if test -n "$ac_subst_files"; then
1902      cat <<\_ASBOX
1903## ------------------- ##
1904## File substitutions. ##
1905## ------------------- ##
1906_ASBOX
1907      echo
1908      for ac_var in $ac_subst_files
1909      do
1910	eval ac_val=\$$ac_var
1911	case $ac_val in
1912	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1913	esac
1914	$as_echo "$ac_var='\''$ac_val'\''"
1915      done | sort
1916      echo
1917    fi
1918
1919    if test -s confdefs.h; then
1920      cat <<\_ASBOX
1921## ----------- ##
1922## confdefs.h. ##
1923## ----------- ##
1924_ASBOX
1925      echo
1926      cat confdefs.h
1927      echo
1928    fi
1929    test "$ac_signal" != 0 &&
1930      $as_echo "$as_me: caught signal $ac_signal"
1931    $as_echo "$as_me: exit $exit_status"
1932  } >&5
1933  rm -f core *.core core.conftest.* &&
1934    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1935    exit $exit_status
1936' 0
1937for ac_signal in 1 2 13 15; do
1938  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1939done
1940ac_signal=0
1941
1942# confdefs.h avoids OS command line length limits that DEFS can exceed.
1943rm -f -r conftest* confdefs.h
1944
1945# Predefined preprocessor variables.
1946
1947cat >>confdefs.h <<_ACEOF
1948#define PACKAGE_NAME "$PACKAGE_NAME"
1949_ACEOF
1950
1951
1952cat >>confdefs.h <<_ACEOF
1953#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1954_ACEOF
1955
1956
1957cat >>confdefs.h <<_ACEOF
1958#define PACKAGE_VERSION "$PACKAGE_VERSION"
1959_ACEOF
1960
1961
1962cat >>confdefs.h <<_ACEOF
1963#define PACKAGE_STRING "$PACKAGE_STRING"
1964_ACEOF
1965
1966
1967cat >>confdefs.h <<_ACEOF
1968#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1969_ACEOF
1970
1971
1972# Let the site file select an alternate cache file if it wants to.
1973# Prefer an explicitly selected file to automatically selected ones.
1974ac_site_file1=NONE
1975ac_site_file2=NONE
1976if test -n "$CONFIG_SITE"; then
1977  ac_site_file1=$CONFIG_SITE
1978elif test "x$prefix" != xNONE; then
1979  ac_site_file1=$prefix/share/config.site
1980  ac_site_file2=$prefix/etc/config.site
1981else
1982  ac_site_file1=$ac_default_prefix/share/config.site
1983  ac_site_file2=$ac_default_prefix/etc/config.site
1984fi
1985for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1986do
1987  test "x$ac_site_file" = xNONE && continue
1988  if test -r "$ac_site_file"; then
1989    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1990$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1991    sed 's/^/| /' "$ac_site_file" >&5
1992    . "$ac_site_file"
1993  fi
1994done
1995
1996if test -r "$cache_file"; then
1997  # Some versions of bash will fail to source /dev/null (special
1998  # files actually), so we avoid doing that.
1999  if test -f "$cache_file"; then
2000    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2001$as_echo "$as_me: loading cache $cache_file" >&6;}
2002    case $cache_file in
2003      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2004      *)                      . "./$cache_file";;
2005    esac
2006  fi
2007else
2008  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2009$as_echo "$as_me: creating cache $cache_file" >&6;}
2010  >$cache_file
2011fi
2012
2013# Check that the precious variables saved in the cache have kept the same
2014# value.
2015ac_cache_corrupted=false
2016for ac_var in $ac_precious_vars; do
2017  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2018  eval ac_new_set=\$ac_env_${ac_var}_set
2019  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2020  eval ac_new_val=\$ac_env_${ac_var}_value
2021  case $ac_old_set,$ac_new_set in
2022    set,)
2023      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2024$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2025      ac_cache_corrupted=: ;;
2026    ,set)
2027      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2028$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2029      ac_cache_corrupted=: ;;
2030    ,);;
2031    *)
2032      if test "x$ac_old_val" != "x$ac_new_val"; then
2033	# differences in whitespace do not lead to failure.
2034	ac_old_val_w=`echo x $ac_old_val`
2035	ac_new_val_w=`echo x $ac_new_val`
2036	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2037	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2038$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2039	  ac_cache_corrupted=:
2040	else
2041	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2042$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2043	  eval $ac_var=\$ac_old_val
2044	fi
2045	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2046$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2047	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2048$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2049      fi;;
2050  esac
2051  # Pass precious variables to config.status.
2052  if test "$ac_new_set" = set; then
2053    case $ac_new_val in
2054    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2055    *) ac_arg=$ac_var=$ac_new_val ;;
2056    esac
2057    case " $ac_configure_args " in
2058      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2059      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2060    esac
2061  fi
2062done
2063if $ac_cache_corrupted; then
2064  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2065$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2066  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2067$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2068  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2069$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2070   { (exit 1); exit 1; }; }
2071fi
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097ac_ext=c
2098ac_cpp='$CPP $CPPFLAGS'
2099ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2100ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2101ac_compiler_gnu=$ac_cv_c_compiler_gnu
2102
2103
2104
2105am__api_version='1.10'
2106
2107ac_aux_dir=
2108for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2109  if test -f "$ac_dir/install-sh"; then
2110    ac_aux_dir=$ac_dir
2111    ac_install_sh="$ac_aux_dir/install-sh -c"
2112    break
2113  elif test -f "$ac_dir/install.sh"; then
2114    ac_aux_dir=$ac_dir
2115    ac_install_sh="$ac_aux_dir/install.sh -c"
2116    break
2117  elif test -f "$ac_dir/shtool"; then
2118    ac_aux_dir=$ac_dir
2119    ac_install_sh="$ac_aux_dir/shtool install -c"
2120    break
2121  fi
2122done
2123if test -z "$ac_aux_dir"; then
2124  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2125$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2126   { (exit 1); exit 1; }; }
2127fi
2128
2129# These three variables are undocumented and unsupported,
2130# and are intended to be withdrawn in a future Autoconf release.
2131# They can cause serious problems if a builder's source tree is in a directory
2132# whose full name contains unusual characters.
2133ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2134ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2135ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2136
2137
2138# Find a good install program.  We prefer a C program (faster),
2139# so one script is as good as another.  But avoid the broken or
2140# incompatible versions:
2141# SysV /etc/install, /usr/sbin/install
2142# SunOS /usr/etc/install
2143# IRIX /sbin/install
2144# AIX /bin/install
2145# AmigaOS /C/install, which installs bootblocks on floppy discs
2146# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2147# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2148# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2149# OS/2's system install, which has a completely different semantic
2150# ./install, which can be erroneously created by make from ./install.sh.
2151# Reject install programs that cannot install multiple files.
2152{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2153$as_echo_n "checking for a BSD-compatible install... " >&6; }
2154if test -z "$INSTALL"; then
2155if test "${ac_cv_path_install+set}" = set; then
2156  $as_echo_n "(cached) " >&6
2157else
2158  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2159for as_dir in $PATH
2160do
2161  IFS=$as_save_IFS
2162  test -z "$as_dir" && as_dir=.
2163  # Account for people who put trailing slashes in PATH elements.
2164case $as_dir/ in
2165  ./ | .// | /cC/* | \
2166  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2167  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2168  /usr/ucb/* ) ;;
2169  *)
2170    # OSF1 and SCO ODT 3.0 have their own names for install.
2171    # Don't use installbsd from OSF since it installs stuff as root
2172    # by default.
2173    for ac_prog in ginstall scoinst install; do
2174      for ac_exec_ext in '' $ac_executable_extensions; do
2175	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2176	  if test $ac_prog = install &&
2177	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2178	    # AIX install.  It has an incompatible calling convention.
2179	    :
2180	  elif test $ac_prog = install &&
2181	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2182	    # program-specific install script used by HP pwplus--don't use.
2183	    :
2184	  else
2185	    rm -rf conftest.one conftest.two conftest.dir
2186	    echo one > conftest.one
2187	    echo two > conftest.two
2188	    mkdir conftest.dir
2189	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2190	      test -s conftest.one && test -s conftest.two &&
2191	      test -s conftest.dir/conftest.one &&
2192	      test -s conftest.dir/conftest.two
2193	    then
2194	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2195	      break 3
2196	    fi
2197	  fi
2198	fi
2199      done
2200    done
2201    ;;
2202esac
2203
2204done
2205IFS=$as_save_IFS
2206
2207rm -rf conftest.one conftest.two conftest.dir
2208
2209fi
2210  if test "${ac_cv_path_install+set}" = set; then
2211    INSTALL=$ac_cv_path_install
2212  else
2213    # As a last resort, use the slow shell script.  Don't cache a
2214    # value for INSTALL within a source directory, because that will
2215    # break other packages using the cache if that directory is
2216    # removed, or if the value is a relative name.
2217    INSTALL=$ac_install_sh
2218  fi
2219fi
2220{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2221$as_echo "$INSTALL" >&6; }
2222
2223# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2224# It thinks the first close brace ends the variable substitution.
2225test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2226
2227test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2228
2229test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2230
2231{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2232$as_echo_n "checking whether build environment is sane... " >&6; }
2233# Just in case
2234sleep 1
2235echo timestamp > conftest.file
2236# Do `set' in a subshell so we don't clobber the current shell's
2237# arguments.  Must try -L first in case configure is actually a
2238# symlink; some systems play weird games with the mod time of symlinks
2239# (eg FreeBSD returns the mod time of the symlink's containing
2240# directory).
2241if (
2242   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2243   if test "$*" = "X"; then
2244      # -L didn't work.
2245      set X `ls -t $srcdir/configure conftest.file`
2246   fi
2247   rm -f conftest.file
2248   if test "$*" != "X $srcdir/configure conftest.file" \
2249      && test "$*" != "X conftest.file $srcdir/configure"; then
2250
2251      # If neither matched, then we have a broken ls.  This can happen
2252      # if, for instance, CONFIG_SHELL is bash and it inherits a
2253      # broken ls alias from the environment.  This has actually
2254      # happened.  Such a system could not be considered "sane".
2255      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2256alias in your environment" >&5
2257$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2258alias in your environment" >&2;}
2259   { (exit 1); exit 1; }; }
2260   fi
2261
2262   test "$2" = conftest.file
2263   )
2264then
2265   # Ok.
2266   :
2267else
2268   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2269Check your system clock" >&5
2270$as_echo "$as_me: error: newly created file is older than distributed files!
2271Check your system clock" >&2;}
2272   { (exit 1); exit 1; }; }
2273fi
2274{ $as_echo "$as_me:$LINENO: result: yes" >&5
2275$as_echo "yes" >&6; }
2276test "$program_prefix" != NONE &&
2277  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2278# Use a double $ so make ignores it.
2279test "$program_suffix" != NONE &&
2280  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2281# Double any \ or $.
2282# By default was `s,x,x', remove it if useless.
2283ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2284program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2285
2286# expand $ac_aux_dir to an absolute path
2287am_aux_dir=`cd $ac_aux_dir && pwd`
2288
2289test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2290# Use eval to expand $SHELL
2291if eval "$MISSING --run true"; then
2292  am_missing_run="$MISSING --run "
2293else
2294  am_missing_run=
2295  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2296$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2297fi
2298
2299install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2300
2301# Installed binaries are usually stripped using `strip' when the user
2302# run `make install-strip'.  However `strip' might not be the right
2303# tool to use in cross-compilation environments, therefore Automake
2304# will honor the `STRIP' environment variable to overrule this program.
2305if test "$cross_compiling" != no; then
2306  if test -n "$ac_tool_prefix"; then
2307  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2308set dummy ${ac_tool_prefix}strip; ac_word=$2
2309{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2310$as_echo_n "checking for $ac_word... " >&6; }
2311if test "${ac_cv_prog_STRIP+set}" = set; then
2312  $as_echo_n "(cached) " >&6
2313else
2314  if test -n "$STRIP"; then
2315  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2316else
2317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2318for as_dir in $PATH
2319do
2320  IFS=$as_save_IFS
2321  test -z "$as_dir" && as_dir=.
2322  for ac_exec_ext in '' $ac_executable_extensions; do
2323  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2324    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2325    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2326    break 2
2327  fi
2328done
2329done
2330IFS=$as_save_IFS
2331
2332fi
2333fi
2334STRIP=$ac_cv_prog_STRIP
2335if test -n "$STRIP"; then
2336  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2337$as_echo "$STRIP" >&6; }
2338else
2339  { $as_echo "$as_me:$LINENO: result: no" >&5
2340$as_echo "no" >&6; }
2341fi
2342
2343
2344fi
2345if test -z "$ac_cv_prog_STRIP"; then
2346  ac_ct_STRIP=$STRIP
2347  # Extract the first word of "strip", so it can be a program name with args.
2348set dummy strip; ac_word=$2
2349{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2350$as_echo_n "checking for $ac_word... " >&6; }
2351if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2352  $as_echo_n "(cached) " >&6
2353else
2354  if test -n "$ac_ct_STRIP"; then
2355  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2356else
2357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2358for as_dir in $PATH
2359do
2360  IFS=$as_save_IFS
2361  test -z "$as_dir" && as_dir=.
2362  for ac_exec_ext in '' $ac_executable_extensions; do
2363  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2364    ac_cv_prog_ac_ct_STRIP="strip"
2365    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2366    break 2
2367  fi
2368done
2369done
2370IFS=$as_save_IFS
2371
2372fi
2373fi
2374ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2375if test -n "$ac_ct_STRIP"; then
2376  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2377$as_echo "$ac_ct_STRIP" >&6; }
2378else
2379  { $as_echo "$as_me:$LINENO: result: no" >&5
2380$as_echo "no" >&6; }
2381fi
2382
2383  if test "x$ac_ct_STRIP" = x; then
2384    STRIP=":"
2385  else
2386    case $cross_compiling:$ac_tool_warned in
2387yes:)
2388{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2389$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2390ac_tool_warned=yes ;;
2391esac
2392    STRIP=$ac_ct_STRIP
2393  fi
2394else
2395  STRIP="$ac_cv_prog_STRIP"
2396fi
2397
2398fi
2399INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2400
2401{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2402$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2403if test -z "$MKDIR_P"; then
2404  if test "${ac_cv_path_mkdir+set}" = set; then
2405  $as_echo_n "(cached) " >&6
2406else
2407  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2408for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2409do
2410  IFS=$as_save_IFS
2411  test -z "$as_dir" && as_dir=.
2412  for ac_prog in mkdir gmkdir; do
2413	 for ac_exec_ext in '' $ac_executable_extensions; do
2414	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2415	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2416	     'mkdir (GNU coreutils) '* | \
2417	     'mkdir (coreutils) '* | \
2418	     'mkdir (fileutils) '4.1*)
2419	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2420	       break 3;;
2421	   esac
2422	 done
2423       done
2424done
2425IFS=$as_save_IFS
2426
2427fi
2428
2429  if test "${ac_cv_path_mkdir+set}" = set; then
2430    MKDIR_P="$ac_cv_path_mkdir -p"
2431  else
2432    # As a last resort, use the slow shell script.  Don't cache a
2433    # value for MKDIR_P within a source directory, because that will
2434    # break other packages using the cache if that directory is
2435    # removed, or if the value is a relative name.
2436    test -d ./--version && rmdir ./--version
2437    MKDIR_P="$ac_install_sh -d"
2438  fi
2439fi
2440{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2441$as_echo "$MKDIR_P" >&6; }
2442
2443mkdir_p="$MKDIR_P"
2444case $mkdir_p in
2445  [\\/$]* | ?:[\\/]*) ;;
2446  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2447esac
2448
2449for ac_prog in gawk mawk nawk awk
2450do
2451  # Extract the first word of "$ac_prog", so it can be a program name with args.
2452set dummy $ac_prog; ac_word=$2
2453{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2454$as_echo_n "checking for $ac_word... " >&6; }
2455if test "${ac_cv_prog_AWK+set}" = set; then
2456  $as_echo_n "(cached) " >&6
2457else
2458  if test -n "$AWK"; then
2459  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2460else
2461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2462for as_dir in $PATH
2463do
2464  IFS=$as_save_IFS
2465  test -z "$as_dir" && as_dir=.
2466  for ac_exec_ext in '' $ac_executable_extensions; do
2467  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2468    ac_cv_prog_AWK="$ac_prog"
2469    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2470    break 2
2471  fi
2472done
2473done
2474IFS=$as_save_IFS
2475
2476fi
2477fi
2478AWK=$ac_cv_prog_AWK
2479if test -n "$AWK"; then
2480  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2481$as_echo "$AWK" >&6; }
2482else
2483  { $as_echo "$as_me:$LINENO: result: no" >&5
2484$as_echo "no" >&6; }
2485fi
2486
2487
2488  test -n "$AWK" && break
2489done
2490
2491{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2492$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2493set x ${MAKE-make}
2494ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2495if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2496  $as_echo_n "(cached) " >&6
2497else
2498  cat >conftest.make <<\_ACEOF
2499SHELL = /bin/sh
2500all:
2501	@echo '@@@%%%=$(MAKE)=@@@%%%'
2502_ACEOF
2503# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2504case `${MAKE-make} -f conftest.make 2>/dev/null` in
2505  *@@@%%%=?*=@@@%%%*)
2506    eval ac_cv_prog_make_${ac_make}_set=yes;;
2507  *)
2508    eval ac_cv_prog_make_${ac_make}_set=no;;
2509esac
2510rm -f conftest.make
2511fi
2512if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2513  { $as_echo "$as_me:$LINENO: result: yes" >&5
2514$as_echo "yes" >&6; }
2515  SET_MAKE=
2516else
2517  { $as_echo "$as_me:$LINENO: result: no" >&5
2518$as_echo "no" >&6; }
2519  SET_MAKE="MAKE=${MAKE-make}"
2520fi
2521
2522rm -rf .tst 2>/dev/null
2523mkdir .tst 2>/dev/null
2524if test -d .tst; then
2525  am__leading_dot=.
2526else
2527  am__leading_dot=_
2528fi
2529rmdir .tst 2>/dev/null
2530
2531if test "`cd $srcdir && pwd`" != "`pwd`"; then
2532  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2533  # is not polluted with repeated "-I."
2534  am__isrc=' -I$(srcdir)'
2535  # test to see if srcdir already configured
2536  if test -f $srcdir/config.status; then
2537    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2538$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2539   { (exit 1); exit 1; }; }
2540  fi
2541fi
2542
2543# test whether we have cygpath
2544if test -z "$CYGPATH_W"; then
2545  if (cygpath --version) >/dev/null 2>/dev/null; then
2546    CYGPATH_W='cygpath -w'
2547  else
2548    CYGPATH_W=echo
2549  fi
2550fi
2551
2552
2553# Define the identity of the package.
2554 PACKAGE='pcre'
2555 VERSION='8.02'
2556
2557
2558cat >>confdefs.h <<_ACEOF
2559#define PACKAGE "$PACKAGE"
2560_ACEOF
2561
2562
2563cat >>confdefs.h <<_ACEOF
2564#define VERSION "$VERSION"
2565_ACEOF
2566
2567# Some tools Automake needs.
2568
2569ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2570
2571
2572AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2573
2574
2575AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2576
2577
2578AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2579
2580
2581MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2582
2583# We need awk for the "check" target.  The system "awk" is bad on
2584# some platforms.
2585# Always define AMTAR for backward compatibility.
2586
2587AMTAR=${AMTAR-"${am_missing_run}tar"}
2588
2589am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2590
2591
2592
2593
2594
2595ac_config_headers="$ac_config_headers config.h"
2596
2597
2598# This was added at the suggestion of libtoolize (03-Jan-10)
2599
2600
2601# The default CFLAGS and CXXFLAGS in Autoconf are "-g -O2" for gcc and just
2602# "-g" for any other compiler. There doesn't seem to be a standard way of
2603# getting rid of the -g (which I don't think is needed for a production
2604# library). This fudge seems to achieve the necessary. First, we remember the
2605# externally set values of CFLAGS and CXXFLAGS. Then call the AC_PROG_CC and
2606# AC_PROG_CXX macros to find the compilers - if CFLAGS and CXXFLAGS are not
2607# set, they will be set to Autoconf's defaults. Afterwards, if the original
2608# values were not set, remove the -g from the Autoconf defaults.
2609# (PH 02-May-07)
2610
2611remember_set_CFLAGS="$CFLAGS"
2612remember_set_CXXFLAGS="$CXXFLAGS"
2613
2614ac_ext=c
2615ac_cpp='$CPP $CPPFLAGS'
2616ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2617ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2618ac_compiler_gnu=$ac_cv_c_compiler_gnu
2619if test -n "$ac_tool_prefix"; then
2620  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2621set dummy ${ac_tool_prefix}gcc; ac_word=$2
2622{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2623$as_echo_n "checking for $ac_word... " >&6; }
2624if test "${ac_cv_prog_CC+set}" = set; then
2625  $as_echo_n "(cached) " >&6
2626else
2627  if test -n "$CC"; then
2628  ac_cv_prog_CC="$CC" # Let the user override the test.
2629else
2630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2631for as_dir in $PATH
2632do
2633  IFS=$as_save_IFS
2634  test -z "$as_dir" && as_dir=.
2635  for ac_exec_ext in '' $ac_executable_extensions; do
2636  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2637    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2638    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2639    break 2
2640  fi
2641done
2642done
2643IFS=$as_save_IFS
2644
2645fi
2646fi
2647CC=$ac_cv_prog_CC
2648if test -n "$CC"; then
2649  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2650$as_echo "$CC" >&6; }
2651else
2652  { $as_echo "$as_me:$LINENO: result: no" >&5
2653$as_echo "no" >&6; }
2654fi
2655
2656
2657fi
2658if test -z "$ac_cv_prog_CC"; then
2659  ac_ct_CC=$CC
2660  # Extract the first word of "gcc", so it can be a program name with args.
2661set dummy gcc; ac_word=$2
2662{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2663$as_echo_n "checking for $ac_word... " >&6; }
2664if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2665  $as_echo_n "(cached) " >&6
2666else
2667  if test -n "$ac_ct_CC"; then
2668  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2669else
2670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2671for as_dir in $PATH
2672do
2673  IFS=$as_save_IFS
2674  test -z "$as_dir" && as_dir=.
2675  for ac_exec_ext in '' $ac_executable_extensions; do
2676  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2677    ac_cv_prog_ac_ct_CC="gcc"
2678    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2679    break 2
2680  fi
2681done
2682done
2683IFS=$as_save_IFS
2684
2685fi
2686fi
2687ac_ct_CC=$ac_cv_prog_ac_ct_CC
2688if test -n "$ac_ct_CC"; then
2689  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2690$as_echo "$ac_ct_CC" >&6; }
2691else
2692  { $as_echo "$as_me:$LINENO: result: no" >&5
2693$as_echo "no" >&6; }
2694fi
2695
2696  if test "x$ac_ct_CC" = x; then
2697    CC=""
2698  else
2699    case $cross_compiling:$ac_tool_warned in
2700yes:)
2701{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2702$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2703ac_tool_warned=yes ;;
2704esac
2705    CC=$ac_ct_CC
2706  fi
2707else
2708  CC="$ac_cv_prog_CC"
2709fi
2710
2711if test -z "$CC"; then
2712          if test -n "$ac_tool_prefix"; then
2713    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2714set dummy ${ac_tool_prefix}cc; ac_word=$2
2715{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2716$as_echo_n "checking for $ac_word... " >&6; }
2717if test "${ac_cv_prog_CC+set}" = set; then
2718  $as_echo_n "(cached) " >&6
2719else
2720  if test -n "$CC"; then
2721  ac_cv_prog_CC="$CC" # Let the user override the test.
2722else
2723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2724for as_dir in $PATH
2725do
2726  IFS=$as_save_IFS
2727  test -z "$as_dir" && as_dir=.
2728  for ac_exec_ext in '' $ac_executable_extensions; do
2729  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2730    ac_cv_prog_CC="${ac_tool_prefix}cc"
2731    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2732    break 2
2733  fi
2734done
2735done
2736IFS=$as_save_IFS
2737
2738fi
2739fi
2740CC=$ac_cv_prog_CC
2741if test -n "$CC"; then
2742  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2743$as_echo "$CC" >&6; }
2744else
2745  { $as_echo "$as_me:$LINENO: result: no" >&5
2746$as_echo "no" >&6; }
2747fi
2748
2749
2750  fi
2751fi
2752if test -z "$CC"; then
2753  # Extract the first word of "cc", so it can be a program name with args.
2754set dummy cc; ac_word=$2
2755{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2756$as_echo_n "checking for $ac_word... " >&6; }
2757if test "${ac_cv_prog_CC+set}" = set; then
2758  $as_echo_n "(cached) " >&6
2759else
2760  if test -n "$CC"; then
2761  ac_cv_prog_CC="$CC" # Let the user override the test.
2762else
2763  ac_prog_rejected=no
2764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2765for as_dir in $PATH
2766do
2767  IFS=$as_save_IFS
2768  test -z "$as_dir" && as_dir=.
2769  for ac_exec_ext in '' $ac_executable_extensions; do
2770  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2771    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2772       ac_prog_rejected=yes
2773       continue
2774     fi
2775    ac_cv_prog_CC="cc"
2776    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2777    break 2
2778  fi
2779done
2780done
2781IFS=$as_save_IFS
2782
2783if test $ac_prog_rejected = yes; then
2784  # We found a bogon in the path, so make sure we never use it.
2785  set dummy $ac_cv_prog_CC
2786  shift
2787  if test $# != 0; then
2788    # We chose a different compiler from the bogus one.
2789    # However, it has the same basename, so the bogon will be chosen
2790    # first if we set CC to just the basename; use the full file name.
2791    shift
2792    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2793  fi
2794fi
2795fi
2796fi
2797CC=$ac_cv_prog_CC
2798if test -n "$CC"; then
2799  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2800$as_echo "$CC" >&6; }
2801else
2802  { $as_echo "$as_me:$LINENO: result: no" >&5
2803$as_echo "no" >&6; }
2804fi
2805
2806
2807fi
2808if test -z "$CC"; then
2809  if test -n "$ac_tool_prefix"; then
2810  for ac_prog in cl.exe
2811  do
2812    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2813set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2814{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2815$as_echo_n "checking for $ac_word... " >&6; }
2816if test "${ac_cv_prog_CC+set}" = set; then
2817  $as_echo_n "(cached) " >&6
2818else
2819  if test -n "$CC"; then
2820  ac_cv_prog_CC="$CC" # Let the user override the test.
2821else
2822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823for as_dir in $PATH
2824do
2825  IFS=$as_save_IFS
2826  test -z "$as_dir" && as_dir=.
2827  for ac_exec_ext in '' $ac_executable_extensions; do
2828  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2829    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2830    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2831    break 2
2832  fi
2833done
2834done
2835IFS=$as_save_IFS
2836
2837fi
2838fi
2839CC=$ac_cv_prog_CC
2840if test -n "$CC"; then
2841  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2842$as_echo "$CC" >&6; }
2843else
2844  { $as_echo "$as_me:$LINENO: result: no" >&5
2845$as_echo "no" >&6; }
2846fi
2847
2848
2849    test -n "$CC" && break
2850  done
2851fi
2852if test -z "$CC"; then
2853  ac_ct_CC=$CC
2854  for ac_prog in cl.exe
2855do
2856  # Extract the first word of "$ac_prog", so it can be a program name with args.
2857set dummy $ac_prog; ac_word=$2
2858{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2859$as_echo_n "checking for $ac_word... " >&6; }
2860if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2861  $as_echo_n "(cached) " >&6
2862else
2863  if test -n "$ac_ct_CC"; then
2864  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2865else
2866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2867for as_dir in $PATH
2868do
2869  IFS=$as_save_IFS
2870  test -z "$as_dir" && as_dir=.
2871  for ac_exec_ext in '' $ac_executable_extensions; do
2872  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2873    ac_cv_prog_ac_ct_CC="$ac_prog"
2874    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2875    break 2
2876  fi
2877done
2878done
2879IFS=$as_save_IFS
2880
2881fi
2882fi
2883ac_ct_CC=$ac_cv_prog_ac_ct_CC
2884if test -n "$ac_ct_CC"; then
2885  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2886$as_echo "$ac_ct_CC" >&6; }
2887else
2888  { $as_echo "$as_me:$LINENO: result: no" >&5
2889$as_echo "no" >&6; }
2890fi
2891
2892
2893  test -n "$ac_ct_CC" && break
2894done
2895
2896  if test "x$ac_ct_CC" = x; then
2897    CC=""
2898  else
2899    case $cross_compiling:$ac_tool_warned in
2900yes:)
2901{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2902$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2903ac_tool_warned=yes ;;
2904esac
2905    CC=$ac_ct_CC
2906  fi
2907fi
2908
2909fi
2910
2911
2912test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2913$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2914{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2915See \`config.log' for more details." >&5
2916$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2917See \`config.log' for more details." >&2;}
2918   { (exit 1); exit 1; }; }; }
2919
2920# Provide some information about the compiler.
2921$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2922set X $ac_compile
2923ac_compiler=$2
2924{ (ac_try="$ac_compiler --version >&5"
2925case "(($ac_try" in
2926  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2927  *) ac_try_echo=$ac_try;;
2928esac
2929eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2930$as_echo "$ac_try_echo") >&5
2931  (eval "$ac_compiler --version >&5") 2>&5
2932  ac_status=$?
2933  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934  (exit $ac_status); }
2935{ (ac_try="$ac_compiler -v >&5"
2936case "(($ac_try" in
2937  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2938  *) ac_try_echo=$ac_try;;
2939esac
2940eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2941$as_echo "$ac_try_echo") >&5
2942  (eval "$ac_compiler -v >&5") 2>&5
2943  ac_status=$?
2944  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945  (exit $ac_status); }
2946{ (ac_try="$ac_compiler -V >&5"
2947case "(($ac_try" in
2948  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2949  *) ac_try_echo=$ac_try;;
2950esac
2951eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2952$as_echo "$ac_try_echo") >&5
2953  (eval "$ac_compiler -V >&5") 2>&5
2954  ac_status=$?
2955  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956  (exit $ac_status); }
2957
2958cat >conftest.$ac_ext <<_ACEOF
2959/* confdefs.h.  */
2960_ACEOF
2961cat confdefs.h >>conftest.$ac_ext
2962cat >>conftest.$ac_ext <<_ACEOF
2963/* end confdefs.h.  */
2964
2965int
2966main ()
2967{
2968
2969  ;
2970  return 0;
2971}
2972_ACEOF
2973ac_clean_files_save=$ac_clean_files
2974ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2975# Try to create an executable without -o first, disregard a.out.
2976# It will help us diagnose broken compilers, and finding out an intuition
2977# of exeext.
2978{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2979$as_echo_n "checking for C compiler default output file name... " >&6; }
2980ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2981
2982# The possible output files:
2983ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2984
2985ac_rmfiles=
2986for ac_file in $ac_files
2987do
2988  case $ac_file in
2989    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2990    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2991  esac
2992done
2993rm -f $ac_rmfiles
2994
2995if { (ac_try="$ac_link_default"
2996case "(($ac_try" in
2997  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2998  *) ac_try_echo=$ac_try;;
2999esac
3000eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3001$as_echo "$ac_try_echo") >&5
3002  (eval "$ac_link_default") 2>&5
3003  ac_status=$?
3004  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005  (exit $ac_status); }; then
3006  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3007# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3008# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3009# so that the user can short-circuit this test for compilers unknown to
3010# Autoconf.
3011for ac_file in $ac_files ''
3012do
3013  test -f "$ac_file" || continue
3014  case $ac_file in
3015    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3016	;;
3017    [ab].out )
3018	# We found the default executable, but exeext='' is most
3019	# certainly right.
3020	break;;
3021    *.* )
3022        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3023	then :; else
3024	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3025	fi
3026	# We set ac_cv_exeext here because the later test for it is not
3027	# safe: cross compilers may not add the suffix if given an `-o'
3028	# argument, so we may need to know it at that point already.
3029	# Even if this section looks crufty: it has the advantage of
3030	# actually working.
3031	break;;
3032    * )
3033	break;;
3034  esac
3035done
3036test "$ac_cv_exeext" = no && ac_cv_exeext=
3037
3038else
3039  ac_file=''
3040fi
3041
3042{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3043$as_echo "$ac_file" >&6; }
3044if test -z "$ac_file"; then
3045  $as_echo "$as_me: failed program was:" >&5
3046sed 's/^/| /' conftest.$ac_ext >&5
3047
3048{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3049$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3050{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3051See \`config.log' for more details." >&5
3052$as_echo "$as_me: error: C compiler cannot create executables
3053See \`config.log' for more details." >&2;}
3054   { (exit 77); exit 77; }; }; }
3055fi
3056
3057ac_exeext=$ac_cv_exeext
3058
3059# Check that the compiler produces executables we can run.  If not, either
3060# the compiler is broken, or we cross compile.
3061{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3062$as_echo_n "checking whether the C compiler works... " >&6; }
3063# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3064# If not cross compiling, check that we can run a simple program.
3065if test "$cross_compiling" != yes; then
3066  if { ac_try='./$ac_file'
3067  { (case "(($ac_try" in
3068  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3069  *) ac_try_echo=$ac_try;;
3070esac
3071eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3072$as_echo "$ac_try_echo") >&5
3073  (eval "$ac_try") 2>&5
3074  ac_status=$?
3075  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076  (exit $ac_status); }; }; then
3077    cross_compiling=no
3078  else
3079    if test "$cross_compiling" = maybe; then
3080	cross_compiling=yes
3081    else
3082	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3083$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3084{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3085If you meant to cross compile, use \`--host'.
3086See \`config.log' for more details." >&5
3087$as_echo "$as_me: error: cannot run C compiled programs.
3088If you meant to cross compile, use \`--host'.
3089See \`config.log' for more details." >&2;}
3090   { (exit 1); exit 1; }; }; }
3091    fi
3092  fi
3093fi
3094{ $as_echo "$as_me:$LINENO: result: yes" >&5
3095$as_echo "yes" >&6; }
3096
3097rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3098ac_clean_files=$ac_clean_files_save
3099# Check that the compiler produces executables we can run.  If not, either
3100# the compiler is broken, or we cross compile.
3101{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3102$as_echo_n "checking whether we are cross compiling... " >&6; }
3103{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3104$as_echo "$cross_compiling" >&6; }
3105
3106{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3107$as_echo_n "checking for suffix of executables... " >&6; }
3108if { (ac_try="$ac_link"
3109case "(($ac_try" in
3110  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3111  *) ac_try_echo=$ac_try;;
3112esac
3113eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3114$as_echo "$ac_try_echo") >&5
3115  (eval "$ac_link") 2>&5
3116  ac_status=$?
3117  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118  (exit $ac_status); }; then
3119  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3120# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3121# work properly (i.e., refer to `conftest.exe'), while it won't with
3122# `rm'.
3123for ac_file in conftest.exe conftest conftest.*; do
3124  test -f "$ac_file" || continue
3125  case $ac_file in
3126    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3127    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3128	  break;;
3129    * ) break;;
3130  esac
3131done
3132else
3133  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3134$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3135{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3136See \`config.log' for more details." >&5
3137$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3138See \`config.log' for more details." >&2;}
3139   { (exit 1); exit 1; }; }; }
3140fi
3141
3142rm -f conftest$ac_cv_exeext
3143{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3144$as_echo "$ac_cv_exeext" >&6; }
3145
3146rm -f conftest.$ac_ext
3147EXEEXT=$ac_cv_exeext
3148ac_exeext=$EXEEXT
3149{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3150$as_echo_n "checking for suffix of object files... " >&6; }
3151if test "${ac_cv_objext+set}" = set; then
3152  $as_echo_n "(cached) " >&6
3153else
3154  cat >conftest.$ac_ext <<_ACEOF
3155/* confdefs.h.  */
3156_ACEOF
3157cat confdefs.h >>conftest.$ac_ext
3158cat >>conftest.$ac_ext <<_ACEOF
3159/* end confdefs.h.  */
3160
3161int
3162main ()
3163{
3164
3165  ;
3166  return 0;
3167}
3168_ACEOF
3169rm -f conftest.o conftest.obj
3170if { (ac_try="$ac_compile"
3171case "(($ac_try" in
3172  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3173  *) ac_try_echo=$ac_try;;
3174esac
3175eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3176$as_echo "$ac_try_echo") >&5
3177  (eval "$ac_compile") 2>&5
3178  ac_status=$?
3179  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180  (exit $ac_status); }; then
3181  for ac_file in conftest.o conftest.obj conftest.*; do
3182  test -f "$ac_file" || continue;
3183  case $ac_file in
3184    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3185    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3186       break;;
3187  esac
3188done
3189else
3190  $as_echo "$as_me: failed program was:" >&5
3191sed 's/^/| /' conftest.$ac_ext >&5
3192
3193{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3194$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3195{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3196See \`config.log' for more details." >&5
3197$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3198See \`config.log' for more details." >&2;}
3199   { (exit 1); exit 1; }; }; }
3200fi
3201
3202rm -f conftest.$ac_cv_objext conftest.$ac_ext
3203fi
3204{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3205$as_echo "$ac_cv_objext" >&6; }
3206OBJEXT=$ac_cv_objext
3207ac_objext=$OBJEXT
3208{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3209$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3210if test "${ac_cv_c_compiler_gnu+set}" = set; then
3211  $as_echo_n "(cached) " >&6
3212else
3213  cat >conftest.$ac_ext <<_ACEOF
3214/* confdefs.h.  */
3215_ACEOF
3216cat confdefs.h >>conftest.$ac_ext
3217cat >>conftest.$ac_ext <<_ACEOF
3218/* end confdefs.h.  */
3219
3220int
3221main ()
3222{
3223#ifndef __GNUC__
3224       choke me
3225#endif
3226
3227  ;
3228  return 0;
3229}
3230_ACEOF
3231rm -f conftest.$ac_objext
3232if { (ac_try="$ac_compile"
3233case "(($ac_try" in
3234  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3235  *) ac_try_echo=$ac_try;;
3236esac
3237eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3238$as_echo "$ac_try_echo") >&5
3239  (eval "$ac_compile") 2>conftest.er1
3240  ac_status=$?
3241  grep -v '^ *+' conftest.er1 >conftest.err
3242  rm -f conftest.er1
3243  cat conftest.err >&5
3244  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3245  (exit $ac_status); } && {
3246	 test -z "$ac_c_werror_flag" ||
3247	 test ! -s conftest.err
3248       } && test -s conftest.$ac_objext; then
3249  ac_compiler_gnu=yes
3250else
3251  $as_echo "$as_me: failed program was:" >&5
3252sed 's/^/| /' conftest.$ac_ext >&5
3253
3254	ac_compiler_gnu=no
3255fi
3256
3257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3258ac_cv_c_compiler_gnu=$ac_compiler_gnu
3259
3260fi
3261{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3262$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3263if test $ac_compiler_gnu = yes; then
3264  GCC=yes
3265else
3266  GCC=
3267fi
3268ac_test_CFLAGS=${CFLAGS+set}
3269ac_save_CFLAGS=$CFLAGS
3270{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3271$as_echo_n "checking whether $CC accepts -g... " >&6; }
3272if test "${ac_cv_prog_cc_g+set}" = set; then
3273  $as_echo_n "(cached) " >&6
3274else
3275  ac_save_c_werror_flag=$ac_c_werror_flag
3276   ac_c_werror_flag=yes
3277   ac_cv_prog_cc_g=no
3278   CFLAGS="-g"
3279   cat >conftest.$ac_ext <<_ACEOF
3280/* confdefs.h.  */
3281_ACEOF
3282cat confdefs.h >>conftest.$ac_ext
3283cat >>conftest.$ac_ext <<_ACEOF
3284/* end confdefs.h.  */
3285
3286int
3287main ()
3288{
3289
3290  ;
3291  return 0;
3292}
3293_ACEOF
3294rm -f conftest.$ac_objext
3295if { (ac_try="$ac_compile"
3296case "(($ac_try" in
3297  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3298  *) ac_try_echo=$ac_try;;
3299esac
3300eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3301$as_echo "$ac_try_echo") >&5
3302  (eval "$ac_compile") 2>conftest.er1
3303  ac_status=$?
3304  grep -v '^ *+' conftest.er1 >conftest.err
3305  rm -f conftest.er1
3306  cat conftest.err >&5
3307  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308  (exit $ac_status); } && {
3309	 test -z "$ac_c_werror_flag" ||
3310	 test ! -s conftest.err
3311       } && test -s conftest.$ac_objext; then
3312  ac_cv_prog_cc_g=yes
3313else
3314  $as_echo "$as_me: failed program was:" >&5
3315sed 's/^/| /' conftest.$ac_ext >&5
3316
3317	CFLAGS=""
3318      cat >conftest.$ac_ext <<_ACEOF
3319/* confdefs.h.  */
3320_ACEOF
3321cat confdefs.h >>conftest.$ac_ext
3322cat >>conftest.$ac_ext <<_ACEOF
3323/* end confdefs.h.  */
3324
3325int
3326main ()
3327{
3328
3329  ;
3330  return 0;
3331}
3332_ACEOF
3333rm -f conftest.$ac_objext
3334if { (ac_try="$ac_compile"
3335case "(($ac_try" in
3336  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3337  *) ac_try_echo=$ac_try;;
3338esac
3339eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3340$as_echo "$ac_try_echo") >&5
3341  (eval "$ac_compile") 2>conftest.er1
3342  ac_status=$?
3343  grep -v '^ *+' conftest.er1 >conftest.err
3344  rm -f conftest.er1
3345  cat conftest.err >&5
3346  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347  (exit $ac_status); } && {
3348	 test -z "$ac_c_werror_flag" ||
3349	 test ! -s conftest.err
3350       } && test -s conftest.$ac_objext; then
3351  :
3352else
3353  $as_echo "$as_me: failed program was:" >&5
3354sed 's/^/| /' conftest.$ac_ext >&5
3355
3356	ac_c_werror_flag=$ac_save_c_werror_flag
3357	 CFLAGS="-g"
3358	 cat >conftest.$ac_ext <<_ACEOF
3359/* confdefs.h.  */
3360_ACEOF
3361cat confdefs.h >>conftest.$ac_ext
3362cat >>conftest.$ac_ext <<_ACEOF
3363/* end confdefs.h.  */
3364
3365int
3366main ()
3367{
3368
3369  ;
3370  return 0;
3371}
3372_ACEOF
3373rm -f conftest.$ac_objext
3374if { (ac_try="$ac_compile"
3375case "(($ac_try" in
3376  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377  *) ac_try_echo=$ac_try;;
3378esac
3379eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3380$as_echo "$ac_try_echo") >&5
3381  (eval "$ac_compile") 2>conftest.er1
3382  ac_status=$?
3383  grep -v '^ *+' conftest.er1 >conftest.err
3384  rm -f conftest.er1
3385  cat conftest.err >&5
3386  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387  (exit $ac_status); } && {
3388	 test -z "$ac_c_werror_flag" ||
3389	 test ! -s conftest.err
3390       } && test -s conftest.$ac_objext; then
3391  ac_cv_prog_cc_g=yes
3392else
3393  $as_echo "$as_me: failed program was:" >&5
3394sed 's/^/| /' conftest.$ac_ext >&5
3395
3396
3397fi
3398
3399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3400fi
3401
3402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3403fi
3404
3405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3406   ac_c_werror_flag=$ac_save_c_werror_flag
3407fi
3408{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3409$as_echo "$ac_cv_prog_cc_g" >&6; }
3410if test "$ac_test_CFLAGS" = set; then
3411  CFLAGS=$ac_save_CFLAGS
3412elif test $ac_cv_prog_cc_g = yes; then
3413  if test "$GCC" = yes; then
3414    CFLAGS="-g -O2"
3415  else
3416    CFLAGS="-g"
3417  fi
3418else
3419  if test "$GCC" = yes; then
3420    CFLAGS="-O2"
3421  else
3422    CFLAGS=
3423  fi
3424fi
3425{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3426$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3427if test "${ac_cv_prog_cc_c89+set}" = set; then
3428  $as_echo_n "(cached) " >&6
3429else
3430  ac_cv_prog_cc_c89=no
3431ac_save_CC=$CC
3432cat >conftest.$ac_ext <<_ACEOF
3433/* confdefs.h.  */
3434_ACEOF
3435cat confdefs.h >>conftest.$ac_ext
3436cat >>conftest.$ac_ext <<_ACEOF
3437/* end confdefs.h.  */
3438#include <stdarg.h>
3439#include <stdio.h>
3440#include <sys/types.h>
3441#include <sys/stat.h>
3442/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3443struct buf { int x; };
3444FILE * (*rcsopen) (struct buf *, struct stat *, int);
3445static char *e (p, i)
3446     char **p;
3447     int i;
3448{
3449  return p[i];
3450}
3451static char *f (char * (*g) (char **, int), char **p, ...)
3452{
3453  char *s;
3454  va_list v;
3455  va_start (v,p);
3456  s = g (p, va_arg (v,int));
3457  va_end (v);
3458  return s;
3459}
3460
3461/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3462   function prototypes and stuff, but not '\xHH' hex character constants.
3463   These don't provoke an error unfortunately, instead are silently treated
3464   as 'x'.  The following induces an error, until -std is added to get
3465   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3466   array size at least.  It's necessary to write '\x00'==0 to get something
3467   that's true only with -std.  */
3468int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3469
3470/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3471   inside strings and character constants.  */
3472#define FOO(x) 'x'
3473int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3474
3475int test (int i, double x);
3476struct s1 {int (*f) (int a);};
3477struct s2 {int (*f) (double a);};
3478int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3479int argc;
3480char **argv;
3481int
3482main ()
3483{
3484return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3485  ;
3486  return 0;
3487}
3488_ACEOF
3489for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3490	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3491do
3492  CC="$ac_save_CC $ac_arg"
3493  rm -f conftest.$ac_objext
3494if { (ac_try="$ac_compile"
3495case "(($ac_try" in
3496  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3497  *) ac_try_echo=$ac_try;;
3498esac
3499eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3500$as_echo "$ac_try_echo") >&5
3501  (eval "$ac_compile") 2>conftest.er1
3502  ac_status=$?
3503  grep -v '^ *+' conftest.er1 >conftest.err
3504  rm -f conftest.er1
3505  cat conftest.err >&5
3506  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507  (exit $ac_status); } && {
3508	 test -z "$ac_c_werror_flag" ||
3509	 test ! -s conftest.err
3510       } && test -s conftest.$ac_objext; then
3511  ac_cv_prog_cc_c89=$ac_arg
3512else
3513  $as_echo "$as_me: failed program was:" >&5
3514sed 's/^/| /' conftest.$ac_ext >&5
3515
3516
3517fi
3518
3519rm -f core conftest.err conftest.$ac_objext
3520  test "x$ac_cv_prog_cc_c89" != "xno" && break
3521done
3522rm -f conftest.$ac_ext
3523CC=$ac_save_CC
3524
3525fi
3526# AC_CACHE_VAL
3527case "x$ac_cv_prog_cc_c89" in
3528  x)
3529    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3530$as_echo "none needed" >&6; } ;;
3531  xno)
3532    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3533$as_echo "unsupported" >&6; } ;;
3534  *)
3535    CC="$CC $ac_cv_prog_cc_c89"
3536    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3537$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3538esac
3539
3540
3541ac_ext=c
3542ac_cpp='$CPP $CPPFLAGS'
3543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3545ac_compiler_gnu=$ac_cv_c_compiler_gnu
3546DEPDIR="${am__leading_dot}deps"
3547
3548ac_config_commands="$ac_config_commands depfiles"
3549
3550
3551am_make=${MAKE-make}
3552cat > confinc << 'END'
3553am__doit:
3554	@echo done
3555.PHONY: am__doit
3556END
3557# If we don't find an include directive, just comment out the code.
3558{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3559$as_echo_n "checking for style of include used by $am_make... " >&6; }
3560am__include="#"
3561am__quote=
3562_am_result=none
3563# First try GNU make style include.
3564echo "include confinc" > confmf
3565# We grep out `Entering directory' and `Leaving directory'
3566# messages which can occur if `w' ends up in MAKEFLAGS.
3567# In particular we don't look at `^make:' because GNU make might
3568# be invoked under some other name (usually "gmake"), in which
3569# case it prints its new name instead of `make'.
3570if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3571   am__include=include
3572   am__quote=
3573   _am_result=GNU
3574fi
3575# Now try BSD make style include.
3576if test "$am__include" = "#"; then
3577   echo '.include "confinc"' > confmf
3578   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3579      am__include=.include
3580      am__quote="\""
3581      _am_result=BSD
3582   fi
3583fi
3584
3585
3586{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3587$as_echo "$_am_result" >&6; }
3588rm -f confinc confmf
3589
3590# Check whether --enable-dependency-tracking was given.
3591if test "${enable_dependency_tracking+set}" = set; then
3592  enableval=$enable_dependency_tracking;
3593fi
3594
3595if test "x$enable_dependency_tracking" != xno; then
3596  am_depcomp="$ac_aux_dir/depcomp"
3597  AMDEPBACKSLASH='\'
3598fi
3599 if test "x$enable_dependency_tracking" != xno; then
3600  AMDEP_TRUE=
3601  AMDEP_FALSE='#'
3602else
3603  AMDEP_TRUE='#'
3604  AMDEP_FALSE=
3605fi
3606
3607
3608
3609depcc="$CC"   am_compiler_list=
3610
3611{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3612$as_echo_n "checking dependency style of $depcc... " >&6; }
3613if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3614  $as_echo_n "(cached) " >&6
3615else
3616  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3617  # We make a subdir and do the tests there.  Otherwise we can end up
3618  # making bogus files that we don't know about and never remove.  For
3619  # instance it was reported that on HP-UX the gcc test will end up
3620  # making a dummy file named `D' -- because `-MD' means `put the output
3621  # in D'.
3622  mkdir conftest.dir
3623  # Copy depcomp to subdir because otherwise we won't find it if we're
3624  # using a relative directory.
3625  cp "$am_depcomp" conftest.dir
3626  cd conftest.dir
3627  # We will build objects and dependencies in a subdirectory because
3628  # it helps to detect inapplicable dependency modes.  For instance
3629  # both Tru64's cc and ICC support -MD to output dependencies as a
3630  # side effect of compilation, but ICC will put the dependencies in
3631  # the current directory while Tru64 will put them in the object
3632  # directory.
3633  mkdir sub
3634
3635  am_cv_CC_dependencies_compiler_type=none
3636  if test "$am_compiler_list" = ""; then
3637     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3638  fi
3639  am__universal=false
3640  case " $depcc " in #(
3641     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3642     esac
3643
3644  for depmode in $am_compiler_list; do
3645    # Setup a source with many dependencies, because some compilers
3646    # like to wrap large dependency lists on column 80 (with \), and
3647    # we should not choose a depcomp mode which is confused by this.
3648    #
3649    # We need to recreate these files for each test, as the compiler may
3650    # overwrite some of them when testing with obscure command lines.
3651    # This happens at least with the AIX C compiler.
3652    : > sub/conftest.c
3653    for i in 1 2 3 4 5 6; do
3654      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3655      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3656      # Solaris 8's {/usr,}/bin/sh.
3657      touch sub/conftst$i.h
3658    done
3659    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3660
3661    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3662    # mode.  It turns out that the SunPro C++ compiler does not properly
3663    # handle `-M -o', and we need to detect this.  Also, some Intel
3664    # versions had trouble with output in subdirs
3665    am__obj=sub/conftest.${OBJEXT-o}
3666    am__minus_obj="-o $am__obj"
3667    case $depmode in
3668    gcc)
3669      # This depmode causes a compiler race in universal mode.
3670      test "$am__universal" = false || continue
3671      ;;
3672    nosideeffect)
3673      # after this tag, mechanisms are not by side-effect, so they'll
3674      # only be used when explicitly requested
3675      if test "x$enable_dependency_tracking" = xyes; then
3676	continue
3677      else
3678	break
3679      fi
3680      ;;
3681    msvisualcpp | msvcmsys)
3682      # This compiler won't grok `-c -o', but also, the minuso test has
3683      # not run yet.  These depmodes are late enough in the game, and
3684      # so weak that their functioning should not be impacted.
3685      am__obj=conftest.${OBJEXT-o}
3686      am__minus_obj=
3687      ;;
3688    none) break ;;
3689    esac
3690    if depmode=$depmode \
3691       source=sub/conftest.c object=$am__obj \
3692       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3693       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3694         >/dev/null 2>conftest.err &&
3695       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3696       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3697       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3698       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3699      # icc doesn't choke on unknown options, it will just issue warnings
3700      # or remarks (even with -Werror).  So we grep stderr for any message
3701      # that says an option was ignored or not supported.
3702      # When given -MP, icc 7.0 and 7.1 complain thusly:
3703      #   icc: Command line warning: ignoring option '-M'; no argument required
3704      # The diagnosis changed in icc 8.0:
3705      #   icc: Command line remark: option '-MP' not supported
3706      if (grep 'ignoring option' conftest.err ||
3707          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3708        am_cv_CC_dependencies_compiler_type=$depmode
3709        break
3710      fi
3711    fi
3712  done
3713
3714  cd ..
3715  rm -rf conftest.dir
3716else
3717  am_cv_CC_dependencies_compiler_type=none
3718fi
3719
3720fi
3721{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3722$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3723CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3724
3725 if
3726  test "x$enable_dependency_tracking" != xno \
3727  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3728  am__fastdepCC_TRUE=
3729  am__fastdepCC_FALSE='#'
3730else
3731  am__fastdepCC_TRUE='#'
3732  am__fastdepCC_FALSE=
3733fi
3734
3735
3736ac_ext=cpp
3737ac_cpp='$CXXCPP $CPPFLAGS'
3738ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3739ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3740ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3741if test -z "$CXX"; then
3742  if test -n "$CCC"; then
3743    CXX=$CCC
3744  else
3745    if test -n "$ac_tool_prefix"; then
3746  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3747  do
3748    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3749set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3750{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3751$as_echo_n "checking for $ac_word... " >&6; }
3752if test "${ac_cv_prog_CXX+set}" = set; then
3753  $as_echo_n "(cached) " >&6
3754else
3755  if test -n "$CXX"; then
3756  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3757else
3758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3759for as_dir in $PATH
3760do
3761  IFS=$as_save_IFS
3762  test -z "$as_dir" && as_dir=.
3763  for ac_exec_ext in '' $ac_executable_extensions; do
3764  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3765    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3766    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3767    break 2
3768  fi
3769done
3770done
3771IFS=$as_save_IFS
3772
3773fi
3774fi
3775CXX=$ac_cv_prog_CXX
3776if test -n "$CXX"; then
3777  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
3778$as_echo "$CXX" >&6; }
3779else
3780  { $as_echo "$as_me:$LINENO: result: no" >&5
3781$as_echo "no" >&6; }
3782fi
3783
3784
3785    test -n "$CXX" && break
3786  done
3787fi
3788if test -z "$CXX"; then
3789  ac_ct_CXX=$CXX
3790  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3791do
3792  # Extract the first word of "$ac_prog", so it can be a program name with args.
3793set dummy $ac_prog; ac_word=$2
3794{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3795$as_echo_n "checking for $ac_word... " >&6; }
3796if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3797  $as_echo_n "(cached) " >&6
3798else
3799  if test -n "$ac_ct_CXX"; then
3800  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3801else
3802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3803for as_dir in $PATH
3804do
3805  IFS=$as_save_IFS
3806  test -z "$as_dir" && as_dir=.
3807  for ac_exec_ext in '' $ac_executable_extensions; do
3808  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3809    ac_cv_prog_ac_ct_CXX="$ac_prog"
3810    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3811    break 2
3812  fi
3813done
3814done
3815IFS=$as_save_IFS
3816
3817fi
3818fi
3819ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3820if test -n "$ac_ct_CXX"; then
3821  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3822$as_echo "$ac_ct_CXX" >&6; }
3823else
3824  { $as_echo "$as_me:$LINENO: result: no" >&5
3825$as_echo "no" >&6; }
3826fi
3827
3828
3829  test -n "$ac_ct_CXX" && break
3830done
3831
3832  if test "x$ac_ct_CXX" = x; then
3833    CXX="g++"
3834  else
3835    case $cross_compiling:$ac_tool_warned in
3836yes:)
3837{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3838$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3839ac_tool_warned=yes ;;
3840esac
3841    CXX=$ac_ct_CXX
3842  fi
3843fi
3844
3845  fi
3846fi
3847# Provide some information about the compiler.
3848$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3849set X $ac_compile
3850ac_compiler=$2
3851{ (ac_try="$ac_compiler --version >&5"
3852case "(($ac_try" in
3853  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854  *) ac_try_echo=$ac_try;;
3855esac
3856eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3857$as_echo "$ac_try_echo") >&5
3858  (eval "$ac_compiler --version >&5") 2>&5
3859  ac_status=$?
3860  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861  (exit $ac_status); }
3862{ (ac_try="$ac_compiler -v >&5"
3863case "(($ac_try" in
3864  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3865  *) ac_try_echo=$ac_try;;
3866esac
3867eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3868$as_echo "$ac_try_echo") >&5
3869  (eval "$ac_compiler -v >&5") 2>&5
3870  ac_status=$?
3871  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872  (exit $ac_status); }
3873{ (ac_try="$ac_compiler -V >&5"
3874case "(($ac_try" in
3875  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3876  *) ac_try_echo=$ac_try;;
3877esac
3878eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3879$as_echo "$ac_try_echo") >&5
3880  (eval "$ac_compiler -V >&5") 2>&5
3881  ac_status=$?
3882  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883  (exit $ac_status); }
3884
3885{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3886$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3887if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3888  $as_echo_n "(cached) " >&6
3889else
3890  cat >conftest.$ac_ext <<_ACEOF
3891/* confdefs.h.  */
3892_ACEOF
3893cat confdefs.h >>conftest.$ac_ext
3894cat >>conftest.$ac_ext <<_ACEOF
3895/* end confdefs.h.  */
3896
3897int
3898main ()
3899{
3900#ifndef __GNUC__
3901       choke me
3902#endif
3903
3904  ;
3905  return 0;
3906}
3907_ACEOF
3908rm -f conftest.$ac_objext
3909if { (ac_try="$ac_compile"
3910case "(($ac_try" in
3911  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3912  *) ac_try_echo=$ac_try;;
3913esac
3914eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3915$as_echo "$ac_try_echo") >&5
3916  (eval "$ac_compile") 2>conftest.er1
3917  ac_status=$?
3918  grep -v '^ *+' conftest.er1 >conftest.err
3919  rm -f conftest.er1
3920  cat conftest.err >&5
3921  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922  (exit $ac_status); } && {
3923	 test -z "$ac_cxx_werror_flag" ||
3924	 test ! -s conftest.err
3925       } && test -s conftest.$ac_objext; then
3926  ac_compiler_gnu=yes
3927else
3928  $as_echo "$as_me: failed program was:" >&5
3929sed 's/^/| /' conftest.$ac_ext >&5
3930
3931	ac_compiler_gnu=no
3932fi
3933
3934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3935ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3936
3937fi
3938{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3939$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3940if test $ac_compiler_gnu = yes; then
3941  GXX=yes
3942else
3943  GXX=
3944fi
3945ac_test_CXXFLAGS=${CXXFLAGS+set}
3946ac_save_CXXFLAGS=$CXXFLAGS
3947{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3948$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3949if test "${ac_cv_prog_cxx_g+set}" = set; then
3950  $as_echo_n "(cached) " >&6
3951else
3952  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3953   ac_cxx_werror_flag=yes
3954   ac_cv_prog_cxx_g=no
3955   CXXFLAGS="-g"
3956   cat >conftest.$ac_ext <<_ACEOF
3957/* confdefs.h.  */
3958_ACEOF
3959cat confdefs.h >>conftest.$ac_ext
3960cat >>conftest.$ac_ext <<_ACEOF
3961/* end confdefs.h.  */
3962
3963int
3964main ()
3965{
3966
3967  ;
3968  return 0;
3969}
3970_ACEOF
3971rm -f conftest.$ac_objext
3972if { (ac_try="$ac_compile"
3973case "(($ac_try" in
3974  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3975  *) ac_try_echo=$ac_try;;
3976esac
3977eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3978$as_echo "$ac_try_echo") >&5
3979  (eval "$ac_compile") 2>conftest.er1
3980  ac_status=$?
3981  grep -v '^ *+' conftest.er1 >conftest.err
3982  rm -f conftest.er1
3983  cat conftest.err >&5
3984  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985  (exit $ac_status); } && {
3986	 test -z "$ac_cxx_werror_flag" ||
3987	 test ! -s conftest.err
3988       } && test -s conftest.$ac_objext; then
3989  ac_cv_prog_cxx_g=yes
3990else
3991  $as_echo "$as_me: failed program was:" >&5
3992sed 's/^/| /' conftest.$ac_ext >&5
3993
3994	CXXFLAGS=""
3995      cat >conftest.$ac_ext <<_ACEOF
3996/* confdefs.h.  */
3997_ACEOF
3998cat confdefs.h >>conftest.$ac_ext
3999cat >>conftest.$ac_ext <<_ACEOF
4000/* end confdefs.h.  */
4001
4002int
4003main ()
4004{
4005
4006  ;
4007  return 0;
4008}
4009_ACEOF
4010rm -f conftest.$ac_objext
4011if { (ac_try="$ac_compile"
4012case "(($ac_try" in
4013  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4014  *) ac_try_echo=$ac_try;;
4015esac
4016eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4017$as_echo "$ac_try_echo") >&5
4018  (eval "$ac_compile") 2>conftest.er1
4019  ac_status=$?
4020  grep -v '^ *+' conftest.er1 >conftest.err
4021  rm -f conftest.er1
4022  cat conftest.err >&5
4023  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024  (exit $ac_status); } && {
4025	 test -z "$ac_cxx_werror_flag" ||
4026	 test ! -s conftest.err
4027       } && test -s conftest.$ac_objext; then
4028  :
4029else
4030  $as_echo "$as_me: failed program was:" >&5
4031sed 's/^/| /' conftest.$ac_ext >&5
4032
4033	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4034	 CXXFLAGS="-g"
4035	 cat >conftest.$ac_ext <<_ACEOF
4036/* confdefs.h.  */
4037_ACEOF
4038cat confdefs.h >>conftest.$ac_ext
4039cat >>conftest.$ac_ext <<_ACEOF
4040/* end confdefs.h.  */
4041
4042int
4043main ()
4044{
4045
4046  ;
4047  return 0;
4048}
4049_ACEOF
4050rm -f conftest.$ac_objext
4051if { (ac_try="$ac_compile"
4052case "(($ac_try" in
4053  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4054  *) ac_try_echo=$ac_try;;
4055esac
4056eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4057$as_echo "$ac_try_echo") >&5
4058  (eval "$ac_compile") 2>conftest.er1
4059  ac_status=$?
4060  grep -v '^ *+' conftest.er1 >conftest.err
4061  rm -f conftest.er1
4062  cat conftest.err >&5
4063  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064  (exit $ac_status); } && {
4065	 test -z "$ac_cxx_werror_flag" ||
4066	 test ! -s conftest.err
4067       } && test -s conftest.$ac_objext; then
4068  ac_cv_prog_cxx_g=yes
4069else
4070  $as_echo "$as_me: failed program was:" >&5
4071sed 's/^/| /' conftest.$ac_ext >&5
4072
4073
4074fi
4075
4076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4077fi
4078
4079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4080fi
4081
4082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4083   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4084fi
4085{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4086$as_echo "$ac_cv_prog_cxx_g" >&6; }
4087if test "$ac_test_CXXFLAGS" = set; then
4088  CXXFLAGS=$ac_save_CXXFLAGS
4089elif test $ac_cv_prog_cxx_g = yes; then
4090  if test "$GXX" = yes; then
4091    CXXFLAGS="-g -O2"
4092  else
4093    CXXFLAGS="-g"
4094  fi
4095else
4096  if test "$GXX" = yes; then
4097    CXXFLAGS="-O2"
4098  else
4099    CXXFLAGS=
4100  fi
4101fi
4102ac_ext=c
4103ac_cpp='$CPP $CPPFLAGS'
4104ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4105ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4106ac_compiler_gnu=$ac_cv_c_compiler_gnu
4107
4108depcc="$CXX"  am_compiler_list=
4109
4110{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4111$as_echo_n "checking dependency style of $depcc... " >&6; }
4112if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4113  $as_echo_n "(cached) " >&6
4114else
4115  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4116  # We make a subdir and do the tests there.  Otherwise we can end up
4117  # making bogus files that we don't know about and never remove.  For
4118  # instance it was reported that on HP-UX the gcc test will end up
4119  # making a dummy file named `D' -- because `-MD' means `put the output
4120  # in D'.
4121  mkdir conftest.dir
4122  # Copy depcomp to subdir because otherwise we won't find it if we're
4123  # using a relative directory.
4124  cp "$am_depcomp" conftest.dir
4125  cd conftest.dir
4126  # We will build objects and dependencies in a subdirectory because
4127  # it helps to detect inapplicable dependency modes.  For instance
4128  # both Tru64's cc and ICC support -MD to output dependencies as a
4129  # side effect of compilation, but ICC will put the dependencies in
4130  # the current directory while Tru64 will put them in the object
4131  # directory.
4132  mkdir sub
4133
4134  am_cv_CXX_dependencies_compiler_type=none
4135  if test "$am_compiler_list" = ""; then
4136     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4137  fi
4138  am__universal=false
4139  case " $depcc " in #(
4140     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4141     esac
4142
4143  for depmode in $am_compiler_list; do
4144    # Setup a source with many dependencies, because some compilers
4145    # like to wrap large dependency lists on column 80 (with \), and
4146    # we should not choose a depcomp mode which is confused by this.
4147    #
4148    # We need to recreate these files for each test, as the compiler may
4149    # overwrite some of them when testing with obscure command lines.
4150    # This happens at least with the AIX C compiler.
4151    : > sub/conftest.c
4152    for i in 1 2 3 4 5 6; do
4153      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4154      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4155      # Solaris 8's {/usr,}/bin/sh.
4156      touch sub/conftst$i.h
4157    done
4158    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4159
4160    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4161    # mode.  It turns out that the SunPro C++ compiler does not properly
4162    # handle `-M -o', and we need to detect this.  Also, some Intel
4163    # versions had trouble with output in subdirs
4164    am__obj=sub/conftest.${OBJEXT-o}
4165    am__minus_obj="-o $am__obj"
4166    case $depmode in
4167    gcc)
4168      # This depmode causes a compiler race in universal mode.
4169      test "$am__universal" = false || continue
4170      ;;
4171    nosideeffect)
4172      # after this tag, mechanisms are not by side-effect, so they'll
4173      # only be used when explicitly requested
4174      if test "x$enable_dependency_tracking" = xyes; then
4175	continue
4176      else
4177	break
4178      fi
4179      ;;
4180    msvisualcpp | msvcmsys)
4181      # This compiler won't grok `-c -o', but also, the minuso test has
4182      # not run yet.  These depmodes are late enough in the game, and
4183      # so weak that their functioning should not be impacted.
4184      am__obj=conftest.${OBJEXT-o}
4185      am__minus_obj=
4186      ;;
4187    none) break ;;
4188    esac
4189    if depmode=$depmode \
4190       source=sub/conftest.c object=$am__obj \
4191       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4192       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4193         >/dev/null 2>conftest.err &&
4194       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4195       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4196       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4197       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4198      # icc doesn't choke on unknown options, it will just issue warnings
4199      # or remarks (even with -Werror).  So we grep stderr for any message
4200      # that says an option was ignored or not supported.
4201      # When given -MP, icc 7.0 and 7.1 complain thusly:
4202      #   icc: Command line warning: ignoring option '-M'; no argument required
4203      # The diagnosis changed in icc 8.0:
4204      #   icc: Command line remark: option '-MP' not supported
4205      if (grep 'ignoring option' conftest.err ||
4206          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4207        am_cv_CXX_dependencies_compiler_type=$depmode
4208        break
4209      fi
4210    fi
4211  done
4212
4213  cd ..
4214  rm -rf conftest.dir
4215else
4216  am_cv_CXX_dependencies_compiler_type=none
4217fi
4218
4219fi
4220{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4221$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4222CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4223
4224 if
4225  test "x$enable_dependency_tracking" != xno \
4226  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4227  am__fastdepCXX_TRUE=
4228  am__fastdepCXX_FALSE='#'
4229else
4230  am__fastdepCXX_TRUE='#'
4231  am__fastdepCXX_FALSE=
4232fi
4233
4234
4235
4236if test "x$remember_set_CFLAGS" = "x"
4237then
4238  if test "$CFLAGS" = "-g -O2"
4239  then
4240    CFLAGS="-O2"
4241  elif test "$CFLAGS" = "-g"
4242  then
4243    CFLAGS=""
4244  fi
4245fi
4246
4247if test "x$remember_set_CXXFLAGS" = "x"
4248then
4249  if test "$CXXFLAGS" = "-g -O2"
4250  then
4251    CXXFLAGS="-O2"
4252  elif test "$CXXFLAGS" = "-g"
4253  then
4254    CXXFLAGS=""
4255  fi
4256fi
4257
4258# AC_PROG_CXX will return "g++" even if no c++ compiler is installed.
4259# Check for that case, and just disable c++ code if g++ doesn't run.
4260ac_ext=cpp
4261ac_cpp='$CXXCPP $CPPFLAGS'
4262ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4263ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4264ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4265
4266
4267cat >conftest.$ac_ext <<_ACEOF
4268/* confdefs.h.  */
4269_ACEOF
4270cat confdefs.h >>conftest.$ac_ext
4271cat >>conftest.$ac_ext <<_ACEOF
4272/* end confdefs.h.  */
4273
4274int
4275main ()
4276{
4277
4278  ;
4279  return 0;
4280}
4281_ACEOF
4282rm -f conftest.$ac_objext
4283if { (ac_try="$ac_compile"
4284case "(($ac_try" in
4285  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4286  *) ac_try_echo=$ac_try;;
4287esac
4288eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4289$as_echo "$ac_try_echo") >&5
4290  (eval "$ac_compile") 2>conftest.er1
4291  ac_status=$?
4292  grep -v '^ *+' conftest.er1 >conftest.err
4293  rm -f conftest.er1
4294  cat conftest.err >&5
4295  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296  (exit $ac_status); } && {
4297	 test -z "$ac_cxx_werror_flag" ||
4298	 test ! -s conftest.err
4299       } && test -s conftest.$ac_objext; then
4300  :
4301else
4302  $as_echo "$as_me: failed program was:" >&5
4303sed 's/^/| /' conftest.$ac_ext >&5
4304
4305	CXX=""; CXXCP=""; CXXFLAGS=""
4306fi
4307
4308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4309ac_ext=c
4310ac_cpp='$CPP $CPPFLAGS'
4311ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4312ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4313ac_compiler_gnu=$ac_cv_c_compiler_gnu
4314
4315
4316# Check for a 64-bit integer type
4317
4318ac_ext=c
4319ac_cpp='$CPP $CPPFLAGS'
4320ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4321ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4322ac_compiler_gnu=$ac_cv_c_compiler_gnu
4323{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4324$as_echo_n "checking how to run the C preprocessor... " >&6; }
4325# On Suns, sometimes $CPP names a directory.
4326if test -n "$CPP" && test -d "$CPP"; then
4327  CPP=
4328fi
4329if test -z "$CPP"; then
4330  if test "${ac_cv_prog_CPP+set}" = set; then
4331  $as_echo_n "(cached) " >&6
4332else
4333      # Double quotes because CPP needs to be expanded
4334    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4335    do
4336      ac_preproc_ok=false
4337for ac_c_preproc_warn_flag in '' yes
4338do
4339  # Use a header file that comes with gcc, so configuring glibc
4340  # with a fresh cross-compiler works.
4341  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4342  # <limits.h> exists even on freestanding compilers.
4343  # On the NeXT, cc -E runs the code through the compiler's parser,
4344  # not just through cpp. "Syntax error" is here to catch this case.
4345  cat >conftest.$ac_ext <<_ACEOF
4346/* confdefs.h.  */
4347_ACEOF
4348cat confdefs.h >>conftest.$ac_ext
4349cat >>conftest.$ac_ext <<_ACEOF
4350/* end confdefs.h.  */
4351#ifdef __STDC__
4352# include <limits.h>
4353#else
4354# include <assert.h>
4355#endif
4356		     Syntax error
4357_ACEOF
4358if { (ac_try="$ac_cpp conftest.$ac_ext"
4359case "(($ac_try" in
4360  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4361  *) ac_try_echo=$ac_try;;
4362esac
4363eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4364$as_echo "$ac_try_echo") >&5
4365  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4366  ac_status=$?
4367  grep -v '^ *+' conftest.er1 >conftest.err
4368  rm -f conftest.er1
4369  cat conftest.err >&5
4370  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371  (exit $ac_status); } >/dev/null && {
4372	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4373	 test ! -s conftest.err
4374       }; then
4375  :
4376else
4377  $as_echo "$as_me: failed program was:" >&5
4378sed 's/^/| /' conftest.$ac_ext >&5
4379
4380  # Broken: fails on valid input.
4381continue
4382fi
4383
4384rm -f conftest.err conftest.$ac_ext
4385
4386  # OK, works on sane cases.  Now check whether nonexistent headers
4387  # can be detected and how.
4388  cat >conftest.$ac_ext <<_ACEOF
4389/* confdefs.h.  */
4390_ACEOF
4391cat confdefs.h >>conftest.$ac_ext
4392cat >>conftest.$ac_ext <<_ACEOF
4393/* end confdefs.h.  */
4394#include <ac_nonexistent.h>
4395_ACEOF
4396if { (ac_try="$ac_cpp conftest.$ac_ext"
4397case "(($ac_try" in
4398  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4399  *) ac_try_echo=$ac_try;;
4400esac
4401eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4402$as_echo "$ac_try_echo") >&5
4403  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4404  ac_status=$?
4405  grep -v '^ *+' conftest.er1 >conftest.err
4406  rm -f conftest.er1
4407  cat conftest.err >&5
4408  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409  (exit $ac_status); } >/dev/null && {
4410	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4411	 test ! -s conftest.err
4412       }; then
4413  # Broken: success on invalid input.
4414continue
4415else
4416  $as_echo "$as_me: failed program was:" >&5
4417sed 's/^/| /' conftest.$ac_ext >&5
4418
4419  # Passes both tests.
4420ac_preproc_ok=:
4421break
4422fi
4423
4424rm -f conftest.err conftest.$ac_ext
4425
4426done
4427# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4428rm -f conftest.err conftest.$ac_ext
4429if $ac_preproc_ok; then
4430  break
4431fi
4432
4433    done
4434    ac_cv_prog_CPP=$CPP
4435
4436fi
4437  CPP=$ac_cv_prog_CPP
4438else
4439  ac_cv_prog_CPP=$CPP
4440fi
4441{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
4442$as_echo "$CPP" >&6; }
4443ac_preproc_ok=false
4444for ac_c_preproc_warn_flag in '' yes
4445do
4446  # Use a header file that comes with gcc, so configuring glibc
4447  # with a fresh cross-compiler works.
4448  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4449  # <limits.h> exists even on freestanding compilers.
4450  # On the NeXT, cc -E runs the code through the compiler's parser,
4451  # not just through cpp. "Syntax error" is here to catch this case.
4452  cat >conftest.$ac_ext <<_ACEOF
4453/* confdefs.h.  */
4454_ACEOF
4455cat confdefs.h >>conftest.$ac_ext
4456cat >>conftest.$ac_ext <<_ACEOF
4457/* end confdefs.h.  */
4458#ifdef __STDC__
4459# include <limits.h>
4460#else
4461# include <assert.h>
4462#endif
4463		     Syntax error
4464_ACEOF
4465if { (ac_try="$ac_cpp conftest.$ac_ext"
4466case "(($ac_try" in
4467  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4468  *) ac_try_echo=$ac_try;;
4469esac
4470eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4471$as_echo "$ac_try_echo") >&5
4472  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4473  ac_status=$?
4474  grep -v '^ *+' conftest.er1 >conftest.err
4475  rm -f conftest.er1
4476  cat conftest.err >&5
4477  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478  (exit $ac_status); } >/dev/null && {
4479	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4480	 test ! -s conftest.err
4481       }; then
4482  :
4483else
4484  $as_echo "$as_me: failed program was:" >&5
4485sed 's/^/| /' conftest.$ac_ext >&5
4486
4487  # Broken: fails on valid input.
4488continue
4489fi
4490
4491rm -f conftest.err conftest.$ac_ext
4492
4493  # OK, works on sane cases.  Now check whether nonexistent headers
4494  # can be detected and how.
4495  cat >conftest.$ac_ext <<_ACEOF
4496/* confdefs.h.  */
4497_ACEOF
4498cat confdefs.h >>conftest.$ac_ext
4499cat >>conftest.$ac_ext <<_ACEOF
4500/* end confdefs.h.  */
4501#include <ac_nonexistent.h>
4502_ACEOF
4503if { (ac_try="$ac_cpp conftest.$ac_ext"
4504case "(($ac_try" in
4505  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4506  *) ac_try_echo=$ac_try;;
4507esac
4508eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4509$as_echo "$ac_try_echo") >&5
4510  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4511  ac_status=$?
4512  grep -v '^ *+' conftest.er1 >conftest.err
4513  rm -f conftest.er1
4514  cat conftest.err >&5
4515  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516  (exit $ac_status); } >/dev/null && {
4517	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4518	 test ! -s conftest.err
4519       }; then
4520  # Broken: success on invalid input.
4521continue
4522else
4523  $as_echo "$as_me: failed program was:" >&5
4524sed 's/^/| /' conftest.$ac_ext >&5
4525
4526  # Passes both tests.
4527ac_preproc_ok=:
4528break
4529fi
4530
4531rm -f conftest.err conftest.$ac_ext
4532
4533done
4534# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4535rm -f conftest.err conftest.$ac_ext
4536if $ac_preproc_ok; then
4537  :
4538else
4539  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4540$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4541{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4542See \`config.log' for more details." >&5
4543$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4544See \`config.log' for more details." >&2;}
4545   { (exit 1); exit 1; }; }; }
4546fi
4547
4548ac_ext=c
4549ac_cpp='$CPP $CPPFLAGS'
4550ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4551ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4552ac_compiler_gnu=$ac_cv_c_compiler_gnu
4553
4554
4555{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4556$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4557if test "${ac_cv_path_GREP+set}" = set; then
4558  $as_echo_n "(cached) " >&6
4559else
4560  if test -z "$GREP"; then
4561  ac_path_GREP_found=false
4562  # Loop through the user's path and test for each of PROGNAME-LIST
4563  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4565do
4566  IFS=$as_save_IFS
4567  test -z "$as_dir" && as_dir=.
4568  for ac_prog in grep ggrep; do
4569    for ac_exec_ext in '' $ac_executable_extensions; do
4570      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4571      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4572# Check for GNU ac_path_GREP and select it if it is found.
4573  # Check for GNU $ac_path_GREP
4574case `"$ac_path_GREP" --version 2>&1` in
4575*GNU*)
4576  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4577*)
4578  ac_count=0
4579  $as_echo_n 0123456789 >"conftest.in"
4580  while :
4581  do
4582    cat "conftest.in" "conftest.in" >"conftest.tmp"
4583    mv "conftest.tmp" "conftest.in"
4584    cp "conftest.in" "conftest.nl"
4585    $as_echo 'GREP' >> "conftest.nl"
4586    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4587    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4588    ac_count=`expr $ac_count + 1`
4589    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4590      # Best one so far, save it but keep looking for a better one
4591      ac_cv_path_GREP="$ac_path_GREP"
4592      ac_path_GREP_max=$ac_count
4593    fi
4594    # 10*(2^10) chars as input seems more than enough
4595    test $ac_count -gt 10 && break
4596  done
4597  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4598esac
4599
4600      $ac_path_GREP_found && break 3
4601    done
4602  done
4603done
4604IFS=$as_save_IFS
4605  if test -z "$ac_cv_path_GREP"; then
4606    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4607$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4608   { (exit 1); exit 1; }; }
4609  fi
4610else
4611  ac_cv_path_GREP=$GREP
4612fi
4613
4614fi
4615{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4616$as_echo "$ac_cv_path_GREP" >&6; }
4617 GREP="$ac_cv_path_GREP"
4618
4619
4620{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4621$as_echo_n "checking for egrep... " >&6; }
4622if test "${ac_cv_path_EGREP+set}" = set; then
4623  $as_echo_n "(cached) " >&6
4624else
4625  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4626   then ac_cv_path_EGREP="$GREP -E"
4627   else
4628     if test -z "$EGREP"; then
4629  ac_path_EGREP_found=false
4630  # Loop through the user's path and test for each of PROGNAME-LIST
4631  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4632for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4633do
4634  IFS=$as_save_IFS
4635  test -z "$as_dir" && as_dir=.
4636  for ac_prog in egrep; do
4637    for ac_exec_ext in '' $ac_executable_extensions; do
4638      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4639      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4640# Check for GNU ac_path_EGREP and select it if it is found.
4641  # Check for GNU $ac_path_EGREP
4642case `"$ac_path_EGREP" --version 2>&1` in
4643*GNU*)
4644  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4645*)
4646  ac_count=0
4647  $as_echo_n 0123456789 >"conftest.in"
4648  while :
4649  do
4650    cat "conftest.in" "conftest.in" >"conftest.tmp"
4651    mv "conftest.tmp" "conftest.in"
4652    cp "conftest.in" "conftest.nl"
4653    $as_echo 'EGREP' >> "conftest.nl"
4654    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4655    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4656    ac_count=`expr $ac_count + 1`
4657    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4658      # Best one so far, save it but keep looking for a better one
4659      ac_cv_path_EGREP="$ac_path_EGREP"
4660      ac_path_EGREP_max=$ac_count
4661    fi
4662    # 10*(2^10) chars as input seems more than enough
4663    test $ac_count -gt 10 && break
4664  done
4665  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4666esac
4667
4668      $ac_path_EGREP_found && break 3
4669    done
4670  done
4671done
4672IFS=$as_save_IFS
4673  if test -z "$ac_cv_path_EGREP"; then
4674    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4675$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4676   { (exit 1); exit 1; }; }
4677  fi
4678else
4679  ac_cv_path_EGREP=$EGREP
4680fi
4681
4682   fi
4683fi
4684{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4685$as_echo "$ac_cv_path_EGREP" >&6; }
4686 EGREP="$ac_cv_path_EGREP"
4687
4688
4689{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4690$as_echo_n "checking for ANSI C header files... " >&6; }
4691if test "${ac_cv_header_stdc+set}" = set; then
4692  $as_echo_n "(cached) " >&6
4693else
4694  cat >conftest.$ac_ext <<_ACEOF
4695/* confdefs.h.  */
4696_ACEOF
4697cat confdefs.h >>conftest.$ac_ext
4698cat >>conftest.$ac_ext <<_ACEOF
4699/* end confdefs.h.  */
4700#include <stdlib.h>
4701#include <stdarg.h>
4702#include <string.h>
4703#include <float.h>
4704
4705int
4706main ()
4707{
4708
4709  ;
4710  return 0;
4711}
4712_ACEOF
4713rm -f conftest.$ac_objext
4714if { (ac_try="$ac_compile"
4715case "(($ac_try" in
4716  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4717  *) ac_try_echo=$ac_try;;
4718esac
4719eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4720$as_echo "$ac_try_echo") >&5
4721  (eval "$ac_compile") 2>conftest.er1
4722  ac_status=$?
4723  grep -v '^ *+' conftest.er1 >conftest.err
4724  rm -f conftest.er1
4725  cat conftest.err >&5
4726  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727  (exit $ac_status); } && {
4728	 test -z "$ac_c_werror_flag" ||
4729	 test ! -s conftest.err
4730       } && test -s conftest.$ac_objext; then
4731  ac_cv_header_stdc=yes
4732else
4733  $as_echo "$as_me: failed program was:" >&5
4734sed 's/^/| /' conftest.$ac_ext >&5
4735
4736	ac_cv_header_stdc=no
4737fi
4738
4739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4740
4741if test $ac_cv_header_stdc = yes; then
4742  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4743  cat >conftest.$ac_ext <<_ACEOF
4744/* confdefs.h.  */
4745_ACEOF
4746cat confdefs.h >>conftest.$ac_ext
4747cat >>conftest.$ac_ext <<_ACEOF
4748/* end confdefs.h.  */
4749#include <string.h>
4750
4751_ACEOF
4752if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4753  $EGREP "memchr" >/dev/null 2>&1; then
4754  :
4755else
4756  ac_cv_header_stdc=no
4757fi
4758rm -f conftest*
4759
4760fi
4761
4762if test $ac_cv_header_stdc = yes; then
4763  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4764  cat >conftest.$ac_ext <<_ACEOF
4765/* confdefs.h.  */
4766_ACEOF
4767cat confdefs.h >>conftest.$ac_ext
4768cat >>conftest.$ac_ext <<_ACEOF
4769/* end confdefs.h.  */
4770#include <stdlib.h>
4771
4772_ACEOF
4773if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4774  $EGREP "free" >/dev/null 2>&1; then
4775  :
4776else
4777  ac_cv_header_stdc=no
4778fi
4779rm -f conftest*
4780
4781fi
4782
4783if test $ac_cv_header_stdc = yes; then
4784  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4785  if test "$cross_compiling" = yes; then
4786  :
4787else
4788  cat >conftest.$ac_ext <<_ACEOF
4789/* confdefs.h.  */
4790_ACEOF
4791cat confdefs.h >>conftest.$ac_ext
4792cat >>conftest.$ac_ext <<_ACEOF
4793/* end confdefs.h.  */
4794#include <ctype.h>
4795#include <stdlib.h>
4796#if ((' ' & 0x0FF) == 0x020)
4797# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4798# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4799#else
4800# define ISLOWER(c) \
4801		   (('a' <= (c) && (c) <= 'i') \
4802		     || ('j' <= (c) && (c) <= 'r') \
4803		     || ('s' <= (c) && (c) <= 'z'))
4804# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4805#endif
4806
4807#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4808int
4809main ()
4810{
4811  int i;
4812  for (i = 0; i < 256; i++)
4813    if (XOR (islower (i), ISLOWER (i))
4814	|| toupper (i) != TOUPPER (i))
4815      return 2;
4816  return 0;
4817}
4818_ACEOF
4819rm -f conftest$ac_exeext
4820if { (ac_try="$ac_link"
4821case "(($ac_try" in
4822  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4823  *) ac_try_echo=$ac_try;;
4824esac
4825eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4826$as_echo "$ac_try_echo") >&5
4827  (eval "$ac_link") 2>&5
4828  ac_status=$?
4829  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4831  { (case "(($ac_try" in
4832  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4833  *) ac_try_echo=$ac_try;;
4834esac
4835eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4836$as_echo "$ac_try_echo") >&5
4837  (eval "$ac_try") 2>&5
4838  ac_status=$?
4839  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840  (exit $ac_status); }; }; then
4841  :
4842else
4843  $as_echo "$as_me: program exited with status $ac_status" >&5
4844$as_echo "$as_me: failed program was:" >&5
4845sed 's/^/| /' conftest.$ac_ext >&5
4846
4847( exit $ac_status )
4848ac_cv_header_stdc=no
4849fi
4850rm -rf conftest.dSYM
4851rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4852fi
4853
4854
4855fi
4856fi
4857{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4858$as_echo "$ac_cv_header_stdc" >&6; }
4859if test $ac_cv_header_stdc = yes; then
4860
4861cat >>confdefs.h <<\_ACEOF
4862#define STDC_HEADERS 1
4863_ACEOF
4864
4865fi
4866
4867# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4878		  inttypes.h stdint.h unistd.h
4879do
4880as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4881{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4882$as_echo_n "checking for $ac_header... " >&6; }
4883if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4884  $as_echo_n "(cached) " >&6
4885else
4886  cat >conftest.$ac_ext <<_ACEOF
4887/* confdefs.h.  */
4888_ACEOF
4889cat confdefs.h >>conftest.$ac_ext
4890cat >>conftest.$ac_ext <<_ACEOF
4891/* end confdefs.h.  */
4892$ac_includes_default
4893
4894#include <$ac_header>
4895_ACEOF
4896rm -f conftest.$ac_objext
4897if { (ac_try="$ac_compile"
4898case "(($ac_try" in
4899  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4900  *) ac_try_echo=$ac_try;;
4901esac
4902eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4903$as_echo "$ac_try_echo") >&5
4904  (eval "$ac_compile") 2>conftest.er1
4905  ac_status=$?
4906  grep -v '^ *+' conftest.er1 >conftest.err
4907  rm -f conftest.er1
4908  cat conftest.err >&5
4909  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910  (exit $ac_status); } && {
4911	 test -z "$ac_c_werror_flag" ||
4912	 test ! -s conftest.err
4913       } && test -s conftest.$ac_objext; then
4914  eval "$as_ac_Header=yes"
4915else
4916  $as_echo "$as_me: failed program was:" >&5
4917sed 's/^/| /' conftest.$ac_ext >&5
4918
4919	eval "$as_ac_Header=no"
4920fi
4921
4922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4923fi
4924ac_res=`eval 'as_val=${'$as_ac_Header'}
4925		 $as_echo "$as_val"'`
4926	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4927$as_echo "$ac_res" >&6; }
4928as_val=`eval 'as_val=${'$as_ac_Header'}
4929		 $as_echo "$as_val"'`
4930   if test "x$as_val" = x""yes; then
4931  cat >>confdefs.h <<_ACEOF
4932#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4933_ACEOF
4934
4935fi
4936
4937done
4938
4939
4940
4941  { $as_echo "$as_me:$LINENO: checking for int64_t" >&5
4942$as_echo_n "checking for int64_t... " >&6; }
4943if test "${ac_cv_c_int64_t+set}" = set; then
4944  $as_echo_n "(cached) " >&6
4945else
4946  ac_cv_c_int64_t=no
4947     for ac_type in 'int64_t' 'int' 'long int' \
4948	 'long long int' 'short int' 'signed char'; do
4949       cat >conftest.$ac_ext <<_ACEOF
4950/* confdefs.h.  */
4951_ACEOF
4952cat confdefs.h >>conftest.$ac_ext
4953cat >>conftest.$ac_ext <<_ACEOF
4954/* end confdefs.h.  */
4955$ac_includes_default
4956int
4957main ()
4958{
4959static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
4960test_array [0] = 0
4961
4962  ;
4963  return 0;
4964}
4965_ACEOF
4966rm -f conftest.$ac_objext
4967if { (ac_try="$ac_compile"
4968case "(($ac_try" in
4969  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4970  *) ac_try_echo=$ac_try;;
4971esac
4972eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4973$as_echo "$ac_try_echo") >&5
4974  (eval "$ac_compile") 2>conftest.er1
4975  ac_status=$?
4976  grep -v '^ *+' conftest.er1 >conftest.err
4977  rm -f conftest.er1
4978  cat conftest.err >&5
4979  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980  (exit $ac_status); } && {
4981	 test -z "$ac_c_werror_flag" ||
4982	 test ! -s conftest.err
4983       } && test -s conftest.$ac_objext; then
4984  cat >conftest.$ac_ext <<_ACEOF
4985/* confdefs.h.  */
4986_ACEOF
4987cat confdefs.h >>conftest.$ac_ext
4988cat >>conftest.$ac_ext <<_ACEOF
4989/* end confdefs.h.  */
4990$ac_includes_default
4991int
4992main ()
4993{
4994static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
4995		 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
4996test_array [0] = 0
4997
4998  ;
4999  return 0;
5000}
5001_ACEOF
5002rm -f conftest.$ac_objext
5003if { (ac_try="$ac_compile"
5004case "(($ac_try" in
5005  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5006  *) ac_try_echo=$ac_try;;
5007esac
5008eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5009$as_echo "$ac_try_echo") >&5
5010  (eval "$ac_compile") 2>conftest.er1
5011  ac_status=$?
5012  grep -v '^ *+' conftest.er1 >conftest.err
5013  rm -f conftest.er1
5014  cat conftest.err >&5
5015  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016  (exit $ac_status); } && {
5017	 test -z "$ac_c_werror_flag" ||
5018	 test ! -s conftest.err
5019       } && test -s conftest.$ac_objext; then
5020  :
5021else
5022  $as_echo "$as_me: failed program was:" >&5
5023sed 's/^/| /' conftest.$ac_ext >&5
5024
5025	case $ac_type in
5026  int64_t) ac_cv_c_int64_t=yes ;;
5027  *) ac_cv_c_int64_t=$ac_type ;;
5028esac
5029
5030fi
5031
5032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5033else
5034  $as_echo "$as_me: failed program was:" >&5
5035sed 's/^/| /' conftest.$ac_ext >&5
5036
5037
5038fi
5039
5040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5041       test "$ac_cv_c_int64_t" != no && break
5042     done
5043fi
5044{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
5045$as_echo "$ac_cv_c_int64_t" >&6; }
5046  case $ac_cv_c_int64_t in #(
5047  no|yes) ;; #(
5048  *)
5049
5050cat >>confdefs.h <<_ACEOF
5051#define int64_t $ac_cv_c_int64_t
5052_ACEOF
5053;;
5054  esac
5055
5056
5057# Find a good install program.  We prefer a C program (faster),
5058# so one script is as good as another.  But avoid the broken or
5059# incompatible versions:
5060# SysV /etc/install, /usr/sbin/install
5061# SunOS /usr/etc/install
5062# IRIX /sbin/install
5063# AIX /bin/install
5064# AmigaOS /C/install, which installs bootblocks on floppy discs
5065# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5066# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5067# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5068# OS/2's system install, which has a completely different semantic
5069# ./install, which can be erroneously created by make from ./install.sh.
5070# Reject install programs that cannot install multiple files.
5071{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5072$as_echo_n "checking for a BSD-compatible install... " >&6; }
5073if test -z "$INSTALL"; then
5074if test "${ac_cv_path_install+set}" = set; then
5075  $as_echo_n "(cached) " >&6
5076else
5077  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5078for as_dir in $PATH
5079do
5080  IFS=$as_save_IFS
5081  test -z "$as_dir" && as_dir=.
5082  # Account for people who put trailing slashes in PATH elements.
5083case $as_dir/ in
5084  ./ | .// | /cC/* | \
5085  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5086  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5087  /usr/ucb/* ) ;;
5088  *)
5089    # OSF1 and SCO ODT 3.0 have their own names for install.
5090    # Don't use installbsd from OSF since it installs stuff as root
5091    # by default.
5092    for ac_prog in ginstall scoinst install; do
5093      for ac_exec_ext in '' $ac_executable_extensions; do
5094	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5095	  if test $ac_prog = install &&
5096	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5097	    # AIX install.  It has an incompatible calling convention.
5098	    :
5099	  elif test $ac_prog = install &&
5100	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5101	    # program-specific install script used by HP pwplus--don't use.
5102	    :
5103	  else
5104	    rm -rf conftest.one conftest.two conftest.dir
5105	    echo one > conftest.one
5106	    echo two > conftest.two
5107	    mkdir conftest.dir
5108	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5109	      test -s conftest.one && test -s conftest.two &&
5110	      test -s conftest.dir/conftest.one &&
5111	      test -s conftest.dir/conftest.two
5112	    then
5113	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5114	      break 3
5115	    fi
5116	  fi
5117	fi
5118      done
5119    done
5120    ;;
5121esac
5122
5123done
5124IFS=$as_save_IFS
5125
5126rm -rf conftest.one conftest.two conftest.dir
5127
5128fi
5129  if test "${ac_cv_path_install+set}" = set; then
5130    INSTALL=$ac_cv_path_install
5131  else
5132    # As a last resort, use the slow shell script.  Don't cache a
5133    # value for INSTALL within a source directory, because that will
5134    # break other packages using the cache if that directory is
5135    # removed, or if the value is a relative name.
5136    INSTALL=$ac_install_sh
5137  fi
5138fi
5139{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5140$as_echo "$INSTALL" >&6; }
5141
5142# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5143# It thinks the first close brace ends the variable substitution.
5144test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5145
5146test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5147
5148test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5149
5150# Make sure we can run config.sub.
5151$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5152  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5153$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5154   { (exit 1); exit 1; }; }
5155
5156{ $as_echo "$as_me:$LINENO: checking build system type" >&5
5157$as_echo_n "checking build system type... " >&6; }
5158if test "${ac_cv_build+set}" = set; then
5159  $as_echo_n "(cached) " >&6
5160else
5161  ac_build_alias=$build_alias
5162test "x$ac_build_alias" = x &&
5163  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5164test "x$ac_build_alias" = x &&
5165  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5166$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5167   { (exit 1); exit 1; }; }
5168ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5169  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5170$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5171   { (exit 1); exit 1; }; }
5172
5173fi
5174{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5175$as_echo "$ac_cv_build" >&6; }
5176case $ac_cv_build in
5177*-*-*) ;;
5178*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5179$as_echo "$as_me: error: invalid value of canonical build" >&2;}
5180   { (exit 1); exit 1; }; };;
5181esac
5182build=$ac_cv_build
5183ac_save_IFS=$IFS; IFS='-'
5184set x $ac_cv_build
5185shift
5186build_cpu=$1
5187build_vendor=$2
5188shift; shift
5189# Remember, the first character of IFS is used to create $*,
5190# except with old shells:
5191build_os=$*
5192IFS=$ac_save_IFS
5193case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5194
5195
5196{ $as_echo "$as_me:$LINENO: checking host system type" >&5
5197$as_echo_n "checking host system type... " >&6; }
5198if test "${ac_cv_host+set}" = set; then
5199  $as_echo_n "(cached) " >&6
5200else
5201  if test "x$host_alias" = x; then
5202  ac_cv_host=$ac_cv_build
5203else
5204  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5205    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5206$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5207   { (exit 1); exit 1; }; }
5208fi
5209
5210fi
5211{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5212$as_echo "$ac_cv_host" >&6; }
5213case $ac_cv_host in
5214*-*-*) ;;
5215*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5216$as_echo "$as_me: error: invalid value of canonical host" >&2;}
5217   { (exit 1); exit 1; }; };;
5218esac
5219host=$ac_cv_host
5220ac_save_IFS=$IFS; IFS='-'
5221set x $ac_cv_host
5222shift
5223host_cpu=$1
5224host_vendor=$2
5225shift; shift
5226# Remember, the first character of IFS is used to create $*,
5227# except with old shells:
5228host_os=$*
5229IFS=$ac_save_IFS
5230case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5231
5232
5233enable_win32_dll=yes
5234
5235case $host in
5236*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
5237  if test -n "$ac_tool_prefix"; then
5238  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5239set dummy ${ac_tool_prefix}as; ac_word=$2
5240{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5241$as_echo_n "checking for $ac_word... " >&6; }
5242if test "${ac_cv_prog_AS+set}" = set; then
5243  $as_echo_n "(cached) " >&6
5244else
5245  if test -n "$AS"; then
5246  ac_cv_prog_AS="$AS" # Let the user override the test.
5247else
5248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5249for as_dir in $PATH
5250do
5251  IFS=$as_save_IFS
5252  test -z "$as_dir" && as_dir=.
5253  for ac_exec_ext in '' $ac_executable_extensions; do
5254  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5255    ac_cv_prog_AS="${ac_tool_prefix}as"
5256    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5257    break 2
5258  fi
5259done
5260done
5261IFS=$as_save_IFS
5262
5263fi
5264fi
5265AS=$ac_cv_prog_AS
5266if test -n "$AS"; then
5267  { $as_echo "$as_me:$LINENO: result: $AS" >&5
5268$as_echo "$AS" >&6; }
5269else
5270  { $as_echo "$as_me:$LINENO: result: no" >&5
5271$as_echo "no" >&6; }
5272fi
5273
5274
5275fi
5276if test -z "$ac_cv_prog_AS"; then
5277  ac_ct_AS=$AS
5278  # Extract the first word of "as", so it can be a program name with args.
5279set dummy as; ac_word=$2
5280{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5281$as_echo_n "checking for $ac_word... " >&6; }
5282if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5283  $as_echo_n "(cached) " >&6
5284else
5285  if test -n "$ac_ct_AS"; then
5286  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5287else
5288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5289for as_dir in $PATH
5290do
5291  IFS=$as_save_IFS
5292  test -z "$as_dir" && as_dir=.
5293  for ac_exec_ext in '' $ac_executable_extensions; do
5294  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5295    ac_cv_prog_ac_ct_AS="as"
5296    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5297    break 2
5298  fi
5299done
5300done
5301IFS=$as_save_IFS
5302
5303fi
5304fi
5305ac_ct_AS=$ac_cv_prog_ac_ct_AS
5306if test -n "$ac_ct_AS"; then
5307  { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5308$as_echo "$ac_ct_AS" >&6; }
5309else
5310  { $as_echo "$as_me:$LINENO: result: no" >&5
5311$as_echo "no" >&6; }
5312fi
5313
5314  if test "x$ac_ct_AS" = x; then
5315    AS="false"
5316  else
5317    case $cross_compiling:$ac_tool_warned in
5318yes:)
5319{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5320$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5321ac_tool_warned=yes ;;
5322esac
5323    AS=$ac_ct_AS
5324  fi
5325else
5326  AS="$ac_cv_prog_AS"
5327fi
5328
5329  if test -n "$ac_tool_prefix"; then
5330  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5331set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5332{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5333$as_echo_n "checking for $ac_word... " >&6; }
5334if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5335  $as_echo_n "(cached) " >&6
5336else
5337  if test -n "$DLLTOOL"; then
5338  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5339else
5340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5341for as_dir in $PATH
5342do
5343  IFS=$as_save_IFS
5344  test -z "$as_dir" && as_dir=.
5345  for ac_exec_ext in '' $ac_executable_extensions; do
5346  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5347    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5348    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5349    break 2
5350  fi
5351done
5352done
5353IFS=$as_save_IFS
5354
5355fi
5356fi
5357DLLTOOL=$ac_cv_prog_DLLTOOL
5358if test -n "$DLLTOOL"; then
5359  { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5360$as_echo "$DLLTOOL" >&6; }
5361else
5362  { $as_echo "$as_me:$LINENO: result: no" >&5
5363$as_echo "no" >&6; }
5364fi
5365
5366
5367fi
5368if test -z "$ac_cv_prog_DLLTOOL"; then
5369  ac_ct_DLLTOOL=$DLLTOOL
5370  # Extract the first word of "dlltool", so it can be a program name with args.
5371set dummy dlltool; ac_word=$2
5372{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5373$as_echo_n "checking for $ac_word... " >&6; }
5374if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5375  $as_echo_n "(cached) " >&6
5376else
5377  if test -n "$ac_ct_DLLTOOL"; then
5378  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5379else
5380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5381for as_dir in $PATH
5382do
5383  IFS=$as_save_IFS
5384  test -z "$as_dir" && as_dir=.
5385  for ac_exec_ext in '' $ac_executable_extensions; do
5386  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5387    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5388    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5389    break 2
5390  fi
5391done
5392done
5393IFS=$as_save_IFS
5394
5395fi
5396fi
5397ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5398if test -n "$ac_ct_DLLTOOL"; then
5399  { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5400$as_echo "$ac_ct_DLLTOOL" >&6; }
5401else
5402  { $as_echo "$as_me:$LINENO: result: no" >&5
5403$as_echo "no" >&6; }
5404fi
5405
5406  if test "x$ac_ct_DLLTOOL" = x; then
5407    DLLTOOL="false"
5408  else
5409    case $cross_compiling:$ac_tool_warned in
5410yes:)
5411{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5412$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5413ac_tool_warned=yes ;;
5414esac
5415    DLLTOOL=$ac_ct_DLLTOOL
5416  fi
5417else
5418  DLLTOOL="$ac_cv_prog_DLLTOOL"
5419fi
5420
5421  if test -n "$ac_tool_prefix"; then
5422  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5423set dummy ${ac_tool_prefix}objdump; ac_word=$2
5424{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5425$as_echo_n "checking for $ac_word... " >&6; }
5426if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5427  $as_echo_n "(cached) " >&6
5428else
5429  if test -n "$OBJDUMP"; then
5430  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5431else
5432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5433for as_dir in $PATH
5434do
5435  IFS=$as_save_IFS
5436  test -z "$as_dir" && as_dir=.
5437  for ac_exec_ext in '' $ac_executable_extensions; do
5438  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5439    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5440    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5441    break 2
5442  fi
5443done
5444done
5445IFS=$as_save_IFS
5446
5447fi
5448fi
5449OBJDUMP=$ac_cv_prog_OBJDUMP
5450if test -n "$OBJDUMP"; then
5451  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5452$as_echo "$OBJDUMP" >&6; }
5453else
5454  { $as_echo "$as_me:$LINENO: result: no" >&5
5455$as_echo "no" >&6; }
5456fi
5457
5458
5459fi
5460if test -z "$ac_cv_prog_OBJDUMP"; then
5461  ac_ct_OBJDUMP=$OBJDUMP
5462  # Extract the first word of "objdump", so it can be a program name with args.
5463set dummy objdump; ac_word=$2
5464{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5465$as_echo_n "checking for $ac_word... " >&6; }
5466if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5467  $as_echo_n "(cached) " >&6
5468else
5469  if test -n "$ac_ct_OBJDUMP"; then
5470  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5471else
5472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5473for as_dir in $PATH
5474do
5475  IFS=$as_save_IFS
5476  test -z "$as_dir" && as_dir=.
5477  for ac_exec_ext in '' $ac_executable_extensions; do
5478  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5479    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5480    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5481    break 2
5482  fi
5483done
5484done
5485IFS=$as_save_IFS
5486
5487fi
5488fi
5489ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5490if test -n "$ac_ct_OBJDUMP"; then
5491  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5492$as_echo "$ac_ct_OBJDUMP" >&6; }
5493else
5494  { $as_echo "$as_me:$LINENO: result: no" >&5
5495$as_echo "no" >&6; }
5496fi
5497
5498  if test "x$ac_ct_OBJDUMP" = x; then
5499    OBJDUMP="false"
5500  else
5501    case $cross_compiling:$ac_tool_warned in
5502yes:)
5503{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5504$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5505ac_tool_warned=yes ;;
5506esac
5507    OBJDUMP=$ac_ct_OBJDUMP
5508  fi
5509else
5510  OBJDUMP="$ac_cv_prog_OBJDUMP"
5511fi
5512
5513  ;;
5514esac
5515
5516test -z "$AS" && AS=as
5517
5518
5519
5520
5521
5522test -z "$DLLTOOL" && DLLTOOL=dlltool
5523
5524
5525
5526
5527
5528test -z "$OBJDUMP" && OBJDUMP=objdump
5529
5530
5531
5532
5533
5534
5535
5536case `pwd` in
5537  *\ * | *\	*)
5538    { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5539$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5540esac
5541
5542
5543
5544macro_version='2.2.6b'
5545macro_revision='1.3017'
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559ltmain="$ac_aux_dir/ltmain.sh"
5560
5561{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5562$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5563if test "${ac_cv_path_SED+set}" = set; then
5564  $as_echo_n "(cached) " >&6
5565else
5566            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5567     for ac_i in 1 2 3 4 5 6 7; do
5568       ac_script="$ac_script$as_nl$ac_script"
5569     done
5570     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5571     $as_unset ac_script || ac_script=
5572     if test -z "$SED"; then
5573  ac_path_SED_found=false
5574  # Loop through the user's path and test for each of PROGNAME-LIST
5575  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5576for as_dir in $PATH
5577do
5578  IFS=$as_save_IFS
5579  test -z "$as_dir" && as_dir=.
5580  for ac_prog in sed gsed; do
5581    for ac_exec_ext in '' $ac_executable_extensions; do
5582      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5583      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5584# Check for GNU ac_path_SED and select it if it is found.
5585  # Check for GNU $ac_path_SED
5586case `"$ac_path_SED" --version 2>&1` in
5587*GNU*)
5588  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5589*)
5590  ac_count=0
5591  $as_echo_n 0123456789 >"conftest.in"
5592  while :
5593  do
5594    cat "conftest.in" "conftest.in" >"conftest.tmp"
5595    mv "conftest.tmp" "conftest.in"
5596    cp "conftest.in" "conftest.nl"
5597    $as_echo '' >> "conftest.nl"
5598    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5599    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5600    ac_count=`expr $ac_count + 1`
5601    if test $ac_count -gt ${ac_path_SED_max-0}; then
5602      # Best one so far, save it but keep looking for a better one
5603      ac_cv_path_SED="$ac_path_SED"
5604      ac_path_SED_max=$ac_count
5605    fi
5606    # 10*(2^10) chars as input seems more than enough
5607    test $ac_count -gt 10 && break
5608  done
5609  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5610esac
5611
5612      $ac_path_SED_found && break 3
5613    done
5614  done
5615done
5616IFS=$as_save_IFS
5617  if test -z "$ac_cv_path_SED"; then
5618    { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
5619$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5620   { (exit 1); exit 1; }; }
5621  fi
5622else
5623  ac_cv_path_SED=$SED
5624fi
5625
5626fi
5627{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5628$as_echo "$ac_cv_path_SED" >&6; }
5629 SED="$ac_cv_path_SED"
5630  rm -f conftest.sed
5631
5632test -z "$SED" && SED=sed
5633Xsed="$SED -e 1s/^X//"
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
5646$as_echo_n "checking for fgrep... " >&6; }
5647if test "${ac_cv_path_FGREP+set}" = set; then
5648  $as_echo_n "(cached) " >&6
5649else
5650  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5651   then ac_cv_path_FGREP="$GREP -F"
5652   else
5653     if test -z "$FGREP"; then
5654  ac_path_FGREP_found=false
5655  # Loop through the user's path and test for each of PROGNAME-LIST
5656  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5657for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5658do
5659  IFS=$as_save_IFS
5660  test -z "$as_dir" && as_dir=.
5661  for ac_prog in fgrep; do
5662    for ac_exec_ext in '' $ac_executable_extensions; do
5663      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5664      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5665# Check for GNU ac_path_FGREP and select it if it is found.
5666  # Check for GNU $ac_path_FGREP
5667case `"$ac_path_FGREP" --version 2>&1` in
5668*GNU*)
5669  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5670*)
5671  ac_count=0
5672  $as_echo_n 0123456789 >"conftest.in"
5673  while :
5674  do
5675    cat "conftest.in" "conftest.in" >"conftest.tmp"
5676    mv "conftest.tmp" "conftest.in"
5677    cp "conftest.in" "conftest.nl"
5678    $as_echo 'FGREP' >> "conftest.nl"
5679    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5680    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5681    ac_count=`expr $ac_count + 1`
5682    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5683      # Best one so far, save it but keep looking for a better one
5684      ac_cv_path_FGREP="$ac_path_FGREP"
5685      ac_path_FGREP_max=$ac_count
5686    fi
5687    # 10*(2^10) chars as input seems more than enough
5688    test $ac_count -gt 10 && break
5689  done
5690  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5691esac
5692
5693      $ac_path_FGREP_found && break 3
5694    done
5695  done
5696done
5697IFS=$as_save_IFS
5698  if test -z "$ac_cv_path_FGREP"; then
5699    { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5700$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5701   { (exit 1); exit 1; }; }
5702  fi
5703else
5704  ac_cv_path_FGREP=$FGREP
5705fi
5706
5707   fi
5708fi
5709{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5710$as_echo "$ac_cv_path_FGREP" >&6; }
5711 FGREP="$ac_cv_path_FGREP"
5712
5713
5714test -z "$GREP" && GREP=grep
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734# Check whether --with-gnu-ld was given.
5735if test "${with_gnu_ld+set}" = set; then
5736  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5737else
5738  with_gnu_ld=no
5739fi
5740
5741ac_prog=ld
5742if test "$GCC" = yes; then
5743  # Check if gcc -print-prog-name=ld gives a path.
5744  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5745$as_echo_n "checking for ld used by $CC... " >&6; }
5746  case $host in
5747  *-*-mingw*)
5748    # gcc leaves a trailing carriage return which upsets mingw
5749    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5750  *)
5751    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5752  esac
5753  case $ac_prog in
5754    # Accept absolute paths.
5755    [\\/]* | ?:[\\/]*)
5756      re_direlt='/[^/][^/]*/\.\./'
5757      # Canonicalize the pathname of ld
5758      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5759      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5760	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5761      done
5762      test -z "$LD" && LD="$ac_prog"
5763      ;;
5764  "")
5765    # If it fails, then pretend we aren't using GCC.
5766    ac_prog=ld
5767    ;;
5768  *)
5769    # If it is relative, then search for the first ld in PATH.
5770    with_gnu_ld=unknown
5771    ;;
5772  esac
5773elif test "$with_gnu_ld" = yes; then
5774  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5775$as_echo_n "checking for GNU ld... " >&6; }
5776else
5777  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5778$as_echo_n "checking for non-GNU ld... " >&6; }
5779fi
5780if test "${lt_cv_path_LD+set}" = set; then
5781  $as_echo_n "(cached) " >&6
5782else
5783  if test -z "$LD"; then
5784  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5785  for ac_dir in $PATH; do
5786    IFS="$lt_save_ifs"
5787    test -z "$ac_dir" && ac_dir=.
5788    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5789      lt_cv_path_LD="$ac_dir/$ac_prog"
5790      # Check to see if the program is GNU ld.  I'd rather use --version,
5791      # but apparently some variants of GNU ld only accept -v.
5792      # Break only if it was the GNU/non-GNU ld that we prefer.
5793      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5794      *GNU* | *'with BFD'*)
5795	test "$with_gnu_ld" != no && break
5796	;;
5797      *)
5798	test "$with_gnu_ld" != yes && break
5799	;;
5800      esac
5801    fi
5802  done
5803  IFS="$lt_save_ifs"
5804else
5805  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5806fi
5807fi
5808
5809LD="$lt_cv_path_LD"
5810if test -n "$LD"; then
5811  { $as_echo "$as_me:$LINENO: result: $LD" >&5
5812$as_echo "$LD" >&6; }
5813else
5814  { $as_echo "$as_me:$LINENO: result: no" >&5
5815$as_echo "no" >&6; }
5816fi
5817test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5818$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5819   { (exit 1); exit 1; }; }
5820{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5821$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5822if test "${lt_cv_prog_gnu_ld+set}" = set; then
5823  $as_echo_n "(cached) " >&6
5824else
5825  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5826case `$LD -v 2>&1 </dev/null` in
5827*GNU* | *'with BFD'*)
5828  lt_cv_prog_gnu_ld=yes
5829  ;;
5830*)
5831  lt_cv_prog_gnu_ld=no
5832  ;;
5833esac
5834fi
5835{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5836$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5837with_gnu_ld=$lt_cv_prog_gnu_ld
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5848$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5849if test "${lt_cv_path_NM+set}" = set; then
5850  $as_echo_n "(cached) " >&6
5851else
5852  if test -n "$NM"; then
5853  # Let the user override the test.
5854  lt_cv_path_NM="$NM"
5855else
5856  lt_nm_to_check="${ac_tool_prefix}nm"
5857  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5858    lt_nm_to_check="$lt_nm_to_check nm"
5859  fi
5860  for lt_tmp_nm in $lt_nm_to_check; do
5861    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5862    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5863      IFS="$lt_save_ifs"
5864      test -z "$ac_dir" && ac_dir=.
5865      tmp_nm="$ac_dir/$lt_tmp_nm"
5866      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5867	# Check to see if the nm accepts a BSD-compat flag.
5868	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5869	#   nm: unknown option "B" ignored
5870	# Tru64's nm complains that /dev/null is an invalid object file
5871	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5872	*/dev/null* | *'Invalid file or object type'*)
5873	  lt_cv_path_NM="$tmp_nm -B"
5874	  break
5875	  ;;
5876	*)
5877	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5878	  */dev/null*)
5879	    lt_cv_path_NM="$tmp_nm -p"
5880	    break
5881	    ;;
5882	  *)
5883	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5884	    continue # so that we can try to find one that supports BSD flags
5885	    ;;
5886	  esac
5887	  ;;
5888	esac
5889      fi
5890    done
5891    IFS="$lt_save_ifs"
5892  done
5893  : ${lt_cv_path_NM=no}
5894fi
5895fi
5896{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5897$as_echo "$lt_cv_path_NM" >&6; }
5898if test "$lt_cv_path_NM" != "no"; then
5899  NM="$lt_cv_path_NM"
5900else
5901  # Didn't find any BSD compatible name lister, look for dumpbin.
5902  if test -n "$ac_tool_prefix"; then
5903  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5904  do
5905    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5906set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5907{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5908$as_echo_n "checking for $ac_word... " >&6; }
5909if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5910  $as_echo_n "(cached) " >&6
5911else
5912  if test -n "$DUMPBIN"; then
5913  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5914else
5915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5916for as_dir in $PATH
5917do
5918  IFS=$as_save_IFS
5919  test -z "$as_dir" && as_dir=.
5920  for ac_exec_ext in '' $ac_executable_extensions; do
5921  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5922    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5923    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5924    break 2
5925  fi
5926done
5927done
5928IFS=$as_save_IFS
5929
5930fi
5931fi
5932DUMPBIN=$ac_cv_prog_DUMPBIN
5933if test -n "$DUMPBIN"; then
5934  { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5935$as_echo "$DUMPBIN" >&6; }
5936else
5937  { $as_echo "$as_me:$LINENO: result: no" >&5
5938$as_echo "no" >&6; }
5939fi
5940
5941
5942    test -n "$DUMPBIN" && break
5943  done
5944fi
5945if test -z "$DUMPBIN"; then
5946  ac_ct_DUMPBIN=$DUMPBIN
5947  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5948do
5949  # Extract the first word of "$ac_prog", so it can be a program name with args.
5950set dummy $ac_prog; ac_word=$2
5951{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5952$as_echo_n "checking for $ac_word... " >&6; }
5953if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5954  $as_echo_n "(cached) " >&6
5955else
5956  if test -n "$ac_ct_DUMPBIN"; then
5957  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5958else
5959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5960for as_dir in $PATH
5961do
5962  IFS=$as_save_IFS
5963  test -z "$as_dir" && as_dir=.
5964  for ac_exec_ext in '' $ac_executable_extensions; do
5965  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5966    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5967    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5968    break 2
5969  fi
5970done
5971done
5972IFS=$as_save_IFS
5973
5974fi
5975fi
5976ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5977if test -n "$ac_ct_DUMPBIN"; then
5978  { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5979$as_echo "$ac_ct_DUMPBIN" >&6; }
5980else
5981  { $as_echo "$as_me:$LINENO: result: no" >&5
5982$as_echo "no" >&6; }
5983fi
5984
5985
5986  test -n "$ac_ct_DUMPBIN" && break
5987done
5988
5989  if test "x$ac_ct_DUMPBIN" = x; then
5990    DUMPBIN=":"
5991  else
5992    case $cross_compiling:$ac_tool_warned in
5993yes:)
5994{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5995$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5996ac_tool_warned=yes ;;
5997esac
5998    DUMPBIN=$ac_ct_DUMPBIN
5999  fi
6000fi
6001
6002
6003  if test "$DUMPBIN" != ":"; then
6004    NM="$DUMPBIN"
6005  fi
6006fi
6007test -z "$NM" && NM=nm
6008
6009
6010
6011
6012
6013
6014{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
6015$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6016if test "${lt_cv_nm_interface+set}" = set; then
6017  $as_echo_n "(cached) " >&6
6018else
6019  lt_cv_nm_interface="BSD nm"
6020  echo "int some_variable = 0;" > conftest.$ac_ext
6021  (eval echo "\"\$as_me:6021: $ac_compile\"" >&5)
6022  (eval "$ac_compile" 2>conftest.err)
6023  cat conftest.err >&5
6024  (eval echo "\"\$as_me:6024: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6025  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6026  cat conftest.err >&5
6027  (eval echo "\"\$as_me:6027: output\"" >&5)
6028  cat conftest.out >&5
6029  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6030    lt_cv_nm_interface="MS dumpbin"
6031  fi
6032  rm -f conftest*
6033fi
6034{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6035$as_echo "$lt_cv_nm_interface" >&6; }
6036
6037{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6038$as_echo_n "checking whether ln -s works... " >&6; }
6039LN_S=$as_ln_s
6040if test "$LN_S" = "ln -s"; then
6041  { $as_echo "$as_me:$LINENO: result: yes" >&5
6042$as_echo "yes" >&6; }
6043else
6044  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6045$as_echo "no, using $LN_S" >&6; }
6046fi
6047
6048# find the maximum length of command line arguments
6049{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6050$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6051if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6052  $as_echo_n "(cached) " >&6
6053else
6054    i=0
6055  teststring="ABCD"
6056
6057  case $build_os in
6058  msdosdjgpp*)
6059    # On DJGPP, this test can blow up pretty badly due to problems in libc
6060    # (any single argument exceeding 2000 bytes causes a buffer overrun
6061    # during glob expansion).  Even if it were fixed, the result of this
6062    # check would be larger than it should be.
6063    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6064    ;;
6065
6066  gnu*)
6067    # Under GNU Hurd, this test is not required because there is
6068    # no limit to the length of command line arguments.
6069    # Libtool will interpret -1 as no limit whatsoever
6070    lt_cv_sys_max_cmd_len=-1;
6071    ;;
6072
6073  cygwin* | mingw* | cegcc*)
6074    # On Win9x/ME, this test blows up -- it succeeds, but takes
6075    # about 5 minutes as the teststring grows exponentially.
6076    # Worse, since 9x/ME are not pre-emptively multitasking,
6077    # you end up with a "frozen" computer, even though with patience
6078    # the test eventually succeeds (with a max line length of 256k).
6079    # Instead, let's just punt: use the minimum linelength reported by
6080    # all of the supported platforms: 8192 (on NT/2K/XP).
6081    lt_cv_sys_max_cmd_len=8192;
6082    ;;
6083
6084  amigaos*)
6085    # On AmigaOS with pdksh, this test takes hours, literally.
6086    # So we just punt and use a minimum line length of 8192.
6087    lt_cv_sys_max_cmd_len=8192;
6088    ;;
6089
6090  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6091    # This has been around since 386BSD, at least.  Likely further.
6092    if test -x /sbin/sysctl; then
6093      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6094    elif test -x /usr/sbin/sysctl; then
6095      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6096    else
6097      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6098    fi
6099    # And add a safety zone
6100    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6101    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6102    ;;
6103
6104  interix*)
6105    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6106    lt_cv_sys_max_cmd_len=196608
6107    ;;
6108
6109  osf*)
6110    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6111    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6112    # nice to cause kernel panics so lets avoid the loop below.
6113    # First set a reasonable default.
6114    lt_cv_sys_max_cmd_len=16384
6115    #
6116    if test -x /sbin/sysconfig; then
6117      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6118        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6119      esac
6120    fi
6121    ;;
6122  sco3.2v5*)
6123    lt_cv_sys_max_cmd_len=102400
6124    ;;
6125  sysv5* | sco5v6* | sysv4.2uw2*)
6126    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6127    if test -n "$kargmax"; then
6128      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6129    else
6130      lt_cv_sys_max_cmd_len=32768
6131    fi
6132    ;;
6133  *)
6134    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6135    if test -n "$lt_cv_sys_max_cmd_len"; then
6136      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6137      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6138    else
6139      # Make teststring a little bigger before we do anything with it.
6140      # a 1K string should be a reasonable start.
6141      for i in 1 2 3 4 5 6 7 8 ; do
6142        teststring=$teststring$teststring
6143      done
6144      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6145      # If test is not a shell built-in, we'll probably end up computing a
6146      # maximum length that is only half of the actual maximum length, but
6147      # we can't tell.
6148      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6149	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6150	      test $i != 17 # 1/2 MB should be enough
6151      do
6152        i=`expr $i + 1`
6153        teststring=$teststring$teststring
6154      done
6155      # Only check the string length outside the loop.
6156      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6157      teststring=
6158      # Add a significant safety factor because C++ compilers can tack on
6159      # massive amounts of additional arguments before passing them to the
6160      # linker.  It appears as though 1/2 is a usable value.
6161      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6162    fi
6163    ;;
6164  esac
6165
6166fi
6167
6168if test -n $lt_cv_sys_max_cmd_len ; then
6169  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6170$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6171else
6172  { $as_echo "$as_me:$LINENO: result: none" >&5
6173$as_echo "none" >&6; }
6174fi
6175max_cmd_len=$lt_cv_sys_max_cmd_len
6176
6177
6178
6179
6180
6181
6182: ${CP="cp -f"}
6183: ${MV="mv -f"}
6184: ${RM="rm -f"}
6185
6186{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6187$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6188# Try some XSI features
6189xsi_shell=no
6190( _lt_dummy="a/b/c"
6191  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6192      = c,a/b,, \
6193    && eval 'test $(( 1 + 1 )) -eq 2 \
6194    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6195  && xsi_shell=yes
6196{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
6197$as_echo "$xsi_shell" >&6; }
6198
6199
6200{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6201$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6202lt_shell_append=no
6203( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6204    >/dev/null 2>&1 \
6205  && lt_shell_append=yes
6206{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6207$as_echo "$lt_shell_append" >&6; }
6208
6209
6210if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6211  lt_unset=unset
6212else
6213  lt_unset=false
6214fi
6215
6216
6217
6218
6219
6220# test EBCDIC or ASCII
6221case `echo X|tr X '\101'` in
6222 A) # ASCII based system
6223    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6224  lt_SP2NL='tr \040 \012'
6225  lt_NL2SP='tr \015\012 \040\040'
6226  ;;
6227 *) # EBCDIC based system
6228  lt_SP2NL='tr \100 \n'
6229  lt_NL2SP='tr \r\n \100\100'
6230  ;;
6231esac
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6242$as_echo_n "checking for $LD option to reload object files... " >&6; }
6243if test "${lt_cv_ld_reload_flag+set}" = set; then
6244  $as_echo_n "(cached) " >&6
6245else
6246  lt_cv_ld_reload_flag='-r'
6247fi
6248{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6249$as_echo "$lt_cv_ld_reload_flag" >&6; }
6250reload_flag=$lt_cv_ld_reload_flag
6251case $reload_flag in
6252"" | " "*) ;;
6253*) reload_flag=" $reload_flag" ;;
6254esac
6255reload_cmds='$LD$reload_flag -o $output$reload_objs'
6256case $host_os in
6257  darwin*)
6258    if test "$GCC" = yes; then
6259      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6260    else
6261      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6262    fi
6263    ;;
6264esac
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274if test -n "$ac_tool_prefix"; then
6275  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6276set dummy ${ac_tool_prefix}objdump; ac_word=$2
6277{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6278$as_echo_n "checking for $ac_word... " >&6; }
6279if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6280  $as_echo_n "(cached) " >&6
6281else
6282  if test -n "$OBJDUMP"; then
6283  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6284else
6285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6286for as_dir in $PATH
6287do
6288  IFS=$as_save_IFS
6289  test -z "$as_dir" && as_dir=.
6290  for ac_exec_ext in '' $ac_executable_extensions; do
6291  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6292    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6293    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6294    break 2
6295  fi
6296done
6297done
6298IFS=$as_save_IFS
6299
6300fi
6301fi
6302OBJDUMP=$ac_cv_prog_OBJDUMP
6303if test -n "$OBJDUMP"; then
6304  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6305$as_echo "$OBJDUMP" >&6; }
6306else
6307  { $as_echo "$as_me:$LINENO: result: no" >&5
6308$as_echo "no" >&6; }
6309fi
6310
6311
6312fi
6313if test -z "$ac_cv_prog_OBJDUMP"; then
6314  ac_ct_OBJDUMP=$OBJDUMP
6315  # Extract the first word of "objdump", so it can be a program name with args.
6316set dummy objdump; ac_word=$2
6317{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6318$as_echo_n "checking for $ac_word... " >&6; }
6319if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6320  $as_echo_n "(cached) " >&6
6321else
6322  if test -n "$ac_ct_OBJDUMP"; then
6323  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6324else
6325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6326for as_dir in $PATH
6327do
6328  IFS=$as_save_IFS
6329  test -z "$as_dir" && as_dir=.
6330  for ac_exec_ext in '' $ac_executable_extensions; do
6331  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6332    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6333    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6334    break 2
6335  fi
6336done
6337done
6338IFS=$as_save_IFS
6339
6340fi
6341fi
6342ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6343if test -n "$ac_ct_OBJDUMP"; then
6344  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6345$as_echo "$ac_ct_OBJDUMP" >&6; }
6346else
6347  { $as_echo "$as_me:$LINENO: result: no" >&5
6348$as_echo "no" >&6; }
6349fi
6350
6351  if test "x$ac_ct_OBJDUMP" = x; then
6352    OBJDUMP="false"
6353  else
6354    case $cross_compiling:$ac_tool_warned in
6355yes:)
6356{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6357$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6358ac_tool_warned=yes ;;
6359esac
6360    OBJDUMP=$ac_ct_OBJDUMP
6361  fi
6362else
6363  OBJDUMP="$ac_cv_prog_OBJDUMP"
6364fi
6365
6366test -z "$OBJDUMP" && OBJDUMP=objdump
6367
6368
6369
6370
6371
6372
6373{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6374$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6375if test "${lt_cv_deplibs_check_method+set}" = set; then
6376  $as_echo_n "(cached) " >&6
6377else
6378  lt_cv_file_magic_cmd='$MAGIC_CMD'
6379lt_cv_file_magic_test_file=
6380lt_cv_deplibs_check_method='unknown'
6381# Need to set the preceding variable on all platforms that support
6382# interlibrary dependencies.
6383# 'none' -- dependencies not supported.
6384# `unknown' -- same as none, but documents that we really don't know.
6385# 'pass_all' -- all dependencies passed with no checks.
6386# 'test_compile' -- check by making test program.
6387# 'file_magic [[regex]]' -- check by looking for files in library path
6388# which responds to the $file_magic_cmd with a given extended regex.
6389# If you have `file' or equivalent on your system and you're not sure
6390# whether `pass_all' will *always* work, you probably want this one.
6391
6392case $host_os in
6393aix[4-9]*)
6394  lt_cv_deplibs_check_method=pass_all
6395  ;;
6396
6397beos*)
6398  lt_cv_deplibs_check_method=pass_all
6399  ;;
6400
6401bsdi[45]*)
6402  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6403  lt_cv_file_magic_cmd='/usr/bin/file -L'
6404  lt_cv_file_magic_test_file=/shlib/libc.so
6405  ;;
6406
6407cygwin*)
6408  # func_win32_libid is a shell function defined in ltmain.sh
6409  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6410  lt_cv_file_magic_cmd='func_win32_libid'
6411  ;;
6412
6413mingw* | pw32*)
6414  # Base MSYS/MinGW do not provide the 'file' command needed by
6415  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6416  # unless we find 'file', for example because we are cross-compiling.
6417  if ( file / ) >/dev/null 2>&1; then
6418    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6419    lt_cv_file_magic_cmd='func_win32_libid'
6420  else
6421    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6422    lt_cv_file_magic_cmd='$OBJDUMP -f'
6423  fi
6424  ;;
6425
6426cegcc)
6427  # use the weaker test based on 'objdump'. See mingw*.
6428  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6429  lt_cv_file_magic_cmd='$OBJDUMP -f'
6430  ;;
6431
6432darwin* | rhapsody*)
6433  lt_cv_deplibs_check_method=pass_all
6434  ;;
6435
6436freebsd* | dragonfly*)
6437  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6438    case $host_cpu in
6439    i*86 )
6440      # Not sure whether the presence of OpenBSD here was a mistake.
6441      # Let's accept both of them until this is cleared up.
6442      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6443      lt_cv_file_magic_cmd=/usr/bin/file
6444      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6445      ;;
6446    esac
6447  else
6448    lt_cv_deplibs_check_method=pass_all
6449  fi
6450  ;;
6451
6452gnu*)
6453  lt_cv_deplibs_check_method=pass_all
6454  ;;
6455
6456hpux10.20* | hpux11*)
6457  lt_cv_file_magic_cmd=/usr/bin/file
6458  case $host_cpu in
6459  ia64*)
6460    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6461    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6462    ;;
6463  hppa*64*)
6464    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6465    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6466    ;;
6467  *)
6468    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6469    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6470    ;;
6471  esac
6472  ;;
6473
6474interix[3-9]*)
6475  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6476  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6477  ;;
6478
6479irix5* | irix6* | nonstopux*)
6480  case $LD in
6481  *-32|*"-32 ") libmagic=32-bit;;
6482  *-n32|*"-n32 ") libmagic=N32;;
6483  *-64|*"-64 ") libmagic=64-bit;;
6484  *) libmagic=never-match;;
6485  esac
6486  lt_cv_deplibs_check_method=pass_all
6487  ;;
6488
6489# This must be Linux ELF.
6490linux* | k*bsd*-gnu)
6491  lt_cv_deplibs_check_method=pass_all
6492  ;;
6493
6494netbsd*)
6495  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6496    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6497  else
6498    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6499  fi
6500  ;;
6501
6502newos6*)
6503  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6504  lt_cv_file_magic_cmd=/usr/bin/file
6505  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6506  ;;
6507
6508*nto* | *qnx*)
6509  lt_cv_deplibs_check_method=pass_all
6510  ;;
6511
6512openbsd*)
6513  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6514    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6515  else
6516    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6517  fi
6518  ;;
6519
6520osf3* | osf4* | osf5*)
6521  lt_cv_deplibs_check_method=pass_all
6522  ;;
6523
6524rdos*)
6525  lt_cv_deplibs_check_method=pass_all
6526  ;;
6527
6528solaris*)
6529  lt_cv_deplibs_check_method=pass_all
6530  ;;
6531
6532sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6533  lt_cv_deplibs_check_method=pass_all
6534  ;;
6535
6536sysv4 | sysv4.3*)
6537  case $host_vendor in
6538  motorola)
6539    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]'
6540    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6541    ;;
6542  ncr)
6543    lt_cv_deplibs_check_method=pass_all
6544    ;;
6545  sequent)
6546    lt_cv_file_magic_cmd='/bin/file'
6547    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6548    ;;
6549  sni)
6550    lt_cv_file_magic_cmd='/bin/file'
6551    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6552    lt_cv_file_magic_test_file=/lib/libc.so
6553    ;;
6554  siemens)
6555    lt_cv_deplibs_check_method=pass_all
6556    ;;
6557  pc)
6558    lt_cv_deplibs_check_method=pass_all
6559    ;;
6560  esac
6561  ;;
6562
6563tpf*)
6564  lt_cv_deplibs_check_method=pass_all
6565  ;;
6566esac
6567
6568fi
6569{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6570$as_echo "$lt_cv_deplibs_check_method" >&6; }
6571file_magic_cmd=$lt_cv_file_magic_cmd
6572deplibs_check_method=$lt_cv_deplibs_check_method
6573test -z "$deplibs_check_method" && deplibs_check_method=unknown
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586if test -n "$ac_tool_prefix"; then
6587  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6588set dummy ${ac_tool_prefix}ar; ac_word=$2
6589{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6590$as_echo_n "checking for $ac_word... " >&6; }
6591if test "${ac_cv_prog_AR+set}" = set; then
6592  $as_echo_n "(cached) " >&6
6593else
6594  if test -n "$AR"; then
6595  ac_cv_prog_AR="$AR" # Let the user override the test.
6596else
6597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6598for as_dir in $PATH
6599do
6600  IFS=$as_save_IFS
6601  test -z "$as_dir" && as_dir=.
6602  for ac_exec_ext in '' $ac_executable_extensions; do
6603  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6604    ac_cv_prog_AR="${ac_tool_prefix}ar"
6605    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6606    break 2
6607  fi
6608done
6609done
6610IFS=$as_save_IFS
6611
6612fi
6613fi
6614AR=$ac_cv_prog_AR
6615if test -n "$AR"; then
6616  { $as_echo "$as_me:$LINENO: result: $AR" >&5
6617$as_echo "$AR" >&6; }
6618else
6619  { $as_echo "$as_me:$LINENO: result: no" >&5
6620$as_echo "no" >&6; }
6621fi
6622
6623
6624fi
6625if test -z "$ac_cv_prog_AR"; then
6626  ac_ct_AR=$AR
6627  # Extract the first word of "ar", so it can be a program name with args.
6628set dummy ar; ac_word=$2
6629{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6630$as_echo_n "checking for $ac_word... " >&6; }
6631if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6632  $as_echo_n "(cached) " >&6
6633else
6634  if test -n "$ac_ct_AR"; then
6635  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6636else
6637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638for as_dir in $PATH
6639do
6640  IFS=$as_save_IFS
6641  test -z "$as_dir" && as_dir=.
6642  for ac_exec_ext in '' $ac_executable_extensions; do
6643  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6644    ac_cv_prog_ac_ct_AR="ar"
6645    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6646    break 2
6647  fi
6648done
6649done
6650IFS=$as_save_IFS
6651
6652fi
6653fi
6654ac_ct_AR=$ac_cv_prog_ac_ct_AR
6655if test -n "$ac_ct_AR"; then
6656  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6657$as_echo "$ac_ct_AR" >&6; }
6658else
6659  { $as_echo "$as_me:$LINENO: result: no" >&5
6660$as_echo "no" >&6; }
6661fi
6662
6663  if test "x$ac_ct_AR" = x; then
6664    AR="false"
6665  else
6666    case $cross_compiling:$ac_tool_warned in
6667yes:)
6668{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6669$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6670ac_tool_warned=yes ;;
6671esac
6672    AR=$ac_ct_AR
6673  fi
6674else
6675  AR="$ac_cv_prog_AR"
6676fi
6677
6678test -z "$AR" && AR=ar
6679test -z "$AR_FLAGS" && AR_FLAGS=cru
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691if test -n "$ac_tool_prefix"; then
6692  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6693set dummy ${ac_tool_prefix}strip; ac_word=$2
6694{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6695$as_echo_n "checking for $ac_word... " >&6; }
6696if test "${ac_cv_prog_STRIP+set}" = set; then
6697  $as_echo_n "(cached) " >&6
6698else
6699  if test -n "$STRIP"; then
6700  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6701else
6702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6703for as_dir in $PATH
6704do
6705  IFS=$as_save_IFS
6706  test -z "$as_dir" && as_dir=.
6707  for ac_exec_ext in '' $ac_executable_extensions; do
6708  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6709    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6710    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6711    break 2
6712  fi
6713done
6714done
6715IFS=$as_save_IFS
6716
6717fi
6718fi
6719STRIP=$ac_cv_prog_STRIP
6720if test -n "$STRIP"; then
6721  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6722$as_echo "$STRIP" >&6; }
6723else
6724  { $as_echo "$as_me:$LINENO: result: no" >&5
6725$as_echo "no" >&6; }
6726fi
6727
6728
6729fi
6730if test -z "$ac_cv_prog_STRIP"; then
6731  ac_ct_STRIP=$STRIP
6732  # Extract the first word of "strip", so it can be a program name with args.
6733set dummy strip; ac_word=$2
6734{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6735$as_echo_n "checking for $ac_word... " >&6; }
6736if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6737  $as_echo_n "(cached) " >&6
6738else
6739  if test -n "$ac_ct_STRIP"; then
6740  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6741else
6742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743for as_dir in $PATH
6744do
6745  IFS=$as_save_IFS
6746  test -z "$as_dir" && as_dir=.
6747  for ac_exec_ext in '' $ac_executable_extensions; do
6748  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6749    ac_cv_prog_ac_ct_STRIP="strip"
6750    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6751    break 2
6752  fi
6753done
6754done
6755IFS=$as_save_IFS
6756
6757fi
6758fi
6759ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6760if test -n "$ac_ct_STRIP"; then
6761  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6762$as_echo "$ac_ct_STRIP" >&6; }
6763else
6764  { $as_echo "$as_me:$LINENO: result: no" >&5
6765$as_echo "no" >&6; }
6766fi
6767
6768  if test "x$ac_ct_STRIP" = x; then
6769    STRIP=":"
6770  else
6771    case $cross_compiling:$ac_tool_warned in
6772yes:)
6773{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6774$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6775ac_tool_warned=yes ;;
6776esac
6777    STRIP=$ac_ct_STRIP
6778  fi
6779else
6780  STRIP="$ac_cv_prog_STRIP"
6781fi
6782
6783test -z "$STRIP" && STRIP=:
6784
6785
6786
6787
6788
6789
6790if test -n "$ac_tool_prefix"; then
6791  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6792set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6793{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6794$as_echo_n "checking for $ac_word... " >&6; }
6795if test "${ac_cv_prog_RANLIB+set}" = set; then
6796  $as_echo_n "(cached) " >&6
6797else
6798  if test -n "$RANLIB"; then
6799  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6800else
6801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6802for as_dir in $PATH
6803do
6804  IFS=$as_save_IFS
6805  test -z "$as_dir" && as_dir=.
6806  for ac_exec_ext in '' $ac_executable_extensions; do
6807  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6808    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6809    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6810    break 2
6811  fi
6812done
6813done
6814IFS=$as_save_IFS
6815
6816fi
6817fi
6818RANLIB=$ac_cv_prog_RANLIB
6819if test -n "$RANLIB"; then
6820  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6821$as_echo "$RANLIB" >&6; }
6822else
6823  { $as_echo "$as_me:$LINENO: result: no" >&5
6824$as_echo "no" >&6; }
6825fi
6826
6827
6828fi
6829if test -z "$ac_cv_prog_RANLIB"; then
6830  ac_ct_RANLIB=$RANLIB
6831  # Extract the first word of "ranlib", so it can be a program name with args.
6832set dummy ranlib; ac_word=$2
6833{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6834$as_echo_n "checking for $ac_word... " >&6; }
6835if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6836  $as_echo_n "(cached) " >&6
6837else
6838  if test -n "$ac_ct_RANLIB"; then
6839  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6840else
6841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6842for as_dir in $PATH
6843do
6844  IFS=$as_save_IFS
6845  test -z "$as_dir" && as_dir=.
6846  for ac_exec_ext in '' $ac_executable_extensions; do
6847  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6848    ac_cv_prog_ac_ct_RANLIB="ranlib"
6849    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6850    break 2
6851  fi
6852done
6853done
6854IFS=$as_save_IFS
6855
6856fi
6857fi
6858ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6859if test -n "$ac_ct_RANLIB"; then
6860  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6861$as_echo "$ac_ct_RANLIB" >&6; }
6862else
6863  { $as_echo "$as_me:$LINENO: result: no" >&5
6864$as_echo "no" >&6; }
6865fi
6866
6867  if test "x$ac_ct_RANLIB" = x; then
6868    RANLIB=":"
6869  else
6870    case $cross_compiling:$ac_tool_warned in
6871yes:)
6872{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6873$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6874ac_tool_warned=yes ;;
6875esac
6876    RANLIB=$ac_ct_RANLIB
6877  fi
6878else
6879  RANLIB="$ac_cv_prog_RANLIB"
6880fi
6881
6882test -z "$RANLIB" && RANLIB=:
6883
6884
6885
6886
6887
6888
6889# Determine commands to create old-style static archives.
6890old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6891old_postinstall_cmds='chmod 644 $oldlib'
6892old_postuninstall_cmds=
6893
6894if test -n "$RANLIB"; then
6895  case $host_os in
6896  openbsd*)
6897    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6898    ;;
6899  *)
6900    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6901    ;;
6902  esac
6903  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6904fi
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939# If no C compiler was specified, use CC.
6940LTCC=${LTCC-"$CC"}
6941
6942# If no C compiler flags were specified, use CFLAGS.
6943LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6944
6945# Allow CC to be a program name with arguments.
6946compiler=$CC
6947
6948
6949# Check for command to grab the raw symbol name followed by C symbol from nm.
6950{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6951$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6952if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6953  $as_echo_n "(cached) " >&6
6954else
6955
6956# These are sane defaults that work on at least a few old systems.
6957# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6958
6959# Character class describing NM global symbol codes.
6960symcode='[BCDEGRST]'
6961
6962# Regexp to match symbols that can be accessed directly from C.
6963sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6964
6965# Define system-specific variables.
6966case $host_os in
6967aix*)
6968  symcode='[BCDT]'
6969  ;;
6970cygwin* | mingw* | pw32* | cegcc*)
6971  symcode='[ABCDGISTW]'
6972  ;;
6973hpux*)
6974  if test "$host_cpu" = ia64; then
6975    symcode='[ABCDEGRST]'
6976  fi
6977  ;;
6978irix* | nonstopux*)
6979  symcode='[BCDEGRST]'
6980  ;;
6981osf*)
6982  symcode='[BCDEGQRST]'
6983  ;;
6984solaris*)
6985  symcode='[BDRT]'
6986  ;;
6987sco3.2v5*)
6988  symcode='[DT]'
6989  ;;
6990sysv4.2uw2*)
6991  symcode='[DT]'
6992  ;;
6993sysv5* | sco5v6* | unixware* | OpenUNIX*)
6994  symcode='[ABDT]'
6995  ;;
6996sysv4)
6997  symcode='[DFNSTU]'
6998  ;;
6999esac
7000
7001# If we're using GNU nm, then use its standard symbol codes.
7002case `$NM -V 2>&1` in
7003*GNU* | *'with BFD'*)
7004  symcode='[ABCDGIRSTW]' ;;
7005esac
7006
7007# Transform an extracted symbol line into a proper C declaration.
7008# Some systems (esp. on ia64) link data and code symbols differently,
7009# so use this general approach.
7010lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7011
7012# Transform an extracted symbol line into symbol name and symbol address
7013lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7014lt_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'"
7015
7016# Handle CRLF in mingw tool chain
7017opt_cr=
7018case $build_os in
7019mingw*)
7020  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7021  ;;
7022esac
7023
7024# Try without a prefix underscore, then with it.
7025for ac_symprfx in "" "_"; do
7026
7027  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7028  symxfrm="\\1 $ac_symprfx\\2 \\2"
7029
7030  # Write the raw and C identifiers.
7031  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7032    # Fake it for dumpbin and say T for any non-static function
7033    # and D for any global variable.
7034    # Also find C++ and __fastcall symbols from MSVC++,
7035    # which start with @ or ?.
7036    lt_cv_sys_global_symbol_pipe="$AWK '"\
7037"     {last_section=section; section=\$ 3};"\
7038"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7039"     \$ 0!~/External *\|/{next};"\
7040"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7041"     {if(hide[section]) next};"\
7042"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7043"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7044"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7045"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7046"     ' prfx=^$ac_symprfx"
7047  else
7048    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7049  fi
7050
7051  # Check to see that the pipe works correctly.
7052  pipe_works=no
7053
7054  rm -f conftest*
7055  cat > conftest.$ac_ext <<_LT_EOF
7056#ifdef __cplusplus
7057extern "C" {
7058#endif
7059char nm_test_var;
7060void nm_test_func(void);
7061void nm_test_func(void){}
7062#ifdef __cplusplus
7063}
7064#endif
7065int main(){nm_test_var='a';nm_test_func();return(0);}
7066_LT_EOF
7067
7068  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7069  (eval $ac_compile) 2>&5
7070  ac_status=$?
7071  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072  (exit $ac_status); }; then
7073    # Now try to grab the symbols.
7074    nlist=conftest.nm
7075    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7076  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7077  ac_status=$?
7078  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079  (exit $ac_status); } && test -s "$nlist"; then
7080      # Try sorting and uniquifying the output.
7081      if sort "$nlist" | uniq > "$nlist"T; then
7082	mv -f "$nlist"T "$nlist"
7083      else
7084	rm -f "$nlist"T
7085      fi
7086
7087      # Make sure that we snagged all the symbols we need.
7088      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7089	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7090	  cat <<_LT_EOF > conftest.$ac_ext
7091#ifdef __cplusplus
7092extern "C" {
7093#endif
7094
7095_LT_EOF
7096	  # Now generate the symbol file.
7097	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7098
7099	  cat <<_LT_EOF >> conftest.$ac_ext
7100
7101/* The mapping between symbol names and symbols.  */
7102const struct {
7103  const char *name;
7104  void       *address;
7105}
7106lt__PROGRAM__LTX_preloaded_symbols[] =
7107{
7108  { "@PROGRAM@", (void *) 0 },
7109_LT_EOF
7110	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7111	  cat <<\_LT_EOF >> conftest.$ac_ext
7112  {0, (void *) 0}
7113};
7114
7115/* This works around a problem in FreeBSD linker */
7116#ifdef FREEBSD_WORKAROUND
7117static const void *lt_preloaded_setup() {
7118  return lt__PROGRAM__LTX_preloaded_symbols;
7119}
7120#endif
7121
7122#ifdef __cplusplus
7123}
7124#endif
7125_LT_EOF
7126	  # Now try linking the two files.
7127	  mv conftest.$ac_objext conftstm.$ac_objext
7128	  lt_save_LIBS="$LIBS"
7129	  lt_save_CFLAGS="$CFLAGS"
7130	  LIBS="conftstm.$ac_objext"
7131	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7132	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7133  (eval $ac_link) 2>&5
7134  ac_status=$?
7135  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7137	    pipe_works=yes
7138	  fi
7139	  LIBS="$lt_save_LIBS"
7140	  CFLAGS="$lt_save_CFLAGS"
7141	else
7142	  echo "cannot find nm_test_func in $nlist" >&5
7143	fi
7144      else
7145	echo "cannot find nm_test_var in $nlist" >&5
7146      fi
7147    else
7148      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7149    fi
7150  else
7151    echo "$progname: failed program was:" >&5
7152    cat conftest.$ac_ext >&5
7153  fi
7154  rm -rf conftest* conftst*
7155
7156  # Do not use the global_symbol_pipe unless it works.
7157  if test "$pipe_works" = yes; then
7158    break
7159  else
7160    lt_cv_sys_global_symbol_pipe=
7161  fi
7162done
7163
7164fi
7165
7166if test -z "$lt_cv_sys_global_symbol_pipe"; then
7167  lt_cv_sys_global_symbol_to_cdecl=
7168fi
7169if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7170  { $as_echo "$as_me:$LINENO: result: failed" >&5
7171$as_echo "failed" >&6; }
7172else
7173  { $as_echo "$as_me:$LINENO: result: ok" >&5
7174$as_echo "ok" >&6; }
7175fi
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198# Check whether --enable-libtool-lock was given.
7199if test "${enable_libtool_lock+set}" = set; then
7200  enableval=$enable_libtool_lock;
7201fi
7202
7203test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7204
7205# Some flags need to be propagated to the compiler or linker for good
7206# libtool support.
7207case $host in
7208ia64-*-hpux*)
7209  # Find out which ABI we are using.
7210  echo 'int i;' > conftest.$ac_ext
7211  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7212  (eval $ac_compile) 2>&5
7213  ac_status=$?
7214  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7215  (exit $ac_status); }; then
7216    case `/usr/bin/file conftest.$ac_objext` in
7217      *ELF-32*)
7218	HPUX_IA64_MODE="32"
7219	;;
7220      *ELF-64*)
7221	HPUX_IA64_MODE="64"
7222	;;
7223    esac
7224  fi
7225  rm -rf conftest*
7226  ;;
7227*-*-irix6*)
7228  # Find out which ABI we are using.
7229  echo '#line 7229 "configure"' > conftest.$ac_ext
7230  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7231  (eval $ac_compile) 2>&5
7232  ac_status=$?
7233  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234  (exit $ac_status); }; then
7235    if test "$lt_cv_prog_gnu_ld" = yes; then
7236      case `/usr/bin/file conftest.$ac_objext` in
7237	*32-bit*)
7238	  LD="${LD-ld} -melf32bsmip"
7239	  ;;
7240	*N32*)
7241	  LD="${LD-ld} -melf32bmipn32"
7242	  ;;
7243	*64-bit*)
7244	  LD="${LD-ld} -melf64bmip"
7245	;;
7246      esac
7247    else
7248      case `/usr/bin/file conftest.$ac_objext` in
7249	*32-bit*)
7250	  LD="${LD-ld} -32"
7251	  ;;
7252	*N32*)
7253	  LD="${LD-ld} -n32"
7254	  ;;
7255	*64-bit*)
7256	  LD="${LD-ld} -64"
7257	  ;;
7258      esac
7259    fi
7260  fi
7261  rm -rf conftest*
7262  ;;
7263
7264x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7265s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7266  # Find out which ABI we are using.
7267  echo 'int i;' > conftest.$ac_ext
7268  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7269  (eval $ac_compile) 2>&5
7270  ac_status=$?
7271  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272  (exit $ac_status); }; then
7273    case `/usr/bin/file conftest.o` in
7274      *32-bit*)
7275	case $host in
7276	  x86_64-*kfreebsd*-gnu)
7277	    LD="${LD-ld} -m elf_i386_fbsd"
7278	    ;;
7279	  x86_64-*linux*)
7280	    LD="${LD-ld} -m elf_i386"
7281	    ;;
7282	  ppc64-*linux*|powerpc64-*linux*)
7283	    LD="${LD-ld} -m elf32ppclinux"
7284	    ;;
7285	  s390x-*linux*)
7286	    LD="${LD-ld} -m elf_s390"
7287	    ;;
7288	  sparc64-*linux*)
7289	    LD="${LD-ld} -m elf32_sparc"
7290	    ;;
7291	esac
7292	;;
7293      *64-bit*)
7294	case $host in
7295	  x86_64-*kfreebsd*-gnu)
7296	    LD="${LD-ld} -m elf_x86_64_fbsd"
7297	    ;;
7298	  x86_64-*linux*)
7299	    LD="${LD-ld} -m elf_x86_64"
7300	    ;;
7301	  ppc*-*linux*|powerpc*-*linux*)
7302	    LD="${LD-ld} -m elf64ppc"
7303	    ;;
7304	  s390*-*linux*|s390*-*tpf*)
7305	    LD="${LD-ld} -m elf64_s390"
7306	    ;;
7307	  sparc*-*linux*)
7308	    LD="${LD-ld} -m elf64_sparc"
7309	    ;;
7310	esac
7311	;;
7312    esac
7313  fi
7314  rm -rf conftest*
7315  ;;
7316
7317*-*-sco3.2v5*)
7318  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7319  SAVE_CFLAGS="$CFLAGS"
7320  CFLAGS="$CFLAGS -belf"
7321  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7322$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7323if test "${lt_cv_cc_needs_belf+set}" = set; then
7324  $as_echo_n "(cached) " >&6
7325else
7326  ac_ext=c
7327ac_cpp='$CPP $CPPFLAGS'
7328ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7329ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7330ac_compiler_gnu=$ac_cv_c_compiler_gnu
7331
7332     cat >conftest.$ac_ext <<_ACEOF
7333/* confdefs.h.  */
7334_ACEOF
7335cat confdefs.h >>conftest.$ac_ext
7336cat >>conftest.$ac_ext <<_ACEOF
7337/* end confdefs.h.  */
7338
7339int
7340main ()
7341{
7342
7343  ;
7344  return 0;
7345}
7346_ACEOF
7347rm -f conftest.$ac_objext conftest$ac_exeext
7348if { (ac_try="$ac_link"
7349case "(($ac_try" in
7350  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7351  *) ac_try_echo=$ac_try;;
7352esac
7353eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7354$as_echo "$ac_try_echo") >&5
7355  (eval "$ac_link") 2>conftest.er1
7356  ac_status=$?
7357  grep -v '^ *+' conftest.er1 >conftest.err
7358  rm -f conftest.er1
7359  cat conftest.err >&5
7360  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361  (exit $ac_status); } && {
7362	 test -z "$ac_c_werror_flag" ||
7363	 test ! -s conftest.err
7364       } && test -s conftest$ac_exeext && {
7365	 test "$cross_compiling" = yes ||
7366	 $as_test_x conftest$ac_exeext
7367       }; then
7368  lt_cv_cc_needs_belf=yes
7369else
7370  $as_echo "$as_me: failed program was:" >&5
7371sed 's/^/| /' conftest.$ac_ext >&5
7372
7373	lt_cv_cc_needs_belf=no
7374fi
7375
7376rm -rf conftest.dSYM
7377rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7378      conftest$ac_exeext conftest.$ac_ext
7379     ac_ext=c
7380ac_cpp='$CPP $CPPFLAGS'
7381ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7382ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7383ac_compiler_gnu=$ac_cv_c_compiler_gnu
7384
7385fi
7386{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7387$as_echo "$lt_cv_cc_needs_belf" >&6; }
7388  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7389    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7390    CFLAGS="$SAVE_CFLAGS"
7391  fi
7392  ;;
7393sparc*-*solaris*)
7394  # Find out which ABI we are using.
7395  echo 'int i;' > conftest.$ac_ext
7396  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7397  (eval $ac_compile) 2>&5
7398  ac_status=$?
7399  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7400  (exit $ac_status); }; then
7401    case `/usr/bin/file conftest.o` in
7402    *64-bit*)
7403      case $lt_cv_prog_gnu_ld in
7404      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7405      *)
7406	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7407	  LD="${LD-ld} -64"
7408	fi
7409	;;
7410      esac
7411      ;;
7412    esac
7413  fi
7414  rm -rf conftest*
7415  ;;
7416esac
7417
7418need_locks="$enable_libtool_lock"
7419
7420
7421  case $host_os in
7422    rhapsody* | darwin*)
7423    if test -n "$ac_tool_prefix"; then
7424  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7425set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7426{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7427$as_echo_n "checking for $ac_word... " >&6; }
7428if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7429  $as_echo_n "(cached) " >&6
7430else
7431  if test -n "$DSYMUTIL"; then
7432  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7433else
7434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7435for as_dir in $PATH
7436do
7437  IFS=$as_save_IFS
7438  test -z "$as_dir" && as_dir=.
7439  for ac_exec_ext in '' $ac_executable_extensions; do
7440  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7441    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7442    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7443    break 2
7444  fi
7445done
7446done
7447IFS=$as_save_IFS
7448
7449fi
7450fi
7451DSYMUTIL=$ac_cv_prog_DSYMUTIL
7452if test -n "$DSYMUTIL"; then
7453  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7454$as_echo "$DSYMUTIL" >&6; }
7455else
7456  { $as_echo "$as_me:$LINENO: result: no" >&5
7457$as_echo "no" >&6; }
7458fi
7459
7460
7461fi
7462if test -z "$ac_cv_prog_DSYMUTIL"; then
7463  ac_ct_DSYMUTIL=$DSYMUTIL
7464  # Extract the first word of "dsymutil", so it can be a program name with args.
7465set dummy dsymutil; ac_word=$2
7466{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7467$as_echo_n "checking for $ac_word... " >&6; }
7468if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7469  $as_echo_n "(cached) " >&6
7470else
7471  if test -n "$ac_ct_DSYMUTIL"; then
7472  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7473else
7474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7475for as_dir in $PATH
7476do
7477  IFS=$as_save_IFS
7478  test -z "$as_dir" && as_dir=.
7479  for ac_exec_ext in '' $ac_executable_extensions; do
7480  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7481    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7482    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7483    break 2
7484  fi
7485done
7486done
7487IFS=$as_save_IFS
7488
7489fi
7490fi
7491ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7492if test -n "$ac_ct_DSYMUTIL"; then
7493  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7494$as_echo "$ac_ct_DSYMUTIL" >&6; }
7495else
7496  { $as_echo "$as_me:$LINENO: result: no" >&5
7497$as_echo "no" >&6; }
7498fi
7499
7500  if test "x$ac_ct_DSYMUTIL" = x; then
7501    DSYMUTIL=":"
7502  else
7503    case $cross_compiling:$ac_tool_warned in
7504yes:)
7505{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7506$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7507ac_tool_warned=yes ;;
7508esac
7509    DSYMUTIL=$ac_ct_DSYMUTIL
7510  fi
7511else
7512  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7513fi
7514
7515    if test -n "$ac_tool_prefix"; then
7516  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7517set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7518{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7519$as_echo_n "checking for $ac_word... " >&6; }
7520if test "${ac_cv_prog_NMEDIT+set}" = set; then
7521  $as_echo_n "(cached) " >&6
7522else
7523  if test -n "$NMEDIT"; then
7524  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7525else
7526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7527for as_dir in $PATH
7528do
7529  IFS=$as_save_IFS
7530  test -z "$as_dir" && as_dir=.
7531  for ac_exec_ext in '' $ac_executable_extensions; do
7532  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7533    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7534    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7535    break 2
7536  fi
7537done
7538done
7539IFS=$as_save_IFS
7540
7541fi
7542fi
7543NMEDIT=$ac_cv_prog_NMEDIT
7544if test -n "$NMEDIT"; then
7545  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7546$as_echo "$NMEDIT" >&6; }
7547else
7548  { $as_echo "$as_me:$LINENO: result: no" >&5
7549$as_echo "no" >&6; }
7550fi
7551
7552
7553fi
7554if test -z "$ac_cv_prog_NMEDIT"; then
7555  ac_ct_NMEDIT=$NMEDIT
7556  # Extract the first word of "nmedit", so it can be a program name with args.
7557set dummy nmedit; ac_word=$2
7558{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7559$as_echo_n "checking for $ac_word... " >&6; }
7560if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7561  $as_echo_n "(cached) " >&6
7562else
7563  if test -n "$ac_ct_NMEDIT"; then
7564  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7565else
7566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7567for as_dir in $PATH
7568do
7569  IFS=$as_save_IFS
7570  test -z "$as_dir" && as_dir=.
7571  for ac_exec_ext in '' $ac_executable_extensions; do
7572  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7573    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7574    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7575    break 2
7576  fi
7577done
7578done
7579IFS=$as_save_IFS
7580
7581fi
7582fi
7583ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7584if test -n "$ac_ct_NMEDIT"; then
7585  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7586$as_echo "$ac_ct_NMEDIT" >&6; }
7587else
7588  { $as_echo "$as_me:$LINENO: result: no" >&5
7589$as_echo "no" >&6; }
7590fi
7591
7592  if test "x$ac_ct_NMEDIT" = x; then
7593    NMEDIT=":"
7594  else
7595    case $cross_compiling:$ac_tool_warned in
7596yes:)
7597{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7598$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7599ac_tool_warned=yes ;;
7600esac
7601    NMEDIT=$ac_ct_NMEDIT
7602  fi
7603else
7604  NMEDIT="$ac_cv_prog_NMEDIT"
7605fi
7606
7607    if test -n "$ac_tool_prefix"; then
7608  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7609set dummy ${ac_tool_prefix}lipo; ac_word=$2
7610{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7611$as_echo_n "checking for $ac_word... " >&6; }
7612if test "${ac_cv_prog_LIPO+set}" = set; then
7613  $as_echo_n "(cached) " >&6
7614else
7615  if test -n "$LIPO"; then
7616  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7617else
7618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7619for as_dir in $PATH
7620do
7621  IFS=$as_save_IFS
7622  test -z "$as_dir" && as_dir=.
7623  for ac_exec_ext in '' $ac_executable_extensions; do
7624  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7625    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7626    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7627    break 2
7628  fi
7629done
7630done
7631IFS=$as_save_IFS
7632
7633fi
7634fi
7635LIPO=$ac_cv_prog_LIPO
7636if test -n "$LIPO"; then
7637  { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
7638$as_echo "$LIPO" >&6; }
7639else
7640  { $as_echo "$as_me:$LINENO: result: no" >&5
7641$as_echo "no" >&6; }
7642fi
7643
7644
7645fi
7646if test -z "$ac_cv_prog_LIPO"; then
7647  ac_ct_LIPO=$LIPO
7648  # Extract the first word of "lipo", so it can be a program name with args.
7649set dummy lipo; ac_word=$2
7650{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7651$as_echo_n "checking for $ac_word... " >&6; }
7652if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7653  $as_echo_n "(cached) " >&6
7654else
7655  if test -n "$ac_ct_LIPO"; then
7656  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7657else
7658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7659for as_dir in $PATH
7660do
7661  IFS=$as_save_IFS
7662  test -z "$as_dir" && as_dir=.
7663  for ac_exec_ext in '' $ac_executable_extensions; do
7664  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7665    ac_cv_prog_ac_ct_LIPO="lipo"
7666    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7667    break 2
7668  fi
7669done
7670done
7671IFS=$as_save_IFS
7672
7673fi
7674fi
7675ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7676if test -n "$ac_ct_LIPO"; then
7677  { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7678$as_echo "$ac_ct_LIPO" >&6; }
7679else
7680  { $as_echo "$as_me:$LINENO: result: no" >&5
7681$as_echo "no" >&6; }
7682fi
7683
7684  if test "x$ac_ct_LIPO" = x; then
7685    LIPO=":"
7686  else
7687    case $cross_compiling:$ac_tool_warned in
7688yes:)
7689{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7690$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7691ac_tool_warned=yes ;;
7692esac
7693    LIPO=$ac_ct_LIPO
7694  fi
7695else
7696  LIPO="$ac_cv_prog_LIPO"
7697fi
7698
7699    if test -n "$ac_tool_prefix"; then
7700  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7701set dummy ${ac_tool_prefix}otool; ac_word=$2
7702{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7703$as_echo_n "checking for $ac_word... " >&6; }
7704if test "${ac_cv_prog_OTOOL+set}" = set; then
7705  $as_echo_n "(cached) " >&6
7706else
7707  if test -n "$OTOOL"; then
7708  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7709else
7710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7711for as_dir in $PATH
7712do
7713  IFS=$as_save_IFS
7714  test -z "$as_dir" && as_dir=.
7715  for ac_exec_ext in '' $ac_executable_extensions; do
7716  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7717    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7718    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7719    break 2
7720  fi
7721done
7722done
7723IFS=$as_save_IFS
7724
7725fi
7726fi
7727OTOOL=$ac_cv_prog_OTOOL
7728if test -n "$OTOOL"; then
7729  { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
7730$as_echo "$OTOOL" >&6; }
7731else
7732  { $as_echo "$as_me:$LINENO: result: no" >&5
7733$as_echo "no" >&6; }
7734fi
7735
7736
7737fi
7738if test -z "$ac_cv_prog_OTOOL"; then
7739  ac_ct_OTOOL=$OTOOL
7740  # Extract the first word of "otool", so it can be a program name with args.
7741set dummy otool; ac_word=$2
7742{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7743$as_echo_n "checking for $ac_word... " >&6; }
7744if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7745  $as_echo_n "(cached) " >&6
7746else
7747  if test -n "$ac_ct_OTOOL"; then
7748  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7749else
7750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7751for as_dir in $PATH
7752do
7753  IFS=$as_save_IFS
7754  test -z "$as_dir" && as_dir=.
7755  for ac_exec_ext in '' $ac_executable_extensions; do
7756  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7757    ac_cv_prog_ac_ct_OTOOL="otool"
7758    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7759    break 2
7760  fi
7761done
7762done
7763IFS=$as_save_IFS
7764
7765fi
7766fi
7767ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7768if test -n "$ac_ct_OTOOL"; then
7769  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7770$as_echo "$ac_ct_OTOOL" >&6; }
7771else
7772  { $as_echo "$as_me:$LINENO: result: no" >&5
7773$as_echo "no" >&6; }
7774fi
7775
7776  if test "x$ac_ct_OTOOL" = x; then
7777    OTOOL=":"
7778  else
7779    case $cross_compiling:$ac_tool_warned in
7780yes:)
7781{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7782$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7783ac_tool_warned=yes ;;
7784esac
7785    OTOOL=$ac_ct_OTOOL
7786  fi
7787else
7788  OTOOL="$ac_cv_prog_OTOOL"
7789fi
7790
7791    if test -n "$ac_tool_prefix"; then
7792  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7793set dummy ${ac_tool_prefix}otool64; ac_word=$2
7794{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7795$as_echo_n "checking for $ac_word... " >&6; }
7796if test "${ac_cv_prog_OTOOL64+set}" = set; then
7797  $as_echo_n "(cached) " >&6
7798else
7799  if test -n "$OTOOL64"; then
7800  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7801else
7802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7803for as_dir in $PATH
7804do
7805  IFS=$as_save_IFS
7806  test -z "$as_dir" && as_dir=.
7807  for ac_exec_ext in '' $ac_executable_extensions; do
7808  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7809    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7810    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7811    break 2
7812  fi
7813done
7814done
7815IFS=$as_save_IFS
7816
7817fi
7818fi
7819OTOOL64=$ac_cv_prog_OTOOL64
7820if test -n "$OTOOL64"; then
7821  { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
7822$as_echo "$OTOOL64" >&6; }
7823else
7824  { $as_echo "$as_me:$LINENO: result: no" >&5
7825$as_echo "no" >&6; }
7826fi
7827
7828
7829fi
7830if test -z "$ac_cv_prog_OTOOL64"; then
7831  ac_ct_OTOOL64=$OTOOL64
7832  # Extract the first word of "otool64", so it can be a program name with args.
7833set dummy otool64; ac_word=$2
7834{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7835$as_echo_n "checking for $ac_word... " >&6; }
7836if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7837  $as_echo_n "(cached) " >&6
7838else
7839  if test -n "$ac_ct_OTOOL64"; then
7840  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7841else
7842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7843for as_dir in $PATH
7844do
7845  IFS=$as_save_IFS
7846  test -z "$as_dir" && as_dir=.
7847  for ac_exec_ext in '' $ac_executable_extensions; do
7848  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7849    ac_cv_prog_ac_ct_OTOOL64="otool64"
7850    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7851    break 2
7852  fi
7853done
7854done
7855IFS=$as_save_IFS
7856
7857fi
7858fi
7859ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7860if test -n "$ac_ct_OTOOL64"; then
7861  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7862$as_echo "$ac_ct_OTOOL64" >&6; }
7863else
7864  { $as_echo "$as_me:$LINENO: result: no" >&5
7865$as_echo "no" >&6; }
7866fi
7867
7868  if test "x$ac_ct_OTOOL64" = x; then
7869    OTOOL64=":"
7870  else
7871    case $cross_compiling:$ac_tool_warned in
7872yes:)
7873{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7874$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7875ac_tool_warned=yes ;;
7876esac
7877    OTOOL64=$ac_ct_OTOOL64
7878  fi
7879else
7880  OTOOL64="$ac_cv_prog_OTOOL64"
7881fi
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7910$as_echo_n "checking for -single_module linker flag... " >&6; }
7911if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7912  $as_echo_n "(cached) " >&6
7913else
7914  lt_cv_apple_cc_single_mod=no
7915      if test -z "${LT_MULTI_MODULE}"; then
7916	# By default we will add the -single_module flag. You can override
7917	# by either setting the environment variable LT_MULTI_MODULE
7918	# non-empty at configure time, or by adding -multi_module to the
7919	# link flags.
7920	rm -rf libconftest.dylib*
7921	echo "int foo(void){return 1;}" > conftest.c
7922	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7923-dynamiclib -Wl,-single_module conftest.c" >&5
7924	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7925	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7926        _lt_result=$?
7927	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7928	  lt_cv_apple_cc_single_mod=yes
7929	else
7930	  cat conftest.err >&5
7931	fi
7932	rm -rf libconftest.dylib*
7933	rm -f conftest.*
7934      fi
7935fi
7936{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7937$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7938    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7939$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7940if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7941  $as_echo_n "(cached) " >&6
7942else
7943  lt_cv_ld_exported_symbols_list=no
7944      save_LDFLAGS=$LDFLAGS
7945      echo "_main" > conftest.sym
7946      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7947      cat >conftest.$ac_ext <<_ACEOF
7948/* confdefs.h.  */
7949_ACEOF
7950cat confdefs.h >>conftest.$ac_ext
7951cat >>conftest.$ac_ext <<_ACEOF
7952/* end confdefs.h.  */
7953
7954int
7955main ()
7956{
7957
7958  ;
7959  return 0;
7960}
7961_ACEOF
7962rm -f conftest.$ac_objext conftest$ac_exeext
7963if { (ac_try="$ac_link"
7964case "(($ac_try" in
7965  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7966  *) ac_try_echo=$ac_try;;
7967esac
7968eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7969$as_echo "$ac_try_echo") >&5
7970  (eval "$ac_link") 2>conftest.er1
7971  ac_status=$?
7972  grep -v '^ *+' conftest.er1 >conftest.err
7973  rm -f conftest.er1
7974  cat conftest.err >&5
7975  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976  (exit $ac_status); } && {
7977	 test -z "$ac_c_werror_flag" ||
7978	 test ! -s conftest.err
7979       } && test -s conftest$ac_exeext && {
7980	 test "$cross_compiling" = yes ||
7981	 $as_test_x conftest$ac_exeext
7982       }; then
7983  lt_cv_ld_exported_symbols_list=yes
7984else
7985  $as_echo "$as_me: failed program was:" >&5
7986sed 's/^/| /' conftest.$ac_ext >&5
7987
7988	lt_cv_ld_exported_symbols_list=no
7989fi
7990
7991rm -rf conftest.dSYM
7992rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7993      conftest$ac_exeext conftest.$ac_ext
7994	LDFLAGS="$save_LDFLAGS"
7995
7996fi
7997{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7998$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7999    case $host_os in
8000    rhapsody* | darwin1.[012])
8001      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8002    darwin1.*)
8003      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8004    darwin*) # darwin 5.x on
8005      # if running on 10.5 or later, the deployment target defaults
8006      # to the OS version, if on x86, and 10.4, the deployment
8007      # target defaults to 10.4. Don't you love it?
8008      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8009	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8010	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8011	10.[012]*)
8012	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8013	10.*)
8014	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8015      esac
8016    ;;
8017  esac
8018    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8019      _lt_dar_single_mod='$single_module'
8020    fi
8021    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8022      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8023    else
8024      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8025    fi
8026    if test "$DSYMUTIL" != ":"; then
8027      _lt_dsymutil='~$DSYMUTIL $lib || :'
8028    else
8029      _lt_dsymutil=
8030    fi
8031    ;;
8032  esac
8033
8034
8035for ac_header in dlfcn.h
8036do
8037as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8038{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8039$as_echo_n "checking for $ac_header... " >&6; }
8040if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8041  $as_echo_n "(cached) " >&6
8042else
8043  cat >conftest.$ac_ext <<_ACEOF
8044/* confdefs.h.  */
8045_ACEOF
8046cat confdefs.h >>conftest.$ac_ext
8047cat >>conftest.$ac_ext <<_ACEOF
8048/* end confdefs.h.  */
8049$ac_includes_default
8050
8051#include <$ac_header>
8052_ACEOF
8053rm -f conftest.$ac_objext
8054if { (ac_try="$ac_compile"
8055case "(($ac_try" in
8056  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8057  *) ac_try_echo=$ac_try;;
8058esac
8059eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8060$as_echo "$ac_try_echo") >&5
8061  (eval "$ac_compile") 2>conftest.er1
8062  ac_status=$?
8063  grep -v '^ *+' conftest.er1 >conftest.err
8064  rm -f conftest.er1
8065  cat conftest.err >&5
8066  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067  (exit $ac_status); } && {
8068	 test -z "$ac_c_werror_flag" ||
8069	 test ! -s conftest.err
8070       } && test -s conftest.$ac_objext; then
8071  eval "$as_ac_Header=yes"
8072else
8073  $as_echo "$as_me: failed program was:" >&5
8074sed 's/^/| /' conftest.$ac_ext >&5
8075
8076	eval "$as_ac_Header=no"
8077fi
8078
8079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8080fi
8081ac_res=`eval 'as_val=${'$as_ac_Header'}
8082		 $as_echo "$as_val"'`
8083	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8084$as_echo "$ac_res" >&6; }
8085as_val=`eval 'as_val=${'$as_ac_Header'}
8086		 $as_echo "$as_val"'`
8087   if test "x$as_val" = x""yes; then
8088  cat >>confdefs.h <<_ACEOF
8089#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8090_ACEOF
8091
8092fi
8093
8094done
8095
8096
8097
8098ac_ext=cpp
8099ac_cpp='$CXXCPP $CPPFLAGS'
8100ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8101ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8102ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8103if test -z "$CXX"; then
8104  if test -n "$CCC"; then
8105    CXX=$CCC
8106  else
8107    if test -n "$ac_tool_prefix"; then
8108  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8109  do
8110    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8111set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8112{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8113$as_echo_n "checking for $ac_word... " >&6; }
8114if test "${ac_cv_prog_CXX+set}" = set; then
8115  $as_echo_n "(cached) " >&6
8116else
8117  if test -n "$CXX"; then
8118  ac_cv_prog_CXX="$CXX" # Let the user override the test.
8119else
8120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8121for as_dir in $PATH
8122do
8123  IFS=$as_save_IFS
8124  test -z "$as_dir" && as_dir=.
8125  for ac_exec_ext in '' $ac_executable_extensions; do
8126  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8127    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8128    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8129    break 2
8130  fi
8131done
8132done
8133IFS=$as_save_IFS
8134
8135fi
8136fi
8137CXX=$ac_cv_prog_CXX
8138if test -n "$CXX"; then
8139  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
8140$as_echo "$CXX" >&6; }
8141else
8142  { $as_echo "$as_me:$LINENO: result: no" >&5
8143$as_echo "no" >&6; }
8144fi
8145
8146
8147    test -n "$CXX" && break
8148  done
8149fi
8150if test -z "$CXX"; then
8151  ac_ct_CXX=$CXX
8152  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8153do
8154  # Extract the first word of "$ac_prog", so it can be a program name with args.
8155set dummy $ac_prog; ac_word=$2
8156{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8157$as_echo_n "checking for $ac_word... " >&6; }
8158if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8159  $as_echo_n "(cached) " >&6
8160else
8161  if test -n "$ac_ct_CXX"; then
8162  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8163else
8164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8165for as_dir in $PATH
8166do
8167  IFS=$as_save_IFS
8168  test -z "$as_dir" && as_dir=.
8169  for ac_exec_ext in '' $ac_executable_extensions; do
8170  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8171    ac_cv_prog_ac_ct_CXX="$ac_prog"
8172    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8173    break 2
8174  fi
8175done
8176done
8177IFS=$as_save_IFS
8178
8179fi
8180fi
8181ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8182if test -n "$ac_ct_CXX"; then
8183  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8184$as_echo "$ac_ct_CXX" >&6; }
8185else
8186  { $as_echo "$as_me:$LINENO: result: no" >&5
8187$as_echo "no" >&6; }
8188fi
8189
8190
8191  test -n "$ac_ct_CXX" && break
8192done
8193
8194  if test "x$ac_ct_CXX" = x; then
8195    CXX="g++"
8196  else
8197    case $cross_compiling:$ac_tool_warned in
8198yes:)
8199{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8200$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8201ac_tool_warned=yes ;;
8202esac
8203    CXX=$ac_ct_CXX
8204  fi
8205fi
8206
8207  fi
8208fi
8209# Provide some information about the compiler.
8210$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8211set X $ac_compile
8212ac_compiler=$2
8213{ (ac_try="$ac_compiler --version >&5"
8214case "(($ac_try" in
8215  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8216  *) ac_try_echo=$ac_try;;
8217esac
8218eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8219$as_echo "$ac_try_echo") >&5
8220  (eval "$ac_compiler --version >&5") 2>&5
8221  ac_status=$?
8222  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223  (exit $ac_status); }
8224{ (ac_try="$ac_compiler -v >&5"
8225case "(($ac_try" in
8226  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8227  *) ac_try_echo=$ac_try;;
8228esac
8229eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8230$as_echo "$ac_try_echo") >&5
8231  (eval "$ac_compiler -v >&5") 2>&5
8232  ac_status=$?
8233  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234  (exit $ac_status); }
8235{ (ac_try="$ac_compiler -V >&5"
8236case "(($ac_try" in
8237  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8238  *) ac_try_echo=$ac_try;;
8239esac
8240eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8241$as_echo "$ac_try_echo") >&5
8242  (eval "$ac_compiler -V >&5") 2>&5
8243  ac_status=$?
8244  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245  (exit $ac_status); }
8246
8247{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8248$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8249if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8250  $as_echo_n "(cached) " >&6
8251else
8252  cat >conftest.$ac_ext <<_ACEOF
8253/* confdefs.h.  */
8254_ACEOF
8255cat confdefs.h >>conftest.$ac_ext
8256cat >>conftest.$ac_ext <<_ACEOF
8257/* end confdefs.h.  */
8258
8259int
8260main ()
8261{
8262#ifndef __GNUC__
8263       choke me
8264#endif
8265
8266  ;
8267  return 0;
8268}
8269_ACEOF
8270rm -f conftest.$ac_objext
8271if { (ac_try="$ac_compile"
8272case "(($ac_try" in
8273  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8274  *) ac_try_echo=$ac_try;;
8275esac
8276eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8277$as_echo "$ac_try_echo") >&5
8278  (eval "$ac_compile") 2>conftest.er1
8279  ac_status=$?
8280  grep -v '^ *+' conftest.er1 >conftest.err
8281  rm -f conftest.er1
8282  cat conftest.err >&5
8283  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8284  (exit $ac_status); } && {
8285	 test -z "$ac_cxx_werror_flag" ||
8286	 test ! -s conftest.err
8287       } && test -s conftest.$ac_objext; then
8288  ac_compiler_gnu=yes
8289else
8290  $as_echo "$as_me: failed program was:" >&5
8291sed 's/^/| /' conftest.$ac_ext >&5
8292
8293	ac_compiler_gnu=no
8294fi
8295
8296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8297ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8298
8299fi
8300{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8301$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
8302if test $ac_compiler_gnu = yes; then
8303  GXX=yes
8304else
8305  GXX=
8306fi
8307ac_test_CXXFLAGS=${CXXFLAGS+set}
8308ac_save_CXXFLAGS=$CXXFLAGS
8309{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8310$as_echo_n "checking whether $CXX accepts -g... " >&6; }
8311if test "${ac_cv_prog_cxx_g+set}" = set; then
8312  $as_echo_n "(cached) " >&6
8313else
8314  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8315   ac_cxx_werror_flag=yes
8316   ac_cv_prog_cxx_g=no
8317   CXXFLAGS="-g"
8318   cat >conftest.$ac_ext <<_ACEOF
8319/* confdefs.h.  */
8320_ACEOF
8321cat confdefs.h >>conftest.$ac_ext
8322cat >>conftest.$ac_ext <<_ACEOF
8323/* end confdefs.h.  */
8324
8325int
8326main ()
8327{
8328
8329  ;
8330  return 0;
8331}
8332_ACEOF
8333rm -f conftest.$ac_objext
8334if { (ac_try="$ac_compile"
8335case "(($ac_try" in
8336  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8337  *) ac_try_echo=$ac_try;;
8338esac
8339eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8340$as_echo "$ac_try_echo") >&5
8341  (eval "$ac_compile") 2>conftest.er1
8342  ac_status=$?
8343  grep -v '^ *+' conftest.er1 >conftest.err
8344  rm -f conftest.er1
8345  cat conftest.err >&5
8346  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347  (exit $ac_status); } && {
8348	 test -z "$ac_cxx_werror_flag" ||
8349	 test ! -s conftest.err
8350       } && test -s conftest.$ac_objext; then
8351  ac_cv_prog_cxx_g=yes
8352else
8353  $as_echo "$as_me: failed program was:" >&5
8354sed 's/^/| /' conftest.$ac_ext >&5
8355
8356	CXXFLAGS=""
8357      cat >conftest.$ac_ext <<_ACEOF
8358/* confdefs.h.  */
8359_ACEOF
8360cat confdefs.h >>conftest.$ac_ext
8361cat >>conftest.$ac_ext <<_ACEOF
8362/* end confdefs.h.  */
8363
8364int
8365main ()
8366{
8367
8368  ;
8369  return 0;
8370}
8371_ACEOF
8372rm -f conftest.$ac_objext
8373if { (ac_try="$ac_compile"
8374case "(($ac_try" in
8375  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8376  *) ac_try_echo=$ac_try;;
8377esac
8378eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8379$as_echo "$ac_try_echo") >&5
8380  (eval "$ac_compile") 2>conftest.er1
8381  ac_status=$?
8382  grep -v '^ *+' conftest.er1 >conftest.err
8383  rm -f conftest.er1
8384  cat conftest.err >&5
8385  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386  (exit $ac_status); } && {
8387	 test -z "$ac_cxx_werror_flag" ||
8388	 test ! -s conftest.err
8389       } && test -s conftest.$ac_objext; then
8390  :
8391else
8392  $as_echo "$as_me: failed program was:" >&5
8393sed 's/^/| /' conftest.$ac_ext >&5
8394
8395	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8396	 CXXFLAGS="-g"
8397	 cat >conftest.$ac_ext <<_ACEOF
8398/* confdefs.h.  */
8399_ACEOF
8400cat confdefs.h >>conftest.$ac_ext
8401cat >>conftest.$ac_ext <<_ACEOF
8402/* end confdefs.h.  */
8403
8404int
8405main ()
8406{
8407
8408  ;
8409  return 0;
8410}
8411_ACEOF
8412rm -f conftest.$ac_objext
8413if { (ac_try="$ac_compile"
8414case "(($ac_try" in
8415  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8416  *) ac_try_echo=$ac_try;;
8417esac
8418eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8419$as_echo "$ac_try_echo") >&5
8420  (eval "$ac_compile") 2>conftest.er1
8421  ac_status=$?
8422  grep -v '^ *+' conftest.er1 >conftest.err
8423  rm -f conftest.er1
8424  cat conftest.err >&5
8425  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426  (exit $ac_status); } && {
8427	 test -z "$ac_cxx_werror_flag" ||
8428	 test ! -s conftest.err
8429       } && test -s conftest.$ac_objext; then
8430  ac_cv_prog_cxx_g=yes
8431else
8432  $as_echo "$as_me: failed program was:" >&5
8433sed 's/^/| /' conftest.$ac_ext >&5
8434
8435
8436fi
8437
8438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8439fi
8440
8441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8442fi
8443
8444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8445   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8446fi
8447{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8448$as_echo "$ac_cv_prog_cxx_g" >&6; }
8449if test "$ac_test_CXXFLAGS" = set; then
8450  CXXFLAGS=$ac_save_CXXFLAGS
8451elif test $ac_cv_prog_cxx_g = yes; then
8452  if test "$GXX" = yes; then
8453    CXXFLAGS="-g -O2"
8454  else
8455    CXXFLAGS="-g"
8456  fi
8457else
8458  if test "$GXX" = yes; then
8459    CXXFLAGS="-O2"
8460  else
8461    CXXFLAGS=
8462  fi
8463fi
8464ac_ext=c
8465ac_cpp='$CPP $CPPFLAGS'
8466ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8467ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8468ac_compiler_gnu=$ac_cv_c_compiler_gnu
8469
8470depcc="$CXX"  am_compiler_list=
8471
8472{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8473$as_echo_n "checking dependency style of $depcc... " >&6; }
8474if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
8475  $as_echo_n "(cached) " >&6
8476else
8477  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8478  # We make a subdir and do the tests there.  Otherwise we can end up
8479  # making bogus files that we don't know about and never remove.  For
8480  # instance it was reported that on HP-UX the gcc test will end up
8481  # making a dummy file named `D' -- because `-MD' means `put the output
8482  # in D'.
8483  mkdir conftest.dir
8484  # Copy depcomp to subdir because otherwise we won't find it if we're
8485  # using a relative directory.
8486  cp "$am_depcomp" conftest.dir
8487  cd conftest.dir
8488  # We will build objects and dependencies in a subdirectory because
8489  # it helps to detect inapplicable dependency modes.  For instance
8490  # both Tru64's cc and ICC support -MD to output dependencies as a
8491  # side effect of compilation, but ICC will put the dependencies in
8492  # the current directory while Tru64 will put them in the object
8493  # directory.
8494  mkdir sub
8495
8496  am_cv_CXX_dependencies_compiler_type=none
8497  if test "$am_compiler_list" = ""; then
8498     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8499  fi
8500  am__universal=false
8501  case " $depcc " in #(
8502     *\ -arch\ *\ -arch\ *) am__universal=true ;;
8503     esac
8504
8505  for depmode in $am_compiler_list; do
8506    # Setup a source with many dependencies, because some compilers
8507    # like to wrap large dependency lists on column 80 (with \), and
8508    # we should not choose a depcomp mode which is confused by this.
8509    #
8510    # We need to recreate these files for each test, as the compiler may
8511    # overwrite some of them when testing with obscure command lines.
8512    # This happens at least with the AIX C compiler.
8513    : > sub/conftest.c
8514    for i in 1 2 3 4 5 6; do
8515      echo '#include "conftst'$i'.h"' >> sub/conftest.c
8516      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8517      # Solaris 8's {/usr,}/bin/sh.
8518      touch sub/conftst$i.h
8519    done
8520    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8521
8522    # We check with `-c' and `-o' for the sake of the "dashmstdout"
8523    # mode.  It turns out that the SunPro C++ compiler does not properly
8524    # handle `-M -o', and we need to detect this.  Also, some Intel
8525    # versions had trouble with output in subdirs
8526    am__obj=sub/conftest.${OBJEXT-o}
8527    am__minus_obj="-o $am__obj"
8528    case $depmode in
8529    gcc)
8530      # This depmode causes a compiler race in universal mode.
8531      test "$am__universal" = false || continue
8532      ;;
8533    nosideeffect)
8534      # after this tag, mechanisms are not by side-effect, so they'll
8535      # only be used when explicitly requested
8536      if test "x$enable_dependency_tracking" = xyes; then
8537	continue
8538      else
8539	break
8540      fi
8541      ;;
8542    msvisualcpp | msvcmsys)
8543      # This compiler won't grok `-c -o', but also, the minuso test has
8544      # not run yet.  These depmodes are late enough in the game, and
8545      # so weak that their functioning should not be impacted.
8546      am__obj=conftest.${OBJEXT-o}
8547      am__minus_obj=
8548      ;;
8549    none) break ;;
8550    esac
8551    if depmode=$depmode \
8552       source=sub/conftest.c object=$am__obj \
8553       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8554       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
8555         >/dev/null 2>conftest.err &&
8556       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8557       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8558       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
8559       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8560      # icc doesn't choke on unknown options, it will just issue warnings
8561      # or remarks (even with -Werror).  So we grep stderr for any message
8562      # that says an option was ignored or not supported.
8563      # When given -MP, icc 7.0 and 7.1 complain thusly:
8564      #   icc: Command line warning: ignoring option '-M'; no argument required
8565      # The diagnosis changed in icc 8.0:
8566      #   icc: Command line remark: option '-MP' not supported
8567      if (grep 'ignoring option' conftest.err ||
8568          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8569        am_cv_CXX_dependencies_compiler_type=$depmode
8570        break
8571      fi
8572    fi
8573  done
8574
8575  cd ..
8576  rm -rf conftest.dir
8577else
8578  am_cv_CXX_dependencies_compiler_type=none
8579fi
8580
8581fi
8582{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
8583$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8584CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8585
8586 if
8587  test "x$enable_dependency_tracking" != xno \
8588  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8589  am__fastdepCXX_TRUE=
8590  am__fastdepCXX_FALSE='#'
8591else
8592  am__fastdepCXX_TRUE='#'
8593  am__fastdepCXX_FALSE=
8594fi
8595
8596
8597if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8598    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8599    (test "X$CXX" != "Xg++"))) ; then
8600  ac_ext=cpp
8601ac_cpp='$CXXCPP $CPPFLAGS'
8602ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8603ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8604ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8605{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8606$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8607if test -z "$CXXCPP"; then
8608  if test "${ac_cv_prog_CXXCPP+set}" = set; then
8609  $as_echo_n "(cached) " >&6
8610else
8611      # Double quotes because CXXCPP needs to be expanded
8612    for CXXCPP in "$CXX -E" "/lib/cpp"
8613    do
8614      ac_preproc_ok=false
8615for ac_cxx_preproc_warn_flag in '' yes
8616do
8617  # Use a header file that comes with gcc, so configuring glibc
8618  # with a fresh cross-compiler works.
8619  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8620  # <limits.h> exists even on freestanding compilers.
8621  # On the NeXT, cc -E runs the code through the compiler's parser,
8622  # not just through cpp. "Syntax error" is here to catch this case.
8623  cat >conftest.$ac_ext <<_ACEOF
8624/* confdefs.h.  */
8625_ACEOF
8626cat confdefs.h >>conftest.$ac_ext
8627cat >>conftest.$ac_ext <<_ACEOF
8628/* end confdefs.h.  */
8629#ifdef __STDC__
8630# include <limits.h>
8631#else
8632# include <assert.h>
8633#endif
8634		     Syntax error
8635_ACEOF
8636if { (ac_try="$ac_cpp conftest.$ac_ext"
8637case "(($ac_try" in
8638  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8639  *) ac_try_echo=$ac_try;;
8640esac
8641eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8642$as_echo "$ac_try_echo") >&5
8643  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8644  ac_status=$?
8645  grep -v '^ *+' conftest.er1 >conftest.err
8646  rm -f conftest.er1
8647  cat conftest.err >&5
8648  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649  (exit $ac_status); } >/dev/null && {
8650	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8651	 test ! -s conftest.err
8652       }; then
8653  :
8654else
8655  $as_echo "$as_me: failed program was:" >&5
8656sed 's/^/| /' conftest.$ac_ext >&5
8657
8658  # Broken: fails on valid input.
8659continue
8660fi
8661
8662rm -f conftest.err conftest.$ac_ext
8663
8664  # OK, works on sane cases.  Now check whether nonexistent headers
8665  # can be detected and how.
8666  cat >conftest.$ac_ext <<_ACEOF
8667/* confdefs.h.  */
8668_ACEOF
8669cat confdefs.h >>conftest.$ac_ext
8670cat >>conftest.$ac_ext <<_ACEOF
8671/* end confdefs.h.  */
8672#include <ac_nonexistent.h>
8673_ACEOF
8674if { (ac_try="$ac_cpp conftest.$ac_ext"
8675case "(($ac_try" in
8676  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8677  *) ac_try_echo=$ac_try;;
8678esac
8679eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8680$as_echo "$ac_try_echo") >&5
8681  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8682  ac_status=$?
8683  grep -v '^ *+' conftest.er1 >conftest.err
8684  rm -f conftest.er1
8685  cat conftest.err >&5
8686  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687  (exit $ac_status); } >/dev/null && {
8688	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8689	 test ! -s conftest.err
8690       }; then
8691  # Broken: success on invalid input.
8692continue
8693else
8694  $as_echo "$as_me: failed program was:" >&5
8695sed 's/^/| /' conftest.$ac_ext >&5
8696
8697  # Passes both tests.
8698ac_preproc_ok=:
8699break
8700fi
8701
8702rm -f conftest.err conftest.$ac_ext
8703
8704done
8705# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8706rm -f conftest.err conftest.$ac_ext
8707if $ac_preproc_ok; then
8708  break
8709fi
8710
8711    done
8712    ac_cv_prog_CXXCPP=$CXXCPP
8713
8714fi
8715  CXXCPP=$ac_cv_prog_CXXCPP
8716else
8717  ac_cv_prog_CXXCPP=$CXXCPP
8718fi
8719{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
8720$as_echo "$CXXCPP" >&6; }
8721ac_preproc_ok=false
8722for ac_cxx_preproc_warn_flag in '' yes
8723do
8724  # Use a header file that comes with gcc, so configuring glibc
8725  # with a fresh cross-compiler works.
8726  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8727  # <limits.h> exists even on freestanding compilers.
8728  # On the NeXT, cc -E runs the code through the compiler's parser,
8729  # not just through cpp. "Syntax error" is here to catch this case.
8730  cat >conftest.$ac_ext <<_ACEOF
8731/* confdefs.h.  */
8732_ACEOF
8733cat confdefs.h >>conftest.$ac_ext
8734cat >>conftest.$ac_ext <<_ACEOF
8735/* end confdefs.h.  */
8736#ifdef __STDC__
8737# include <limits.h>
8738#else
8739# include <assert.h>
8740#endif
8741		     Syntax error
8742_ACEOF
8743if { (ac_try="$ac_cpp conftest.$ac_ext"
8744case "(($ac_try" in
8745  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8746  *) ac_try_echo=$ac_try;;
8747esac
8748eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8749$as_echo "$ac_try_echo") >&5
8750  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8751  ac_status=$?
8752  grep -v '^ *+' conftest.er1 >conftest.err
8753  rm -f conftest.er1
8754  cat conftest.err >&5
8755  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756  (exit $ac_status); } >/dev/null && {
8757	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8758	 test ! -s conftest.err
8759       }; then
8760  :
8761else
8762  $as_echo "$as_me: failed program was:" >&5
8763sed 's/^/| /' conftest.$ac_ext >&5
8764
8765  # Broken: fails on valid input.
8766continue
8767fi
8768
8769rm -f conftest.err conftest.$ac_ext
8770
8771  # OK, works on sane cases.  Now check whether nonexistent headers
8772  # can be detected and how.
8773  cat >conftest.$ac_ext <<_ACEOF
8774/* confdefs.h.  */
8775_ACEOF
8776cat confdefs.h >>conftest.$ac_ext
8777cat >>conftest.$ac_ext <<_ACEOF
8778/* end confdefs.h.  */
8779#include <ac_nonexistent.h>
8780_ACEOF
8781if { (ac_try="$ac_cpp conftest.$ac_ext"
8782case "(($ac_try" in
8783  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8784  *) ac_try_echo=$ac_try;;
8785esac
8786eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8787$as_echo "$ac_try_echo") >&5
8788  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8789  ac_status=$?
8790  grep -v '^ *+' conftest.er1 >conftest.err
8791  rm -f conftest.er1
8792  cat conftest.err >&5
8793  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794  (exit $ac_status); } >/dev/null && {
8795	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8796	 test ! -s conftest.err
8797       }; then
8798  # Broken: success on invalid input.
8799continue
8800else
8801  $as_echo "$as_me: failed program was:" >&5
8802sed 's/^/| /' conftest.$ac_ext >&5
8803
8804  # Passes both tests.
8805ac_preproc_ok=:
8806break
8807fi
8808
8809rm -f conftest.err conftest.$ac_ext
8810
8811done
8812# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8813rm -f conftest.err conftest.$ac_ext
8814if $ac_preproc_ok; then
8815  :
8816else
8817  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8818$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8819_lt_caught_CXX_error=yes; }
8820fi
8821
8822ac_ext=c
8823ac_cpp='$CPP $CPPFLAGS'
8824ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8825ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8826ac_compiler_gnu=$ac_cv_c_compiler_gnu
8827
8828else
8829  _lt_caught_CXX_error=yes
8830fi
8831
8832
8833
8834
8835# Set options
8836
8837
8838
8839        enable_dlopen=no
8840
8841
8842
8843            # Check whether --enable-shared was given.
8844if test "${enable_shared+set}" = set; then
8845  enableval=$enable_shared; p=${PACKAGE-default}
8846    case $enableval in
8847    yes) enable_shared=yes ;;
8848    no) enable_shared=no ;;
8849    *)
8850      enable_shared=no
8851      # Look at the argument we got.  We use all the common list separators.
8852      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8853      for pkg in $enableval; do
8854	IFS="$lt_save_ifs"
8855	if test "X$pkg" = "X$p"; then
8856	  enable_shared=yes
8857	fi
8858      done
8859      IFS="$lt_save_ifs"
8860      ;;
8861    esac
8862else
8863  enable_shared=yes
8864fi
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874  # Check whether --enable-static was given.
8875if test "${enable_static+set}" = set; then
8876  enableval=$enable_static; p=${PACKAGE-default}
8877    case $enableval in
8878    yes) enable_static=yes ;;
8879    no) enable_static=no ;;
8880    *)
8881     enable_static=no
8882      # Look at the argument we got.  We use all the common list separators.
8883      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8884      for pkg in $enableval; do
8885	IFS="$lt_save_ifs"
8886	if test "X$pkg" = "X$p"; then
8887	  enable_static=yes
8888	fi
8889      done
8890      IFS="$lt_save_ifs"
8891      ;;
8892    esac
8893else
8894  enable_static=yes
8895fi
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906# Check whether --with-pic was given.
8907if test "${with_pic+set}" = set; then
8908  withval=$with_pic; pic_mode="$withval"
8909else
8910  pic_mode=default
8911fi
8912
8913
8914test -z "$pic_mode" && pic_mode=default
8915
8916
8917
8918
8919
8920
8921
8922  # Check whether --enable-fast-install was given.
8923if test "${enable_fast_install+set}" = set; then
8924  enableval=$enable_fast_install; p=${PACKAGE-default}
8925    case $enableval in
8926    yes) enable_fast_install=yes ;;
8927    no) enable_fast_install=no ;;
8928    *)
8929      enable_fast_install=no
8930      # Look at the argument we got.  We use all the common list separators.
8931      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8932      for pkg in $enableval; do
8933	IFS="$lt_save_ifs"
8934	if test "X$pkg" = "X$p"; then
8935	  enable_fast_install=yes
8936	fi
8937      done
8938      IFS="$lt_save_ifs"
8939      ;;
8940    esac
8941else
8942  enable_fast_install=yes
8943fi
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955# This can be used to rebuild libtool when needed
8956LIBTOOL_DEPS="$ltmain"
8957
8958# Always use our own libtool.
8959LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985test -z "$LN_S" && LN_S="ln -s"
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000if test -n "${ZSH_VERSION+set}" ; then
9001   setopt NO_GLOB_SUBST
9002fi
9003
9004{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
9005$as_echo_n "checking for objdir... " >&6; }
9006if test "${lt_cv_objdir+set}" = set; then
9007  $as_echo_n "(cached) " >&6
9008else
9009  rm -f .libs 2>/dev/null
9010mkdir .libs 2>/dev/null
9011if test -d .libs; then
9012  lt_cv_objdir=.libs
9013else
9014  # MS-DOS does not allow filenames that begin with a dot.
9015  lt_cv_objdir=_libs
9016fi
9017rmdir .libs 2>/dev/null
9018fi
9019{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9020$as_echo "$lt_cv_objdir" >&6; }
9021objdir=$lt_cv_objdir
9022
9023
9024
9025
9026
9027cat >>confdefs.h <<_ACEOF
9028#define LT_OBJDIR "$lt_cv_objdir/"
9029_ACEOF
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047case $host_os in
9048aix3*)
9049  # AIX sometimes has problems with the GCC collect2 program.  For some
9050  # reason, if we set the COLLECT_NAMES environment variable, the problems
9051  # vanish in a puff of smoke.
9052  if test "X${COLLECT_NAMES+set}" != Xset; then
9053    COLLECT_NAMES=
9054    export COLLECT_NAMES
9055  fi
9056  ;;
9057esac
9058
9059# Sed substitution that helps us do robust quoting.  It backslashifies
9060# metacharacters that are still active within double-quoted strings.
9061sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9062
9063# Same as above, but do not quote variable references.
9064double_quote_subst='s/\(["`\\]\)/\\\1/g'
9065
9066# Sed substitution to delay expansion of an escaped shell variable in a
9067# double_quote_subst'ed string.
9068delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9069
9070# Sed substitution to delay expansion of an escaped single quote.
9071delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9072
9073# Sed substitution to avoid accidental globbing in evaled expressions
9074no_glob_subst='s/\*/\\\*/g'
9075
9076# Global variables:
9077ofile=libtool
9078can_build_shared=yes
9079
9080# All known linkers require a `.a' archive for static linking (except MSVC,
9081# which needs '.lib').
9082libext=a
9083
9084with_gnu_ld="$lt_cv_prog_gnu_ld"
9085
9086old_CC="$CC"
9087old_CFLAGS="$CFLAGS"
9088
9089# Set sane defaults for various variables
9090test -z "$CC" && CC=cc
9091test -z "$LTCC" && LTCC=$CC
9092test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9093test -z "$LD" && LD=ld
9094test -z "$ac_objext" && ac_objext=o
9095
9096for cc_temp in $compiler""; do
9097  case $cc_temp in
9098    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9099    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9100    \-*) ;;
9101    *) break;;
9102  esac
9103done
9104cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9105
9106
9107# Only perform the check for file, if the check method requires it
9108test -z "$MAGIC_CMD" && MAGIC_CMD=file
9109case $deplibs_check_method in
9110file_magic*)
9111  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9112    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9113$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9114if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9115  $as_echo_n "(cached) " >&6
9116else
9117  case $MAGIC_CMD in
9118[\\/*] |  ?:[\\/]*)
9119  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9120  ;;
9121*)
9122  lt_save_MAGIC_CMD="$MAGIC_CMD"
9123  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9124  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9125  for ac_dir in $ac_dummy; do
9126    IFS="$lt_save_ifs"
9127    test -z "$ac_dir" && ac_dir=.
9128    if test -f $ac_dir/${ac_tool_prefix}file; then
9129      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9130      if test -n "$file_magic_test_file"; then
9131	case $deplibs_check_method in
9132	"file_magic "*)
9133	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9134	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9135	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9136	    $EGREP "$file_magic_regex" > /dev/null; then
9137	    :
9138	  else
9139	    cat <<_LT_EOF 1>&2
9140
9141*** Warning: the command libtool uses to detect shared libraries,
9142*** $file_magic_cmd, produces output that libtool cannot recognize.
9143*** The result is that libtool may fail to recognize shared libraries
9144*** as such.  This will affect the creation of libtool libraries that
9145*** depend on shared libraries, but programs linked with such libtool
9146*** libraries will work regardless of this problem.  Nevertheless, you
9147*** may want to report the problem to your system manager and/or to
9148*** bug-libtool@gnu.org
9149
9150_LT_EOF
9151	  fi ;;
9152	esac
9153      fi
9154      break
9155    fi
9156  done
9157  IFS="$lt_save_ifs"
9158  MAGIC_CMD="$lt_save_MAGIC_CMD"
9159  ;;
9160esac
9161fi
9162
9163MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9164if test -n "$MAGIC_CMD"; then
9165  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9166$as_echo "$MAGIC_CMD" >&6; }
9167else
9168  { $as_echo "$as_me:$LINENO: result: no" >&5
9169$as_echo "no" >&6; }
9170fi
9171
9172
9173
9174
9175
9176if test -z "$lt_cv_path_MAGIC_CMD"; then
9177  if test -n "$ac_tool_prefix"; then
9178    { $as_echo "$as_me:$LINENO: checking for file" >&5
9179$as_echo_n "checking for file... " >&6; }
9180if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9181  $as_echo_n "(cached) " >&6
9182else
9183  case $MAGIC_CMD in
9184[\\/*] |  ?:[\\/]*)
9185  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9186  ;;
9187*)
9188  lt_save_MAGIC_CMD="$MAGIC_CMD"
9189  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9190  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9191  for ac_dir in $ac_dummy; do
9192    IFS="$lt_save_ifs"
9193    test -z "$ac_dir" && ac_dir=.
9194    if test -f $ac_dir/file; then
9195      lt_cv_path_MAGIC_CMD="$ac_dir/file"
9196      if test -n "$file_magic_test_file"; then
9197	case $deplibs_check_method in
9198	"file_magic "*)
9199	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9200	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9201	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9202	    $EGREP "$file_magic_regex" > /dev/null; then
9203	    :
9204	  else
9205	    cat <<_LT_EOF 1>&2
9206
9207*** Warning: the command libtool uses to detect shared libraries,
9208*** $file_magic_cmd, produces output that libtool cannot recognize.
9209*** The result is that libtool may fail to recognize shared libraries
9210*** as such.  This will affect the creation of libtool libraries that
9211*** depend on shared libraries, but programs linked with such libtool
9212*** libraries will work regardless of this problem.  Nevertheless, you
9213*** may want to report the problem to your system manager and/or to
9214*** bug-libtool@gnu.org
9215
9216_LT_EOF
9217	  fi ;;
9218	esac
9219      fi
9220      break
9221    fi
9222  done
9223  IFS="$lt_save_ifs"
9224  MAGIC_CMD="$lt_save_MAGIC_CMD"
9225  ;;
9226esac
9227fi
9228
9229MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9230if test -n "$MAGIC_CMD"; then
9231  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9232$as_echo "$MAGIC_CMD" >&6; }
9233else
9234  { $as_echo "$as_me:$LINENO: result: no" >&5
9235$as_echo "no" >&6; }
9236fi
9237
9238
9239  else
9240    MAGIC_CMD=:
9241  fi
9242fi
9243
9244  fi
9245  ;;
9246esac
9247
9248# Use C for the default configuration in the libtool script
9249
9250lt_save_CC="$CC"
9251ac_ext=c
9252ac_cpp='$CPP $CPPFLAGS'
9253ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9254ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9255ac_compiler_gnu=$ac_cv_c_compiler_gnu
9256
9257
9258# Source file extension for C test sources.
9259ac_ext=c
9260
9261# Object file extension for compiled C test sources.
9262objext=o
9263objext=$objext
9264
9265# Code to be used in simple compile tests
9266lt_simple_compile_test_code="int some_variable = 0;"
9267
9268# Code to be used in simple link tests
9269lt_simple_link_test_code='int main(){return(0);}'
9270
9271
9272
9273
9274
9275
9276
9277# If no C compiler was specified, use CC.
9278LTCC=${LTCC-"$CC"}
9279
9280# If no C compiler flags were specified, use CFLAGS.
9281LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9282
9283# Allow CC to be a program name with arguments.
9284compiler=$CC
9285
9286# Save the default compiler, since it gets overwritten when the other
9287# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9288compiler_DEFAULT=$CC
9289
9290# save warnings/boilerplate of simple test code
9291ac_outfile=conftest.$ac_objext
9292echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9293eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9294_lt_compiler_boilerplate=`cat conftest.err`
9295$RM conftest*
9296
9297ac_outfile=conftest.$ac_objext
9298echo "$lt_simple_link_test_code" >conftest.$ac_ext
9299eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9300_lt_linker_boilerplate=`cat conftest.err`
9301$RM -r conftest*
9302
9303
9304## CAVEAT EMPTOR:
9305## There is no encapsulation within the following macros, do not change
9306## the running order or otherwise move them around unless you know exactly
9307## what you are doing...
9308if test -n "$compiler"; then
9309
9310lt_prog_compiler_no_builtin_flag=
9311
9312if test "$GCC" = yes; then
9313  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9314
9315  { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9316$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9317if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9318  $as_echo_n "(cached) " >&6
9319else
9320  lt_cv_prog_compiler_rtti_exceptions=no
9321   ac_outfile=conftest.$ac_objext
9322   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9323   lt_compiler_flag="-fno-rtti -fno-exceptions"
9324   # Insert the option either (1) after the last *FLAGS variable, or
9325   # (2) before a word containing "conftest.", or (3) at the end.
9326   # Note that $ac_compile itself does not contain backslashes and begins
9327   # with a dollar sign (not a hyphen), so the echo should work correctly.
9328   # The option is referenced via a variable to avoid confusing sed.
9329   lt_compile=`echo "$ac_compile" | $SED \
9330   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9331   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9332   -e 's:$: $lt_compiler_flag:'`
9333   (eval echo "\"\$as_me:9333: $lt_compile\"" >&5)
9334   (eval "$lt_compile" 2>conftest.err)
9335   ac_status=$?
9336   cat conftest.err >&5
9337   echo "$as_me:9337: \$? = $ac_status" >&5
9338   if (exit $ac_status) && test -s "$ac_outfile"; then
9339     # The compiler can only warn and ignore the option if not recognized
9340     # So say no if there are warnings other than the usual output.
9341     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9342     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9343     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9344       lt_cv_prog_compiler_rtti_exceptions=yes
9345     fi
9346   fi
9347   $RM conftest*
9348
9349fi
9350{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9351$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9352
9353if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9354    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9355else
9356    :
9357fi
9358
9359fi
9360
9361
9362
9363
9364
9365
9366  lt_prog_compiler_wl=
9367lt_prog_compiler_pic=
9368lt_prog_compiler_static=
9369
9370{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9371$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9372
9373  if test "$GCC" = yes; then
9374    lt_prog_compiler_wl='-Wl,'
9375    lt_prog_compiler_static='-static'
9376
9377    case $host_os in
9378      aix*)
9379      # All AIX code is PIC.
9380      if test "$host_cpu" = ia64; then
9381	# AIX 5 now supports IA64 processor
9382	lt_prog_compiler_static='-Bstatic'
9383      fi
9384      ;;
9385
9386    amigaos*)
9387      case $host_cpu in
9388      powerpc)
9389            # see comment about AmigaOS4 .so support
9390            lt_prog_compiler_pic='-fPIC'
9391        ;;
9392      m68k)
9393            # FIXME: we need at least 68020 code to build shared libraries, but
9394            # adding the `-m68020' flag to GCC prevents building anything better,
9395            # like `-m68040'.
9396            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9397        ;;
9398      esac
9399      ;;
9400
9401    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9402      # PIC is the default for these OSes.
9403      ;;
9404
9405    mingw* | cygwin* | pw32* | os2* | cegcc*)
9406      # This hack is so that the source file can tell whether it is being
9407      # built for inclusion in a dll (and should export symbols for example).
9408      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9409      # (--disable-auto-import) libraries
9410      lt_prog_compiler_pic='-DDLL_EXPORT'
9411      ;;
9412
9413    darwin* | rhapsody*)
9414      # PIC is the default on this platform
9415      # Common symbols not allowed in MH_DYLIB files
9416      lt_prog_compiler_pic='-fno-common'
9417      ;;
9418
9419    hpux*)
9420      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9421      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9422      # sets the default TLS model and affects inlining.
9423      case $host_cpu in
9424      hppa*64*)
9425	# +Z the default
9426	;;
9427      *)
9428	lt_prog_compiler_pic='-fPIC'
9429	;;
9430      esac
9431      ;;
9432
9433    interix[3-9]*)
9434      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9435      # Instead, we relocate shared libraries at runtime.
9436      ;;
9437
9438    msdosdjgpp*)
9439      # Just because we use GCC doesn't mean we suddenly get shared libraries
9440      # on systems that don't support them.
9441      lt_prog_compiler_can_build_shared=no
9442      enable_shared=no
9443      ;;
9444
9445    *nto* | *qnx*)
9446      # QNX uses GNU C++, but need to define -shared option too, otherwise
9447      # it will coredump.
9448      lt_prog_compiler_pic='-fPIC -shared'
9449      ;;
9450
9451    sysv4*MP*)
9452      if test -d /usr/nec; then
9453	lt_prog_compiler_pic=-Kconform_pic
9454      fi
9455      ;;
9456
9457    *)
9458      lt_prog_compiler_pic='-fPIC'
9459      ;;
9460    esac
9461  else
9462    # PORTME Check for flag to pass linker flags through the system compiler.
9463    case $host_os in
9464    aix*)
9465      lt_prog_compiler_wl='-Wl,'
9466      if test "$host_cpu" = ia64; then
9467	# AIX 5 now supports IA64 processor
9468	lt_prog_compiler_static='-Bstatic'
9469      else
9470	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9471      fi
9472      ;;
9473
9474    mingw* | cygwin* | pw32* | os2* | cegcc*)
9475      # This hack is so that the source file can tell whether it is being
9476      # built for inclusion in a dll (and should export symbols for example).
9477      lt_prog_compiler_pic='-DDLL_EXPORT'
9478      ;;
9479
9480    hpux9* | hpux10* | hpux11*)
9481      lt_prog_compiler_wl='-Wl,'
9482      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9483      # not for PA HP-UX.
9484      case $host_cpu in
9485      hppa*64*|ia64*)
9486	# +Z the default
9487	;;
9488      *)
9489	lt_prog_compiler_pic='+Z'
9490	;;
9491      esac
9492      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9493      lt_prog_compiler_static='${wl}-a ${wl}archive'
9494      ;;
9495
9496    irix5* | irix6* | nonstopux*)
9497      lt_prog_compiler_wl='-Wl,'
9498      # PIC (with -KPIC) is the default.
9499      lt_prog_compiler_static='-non_shared'
9500      ;;
9501
9502    linux* | k*bsd*-gnu)
9503      case $cc_basename in
9504      # old Intel for x86_64 which still supported -KPIC.
9505      ecc*)
9506	lt_prog_compiler_wl='-Wl,'
9507	lt_prog_compiler_pic='-KPIC'
9508	lt_prog_compiler_static='-static'
9509        ;;
9510      # icc used to be incompatible with GCC.
9511      # ICC 10 doesn't accept -KPIC any more.
9512      icc* | ifort*)
9513	lt_prog_compiler_wl='-Wl,'
9514	lt_prog_compiler_pic='-fPIC'
9515	lt_prog_compiler_static='-static'
9516        ;;
9517      # Lahey Fortran 8.1.
9518      lf95*)
9519	lt_prog_compiler_wl='-Wl,'
9520	lt_prog_compiler_pic='--shared'
9521	lt_prog_compiler_static='--static'
9522	;;
9523      pgcc* | pgf77* | pgf90* | pgf95*)
9524        # Portland Group compilers (*not* the Pentium gcc compiler,
9525	# which looks to be a dead project)
9526	lt_prog_compiler_wl='-Wl,'
9527	lt_prog_compiler_pic='-fpic'
9528	lt_prog_compiler_static='-Bstatic'
9529        ;;
9530      ccc*)
9531        lt_prog_compiler_wl='-Wl,'
9532        # All Alpha code is PIC.
9533        lt_prog_compiler_static='-non_shared'
9534        ;;
9535      xl*)
9536	# IBM XL C 8.0/Fortran 10.1 on PPC
9537	lt_prog_compiler_wl='-Wl,'
9538	lt_prog_compiler_pic='-qpic'
9539	lt_prog_compiler_static='-qstaticlink'
9540	;;
9541      *)
9542	case `$CC -V 2>&1 | sed 5q` in
9543	*Sun\ C*)
9544	  # Sun C 5.9
9545	  lt_prog_compiler_pic='-KPIC'
9546	  lt_prog_compiler_static='-Bstatic'
9547	  lt_prog_compiler_wl='-Wl,'
9548	  ;;
9549	*Sun\ F*)
9550	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9551	  lt_prog_compiler_pic='-KPIC'
9552	  lt_prog_compiler_static='-Bstatic'
9553	  lt_prog_compiler_wl=''
9554	  ;;
9555	esac
9556	;;
9557      esac
9558      ;;
9559
9560    newsos6)
9561      lt_prog_compiler_pic='-KPIC'
9562      lt_prog_compiler_static='-Bstatic'
9563      ;;
9564
9565    *nto* | *qnx*)
9566      # QNX uses GNU C++, but need to define -shared option too, otherwise
9567      # it will coredump.
9568      lt_prog_compiler_pic='-fPIC -shared'
9569      ;;
9570
9571    osf3* | osf4* | osf5*)
9572      lt_prog_compiler_wl='-Wl,'
9573      # All OSF/1 code is PIC.
9574      lt_prog_compiler_static='-non_shared'
9575      ;;
9576
9577    rdos*)
9578      lt_prog_compiler_static='-non_shared'
9579      ;;
9580
9581    solaris*)
9582      lt_prog_compiler_pic='-KPIC'
9583      lt_prog_compiler_static='-Bstatic'
9584      case $cc_basename in
9585      f77* | f90* | f95*)
9586	lt_prog_compiler_wl='-Qoption ld ';;
9587      *)
9588	lt_prog_compiler_wl='-Wl,';;
9589      esac
9590      ;;
9591
9592    sunos4*)
9593      lt_prog_compiler_wl='-Qoption ld '
9594      lt_prog_compiler_pic='-PIC'
9595      lt_prog_compiler_static='-Bstatic'
9596      ;;
9597
9598    sysv4 | sysv4.2uw2* | sysv4.3*)
9599      lt_prog_compiler_wl='-Wl,'
9600      lt_prog_compiler_pic='-KPIC'
9601      lt_prog_compiler_static='-Bstatic'
9602      ;;
9603
9604    sysv4*MP*)
9605      if test -d /usr/nec ;then
9606	lt_prog_compiler_pic='-Kconform_pic'
9607	lt_prog_compiler_static='-Bstatic'
9608      fi
9609      ;;
9610
9611    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9612      lt_prog_compiler_wl='-Wl,'
9613      lt_prog_compiler_pic='-KPIC'
9614      lt_prog_compiler_static='-Bstatic'
9615      ;;
9616
9617    unicos*)
9618      lt_prog_compiler_wl='-Wl,'
9619      lt_prog_compiler_can_build_shared=no
9620      ;;
9621
9622    uts4*)
9623      lt_prog_compiler_pic='-pic'
9624      lt_prog_compiler_static='-Bstatic'
9625      ;;
9626
9627    *)
9628      lt_prog_compiler_can_build_shared=no
9629      ;;
9630    esac
9631  fi
9632
9633case $host_os in
9634  # For platforms which do not support PIC, -DPIC is meaningless:
9635  *djgpp*)
9636    lt_prog_compiler_pic=
9637    ;;
9638  *)
9639    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9640    ;;
9641esac
9642{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9643$as_echo "$lt_prog_compiler_pic" >&6; }
9644
9645
9646
9647
9648
9649
9650#
9651# Check to make sure the PIC flag actually works.
9652#
9653if test -n "$lt_prog_compiler_pic"; then
9654  { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9655$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9656if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9657  $as_echo_n "(cached) " >&6
9658else
9659  lt_cv_prog_compiler_pic_works=no
9660   ac_outfile=conftest.$ac_objext
9661   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9662   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9663   # Insert the option either (1) after the last *FLAGS variable, or
9664   # (2) before a word containing "conftest.", or (3) at the end.
9665   # Note that $ac_compile itself does not contain backslashes and begins
9666   # with a dollar sign (not a hyphen), so the echo should work correctly.
9667   # The option is referenced via a variable to avoid confusing sed.
9668   lt_compile=`echo "$ac_compile" | $SED \
9669   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9670   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9671   -e 's:$: $lt_compiler_flag:'`
9672   (eval echo "\"\$as_me:9672: $lt_compile\"" >&5)
9673   (eval "$lt_compile" 2>conftest.err)
9674   ac_status=$?
9675   cat conftest.err >&5
9676   echo "$as_me:9676: \$? = $ac_status" >&5
9677   if (exit $ac_status) && test -s "$ac_outfile"; then
9678     # The compiler can only warn and ignore the option if not recognized
9679     # So say no if there are warnings other than the usual output.
9680     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9681     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9682     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9683       lt_cv_prog_compiler_pic_works=yes
9684     fi
9685   fi
9686   $RM conftest*
9687
9688fi
9689{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9690$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9691
9692if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9693    case $lt_prog_compiler_pic in
9694     "" | " "*) ;;
9695     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9696     esac
9697else
9698    lt_prog_compiler_pic=
9699     lt_prog_compiler_can_build_shared=no
9700fi
9701
9702fi
9703
9704
9705
9706
9707
9708
9709#
9710# Check to make sure the static flag actually works.
9711#
9712wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9713{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9714$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9715if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9716  $as_echo_n "(cached) " >&6
9717else
9718  lt_cv_prog_compiler_static_works=no
9719   save_LDFLAGS="$LDFLAGS"
9720   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9721   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9722   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9723     # The linker can only warn and ignore the option if not recognized
9724     # So say no if there are warnings
9725     if test -s conftest.err; then
9726       # Append any errors to the config.log.
9727       cat conftest.err 1>&5
9728       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9729       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9730       if diff conftest.exp conftest.er2 >/dev/null; then
9731         lt_cv_prog_compiler_static_works=yes
9732       fi
9733     else
9734       lt_cv_prog_compiler_static_works=yes
9735     fi
9736   fi
9737   $RM -r conftest*
9738   LDFLAGS="$save_LDFLAGS"
9739
9740fi
9741{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9742$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9743
9744if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9745    :
9746else
9747    lt_prog_compiler_static=
9748fi
9749
9750
9751
9752
9753
9754
9755
9756  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9757$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9758if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9759  $as_echo_n "(cached) " >&6
9760else
9761  lt_cv_prog_compiler_c_o=no
9762   $RM -r conftest 2>/dev/null
9763   mkdir conftest
9764   cd conftest
9765   mkdir out
9766   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9767
9768   lt_compiler_flag="-o out/conftest2.$ac_objext"
9769   # Insert the option either (1) after the last *FLAGS variable, or
9770   # (2) before a word containing "conftest.", or (3) at the end.
9771   # Note that $ac_compile itself does not contain backslashes and begins
9772   # with a dollar sign (not a hyphen), so the echo should work correctly.
9773   lt_compile=`echo "$ac_compile" | $SED \
9774   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9775   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9776   -e 's:$: $lt_compiler_flag:'`
9777   (eval echo "\"\$as_me:9777: $lt_compile\"" >&5)
9778   (eval "$lt_compile" 2>out/conftest.err)
9779   ac_status=$?
9780   cat out/conftest.err >&5
9781   echo "$as_me:9781: \$? = $ac_status" >&5
9782   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9783   then
9784     # The compiler can only warn and ignore the option if not recognized
9785     # So say no if there are warnings
9786     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9787     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9788     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9789       lt_cv_prog_compiler_c_o=yes
9790     fi
9791   fi
9792   chmod u+w . 2>&5
9793   $RM conftest*
9794   # SGI C++ compiler will create directory out/ii_files/ for
9795   # template instantiation
9796   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9797   $RM out/* && rmdir out
9798   cd ..
9799   $RM -r conftest
9800   $RM conftest*
9801
9802fi
9803{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9804$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9805
9806
9807
9808
9809
9810
9811  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9812$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9813if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9814  $as_echo_n "(cached) " >&6
9815else
9816  lt_cv_prog_compiler_c_o=no
9817   $RM -r conftest 2>/dev/null
9818   mkdir conftest
9819   cd conftest
9820   mkdir out
9821   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9822
9823   lt_compiler_flag="-o out/conftest2.$ac_objext"
9824   # Insert the option either (1) after the last *FLAGS variable, or
9825   # (2) before a word containing "conftest.", or (3) at the end.
9826   # Note that $ac_compile itself does not contain backslashes and begins
9827   # with a dollar sign (not a hyphen), so the echo should work correctly.
9828   lt_compile=`echo "$ac_compile" | $SED \
9829   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9830   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9831   -e 's:$: $lt_compiler_flag:'`
9832   (eval echo "\"\$as_me:9832: $lt_compile\"" >&5)
9833   (eval "$lt_compile" 2>out/conftest.err)
9834   ac_status=$?
9835   cat out/conftest.err >&5
9836   echo "$as_me:9836: \$? = $ac_status" >&5
9837   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9838   then
9839     # The compiler can only warn and ignore the option if not recognized
9840     # So say no if there are warnings
9841     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9842     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9843     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9844       lt_cv_prog_compiler_c_o=yes
9845     fi
9846   fi
9847   chmod u+w . 2>&5
9848   $RM conftest*
9849   # SGI C++ compiler will create directory out/ii_files/ for
9850   # template instantiation
9851   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9852   $RM out/* && rmdir out
9853   cd ..
9854   $RM -r conftest
9855   $RM conftest*
9856
9857fi
9858{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9859$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9860
9861
9862
9863
9864hard_links="nottested"
9865if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9866  # do not overwrite the value of need_locks provided by the user
9867  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9868$as_echo_n "checking if we can lock with hard links... " >&6; }
9869  hard_links=yes
9870  $RM conftest*
9871  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9872  touch conftest.a
9873  ln conftest.a conftest.b 2>&5 || hard_links=no
9874  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9875  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
9876$as_echo "$hard_links" >&6; }
9877  if test "$hard_links" = no; then
9878    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9879$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9880    need_locks=warn
9881  fi
9882else
9883  need_locks=no
9884fi
9885
9886
9887
9888
9889
9890
9891  { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9892$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9893
9894  runpath_var=
9895  allow_undefined_flag=
9896  always_export_symbols=no
9897  archive_cmds=
9898  archive_expsym_cmds=
9899  compiler_needs_object=no
9900  enable_shared_with_static_runtimes=no
9901  export_dynamic_flag_spec=
9902  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9903  hardcode_automatic=no
9904  hardcode_direct=no
9905  hardcode_direct_absolute=no
9906  hardcode_libdir_flag_spec=
9907  hardcode_libdir_flag_spec_ld=
9908  hardcode_libdir_separator=
9909  hardcode_minus_L=no
9910  hardcode_shlibpath_var=unsupported
9911  inherit_rpath=no
9912  link_all_deplibs=unknown
9913  module_cmds=
9914  module_expsym_cmds=
9915  old_archive_from_new_cmds=
9916  old_archive_from_expsyms_cmds=
9917  thread_safe_flag_spec=
9918  whole_archive_flag_spec=
9919  # include_expsyms should be a list of space-separated symbols to be *always*
9920  # included in the symbol list
9921  include_expsyms=
9922  # exclude_expsyms can be an extended regexp of symbols to exclude
9923  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9924  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9925  # as well as any symbol that contains `d'.
9926  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9927  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9928  # platforms (ab)use it in PIC code, but their linkers get confused if
9929  # the symbol is explicitly referenced.  Since portable code cannot
9930  # rely on this symbol name, it's probably fine to never include it in
9931  # preloaded symbol tables.
9932  # Exclude shared library initialization/finalization symbols.
9933  extract_expsyms_cmds=
9934
9935  case $host_os in
9936  cygwin* | mingw* | pw32* | cegcc*)
9937    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9938    # When not using gcc, we currently assume that we are using
9939    # Microsoft Visual C++.
9940    if test "$GCC" != yes; then
9941      with_gnu_ld=no
9942    fi
9943    ;;
9944  interix*)
9945    # we just hope/assume this is gcc and not c89 (= MSVC++)
9946    with_gnu_ld=yes
9947    ;;
9948  openbsd*)
9949    with_gnu_ld=no
9950    ;;
9951  esac
9952
9953  ld_shlibs=yes
9954  if test "$with_gnu_ld" = yes; then
9955    # If archive_cmds runs LD, not CC, wlarc should be empty
9956    wlarc='${wl}'
9957
9958    # Set some defaults for GNU ld with shared library support. These
9959    # are reset later if shared libraries are not supported. Putting them
9960    # here allows them to be overridden if necessary.
9961    runpath_var=LD_RUN_PATH
9962    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9963    export_dynamic_flag_spec='${wl}--export-dynamic'
9964    # ancient GNU ld didn't support --whole-archive et. al.
9965    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9966      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9967    else
9968      whole_archive_flag_spec=
9969    fi
9970    supports_anon_versioning=no
9971    case `$LD -v 2>&1` in
9972      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9973      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9974      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9975      *\ 2.11.*) ;; # other 2.11 versions
9976      *) supports_anon_versioning=yes ;;
9977    esac
9978
9979    # See if GNU ld supports shared libraries.
9980    case $host_os in
9981    aix[3-9]*)
9982      # On AIX/PPC, the GNU linker is very broken
9983      if test "$host_cpu" != ia64; then
9984	ld_shlibs=no
9985	cat <<_LT_EOF 1>&2
9986
9987*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9988*** to be unable to reliably create shared libraries on AIX.
9989*** Therefore, libtool is disabling shared libraries support.  If you
9990*** really care for shared libraries, you may want to modify your PATH
9991*** so that a non-GNU linker is found, and then restart.
9992
9993_LT_EOF
9994      fi
9995      ;;
9996
9997    amigaos*)
9998      case $host_cpu in
9999      powerpc)
10000            # see comment about AmigaOS4 .so support
10001            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10002            archive_expsym_cmds=''
10003        ;;
10004      m68k)
10005            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)'
10006            hardcode_libdir_flag_spec='-L$libdir'
10007            hardcode_minus_L=yes
10008        ;;
10009      esac
10010      ;;
10011
10012    beos*)
10013      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10014	allow_undefined_flag=unsupported
10015	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10016	# support --undefined.  This deserves some investigation.  FIXME
10017	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10018      else
10019	ld_shlibs=no
10020      fi
10021      ;;
10022
10023    cygwin* | mingw* | pw32* | cegcc*)
10024      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10025      # as there is no search path for DLLs.
10026      hardcode_libdir_flag_spec='-L$libdir'
10027      allow_undefined_flag=unsupported
10028      always_export_symbols=no
10029      enable_shared_with_static_runtimes=yes
10030      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10031
10032      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10033        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10034	# If the export-symbols file already is a .def file (1st line
10035	# is EXPORTS), use it as is; otherwise, prepend...
10036	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10037	  cp $export_symbols $output_objdir/$soname.def;
10038	else
10039	  echo EXPORTS > $output_objdir/$soname.def;
10040	  cat $export_symbols >> $output_objdir/$soname.def;
10041	fi~
10042	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10043      else
10044	ld_shlibs=no
10045      fi
10046      ;;
10047
10048    interix[3-9]*)
10049      hardcode_direct=no
10050      hardcode_shlibpath_var=no
10051      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10052      export_dynamic_flag_spec='${wl}-E'
10053      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10054      # Instead, shared libraries are loaded at an image base (0x10000000 by
10055      # default) and relocated if they conflict, which is a slow very memory
10056      # consuming and fragmenting process.  To avoid this, we pick a random,
10057      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10058      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10059      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10060      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'
10061      ;;
10062
10063    gnu* | linux* | tpf* | k*bsd*-gnu)
10064      tmp_diet=no
10065      if test "$host_os" = linux-dietlibc; then
10066	case $cc_basename in
10067	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10068	esac
10069      fi
10070      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10071	 && test "$tmp_diet" = no
10072      then
10073	tmp_addflag=
10074	tmp_sharedflag='-shared'
10075	case $cc_basename,$host_cpu in
10076        pgcc*)				# Portland Group C compiler
10077	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10078	  tmp_addflag=' $pic_flag'
10079	  ;;
10080	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
10081	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10082	  tmp_addflag=' $pic_flag -Mnomain' ;;
10083	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10084	  tmp_addflag=' -i_dynamic' ;;
10085	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10086	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10087	ifc* | ifort*)			# Intel Fortran compiler
10088	  tmp_addflag=' -nofor_main' ;;
10089	lf95*)				# Lahey Fortran 8.1
10090	  whole_archive_flag_spec=
10091	  tmp_sharedflag='--shared' ;;
10092	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
10093	  tmp_sharedflag='-qmkshrobj'
10094	  tmp_addflag= ;;
10095	esac
10096	case `$CC -V 2>&1 | sed 5q` in
10097	*Sun\ C*)			# Sun C 5.9
10098	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10099	  compiler_needs_object=yes
10100	  tmp_sharedflag='-G' ;;
10101	*Sun\ F*)			# Sun Fortran 8.3
10102	  tmp_sharedflag='-G' ;;
10103	esac
10104	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10105
10106        if test "x$supports_anon_versioning" = xyes; then
10107          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10108	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10109	    echo "local: *; };" >> $output_objdir/$libname.ver~
10110	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10111        fi
10112
10113	case $cc_basename in
10114	xlf*)
10115	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10116	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10117	  hardcode_libdir_flag_spec=
10118	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
10119	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10120	  if test "x$supports_anon_versioning" = xyes; then
10121	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10122	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10123	      echo "local: *; };" >> $output_objdir/$libname.ver~
10124	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10125	  fi
10126	  ;;
10127	esac
10128      else
10129        ld_shlibs=no
10130      fi
10131      ;;
10132
10133    netbsd*)
10134      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10135	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10136	wlarc=
10137      else
10138	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10139	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10140      fi
10141      ;;
10142
10143    solaris*)
10144      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10145	ld_shlibs=no
10146	cat <<_LT_EOF 1>&2
10147
10148*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10149*** create shared libraries on Solaris systems.  Therefore, libtool
10150*** is disabling shared libraries support.  We urge you to upgrade GNU
10151*** binutils to release 2.9.1 or newer.  Another option is to modify
10152*** your PATH or compiler configuration so that the native linker is
10153*** used, and then restart.
10154
10155_LT_EOF
10156      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10157	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10158	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10159      else
10160	ld_shlibs=no
10161      fi
10162      ;;
10163
10164    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10165      case `$LD -v 2>&1` in
10166        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10167	ld_shlibs=no
10168	cat <<_LT_EOF 1>&2
10169
10170*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10171*** reliably create shared libraries on SCO systems.  Therefore, libtool
10172*** is disabling shared libraries support.  We urge you to upgrade GNU
10173*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10174*** your PATH or compiler configuration so that the native linker is
10175*** used, and then restart.
10176
10177_LT_EOF
10178	;;
10179	*)
10180	  # For security reasons, it is highly recommended that you always
10181	  # use absolute paths for naming shared libraries, and exclude the
10182	  # DT_RUNPATH tag from executables and libraries.  But doing so
10183	  # requires that you compile everything twice, which is a pain.
10184	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10185	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10186	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10187	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10188	  else
10189	    ld_shlibs=no
10190	  fi
10191	;;
10192      esac
10193      ;;
10194
10195    sunos4*)
10196      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10197      wlarc=
10198      hardcode_direct=yes
10199      hardcode_shlibpath_var=no
10200      ;;
10201
10202    *)
10203      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10204	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10205	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10206      else
10207	ld_shlibs=no
10208      fi
10209      ;;
10210    esac
10211
10212    if test "$ld_shlibs" = no; then
10213      runpath_var=
10214      hardcode_libdir_flag_spec=
10215      export_dynamic_flag_spec=
10216      whole_archive_flag_spec=
10217    fi
10218  else
10219    # PORTME fill in a description of your system's linker (not GNU ld)
10220    case $host_os in
10221    aix3*)
10222      allow_undefined_flag=unsupported
10223      always_export_symbols=yes
10224      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'
10225      # Note: this linker hardcodes the directories in LIBPATH if there
10226      # are no directories specified by -L.
10227      hardcode_minus_L=yes
10228      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10229	# Neither direct hardcoding nor static linking is supported with a
10230	# broken collect2.
10231	hardcode_direct=unsupported
10232      fi
10233      ;;
10234
10235    aix[4-9]*)
10236      if test "$host_cpu" = ia64; then
10237	# On IA64, the linker does run time linking by default, so we don't
10238	# have to do anything special.
10239	aix_use_runtimelinking=no
10240	exp_sym_flag='-Bexport'
10241	no_entry_flag=""
10242      else
10243	# If we're using GNU nm, then we don't want the "-C" option.
10244	# -C means demangle to AIX nm, but means don't demangle with GNU nm
10245	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10246	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10247	else
10248	  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'
10249	fi
10250	aix_use_runtimelinking=no
10251
10252	# Test if we are trying to use run time linking or normal
10253	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10254	# need to do runtime linking.
10255	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10256	  for ld_flag in $LDFLAGS; do
10257	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10258	    aix_use_runtimelinking=yes
10259	    break
10260	  fi
10261	  done
10262	  ;;
10263	esac
10264
10265	exp_sym_flag='-bexport'
10266	no_entry_flag='-bnoentry'
10267      fi
10268
10269      # When large executables or shared objects are built, AIX ld can
10270      # have problems creating the table of contents.  If linking a library
10271      # or program results in "error TOC overflow" add -mminimal-toc to
10272      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10273      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10274
10275      archive_cmds=''
10276      hardcode_direct=yes
10277      hardcode_direct_absolute=yes
10278      hardcode_libdir_separator=':'
10279      link_all_deplibs=yes
10280      file_list_spec='${wl}-f,'
10281
10282      if test "$GCC" = yes; then
10283	case $host_os in aix4.[012]|aix4.[012].*)
10284	# We only want to do this on AIX 4.2 and lower, the check
10285	# below for broken collect2 doesn't work under 4.3+
10286	  collect2name=`${CC} -print-prog-name=collect2`
10287	  if test -f "$collect2name" &&
10288	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10289	  then
10290	  # We have reworked collect2
10291	  :
10292	  else
10293	  # We have old collect2
10294	  hardcode_direct=unsupported
10295	  # It fails to find uninstalled libraries when the uninstalled
10296	  # path is not listed in the libpath.  Setting hardcode_minus_L
10297	  # to unsupported forces relinking
10298	  hardcode_minus_L=yes
10299	  hardcode_libdir_flag_spec='-L$libdir'
10300	  hardcode_libdir_separator=
10301	  fi
10302	  ;;
10303	esac
10304	shared_flag='-shared'
10305	if test "$aix_use_runtimelinking" = yes; then
10306	  shared_flag="$shared_flag "'${wl}-G'
10307	fi
10308      else
10309	# not using gcc
10310	if test "$host_cpu" = ia64; then
10311	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10312	# chokes on -Wl,-G. The following line is correct:
10313	  shared_flag='-G'
10314	else
10315	  if test "$aix_use_runtimelinking" = yes; then
10316	    shared_flag='${wl}-G'
10317	  else
10318	    shared_flag='${wl}-bM:SRE'
10319	  fi
10320	fi
10321      fi
10322
10323      export_dynamic_flag_spec='${wl}-bexpall'
10324      # It seems that -bexpall does not export symbols beginning with
10325      # underscore (_), so it is better to generate a list of symbols to export.
10326      always_export_symbols=yes
10327      if test "$aix_use_runtimelinking" = yes; then
10328	# Warning - without using the other runtime loading flags (-brtl),
10329	# -berok will link without error, but may produce a broken library.
10330	allow_undefined_flag='-berok'
10331        # Determine the default libpath from the value encoded in an
10332        # empty executable.
10333        cat >conftest.$ac_ext <<_ACEOF
10334/* confdefs.h.  */
10335_ACEOF
10336cat confdefs.h >>conftest.$ac_ext
10337cat >>conftest.$ac_ext <<_ACEOF
10338/* end confdefs.h.  */
10339
10340int
10341main ()
10342{
10343
10344  ;
10345  return 0;
10346}
10347_ACEOF
10348rm -f conftest.$ac_objext conftest$ac_exeext
10349if { (ac_try="$ac_link"
10350case "(($ac_try" in
10351  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10352  *) ac_try_echo=$ac_try;;
10353esac
10354eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10355$as_echo "$ac_try_echo") >&5
10356  (eval "$ac_link") 2>conftest.er1
10357  ac_status=$?
10358  grep -v '^ *+' conftest.er1 >conftest.err
10359  rm -f conftest.er1
10360  cat conftest.err >&5
10361  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362  (exit $ac_status); } && {
10363	 test -z "$ac_c_werror_flag" ||
10364	 test ! -s conftest.err
10365       } && test -s conftest$ac_exeext && {
10366	 test "$cross_compiling" = yes ||
10367	 $as_test_x conftest$ac_exeext
10368       }; then
10369
10370lt_aix_libpath_sed='
10371    /Import File Strings/,/^$/ {
10372	/^0/ {
10373	    s/^0  *\(.*\)$/\1/
10374	    p
10375	}
10376    }'
10377aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10378# Check for a 64-bit object if we didn't find anything.
10379if test -z "$aix_libpath"; then
10380  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10381fi
10382else
10383  $as_echo "$as_me: failed program was:" >&5
10384sed 's/^/| /' conftest.$ac_ext >&5
10385
10386
10387fi
10388
10389rm -rf conftest.dSYM
10390rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10391      conftest$ac_exeext conftest.$ac_ext
10392if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10393
10394        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10395        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10396      else
10397	if test "$host_cpu" = ia64; then
10398	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10399	  allow_undefined_flag="-z nodefs"
10400	  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"
10401	else
10402	 # Determine the default libpath from the value encoded in an
10403	 # empty executable.
10404	 cat >conftest.$ac_ext <<_ACEOF
10405/* confdefs.h.  */
10406_ACEOF
10407cat confdefs.h >>conftest.$ac_ext
10408cat >>conftest.$ac_ext <<_ACEOF
10409/* end confdefs.h.  */
10410
10411int
10412main ()
10413{
10414
10415  ;
10416  return 0;
10417}
10418_ACEOF
10419rm -f conftest.$ac_objext conftest$ac_exeext
10420if { (ac_try="$ac_link"
10421case "(($ac_try" in
10422  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10423  *) ac_try_echo=$ac_try;;
10424esac
10425eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10426$as_echo "$ac_try_echo") >&5
10427  (eval "$ac_link") 2>conftest.er1
10428  ac_status=$?
10429  grep -v '^ *+' conftest.er1 >conftest.err
10430  rm -f conftest.er1
10431  cat conftest.err >&5
10432  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433  (exit $ac_status); } && {
10434	 test -z "$ac_c_werror_flag" ||
10435	 test ! -s conftest.err
10436       } && test -s conftest$ac_exeext && {
10437	 test "$cross_compiling" = yes ||
10438	 $as_test_x conftest$ac_exeext
10439       }; then
10440
10441lt_aix_libpath_sed='
10442    /Import File Strings/,/^$/ {
10443	/^0/ {
10444	    s/^0  *\(.*\)$/\1/
10445	    p
10446	}
10447    }'
10448aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10449# Check for a 64-bit object if we didn't find anything.
10450if test -z "$aix_libpath"; then
10451  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10452fi
10453else
10454  $as_echo "$as_me: failed program was:" >&5
10455sed 's/^/| /' conftest.$ac_ext >&5
10456
10457
10458fi
10459
10460rm -rf conftest.dSYM
10461rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10462      conftest$ac_exeext conftest.$ac_ext
10463if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10464
10465	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10466	  # Warning - without using the other run time loading flags,
10467	  # -berok will link without error, but may produce a broken library.
10468	  no_undefined_flag=' ${wl}-bernotok'
10469	  allow_undefined_flag=' ${wl}-berok'
10470	  # Exported symbols can be pulled into shared objects from archives
10471	  whole_archive_flag_spec='$convenience'
10472	  archive_cmds_need_lc=yes
10473	  # This is similar to how AIX traditionally builds its shared libraries.
10474	  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'
10475	fi
10476      fi
10477      ;;
10478
10479    amigaos*)
10480      case $host_cpu in
10481      powerpc)
10482            # see comment about AmigaOS4 .so support
10483            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10484            archive_expsym_cmds=''
10485        ;;
10486      m68k)
10487            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)'
10488            hardcode_libdir_flag_spec='-L$libdir'
10489            hardcode_minus_L=yes
10490        ;;
10491      esac
10492      ;;
10493
10494    bsdi[45]*)
10495      export_dynamic_flag_spec=-rdynamic
10496      ;;
10497
10498    cygwin* | mingw* | pw32* | cegcc*)
10499      # When not using gcc, we currently assume that we are using
10500      # Microsoft Visual C++.
10501      # hardcode_libdir_flag_spec is actually meaningless, as there is
10502      # no search path for DLLs.
10503      hardcode_libdir_flag_spec=' '
10504      allow_undefined_flag=unsupported
10505      # Tell ltmain to make .lib files, not .a files.
10506      libext=lib
10507      # Tell ltmain to make .dll files, not .so files.
10508      shrext_cmds=".dll"
10509      # FIXME: Setting linknames here is a bad hack.
10510      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10511      # The linker will automatically build a .lib file if we build a DLL.
10512      old_archive_from_new_cmds='true'
10513      # FIXME: Should let the user specify the lib program.
10514      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10515      fix_srcfile_path='`cygpath -w "$srcfile"`'
10516      enable_shared_with_static_runtimes=yes
10517      ;;
10518
10519    darwin* | rhapsody*)
10520
10521
10522  archive_cmds_need_lc=no
10523  hardcode_direct=no
10524  hardcode_automatic=yes
10525  hardcode_shlibpath_var=unsupported
10526  whole_archive_flag_spec=''
10527  link_all_deplibs=yes
10528  allow_undefined_flag="$_lt_dar_allow_undefined"
10529  case $cc_basename in
10530     ifort*) _lt_dar_can_shared=yes ;;
10531     *) _lt_dar_can_shared=$GCC ;;
10532  esac
10533  if test "$_lt_dar_can_shared" = "yes"; then
10534    output_verbose_link_cmd=echo
10535    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10536    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10537    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}"
10538    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}"
10539
10540  else
10541  ld_shlibs=no
10542  fi
10543
10544      ;;
10545
10546    dgux*)
10547      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10548      hardcode_libdir_flag_spec='-L$libdir'
10549      hardcode_shlibpath_var=no
10550      ;;
10551
10552    freebsd1*)
10553      ld_shlibs=no
10554      ;;
10555
10556    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10557    # support.  Future versions do this automatically, but an explicit c++rt0.o
10558    # does not break anything, and helps significantly (at the cost of a little
10559    # extra space).
10560    freebsd2.2*)
10561      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10562      hardcode_libdir_flag_spec='-R$libdir'
10563      hardcode_direct=yes
10564      hardcode_shlibpath_var=no
10565      ;;
10566
10567    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10568    freebsd2*)
10569      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10570      hardcode_direct=yes
10571      hardcode_minus_L=yes
10572      hardcode_shlibpath_var=no
10573      ;;
10574
10575    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10576    freebsd* | dragonfly*)
10577      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10578      hardcode_libdir_flag_spec='-R$libdir'
10579      hardcode_direct=yes
10580      hardcode_shlibpath_var=no
10581      ;;
10582
10583    hpux9*)
10584      if test "$GCC" = yes; then
10585	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'
10586      else
10587	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'
10588      fi
10589      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10590      hardcode_libdir_separator=:
10591      hardcode_direct=yes
10592
10593      # hardcode_minus_L: Not really in the search PATH,
10594      # but as the default location of the library.
10595      hardcode_minus_L=yes
10596      export_dynamic_flag_spec='${wl}-E'
10597      ;;
10598
10599    hpux10*)
10600      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10601	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10602      else
10603	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10604      fi
10605      if test "$with_gnu_ld" = no; then
10606	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10607	hardcode_libdir_flag_spec_ld='+b $libdir'
10608	hardcode_libdir_separator=:
10609	hardcode_direct=yes
10610	hardcode_direct_absolute=yes
10611	export_dynamic_flag_spec='${wl}-E'
10612	# hardcode_minus_L: Not really in the search PATH,
10613	# but as the default location of the library.
10614	hardcode_minus_L=yes
10615      fi
10616      ;;
10617
10618    hpux11*)
10619      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10620	case $host_cpu in
10621	hppa*64*)
10622	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10623	  ;;
10624	ia64*)
10625	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10626	  ;;
10627	*)
10628	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10629	  ;;
10630	esac
10631      else
10632	case $host_cpu in
10633	hppa*64*)
10634	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10635	  ;;
10636	ia64*)
10637	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10638	  ;;
10639	*)
10640	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10641	  ;;
10642	esac
10643      fi
10644      if test "$with_gnu_ld" = no; then
10645	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10646	hardcode_libdir_separator=:
10647
10648	case $host_cpu in
10649	hppa*64*|ia64*)
10650	  hardcode_direct=no
10651	  hardcode_shlibpath_var=no
10652	  ;;
10653	*)
10654	  hardcode_direct=yes
10655	  hardcode_direct_absolute=yes
10656	  export_dynamic_flag_spec='${wl}-E'
10657
10658	  # hardcode_minus_L: Not really in the search PATH,
10659	  # but as the default location of the library.
10660	  hardcode_minus_L=yes
10661	  ;;
10662	esac
10663      fi
10664      ;;
10665
10666    irix5* | irix6* | nonstopux*)
10667      if test "$GCC" = yes; then
10668	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10669	# Try to use the -exported_symbol ld option, if it does not
10670	# work, assume that -exports_file does not work either and
10671	# implicitly export all symbols.
10672        save_LDFLAGS="$LDFLAGS"
10673        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10674        cat >conftest.$ac_ext <<_ACEOF
10675int foo(void) {}
10676_ACEOF
10677rm -f conftest.$ac_objext conftest$ac_exeext
10678if { (ac_try="$ac_link"
10679case "(($ac_try" in
10680  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10681  *) ac_try_echo=$ac_try;;
10682esac
10683eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10684$as_echo "$ac_try_echo") >&5
10685  (eval "$ac_link") 2>conftest.er1
10686  ac_status=$?
10687  grep -v '^ *+' conftest.er1 >conftest.err
10688  rm -f conftest.er1
10689  cat conftest.err >&5
10690  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691  (exit $ac_status); } && {
10692	 test -z "$ac_c_werror_flag" ||
10693	 test ! -s conftest.err
10694       } && test -s conftest$ac_exeext && {
10695	 test "$cross_compiling" = yes ||
10696	 $as_test_x conftest$ac_exeext
10697       }; then
10698  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10699
10700else
10701  $as_echo "$as_me: failed program was:" >&5
10702sed 's/^/| /' conftest.$ac_ext >&5
10703
10704
10705fi
10706
10707rm -rf conftest.dSYM
10708rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10709      conftest$ac_exeext conftest.$ac_ext
10710        LDFLAGS="$save_LDFLAGS"
10711      else
10712	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10713	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10714      fi
10715      archive_cmds_need_lc='no'
10716      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10717      hardcode_libdir_separator=:
10718      inherit_rpath=yes
10719      link_all_deplibs=yes
10720      ;;
10721
10722    netbsd*)
10723      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10724	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10725      else
10726	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10727      fi
10728      hardcode_libdir_flag_spec='-R$libdir'
10729      hardcode_direct=yes
10730      hardcode_shlibpath_var=no
10731      ;;
10732
10733    newsos6)
10734      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10735      hardcode_direct=yes
10736      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10737      hardcode_libdir_separator=:
10738      hardcode_shlibpath_var=no
10739      ;;
10740
10741    *nto* | *qnx*)
10742      ;;
10743
10744    openbsd*)
10745      if test -f /usr/libexec/ld.so; then
10746	hardcode_direct=yes
10747	hardcode_shlibpath_var=no
10748	hardcode_direct_absolute=yes
10749	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10750	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10751	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10752	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10753	  export_dynamic_flag_spec='${wl}-E'
10754	else
10755	  case $host_os in
10756	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10757	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10758	     hardcode_libdir_flag_spec='-R$libdir'
10759	     ;;
10760	   *)
10761	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10762	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10763	     ;;
10764	  esac
10765	fi
10766      else
10767	ld_shlibs=no
10768      fi
10769      ;;
10770
10771    os2*)
10772      hardcode_libdir_flag_spec='-L$libdir'
10773      hardcode_minus_L=yes
10774      allow_undefined_flag=unsupported
10775      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'
10776      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10777      ;;
10778
10779    osf3*)
10780      if test "$GCC" = yes; then
10781	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10782	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10783      else
10784	allow_undefined_flag=' -expect_unresolved \*'
10785	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10786      fi
10787      archive_cmds_need_lc='no'
10788      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10789      hardcode_libdir_separator=:
10790      ;;
10791
10792    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10793      if test "$GCC" = yes; then
10794	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10795	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10796	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10797      else
10798	allow_undefined_flag=' -expect_unresolved \*'
10799	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10800	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~
10801	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10802
10803	# Both c and cxx compiler support -rpath directly
10804	hardcode_libdir_flag_spec='-rpath $libdir'
10805      fi
10806      archive_cmds_need_lc='no'
10807      hardcode_libdir_separator=:
10808      ;;
10809
10810    solaris*)
10811      no_undefined_flag=' -z defs'
10812      if test "$GCC" = yes; then
10813	wlarc='${wl}'
10814	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10815	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10816	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10817      else
10818	case `$CC -V 2>&1` in
10819	*"Compilers 5.0"*)
10820	  wlarc=''
10821	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10822	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10823	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10824	  ;;
10825	*)
10826	  wlarc='${wl}'
10827	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10828	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10829	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10830	  ;;
10831	esac
10832      fi
10833      hardcode_libdir_flag_spec='-R$libdir'
10834      hardcode_shlibpath_var=no
10835      case $host_os in
10836      solaris2.[0-5] | solaris2.[0-5].*) ;;
10837      *)
10838	# The compiler driver will combine and reorder linker options,
10839	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10840	# but is careful enough not to reorder.
10841	# Supported since Solaris 2.6 (maybe 2.5.1?)
10842	if test "$GCC" = yes; then
10843	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10844	else
10845	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10846	fi
10847	;;
10848      esac
10849      link_all_deplibs=yes
10850      ;;
10851
10852    sunos4*)
10853      if test "x$host_vendor" = xsequent; then
10854	# Use $CC to link under sequent, because it throws in some extra .o
10855	# files that make .init and .fini sections work.
10856	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10857      else
10858	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10859      fi
10860      hardcode_libdir_flag_spec='-L$libdir'
10861      hardcode_direct=yes
10862      hardcode_minus_L=yes
10863      hardcode_shlibpath_var=no
10864      ;;
10865
10866    sysv4)
10867      case $host_vendor in
10868	sni)
10869	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10870	  hardcode_direct=yes # is this really true???
10871	;;
10872	siemens)
10873	  ## LD is ld it makes a PLAMLIB
10874	  ## CC just makes a GrossModule.
10875	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10876	  reload_cmds='$CC -r -o $output$reload_objs'
10877	  hardcode_direct=no
10878        ;;
10879	motorola)
10880	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10881	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10882	;;
10883      esac
10884      runpath_var='LD_RUN_PATH'
10885      hardcode_shlibpath_var=no
10886      ;;
10887
10888    sysv4.3*)
10889      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10890      hardcode_shlibpath_var=no
10891      export_dynamic_flag_spec='-Bexport'
10892      ;;
10893
10894    sysv4*MP*)
10895      if test -d /usr/nec; then
10896	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10897	hardcode_shlibpath_var=no
10898	runpath_var=LD_RUN_PATH
10899	hardcode_runpath_var=yes
10900	ld_shlibs=yes
10901      fi
10902      ;;
10903
10904    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10905      no_undefined_flag='${wl}-z,text'
10906      archive_cmds_need_lc=no
10907      hardcode_shlibpath_var=no
10908      runpath_var='LD_RUN_PATH'
10909
10910      if test "$GCC" = yes; then
10911	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10912	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10913      else
10914	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10915	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10916      fi
10917      ;;
10918
10919    sysv5* | sco3.2v5* | sco5v6*)
10920      # Note: We can NOT use -z defs as we might desire, because we do not
10921      # link with -lc, and that would cause any symbols used from libc to
10922      # always be unresolved, which means just about no library would
10923      # ever link correctly.  If we're not using GNU ld we use -z text
10924      # though, which does catch some bad symbols but isn't as heavy-handed
10925      # as -z defs.
10926      no_undefined_flag='${wl}-z,text'
10927      allow_undefined_flag='${wl}-z,nodefs'
10928      archive_cmds_need_lc=no
10929      hardcode_shlibpath_var=no
10930      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10931      hardcode_libdir_separator=':'
10932      link_all_deplibs=yes
10933      export_dynamic_flag_spec='${wl}-Bexport'
10934      runpath_var='LD_RUN_PATH'
10935
10936      if test "$GCC" = yes; then
10937	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10938	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10939      else
10940	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10941	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10942      fi
10943      ;;
10944
10945    uts4*)
10946      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10947      hardcode_libdir_flag_spec='-L$libdir'
10948      hardcode_shlibpath_var=no
10949      ;;
10950
10951    *)
10952      ld_shlibs=no
10953      ;;
10954    esac
10955
10956    if test x$host_vendor = xsni; then
10957      case $host in
10958      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10959	export_dynamic_flag_spec='${wl}-Blargedynsym'
10960	;;
10961      esac
10962    fi
10963  fi
10964
10965{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10966$as_echo "$ld_shlibs" >&6; }
10967test "$ld_shlibs" = no && can_build_shared=no
10968
10969with_gnu_ld=$with_gnu_ld
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985#
10986# Do we need to explicitly link libc?
10987#
10988case "x$archive_cmds_need_lc" in
10989x|xyes)
10990  # Assume -lc should be added
10991  archive_cmds_need_lc=yes
10992
10993  if test "$enable_shared" = yes && test "$GCC" = yes; then
10994    case $archive_cmds in
10995    *'~'*)
10996      # FIXME: we may have to deal with multi-command sequences.
10997      ;;
10998    '$CC '*)
10999      # Test whether the compiler implicitly links with -lc since on some
11000      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11001      # to ld, don't add -lc before -lgcc.
11002      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11003$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11004      $RM conftest*
11005      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11006
11007      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11008  (eval $ac_compile) 2>&5
11009  ac_status=$?
11010  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011  (exit $ac_status); } 2>conftest.err; then
11012        soname=conftest
11013        lib=conftest
11014        libobjs=conftest.$ac_objext
11015        deplibs=
11016        wl=$lt_prog_compiler_wl
11017	pic_flag=$lt_prog_compiler_pic
11018        compiler_flags=-v
11019        linker_flags=-v
11020        verstring=
11021        output_objdir=.
11022        libname=conftest
11023        lt_save_allow_undefined_flag=$allow_undefined_flag
11024        allow_undefined_flag=
11025        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11026  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11027  ac_status=$?
11028  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11029  (exit $ac_status); }
11030        then
11031	  archive_cmds_need_lc=no
11032        else
11033	  archive_cmds_need_lc=yes
11034        fi
11035        allow_undefined_flag=$lt_save_allow_undefined_flag
11036      else
11037        cat conftest.err 1>&5
11038      fi
11039      $RM conftest*
11040      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11041$as_echo "$archive_cmds_need_lc" >&6; }
11042      ;;
11043    esac
11044  fi
11045  ;;
11046esac
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
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204  { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11205$as_echo_n "checking dynamic linker characteristics... " >&6; }
11206
11207if test "$GCC" = yes; then
11208  case $host_os in
11209    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11210    *) lt_awk_arg="/^libraries:/" ;;
11211  esac
11212  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11213  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11214    # if the path contains ";" then we assume it to be the separator
11215    # otherwise default to the standard path separator (i.e. ":") - it is
11216    # assumed that no part of a normal pathname contains ";" but that should
11217    # okay in the real world where ";" in dirpaths is itself problematic.
11218    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11219  else
11220    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11221  fi
11222  # Ok, now we have the path, separated by spaces, we can step through it
11223  # and add multilib dir if necessary.
11224  lt_tmp_lt_search_path_spec=
11225  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11226  for lt_sys_path in $lt_search_path_spec; do
11227    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11228      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11229    else
11230      test -d "$lt_sys_path" && \
11231	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11232    fi
11233  done
11234  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11235BEGIN {RS=" "; FS="/|\n";} {
11236  lt_foo="";
11237  lt_count=0;
11238  for (lt_i = NF; lt_i > 0; lt_i--) {
11239    if ($lt_i != "" && $lt_i != ".") {
11240      if ($lt_i == "..") {
11241        lt_count++;
11242      } else {
11243        if (lt_count == 0) {
11244          lt_foo="/" $lt_i lt_foo;
11245        } else {
11246          lt_count--;
11247        }
11248      }
11249    }
11250  }
11251  if (lt_foo != "") { lt_freq[lt_foo]++; }
11252  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11253}'`
11254  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11255else
11256  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11257fi
11258library_names_spec=
11259libname_spec='lib$name'
11260soname_spec=
11261shrext_cmds=".so"
11262postinstall_cmds=
11263postuninstall_cmds=
11264finish_cmds=
11265finish_eval=
11266shlibpath_var=
11267shlibpath_overrides_runpath=unknown
11268version_type=none
11269dynamic_linker="$host_os ld.so"
11270sys_lib_dlsearch_path_spec="/lib /usr/lib"
11271need_lib_prefix=unknown
11272hardcode_into_libs=no
11273
11274# when you set need_version to no, make sure it does not cause -set_version
11275# flags to be left without arguments
11276need_version=unknown
11277
11278case $host_os in
11279aix3*)
11280  version_type=linux
11281  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11282  shlibpath_var=LIBPATH
11283
11284  # AIX 3 has no versioning support, so we append a major version to the name.
11285  soname_spec='${libname}${release}${shared_ext}$major'
11286  ;;
11287
11288aix[4-9]*)
11289  version_type=linux
11290  need_lib_prefix=no
11291  need_version=no
11292  hardcode_into_libs=yes
11293  if test "$host_cpu" = ia64; then
11294    # AIX 5 supports IA64
11295    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11296    shlibpath_var=LD_LIBRARY_PATH
11297  else
11298    # With GCC up to 2.95.x, collect2 would create an import file
11299    # for dependence libraries.  The import file would start with
11300    # the line `#! .'.  This would cause the generated library to
11301    # depend on `.', always an invalid library.  This was fixed in
11302    # development snapshots of GCC prior to 3.0.
11303    case $host_os in
11304      aix4 | aix4.[01] | aix4.[01].*)
11305      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11306	   echo ' yes '
11307	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11308	:
11309      else
11310	can_build_shared=no
11311      fi
11312      ;;
11313    esac
11314    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11315    # soname into executable. Probably we can add versioning support to
11316    # collect2, so additional links can be useful in future.
11317    if test "$aix_use_runtimelinking" = yes; then
11318      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11319      # instead of lib<name>.a to let people know that these are not
11320      # typical AIX shared libraries.
11321      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11322    else
11323      # We preserve .a as extension for shared libraries through AIX4.2
11324      # and later when we are not doing run time linking.
11325      library_names_spec='${libname}${release}.a $libname.a'
11326      soname_spec='${libname}${release}${shared_ext}$major'
11327    fi
11328    shlibpath_var=LIBPATH
11329  fi
11330  ;;
11331
11332amigaos*)
11333  case $host_cpu in
11334  powerpc)
11335    # Since July 2007 AmigaOS4 officially supports .so libraries.
11336    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11337    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11338    ;;
11339  m68k)
11340    library_names_spec='$libname.ixlibrary $libname.a'
11341    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11342    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
11343    ;;
11344  esac
11345  ;;
11346
11347beos*)
11348  library_names_spec='${libname}${shared_ext}'
11349  dynamic_linker="$host_os ld.so"
11350  shlibpath_var=LIBRARY_PATH
11351  ;;
11352
11353bsdi[45]*)
11354  version_type=linux
11355  need_version=no
11356  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11357  soname_spec='${libname}${release}${shared_ext}$major'
11358  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11359  shlibpath_var=LD_LIBRARY_PATH
11360  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11361  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11362  # the default ld.so.conf also contains /usr/contrib/lib and
11363  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11364  # libtool to hard-code these into programs
11365  ;;
11366
11367cygwin* | mingw* | pw32* | cegcc*)
11368  version_type=windows
11369  shrext_cmds=".dll"
11370  need_version=no
11371  need_lib_prefix=no
11372
11373  case $GCC,$host_os in
11374  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11375    library_names_spec='$libname.dll.a'
11376    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11377    postinstall_cmds='base_file=`basename \${file}`~
11378      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11379      dldir=$destdir/`dirname \$dlpath`~
11380      test -d \$dldir || mkdir -p \$dldir~
11381      $install_prog $dir/$dlname \$dldir/$dlname~
11382      chmod a+x \$dldir/$dlname~
11383      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11384        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11385      fi'
11386    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11387      dlpath=$dir/\$dldll~
11388       $RM \$dlpath'
11389    shlibpath_overrides_runpath=yes
11390
11391    case $host_os in
11392    cygwin*)
11393      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11394      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11395      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11396      ;;
11397    mingw* | cegcc*)
11398      # MinGW DLLs use traditional 'lib' prefix
11399      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11400      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11401      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11402        # It is most probably a Windows format PATH printed by
11403        # mingw gcc, but we are running on Cygwin. Gcc prints its search
11404        # path with ; separators, and with drive letters. We can handle the
11405        # drive letters (cygwin fileutils understands them), so leave them,
11406        # especially as we might pass files found there to a mingw objdump,
11407        # which wouldn't understand a cygwinified path. Ahh.
11408        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11409      else
11410        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11411      fi
11412      ;;
11413    pw32*)
11414      # pw32 DLLs use 'pw' prefix rather than 'lib'
11415      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11416      ;;
11417    esac
11418    ;;
11419
11420  *)
11421    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11422    ;;
11423  esac
11424  dynamic_linker='Win32 ld.exe'
11425  # FIXME: first we should search . and the directory the executable is in
11426  shlibpath_var=PATH
11427  ;;
11428
11429darwin* | rhapsody*)
11430  dynamic_linker="$host_os dyld"
11431  version_type=darwin
11432  need_lib_prefix=no
11433  need_version=no
11434  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11435  soname_spec='${libname}${release}${major}$shared_ext'
11436  shlibpath_overrides_runpath=yes
11437  shlibpath_var=DYLD_LIBRARY_PATH
11438  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11439
11440  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11441  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11442  ;;
11443
11444dgux*)
11445  version_type=linux
11446  need_lib_prefix=no
11447  need_version=no
11448  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11449  soname_spec='${libname}${release}${shared_ext}$major'
11450  shlibpath_var=LD_LIBRARY_PATH
11451  ;;
11452
11453freebsd1*)
11454  dynamic_linker=no
11455  ;;
11456
11457freebsd* | dragonfly*)
11458  # DragonFly does not have aout.  When/if they implement a new
11459  # versioning mechanism, adjust this.
11460  if test -x /usr/bin/objformat; then
11461    objformat=`/usr/bin/objformat`
11462  else
11463    case $host_os in
11464    freebsd[123]*) objformat=aout ;;
11465    *) objformat=elf ;;
11466    esac
11467  fi
11468  # Handle Gentoo/FreeBSD as it was Linux
11469  case $host_vendor in
11470    gentoo)
11471      version_type=linux ;;
11472    *)
11473      version_type=freebsd-$objformat ;;
11474  esac
11475
11476  case $version_type in
11477    freebsd-elf*)
11478      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11479      need_version=no
11480      need_lib_prefix=no
11481      ;;
11482    freebsd-*)
11483      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11484      need_version=yes
11485      ;;
11486    linux)
11487      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11488      soname_spec='${libname}${release}${shared_ext}$major'
11489      need_lib_prefix=no
11490      need_version=no
11491      ;;
11492  esac
11493  shlibpath_var=LD_LIBRARY_PATH
11494  case $host_os in
11495  freebsd2*)
11496    shlibpath_overrides_runpath=yes
11497    ;;
11498  freebsd3.[01]* | freebsdelf3.[01]*)
11499    shlibpath_overrides_runpath=yes
11500    hardcode_into_libs=yes
11501    ;;
11502  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11503  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11504    shlibpath_overrides_runpath=no
11505    hardcode_into_libs=yes
11506    ;;
11507  *) # from 4.6 on, and DragonFly
11508    shlibpath_overrides_runpath=yes
11509    hardcode_into_libs=yes
11510    ;;
11511  esac
11512  ;;
11513
11514gnu*)
11515  version_type=linux
11516  need_lib_prefix=no
11517  need_version=no
11518  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11519  soname_spec='${libname}${release}${shared_ext}$major'
11520  shlibpath_var=LD_LIBRARY_PATH
11521  hardcode_into_libs=yes
11522  ;;
11523
11524hpux9* | hpux10* | hpux11*)
11525  # Give a soname corresponding to the major version so that dld.sl refuses to
11526  # link against other versions.
11527  version_type=sunos
11528  need_lib_prefix=no
11529  need_version=no
11530  case $host_cpu in
11531  ia64*)
11532    shrext_cmds='.so'
11533    hardcode_into_libs=yes
11534    dynamic_linker="$host_os dld.so"
11535    shlibpath_var=LD_LIBRARY_PATH
11536    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11537    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11538    soname_spec='${libname}${release}${shared_ext}$major'
11539    if test "X$HPUX_IA64_MODE" = X32; then
11540      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11541    else
11542      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11543    fi
11544    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11545    ;;
11546  hppa*64*)
11547    shrext_cmds='.sl'
11548    hardcode_into_libs=yes
11549    dynamic_linker="$host_os dld.sl"
11550    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11551    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11552    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11553    soname_spec='${libname}${release}${shared_ext}$major'
11554    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11555    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11556    ;;
11557  *)
11558    shrext_cmds='.sl'
11559    dynamic_linker="$host_os dld.sl"
11560    shlibpath_var=SHLIB_PATH
11561    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11562    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11563    soname_spec='${libname}${release}${shared_ext}$major'
11564    ;;
11565  esac
11566  # HP-UX runs *really* slowly unless shared libraries are mode 555.
11567  postinstall_cmds='chmod 555 $lib'
11568  ;;
11569
11570interix[3-9]*)
11571  version_type=linux
11572  need_lib_prefix=no
11573  need_version=no
11574  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11575  soname_spec='${libname}${release}${shared_ext}$major'
11576  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11577  shlibpath_var=LD_LIBRARY_PATH
11578  shlibpath_overrides_runpath=no
11579  hardcode_into_libs=yes
11580  ;;
11581
11582irix5* | irix6* | nonstopux*)
11583  case $host_os in
11584    nonstopux*) version_type=nonstopux ;;
11585    *)
11586	if test "$lt_cv_prog_gnu_ld" = yes; then
11587		version_type=linux
11588	else
11589		version_type=irix
11590	fi ;;
11591  esac
11592  need_lib_prefix=no
11593  need_version=no
11594  soname_spec='${libname}${release}${shared_ext}$major'
11595  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11596  case $host_os in
11597  irix5* | nonstopux*)
11598    libsuff= shlibsuff=
11599    ;;
11600  *)
11601    case $LD in # libtool.m4 will add one of these switches to LD
11602    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11603      libsuff= shlibsuff= libmagic=32-bit;;
11604    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11605      libsuff=32 shlibsuff=N32 libmagic=N32;;
11606    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11607      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11608    *) libsuff= shlibsuff= libmagic=never-match;;
11609    esac
11610    ;;
11611  esac
11612  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11613  shlibpath_overrides_runpath=no
11614  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11615  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11616  hardcode_into_libs=yes
11617  ;;
11618
11619# No shared lib support for Linux oldld, aout, or coff.
11620linux*oldld* | linux*aout* | linux*coff*)
11621  dynamic_linker=no
11622  ;;
11623
11624# This must be Linux ELF.
11625linux* | k*bsd*-gnu)
11626  version_type=linux
11627  need_lib_prefix=no
11628  need_version=no
11629  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11630  soname_spec='${libname}${release}${shared_ext}$major'
11631  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11632  shlibpath_var=LD_LIBRARY_PATH
11633  shlibpath_overrides_runpath=no
11634  # Some binutils ld are patched to set DT_RUNPATH
11635  save_LDFLAGS=$LDFLAGS
11636  save_libdir=$libdir
11637  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11638       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11639  cat >conftest.$ac_ext <<_ACEOF
11640/* confdefs.h.  */
11641_ACEOF
11642cat confdefs.h >>conftest.$ac_ext
11643cat >>conftest.$ac_ext <<_ACEOF
11644/* end confdefs.h.  */
11645
11646int
11647main ()
11648{
11649
11650  ;
11651  return 0;
11652}
11653_ACEOF
11654rm -f conftest.$ac_objext conftest$ac_exeext
11655if { (ac_try="$ac_link"
11656case "(($ac_try" in
11657  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11658  *) ac_try_echo=$ac_try;;
11659esac
11660eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11661$as_echo "$ac_try_echo") >&5
11662  (eval "$ac_link") 2>conftest.er1
11663  ac_status=$?
11664  grep -v '^ *+' conftest.er1 >conftest.err
11665  rm -f conftest.er1
11666  cat conftest.err >&5
11667  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668  (exit $ac_status); } && {
11669	 test -z "$ac_c_werror_flag" ||
11670	 test ! -s conftest.err
11671       } && test -s conftest$ac_exeext && {
11672	 test "$cross_compiling" = yes ||
11673	 $as_test_x conftest$ac_exeext
11674       }; then
11675  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11676  shlibpath_overrides_runpath=yes
11677fi
11678
11679else
11680  $as_echo "$as_me: failed program was:" >&5
11681sed 's/^/| /' conftest.$ac_ext >&5
11682
11683
11684fi
11685
11686rm -rf conftest.dSYM
11687rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11688      conftest$ac_exeext conftest.$ac_ext
11689  LDFLAGS=$save_LDFLAGS
11690  libdir=$save_libdir
11691
11692  # This implies no fast_install, which is unacceptable.
11693  # Some rework will be needed to allow for fast_install
11694  # before this can be enabled.
11695  hardcode_into_libs=yes
11696
11697  # Append ld.so.conf contents to the search path
11698  if test -f /etc/ld.so.conf; then
11699    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;/^$/d' | tr '\n' ' '`
11700    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11701  fi
11702
11703  # We used to test for /lib/ld.so.1 and disable shared libraries on
11704  # powerpc, because MkLinux only supported shared libraries with the
11705  # GNU dynamic linker.  Since this was broken with cross compilers,
11706  # most powerpc-linux boxes support dynamic linking these days and
11707  # people can always --disable-shared, the test was removed, and we
11708  # assume the GNU/Linux dynamic linker is in use.
11709  dynamic_linker='GNU/Linux ld.so'
11710  ;;
11711
11712netbsd*)
11713  version_type=sunos
11714  need_lib_prefix=no
11715  need_version=no
11716  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11717    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11718    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11719    dynamic_linker='NetBSD (a.out) ld.so'
11720  else
11721    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11722    soname_spec='${libname}${release}${shared_ext}$major'
11723    dynamic_linker='NetBSD ld.elf_so'
11724  fi
11725  shlibpath_var=LD_LIBRARY_PATH
11726  shlibpath_overrides_runpath=yes
11727  hardcode_into_libs=yes
11728  ;;
11729
11730newsos6)
11731  version_type=linux
11732  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11733  shlibpath_var=LD_LIBRARY_PATH
11734  shlibpath_overrides_runpath=yes
11735  ;;
11736
11737*nto* | *qnx*)
11738  version_type=qnx
11739  need_lib_prefix=no
11740  need_version=no
11741  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11742  soname_spec='${libname}${release}${shared_ext}$major'
11743  shlibpath_var=LD_LIBRARY_PATH
11744  shlibpath_overrides_runpath=no
11745  hardcode_into_libs=yes
11746  dynamic_linker='ldqnx.so'
11747  ;;
11748
11749openbsd*)
11750  version_type=sunos
11751  sys_lib_dlsearch_path_spec="/usr/lib"
11752  need_lib_prefix=no
11753  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11754  case $host_os in
11755    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
11756    *)				need_version=no  ;;
11757  esac
11758  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11759  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11760  shlibpath_var=LD_LIBRARY_PATH
11761  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11762    case $host_os in
11763      openbsd2.[89] | openbsd2.[89].*)
11764	shlibpath_overrides_runpath=no
11765	;;
11766      *)
11767	shlibpath_overrides_runpath=yes
11768	;;
11769      esac
11770  else
11771    shlibpath_overrides_runpath=yes
11772  fi
11773  ;;
11774
11775os2*)
11776  libname_spec='$name'
11777  shrext_cmds=".dll"
11778  need_lib_prefix=no
11779  library_names_spec='$libname${shared_ext} $libname.a'
11780  dynamic_linker='OS/2 ld.exe'
11781  shlibpath_var=LIBPATH
11782  ;;
11783
11784osf3* | osf4* | osf5*)
11785  version_type=osf
11786  need_lib_prefix=no
11787  need_version=no
11788  soname_spec='${libname}${release}${shared_ext}$major'
11789  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11790  shlibpath_var=LD_LIBRARY_PATH
11791  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11792  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11793  ;;
11794
11795rdos*)
11796  dynamic_linker=no
11797  ;;
11798
11799solaris*)
11800  version_type=linux
11801  need_lib_prefix=no
11802  need_version=no
11803  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11804  soname_spec='${libname}${release}${shared_ext}$major'
11805  shlibpath_var=LD_LIBRARY_PATH
11806  shlibpath_overrides_runpath=yes
11807  hardcode_into_libs=yes
11808  # ldd complains unless libraries are executable
11809  postinstall_cmds='chmod +x $lib'
11810  ;;
11811
11812sunos4*)
11813  version_type=sunos
11814  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11815  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11816  shlibpath_var=LD_LIBRARY_PATH
11817  shlibpath_overrides_runpath=yes
11818  if test "$with_gnu_ld" = yes; then
11819    need_lib_prefix=no
11820  fi
11821  need_version=yes
11822  ;;
11823
11824sysv4 | sysv4.3*)
11825  version_type=linux
11826  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11827  soname_spec='${libname}${release}${shared_ext}$major'
11828  shlibpath_var=LD_LIBRARY_PATH
11829  case $host_vendor in
11830    sni)
11831      shlibpath_overrides_runpath=no
11832      need_lib_prefix=no
11833      runpath_var=LD_RUN_PATH
11834      ;;
11835    siemens)
11836      need_lib_prefix=no
11837      ;;
11838    motorola)
11839      need_lib_prefix=no
11840      need_version=no
11841      shlibpath_overrides_runpath=no
11842      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11843      ;;
11844  esac
11845  ;;
11846
11847sysv4*MP*)
11848  if test -d /usr/nec ;then
11849    version_type=linux
11850    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11851    soname_spec='$libname${shared_ext}.$major'
11852    shlibpath_var=LD_LIBRARY_PATH
11853  fi
11854  ;;
11855
11856sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11857  version_type=freebsd-elf
11858  need_lib_prefix=no
11859  need_version=no
11860  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11861  soname_spec='${libname}${release}${shared_ext}$major'
11862  shlibpath_var=LD_LIBRARY_PATH
11863  shlibpath_overrides_runpath=yes
11864  hardcode_into_libs=yes
11865  if test "$with_gnu_ld" = yes; then
11866    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11867  else
11868    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11869    case $host_os in
11870      sco3.2v5*)
11871        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11872	;;
11873    esac
11874  fi
11875  sys_lib_dlsearch_path_spec='/usr/lib'
11876  ;;
11877
11878tpf*)
11879  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11880  version_type=linux
11881  need_lib_prefix=no
11882  need_version=no
11883  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11884  shlibpath_var=LD_LIBRARY_PATH
11885  shlibpath_overrides_runpath=no
11886  hardcode_into_libs=yes
11887  ;;
11888
11889uts4*)
11890  version_type=linux
11891  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11892  soname_spec='${libname}${release}${shared_ext}$major'
11893  shlibpath_var=LD_LIBRARY_PATH
11894  ;;
11895
11896*)
11897  dynamic_linker=no
11898  ;;
11899esac
11900{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11901$as_echo "$dynamic_linker" >&6; }
11902test "$dynamic_linker" = no && can_build_shared=no
11903
11904variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11905if test "$GCC" = yes; then
11906  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11907fi
11908
11909if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11910  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11911fi
11912if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11913  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11914fi
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002  { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12003$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12004hardcode_action=
12005if test -n "$hardcode_libdir_flag_spec" ||
12006   test -n "$runpath_var" ||
12007   test "X$hardcode_automatic" = "Xyes" ; then
12008
12009  # We can hardcode non-existent directories.
12010  if test "$hardcode_direct" != no &&
12011     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12012     # have to relink, otherwise we might link with an installed library
12013     # when we should be linking with a yet-to-be-installed one
12014     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12015     test "$hardcode_minus_L" != no; then
12016    # Linking always hardcodes the temporary library directory.
12017    hardcode_action=relink
12018  else
12019    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12020    hardcode_action=immediate
12021  fi
12022else
12023  # We cannot hardcode anything, or else we can only hardcode existing
12024  # directories.
12025  hardcode_action=unsupported
12026fi
12027{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
12028$as_echo "$hardcode_action" >&6; }
12029
12030if test "$hardcode_action" = relink ||
12031   test "$inherit_rpath" = yes; then
12032  # Fast installation is not supported
12033  enable_fast_install=no
12034elif test "$shlibpath_overrides_runpath" = yes ||
12035     test "$enable_shared" = no; then
12036  # Fast installation is not necessary
12037  enable_fast_install=needless
12038fi
12039
12040
12041
12042
12043
12044
12045  if test "x$enable_dlopen" != xyes; then
12046  enable_dlopen=unknown
12047  enable_dlopen_self=unknown
12048  enable_dlopen_self_static=unknown
12049else
12050  lt_cv_dlopen=no
12051  lt_cv_dlopen_libs=
12052
12053  case $host_os in
12054  beos*)
12055    lt_cv_dlopen="load_add_on"
12056    lt_cv_dlopen_libs=
12057    lt_cv_dlopen_self=yes
12058    ;;
12059
12060  mingw* | pw32* | cegcc*)
12061    lt_cv_dlopen="LoadLibrary"
12062    lt_cv_dlopen_libs=
12063    ;;
12064
12065  cygwin*)
12066    lt_cv_dlopen="dlopen"
12067    lt_cv_dlopen_libs=
12068    ;;
12069
12070  darwin*)
12071  # if libdl is installed we need to link against it
12072    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12073$as_echo_n "checking for dlopen in -ldl... " >&6; }
12074if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12075  $as_echo_n "(cached) " >&6
12076else
12077  ac_check_lib_save_LIBS=$LIBS
12078LIBS="-ldl  $LIBS"
12079cat >conftest.$ac_ext <<_ACEOF
12080/* confdefs.h.  */
12081_ACEOF
12082cat confdefs.h >>conftest.$ac_ext
12083cat >>conftest.$ac_ext <<_ACEOF
12084/* end confdefs.h.  */
12085
12086/* Override any GCC internal prototype to avoid an error.
12087   Use char because int might match the return type of a GCC
12088   builtin and then its argument prototype would still apply.  */
12089#ifdef __cplusplus
12090extern "C"
12091#endif
12092char dlopen ();
12093int
12094main ()
12095{
12096return dlopen ();
12097  ;
12098  return 0;
12099}
12100_ACEOF
12101rm -f conftest.$ac_objext conftest$ac_exeext
12102if { (ac_try="$ac_link"
12103case "(($ac_try" in
12104  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12105  *) ac_try_echo=$ac_try;;
12106esac
12107eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12108$as_echo "$ac_try_echo") >&5
12109  (eval "$ac_link") 2>conftest.er1
12110  ac_status=$?
12111  grep -v '^ *+' conftest.er1 >conftest.err
12112  rm -f conftest.er1
12113  cat conftest.err >&5
12114  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115  (exit $ac_status); } && {
12116	 test -z "$ac_c_werror_flag" ||
12117	 test ! -s conftest.err
12118       } && test -s conftest$ac_exeext && {
12119	 test "$cross_compiling" = yes ||
12120	 $as_test_x conftest$ac_exeext
12121       }; then
12122  ac_cv_lib_dl_dlopen=yes
12123else
12124  $as_echo "$as_me: failed program was:" >&5
12125sed 's/^/| /' conftest.$ac_ext >&5
12126
12127	ac_cv_lib_dl_dlopen=no
12128fi
12129
12130rm -rf conftest.dSYM
12131rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12132      conftest$ac_exeext conftest.$ac_ext
12133LIBS=$ac_check_lib_save_LIBS
12134fi
12135{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12136$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12137if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12138  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12139else
12140
12141    lt_cv_dlopen="dyld"
12142    lt_cv_dlopen_libs=
12143    lt_cv_dlopen_self=yes
12144
12145fi
12146
12147    ;;
12148
12149  *)
12150    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
12151$as_echo_n "checking for shl_load... " >&6; }
12152if test "${ac_cv_func_shl_load+set}" = set; then
12153  $as_echo_n "(cached) " >&6
12154else
12155  cat >conftest.$ac_ext <<_ACEOF
12156/* confdefs.h.  */
12157_ACEOF
12158cat confdefs.h >>conftest.$ac_ext
12159cat >>conftest.$ac_ext <<_ACEOF
12160/* end confdefs.h.  */
12161/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12162   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12163#define shl_load innocuous_shl_load
12164
12165/* System header to define __stub macros and hopefully few prototypes,
12166    which can conflict with char shl_load (); below.
12167    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12168    <limits.h> exists even on freestanding compilers.  */
12169
12170#ifdef __STDC__
12171# include <limits.h>
12172#else
12173# include <assert.h>
12174#endif
12175
12176#undef shl_load
12177
12178/* Override any GCC internal prototype to avoid an error.
12179   Use char because int might match the return type of a GCC
12180   builtin and then its argument prototype would still apply.  */
12181#ifdef __cplusplus
12182extern "C"
12183#endif
12184char shl_load ();
12185/* The GNU C library defines this for functions which it implements
12186    to always fail with ENOSYS.  Some functions are actually named
12187    something starting with __ and the normal name is an alias.  */
12188#if defined __stub_shl_load || defined __stub___shl_load
12189choke me
12190#endif
12191
12192int
12193main ()
12194{
12195return shl_load ();
12196  ;
12197  return 0;
12198}
12199_ACEOF
12200rm -f conftest.$ac_objext conftest$ac_exeext
12201if { (ac_try="$ac_link"
12202case "(($ac_try" in
12203  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12204  *) ac_try_echo=$ac_try;;
12205esac
12206eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12207$as_echo "$ac_try_echo") >&5
12208  (eval "$ac_link") 2>conftest.er1
12209  ac_status=$?
12210  grep -v '^ *+' conftest.er1 >conftest.err
12211  rm -f conftest.er1
12212  cat conftest.err >&5
12213  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214  (exit $ac_status); } && {
12215	 test -z "$ac_c_werror_flag" ||
12216	 test ! -s conftest.err
12217       } && test -s conftest$ac_exeext && {
12218	 test "$cross_compiling" = yes ||
12219	 $as_test_x conftest$ac_exeext
12220       }; then
12221  ac_cv_func_shl_load=yes
12222else
12223  $as_echo "$as_me: failed program was:" >&5
12224sed 's/^/| /' conftest.$ac_ext >&5
12225
12226	ac_cv_func_shl_load=no
12227fi
12228
12229rm -rf conftest.dSYM
12230rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12231      conftest$ac_exeext conftest.$ac_ext
12232fi
12233{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12234$as_echo "$ac_cv_func_shl_load" >&6; }
12235if test "x$ac_cv_func_shl_load" = x""yes; then
12236  lt_cv_dlopen="shl_load"
12237else
12238  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12239$as_echo_n "checking for shl_load in -ldld... " >&6; }
12240if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12241  $as_echo_n "(cached) " >&6
12242else
12243  ac_check_lib_save_LIBS=$LIBS
12244LIBS="-ldld  $LIBS"
12245cat >conftest.$ac_ext <<_ACEOF
12246/* confdefs.h.  */
12247_ACEOF
12248cat confdefs.h >>conftest.$ac_ext
12249cat >>conftest.$ac_ext <<_ACEOF
12250/* end confdefs.h.  */
12251
12252/* Override any GCC internal prototype to avoid an error.
12253   Use char because int might match the return type of a GCC
12254   builtin and then its argument prototype would still apply.  */
12255#ifdef __cplusplus
12256extern "C"
12257#endif
12258char shl_load ();
12259int
12260main ()
12261{
12262return shl_load ();
12263  ;
12264  return 0;
12265}
12266_ACEOF
12267rm -f conftest.$ac_objext conftest$ac_exeext
12268if { (ac_try="$ac_link"
12269case "(($ac_try" in
12270  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12271  *) ac_try_echo=$ac_try;;
12272esac
12273eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12274$as_echo "$ac_try_echo") >&5
12275  (eval "$ac_link") 2>conftest.er1
12276  ac_status=$?
12277  grep -v '^ *+' conftest.er1 >conftest.err
12278  rm -f conftest.er1
12279  cat conftest.err >&5
12280  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281  (exit $ac_status); } && {
12282	 test -z "$ac_c_werror_flag" ||
12283	 test ! -s conftest.err
12284       } && test -s conftest$ac_exeext && {
12285	 test "$cross_compiling" = yes ||
12286	 $as_test_x conftest$ac_exeext
12287       }; then
12288  ac_cv_lib_dld_shl_load=yes
12289else
12290  $as_echo "$as_me: failed program was:" >&5
12291sed 's/^/| /' conftest.$ac_ext >&5
12292
12293	ac_cv_lib_dld_shl_load=no
12294fi
12295
12296rm -rf conftest.dSYM
12297rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12298      conftest$ac_exeext conftest.$ac_ext
12299LIBS=$ac_check_lib_save_LIBS
12300fi
12301{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12302$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12303if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
12304  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12305else
12306  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
12307$as_echo_n "checking for dlopen... " >&6; }
12308if test "${ac_cv_func_dlopen+set}" = set; then
12309  $as_echo_n "(cached) " >&6
12310else
12311  cat >conftest.$ac_ext <<_ACEOF
12312/* confdefs.h.  */
12313_ACEOF
12314cat confdefs.h >>conftest.$ac_ext
12315cat >>conftest.$ac_ext <<_ACEOF
12316/* end confdefs.h.  */
12317/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12318   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12319#define dlopen innocuous_dlopen
12320
12321/* System header to define __stub macros and hopefully few prototypes,
12322    which can conflict with char dlopen (); below.
12323    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12324    <limits.h> exists even on freestanding compilers.  */
12325
12326#ifdef __STDC__
12327# include <limits.h>
12328#else
12329# include <assert.h>
12330#endif
12331
12332#undef dlopen
12333
12334/* Override any GCC internal prototype to avoid an error.
12335   Use char because int might match the return type of a GCC
12336   builtin and then its argument prototype would still apply.  */
12337#ifdef __cplusplus
12338extern "C"
12339#endif
12340char dlopen ();
12341/* The GNU C library defines this for functions which it implements
12342    to always fail with ENOSYS.  Some functions are actually named
12343    something starting with __ and the normal name is an alias.  */
12344#if defined __stub_dlopen || defined __stub___dlopen
12345choke me
12346#endif
12347
12348int
12349main ()
12350{
12351return dlopen ();
12352  ;
12353  return 0;
12354}
12355_ACEOF
12356rm -f conftest.$ac_objext conftest$ac_exeext
12357if { (ac_try="$ac_link"
12358case "(($ac_try" in
12359  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12360  *) ac_try_echo=$ac_try;;
12361esac
12362eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12363$as_echo "$ac_try_echo") >&5
12364  (eval "$ac_link") 2>conftest.er1
12365  ac_status=$?
12366  grep -v '^ *+' conftest.er1 >conftest.err
12367  rm -f conftest.er1
12368  cat conftest.err >&5
12369  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370  (exit $ac_status); } && {
12371	 test -z "$ac_c_werror_flag" ||
12372	 test ! -s conftest.err
12373       } && test -s conftest$ac_exeext && {
12374	 test "$cross_compiling" = yes ||
12375	 $as_test_x conftest$ac_exeext
12376       }; then
12377  ac_cv_func_dlopen=yes
12378else
12379  $as_echo "$as_me: failed program was:" >&5
12380sed 's/^/| /' conftest.$ac_ext >&5
12381
12382	ac_cv_func_dlopen=no
12383fi
12384
12385rm -rf conftest.dSYM
12386rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12387      conftest$ac_exeext conftest.$ac_ext
12388fi
12389{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12390$as_echo "$ac_cv_func_dlopen" >&6; }
12391if test "x$ac_cv_func_dlopen" = x""yes; then
12392  lt_cv_dlopen="dlopen"
12393else
12394  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12395$as_echo_n "checking for dlopen in -ldl... " >&6; }
12396if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12397  $as_echo_n "(cached) " >&6
12398else
12399  ac_check_lib_save_LIBS=$LIBS
12400LIBS="-ldl  $LIBS"
12401cat >conftest.$ac_ext <<_ACEOF
12402/* confdefs.h.  */
12403_ACEOF
12404cat confdefs.h >>conftest.$ac_ext
12405cat >>conftest.$ac_ext <<_ACEOF
12406/* end confdefs.h.  */
12407
12408/* Override any GCC internal prototype to avoid an error.
12409   Use char because int might match the return type of a GCC
12410   builtin and then its argument prototype would still apply.  */
12411#ifdef __cplusplus
12412extern "C"
12413#endif
12414char dlopen ();
12415int
12416main ()
12417{
12418return dlopen ();
12419  ;
12420  return 0;
12421}
12422_ACEOF
12423rm -f conftest.$ac_objext conftest$ac_exeext
12424if { (ac_try="$ac_link"
12425case "(($ac_try" in
12426  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12427  *) ac_try_echo=$ac_try;;
12428esac
12429eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12430$as_echo "$ac_try_echo") >&5
12431  (eval "$ac_link") 2>conftest.er1
12432  ac_status=$?
12433  grep -v '^ *+' conftest.er1 >conftest.err
12434  rm -f conftest.er1
12435  cat conftest.err >&5
12436  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437  (exit $ac_status); } && {
12438	 test -z "$ac_c_werror_flag" ||
12439	 test ! -s conftest.err
12440       } && test -s conftest$ac_exeext && {
12441	 test "$cross_compiling" = yes ||
12442	 $as_test_x conftest$ac_exeext
12443       }; then
12444  ac_cv_lib_dl_dlopen=yes
12445else
12446  $as_echo "$as_me: failed program was:" >&5
12447sed 's/^/| /' conftest.$ac_ext >&5
12448
12449	ac_cv_lib_dl_dlopen=no
12450fi
12451
12452rm -rf conftest.dSYM
12453rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12454      conftest$ac_exeext conftest.$ac_ext
12455LIBS=$ac_check_lib_save_LIBS
12456fi
12457{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12458$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12459if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12460  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12461else
12462  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12463$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12464if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12465  $as_echo_n "(cached) " >&6
12466else
12467  ac_check_lib_save_LIBS=$LIBS
12468LIBS="-lsvld  $LIBS"
12469cat >conftest.$ac_ext <<_ACEOF
12470/* confdefs.h.  */
12471_ACEOF
12472cat confdefs.h >>conftest.$ac_ext
12473cat >>conftest.$ac_ext <<_ACEOF
12474/* end confdefs.h.  */
12475
12476/* Override any GCC internal prototype to avoid an error.
12477   Use char because int might match the return type of a GCC
12478   builtin and then its argument prototype would still apply.  */
12479#ifdef __cplusplus
12480extern "C"
12481#endif
12482char dlopen ();
12483int
12484main ()
12485{
12486return dlopen ();
12487  ;
12488  return 0;
12489}
12490_ACEOF
12491rm -f conftest.$ac_objext conftest$ac_exeext
12492if { (ac_try="$ac_link"
12493case "(($ac_try" in
12494  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12495  *) ac_try_echo=$ac_try;;
12496esac
12497eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12498$as_echo "$ac_try_echo") >&5
12499  (eval "$ac_link") 2>conftest.er1
12500  ac_status=$?
12501  grep -v '^ *+' conftest.er1 >conftest.err
12502  rm -f conftest.er1
12503  cat conftest.err >&5
12504  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12505  (exit $ac_status); } && {
12506	 test -z "$ac_c_werror_flag" ||
12507	 test ! -s conftest.err
12508       } && test -s conftest$ac_exeext && {
12509	 test "$cross_compiling" = yes ||
12510	 $as_test_x conftest$ac_exeext
12511       }; then
12512  ac_cv_lib_svld_dlopen=yes
12513else
12514  $as_echo "$as_me: failed program was:" >&5
12515sed 's/^/| /' conftest.$ac_ext >&5
12516
12517	ac_cv_lib_svld_dlopen=no
12518fi
12519
12520rm -rf conftest.dSYM
12521rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12522      conftest$ac_exeext conftest.$ac_ext
12523LIBS=$ac_check_lib_save_LIBS
12524fi
12525{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12526$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12527if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
12528  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12529else
12530  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12531$as_echo_n "checking for dld_link in -ldld... " >&6; }
12532if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12533  $as_echo_n "(cached) " >&6
12534else
12535  ac_check_lib_save_LIBS=$LIBS
12536LIBS="-ldld  $LIBS"
12537cat >conftest.$ac_ext <<_ACEOF
12538/* confdefs.h.  */
12539_ACEOF
12540cat confdefs.h >>conftest.$ac_ext
12541cat >>conftest.$ac_ext <<_ACEOF
12542/* end confdefs.h.  */
12543
12544/* Override any GCC internal prototype to avoid an error.
12545   Use char because int might match the return type of a GCC
12546   builtin and then its argument prototype would still apply.  */
12547#ifdef __cplusplus
12548extern "C"
12549#endif
12550char dld_link ();
12551int
12552main ()
12553{
12554return dld_link ();
12555  ;
12556  return 0;
12557}
12558_ACEOF
12559rm -f conftest.$ac_objext conftest$ac_exeext
12560if { (ac_try="$ac_link"
12561case "(($ac_try" in
12562  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12563  *) ac_try_echo=$ac_try;;
12564esac
12565eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12566$as_echo "$ac_try_echo") >&5
12567  (eval "$ac_link") 2>conftest.er1
12568  ac_status=$?
12569  grep -v '^ *+' conftest.er1 >conftest.err
12570  rm -f conftest.er1
12571  cat conftest.err >&5
12572  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12573  (exit $ac_status); } && {
12574	 test -z "$ac_c_werror_flag" ||
12575	 test ! -s conftest.err
12576       } && test -s conftest$ac_exeext && {
12577	 test "$cross_compiling" = yes ||
12578	 $as_test_x conftest$ac_exeext
12579       }; then
12580  ac_cv_lib_dld_dld_link=yes
12581else
12582  $as_echo "$as_me: failed program was:" >&5
12583sed 's/^/| /' conftest.$ac_ext >&5
12584
12585	ac_cv_lib_dld_dld_link=no
12586fi
12587
12588rm -rf conftest.dSYM
12589rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12590      conftest$ac_exeext conftest.$ac_ext
12591LIBS=$ac_check_lib_save_LIBS
12592fi
12593{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12594$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12595if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
12596  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12597fi
12598
12599
12600fi
12601
12602
12603fi
12604
12605
12606fi
12607
12608
12609fi
12610
12611
12612fi
12613
12614    ;;
12615  esac
12616
12617  if test "x$lt_cv_dlopen" != xno; then
12618    enable_dlopen=yes
12619  else
12620    enable_dlopen=no
12621  fi
12622
12623  case $lt_cv_dlopen in
12624  dlopen)
12625    save_CPPFLAGS="$CPPFLAGS"
12626    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12627
12628    save_LDFLAGS="$LDFLAGS"
12629    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12630
12631    save_LIBS="$LIBS"
12632    LIBS="$lt_cv_dlopen_libs $LIBS"
12633
12634    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12635$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12636if test "${lt_cv_dlopen_self+set}" = set; then
12637  $as_echo_n "(cached) " >&6
12638else
12639  	  if test "$cross_compiling" = yes; then :
12640  lt_cv_dlopen_self=cross
12641else
12642  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12643  lt_status=$lt_dlunknown
12644  cat > conftest.$ac_ext <<_LT_EOF
12645#line 12645 "configure"
12646#include "confdefs.h"
12647
12648#if HAVE_DLFCN_H
12649#include <dlfcn.h>
12650#endif
12651
12652#include <stdio.h>
12653
12654#ifdef RTLD_GLOBAL
12655#  define LT_DLGLOBAL		RTLD_GLOBAL
12656#else
12657#  ifdef DL_GLOBAL
12658#    define LT_DLGLOBAL		DL_GLOBAL
12659#  else
12660#    define LT_DLGLOBAL		0
12661#  endif
12662#endif
12663
12664/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12665   find out it does not work in some platform. */
12666#ifndef LT_DLLAZY_OR_NOW
12667#  ifdef RTLD_LAZY
12668#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12669#  else
12670#    ifdef DL_LAZY
12671#      define LT_DLLAZY_OR_NOW		DL_LAZY
12672#    else
12673#      ifdef RTLD_NOW
12674#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12675#      else
12676#        ifdef DL_NOW
12677#          define LT_DLLAZY_OR_NOW	DL_NOW
12678#        else
12679#          define LT_DLLAZY_OR_NOW	0
12680#        endif
12681#      endif
12682#    endif
12683#  endif
12684#endif
12685
12686void fnord() { int i=42;}
12687int main ()
12688{
12689  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12690  int status = $lt_dlunknown;
12691
12692  if (self)
12693    {
12694      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12695      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12696      /* dlclose (self); */
12697    }
12698  else
12699    puts (dlerror ());
12700
12701  return status;
12702}
12703_LT_EOF
12704  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12705  (eval $ac_link) 2>&5
12706  ac_status=$?
12707  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12709    (./conftest; exit; ) >&5 2>/dev/null
12710    lt_status=$?
12711    case x$lt_status in
12712      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12713      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12714      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12715    esac
12716  else :
12717    # compilation failed
12718    lt_cv_dlopen_self=no
12719  fi
12720fi
12721rm -fr conftest*
12722
12723
12724fi
12725{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12726$as_echo "$lt_cv_dlopen_self" >&6; }
12727
12728    if test "x$lt_cv_dlopen_self" = xyes; then
12729      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12730      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12731$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12732if test "${lt_cv_dlopen_self_static+set}" = set; then
12733  $as_echo_n "(cached) " >&6
12734else
12735  	  if test "$cross_compiling" = yes; then :
12736  lt_cv_dlopen_self_static=cross
12737else
12738  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12739  lt_status=$lt_dlunknown
12740  cat > conftest.$ac_ext <<_LT_EOF
12741#line 12741 "configure"
12742#include "confdefs.h"
12743
12744#if HAVE_DLFCN_H
12745#include <dlfcn.h>
12746#endif
12747
12748#include <stdio.h>
12749
12750#ifdef RTLD_GLOBAL
12751#  define LT_DLGLOBAL		RTLD_GLOBAL
12752#else
12753#  ifdef DL_GLOBAL
12754#    define LT_DLGLOBAL		DL_GLOBAL
12755#  else
12756#    define LT_DLGLOBAL		0
12757#  endif
12758#endif
12759
12760/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12761   find out it does not work in some platform. */
12762#ifndef LT_DLLAZY_OR_NOW
12763#  ifdef RTLD_LAZY
12764#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12765#  else
12766#    ifdef DL_LAZY
12767#      define LT_DLLAZY_OR_NOW		DL_LAZY
12768#    else
12769#      ifdef RTLD_NOW
12770#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12771#      else
12772#        ifdef DL_NOW
12773#          define LT_DLLAZY_OR_NOW	DL_NOW
12774#        else
12775#          define LT_DLLAZY_OR_NOW	0
12776#        endif
12777#      endif
12778#    endif
12779#  endif
12780#endif
12781
12782void fnord() { int i=42;}
12783int main ()
12784{
12785  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12786  int status = $lt_dlunknown;
12787
12788  if (self)
12789    {
12790      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12791      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12792      /* dlclose (self); */
12793    }
12794  else
12795    puts (dlerror ());
12796
12797  return status;
12798}
12799_LT_EOF
12800  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12801  (eval $ac_link) 2>&5
12802  ac_status=$?
12803  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12804  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12805    (./conftest; exit; ) >&5 2>/dev/null
12806    lt_status=$?
12807    case x$lt_status in
12808      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12809      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12810      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12811    esac
12812  else :
12813    # compilation failed
12814    lt_cv_dlopen_self_static=no
12815  fi
12816fi
12817rm -fr conftest*
12818
12819
12820fi
12821{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12822$as_echo "$lt_cv_dlopen_self_static" >&6; }
12823    fi
12824
12825    CPPFLAGS="$save_CPPFLAGS"
12826    LDFLAGS="$save_LDFLAGS"
12827    LIBS="$save_LIBS"
12828    ;;
12829  esac
12830
12831  case $lt_cv_dlopen_self in
12832  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12833  *) enable_dlopen_self=unknown ;;
12834  esac
12835
12836  case $lt_cv_dlopen_self_static in
12837  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12838  *) enable_dlopen_self_static=unknown ;;
12839  esac
12840fi
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858striplib=
12859old_striplib=
12860{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12861$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12862if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12863  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12864  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12865  { $as_echo "$as_me:$LINENO: result: yes" >&5
12866$as_echo "yes" >&6; }
12867else
12868# FIXME - insert some real tests, host_os isn't really good enough
12869  case $host_os in
12870  darwin*)
12871    if test -n "$STRIP" ; then
12872      striplib="$STRIP -x"
12873      old_striplib="$STRIP -S"
12874      { $as_echo "$as_me:$LINENO: result: yes" >&5
12875$as_echo "yes" >&6; }
12876    else
12877      { $as_echo "$as_me:$LINENO: result: no" >&5
12878$as_echo "no" >&6; }
12879    fi
12880    ;;
12881  *)
12882    { $as_echo "$as_me:$LINENO: result: no" >&5
12883$as_echo "no" >&6; }
12884    ;;
12885  esac
12886fi
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899  # Report which library types will actually be built
12900  { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12901$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12902  { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
12903$as_echo "$can_build_shared" >&6; }
12904
12905  { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12906$as_echo_n "checking whether to build shared libraries... " >&6; }
12907  test "$can_build_shared" = "no" && enable_shared=no
12908
12909  # On AIX, shared libraries and static libraries use the same namespace, and
12910  # are all built from PIC.
12911  case $host_os in
12912  aix3*)
12913    test "$enable_shared" = yes && enable_static=no
12914    if test -n "$RANLIB"; then
12915      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12916      postinstall_cmds='$RANLIB $lib'
12917    fi
12918    ;;
12919
12920  aix[4-9]*)
12921    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12922      test "$enable_shared" = yes && enable_static=no
12923    fi
12924    ;;
12925  esac
12926  { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
12927$as_echo "$enable_shared" >&6; }
12928
12929  { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12930$as_echo_n "checking whether to build static libraries... " >&6; }
12931  # Make sure either enable_shared or enable_static is yes.
12932  test "$enable_shared" = yes || enable_static=yes
12933  { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
12934$as_echo "$enable_static" >&6; }
12935
12936
12937
12938
12939fi
12940ac_ext=c
12941ac_cpp='$CPP $CPPFLAGS'
12942ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12943ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12944ac_compiler_gnu=$ac_cv_c_compiler_gnu
12945
12946CC="$lt_save_CC"
12947
12948
12949ac_ext=cpp
12950ac_cpp='$CXXCPP $CPPFLAGS'
12951ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12952ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12953ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12954
12955archive_cmds_need_lc_CXX=no
12956allow_undefined_flag_CXX=
12957always_export_symbols_CXX=no
12958archive_expsym_cmds_CXX=
12959compiler_needs_object_CXX=no
12960export_dynamic_flag_spec_CXX=
12961hardcode_direct_CXX=no
12962hardcode_direct_absolute_CXX=no
12963hardcode_libdir_flag_spec_CXX=
12964hardcode_libdir_flag_spec_ld_CXX=
12965hardcode_libdir_separator_CXX=
12966hardcode_minus_L_CXX=no
12967hardcode_shlibpath_var_CXX=unsupported
12968hardcode_automatic_CXX=no
12969inherit_rpath_CXX=no
12970module_cmds_CXX=
12971module_expsym_cmds_CXX=
12972link_all_deplibs_CXX=unknown
12973old_archive_cmds_CXX=$old_archive_cmds
12974no_undefined_flag_CXX=
12975whole_archive_flag_spec_CXX=
12976enable_shared_with_static_runtimes_CXX=no
12977
12978# Source file extension for C++ test sources.
12979ac_ext=cpp
12980
12981# Object file extension for compiled C++ test sources.
12982objext=o
12983objext_CXX=$objext
12984
12985# No sense in running all these tests if we already determined that
12986# the CXX compiler isn't working.  Some variables (like enable_shared)
12987# are currently assumed to apply to all compilers on this platform,
12988# and will be corrupted by setting them based on a non-working compiler.
12989if test "$_lt_caught_CXX_error" != yes; then
12990  # Code to be used in simple compile tests
12991  lt_simple_compile_test_code="int some_variable = 0;"
12992
12993  # Code to be used in simple link tests
12994  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12995
12996  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12997
12998
12999
13000
13001
13002
13003# If no C compiler was specified, use CC.
13004LTCC=${LTCC-"$CC"}
13005
13006# If no C compiler flags were specified, use CFLAGS.
13007LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13008
13009# Allow CC to be a program name with arguments.
13010compiler=$CC
13011
13012
13013  # save warnings/boilerplate of simple test code
13014  ac_outfile=conftest.$ac_objext
13015echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13016eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13017_lt_compiler_boilerplate=`cat conftest.err`
13018$RM conftest*
13019
13020  ac_outfile=conftest.$ac_objext
13021echo "$lt_simple_link_test_code" >conftest.$ac_ext
13022eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13023_lt_linker_boilerplate=`cat conftest.err`
13024$RM -r conftest*
13025
13026
13027  # Allow CC to be a program name with arguments.
13028  lt_save_CC=$CC
13029  lt_save_LD=$LD
13030  lt_save_GCC=$GCC
13031  GCC=$GXX
13032  lt_save_with_gnu_ld=$with_gnu_ld
13033  lt_save_path_LD=$lt_cv_path_LD
13034  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13035    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13036  else
13037    $as_unset lt_cv_prog_gnu_ld
13038  fi
13039  if test -n "${lt_cv_path_LDCXX+set}"; then
13040    lt_cv_path_LD=$lt_cv_path_LDCXX
13041  else
13042    $as_unset lt_cv_path_LD
13043  fi
13044  test -z "${LDCXX+set}" || LD=$LDCXX
13045  CC=${CXX-"c++"}
13046  compiler=$CC
13047  compiler_CXX=$CC
13048  for cc_temp in $compiler""; do
13049  case $cc_temp in
13050    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13051    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13052    \-*) ;;
13053    *) break;;
13054  esac
13055done
13056cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13057
13058
13059  if test -n "$compiler"; then
13060    # We don't want -fno-exception when compiling C++ code, so set the
13061    # no_builtin_flag separately
13062    if test "$GXX" = yes; then
13063      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13064    else
13065      lt_prog_compiler_no_builtin_flag_CXX=
13066    fi
13067
13068    if test "$GXX" = yes; then
13069      # Set up default GNU C++ configuration
13070
13071
13072
13073# Check whether --with-gnu-ld was given.
13074if test "${with_gnu_ld+set}" = set; then
13075  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13076else
13077  with_gnu_ld=no
13078fi
13079
13080ac_prog=ld
13081if test "$GCC" = yes; then
13082  # Check if gcc -print-prog-name=ld gives a path.
13083  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13084$as_echo_n "checking for ld used by $CC... " >&6; }
13085  case $host in
13086  *-*-mingw*)
13087    # gcc leaves a trailing carriage return which upsets mingw
13088    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13089  *)
13090    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13091  esac
13092  case $ac_prog in
13093    # Accept absolute paths.
13094    [\\/]* | ?:[\\/]*)
13095      re_direlt='/[^/][^/]*/\.\./'
13096      # Canonicalize the pathname of ld
13097      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13098      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13099	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13100      done
13101      test -z "$LD" && LD="$ac_prog"
13102      ;;
13103  "")
13104    # If it fails, then pretend we aren't using GCC.
13105    ac_prog=ld
13106    ;;
13107  *)
13108    # If it is relative, then search for the first ld in PATH.
13109    with_gnu_ld=unknown
13110    ;;
13111  esac
13112elif test "$with_gnu_ld" = yes; then
13113  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
13114$as_echo_n "checking for GNU ld... " >&6; }
13115else
13116  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13117$as_echo_n "checking for non-GNU ld... " >&6; }
13118fi
13119if test "${lt_cv_path_LD+set}" = set; then
13120  $as_echo_n "(cached) " >&6
13121else
13122  if test -z "$LD"; then
13123  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13124  for ac_dir in $PATH; do
13125    IFS="$lt_save_ifs"
13126    test -z "$ac_dir" && ac_dir=.
13127    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13128      lt_cv_path_LD="$ac_dir/$ac_prog"
13129      # Check to see if the program is GNU ld.  I'd rather use --version,
13130      # but apparently some variants of GNU ld only accept -v.
13131      # Break only if it was the GNU/non-GNU ld that we prefer.
13132      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13133      *GNU* | *'with BFD'*)
13134	test "$with_gnu_ld" != no && break
13135	;;
13136      *)
13137	test "$with_gnu_ld" != yes && break
13138	;;
13139      esac
13140    fi
13141  done
13142  IFS="$lt_save_ifs"
13143else
13144  lt_cv_path_LD="$LD" # Let the user override the test with a path.
13145fi
13146fi
13147
13148LD="$lt_cv_path_LD"
13149if test -n "$LD"; then
13150  { $as_echo "$as_me:$LINENO: result: $LD" >&5
13151$as_echo "$LD" >&6; }
13152else
13153  { $as_echo "$as_me:$LINENO: result: no" >&5
13154$as_echo "no" >&6; }
13155fi
13156test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13157$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13158   { (exit 1); exit 1; }; }
13159{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13160$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13161if test "${lt_cv_prog_gnu_ld+set}" = set; then
13162  $as_echo_n "(cached) " >&6
13163else
13164  # I'd rather use --version here, but apparently some GNU lds only accept -v.
13165case `$LD -v 2>&1 </dev/null` in
13166*GNU* | *'with BFD'*)
13167  lt_cv_prog_gnu_ld=yes
13168  ;;
13169*)
13170  lt_cv_prog_gnu_ld=no
13171  ;;
13172esac
13173fi
13174{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13175$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13176with_gnu_ld=$lt_cv_prog_gnu_ld
13177
13178
13179
13180
13181
13182
13183
13184      # Check if GNU C++ uses GNU ld as the underlying linker, since the
13185      # archiving commands below assume that GNU ld is being used.
13186      if test "$with_gnu_ld" = yes; then
13187        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13188        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'
13189
13190        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13191        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13192
13193        # If archive_cmds runs LD, not CC, wlarc should be empty
13194        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13195        #     investigate it a little bit more. (MM)
13196        wlarc='${wl}'
13197
13198        # ancient GNU ld didn't support --whole-archive et. al.
13199        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13200	  $GREP 'no-whole-archive' > /dev/null; then
13201          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13202        else
13203          whole_archive_flag_spec_CXX=
13204        fi
13205      else
13206        with_gnu_ld=no
13207        wlarc=
13208
13209        # A generic and very simple default shared library creation
13210        # command for GNU C++ for the case where it uses the native
13211        # linker, instead of GNU ld.  If possible, this setting should
13212        # overridden to take advantage of the native linker features on
13213        # the platform it is being used on.
13214        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13215      fi
13216
13217      # Commands to make compiler produce verbose output that lists
13218      # what "hidden" libraries, object files and flags are used when
13219      # linking a shared library.
13220      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13221
13222    else
13223      GXX=no
13224      with_gnu_ld=no
13225      wlarc=
13226    fi
13227
13228    # PORTME: fill in a description of your system's C++ link characteristics
13229    { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13230$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13231    ld_shlibs_CXX=yes
13232    case $host_os in
13233      aix3*)
13234        # FIXME: insert proper C++ library support
13235        ld_shlibs_CXX=no
13236        ;;
13237      aix[4-9]*)
13238        if test "$host_cpu" = ia64; then
13239          # On IA64, the linker does run time linking by default, so we don't
13240          # have to do anything special.
13241          aix_use_runtimelinking=no
13242          exp_sym_flag='-Bexport'
13243          no_entry_flag=""
13244        else
13245          aix_use_runtimelinking=no
13246
13247          # Test if we are trying to use run time linking or normal
13248          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13249          # need to do runtime linking.
13250          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13251	    for ld_flag in $LDFLAGS; do
13252	      case $ld_flag in
13253	      *-brtl*)
13254	        aix_use_runtimelinking=yes
13255	        break
13256	        ;;
13257	      esac
13258	    done
13259	    ;;
13260          esac
13261
13262          exp_sym_flag='-bexport'
13263          no_entry_flag='-bnoentry'
13264        fi
13265
13266        # When large executables or shared objects are built, AIX ld can
13267        # have problems creating the table of contents.  If linking a library
13268        # or program results in "error TOC overflow" add -mminimal-toc to
13269        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13270        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13271
13272        archive_cmds_CXX=''
13273        hardcode_direct_CXX=yes
13274        hardcode_direct_absolute_CXX=yes
13275        hardcode_libdir_separator_CXX=':'
13276        link_all_deplibs_CXX=yes
13277        file_list_spec_CXX='${wl}-f,'
13278
13279        if test "$GXX" = yes; then
13280          case $host_os in aix4.[012]|aix4.[012].*)
13281          # We only want to do this on AIX 4.2 and lower, the check
13282          # below for broken collect2 doesn't work under 4.3+
13283	  collect2name=`${CC} -print-prog-name=collect2`
13284	  if test -f "$collect2name" &&
13285	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13286	  then
13287	    # We have reworked collect2
13288	    :
13289	  else
13290	    # We have old collect2
13291	    hardcode_direct_CXX=unsupported
13292	    # It fails to find uninstalled libraries when the uninstalled
13293	    # path is not listed in the libpath.  Setting hardcode_minus_L
13294	    # to unsupported forces relinking
13295	    hardcode_minus_L_CXX=yes
13296	    hardcode_libdir_flag_spec_CXX='-L$libdir'
13297	    hardcode_libdir_separator_CXX=
13298	  fi
13299          esac
13300          shared_flag='-shared'
13301	  if test "$aix_use_runtimelinking" = yes; then
13302	    shared_flag="$shared_flag "'${wl}-G'
13303	  fi
13304        else
13305          # not using gcc
13306          if test "$host_cpu" = ia64; then
13307	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13308	  # chokes on -Wl,-G. The following line is correct:
13309	  shared_flag='-G'
13310          else
13311	    if test "$aix_use_runtimelinking" = yes; then
13312	      shared_flag='${wl}-G'
13313	    else
13314	      shared_flag='${wl}-bM:SRE'
13315	    fi
13316          fi
13317        fi
13318
13319        export_dynamic_flag_spec_CXX='${wl}-bexpall'
13320        # It seems that -bexpall does not export symbols beginning with
13321        # underscore (_), so it is better to generate a list of symbols to
13322	# export.
13323        always_export_symbols_CXX=yes
13324        if test "$aix_use_runtimelinking" = yes; then
13325          # Warning - without using the other runtime loading flags (-brtl),
13326          # -berok will link without error, but may produce a broken library.
13327          allow_undefined_flag_CXX='-berok'
13328          # Determine the default libpath from the value encoded in an empty
13329          # executable.
13330          cat >conftest.$ac_ext <<_ACEOF
13331/* confdefs.h.  */
13332_ACEOF
13333cat confdefs.h >>conftest.$ac_ext
13334cat >>conftest.$ac_ext <<_ACEOF
13335/* end confdefs.h.  */
13336
13337int
13338main ()
13339{
13340
13341  ;
13342  return 0;
13343}
13344_ACEOF
13345rm -f conftest.$ac_objext conftest$ac_exeext
13346if { (ac_try="$ac_link"
13347case "(($ac_try" in
13348  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13349  *) ac_try_echo=$ac_try;;
13350esac
13351eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13352$as_echo "$ac_try_echo") >&5
13353  (eval "$ac_link") 2>conftest.er1
13354  ac_status=$?
13355  grep -v '^ *+' conftest.er1 >conftest.err
13356  rm -f conftest.er1
13357  cat conftest.err >&5
13358  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13359  (exit $ac_status); } && {
13360	 test -z "$ac_cxx_werror_flag" ||
13361	 test ! -s conftest.err
13362       } && test -s conftest$ac_exeext && {
13363	 test "$cross_compiling" = yes ||
13364	 $as_test_x conftest$ac_exeext
13365       }; then
13366
13367lt_aix_libpath_sed='
13368    /Import File Strings/,/^$/ {
13369	/^0/ {
13370	    s/^0  *\(.*\)$/\1/
13371	    p
13372	}
13373    }'
13374aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13375# Check for a 64-bit object if we didn't find anything.
13376if test -z "$aix_libpath"; then
13377  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13378fi
13379else
13380  $as_echo "$as_me: failed program was:" >&5
13381sed 's/^/| /' conftest.$ac_ext >&5
13382
13383
13384fi
13385
13386rm -rf conftest.dSYM
13387rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13388      conftest$ac_exeext conftest.$ac_ext
13389if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13390
13391          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13392
13393          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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13394        else
13395          if test "$host_cpu" = ia64; then
13396	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13397	    allow_undefined_flag_CXX="-z nodefs"
13398	    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"
13399          else
13400	    # Determine the default libpath from the value encoded in an
13401	    # empty executable.
13402	    cat >conftest.$ac_ext <<_ACEOF
13403/* confdefs.h.  */
13404_ACEOF
13405cat confdefs.h >>conftest.$ac_ext
13406cat >>conftest.$ac_ext <<_ACEOF
13407/* end confdefs.h.  */
13408
13409int
13410main ()
13411{
13412
13413  ;
13414  return 0;
13415}
13416_ACEOF
13417rm -f conftest.$ac_objext conftest$ac_exeext
13418if { (ac_try="$ac_link"
13419case "(($ac_try" in
13420  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13421  *) ac_try_echo=$ac_try;;
13422esac
13423eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13424$as_echo "$ac_try_echo") >&5
13425  (eval "$ac_link") 2>conftest.er1
13426  ac_status=$?
13427  grep -v '^ *+' conftest.er1 >conftest.err
13428  rm -f conftest.er1
13429  cat conftest.err >&5
13430  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431  (exit $ac_status); } && {
13432	 test -z "$ac_cxx_werror_flag" ||
13433	 test ! -s conftest.err
13434       } && test -s conftest$ac_exeext && {
13435	 test "$cross_compiling" = yes ||
13436	 $as_test_x conftest$ac_exeext
13437       }; then
13438
13439lt_aix_libpath_sed='
13440    /Import File Strings/,/^$/ {
13441	/^0/ {
13442	    s/^0  *\(.*\)$/\1/
13443	    p
13444	}
13445    }'
13446aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13447# Check for a 64-bit object if we didn't find anything.
13448if test -z "$aix_libpath"; then
13449  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13450fi
13451else
13452  $as_echo "$as_me: failed program was:" >&5
13453sed 's/^/| /' conftest.$ac_ext >&5
13454
13455
13456fi
13457
13458rm -rf conftest.dSYM
13459rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13460      conftest$ac_exeext conftest.$ac_ext
13461if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13462
13463	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13464	    # Warning - without using the other run time loading flags,
13465	    # -berok will link without error, but may produce a broken library.
13466	    no_undefined_flag_CXX=' ${wl}-bernotok'
13467	    allow_undefined_flag_CXX=' ${wl}-berok'
13468	    # Exported symbols can be pulled into shared objects from archives
13469	    whole_archive_flag_spec_CXX='$convenience'
13470	    archive_cmds_need_lc_CXX=yes
13471	    # This is similar to how AIX traditionally builds its shared
13472	    # libraries.
13473	    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'
13474          fi
13475        fi
13476        ;;
13477
13478      beos*)
13479	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13480	  allow_undefined_flag_CXX=unsupported
13481	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13482	  # support --undefined.  This deserves some investigation.  FIXME
13483	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13484	else
13485	  ld_shlibs_CXX=no
13486	fi
13487	;;
13488
13489      chorus*)
13490        case $cc_basename in
13491          *)
13492	  # FIXME: insert proper C++ library support
13493	  ld_shlibs_CXX=no
13494	  ;;
13495        esac
13496        ;;
13497
13498      cygwin* | mingw* | pw32* | cegcc*)
13499        # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13500        # as there is no search path for DLLs.
13501        hardcode_libdir_flag_spec_CXX='-L$libdir'
13502        allow_undefined_flag_CXX=unsupported
13503        always_export_symbols_CXX=no
13504        enable_shared_with_static_runtimes_CXX=yes
13505
13506        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13507          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'
13508          # If the export-symbols file already is a .def file (1st line
13509          # is EXPORTS), use it as is; otherwise, prepend...
13510          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13511	    cp $export_symbols $output_objdir/$soname.def;
13512          else
13513	    echo EXPORTS > $output_objdir/$soname.def;
13514	    cat $export_symbols >> $output_objdir/$soname.def;
13515          fi~
13516          $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'
13517        else
13518          ld_shlibs_CXX=no
13519        fi
13520        ;;
13521      darwin* | rhapsody*)
13522
13523
13524  archive_cmds_need_lc_CXX=no
13525  hardcode_direct_CXX=no
13526  hardcode_automatic_CXX=yes
13527  hardcode_shlibpath_var_CXX=unsupported
13528  whole_archive_flag_spec_CXX=''
13529  link_all_deplibs_CXX=yes
13530  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13531  case $cc_basename in
13532     ifort*) _lt_dar_can_shared=yes ;;
13533     *) _lt_dar_can_shared=$GCC ;;
13534  esac
13535  if test "$_lt_dar_can_shared" = "yes"; then
13536    output_verbose_link_cmd=echo
13537    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}"
13538    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13539    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}"
13540    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}"
13541       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13542      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}"
13543      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}"
13544    fi
13545
13546  else
13547  ld_shlibs_CXX=no
13548  fi
13549
13550	;;
13551
13552      dgux*)
13553        case $cc_basename in
13554          ec++*)
13555	    # FIXME: insert proper C++ library support
13556	    ld_shlibs_CXX=no
13557	    ;;
13558          ghcx*)
13559	    # Green Hills C++ Compiler
13560	    # FIXME: insert proper C++ library support
13561	    ld_shlibs_CXX=no
13562	    ;;
13563          *)
13564	    # FIXME: insert proper C++ library support
13565	    ld_shlibs_CXX=no
13566	    ;;
13567        esac
13568        ;;
13569
13570      freebsd[12]*)
13571        # C++ shared libraries reported to be fairly broken before
13572	# switch to ELF
13573        ld_shlibs_CXX=no
13574        ;;
13575
13576      freebsd-elf*)
13577        archive_cmds_need_lc_CXX=no
13578        ;;
13579
13580      freebsd* | dragonfly*)
13581        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13582        # conventions
13583        ld_shlibs_CXX=yes
13584        ;;
13585
13586      gnu*)
13587        ;;
13588
13589      hpux9*)
13590        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13591        hardcode_libdir_separator_CXX=:
13592        export_dynamic_flag_spec_CXX='${wl}-E'
13593        hardcode_direct_CXX=yes
13594        hardcode_minus_L_CXX=yes # Not in the search PATH,
13595				             # but as the default
13596				             # location of the library.
13597
13598        case $cc_basename in
13599          CC*)
13600            # FIXME: insert proper C++ library support
13601            ld_shlibs_CXX=no
13602            ;;
13603          aCC*)
13604            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'
13605            # Commands to make compiler produce verbose output that lists
13606            # what "hidden" libraries, object files and flags are used when
13607            # linking a shared library.
13608            #
13609            # There doesn't appear to be a way to prevent this compiler from
13610            # explicitly linking system object files so we need to strip them
13611            # from the output so that they don't get included in the library
13612            # dependencies.
13613            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; $ECHO "X$list" | $Xsed'
13614            ;;
13615          *)
13616            if test "$GXX" = yes; then
13617              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'
13618            else
13619              # FIXME: insert proper C++ library support
13620              ld_shlibs_CXX=no
13621            fi
13622            ;;
13623        esac
13624        ;;
13625
13626      hpux10*|hpux11*)
13627        if test $with_gnu_ld = no; then
13628	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13629	  hardcode_libdir_separator_CXX=:
13630
13631          case $host_cpu in
13632            hppa*64*|ia64*)
13633              ;;
13634            *)
13635	      export_dynamic_flag_spec_CXX='${wl}-E'
13636              ;;
13637          esac
13638        fi
13639        case $host_cpu in
13640          hppa*64*|ia64*)
13641            hardcode_direct_CXX=no
13642            hardcode_shlibpath_var_CXX=no
13643            ;;
13644          *)
13645            hardcode_direct_CXX=yes
13646            hardcode_direct_absolute_CXX=yes
13647            hardcode_minus_L_CXX=yes # Not in the search PATH,
13648					         # but as the default
13649					         # location of the library.
13650            ;;
13651        esac
13652
13653        case $cc_basename in
13654          CC*)
13655	    # FIXME: insert proper C++ library support
13656	    ld_shlibs_CXX=no
13657	    ;;
13658          aCC*)
13659	    case $host_cpu in
13660	      hppa*64*)
13661	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13662	        ;;
13663	      ia64*)
13664	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13665	        ;;
13666	      *)
13667	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13668	        ;;
13669	    esac
13670	    # Commands to make compiler produce verbose output that lists
13671	    # what "hidden" libraries, object files and flags are used when
13672	    # linking a shared library.
13673	    #
13674	    # There doesn't appear to be a way to prevent this compiler from
13675	    # explicitly linking system object files so we need to strip them
13676	    # from the output so that they don't get included in the library
13677	    # dependencies.
13678	    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; $ECHO "X$list" | $Xsed'
13679	    ;;
13680          *)
13681	    if test "$GXX" = yes; then
13682	      if test $with_gnu_ld = no; then
13683	        case $host_cpu in
13684	          hppa*64*)
13685	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13686	            ;;
13687	          ia64*)
13688	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13689	            ;;
13690	          *)
13691	            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'
13692	            ;;
13693	        esac
13694	      fi
13695	    else
13696	      # FIXME: insert proper C++ library support
13697	      ld_shlibs_CXX=no
13698	    fi
13699	    ;;
13700        esac
13701        ;;
13702
13703      interix[3-9]*)
13704	hardcode_direct_CXX=no
13705	hardcode_shlibpath_var_CXX=no
13706	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13707	export_dynamic_flag_spec_CXX='${wl}-E'
13708	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13709	# Instead, shared libraries are loaded at an image base (0x10000000 by
13710	# default) and relocated if they conflict, which is a slow very memory
13711	# consuming and fragmenting process.  To avoid this, we pick a random,
13712	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13713	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13714	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'
13715	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'
13716	;;
13717      irix5* | irix6*)
13718        case $cc_basename in
13719          CC*)
13720	    # SGI C++
13721	    archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13722
13723	    # Archives containing C++ object files must be created using
13724	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13725	    # necessary to make sure instantiated templates are included
13726	    # in the archive.
13727	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13728	    ;;
13729          *)
13730	    if test "$GXX" = yes; then
13731	      if test "$with_gnu_ld" = no; then
13732	        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13733	      else
13734	        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
13735	      fi
13736	    fi
13737	    link_all_deplibs_CXX=yes
13738	    ;;
13739        esac
13740        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13741        hardcode_libdir_separator_CXX=:
13742        inherit_rpath_CXX=yes
13743        ;;
13744
13745      linux* | k*bsd*-gnu)
13746        case $cc_basename in
13747          KCC*)
13748	    # Kuck and Associates, Inc. (KAI) C++ Compiler
13749
13750	    # KCC will only create a shared library if the output file
13751	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
13752	    # to its proper name (with version) after linking.
13753	    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'
13754	    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'
13755	    # Commands to make compiler produce verbose output that lists
13756	    # what "hidden" libraries, object files and flags are used when
13757	    # linking a shared library.
13758	    #
13759	    # There doesn't appear to be a way to prevent this compiler from
13760	    # explicitly linking system object files so we need to strip them
13761	    # from the output so that they don't get included in the library
13762	    # dependencies.
13763	    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; $ECHO "X$list" | $Xsed'
13764
13765	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13766	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13767
13768	    # Archives containing C++ object files must be created using
13769	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13770	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13771	    ;;
13772	  icpc* | ecpc* )
13773	    # Intel C++
13774	    with_gnu_ld=yes
13775	    # version 8.0 and above of icpc choke on multiply defined symbols
13776	    # if we add $predep_objects and $postdep_objects, however 7.1 and
13777	    # earlier do not add the objects themselves.
13778	    case `$CC -V 2>&1` in
13779	      *"Version 7."*)
13780	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13781		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'
13782		;;
13783	      *)  # Version 8.0 or newer
13784	        tmp_idyn=
13785	        case $host_cpu in
13786		  ia64*) tmp_idyn=' -i_dynamic';;
13787		esac
13788	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13789		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'
13790		;;
13791	    esac
13792	    archive_cmds_need_lc_CXX=no
13793	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13794	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13795	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13796	    ;;
13797          pgCC* | pgcpp*)
13798            # Portland Group C++ compiler
13799	    case `$CC -V` in
13800	    *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13801	      prelink_cmds_CXX='tpldir=Template.dir~
13802		rm -rf $tpldir~
13803		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13804		compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13805	      old_archive_cmds_CXX='tpldir=Template.dir~
13806		rm -rf $tpldir~
13807		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13808		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13809		$RANLIB $oldlib'
13810	      archive_cmds_CXX='tpldir=Template.dir~
13811		rm -rf $tpldir~
13812		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13813		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13814	      archive_expsym_cmds_CXX='tpldir=Template.dir~
13815		rm -rf $tpldir~
13816		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13817		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13818	      ;;
13819	    *) # Version 6 will use weak symbols
13820	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13821	      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'
13822	      ;;
13823	    esac
13824
13825	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13826	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13827	    whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13828            ;;
13829	  cxx*)
13830	    # Compaq C++
13831	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13832	    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'
13833
13834	    runpath_var=LD_RUN_PATH
13835	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13836	    hardcode_libdir_separator_CXX=:
13837
13838	    # Commands to make compiler produce verbose output that lists
13839	    # what "hidden" libraries, object files and flags are used when
13840	    # linking a shared library.
13841	    #
13842	    # There doesn't appear to be a way to prevent this compiler from
13843	    # explicitly linking system object files so we need to strip them
13844	    # from the output so that they don't get included in the library
13845	    # dependencies.
13846	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13847	    ;;
13848	  xl*)
13849	    # IBM XL 8.0 on PPC, with GNU ld
13850	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13851	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13852	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13853	    if test "x$supports_anon_versioning" = xyes; then
13854	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13855		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13856		echo "local: *; };" >> $output_objdir/$libname.ver~
13857		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13858	    fi
13859	    ;;
13860	  *)
13861	    case `$CC -V 2>&1 | sed 5q` in
13862	    *Sun\ C*)
13863	      # Sun C++ 5.9
13864	      no_undefined_flag_CXX=' -zdefs'
13865	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13866	      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'
13867	      hardcode_libdir_flag_spec_CXX='-R$libdir'
13868	      whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13869	      compiler_needs_object_CXX=yes
13870
13871	      # Not sure whether something based on
13872	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13873	      # would be better.
13874	      output_verbose_link_cmd='echo'
13875
13876	      # Archives containing C++ object files must be created using
13877	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13878	      # necessary to make sure instantiated templates are included
13879	      # in the archive.
13880	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13881	      ;;
13882	    esac
13883	    ;;
13884	esac
13885	;;
13886
13887      lynxos*)
13888        # FIXME: insert proper C++ library support
13889	ld_shlibs_CXX=no
13890	;;
13891
13892      m88k*)
13893        # FIXME: insert proper C++ library support
13894        ld_shlibs_CXX=no
13895	;;
13896
13897      mvs*)
13898        case $cc_basename in
13899          cxx*)
13900	    # FIXME: insert proper C++ library support
13901	    ld_shlibs_CXX=no
13902	    ;;
13903	  *)
13904	    # FIXME: insert proper C++ library support
13905	    ld_shlibs_CXX=no
13906	    ;;
13907	esac
13908	;;
13909
13910      netbsd*)
13911        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13912	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13913	  wlarc=
13914	  hardcode_libdir_flag_spec_CXX='-R$libdir'
13915	  hardcode_direct_CXX=yes
13916	  hardcode_shlibpath_var_CXX=no
13917	fi
13918	# Workaround some broken pre-1.5 toolchains
13919	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13920	;;
13921
13922      *nto* | *qnx*)
13923        ld_shlibs_CXX=yes
13924	;;
13925
13926      openbsd2*)
13927        # C++ shared libraries are fairly broken
13928	ld_shlibs_CXX=no
13929	;;
13930
13931      openbsd*)
13932	if test -f /usr/libexec/ld.so; then
13933	  hardcode_direct_CXX=yes
13934	  hardcode_shlibpath_var_CXX=no
13935	  hardcode_direct_absolute_CXX=yes
13936	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13937	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13938	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13939	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13940	    export_dynamic_flag_spec_CXX='${wl}-E'
13941	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13942	  fi
13943	  output_verbose_link_cmd=echo
13944	else
13945	  ld_shlibs_CXX=no
13946	fi
13947	;;
13948
13949      osf3* | osf4* | osf5*)
13950        case $cc_basename in
13951          KCC*)
13952	    # Kuck and Associates, Inc. (KAI) C++ Compiler
13953
13954	    # KCC will only create a shared library if the output file
13955	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
13956	    # to its proper name (with version) after linking.
13957	    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'
13958
13959	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13960	    hardcode_libdir_separator_CXX=:
13961
13962	    # Archives containing C++ object files must be created using
13963	    # the KAI C++ compiler.
13964	    case $host in
13965	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13966	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13967	    esac
13968	    ;;
13969          RCC*)
13970	    # Rational C++ 2.4.1
13971	    # FIXME: insert proper C++ library support
13972	    ld_shlibs_CXX=no
13973	    ;;
13974          cxx*)
13975	    case $host in
13976	      osf3*)
13977	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13978	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13979	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13980		;;
13981	      *)
13982	        allow_undefined_flag_CXX=' -expect_unresolved \*'
13983	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13984	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13985	          echo "-hidden">> $lib.exp~
13986	          $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
13987	          $RM $lib.exp'
13988	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13989		;;
13990	    esac
13991
13992	    hardcode_libdir_separator_CXX=:
13993
13994	    # Commands to make compiler produce verbose output that lists
13995	    # what "hidden" libraries, object files and flags are used when
13996	    # linking a shared library.
13997	    #
13998	    # There doesn't appear to be a way to prevent this compiler from
13999	    # explicitly linking system object files so we need to strip them
14000	    # from the output so that they don't get included in the library
14001	    # dependencies.
14002	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14003	    ;;
14004	  *)
14005	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14006	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14007	      case $host in
14008	        osf3*)
14009	          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14010		  ;;
14011	        *)
14012	          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" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14013		  ;;
14014	      esac
14015
14016	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14017	      hardcode_libdir_separator_CXX=:
14018
14019	      # Commands to make compiler produce verbose output that lists
14020	      # what "hidden" libraries, object files and flags are used when
14021	      # linking a shared library.
14022	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14023
14024	    else
14025	      # FIXME: insert proper C++ library support
14026	      ld_shlibs_CXX=no
14027	    fi
14028	    ;;
14029        esac
14030        ;;
14031
14032      psos*)
14033        # FIXME: insert proper C++ library support
14034        ld_shlibs_CXX=no
14035        ;;
14036
14037      sunos4*)
14038        case $cc_basename in
14039          CC*)
14040	    # Sun C++ 4.x
14041	    # FIXME: insert proper C++ library support
14042	    ld_shlibs_CXX=no
14043	    ;;
14044          lcc*)
14045	    # Lucid
14046	    # FIXME: insert proper C++ library support
14047	    ld_shlibs_CXX=no
14048	    ;;
14049          *)
14050	    # FIXME: insert proper C++ library support
14051	    ld_shlibs_CXX=no
14052	    ;;
14053        esac
14054        ;;
14055
14056      solaris*)
14057        case $cc_basename in
14058          CC*)
14059	    # Sun C++ 4.2, 5.x and Centerline C++
14060            archive_cmds_need_lc_CXX=yes
14061	    no_undefined_flag_CXX=' -zdefs'
14062	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14063	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14064	      $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'
14065
14066	    hardcode_libdir_flag_spec_CXX='-R$libdir'
14067	    hardcode_shlibpath_var_CXX=no
14068	    case $host_os in
14069	      solaris2.[0-5] | solaris2.[0-5].*) ;;
14070	      *)
14071		# The compiler driver will combine and reorder linker options,
14072		# but understands `-z linker_flag'.
14073	        # Supported since Solaris 2.6 (maybe 2.5.1?)
14074		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14075	        ;;
14076	    esac
14077	    link_all_deplibs_CXX=yes
14078
14079	    output_verbose_link_cmd='echo'
14080
14081	    # Archives containing C++ object files must be created using
14082	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14083	    # necessary to make sure instantiated templates are included
14084	    # in the archive.
14085	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14086	    ;;
14087          gcx*)
14088	    # Green Hills C++ Compiler
14089	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14090
14091	    # The C++ compiler must be used to create the archive.
14092	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14093	    ;;
14094          *)
14095	    # GNU C++ compiler with Solaris linker
14096	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14097	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14098	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14099	        archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14100	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14101		  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14102
14103	        # Commands to make compiler produce verbose output that lists
14104	        # what "hidden" libraries, object files and flags are used when
14105	        # linking a shared library.
14106	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14107	      else
14108	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
14109	        # platform.
14110	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14111	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14112		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14113
14114	        # Commands to make compiler produce verbose output that lists
14115	        # what "hidden" libraries, object files and flags are used when
14116	        # linking a shared library.
14117	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14118	      fi
14119
14120	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14121	      case $host_os in
14122		solaris2.[0-5] | solaris2.[0-5].*) ;;
14123		*)
14124		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14125		  ;;
14126	      esac
14127	    fi
14128	    ;;
14129        esac
14130        ;;
14131
14132    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14133      no_undefined_flag_CXX='${wl}-z,text'
14134      archive_cmds_need_lc_CXX=no
14135      hardcode_shlibpath_var_CXX=no
14136      runpath_var='LD_RUN_PATH'
14137
14138      case $cc_basename in
14139        CC*)
14140	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14141	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14142	  ;;
14143	*)
14144	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14145	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14146	  ;;
14147      esac
14148      ;;
14149
14150      sysv5* | sco3.2v5* | sco5v6*)
14151	# Note: We can NOT use -z defs as we might desire, because we do not
14152	# link with -lc, and that would cause any symbols used from libc to
14153	# always be unresolved, which means just about no library would
14154	# ever link correctly.  If we're not using GNU ld we use -z text
14155	# though, which does catch some bad symbols but isn't as heavy-handed
14156	# as -z defs.
14157	no_undefined_flag_CXX='${wl}-z,text'
14158	allow_undefined_flag_CXX='${wl}-z,nodefs'
14159	archive_cmds_need_lc_CXX=no
14160	hardcode_shlibpath_var_CXX=no
14161	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14162	hardcode_libdir_separator_CXX=':'
14163	link_all_deplibs_CXX=yes
14164	export_dynamic_flag_spec_CXX='${wl}-Bexport'
14165	runpath_var='LD_RUN_PATH'
14166
14167	case $cc_basename in
14168          CC*)
14169	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14170	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14171	    ;;
14172	  *)
14173	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14174	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14175	    ;;
14176	esac
14177      ;;
14178
14179      tandem*)
14180        case $cc_basename in
14181          NCC*)
14182	    # NonStop-UX NCC 3.20
14183	    # FIXME: insert proper C++ library support
14184	    ld_shlibs_CXX=no
14185	    ;;
14186          *)
14187	    # FIXME: insert proper C++ library support
14188	    ld_shlibs_CXX=no
14189	    ;;
14190        esac
14191        ;;
14192
14193      vxworks*)
14194        # FIXME: insert proper C++ library support
14195        ld_shlibs_CXX=no
14196        ;;
14197
14198      *)
14199        # FIXME: insert proper C++ library support
14200        ld_shlibs_CXX=no
14201        ;;
14202    esac
14203
14204    { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14205$as_echo "$ld_shlibs_CXX" >&6; }
14206    test "$ld_shlibs_CXX" = no && can_build_shared=no
14207
14208    GCC_CXX="$GXX"
14209    LD_CXX="$LD"
14210
14211    ## CAVEAT EMPTOR:
14212    ## There is no encapsulation within the following macros, do not change
14213    ## the running order or otherwise move them around unless you know exactly
14214    ## what you are doing...
14215    # Dependencies to place before and after the object being linked:
14216predep_objects_CXX=
14217postdep_objects_CXX=
14218predeps_CXX=
14219postdeps_CXX=
14220compiler_lib_search_path_CXX=
14221
14222cat > conftest.$ac_ext <<_LT_EOF
14223class Foo
14224{
14225public:
14226  Foo (void) { a = 0; }
14227private:
14228  int a;
14229};
14230_LT_EOF
14231
14232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14233  (eval $ac_compile) 2>&5
14234  ac_status=$?
14235  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236  (exit $ac_status); }; then
14237  # Parse the compiler output and extract the necessary
14238  # objects, libraries and library flags.
14239
14240  # Sentinel used to keep track of whether or not we are before
14241  # the conftest object file.
14242  pre_test_object_deps_done=no
14243
14244  for p in `eval "$output_verbose_link_cmd"`; do
14245    case $p in
14246
14247    -L* | -R* | -l*)
14248       # Some compilers place space between "-{L,R}" and the path.
14249       # Remove the space.
14250       if test $p = "-L" ||
14251          test $p = "-R"; then
14252	 prev=$p
14253	 continue
14254       else
14255	 prev=
14256       fi
14257
14258       if test "$pre_test_object_deps_done" = no; then
14259	 case $p in
14260	 -L* | -R*)
14261	   # Internal compiler library paths should come after those
14262	   # provided the user.  The postdeps already come after the
14263	   # user supplied libs so there is no need to process them.
14264	   if test -z "$compiler_lib_search_path_CXX"; then
14265	     compiler_lib_search_path_CXX="${prev}${p}"
14266	   else
14267	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14268	   fi
14269	   ;;
14270	 # The "-l" case would never come before the object being
14271	 # linked, so don't bother handling this case.
14272	 esac
14273       else
14274	 if test -z "$postdeps_CXX"; then
14275	   postdeps_CXX="${prev}${p}"
14276	 else
14277	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14278	 fi
14279       fi
14280       ;;
14281
14282    *.$objext)
14283       # This assumes that the test object file only shows up
14284       # once in the compiler output.
14285       if test "$p" = "conftest.$objext"; then
14286	 pre_test_object_deps_done=yes
14287	 continue
14288       fi
14289
14290       if test "$pre_test_object_deps_done" = no; then
14291	 if test -z "$predep_objects_CXX"; then
14292	   predep_objects_CXX="$p"
14293	 else
14294	   predep_objects_CXX="$predep_objects_CXX $p"
14295	 fi
14296       else
14297	 if test -z "$postdep_objects_CXX"; then
14298	   postdep_objects_CXX="$p"
14299	 else
14300	   postdep_objects_CXX="$postdep_objects_CXX $p"
14301	 fi
14302       fi
14303       ;;
14304
14305    *) ;; # Ignore the rest.
14306
14307    esac
14308  done
14309
14310  # Clean up.
14311  rm -f a.out a.exe
14312else
14313  echo "libtool.m4: error: problem compiling CXX test program"
14314fi
14315
14316$RM -f confest.$objext
14317
14318# PORTME: override above test on systems where it is broken
14319case $host_os in
14320interix[3-9]*)
14321  # Interix 3.5 installs completely hosed .la files for C++, so rather than
14322  # hack all around it, let's just trust "g++" to DTRT.
14323  predep_objects_CXX=
14324  postdep_objects_CXX=
14325  postdeps_CXX=
14326  ;;
14327
14328linux*)
14329  case `$CC -V 2>&1 | sed 5q` in
14330  *Sun\ C*)
14331    # Sun C++ 5.9
14332
14333    # The more standards-conforming stlport4 library is
14334    # incompatible with the Cstd library. Avoid specifying
14335    # it if it's in CXXFLAGS. Ignore libCrun as
14336    # -library=stlport4 depends on it.
14337    case " $CXX $CXXFLAGS " in
14338    *" -library=stlport4 "*)
14339      solaris_use_stlport4=yes
14340      ;;
14341    esac
14342
14343    if test "$solaris_use_stlport4" != yes; then
14344      postdeps_CXX='-library=Cstd -library=Crun'
14345    fi
14346    ;;
14347  esac
14348  ;;
14349
14350solaris*)
14351  case $cc_basename in
14352  CC*)
14353    # The more standards-conforming stlport4 library is
14354    # incompatible with the Cstd library. Avoid specifying
14355    # it if it's in CXXFLAGS. Ignore libCrun as
14356    # -library=stlport4 depends on it.
14357    case " $CXX $CXXFLAGS " in
14358    *" -library=stlport4 "*)
14359      solaris_use_stlport4=yes
14360      ;;
14361    esac
14362
14363    # Adding this requires a known-good setup of shared libraries for
14364    # Sun compiler versions before 5.6, else PIC objects from an old
14365    # archive will be linked into the output, leading to subtle bugs.
14366    if test "$solaris_use_stlport4" != yes; then
14367      postdeps_CXX='-library=Cstd -library=Crun'
14368    fi
14369    ;;
14370  esac
14371  ;;
14372esac
14373
14374
14375case " $postdeps_CXX " in
14376*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14377esac
14378 compiler_lib_search_dirs_CXX=
14379if test -n "${compiler_lib_search_path_CXX}"; then
14380 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14381fi
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413    lt_prog_compiler_wl_CXX=
14414lt_prog_compiler_pic_CXX=
14415lt_prog_compiler_static_CXX=
14416
14417{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14418$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14419
14420  # C++ specific cases for pic, static, wl, etc.
14421  if test "$GXX" = yes; then
14422    lt_prog_compiler_wl_CXX='-Wl,'
14423    lt_prog_compiler_static_CXX='-static'
14424
14425    case $host_os in
14426    aix*)
14427      # All AIX code is PIC.
14428      if test "$host_cpu" = ia64; then
14429	# AIX 5 now supports IA64 processor
14430	lt_prog_compiler_static_CXX='-Bstatic'
14431      fi
14432      ;;
14433
14434    amigaos*)
14435      case $host_cpu in
14436      powerpc)
14437            # see comment about AmigaOS4 .so support
14438            lt_prog_compiler_pic_CXX='-fPIC'
14439        ;;
14440      m68k)
14441            # FIXME: we need at least 68020 code to build shared libraries, but
14442            # adding the `-m68020' flag to GCC prevents building anything better,
14443            # like `-m68040'.
14444            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14445        ;;
14446      esac
14447      ;;
14448
14449    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14450      # PIC is the default for these OSes.
14451      ;;
14452    mingw* | cygwin* | os2* | pw32* | cegcc*)
14453      # This hack is so that the source file can tell whether it is being
14454      # built for inclusion in a dll (and should export symbols for example).
14455      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14456      # (--disable-auto-import) libraries
14457      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14458      ;;
14459    darwin* | rhapsody*)
14460      # PIC is the default on this platform
14461      # Common symbols not allowed in MH_DYLIB files
14462      lt_prog_compiler_pic_CXX='-fno-common'
14463      ;;
14464    *djgpp*)
14465      # DJGPP does not support shared libraries at all
14466      lt_prog_compiler_pic_CXX=
14467      ;;
14468    interix[3-9]*)
14469      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14470      # Instead, we relocate shared libraries at runtime.
14471      ;;
14472    sysv4*MP*)
14473      if test -d /usr/nec; then
14474	lt_prog_compiler_pic_CXX=-Kconform_pic
14475      fi
14476      ;;
14477    hpux*)
14478      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14479      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14480      # sets the default TLS model and affects inlining.
14481      case $host_cpu in
14482      hppa*64*)
14483	;;
14484      *)
14485	lt_prog_compiler_pic_CXX='-fPIC'
14486	;;
14487      esac
14488      ;;
14489    *qnx* | *nto*)
14490      # QNX uses GNU C++, but need to define -shared option too, otherwise
14491      # it will coredump.
14492      lt_prog_compiler_pic_CXX='-fPIC -shared'
14493      ;;
14494    *)
14495      lt_prog_compiler_pic_CXX='-fPIC'
14496      ;;
14497    esac
14498  else
14499    case $host_os in
14500      aix[4-9]*)
14501	# All AIX code is PIC.
14502	if test "$host_cpu" = ia64; then
14503	  # AIX 5 now supports IA64 processor
14504	  lt_prog_compiler_static_CXX='-Bstatic'
14505	else
14506	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14507	fi
14508	;;
14509      chorus*)
14510	case $cc_basename in
14511	cxch68*)
14512	  # Green Hills C++ Compiler
14513	  # _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"
14514	  ;;
14515	esac
14516	;;
14517      dgux*)
14518	case $cc_basename in
14519	  ec++*)
14520	    lt_prog_compiler_pic_CXX='-KPIC'
14521	    ;;
14522	  ghcx*)
14523	    # Green Hills C++ Compiler
14524	    lt_prog_compiler_pic_CXX='-pic'
14525	    ;;
14526	  *)
14527	    ;;
14528	esac
14529	;;
14530      freebsd* | dragonfly*)
14531	# FreeBSD uses GNU C++
14532	;;
14533      hpux9* | hpux10* | hpux11*)
14534	case $cc_basename in
14535	  CC*)
14536	    lt_prog_compiler_wl_CXX='-Wl,'
14537	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14538	    if test "$host_cpu" != ia64; then
14539	      lt_prog_compiler_pic_CXX='+Z'
14540	    fi
14541	    ;;
14542	  aCC*)
14543	    lt_prog_compiler_wl_CXX='-Wl,'
14544	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14545	    case $host_cpu in
14546	    hppa*64*|ia64*)
14547	      # +Z the default
14548	      ;;
14549	    *)
14550	      lt_prog_compiler_pic_CXX='+Z'
14551	      ;;
14552	    esac
14553	    ;;
14554	  *)
14555	    ;;
14556	esac
14557	;;
14558      interix*)
14559	# This is c89, which is MS Visual C++ (no shared libs)
14560	# Anyone wants to do a port?
14561	;;
14562      irix5* | irix6* | nonstopux*)
14563	case $cc_basename in
14564	  CC*)
14565	    lt_prog_compiler_wl_CXX='-Wl,'
14566	    lt_prog_compiler_static_CXX='-non_shared'
14567	    # CC pic flag -KPIC is the default.
14568	    ;;
14569	  *)
14570	    ;;
14571	esac
14572	;;
14573      linux* | k*bsd*-gnu)
14574	case $cc_basename in
14575	  KCC*)
14576	    # KAI C++ Compiler
14577	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14578	    lt_prog_compiler_pic_CXX='-fPIC'
14579	    ;;
14580	  ecpc* )
14581	    # old Intel C++ for x86_64 which still supported -KPIC.
14582	    lt_prog_compiler_wl_CXX='-Wl,'
14583	    lt_prog_compiler_pic_CXX='-KPIC'
14584	    lt_prog_compiler_static_CXX='-static'
14585	    ;;
14586	  icpc* )
14587	    # Intel C++, used to be incompatible with GCC.
14588	    # ICC 10 doesn't accept -KPIC any more.
14589	    lt_prog_compiler_wl_CXX='-Wl,'
14590	    lt_prog_compiler_pic_CXX='-fPIC'
14591	    lt_prog_compiler_static_CXX='-static'
14592	    ;;
14593	  pgCC* | pgcpp*)
14594	    # Portland Group C++ compiler
14595	    lt_prog_compiler_wl_CXX='-Wl,'
14596	    lt_prog_compiler_pic_CXX='-fpic'
14597	    lt_prog_compiler_static_CXX='-Bstatic'
14598	    ;;
14599	  cxx*)
14600	    # Compaq C++
14601	    # Make sure the PIC flag is empty.  It appears that all Alpha
14602	    # Linux and Compaq Tru64 Unix objects are PIC.
14603	    lt_prog_compiler_pic_CXX=
14604	    lt_prog_compiler_static_CXX='-non_shared'
14605	    ;;
14606	  xlc* | xlC*)
14607	    # IBM XL 8.0 on PPC
14608	    lt_prog_compiler_wl_CXX='-Wl,'
14609	    lt_prog_compiler_pic_CXX='-qpic'
14610	    lt_prog_compiler_static_CXX='-qstaticlink'
14611	    ;;
14612	  *)
14613	    case `$CC -V 2>&1 | sed 5q` in
14614	    *Sun\ C*)
14615	      # Sun C++ 5.9
14616	      lt_prog_compiler_pic_CXX='-KPIC'
14617	      lt_prog_compiler_static_CXX='-Bstatic'
14618	      lt_prog_compiler_wl_CXX='-Qoption ld '
14619	      ;;
14620	    esac
14621	    ;;
14622	esac
14623	;;
14624      lynxos*)
14625	;;
14626      m88k*)
14627	;;
14628      mvs*)
14629	case $cc_basename in
14630	  cxx*)
14631	    lt_prog_compiler_pic_CXX='-W c,exportall'
14632	    ;;
14633	  *)
14634	    ;;
14635	esac
14636	;;
14637      netbsd*)
14638	;;
14639      *qnx* | *nto*)
14640        # QNX uses GNU C++, but need to define -shared option too, otherwise
14641        # it will coredump.
14642        lt_prog_compiler_pic_CXX='-fPIC -shared'
14643        ;;
14644      osf3* | osf4* | osf5*)
14645	case $cc_basename in
14646	  KCC*)
14647	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14648	    ;;
14649	  RCC*)
14650	    # Rational C++ 2.4.1
14651	    lt_prog_compiler_pic_CXX='-pic'
14652	    ;;
14653	  cxx*)
14654	    # Digital/Compaq C++
14655	    lt_prog_compiler_wl_CXX='-Wl,'
14656	    # Make sure the PIC flag is empty.  It appears that all Alpha
14657	    # Linux and Compaq Tru64 Unix objects are PIC.
14658	    lt_prog_compiler_pic_CXX=
14659	    lt_prog_compiler_static_CXX='-non_shared'
14660	    ;;
14661	  *)
14662	    ;;
14663	esac
14664	;;
14665      psos*)
14666	;;
14667      solaris*)
14668	case $cc_basename in
14669	  CC*)
14670	    # Sun C++ 4.2, 5.x and Centerline C++
14671	    lt_prog_compiler_pic_CXX='-KPIC'
14672	    lt_prog_compiler_static_CXX='-Bstatic'
14673	    lt_prog_compiler_wl_CXX='-Qoption ld '
14674	    ;;
14675	  gcx*)
14676	    # Green Hills C++ Compiler
14677	    lt_prog_compiler_pic_CXX='-PIC'
14678	    ;;
14679	  *)
14680	    ;;
14681	esac
14682	;;
14683      sunos4*)
14684	case $cc_basename in
14685	  CC*)
14686	    # Sun C++ 4.x
14687	    lt_prog_compiler_pic_CXX='-pic'
14688	    lt_prog_compiler_static_CXX='-Bstatic'
14689	    ;;
14690	  lcc*)
14691	    # Lucid
14692	    lt_prog_compiler_pic_CXX='-pic'
14693	    ;;
14694	  *)
14695	    ;;
14696	esac
14697	;;
14698      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14699	case $cc_basename in
14700	  CC*)
14701	    lt_prog_compiler_wl_CXX='-Wl,'
14702	    lt_prog_compiler_pic_CXX='-KPIC'
14703	    lt_prog_compiler_static_CXX='-Bstatic'
14704	    ;;
14705	esac
14706	;;
14707      tandem*)
14708	case $cc_basename in
14709	  NCC*)
14710	    # NonStop-UX NCC 3.20
14711	    lt_prog_compiler_pic_CXX='-KPIC'
14712	    ;;
14713	  *)
14714	    ;;
14715	esac
14716	;;
14717      vxworks*)
14718	;;
14719      *)
14720	lt_prog_compiler_can_build_shared_CXX=no
14721	;;
14722    esac
14723  fi
14724
14725case $host_os in
14726  # For platforms which do not support PIC, -DPIC is meaningless:
14727  *djgpp*)
14728    lt_prog_compiler_pic_CXX=
14729    ;;
14730  *)
14731    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14732    ;;
14733esac
14734{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14735$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14736
14737
14738
14739#
14740# Check to make sure the PIC flag actually works.
14741#
14742if test -n "$lt_prog_compiler_pic_CXX"; then
14743  { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14744$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14745if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14746  $as_echo_n "(cached) " >&6
14747else
14748  lt_cv_prog_compiler_pic_works_CXX=no
14749   ac_outfile=conftest.$ac_objext
14750   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14751   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14752   # Insert the option either (1) after the last *FLAGS variable, or
14753   # (2) before a word containing "conftest.", or (3) at the end.
14754   # Note that $ac_compile itself does not contain backslashes and begins
14755   # with a dollar sign (not a hyphen), so the echo should work correctly.
14756   # The option is referenced via a variable to avoid confusing sed.
14757   lt_compile=`echo "$ac_compile" | $SED \
14758   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14759   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14760   -e 's:$: $lt_compiler_flag:'`
14761   (eval echo "\"\$as_me:14761: $lt_compile\"" >&5)
14762   (eval "$lt_compile" 2>conftest.err)
14763   ac_status=$?
14764   cat conftest.err >&5
14765   echo "$as_me:14765: \$? = $ac_status" >&5
14766   if (exit $ac_status) && test -s "$ac_outfile"; then
14767     # The compiler can only warn and ignore the option if not recognized
14768     # So say no if there are warnings other than the usual output.
14769     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14770     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14771     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14772       lt_cv_prog_compiler_pic_works_CXX=yes
14773     fi
14774   fi
14775   $RM conftest*
14776
14777fi
14778{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14779$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14780
14781if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14782    case $lt_prog_compiler_pic_CXX in
14783     "" | " "*) ;;
14784     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14785     esac
14786else
14787    lt_prog_compiler_pic_CXX=
14788     lt_prog_compiler_can_build_shared_CXX=no
14789fi
14790
14791fi
14792
14793
14794
14795#
14796# Check to make sure the static flag actually works.
14797#
14798wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14799{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14800$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14801if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14802  $as_echo_n "(cached) " >&6
14803else
14804  lt_cv_prog_compiler_static_works_CXX=no
14805   save_LDFLAGS="$LDFLAGS"
14806   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14807   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14808   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14809     # The linker can only warn and ignore the option if not recognized
14810     # So say no if there are warnings
14811     if test -s conftest.err; then
14812       # Append any errors to the config.log.
14813       cat conftest.err 1>&5
14814       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14815       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14816       if diff conftest.exp conftest.er2 >/dev/null; then
14817         lt_cv_prog_compiler_static_works_CXX=yes
14818       fi
14819     else
14820       lt_cv_prog_compiler_static_works_CXX=yes
14821     fi
14822   fi
14823   $RM -r conftest*
14824   LDFLAGS="$save_LDFLAGS"
14825
14826fi
14827{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14828$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14829
14830if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14831    :
14832else
14833    lt_prog_compiler_static_CXX=
14834fi
14835
14836
14837
14838
14839    { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14840$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14841if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14842  $as_echo_n "(cached) " >&6
14843else
14844  lt_cv_prog_compiler_c_o_CXX=no
14845   $RM -r conftest 2>/dev/null
14846   mkdir conftest
14847   cd conftest
14848   mkdir out
14849   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14850
14851   lt_compiler_flag="-o out/conftest2.$ac_objext"
14852   # Insert the option either (1) after the last *FLAGS variable, or
14853   # (2) before a word containing "conftest.", or (3) at the end.
14854   # Note that $ac_compile itself does not contain backslashes and begins
14855   # with a dollar sign (not a hyphen), so the echo should work correctly.
14856   lt_compile=`echo "$ac_compile" | $SED \
14857   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14858   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14859   -e 's:$: $lt_compiler_flag:'`
14860   (eval echo "\"\$as_me:14860: $lt_compile\"" >&5)
14861   (eval "$lt_compile" 2>out/conftest.err)
14862   ac_status=$?
14863   cat out/conftest.err >&5
14864   echo "$as_me:14864: \$? = $ac_status" >&5
14865   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14866   then
14867     # The compiler can only warn and ignore the option if not recognized
14868     # So say no if there are warnings
14869     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14870     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14871     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14872       lt_cv_prog_compiler_c_o_CXX=yes
14873     fi
14874   fi
14875   chmod u+w . 2>&5
14876   $RM conftest*
14877   # SGI C++ compiler will create directory out/ii_files/ for
14878   # template instantiation
14879   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14880   $RM out/* && rmdir out
14881   cd ..
14882   $RM -r conftest
14883   $RM conftest*
14884
14885fi
14886{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14887$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14888
14889
14890
14891    { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14892$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14893if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14894  $as_echo_n "(cached) " >&6
14895else
14896  lt_cv_prog_compiler_c_o_CXX=no
14897   $RM -r conftest 2>/dev/null
14898   mkdir conftest
14899   cd conftest
14900   mkdir out
14901   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14902
14903   lt_compiler_flag="-o out/conftest2.$ac_objext"
14904   # Insert the option either (1) after the last *FLAGS variable, or
14905   # (2) before a word containing "conftest.", or (3) at the end.
14906   # Note that $ac_compile itself does not contain backslashes and begins
14907   # with a dollar sign (not a hyphen), so the echo should work correctly.
14908   lt_compile=`echo "$ac_compile" | $SED \
14909   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14910   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14911   -e 's:$: $lt_compiler_flag:'`
14912   (eval echo "\"\$as_me:14912: $lt_compile\"" >&5)
14913   (eval "$lt_compile" 2>out/conftest.err)
14914   ac_status=$?
14915   cat out/conftest.err >&5
14916   echo "$as_me:14916: \$? = $ac_status" >&5
14917   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14918   then
14919     # The compiler can only warn and ignore the option if not recognized
14920     # So say no if there are warnings
14921     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14922     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14923     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14924       lt_cv_prog_compiler_c_o_CXX=yes
14925     fi
14926   fi
14927   chmod u+w . 2>&5
14928   $RM conftest*
14929   # SGI C++ compiler will create directory out/ii_files/ for
14930   # template instantiation
14931   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14932   $RM out/* && rmdir out
14933   cd ..
14934   $RM -r conftest
14935   $RM conftest*
14936
14937fi
14938{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14939$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14940
14941
14942
14943
14944hard_links="nottested"
14945if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14946  # do not overwrite the value of need_locks provided by the user
14947  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14948$as_echo_n "checking if we can lock with hard links... " >&6; }
14949  hard_links=yes
14950  $RM conftest*
14951  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14952  touch conftest.a
14953  ln conftest.a conftest.b 2>&5 || hard_links=no
14954  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14955  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14956$as_echo "$hard_links" >&6; }
14957  if test "$hard_links" = no; then
14958    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14959$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14960    need_locks=warn
14961  fi
14962else
14963  need_locks=no
14964fi
14965
14966
14967
14968    { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14969$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14970
14971  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14972  case $host_os in
14973  aix[4-9]*)
14974    # If we're using GNU nm, then we don't want the "-C" option.
14975    # -C means demangle to AIX nm, but means don't demangle with GNU nm
14976    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14977      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14978    else
14979      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'
14980    fi
14981    ;;
14982  pw32*)
14983    export_symbols_cmds_CXX="$ltdll_cmds"
14984  ;;
14985  cygwin* | mingw* | cegcc*)
14986    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'
14987  ;;
14988  *)
14989    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14990  ;;
14991  esac
14992  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14993
14994{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14995$as_echo "$ld_shlibs_CXX" >&6; }
14996test "$ld_shlibs_CXX" = no && can_build_shared=no
14997
14998with_gnu_ld_CXX=$with_gnu_ld
14999
15000
15001
15002
15003
15004
15005#
15006# Do we need to explicitly link libc?
15007#
15008case "x$archive_cmds_need_lc_CXX" in
15009x|xyes)
15010  # Assume -lc should be added
15011  archive_cmds_need_lc_CXX=yes
15012
15013  if test "$enable_shared" = yes && test "$GCC" = yes; then
15014    case $archive_cmds_CXX in
15015    *'~'*)
15016      # FIXME: we may have to deal with multi-command sequences.
15017      ;;
15018    '$CC '*)
15019      # Test whether the compiler implicitly links with -lc since on some
15020      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15021      # to ld, don't add -lc before -lgcc.
15022      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15023$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15024      $RM conftest*
15025      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15026
15027      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15028  (eval $ac_compile) 2>&5
15029  ac_status=$?
15030  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031  (exit $ac_status); } 2>conftest.err; then
15032        soname=conftest
15033        lib=conftest
15034        libobjs=conftest.$ac_objext
15035        deplibs=
15036        wl=$lt_prog_compiler_wl_CXX
15037	pic_flag=$lt_prog_compiler_pic_CXX
15038        compiler_flags=-v
15039        linker_flags=-v
15040        verstring=
15041        output_objdir=.
15042        libname=conftest
15043        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15044        allow_undefined_flag_CXX=
15045        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15046  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15047  ac_status=$?
15048  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15049  (exit $ac_status); }
15050        then
15051	  archive_cmds_need_lc_CXX=no
15052        else
15053	  archive_cmds_need_lc_CXX=yes
15054        fi
15055        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15056      else
15057        cat conftest.err 1>&5
15058      fi
15059      $RM conftest*
15060      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15061$as_echo "$archive_cmds_need_lc_CXX" >&6; }
15062      ;;
15063    esac
15064  fi
15065  ;;
15066esac
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131    { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15132$as_echo_n "checking dynamic linker characteristics... " >&6; }
15133
15134library_names_spec=
15135libname_spec='lib$name'
15136soname_spec=
15137shrext_cmds=".so"
15138postinstall_cmds=
15139postuninstall_cmds=
15140finish_cmds=
15141finish_eval=
15142shlibpath_var=
15143shlibpath_overrides_runpath=unknown
15144version_type=none
15145dynamic_linker="$host_os ld.so"
15146sys_lib_dlsearch_path_spec="/lib /usr/lib"
15147need_lib_prefix=unknown
15148hardcode_into_libs=no
15149
15150# when you set need_version to no, make sure it does not cause -set_version
15151# flags to be left without arguments
15152need_version=unknown
15153
15154case $host_os in
15155aix3*)
15156  version_type=linux
15157  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15158  shlibpath_var=LIBPATH
15159
15160  # AIX 3 has no versioning support, so we append a major version to the name.
15161  soname_spec='${libname}${release}${shared_ext}$major'
15162  ;;
15163
15164aix[4-9]*)
15165  version_type=linux
15166  need_lib_prefix=no
15167  need_version=no
15168  hardcode_into_libs=yes
15169  if test "$host_cpu" = ia64; then
15170    # AIX 5 supports IA64
15171    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15172    shlibpath_var=LD_LIBRARY_PATH
15173  else
15174    # With GCC up to 2.95.x, collect2 would create an import file
15175    # for dependence libraries.  The import file would start with
15176    # the line `#! .'.  This would cause the generated library to
15177    # depend on `.', always an invalid library.  This was fixed in
15178    # development snapshots of GCC prior to 3.0.
15179    case $host_os in
15180      aix4 | aix4.[01] | aix4.[01].*)
15181      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15182	   echo ' yes '
15183	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15184	:
15185      else
15186	can_build_shared=no
15187      fi
15188      ;;
15189    esac
15190    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15191    # soname into executable. Probably we can add versioning support to
15192    # collect2, so additional links can be useful in future.
15193    if test "$aix_use_runtimelinking" = yes; then
15194      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15195      # instead of lib<name>.a to let people know that these are not
15196      # typical AIX shared libraries.
15197      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15198    else
15199      # We preserve .a as extension for shared libraries through AIX4.2
15200      # and later when we are not doing run time linking.
15201      library_names_spec='${libname}${release}.a $libname.a'
15202      soname_spec='${libname}${release}${shared_ext}$major'
15203    fi
15204    shlibpath_var=LIBPATH
15205  fi
15206  ;;
15207
15208amigaos*)
15209  case $host_cpu in
15210  powerpc)
15211    # Since July 2007 AmigaOS4 officially supports .so libraries.
15212    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15213    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15214    ;;
15215  m68k)
15216    library_names_spec='$libname.ixlibrary $libname.a'
15217    # Create ${libname}_ixlibrary.a entries in /sys/libs.
15218    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
15219    ;;
15220  esac
15221  ;;
15222
15223beos*)
15224  library_names_spec='${libname}${shared_ext}'
15225  dynamic_linker="$host_os ld.so"
15226  shlibpath_var=LIBRARY_PATH
15227  ;;
15228
15229bsdi[45]*)
15230  version_type=linux
15231  need_version=no
15232  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15233  soname_spec='${libname}${release}${shared_ext}$major'
15234  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15235  shlibpath_var=LD_LIBRARY_PATH
15236  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15237  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15238  # the default ld.so.conf also contains /usr/contrib/lib and
15239  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15240  # libtool to hard-code these into programs
15241  ;;
15242
15243cygwin* | mingw* | pw32* | cegcc*)
15244  version_type=windows
15245  shrext_cmds=".dll"
15246  need_version=no
15247  need_lib_prefix=no
15248
15249  case $GCC,$host_os in
15250  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15251    library_names_spec='$libname.dll.a'
15252    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15253    postinstall_cmds='base_file=`basename \${file}`~
15254      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15255      dldir=$destdir/`dirname \$dlpath`~
15256      test -d \$dldir || mkdir -p \$dldir~
15257      $install_prog $dir/$dlname \$dldir/$dlname~
15258      chmod a+x \$dldir/$dlname~
15259      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15260        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15261      fi'
15262    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15263      dlpath=$dir/\$dldll~
15264       $RM \$dlpath'
15265    shlibpath_overrides_runpath=yes
15266
15267    case $host_os in
15268    cygwin*)
15269      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15270      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15271      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15272      ;;
15273    mingw* | cegcc*)
15274      # MinGW DLLs use traditional 'lib' prefix
15275      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15276      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15277      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15278        # It is most probably a Windows format PATH printed by
15279        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15280        # path with ; separators, and with drive letters. We can handle the
15281        # drive letters (cygwin fileutils understands them), so leave them,
15282        # especially as we might pass files found there to a mingw objdump,
15283        # which wouldn't understand a cygwinified path. Ahh.
15284        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15285      else
15286        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15287      fi
15288      ;;
15289    pw32*)
15290      # pw32 DLLs use 'pw' prefix rather than 'lib'
15291      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15292      ;;
15293    esac
15294    ;;
15295
15296  *)
15297    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15298    ;;
15299  esac
15300  dynamic_linker='Win32 ld.exe'
15301  # FIXME: first we should search . and the directory the executable is in
15302  shlibpath_var=PATH
15303  ;;
15304
15305darwin* | rhapsody*)
15306  dynamic_linker="$host_os dyld"
15307  version_type=darwin
15308  need_lib_prefix=no
15309  need_version=no
15310  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15311  soname_spec='${libname}${release}${major}$shared_ext'
15312  shlibpath_overrides_runpath=yes
15313  shlibpath_var=DYLD_LIBRARY_PATH
15314  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15315
15316  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15317  ;;
15318
15319dgux*)
15320  version_type=linux
15321  need_lib_prefix=no
15322  need_version=no
15323  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15324  soname_spec='${libname}${release}${shared_ext}$major'
15325  shlibpath_var=LD_LIBRARY_PATH
15326  ;;
15327
15328freebsd1*)
15329  dynamic_linker=no
15330  ;;
15331
15332freebsd* | dragonfly*)
15333  # DragonFly does not have aout.  When/if they implement a new
15334  # versioning mechanism, adjust this.
15335  if test -x /usr/bin/objformat; then
15336    objformat=`/usr/bin/objformat`
15337  else
15338    case $host_os in
15339    freebsd[123]*) objformat=aout ;;
15340    *) objformat=elf ;;
15341    esac
15342  fi
15343  # Handle Gentoo/FreeBSD as it was Linux
15344  case $host_vendor in
15345    gentoo)
15346      version_type=linux ;;
15347    *)
15348      version_type=freebsd-$objformat ;;
15349  esac
15350
15351  case $version_type in
15352    freebsd-elf*)
15353      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15354      need_version=no
15355      need_lib_prefix=no
15356      ;;
15357    freebsd-*)
15358      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15359      need_version=yes
15360      ;;
15361    linux)
15362      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15363      soname_spec='${libname}${release}${shared_ext}$major'
15364      need_lib_prefix=no
15365      need_version=no
15366      ;;
15367  esac
15368  shlibpath_var=LD_LIBRARY_PATH
15369  case $host_os in
15370  freebsd2*)
15371    shlibpath_overrides_runpath=yes
15372    ;;
15373  freebsd3.[01]* | freebsdelf3.[01]*)
15374    shlibpath_overrides_runpath=yes
15375    hardcode_into_libs=yes
15376    ;;
15377  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15378  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15379    shlibpath_overrides_runpath=no
15380    hardcode_into_libs=yes
15381    ;;
15382  *) # from 4.6 on, and DragonFly
15383    shlibpath_overrides_runpath=yes
15384    hardcode_into_libs=yes
15385    ;;
15386  esac
15387  ;;
15388
15389gnu*)
15390  version_type=linux
15391  need_lib_prefix=no
15392  need_version=no
15393  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15394  soname_spec='${libname}${release}${shared_ext}$major'
15395  shlibpath_var=LD_LIBRARY_PATH
15396  hardcode_into_libs=yes
15397  ;;
15398
15399hpux9* | hpux10* | hpux11*)
15400  # Give a soname corresponding to the major version so that dld.sl refuses to
15401  # link against other versions.
15402  version_type=sunos
15403  need_lib_prefix=no
15404  need_version=no
15405  case $host_cpu in
15406  ia64*)
15407    shrext_cmds='.so'
15408    hardcode_into_libs=yes
15409    dynamic_linker="$host_os dld.so"
15410    shlibpath_var=LD_LIBRARY_PATH
15411    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15412    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15413    soname_spec='${libname}${release}${shared_ext}$major'
15414    if test "X$HPUX_IA64_MODE" = X32; then
15415      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15416    else
15417      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15418    fi
15419    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15420    ;;
15421  hppa*64*)
15422    shrext_cmds='.sl'
15423    hardcode_into_libs=yes
15424    dynamic_linker="$host_os dld.sl"
15425    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15426    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15427    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15428    soname_spec='${libname}${release}${shared_ext}$major'
15429    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15430    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15431    ;;
15432  *)
15433    shrext_cmds='.sl'
15434    dynamic_linker="$host_os dld.sl"
15435    shlibpath_var=SHLIB_PATH
15436    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15437    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15438    soname_spec='${libname}${release}${shared_ext}$major'
15439    ;;
15440  esac
15441  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15442  postinstall_cmds='chmod 555 $lib'
15443  ;;
15444
15445interix[3-9]*)
15446  version_type=linux
15447  need_lib_prefix=no
15448  need_version=no
15449  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15450  soname_spec='${libname}${release}${shared_ext}$major'
15451  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15452  shlibpath_var=LD_LIBRARY_PATH
15453  shlibpath_overrides_runpath=no
15454  hardcode_into_libs=yes
15455  ;;
15456
15457irix5* | irix6* | nonstopux*)
15458  case $host_os in
15459    nonstopux*) version_type=nonstopux ;;
15460    *)
15461	if test "$lt_cv_prog_gnu_ld" = yes; then
15462		version_type=linux
15463	else
15464		version_type=irix
15465	fi ;;
15466  esac
15467  need_lib_prefix=no
15468  need_version=no
15469  soname_spec='${libname}${release}${shared_ext}$major'
15470  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15471  case $host_os in
15472  irix5* | nonstopux*)
15473    libsuff= shlibsuff=
15474    ;;
15475  *)
15476    case $LD in # libtool.m4 will add one of these switches to LD
15477    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15478      libsuff= shlibsuff= libmagic=32-bit;;
15479    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15480      libsuff=32 shlibsuff=N32 libmagic=N32;;
15481    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15482      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15483    *) libsuff= shlibsuff= libmagic=never-match;;
15484    esac
15485    ;;
15486  esac
15487  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15488  shlibpath_overrides_runpath=no
15489  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15490  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15491  hardcode_into_libs=yes
15492  ;;
15493
15494# No shared lib support for Linux oldld, aout, or coff.
15495linux*oldld* | linux*aout* | linux*coff*)
15496  dynamic_linker=no
15497  ;;
15498
15499# This must be Linux ELF.
15500linux* | k*bsd*-gnu)
15501  version_type=linux
15502  need_lib_prefix=no
15503  need_version=no
15504  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15505  soname_spec='${libname}${release}${shared_ext}$major'
15506  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15507  shlibpath_var=LD_LIBRARY_PATH
15508  shlibpath_overrides_runpath=no
15509  # Some binutils ld are patched to set DT_RUNPATH
15510  save_LDFLAGS=$LDFLAGS
15511  save_libdir=$libdir
15512  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15513       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15514  cat >conftest.$ac_ext <<_ACEOF
15515/* confdefs.h.  */
15516_ACEOF
15517cat confdefs.h >>conftest.$ac_ext
15518cat >>conftest.$ac_ext <<_ACEOF
15519/* end confdefs.h.  */
15520
15521int
15522main ()
15523{
15524
15525  ;
15526  return 0;
15527}
15528_ACEOF
15529rm -f conftest.$ac_objext conftest$ac_exeext
15530if { (ac_try="$ac_link"
15531case "(($ac_try" in
15532  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15533  *) ac_try_echo=$ac_try;;
15534esac
15535eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15536$as_echo "$ac_try_echo") >&5
15537  (eval "$ac_link") 2>conftest.er1
15538  ac_status=$?
15539  grep -v '^ *+' conftest.er1 >conftest.err
15540  rm -f conftest.er1
15541  cat conftest.err >&5
15542  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15543  (exit $ac_status); } && {
15544	 test -z "$ac_cxx_werror_flag" ||
15545	 test ! -s conftest.err
15546       } && test -s conftest$ac_exeext && {
15547	 test "$cross_compiling" = yes ||
15548	 $as_test_x conftest$ac_exeext
15549       }; then
15550  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15551  shlibpath_overrides_runpath=yes
15552fi
15553
15554else
15555  $as_echo "$as_me: failed program was:" >&5
15556sed 's/^/| /' conftest.$ac_ext >&5
15557
15558
15559fi
15560
15561rm -rf conftest.dSYM
15562rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15563      conftest$ac_exeext conftest.$ac_ext
15564  LDFLAGS=$save_LDFLAGS
15565  libdir=$save_libdir
15566
15567  # This implies no fast_install, which is unacceptable.
15568  # Some rework will be needed to allow for fast_install
15569  # before this can be enabled.
15570  hardcode_into_libs=yes
15571
15572  # Append ld.so.conf contents to the search path
15573  if test -f /etc/ld.so.conf; then
15574    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;/^$/d' | tr '\n' ' '`
15575    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15576  fi
15577
15578  # We used to test for /lib/ld.so.1 and disable shared libraries on
15579  # powerpc, because MkLinux only supported shared libraries with the
15580  # GNU dynamic linker.  Since this was broken with cross compilers,
15581  # most powerpc-linux boxes support dynamic linking these days and
15582  # people can always --disable-shared, the test was removed, and we
15583  # assume the GNU/Linux dynamic linker is in use.
15584  dynamic_linker='GNU/Linux ld.so'
15585  ;;
15586
15587netbsd*)
15588  version_type=sunos
15589  need_lib_prefix=no
15590  need_version=no
15591  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15592    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15593    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15594    dynamic_linker='NetBSD (a.out) ld.so'
15595  else
15596    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15597    soname_spec='${libname}${release}${shared_ext}$major'
15598    dynamic_linker='NetBSD ld.elf_so'
15599  fi
15600  shlibpath_var=LD_LIBRARY_PATH
15601  shlibpath_overrides_runpath=yes
15602  hardcode_into_libs=yes
15603  ;;
15604
15605newsos6)
15606  version_type=linux
15607  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15608  shlibpath_var=LD_LIBRARY_PATH
15609  shlibpath_overrides_runpath=yes
15610  ;;
15611
15612*nto* | *qnx*)
15613  version_type=qnx
15614  need_lib_prefix=no
15615  need_version=no
15616  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15617  soname_spec='${libname}${release}${shared_ext}$major'
15618  shlibpath_var=LD_LIBRARY_PATH
15619  shlibpath_overrides_runpath=no
15620  hardcode_into_libs=yes
15621  dynamic_linker='ldqnx.so'
15622  ;;
15623
15624openbsd*)
15625  version_type=sunos
15626  sys_lib_dlsearch_path_spec="/usr/lib"
15627  need_lib_prefix=no
15628  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15629  case $host_os in
15630    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
15631    *)				need_version=no  ;;
15632  esac
15633  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15634  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15635  shlibpath_var=LD_LIBRARY_PATH
15636  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15637    case $host_os in
15638      openbsd2.[89] | openbsd2.[89].*)
15639	shlibpath_overrides_runpath=no
15640	;;
15641      *)
15642	shlibpath_overrides_runpath=yes
15643	;;
15644      esac
15645  else
15646    shlibpath_overrides_runpath=yes
15647  fi
15648  ;;
15649
15650os2*)
15651  libname_spec='$name'
15652  shrext_cmds=".dll"
15653  need_lib_prefix=no
15654  library_names_spec='$libname${shared_ext} $libname.a'
15655  dynamic_linker='OS/2 ld.exe'
15656  shlibpath_var=LIBPATH
15657  ;;
15658
15659osf3* | osf4* | osf5*)
15660  version_type=osf
15661  need_lib_prefix=no
15662  need_version=no
15663  soname_spec='${libname}${release}${shared_ext}$major'
15664  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15665  shlibpath_var=LD_LIBRARY_PATH
15666  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15667  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15668  ;;
15669
15670rdos*)
15671  dynamic_linker=no
15672  ;;
15673
15674solaris*)
15675  version_type=linux
15676  need_lib_prefix=no
15677  need_version=no
15678  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15679  soname_spec='${libname}${release}${shared_ext}$major'
15680  shlibpath_var=LD_LIBRARY_PATH
15681  shlibpath_overrides_runpath=yes
15682  hardcode_into_libs=yes
15683  # ldd complains unless libraries are executable
15684  postinstall_cmds='chmod +x $lib'
15685  ;;
15686
15687sunos4*)
15688  version_type=sunos
15689  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15690  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15691  shlibpath_var=LD_LIBRARY_PATH
15692  shlibpath_overrides_runpath=yes
15693  if test "$with_gnu_ld" = yes; then
15694    need_lib_prefix=no
15695  fi
15696  need_version=yes
15697  ;;
15698
15699sysv4 | sysv4.3*)
15700  version_type=linux
15701  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15702  soname_spec='${libname}${release}${shared_ext}$major'
15703  shlibpath_var=LD_LIBRARY_PATH
15704  case $host_vendor in
15705    sni)
15706      shlibpath_overrides_runpath=no
15707      need_lib_prefix=no
15708      runpath_var=LD_RUN_PATH
15709      ;;
15710    siemens)
15711      need_lib_prefix=no
15712      ;;
15713    motorola)
15714      need_lib_prefix=no
15715      need_version=no
15716      shlibpath_overrides_runpath=no
15717      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15718      ;;
15719  esac
15720  ;;
15721
15722sysv4*MP*)
15723  if test -d /usr/nec ;then
15724    version_type=linux
15725    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15726    soname_spec='$libname${shared_ext}.$major'
15727    shlibpath_var=LD_LIBRARY_PATH
15728  fi
15729  ;;
15730
15731sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15732  version_type=freebsd-elf
15733  need_lib_prefix=no
15734  need_version=no
15735  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15736  soname_spec='${libname}${release}${shared_ext}$major'
15737  shlibpath_var=LD_LIBRARY_PATH
15738  shlibpath_overrides_runpath=yes
15739  hardcode_into_libs=yes
15740  if test "$with_gnu_ld" = yes; then
15741    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15742  else
15743    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15744    case $host_os in
15745      sco3.2v5*)
15746        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15747	;;
15748    esac
15749  fi
15750  sys_lib_dlsearch_path_spec='/usr/lib'
15751  ;;
15752
15753tpf*)
15754  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15755  version_type=linux
15756  need_lib_prefix=no
15757  need_version=no
15758  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15759  shlibpath_var=LD_LIBRARY_PATH
15760  shlibpath_overrides_runpath=no
15761  hardcode_into_libs=yes
15762  ;;
15763
15764uts4*)
15765  version_type=linux
15766  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15767  soname_spec='${libname}${release}${shared_ext}$major'
15768  shlibpath_var=LD_LIBRARY_PATH
15769  ;;
15770
15771*)
15772  dynamic_linker=no
15773  ;;
15774esac
15775{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15776$as_echo "$dynamic_linker" >&6; }
15777test "$dynamic_linker" = no && can_build_shared=no
15778
15779variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15780if test "$GCC" = yes; then
15781  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15782fi
15783
15784if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15785  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15786fi
15787if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15788  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15789fi
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826    { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15827$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15828hardcode_action_CXX=
15829if test -n "$hardcode_libdir_flag_spec_CXX" ||
15830   test -n "$runpath_var_CXX" ||
15831   test "X$hardcode_automatic_CXX" = "Xyes" ; then
15832
15833  # We can hardcode non-existent directories.
15834  if test "$hardcode_direct_CXX" != no &&
15835     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15836     # have to relink, otherwise we might link with an installed library
15837     # when we should be linking with a yet-to-be-installed one
15838     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15839     test "$hardcode_minus_L_CXX" != no; then
15840    # Linking always hardcodes the temporary library directory.
15841    hardcode_action_CXX=relink
15842  else
15843    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15844    hardcode_action_CXX=immediate
15845  fi
15846else
15847  # We cannot hardcode anything, or else we can only hardcode existing
15848  # directories.
15849  hardcode_action_CXX=unsupported
15850fi
15851{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15852$as_echo "$hardcode_action_CXX" >&6; }
15853
15854if test "$hardcode_action_CXX" = relink ||
15855   test "$inherit_rpath_CXX" = yes; then
15856  # Fast installation is not supported
15857  enable_fast_install=no
15858elif test "$shlibpath_overrides_runpath" = yes ||
15859     test "$enable_shared" = no; then
15860  # Fast installation is not necessary
15861  enable_fast_install=needless
15862fi
15863
15864
15865
15866
15867
15868
15869
15870  fi # test -n "$compiler"
15871
15872  CC=$lt_save_CC
15873  LDCXX=$LD
15874  LD=$lt_save_LD
15875  GCC=$lt_save_GCC
15876  with_gnu_ld=$lt_save_with_gnu_ld
15877  lt_cv_path_LDCXX=$lt_cv_path_LD
15878  lt_cv_path_LD=$lt_save_path_LD
15879  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15880  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15881fi # test "$_lt_caught_CXX_error" != yes
15882
15883ac_ext=c
15884ac_cpp='$CPP $CPPFLAGS'
15885ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15886ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15887ac_compiler_gnu=$ac_cv_c_compiler_gnu
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901        ac_config_commands="$ac_config_commands libtool"
15902
15903
15904
15905
15906# Only expand once:
15907
15908
15909{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
15910$as_echo_n "checking whether ln -s works... " >&6; }
15911LN_S=$as_ln_s
15912if test "$LN_S" = "ln -s"; then
15913  { $as_echo "$as_me:$LINENO: result: yes" >&5
15914$as_echo "yes" >&6; }
15915else
15916  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
15917$as_echo "no, using $LN_S" >&6; }
15918fi
15919
15920
15921PCRE_MAJOR="8"
15922PCRE_MINOR="02"
15923PCRE_PRERELEASE=""
15924PCRE_DATE="2010-03-19"
15925
15926if test "$PCRE_MINOR" = "08" -o "$PCRE_MINOR" = "09"
15927then
15928  echo "***"
15929  echo "*** Minor version number $PCRE_MINOR must not be used. ***"
15930  echo "*** Use only 01 to 07 or 10 onwards, to avoid octal issues. ***"
15931  echo "***"
15932  exit 1
15933fi
15934
15935
15936
15937
15938
15939
15940# Set a more sensible default value for $(htmldir).
15941if test "x$htmldir" = 'x${docdir}'
15942then
15943  htmldir='${docdir}/html'
15944fi
15945
15946# Handle --disable-cpp. The substitution of enable_cpp is needed for use in
15947# pcre-config.
15948# Check whether --enable-cpp was given.
15949if test "${enable_cpp+set}" = set; then
15950  enableval=$enable_cpp;
15951else
15952  enable_cpp=yes
15953fi
15954
15955
15956
15957# Handle --enable-rebuild-chartables
15958# Check whether --enable-rebuild-chartables was given.
15959if test "${enable_rebuild_chartables+set}" = set; then
15960  enableval=$enable_rebuild_chartables;
15961else
15962  enable_rebuild_chartables=no
15963fi
15964
15965
15966# Handle --enable-utf8 (disabled by default)
15967# Check whether --enable-utf8 was given.
15968if test "${enable_utf8+set}" = set; then
15969  enableval=$enable_utf8;
15970else
15971  enable_utf8=unset
15972fi
15973
15974
15975# Handle --enable-unicode-properties
15976# Check whether --enable-unicode-properties was given.
15977if test "${enable_unicode_properties+set}" = set; then
15978  enableval=$enable_unicode_properties;
15979else
15980  enable_unicode_properties=no
15981fi
15982
15983
15984# Handle --enable-newline=NL
15985
15986# Separate newline options
15987ac_pcre_newline=lf
15988# Check whether --enable-newline-is-cr was given.
15989if test "${enable_newline_is_cr+set}" = set; then
15990  enableval=$enable_newline_is_cr; ac_pcre_newline=cr
15991fi
15992
15993# Check whether --enable-newline-is-lf was given.
15994if test "${enable_newline_is_lf+set}" = set; then
15995  enableval=$enable_newline_is_lf; ac_pcre_newline=lf
15996fi
15997
15998# Check whether --enable-newline-is-crlf was given.
15999if test "${enable_newline_is_crlf+set}" = set; then
16000  enableval=$enable_newline_is_crlf; ac_pcre_newline=crlf
16001fi
16002
16003# Check whether --enable-newline-is-anycrlf was given.
16004if test "${enable_newline_is_anycrlf+set}" = set; then
16005  enableval=$enable_newline_is_anycrlf; ac_pcre_newline=anycrlf
16006fi
16007
16008# Check whether --enable-newline-is-any was given.
16009if test "${enable_newline_is_any+set}" = set; then
16010  enableval=$enable_newline_is_any; ac_pcre_newline=any
16011fi
16012
16013enable_newline="$ac_pcre_newline"
16014
16015# Handle --enable-bsr-anycrlf
16016# Check whether --enable-bsr-anycrlf was given.
16017if test "${enable_bsr_anycrlf+set}" = set; then
16018  enableval=$enable_bsr_anycrlf;
16019else
16020  enable_bsr_anycrlf=no
16021fi
16022
16023
16024# Handle --enable-ebcdic
16025# Check whether --enable-ebcdic was given.
16026if test "${enable_ebcdic+set}" = set; then
16027  enableval=$enable_ebcdic;
16028else
16029  enable_ebcdic=no
16030fi
16031
16032
16033# Handle --disable-stack-for-recursion
16034# Check whether --enable-stack-for-recursion was given.
16035if test "${enable_stack_for_recursion+set}" = set; then
16036  enableval=$enable_stack_for_recursion;
16037else
16038  enable_stack_for_recursion=yes
16039fi
16040
16041
16042# Handle --enable-pcregrep-libz
16043# Check whether --enable-pcregrep-libz was given.
16044if test "${enable_pcregrep_libz+set}" = set; then
16045  enableval=$enable_pcregrep_libz;
16046else
16047  enable_pcregrep_libz=no
16048fi
16049
16050
16051# Handle --enable-pcregrep-libbz2
16052# Check whether --enable-pcregrep-libbz2 was given.
16053if test "${enable_pcregrep_libbz2+set}" = set; then
16054  enableval=$enable_pcregrep_libbz2;
16055else
16056  enable_pcregrep_libbz2=no
16057fi
16058
16059
16060# Handle --enable-pcretest-libreadline
16061# Check whether --enable-pcretest-libreadline was given.
16062if test "${enable_pcretest_libreadline+set}" = set; then
16063  enableval=$enable_pcretest_libreadline;
16064else
16065  enable_pcretest_libreadline=no
16066fi
16067
16068
16069# Handle --with-posix-malloc-threshold=NBYTES
16070
16071# Check whether --with-posix-malloc-threshold was given.
16072if test "${with_posix_malloc_threshold+set}" = set; then
16073  withval=$with_posix_malloc_threshold;
16074else
16075  with_posix_malloc_threshold=10
16076fi
16077
16078
16079# Handle --with-link-size=N
16080
16081# Check whether --with-link-size was given.
16082if test "${with_link_size+set}" = set; then
16083  withval=$with_link_size;
16084else
16085  with_link_size=2
16086fi
16087
16088
16089# Handle --with-match-limit=N
16090
16091# Check whether --with-match-limit was given.
16092if test "${with_match_limit+set}" = set; then
16093  withval=$with_match_limit;
16094else
16095  with_match_limit=10000000
16096fi
16097
16098
16099# Handle --with-match-limit_recursion=N
16100#
16101# Note: In config.h, the default is to define MATCH_LIMIT_RECURSION
16102# symbolically as MATCH_LIMIT, which in turn is defined to be some numeric
16103# value (e.g. 10000000). MATCH_LIMIT_RECURSION can otherwise be set to some
16104# different numeric value (or even the same numeric value as MATCH_LIMIT,
16105# though no longer defined in terms of the latter).
16106#
16107
16108# Check whether --with-match-limit-recursion was given.
16109if test "${with_match_limit_recursion+set}" = set; then
16110  withval=$with_match_limit_recursion;
16111else
16112  with_match_limit_recursion=MATCH_LIMIT
16113fi
16114
16115
16116# Make sure that if enable_unicode_properties was set, that UTF-8 support
16117# is enabled.
16118#
16119if test "x$enable_unicode_properties" = "xyes"
16120then
16121  if test "x$enable_utf8" = "xno"
16122  then
16123    { { $as_echo "$as_me:$LINENO: error: support for Unicode properties requires UTF-8 support" >&5
16124$as_echo "$as_me: error: support for Unicode properties requires UTF-8 support" >&2;}
16125   { (exit 1); exit 1; }; }
16126  fi
16127  enable_utf8=yes
16128fi
16129
16130if test "x$enable_utf8" = "xunset"
16131then
16132  enable_utf8=no
16133fi
16134
16135# Make sure that if enable_ebcdic is set, rebuild_chartables is also enabled.
16136# Also check that UTF-8 support is not requested, because PCRE cannot handle
16137# EBCDIC and UTF-8 in the same build. To do so it would need to use different
16138# character constants depending on the mode.
16139#
16140if test "x$enable_ebcdic" = "xyes"
16141then
16142  enable_rebuild_chartables=yes
16143  if test "x$enable_utf8" = "xyes"
16144  then
16145    { { $as_echo "$as_me:$LINENO: error: support for EBCDIC and UTF-8 cannot be enabled at the same time" >&5
16146$as_echo "$as_me: error: support for EBCDIC and UTF-8 cannot be enabled at the same time" >&2;}
16147   { (exit 1); exit 1; }; }
16148  fi
16149fi
16150
16151# Convert the newline identifier into the appropriate integer value.
16152case "$enable_newline" in
16153  lf)      ac_pcre_newline_value=10   ;;
16154  cr)      ac_pcre_newline_value=13   ;;
16155  crlf)    ac_pcre_newline_value=3338 ;;
16156  anycrlf) ac_pcre_newline_value=-2   ;;
16157  any)     ac_pcre_newline_value=-1   ;;
16158  *)
16159  { { $as_echo "$as_me:$LINENO: error: invalid argument \"$enable_newline\" to --enable-newline option" >&5
16160$as_echo "$as_me: error: invalid argument \"$enable_newline\" to --enable-newline option" >&2;}
16161   { (exit 1); exit 1; }; }
16162  ;;
16163esac
16164
16165# Check argument to --with-link-size
16166case "$with_link_size" in
16167  2|3|4) ;;
16168  *)
16169  { { $as_echo "$as_me:$LINENO: error: invalid argument \"$with_link_size\" to --with-link-size option" >&5
16170$as_echo "$as_me: error: invalid argument \"$with_link_size\" to --with-link-size option" >&2;}
16171   { (exit 1); exit 1; }; }
16172  ;;
16173esac
16174
16175
16176
16177
16178# Checks for header files.
16179{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
16180$as_echo_n "checking for ANSI C header files... " >&6; }
16181if test "${ac_cv_header_stdc+set}" = set; then
16182  $as_echo_n "(cached) " >&6
16183else
16184  cat >conftest.$ac_ext <<_ACEOF
16185/* confdefs.h.  */
16186_ACEOF
16187cat confdefs.h >>conftest.$ac_ext
16188cat >>conftest.$ac_ext <<_ACEOF
16189/* end confdefs.h.  */
16190#include <stdlib.h>
16191#include <stdarg.h>
16192#include <string.h>
16193#include <float.h>
16194
16195int
16196main ()
16197{
16198
16199  ;
16200  return 0;
16201}
16202_ACEOF
16203rm -f conftest.$ac_objext
16204if { (ac_try="$ac_compile"
16205case "(($ac_try" in
16206  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16207  *) ac_try_echo=$ac_try;;
16208esac
16209eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16210$as_echo "$ac_try_echo") >&5
16211  (eval "$ac_compile") 2>conftest.er1
16212  ac_status=$?
16213  grep -v '^ *+' conftest.er1 >conftest.err
16214  rm -f conftest.er1
16215  cat conftest.err >&5
16216  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16217  (exit $ac_status); } && {
16218	 test -z "$ac_c_werror_flag" ||
16219	 test ! -s conftest.err
16220       } && test -s conftest.$ac_objext; then
16221  ac_cv_header_stdc=yes
16222else
16223  $as_echo "$as_me: failed program was:" >&5
16224sed 's/^/| /' conftest.$ac_ext >&5
16225
16226	ac_cv_header_stdc=no
16227fi
16228
16229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16230
16231if test $ac_cv_header_stdc = yes; then
16232  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16233  cat >conftest.$ac_ext <<_ACEOF
16234/* confdefs.h.  */
16235_ACEOF
16236cat confdefs.h >>conftest.$ac_ext
16237cat >>conftest.$ac_ext <<_ACEOF
16238/* end confdefs.h.  */
16239#include <string.h>
16240
16241_ACEOF
16242if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16243  $EGREP "memchr" >/dev/null 2>&1; then
16244  :
16245else
16246  ac_cv_header_stdc=no
16247fi
16248rm -f conftest*
16249
16250fi
16251
16252if test $ac_cv_header_stdc = yes; then
16253  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16254  cat >conftest.$ac_ext <<_ACEOF
16255/* confdefs.h.  */
16256_ACEOF
16257cat confdefs.h >>conftest.$ac_ext
16258cat >>conftest.$ac_ext <<_ACEOF
16259/* end confdefs.h.  */
16260#include <stdlib.h>
16261
16262_ACEOF
16263if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16264  $EGREP "free" >/dev/null 2>&1; then
16265  :
16266else
16267  ac_cv_header_stdc=no
16268fi
16269rm -f conftest*
16270
16271fi
16272
16273if test $ac_cv_header_stdc = yes; then
16274  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16275  if test "$cross_compiling" = yes; then
16276  :
16277else
16278  cat >conftest.$ac_ext <<_ACEOF
16279/* confdefs.h.  */
16280_ACEOF
16281cat confdefs.h >>conftest.$ac_ext
16282cat >>conftest.$ac_ext <<_ACEOF
16283/* end confdefs.h.  */
16284#include <ctype.h>
16285#include <stdlib.h>
16286#if ((' ' & 0x0FF) == 0x020)
16287# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16288# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16289#else
16290# define ISLOWER(c) \
16291		   (('a' <= (c) && (c) <= 'i') \
16292		     || ('j' <= (c) && (c) <= 'r') \
16293		     || ('s' <= (c) && (c) <= 'z'))
16294# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16295#endif
16296
16297#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16298int
16299main ()
16300{
16301  int i;
16302  for (i = 0; i < 256; i++)
16303    if (XOR (islower (i), ISLOWER (i))
16304	|| toupper (i) != TOUPPER (i))
16305      return 2;
16306  return 0;
16307}
16308_ACEOF
16309rm -f conftest$ac_exeext
16310if { (ac_try="$ac_link"
16311case "(($ac_try" in
16312  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16313  *) ac_try_echo=$ac_try;;
16314esac
16315eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16316$as_echo "$ac_try_echo") >&5
16317  (eval "$ac_link") 2>&5
16318  ac_status=$?
16319  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16320  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16321  { (case "(($ac_try" in
16322  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16323  *) ac_try_echo=$ac_try;;
16324esac
16325eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16326$as_echo "$ac_try_echo") >&5
16327  (eval "$ac_try") 2>&5
16328  ac_status=$?
16329  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16330  (exit $ac_status); }; }; then
16331  :
16332else
16333  $as_echo "$as_me: program exited with status $ac_status" >&5
16334$as_echo "$as_me: failed program was:" >&5
16335sed 's/^/| /' conftest.$ac_ext >&5
16336
16337( exit $ac_status )
16338ac_cv_header_stdc=no
16339fi
16340rm -rf conftest.dSYM
16341rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16342fi
16343
16344
16345fi
16346fi
16347{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
16348$as_echo "$ac_cv_header_stdc" >&6; }
16349if test $ac_cv_header_stdc = yes; then
16350
16351cat >>confdefs.h <<\_ACEOF
16352#define STDC_HEADERS 1
16353_ACEOF
16354
16355fi
16356
16357
16358
16359
16360
16361
16362for ac_header in limits.h sys/types.h sys/stat.h dirent.h windows.h
16363do
16364as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16365if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16366  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16367$as_echo_n "checking for $ac_header... " >&6; }
16368if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16369  $as_echo_n "(cached) " >&6
16370fi
16371ac_res=`eval 'as_val=${'$as_ac_Header'}
16372		 $as_echo "$as_val"'`
16373	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16374$as_echo "$ac_res" >&6; }
16375else
16376  # Is the header compilable?
16377{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16378$as_echo_n "checking $ac_header usability... " >&6; }
16379cat >conftest.$ac_ext <<_ACEOF
16380/* confdefs.h.  */
16381_ACEOF
16382cat confdefs.h >>conftest.$ac_ext
16383cat >>conftest.$ac_ext <<_ACEOF
16384/* end confdefs.h.  */
16385$ac_includes_default
16386#include <$ac_header>
16387_ACEOF
16388rm -f conftest.$ac_objext
16389if { (ac_try="$ac_compile"
16390case "(($ac_try" in
16391  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16392  *) ac_try_echo=$ac_try;;
16393esac
16394eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16395$as_echo "$ac_try_echo") >&5
16396  (eval "$ac_compile") 2>conftest.er1
16397  ac_status=$?
16398  grep -v '^ *+' conftest.er1 >conftest.err
16399  rm -f conftest.er1
16400  cat conftest.err >&5
16401  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16402  (exit $ac_status); } && {
16403	 test -z "$ac_c_werror_flag" ||
16404	 test ! -s conftest.err
16405       } && test -s conftest.$ac_objext; then
16406  ac_header_compiler=yes
16407else
16408  $as_echo "$as_me: failed program was:" >&5
16409sed 's/^/| /' conftest.$ac_ext >&5
16410
16411	ac_header_compiler=no
16412fi
16413
16414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16415{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16416$as_echo "$ac_header_compiler" >&6; }
16417
16418# Is the header present?
16419{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16420$as_echo_n "checking $ac_header presence... " >&6; }
16421cat >conftest.$ac_ext <<_ACEOF
16422/* confdefs.h.  */
16423_ACEOF
16424cat confdefs.h >>conftest.$ac_ext
16425cat >>conftest.$ac_ext <<_ACEOF
16426/* end confdefs.h.  */
16427#include <$ac_header>
16428_ACEOF
16429if { (ac_try="$ac_cpp conftest.$ac_ext"
16430case "(($ac_try" in
16431  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16432  *) ac_try_echo=$ac_try;;
16433esac
16434eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16435$as_echo "$ac_try_echo") >&5
16436  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16437  ac_status=$?
16438  grep -v '^ *+' conftest.er1 >conftest.err
16439  rm -f conftest.er1
16440  cat conftest.err >&5
16441  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16442  (exit $ac_status); } >/dev/null && {
16443	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16444	 test ! -s conftest.err
16445       }; then
16446  ac_header_preproc=yes
16447else
16448  $as_echo "$as_me: failed program was:" >&5
16449sed 's/^/| /' conftest.$ac_ext >&5
16450
16451  ac_header_preproc=no
16452fi
16453
16454rm -f conftest.err conftest.$ac_ext
16455{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16456$as_echo "$ac_header_preproc" >&6; }
16457
16458# So?  What about this header?
16459case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16460  yes:no: )
16461    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16462$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16463    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16464$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16465    ac_header_preproc=yes
16466    ;;
16467  no:yes:* )
16468    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16469$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16470    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16471$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16472    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16473$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16474    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16475$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16476    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16477$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16478    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16479$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16480
16481    ;;
16482esac
16483{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16484$as_echo_n "checking for $ac_header... " >&6; }
16485if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16486  $as_echo_n "(cached) " >&6
16487else
16488  eval "$as_ac_Header=\$ac_header_preproc"
16489fi
16490ac_res=`eval 'as_val=${'$as_ac_Header'}
16491		 $as_echo "$as_val"'`
16492	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16493$as_echo "$ac_res" >&6; }
16494
16495fi
16496as_val=`eval 'as_val=${'$as_ac_Header'}
16497		 $as_echo "$as_val"'`
16498   if test "x$as_val" = x""yes; then
16499  cat >>confdefs.h <<_ACEOF
16500#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16501_ACEOF
16502
16503fi
16504
16505done
16506
16507
16508# The files below are C++ header files.
16509pcre_have_type_traits="0"
16510pcre_have_bits_type_traits="0"
16511if test "x$enable_cpp" = "xyes" -a -n "$CXX"
16512then
16513ac_ext=cpp
16514ac_cpp='$CXXCPP $CPPFLAGS'
16515ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16516ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16517ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16518
16519
16520# Older versions of pcre defined pcrecpp::no_arg, but in new versions
16521# it's called pcrecpp::RE::no_arg.  For backwards ABI compatibility,
16522# we want to make one an alias for the other.  Different systems do
16523# this in different ways.  Some systems, for instance, can do it via
16524# a linker flag: -alias (for os x 10.5) or -i (for os x <=10.4).
16525OLD_LDFLAGS="$LDFLAGS"
16526for flag in "-alias,__ZN7pcrecpp2RE6no_argE,__ZN7pcrecpp6no_argE" \
16527            "-i__ZN7pcrecpp6no_argE:__ZN7pcrecpp2RE6no_argE"; do
16528  { $as_echo "$as_me:$LINENO: checking for alias support in the linker" >&5
16529$as_echo_n "checking for alias support in the linker... " >&6; }
16530  LDFLAGS="$OLD_LDFLAGS -Wl,$flag"
16531  # We try to run the linker with this new ld flag.  If the link fails,
16532  # we give up and remove the new flag from LDFLAGS.
16533  cat >conftest.$ac_ext <<_ACEOF
16534/* confdefs.h.  */
16535_ACEOF
16536cat confdefs.h >>conftest.$ac_ext
16537cat >>conftest.$ac_ext <<_ACEOF
16538/* end confdefs.h.  */
16539namespace pcrecpp {
16540                                    class RE { static int no_arg; };
16541                                    int RE::no_arg;
16542                                  }
16543int
16544main ()
16545{
16546
16547  ;
16548  return 0;
16549}
16550_ACEOF
16551rm -f conftest.$ac_objext conftest$ac_exeext
16552if { (ac_try="$ac_link"
16553case "(($ac_try" in
16554  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16555  *) ac_try_echo=$ac_try;;
16556esac
16557eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16558$as_echo "$ac_try_echo") >&5
16559  (eval "$ac_link") 2>conftest.er1
16560  ac_status=$?
16561  grep -v '^ *+' conftest.er1 >conftest.err
16562  rm -f conftest.er1
16563  cat conftest.err >&5
16564  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565  (exit $ac_status); } && {
16566	 test -z "$ac_cxx_werror_flag" ||
16567	 test ! -s conftest.err
16568       } && test -s conftest$ac_exeext && {
16569	 test "$cross_compiling" = yes ||
16570	 $as_test_x conftest$ac_exeext
16571       }; then
16572  { $as_echo "$as_me:$LINENO: result: yes" >&5
16573$as_echo "yes" >&6; };
16574                  EXTRA_LIBPCRECPP_LDFLAGS="$EXTRA_LIBPCRECPP_LDFLAGS -Wl,$flag";
16575                  break;
16576else
16577  $as_echo "$as_me: failed program was:" >&5
16578sed 's/^/| /' conftest.$ac_ext >&5
16579
16580	{ $as_echo "$as_me:$LINENO: result: no" >&5
16581$as_echo "no" >&6; }
16582fi
16583
16584rm -rf conftest.dSYM
16585rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16586      conftest$ac_exeext conftest.$ac_ext
16587done
16588LDFLAGS="$OLD_LDFLAGS"
16589
16590# We could be more clever here, given we're doing AC_SUBST with this
16591# (eg set a var to be the name of the include file we want). But we're not
16592# so it's easy to change back to 'regular' autoconf vars if we needed to.
16593
16594
16595for ac_header in string
16596do
16597as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16598if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16599  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16600$as_echo_n "checking for $ac_header... " >&6; }
16601if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16602  $as_echo_n "(cached) " >&6
16603fi
16604ac_res=`eval 'as_val=${'$as_ac_Header'}
16605		 $as_echo "$as_val"'`
16606	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16607$as_echo "$ac_res" >&6; }
16608else
16609  # Is the header compilable?
16610{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16611$as_echo_n "checking $ac_header usability... " >&6; }
16612cat >conftest.$ac_ext <<_ACEOF
16613/* confdefs.h.  */
16614_ACEOF
16615cat confdefs.h >>conftest.$ac_ext
16616cat >>conftest.$ac_ext <<_ACEOF
16617/* end confdefs.h.  */
16618$ac_includes_default
16619#include <$ac_header>
16620_ACEOF
16621rm -f conftest.$ac_objext
16622if { (ac_try="$ac_compile"
16623case "(($ac_try" in
16624  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16625  *) ac_try_echo=$ac_try;;
16626esac
16627eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16628$as_echo "$ac_try_echo") >&5
16629  (eval "$ac_compile") 2>conftest.er1
16630  ac_status=$?
16631  grep -v '^ *+' conftest.er1 >conftest.err
16632  rm -f conftest.er1
16633  cat conftest.err >&5
16634  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16635  (exit $ac_status); } && {
16636	 test -z "$ac_cxx_werror_flag" ||
16637	 test ! -s conftest.err
16638       } && test -s conftest.$ac_objext; then
16639  ac_header_compiler=yes
16640else
16641  $as_echo "$as_me: failed program was:" >&5
16642sed 's/^/| /' conftest.$ac_ext >&5
16643
16644	ac_header_compiler=no
16645fi
16646
16647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16648{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16649$as_echo "$ac_header_compiler" >&6; }
16650
16651# Is the header present?
16652{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16653$as_echo_n "checking $ac_header presence... " >&6; }
16654cat >conftest.$ac_ext <<_ACEOF
16655/* confdefs.h.  */
16656_ACEOF
16657cat confdefs.h >>conftest.$ac_ext
16658cat >>conftest.$ac_ext <<_ACEOF
16659/* end confdefs.h.  */
16660#include <$ac_header>
16661_ACEOF
16662if { (ac_try="$ac_cpp conftest.$ac_ext"
16663case "(($ac_try" in
16664  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16665  *) ac_try_echo=$ac_try;;
16666esac
16667eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16668$as_echo "$ac_try_echo") >&5
16669  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16670  ac_status=$?
16671  grep -v '^ *+' conftest.er1 >conftest.err
16672  rm -f conftest.er1
16673  cat conftest.err >&5
16674  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675  (exit $ac_status); } >/dev/null && {
16676	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
16677	 test ! -s conftest.err
16678       }; then
16679  ac_header_preproc=yes
16680else
16681  $as_echo "$as_me: failed program was:" >&5
16682sed 's/^/| /' conftest.$ac_ext >&5
16683
16684  ac_header_preproc=no
16685fi
16686
16687rm -f conftest.err conftest.$ac_ext
16688{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16689$as_echo "$ac_header_preproc" >&6; }
16690
16691# So?  What about this header?
16692case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
16693  yes:no: )
16694    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16695$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16696    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16697$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16698    ac_header_preproc=yes
16699    ;;
16700  no:yes:* )
16701    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16702$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16703    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16704$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16705    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16706$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16707    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16708$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16709    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16710$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16711    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16712$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16713
16714    ;;
16715esac
16716{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16717$as_echo_n "checking for $ac_header... " >&6; }
16718if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16719  $as_echo_n "(cached) " >&6
16720else
16721  eval "$as_ac_Header=\$ac_header_preproc"
16722fi
16723ac_res=`eval 'as_val=${'$as_ac_Header'}
16724		 $as_echo "$as_val"'`
16725	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16726$as_echo "$ac_res" >&6; }
16727
16728fi
16729as_val=`eval 'as_val=${'$as_ac_Header'}
16730		 $as_echo "$as_val"'`
16731   if test "x$as_val" = x""yes; then
16732  cat >>confdefs.h <<_ACEOF
16733#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16734_ACEOF
16735 pcre_have_cpp_headers="1"
16736else
16737  pcre_have_cpp_headers="0"
16738fi
16739
16740done
16741
16742
16743for ac_header in bits/type_traits.h
16744do
16745as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16746if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16747  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16748$as_echo_n "checking for $ac_header... " >&6; }
16749if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16750  $as_echo_n "(cached) " >&6
16751fi
16752ac_res=`eval 'as_val=${'$as_ac_Header'}
16753		 $as_echo "$as_val"'`
16754	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16755$as_echo "$ac_res" >&6; }
16756else
16757  # Is the header compilable?
16758{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16759$as_echo_n "checking $ac_header usability... " >&6; }
16760cat >conftest.$ac_ext <<_ACEOF
16761/* confdefs.h.  */
16762_ACEOF
16763cat confdefs.h >>conftest.$ac_ext
16764cat >>conftest.$ac_ext <<_ACEOF
16765/* end confdefs.h.  */
16766$ac_includes_default
16767#include <$ac_header>
16768_ACEOF
16769rm -f conftest.$ac_objext
16770if { (ac_try="$ac_compile"
16771case "(($ac_try" in
16772  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16773  *) ac_try_echo=$ac_try;;
16774esac
16775eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16776$as_echo "$ac_try_echo") >&5
16777  (eval "$ac_compile") 2>conftest.er1
16778  ac_status=$?
16779  grep -v '^ *+' conftest.er1 >conftest.err
16780  rm -f conftest.er1
16781  cat conftest.err >&5
16782  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16783  (exit $ac_status); } && {
16784	 test -z "$ac_cxx_werror_flag" ||
16785	 test ! -s conftest.err
16786       } && test -s conftest.$ac_objext; then
16787  ac_header_compiler=yes
16788else
16789  $as_echo "$as_me: failed program was:" >&5
16790sed 's/^/| /' conftest.$ac_ext >&5
16791
16792	ac_header_compiler=no
16793fi
16794
16795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16796{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16797$as_echo "$ac_header_compiler" >&6; }
16798
16799# Is the header present?
16800{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16801$as_echo_n "checking $ac_header presence... " >&6; }
16802cat >conftest.$ac_ext <<_ACEOF
16803/* confdefs.h.  */
16804_ACEOF
16805cat confdefs.h >>conftest.$ac_ext
16806cat >>conftest.$ac_ext <<_ACEOF
16807/* end confdefs.h.  */
16808#include <$ac_header>
16809_ACEOF
16810if { (ac_try="$ac_cpp conftest.$ac_ext"
16811case "(($ac_try" in
16812  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16813  *) ac_try_echo=$ac_try;;
16814esac
16815eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16816$as_echo "$ac_try_echo") >&5
16817  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16818  ac_status=$?
16819  grep -v '^ *+' conftest.er1 >conftest.err
16820  rm -f conftest.er1
16821  cat conftest.err >&5
16822  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823  (exit $ac_status); } >/dev/null && {
16824	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
16825	 test ! -s conftest.err
16826       }; then
16827  ac_header_preproc=yes
16828else
16829  $as_echo "$as_me: failed program was:" >&5
16830sed 's/^/| /' conftest.$ac_ext >&5
16831
16832  ac_header_preproc=no
16833fi
16834
16835rm -f conftest.err conftest.$ac_ext
16836{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16837$as_echo "$ac_header_preproc" >&6; }
16838
16839# So?  What about this header?
16840case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
16841  yes:no: )
16842    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16843$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16844    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16845$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16846    ac_header_preproc=yes
16847    ;;
16848  no:yes:* )
16849    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16850$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16851    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16852$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16853    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16854$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16855    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16856$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16857    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16858$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16859    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16860$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16861
16862    ;;
16863esac
16864{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16865$as_echo_n "checking for $ac_header... " >&6; }
16866if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16867  $as_echo_n "(cached) " >&6
16868else
16869  eval "$as_ac_Header=\$ac_header_preproc"
16870fi
16871ac_res=`eval 'as_val=${'$as_ac_Header'}
16872		 $as_echo "$as_val"'`
16873	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16874$as_echo "$ac_res" >&6; }
16875
16876fi
16877as_val=`eval 'as_val=${'$as_ac_Header'}
16878		 $as_echo "$as_val"'`
16879   if test "x$as_val" = x""yes; then
16880  cat >>confdefs.h <<_ACEOF
16881#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16882_ACEOF
16883 pcre_have_bits_type_traits="1"
16884else
16885  pcre_have_bits_type_traits="0"
16886fi
16887
16888done
16889
16890
16891for ac_header in type_traits.h
16892do
16893as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16894if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16895  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16896$as_echo_n "checking for $ac_header... " >&6; }
16897if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16898  $as_echo_n "(cached) " >&6
16899fi
16900ac_res=`eval 'as_val=${'$as_ac_Header'}
16901		 $as_echo "$as_val"'`
16902	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16903$as_echo "$ac_res" >&6; }
16904else
16905  # Is the header compilable?
16906{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16907$as_echo_n "checking $ac_header usability... " >&6; }
16908cat >conftest.$ac_ext <<_ACEOF
16909/* confdefs.h.  */
16910_ACEOF
16911cat confdefs.h >>conftest.$ac_ext
16912cat >>conftest.$ac_ext <<_ACEOF
16913/* end confdefs.h.  */
16914$ac_includes_default
16915#include <$ac_header>
16916_ACEOF
16917rm -f conftest.$ac_objext
16918if { (ac_try="$ac_compile"
16919case "(($ac_try" in
16920  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16921  *) ac_try_echo=$ac_try;;
16922esac
16923eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16924$as_echo "$ac_try_echo") >&5
16925  (eval "$ac_compile") 2>conftest.er1
16926  ac_status=$?
16927  grep -v '^ *+' conftest.er1 >conftest.err
16928  rm -f conftest.er1
16929  cat conftest.err >&5
16930  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16931  (exit $ac_status); } && {
16932	 test -z "$ac_cxx_werror_flag" ||
16933	 test ! -s conftest.err
16934       } && test -s conftest.$ac_objext; then
16935  ac_header_compiler=yes
16936else
16937  $as_echo "$as_me: failed program was:" >&5
16938sed 's/^/| /' conftest.$ac_ext >&5
16939
16940	ac_header_compiler=no
16941fi
16942
16943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16944{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16945$as_echo "$ac_header_compiler" >&6; }
16946
16947# Is the header present?
16948{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16949$as_echo_n "checking $ac_header presence... " >&6; }
16950cat >conftest.$ac_ext <<_ACEOF
16951/* confdefs.h.  */
16952_ACEOF
16953cat confdefs.h >>conftest.$ac_ext
16954cat >>conftest.$ac_ext <<_ACEOF
16955/* end confdefs.h.  */
16956#include <$ac_header>
16957_ACEOF
16958if { (ac_try="$ac_cpp conftest.$ac_ext"
16959case "(($ac_try" in
16960  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16961  *) ac_try_echo=$ac_try;;
16962esac
16963eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16964$as_echo "$ac_try_echo") >&5
16965  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16966  ac_status=$?
16967  grep -v '^ *+' conftest.er1 >conftest.err
16968  rm -f conftest.er1
16969  cat conftest.err >&5
16970  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16971  (exit $ac_status); } >/dev/null && {
16972	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
16973	 test ! -s conftest.err
16974       }; then
16975  ac_header_preproc=yes
16976else
16977  $as_echo "$as_me: failed program was:" >&5
16978sed 's/^/| /' conftest.$ac_ext >&5
16979
16980  ac_header_preproc=no
16981fi
16982
16983rm -f conftest.err conftest.$ac_ext
16984{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16985$as_echo "$ac_header_preproc" >&6; }
16986
16987# So?  What about this header?
16988case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
16989  yes:no: )
16990    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16991$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16992    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16993$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16994    ac_header_preproc=yes
16995    ;;
16996  no:yes:* )
16997    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16998$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16999    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17000$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17001    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17002$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17003    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17004$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17005    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17006$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17007    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17008$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17009
17010    ;;
17011esac
17012{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17013$as_echo_n "checking for $ac_header... " >&6; }
17014if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17015  $as_echo_n "(cached) " >&6
17016else
17017  eval "$as_ac_Header=\$ac_header_preproc"
17018fi
17019ac_res=`eval 'as_val=${'$as_ac_Header'}
17020		 $as_echo "$as_val"'`
17021	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17022$as_echo "$ac_res" >&6; }
17023
17024fi
17025as_val=`eval 'as_val=${'$as_ac_Header'}
17026		 $as_echo "$as_val"'`
17027   if test "x$as_val" = x""yes; then
17028  cat >>confdefs.h <<_ACEOF
17029#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17030_ACEOF
17031 pcre_have_type_traits="1"
17032else
17033  pcre_have_type_traits="0"
17034fi
17035
17036done
17037
17038
17039# (This isn't c++-specific, but is only used in pcrecpp.cc, so try this
17040# in a c++ context.  This matters becuase strtoimax is C99 and may not
17041# be supported by the C++ compiler.)
17042# Figure out how to create a longlong from a string: strtoll and
17043# equiv.  It's not enough to call AC_CHECK_FUNCS: hpux has a
17044# strtoll, for instance, but it only takes 2 args instead of 3!
17045# We have to call AH_TEMPLATE since AC_DEFINE_UNQUOTED below is complex.
17046
17047
17048
17049
17050
17051
17052
17053
17054have_strto_fn=0
17055for fn in strtoq strtoll _strtoi64 strtoimax; do
17056  { $as_echo "$as_me:$LINENO: checking for $fn" >&5
17057$as_echo_n "checking for $fn... " >&6; }
17058  if test "$fn" = strtoimax; then
17059    include=stdint.h
17060  else
17061    include=stdlib.h
17062  fi
17063  cat >conftest.$ac_ext <<_ACEOF
17064/* confdefs.h.  */
17065_ACEOF
17066cat confdefs.h >>conftest.$ac_ext
17067cat >>conftest.$ac_ext <<_ACEOF
17068/* end confdefs.h.  */
17069#include <$include>
17070int
17071main ()
17072{
17073char* e; return $fn("100", &e, 10)
17074  ;
17075  return 0;
17076}
17077_ACEOF
17078rm -f conftest.$ac_objext
17079if { (ac_try="$ac_compile"
17080case "(($ac_try" in
17081  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17082  *) ac_try_echo=$ac_try;;
17083esac
17084eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17085$as_echo "$ac_try_echo") >&5
17086  (eval "$ac_compile") 2>conftest.er1
17087  ac_status=$?
17088  grep -v '^ *+' conftest.er1 >conftest.err
17089  rm -f conftest.er1
17090  cat conftest.err >&5
17091  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17092  (exit $ac_status); } && {
17093	 test -z "$ac_cxx_werror_flag" ||
17094	 test ! -s conftest.err
17095       } && test -s conftest.$ac_objext; then
17096  { $as_echo "$as_me:$LINENO: result: yes" >&5
17097$as_echo "yes" >&6; }
17098
17099cat >>confdefs.h <<_ACEOF
17100#define HAVE_`echo $fn | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` 1
17101_ACEOF
17102
17103                     have_strto_fn=1
17104                     break
17105else
17106  $as_echo "$as_me: failed program was:" >&5
17107sed 's/^/| /' conftest.$ac_ext >&5
17108
17109	{ $as_echo "$as_me:$LINENO: result: no" >&5
17110$as_echo "no" >&6; }
17111fi
17112
17113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17114done
17115
17116if test "$have_strto_fn" = 1; then
17117  { $as_echo "$as_me:$LINENO: checking for long long" >&5
17118$as_echo_n "checking for long long... " >&6; }
17119if test "${ac_cv_type_long_long+set}" = set; then
17120  $as_echo_n "(cached) " >&6
17121else
17122  ac_cv_type_long_long=no
17123cat >conftest.$ac_ext <<_ACEOF
17124/* confdefs.h.  */
17125_ACEOF
17126cat confdefs.h >>conftest.$ac_ext
17127cat >>conftest.$ac_ext <<_ACEOF
17128/* end confdefs.h.  */
17129$ac_includes_default
17130int
17131main ()
17132{
17133if (sizeof (long long))
17134       return 0;
17135  ;
17136  return 0;
17137}
17138_ACEOF
17139rm -f conftest.$ac_objext
17140if { (ac_try="$ac_compile"
17141case "(($ac_try" in
17142  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17143  *) ac_try_echo=$ac_try;;
17144esac
17145eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17146$as_echo "$ac_try_echo") >&5
17147  (eval "$ac_compile") 2>conftest.er1
17148  ac_status=$?
17149  grep -v '^ *+' conftest.er1 >conftest.err
17150  rm -f conftest.er1
17151  cat conftest.err >&5
17152  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17153  (exit $ac_status); } && {
17154	 test -z "$ac_cxx_werror_flag" ||
17155	 test ! -s conftest.err
17156       } && test -s conftest.$ac_objext; then
17157  cat >conftest.$ac_ext <<_ACEOF
17158/* confdefs.h.  */
17159_ACEOF
17160cat confdefs.h >>conftest.$ac_ext
17161cat >>conftest.$ac_ext <<_ACEOF
17162/* end confdefs.h.  */
17163$ac_includes_default
17164int
17165main ()
17166{
17167if (sizeof ((long long)))
17168	  return 0;
17169  ;
17170  return 0;
17171}
17172_ACEOF
17173rm -f conftest.$ac_objext
17174if { (ac_try="$ac_compile"
17175case "(($ac_try" in
17176  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17177  *) ac_try_echo=$ac_try;;
17178esac
17179eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17180$as_echo "$ac_try_echo") >&5
17181  (eval "$ac_compile") 2>conftest.er1
17182  ac_status=$?
17183  grep -v '^ *+' conftest.er1 >conftest.err
17184  rm -f conftest.er1
17185  cat conftest.err >&5
17186  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17187  (exit $ac_status); } && {
17188	 test -z "$ac_cxx_werror_flag" ||
17189	 test ! -s conftest.err
17190       } && test -s conftest.$ac_objext; then
17191  :
17192else
17193  $as_echo "$as_me: failed program was:" >&5
17194sed 's/^/| /' conftest.$ac_ext >&5
17195
17196	ac_cv_type_long_long=yes
17197fi
17198
17199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17200else
17201  $as_echo "$as_me: failed program was:" >&5
17202sed 's/^/| /' conftest.$ac_ext >&5
17203
17204
17205fi
17206
17207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17208fi
17209{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17210$as_echo "$ac_cv_type_long_long" >&6; }
17211if test "x$ac_cv_type_long_long" = x""yes; then
17212
17213cat >>confdefs.h <<_ACEOF
17214#define HAVE_LONG_LONG 1
17215_ACEOF
17216
17217pcre_have_long_long="1"
17218else
17219  pcre_have_long_long="0"
17220fi
17221
17222  { $as_echo "$as_me:$LINENO: checking for unsigned long long" >&5
17223$as_echo_n "checking for unsigned long long... " >&6; }
17224if test "${ac_cv_type_unsigned_long_long+set}" = set; then
17225  $as_echo_n "(cached) " >&6
17226else
17227  ac_cv_type_unsigned_long_long=no
17228cat >conftest.$ac_ext <<_ACEOF
17229/* confdefs.h.  */
17230_ACEOF
17231cat confdefs.h >>conftest.$ac_ext
17232cat >>conftest.$ac_ext <<_ACEOF
17233/* end confdefs.h.  */
17234$ac_includes_default
17235int
17236main ()
17237{
17238if (sizeof (unsigned long long))
17239       return 0;
17240  ;
17241  return 0;
17242}
17243_ACEOF
17244rm -f conftest.$ac_objext
17245if { (ac_try="$ac_compile"
17246case "(($ac_try" in
17247  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17248  *) ac_try_echo=$ac_try;;
17249esac
17250eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17251$as_echo "$ac_try_echo") >&5
17252  (eval "$ac_compile") 2>conftest.er1
17253  ac_status=$?
17254  grep -v '^ *+' conftest.er1 >conftest.err
17255  rm -f conftest.er1
17256  cat conftest.err >&5
17257  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17258  (exit $ac_status); } && {
17259	 test -z "$ac_cxx_werror_flag" ||
17260	 test ! -s conftest.err
17261       } && test -s conftest.$ac_objext; then
17262  cat >conftest.$ac_ext <<_ACEOF
17263/* confdefs.h.  */
17264_ACEOF
17265cat confdefs.h >>conftest.$ac_ext
17266cat >>conftest.$ac_ext <<_ACEOF
17267/* end confdefs.h.  */
17268$ac_includes_default
17269int
17270main ()
17271{
17272if (sizeof ((unsigned long long)))
17273	  return 0;
17274  ;
17275  return 0;
17276}
17277_ACEOF
17278rm -f conftest.$ac_objext
17279if { (ac_try="$ac_compile"
17280case "(($ac_try" in
17281  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17282  *) ac_try_echo=$ac_try;;
17283esac
17284eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17285$as_echo "$ac_try_echo") >&5
17286  (eval "$ac_compile") 2>conftest.er1
17287  ac_status=$?
17288  grep -v '^ *+' conftest.er1 >conftest.err
17289  rm -f conftest.er1
17290  cat conftest.err >&5
17291  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292  (exit $ac_status); } && {
17293	 test -z "$ac_cxx_werror_flag" ||
17294	 test ! -s conftest.err
17295       } && test -s conftest.$ac_objext; then
17296  :
17297else
17298  $as_echo "$as_me: failed program was:" >&5
17299sed 's/^/| /' conftest.$ac_ext >&5
17300
17301	ac_cv_type_unsigned_long_long=yes
17302fi
17303
17304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17305else
17306  $as_echo "$as_me: failed program was:" >&5
17307sed 's/^/| /' conftest.$ac_ext >&5
17308
17309
17310fi
17311
17312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17313fi
17314{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
17315$as_echo "$ac_cv_type_unsigned_long_long" >&6; }
17316if test "x$ac_cv_type_unsigned_long_long" = x""yes; then
17317
17318cat >>confdefs.h <<_ACEOF
17319#define HAVE_UNSIGNED_LONG_LONG 1
17320_ACEOF
17321
17322pcre_have_ulong_long="1"
17323else
17324  pcre_have_ulong_long="0"
17325fi
17326
17327else
17328  pcre_have_long_long="0"
17329  pcre_have_ulong_long="0"
17330fi
17331
17332
17333
17334ac_ext=c
17335ac_cpp='$CPP $CPPFLAGS'
17336ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17337ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17338ac_compiler_gnu=$ac_cv_c_compiler_gnu
17339
17340fi
17341# Using AC_SUBST eliminates the need to include config.h in a public .h file
17342
17343
17344
17345# Conditional compilation
17346 if test "x$enable_cpp" = "xyes"; then
17347  WITH_PCRE_CPP_TRUE=
17348  WITH_PCRE_CPP_FALSE='#'
17349else
17350  WITH_PCRE_CPP_TRUE='#'
17351  WITH_PCRE_CPP_FALSE=
17352fi
17353
17354 if test "x$enable_rebuild_chartables" = "xyes"; then
17355  WITH_REBUILD_CHARTABLES_TRUE=
17356  WITH_REBUILD_CHARTABLES_FALSE='#'
17357else
17358  WITH_REBUILD_CHARTABLES_TRUE='#'
17359  WITH_REBUILD_CHARTABLES_FALSE=
17360fi
17361
17362
17363# Checks for typedefs, structures, and compiler characteristics.
17364
17365{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17366$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17367if test "${ac_cv_c_const+set}" = set; then
17368  $as_echo_n "(cached) " >&6
17369else
17370  cat >conftest.$ac_ext <<_ACEOF
17371/* confdefs.h.  */
17372_ACEOF
17373cat confdefs.h >>conftest.$ac_ext
17374cat >>conftest.$ac_ext <<_ACEOF
17375/* end confdefs.h.  */
17376
17377int
17378main ()
17379{
17380/* FIXME: Include the comments suggested by Paul. */
17381#ifndef __cplusplus
17382  /* Ultrix mips cc rejects this.  */
17383  typedef int charset[2];
17384  const charset cs;
17385  /* SunOS 4.1.1 cc rejects this.  */
17386  char const *const *pcpcc;
17387  char **ppc;
17388  /* NEC SVR4.0.2 mips cc rejects this.  */
17389  struct point {int x, y;};
17390  static struct point const zero = {0,0};
17391  /* AIX XL C 1.02.0.0 rejects this.
17392     It does not let you subtract one const X* pointer from another in
17393     an arm of an if-expression whose if-part is not a constant
17394     expression */
17395  const char *g = "string";
17396  pcpcc = &g + (g ? g-g : 0);
17397  /* HPUX 7.0 cc rejects these. */
17398  ++pcpcc;
17399  ppc = (char**) pcpcc;
17400  pcpcc = (char const *const *) ppc;
17401  { /* SCO 3.2v4 cc rejects this.  */
17402    char *t;
17403    char const *s = 0 ? (char *) 0 : (char const *) 0;
17404
17405    *t++ = 0;
17406    if (s) return 0;
17407  }
17408  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
17409    int x[] = {25, 17};
17410    const int *foo = &x[0];
17411    ++foo;
17412  }
17413  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17414    typedef const int *iptr;
17415    iptr p = 0;
17416    ++p;
17417  }
17418  { /* AIX XL C 1.02.0.0 rejects this saying
17419       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17420    struct s { int j; const int *ap[3]; };
17421    struct s *b; b->j = 5;
17422  }
17423  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17424    const int foo = 10;
17425    if (!foo) return 0;
17426  }
17427  return !cs[0] && !zero.x;
17428#endif
17429
17430  ;
17431  return 0;
17432}
17433_ACEOF
17434rm -f conftest.$ac_objext
17435if { (ac_try="$ac_compile"
17436case "(($ac_try" in
17437  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17438  *) ac_try_echo=$ac_try;;
17439esac
17440eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17441$as_echo "$ac_try_echo") >&5
17442  (eval "$ac_compile") 2>conftest.er1
17443  ac_status=$?
17444  grep -v '^ *+' conftest.er1 >conftest.err
17445  rm -f conftest.er1
17446  cat conftest.err >&5
17447  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17448  (exit $ac_status); } && {
17449	 test -z "$ac_c_werror_flag" ||
17450	 test ! -s conftest.err
17451       } && test -s conftest.$ac_objext; then
17452  ac_cv_c_const=yes
17453else
17454  $as_echo "$as_me: failed program was:" >&5
17455sed 's/^/| /' conftest.$ac_ext >&5
17456
17457	ac_cv_c_const=no
17458fi
17459
17460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17461fi
17462{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17463$as_echo "$ac_cv_c_const" >&6; }
17464if test $ac_cv_c_const = no; then
17465
17466cat >>confdefs.h <<\_ACEOF
17467#define const /**/
17468_ACEOF
17469
17470fi
17471
17472{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
17473$as_echo_n "checking for size_t... " >&6; }
17474if test "${ac_cv_type_size_t+set}" = set; then
17475  $as_echo_n "(cached) " >&6
17476else
17477  ac_cv_type_size_t=no
17478cat >conftest.$ac_ext <<_ACEOF
17479/* confdefs.h.  */
17480_ACEOF
17481cat confdefs.h >>conftest.$ac_ext
17482cat >>conftest.$ac_ext <<_ACEOF
17483/* end confdefs.h.  */
17484$ac_includes_default
17485int
17486main ()
17487{
17488if (sizeof (size_t))
17489       return 0;
17490  ;
17491  return 0;
17492}
17493_ACEOF
17494rm -f conftest.$ac_objext
17495if { (ac_try="$ac_compile"
17496case "(($ac_try" in
17497  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17498  *) ac_try_echo=$ac_try;;
17499esac
17500eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17501$as_echo "$ac_try_echo") >&5
17502  (eval "$ac_compile") 2>conftest.er1
17503  ac_status=$?
17504  grep -v '^ *+' conftest.er1 >conftest.err
17505  rm -f conftest.er1
17506  cat conftest.err >&5
17507  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17508  (exit $ac_status); } && {
17509	 test -z "$ac_c_werror_flag" ||
17510	 test ! -s conftest.err
17511       } && test -s conftest.$ac_objext; then
17512  cat >conftest.$ac_ext <<_ACEOF
17513/* confdefs.h.  */
17514_ACEOF
17515cat confdefs.h >>conftest.$ac_ext
17516cat >>conftest.$ac_ext <<_ACEOF
17517/* end confdefs.h.  */
17518$ac_includes_default
17519int
17520main ()
17521{
17522if (sizeof ((size_t)))
17523	  return 0;
17524  ;
17525  return 0;
17526}
17527_ACEOF
17528rm -f conftest.$ac_objext
17529if { (ac_try="$ac_compile"
17530case "(($ac_try" in
17531  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17532  *) ac_try_echo=$ac_try;;
17533esac
17534eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17535$as_echo "$ac_try_echo") >&5
17536  (eval "$ac_compile") 2>conftest.er1
17537  ac_status=$?
17538  grep -v '^ *+' conftest.er1 >conftest.err
17539  rm -f conftest.er1
17540  cat conftest.err >&5
17541  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17542  (exit $ac_status); } && {
17543	 test -z "$ac_c_werror_flag" ||
17544	 test ! -s conftest.err
17545       } && test -s conftest.$ac_objext; then
17546  :
17547else
17548  $as_echo "$as_me: failed program was:" >&5
17549sed 's/^/| /' conftest.$ac_ext >&5
17550
17551	ac_cv_type_size_t=yes
17552fi
17553
17554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17555else
17556  $as_echo "$as_me: failed program was:" >&5
17557sed 's/^/| /' conftest.$ac_ext >&5
17558
17559
17560fi
17561
17562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17563fi
17564{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17565$as_echo "$ac_cv_type_size_t" >&6; }
17566if test "x$ac_cv_type_size_t" = x""yes; then
17567  :
17568else
17569
17570cat >>confdefs.h <<_ACEOF
17571#define size_t unsigned int
17572_ACEOF
17573
17574fi
17575
17576
17577# Checks for library functions.
17578
17579
17580
17581
17582for ac_func in bcopy memmove strerror
17583do
17584as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17585{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17586$as_echo_n "checking for $ac_func... " >&6; }
17587if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17588  $as_echo_n "(cached) " >&6
17589else
17590  cat >conftest.$ac_ext <<_ACEOF
17591/* confdefs.h.  */
17592_ACEOF
17593cat confdefs.h >>conftest.$ac_ext
17594cat >>conftest.$ac_ext <<_ACEOF
17595/* end confdefs.h.  */
17596/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17597   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17598#define $ac_func innocuous_$ac_func
17599
17600/* System header to define __stub macros and hopefully few prototypes,
17601    which can conflict with char $ac_func (); below.
17602    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17603    <limits.h> exists even on freestanding compilers.  */
17604
17605#ifdef __STDC__
17606# include <limits.h>
17607#else
17608# include <assert.h>
17609#endif
17610
17611#undef $ac_func
17612
17613/* Override any GCC internal prototype to avoid an error.
17614   Use char because int might match the return type of a GCC
17615   builtin and then its argument prototype would still apply.  */
17616#ifdef __cplusplus
17617extern "C"
17618#endif
17619char $ac_func ();
17620/* The GNU C library defines this for functions which it implements
17621    to always fail with ENOSYS.  Some functions are actually named
17622    something starting with __ and the normal name is an alias.  */
17623#if defined __stub_$ac_func || defined __stub___$ac_func
17624choke me
17625#endif
17626
17627int
17628main ()
17629{
17630return $ac_func ();
17631  ;
17632  return 0;
17633}
17634_ACEOF
17635rm -f conftest.$ac_objext conftest$ac_exeext
17636if { (ac_try="$ac_link"
17637case "(($ac_try" in
17638  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17639  *) ac_try_echo=$ac_try;;
17640esac
17641eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17642$as_echo "$ac_try_echo") >&5
17643  (eval "$ac_link") 2>conftest.er1
17644  ac_status=$?
17645  grep -v '^ *+' conftest.er1 >conftest.err
17646  rm -f conftest.er1
17647  cat conftest.err >&5
17648  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17649  (exit $ac_status); } && {
17650	 test -z "$ac_c_werror_flag" ||
17651	 test ! -s conftest.err
17652       } && test -s conftest$ac_exeext && {
17653	 test "$cross_compiling" = yes ||
17654	 $as_test_x conftest$ac_exeext
17655       }; then
17656  eval "$as_ac_var=yes"
17657else
17658  $as_echo "$as_me: failed program was:" >&5
17659sed 's/^/| /' conftest.$ac_ext >&5
17660
17661	eval "$as_ac_var=no"
17662fi
17663
17664rm -rf conftest.dSYM
17665rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17666      conftest$ac_exeext conftest.$ac_ext
17667fi
17668ac_res=`eval 'as_val=${'$as_ac_var'}
17669		 $as_echo "$as_val"'`
17670	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17671$as_echo "$ac_res" >&6; }
17672as_val=`eval 'as_val=${'$as_ac_var'}
17673		 $as_echo "$as_val"'`
17674   if test "x$as_val" = x""yes; then
17675  cat >>confdefs.h <<_ACEOF
17676#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17677_ACEOF
17678
17679fi
17680done
17681
17682
17683# Check for the availability of libz (aka zlib)
17684
17685
17686for ac_header in zlib.h
17687do
17688as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17689if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17690  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17691$as_echo_n "checking for $ac_header... " >&6; }
17692if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17693  $as_echo_n "(cached) " >&6
17694fi
17695ac_res=`eval 'as_val=${'$as_ac_Header'}
17696		 $as_echo "$as_val"'`
17697	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17698$as_echo "$ac_res" >&6; }
17699else
17700  # Is the header compilable?
17701{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17702$as_echo_n "checking $ac_header usability... " >&6; }
17703cat >conftest.$ac_ext <<_ACEOF
17704/* confdefs.h.  */
17705_ACEOF
17706cat confdefs.h >>conftest.$ac_ext
17707cat >>conftest.$ac_ext <<_ACEOF
17708/* end confdefs.h.  */
17709$ac_includes_default
17710#include <$ac_header>
17711_ACEOF
17712rm -f conftest.$ac_objext
17713if { (ac_try="$ac_compile"
17714case "(($ac_try" in
17715  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17716  *) ac_try_echo=$ac_try;;
17717esac
17718eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17719$as_echo "$ac_try_echo") >&5
17720  (eval "$ac_compile") 2>conftest.er1
17721  ac_status=$?
17722  grep -v '^ *+' conftest.er1 >conftest.err
17723  rm -f conftest.er1
17724  cat conftest.err >&5
17725  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726  (exit $ac_status); } && {
17727	 test -z "$ac_c_werror_flag" ||
17728	 test ! -s conftest.err
17729       } && test -s conftest.$ac_objext; then
17730  ac_header_compiler=yes
17731else
17732  $as_echo "$as_me: failed program was:" >&5
17733sed 's/^/| /' conftest.$ac_ext >&5
17734
17735	ac_header_compiler=no
17736fi
17737
17738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17739{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17740$as_echo "$ac_header_compiler" >&6; }
17741
17742# Is the header present?
17743{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17744$as_echo_n "checking $ac_header presence... " >&6; }
17745cat >conftest.$ac_ext <<_ACEOF
17746/* confdefs.h.  */
17747_ACEOF
17748cat confdefs.h >>conftest.$ac_ext
17749cat >>conftest.$ac_ext <<_ACEOF
17750/* end confdefs.h.  */
17751#include <$ac_header>
17752_ACEOF
17753if { (ac_try="$ac_cpp conftest.$ac_ext"
17754case "(($ac_try" in
17755  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17756  *) ac_try_echo=$ac_try;;
17757esac
17758eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17759$as_echo "$ac_try_echo") >&5
17760  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17761  ac_status=$?
17762  grep -v '^ *+' conftest.er1 >conftest.err
17763  rm -f conftest.er1
17764  cat conftest.err >&5
17765  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766  (exit $ac_status); } >/dev/null && {
17767	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17768	 test ! -s conftest.err
17769       }; then
17770  ac_header_preproc=yes
17771else
17772  $as_echo "$as_me: failed program was:" >&5
17773sed 's/^/| /' conftest.$ac_ext >&5
17774
17775  ac_header_preproc=no
17776fi
17777
17778rm -f conftest.err conftest.$ac_ext
17779{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17780$as_echo "$ac_header_preproc" >&6; }
17781
17782# So?  What about this header?
17783case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17784  yes:no: )
17785    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17786$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17787    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17788$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17789    ac_header_preproc=yes
17790    ;;
17791  no:yes:* )
17792    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17793$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17794    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17795$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17796    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17797$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17798    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17799$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17800    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17801$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17802    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17803$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17804
17805    ;;
17806esac
17807{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17808$as_echo_n "checking for $ac_header... " >&6; }
17809if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17810  $as_echo_n "(cached) " >&6
17811else
17812  eval "$as_ac_Header=\$ac_header_preproc"
17813fi
17814ac_res=`eval 'as_val=${'$as_ac_Header'}
17815		 $as_echo "$as_val"'`
17816	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17817$as_echo "$ac_res" >&6; }
17818
17819fi
17820as_val=`eval 'as_val=${'$as_ac_Header'}
17821		 $as_echo "$as_val"'`
17822   if test "x$as_val" = x""yes; then
17823  cat >>confdefs.h <<_ACEOF
17824#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17825_ACEOF
17826 HAVE_ZLIB_H=1
17827fi
17828
17829done
17830
17831{ $as_echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
17832$as_echo_n "checking for gzopen in -lz... " >&6; }
17833if test "${ac_cv_lib_z_gzopen+set}" = set; then
17834  $as_echo_n "(cached) " >&6
17835else
17836  ac_check_lib_save_LIBS=$LIBS
17837LIBS="-lz  $LIBS"
17838cat >conftest.$ac_ext <<_ACEOF
17839/* confdefs.h.  */
17840_ACEOF
17841cat confdefs.h >>conftest.$ac_ext
17842cat >>conftest.$ac_ext <<_ACEOF
17843/* end confdefs.h.  */
17844
17845/* Override any GCC internal prototype to avoid an error.
17846   Use char because int might match the return type of a GCC
17847   builtin and then its argument prototype would still apply.  */
17848#ifdef __cplusplus
17849extern "C"
17850#endif
17851char gzopen ();
17852int
17853main ()
17854{
17855return gzopen ();
17856  ;
17857  return 0;
17858}
17859_ACEOF
17860rm -f conftest.$ac_objext conftest$ac_exeext
17861if { (ac_try="$ac_link"
17862case "(($ac_try" in
17863  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17864  *) ac_try_echo=$ac_try;;
17865esac
17866eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17867$as_echo "$ac_try_echo") >&5
17868  (eval "$ac_link") 2>conftest.er1
17869  ac_status=$?
17870  grep -v '^ *+' conftest.er1 >conftest.err
17871  rm -f conftest.er1
17872  cat conftest.err >&5
17873  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874  (exit $ac_status); } && {
17875	 test -z "$ac_c_werror_flag" ||
17876	 test ! -s conftest.err
17877       } && test -s conftest$ac_exeext && {
17878	 test "$cross_compiling" = yes ||
17879	 $as_test_x conftest$ac_exeext
17880       }; then
17881  ac_cv_lib_z_gzopen=yes
17882else
17883  $as_echo "$as_me: failed program was:" >&5
17884sed 's/^/| /' conftest.$ac_ext >&5
17885
17886	ac_cv_lib_z_gzopen=no
17887fi
17888
17889rm -rf conftest.dSYM
17890rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17891      conftest$ac_exeext conftest.$ac_ext
17892LIBS=$ac_check_lib_save_LIBS
17893fi
17894{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
17895$as_echo "$ac_cv_lib_z_gzopen" >&6; }
17896if test "x$ac_cv_lib_z_gzopen" = x""yes; then
17897  HAVE_LIBZ=1
17898fi
17899
17900
17901# Check for the availability of libbz2. Originally we just used AC_CHECK_LIB,
17902# as for libz. However, this had the following problem, diagnosed and fixed by
17903# a user:
17904#
17905#   - libbz2 uses the Pascal calling convention (WINAPI) for the functions
17906#     under Win32.
17907#   - The standard autoconf AC_CHECK_LIB fails to include "bzlib.h",
17908#     therefore missing the function definition.
17909#   - The compiler thus generates a "C" signature for the test function.
17910#   - The linker fails to find the "C" function.
17911#   - PCRE fails to configure if asked to do so against libbz2.
17912#
17913# Solution:
17914#
17915#   - Replace the AC_CHECK_LIB test with a custom test.
17916
17917
17918for ac_header in bzlib.h
17919do
17920as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17921if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17922  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17923$as_echo_n "checking for $ac_header... " >&6; }
17924if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17925  $as_echo_n "(cached) " >&6
17926fi
17927ac_res=`eval 'as_val=${'$as_ac_Header'}
17928		 $as_echo "$as_val"'`
17929	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17930$as_echo "$ac_res" >&6; }
17931else
17932  # Is the header compilable?
17933{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17934$as_echo_n "checking $ac_header usability... " >&6; }
17935cat >conftest.$ac_ext <<_ACEOF
17936/* confdefs.h.  */
17937_ACEOF
17938cat confdefs.h >>conftest.$ac_ext
17939cat >>conftest.$ac_ext <<_ACEOF
17940/* end confdefs.h.  */
17941$ac_includes_default
17942#include <$ac_header>
17943_ACEOF
17944rm -f conftest.$ac_objext
17945if { (ac_try="$ac_compile"
17946case "(($ac_try" in
17947  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17948  *) ac_try_echo=$ac_try;;
17949esac
17950eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17951$as_echo "$ac_try_echo") >&5
17952  (eval "$ac_compile") 2>conftest.er1
17953  ac_status=$?
17954  grep -v '^ *+' conftest.er1 >conftest.err
17955  rm -f conftest.er1
17956  cat conftest.err >&5
17957  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17958  (exit $ac_status); } && {
17959	 test -z "$ac_c_werror_flag" ||
17960	 test ! -s conftest.err
17961       } && test -s conftest.$ac_objext; then
17962  ac_header_compiler=yes
17963else
17964  $as_echo "$as_me: failed program was:" >&5
17965sed 's/^/| /' conftest.$ac_ext >&5
17966
17967	ac_header_compiler=no
17968fi
17969
17970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17971{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17972$as_echo "$ac_header_compiler" >&6; }
17973
17974# Is the header present?
17975{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17976$as_echo_n "checking $ac_header presence... " >&6; }
17977cat >conftest.$ac_ext <<_ACEOF
17978/* confdefs.h.  */
17979_ACEOF
17980cat confdefs.h >>conftest.$ac_ext
17981cat >>conftest.$ac_ext <<_ACEOF
17982/* end confdefs.h.  */
17983#include <$ac_header>
17984_ACEOF
17985if { (ac_try="$ac_cpp conftest.$ac_ext"
17986case "(($ac_try" in
17987  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17988  *) ac_try_echo=$ac_try;;
17989esac
17990eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17991$as_echo "$ac_try_echo") >&5
17992  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17993  ac_status=$?
17994  grep -v '^ *+' conftest.er1 >conftest.err
17995  rm -f conftest.er1
17996  cat conftest.err >&5
17997  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17998  (exit $ac_status); } >/dev/null && {
17999	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18000	 test ! -s conftest.err
18001       }; then
18002  ac_header_preproc=yes
18003else
18004  $as_echo "$as_me: failed program was:" >&5
18005sed 's/^/| /' conftest.$ac_ext >&5
18006
18007  ac_header_preproc=no
18008fi
18009
18010rm -f conftest.err conftest.$ac_ext
18011{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18012$as_echo "$ac_header_preproc" >&6; }
18013
18014# So?  What about this header?
18015case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18016  yes:no: )
18017    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18018$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18019    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18020$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18021    ac_header_preproc=yes
18022    ;;
18023  no:yes:* )
18024    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18025$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18026    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18027$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18028    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18029$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18030    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18031$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18032    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18033$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18034    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18035$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18036
18037    ;;
18038esac
18039{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18040$as_echo_n "checking for $ac_header... " >&6; }
18041if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18042  $as_echo_n "(cached) " >&6
18043else
18044  eval "$as_ac_Header=\$ac_header_preproc"
18045fi
18046ac_res=`eval 'as_val=${'$as_ac_Header'}
18047		 $as_echo "$as_val"'`
18048	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18049$as_echo "$ac_res" >&6; }
18050
18051fi
18052as_val=`eval 'as_val=${'$as_ac_Header'}
18053		 $as_echo "$as_val"'`
18054   if test "x$as_val" = x""yes; then
18055  cat >>confdefs.h <<_ACEOF
18056#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18057_ACEOF
18058 HAVE_BZLIB_H=1
18059fi
18060
18061done
18062
18063# Original test
18064# AC_CHECK_LIB([bz2], [BZ2_bzopen], [HAVE_LIBBZ2=1])
18065#
18066# Custom test follows
18067
18068{ $as_echo "$as_me:$LINENO: checking for libbz2" >&5
18069$as_echo_n "checking for libbz2... " >&6; }
18070OLD_LIBS="$LIBS"
18071LIBS="$LIBS -lbz2"
18072cat >conftest.$ac_ext <<_ACEOF
18073/* confdefs.h.  */
18074_ACEOF
18075cat confdefs.h >>conftest.$ac_ext
18076cat >>conftest.$ac_ext <<_ACEOF
18077/* end confdefs.h.  */
18078
18079#ifdef HAVE_BZLIB_H
18080#include <bzlib.h>
18081#endif
18082int
18083main ()
18084{
18085return (int)BZ2_bzopen("conftest", "rb");
18086  ;
18087  return 0;
18088}
18089_ACEOF
18090rm -f conftest.$ac_objext conftest$ac_exeext
18091if { (ac_try="$ac_link"
18092case "(($ac_try" in
18093  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18094  *) ac_try_echo=$ac_try;;
18095esac
18096eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18097$as_echo "$ac_try_echo") >&5
18098  (eval "$ac_link") 2>conftest.er1
18099  ac_status=$?
18100  grep -v '^ *+' conftest.er1 >conftest.err
18101  rm -f conftest.er1
18102  cat conftest.err >&5
18103  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18104  (exit $ac_status); } && {
18105	 test -z "$ac_c_werror_flag" ||
18106	 test ! -s conftest.err
18107       } && test -s conftest$ac_exeext && {
18108	 test "$cross_compiling" = yes ||
18109	 $as_test_x conftest$ac_exeext
18110       }; then
18111  { $as_echo "$as_me:$LINENO: result: yes" >&5
18112$as_echo "yes" >&6; };HAVE_LIBBZ2=1; break;
18113else
18114  $as_echo "$as_me: failed program was:" >&5
18115sed 's/^/| /' conftest.$ac_ext >&5
18116
18117	{ $as_echo "$as_me:$LINENO: result: no" >&5
18118$as_echo "no" >&6; }
18119fi
18120
18121rm -rf conftest.dSYM
18122rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18123      conftest$ac_exeext conftest.$ac_ext
18124LIBS="$OLD_LIBS"
18125
18126# Check for the availabiity of libreadline
18127
18128
18129for ac_header in readline/readline.h
18130do
18131as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18132if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18133  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18134$as_echo_n "checking for $ac_header... " >&6; }
18135if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18136  $as_echo_n "(cached) " >&6
18137fi
18138ac_res=`eval 'as_val=${'$as_ac_Header'}
18139		 $as_echo "$as_val"'`
18140	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18141$as_echo "$ac_res" >&6; }
18142else
18143  # Is the header compilable?
18144{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
18145$as_echo_n "checking $ac_header usability... " >&6; }
18146cat >conftest.$ac_ext <<_ACEOF
18147/* confdefs.h.  */
18148_ACEOF
18149cat confdefs.h >>conftest.$ac_ext
18150cat >>conftest.$ac_ext <<_ACEOF
18151/* end confdefs.h.  */
18152$ac_includes_default
18153#include <$ac_header>
18154_ACEOF
18155rm -f conftest.$ac_objext
18156if { (ac_try="$ac_compile"
18157case "(($ac_try" in
18158  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18159  *) ac_try_echo=$ac_try;;
18160esac
18161eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18162$as_echo "$ac_try_echo") >&5
18163  (eval "$ac_compile") 2>conftest.er1
18164  ac_status=$?
18165  grep -v '^ *+' conftest.er1 >conftest.err
18166  rm -f conftest.er1
18167  cat conftest.err >&5
18168  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18169  (exit $ac_status); } && {
18170	 test -z "$ac_c_werror_flag" ||
18171	 test ! -s conftest.err
18172       } && test -s conftest.$ac_objext; then
18173  ac_header_compiler=yes
18174else
18175  $as_echo "$as_me: failed program was:" >&5
18176sed 's/^/| /' conftest.$ac_ext >&5
18177
18178	ac_header_compiler=no
18179fi
18180
18181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18182{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18183$as_echo "$ac_header_compiler" >&6; }
18184
18185# Is the header present?
18186{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
18187$as_echo_n "checking $ac_header presence... " >&6; }
18188cat >conftest.$ac_ext <<_ACEOF
18189/* confdefs.h.  */
18190_ACEOF
18191cat confdefs.h >>conftest.$ac_ext
18192cat >>conftest.$ac_ext <<_ACEOF
18193/* end confdefs.h.  */
18194#include <$ac_header>
18195_ACEOF
18196if { (ac_try="$ac_cpp conftest.$ac_ext"
18197case "(($ac_try" in
18198  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18199  *) ac_try_echo=$ac_try;;
18200esac
18201eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18202$as_echo "$ac_try_echo") >&5
18203  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18204  ac_status=$?
18205  grep -v '^ *+' conftest.er1 >conftest.err
18206  rm -f conftest.er1
18207  cat conftest.err >&5
18208  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209  (exit $ac_status); } >/dev/null && {
18210	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18211	 test ! -s conftest.err
18212       }; then
18213  ac_header_preproc=yes
18214else
18215  $as_echo "$as_me: failed program was:" >&5
18216sed 's/^/| /' conftest.$ac_ext >&5
18217
18218  ac_header_preproc=no
18219fi
18220
18221rm -f conftest.err conftest.$ac_ext
18222{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18223$as_echo "$ac_header_preproc" >&6; }
18224
18225# So?  What about this header?
18226case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18227  yes:no: )
18228    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18229$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18230    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18231$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18232    ac_header_preproc=yes
18233    ;;
18234  no:yes:* )
18235    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18236$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18237    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18238$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18239    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18240$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18241    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18242$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18243    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18244$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18245    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18246$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18247
18248    ;;
18249esac
18250{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18251$as_echo_n "checking for $ac_header... " >&6; }
18252if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18253  $as_echo_n "(cached) " >&6
18254else
18255  eval "$as_ac_Header=\$ac_header_preproc"
18256fi
18257ac_res=`eval 'as_val=${'$as_ac_Header'}
18258		 $as_echo "$as_val"'`
18259	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18260$as_echo "$ac_res" >&6; }
18261
18262fi
18263as_val=`eval 'as_val=${'$as_ac_Header'}
18264		 $as_echo "$as_val"'`
18265   if test "x$as_val" = x""yes; then
18266  cat >>confdefs.h <<_ACEOF
18267#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18268_ACEOF
18269 HAVE_READLINE_H=1
18270fi
18271
18272done
18273
18274
18275for ac_header in readline/history.h
18276do
18277as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18278if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18279  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18280$as_echo_n "checking for $ac_header... " >&6; }
18281if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18282  $as_echo_n "(cached) " >&6
18283fi
18284ac_res=`eval 'as_val=${'$as_ac_Header'}
18285		 $as_echo "$as_val"'`
18286	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18287$as_echo "$ac_res" >&6; }
18288else
18289  # Is the header compilable?
18290{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
18291$as_echo_n "checking $ac_header usability... " >&6; }
18292cat >conftest.$ac_ext <<_ACEOF
18293/* confdefs.h.  */
18294_ACEOF
18295cat confdefs.h >>conftest.$ac_ext
18296cat >>conftest.$ac_ext <<_ACEOF
18297/* end confdefs.h.  */
18298$ac_includes_default
18299#include <$ac_header>
18300_ACEOF
18301rm -f conftest.$ac_objext
18302if { (ac_try="$ac_compile"
18303case "(($ac_try" in
18304  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18305  *) ac_try_echo=$ac_try;;
18306esac
18307eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18308$as_echo "$ac_try_echo") >&5
18309  (eval "$ac_compile") 2>conftest.er1
18310  ac_status=$?
18311  grep -v '^ *+' conftest.er1 >conftest.err
18312  rm -f conftest.er1
18313  cat conftest.err >&5
18314  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18315  (exit $ac_status); } && {
18316	 test -z "$ac_c_werror_flag" ||
18317	 test ! -s conftest.err
18318       } && test -s conftest.$ac_objext; then
18319  ac_header_compiler=yes
18320else
18321  $as_echo "$as_me: failed program was:" >&5
18322sed 's/^/| /' conftest.$ac_ext >&5
18323
18324	ac_header_compiler=no
18325fi
18326
18327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18328{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18329$as_echo "$ac_header_compiler" >&6; }
18330
18331# Is the header present?
18332{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
18333$as_echo_n "checking $ac_header presence... " >&6; }
18334cat >conftest.$ac_ext <<_ACEOF
18335/* confdefs.h.  */
18336_ACEOF
18337cat confdefs.h >>conftest.$ac_ext
18338cat >>conftest.$ac_ext <<_ACEOF
18339/* end confdefs.h.  */
18340#include <$ac_header>
18341_ACEOF
18342if { (ac_try="$ac_cpp conftest.$ac_ext"
18343case "(($ac_try" in
18344  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18345  *) ac_try_echo=$ac_try;;
18346esac
18347eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18348$as_echo "$ac_try_echo") >&5
18349  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18350  ac_status=$?
18351  grep -v '^ *+' conftest.er1 >conftest.err
18352  rm -f conftest.er1
18353  cat conftest.err >&5
18354  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18355  (exit $ac_status); } >/dev/null && {
18356	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18357	 test ! -s conftest.err
18358       }; then
18359  ac_header_preproc=yes
18360else
18361  $as_echo "$as_me: failed program was:" >&5
18362sed 's/^/| /' conftest.$ac_ext >&5
18363
18364  ac_header_preproc=no
18365fi
18366
18367rm -f conftest.err conftest.$ac_ext
18368{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18369$as_echo "$ac_header_preproc" >&6; }
18370
18371# So?  What about this header?
18372case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18373  yes:no: )
18374    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18375$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18376    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18377$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18378    ac_header_preproc=yes
18379    ;;
18380  no:yes:* )
18381    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18382$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18383    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18384$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18385    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18386$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18387    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18388$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18389    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18390$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18391    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18392$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18393
18394    ;;
18395esac
18396{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18397$as_echo_n "checking for $ac_header... " >&6; }
18398if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18399  $as_echo_n "(cached) " >&6
18400else
18401  eval "$as_ac_Header=\$ac_header_preproc"
18402fi
18403ac_res=`eval 'as_val=${'$as_ac_Header'}
18404		 $as_echo "$as_val"'`
18405	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18406$as_echo "$ac_res" >&6; }
18407
18408fi
18409as_val=`eval 'as_val=${'$as_ac_Header'}
18410		 $as_echo "$as_val"'`
18411   if test "x$as_val" = x""yes; then
18412  cat >>confdefs.h <<_ACEOF
18413#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18414_ACEOF
18415 HAVE_HISTORY_H=1
18416fi
18417
18418done
18419
18420{ $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
18421$as_echo_n "checking for readline in -lreadline... " >&6; }
18422if test "${ac_cv_lib_readline_readline+set}" = set; then
18423  $as_echo_n "(cached) " >&6
18424else
18425  ac_check_lib_save_LIBS=$LIBS
18426LIBS="-lreadline  $LIBS"
18427cat >conftest.$ac_ext <<_ACEOF
18428/* confdefs.h.  */
18429_ACEOF
18430cat confdefs.h >>conftest.$ac_ext
18431cat >>conftest.$ac_ext <<_ACEOF
18432/* end confdefs.h.  */
18433
18434/* Override any GCC internal prototype to avoid an error.
18435   Use char because int might match the return type of a GCC
18436   builtin and then its argument prototype would still apply.  */
18437#ifdef __cplusplus
18438extern "C"
18439#endif
18440char readline ();
18441int
18442main ()
18443{
18444return readline ();
18445  ;
18446  return 0;
18447}
18448_ACEOF
18449rm -f conftest.$ac_objext conftest$ac_exeext
18450if { (ac_try="$ac_link"
18451case "(($ac_try" in
18452  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18453  *) ac_try_echo=$ac_try;;
18454esac
18455eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18456$as_echo "$ac_try_echo") >&5
18457  (eval "$ac_link") 2>conftest.er1
18458  ac_status=$?
18459  grep -v '^ *+' conftest.er1 >conftest.err
18460  rm -f conftest.er1
18461  cat conftest.err >&5
18462  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463  (exit $ac_status); } && {
18464	 test -z "$ac_c_werror_flag" ||
18465	 test ! -s conftest.err
18466       } && test -s conftest$ac_exeext && {
18467	 test "$cross_compiling" = yes ||
18468	 $as_test_x conftest$ac_exeext
18469       }; then
18470  ac_cv_lib_readline_readline=yes
18471else
18472  $as_echo "$as_me: failed program was:" >&5
18473sed 's/^/| /' conftest.$ac_ext >&5
18474
18475	ac_cv_lib_readline_readline=no
18476fi
18477
18478rm -rf conftest.dSYM
18479rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18480      conftest$ac_exeext conftest.$ac_ext
18481LIBS=$ac_check_lib_save_LIBS
18482fi
18483{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
18484$as_echo "$ac_cv_lib_readline_readline" >&6; }
18485if test "x$ac_cv_lib_readline_readline" = x""yes; then
18486  HAVE_LIB_READLINE=1
18487fi
18488
18489
18490# This facilitates -ansi builds under Linux
18491
18492PCRE_STATIC_CFLAG=""
18493if test "x$enable_shared" = "xno" ; then
18494
18495cat >>confdefs.h <<\_ACEOF
18496#define PCRE_STATIC 1
18497_ACEOF
18498
18499  PCRE_STATIC_CFLAG="-DPCRE_STATIC"
18500fi
18501
18502
18503# Here is where pcre specific defines are handled
18504
18505if test "$enable_utf8" = "yes"; then
18506
18507cat >>confdefs.h <<\_ACEOF
18508#define SUPPORT_UTF8 /**/
18509_ACEOF
18510
18511fi
18512
18513if test "$enable_unicode_properties" = "yes"; then
18514
18515cat >>confdefs.h <<\_ACEOF
18516#define SUPPORT_UCP /**/
18517_ACEOF
18518
18519fi
18520
18521if test "$enable_stack_for_recursion" = "no"; then
18522
18523cat >>confdefs.h <<\_ACEOF
18524#define NO_RECURSE /**/
18525_ACEOF
18526
18527fi
18528
18529if test "$enable_pcregrep_libz" = "yes"; then
18530
18531cat >>confdefs.h <<\_ACEOF
18532#define SUPPORT_LIBZ /**/
18533_ACEOF
18534
18535fi
18536
18537if test "$enable_pcregrep_libbz2" = "yes"; then
18538
18539cat >>confdefs.h <<\_ACEOF
18540#define SUPPORT_LIBBZ2 /**/
18541_ACEOF
18542
18543fi
18544
18545if test "$enable_pcretest_libreadline" = "yes"; then
18546
18547cat >>confdefs.h <<\_ACEOF
18548#define SUPPORT_LIBREADLINE /**/
18549_ACEOF
18550
18551fi
18552
18553
18554cat >>confdefs.h <<_ACEOF
18555#define NEWLINE $ac_pcre_newline_value
18556_ACEOF
18557
18558
18559if test "$enable_bsr_anycrlf" = "yes"; then
18560
18561cat >>confdefs.h <<\_ACEOF
18562#define BSR_ANYCRLF /**/
18563_ACEOF
18564
18565fi
18566
18567
18568cat >>confdefs.h <<_ACEOF
18569#define LINK_SIZE $with_link_size
18570_ACEOF
18571
18572
18573
18574cat >>confdefs.h <<_ACEOF
18575#define POSIX_MALLOC_THRESHOLD $with_posix_malloc_threshold
18576_ACEOF
18577
18578
18579
18580cat >>confdefs.h <<_ACEOF
18581#define MATCH_LIMIT $with_match_limit
18582_ACEOF
18583
18584
18585
18586cat >>confdefs.h <<_ACEOF
18587#define MATCH_LIMIT_RECURSION $with_match_limit_recursion
18588_ACEOF
18589
18590
18591
18592cat >>confdefs.h <<\_ACEOF
18593#define MAX_NAME_SIZE 32
18594_ACEOF
18595
18596
18597
18598cat >>confdefs.h <<\_ACEOF
18599#define MAX_NAME_COUNT 10000
18600_ACEOF
18601
18602
18603
18604
18605
18606if test "$enable_ebcdic" = "yes"; then
18607
18608cat >>confdefs.h <<_ACEOF
18609#define EBCDIC /**/
18610_ACEOF
18611
18612fi
18613
18614# Platform specific issues
18615NO_UNDEFINED=
18616EXPORT_ALL_SYMBOLS=
18617case $host_os in
18618  cygwin* | mingw* )
18619    if test X"$enable_shared" = Xyes; then
18620      NO_UNDEFINED="-no-undefined"
18621      EXPORT_ALL_SYMBOLS="-Wl,--export-all-symbols"
18622    fi
18623    ;;
18624esac
18625
18626# The extra LDFLAGS for each particular library
18627# (Note: The libpcre*_version bits are m4 variables, assigned above)
18628
18629EXTRA_LIBPCRE_LDFLAGS="$EXTRA_LIBPCRE_LDFLAGS \
18630                       $NO_UNDEFINED -version-info 0:1:0"
18631
18632EXTRA_LIBPCREPOSIX_LDFLAGS="$EXTRA_LIBPCREPOSIX_LDFLAGS \
18633                            $NO_UNDEFINED -version-info 0:0:0"
18634
18635EXTRA_LIBPCRECPP_LDFLAGS="$EXTRA_LIBPCRECPP_LDFLAGS \
18636                          $NO_UNDEFINED -version-info 0:0:0 \
18637                          $EXPORT_ALL_SYMBOLS"
18638
18639
18640
18641
18642
18643# When we run 'make distcheck', use these arguments.
18644DISTCHECK_CONFIGURE_FLAGS="--enable-cpp --enable-unicode-properties"
18645
18646
18647# Check that, if --enable-pcregrep-libz or --enable-pcregrep-libbz2 is
18648# specified, the relevant library is available.
18649
18650if test "$enable_pcregrep_libz" = "yes"; then
18651  if test "$HAVE_ZLIB_H" != "1"; then
18652    echo "** Cannot --enable-pcregrep-libz because zlib.h was not found"
18653    exit 1
18654  fi
18655  if test "$HAVE_LIBZ" != "1"; then
18656    echo "** Cannot --enable-pcregrep-libz because libz was not found"
18657    exit 1
18658  fi
18659  LIBZ="-lz"
18660fi
18661
18662
18663if test "$enable_pcregrep_libbz2" = "yes"; then
18664  if test "$HAVE_BZLIB_H" != "1"; then
18665    echo "** Cannot --enable-pcregrep-libbz2 because bzlib.h was not found"
18666    exit 1
18667  fi
18668  if test "$HAVE_LIBBZ2" != "1"; then
18669    echo "** Cannot --enable-pcregrep-libbz2 because libbz2 was not found"
18670    exit 1
18671  fi
18672  LIBBZ2="-lbz2"
18673fi
18674
18675
18676# Similarly for --enable-pcretest-readline
18677
18678if test "$enable_pcretest_libreadline" = "yes"; then
18679  if test "$HAVE_READLINE_H" != "1"; then
18680    echo "** Cannot --enable-pcretest-readline because readline/readline.h was not found."
18681    exit 1
18682  fi
18683  if test "$HAVE_HISTORY_H" != "1"; then
18684    echo "** Cannot --enable-pcretest-readline because readline/history.h was not found."
18685    exit 1
18686  fi
18687  LIBREADLINE="-lreadline"
18688fi
18689
18690
18691# Produce these files, in addition to config.h.
18692ac_config_files="$ac_config_files Makefile libpcre.pc libpcreposix.pc libpcrecpp.pc pcre-config pcre.h pcre_stringpiece.h pcrecpparg.h"
18693
18694
18695# Make the generated script files executable.
18696ac_config_commands="$ac_config_commands script-chmod"
18697
18698
18699# Make sure that pcre_chartables.c is removed in case the method for
18700# creating it was changed by reconfiguration.
18701ac_config_commands="$ac_config_commands delete-old-chartables"
18702
18703
18704cat >confcache <<\_ACEOF
18705# This file is a shell script that caches the results of configure
18706# tests run on this system so they can be shared between configure
18707# scripts and configure runs, see configure's option --config-cache.
18708# It is not useful on other systems.  If it contains results you don't
18709# want to keep, you may remove or edit it.
18710#
18711# config.status only pays attention to the cache file if you give it
18712# the --recheck option to rerun configure.
18713#
18714# `ac_cv_env_foo' variables (set or unset) will be overridden when
18715# loading this file, other *unset* `ac_cv_foo' will be assigned the
18716# following values.
18717
18718_ACEOF
18719
18720# The following way of writing the cache mishandles newlines in values,
18721# but we know of no workaround that is simple, portable, and efficient.
18722# So, we kill variables containing newlines.
18723# Ultrix sh set writes to stderr and can't be redirected directly,
18724# and sets the high bit in the cache file unless we assign to the vars.
18725(
18726  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18727    eval ac_val=\$$ac_var
18728    case $ac_val in #(
18729    *${as_nl}*)
18730      case $ac_var in #(
18731      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
18732$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18733      esac
18734      case $ac_var in #(
18735      _ | IFS | as_nl) ;; #(
18736      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18737      *) $as_unset $ac_var ;;
18738      esac ;;
18739    esac
18740  done
18741
18742  (set) 2>&1 |
18743    case $as_nl`(ac_space=' '; set) 2>&1` in #(
18744    *${as_nl}ac_space=\ *)
18745      # `set' does not quote correctly, so add quotes (double-quote
18746      # substitution turns \\\\ into \\, and sed turns \\ into \).
18747      sed -n \
18748	"s/'/'\\\\''/g;
18749	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18750      ;; #(
18751    *)
18752      # `set' quotes correctly as required by POSIX, so do not add quotes.
18753      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18754      ;;
18755    esac |
18756    sort
18757) |
18758  sed '
18759     /^ac_cv_env_/b end
18760     t clear
18761     :clear
18762     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18763     t end
18764     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18765     :end' >>confcache
18766if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18767  if test -w "$cache_file"; then
18768    test "x$cache_file" != "x/dev/null" &&
18769      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
18770$as_echo "$as_me: updating cache $cache_file" >&6;}
18771    cat confcache >$cache_file
18772  else
18773    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18774$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18775  fi
18776fi
18777rm -f confcache
18778
18779test "x$prefix" = xNONE && prefix=$ac_default_prefix
18780# Let make expand exec_prefix.
18781test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18782
18783DEFS=-DHAVE_CONFIG_H
18784
18785ac_libobjs=
18786ac_ltlibobjs=
18787for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18788  # 1. Remove the extension, and $U if already installed.
18789  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18790  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18791  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18792  #    will be set to the directory where LIBOBJS objects are built.
18793  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18794  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
18795done
18796LIBOBJS=$ac_libobjs
18797
18798LTLIBOBJS=$ac_ltlibobjs
18799
18800
18801if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18802  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
18803Usually this means the macro was only invoked conditionally." >&5
18804$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
18805Usually this means the macro was only invoked conditionally." >&2;}
18806   { (exit 1); exit 1; }; }
18807fi
18808if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18809  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
18810Usually this means the macro was only invoked conditionally." >&5
18811$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
18812Usually this means the macro was only invoked conditionally." >&2;}
18813   { (exit 1); exit 1; }; }
18814fi
18815if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18816  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
18817Usually this means the macro was only invoked conditionally." >&5
18818$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
18819Usually this means the macro was only invoked conditionally." >&2;}
18820   { (exit 1); exit 1; }; }
18821fi
18822if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18823  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
18824Usually this means the macro was only invoked conditionally." >&5
18825$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
18826Usually this means the macro was only invoked conditionally." >&2;}
18827   { (exit 1); exit 1; }; }
18828fi
18829if test -z "${WITH_PCRE_CPP_TRUE}" && test -z "${WITH_PCRE_CPP_FALSE}"; then
18830  { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_PCRE_CPP\" was never defined.
18831Usually this means the macro was only invoked conditionally." >&5
18832$as_echo "$as_me: error: conditional \"WITH_PCRE_CPP\" was never defined.
18833Usually this means the macro was only invoked conditionally." >&2;}
18834   { (exit 1); exit 1; }; }
18835fi
18836if test -z "${WITH_REBUILD_CHARTABLES_TRUE}" && test -z "${WITH_REBUILD_CHARTABLES_FALSE}"; then
18837  { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_REBUILD_CHARTABLES\" was never defined.
18838Usually this means the macro was only invoked conditionally." >&5
18839$as_echo "$as_me: error: conditional \"WITH_REBUILD_CHARTABLES\" was never defined.
18840Usually this means the macro was only invoked conditionally." >&2;}
18841   { (exit 1); exit 1; }; }
18842fi
18843
18844: ${CONFIG_STATUS=./config.status}
18845ac_write_fail=0
18846ac_clean_files_save=$ac_clean_files
18847ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18848{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18849$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18850cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18851#! $SHELL
18852# Generated by $as_me.
18853# Run this file to recreate the current configuration.
18854# Compiler output produced by configure, useful for debugging
18855# configure, is in config.log if it exists.
18856
18857debug=false
18858ac_cs_recheck=false
18859ac_cs_silent=false
18860SHELL=\${CONFIG_SHELL-$SHELL}
18861_ACEOF
18862
18863cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18864## --------------------- ##
18865## M4sh Initialization.  ##
18866## --------------------- ##
18867
18868# Be more Bourne compatible
18869DUALCASE=1; export DUALCASE # for MKS sh
18870if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18871  emulate sh
18872  NULLCMD=:
18873  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18874  # is contrary to our usage.  Disable this feature.
18875  alias -g '${1+"$@"}'='"$@"'
18876  setopt NO_GLOB_SUBST
18877else
18878  case `(set -o) 2>/dev/null` in
18879  *posix*) set -o posix ;;
18880esac
18881
18882fi
18883
18884
18885
18886
18887# PATH needs CR
18888# Avoid depending upon Character Ranges.
18889as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18890as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18891as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18892as_cr_digits='0123456789'
18893as_cr_alnum=$as_cr_Letters$as_cr_digits
18894
18895as_nl='
18896'
18897export as_nl
18898# Printing a long string crashes Solaris 7 /usr/bin/printf.
18899as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18900as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18901as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18902if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18903  as_echo='printf %s\n'
18904  as_echo_n='printf %s'
18905else
18906  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18907    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18908    as_echo_n='/usr/ucb/echo -n'
18909  else
18910    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18911    as_echo_n_body='eval
18912      arg=$1;
18913      case $arg in
18914      *"$as_nl"*)
18915	expr "X$arg" : "X\\(.*\\)$as_nl";
18916	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18917      esac;
18918      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18919    '
18920    export as_echo_n_body
18921    as_echo_n='sh -c $as_echo_n_body as_echo'
18922  fi
18923  export as_echo_body
18924  as_echo='sh -c $as_echo_body as_echo'
18925fi
18926
18927# The user is always right.
18928if test "${PATH_SEPARATOR+set}" != set; then
18929  PATH_SEPARATOR=:
18930  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18931    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18932      PATH_SEPARATOR=';'
18933  }
18934fi
18935
18936# Support unset when possible.
18937if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18938  as_unset=unset
18939else
18940  as_unset=false
18941fi
18942
18943
18944# IFS
18945# We need space, tab and new line, in precisely that order.  Quoting is
18946# there to prevent editors from complaining about space-tab.
18947# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18948# splitting by setting IFS to empty value.)
18949IFS=" ""	$as_nl"
18950
18951# Find who we are.  Look in the path if we contain no directory separator.
18952case $0 in
18953  *[\\/]* ) as_myself=$0 ;;
18954  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18955for as_dir in $PATH
18956do
18957  IFS=$as_save_IFS
18958  test -z "$as_dir" && as_dir=.
18959  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18960done
18961IFS=$as_save_IFS
18962
18963     ;;
18964esac
18965# We did not find ourselves, most probably we were run as `sh COMMAND'
18966# in which case we are not to be found in the path.
18967if test "x$as_myself" = x; then
18968  as_myself=$0
18969fi
18970if test ! -f "$as_myself"; then
18971  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18972  { (exit 1); exit 1; }
18973fi
18974
18975# Work around bugs in pre-3.0 UWIN ksh.
18976for as_var in ENV MAIL MAILPATH
18977do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18978done
18979PS1='$ '
18980PS2='> '
18981PS4='+ '
18982
18983# NLS nuisances.
18984LC_ALL=C
18985export LC_ALL
18986LANGUAGE=C
18987export LANGUAGE
18988
18989# Required to use basename.
18990if expr a : '\(a\)' >/dev/null 2>&1 &&
18991   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18992  as_expr=expr
18993else
18994  as_expr=false
18995fi
18996
18997if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18998  as_basename=basename
18999else
19000  as_basename=false
19001fi
19002
19003
19004# Name of the executable.
19005as_me=`$as_basename -- "$0" ||
19006$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19007	 X"$0" : 'X\(//\)$' \| \
19008	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19009$as_echo X/"$0" |
19010    sed '/^.*\/\([^/][^/]*\)\/*$/{
19011	    s//\1/
19012	    q
19013	  }
19014	  /^X\/\(\/\/\)$/{
19015	    s//\1/
19016	    q
19017	  }
19018	  /^X\/\(\/\).*/{
19019	    s//\1/
19020	    q
19021	  }
19022	  s/.*/./; q'`
19023
19024# CDPATH.
19025$as_unset CDPATH
19026
19027
19028
19029  as_lineno_1=$LINENO
19030  as_lineno_2=$LINENO
19031  test "x$as_lineno_1" != "x$as_lineno_2" &&
19032  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
19033
19034  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19035  # uniformly replaced by the line number.  The first 'sed' inserts a
19036  # line-number line after each line using $LINENO; the second 'sed'
19037  # does the real work.  The second script uses 'N' to pair each
19038  # line-number line with the line containing $LINENO, and appends
19039  # trailing '-' during substitution so that $LINENO is not a special
19040  # case at line end.
19041  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19042  # scripts with optimization help from Paolo Bonzini.  Blame Lee
19043  # E. McMahon (1931-1989) for sed's syntax.  :-)
19044  sed -n '
19045    p
19046    /[$]LINENO/=
19047  ' <$as_myself |
19048    sed '
19049      s/[$]LINENO.*/&-/
19050      t lineno
19051      b
19052      :lineno
19053      N
19054      :loop
19055      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
19056      t loop
19057      s/-\n.*//
19058    ' >$as_me.lineno &&
19059  chmod +x "$as_me.lineno" ||
19060    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
19061   { (exit 1); exit 1; }; }
19062
19063  # Don't try to exec as it changes $[0], causing all sort of problems
19064  # (the dirname of $[0] is not the place where we might find the
19065  # original and so on.  Autoconf is especially sensitive to this).
19066  . "./$as_me.lineno"
19067  # Exit status is that of the last command.
19068  exit
19069}
19070
19071
19072if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19073  as_dirname=dirname
19074else
19075  as_dirname=false
19076fi
19077
19078ECHO_C= ECHO_N= ECHO_T=
19079case `echo -n x` in
19080-n*)
19081  case `echo 'x\c'` in
19082  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
19083  *)   ECHO_C='\c';;
19084  esac;;
19085*)
19086  ECHO_N='-n';;
19087esac
19088if expr a : '\(a\)' >/dev/null 2>&1 &&
19089   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19090  as_expr=expr
19091else
19092  as_expr=false
19093fi
19094
19095rm -f conf$$ conf$$.exe conf$$.file
19096if test -d conf$$.dir; then
19097  rm -f conf$$.dir/conf$$.file
19098else
19099  rm -f conf$$.dir
19100  mkdir conf$$.dir 2>/dev/null
19101fi
19102if (echo >conf$$.file) 2>/dev/null; then
19103  if ln -s conf$$.file conf$$ 2>/dev/null; then
19104    as_ln_s='ln -s'
19105    # ... but there are two gotchas:
19106    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19107    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19108    # In both cases, we have to default to `cp -p'.
19109    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19110      as_ln_s='cp -p'
19111  elif ln conf$$.file conf$$ 2>/dev/null; then
19112    as_ln_s=ln
19113  else
19114    as_ln_s='cp -p'
19115  fi
19116else
19117  as_ln_s='cp -p'
19118fi
19119rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19120rmdir conf$$.dir 2>/dev/null
19121
19122if mkdir -p . 2>/dev/null; then
19123  as_mkdir_p=:
19124else
19125  test -d ./-p && rmdir ./-p
19126  as_mkdir_p=false
19127fi
19128
19129if test -x / >/dev/null 2>&1; then
19130  as_test_x='test -x'
19131else
19132  if ls -dL / >/dev/null 2>&1; then
19133    as_ls_L_option=L
19134  else
19135    as_ls_L_option=
19136  fi
19137  as_test_x='
19138    eval sh -c '\''
19139      if test -d "$1"; then
19140	test -d "$1/.";
19141      else
19142	case $1 in
19143	-*)set "./$1";;
19144	esac;
19145	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
19146	???[sx]*):;;*)false;;esac;fi
19147    '\'' sh
19148  '
19149fi
19150as_executable_p=$as_test_x
19151
19152# Sed expression to map a string onto a valid CPP name.
19153as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19154
19155# Sed expression to map a string onto a valid variable name.
19156as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19157
19158
19159exec 6>&1
19160
19161# Save the log message, to keep $[0] and so on meaningful, and to
19162# report actual input values of CONFIG_FILES etc. instead of their
19163# values after options handling.
19164ac_log="
19165This file was extended by PCRE $as_me 8.02, which was
19166generated by GNU Autoconf 2.63.  Invocation command line was
19167
19168  CONFIG_FILES    = $CONFIG_FILES
19169  CONFIG_HEADERS  = $CONFIG_HEADERS
19170  CONFIG_LINKS    = $CONFIG_LINKS
19171  CONFIG_COMMANDS = $CONFIG_COMMANDS
19172  $ $0 $@
19173
19174on `(hostname || uname -n) 2>/dev/null | sed 1q`
19175"
19176
19177_ACEOF
19178
19179case $ac_config_files in *"
19180"*) set x $ac_config_files; shift; ac_config_files=$*;;
19181esac
19182
19183case $ac_config_headers in *"
19184"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19185esac
19186
19187
19188cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19189# Files that config.status was made for.
19190config_files="$ac_config_files"
19191config_headers="$ac_config_headers"
19192config_commands="$ac_config_commands"
19193
19194_ACEOF
19195
19196cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19197ac_cs_usage="\
19198\`$as_me' instantiates files from templates according to the
19199current configuration.
19200
19201Usage: $0 [OPTION]... [FILE]...
19202
19203  -h, --help       print this help, then exit
19204  -V, --version    print version number and configuration settings, then exit
19205  -q, --quiet, --silent
19206                   do not print progress messages
19207  -d, --debug      don't remove temporary files
19208      --recheck    update $as_me by reconfiguring in the same conditions
19209      --file=FILE[:TEMPLATE]
19210                   instantiate the configuration file FILE
19211      --header=FILE[:TEMPLATE]
19212                   instantiate the configuration header FILE
19213
19214Configuration files:
19215$config_files
19216
19217Configuration headers:
19218$config_headers
19219
19220Configuration commands:
19221$config_commands
19222
19223Report bugs to <bug-autoconf@gnu.org>."
19224
19225_ACEOF
19226cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19227ac_cs_version="\\
19228PCRE config.status 8.02
19229configured by $0, generated by GNU Autoconf 2.63,
19230  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
19231
19232Copyright (C) 2008 Free Software Foundation, Inc.
19233This config.status script is free software; the Free Software Foundation
19234gives unlimited permission to copy, distribute and modify it."
19235
19236ac_pwd='$ac_pwd'
19237srcdir='$srcdir'
19238INSTALL='$INSTALL'
19239MKDIR_P='$MKDIR_P'
19240AWK='$AWK'
19241test -n "\$AWK" || AWK=awk
19242_ACEOF
19243
19244cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19245# The default lists apply if the user does not specify any file.
19246ac_need_defaults=:
19247while test $# != 0
19248do
19249  case $1 in
19250  --*=*)
19251    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19252    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19253    ac_shift=:
19254    ;;
19255  *)
19256    ac_option=$1
19257    ac_optarg=$2
19258    ac_shift=shift
19259    ;;
19260  esac
19261
19262  case $ac_option in
19263  # Handling of the options.
19264  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19265    ac_cs_recheck=: ;;
19266  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19267    $as_echo "$ac_cs_version"; exit ;;
19268  --debug | --debu | --deb | --de | --d | -d )
19269    debug=: ;;
19270  --file | --fil | --fi | --f )
19271    $ac_shift
19272    case $ac_optarg in
19273    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19274    esac
19275    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
19276    ac_need_defaults=false;;
19277  --header | --heade | --head | --hea )
19278    $ac_shift
19279    case $ac_optarg in
19280    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19281    esac
19282    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
19283    ac_need_defaults=false;;
19284  --he | --h)
19285    # Conflict between --help and --header
19286    { $as_echo "$as_me: error: ambiguous option: $1
19287Try \`$0 --help' for more information." >&2
19288   { (exit 1); exit 1; }; };;
19289  --help | --hel | -h )
19290    $as_echo "$ac_cs_usage"; exit ;;
19291  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19292  | -silent | --silent | --silen | --sile | --sil | --si | --s)
19293    ac_cs_silent=: ;;
19294
19295  # This is an error.
19296  -*) { $as_echo "$as_me: error: unrecognized option: $1
19297Try \`$0 --help' for more information." >&2
19298   { (exit 1); exit 1; }; } ;;
19299
19300  *) ac_config_targets="$ac_config_targets $1"
19301     ac_need_defaults=false ;;
19302
19303  esac
19304  shift
19305done
19306
19307ac_configure_extra_args=
19308
19309if $ac_cs_silent; then
19310  exec 6>/dev/null
19311  ac_configure_extra_args="$ac_configure_extra_args --silent"
19312fi
19313
19314_ACEOF
19315cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19316if \$ac_cs_recheck; then
19317  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19318  shift
19319  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19320  CONFIG_SHELL='$SHELL'
19321  export CONFIG_SHELL
19322  exec "\$@"
19323fi
19324
19325_ACEOF
19326cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19327exec 5>>config.log
19328{
19329  echo
19330  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19331## Running $as_me. ##
19332_ASBOX
19333  $as_echo "$ac_log"
19334} >&5
19335
19336_ACEOF
19337cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19338#
19339# INIT-COMMANDS
19340#
19341AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19342
19343
19344# The HP-UX ksh and POSIX shell print the target directory to stdout
19345# if CDPATH is set.
19346(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19347
19348sed_quote_subst='$sed_quote_subst'
19349double_quote_subst='$double_quote_subst'
19350delay_variable_subst='$delay_variable_subst'
19351AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
19352DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
19353OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
19354macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
19355macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
19356enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
19357enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
19358pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
19359enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
19360host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
19361host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
19362host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
19363build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
19364build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
19365build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
19366SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
19367Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
19368GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
19369EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
19370FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
19371LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
19372NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
19373LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
19374max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
19375ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
19376exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
19377lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
19378lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
19379lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
19380reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
19381reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19382deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
19383file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
19384AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
19385AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19386STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
19387RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
19388old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19389old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19390old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19391CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
19392CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19393compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
19394GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
19395lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
19396lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
19397lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
19398lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
19399objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
19400SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
19401ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
19402MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
19403lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
19404lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
19405lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
19406lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
19407lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
19408need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
19409DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
19410NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
19411LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
19412OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
19413OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
19414libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
19415shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19416extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19417archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
19418enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
19419export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19420whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19421compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
19422old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19423old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19424archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19425archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19426module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19427module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19428with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
19429allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19430no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19431hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19432hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
19433hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
19434hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
19435hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
19436hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
19437hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19438hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
19439inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
19440link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
19441fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
19442always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
19443export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19444exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19445include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19446prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19447file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
19448variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
19449need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
19450need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
19451version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
19452runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19453shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19454shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
19455libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
19456library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
19457soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
19458postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19459postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19460finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19461finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
19462hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
19463sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
19464sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
19465hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
19466enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
19467enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
19468enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
19469old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
19470striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
19471compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
19472predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
19473postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
19474predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
19475postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
19476compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
19477LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19478old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19479compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19480GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19481lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19482lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19483lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19484lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19485lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19486archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19487enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19488export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19489whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19490compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19491old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19492old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19493archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19494archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19495module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19496module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19497with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19498allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19499no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19500hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19501hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19502hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19503hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19504hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19505hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19506hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19507hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19508inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19509link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19510fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19511always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19512export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19513exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19514include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19515prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19516file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19517hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19518compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19519predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19520postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19521predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19522postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19523compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19524
19525LTCC='$LTCC'
19526LTCFLAGS='$LTCFLAGS'
19527compiler='$compiler_DEFAULT'
19528
19529# Quote evaled strings.
19530for var in SED \
19531GREP \
19532EGREP \
19533FGREP \
19534LD \
19535NM \
19536LN_S \
19537lt_SP2NL \
19538lt_NL2SP \
19539reload_flag \
19540deplibs_check_method \
19541file_magic_cmd \
19542AR \
19543AR_FLAGS \
19544STRIP \
19545RANLIB \
19546CC \
19547CFLAGS \
19548compiler \
19549lt_cv_sys_global_symbol_pipe \
19550lt_cv_sys_global_symbol_to_cdecl \
19551lt_cv_sys_global_symbol_to_c_name_address \
19552lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19553SHELL \
19554ECHO \
19555lt_prog_compiler_no_builtin_flag \
19556lt_prog_compiler_wl \
19557lt_prog_compiler_pic \
19558lt_prog_compiler_static \
19559lt_cv_prog_compiler_c_o \
19560need_locks \
19561DSYMUTIL \
19562NMEDIT \
19563LIPO \
19564OTOOL \
19565OTOOL64 \
19566shrext_cmds \
19567export_dynamic_flag_spec \
19568whole_archive_flag_spec \
19569compiler_needs_object \
19570with_gnu_ld \
19571allow_undefined_flag \
19572no_undefined_flag \
19573hardcode_libdir_flag_spec \
19574hardcode_libdir_flag_spec_ld \
19575hardcode_libdir_separator \
19576fix_srcfile_path \
19577exclude_expsyms \
19578include_expsyms \
19579file_list_spec \
19580variables_saved_for_relink \
19581libname_spec \
19582library_names_spec \
19583soname_spec \
19584finish_eval \
19585old_striplib \
19586striplib \
19587compiler_lib_search_dirs \
19588predep_objects \
19589postdep_objects \
19590predeps \
19591postdeps \
19592compiler_lib_search_path \
19593LD_CXX \
19594compiler_CXX \
19595lt_prog_compiler_no_builtin_flag_CXX \
19596lt_prog_compiler_wl_CXX \
19597lt_prog_compiler_pic_CXX \
19598lt_prog_compiler_static_CXX \
19599lt_cv_prog_compiler_c_o_CXX \
19600export_dynamic_flag_spec_CXX \
19601whole_archive_flag_spec_CXX \
19602compiler_needs_object_CXX \
19603with_gnu_ld_CXX \
19604allow_undefined_flag_CXX \
19605no_undefined_flag_CXX \
19606hardcode_libdir_flag_spec_CXX \
19607hardcode_libdir_flag_spec_ld_CXX \
19608hardcode_libdir_separator_CXX \
19609fix_srcfile_path_CXX \
19610exclude_expsyms_CXX \
19611include_expsyms_CXX \
19612file_list_spec_CXX \
19613compiler_lib_search_dirs_CXX \
19614predep_objects_CXX \
19615postdep_objects_CXX \
19616predeps_CXX \
19617postdeps_CXX \
19618compiler_lib_search_path_CXX; do
19619    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
19620    *[\\\\\\\`\\"\\\$]*)
19621      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19622      ;;
19623    *)
19624      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19625      ;;
19626    esac
19627done
19628
19629# Double-quote double-evaled strings.
19630for var in reload_cmds \
19631old_postinstall_cmds \
19632old_postuninstall_cmds \
19633old_archive_cmds \
19634extract_expsyms_cmds \
19635old_archive_from_new_cmds \
19636old_archive_from_expsyms_cmds \
19637archive_cmds \
19638archive_expsym_cmds \
19639module_cmds \
19640module_expsym_cmds \
19641export_symbols_cmds \
19642prelink_cmds \
19643postinstall_cmds \
19644postuninstall_cmds \
19645finish_cmds \
19646sys_lib_search_path_spec \
19647sys_lib_dlsearch_path_spec \
19648old_archive_cmds_CXX \
19649old_archive_from_new_cmds_CXX \
19650old_archive_from_expsyms_cmds_CXX \
19651archive_cmds_CXX \
19652archive_expsym_cmds_CXX \
19653module_cmds_CXX \
19654module_expsym_cmds_CXX \
19655export_symbols_cmds_CXX \
19656prelink_cmds_CXX; do
19657    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
19658    *[\\\\\\\`\\"\\\$]*)
19659      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19660      ;;
19661    *)
19662      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19663      ;;
19664    esac
19665done
19666
19667# Fix-up fallback echo if it was mangled by the above quoting rules.
19668case \$lt_ECHO in
19669*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
19670  ;;
19671esac
19672
19673ac_aux_dir='$ac_aux_dir'
19674xsi_shell='$xsi_shell'
19675lt_shell_append='$lt_shell_append'
19676
19677# See if we are running on zsh, and set the options which allow our
19678# commands through without removal of \ escapes INIT.
19679if test -n "\${ZSH_VERSION+set}" ; then
19680   setopt NO_GLOB_SUBST
19681fi
19682
19683
19684    PACKAGE='$PACKAGE'
19685    VERSION='$VERSION'
19686    TIMESTAMP='$TIMESTAMP'
19687    RM='$RM'
19688    ofile='$ofile'
19689
19690
19691
19692
19693
19694
19695_ACEOF
19696
19697cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19698
19699# Handling of arguments.
19700for ac_config_target in $ac_config_targets
19701do
19702  case $ac_config_target in
19703    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19704    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19705    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19706    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19707    "libpcre.pc") CONFIG_FILES="$CONFIG_FILES libpcre.pc" ;;
19708    "libpcreposix.pc") CONFIG_FILES="$CONFIG_FILES libpcreposix.pc" ;;
19709    "libpcrecpp.pc") CONFIG_FILES="$CONFIG_FILES libpcrecpp.pc" ;;
19710    "pcre-config") CONFIG_FILES="$CONFIG_FILES pcre-config" ;;
19711    "pcre.h") CONFIG_FILES="$CONFIG_FILES pcre.h" ;;
19712    "pcre_stringpiece.h") CONFIG_FILES="$CONFIG_FILES pcre_stringpiece.h" ;;
19713    "pcrecpparg.h") CONFIG_FILES="$CONFIG_FILES pcrecpparg.h" ;;
19714    "script-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS script-chmod" ;;
19715    "delete-old-chartables") CONFIG_COMMANDS="$CONFIG_COMMANDS delete-old-chartables" ;;
19716
19717  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19718$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19719   { (exit 1); exit 1; }; };;
19720  esac
19721done
19722
19723
19724# If the user did not use the arguments to specify the items to instantiate,
19725# then the envvar interface is used.  Set only those that are not.
19726# We use the long form for the default assignment because of an extremely
19727# bizarre bug on SunOS 4.1.3.
19728if $ac_need_defaults; then
19729  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19730  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19731  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19732fi
19733
19734# Have a temporary directory for convenience.  Make it in the build tree
19735# simply because there is no reason against having it here, and in addition,
19736# creating and moving files from /tmp can sometimes cause problems.
19737# Hook for its removal unless debugging.
19738# Note that there is a small window in which the directory will not be cleaned:
19739# after its creation but before its name has been assigned to `$tmp'.
19740$debug ||
19741{
19742  tmp=
19743  trap 'exit_status=$?
19744  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19745' 0
19746  trap '{ (exit 1); exit 1; }' 1 2 13 15
19747}
19748# Create a (secure) tmp directory for tmp files.
19749
19750{
19751  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19752  test -n "$tmp" && test -d "$tmp"
19753}  ||
19754{
19755  tmp=./conf$$-$RANDOM
19756  (umask 077 && mkdir "$tmp")
19757} ||
19758{
19759   $as_echo "$as_me: cannot create a temporary directory in ." >&2
19760   { (exit 1); exit 1; }
19761}
19762
19763# Set up the scripts for CONFIG_FILES section.
19764# No need to generate them if there are no CONFIG_FILES.
19765# This happens for instance with `./config.status config.h'.
19766if test -n "$CONFIG_FILES"; then
19767
19768
19769ac_cr='
19770'
19771ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19772if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19773  ac_cs_awk_cr='\\r'
19774else
19775  ac_cs_awk_cr=$ac_cr
19776fi
19777
19778echo 'BEGIN {' >"$tmp/subs1.awk" &&
19779_ACEOF
19780
19781
19782{
19783  echo "cat >conf$$subs.awk <<_ACEOF" &&
19784  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19785  echo "_ACEOF"
19786} >conf$$subs.sh ||
19787  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19788$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19789   { (exit 1); exit 1; }; }
19790ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
19791ac_delim='%!_!# '
19792for ac_last_try in false false false false false :; do
19793  . ./conf$$subs.sh ||
19794    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19795$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19796   { (exit 1); exit 1; }; }
19797
19798  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19799  if test $ac_delim_n = $ac_delim_num; then
19800    break
19801  elif $ac_last_try; then
19802    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19803$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19804   { (exit 1); exit 1; }; }
19805  else
19806    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19807  fi
19808done
19809rm -f conf$$subs.sh
19810
19811cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19812cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
19813_ACEOF
19814sed -n '
19815h
19816s/^/S["/; s/!.*/"]=/
19817p
19818g
19819s/^[^!]*!//
19820:repl
19821t repl
19822s/'"$ac_delim"'$//
19823t delim
19824:nl
19825h
19826s/\(.\{148\}\).*/\1/
19827t more1
19828s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19829p
19830n
19831b repl
19832:more1
19833s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19834p
19835g
19836s/.\{148\}//
19837t nl
19838:delim
19839h
19840s/\(.\{148\}\).*/\1/
19841t more2
19842s/["\\]/\\&/g; s/^/"/; s/$/"/
19843p
19844b
19845:more2
19846s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19847p
19848g
19849s/.\{148\}//
19850t delim
19851' <conf$$subs.awk | sed '
19852/^[^""]/{
19853  N
19854  s/\n//
19855}
19856' >>$CONFIG_STATUS || ac_write_fail=1
19857rm -f conf$$subs.awk
19858cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19859_ACAWK
19860cat >>"\$tmp/subs1.awk" <<_ACAWK &&
19861  for (key in S) S_is_set[key] = 1
19862  FS = ""
19863
19864}
19865{
19866  line = $ 0
19867  nfields = split(line, field, "@")
19868  substed = 0
19869  len = length(field[1])
19870  for (i = 2; i < nfields; i++) {
19871    key = field[i]
19872    keylen = length(key)
19873    if (S_is_set[key]) {
19874      value = S[key]
19875      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19876      len += length(value) + length(field[++i])
19877      substed = 1
19878    } else
19879      len += 1 + keylen
19880  }
19881
19882  print line
19883}
19884
19885_ACAWK
19886_ACEOF
19887cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19888if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19889  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19890else
19891  cat
19892fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
19893  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
19894$as_echo "$as_me: error: could not setup config files machinery" >&2;}
19895   { (exit 1); exit 1; }; }
19896_ACEOF
19897
19898# VPATH may cause trouble with some makes, so we remove $(srcdir),
19899# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19900# trailing colons and then remove the whole line if VPATH becomes empty
19901# (actually we leave an empty line to preserve line numbers).
19902if test "x$srcdir" = x.; then
19903  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
19904s/:*\$(srcdir):*/:/
19905s/:*\${srcdir}:*/:/
19906s/:*@srcdir@:*/:/
19907s/^\([^=]*=[	 ]*\):*/\1/
19908s/:*$//
19909s/^[^=]*=[	 ]*$//
19910}'
19911fi
19912
19913cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19914fi # test -n "$CONFIG_FILES"
19915
19916# Set up the scripts for CONFIG_HEADERS section.
19917# No need to generate them if there are no CONFIG_HEADERS.
19918# This happens for instance with `./config.status Makefile'.
19919if test -n "$CONFIG_HEADERS"; then
19920cat >"$tmp/defines.awk" <<\_ACAWK ||
19921BEGIN {
19922_ACEOF
19923
19924# Transform confdefs.h into an awk script `defines.awk', embedded as
19925# here-document in config.status, that substitutes the proper values into
19926# config.h.in to produce config.h.
19927
19928# Create a delimiter string that does not exist in confdefs.h, to ease
19929# handling of long lines.
19930ac_delim='%!_!# '
19931for ac_last_try in false false :; do
19932  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
19933  if test -z "$ac_t"; then
19934    break
19935  elif $ac_last_try; then
19936    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
19937$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
19938   { (exit 1); exit 1; }; }
19939  else
19940    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19941  fi
19942done
19943
19944# For the awk script, D is an array of macro values keyed by name,
19945# likewise P contains macro parameters if any.  Preserve backslash
19946# newline sequences.
19947
19948ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19949sed -n '
19950s/.\{148\}/&'"$ac_delim"'/g
19951t rset
19952:rset
19953s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
19954t def
19955d
19956:def
19957s/\\$//
19958t bsnl
19959s/["\\]/\\&/g
19960s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19961D["\1"]=" \3"/p
19962s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
19963d
19964:bsnl
19965s/["\\]/\\&/g
19966s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19967D["\1"]=" \3\\\\\\n"\\/p
19968t cont
19969s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19970t cont
19971d
19972:cont
19973n
19974s/.\{148\}/&'"$ac_delim"'/g
19975t clear
19976:clear
19977s/\\$//
19978t bsnlc
19979s/["\\]/\\&/g; s/^/"/; s/$/"/p
19980d
19981:bsnlc
19982s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19983b cont
19984' <confdefs.h | sed '
19985s/'"$ac_delim"'/"\\\
19986"/g' >>$CONFIG_STATUS || ac_write_fail=1
19987
19988cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19989  for (key in D) D_is_set[key] = 1
19990  FS = ""
19991}
19992/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19993  line = \$ 0
19994  split(line, arg, " ")
19995  if (arg[1] == "#") {
19996    defundef = arg[2]
19997    mac1 = arg[3]
19998  } else {
19999    defundef = substr(arg[1], 2)
20000    mac1 = arg[2]
20001  }
20002  split(mac1, mac2, "(") #)
20003  macro = mac2[1]
20004  prefix = substr(line, 1, index(line, defundef) - 1)
20005  if (D_is_set[macro]) {
20006    # Preserve the white space surrounding the "#".
20007    print prefix "define", macro P[macro] D[macro]
20008    next
20009  } else {
20010    # Replace #undef with comments.  This is necessary, for example,
20011    # in the case of _POSIX_SOURCE, which is predefined and required
20012    # on some systems where configure will not decide to define it.
20013    if (defundef == "undef") {
20014      print "/*", prefix defundef, macro, "*/"
20015      next
20016    }
20017  }
20018}
20019{ print }
20020_ACAWK
20021_ACEOF
20022cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20023  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
20024$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
20025   { (exit 1); exit 1; }; }
20026fi # test -n "$CONFIG_HEADERS"
20027
20028
20029eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20030shift
20031for ac_tag
20032do
20033  case $ac_tag in
20034  :[FHLC]) ac_mode=$ac_tag; continue;;
20035  esac
20036  case $ac_mode$ac_tag in
20037  :[FHL]*:*);;
20038  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
20039$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
20040   { (exit 1); exit 1; }; };;
20041  :[FH]-) ac_tag=-:-;;
20042  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20043  esac
20044  ac_save_IFS=$IFS
20045  IFS=:
20046  set x $ac_tag
20047  IFS=$ac_save_IFS
20048  shift
20049  ac_file=$1
20050  shift
20051
20052  case $ac_mode in
20053  :L) ac_source=$1;;
20054  :[FH])
20055    ac_file_inputs=
20056    for ac_f
20057    do
20058      case $ac_f in
20059      -) ac_f="$tmp/stdin";;
20060      *) # Look for the file first in the build tree, then in the source tree
20061	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20062	 # because $ac_f cannot contain `:'.
20063	 test -f "$ac_f" ||
20064	   case $ac_f in
20065	   [\\/$]*) false;;
20066	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20067	   esac ||
20068	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20069$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20070   { (exit 1); exit 1; }; };;
20071      esac
20072      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20073      ac_file_inputs="$ac_file_inputs '$ac_f'"
20074    done
20075
20076    # Let's still pretend it is `configure' which instantiates (i.e., don't
20077    # use $as_me), people would be surprised to read:
20078    #    /* config.h.  Generated by config.status.  */
20079    configure_input='Generated from '`
20080	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20081	`' by configure.'
20082    if test x"$ac_file" != x-; then
20083      configure_input="$ac_file.  $configure_input"
20084      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
20085$as_echo "$as_me: creating $ac_file" >&6;}
20086    fi
20087    # Neutralize special characters interpreted by sed in replacement strings.
20088    case $configure_input in #(
20089    *\&* | *\|* | *\\* )
20090       ac_sed_conf_input=`$as_echo "$configure_input" |
20091       sed 's/[\\\\&|]/\\\\&/g'`;; #(
20092    *) ac_sed_conf_input=$configure_input;;
20093    esac
20094
20095    case $ac_tag in
20096    *:-:* | *:-) cat >"$tmp/stdin" \
20097      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
20098$as_echo "$as_me: error: could not create $ac_file" >&2;}
20099   { (exit 1); exit 1; }; } ;;
20100    esac
20101    ;;
20102  esac
20103
20104  ac_dir=`$as_dirname -- "$ac_file" ||
20105$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20106	 X"$ac_file" : 'X\(//\)[^/]' \| \
20107	 X"$ac_file" : 'X\(//\)$' \| \
20108	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20109$as_echo X"$ac_file" |
20110    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20111	    s//\1/
20112	    q
20113	  }
20114	  /^X\(\/\/\)[^/].*/{
20115	    s//\1/
20116	    q
20117	  }
20118	  /^X\(\/\/\)$/{
20119	    s//\1/
20120	    q
20121	  }
20122	  /^X\(\/\).*/{
20123	    s//\1/
20124	    q
20125	  }
20126	  s/.*/./; q'`
20127  { as_dir="$ac_dir"
20128  case $as_dir in #(
20129  -*) as_dir=./$as_dir;;
20130  esac
20131  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20132    as_dirs=
20133    while :; do
20134      case $as_dir in #(
20135      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20136      *) as_qdir=$as_dir;;
20137      esac
20138      as_dirs="'$as_qdir' $as_dirs"
20139      as_dir=`$as_dirname -- "$as_dir" ||
20140$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20141	 X"$as_dir" : 'X\(//\)[^/]' \| \
20142	 X"$as_dir" : 'X\(//\)$' \| \
20143	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20144$as_echo X"$as_dir" |
20145    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20146	    s//\1/
20147	    q
20148	  }
20149	  /^X\(\/\/\)[^/].*/{
20150	    s//\1/
20151	    q
20152	  }
20153	  /^X\(\/\/\)$/{
20154	    s//\1/
20155	    q
20156	  }
20157	  /^X\(\/\).*/{
20158	    s//\1/
20159	    q
20160	  }
20161	  s/.*/./; q'`
20162      test -d "$as_dir" && break
20163    done
20164    test -z "$as_dirs" || eval "mkdir $as_dirs"
20165  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20166$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
20167   { (exit 1); exit 1; }; }; }
20168  ac_builddir=.
20169
20170case "$ac_dir" in
20171.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20172*)
20173  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20174  # A ".." for each directory in $ac_dir_suffix.
20175  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20176  case $ac_top_builddir_sub in
20177  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20178  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20179  esac ;;
20180esac
20181ac_abs_top_builddir=$ac_pwd
20182ac_abs_builddir=$ac_pwd$ac_dir_suffix
20183# for backward compatibility:
20184ac_top_builddir=$ac_top_build_prefix
20185
20186case $srcdir in
20187  .)  # We are building in place.
20188    ac_srcdir=.
20189    ac_top_srcdir=$ac_top_builddir_sub
20190    ac_abs_top_srcdir=$ac_pwd ;;
20191  [\\/]* | ?:[\\/]* )  # Absolute name.
20192    ac_srcdir=$srcdir$ac_dir_suffix;
20193    ac_top_srcdir=$srcdir
20194    ac_abs_top_srcdir=$srcdir ;;
20195  *) # Relative name.
20196    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20197    ac_top_srcdir=$ac_top_build_prefix$srcdir
20198    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20199esac
20200ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20201
20202
20203  case $ac_mode in
20204  :F)
20205  #
20206  # CONFIG_FILE
20207  #
20208
20209  case $INSTALL in
20210  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20211  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20212  esac
20213  ac_MKDIR_P=$MKDIR_P
20214  case $MKDIR_P in
20215  [\\/$]* | ?:[\\/]* ) ;;
20216  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20217  esac
20218_ACEOF
20219
20220cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20221# If the template does not know about datarootdir, expand it.
20222# FIXME: This hack should be removed a few years after 2.60.
20223ac_datarootdir_hack=; ac_datarootdir_seen=
20224
20225ac_sed_dataroot='
20226/datarootdir/ {
20227  p
20228  q
20229}
20230/@datadir@/p
20231/@docdir@/p
20232/@infodir@/p
20233/@localedir@/p
20234/@mandir@/p
20235'
20236case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20237*datarootdir*) ac_datarootdir_seen=yes;;
20238*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20239  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20240$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20241_ACEOF
20242cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20243  ac_datarootdir_hack='
20244  s&@datadir@&$datadir&g
20245  s&@docdir@&$docdir&g
20246  s&@infodir@&$infodir&g
20247  s&@localedir@&$localedir&g
20248  s&@mandir@&$mandir&g
20249    s&\\\${datarootdir}&$datarootdir&g' ;;
20250esac
20251_ACEOF
20252
20253# Neutralize VPATH when `$srcdir' = `.'.
20254# Shell code in configure.ac might set extrasub.
20255# FIXME: do we really want to maintain this feature?
20256cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20257ac_sed_extra="$ac_vpsub
20258$extrasub
20259_ACEOF
20260cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20261:t
20262/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20263s|@configure_input@|$ac_sed_conf_input|;t t
20264s&@top_builddir@&$ac_top_builddir_sub&;t t
20265s&@top_build_prefix@&$ac_top_build_prefix&;t t
20266s&@srcdir@&$ac_srcdir&;t t
20267s&@abs_srcdir@&$ac_abs_srcdir&;t t
20268s&@top_srcdir@&$ac_top_srcdir&;t t
20269s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20270s&@builddir@&$ac_builddir&;t t
20271s&@abs_builddir@&$ac_abs_builddir&;t t
20272s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20273s&@INSTALL@&$ac_INSTALL&;t t
20274s&@MKDIR_P@&$ac_MKDIR_P&;t t
20275$ac_datarootdir_hack
20276"
20277eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
20278  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
20279$as_echo "$as_me: error: could not create $ac_file" >&2;}
20280   { (exit 1); exit 1; }; }
20281
20282test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20283  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20284  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20285  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20286which seems to be undefined.  Please make sure it is defined." >&5
20287$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20288which seems to be undefined.  Please make sure it is defined." >&2;}
20289
20290  rm -f "$tmp/stdin"
20291  case $ac_file in
20292  -) cat "$tmp/out" && rm -f "$tmp/out";;
20293  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
20294  esac \
20295  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
20296$as_echo "$as_me: error: could not create $ac_file" >&2;}
20297   { (exit 1); exit 1; }; }
20298 ;;
20299  :H)
20300  #
20301  # CONFIG_HEADER
20302  #
20303  if test x"$ac_file" != x-; then
20304    {
20305      $as_echo "/* $configure_input  */" \
20306      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
20307    } >"$tmp/config.h" \
20308      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
20309$as_echo "$as_me: error: could not create $ac_file" >&2;}
20310   { (exit 1); exit 1; }; }
20311    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
20312      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20313$as_echo "$as_me: $ac_file is unchanged" >&6;}
20314    else
20315      rm -f "$ac_file"
20316      mv "$tmp/config.h" "$ac_file" \
20317	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
20318$as_echo "$as_me: error: could not create $ac_file" >&2;}
20319   { (exit 1); exit 1; }; }
20320    fi
20321  else
20322    $as_echo "/* $configure_input  */" \
20323      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
20324      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
20325$as_echo "$as_me: error: could not create -" >&2;}
20326   { (exit 1); exit 1; }; }
20327  fi
20328# Compute "$ac_file"'s index in $config_headers.
20329_am_arg="$ac_file"
20330_am_stamp_count=1
20331for _am_header in $config_headers :; do
20332  case $_am_header in
20333    $_am_arg | $_am_arg:* )
20334      break ;;
20335    * )
20336      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20337  esac
20338done
20339echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20340$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20341	 X"$_am_arg" : 'X\(//\)[^/]' \| \
20342	 X"$_am_arg" : 'X\(//\)$' \| \
20343	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20344$as_echo X"$_am_arg" |
20345    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20346	    s//\1/
20347	    q
20348	  }
20349	  /^X\(\/\/\)[^/].*/{
20350	    s//\1/
20351	    q
20352	  }
20353	  /^X\(\/\/\)$/{
20354	    s//\1/
20355	    q
20356	  }
20357	  /^X\(\/\).*/{
20358	    s//\1/
20359	    q
20360	  }
20361	  s/.*/./; q'`/stamp-h$_am_stamp_count
20362 ;;
20363
20364  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
20365$as_echo "$as_me: executing $ac_file commands" >&6;}
20366 ;;
20367  esac
20368
20369
20370  case $ac_file$ac_mode in
20371    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20372  # Autoconf 2.62 quotes --file arguments for eval, but not when files
20373  # are listed without --file.  Let's play safe and only enable the eval
20374  # if we detect the quoting.
20375  case $CONFIG_FILES in
20376  *\'*) eval set x "$CONFIG_FILES" ;;
20377  *)   set x $CONFIG_FILES ;;
20378  esac
20379  shift
20380  for mf
20381  do
20382    # Strip MF so we end up with the name of the file.
20383    mf=`echo "$mf" | sed -e 's/:.*$//'`
20384    # Check whether this is an Automake generated Makefile or not.
20385    # We used to match only the files named `Makefile.in', but
20386    # some people rename them; so instead we look at the file content.
20387    # Grep'ing the first line is not enough: some people post-process
20388    # each Makefile.in and add a new line on top of each file to say so.
20389    # Grep'ing the whole file is not good either: AIX grep has a line
20390    # limit of 2048, but all sed's we know have understand at least 4000.
20391    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20392      dirpart=`$as_dirname -- "$mf" ||
20393$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20394	 X"$mf" : 'X\(//\)[^/]' \| \
20395	 X"$mf" : 'X\(//\)$' \| \
20396	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20397$as_echo X"$mf" |
20398    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20399	    s//\1/
20400	    q
20401	  }
20402	  /^X\(\/\/\)[^/].*/{
20403	    s//\1/
20404	    q
20405	  }
20406	  /^X\(\/\/\)$/{
20407	    s//\1/
20408	    q
20409	  }
20410	  /^X\(\/\).*/{
20411	    s//\1/
20412	    q
20413	  }
20414	  s/.*/./; q'`
20415    else
20416      continue
20417    fi
20418    # Extract the definition of DEPDIR, am__include, and am__quote
20419    # from the Makefile without running `make'.
20420    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20421    test -z "$DEPDIR" && continue
20422    am__include=`sed -n 's/^am__include = //p' < "$mf"`
20423    test -z "am__include" && continue
20424    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20425    # When using ansi2knr, U may be empty or an underscore; expand it
20426    U=`sed -n 's/^U = //p' < "$mf"`
20427    # Find all dependency output files, they are included files with
20428    # $(DEPDIR) in their names.  We invoke sed twice because it is the
20429    # simplest approach to changing $(DEPDIR) to its actual value in the
20430    # expansion.
20431    for file in `sed -n "
20432      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20433	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20434      # Make sure the directory exists.
20435      test -f "$dirpart/$file" && continue
20436      fdir=`$as_dirname -- "$file" ||
20437$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20438	 X"$file" : 'X\(//\)[^/]' \| \
20439	 X"$file" : 'X\(//\)$' \| \
20440	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20441$as_echo X"$file" |
20442    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20443	    s//\1/
20444	    q
20445	  }
20446	  /^X\(\/\/\)[^/].*/{
20447	    s//\1/
20448	    q
20449	  }
20450	  /^X\(\/\/\)$/{
20451	    s//\1/
20452	    q
20453	  }
20454	  /^X\(\/\).*/{
20455	    s//\1/
20456	    q
20457	  }
20458	  s/.*/./; q'`
20459      { as_dir=$dirpart/$fdir
20460  case $as_dir in #(
20461  -*) as_dir=./$as_dir;;
20462  esac
20463  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20464    as_dirs=
20465    while :; do
20466      case $as_dir in #(
20467      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20468      *) as_qdir=$as_dir;;
20469      esac
20470      as_dirs="'$as_qdir' $as_dirs"
20471      as_dir=`$as_dirname -- "$as_dir" ||
20472$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20473	 X"$as_dir" : 'X\(//\)[^/]' \| \
20474	 X"$as_dir" : 'X\(//\)$' \| \
20475	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20476$as_echo X"$as_dir" |
20477    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20478	    s//\1/
20479	    q
20480	  }
20481	  /^X\(\/\/\)[^/].*/{
20482	    s//\1/
20483	    q
20484	  }
20485	  /^X\(\/\/\)$/{
20486	    s//\1/
20487	    q
20488	  }
20489	  /^X\(\/\).*/{
20490	    s//\1/
20491	    q
20492	  }
20493	  s/.*/./; q'`
20494      test -d "$as_dir" && break
20495    done
20496    test -z "$as_dirs" || eval "mkdir $as_dirs"
20497  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20498$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
20499   { (exit 1); exit 1; }; }; }
20500      # echo "creating $dirpart/$file"
20501      echo '# dummy' > "$dirpart/$file"
20502    done
20503  done
20504}
20505 ;;
20506    "libtool":C)
20507
20508    # See if we are running on zsh, and set the options which allow our
20509    # commands through without removal of \ escapes.
20510    if test -n "${ZSH_VERSION+set}" ; then
20511      setopt NO_GLOB_SUBST
20512    fi
20513
20514    cfgfile="${ofile}T"
20515    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20516    $RM "$cfgfile"
20517
20518    cat <<_LT_EOF >> "$cfgfile"
20519#! $SHELL
20520
20521# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20522# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20523# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20524# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20525#
20526#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20527#                 2006, 2007, 2008 Free Software Foundation, Inc.
20528#   Written by Gordon Matzigkeit, 1996
20529#
20530#   This file is part of GNU Libtool.
20531#
20532# GNU Libtool is free software; you can redistribute it and/or
20533# modify it under the terms of the GNU General Public License as
20534# published by the Free Software Foundation; either version 2 of
20535# the License, or (at your option) any later version.
20536#
20537# As a special exception to the GNU General Public License,
20538# if you distribute this file as part of a program or library that
20539# is built using GNU Libtool, you may include this file under the
20540# same distribution terms that you use for the rest of that program.
20541#
20542# GNU Libtool is distributed in the hope that it will be useful,
20543# but WITHOUT ANY WARRANTY; without even the implied warranty of
20544# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20545# GNU General Public License for more details.
20546#
20547# You should have received a copy of the GNU General Public License
20548# along with GNU Libtool; see the file COPYING.  If not, a copy
20549# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20550# obtained by writing to the Free Software Foundation, Inc.,
20551# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20552
20553
20554# The names of the tagged configurations supported by this script.
20555available_tags="CXX "
20556
20557# ### BEGIN LIBTOOL CONFIG
20558
20559# Assembler program.
20560AS=$AS
20561
20562# DLL creation program.
20563DLLTOOL=$DLLTOOL
20564
20565# Object dumper program.
20566OBJDUMP=$OBJDUMP
20567
20568# Which release of libtool.m4 was used?
20569macro_version=$macro_version
20570macro_revision=$macro_revision
20571
20572# Whether or not to build shared libraries.
20573build_libtool_libs=$enable_shared
20574
20575# Whether or not to build static libraries.
20576build_old_libs=$enable_static
20577
20578# What type of objects to build.
20579pic_mode=$pic_mode
20580
20581# Whether or not to optimize for fast installation.
20582fast_install=$enable_fast_install
20583
20584# The host system.
20585host_alias=$host_alias
20586host=$host
20587host_os=$host_os
20588
20589# The build system.
20590build_alias=$build_alias
20591build=$build
20592build_os=$build_os
20593
20594# A sed program that does not truncate output.
20595SED=$lt_SED
20596
20597# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20598Xsed="\$SED -e 1s/^X//"
20599
20600# A grep program that handles long lines.
20601GREP=$lt_GREP
20602
20603# An ERE matcher.
20604EGREP=$lt_EGREP
20605
20606# A literal string matcher.
20607FGREP=$lt_FGREP
20608
20609# A BSD- or MS-compatible name lister.
20610NM=$lt_NM
20611
20612# Whether we need soft or hard links.
20613LN_S=$lt_LN_S
20614
20615# What is the maximum length of a command?
20616max_cmd_len=$max_cmd_len
20617
20618# Object file suffix (normally "o").
20619objext=$ac_objext
20620
20621# Executable file suffix (normally "").
20622exeext=$exeext
20623
20624# whether the shell understands "unset".
20625lt_unset=$lt_unset
20626
20627# turn spaces into newlines.
20628SP2NL=$lt_lt_SP2NL
20629
20630# turn newlines into spaces.
20631NL2SP=$lt_lt_NL2SP
20632
20633# How to create reloadable object files.
20634reload_flag=$lt_reload_flag
20635reload_cmds=$lt_reload_cmds
20636
20637# Method to check whether dependent libraries are shared objects.
20638deplibs_check_method=$lt_deplibs_check_method
20639
20640# Command to use when deplibs_check_method == "file_magic".
20641file_magic_cmd=$lt_file_magic_cmd
20642
20643# The archiver.
20644AR=$lt_AR
20645AR_FLAGS=$lt_AR_FLAGS
20646
20647# A symbol stripping program.
20648STRIP=$lt_STRIP
20649
20650# Commands used to install an old-style archive.
20651RANLIB=$lt_RANLIB
20652old_postinstall_cmds=$lt_old_postinstall_cmds
20653old_postuninstall_cmds=$lt_old_postuninstall_cmds
20654
20655# A C compiler.
20656LTCC=$lt_CC
20657
20658# LTCC compiler flags.
20659LTCFLAGS=$lt_CFLAGS
20660
20661# Take the output of nm and produce a listing of raw symbols and C names.
20662global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20663
20664# Transform the output of nm in a proper C declaration.
20665global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20666
20667# Transform the output of nm in a C name address pair.
20668global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20669
20670# Transform the output of nm in a C name address pair when lib prefix is needed.
20671global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20672
20673# The name of the directory that contains temporary libtool files.
20674objdir=$objdir
20675
20676# Shell to use when invoking shell scripts.
20677SHELL=$lt_SHELL
20678
20679# An echo program that does not interpret backslashes.
20680ECHO=$lt_ECHO
20681
20682# Used to examine libraries when file_magic_cmd begins with "file".
20683MAGIC_CMD=$MAGIC_CMD
20684
20685# Must we lock files when doing compilation?
20686need_locks=$lt_need_locks
20687
20688# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20689DSYMUTIL=$lt_DSYMUTIL
20690
20691# Tool to change global to local symbols on Mac OS X.
20692NMEDIT=$lt_NMEDIT
20693
20694# Tool to manipulate fat objects and archives on Mac OS X.
20695LIPO=$lt_LIPO
20696
20697# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20698OTOOL=$lt_OTOOL
20699
20700# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20701OTOOL64=$lt_OTOOL64
20702
20703# Old archive suffix (normally "a").
20704libext=$libext
20705
20706# Shared library suffix (normally ".so").
20707shrext_cmds=$lt_shrext_cmds
20708
20709# The commands to extract the exported symbol list from a shared archive.
20710extract_expsyms_cmds=$lt_extract_expsyms_cmds
20711
20712# Variables whose values should be saved in libtool wrapper scripts and
20713# restored at link time.
20714variables_saved_for_relink=$lt_variables_saved_for_relink
20715
20716# Do we need the "lib" prefix for modules?
20717need_lib_prefix=$need_lib_prefix
20718
20719# Do we need a version for libraries?
20720need_version=$need_version
20721
20722# Library versioning type.
20723version_type=$version_type
20724
20725# Shared library runtime path variable.
20726runpath_var=$runpath_var
20727
20728# Shared library path variable.
20729shlibpath_var=$shlibpath_var
20730
20731# Is shlibpath searched before the hard-coded library search path?
20732shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20733
20734# Format of library name prefix.
20735libname_spec=$lt_libname_spec
20736
20737# List of archive names.  First name is the real one, the rest are links.
20738# The last name is the one that the linker finds with -lNAME
20739library_names_spec=$lt_library_names_spec
20740
20741# The coded name of the library, if different from the real name.
20742soname_spec=$lt_soname_spec
20743
20744# Command to use after installation of a shared archive.
20745postinstall_cmds=$lt_postinstall_cmds
20746
20747# Command to use after uninstallation of a shared archive.
20748postuninstall_cmds=$lt_postuninstall_cmds
20749
20750# Commands used to finish a libtool library installation in a directory.
20751finish_cmds=$lt_finish_cmds
20752
20753# As "finish_cmds", except a single script fragment to be evaled but
20754# not shown.
20755finish_eval=$lt_finish_eval
20756
20757# Whether we should hardcode library paths into libraries.
20758hardcode_into_libs=$hardcode_into_libs
20759
20760# Compile-time system search path for libraries.
20761sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20762
20763# Run-time system search path for libraries.
20764sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20765
20766# Whether dlopen is supported.
20767dlopen_support=$enable_dlopen
20768
20769# Whether dlopen of programs is supported.
20770dlopen_self=$enable_dlopen_self
20771
20772# Whether dlopen of statically linked programs is supported.
20773dlopen_self_static=$enable_dlopen_self_static
20774
20775# Commands to strip libraries.
20776old_striplib=$lt_old_striplib
20777striplib=$lt_striplib
20778
20779
20780# The linker used to build libraries.
20781LD=$lt_LD
20782
20783# Commands used to build an old-style archive.
20784old_archive_cmds=$lt_old_archive_cmds
20785
20786# A language specific compiler.
20787CC=$lt_compiler
20788
20789# Is the compiler the GNU compiler?
20790with_gcc=$GCC
20791
20792# Compiler flag to turn off builtin functions.
20793no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20794
20795# How to pass a linker flag through the compiler.
20796wl=$lt_lt_prog_compiler_wl
20797
20798# Additional compiler flags for building library objects.
20799pic_flag=$lt_lt_prog_compiler_pic
20800
20801# Compiler flag to prevent dynamic linking.
20802link_static_flag=$lt_lt_prog_compiler_static
20803
20804# Does compiler simultaneously support -c and -o options?
20805compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20806
20807# Whether or not to add -lc for building shared libraries.
20808build_libtool_need_lc=$archive_cmds_need_lc
20809
20810# Whether or not to disallow shared libs when runtime libs are static.
20811allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20812
20813# Compiler flag to allow reflexive dlopens.
20814export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20815
20816# Compiler flag to generate shared objects directly from archives.
20817whole_archive_flag_spec=$lt_whole_archive_flag_spec
20818
20819# Whether the compiler copes with passing no objects directly.
20820compiler_needs_object=$lt_compiler_needs_object
20821
20822# Create an old-style archive from a shared archive.
20823old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20824
20825# Create a temporary old-style archive to link instead of a shared archive.
20826old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20827
20828# Commands used to build a shared archive.
20829archive_cmds=$lt_archive_cmds
20830archive_expsym_cmds=$lt_archive_expsym_cmds
20831
20832# Commands used to build a loadable module if different from building
20833# a shared archive.
20834module_cmds=$lt_module_cmds
20835module_expsym_cmds=$lt_module_expsym_cmds
20836
20837# Whether we are building with GNU ld or not.
20838with_gnu_ld=$lt_with_gnu_ld
20839
20840# Flag that allows shared libraries with undefined symbols to be built.
20841allow_undefined_flag=$lt_allow_undefined_flag
20842
20843# Flag that enforces no undefined symbols.
20844no_undefined_flag=$lt_no_undefined_flag
20845
20846# Flag to hardcode \$libdir into a binary during linking.
20847# This must work even if \$libdir does not exist
20848hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20849
20850# If ld is used when linking, flag to hardcode \$libdir into a binary
20851# during linking.  This must work even if \$libdir does not exist.
20852hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20853
20854# Whether we need a single "-rpath" flag with a separated argument.
20855hardcode_libdir_separator=$lt_hardcode_libdir_separator
20856
20857# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20858# DIR into the resulting binary.
20859hardcode_direct=$hardcode_direct
20860
20861# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20862# DIR into the resulting binary and the resulting library dependency is
20863# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20864# library is relocated.
20865hardcode_direct_absolute=$hardcode_direct_absolute
20866
20867# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20868# into the resulting binary.
20869hardcode_minus_L=$hardcode_minus_L
20870
20871# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20872# into the resulting binary.
20873hardcode_shlibpath_var=$hardcode_shlibpath_var
20874
20875# Set to "yes" if building a shared library automatically hardcodes DIR
20876# into the library and all subsequent libraries and executables linked
20877# against it.
20878hardcode_automatic=$hardcode_automatic
20879
20880# Set to yes if linker adds runtime paths of dependent libraries
20881# to runtime path list.
20882inherit_rpath=$inherit_rpath
20883
20884# Whether libtool must link a program against all its dependency libraries.
20885link_all_deplibs=$link_all_deplibs
20886
20887# Fix the shell variable \$srcfile for the compiler.
20888fix_srcfile_path=$lt_fix_srcfile_path
20889
20890# Set to "yes" if exported symbols are required.
20891always_export_symbols=$always_export_symbols
20892
20893# The commands to list exported symbols.
20894export_symbols_cmds=$lt_export_symbols_cmds
20895
20896# Symbols that should not be listed in the preloaded symbols.
20897exclude_expsyms=$lt_exclude_expsyms
20898
20899# Symbols that must always be exported.
20900include_expsyms=$lt_include_expsyms
20901
20902# Commands necessary for linking programs (against libraries) with templates.
20903prelink_cmds=$lt_prelink_cmds
20904
20905# Specify filename containing input files.
20906file_list_spec=$lt_file_list_spec
20907
20908# How to hardcode a shared library path into an executable.
20909hardcode_action=$hardcode_action
20910
20911# The directories searched by this compiler when creating a shared library.
20912compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20913
20914# Dependencies to place before and after the objects being linked to
20915# create a shared library.
20916predep_objects=$lt_predep_objects
20917postdep_objects=$lt_postdep_objects
20918predeps=$lt_predeps
20919postdeps=$lt_postdeps
20920
20921# The library search path used internally by the compiler when linking
20922# a shared library.
20923compiler_lib_search_path=$lt_compiler_lib_search_path
20924
20925# ### END LIBTOOL CONFIG
20926
20927_LT_EOF
20928
20929  case $host_os in
20930  aix3*)
20931    cat <<\_LT_EOF >> "$cfgfile"
20932# AIX sometimes has problems with the GCC collect2 program.  For some
20933# reason, if we set the COLLECT_NAMES environment variable, the problems
20934# vanish in a puff of smoke.
20935if test "X${COLLECT_NAMES+set}" != Xset; then
20936  COLLECT_NAMES=
20937  export COLLECT_NAMES
20938fi
20939_LT_EOF
20940    ;;
20941  esac
20942
20943
20944ltmain="$ac_aux_dir/ltmain.sh"
20945
20946
20947  # We use sed instead of cat because bash on DJGPP gets confused if
20948  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20949  # text mode, it properly converts lines to CR/LF.  This bash problem
20950  # is reportedly fixed, but why not run on old versions too?
20951  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
20952    || (rm -f "$cfgfile"; exit 1)
20953
20954  case $xsi_shell in
20955  yes)
20956    cat << \_LT_EOF >> "$cfgfile"
20957
20958# func_dirname file append nondir_replacement
20959# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
20960# otherwise set result to NONDIR_REPLACEMENT.
20961func_dirname ()
20962{
20963  case ${1} in
20964    */*) func_dirname_result="${1%/*}${2}" ;;
20965    *  ) func_dirname_result="${3}" ;;
20966  esac
20967}
20968
20969# func_basename file
20970func_basename ()
20971{
20972  func_basename_result="${1##*/}"
20973}
20974
20975# func_dirname_and_basename file append nondir_replacement
20976# perform func_basename and func_dirname in a single function
20977# call:
20978#   dirname:  Compute the dirname of FILE.  If nonempty,
20979#             add APPEND to the result, otherwise set result
20980#             to NONDIR_REPLACEMENT.
20981#             value returned in "$func_dirname_result"
20982#   basename: Compute filename of FILE.
20983#             value retuned in "$func_basename_result"
20984# Implementation must be kept synchronized with func_dirname
20985# and func_basename. For efficiency, we do not delegate to
20986# those functions but instead duplicate the functionality here.
20987func_dirname_and_basename ()
20988{
20989  case ${1} in
20990    */*) func_dirname_result="${1%/*}${2}" ;;
20991    *  ) func_dirname_result="${3}" ;;
20992  esac
20993  func_basename_result="${1##*/}"
20994}
20995
20996# func_stripname prefix suffix name
20997# strip PREFIX and SUFFIX off of NAME.
20998# PREFIX and SUFFIX must not contain globbing or regex special
20999# characters, hashes, percent signs, but SUFFIX may contain a leading
21000# dot (in which case that matches only a dot).
21001func_stripname ()
21002{
21003  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
21004  # positional parameters, so assign one to ordinary parameter first.
21005  func_stripname_result=${3}
21006  func_stripname_result=${func_stripname_result#"${1}"}
21007  func_stripname_result=${func_stripname_result%"${2}"}
21008}
21009
21010# func_opt_split
21011func_opt_split ()
21012{
21013  func_opt_split_opt=${1%%=*}
21014  func_opt_split_arg=${1#*=}
21015}
21016
21017# func_lo2o object
21018func_lo2o ()
21019{
21020  case ${1} in
21021    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
21022    *)    func_lo2o_result=${1} ;;
21023  esac
21024}
21025
21026# func_xform libobj-or-source
21027func_xform ()
21028{
21029  func_xform_result=${1%.*}.lo
21030}
21031
21032# func_arith arithmetic-term...
21033func_arith ()
21034{
21035  func_arith_result=$(( $* ))
21036}
21037
21038# func_len string
21039# STRING may not start with a hyphen.
21040func_len ()
21041{
21042  func_len_result=${#1}
21043}
21044
21045_LT_EOF
21046    ;;
21047  *) # Bourne compatible functions.
21048    cat << \_LT_EOF >> "$cfgfile"
21049
21050# func_dirname file append nondir_replacement
21051# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
21052# otherwise set result to NONDIR_REPLACEMENT.
21053func_dirname ()
21054{
21055  # Extract subdirectory from the argument.
21056  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
21057  if test "X$func_dirname_result" = "X${1}"; then
21058    func_dirname_result="${3}"
21059  else
21060    func_dirname_result="$func_dirname_result${2}"
21061  fi
21062}
21063
21064# func_basename file
21065func_basename ()
21066{
21067  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
21068}
21069
21070
21071# func_stripname prefix suffix name
21072# strip PREFIX and SUFFIX off of NAME.
21073# PREFIX and SUFFIX must not contain globbing or regex special
21074# characters, hashes, percent signs, but SUFFIX may contain a leading
21075# dot (in which case that matches only a dot).
21076# func_strip_suffix prefix name
21077func_stripname ()
21078{
21079  case ${2} in
21080    .*) func_stripname_result=`$ECHO "X${3}" \
21081           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
21082    *)  func_stripname_result=`$ECHO "X${3}" \
21083           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
21084  esac
21085}
21086
21087# sed scripts:
21088my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
21089my_sed_long_arg='1s/^-[^=]*=//'
21090
21091# func_opt_split
21092func_opt_split ()
21093{
21094  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
21095  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
21096}
21097
21098# func_lo2o object
21099func_lo2o ()
21100{
21101  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
21102}
21103
21104# func_xform libobj-or-source
21105func_xform ()
21106{
21107  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
21108}
21109
21110# func_arith arithmetic-term...
21111func_arith ()
21112{
21113  func_arith_result=`expr "$@"`
21114}
21115
21116# func_len string
21117# STRING may not start with a hyphen.
21118func_len ()
21119{
21120  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
21121}
21122
21123_LT_EOF
21124esac
21125
21126case $lt_shell_append in
21127  yes)
21128    cat << \_LT_EOF >> "$cfgfile"
21129
21130# func_append var value
21131# Append VALUE to the end of shell variable VAR.
21132func_append ()
21133{
21134  eval "$1+=\$2"
21135}
21136_LT_EOF
21137    ;;
21138  *)
21139    cat << \_LT_EOF >> "$cfgfile"
21140
21141# func_append var value
21142# Append VALUE to the end of shell variable VAR.
21143func_append ()
21144{
21145  eval "$1=\$$1\$2"
21146}
21147
21148_LT_EOF
21149    ;;
21150  esac
21151
21152
21153  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
21154    || (rm -f "$cfgfile"; exit 1)
21155
21156  mv -f "$cfgfile" "$ofile" ||
21157    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21158  chmod +x "$ofile"
21159
21160
21161    cat <<_LT_EOF >> "$ofile"
21162
21163# ### BEGIN LIBTOOL TAG CONFIG: CXX
21164
21165# The linker used to build libraries.
21166LD=$lt_LD_CXX
21167
21168# Commands used to build an old-style archive.
21169old_archive_cmds=$lt_old_archive_cmds_CXX
21170
21171# A language specific compiler.
21172CC=$lt_compiler_CXX
21173
21174# Is the compiler the GNU compiler?
21175with_gcc=$GCC_CXX
21176
21177# Compiler flag to turn off builtin functions.
21178no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21179
21180# How to pass a linker flag through the compiler.
21181wl=$lt_lt_prog_compiler_wl_CXX
21182
21183# Additional compiler flags for building library objects.
21184pic_flag=$lt_lt_prog_compiler_pic_CXX
21185
21186# Compiler flag to prevent dynamic linking.
21187link_static_flag=$lt_lt_prog_compiler_static_CXX
21188
21189# Does compiler simultaneously support -c and -o options?
21190compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21191
21192# Whether or not to add -lc for building shared libraries.
21193build_libtool_need_lc=$archive_cmds_need_lc_CXX
21194
21195# Whether or not to disallow shared libs when runtime libs are static.
21196allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21197
21198# Compiler flag to allow reflexive dlopens.
21199export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21200
21201# Compiler flag to generate shared objects directly from archives.
21202whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21203
21204# Whether the compiler copes with passing no objects directly.
21205compiler_needs_object=$lt_compiler_needs_object_CXX
21206
21207# Create an old-style archive from a shared archive.
21208old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21209
21210# Create a temporary old-style archive to link instead of a shared archive.
21211old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21212
21213# Commands used to build a shared archive.
21214archive_cmds=$lt_archive_cmds_CXX
21215archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21216
21217# Commands used to build a loadable module if different from building
21218# a shared archive.
21219module_cmds=$lt_module_cmds_CXX
21220module_expsym_cmds=$lt_module_expsym_cmds_CXX
21221
21222# Whether we are building with GNU ld or not.
21223with_gnu_ld=$lt_with_gnu_ld_CXX
21224
21225# Flag that allows shared libraries with undefined symbols to be built.
21226allow_undefined_flag=$lt_allow_undefined_flag_CXX
21227
21228# Flag that enforces no undefined symbols.
21229no_undefined_flag=$lt_no_undefined_flag_CXX
21230
21231# Flag to hardcode \$libdir into a binary during linking.
21232# This must work even if \$libdir does not exist
21233hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21234
21235# If ld is used when linking, flag to hardcode \$libdir into a binary
21236# during linking.  This must work even if \$libdir does not exist.
21237hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21238
21239# Whether we need a single "-rpath" flag with a separated argument.
21240hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21241
21242# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21243# DIR into the resulting binary.
21244hardcode_direct=$hardcode_direct_CXX
21245
21246# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21247# DIR into the resulting binary and the resulting library dependency is
21248# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21249# library is relocated.
21250hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21251
21252# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21253# into the resulting binary.
21254hardcode_minus_L=$hardcode_minus_L_CXX
21255
21256# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21257# into the resulting binary.
21258hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21259
21260# Set to "yes" if building a shared library automatically hardcodes DIR
21261# into the library and all subsequent libraries and executables linked
21262# against it.
21263hardcode_automatic=$hardcode_automatic_CXX
21264
21265# Set to yes if linker adds runtime paths of dependent libraries
21266# to runtime path list.
21267inherit_rpath=$inherit_rpath_CXX
21268
21269# Whether libtool must link a program against all its dependency libraries.
21270link_all_deplibs=$link_all_deplibs_CXX
21271
21272# Fix the shell variable \$srcfile for the compiler.
21273fix_srcfile_path=$lt_fix_srcfile_path_CXX
21274
21275# Set to "yes" if exported symbols are required.
21276always_export_symbols=$always_export_symbols_CXX
21277
21278# The commands to list exported symbols.
21279export_symbols_cmds=$lt_export_symbols_cmds_CXX
21280
21281# Symbols that should not be listed in the preloaded symbols.
21282exclude_expsyms=$lt_exclude_expsyms_CXX
21283
21284# Symbols that must always be exported.
21285include_expsyms=$lt_include_expsyms_CXX
21286
21287# Commands necessary for linking programs (against libraries) with templates.
21288prelink_cmds=$lt_prelink_cmds_CXX
21289
21290# Specify filename containing input files.
21291file_list_spec=$lt_file_list_spec_CXX
21292
21293# How to hardcode a shared library path into an executable.
21294hardcode_action=$hardcode_action_CXX
21295
21296# The directories searched by this compiler when creating a shared library.
21297compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21298
21299# Dependencies to place before and after the objects being linked to
21300# create a shared library.
21301predep_objects=$lt_predep_objects_CXX
21302postdep_objects=$lt_postdep_objects_CXX
21303predeps=$lt_predeps_CXX
21304postdeps=$lt_postdeps_CXX
21305
21306# The library search path used internally by the compiler when linking
21307# a shared library.
21308compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21309
21310# ### END LIBTOOL TAG CONFIG: CXX
21311_LT_EOF
21312
21313 ;;
21314    "script-chmod":C) chmod a+x pcre-config ;;
21315    "delete-old-chartables":C) rm -f pcre_chartables.c ;;
21316
21317  esac
21318done # for ac_tag
21319
21320
21321{ (exit 0); exit 0; }
21322_ACEOF
21323chmod +x $CONFIG_STATUS
21324ac_clean_files=$ac_clean_files_save
21325
21326test $ac_write_fail = 0 ||
21327  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
21328$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
21329   { (exit 1); exit 1; }; }
21330
21331
21332# configure is writing to config.log, and then calls config.status.
21333# config.status does its own redirection, appending to config.log.
21334# Unfortunately, on DOS this fails, as config.log is still kept open
21335# by configure, so config.status won't be able to write to it; its
21336# output is simply discarded.  So we exec the FD to /dev/null,
21337# effectively closing config.log, so it can be properly (re)opened and
21338# appended to by config.status.  When coming back to configure, we
21339# need to make the FD available again.
21340if test "$no_create" != yes; then
21341  ac_cs_success=:
21342  ac_config_status_args=
21343  test "$silent" = yes &&
21344    ac_config_status_args="$ac_config_status_args --quiet"
21345  exec 5>/dev/null
21346  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21347  exec 5>>config.log
21348  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21349  # would make configure fail if this is the last instruction.
21350  $ac_cs_success || { (exit 1); exit 1; }
21351fi
21352if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21353  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21354$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21355fi
21356
21357
21358# Print out a nice little message after configure is run displaying your
21359# chosen options.
21360
21361cat <<EOF
21362
21363$PACKAGE-$VERSION configuration summary:
21364
21365    Install prefix .................. : ${prefix}
21366    C preprocessor .................. : ${CPP}
21367    C compiler ...................... : ${CC}
21368    C++ preprocessor ................ : ${CXXCPP}
21369    C++ compiler .................... : ${CXX}
21370    Linker .......................... : ${LD}
21371    C preprocessor flags ............ : ${CPPFLAGS}
21372    C compiler flags ................ : ${CFLAGS}
21373    C++ compiler flags .............. : ${CXXFLAGS}
21374    Linker flags .................... : ${LDFLAGS}
21375    Extra libraries ................. : ${LIBS}
21376
21377    Build C++ library ............... : ${enable_cpp}
21378    Enable UTF-8 support ............ : ${enable_utf8}
21379    Unicode properties .............. : ${enable_unicode_properties}
21380    Newline char/sequence ........... : ${enable_newline}
21381    \R matches only ANYCRLF ......... : ${enable_bsr_anycrlf}
21382    EBCDIC coding ................... : ${enable_ebcdic}
21383    Rebuild char tables ............. : ${enable_rebuild_chartables}
21384    Use stack recursion ............. : ${enable_stack_for_recursion}
21385    POSIX mem threshold ............. : ${with_posix_malloc_threshold}
21386    Internal link size .............. : ${with_link_size}
21387    Match limit ..................... : ${with_match_limit}
21388    Match limit recursion ........... : ${with_match_limit_recursion}
21389    Build shared libs ............... : ${enable_shared}
21390    Build static libs ............... : ${enable_static}
21391    Link pcregrep with libz ......... : ${enable_pcregrep_libz}
21392    Link pcregrep with libbz2 ....... : ${enable_pcregrep_libbz2}
21393    Link pcretest with libreadline .. : ${enable_pcretest_libreadline}
21394
21395EOF
21396
21397