1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for the fast lexical analyser generator 2.6.4.
4#
5# Report bugs to <flex-help@lists.sourceforge.net>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    PATH=/empty FPATH=/empty; export PATH FPATH
207    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: flex-help@lists.sourceforge.net about your system,
279$0: including any error possibly output before this
280$0: message. Then install a modern shell, or manually run
281$0: the script under such a shell if you do have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='the fast lexical analyser generator'
592PACKAGE_TARNAME='flex'
593PACKAGE_VERSION='2.6.4'
594PACKAGE_STRING='the fast lexical analyser generator 2.6.4'
595PACKAGE_BUGREPORT='flex-help@lists.sourceforge.net'
596PACKAGE_URL=''
597
598ac_unique_file="src/scan.l"
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613#  include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618#  include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635ac_config_libobj_dir=lib
636gt_needs=
637ac_subst_vars='am__EXEEXT_FALSE
638am__EXEEXT_TRUE
639LTLIBOBJS
640LIBOBJS
641ALLOCA
642LIBPTHREAD
643INDENT
644M4
645TEXI2DVI
646HELP2MAN
647CROSS_FALSE
648CROSS_TRUE
649ENABLE_BOOTSTRAP_FALSE
650ENABLE_BOOTSTRAP_TRUE
651ENABLE_LIBFL_FALSE
652ENABLE_LIBFL_TRUE
653WARNINGFLAGS
654am__fastdepCXX_FALSE
655am__fastdepCXX_TRUE
656CXXDEPMODE
657CXXCPP
658ac_ct_CXX
659CXXFLAGS
660CXX
661LDFLAGS_FOR_BUILD
662CPPFLAGS_FOR_BUILD
663CFLAGS_FOR_BUILD
664BUILD_OBJEXT
665BUILD_EXEEXT
666CPP_FOR_BUILD
667ac_ct_CC_FOR_BUILD
668CC_FOR_BUILD
669LEXLIB
670LEX_OUTPUT_ROOT
671LEX
672HAVE_BISON_FALSE
673HAVE_BISON_TRUE
674YFLAGS
675YACC
676POSUB
677LTLIBINTL
678LIBINTL
679INTLLIBS
680LTLIBICONV
681LIBICONV
682INTL_MACOSX_LIBS
683XGETTEXT_EXTRA_OPTIONS
684MSGMERGE
685XGETTEXT_015
686XGETTEXT
687GMSGFMT_015
688MSGFMT_015
689GMSGFMT
690MSGFMT
691GETTEXT_MACRO_VERSION
692USE_NLS
693SHARED_VERSION_INFO
694AM_BACKSLASH
695AM_DEFAULT_VERBOSITY
696AM_DEFAULT_V
697AM_V
698am__fastdepCC_FALSE
699am__fastdepCC_TRUE
700CCDEPMODE
701am__nodep
702AMDEPBACKSLASH
703AMDEP_FALSE
704AMDEP_TRUE
705am__quote
706am__include
707DEPDIR
708am__untar
709am__tar
710AMTAR
711am__leading_dot
712SET_MAKE
713mkdir_p
714MKDIR_P
715INSTALL_STRIP_PROGRAM
716install_sh
717MAKEINFO
718AUTOHEADER
719AUTOMAKE
720AUTOCONF
721ACLOCAL
722VERSION
723PACKAGE
724CYGPATH_W
725am__isrc
726INSTALL_DATA
727INSTALL_SCRIPT
728INSTALL_PROGRAM
729CPP
730LT_SYS_LIBRARY_PATH
731OTOOL64
732OTOOL
733LIPO
734NMEDIT
735DSYMUTIL
736MANIFEST_TOOL
737AWK
738RANLIB
739STRIP
740ac_ct_AR
741AR
742DLLTOOL
743OBJDUMP
744LN_S
745NM
746ac_ct_DUMPBIN
747DUMPBIN
748LD
749FGREP
750EGREP
751GREP
752SED
753OBJEXT
754EXEEXT
755ac_ct_CC
756CPPFLAGS
757LDFLAGS
758CFLAGS
759CC
760host_os
761host_vendor
762host_cpu
763host
764build_os
765build_vendor
766build_cpu
767build
768LIBTOOL
769target_alias
770host_alias
771build_alias
772LIBS
773ECHO_T
774ECHO_N
775ECHO_C
776DEFS
777mandir
778localedir
779libdir
780psdir
781pdfdir
782dvidir
783htmldir
784infodir
785docdir
786oldincludedir
787includedir
788runstatedir
789localstatedir
790sharedstatedir
791sysconfdir
792datadir
793datarootdir
794libexecdir
795sbindir
796bindir
797program_transform_name
798prefix
799exec_prefix
800PACKAGE_URL
801PACKAGE_BUGREPORT
802PACKAGE_STRING
803PACKAGE_VERSION
804PACKAGE_TARNAME
805PACKAGE_NAME
806PATH_SEPARATOR
807SHELL'
808ac_subst_files=''
809ac_user_opts='
810enable_option_checking
811enable_shared
812enable_static
813with_pic
814enable_fast_install
815with_aix_soname
816with_gnu_ld
817with_sysroot
818enable_libtool_lock
819enable_dependency_tracking
820enable_silent_rules
821enable_nls
822enable_rpath
823with_libiconv_prefix
824with_libintl_prefix
825enable_warnings
826enable_libfl
827enable_bootstrap
828'
829      ac_precious_vars='build_alias
830host_alias
831target_alias
832CC
833CFLAGS
834LDFLAGS
835LIBS
836CPPFLAGS
837LT_SYS_LIBRARY_PATH
838CPP
839YACC
840YFLAGS
841CXX
842CXXFLAGS
843CCC
844CXXCPP'
845
846
847# Initialize some variables set by options.
848ac_init_help=
849ac_init_version=false
850ac_unrecognized_opts=
851ac_unrecognized_sep=
852# The variables have the same names as the options, with
853# dashes changed to underlines.
854cache_file=/dev/null
855exec_prefix=NONE
856no_create=
857no_recursion=
858prefix=NONE
859program_prefix=NONE
860program_suffix=NONE
861program_transform_name=s,x,x,
862silent=
863site=
864srcdir=
865verbose=
866x_includes=NONE
867x_libraries=NONE
868
869# Installation directory options.
870# These are left unexpanded so users can "make install exec_prefix=/foo"
871# and all the variables that are supposed to be based on exec_prefix
872# by default will actually change.
873# Use braces instead of parens because sh, perl, etc. also accept them.
874# (The list follows the same order as the GNU Coding Standards.)
875bindir='${exec_prefix}/bin'
876sbindir='${exec_prefix}/sbin'
877libexecdir='${exec_prefix}/libexec'
878datarootdir='${prefix}/share'
879datadir='${datarootdir}'
880sysconfdir='${prefix}/etc'
881sharedstatedir='${prefix}/com'
882localstatedir='${prefix}/var'
883runstatedir='${localstatedir}/run'
884includedir='${prefix}/include'
885oldincludedir='/usr/include'
886docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
887infodir='${datarootdir}/info'
888htmldir='${docdir}'
889dvidir='${docdir}'
890pdfdir='${docdir}'
891psdir='${docdir}'
892libdir='${exec_prefix}/lib'
893localedir='${datarootdir}/locale'
894mandir='${datarootdir}/man'
895
896ac_prev=
897ac_dashdash=
898for ac_option
899do
900  # If the previous option needs an argument, assign it.
901  if test -n "$ac_prev"; then
902    eval $ac_prev=\$ac_option
903    ac_prev=
904    continue
905  fi
906
907  case $ac_option in
908  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
909  *=)   ac_optarg= ;;
910  *)    ac_optarg=yes ;;
911  esac
912
913  # Accept the important Cygnus configure options, so we can diagnose typos.
914
915  case $ac_dashdash$ac_option in
916  --)
917    ac_dashdash=yes ;;
918
919  -bindir | --bindir | --bindi | --bind | --bin | --bi)
920    ac_prev=bindir ;;
921  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
922    bindir=$ac_optarg ;;
923
924  -build | --build | --buil | --bui | --bu)
925    ac_prev=build_alias ;;
926  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
927    build_alias=$ac_optarg ;;
928
929  -cache-file | --cache-file | --cache-fil | --cache-fi \
930  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
931    ac_prev=cache_file ;;
932  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
933  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
934    cache_file=$ac_optarg ;;
935
936  --config-cache | -C)
937    cache_file=config.cache ;;
938
939  -datadir | --datadir | --datadi | --datad)
940    ac_prev=datadir ;;
941  -datadir=* | --datadir=* | --datadi=* | --datad=*)
942    datadir=$ac_optarg ;;
943
944  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
945  | --dataroo | --dataro | --datar)
946    ac_prev=datarootdir ;;
947  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
948  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
949    datarootdir=$ac_optarg ;;
950
951  -disable-* | --disable-*)
952    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
953    # Reject names that are not valid shell variable names.
954    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
955      as_fn_error $? "invalid feature name: $ac_useropt"
956    ac_useropt_orig=$ac_useropt
957    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
958    case $ac_user_opts in
959      *"
960"enable_$ac_useropt"
961"*) ;;
962      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
963	 ac_unrecognized_sep=', ';;
964    esac
965    eval enable_$ac_useropt=no ;;
966
967  -docdir | --docdir | --docdi | --doc | --do)
968    ac_prev=docdir ;;
969  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
970    docdir=$ac_optarg ;;
971
972  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
973    ac_prev=dvidir ;;
974  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
975    dvidir=$ac_optarg ;;
976
977  -enable-* | --enable-*)
978    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
979    # Reject names that are not valid shell variable names.
980    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
981      as_fn_error $? "invalid feature name: $ac_useropt"
982    ac_useropt_orig=$ac_useropt
983    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
984    case $ac_user_opts in
985      *"
986"enable_$ac_useropt"
987"*) ;;
988      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
989	 ac_unrecognized_sep=', ';;
990    esac
991    eval enable_$ac_useropt=\$ac_optarg ;;
992
993  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
994  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
995  | --exec | --exe | --ex)
996    ac_prev=exec_prefix ;;
997  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
998  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
999  | --exec=* | --exe=* | --ex=*)
1000    exec_prefix=$ac_optarg ;;
1001
1002  -gas | --gas | --ga | --g)
1003    # Obsolete; use --with-gas.
1004    with_gas=yes ;;
1005
1006  -help | --help | --hel | --he | -h)
1007    ac_init_help=long ;;
1008  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1009    ac_init_help=recursive ;;
1010  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1011    ac_init_help=short ;;
1012
1013  -host | --host | --hos | --ho)
1014    ac_prev=host_alias ;;
1015  -host=* | --host=* | --hos=* | --ho=*)
1016    host_alias=$ac_optarg ;;
1017
1018  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1019    ac_prev=htmldir ;;
1020  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1021  | --ht=*)
1022    htmldir=$ac_optarg ;;
1023
1024  -includedir | --includedir | --includedi | --included | --include \
1025  | --includ | --inclu | --incl | --inc)
1026    ac_prev=includedir ;;
1027  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1028  | --includ=* | --inclu=* | --incl=* | --inc=*)
1029    includedir=$ac_optarg ;;
1030
1031  -infodir | --infodir | --infodi | --infod | --info | --inf)
1032    ac_prev=infodir ;;
1033  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1034    infodir=$ac_optarg ;;
1035
1036  -libdir | --libdir | --libdi | --libd)
1037    ac_prev=libdir ;;
1038  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1039    libdir=$ac_optarg ;;
1040
1041  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1042  | --libexe | --libex | --libe)
1043    ac_prev=libexecdir ;;
1044  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1045  | --libexe=* | --libex=* | --libe=*)
1046    libexecdir=$ac_optarg ;;
1047
1048  -localedir | --localedir | --localedi | --localed | --locale)
1049    ac_prev=localedir ;;
1050  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1051    localedir=$ac_optarg ;;
1052
1053  -localstatedir | --localstatedir | --localstatedi | --localstated \
1054  | --localstate | --localstat | --localsta | --localst | --locals)
1055    ac_prev=localstatedir ;;
1056  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1057  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1058    localstatedir=$ac_optarg ;;
1059
1060  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1061    ac_prev=mandir ;;
1062  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1063    mandir=$ac_optarg ;;
1064
1065  -nfp | --nfp | --nf)
1066    # Obsolete; use --without-fp.
1067    with_fp=no ;;
1068
1069  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1070  | --no-cr | --no-c | -n)
1071    no_create=yes ;;
1072
1073  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1074  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1075    no_recursion=yes ;;
1076
1077  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1078  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1079  | --oldin | --oldi | --old | --ol | --o)
1080    ac_prev=oldincludedir ;;
1081  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1082  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1083  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1084    oldincludedir=$ac_optarg ;;
1085
1086  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1087    ac_prev=prefix ;;
1088  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1089    prefix=$ac_optarg ;;
1090
1091  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1092  | --program-pre | --program-pr | --program-p)
1093    ac_prev=program_prefix ;;
1094  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1095  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1096    program_prefix=$ac_optarg ;;
1097
1098  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1099  | --program-suf | --program-su | --program-s)
1100    ac_prev=program_suffix ;;
1101  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1102  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1103    program_suffix=$ac_optarg ;;
1104
1105  -program-transform-name | --program-transform-name \
1106  | --program-transform-nam | --program-transform-na \
1107  | --program-transform-n | --program-transform- \
1108  | --program-transform | --program-transfor \
1109  | --program-transfo | --program-transf \
1110  | --program-trans | --program-tran \
1111  | --progr-tra | --program-tr | --program-t)
1112    ac_prev=program_transform_name ;;
1113  -program-transform-name=* | --program-transform-name=* \
1114  | --program-transform-nam=* | --program-transform-na=* \
1115  | --program-transform-n=* | --program-transform-=* \
1116  | --program-transform=* | --program-transfor=* \
1117  | --program-transfo=* | --program-transf=* \
1118  | --program-trans=* | --program-tran=* \
1119  | --progr-tra=* | --program-tr=* | --program-t=*)
1120    program_transform_name=$ac_optarg ;;
1121
1122  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1123    ac_prev=pdfdir ;;
1124  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1125    pdfdir=$ac_optarg ;;
1126
1127  -psdir | --psdir | --psdi | --psd | --ps)
1128    ac_prev=psdir ;;
1129  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1130    psdir=$ac_optarg ;;
1131
1132  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1133  | -silent | --silent | --silen | --sile | --sil)
1134    silent=yes ;;
1135
1136  -runstatedir | --runstatedir | --runstatedi | --runstated \
1137  | --runstate | --runstat | --runsta | --runst | --runs \
1138  | --run | --ru | --r)
1139    ac_prev=runstatedir ;;
1140  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1141  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1142  | --run=* | --ru=* | --r=*)
1143    runstatedir=$ac_optarg ;;
1144
1145  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1146    ac_prev=sbindir ;;
1147  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1148  | --sbi=* | --sb=*)
1149    sbindir=$ac_optarg ;;
1150
1151  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1152  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1153  | --sharedst | --shareds | --shared | --share | --shar \
1154  | --sha | --sh)
1155    ac_prev=sharedstatedir ;;
1156  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1157  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1158  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1159  | --sha=* | --sh=*)
1160    sharedstatedir=$ac_optarg ;;
1161
1162  -site | --site | --sit)
1163    ac_prev=site ;;
1164  -site=* | --site=* | --sit=*)
1165    site=$ac_optarg ;;
1166
1167  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1168    ac_prev=srcdir ;;
1169  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1170    srcdir=$ac_optarg ;;
1171
1172  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1173  | --syscon | --sysco | --sysc | --sys | --sy)
1174    ac_prev=sysconfdir ;;
1175  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1176  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1177    sysconfdir=$ac_optarg ;;
1178
1179  -target | --target | --targe | --targ | --tar | --ta | --t)
1180    ac_prev=target_alias ;;
1181  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1182    target_alias=$ac_optarg ;;
1183
1184  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1185    verbose=yes ;;
1186
1187  -version | --version | --versio | --versi | --vers | -V)
1188    ac_init_version=: ;;
1189
1190  -with-* | --with-*)
1191    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1192    # Reject names that are not valid shell variable names.
1193    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1194      as_fn_error $? "invalid package name: $ac_useropt"
1195    ac_useropt_orig=$ac_useropt
1196    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1197    case $ac_user_opts in
1198      *"
1199"with_$ac_useropt"
1200"*) ;;
1201      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1202	 ac_unrecognized_sep=', ';;
1203    esac
1204    eval with_$ac_useropt=\$ac_optarg ;;
1205
1206  -without-* | --without-*)
1207    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1208    # Reject names that are not valid shell variable names.
1209    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1210      as_fn_error $? "invalid package name: $ac_useropt"
1211    ac_useropt_orig=$ac_useropt
1212    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1213    case $ac_user_opts in
1214      *"
1215"with_$ac_useropt"
1216"*) ;;
1217      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1218	 ac_unrecognized_sep=', ';;
1219    esac
1220    eval with_$ac_useropt=no ;;
1221
1222  --x)
1223    # Obsolete; use --with-x.
1224    with_x=yes ;;
1225
1226  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1227  | --x-incl | --x-inc | --x-in | --x-i)
1228    ac_prev=x_includes ;;
1229  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1230  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1231    x_includes=$ac_optarg ;;
1232
1233  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1234  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1235    ac_prev=x_libraries ;;
1236  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1237  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1238    x_libraries=$ac_optarg ;;
1239
1240  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1241Try \`$0 --help' for more information"
1242    ;;
1243
1244  *=*)
1245    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1246    # Reject names that are not valid shell variable names.
1247    case $ac_envvar in #(
1248      '' | [0-9]* | *[!_$as_cr_alnum]* )
1249      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1250    esac
1251    eval $ac_envvar=\$ac_optarg
1252    export $ac_envvar ;;
1253
1254  *)
1255    # FIXME: should be removed in autoconf 3.0.
1256    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1257    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1258      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1259    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1260    ;;
1261
1262  esac
1263done
1264
1265if test -n "$ac_prev"; then
1266  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1267  as_fn_error $? "missing argument to $ac_option"
1268fi
1269
1270if test -n "$ac_unrecognized_opts"; then
1271  case $enable_option_checking in
1272    no) ;;
1273    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1274    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1275  esac
1276fi
1277
1278# Check all directory arguments for consistency.
1279for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1280		datadir sysconfdir sharedstatedir localstatedir includedir \
1281		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1282		libdir localedir mandir runstatedir
1283do
1284  eval ac_val=\$$ac_var
1285  # Remove trailing slashes.
1286  case $ac_val in
1287    */ )
1288      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1289      eval $ac_var=\$ac_val;;
1290  esac
1291  # Be sure to have absolute directory names.
1292  case $ac_val in
1293    [\\/$]* | ?:[\\/]* )  continue;;
1294    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1295  esac
1296  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1297done
1298
1299# There might be people who depend on the old broken behavior: `$host'
1300# used to hold the argument of --host etc.
1301# FIXME: To remove some day.
1302build=$build_alias
1303host=$host_alias
1304target=$target_alias
1305
1306# FIXME: To remove some day.
1307if test "x$host_alias" != x; then
1308  if test "x$build_alias" = x; then
1309    cross_compiling=maybe
1310  elif test "x$build_alias" != "x$host_alias"; then
1311    cross_compiling=yes
1312  fi
1313fi
1314
1315ac_tool_prefix=
1316test -n "$host_alias" && ac_tool_prefix=$host_alias-
1317
1318test "$silent" = yes && exec 6>/dev/null
1319
1320
1321ac_pwd=`pwd` && test -n "$ac_pwd" &&
1322ac_ls_di=`ls -di .` &&
1323ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1324  as_fn_error $? "working directory cannot be determined"
1325test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1326  as_fn_error $? "pwd does not report name of working directory"
1327
1328
1329# Find the source files, if location was not specified.
1330if test -z "$srcdir"; then
1331  ac_srcdir_defaulted=yes
1332  # Try the directory containing this script, then the parent directory.
1333  ac_confdir=`$as_dirname -- "$as_myself" ||
1334$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1335	 X"$as_myself" : 'X\(//\)[^/]' \| \
1336	 X"$as_myself" : 'X\(//\)$' \| \
1337	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1338$as_echo X"$as_myself" |
1339    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1340	    s//\1/
1341	    q
1342	  }
1343	  /^X\(\/\/\)[^/].*/{
1344	    s//\1/
1345	    q
1346	  }
1347	  /^X\(\/\/\)$/{
1348	    s//\1/
1349	    q
1350	  }
1351	  /^X\(\/\).*/{
1352	    s//\1/
1353	    q
1354	  }
1355	  s/.*/./; q'`
1356  srcdir=$ac_confdir
1357  if test ! -r "$srcdir/$ac_unique_file"; then
1358    srcdir=..
1359  fi
1360else
1361  ac_srcdir_defaulted=no
1362fi
1363if test ! -r "$srcdir/$ac_unique_file"; then
1364  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1365  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1366fi
1367ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1368ac_abs_confdir=`(
1369	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1370	pwd)`
1371# When building in place, set srcdir=.
1372if test "$ac_abs_confdir" = "$ac_pwd"; then
1373  srcdir=.
1374fi
1375# Remove unnecessary trailing slashes from srcdir.
1376# Double slashes in file names in object file debugging info
1377# mess up M-x gdb in Emacs.
1378case $srcdir in
1379*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1380esac
1381for ac_var in $ac_precious_vars; do
1382  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1383  eval ac_env_${ac_var}_value=\$${ac_var}
1384  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1385  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1386done
1387
1388#
1389# Report the --help message.
1390#
1391if test "$ac_init_help" = "long"; then
1392  # Omit some internal or obsolete options to make the list less imposing.
1393  # This message is too long to be a string in the A/UX 3.1 sh.
1394  cat <<_ACEOF
1395\`configure' configures the fast lexical analyser generator 2.6.4 to adapt to many kinds of systems.
1396
1397Usage: $0 [OPTION]... [VAR=VALUE]...
1398
1399To assign environment variables (e.g., CC, CFLAGS...), specify them as
1400VAR=VALUE.  See below for descriptions of some of the useful variables.
1401
1402Defaults for the options are specified in brackets.
1403
1404Configuration:
1405  -h, --help              display this help and exit
1406      --help=short        display options specific to this package
1407      --help=recursive    display the short help of all the included packages
1408  -V, --version           display version information and exit
1409  -q, --quiet, --silent   do not print \`checking ...' messages
1410      --cache-file=FILE   cache test results in FILE [disabled]
1411  -C, --config-cache      alias for \`--cache-file=config.cache'
1412  -n, --no-create         do not create output files
1413      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1414
1415Installation directories:
1416  --prefix=PREFIX         install architecture-independent files in PREFIX
1417                          [$ac_default_prefix]
1418  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1419                          [PREFIX]
1420
1421By default, \`make install' will install all the files in
1422\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1423an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1424for instance \`--prefix=\$HOME'.
1425
1426For better control, use the options below.
1427
1428Fine tuning of the installation directories:
1429  --bindir=DIR            user executables [EPREFIX/bin]
1430  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1431  --libexecdir=DIR        program executables [EPREFIX/libexec]
1432  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1433  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1434  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1435  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1436  --libdir=DIR            object code libraries [EPREFIX/lib]
1437  --includedir=DIR        C header files [PREFIX/include]
1438  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1439  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1440  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1441  --infodir=DIR           info documentation [DATAROOTDIR/info]
1442  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1443  --mandir=DIR            man documentation [DATAROOTDIR/man]
1444  --docdir=DIR            documentation root [DATAROOTDIR/doc/flex]
1445  --htmldir=DIR           html documentation [DOCDIR]
1446  --dvidir=DIR            dvi documentation [DOCDIR]
1447  --pdfdir=DIR            pdf documentation [DOCDIR]
1448  --psdir=DIR             ps documentation [DOCDIR]
1449_ACEOF
1450
1451  cat <<\_ACEOF
1452
1453Program names:
1454  --program-prefix=PREFIX            prepend PREFIX to installed program names
1455  --program-suffix=SUFFIX            append SUFFIX to installed program names
1456  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1457
1458System types:
1459  --build=BUILD     configure for building on BUILD [guessed]
1460  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1461_ACEOF
1462fi
1463
1464if test -n "$ac_init_help"; then
1465  case $ac_init_help in
1466     short | recursive ) echo "Configuration of the fast lexical analyser generator 2.6.4:";;
1467   esac
1468  cat <<\_ACEOF
1469
1470Optional Features:
1471  --disable-option-checking  ignore unrecognized --enable/--with options
1472  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1473  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1474  --enable-shared[=PKGS]  build shared libraries [default=yes]
1475  --enable-static[=PKGS]  build static libraries [default=yes]
1476  --enable-fast-install[=PKGS]
1477                          optimize for fast installation [default=yes]
1478  --disable-libtool-lock  avoid locking (might break parallel builds)
1479  --enable-dependency-tracking
1480                          do not reject slow dependency extractors
1481  --disable-dependency-tracking
1482                          speeds up one-time build
1483  --enable-silent-rules   less verbose build output (undo: "make V=1")
1484  --disable-silent-rules  verbose build output (undo: "make V=0")
1485  --disable-nls           do not use Native Language Support
1486  --disable-rpath         do not hardcode runtime library paths
1487  --enable-warnings       enable a bunch of compiler warning flags (defaults
1488                          to GCC warning flags).
1489  --disable-libfl         do not build -lfl runtime support library
1490  --disable-bootstrap     don't perform a bootstrap when building flex
1491
1492Optional Packages:
1493  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1494  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1495  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1496                          both]
1497  --with-aix-soname=aix|svr4|both
1498                          shared library versioning (aka "SONAME") variant to
1499                          provide on AIX, [default=aix].
1500  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1501  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1502                          compiler's sysroot if not specified).
1503  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1504  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1505  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1506  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1507  --without-libintl-prefix     don't search for libintl in includedir and libdir
1508
1509Some influential environment variables:
1510  CC          C compiler command
1511  CFLAGS      C compiler flags
1512  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1513              nonstandard directory <lib dir>
1514  LIBS        libraries to pass to the linker, e.g. -l<library>
1515  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1516              you have headers in a nonstandard directory <include dir>
1517  LT_SYS_LIBRARY_PATH
1518              User-defined run-time library search path.
1519  CPP         C preprocessor
1520  YACC        The `Yet Another Compiler Compiler' implementation to use.
1521              Defaults to the first program found out of: `bison -y', `byacc',
1522              `yacc'.
1523  YFLAGS      The list of arguments that will be passed by default to $YACC.
1524              This script will default YFLAGS to the empty string to avoid a
1525              default value of `-d' given by some make applications.
1526  CXX         C++ compiler command
1527  CXXFLAGS    C++ compiler flags
1528  CXXCPP      C++ preprocessor
1529
1530Use these variables to override the choices made by `configure' or to help
1531it to find libraries and programs with nonstandard names/locations.
1532
1533Report bugs to <flex-help@lists.sourceforge.net>.
1534_ACEOF
1535ac_status=$?
1536fi
1537
1538if test "$ac_init_help" = "recursive"; then
1539  # If there are subdirs, report their specific --help.
1540  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1541    test -d "$ac_dir" ||
1542      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1543      continue
1544    ac_builddir=.
1545
1546case "$ac_dir" in
1547.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1548*)
1549  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1550  # A ".." for each directory in $ac_dir_suffix.
1551  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1552  case $ac_top_builddir_sub in
1553  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1554  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1555  esac ;;
1556esac
1557ac_abs_top_builddir=$ac_pwd
1558ac_abs_builddir=$ac_pwd$ac_dir_suffix
1559# for backward compatibility:
1560ac_top_builddir=$ac_top_build_prefix
1561
1562case $srcdir in
1563  .)  # We are building in place.
1564    ac_srcdir=.
1565    ac_top_srcdir=$ac_top_builddir_sub
1566    ac_abs_top_srcdir=$ac_pwd ;;
1567  [\\/]* | ?:[\\/]* )  # Absolute name.
1568    ac_srcdir=$srcdir$ac_dir_suffix;
1569    ac_top_srcdir=$srcdir
1570    ac_abs_top_srcdir=$srcdir ;;
1571  *) # Relative name.
1572    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1573    ac_top_srcdir=$ac_top_build_prefix$srcdir
1574    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1575esac
1576ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1577
1578    cd "$ac_dir" || { ac_status=$?; continue; }
1579    # Check for guested configure.
1580    if test -f "$ac_srcdir/configure.gnu"; then
1581      echo &&
1582      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1583    elif test -f "$ac_srcdir/configure"; then
1584      echo &&
1585      $SHELL "$ac_srcdir/configure" --help=recursive
1586    else
1587      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1588    fi || ac_status=$?
1589    cd "$ac_pwd" || { ac_status=$?; break; }
1590  done
1591fi
1592
1593test -n "$ac_init_help" && exit $ac_status
1594if $ac_init_version; then
1595  cat <<\_ACEOF
1596the fast lexical analyser generator configure 2.6.4
1597generated by GNU Autoconf 2.69
1598
1599Copyright (C) 2012 Free Software Foundation, Inc.
1600This configure script is free software; the Free Software Foundation
1601gives unlimited permission to copy, distribute and modify it.
1602_ACEOF
1603  exit
1604fi
1605
1606## ------------------------ ##
1607## Autoconf initialization. ##
1608## ------------------------ ##
1609
1610# ac_fn_c_try_compile LINENO
1611# --------------------------
1612# Try to compile conftest.$ac_ext, and return whether this succeeded.
1613ac_fn_c_try_compile ()
1614{
1615  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1616  rm -f conftest.$ac_objext
1617  if { { ac_try="$ac_compile"
1618case "(($ac_try" in
1619  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1620  *) ac_try_echo=$ac_try;;
1621esac
1622eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1623$as_echo "$ac_try_echo"; } >&5
1624  (eval "$ac_compile") 2>conftest.err
1625  ac_status=$?
1626  if test -s conftest.err; then
1627    grep -v '^ *+' conftest.err >conftest.er1
1628    cat conftest.er1 >&5
1629    mv -f conftest.er1 conftest.err
1630  fi
1631  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1632  test $ac_status = 0; } && {
1633	 test -z "$ac_c_werror_flag" ||
1634	 test ! -s conftest.err
1635       } && test -s conftest.$ac_objext; then :
1636  ac_retval=0
1637else
1638  $as_echo "$as_me: failed program was:" >&5
1639sed 's/^/| /' conftest.$ac_ext >&5
1640
1641	ac_retval=1
1642fi
1643  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1644  as_fn_set_status $ac_retval
1645
1646} # ac_fn_c_try_compile
1647
1648# ac_fn_c_try_link LINENO
1649# -----------------------
1650# Try to link conftest.$ac_ext, and return whether this succeeded.
1651ac_fn_c_try_link ()
1652{
1653  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654  rm -f conftest.$ac_objext conftest$ac_exeext
1655  if { { ac_try="$ac_link"
1656case "(($ac_try" in
1657  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1658  *) ac_try_echo=$ac_try;;
1659esac
1660eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1661$as_echo "$ac_try_echo"; } >&5
1662  (eval "$ac_link") 2>conftest.err
1663  ac_status=$?
1664  if test -s conftest.err; then
1665    grep -v '^ *+' conftest.err >conftest.er1
1666    cat conftest.er1 >&5
1667    mv -f conftest.er1 conftest.err
1668  fi
1669  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1670  test $ac_status = 0; } && {
1671	 test -z "$ac_c_werror_flag" ||
1672	 test ! -s conftest.err
1673       } && test -s conftest$ac_exeext && {
1674	 test "$cross_compiling" = yes ||
1675	 test -x conftest$ac_exeext
1676       }; then :
1677  ac_retval=0
1678else
1679  $as_echo "$as_me: failed program was:" >&5
1680sed 's/^/| /' conftest.$ac_ext >&5
1681
1682	ac_retval=1
1683fi
1684  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1685  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1686  # interfere with the next link command; also delete a directory that is
1687  # left behind by Apple's compiler.  We do this before executing the actions.
1688  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1689  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1690  as_fn_set_status $ac_retval
1691
1692} # ac_fn_c_try_link
1693
1694# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1695# -------------------------------------------------------
1696# Tests whether HEADER exists and can be compiled using the include files in
1697# INCLUDES, setting the cache variable VAR accordingly.
1698ac_fn_c_check_header_compile ()
1699{
1700  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1702$as_echo_n "checking for $2... " >&6; }
1703if eval \${$3+:} false; then :
1704  $as_echo_n "(cached) " >&6
1705else
1706  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1707/* end confdefs.h.  */
1708$4
1709#include <$2>
1710_ACEOF
1711if ac_fn_c_try_compile "$LINENO"; then :
1712  eval "$3=yes"
1713else
1714  eval "$3=no"
1715fi
1716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1717fi
1718eval ac_res=\$$3
1719	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1720$as_echo "$ac_res" >&6; }
1721  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722
1723} # ac_fn_c_check_header_compile
1724
1725# ac_fn_c_try_cpp LINENO
1726# ----------------------
1727# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1728ac_fn_c_try_cpp ()
1729{
1730  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731  if { { ac_try="$ac_cpp conftest.$ac_ext"
1732case "(($ac_try" in
1733  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734  *) ac_try_echo=$ac_try;;
1735esac
1736eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737$as_echo "$ac_try_echo"; } >&5
1738  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1739  ac_status=$?
1740  if test -s conftest.err; then
1741    grep -v '^ *+' conftest.err >conftest.er1
1742    cat conftest.er1 >&5
1743    mv -f conftest.er1 conftest.err
1744  fi
1745  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746  test $ac_status = 0; } > conftest.i && {
1747	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1748	 test ! -s conftest.err
1749       }; then :
1750  ac_retval=0
1751else
1752  $as_echo "$as_me: failed program was:" >&5
1753sed 's/^/| /' conftest.$ac_ext >&5
1754
1755    ac_retval=1
1756fi
1757  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1758  as_fn_set_status $ac_retval
1759
1760} # ac_fn_c_try_cpp
1761
1762# ac_fn_c_try_run LINENO
1763# ----------------------
1764# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1765# that executables *can* be run.
1766ac_fn_c_try_run ()
1767{
1768  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769  if { { ac_try="$ac_link"
1770case "(($ac_try" in
1771  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772  *) ac_try_echo=$ac_try;;
1773esac
1774eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775$as_echo "$ac_try_echo"; } >&5
1776  (eval "$ac_link") 2>&5
1777  ac_status=$?
1778  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1780  { { case "(($ac_try" in
1781  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1782  *) ac_try_echo=$ac_try;;
1783esac
1784eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1785$as_echo "$ac_try_echo"; } >&5
1786  (eval "$ac_try") 2>&5
1787  ac_status=$?
1788  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1789  test $ac_status = 0; }; }; then :
1790  ac_retval=0
1791else
1792  $as_echo "$as_me: program exited with status $ac_status" >&5
1793       $as_echo "$as_me: failed program was:" >&5
1794sed 's/^/| /' conftest.$ac_ext >&5
1795
1796       ac_retval=$ac_status
1797fi
1798  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1799  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800  as_fn_set_status $ac_retval
1801
1802} # ac_fn_c_try_run
1803
1804# ac_fn_c_check_func LINENO FUNC VAR
1805# ----------------------------------
1806# Tests whether FUNC exists, setting the cache variable VAR accordingly
1807ac_fn_c_check_func ()
1808{
1809  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1811$as_echo_n "checking for $2... " >&6; }
1812if eval \${$3+:} false; then :
1813  $as_echo_n "(cached) " >&6
1814else
1815  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1816/* end confdefs.h.  */
1817/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1818   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1819#define $2 innocuous_$2
1820
1821/* System header to define __stub macros and hopefully few prototypes,
1822    which can conflict with char $2 (); below.
1823    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1824    <limits.h> exists even on freestanding compilers.  */
1825
1826#ifdef __STDC__
1827# include <limits.h>
1828#else
1829# include <assert.h>
1830#endif
1831
1832#undef $2
1833
1834/* Override any GCC internal prototype to avoid an error.
1835   Use char because int might match the return type of a GCC
1836   builtin and then its argument prototype would still apply.  */
1837#ifdef __cplusplus
1838extern "C"
1839#endif
1840char $2 ();
1841/* The GNU C library defines this for functions which it implements
1842    to always fail with ENOSYS.  Some functions are actually named
1843    something starting with __ and the normal name is an alias.  */
1844#if defined __stub_$2 || defined __stub___$2
1845choke me
1846#endif
1847
1848int
1849main ()
1850{
1851return $2 ();
1852  ;
1853  return 0;
1854}
1855_ACEOF
1856if ac_fn_c_try_link "$LINENO"; then :
1857  eval "$3=yes"
1858else
1859  eval "$3=no"
1860fi
1861rm -f core conftest.err conftest.$ac_objext \
1862    conftest$ac_exeext conftest.$ac_ext
1863fi
1864eval ac_res=\$$3
1865	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1866$as_echo "$ac_res" >&6; }
1867  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1868
1869} # ac_fn_c_check_func
1870
1871# ac_fn_cxx_try_compile LINENO
1872# ----------------------------
1873# Try to compile conftest.$ac_ext, and return whether this succeeded.
1874ac_fn_cxx_try_compile ()
1875{
1876  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877  rm -f conftest.$ac_objext
1878  if { { ac_try="$ac_compile"
1879case "(($ac_try" in
1880  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1881  *) ac_try_echo=$ac_try;;
1882esac
1883eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1884$as_echo "$ac_try_echo"; } >&5
1885  (eval "$ac_compile") 2>conftest.err
1886  ac_status=$?
1887  if test -s conftest.err; then
1888    grep -v '^ *+' conftest.err >conftest.er1
1889    cat conftest.er1 >&5
1890    mv -f conftest.er1 conftest.err
1891  fi
1892  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1893  test $ac_status = 0; } && {
1894	 test -z "$ac_cxx_werror_flag" ||
1895	 test ! -s conftest.err
1896       } && test -s conftest.$ac_objext; then :
1897  ac_retval=0
1898else
1899  $as_echo "$as_me: failed program was:" >&5
1900sed 's/^/| /' conftest.$ac_ext >&5
1901
1902	ac_retval=1
1903fi
1904  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1905  as_fn_set_status $ac_retval
1906
1907} # ac_fn_cxx_try_compile
1908
1909# ac_fn_cxx_try_cpp LINENO
1910# ------------------------
1911# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1912ac_fn_cxx_try_cpp ()
1913{
1914  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1915  if { { ac_try="$ac_cpp conftest.$ac_ext"
1916case "(($ac_try" in
1917  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1918  *) ac_try_echo=$ac_try;;
1919esac
1920eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1921$as_echo "$ac_try_echo"; } >&5
1922  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1923  ac_status=$?
1924  if test -s conftest.err; then
1925    grep -v '^ *+' conftest.err >conftest.er1
1926    cat conftest.er1 >&5
1927    mv -f conftest.er1 conftest.err
1928  fi
1929  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1930  test $ac_status = 0; } > conftest.i && {
1931	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1932	 test ! -s conftest.err
1933       }; then :
1934  ac_retval=0
1935else
1936  $as_echo "$as_me: failed program was:" >&5
1937sed 's/^/| /' conftest.$ac_ext >&5
1938
1939    ac_retval=1
1940fi
1941  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1942  as_fn_set_status $ac_retval
1943
1944} # ac_fn_cxx_try_cpp
1945
1946# ac_fn_cxx_try_link LINENO
1947# -------------------------
1948# Try to link conftest.$ac_ext, and return whether this succeeded.
1949ac_fn_cxx_try_link ()
1950{
1951  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1952  rm -f conftest.$ac_objext conftest$ac_exeext
1953  if { { ac_try="$ac_link"
1954case "(($ac_try" in
1955  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1956  *) ac_try_echo=$ac_try;;
1957esac
1958eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1959$as_echo "$ac_try_echo"; } >&5
1960  (eval "$ac_link") 2>conftest.err
1961  ac_status=$?
1962  if test -s conftest.err; then
1963    grep -v '^ *+' conftest.err >conftest.er1
1964    cat conftest.er1 >&5
1965    mv -f conftest.er1 conftest.err
1966  fi
1967  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1968  test $ac_status = 0; } && {
1969	 test -z "$ac_cxx_werror_flag" ||
1970	 test ! -s conftest.err
1971       } && test -s conftest$ac_exeext && {
1972	 test "$cross_compiling" = yes ||
1973	 test -x conftest$ac_exeext
1974       }; then :
1975  ac_retval=0
1976else
1977  $as_echo "$as_me: failed program was:" >&5
1978sed 's/^/| /' conftest.$ac_ext >&5
1979
1980	ac_retval=1
1981fi
1982  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1983  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1984  # interfere with the next link command; also delete a directory that is
1985  # left behind by Apple's compiler.  We do this before executing the actions.
1986  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1987  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1988  as_fn_set_status $ac_retval
1989
1990} # ac_fn_cxx_try_link
1991
1992# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1993# -------------------------------------------------------
1994# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1995# the include files in INCLUDES and setting the cache variable VAR
1996# accordingly.
1997ac_fn_c_check_header_mongrel ()
1998{
1999  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2000  if eval \${$3+:} false; then :
2001  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2002$as_echo_n "checking for $2... " >&6; }
2003if eval \${$3+:} false; then :
2004  $as_echo_n "(cached) " >&6
2005fi
2006eval ac_res=\$$3
2007	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2008$as_echo "$ac_res" >&6; }
2009else
2010  # Is the header compilable?
2011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2012$as_echo_n "checking $2 usability... " >&6; }
2013cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2014/* end confdefs.h.  */
2015$4
2016#include <$2>
2017_ACEOF
2018if ac_fn_c_try_compile "$LINENO"; then :
2019  ac_header_compiler=yes
2020else
2021  ac_header_compiler=no
2022fi
2023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2025$as_echo "$ac_header_compiler" >&6; }
2026
2027# Is the header present?
2028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2029$as_echo_n "checking $2 presence... " >&6; }
2030cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2031/* end confdefs.h.  */
2032#include <$2>
2033_ACEOF
2034if ac_fn_c_try_cpp "$LINENO"; then :
2035  ac_header_preproc=yes
2036else
2037  ac_header_preproc=no
2038fi
2039rm -f conftest.err conftest.i conftest.$ac_ext
2040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2041$as_echo "$ac_header_preproc" >&6; }
2042
2043# So?  What about this header?
2044case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2045  yes:no: )
2046    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2047$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2048    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2049$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2050    ;;
2051  no:yes:* )
2052    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2053$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2054    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2055$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2056    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2057$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2058    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2059$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2060    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2061$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2062( $as_echo "## ---------------------------------------------- ##
2063## Report this to flex-help@lists.sourceforge.net ##
2064## ---------------------------------------------- ##"
2065     ) | sed "s/^/$as_me: WARNING:     /" >&2
2066    ;;
2067esac
2068  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2069$as_echo_n "checking for $2... " >&6; }
2070if eval \${$3+:} false; then :
2071  $as_echo_n "(cached) " >&6
2072else
2073  eval "$3=\$ac_header_compiler"
2074fi
2075eval ac_res=\$$3
2076	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2077$as_echo "$ac_res" >&6; }
2078fi
2079  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2080
2081} # ac_fn_c_check_header_mongrel
2082
2083# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2084# -------------------------------------------
2085# Tests whether TYPE exists after having included INCLUDES, setting cache
2086# variable VAR accordingly.
2087ac_fn_c_check_type ()
2088{
2089  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2090  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2091$as_echo_n "checking for $2... " >&6; }
2092if eval \${$3+:} false; then :
2093  $as_echo_n "(cached) " >&6
2094else
2095  eval "$3=no"
2096  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2097/* end confdefs.h.  */
2098$4
2099int
2100main ()
2101{
2102if (sizeof ($2))
2103	 return 0;
2104  ;
2105  return 0;
2106}
2107_ACEOF
2108if ac_fn_c_try_compile "$LINENO"; then :
2109  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2110/* end confdefs.h.  */
2111$4
2112int
2113main ()
2114{
2115if (sizeof (($2)))
2116	    return 0;
2117  ;
2118  return 0;
2119}
2120_ACEOF
2121if ac_fn_c_try_compile "$LINENO"; then :
2122
2123else
2124  eval "$3=yes"
2125fi
2126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2127fi
2128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2129fi
2130eval ac_res=\$$3
2131	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2132$as_echo "$ac_res" >&6; }
2133  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2134
2135} # ac_fn_c_check_type
2136cat >config.log <<_ACEOF
2137This file contains any messages produced by compilers while
2138running configure, to aid debugging if configure makes a mistake.
2139
2140It was created by the fast lexical analyser generator $as_me 2.6.4, which was
2141generated by GNU Autoconf 2.69.  Invocation command line was
2142
2143  $ $0 $@
2144
2145_ACEOF
2146exec 5>>config.log
2147{
2148cat <<_ASUNAME
2149## --------- ##
2150## Platform. ##
2151## --------- ##
2152
2153hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2154uname -m = `(uname -m) 2>/dev/null || echo unknown`
2155uname -r = `(uname -r) 2>/dev/null || echo unknown`
2156uname -s = `(uname -s) 2>/dev/null || echo unknown`
2157uname -v = `(uname -v) 2>/dev/null || echo unknown`
2158
2159/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2160/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2161
2162/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2163/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2164/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2165/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2166/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2167/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2168/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2169
2170_ASUNAME
2171
2172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2173for as_dir in $PATH
2174do
2175  IFS=$as_save_IFS
2176  test -z "$as_dir" && as_dir=.
2177    $as_echo "PATH: $as_dir"
2178  done
2179IFS=$as_save_IFS
2180
2181} >&5
2182
2183cat >&5 <<_ACEOF
2184
2185
2186## ----------- ##
2187## Core tests. ##
2188## ----------- ##
2189
2190_ACEOF
2191
2192
2193# Keep a trace of the command line.
2194# Strip out --no-create and --no-recursion so they do not pile up.
2195# Strip out --silent because we don't want to record it for future runs.
2196# Also quote any args containing shell meta-characters.
2197# Make two passes to allow for proper duplicate-argument suppression.
2198ac_configure_args=
2199ac_configure_args0=
2200ac_configure_args1=
2201ac_must_keep_next=false
2202for ac_pass in 1 2
2203do
2204  for ac_arg
2205  do
2206    case $ac_arg in
2207    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2208    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2209    | -silent | --silent | --silen | --sile | --sil)
2210      continue ;;
2211    *\'*)
2212      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2213    esac
2214    case $ac_pass in
2215    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2216    2)
2217      as_fn_append ac_configure_args1 " '$ac_arg'"
2218      if test $ac_must_keep_next = true; then
2219	ac_must_keep_next=false # Got value, back to normal.
2220      else
2221	case $ac_arg in
2222	  *=* | --config-cache | -C | -disable-* | --disable-* \
2223	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2224	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2225	  | -with-* | --with-* | -without-* | --without-* | --x)
2226	    case "$ac_configure_args0 " in
2227	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2228	    esac
2229	    ;;
2230	  -* ) ac_must_keep_next=true ;;
2231	esac
2232      fi
2233      as_fn_append ac_configure_args " '$ac_arg'"
2234      ;;
2235    esac
2236  done
2237done
2238{ ac_configure_args0=; unset ac_configure_args0;}
2239{ ac_configure_args1=; unset ac_configure_args1;}
2240
2241# When interrupted or exit'd, cleanup temporary files, and complete
2242# config.log.  We remove comments because anyway the quotes in there
2243# would cause problems or look ugly.
2244# WARNING: Use '\'' to represent an apostrophe within the trap.
2245# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2246trap 'exit_status=$?
2247  # Save into config.log some information that might help in debugging.
2248  {
2249    echo
2250
2251    $as_echo "## ---------------- ##
2252## Cache variables. ##
2253## ---------------- ##"
2254    echo
2255    # The following way of writing the cache mishandles newlines in values,
2256(
2257  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2258    eval ac_val=\$$ac_var
2259    case $ac_val in #(
2260    *${as_nl}*)
2261      case $ac_var in #(
2262      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2263$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2264      esac
2265      case $ac_var in #(
2266      _ | IFS | as_nl) ;; #(
2267      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2268      *) { eval $ac_var=; unset $ac_var;} ;;
2269      esac ;;
2270    esac
2271  done
2272  (set) 2>&1 |
2273    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2274    *${as_nl}ac_space=\ *)
2275      sed -n \
2276	"s/'\''/'\''\\\\'\'''\''/g;
2277	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2278      ;; #(
2279    *)
2280      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2281      ;;
2282    esac |
2283    sort
2284)
2285    echo
2286
2287    $as_echo "## ----------------- ##
2288## Output variables. ##
2289## ----------------- ##"
2290    echo
2291    for ac_var in $ac_subst_vars
2292    do
2293      eval ac_val=\$$ac_var
2294      case $ac_val in
2295      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2296      esac
2297      $as_echo "$ac_var='\''$ac_val'\''"
2298    done | sort
2299    echo
2300
2301    if test -n "$ac_subst_files"; then
2302      $as_echo "## ------------------- ##
2303## File substitutions. ##
2304## ------------------- ##"
2305      echo
2306      for ac_var in $ac_subst_files
2307      do
2308	eval ac_val=\$$ac_var
2309	case $ac_val in
2310	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2311	esac
2312	$as_echo "$ac_var='\''$ac_val'\''"
2313      done | sort
2314      echo
2315    fi
2316
2317    if test -s confdefs.h; then
2318      $as_echo "## ----------- ##
2319## confdefs.h. ##
2320## ----------- ##"
2321      echo
2322      cat confdefs.h
2323      echo
2324    fi
2325    test "$ac_signal" != 0 &&
2326      $as_echo "$as_me: caught signal $ac_signal"
2327    $as_echo "$as_me: exit $exit_status"
2328  } >&5
2329  rm -f core *.core core.conftest.* &&
2330    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2331    exit $exit_status
2332' 0
2333for ac_signal in 1 2 13 15; do
2334  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2335done
2336ac_signal=0
2337
2338# confdefs.h avoids OS command line length limits that DEFS can exceed.
2339rm -f -r conftest* confdefs.h
2340
2341$as_echo "/* confdefs.h */" > confdefs.h
2342
2343# Predefined preprocessor variables.
2344
2345cat >>confdefs.h <<_ACEOF
2346#define PACKAGE_NAME "$PACKAGE_NAME"
2347_ACEOF
2348
2349cat >>confdefs.h <<_ACEOF
2350#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2351_ACEOF
2352
2353cat >>confdefs.h <<_ACEOF
2354#define PACKAGE_VERSION "$PACKAGE_VERSION"
2355_ACEOF
2356
2357cat >>confdefs.h <<_ACEOF
2358#define PACKAGE_STRING "$PACKAGE_STRING"
2359_ACEOF
2360
2361cat >>confdefs.h <<_ACEOF
2362#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2363_ACEOF
2364
2365cat >>confdefs.h <<_ACEOF
2366#define PACKAGE_URL "$PACKAGE_URL"
2367_ACEOF
2368
2369
2370# Let the site file select an alternate cache file if it wants to.
2371# Prefer an explicitly selected file to automatically selected ones.
2372ac_site_file1=NONE
2373ac_site_file2=NONE
2374if test -n "$CONFIG_SITE"; then
2375  # We do not want a PATH search for config.site.
2376  case $CONFIG_SITE in #((
2377    -*)  ac_site_file1=./$CONFIG_SITE;;
2378    */*) ac_site_file1=$CONFIG_SITE;;
2379    *)   ac_site_file1=./$CONFIG_SITE;;
2380  esac
2381elif test "x$prefix" != xNONE; then
2382  ac_site_file1=$prefix/share/config.site
2383  ac_site_file2=$prefix/etc/config.site
2384else
2385  ac_site_file1=$ac_default_prefix/share/config.site
2386  ac_site_file2=$ac_default_prefix/etc/config.site
2387fi
2388for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2389do
2390  test "x$ac_site_file" = xNONE && continue
2391  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2392    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2393$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2394    sed 's/^/| /' "$ac_site_file" >&5
2395    . "$ac_site_file" \
2396      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2397$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2398as_fn_error $? "failed to load site script $ac_site_file
2399See \`config.log' for more details" "$LINENO" 5; }
2400  fi
2401done
2402
2403if test -r "$cache_file"; then
2404  # Some versions of bash will fail to source /dev/null (special files
2405  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2406  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2407    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2408$as_echo "$as_me: loading cache $cache_file" >&6;}
2409    case $cache_file in
2410      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2411      *)                      . "./$cache_file";;
2412    esac
2413  fi
2414else
2415  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2416$as_echo "$as_me: creating cache $cache_file" >&6;}
2417  >$cache_file
2418fi
2419
2420gt_needs="$gt_needs "
2421# Check that the precious variables saved in the cache have kept the same
2422# value.
2423ac_cache_corrupted=false
2424for ac_var in $ac_precious_vars; do
2425  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2426  eval ac_new_set=\$ac_env_${ac_var}_set
2427  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2428  eval ac_new_val=\$ac_env_${ac_var}_value
2429  case $ac_old_set,$ac_new_set in
2430    set,)
2431      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2432$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2433      ac_cache_corrupted=: ;;
2434    ,set)
2435      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2436$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2437      ac_cache_corrupted=: ;;
2438    ,);;
2439    *)
2440      if test "x$ac_old_val" != "x$ac_new_val"; then
2441	# differences in whitespace do not lead to failure.
2442	ac_old_val_w=`echo x $ac_old_val`
2443	ac_new_val_w=`echo x $ac_new_val`
2444	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2445	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2446$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2447	  ac_cache_corrupted=:
2448	else
2449	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2450$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2451	  eval $ac_var=\$ac_old_val
2452	fi
2453	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2454$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2455	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2456$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2457      fi;;
2458  esac
2459  # Pass precious variables to config.status.
2460  if test "$ac_new_set" = set; then
2461    case $ac_new_val in
2462    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2463    *) ac_arg=$ac_var=$ac_new_val ;;
2464    esac
2465    case " $ac_configure_args " in
2466      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2467      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2468    esac
2469  fi
2470done
2471if $ac_cache_corrupted; then
2472  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2473$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2474  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2475$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2476  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2477fi
2478## -------------------- ##
2479## Main body of script. ##
2480## -------------------- ##
2481
2482ac_ext=c
2483ac_cpp='$CPP $CPPFLAGS'
2484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2486ac_compiler_gnu=$ac_cv_c_compiler_gnu
2487
2488
2489
2490ac_aux_dir=
2491for ac_dir in build-aux "$srcdir"/build-aux; do
2492  if test -f "$ac_dir/install-sh"; then
2493    ac_aux_dir=$ac_dir
2494    ac_install_sh="$ac_aux_dir/install-sh -c"
2495    break
2496  elif test -f "$ac_dir/install.sh"; then
2497    ac_aux_dir=$ac_dir
2498    ac_install_sh="$ac_aux_dir/install.sh -c"
2499    break
2500  elif test -f "$ac_dir/shtool"; then
2501    ac_aux_dir=$ac_dir
2502    ac_install_sh="$ac_aux_dir/shtool install -c"
2503    break
2504  fi
2505done
2506if test -z "$ac_aux_dir"; then
2507  as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2508fi
2509
2510# These three variables are undocumented and unsupported,
2511# and are intended to be withdrawn in a future Autoconf release.
2512# They can cause serious problems if a builder's source tree is in a directory
2513# whose full name contains unusual characters.
2514ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2515ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2516ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2517
2518
2519case `pwd` in
2520  *\ * | *\	*)
2521    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2522$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2523esac
2524
2525
2526
2527macro_version='2.4.6'
2528macro_revision='2.4.6'
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542ltmain=$ac_aux_dir/ltmain.sh
2543
2544# Make sure we can run config.sub.
2545$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2546  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2547
2548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2549$as_echo_n "checking build system type... " >&6; }
2550if ${ac_cv_build+:} false; then :
2551  $as_echo_n "(cached) " >&6
2552else
2553  ac_build_alias=$build_alias
2554test "x$ac_build_alias" = x &&
2555  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2556test "x$ac_build_alias" = x &&
2557  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2558ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2559  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2560
2561fi
2562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2563$as_echo "$ac_cv_build" >&6; }
2564case $ac_cv_build in
2565*-*-*) ;;
2566*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2567esac
2568build=$ac_cv_build
2569ac_save_IFS=$IFS; IFS='-'
2570set x $ac_cv_build
2571shift
2572build_cpu=$1
2573build_vendor=$2
2574shift; shift
2575# Remember, the first character of IFS is used to create $*,
2576# except with old shells:
2577build_os=$*
2578IFS=$ac_save_IFS
2579case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2580
2581
2582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2583$as_echo_n "checking host system type... " >&6; }
2584if ${ac_cv_host+:} false; then :
2585  $as_echo_n "(cached) " >&6
2586else
2587  if test "x$host_alias" = x; then
2588  ac_cv_host=$ac_cv_build
2589else
2590  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2591    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2592fi
2593
2594fi
2595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2596$as_echo "$ac_cv_host" >&6; }
2597case $ac_cv_host in
2598*-*-*) ;;
2599*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2600esac
2601host=$ac_cv_host
2602ac_save_IFS=$IFS; IFS='-'
2603set x $ac_cv_host
2604shift
2605host_cpu=$1
2606host_vendor=$2
2607shift; shift
2608# Remember, the first character of IFS is used to create $*,
2609# except with old shells:
2610host_os=$*
2611IFS=$ac_save_IFS
2612case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2613
2614
2615# Backslashify metacharacters that are still active within
2616# double-quoted strings.
2617sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2618
2619# Same as above, but do not quote variable references.
2620double_quote_subst='s/\(["`\\]\)/\\\1/g'
2621
2622# Sed substitution to delay expansion of an escaped shell variable in a
2623# double_quote_subst'ed string.
2624delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2625
2626# Sed substitution to delay expansion of an escaped single quote.
2627delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2628
2629# Sed substitution to avoid accidental globbing in evaled expressions
2630no_glob_subst='s/\*/\\\*/g'
2631
2632ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2633ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2634ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2635
2636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2637$as_echo_n "checking how to print strings... " >&6; }
2638# Test print first, because it will be a builtin if present.
2639if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2640   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2641  ECHO='print -r --'
2642elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2643  ECHO='printf %s\n'
2644else
2645  # Use this function as a fallback that always works.
2646  func_fallback_echo ()
2647  {
2648    eval 'cat <<_LTECHO_EOF
2649$1
2650_LTECHO_EOF'
2651  }
2652  ECHO='func_fallback_echo'
2653fi
2654
2655# func_echo_all arg...
2656# Invoke $ECHO with all args, space-separated.
2657func_echo_all ()
2658{
2659    $ECHO ""
2660}
2661
2662case $ECHO in
2663  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2664$as_echo "printf" >&6; } ;;
2665  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2666$as_echo "print -r" >&6; } ;;
2667  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2668$as_echo "cat" >&6; } ;;
2669esac
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684# Expand $ac_aux_dir to an absolute path.
2685am_aux_dir=`cd "$ac_aux_dir" && pwd`
2686
2687ac_ext=c
2688ac_cpp='$CPP $CPPFLAGS'
2689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2691ac_compiler_gnu=$ac_cv_c_compiler_gnu
2692if test -n "$ac_tool_prefix"; then
2693  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2694set dummy ${ac_tool_prefix}gcc; ac_word=$2
2695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2696$as_echo_n "checking for $ac_word... " >&6; }
2697if ${ac_cv_prog_CC+:} false; then :
2698  $as_echo_n "(cached) " >&6
2699else
2700  if test -n "$CC"; then
2701  ac_cv_prog_CC="$CC" # Let the user override the test.
2702else
2703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704for as_dir in $PATH
2705do
2706  IFS=$as_save_IFS
2707  test -z "$as_dir" && as_dir=.
2708    for ac_exec_ext in '' $ac_executable_extensions; do
2709  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2710    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2711    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2712    break 2
2713  fi
2714done
2715  done
2716IFS=$as_save_IFS
2717
2718fi
2719fi
2720CC=$ac_cv_prog_CC
2721if test -n "$CC"; then
2722  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2723$as_echo "$CC" >&6; }
2724else
2725  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2726$as_echo "no" >&6; }
2727fi
2728
2729
2730fi
2731if test -z "$ac_cv_prog_CC"; then
2732  ac_ct_CC=$CC
2733  # Extract the first word of "gcc", so it can be a program name with args.
2734set dummy gcc; ac_word=$2
2735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2736$as_echo_n "checking for $ac_word... " >&6; }
2737if ${ac_cv_prog_ac_ct_CC+:} false; then :
2738  $as_echo_n "(cached) " >&6
2739else
2740  if test -n "$ac_ct_CC"; then
2741  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2742else
2743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2744for as_dir in $PATH
2745do
2746  IFS=$as_save_IFS
2747  test -z "$as_dir" && as_dir=.
2748    for ac_exec_ext in '' $ac_executable_extensions; do
2749  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2750    ac_cv_prog_ac_ct_CC="gcc"
2751    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2752    break 2
2753  fi
2754done
2755  done
2756IFS=$as_save_IFS
2757
2758fi
2759fi
2760ac_ct_CC=$ac_cv_prog_ac_ct_CC
2761if test -n "$ac_ct_CC"; then
2762  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2763$as_echo "$ac_ct_CC" >&6; }
2764else
2765  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2766$as_echo "no" >&6; }
2767fi
2768
2769  if test "x$ac_ct_CC" = x; then
2770    CC=""
2771  else
2772    case $cross_compiling:$ac_tool_warned in
2773yes:)
2774{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2775$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2776ac_tool_warned=yes ;;
2777esac
2778    CC=$ac_ct_CC
2779  fi
2780else
2781  CC="$ac_cv_prog_CC"
2782fi
2783
2784if test -z "$CC"; then
2785          if test -n "$ac_tool_prefix"; then
2786    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2787set dummy ${ac_tool_prefix}cc; ac_word=$2
2788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2789$as_echo_n "checking for $ac_word... " >&6; }
2790if ${ac_cv_prog_CC+:} false; then :
2791  $as_echo_n "(cached) " >&6
2792else
2793  if test -n "$CC"; then
2794  ac_cv_prog_CC="$CC" # Let the user override the test.
2795else
2796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797for as_dir in $PATH
2798do
2799  IFS=$as_save_IFS
2800  test -z "$as_dir" && as_dir=.
2801    for ac_exec_ext in '' $ac_executable_extensions; do
2802  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2803    ac_cv_prog_CC="${ac_tool_prefix}cc"
2804    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2805    break 2
2806  fi
2807done
2808  done
2809IFS=$as_save_IFS
2810
2811fi
2812fi
2813CC=$ac_cv_prog_CC
2814if test -n "$CC"; then
2815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2816$as_echo "$CC" >&6; }
2817else
2818  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2819$as_echo "no" >&6; }
2820fi
2821
2822
2823  fi
2824fi
2825if test -z "$CC"; then
2826  # Extract the first word of "cc", so it can be a program name with args.
2827set dummy cc; ac_word=$2
2828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2829$as_echo_n "checking for $ac_word... " >&6; }
2830if ${ac_cv_prog_CC+:} false; then :
2831  $as_echo_n "(cached) " >&6
2832else
2833  if test -n "$CC"; then
2834  ac_cv_prog_CC="$CC" # Let the user override the test.
2835else
2836  ac_prog_rejected=no
2837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2838for as_dir in $PATH
2839do
2840  IFS=$as_save_IFS
2841  test -z "$as_dir" && as_dir=.
2842    for ac_exec_ext in '' $ac_executable_extensions; do
2843  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2844    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2845       ac_prog_rejected=yes
2846       continue
2847     fi
2848    ac_cv_prog_CC="cc"
2849    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2850    break 2
2851  fi
2852done
2853  done
2854IFS=$as_save_IFS
2855
2856if test $ac_prog_rejected = yes; then
2857  # We found a bogon in the path, so make sure we never use it.
2858  set dummy $ac_cv_prog_CC
2859  shift
2860  if test $# != 0; then
2861    # We chose a different compiler from the bogus one.
2862    # However, it has the same basename, so the bogon will be chosen
2863    # first if we set CC to just the basename; use the full file name.
2864    shift
2865    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2866  fi
2867fi
2868fi
2869fi
2870CC=$ac_cv_prog_CC
2871if test -n "$CC"; then
2872  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2873$as_echo "$CC" >&6; }
2874else
2875  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2876$as_echo "no" >&6; }
2877fi
2878
2879
2880fi
2881if test -z "$CC"; then
2882  if test -n "$ac_tool_prefix"; then
2883  for ac_prog in cl.exe
2884  do
2885    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2886set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2888$as_echo_n "checking for $ac_word... " >&6; }
2889if ${ac_cv_prog_CC+:} false; then :
2890  $as_echo_n "(cached) " >&6
2891else
2892  if test -n "$CC"; then
2893  ac_cv_prog_CC="$CC" # Let the user override the test.
2894else
2895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2896for as_dir in $PATH
2897do
2898  IFS=$as_save_IFS
2899  test -z "$as_dir" && as_dir=.
2900    for ac_exec_ext in '' $ac_executable_extensions; do
2901  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2902    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2903    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2904    break 2
2905  fi
2906done
2907  done
2908IFS=$as_save_IFS
2909
2910fi
2911fi
2912CC=$ac_cv_prog_CC
2913if test -n "$CC"; then
2914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2915$as_echo "$CC" >&6; }
2916else
2917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2918$as_echo "no" >&6; }
2919fi
2920
2921
2922    test -n "$CC" && break
2923  done
2924fi
2925if test -z "$CC"; then
2926  ac_ct_CC=$CC
2927  for ac_prog in cl.exe
2928do
2929  # Extract the first word of "$ac_prog", so it can be a program name with args.
2930set dummy $ac_prog; ac_word=$2
2931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2932$as_echo_n "checking for $ac_word... " >&6; }
2933if ${ac_cv_prog_ac_ct_CC+:} false; then :
2934  $as_echo_n "(cached) " >&6
2935else
2936  if test -n "$ac_ct_CC"; then
2937  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2938else
2939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2940for as_dir in $PATH
2941do
2942  IFS=$as_save_IFS
2943  test -z "$as_dir" && as_dir=.
2944    for ac_exec_ext in '' $ac_executable_extensions; do
2945  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2946    ac_cv_prog_ac_ct_CC="$ac_prog"
2947    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2948    break 2
2949  fi
2950done
2951  done
2952IFS=$as_save_IFS
2953
2954fi
2955fi
2956ac_ct_CC=$ac_cv_prog_ac_ct_CC
2957if test -n "$ac_ct_CC"; then
2958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2959$as_echo "$ac_ct_CC" >&6; }
2960else
2961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2962$as_echo "no" >&6; }
2963fi
2964
2965
2966  test -n "$ac_ct_CC" && break
2967done
2968
2969  if test "x$ac_ct_CC" = x; then
2970    CC=""
2971  else
2972    case $cross_compiling:$ac_tool_warned in
2973yes:)
2974{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2975$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2976ac_tool_warned=yes ;;
2977esac
2978    CC=$ac_ct_CC
2979  fi
2980fi
2981
2982fi
2983
2984
2985test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2986$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2987as_fn_error $? "no acceptable C compiler found in \$PATH
2988See \`config.log' for more details" "$LINENO" 5; }
2989
2990# Provide some information about the compiler.
2991$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2992set X $ac_compile
2993ac_compiler=$2
2994for ac_option in --version -v -V -qversion; do
2995  { { ac_try="$ac_compiler $ac_option >&5"
2996case "(($ac_try" in
2997  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2998  *) ac_try_echo=$ac_try;;
2999esac
3000eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3001$as_echo "$ac_try_echo"; } >&5
3002  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3003  ac_status=$?
3004  if test -s conftest.err; then
3005    sed '10a\
3006... rest of stderr output deleted ...
3007         10q' conftest.err >conftest.er1
3008    cat conftest.er1 >&5
3009  fi
3010  rm -f conftest.er1 conftest.err
3011  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3012  test $ac_status = 0; }
3013done
3014
3015cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3016/* end confdefs.h.  */
3017
3018int
3019main ()
3020{
3021
3022  ;
3023  return 0;
3024}
3025_ACEOF
3026ac_clean_files_save=$ac_clean_files
3027ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3028# Try to create an executable without -o first, disregard a.out.
3029# It will help us diagnose broken compilers, and finding out an intuition
3030# of exeext.
3031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3032$as_echo_n "checking whether the C compiler works... " >&6; }
3033ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3034
3035# The possible output files:
3036ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3037
3038ac_rmfiles=
3039for ac_file in $ac_files
3040do
3041  case $ac_file in
3042    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3043    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3044  esac
3045done
3046rm -f $ac_rmfiles
3047
3048if { { ac_try="$ac_link_default"
3049case "(($ac_try" in
3050  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3051  *) ac_try_echo=$ac_try;;
3052esac
3053eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3054$as_echo "$ac_try_echo"; } >&5
3055  (eval "$ac_link_default") 2>&5
3056  ac_status=$?
3057  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3058  test $ac_status = 0; }; then :
3059  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3060# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3061# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3062# so that the user can short-circuit this test for compilers unknown to
3063# Autoconf.
3064for ac_file in $ac_files ''
3065do
3066  test -f "$ac_file" || continue
3067  case $ac_file in
3068    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3069	;;
3070    [ab].out )
3071	# We found the default executable, but exeext='' is most
3072	# certainly right.
3073	break;;
3074    *.* )
3075	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3076	then :; else
3077	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3078	fi
3079	# We set ac_cv_exeext here because the later test for it is not
3080	# safe: cross compilers may not add the suffix if given an `-o'
3081	# argument, so we may need to know it at that point already.
3082	# Even if this section looks crufty: it has the advantage of
3083	# actually working.
3084	break;;
3085    * )
3086	break;;
3087  esac
3088done
3089test "$ac_cv_exeext" = no && ac_cv_exeext=
3090
3091else
3092  ac_file=''
3093fi
3094if test -z "$ac_file"; then :
3095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3096$as_echo "no" >&6; }
3097$as_echo "$as_me: failed program was:" >&5
3098sed 's/^/| /' conftest.$ac_ext >&5
3099
3100{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3101$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3102as_fn_error 77 "C compiler cannot create executables
3103See \`config.log' for more details" "$LINENO" 5; }
3104else
3105  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3106$as_echo "yes" >&6; }
3107fi
3108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3109$as_echo_n "checking for C compiler default output file name... " >&6; }
3110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3111$as_echo "$ac_file" >&6; }
3112ac_exeext=$ac_cv_exeext
3113
3114rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3115ac_clean_files=$ac_clean_files_save
3116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3117$as_echo_n "checking for suffix of executables... " >&6; }
3118if { { ac_try="$ac_link"
3119case "(($ac_try" in
3120  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121  *) ac_try_echo=$ac_try;;
3122esac
3123eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3124$as_echo "$ac_try_echo"; } >&5
3125  (eval "$ac_link") 2>&5
3126  ac_status=$?
3127  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3128  test $ac_status = 0; }; then :
3129  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3130# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3131# work properly (i.e., refer to `conftest.exe'), while it won't with
3132# `rm'.
3133for ac_file in conftest.exe conftest conftest.*; do
3134  test -f "$ac_file" || continue
3135  case $ac_file in
3136    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3137    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3138	  break;;
3139    * ) break;;
3140  esac
3141done
3142else
3143  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3144$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3145as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3146See \`config.log' for more details" "$LINENO" 5; }
3147fi
3148rm -f conftest conftest$ac_cv_exeext
3149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3150$as_echo "$ac_cv_exeext" >&6; }
3151
3152rm -f conftest.$ac_ext
3153EXEEXT=$ac_cv_exeext
3154ac_exeext=$EXEEXT
3155cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3156/* end confdefs.h.  */
3157#include <stdio.h>
3158int
3159main ()
3160{
3161FILE *f = fopen ("conftest.out", "w");
3162 return ferror (f) || fclose (f) != 0;
3163
3164  ;
3165  return 0;
3166}
3167_ACEOF
3168ac_clean_files="$ac_clean_files conftest.out"
3169# Check that the compiler produces executables we can run.  If not, either
3170# the compiler is broken, or we cross compile.
3171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3172$as_echo_n "checking whether we are cross compiling... " >&6; }
3173if test "$cross_compiling" != yes; then
3174  { { ac_try="$ac_link"
3175case "(($ac_try" in
3176  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177  *) ac_try_echo=$ac_try;;
3178esac
3179eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3180$as_echo "$ac_try_echo"; } >&5
3181  (eval "$ac_link") 2>&5
3182  ac_status=$?
3183  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3184  test $ac_status = 0; }
3185  if { ac_try='./conftest$ac_cv_exeext'
3186  { { case "(($ac_try" in
3187  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3188  *) ac_try_echo=$ac_try;;
3189esac
3190eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3191$as_echo "$ac_try_echo"; } >&5
3192  (eval "$ac_try") 2>&5
3193  ac_status=$?
3194  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3195  test $ac_status = 0; }; }; then
3196    cross_compiling=no
3197  else
3198    if test "$cross_compiling" = maybe; then
3199	cross_compiling=yes
3200    else
3201	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3202$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3203as_fn_error $? "cannot run C compiled programs.
3204If you meant to cross compile, use \`--host'.
3205See \`config.log' for more details" "$LINENO" 5; }
3206    fi
3207  fi
3208fi
3209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3210$as_echo "$cross_compiling" >&6; }
3211
3212rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3213ac_clean_files=$ac_clean_files_save
3214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3215$as_echo_n "checking for suffix of object files... " >&6; }
3216if ${ac_cv_objext+:} false; then :
3217  $as_echo_n "(cached) " >&6
3218else
3219  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3220/* end confdefs.h.  */
3221
3222int
3223main ()
3224{
3225
3226  ;
3227  return 0;
3228}
3229_ACEOF
3230rm -f conftest.o conftest.obj
3231if { { ac_try="$ac_compile"
3232case "(($ac_try" in
3233  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234  *) ac_try_echo=$ac_try;;
3235esac
3236eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3237$as_echo "$ac_try_echo"; } >&5
3238  (eval "$ac_compile") 2>&5
3239  ac_status=$?
3240  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3241  test $ac_status = 0; }; then :
3242  for ac_file in conftest.o conftest.obj conftest.*; do
3243  test -f "$ac_file" || continue;
3244  case $ac_file in
3245    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3246    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3247       break;;
3248  esac
3249done
3250else
3251  $as_echo "$as_me: failed program was:" >&5
3252sed 's/^/| /' conftest.$ac_ext >&5
3253
3254{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3255$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3256as_fn_error $? "cannot compute suffix of object files: cannot compile
3257See \`config.log' for more details" "$LINENO" 5; }
3258fi
3259rm -f conftest.$ac_cv_objext conftest.$ac_ext
3260fi
3261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3262$as_echo "$ac_cv_objext" >&6; }
3263OBJEXT=$ac_cv_objext
3264ac_objext=$OBJEXT
3265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3266$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3267if ${ac_cv_c_compiler_gnu+:} false; then :
3268  $as_echo_n "(cached) " >&6
3269else
3270  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3271/* end confdefs.h.  */
3272
3273int
3274main ()
3275{
3276#ifndef __GNUC__
3277       choke me
3278#endif
3279
3280  ;
3281  return 0;
3282}
3283_ACEOF
3284if ac_fn_c_try_compile "$LINENO"; then :
3285  ac_compiler_gnu=yes
3286else
3287  ac_compiler_gnu=no
3288fi
3289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3290ac_cv_c_compiler_gnu=$ac_compiler_gnu
3291
3292fi
3293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3294$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3295if test $ac_compiler_gnu = yes; then
3296  GCC=yes
3297else
3298  GCC=
3299fi
3300ac_test_CFLAGS=${CFLAGS+set}
3301ac_save_CFLAGS=$CFLAGS
3302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3303$as_echo_n "checking whether $CC accepts -g... " >&6; }
3304if ${ac_cv_prog_cc_g+:} false; then :
3305  $as_echo_n "(cached) " >&6
3306else
3307  ac_save_c_werror_flag=$ac_c_werror_flag
3308   ac_c_werror_flag=yes
3309   ac_cv_prog_cc_g=no
3310   CFLAGS="-g"
3311   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3312/* end confdefs.h.  */
3313
3314int
3315main ()
3316{
3317
3318  ;
3319  return 0;
3320}
3321_ACEOF
3322if ac_fn_c_try_compile "$LINENO"; then :
3323  ac_cv_prog_cc_g=yes
3324else
3325  CFLAGS=""
3326      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3327/* end confdefs.h.  */
3328
3329int
3330main ()
3331{
3332
3333  ;
3334  return 0;
3335}
3336_ACEOF
3337if ac_fn_c_try_compile "$LINENO"; then :
3338
3339else
3340  ac_c_werror_flag=$ac_save_c_werror_flag
3341	 CFLAGS="-g"
3342	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3343/* end confdefs.h.  */
3344
3345int
3346main ()
3347{
3348
3349  ;
3350  return 0;
3351}
3352_ACEOF
3353if ac_fn_c_try_compile "$LINENO"; then :
3354  ac_cv_prog_cc_g=yes
3355fi
3356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3357fi
3358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3359fi
3360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3361   ac_c_werror_flag=$ac_save_c_werror_flag
3362fi
3363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3364$as_echo "$ac_cv_prog_cc_g" >&6; }
3365if test "$ac_test_CFLAGS" = set; then
3366  CFLAGS=$ac_save_CFLAGS
3367elif test $ac_cv_prog_cc_g = yes; then
3368  if test "$GCC" = yes; then
3369    CFLAGS="-g -O2"
3370  else
3371    CFLAGS="-g"
3372  fi
3373else
3374  if test "$GCC" = yes; then
3375    CFLAGS="-O2"
3376  else
3377    CFLAGS=
3378  fi
3379fi
3380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3381$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3382if ${ac_cv_prog_cc_c89+:} false; then :
3383  $as_echo_n "(cached) " >&6
3384else
3385  ac_cv_prog_cc_c89=no
3386ac_save_CC=$CC
3387cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3388/* end confdefs.h.  */
3389#include <stdarg.h>
3390#include <stdio.h>
3391struct stat;
3392/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3393struct buf { int x; };
3394FILE * (*rcsopen) (struct buf *, struct stat *, int);
3395static char *e (p, i)
3396     char **p;
3397     int i;
3398{
3399  return p[i];
3400}
3401static char *f (char * (*g) (char **, int), char **p, ...)
3402{
3403  char *s;
3404  va_list v;
3405  va_start (v,p);
3406  s = g (p, va_arg (v,int));
3407  va_end (v);
3408  return s;
3409}
3410
3411/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3412   function prototypes and stuff, but not '\xHH' hex character constants.
3413   These don't provoke an error unfortunately, instead are silently treated
3414   as 'x'.  The following induces an error, until -std is added to get
3415   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3416   array size at least.  It's necessary to write '\x00'==0 to get something
3417   that's true only with -std.  */
3418int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3419
3420/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3421   inside strings and character constants.  */
3422#define FOO(x) 'x'
3423int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3424
3425int test (int i, double x);
3426struct s1 {int (*f) (int a);};
3427struct s2 {int (*f) (double a);};
3428int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3429int argc;
3430char **argv;
3431int
3432main ()
3433{
3434return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3435  ;
3436  return 0;
3437}
3438_ACEOF
3439for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3440	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3441do
3442  CC="$ac_save_CC $ac_arg"
3443  if ac_fn_c_try_compile "$LINENO"; then :
3444  ac_cv_prog_cc_c89=$ac_arg
3445fi
3446rm -f core conftest.err conftest.$ac_objext
3447  test "x$ac_cv_prog_cc_c89" != "xno" && break
3448done
3449rm -f conftest.$ac_ext
3450CC=$ac_save_CC
3451
3452fi
3453# AC_CACHE_VAL
3454case "x$ac_cv_prog_cc_c89" in
3455  x)
3456    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3457$as_echo "none needed" >&6; } ;;
3458  xno)
3459    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3460$as_echo "unsupported" >&6; } ;;
3461  *)
3462    CC="$CC $ac_cv_prog_cc_c89"
3463    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3464$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3465esac
3466if test "x$ac_cv_prog_cc_c89" != xno; then :
3467
3468fi
3469
3470ac_ext=c
3471ac_cpp='$CPP $CPPFLAGS'
3472ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3473ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3474ac_compiler_gnu=$ac_cv_c_compiler_gnu
3475
3476ac_ext=c
3477ac_cpp='$CPP $CPPFLAGS'
3478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3480ac_compiler_gnu=$ac_cv_c_compiler_gnu
3481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3482$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3483if ${am_cv_prog_cc_c_o+:} false; then :
3484  $as_echo_n "(cached) " >&6
3485else
3486  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3487/* end confdefs.h.  */
3488
3489int
3490main ()
3491{
3492
3493  ;
3494  return 0;
3495}
3496_ACEOF
3497  # Make sure it works both with $CC and with simple cc.
3498  # Following AC_PROG_CC_C_O, we do the test twice because some
3499  # compilers refuse to overwrite an existing .o file with -o,
3500  # though they will create one.
3501  am_cv_prog_cc_c_o=yes
3502  for am_i in 1 2; do
3503    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3504   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3505   ac_status=$?
3506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507   (exit $ac_status); } \
3508         && test -f conftest2.$ac_objext; then
3509      : OK
3510    else
3511      am_cv_prog_cc_c_o=no
3512      break
3513    fi
3514  done
3515  rm -f core conftest*
3516  unset am_i
3517fi
3518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3519$as_echo "$am_cv_prog_cc_c_o" >&6; }
3520if test "$am_cv_prog_cc_c_o" != yes; then
3521   # Losing compiler, so override with the script.
3522   # FIXME: It is wrong to rewrite CC.
3523   # But if we don't then we get into trouble of one sort or another.
3524   # A longer-term fix would be to have automake use am__CC in this case,
3525   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3526   CC="$am_aux_dir/compile $CC"
3527fi
3528ac_ext=c
3529ac_cpp='$CPP $CPPFLAGS'
3530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3532ac_compiler_gnu=$ac_cv_c_compiler_gnu
3533
3534
3535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3536$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3537if ${ac_cv_path_SED+:} false; then :
3538  $as_echo_n "(cached) " >&6
3539else
3540            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3541     for ac_i in 1 2 3 4 5 6 7; do
3542       ac_script="$ac_script$as_nl$ac_script"
3543     done
3544     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3545     { ac_script=; unset ac_script;}
3546     if test -z "$SED"; then
3547  ac_path_SED_found=false
3548  # Loop through the user's path and test for each of PROGNAME-LIST
3549  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3550for as_dir in $PATH
3551do
3552  IFS=$as_save_IFS
3553  test -z "$as_dir" && as_dir=.
3554    for ac_prog in sed gsed; do
3555    for ac_exec_ext in '' $ac_executable_extensions; do
3556      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3557      as_fn_executable_p "$ac_path_SED" || continue
3558# Check for GNU ac_path_SED and select it if it is found.
3559  # Check for GNU $ac_path_SED
3560case `"$ac_path_SED" --version 2>&1` in
3561*GNU*)
3562  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3563*)
3564  ac_count=0
3565  $as_echo_n 0123456789 >"conftest.in"
3566  while :
3567  do
3568    cat "conftest.in" "conftest.in" >"conftest.tmp"
3569    mv "conftest.tmp" "conftest.in"
3570    cp "conftest.in" "conftest.nl"
3571    $as_echo '' >> "conftest.nl"
3572    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3573    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3574    as_fn_arith $ac_count + 1 && ac_count=$as_val
3575    if test $ac_count -gt ${ac_path_SED_max-0}; then
3576      # Best one so far, save it but keep looking for a better one
3577      ac_cv_path_SED="$ac_path_SED"
3578      ac_path_SED_max=$ac_count
3579    fi
3580    # 10*(2^10) chars as input seems more than enough
3581    test $ac_count -gt 10 && break
3582  done
3583  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3584esac
3585
3586      $ac_path_SED_found && break 3
3587    done
3588  done
3589  done
3590IFS=$as_save_IFS
3591  if test -z "$ac_cv_path_SED"; then
3592    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3593  fi
3594else
3595  ac_cv_path_SED=$SED
3596fi
3597
3598fi
3599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3600$as_echo "$ac_cv_path_SED" >&6; }
3601 SED="$ac_cv_path_SED"
3602  rm -f conftest.sed
3603
3604test -z "$SED" && SED=sed
3605Xsed="$SED -e 1s/^X//"
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3618$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3619if ${ac_cv_path_GREP+:} false; then :
3620  $as_echo_n "(cached) " >&6
3621else
3622  if test -z "$GREP"; then
3623  ac_path_GREP_found=false
3624  # Loop through the user's path and test for each of PROGNAME-LIST
3625  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3626for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3627do
3628  IFS=$as_save_IFS
3629  test -z "$as_dir" && as_dir=.
3630    for ac_prog in grep ggrep; do
3631    for ac_exec_ext in '' $ac_executable_extensions; do
3632      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3633      as_fn_executable_p "$ac_path_GREP" || continue
3634# Check for GNU ac_path_GREP and select it if it is found.
3635  # Check for GNU $ac_path_GREP
3636case `"$ac_path_GREP" --version 2>&1` in
3637*GNU*)
3638  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3639*)
3640  ac_count=0
3641  $as_echo_n 0123456789 >"conftest.in"
3642  while :
3643  do
3644    cat "conftest.in" "conftest.in" >"conftest.tmp"
3645    mv "conftest.tmp" "conftest.in"
3646    cp "conftest.in" "conftest.nl"
3647    $as_echo 'GREP' >> "conftest.nl"
3648    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3649    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3650    as_fn_arith $ac_count + 1 && ac_count=$as_val
3651    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3652      # Best one so far, save it but keep looking for a better one
3653      ac_cv_path_GREP="$ac_path_GREP"
3654      ac_path_GREP_max=$ac_count
3655    fi
3656    # 10*(2^10) chars as input seems more than enough
3657    test $ac_count -gt 10 && break
3658  done
3659  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3660esac
3661
3662      $ac_path_GREP_found && break 3
3663    done
3664  done
3665  done
3666IFS=$as_save_IFS
3667  if test -z "$ac_cv_path_GREP"; then
3668    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3669  fi
3670else
3671  ac_cv_path_GREP=$GREP
3672fi
3673
3674fi
3675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3676$as_echo "$ac_cv_path_GREP" >&6; }
3677 GREP="$ac_cv_path_GREP"
3678
3679
3680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3681$as_echo_n "checking for egrep... " >&6; }
3682if ${ac_cv_path_EGREP+:} false; then :
3683  $as_echo_n "(cached) " >&6
3684else
3685  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3686   then ac_cv_path_EGREP="$GREP -E"
3687   else
3688     if test -z "$EGREP"; then
3689  ac_path_EGREP_found=false
3690  # Loop through the user's path and test for each of PROGNAME-LIST
3691  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3692for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3693do
3694  IFS=$as_save_IFS
3695  test -z "$as_dir" && as_dir=.
3696    for ac_prog in egrep; do
3697    for ac_exec_ext in '' $ac_executable_extensions; do
3698      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3699      as_fn_executable_p "$ac_path_EGREP" || continue
3700# Check for GNU ac_path_EGREP and select it if it is found.
3701  # Check for GNU $ac_path_EGREP
3702case `"$ac_path_EGREP" --version 2>&1` in
3703*GNU*)
3704  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3705*)
3706  ac_count=0
3707  $as_echo_n 0123456789 >"conftest.in"
3708  while :
3709  do
3710    cat "conftest.in" "conftest.in" >"conftest.tmp"
3711    mv "conftest.tmp" "conftest.in"
3712    cp "conftest.in" "conftest.nl"
3713    $as_echo 'EGREP' >> "conftest.nl"
3714    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3715    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3716    as_fn_arith $ac_count + 1 && ac_count=$as_val
3717    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3718      # Best one so far, save it but keep looking for a better one
3719      ac_cv_path_EGREP="$ac_path_EGREP"
3720      ac_path_EGREP_max=$ac_count
3721    fi
3722    # 10*(2^10) chars as input seems more than enough
3723    test $ac_count -gt 10 && break
3724  done
3725  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3726esac
3727
3728      $ac_path_EGREP_found && break 3
3729    done
3730  done
3731  done
3732IFS=$as_save_IFS
3733  if test -z "$ac_cv_path_EGREP"; then
3734    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3735  fi
3736else
3737  ac_cv_path_EGREP=$EGREP
3738fi
3739
3740   fi
3741fi
3742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3743$as_echo "$ac_cv_path_EGREP" >&6; }
3744 EGREP="$ac_cv_path_EGREP"
3745
3746
3747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3748$as_echo_n "checking for fgrep... " >&6; }
3749if ${ac_cv_path_FGREP+:} false; then :
3750  $as_echo_n "(cached) " >&6
3751else
3752  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3753   then ac_cv_path_FGREP="$GREP -F"
3754   else
3755     if test -z "$FGREP"; then
3756  ac_path_FGREP_found=false
3757  # Loop through the user's path and test for each of PROGNAME-LIST
3758  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3759for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3760do
3761  IFS=$as_save_IFS
3762  test -z "$as_dir" && as_dir=.
3763    for ac_prog in fgrep; do
3764    for ac_exec_ext in '' $ac_executable_extensions; do
3765      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3766      as_fn_executable_p "$ac_path_FGREP" || continue
3767# Check for GNU ac_path_FGREP and select it if it is found.
3768  # Check for GNU $ac_path_FGREP
3769case `"$ac_path_FGREP" --version 2>&1` in
3770*GNU*)
3771  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3772*)
3773  ac_count=0
3774  $as_echo_n 0123456789 >"conftest.in"
3775  while :
3776  do
3777    cat "conftest.in" "conftest.in" >"conftest.tmp"
3778    mv "conftest.tmp" "conftest.in"
3779    cp "conftest.in" "conftest.nl"
3780    $as_echo 'FGREP' >> "conftest.nl"
3781    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3782    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3783    as_fn_arith $ac_count + 1 && ac_count=$as_val
3784    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3785      # Best one so far, save it but keep looking for a better one
3786      ac_cv_path_FGREP="$ac_path_FGREP"
3787      ac_path_FGREP_max=$ac_count
3788    fi
3789    # 10*(2^10) chars as input seems more than enough
3790    test $ac_count -gt 10 && break
3791  done
3792  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3793esac
3794
3795      $ac_path_FGREP_found && break 3
3796    done
3797  done
3798  done
3799IFS=$as_save_IFS
3800  if test -z "$ac_cv_path_FGREP"; then
3801    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3802  fi
3803else
3804  ac_cv_path_FGREP=$FGREP
3805fi
3806
3807   fi
3808fi
3809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3810$as_echo "$ac_cv_path_FGREP" >&6; }
3811 FGREP="$ac_cv_path_FGREP"
3812
3813
3814test -z "$GREP" && GREP=grep
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834# Check whether --with-gnu-ld was given.
3835if test "${with_gnu_ld+set}" = set; then :
3836  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
3837else
3838  with_gnu_ld=no
3839fi
3840
3841ac_prog=ld
3842if test yes = "$GCC"; then
3843  # Check if gcc -print-prog-name=ld gives a path.
3844  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3845$as_echo_n "checking for ld used by $CC... " >&6; }
3846  case $host in
3847  *-*-mingw*)
3848    # gcc leaves a trailing carriage return, which upsets mingw
3849    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3850  *)
3851    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3852  esac
3853  case $ac_prog in
3854    # Accept absolute paths.
3855    [\\/]* | ?:[\\/]*)
3856      re_direlt='/[^/][^/]*/\.\./'
3857      # Canonicalize the pathname of ld
3858      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3859      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3860	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3861      done
3862      test -z "$LD" && LD=$ac_prog
3863      ;;
3864  "")
3865    # If it fails, then pretend we aren't using GCC.
3866    ac_prog=ld
3867    ;;
3868  *)
3869    # If it is relative, then search for the first ld in PATH.
3870    with_gnu_ld=unknown
3871    ;;
3872  esac
3873elif test yes = "$with_gnu_ld"; then
3874  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3875$as_echo_n "checking for GNU ld... " >&6; }
3876else
3877  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3878$as_echo_n "checking for non-GNU ld... " >&6; }
3879fi
3880if ${lt_cv_path_LD+:} false; then :
3881  $as_echo_n "(cached) " >&6
3882else
3883  if test -z "$LD"; then
3884  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
3885  for ac_dir in $PATH; do
3886    IFS=$lt_save_ifs
3887    test -z "$ac_dir" && ac_dir=.
3888    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3889      lt_cv_path_LD=$ac_dir/$ac_prog
3890      # Check to see if the program is GNU ld.  I'd rather use --version,
3891      # but apparently some variants of GNU ld only accept -v.
3892      # Break only if it was the GNU/non-GNU ld that we prefer.
3893      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3894      *GNU* | *'with BFD'*)
3895	test no != "$with_gnu_ld" && break
3896	;;
3897      *)
3898	test yes != "$with_gnu_ld" && break
3899	;;
3900      esac
3901    fi
3902  done
3903  IFS=$lt_save_ifs
3904else
3905  lt_cv_path_LD=$LD # Let the user override the test with a path.
3906fi
3907fi
3908
3909LD=$lt_cv_path_LD
3910if test -n "$LD"; then
3911  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3912$as_echo "$LD" >&6; }
3913else
3914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3915$as_echo "no" >&6; }
3916fi
3917test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3919$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3920if ${lt_cv_prog_gnu_ld+:} false; then :
3921  $as_echo_n "(cached) " >&6
3922else
3923  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3924case `$LD -v 2>&1 </dev/null` in
3925*GNU* | *'with BFD'*)
3926  lt_cv_prog_gnu_ld=yes
3927  ;;
3928*)
3929  lt_cv_prog_gnu_ld=no
3930  ;;
3931esac
3932fi
3933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
3934$as_echo "$lt_cv_prog_gnu_ld" >&6; }
3935with_gnu_ld=$lt_cv_prog_gnu_ld
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
3946$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3947if ${lt_cv_path_NM+:} false; then :
3948  $as_echo_n "(cached) " >&6
3949else
3950  if test -n "$NM"; then
3951  # Let the user override the test.
3952  lt_cv_path_NM=$NM
3953else
3954  lt_nm_to_check=${ac_tool_prefix}nm
3955  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3956    lt_nm_to_check="$lt_nm_to_check nm"
3957  fi
3958  for lt_tmp_nm in $lt_nm_to_check; do
3959    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
3960    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3961      IFS=$lt_save_ifs
3962      test -z "$ac_dir" && ac_dir=.
3963      tmp_nm=$ac_dir/$lt_tmp_nm
3964      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
3965	# Check to see if the nm accepts a BSD-compat flag.
3966	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
3967	#   nm: unknown option "B" ignored
3968	# Tru64's nm complains that /dev/null is an invalid object file
3969	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
3970	case $build_os in
3971	mingw*) lt_bad_file=conftest.nm/nofile ;;
3972	*) lt_bad_file=/dev/null ;;
3973	esac
3974	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
3975	*$lt_bad_file* | *'Invalid file or object type'*)
3976	  lt_cv_path_NM="$tmp_nm -B"
3977	  break 2
3978	  ;;
3979	*)
3980	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3981	  */dev/null*)
3982	    lt_cv_path_NM="$tmp_nm -p"
3983	    break 2
3984	    ;;
3985	  *)
3986	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3987	    continue # so that we can try to find one that supports BSD flags
3988	    ;;
3989	  esac
3990	  ;;
3991	esac
3992      fi
3993    done
3994    IFS=$lt_save_ifs
3995  done
3996  : ${lt_cv_path_NM=no}
3997fi
3998fi
3999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4000$as_echo "$lt_cv_path_NM" >&6; }
4001if test no != "$lt_cv_path_NM"; then
4002  NM=$lt_cv_path_NM
4003else
4004  # Didn't find any BSD compatible name lister, look for dumpbin.
4005  if test -n "$DUMPBIN"; then :
4006    # Let the user override the test.
4007  else
4008    if test -n "$ac_tool_prefix"; then
4009  for ac_prog in dumpbin "link -dump"
4010  do
4011    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4012set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4014$as_echo_n "checking for $ac_word... " >&6; }
4015if ${ac_cv_prog_DUMPBIN+:} false; then :
4016  $as_echo_n "(cached) " >&6
4017else
4018  if test -n "$DUMPBIN"; then
4019  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4020else
4021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4022for as_dir in $PATH
4023do
4024  IFS=$as_save_IFS
4025  test -z "$as_dir" && as_dir=.
4026    for ac_exec_ext in '' $ac_executable_extensions; do
4027  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4028    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4029    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4030    break 2
4031  fi
4032done
4033  done
4034IFS=$as_save_IFS
4035
4036fi
4037fi
4038DUMPBIN=$ac_cv_prog_DUMPBIN
4039if test -n "$DUMPBIN"; then
4040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4041$as_echo "$DUMPBIN" >&6; }
4042else
4043  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4044$as_echo "no" >&6; }
4045fi
4046
4047
4048    test -n "$DUMPBIN" && break
4049  done
4050fi
4051if test -z "$DUMPBIN"; then
4052  ac_ct_DUMPBIN=$DUMPBIN
4053  for ac_prog in dumpbin "link -dump"
4054do
4055  # Extract the first word of "$ac_prog", so it can be a program name with args.
4056set dummy $ac_prog; ac_word=$2
4057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4058$as_echo_n "checking for $ac_word... " >&6; }
4059if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4060  $as_echo_n "(cached) " >&6
4061else
4062  if test -n "$ac_ct_DUMPBIN"; then
4063  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4064else
4065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4066for as_dir in $PATH
4067do
4068  IFS=$as_save_IFS
4069  test -z "$as_dir" && as_dir=.
4070    for ac_exec_ext in '' $ac_executable_extensions; do
4071  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4072    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4073    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4074    break 2
4075  fi
4076done
4077  done
4078IFS=$as_save_IFS
4079
4080fi
4081fi
4082ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4083if test -n "$ac_ct_DUMPBIN"; then
4084  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4085$as_echo "$ac_ct_DUMPBIN" >&6; }
4086else
4087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4088$as_echo "no" >&6; }
4089fi
4090
4091
4092  test -n "$ac_ct_DUMPBIN" && break
4093done
4094
4095  if test "x$ac_ct_DUMPBIN" = x; then
4096    DUMPBIN=":"
4097  else
4098    case $cross_compiling:$ac_tool_warned in
4099yes:)
4100{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4101$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4102ac_tool_warned=yes ;;
4103esac
4104    DUMPBIN=$ac_ct_DUMPBIN
4105  fi
4106fi
4107
4108    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4109    *COFF*)
4110      DUMPBIN="$DUMPBIN -symbols -headers"
4111      ;;
4112    *)
4113      DUMPBIN=:
4114      ;;
4115    esac
4116  fi
4117
4118  if test : != "$DUMPBIN"; then
4119    NM=$DUMPBIN
4120  fi
4121fi
4122test -z "$NM" && NM=nm
4123
4124
4125
4126
4127
4128
4129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4130$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4131if ${lt_cv_nm_interface+:} false; then :
4132  $as_echo_n "(cached) " >&6
4133else
4134  lt_cv_nm_interface="BSD nm"
4135  echo "int some_variable = 0;" > conftest.$ac_ext
4136  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4137  (eval "$ac_compile" 2>conftest.err)
4138  cat conftest.err >&5
4139  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4140  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4141  cat conftest.err >&5
4142  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4143  cat conftest.out >&5
4144  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4145    lt_cv_nm_interface="MS dumpbin"
4146  fi
4147  rm -f conftest*
4148fi
4149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4150$as_echo "$lt_cv_nm_interface" >&6; }
4151
4152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4153$as_echo_n "checking whether ln -s works... " >&6; }
4154LN_S=$as_ln_s
4155if test "$LN_S" = "ln -s"; then
4156  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4157$as_echo "yes" >&6; }
4158else
4159  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4160$as_echo "no, using $LN_S" >&6; }
4161fi
4162
4163# find the maximum length of command line arguments
4164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4165$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4166if ${lt_cv_sys_max_cmd_len+:} false; then :
4167  $as_echo_n "(cached) " >&6
4168else
4169    i=0
4170  teststring=ABCD
4171
4172  case $build_os in
4173  msdosdjgpp*)
4174    # On DJGPP, this test can blow up pretty badly due to problems in libc
4175    # (any single argument exceeding 2000 bytes causes a buffer overrun
4176    # during glob expansion).  Even if it were fixed, the result of this
4177    # check would be larger than it should be.
4178    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4179    ;;
4180
4181  gnu*)
4182    # Under GNU Hurd, this test is not required because there is
4183    # no limit to the length of command line arguments.
4184    # Libtool will interpret -1 as no limit whatsoever
4185    lt_cv_sys_max_cmd_len=-1;
4186    ;;
4187
4188  cygwin* | mingw* | cegcc*)
4189    # On Win9x/ME, this test blows up -- it succeeds, but takes
4190    # about 5 minutes as the teststring grows exponentially.
4191    # Worse, since 9x/ME are not pre-emptively multitasking,
4192    # you end up with a "frozen" computer, even though with patience
4193    # the test eventually succeeds (with a max line length of 256k).
4194    # Instead, let's just punt: use the minimum linelength reported by
4195    # all of the supported platforms: 8192 (on NT/2K/XP).
4196    lt_cv_sys_max_cmd_len=8192;
4197    ;;
4198
4199  mint*)
4200    # On MiNT this can take a long time and run out of memory.
4201    lt_cv_sys_max_cmd_len=8192;
4202    ;;
4203
4204  amigaos*)
4205    # On AmigaOS with pdksh, this test takes hours, literally.
4206    # So we just punt and use a minimum line length of 8192.
4207    lt_cv_sys_max_cmd_len=8192;
4208    ;;
4209
4210  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4211    # This has been around since 386BSD, at least.  Likely further.
4212    if test -x /sbin/sysctl; then
4213      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4214    elif test -x /usr/sbin/sysctl; then
4215      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4216    else
4217      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4218    fi
4219    # And add a safety zone
4220    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4221    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4222    ;;
4223
4224  interix*)
4225    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4226    lt_cv_sys_max_cmd_len=196608
4227    ;;
4228
4229  os2*)
4230    # The test takes a long time on OS/2.
4231    lt_cv_sys_max_cmd_len=8192
4232    ;;
4233
4234  osf*)
4235    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4236    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4237    # nice to cause kernel panics so lets avoid the loop below.
4238    # First set a reasonable default.
4239    lt_cv_sys_max_cmd_len=16384
4240    #
4241    if test -x /sbin/sysconfig; then
4242      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4243        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4244      esac
4245    fi
4246    ;;
4247  sco3.2v5*)
4248    lt_cv_sys_max_cmd_len=102400
4249    ;;
4250  sysv5* | sco5v6* | sysv4.2uw2*)
4251    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4252    if test -n "$kargmax"; then
4253      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4254    else
4255      lt_cv_sys_max_cmd_len=32768
4256    fi
4257    ;;
4258  *)
4259    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4260    if test -n "$lt_cv_sys_max_cmd_len" && \
4261       test undefined != "$lt_cv_sys_max_cmd_len"; then
4262      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4263      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4264    else
4265      # Make teststring a little bigger before we do anything with it.
4266      # a 1K string should be a reasonable start.
4267      for i in 1 2 3 4 5 6 7 8; do
4268        teststring=$teststring$teststring
4269      done
4270      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4271      # If test is not a shell built-in, we'll probably end up computing a
4272      # maximum length that is only half of the actual maximum length, but
4273      # we can't tell.
4274      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4275	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4276	      test 17 != "$i" # 1/2 MB should be enough
4277      do
4278        i=`expr $i + 1`
4279        teststring=$teststring$teststring
4280      done
4281      # Only check the string length outside the loop.
4282      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4283      teststring=
4284      # Add a significant safety factor because C++ compilers can tack on
4285      # massive amounts of additional arguments before passing them to the
4286      # linker.  It appears as though 1/2 is a usable value.
4287      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4288    fi
4289    ;;
4290  esac
4291
4292fi
4293
4294if test -n "$lt_cv_sys_max_cmd_len"; then
4295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4296$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4297else
4298  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4299$as_echo "none" >&6; }
4300fi
4301max_cmd_len=$lt_cv_sys_max_cmd_len
4302
4303
4304
4305
4306
4307
4308: ${CP="cp -f"}
4309: ${MV="mv -f"}
4310: ${RM="rm -f"}
4311
4312if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4313  lt_unset=unset
4314else
4315  lt_unset=false
4316fi
4317
4318
4319
4320
4321
4322# test EBCDIC or ASCII
4323case `echo X|tr X '\101'` in
4324 A) # ASCII based system
4325    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4326  lt_SP2NL='tr \040 \012'
4327  lt_NL2SP='tr \015\012 \040\040'
4328  ;;
4329 *) # EBCDIC based system
4330  lt_SP2NL='tr \100 \n'
4331  lt_NL2SP='tr \r\n \100\100'
4332  ;;
4333esac
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4344$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4345if ${lt_cv_to_host_file_cmd+:} false; then :
4346  $as_echo_n "(cached) " >&6
4347else
4348  case $host in
4349  *-*-mingw* )
4350    case $build in
4351      *-*-mingw* ) # actually msys
4352        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4353        ;;
4354      *-*-cygwin* )
4355        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4356        ;;
4357      * ) # otherwise, assume *nix
4358        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4359        ;;
4360    esac
4361    ;;
4362  *-*-cygwin* )
4363    case $build in
4364      *-*-mingw* ) # actually msys
4365        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4366        ;;
4367      *-*-cygwin* )
4368        lt_cv_to_host_file_cmd=func_convert_file_noop
4369        ;;
4370      * ) # otherwise, assume *nix
4371        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4372        ;;
4373    esac
4374    ;;
4375  * ) # unhandled hosts (and "normal" native builds)
4376    lt_cv_to_host_file_cmd=func_convert_file_noop
4377    ;;
4378esac
4379
4380fi
4381
4382to_host_file_cmd=$lt_cv_to_host_file_cmd
4383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4384$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4385
4386
4387
4388
4389
4390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4391$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4392if ${lt_cv_to_tool_file_cmd+:} false; then :
4393  $as_echo_n "(cached) " >&6
4394else
4395  #assume ordinary cross tools, or native build.
4396lt_cv_to_tool_file_cmd=func_convert_file_noop
4397case $host in
4398  *-*-mingw* )
4399    case $build in
4400      *-*-mingw* ) # actually msys
4401        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4402        ;;
4403    esac
4404    ;;
4405esac
4406
4407fi
4408
4409to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4411$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4412
4413
4414
4415
4416
4417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4418$as_echo_n "checking for $LD option to reload object files... " >&6; }
4419if ${lt_cv_ld_reload_flag+:} false; then :
4420  $as_echo_n "(cached) " >&6
4421else
4422  lt_cv_ld_reload_flag='-r'
4423fi
4424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4425$as_echo "$lt_cv_ld_reload_flag" >&6; }
4426reload_flag=$lt_cv_ld_reload_flag
4427case $reload_flag in
4428"" | " "*) ;;
4429*) reload_flag=" $reload_flag" ;;
4430esac
4431reload_cmds='$LD$reload_flag -o $output$reload_objs'
4432case $host_os in
4433  cygwin* | mingw* | pw32* | cegcc*)
4434    if test yes != "$GCC"; then
4435      reload_cmds=false
4436    fi
4437    ;;
4438  darwin*)
4439    if test yes = "$GCC"; then
4440      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
4441    else
4442      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4443    fi
4444    ;;
4445esac
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455if test -n "$ac_tool_prefix"; then
4456  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4457set dummy ${ac_tool_prefix}objdump; ac_word=$2
4458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4459$as_echo_n "checking for $ac_word... " >&6; }
4460if ${ac_cv_prog_OBJDUMP+:} false; then :
4461  $as_echo_n "(cached) " >&6
4462else
4463  if test -n "$OBJDUMP"; then
4464  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4465else
4466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4467for as_dir in $PATH
4468do
4469  IFS=$as_save_IFS
4470  test -z "$as_dir" && as_dir=.
4471    for ac_exec_ext in '' $ac_executable_extensions; do
4472  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4473    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4474    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4475    break 2
4476  fi
4477done
4478  done
4479IFS=$as_save_IFS
4480
4481fi
4482fi
4483OBJDUMP=$ac_cv_prog_OBJDUMP
4484if test -n "$OBJDUMP"; then
4485  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4486$as_echo "$OBJDUMP" >&6; }
4487else
4488  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4489$as_echo "no" >&6; }
4490fi
4491
4492
4493fi
4494if test -z "$ac_cv_prog_OBJDUMP"; then
4495  ac_ct_OBJDUMP=$OBJDUMP
4496  # Extract the first word of "objdump", so it can be a program name with args.
4497set dummy objdump; ac_word=$2
4498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4499$as_echo_n "checking for $ac_word... " >&6; }
4500if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4501  $as_echo_n "(cached) " >&6
4502else
4503  if test -n "$ac_ct_OBJDUMP"; then
4504  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4505else
4506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4507for as_dir in $PATH
4508do
4509  IFS=$as_save_IFS
4510  test -z "$as_dir" && as_dir=.
4511    for ac_exec_ext in '' $ac_executable_extensions; do
4512  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4513    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4514    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4515    break 2
4516  fi
4517done
4518  done
4519IFS=$as_save_IFS
4520
4521fi
4522fi
4523ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4524if test -n "$ac_ct_OBJDUMP"; then
4525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4526$as_echo "$ac_ct_OBJDUMP" >&6; }
4527else
4528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4529$as_echo "no" >&6; }
4530fi
4531
4532  if test "x$ac_ct_OBJDUMP" = x; then
4533    OBJDUMP="false"
4534  else
4535    case $cross_compiling:$ac_tool_warned in
4536yes:)
4537{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4538$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4539ac_tool_warned=yes ;;
4540esac
4541    OBJDUMP=$ac_ct_OBJDUMP
4542  fi
4543else
4544  OBJDUMP="$ac_cv_prog_OBJDUMP"
4545fi
4546
4547test -z "$OBJDUMP" && OBJDUMP=objdump
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4558$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4559if ${lt_cv_deplibs_check_method+:} false; then :
4560  $as_echo_n "(cached) " >&6
4561else
4562  lt_cv_file_magic_cmd='$MAGIC_CMD'
4563lt_cv_file_magic_test_file=
4564lt_cv_deplibs_check_method='unknown'
4565# Need to set the preceding variable on all platforms that support
4566# interlibrary dependencies.
4567# 'none' -- dependencies not supported.
4568# 'unknown' -- same as none, but documents that we really don't know.
4569# 'pass_all' -- all dependencies passed with no checks.
4570# 'test_compile' -- check by making test program.
4571# 'file_magic [[regex]]' -- check by looking for files in library path
4572# that responds to the $file_magic_cmd with a given extended regex.
4573# If you have 'file' or equivalent on your system and you're not sure
4574# whether 'pass_all' will *always* work, you probably want this one.
4575
4576case $host_os in
4577aix[4-9]*)
4578  lt_cv_deplibs_check_method=pass_all
4579  ;;
4580
4581beos*)
4582  lt_cv_deplibs_check_method=pass_all
4583  ;;
4584
4585bsdi[45]*)
4586  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4587  lt_cv_file_magic_cmd='/usr/bin/file -L'
4588  lt_cv_file_magic_test_file=/shlib/libc.so
4589  ;;
4590
4591cygwin*)
4592  # func_win32_libid is a shell function defined in ltmain.sh
4593  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4594  lt_cv_file_magic_cmd='func_win32_libid'
4595  ;;
4596
4597mingw* | pw32*)
4598  # Base MSYS/MinGW do not provide the 'file' command needed by
4599  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4600  # unless we find 'file', for example because we are cross-compiling.
4601  if ( file / ) >/dev/null 2>&1; then
4602    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4603    lt_cv_file_magic_cmd='func_win32_libid'
4604  else
4605    # Keep this pattern in sync with the one in func_win32_libid.
4606    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4607    lt_cv_file_magic_cmd='$OBJDUMP -f'
4608  fi
4609  ;;
4610
4611cegcc*)
4612  # use the weaker test based on 'objdump'. See mingw*.
4613  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4614  lt_cv_file_magic_cmd='$OBJDUMP -f'
4615  ;;
4616
4617darwin* | rhapsody*)
4618  lt_cv_deplibs_check_method=pass_all
4619  ;;
4620
4621freebsd* | dragonfly*)
4622  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4623    case $host_cpu in
4624    i*86 )
4625      # Not sure whether the presence of OpenBSD here was a mistake.
4626      # Let's accept both of them until this is cleared up.
4627      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4628      lt_cv_file_magic_cmd=/usr/bin/file
4629      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4630      ;;
4631    esac
4632  else
4633    lt_cv_deplibs_check_method=pass_all
4634  fi
4635  ;;
4636
4637haiku*)
4638  lt_cv_deplibs_check_method=pass_all
4639  ;;
4640
4641hpux10.20* | hpux11*)
4642  lt_cv_file_magic_cmd=/usr/bin/file
4643  case $host_cpu in
4644  ia64*)
4645    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4646    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4647    ;;
4648  hppa*64*)
4649    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
4650    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4651    ;;
4652  *)
4653    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4654    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4655    ;;
4656  esac
4657  ;;
4658
4659interix[3-9]*)
4660  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4661  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4662  ;;
4663
4664irix5* | irix6* | nonstopux*)
4665  case $LD in
4666  *-32|*"-32 ") libmagic=32-bit;;
4667  *-n32|*"-n32 ") libmagic=N32;;
4668  *-64|*"-64 ") libmagic=64-bit;;
4669  *) libmagic=never-match;;
4670  esac
4671  lt_cv_deplibs_check_method=pass_all
4672  ;;
4673
4674# This must be glibc/ELF.
4675linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4676  lt_cv_deplibs_check_method=pass_all
4677  ;;
4678
4679netbsd* | netbsdelf*-gnu)
4680  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4681    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4682  else
4683    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4684  fi
4685  ;;
4686
4687newos6*)
4688  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4689  lt_cv_file_magic_cmd=/usr/bin/file
4690  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4691  ;;
4692
4693*nto* | *qnx*)
4694  lt_cv_deplibs_check_method=pass_all
4695  ;;
4696
4697openbsd* | bitrig*)
4698  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
4699    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4700  else
4701    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4702  fi
4703  ;;
4704
4705osf3* | osf4* | osf5*)
4706  lt_cv_deplibs_check_method=pass_all
4707  ;;
4708
4709rdos*)
4710  lt_cv_deplibs_check_method=pass_all
4711  ;;
4712
4713solaris*)
4714  lt_cv_deplibs_check_method=pass_all
4715  ;;
4716
4717sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4718  lt_cv_deplibs_check_method=pass_all
4719  ;;
4720
4721sysv4 | sysv4.3*)
4722  case $host_vendor in
4723  motorola)
4724    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]'
4725    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4726    ;;
4727  ncr)
4728    lt_cv_deplibs_check_method=pass_all
4729    ;;
4730  sequent)
4731    lt_cv_file_magic_cmd='/bin/file'
4732    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4733    ;;
4734  sni)
4735    lt_cv_file_magic_cmd='/bin/file'
4736    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4737    lt_cv_file_magic_test_file=/lib/libc.so
4738    ;;
4739  siemens)
4740    lt_cv_deplibs_check_method=pass_all
4741    ;;
4742  pc)
4743    lt_cv_deplibs_check_method=pass_all
4744    ;;
4745  esac
4746  ;;
4747
4748tpf*)
4749  lt_cv_deplibs_check_method=pass_all
4750  ;;
4751os2*)
4752  lt_cv_deplibs_check_method=pass_all
4753  ;;
4754esac
4755
4756fi
4757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4758$as_echo "$lt_cv_deplibs_check_method" >&6; }
4759
4760file_magic_glob=
4761want_nocaseglob=no
4762if test "$build" = "$host"; then
4763  case $host_os in
4764  mingw* | pw32*)
4765    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4766      want_nocaseglob=yes
4767    else
4768      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
4769    fi
4770    ;;
4771  esac
4772fi
4773
4774file_magic_cmd=$lt_cv_file_magic_cmd
4775deplibs_check_method=$lt_cv_deplibs_check_method
4776test -z "$deplibs_check_method" && deplibs_check_method=unknown
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799if test -n "$ac_tool_prefix"; then
4800  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4801set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4803$as_echo_n "checking for $ac_word... " >&6; }
4804if ${ac_cv_prog_DLLTOOL+:} false; then :
4805  $as_echo_n "(cached) " >&6
4806else
4807  if test -n "$DLLTOOL"; then
4808  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4809else
4810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4811for as_dir in $PATH
4812do
4813  IFS=$as_save_IFS
4814  test -z "$as_dir" && as_dir=.
4815    for ac_exec_ext in '' $ac_executable_extensions; do
4816  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4817    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4818    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4819    break 2
4820  fi
4821done
4822  done
4823IFS=$as_save_IFS
4824
4825fi
4826fi
4827DLLTOOL=$ac_cv_prog_DLLTOOL
4828if test -n "$DLLTOOL"; then
4829  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4830$as_echo "$DLLTOOL" >&6; }
4831else
4832  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4833$as_echo "no" >&6; }
4834fi
4835
4836
4837fi
4838if test -z "$ac_cv_prog_DLLTOOL"; then
4839  ac_ct_DLLTOOL=$DLLTOOL
4840  # Extract the first word of "dlltool", so it can be a program name with args.
4841set dummy dlltool; ac_word=$2
4842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4843$as_echo_n "checking for $ac_word... " >&6; }
4844if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4845  $as_echo_n "(cached) " >&6
4846else
4847  if test -n "$ac_ct_DLLTOOL"; then
4848  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4849else
4850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4851for as_dir in $PATH
4852do
4853  IFS=$as_save_IFS
4854  test -z "$as_dir" && as_dir=.
4855    for ac_exec_ext in '' $ac_executable_extensions; do
4856  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4857    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4858    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4859    break 2
4860  fi
4861done
4862  done
4863IFS=$as_save_IFS
4864
4865fi
4866fi
4867ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4868if test -n "$ac_ct_DLLTOOL"; then
4869  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4870$as_echo "$ac_ct_DLLTOOL" >&6; }
4871else
4872  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4873$as_echo "no" >&6; }
4874fi
4875
4876  if test "x$ac_ct_DLLTOOL" = x; then
4877    DLLTOOL="false"
4878  else
4879    case $cross_compiling:$ac_tool_warned in
4880yes:)
4881{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4882$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4883ac_tool_warned=yes ;;
4884esac
4885    DLLTOOL=$ac_ct_DLLTOOL
4886  fi
4887else
4888  DLLTOOL="$ac_cv_prog_DLLTOOL"
4889fi
4890
4891test -z "$DLLTOOL" && DLLTOOL=dlltool
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
4903$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
4904if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
4905  $as_echo_n "(cached) " >&6
4906else
4907  lt_cv_sharedlib_from_linklib_cmd='unknown'
4908
4909case $host_os in
4910cygwin* | mingw* | pw32* | cegcc*)
4911  # two different shell functions defined in ltmain.sh;
4912  # decide which one to use based on capabilities of $DLLTOOL
4913  case `$DLLTOOL --help 2>&1` in
4914  *--identify-strict*)
4915    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
4916    ;;
4917  *)
4918    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
4919    ;;
4920  esac
4921  ;;
4922*)
4923  # fallback: assume linklib IS sharedlib
4924  lt_cv_sharedlib_from_linklib_cmd=$ECHO
4925  ;;
4926esac
4927
4928fi
4929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
4930$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
4931sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
4932test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
4933
4934
4935
4936
4937
4938
4939
4940
4941if test -n "$ac_tool_prefix"; then
4942  for ac_prog in ar
4943  do
4944    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4945set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4947$as_echo_n "checking for $ac_word... " >&6; }
4948if ${ac_cv_prog_AR+:} false; then :
4949  $as_echo_n "(cached) " >&6
4950else
4951  if test -n "$AR"; then
4952  ac_cv_prog_AR="$AR" # Let the user override the test.
4953else
4954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4955for as_dir in $PATH
4956do
4957  IFS=$as_save_IFS
4958  test -z "$as_dir" && as_dir=.
4959    for ac_exec_ext in '' $ac_executable_extensions; do
4960  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4961    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4962    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4963    break 2
4964  fi
4965done
4966  done
4967IFS=$as_save_IFS
4968
4969fi
4970fi
4971AR=$ac_cv_prog_AR
4972if test -n "$AR"; then
4973  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4974$as_echo "$AR" >&6; }
4975else
4976  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4977$as_echo "no" >&6; }
4978fi
4979
4980
4981    test -n "$AR" && break
4982  done
4983fi
4984if test -z "$AR"; then
4985  ac_ct_AR=$AR
4986  for ac_prog in ar
4987do
4988  # Extract the first word of "$ac_prog", so it can be a program name with args.
4989set dummy $ac_prog; ac_word=$2
4990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4991$as_echo_n "checking for $ac_word... " >&6; }
4992if ${ac_cv_prog_ac_ct_AR+:} false; then :
4993  $as_echo_n "(cached) " >&6
4994else
4995  if test -n "$ac_ct_AR"; then
4996  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4997else
4998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4999for as_dir in $PATH
5000do
5001  IFS=$as_save_IFS
5002  test -z "$as_dir" && as_dir=.
5003    for ac_exec_ext in '' $ac_executable_extensions; do
5004  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5005    ac_cv_prog_ac_ct_AR="$ac_prog"
5006    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5007    break 2
5008  fi
5009done
5010  done
5011IFS=$as_save_IFS
5012
5013fi
5014fi
5015ac_ct_AR=$ac_cv_prog_ac_ct_AR
5016if test -n "$ac_ct_AR"; then
5017  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5018$as_echo "$ac_ct_AR" >&6; }
5019else
5020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5021$as_echo "no" >&6; }
5022fi
5023
5024
5025  test -n "$ac_ct_AR" && break
5026done
5027
5028  if test "x$ac_ct_AR" = x; then
5029    AR="false"
5030  else
5031    case $cross_compiling:$ac_tool_warned in
5032yes:)
5033{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5034$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5035ac_tool_warned=yes ;;
5036esac
5037    AR=$ac_ct_AR
5038  fi
5039fi
5040
5041: ${AR=ar}
5042: ${AR_FLAGS=cru}
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5055$as_echo_n "checking for archiver @FILE support... " >&6; }
5056if ${lt_cv_ar_at_file+:} false; then :
5057  $as_echo_n "(cached) " >&6
5058else
5059  lt_cv_ar_at_file=no
5060   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5061/* end confdefs.h.  */
5062
5063int
5064main ()
5065{
5066
5067  ;
5068  return 0;
5069}
5070_ACEOF
5071if ac_fn_c_try_compile "$LINENO"; then :
5072  echo conftest.$ac_objext > conftest.lst
5073      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5074      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5075  (eval $lt_ar_try) 2>&5
5076  ac_status=$?
5077  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5078  test $ac_status = 0; }
5079      if test 0 -eq "$ac_status"; then
5080	# Ensure the archiver fails upon bogus file names.
5081	rm -f conftest.$ac_objext libconftest.a
5082	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5083  (eval $lt_ar_try) 2>&5
5084  ac_status=$?
5085  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5086  test $ac_status = 0; }
5087	if test 0 -ne "$ac_status"; then
5088          lt_cv_ar_at_file=@
5089        fi
5090      fi
5091      rm -f conftest.* libconftest.a
5092
5093fi
5094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5095
5096fi
5097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5098$as_echo "$lt_cv_ar_at_file" >&6; }
5099
5100if test no = "$lt_cv_ar_at_file"; then
5101  archiver_list_spec=
5102else
5103  archiver_list_spec=$lt_cv_ar_at_file
5104fi
5105
5106
5107
5108
5109
5110
5111
5112if test -n "$ac_tool_prefix"; then
5113  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5114set dummy ${ac_tool_prefix}strip; ac_word=$2
5115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5116$as_echo_n "checking for $ac_word... " >&6; }
5117if ${ac_cv_prog_STRIP+:} false; then :
5118  $as_echo_n "(cached) " >&6
5119else
5120  if test -n "$STRIP"; then
5121  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5122else
5123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5124for as_dir in $PATH
5125do
5126  IFS=$as_save_IFS
5127  test -z "$as_dir" && as_dir=.
5128    for ac_exec_ext in '' $ac_executable_extensions; do
5129  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5130    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5131    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5132    break 2
5133  fi
5134done
5135  done
5136IFS=$as_save_IFS
5137
5138fi
5139fi
5140STRIP=$ac_cv_prog_STRIP
5141if test -n "$STRIP"; then
5142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5143$as_echo "$STRIP" >&6; }
5144else
5145  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5146$as_echo "no" >&6; }
5147fi
5148
5149
5150fi
5151if test -z "$ac_cv_prog_STRIP"; then
5152  ac_ct_STRIP=$STRIP
5153  # Extract the first word of "strip", so it can be a program name with args.
5154set dummy strip; ac_word=$2
5155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5156$as_echo_n "checking for $ac_word... " >&6; }
5157if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5158  $as_echo_n "(cached) " >&6
5159else
5160  if test -n "$ac_ct_STRIP"; then
5161  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5162else
5163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5164for as_dir in $PATH
5165do
5166  IFS=$as_save_IFS
5167  test -z "$as_dir" && as_dir=.
5168    for ac_exec_ext in '' $ac_executable_extensions; do
5169  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5170    ac_cv_prog_ac_ct_STRIP="strip"
5171    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5172    break 2
5173  fi
5174done
5175  done
5176IFS=$as_save_IFS
5177
5178fi
5179fi
5180ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5181if test -n "$ac_ct_STRIP"; then
5182  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5183$as_echo "$ac_ct_STRIP" >&6; }
5184else
5185  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5186$as_echo "no" >&6; }
5187fi
5188
5189  if test "x$ac_ct_STRIP" = x; then
5190    STRIP=":"
5191  else
5192    case $cross_compiling:$ac_tool_warned in
5193yes:)
5194{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5195$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5196ac_tool_warned=yes ;;
5197esac
5198    STRIP=$ac_ct_STRIP
5199  fi
5200else
5201  STRIP="$ac_cv_prog_STRIP"
5202fi
5203
5204test -z "$STRIP" && STRIP=:
5205
5206
5207
5208
5209
5210
5211if test -n "$ac_tool_prefix"; then
5212  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5213set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5215$as_echo_n "checking for $ac_word... " >&6; }
5216if ${ac_cv_prog_RANLIB+:} false; then :
5217  $as_echo_n "(cached) " >&6
5218else
5219  if test -n "$RANLIB"; then
5220  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5221else
5222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5223for as_dir in $PATH
5224do
5225  IFS=$as_save_IFS
5226  test -z "$as_dir" && as_dir=.
5227    for ac_exec_ext in '' $ac_executable_extensions; do
5228  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5229    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5230    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5231    break 2
5232  fi
5233done
5234  done
5235IFS=$as_save_IFS
5236
5237fi
5238fi
5239RANLIB=$ac_cv_prog_RANLIB
5240if test -n "$RANLIB"; then
5241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5242$as_echo "$RANLIB" >&6; }
5243else
5244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5245$as_echo "no" >&6; }
5246fi
5247
5248
5249fi
5250if test -z "$ac_cv_prog_RANLIB"; then
5251  ac_ct_RANLIB=$RANLIB
5252  # Extract the first word of "ranlib", so it can be a program name with args.
5253set dummy ranlib; ac_word=$2
5254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5255$as_echo_n "checking for $ac_word... " >&6; }
5256if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5257  $as_echo_n "(cached) " >&6
5258else
5259  if test -n "$ac_ct_RANLIB"; then
5260  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5261else
5262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5263for as_dir in $PATH
5264do
5265  IFS=$as_save_IFS
5266  test -z "$as_dir" && as_dir=.
5267    for ac_exec_ext in '' $ac_executable_extensions; do
5268  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5269    ac_cv_prog_ac_ct_RANLIB="ranlib"
5270    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5271    break 2
5272  fi
5273done
5274  done
5275IFS=$as_save_IFS
5276
5277fi
5278fi
5279ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5280if test -n "$ac_ct_RANLIB"; then
5281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5282$as_echo "$ac_ct_RANLIB" >&6; }
5283else
5284  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5285$as_echo "no" >&6; }
5286fi
5287
5288  if test "x$ac_ct_RANLIB" = x; then
5289    RANLIB=":"
5290  else
5291    case $cross_compiling:$ac_tool_warned in
5292yes:)
5293{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5294$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5295ac_tool_warned=yes ;;
5296esac
5297    RANLIB=$ac_ct_RANLIB
5298  fi
5299else
5300  RANLIB="$ac_cv_prog_RANLIB"
5301fi
5302
5303test -z "$RANLIB" && RANLIB=:
5304
5305
5306
5307
5308
5309
5310# Determine commands to create old-style static archives.
5311old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5312old_postinstall_cmds='chmod 644 $oldlib'
5313old_postuninstall_cmds=
5314
5315if test -n "$RANLIB"; then
5316  case $host_os in
5317  bitrig* | openbsd*)
5318    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5319    ;;
5320  *)
5321    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5322    ;;
5323  esac
5324  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5325fi
5326
5327case $host_os in
5328  darwin*)
5329    lock_old_archive_extraction=yes ;;
5330  *)
5331    lock_old_archive_extraction=no ;;
5332esac
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354for ac_prog in gawk mawk nawk awk
5355do
5356  # Extract the first word of "$ac_prog", so it can be a program name with args.
5357set dummy $ac_prog; ac_word=$2
5358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5359$as_echo_n "checking for $ac_word... " >&6; }
5360if ${ac_cv_prog_AWK+:} false; then :
5361  $as_echo_n "(cached) " >&6
5362else
5363  if test -n "$AWK"; then
5364  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5365else
5366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5367for as_dir in $PATH
5368do
5369  IFS=$as_save_IFS
5370  test -z "$as_dir" && as_dir=.
5371    for ac_exec_ext in '' $ac_executable_extensions; do
5372  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5373    ac_cv_prog_AWK="$ac_prog"
5374    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5375    break 2
5376  fi
5377done
5378  done
5379IFS=$as_save_IFS
5380
5381fi
5382fi
5383AWK=$ac_cv_prog_AWK
5384if test -n "$AWK"; then
5385  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5386$as_echo "$AWK" >&6; }
5387else
5388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5389$as_echo "no" >&6; }
5390fi
5391
5392
5393  test -n "$AWK" && break
5394done
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414# If no C compiler was specified, use CC.
5415LTCC=${LTCC-"$CC"}
5416
5417# If no C compiler flags were specified, use CFLAGS.
5418LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5419
5420# Allow CC to be a program name with arguments.
5421compiler=$CC
5422
5423
5424# Check for command to grab the raw symbol name followed by C symbol from nm.
5425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5426$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5427if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5428  $as_echo_n "(cached) " >&6
5429else
5430
5431# These are sane defaults that work on at least a few old systems.
5432# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5433
5434# Character class describing NM global symbol codes.
5435symcode='[BCDEGRST]'
5436
5437# Regexp to match symbols that can be accessed directly from C.
5438sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5439
5440# Define system-specific variables.
5441case $host_os in
5442aix*)
5443  symcode='[BCDT]'
5444  ;;
5445cygwin* | mingw* | pw32* | cegcc*)
5446  symcode='[ABCDGISTW]'
5447  ;;
5448hpux*)
5449  if test ia64 = "$host_cpu"; then
5450    symcode='[ABCDEGRST]'
5451  fi
5452  ;;
5453irix* | nonstopux*)
5454  symcode='[BCDEGRST]'
5455  ;;
5456osf*)
5457  symcode='[BCDEGQRST]'
5458  ;;
5459solaris*)
5460  symcode='[BDRT]'
5461  ;;
5462sco3.2v5*)
5463  symcode='[DT]'
5464  ;;
5465sysv4.2uw2*)
5466  symcode='[DT]'
5467  ;;
5468sysv5* | sco5v6* | unixware* | OpenUNIX*)
5469  symcode='[ABDT]'
5470  ;;
5471sysv4)
5472  symcode='[DFNSTU]'
5473  ;;
5474esac
5475
5476# If we're using GNU nm, then use its standard symbol codes.
5477case `$NM -V 2>&1` in
5478*GNU* | *'with BFD'*)
5479  symcode='[ABCDGIRSTW]' ;;
5480esac
5481
5482if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5483  # Gets list of data symbols to import.
5484  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
5485  # Adjust the below global symbol transforms to fixup imported variables.
5486  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
5487  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
5488  lt_c_name_lib_hook="\
5489  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
5490  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
5491else
5492  # Disable hooks by default.
5493  lt_cv_sys_global_symbol_to_import=
5494  lt_cdecl_hook=
5495  lt_c_name_hook=
5496  lt_c_name_lib_hook=
5497fi
5498
5499# Transform an extracted symbol line into a proper C declaration.
5500# Some systems (esp. on ia64) link data and code symbols differently,
5501# so use this general approach.
5502lt_cv_sys_global_symbol_to_cdecl="sed -n"\
5503$lt_cdecl_hook\
5504" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
5505" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
5506
5507# Transform an extracted symbol line into symbol name and symbol address
5508lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
5509$lt_c_name_hook\
5510" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
5511" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
5512
5513# Transform an extracted symbol line into symbol name with lib prefix and
5514# symbol address.
5515lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
5516$lt_c_name_lib_hook\
5517" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
5518" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
5519" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
5520
5521# Handle CRLF in mingw tool chain
5522opt_cr=
5523case $build_os in
5524mingw*)
5525  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5526  ;;
5527esac
5528
5529# Try without a prefix underscore, then with it.
5530for ac_symprfx in "" "_"; do
5531
5532  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5533  symxfrm="\\1 $ac_symprfx\\2 \\2"
5534
5535  # Write the raw and C identifiers.
5536  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5537    # Fake it for dumpbin and say T for any non-static function,
5538    # D for any global variable and I for any imported variable.
5539    # Also find C++ and __fastcall symbols from MSVC++,
5540    # which start with @ or ?.
5541    lt_cv_sys_global_symbol_pipe="$AWK '"\
5542"     {last_section=section; section=\$ 3};"\
5543"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5544"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5545"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
5546"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
5547"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
5548"     \$ 0!~/External *\|/{next};"\
5549"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5550"     {if(hide[section]) next};"\
5551"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
5552"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
5553"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
5554"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
5555"     ' prfx=^$ac_symprfx"
5556  else
5557    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5558  fi
5559  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5560
5561  # Check to see that the pipe works correctly.
5562  pipe_works=no
5563
5564  rm -f conftest*
5565  cat > conftest.$ac_ext <<_LT_EOF
5566#ifdef __cplusplus
5567extern "C" {
5568#endif
5569char nm_test_var;
5570void nm_test_func(void);
5571void nm_test_func(void){}
5572#ifdef __cplusplus
5573}
5574#endif
5575int main(){nm_test_var='a';nm_test_func();return(0);}
5576_LT_EOF
5577
5578  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5579  (eval $ac_compile) 2>&5
5580  ac_status=$?
5581  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5582  test $ac_status = 0; }; then
5583    # Now try to grab the symbols.
5584    nlist=conftest.nm
5585    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5586  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5587  ac_status=$?
5588  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5589  test $ac_status = 0; } && test -s "$nlist"; then
5590      # Try sorting and uniquifying the output.
5591      if sort "$nlist" | uniq > "$nlist"T; then
5592	mv -f "$nlist"T "$nlist"
5593      else
5594	rm -f "$nlist"T
5595      fi
5596
5597      # Make sure that we snagged all the symbols we need.
5598      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5599	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5600	  cat <<_LT_EOF > conftest.$ac_ext
5601/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
5602#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
5603/* DATA imports from DLLs on WIN32 can't be const, because runtime
5604   relocations are performed -- see ld's documentation on pseudo-relocs.  */
5605# define LT_DLSYM_CONST
5606#elif defined __osf__
5607/* This system does not cope well with relocations in const data.  */
5608# define LT_DLSYM_CONST
5609#else
5610# define LT_DLSYM_CONST const
5611#endif
5612
5613#ifdef __cplusplus
5614extern "C" {
5615#endif
5616
5617_LT_EOF
5618	  # Now generate the symbol file.
5619	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5620
5621	  cat <<_LT_EOF >> conftest.$ac_ext
5622
5623/* The mapping between symbol names and symbols.  */
5624LT_DLSYM_CONST struct {
5625  const char *name;
5626  void       *address;
5627}
5628lt__PROGRAM__LTX_preloaded_symbols[] =
5629{
5630  { "@PROGRAM@", (void *) 0 },
5631_LT_EOF
5632	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5633	  cat <<\_LT_EOF >> conftest.$ac_ext
5634  {0, (void *) 0}
5635};
5636
5637/* This works around a problem in FreeBSD linker */
5638#ifdef FREEBSD_WORKAROUND
5639static const void *lt_preloaded_setup() {
5640  return lt__PROGRAM__LTX_preloaded_symbols;
5641}
5642#endif
5643
5644#ifdef __cplusplus
5645}
5646#endif
5647_LT_EOF
5648	  # Now try linking the two files.
5649	  mv conftest.$ac_objext conftstm.$ac_objext
5650	  lt_globsym_save_LIBS=$LIBS
5651	  lt_globsym_save_CFLAGS=$CFLAGS
5652	  LIBS=conftstm.$ac_objext
5653	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5654	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5655  (eval $ac_link) 2>&5
5656  ac_status=$?
5657  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5658  test $ac_status = 0; } && test -s conftest$ac_exeext; then
5659	    pipe_works=yes
5660	  fi
5661	  LIBS=$lt_globsym_save_LIBS
5662	  CFLAGS=$lt_globsym_save_CFLAGS
5663	else
5664	  echo "cannot find nm_test_func in $nlist" >&5
5665	fi
5666      else
5667	echo "cannot find nm_test_var in $nlist" >&5
5668      fi
5669    else
5670      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5671    fi
5672  else
5673    echo "$progname: failed program was:" >&5
5674    cat conftest.$ac_ext >&5
5675  fi
5676  rm -rf conftest* conftst*
5677
5678  # Do not use the global_symbol_pipe unless it works.
5679  if test yes = "$pipe_works"; then
5680    break
5681  else
5682    lt_cv_sys_global_symbol_pipe=
5683  fi
5684done
5685
5686fi
5687
5688if test -z "$lt_cv_sys_global_symbol_pipe"; then
5689  lt_cv_sys_global_symbol_to_cdecl=
5690fi
5691if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5692  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5693$as_echo "failed" >&6; }
5694else
5695  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5696$as_echo "ok" >&6; }
5697fi
5698
5699# Response file support.
5700if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5701  nm_file_list_spec='@'
5702elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5703  nm_file_list_spec='@'
5704fi
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5743$as_echo_n "checking for sysroot... " >&6; }
5744
5745# Check whether --with-sysroot was given.
5746if test "${with_sysroot+set}" = set; then :
5747  withval=$with_sysroot;
5748else
5749  with_sysroot=no
5750fi
5751
5752
5753lt_sysroot=
5754case $with_sysroot in #(
5755 yes)
5756   if test yes = "$GCC"; then
5757     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5758   fi
5759   ;; #(
5760 /*)
5761   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5762   ;; #(
5763 no|'')
5764   ;; #(
5765 *)
5766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
5767$as_echo "$with_sysroot" >&6; }
5768   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5769   ;;
5770esac
5771
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5773$as_echo "${lt_sysroot:-no}" >&6; }
5774
5775
5776
5777
5778
5779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
5780$as_echo_n "checking for a working dd... " >&6; }
5781if ${ac_cv_path_lt_DD+:} false; then :
5782  $as_echo_n "(cached) " >&6
5783else
5784  printf 0123456789abcdef0123456789abcdef >conftest.i
5785cat conftest.i conftest.i >conftest2.i
5786: ${lt_DD:=$DD}
5787if test -z "$lt_DD"; then
5788  ac_path_lt_DD_found=false
5789  # Loop through the user's path and test for each of PROGNAME-LIST
5790  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5791for as_dir in $PATH
5792do
5793  IFS=$as_save_IFS
5794  test -z "$as_dir" && as_dir=.
5795    for ac_prog in dd; do
5796    for ac_exec_ext in '' $ac_executable_extensions; do
5797      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
5798      as_fn_executable_p "$ac_path_lt_DD" || continue
5799if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
5800  cmp -s conftest.i conftest.out \
5801  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
5802fi
5803      $ac_path_lt_DD_found && break 3
5804    done
5805  done
5806  done
5807IFS=$as_save_IFS
5808  if test -z "$ac_cv_path_lt_DD"; then
5809    :
5810  fi
5811else
5812  ac_cv_path_lt_DD=$lt_DD
5813fi
5814
5815rm -f conftest.i conftest2.i conftest.out
5816fi
5817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
5818$as_echo "$ac_cv_path_lt_DD" >&6; }
5819
5820
5821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
5822$as_echo_n "checking how to truncate binary pipes... " >&6; }
5823if ${lt_cv_truncate_bin+:} false; then :
5824  $as_echo_n "(cached) " >&6
5825else
5826  printf 0123456789abcdef0123456789abcdef >conftest.i
5827cat conftest.i conftest.i >conftest2.i
5828lt_cv_truncate_bin=
5829if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
5830  cmp -s conftest.i conftest.out \
5831  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
5832fi
5833rm -f conftest.i conftest2.i conftest.out
5834test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
5835fi
5836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
5837$as_echo "$lt_cv_truncate_bin" >&6; }
5838
5839
5840
5841
5842
5843
5844
5845# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
5846func_cc_basename ()
5847{
5848    for cc_temp in $*""; do
5849      case $cc_temp in
5850        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5851        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5852        \-*) ;;
5853        *) break;;
5854      esac
5855    done
5856    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
5857}
5858
5859# Check whether --enable-libtool-lock was given.
5860if test "${enable_libtool_lock+set}" = set; then :
5861  enableval=$enable_libtool_lock;
5862fi
5863
5864test no = "$enable_libtool_lock" || enable_libtool_lock=yes
5865
5866# Some flags need to be propagated to the compiler or linker for good
5867# libtool support.
5868case $host in
5869ia64-*-hpux*)
5870  # Find out what ABI is being produced by ac_compile, and set mode
5871  # options accordingly.
5872  echo 'int i;' > conftest.$ac_ext
5873  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5874  (eval $ac_compile) 2>&5
5875  ac_status=$?
5876  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5877  test $ac_status = 0; }; then
5878    case `/usr/bin/file conftest.$ac_objext` in
5879      *ELF-32*)
5880	HPUX_IA64_MODE=32
5881	;;
5882      *ELF-64*)
5883	HPUX_IA64_MODE=64
5884	;;
5885    esac
5886  fi
5887  rm -rf conftest*
5888  ;;
5889*-*-irix6*)
5890  # Find out what ABI is being produced by ac_compile, and set linker
5891  # options accordingly.
5892  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5893  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5894  (eval $ac_compile) 2>&5
5895  ac_status=$?
5896  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5897  test $ac_status = 0; }; then
5898    if test yes = "$lt_cv_prog_gnu_ld"; then
5899      case `/usr/bin/file conftest.$ac_objext` in
5900	*32-bit*)
5901	  LD="${LD-ld} -melf32bsmip"
5902	  ;;
5903	*N32*)
5904	  LD="${LD-ld} -melf32bmipn32"
5905	  ;;
5906	*64-bit*)
5907	  LD="${LD-ld} -melf64bmip"
5908	;;
5909      esac
5910    else
5911      case `/usr/bin/file conftest.$ac_objext` in
5912	*32-bit*)
5913	  LD="${LD-ld} -32"
5914	  ;;
5915	*N32*)
5916	  LD="${LD-ld} -n32"
5917	  ;;
5918	*64-bit*)
5919	  LD="${LD-ld} -64"
5920	  ;;
5921      esac
5922    fi
5923  fi
5924  rm -rf conftest*
5925  ;;
5926
5927mips64*-*linux*)
5928  # Find out what ABI is being produced by ac_compile, and set linker
5929  # options accordingly.
5930  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5931  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5932  (eval $ac_compile) 2>&5
5933  ac_status=$?
5934  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5935  test $ac_status = 0; }; then
5936    emul=elf
5937    case `/usr/bin/file conftest.$ac_objext` in
5938      *32-bit*)
5939	emul="${emul}32"
5940	;;
5941      *64-bit*)
5942	emul="${emul}64"
5943	;;
5944    esac
5945    case `/usr/bin/file conftest.$ac_objext` in
5946      *MSB*)
5947	emul="${emul}btsmip"
5948	;;
5949      *LSB*)
5950	emul="${emul}ltsmip"
5951	;;
5952    esac
5953    case `/usr/bin/file conftest.$ac_objext` in
5954      *N32*)
5955	emul="${emul}n32"
5956	;;
5957    esac
5958    LD="${LD-ld} -m $emul"
5959  fi
5960  rm -rf conftest*
5961  ;;
5962
5963x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
5964s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5965  # Find out what ABI is being produced by ac_compile, and set linker
5966  # options accordingly.  Note that the listed cases only cover the
5967  # situations where additional linker options are needed (such as when
5968  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
5969  # vice versa); the common cases where no linker options are needed do
5970  # not appear in the list.
5971  echo 'int i;' > conftest.$ac_ext
5972  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5973  (eval $ac_compile) 2>&5
5974  ac_status=$?
5975  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5976  test $ac_status = 0; }; then
5977    case `/usr/bin/file conftest.o` in
5978      *32-bit*)
5979	case $host in
5980	  x86_64-*kfreebsd*-gnu)
5981	    LD="${LD-ld} -m elf_i386_fbsd"
5982	    ;;
5983	  x86_64-*linux*)
5984	    case `/usr/bin/file conftest.o` in
5985	      *x86-64*)
5986		LD="${LD-ld} -m elf32_x86_64"
5987		;;
5988	      *)
5989		LD="${LD-ld} -m elf_i386"
5990		;;
5991	    esac
5992	    ;;
5993	  powerpc64le-*linux*)
5994	    LD="${LD-ld} -m elf32lppclinux"
5995	    ;;
5996	  powerpc64-*linux*)
5997	    LD="${LD-ld} -m elf32ppclinux"
5998	    ;;
5999	  s390x-*linux*)
6000	    LD="${LD-ld} -m elf_s390"
6001	    ;;
6002	  sparc64-*linux*)
6003	    LD="${LD-ld} -m elf32_sparc"
6004	    ;;
6005	esac
6006	;;
6007      *64-bit*)
6008	case $host in
6009	  x86_64-*kfreebsd*-gnu)
6010	    LD="${LD-ld} -m elf_x86_64_fbsd"
6011	    ;;
6012	  x86_64-*linux*)
6013	    LD="${LD-ld} -m elf_x86_64"
6014	    ;;
6015	  powerpcle-*linux*)
6016	    LD="${LD-ld} -m elf64lppc"
6017	    ;;
6018	  powerpc-*linux*)
6019	    LD="${LD-ld} -m elf64ppc"
6020	    ;;
6021	  s390*-*linux*|s390*-*tpf*)
6022	    LD="${LD-ld} -m elf64_s390"
6023	    ;;
6024	  sparc*-*linux*)
6025	    LD="${LD-ld} -m elf64_sparc"
6026	    ;;
6027	esac
6028	;;
6029    esac
6030  fi
6031  rm -rf conftest*
6032  ;;
6033
6034*-*-sco3.2v5*)
6035  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6036  SAVE_CFLAGS=$CFLAGS
6037  CFLAGS="$CFLAGS -belf"
6038  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6039$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6040if ${lt_cv_cc_needs_belf+:} false; then :
6041  $as_echo_n "(cached) " >&6
6042else
6043  ac_ext=c
6044ac_cpp='$CPP $CPPFLAGS'
6045ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6046ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6047ac_compiler_gnu=$ac_cv_c_compiler_gnu
6048
6049     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6050/* end confdefs.h.  */
6051
6052int
6053main ()
6054{
6055
6056  ;
6057  return 0;
6058}
6059_ACEOF
6060if ac_fn_c_try_link "$LINENO"; then :
6061  lt_cv_cc_needs_belf=yes
6062else
6063  lt_cv_cc_needs_belf=no
6064fi
6065rm -f core conftest.err conftest.$ac_objext \
6066    conftest$ac_exeext conftest.$ac_ext
6067     ac_ext=c
6068ac_cpp='$CPP $CPPFLAGS'
6069ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6070ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6071ac_compiler_gnu=$ac_cv_c_compiler_gnu
6072
6073fi
6074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6075$as_echo "$lt_cv_cc_needs_belf" >&6; }
6076  if test yes != "$lt_cv_cc_needs_belf"; then
6077    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6078    CFLAGS=$SAVE_CFLAGS
6079  fi
6080  ;;
6081*-*solaris*)
6082  # Find out what ABI is being produced by ac_compile, and set linker
6083  # options accordingly.
6084  echo 'int i;' > conftest.$ac_ext
6085  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6086  (eval $ac_compile) 2>&5
6087  ac_status=$?
6088  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6089  test $ac_status = 0; }; then
6090    case `/usr/bin/file conftest.o` in
6091    *64-bit*)
6092      case $lt_cv_prog_gnu_ld in
6093      yes*)
6094        case $host in
6095        i?86-*-solaris*|x86_64-*-solaris*)
6096          LD="${LD-ld} -m elf_x86_64"
6097          ;;
6098        sparc*-*-solaris*)
6099          LD="${LD-ld} -m elf64_sparc"
6100          ;;
6101        esac
6102        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6103        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6104          LD=${LD-ld}_sol2
6105        fi
6106        ;;
6107      *)
6108	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6109	  LD="${LD-ld} -64"
6110	fi
6111	;;
6112      esac
6113      ;;
6114    esac
6115  fi
6116  rm -rf conftest*
6117  ;;
6118esac
6119
6120need_locks=$enable_libtool_lock
6121
6122if test -n "$ac_tool_prefix"; then
6123  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6124set dummy ${ac_tool_prefix}mt; ac_word=$2
6125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6126$as_echo_n "checking for $ac_word... " >&6; }
6127if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6128  $as_echo_n "(cached) " >&6
6129else
6130  if test -n "$MANIFEST_TOOL"; then
6131  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6132else
6133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6134for as_dir in $PATH
6135do
6136  IFS=$as_save_IFS
6137  test -z "$as_dir" && as_dir=.
6138    for ac_exec_ext in '' $ac_executable_extensions; do
6139  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6140    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6141    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6142    break 2
6143  fi
6144done
6145  done
6146IFS=$as_save_IFS
6147
6148fi
6149fi
6150MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6151if test -n "$MANIFEST_TOOL"; then
6152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6153$as_echo "$MANIFEST_TOOL" >&6; }
6154else
6155  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6156$as_echo "no" >&6; }
6157fi
6158
6159
6160fi
6161if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6162  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6163  # Extract the first word of "mt", so it can be a program name with args.
6164set dummy mt; ac_word=$2
6165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6166$as_echo_n "checking for $ac_word... " >&6; }
6167if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6168  $as_echo_n "(cached) " >&6
6169else
6170  if test -n "$ac_ct_MANIFEST_TOOL"; then
6171  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6172else
6173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6174for as_dir in $PATH
6175do
6176  IFS=$as_save_IFS
6177  test -z "$as_dir" && as_dir=.
6178    for ac_exec_ext in '' $ac_executable_extensions; do
6179  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6180    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6181    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6182    break 2
6183  fi
6184done
6185  done
6186IFS=$as_save_IFS
6187
6188fi
6189fi
6190ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6191if test -n "$ac_ct_MANIFEST_TOOL"; then
6192  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6193$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6194else
6195  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6196$as_echo "no" >&6; }
6197fi
6198
6199  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6200    MANIFEST_TOOL=":"
6201  else
6202    case $cross_compiling:$ac_tool_warned in
6203yes:)
6204{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6205$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6206ac_tool_warned=yes ;;
6207esac
6208    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6209  fi
6210else
6211  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6212fi
6213
6214test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6216$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6217if ${lt_cv_path_mainfest_tool+:} false; then :
6218  $as_echo_n "(cached) " >&6
6219else
6220  lt_cv_path_mainfest_tool=no
6221  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6222  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6223  cat conftest.err >&5
6224  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6225    lt_cv_path_mainfest_tool=yes
6226  fi
6227  rm -f conftest*
6228fi
6229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6230$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6231if test yes != "$lt_cv_path_mainfest_tool"; then
6232  MANIFEST_TOOL=:
6233fi
6234
6235
6236
6237
6238
6239
6240  case $host_os in
6241    rhapsody* | darwin*)
6242    if test -n "$ac_tool_prefix"; then
6243  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6244set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6246$as_echo_n "checking for $ac_word... " >&6; }
6247if ${ac_cv_prog_DSYMUTIL+:} false; then :
6248  $as_echo_n "(cached) " >&6
6249else
6250  if test -n "$DSYMUTIL"; then
6251  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6252else
6253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6254for as_dir in $PATH
6255do
6256  IFS=$as_save_IFS
6257  test -z "$as_dir" && as_dir=.
6258    for ac_exec_ext in '' $ac_executable_extensions; do
6259  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6260    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6261    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6262    break 2
6263  fi
6264done
6265  done
6266IFS=$as_save_IFS
6267
6268fi
6269fi
6270DSYMUTIL=$ac_cv_prog_DSYMUTIL
6271if test -n "$DSYMUTIL"; then
6272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6273$as_echo "$DSYMUTIL" >&6; }
6274else
6275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6276$as_echo "no" >&6; }
6277fi
6278
6279
6280fi
6281if test -z "$ac_cv_prog_DSYMUTIL"; then
6282  ac_ct_DSYMUTIL=$DSYMUTIL
6283  # Extract the first word of "dsymutil", so it can be a program name with args.
6284set dummy dsymutil; ac_word=$2
6285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6286$as_echo_n "checking for $ac_word... " >&6; }
6287if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6288  $as_echo_n "(cached) " >&6
6289else
6290  if test -n "$ac_ct_DSYMUTIL"; then
6291  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6292else
6293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6294for as_dir in $PATH
6295do
6296  IFS=$as_save_IFS
6297  test -z "$as_dir" && as_dir=.
6298    for ac_exec_ext in '' $ac_executable_extensions; do
6299  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6300    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6301    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6302    break 2
6303  fi
6304done
6305  done
6306IFS=$as_save_IFS
6307
6308fi
6309fi
6310ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6311if test -n "$ac_ct_DSYMUTIL"; then
6312  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6313$as_echo "$ac_ct_DSYMUTIL" >&6; }
6314else
6315  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6316$as_echo "no" >&6; }
6317fi
6318
6319  if test "x$ac_ct_DSYMUTIL" = x; then
6320    DSYMUTIL=":"
6321  else
6322    case $cross_compiling:$ac_tool_warned in
6323yes:)
6324{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6325$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6326ac_tool_warned=yes ;;
6327esac
6328    DSYMUTIL=$ac_ct_DSYMUTIL
6329  fi
6330else
6331  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6332fi
6333
6334    if test -n "$ac_tool_prefix"; then
6335  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6336set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6338$as_echo_n "checking for $ac_word... " >&6; }
6339if ${ac_cv_prog_NMEDIT+:} false; then :
6340  $as_echo_n "(cached) " >&6
6341else
6342  if test -n "$NMEDIT"; then
6343  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6344else
6345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6346for as_dir in $PATH
6347do
6348  IFS=$as_save_IFS
6349  test -z "$as_dir" && as_dir=.
6350    for ac_exec_ext in '' $ac_executable_extensions; do
6351  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6352    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6353    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6354    break 2
6355  fi
6356done
6357  done
6358IFS=$as_save_IFS
6359
6360fi
6361fi
6362NMEDIT=$ac_cv_prog_NMEDIT
6363if test -n "$NMEDIT"; then
6364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6365$as_echo "$NMEDIT" >&6; }
6366else
6367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6368$as_echo "no" >&6; }
6369fi
6370
6371
6372fi
6373if test -z "$ac_cv_prog_NMEDIT"; then
6374  ac_ct_NMEDIT=$NMEDIT
6375  # Extract the first word of "nmedit", so it can be a program name with args.
6376set dummy nmedit; ac_word=$2
6377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6378$as_echo_n "checking for $ac_word... " >&6; }
6379if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6380  $as_echo_n "(cached) " >&6
6381else
6382  if test -n "$ac_ct_NMEDIT"; then
6383  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6384else
6385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6386for as_dir in $PATH
6387do
6388  IFS=$as_save_IFS
6389  test -z "$as_dir" && as_dir=.
6390    for ac_exec_ext in '' $ac_executable_extensions; do
6391  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6392    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6393    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6394    break 2
6395  fi
6396done
6397  done
6398IFS=$as_save_IFS
6399
6400fi
6401fi
6402ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6403if test -n "$ac_ct_NMEDIT"; then
6404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6405$as_echo "$ac_ct_NMEDIT" >&6; }
6406else
6407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6408$as_echo "no" >&6; }
6409fi
6410
6411  if test "x$ac_ct_NMEDIT" = x; then
6412    NMEDIT=":"
6413  else
6414    case $cross_compiling:$ac_tool_warned in
6415yes:)
6416{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6417$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6418ac_tool_warned=yes ;;
6419esac
6420    NMEDIT=$ac_ct_NMEDIT
6421  fi
6422else
6423  NMEDIT="$ac_cv_prog_NMEDIT"
6424fi
6425
6426    if test -n "$ac_tool_prefix"; then
6427  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6428set dummy ${ac_tool_prefix}lipo; ac_word=$2
6429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6430$as_echo_n "checking for $ac_word... " >&6; }
6431if ${ac_cv_prog_LIPO+:} false; then :
6432  $as_echo_n "(cached) " >&6
6433else
6434  if test -n "$LIPO"; then
6435  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6436else
6437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6438for as_dir in $PATH
6439do
6440  IFS=$as_save_IFS
6441  test -z "$as_dir" && as_dir=.
6442    for ac_exec_ext in '' $ac_executable_extensions; do
6443  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6444    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6445    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6446    break 2
6447  fi
6448done
6449  done
6450IFS=$as_save_IFS
6451
6452fi
6453fi
6454LIPO=$ac_cv_prog_LIPO
6455if test -n "$LIPO"; then
6456  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6457$as_echo "$LIPO" >&6; }
6458else
6459  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6460$as_echo "no" >&6; }
6461fi
6462
6463
6464fi
6465if test -z "$ac_cv_prog_LIPO"; then
6466  ac_ct_LIPO=$LIPO
6467  # Extract the first word of "lipo", so it can be a program name with args.
6468set dummy lipo; ac_word=$2
6469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6470$as_echo_n "checking for $ac_word... " >&6; }
6471if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6472  $as_echo_n "(cached) " >&6
6473else
6474  if test -n "$ac_ct_LIPO"; then
6475  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6476else
6477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6478for as_dir in $PATH
6479do
6480  IFS=$as_save_IFS
6481  test -z "$as_dir" && as_dir=.
6482    for ac_exec_ext in '' $ac_executable_extensions; do
6483  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6484    ac_cv_prog_ac_ct_LIPO="lipo"
6485    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6486    break 2
6487  fi
6488done
6489  done
6490IFS=$as_save_IFS
6491
6492fi
6493fi
6494ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6495if test -n "$ac_ct_LIPO"; then
6496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6497$as_echo "$ac_ct_LIPO" >&6; }
6498else
6499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6500$as_echo "no" >&6; }
6501fi
6502
6503  if test "x$ac_ct_LIPO" = x; then
6504    LIPO=":"
6505  else
6506    case $cross_compiling:$ac_tool_warned in
6507yes:)
6508{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6509$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6510ac_tool_warned=yes ;;
6511esac
6512    LIPO=$ac_ct_LIPO
6513  fi
6514else
6515  LIPO="$ac_cv_prog_LIPO"
6516fi
6517
6518    if test -n "$ac_tool_prefix"; then
6519  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6520set dummy ${ac_tool_prefix}otool; ac_word=$2
6521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6522$as_echo_n "checking for $ac_word... " >&6; }
6523if ${ac_cv_prog_OTOOL+:} false; then :
6524  $as_echo_n "(cached) " >&6
6525else
6526  if test -n "$OTOOL"; then
6527  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6528else
6529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6530for as_dir in $PATH
6531do
6532  IFS=$as_save_IFS
6533  test -z "$as_dir" && as_dir=.
6534    for ac_exec_ext in '' $ac_executable_extensions; do
6535  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6536    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6537    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6538    break 2
6539  fi
6540done
6541  done
6542IFS=$as_save_IFS
6543
6544fi
6545fi
6546OTOOL=$ac_cv_prog_OTOOL
6547if test -n "$OTOOL"; then
6548  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6549$as_echo "$OTOOL" >&6; }
6550else
6551  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6552$as_echo "no" >&6; }
6553fi
6554
6555
6556fi
6557if test -z "$ac_cv_prog_OTOOL"; then
6558  ac_ct_OTOOL=$OTOOL
6559  # Extract the first word of "otool", so it can be a program name with args.
6560set dummy otool; ac_word=$2
6561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6562$as_echo_n "checking for $ac_word... " >&6; }
6563if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6564  $as_echo_n "(cached) " >&6
6565else
6566  if test -n "$ac_ct_OTOOL"; then
6567  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6568else
6569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6570for as_dir in $PATH
6571do
6572  IFS=$as_save_IFS
6573  test -z "$as_dir" && as_dir=.
6574    for ac_exec_ext in '' $ac_executable_extensions; do
6575  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6576    ac_cv_prog_ac_ct_OTOOL="otool"
6577    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6578    break 2
6579  fi
6580done
6581  done
6582IFS=$as_save_IFS
6583
6584fi
6585fi
6586ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6587if test -n "$ac_ct_OTOOL"; then
6588  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6589$as_echo "$ac_ct_OTOOL" >&6; }
6590else
6591  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6592$as_echo "no" >&6; }
6593fi
6594
6595  if test "x$ac_ct_OTOOL" = x; then
6596    OTOOL=":"
6597  else
6598    case $cross_compiling:$ac_tool_warned in
6599yes:)
6600{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6601$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6602ac_tool_warned=yes ;;
6603esac
6604    OTOOL=$ac_ct_OTOOL
6605  fi
6606else
6607  OTOOL="$ac_cv_prog_OTOOL"
6608fi
6609
6610    if test -n "$ac_tool_prefix"; then
6611  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6612set dummy ${ac_tool_prefix}otool64; ac_word=$2
6613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6614$as_echo_n "checking for $ac_word... " >&6; }
6615if ${ac_cv_prog_OTOOL64+:} false; then :
6616  $as_echo_n "(cached) " >&6
6617else
6618  if test -n "$OTOOL64"; then
6619  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6620else
6621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6622for as_dir in $PATH
6623do
6624  IFS=$as_save_IFS
6625  test -z "$as_dir" && as_dir=.
6626    for ac_exec_ext in '' $ac_executable_extensions; do
6627  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6628    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6629    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6630    break 2
6631  fi
6632done
6633  done
6634IFS=$as_save_IFS
6635
6636fi
6637fi
6638OTOOL64=$ac_cv_prog_OTOOL64
6639if test -n "$OTOOL64"; then
6640  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6641$as_echo "$OTOOL64" >&6; }
6642else
6643  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6644$as_echo "no" >&6; }
6645fi
6646
6647
6648fi
6649if test -z "$ac_cv_prog_OTOOL64"; then
6650  ac_ct_OTOOL64=$OTOOL64
6651  # Extract the first word of "otool64", so it can be a program name with args.
6652set dummy otool64; ac_word=$2
6653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6654$as_echo_n "checking for $ac_word... " >&6; }
6655if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6656  $as_echo_n "(cached) " >&6
6657else
6658  if test -n "$ac_ct_OTOOL64"; then
6659  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6660else
6661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6662for as_dir in $PATH
6663do
6664  IFS=$as_save_IFS
6665  test -z "$as_dir" && as_dir=.
6666    for ac_exec_ext in '' $ac_executable_extensions; do
6667  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6668    ac_cv_prog_ac_ct_OTOOL64="otool64"
6669    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6670    break 2
6671  fi
6672done
6673  done
6674IFS=$as_save_IFS
6675
6676fi
6677fi
6678ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6679if test -n "$ac_ct_OTOOL64"; then
6680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6681$as_echo "$ac_ct_OTOOL64" >&6; }
6682else
6683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6684$as_echo "no" >&6; }
6685fi
6686
6687  if test "x$ac_ct_OTOOL64" = x; then
6688    OTOOL64=":"
6689  else
6690    case $cross_compiling:$ac_tool_warned in
6691yes:)
6692{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6693$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6694ac_tool_warned=yes ;;
6695esac
6696    OTOOL64=$ac_ct_OTOOL64
6697  fi
6698else
6699  OTOOL64="$ac_cv_prog_OTOOL64"
6700fi
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6729$as_echo_n "checking for -single_module linker flag... " >&6; }
6730if ${lt_cv_apple_cc_single_mod+:} false; then :
6731  $as_echo_n "(cached) " >&6
6732else
6733  lt_cv_apple_cc_single_mod=no
6734      if test -z "$LT_MULTI_MODULE"; then
6735	# By default we will add the -single_module flag. You can override
6736	# by either setting the environment variable LT_MULTI_MODULE
6737	# non-empty at configure time, or by adding -multi_module to the
6738	# link flags.
6739	rm -rf libconftest.dylib*
6740	echo "int foo(void){return 1;}" > conftest.c
6741	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6742-dynamiclib -Wl,-single_module conftest.c" >&5
6743	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6744	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6745        _lt_result=$?
6746	# If there is a non-empty error log, and "single_module"
6747	# appears in it, assume the flag caused a linker warning
6748        if test -s conftest.err && $GREP single_module conftest.err; then
6749	  cat conftest.err >&5
6750	# Otherwise, if the output was created with a 0 exit code from
6751	# the compiler, it worked.
6752	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
6753	  lt_cv_apple_cc_single_mod=yes
6754	else
6755	  cat conftest.err >&5
6756	fi
6757	rm -rf libconftest.dylib*
6758	rm -f conftest.*
6759      fi
6760fi
6761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6762$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6763
6764    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6765$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6766if ${lt_cv_ld_exported_symbols_list+:} false; then :
6767  $as_echo_n "(cached) " >&6
6768else
6769  lt_cv_ld_exported_symbols_list=no
6770      save_LDFLAGS=$LDFLAGS
6771      echo "_main" > conftest.sym
6772      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6773      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6774/* end confdefs.h.  */
6775
6776int
6777main ()
6778{
6779
6780  ;
6781  return 0;
6782}
6783_ACEOF
6784if ac_fn_c_try_link "$LINENO"; then :
6785  lt_cv_ld_exported_symbols_list=yes
6786else
6787  lt_cv_ld_exported_symbols_list=no
6788fi
6789rm -f core conftest.err conftest.$ac_objext \
6790    conftest$ac_exeext conftest.$ac_ext
6791	LDFLAGS=$save_LDFLAGS
6792
6793fi
6794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6795$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6796
6797    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6798$as_echo_n "checking for -force_load linker flag... " >&6; }
6799if ${lt_cv_ld_force_load+:} false; then :
6800  $as_echo_n "(cached) " >&6
6801else
6802  lt_cv_ld_force_load=no
6803      cat > conftest.c << _LT_EOF
6804int forced_loaded() { return 2;}
6805_LT_EOF
6806      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6807      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6808      echo "$AR cru libconftest.a conftest.o" >&5
6809      $AR cru libconftest.a conftest.o 2>&5
6810      echo "$RANLIB libconftest.a" >&5
6811      $RANLIB libconftest.a 2>&5
6812      cat > conftest.c << _LT_EOF
6813int main() { return 0;}
6814_LT_EOF
6815      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6816      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6817      _lt_result=$?
6818      if test -s conftest.err && $GREP force_load conftest.err; then
6819	cat conftest.err >&5
6820      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
6821	lt_cv_ld_force_load=yes
6822      else
6823	cat conftest.err >&5
6824      fi
6825        rm -f conftest.err libconftest.a conftest conftest.c
6826        rm -rf conftest.dSYM
6827
6828fi
6829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6830$as_echo "$lt_cv_ld_force_load" >&6; }
6831    case $host_os in
6832    rhapsody* | darwin1.[012])
6833      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
6834    darwin1.*)
6835      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
6836    darwin*) # darwin 5.x on
6837      # if running on 10.5 or later, the deployment target defaults
6838      # to the OS version, if on x86, and 10.4, the deployment
6839      # target defaults to 10.4. Don't you love it?
6840      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6841	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6842	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
6843	10.[012][,.]*)
6844	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
6845	10.*)
6846	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
6847      esac
6848    ;;
6849  esac
6850    if test yes = "$lt_cv_apple_cc_single_mod"; then
6851      _lt_dar_single_mod='$single_module'
6852    fi
6853    if test yes = "$lt_cv_ld_exported_symbols_list"; then
6854      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
6855    else
6856      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
6857    fi
6858    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
6859      _lt_dsymutil='~$DSYMUTIL $lib || :'
6860    else
6861      _lt_dsymutil=
6862    fi
6863    ;;
6864  esac
6865
6866# func_munge_path_list VARIABLE PATH
6867# -----------------------------------
6868# VARIABLE is name of variable containing _space_ separated list of
6869# directories to be munged by the contents of PATH, which is string
6870# having a format:
6871# "DIR[:DIR]:"
6872#       string "DIR[ DIR]" will be prepended to VARIABLE
6873# ":DIR[:DIR]"
6874#       string "DIR[ DIR]" will be appended to VARIABLE
6875# "DIRP[:DIRP]::[DIRA:]DIRA"
6876#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
6877#       "DIRA[ DIRA]" will be appended to VARIABLE
6878# "DIR[:DIR]"
6879#       VARIABLE will be replaced by "DIR[ DIR]"
6880func_munge_path_list ()
6881{
6882    case x$2 in
6883    x)
6884        ;;
6885    *:)
6886        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
6887        ;;
6888    x:*)
6889        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
6890        ;;
6891    *::*)
6892        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
6893        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
6894        ;;
6895    *)
6896        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
6897        ;;
6898    esac
6899}
6900
6901ac_ext=c
6902ac_cpp='$CPP $CPPFLAGS'
6903ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6904ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6905ac_compiler_gnu=$ac_cv_c_compiler_gnu
6906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6907$as_echo_n "checking how to run the C preprocessor... " >&6; }
6908# On Suns, sometimes $CPP names a directory.
6909if test -n "$CPP" && test -d "$CPP"; then
6910  CPP=
6911fi
6912if test -z "$CPP"; then
6913  if ${ac_cv_prog_CPP+:} false; then :
6914  $as_echo_n "(cached) " >&6
6915else
6916      # Double quotes because CPP needs to be expanded
6917    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6918    do
6919      ac_preproc_ok=false
6920for ac_c_preproc_warn_flag in '' yes
6921do
6922  # Use a header file that comes with gcc, so configuring glibc
6923  # with a fresh cross-compiler works.
6924  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6925  # <limits.h> exists even on freestanding compilers.
6926  # On the NeXT, cc -E runs the code through the compiler's parser,
6927  # not just through cpp. "Syntax error" is here to catch this case.
6928  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6929/* end confdefs.h.  */
6930#ifdef __STDC__
6931# include <limits.h>
6932#else
6933# include <assert.h>
6934#endif
6935		     Syntax error
6936_ACEOF
6937if ac_fn_c_try_cpp "$LINENO"; then :
6938
6939else
6940  # Broken: fails on valid input.
6941continue
6942fi
6943rm -f conftest.err conftest.i conftest.$ac_ext
6944
6945  # OK, works on sane cases.  Now check whether nonexistent headers
6946  # can be detected and how.
6947  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6948/* end confdefs.h.  */
6949#include <ac_nonexistent.h>
6950_ACEOF
6951if ac_fn_c_try_cpp "$LINENO"; then :
6952  # Broken: success on invalid input.
6953continue
6954else
6955  # Passes both tests.
6956ac_preproc_ok=:
6957break
6958fi
6959rm -f conftest.err conftest.i conftest.$ac_ext
6960
6961done
6962# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6963rm -f conftest.i conftest.err conftest.$ac_ext
6964if $ac_preproc_ok; then :
6965  break
6966fi
6967
6968    done
6969    ac_cv_prog_CPP=$CPP
6970
6971fi
6972  CPP=$ac_cv_prog_CPP
6973else
6974  ac_cv_prog_CPP=$CPP
6975fi
6976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6977$as_echo "$CPP" >&6; }
6978ac_preproc_ok=false
6979for ac_c_preproc_warn_flag in '' yes
6980do
6981  # Use a header file that comes with gcc, so configuring glibc
6982  # with a fresh cross-compiler works.
6983  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6984  # <limits.h> exists even on freestanding compilers.
6985  # On the NeXT, cc -E runs the code through the compiler's parser,
6986  # not just through cpp. "Syntax error" is here to catch this case.
6987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6988/* end confdefs.h.  */
6989#ifdef __STDC__
6990# include <limits.h>
6991#else
6992# include <assert.h>
6993#endif
6994		     Syntax error
6995_ACEOF
6996if ac_fn_c_try_cpp "$LINENO"; then :
6997
6998else
6999  # Broken: fails on valid input.
7000continue
7001fi
7002rm -f conftest.err conftest.i conftest.$ac_ext
7003
7004  # OK, works on sane cases.  Now check whether nonexistent headers
7005  # can be detected and how.
7006  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7007/* end confdefs.h.  */
7008#include <ac_nonexistent.h>
7009_ACEOF
7010if ac_fn_c_try_cpp "$LINENO"; then :
7011  # Broken: success on invalid input.
7012continue
7013else
7014  # Passes both tests.
7015ac_preproc_ok=:
7016break
7017fi
7018rm -f conftest.err conftest.i conftest.$ac_ext
7019
7020done
7021# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7022rm -f conftest.i conftest.err conftest.$ac_ext
7023if $ac_preproc_ok; then :
7024
7025else
7026  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7027$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7028as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7029See \`config.log' for more details" "$LINENO" 5; }
7030fi
7031
7032ac_ext=c
7033ac_cpp='$CPP $CPPFLAGS'
7034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7036ac_compiler_gnu=$ac_cv_c_compiler_gnu
7037
7038
7039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7040$as_echo_n "checking for ANSI C header files... " >&6; }
7041if ${ac_cv_header_stdc+:} false; then :
7042  $as_echo_n "(cached) " >&6
7043else
7044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7045/* end confdefs.h.  */
7046#include <stdlib.h>
7047#include <stdarg.h>
7048#include <string.h>
7049#include <float.h>
7050
7051int
7052main ()
7053{
7054
7055  ;
7056  return 0;
7057}
7058_ACEOF
7059if ac_fn_c_try_compile "$LINENO"; then :
7060  ac_cv_header_stdc=yes
7061else
7062  ac_cv_header_stdc=no
7063fi
7064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7065
7066if test $ac_cv_header_stdc = yes; then
7067  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7068  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7069/* end confdefs.h.  */
7070#include <string.h>
7071
7072_ACEOF
7073if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7074  $EGREP "memchr" >/dev/null 2>&1; then :
7075
7076else
7077  ac_cv_header_stdc=no
7078fi
7079rm -f conftest*
7080
7081fi
7082
7083if test $ac_cv_header_stdc = yes; then
7084  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7085  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7086/* end confdefs.h.  */
7087#include <stdlib.h>
7088
7089_ACEOF
7090if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7091  $EGREP "free" >/dev/null 2>&1; then :
7092
7093else
7094  ac_cv_header_stdc=no
7095fi
7096rm -f conftest*
7097
7098fi
7099
7100if test $ac_cv_header_stdc = yes; then
7101  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7102  if test "$cross_compiling" = yes; then :
7103  :
7104else
7105  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7106/* end confdefs.h.  */
7107#include <ctype.h>
7108#include <stdlib.h>
7109#if ((' ' & 0x0FF) == 0x020)
7110# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7111# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7112#else
7113# define ISLOWER(c) \
7114		   (('a' <= (c) && (c) <= 'i') \
7115		     || ('j' <= (c) && (c) <= 'r') \
7116		     || ('s' <= (c) && (c) <= 'z'))
7117# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7118#endif
7119
7120#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7121int
7122main ()
7123{
7124  int i;
7125  for (i = 0; i < 256; i++)
7126    if (XOR (islower (i), ISLOWER (i))
7127	|| toupper (i) != TOUPPER (i))
7128      return 2;
7129  return 0;
7130}
7131_ACEOF
7132if ac_fn_c_try_run "$LINENO"; then :
7133
7134else
7135  ac_cv_header_stdc=no
7136fi
7137rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7138  conftest.$ac_objext conftest.beam conftest.$ac_ext
7139fi
7140
7141fi
7142fi
7143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7144$as_echo "$ac_cv_header_stdc" >&6; }
7145if test $ac_cv_header_stdc = yes; then
7146
7147$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7148
7149fi
7150
7151# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7152for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7153		  inttypes.h stdint.h unistd.h
7154do :
7155  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7156ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7157"
7158if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7159  cat >>confdefs.h <<_ACEOF
7160#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7161_ACEOF
7162
7163fi
7164
7165done
7166
7167
7168for ac_header in dlfcn.h
7169do :
7170  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7171"
7172if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7173  cat >>confdefs.h <<_ACEOF
7174#define HAVE_DLFCN_H 1
7175_ACEOF
7176
7177fi
7178
7179done
7180
7181
7182
7183
7184
7185# Set options
7186
7187
7188
7189        enable_dlopen=no
7190
7191
7192  enable_win32_dll=no
7193
7194
7195            # Check whether --enable-shared was given.
7196if test "${enable_shared+set}" = set; then :
7197  enableval=$enable_shared; p=${PACKAGE-default}
7198    case $enableval in
7199    yes) enable_shared=yes ;;
7200    no) enable_shared=no ;;
7201    *)
7202      enable_shared=no
7203      # Look at the argument we got.  We use all the common list separators.
7204      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7205      for pkg in $enableval; do
7206	IFS=$lt_save_ifs
7207	if test "X$pkg" = "X$p"; then
7208	  enable_shared=yes
7209	fi
7210      done
7211      IFS=$lt_save_ifs
7212      ;;
7213    esac
7214else
7215  enable_shared=yes
7216fi
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226  # Check whether --enable-static was given.
7227if test "${enable_static+set}" = set; then :
7228  enableval=$enable_static; p=${PACKAGE-default}
7229    case $enableval in
7230    yes) enable_static=yes ;;
7231    no) enable_static=no ;;
7232    *)
7233     enable_static=no
7234      # Look at the argument we got.  We use all the common list separators.
7235      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7236      for pkg in $enableval; do
7237	IFS=$lt_save_ifs
7238	if test "X$pkg" = "X$p"; then
7239	  enable_static=yes
7240	fi
7241      done
7242      IFS=$lt_save_ifs
7243      ;;
7244    esac
7245else
7246  enable_static=yes
7247fi
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258# Check whether --with-pic was given.
7259if test "${with_pic+set}" = set; then :
7260  withval=$with_pic; lt_p=${PACKAGE-default}
7261    case $withval in
7262    yes|no) pic_mode=$withval ;;
7263    *)
7264      pic_mode=default
7265      # Look at the argument we got.  We use all the common list separators.
7266      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7267      for lt_pkg in $withval; do
7268	IFS=$lt_save_ifs
7269	if test "X$lt_pkg" = "X$lt_p"; then
7270	  pic_mode=yes
7271	fi
7272      done
7273      IFS=$lt_save_ifs
7274      ;;
7275    esac
7276else
7277  pic_mode=default
7278fi
7279
7280
7281
7282
7283
7284
7285
7286
7287  # Check whether --enable-fast-install was given.
7288if test "${enable_fast_install+set}" = set; then :
7289  enableval=$enable_fast_install; p=${PACKAGE-default}
7290    case $enableval in
7291    yes) enable_fast_install=yes ;;
7292    no) enable_fast_install=no ;;
7293    *)
7294      enable_fast_install=no
7295      # Look at the argument we got.  We use all the common list separators.
7296      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7297      for pkg in $enableval; do
7298	IFS=$lt_save_ifs
7299	if test "X$pkg" = "X$p"; then
7300	  enable_fast_install=yes
7301	fi
7302      done
7303      IFS=$lt_save_ifs
7304      ;;
7305    esac
7306else
7307  enable_fast_install=yes
7308fi
7309
7310
7311
7312
7313
7314
7315
7316
7317  shared_archive_member_spec=
7318case $host,$enable_shared in
7319power*-*-aix[5-9]*,yes)
7320  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7321$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7322
7323# Check whether --with-aix-soname was given.
7324if test "${with_aix_soname+set}" = set; then :
7325  withval=$with_aix_soname; case $withval in
7326    aix|svr4|both)
7327      ;;
7328    *)
7329      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7330      ;;
7331    esac
7332    lt_cv_with_aix_soname=$with_aix_soname
7333else
7334  if ${lt_cv_with_aix_soname+:} false; then :
7335  $as_echo_n "(cached) " >&6
7336else
7337  lt_cv_with_aix_soname=aix
7338fi
7339
7340    with_aix_soname=$lt_cv_with_aix_soname
7341fi
7342
7343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7344$as_echo "$with_aix_soname" >&6; }
7345  if test aix != "$with_aix_soname"; then
7346    # For the AIX way of multilib, we name the shared archive member
7347    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7348    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7349    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7350    # the AIX toolchain works better with OBJECT_MODE set (default 32).
7351    if test 64 = "${OBJECT_MODE-32}"; then
7352      shared_archive_member_spec=shr_64
7353    else
7354      shared_archive_member_spec=shr
7355    fi
7356  fi
7357  ;;
7358*)
7359  with_aix_soname=aix
7360  ;;
7361esac
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372# This can be used to rebuild libtool when needed
7373LIBTOOL_DEPS=$ltmain
7374
7375# Always use our own libtool.
7376LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407test -z "$LN_S" && LN_S="ln -s"
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422if test -n "${ZSH_VERSION+set}"; then
7423   setopt NO_GLOB_SUBST
7424fi
7425
7426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7427$as_echo_n "checking for objdir... " >&6; }
7428if ${lt_cv_objdir+:} false; then :
7429  $as_echo_n "(cached) " >&6
7430else
7431  rm -f .libs 2>/dev/null
7432mkdir .libs 2>/dev/null
7433if test -d .libs; then
7434  lt_cv_objdir=.libs
7435else
7436  # MS-DOS does not allow filenames that begin with a dot.
7437  lt_cv_objdir=_libs
7438fi
7439rmdir .libs 2>/dev/null
7440fi
7441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7442$as_echo "$lt_cv_objdir" >&6; }
7443objdir=$lt_cv_objdir
7444
7445
7446
7447
7448
7449cat >>confdefs.h <<_ACEOF
7450#define LT_OBJDIR "$lt_cv_objdir/"
7451_ACEOF
7452
7453
7454
7455
7456case $host_os in
7457aix3*)
7458  # AIX sometimes has problems with the GCC collect2 program.  For some
7459  # reason, if we set the COLLECT_NAMES environment variable, the problems
7460  # vanish in a puff of smoke.
7461  if test set != "${COLLECT_NAMES+set}"; then
7462    COLLECT_NAMES=
7463    export COLLECT_NAMES
7464  fi
7465  ;;
7466esac
7467
7468# Global variables:
7469ofile=libtool
7470can_build_shared=yes
7471
7472# All known linkers require a '.a' archive for static linking (except MSVC,
7473# which needs '.lib').
7474libext=a
7475
7476with_gnu_ld=$lt_cv_prog_gnu_ld
7477
7478old_CC=$CC
7479old_CFLAGS=$CFLAGS
7480
7481# Set sane defaults for various variables
7482test -z "$CC" && CC=cc
7483test -z "$LTCC" && LTCC=$CC
7484test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7485test -z "$LD" && LD=ld
7486test -z "$ac_objext" && ac_objext=o
7487
7488func_cc_basename $compiler
7489cc_basename=$func_cc_basename_result
7490
7491
7492# Only perform the check for file, if the check method requires it
7493test -z "$MAGIC_CMD" && MAGIC_CMD=file
7494case $deplibs_check_method in
7495file_magic*)
7496  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7497    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7498$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7499if ${lt_cv_path_MAGIC_CMD+:} false; then :
7500  $as_echo_n "(cached) " >&6
7501else
7502  case $MAGIC_CMD in
7503[\\/*] |  ?:[\\/]*)
7504  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7505  ;;
7506*)
7507  lt_save_MAGIC_CMD=$MAGIC_CMD
7508  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7509  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7510  for ac_dir in $ac_dummy; do
7511    IFS=$lt_save_ifs
7512    test -z "$ac_dir" && ac_dir=.
7513    if test -f "$ac_dir/${ac_tool_prefix}file"; then
7514      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
7515      if test -n "$file_magic_test_file"; then
7516	case $deplibs_check_method in
7517	"file_magic "*)
7518	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7519	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7520	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7521	    $EGREP "$file_magic_regex" > /dev/null; then
7522	    :
7523	  else
7524	    cat <<_LT_EOF 1>&2
7525
7526*** Warning: the command libtool uses to detect shared libraries,
7527*** $file_magic_cmd, produces output that libtool cannot recognize.
7528*** The result is that libtool may fail to recognize shared libraries
7529*** as such.  This will affect the creation of libtool libraries that
7530*** depend on shared libraries, but programs linked with such libtool
7531*** libraries will work regardless of this problem.  Nevertheless, you
7532*** may want to report the problem to your system manager and/or to
7533*** bug-libtool@gnu.org
7534
7535_LT_EOF
7536	  fi ;;
7537	esac
7538      fi
7539      break
7540    fi
7541  done
7542  IFS=$lt_save_ifs
7543  MAGIC_CMD=$lt_save_MAGIC_CMD
7544  ;;
7545esac
7546fi
7547
7548MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7549if test -n "$MAGIC_CMD"; then
7550  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7551$as_echo "$MAGIC_CMD" >&6; }
7552else
7553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7554$as_echo "no" >&6; }
7555fi
7556
7557
7558
7559
7560
7561if test -z "$lt_cv_path_MAGIC_CMD"; then
7562  if test -n "$ac_tool_prefix"; then
7563    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7564$as_echo_n "checking for file... " >&6; }
7565if ${lt_cv_path_MAGIC_CMD+:} false; then :
7566  $as_echo_n "(cached) " >&6
7567else
7568  case $MAGIC_CMD in
7569[\\/*] |  ?:[\\/]*)
7570  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7571  ;;
7572*)
7573  lt_save_MAGIC_CMD=$MAGIC_CMD
7574  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7575  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7576  for ac_dir in $ac_dummy; do
7577    IFS=$lt_save_ifs
7578    test -z "$ac_dir" && ac_dir=.
7579    if test -f "$ac_dir/file"; then
7580      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
7581      if test -n "$file_magic_test_file"; then
7582	case $deplibs_check_method in
7583	"file_magic "*)
7584	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7585	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7586	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7587	    $EGREP "$file_magic_regex" > /dev/null; then
7588	    :
7589	  else
7590	    cat <<_LT_EOF 1>&2
7591
7592*** Warning: the command libtool uses to detect shared libraries,
7593*** $file_magic_cmd, produces output that libtool cannot recognize.
7594*** The result is that libtool may fail to recognize shared libraries
7595*** as such.  This will affect the creation of libtool libraries that
7596*** depend on shared libraries, but programs linked with such libtool
7597*** libraries will work regardless of this problem.  Nevertheless, you
7598*** may want to report the problem to your system manager and/or to
7599*** bug-libtool@gnu.org
7600
7601_LT_EOF
7602	  fi ;;
7603	esac
7604      fi
7605      break
7606    fi
7607  done
7608  IFS=$lt_save_ifs
7609  MAGIC_CMD=$lt_save_MAGIC_CMD
7610  ;;
7611esac
7612fi
7613
7614MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7615if test -n "$MAGIC_CMD"; then
7616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7617$as_echo "$MAGIC_CMD" >&6; }
7618else
7619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7620$as_echo "no" >&6; }
7621fi
7622
7623
7624  else
7625    MAGIC_CMD=:
7626  fi
7627fi
7628
7629  fi
7630  ;;
7631esac
7632
7633# Use C for the default configuration in the libtool script
7634
7635lt_save_CC=$CC
7636ac_ext=c
7637ac_cpp='$CPP $CPPFLAGS'
7638ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7639ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7640ac_compiler_gnu=$ac_cv_c_compiler_gnu
7641
7642
7643# Source file extension for C test sources.
7644ac_ext=c
7645
7646# Object file extension for compiled C test sources.
7647objext=o
7648objext=$objext
7649
7650# Code to be used in simple compile tests
7651lt_simple_compile_test_code="int some_variable = 0;"
7652
7653# Code to be used in simple link tests
7654lt_simple_link_test_code='int main(){return(0);}'
7655
7656
7657
7658
7659
7660
7661
7662# If no C compiler was specified, use CC.
7663LTCC=${LTCC-"$CC"}
7664
7665# If no C compiler flags were specified, use CFLAGS.
7666LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7667
7668# Allow CC to be a program name with arguments.
7669compiler=$CC
7670
7671# Save the default compiler, since it gets overwritten when the other
7672# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7673compiler_DEFAULT=$CC
7674
7675# save warnings/boilerplate of simple test code
7676ac_outfile=conftest.$ac_objext
7677echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7678eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7679_lt_compiler_boilerplate=`cat conftest.err`
7680$RM conftest*
7681
7682ac_outfile=conftest.$ac_objext
7683echo "$lt_simple_link_test_code" >conftest.$ac_ext
7684eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7685_lt_linker_boilerplate=`cat conftest.err`
7686$RM -r conftest*
7687
7688
7689## CAVEAT EMPTOR:
7690## There is no encapsulation within the following macros, do not change
7691## the running order or otherwise move them around unless you know exactly
7692## what you are doing...
7693if test -n "$compiler"; then
7694
7695lt_prog_compiler_no_builtin_flag=
7696
7697if test yes = "$GCC"; then
7698  case $cc_basename in
7699  nvcc*)
7700    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7701  *)
7702    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7703  esac
7704
7705  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7706$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7707if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7708  $as_echo_n "(cached) " >&6
7709else
7710  lt_cv_prog_compiler_rtti_exceptions=no
7711   ac_outfile=conftest.$ac_objext
7712   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7713   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
7714   # Insert the option either (1) after the last *FLAGS variable, or
7715   # (2) before a word containing "conftest.", or (3) at the end.
7716   # Note that $ac_compile itself does not contain backslashes and begins
7717   # with a dollar sign (not a hyphen), so the echo should work correctly.
7718   # The option is referenced via a variable to avoid confusing sed.
7719   lt_compile=`echo "$ac_compile" | $SED \
7720   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7721   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7722   -e 's:$: $lt_compiler_flag:'`
7723   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7724   (eval "$lt_compile" 2>conftest.err)
7725   ac_status=$?
7726   cat conftest.err >&5
7727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728   if (exit $ac_status) && test -s "$ac_outfile"; then
7729     # The compiler can only warn and ignore the option if not recognized
7730     # So say no if there are warnings other than the usual output.
7731     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7732     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7733     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7734       lt_cv_prog_compiler_rtti_exceptions=yes
7735     fi
7736   fi
7737   $RM conftest*
7738
7739fi
7740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7741$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7742
7743if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
7744    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7745else
7746    :
7747fi
7748
7749fi
7750
7751
7752
7753
7754
7755
7756  lt_prog_compiler_wl=
7757lt_prog_compiler_pic=
7758lt_prog_compiler_static=
7759
7760
7761  if test yes = "$GCC"; then
7762    lt_prog_compiler_wl='-Wl,'
7763    lt_prog_compiler_static='-static'
7764
7765    case $host_os in
7766      aix*)
7767      # All AIX code is PIC.
7768      if test ia64 = "$host_cpu"; then
7769	# AIX 5 now supports IA64 processor
7770	lt_prog_compiler_static='-Bstatic'
7771      fi
7772      lt_prog_compiler_pic='-fPIC'
7773      ;;
7774
7775    amigaos*)
7776      case $host_cpu in
7777      powerpc)
7778            # see comment about AmigaOS4 .so support
7779            lt_prog_compiler_pic='-fPIC'
7780        ;;
7781      m68k)
7782            # FIXME: we need at least 68020 code to build shared libraries, but
7783            # adding the '-m68020' flag to GCC prevents building anything better,
7784            # like '-m68040'.
7785            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7786        ;;
7787      esac
7788      ;;
7789
7790    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7791      # PIC is the default for these OSes.
7792      ;;
7793
7794    mingw* | cygwin* | pw32* | os2* | cegcc*)
7795      # This hack is so that the source file can tell whether it is being
7796      # built for inclusion in a dll (and should export symbols for example).
7797      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7798      # (--disable-auto-import) libraries
7799      lt_prog_compiler_pic='-DDLL_EXPORT'
7800      case $host_os in
7801      os2*)
7802	lt_prog_compiler_static='$wl-static'
7803	;;
7804      esac
7805      ;;
7806
7807    darwin* | rhapsody*)
7808      # PIC is the default on this platform
7809      # Common symbols not allowed in MH_DYLIB files
7810      lt_prog_compiler_pic='-fno-common'
7811      ;;
7812
7813    haiku*)
7814      # PIC is the default for Haiku.
7815      # The "-static" flag exists, but is broken.
7816      lt_prog_compiler_static=
7817      ;;
7818
7819    hpux*)
7820      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7821      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7822      # sets the default TLS model and affects inlining.
7823      case $host_cpu in
7824      hppa*64*)
7825	# +Z the default
7826	;;
7827      *)
7828	lt_prog_compiler_pic='-fPIC'
7829	;;
7830      esac
7831      ;;
7832
7833    interix[3-9]*)
7834      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7835      # Instead, we relocate shared libraries at runtime.
7836      ;;
7837
7838    msdosdjgpp*)
7839      # Just because we use GCC doesn't mean we suddenly get shared libraries
7840      # on systems that don't support them.
7841      lt_prog_compiler_can_build_shared=no
7842      enable_shared=no
7843      ;;
7844
7845    *nto* | *qnx*)
7846      # QNX uses GNU C++, but need to define -shared option too, otherwise
7847      # it will coredump.
7848      lt_prog_compiler_pic='-fPIC -shared'
7849      ;;
7850
7851    sysv4*MP*)
7852      if test -d /usr/nec; then
7853	lt_prog_compiler_pic=-Kconform_pic
7854      fi
7855      ;;
7856
7857    *)
7858      lt_prog_compiler_pic='-fPIC'
7859      ;;
7860    esac
7861
7862    case $cc_basename in
7863    nvcc*) # Cuda Compiler Driver 2.2
7864      lt_prog_compiler_wl='-Xlinker '
7865      if test -n "$lt_prog_compiler_pic"; then
7866        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7867      fi
7868      ;;
7869    esac
7870  else
7871    # PORTME Check for flag to pass linker flags through the system compiler.
7872    case $host_os in
7873    aix*)
7874      lt_prog_compiler_wl='-Wl,'
7875      if test ia64 = "$host_cpu"; then
7876	# AIX 5 now supports IA64 processor
7877	lt_prog_compiler_static='-Bstatic'
7878      else
7879	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7880      fi
7881      ;;
7882
7883    darwin* | rhapsody*)
7884      # PIC is the default on this platform
7885      # Common symbols not allowed in MH_DYLIB files
7886      lt_prog_compiler_pic='-fno-common'
7887      case $cc_basename in
7888      nagfor*)
7889        # NAG Fortran compiler
7890        lt_prog_compiler_wl='-Wl,-Wl,,'
7891        lt_prog_compiler_pic='-PIC'
7892        lt_prog_compiler_static='-Bstatic'
7893        ;;
7894      esac
7895      ;;
7896
7897    mingw* | cygwin* | pw32* | os2* | cegcc*)
7898      # This hack is so that the source file can tell whether it is being
7899      # built for inclusion in a dll (and should export symbols for example).
7900      lt_prog_compiler_pic='-DDLL_EXPORT'
7901      case $host_os in
7902      os2*)
7903	lt_prog_compiler_static='$wl-static'
7904	;;
7905      esac
7906      ;;
7907
7908    hpux9* | hpux10* | hpux11*)
7909      lt_prog_compiler_wl='-Wl,'
7910      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7911      # not for PA HP-UX.
7912      case $host_cpu in
7913      hppa*64*|ia64*)
7914	# +Z the default
7915	;;
7916      *)
7917	lt_prog_compiler_pic='+Z'
7918	;;
7919      esac
7920      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7921      lt_prog_compiler_static='$wl-a ${wl}archive'
7922      ;;
7923
7924    irix5* | irix6* | nonstopux*)
7925      lt_prog_compiler_wl='-Wl,'
7926      # PIC (with -KPIC) is the default.
7927      lt_prog_compiler_static='-non_shared'
7928      ;;
7929
7930    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7931      case $cc_basename in
7932      # old Intel for x86_64, which still supported -KPIC.
7933      ecc*)
7934	lt_prog_compiler_wl='-Wl,'
7935	lt_prog_compiler_pic='-KPIC'
7936	lt_prog_compiler_static='-static'
7937        ;;
7938      # icc used to be incompatible with GCC.
7939      # ICC 10 doesn't accept -KPIC any more.
7940      icc* | ifort*)
7941	lt_prog_compiler_wl='-Wl,'
7942	lt_prog_compiler_pic='-fPIC'
7943	lt_prog_compiler_static='-static'
7944        ;;
7945      # Lahey Fortran 8.1.
7946      lf95*)
7947	lt_prog_compiler_wl='-Wl,'
7948	lt_prog_compiler_pic='--shared'
7949	lt_prog_compiler_static='--static'
7950	;;
7951      nagfor*)
7952	# NAG Fortran compiler
7953	lt_prog_compiler_wl='-Wl,-Wl,,'
7954	lt_prog_compiler_pic='-PIC'
7955	lt_prog_compiler_static='-Bstatic'
7956	;;
7957      tcc*)
7958	# Fabrice Bellard et al's Tiny C Compiler
7959	lt_prog_compiler_wl='-Wl,'
7960	lt_prog_compiler_pic='-fPIC'
7961	lt_prog_compiler_static='-static'
7962	;;
7963      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7964        # Portland Group compilers (*not* the Pentium gcc compiler,
7965	# which looks to be a dead project)
7966	lt_prog_compiler_wl='-Wl,'
7967	lt_prog_compiler_pic='-fpic'
7968	lt_prog_compiler_static='-Bstatic'
7969        ;;
7970      ccc*)
7971        lt_prog_compiler_wl='-Wl,'
7972        # All Alpha code is PIC.
7973        lt_prog_compiler_static='-non_shared'
7974        ;;
7975      xl* | bgxl* | bgf* | mpixl*)
7976	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7977	lt_prog_compiler_wl='-Wl,'
7978	lt_prog_compiler_pic='-qpic'
7979	lt_prog_compiler_static='-qstaticlink'
7980	;;
7981      *)
7982	case `$CC -V 2>&1 | sed 5q` in
7983	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
7984	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7985	  lt_prog_compiler_pic='-KPIC'
7986	  lt_prog_compiler_static='-Bstatic'
7987	  lt_prog_compiler_wl=''
7988	  ;;
7989	*Sun\ F* | *Sun*Fortran*)
7990	  lt_prog_compiler_pic='-KPIC'
7991	  lt_prog_compiler_static='-Bstatic'
7992	  lt_prog_compiler_wl='-Qoption ld '
7993	  ;;
7994	*Sun\ C*)
7995	  # Sun C 5.9
7996	  lt_prog_compiler_pic='-KPIC'
7997	  lt_prog_compiler_static='-Bstatic'
7998	  lt_prog_compiler_wl='-Wl,'
7999	  ;;
8000        *Intel*\ [CF]*Compiler*)
8001	  lt_prog_compiler_wl='-Wl,'
8002	  lt_prog_compiler_pic='-fPIC'
8003	  lt_prog_compiler_static='-static'
8004	  ;;
8005	*Portland\ Group*)
8006	  lt_prog_compiler_wl='-Wl,'
8007	  lt_prog_compiler_pic='-fpic'
8008	  lt_prog_compiler_static='-Bstatic'
8009	  ;;
8010	esac
8011	;;
8012      esac
8013      ;;
8014
8015    newsos6)
8016      lt_prog_compiler_pic='-KPIC'
8017      lt_prog_compiler_static='-Bstatic'
8018      ;;
8019
8020    *nto* | *qnx*)
8021      # QNX uses GNU C++, but need to define -shared option too, otherwise
8022      # it will coredump.
8023      lt_prog_compiler_pic='-fPIC -shared'
8024      ;;
8025
8026    osf3* | osf4* | osf5*)
8027      lt_prog_compiler_wl='-Wl,'
8028      # All OSF/1 code is PIC.
8029      lt_prog_compiler_static='-non_shared'
8030      ;;
8031
8032    rdos*)
8033      lt_prog_compiler_static='-non_shared'
8034      ;;
8035
8036    solaris*)
8037      lt_prog_compiler_pic='-KPIC'
8038      lt_prog_compiler_static='-Bstatic'
8039      case $cc_basename in
8040      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8041	lt_prog_compiler_wl='-Qoption ld ';;
8042      *)
8043	lt_prog_compiler_wl='-Wl,';;
8044      esac
8045      ;;
8046
8047    sunos4*)
8048      lt_prog_compiler_wl='-Qoption ld '
8049      lt_prog_compiler_pic='-PIC'
8050      lt_prog_compiler_static='-Bstatic'
8051      ;;
8052
8053    sysv4 | sysv4.2uw2* | sysv4.3*)
8054      lt_prog_compiler_wl='-Wl,'
8055      lt_prog_compiler_pic='-KPIC'
8056      lt_prog_compiler_static='-Bstatic'
8057      ;;
8058
8059    sysv4*MP*)
8060      if test -d /usr/nec; then
8061	lt_prog_compiler_pic='-Kconform_pic'
8062	lt_prog_compiler_static='-Bstatic'
8063      fi
8064      ;;
8065
8066    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8067      lt_prog_compiler_wl='-Wl,'
8068      lt_prog_compiler_pic='-KPIC'
8069      lt_prog_compiler_static='-Bstatic'
8070      ;;
8071
8072    unicos*)
8073      lt_prog_compiler_wl='-Wl,'
8074      lt_prog_compiler_can_build_shared=no
8075      ;;
8076
8077    uts4*)
8078      lt_prog_compiler_pic='-pic'
8079      lt_prog_compiler_static='-Bstatic'
8080      ;;
8081
8082    *)
8083      lt_prog_compiler_can_build_shared=no
8084      ;;
8085    esac
8086  fi
8087
8088case $host_os in
8089  # For platforms that do not support PIC, -DPIC is meaningless:
8090  *djgpp*)
8091    lt_prog_compiler_pic=
8092    ;;
8093  *)
8094    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8095    ;;
8096esac
8097
8098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8099$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8100if ${lt_cv_prog_compiler_pic+:} false; then :
8101  $as_echo_n "(cached) " >&6
8102else
8103  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8104fi
8105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8106$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8107lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8108
8109#
8110# Check to make sure the PIC flag actually works.
8111#
8112if test -n "$lt_prog_compiler_pic"; then
8113  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8114$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8115if ${lt_cv_prog_compiler_pic_works+:} false; then :
8116  $as_echo_n "(cached) " >&6
8117else
8118  lt_cv_prog_compiler_pic_works=no
8119   ac_outfile=conftest.$ac_objext
8120   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8121   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
8122   # Insert the option either (1) after the last *FLAGS variable, or
8123   # (2) before a word containing "conftest.", or (3) at the end.
8124   # Note that $ac_compile itself does not contain backslashes and begins
8125   # with a dollar sign (not a hyphen), so the echo should work correctly.
8126   # The option is referenced via a variable to avoid confusing sed.
8127   lt_compile=`echo "$ac_compile" | $SED \
8128   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8129   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8130   -e 's:$: $lt_compiler_flag:'`
8131   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8132   (eval "$lt_compile" 2>conftest.err)
8133   ac_status=$?
8134   cat conftest.err >&5
8135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8136   if (exit $ac_status) && test -s "$ac_outfile"; then
8137     # The compiler can only warn and ignore the option if not recognized
8138     # So say no if there are warnings other than the usual output.
8139     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8140     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8141     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8142       lt_cv_prog_compiler_pic_works=yes
8143     fi
8144   fi
8145   $RM conftest*
8146
8147fi
8148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8149$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8150
8151if test yes = "$lt_cv_prog_compiler_pic_works"; then
8152    case $lt_prog_compiler_pic in
8153     "" | " "*) ;;
8154     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8155     esac
8156else
8157    lt_prog_compiler_pic=
8158     lt_prog_compiler_can_build_shared=no
8159fi
8160
8161fi
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173#
8174# Check to make sure the static flag actually works.
8175#
8176wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8178$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8179if ${lt_cv_prog_compiler_static_works+:} false; then :
8180  $as_echo_n "(cached) " >&6
8181else
8182  lt_cv_prog_compiler_static_works=no
8183   save_LDFLAGS=$LDFLAGS
8184   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8185   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8186   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8187     # The linker can only warn and ignore the option if not recognized
8188     # So say no if there are warnings
8189     if test -s conftest.err; then
8190       # Append any errors to the config.log.
8191       cat conftest.err 1>&5
8192       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8193       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8194       if diff conftest.exp conftest.er2 >/dev/null; then
8195         lt_cv_prog_compiler_static_works=yes
8196       fi
8197     else
8198       lt_cv_prog_compiler_static_works=yes
8199     fi
8200   fi
8201   $RM -r conftest*
8202   LDFLAGS=$save_LDFLAGS
8203
8204fi
8205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8206$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8207
8208if test yes = "$lt_cv_prog_compiler_static_works"; then
8209    :
8210else
8211    lt_prog_compiler_static=
8212fi
8213
8214
8215
8216
8217
8218
8219
8220  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8221$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8222if ${lt_cv_prog_compiler_c_o+:} false; then :
8223  $as_echo_n "(cached) " >&6
8224else
8225  lt_cv_prog_compiler_c_o=no
8226   $RM -r conftest 2>/dev/null
8227   mkdir conftest
8228   cd conftest
8229   mkdir out
8230   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8231
8232   lt_compiler_flag="-o out/conftest2.$ac_objext"
8233   # Insert the option either (1) after the last *FLAGS variable, or
8234   # (2) before a word containing "conftest.", or (3) at the end.
8235   # Note that $ac_compile itself does not contain backslashes and begins
8236   # with a dollar sign (not a hyphen), so the echo should work correctly.
8237   lt_compile=`echo "$ac_compile" | $SED \
8238   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8239   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8240   -e 's:$: $lt_compiler_flag:'`
8241   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8242   (eval "$lt_compile" 2>out/conftest.err)
8243   ac_status=$?
8244   cat out/conftest.err >&5
8245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8246   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8247   then
8248     # The compiler can only warn and ignore the option if not recognized
8249     # So say no if there are warnings
8250     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8251     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8252     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8253       lt_cv_prog_compiler_c_o=yes
8254     fi
8255   fi
8256   chmod u+w . 2>&5
8257   $RM conftest*
8258   # SGI C++ compiler will create directory out/ii_files/ for
8259   # template instantiation
8260   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8261   $RM out/* && rmdir out
8262   cd ..
8263   $RM -r conftest
8264   $RM conftest*
8265
8266fi
8267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8268$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8269
8270
8271
8272
8273
8274
8275  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8276$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8277if ${lt_cv_prog_compiler_c_o+:} false; then :
8278  $as_echo_n "(cached) " >&6
8279else
8280  lt_cv_prog_compiler_c_o=no
8281   $RM -r conftest 2>/dev/null
8282   mkdir conftest
8283   cd conftest
8284   mkdir out
8285   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8286
8287   lt_compiler_flag="-o out/conftest2.$ac_objext"
8288   # Insert the option either (1) after the last *FLAGS variable, or
8289   # (2) before a word containing "conftest.", or (3) at the end.
8290   # Note that $ac_compile itself does not contain backslashes and begins
8291   # with a dollar sign (not a hyphen), so the echo should work correctly.
8292   lt_compile=`echo "$ac_compile" | $SED \
8293   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8294   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8295   -e 's:$: $lt_compiler_flag:'`
8296   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8297   (eval "$lt_compile" 2>out/conftest.err)
8298   ac_status=$?
8299   cat out/conftest.err >&5
8300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8302   then
8303     # The compiler can only warn and ignore the option if not recognized
8304     # So say no if there are warnings
8305     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8306     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8307     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8308       lt_cv_prog_compiler_c_o=yes
8309     fi
8310   fi
8311   chmod u+w . 2>&5
8312   $RM conftest*
8313   # SGI C++ compiler will create directory out/ii_files/ for
8314   # template instantiation
8315   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8316   $RM out/* && rmdir out
8317   cd ..
8318   $RM -r conftest
8319   $RM conftest*
8320
8321fi
8322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8323$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8324
8325
8326
8327
8328hard_links=nottested
8329if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8330  # do not overwrite the value of need_locks provided by the user
8331  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8332$as_echo_n "checking if we can lock with hard links... " >&6; }
8333  hard_links=yes
8334  $RM conftest*
8335  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8336  touch conftest.a
8337  ln conftest.a conftest.b 2>&5 || hard_links=no
8338  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8339  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8340$as_echo "$hard_links" >&6; }
8341  if test no = "$hard_links"; then
8342    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8343$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8344    need_locks=warn
8345  fi
8346else
8347  need_locks=no
8348fi
8349
8350
8351
8352
8353
8354
8355  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8356$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8357
8358  runpath_var=
8359  allow_undefined_flag=
8360  always_export_symbols=no
8361  archive_cmds=
8362  archive_expsym_cmds=
8363  compiler_needs_object=no
8364  enable_shared_with_static_runtimes=no
8365  export_dynamic_flag_spec=
8366  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8367  hardcode_automatic=no
8368  hardcode_direct=no
8369  hardcode_direct_absolute=no
8370  hardcode_libdir_flag_spec=
8371  hardcode_libdir_separator=
8372  hardcode_minus_L=no
8373  hardcode_shlibpath_var=unsupported
8374  inherit_rpath=no
8375  link_all_deplibs=unknown
8376  module_cmds=
8377  module_expsym_cmds=
8378  old_archive_from_new_cmds=
8379  old_archive_from_expsyms_cmds=
8380  thread_safe_flag_spec=
8381  whole_archive_flag_spec=
8382  # include_expsyms should be a list of space-separated symbols to be *always*
8383  # included in the symbol list
8384  include_expsyms=
8385  # exclude_expsyms can be an extended regexp of symbols to exclude
8386  # it will be wrapped by ' (' and ')$', so one must not match beginning or
8387  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8388  # as well as any symbol that contains 'd'.
8389  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8390  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8391  # platforms (ab)use it in PIC code, but their linkers get confused if
8392  # the symbol is explicitly referenced.  Since portable code cannot
8393  # rely on this symbol name, it's probably fine to never include it in
8394  # preloaded symbol tables.
8395  # Exclude shared library initialization/finalization symbols.
8396  extract_expsyms_cmds=
8397
8398  case $host_os in
8399  cygwin* | mingw* | pw32* | cegcc*)
8400    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8401    # When not using gcc, we currently assume that we are using
8402    # Microsoft Visual C++.
8403    if test yes != "$GCC"; then
8404      with_gnu_ld=no
8405    fi
8406    ;;
8407  interix*)
8408    # we just hope/assume this is gcc and not c89 (= MSVC++)
8409    with_gnu_ld=yes
8410    ;;
8411  openbsd* | bitrig*)
8412    with_gnu_ld=no
8413    ;;
8414  linux* | k*bsd*-gnu | gnu*)
8415    link_all_deplibs=no
8416    ;;
8417  esac
8418
8419  ld_shlibs=yes
8420
8421  # On some targets, GNU ld is compatible enough with the native linker
8422  # that we're better off using the native interface for both.
8423  lt_use_gnu_ld_interface=no
8424  if test yes = "$with_gnu_ld"; then
8425    case $host_os in
8426      aix*)
8427	# The AIX port of GNU ld has always aspired to compatibility
8428	# with the native linker.  However, as the warning in the GNU ld
8429	# block says, versions before 2.19.5* couldn't really create working
8430	# shared libraries, regardless of the interface used.
8431	case `$LD -v 2>&1` in
8432	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8433	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8434	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8435	  *)
8436	    lt_use_gnu_ld_interface=yes
8437	    ;;
8438	esac
8439	;;
8440      *)
8441	lt_use_gnu_ld_interface=yes
8442	;;
8443    esac
8444  fi
8445
8446  if test yes = "$lt_use_gnu_ld_interface"; then
8447    # If archive_cmds runs LD, not CC, wlarc should be empty
8448    wlarc='$wl'
8449
8450    # Set some defaults for GNU ld with shared library support. These
8451    # are reset later if shared libraries are not supported. Putting them
8452    # here allows them to be overridden if necessary.
8453    runpath_var=LD_RUN_PATH
8454    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8455    export_dynamic_flag_spec='$wl--export-dynamic'
8456    # ancient GNU ld didn't support --whole-archive et. al.
8457    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8458      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8459    else
8460      whole_archive_flag_spec=
8461    fi
8462    supports_anon_versioning=no
8463    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
8464      *GNU\ gold*) supports_anon_versioning=yes ;;
8465      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8466      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8467      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8468      *\ 2.11.*) ;; # other 2.11 versions
8469      *) supports_anon_versioning=yes ;;
8470    esac
8471
8472    # See if GNU ld supports shared libraries.
8473    case $host_os in
8474    aix[3-9]*)
8475      # On AIX/PPC, the GNU linker is very broken
8476      if test ia64 != "$host_cpu"; then
8477	ld_shlibs=no
8478	cat <<_LT_EOF 1>&2
8479
8480*** Warning: the GNU linker, at least up to release 2.19, is reported
8481*** to be unable to reliably create shared libraries on AIX.
8482*** Therefore, libtool is disabling shared libraries support.  If you
8483*** really care for shared libraries, you may want to install binutils
8484*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8485*** You will then need to restart the configuration process.
8486
8487_LT_EOF
8488      fi
8489      ;;
8490
8491    amigaos*)
8492      case $host_cpu in
8493      powerpc)
8494            # see comment about AmigaOS4 .so support
8495            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8496            archive_expsym_cmds=''
8497        ;;
8498      m68k)
8499            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)'
8500            hardcode_libdir_flag_spec='-L$libdir'
8501            hardcode_minus_L=yes
8502        ;;
8503      esac
8504      ;;
8505
8506    beos*)
8507      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8508	allow_undefined_flag=unsupported
8509	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8510	# support --undefined.  This deserves some investigation.  FIXME
8511	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8512      else
8513	ld_shlibs=no
8514      fi
8515      ;;
8516
8517    cygwin* | mingw* | pw32* | cegcc*)
8518      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8519      # as there is no search path for DLLs.
8520      hardcode_libdir_flag_spec='-L$libdir'
8521      export_dynamic_flag_spec='$wl--export-all-symbols'
8522      allow_undefined_flag=unsupported
8523      always_export_symbols=no
8524      enable_shared_with_static_runtimes=yes
8525      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8526      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8527
8528      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8529        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8530	# If the export-symbols file already is a .def file, use it as
8531	# is; otherwise, prepend EXPORTS...
8532	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
8533          cp $export_symbols $output_objdir/$soname.def;
8534        else
8535          echo EXPORTS > $output_objdir/$soname.def;
8536          cat $export_symbols >> $output_objdir/$soname.def;
8537        fi~
8538        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8539      else
8540	ld_shlibs=no
8541      fi
8542      ;;
8543
8544    haiku*)
8545      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8546      link_all_deplibs=yes
8547      ;;
8548
8549    os2*)
8550      hardcode_libdir_flag_spec='-L$libdir'
8551      hardcode_minus_L=yes
8552      allow_undefined_flag=unsupported
8553      shrext_cmds=.dll
8554      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8555	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8556	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8557	$ECHO EXPORTS >> $output_objdir/$libname.def~
8558	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
8559	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8560	emximp -o $lib $output_objdir/$libname.def'
8561      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8562	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8563	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8564	$ECHO EXPORTS >> $output_objdir/$libname.def~
8565	prefix_cmds="$SED"~
8566	if test EXPORTS = "`$SED 1q $export_symbols`"; then
8567	  prefix_cmds="$prefix_cmds -e 1d";
8568	fi~
8569	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
8570	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
8571	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8572	emximp -o $lib $output_objdir/$libname.def'
8573      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
8574      enable_shared_with_static_runtimes=yes
8575      ;;
8576
8577    interix[3-9]*)
8578      hardcode_direct=no
8579      hardcode_shlibpath_var=no
8580      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
8581      export_dynamic_flag_spec='$wl-E'
8582      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8583      # Instead, shared libraries are loaded at an image base (0x10000000 by
8584      # default) and relocated if they conflict, which is a slow very memory
8585      # consuming and fragmenting process.  To avoid this, we pick a random,
8586      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8587      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8588      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8589      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'
8590      ;;
8591
8592    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8593      tmp_diet=no
8594      if test linux-dietlibc = "$host_os"; then
8595	case $cc_basename in
8596	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8597	esac
8598      fi
8599      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8600	 && test no = "$tmp_diet"
8601      then
8602	tmp_addflag=' $pic_flag'
8603	tmp_sharedflag='-shared'
8604	case $cc_basename,$host_cpu in
8605        pgcc*)				# Portland Group C compiler
8606	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
8607	  tmp_addflag=' $pic_flag'
8608	  ;;
8609	pgf77* | pgf90* | pgf95* | pgfortran*)
8610					# Portland Group f77 and f90 compilers
8611	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
8612	  tmp_addflag=' $pic_flag -Mnomain' ;;
8613	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8614	  tmp_addflag=' -i_dynamic' ;;
8615	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8616	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8617	ifc* | ifort*)			# Intel Fortran compiler
8618	  tmp_addflag=' -nofor_main' ;;
8619	lf95*)				# Lahey Fortran 8.1
8620	  whole_archive_flag_spec=
8621	  tmp_sharedflag='--shared' ;;
8622        nagfor*)                        # NAGFOR 5.3
8623          tmp_sharedflag='-Wl,-shared' ;;
8624	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8625	  tmp_sharedflag='-qmkshrobj'
8626	  tmp_addflag= ;;
8627	nvcc*)	# Cuda Compiler Driver 2.2
8628	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
8629	  compiler_needs_object=yes
8630	  ;;
8631	esac
8632	case `$CC -V 2>&1 | sed 5q` in
8633	*Sun\ C*)			# Sun C 5.9
8634	  whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
8635	  compiler_needs_object=yes
8636	  tmp_sharedflag='-G' ;;
8637	*Sun\ F*)			# Sun Fortran 8.3
8638	  tmp_sharedflag='-G' ;;
8639	esac
8640	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8641
8642        if test yes = "$supports_anon_versioning"; then
8643          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8644            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8645            echo "local: *; };" >> $output_objdir/$libname.ver~
8646            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
8647        fi
8648
8649	case $cc_basename in
8650	tcc*)
8651	  export_dynamic_flag_spec='-rdynamic'
8652	  ;;
8653	xlf* | bgf* | bgxlf* | mpixlf*)
8654	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8655	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8656	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8657	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8658	  if test yes = "$supports_anon_versioning"; then
8659	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8660              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8661              echo "local: *; };" >> $output_objdir/$libname.ver~
8662              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8663	  fi
8664	  ;;
8665	esac
8666      else
8667        ld_shlibs=no
8668      fi
8669      ;;
8670
8671    netbsd* | netbsdelf*-gnu)
8672      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8673	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8674	wlarc=
8675      else
8676	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8677	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8678      fi
8679      ;;
8680
8681    solaris*)
8682      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8683	ld_shlibs=no
8684	cat <<_LT_EOF 1>&2
8685
8686*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8687*** create shared libraries on Solaris systems.  Therefore, libtool
8688*** is disabling shared libraries support.  We urge you to upgrade GNU
8689*** binutils to release 2.9.1 or newer.  Another option is to modify
8690*** your PATH or compiler configuration so that the native linker is
8691*** used, and then restart.
8692
8693_LT_EOF
8694      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8695	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8696	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8697      else
8698	ld_shlibs=no
8699      fi
8700      ;;
8701
8702    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8703      case `$LD -v 2>&1` in
8704        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8705	ld_shlibs=no
8706	cat <<_LT_EOF 1>&2
8707
8708*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
8709*** reliably create shared libraries on SCO systems.  Therefore, libtool
8710*** is disabling shared libraries support.  We urge you to upgrade GNU
8711*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8712*** your PATH or compiler configuration so that the native linker is
8713*** used, and then restart.
8714
8715_LT_EOF
8716	;;
8717	*)
8718	  # For security reasons, it is highly recommended that you always
8719	  # use absolute paths for naming shared libraries, and exclude the
8720	  # DT_RUNPATH tag from executables and libraries.  But doing so
8721	  # requires that you compile everything twice, which is a pain.
8722	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8723	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8724	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8725	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8726	  else
8727	    ld_shlibs=no
8728	  fi
8729	;;
8730      esac
8731      ;;
8732
8733    sunos4*)
8734      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8735      wlarc=
8736      hardcode_direct=yes
8737      hardcode_shlibpath_var=no
8738      ;;
8739
8740    *)
8741      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8742	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8743	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8744      else
8745	ld_shlibs=no
8746      fi
8747      ;;
8748    esac
8749
8750    if test no = "$ld_shlibs"; then
8751      runpath_var=
8752      hardcode_libdir_flag_spec=
8753      export_dynamic_flag_spec=
8754      whole_archive_flag_spec=
8755    fi
8756  else
8757    # PORTME fill in a description of your system's linker (not GNU ld)
8758    case $host_os in
8759    aix3*)
8760      allow_undefined_flag=unsupported
8761      always_export_symbols=yes
8762      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'
8763      # Note: this linker hardcodes the directories in LIBPATH if there
8764      # are no directories specified by -L.
8765      hardcode_minus_L=yes
8766      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
8767	# Neither direct hardcoding nor static linking is supported with a
8768	# broken collect2.
8769	hardcode_direct=unsupported
8770      fi
8771      ;;
8772
8773    aix[4-9]*)
8774      if test ia64 = "$host_cpu"; then
8775	# On IA64, the linker does run time linking by default, so we don't
8776	# have to do anything special.
8777	aix_use_runtimelinking=no
8778	exp_sym_flag='-Bexport'
8779	no_entry_flag=
8780      else
8781	# If we're using GNU nm, then we don't want the "-C" option.
8782	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
8783	# Without the "-l" option, or with the "-B" option, AIX nm treats
8784	# weak defined symbols like other global defined symbols, whereas
8785	# GNU nm marks them as "W".
8786	# While the 'weak' keyword is ignored in the Export File, we need
8787	# it in the Import File for the 'aix-soname' feature, so we have
8788	# to replace the "-B" option with "-P" for AIX nm.
8789	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8790	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
8791	else
8792	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
8793	fi
8794	aix_use_runtimelinking=no
8795
8796	# Test if we are trying to use run time linking or normal
8797	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8798	# have runtime linking enabled, and use it for executables.
8799	# For shared libraries, we enable/disable runtime linking
8800	# depending on the kind of the shared library created -
8801	# when "with_aix_soname,aix_use_runtimelinking" is:
8802	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
8803	# "aix,yes"  lib.so          shared, rtl:yes, for executables
8804	#            lib.a           static archive
8805	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
8806	#            lib.a(lib.so.V) shared, rtl:no,  for executables
8807	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
8808	#            lib.a(lib.so.V) shared, rtl:no
8809	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
8810	#            lib.a           static archive
8811	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8812	  for ld_flag in $LDFLAGS; do
8813	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
8814	    aix_use_runtimelinking=yes
8815	    break
8816	  fi
8817	  done
8818	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
8819	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
8820	    # so we don't have lib.a shared libs to link our executables.
8821	    # We have to force runtime linking in this case.
8822	    aix_use_runtimelinking=yes
8823	    LDFLAGS="$LDFLAGS -Wl,-brtl"
8824	  fi
8825	  ;;
8826	esac
8827
8828	exp_sym_flag='-bexport'
8829	no_entry_flag='-bnoentry'
8830      fi
8831
8832      # When large executables or shared objects are built, AIX ld can
8833      # have problems creating the table of contents.  If linking a library
8834      # or program results in "error TOC overflow" add -mminimal-toc to
8835      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8836      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8837
8838      archive_cmds=''
8839      hardcode_direct=yes
8840      hardcode_direct_absolute=yes
8841      hardcode_libdir_separator=':'
8842      link_all_deplibs=yes
8843      file_list_spec='$wl-f,'
8844      case $with_aix_soname,$aix_use_runtimelinking in
8845      aix,*) ;; # traditional, no import file
8846      svr4,* | *,yes) # use import file
8847	# The Import File defines what to hardcode.
8848	hardcode_direct=no
8849	hardcode_direct_absolute=no
8850	;;
8851      esac
8852
8853      if test yes = "$GCC"; then
8854	case $host_os in aix4.[012]|aix4.[012].*)
8855	# We only want to do this on AIX 4.2 and lower, the check
8856	# below for broken collect2 doesn't work under 4.3+
8857	  collect2name=`$CC -print-prog-name=collect2`
8858	  if test -f "$collect2name" &&
8859	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8860	  then
8861	  # We have reworked collect2
8862	  :
8863	  else
8864	  # We have old collect2
8865	  hardcode_direct=unsupported
8866	  # It fails to find uninstalled libraries when the uninstalled
8867	  # path is not listed in the libpath.  Setting hardcode_minus_L
8868	  # to unsupported forces relinking
8869	  hardcode_minus_L=yes
8870	  hardcode_libdir_flag_spec='-L$libdir'
8871	  hardcode_libdir_separator=
8872	  fi
8873	  ;;
8874	esac
8875	shared_flag='-shared'
8876	if test yes = "$aix_use_runtimelinking"; then
8877	  shared_flag="$shared_flag "'$wl-G'
8878	fi
8879	# Need to ensure runtime linking is disabled for the traditional
8880	# shared library, or the linker may eventually find shared libraries
8881	# /with/ Import File - we do not want to mix them.
8882	shared_flag_aix='-shared'
8883	shared_flag_svr4='-shared $wl-G'
8884      else
8885	# not using gcc
8886	if test ia64 = "$host_cpu"; then
8887	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8888	# chokes on -Wl,-G. The following line is correct:
8889	  shared_flag='-G'
8890	else
8891	  if test yes = "$aix_use_runtimelinking"; then
8892	    shared_flag='$wl-G'
8893	  else
8894	    shared_flag='$wl-bM:SRE'
8895	  fi
8896	  shared_flag_aix='$wl-bM:SRE'
8897	  shared_flag_svr4='$wl-G'
8898	fi
8899      fi
8900
8901      export_dynamic_flag_spec='$wl-bexpall'
8902      # It seems that -bexpall does not export symbols beginning with
8903      # underscore (_), so it is better to generate a list of symbols to export.
8904      always_export_symbols=yes
8905      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
8906	# Warning - without using the other runtime loading flags (-brtl),
8907	# -berok will link without error, but may produce a broken library.
8908	allow_undefined_flag='-berok'
8909        # Determine the default libpath from the value encoded in an
8910        # empty executable.
8911        if test set = "${lt_cv_aix_libpath+set}"; then
8912  aix_libpath=$lt_cv_aix_libpath
8913else
8914  if ${lt_cv_aix_libpath_+:} false; then :
8915  $as_echo_n "(cached) " >&6
8916else
8917  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8918/* end confdefs.h.  */
8919
8920int
8921main ()
8922{
8923
8924  ;
8925  return 0;
8926}
8927_ACEOF
8928if ac_fn_c_try_link "$LINENO"; then :
8929
8930  lt_aix_libpath_sed='
8931      /Import File Strings/,/^$/ {
8932	  /^0/ {
8933	      s/^0  *\([^ ]*\) *$/\1/
8934	      p
8935	  }
8936      }'
8937  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8938  # Check for a 64-bit object if we didn't find anything.
8939  if test -z "$lt_cv_aix_libpath_"; then
8940    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8941  fi
8942fi
8943rm -f core conftest.err conftest.$ac_objext \
8944    conftest$ac_exeext conftest.$ac_ext
8945  if test -z "$lt_cv_aix_libpath_"; then
8946    lt_cv_aix_libpath_=/usr/lib:/lib
8947  fi
8948
8949fi
8950
8951  aix_libpath=$lt_cv_aix_libpath_
8952fi
8953
8954        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
8955        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
8956      else
8957	if test ia64 = "$host_cpu"; then
8958	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
8959	  allow_undefined_flag="-z nodefs"
8960	  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"
8961	else
8962	 # Determine the default libpath from the value encoded in an
8963	 # empty executable.
8964	 if test set = "${lt_cv_aix_libpath+set}"; then
8965  aix_libpath=$lt_cv_aix_libpath
8966else
8967  if ${lt_cv_aix_libpath_+:} false; then :
8968  $as_echo_n "(cached) " >&6
8969else
8970  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8971/* end confdefs.h.  */
8972
8973int
8974main ()
8975{
8976
8977  ;
8978  return 0;
8979}
8980_ACEOF
8981if ac_fn_c_try_link "$LINENO"; then :
8982
8983  lt_aix_libpath_sed='
8984      /Import File Strings/,/^$/ {
8985	  /^0/ {
8986	      s/^0  *\([^ ]*\) *$/\1/
8987	      p
8988	  }
8989      }'
8990  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8991  # Check for a 64-bit object if we didn't find anything.
8992  if test -z "$lt_cv_aix_libpath_"; then
8993    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8994  fi
8995fi
8996rm -f core conftest.err conftest.$ac_objext \
8997    conftest$ac_exeext conftest.$ac_ext
8998  if test -z "$lt_cv_aix_libpath_"; then
8999    lt_cv_aix_libpath_=/usr/lib:/lib
9000  fi
9001
9002fi
9003
9004  aix_libpath=$lt_cv_aix_libpath_
9005fi
9006
9007	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9008	  # Warning - without using the other run time loading flags,
9009	  # -berok will link without error, but may produce a broken library.
9010	  no_undefined_flag=' $wl-bernotok'
9011	  allow_undefined_flag=' $wl-berok'
9012	  if test yes = "$with_gnu_ld"; then
9013	    # We only use this code for GNU lds that support --whole-archive.
9014	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9015	  else
9016	    # Exported symbols can be pulled into shared objects from archives
9017	    whole_archive_flag_spec='$convenience'
9018	  fi
9019	  archive_cmds_need_lc=yes
9020	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9021	  # -brtl affects multiple linker settings, -berok does not and is overridden later
9022	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9023	  if test svr4 != "$with_aix_soname"; then
9024	    # This is similar to how AIX traditionally builds its shared libraries.
9025	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9026	  fi
9027	  if test aix != "$with_aix_soname"; then
9028	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9029	  else
9030	    # used by -dlpreopen to get the symbols
9031	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9032	  fi
9033	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9034	fi
9035      fi
9036      ;;
9037
9038    amigaos*)
9039      case $host_cpu in
9040      powerpc)
9041            # see comment about AmigaOS4 .so support
9042            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9043            archive_expsym_cmds=''
9044        ;;
9045      m68k)
9046            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)'
9047            hardcode_libdir_flag_spec='-L$libdir'
9048            hardcode_minus_L=yes
9049        ;;
9050      esac
9051      ;;
9052
9053    bsdi[45]*)
9054      export_dynamic_flag_spec=-rdynamic
9055      ;;
9056
9057    cygwin* | mingw* | pw32* | cegcc*)
9058      # When not using gcc, we currently assume that we are using
9059      # Microsoft Visual C++.
9060      # hardcode_libdir_flag_spec is actually meaningless, as there is
9061      # no search path for DLLs.
9062      case $cc_basename in
9063      cl*)
9064	# Native MSVC
9065	hardcode_libdir_flag_spec=' '
9066	allow_undefined_flag=unsupported
9067	always_export_symbols=yes
9068	file_list_spec='@'
9069	# Tell ltmain to make .lib files, not .a files.
9070	libext=lib
9071	# Tell ltmain to make .dll files, not .so files.
9072	shrext_cmds=.dll
9073	# FIXME: Setting linknames here is a bad hack.
9074	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9075	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9076            cp "$export_symbols" "$output_objdir/$soname.def";
9077            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9078          else
9079            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9080          fi~
9081          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9082          linknames='
9083	# The linker will not automatically build a static lib if we build a DLL.
9084	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9085	enable_shared_with_static_runtimes=yes
9086	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9087	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9088	# Don't use ranlib
9089	old_postinstall_cmds='chmod 644 $oldlib'
9090	postlink_cmds='lt_outputfile="@OUTPUT@"~
9091          lt_tool_outputfile="@TOOL_OUTPUT@"~
9092          case $lt_outputfile in
9093            *.exe|*.EXE) ;;
9094            *)
9095              lt_outputfile=$lt_outputfile.exe
9096              lt_tool_outputfile=$lt_tool_outputfile.exe
9097              ;;
9098          esac~
9099          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9100            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9101            $RM "$lt_outputfile.manifest";
9102          fi'
9103	;;
9104      *)
9105	# Assume MSVC wrapper
9106	hardcode_libdir_flag_spec=' '
9107	allow_undefined_flag=unsupported
9108	# Tell ltmain to make .lib files, not .a files.
9109	libext=lib
9110	# Tell ltmain to make .dll files, not .so files.
9111	shrext_cmds=.dll
9112	# FIXME: Setting linknames here is a bad hack.
9113	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9114	# The linker will automatically build a .lib file if we build a DLL.
9115	old_archive_from_new_cmds='true'
9116	# FIXME: Should let the user specify the lib program.
9117	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9118	enable_shared_with_static_runtimes=yes
9119	;;
9120      esac
9121      ;;
9122
9123    darwin* | rhapsody*)
9124
9125
9126  archive_cmds_need_lc=no
9127  hardcode_direct=no
9128  hardcode_automatic=yes
9129  hardcode_shlibpath_var=unsupported
9130  if test yes = "$lt_cv_ld_force_load"; then
9131    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9132
9133  else
9134    whole_archive_flag_spec=''
9135  fi
9136  link_all_deplibs=yes
9137  allow_undefined_flag=$_lt_dar_allow_undefined
9138  case $cc_basename in
9139     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9140     *) _lt_dar_can_shared=$GCC ;;
9141  esac
9142  if test yes = "$_lt_dar_can_shared"; then
9143    output_verbose_link_cmd=func_echo_all
9144    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9145    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9146    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"
9147    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"
9148
9149  else
9150  ld_shlibs=no
9151  fi
9152
9153      ;;
9154
9155    dgux*)
9156      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9157      hardcode_libdir_flag_spec='-L$libdir'
9158      hardcode_shlibpath_var=no
9159      ;;
9160
9161    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9162    # support.  Future versions do this automatically, but an explicit c++rt0.o
9163    # does not break anything, and helps significantly (at the cost of a little
9164    # extra space).
9165    freebsd2.2*)
9166      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9167      hardcode_libdir_flag_spec='-R$libdir'
9168      hardcode_direct=yes
9169      hardcode_shlibpath_var=no
9170      ;;
9171
9172    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9173    freebsd2.*)
9174      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9175      hardcode_direct=yes
9176      hardcode_minus_L=yes
9177      hardcode_shlibpath_var=no
9178      ;;
9179
9180    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9181    freebsd* | dragonfly*)
9182      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9183      hardcode_libdir_flag_spec='-R$libdir'
9184      hardcode_direct=yes
9185      hardcode_shlibpath_var=no
9186      ;;
9187
9188    hpux9*)
9189      if test yes = "$GCC"; then
9190	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9191      else
9192	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9193      fi
9194      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9195      hardcode_libdir_separator=:
9196      hardcode_direct=yes
9197
9198      # hardcode_minus_L: Not really in the search PATH,
9199      # but as the default location of the library.
9200      hardcode_minus_L=yes
9201      export_dynamic_flag_spec='$wl-E'
9202      ;;
9203
9204    hpux10*)
9205      if test yes,no = "$GCC,$with_gnu_ld"; then
9206	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9207      else
9208	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9209      fi
9210      if test no = "$with_gnu_ld"; then
9211	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9212	hardcode_libdir_separator=:
9213	hardcode_direct=yes
9214	hardcode_direct_absolute=yes
9215	export_dynamic_flag_spec='$wl-E'
9216	# hardcode_minus_L: Not really in the search PATH,
9217	# but as the default location of the library.
9218	hardcode_minus_L=yes
9219      fi
9220      ;;
9221
9222    hpux11*)
9223      if test yes,no = "$GCC,$with_gnu_ld"; then
9224	case $host_cpu in
9225	hppa*64*)
9226	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9227	  ;;
9228	ia64*)
9229	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9230	  ;;
9231	*)
9232	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9233	  ;;
9234	esac
9235      else
9236	case $host_cpu in
9237	hppa*64*)
9238	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9239	  ;;
9240	ia64*)
9241	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9242	  ;;
9243	*)
9244
9245	  # Older versions of the 11.00 compiler do not understand -b yet
9246	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9247	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9248$as_echo_n "checking if $CC understands -b... " >&6; }
9249if ${lt_cv_prog_compiler__b+:} false; then :
9250  $as_echo_n "(cached) " >&6
9251else
9252  lt_cv_prog_compiler__b=no
9253   save_LDFLAGS=$LDFLAGS
9254   LDFLAGS="$LDFLAGS -b"
9255   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9256   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9257     # The linker can only warn and ignore the option if not recognized
9258     # So say no if there are warnings
9259     if test -s conftest.err; then
9260       # Append any errors to the config.log.
9261       cat conftest.err 1>&5
9262       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9263       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9264       if diff conftest.exp conftest.er2 >/dev/null; then
9265         lt_cv_prog_compiler__b=yes
9266       fi
9267     else
9268       lt_cv_prog_compiler__b=yes
9269     fi
9270   fi
9271   $RM -r conftest*
9272   LDFLAGS=$save_LDFLAGS
9273
9274fi
9275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9276$as_echo "$lt_cv_prog_compiler__b" >&6; }
9277
9278if test yes = "$lt_cv_prog_compiler__b"; then
9279    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9280else
9281    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9282fi
9283
9284	  ;;
9285	esac
9286      fi
9287      if test no = "$with_gnu_ld"; then
9288	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9289	hardcode_libdir_separator=:
9290
9291	case $host_cpu in
9292	hppa*64*|ia64*)
9293	  hardcode_direct=no
9294	  hardcode_shlibpath_var=no
9295	  ;;
9296	*)
9297	  hardcode_direct=yes
9298	  hardcode_direct_absolute=yes
9299	  export_dynamic_flag_spec='$wl-E'
9300
9301	  # hardcode_minus_L: Not really in the search PATH,
9302	  # but as the default location of the library.
9303	  hardcode_minus_L=yes
9304	  ;;
9305	esac
9306      fi
9307      ;;
9308
9309    irix5* | irix6* | nonstopux*)
9310      if test yes = "$GCC"; then
9311	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
9312	# Try to use the -exported_symbol ld option, if it does not
9313	# work, assume that -exports_file does not work either and
9314	# implicitly export all symbols.
9315	# This should be the same for all languages, so no per-tag cache variable.
9316	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9317$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9318if ${lt_cv_irix_exported_symbol+:} false; then :
9319  $as_echo_n "(cached) " >&6
9320else
9321  save_LDFLAGS=$LDFLAGS
9322	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9323	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9324/* end confdefs.h.  */
9325int foo (void) { return 0; }
9326_ACEOF
9327if ac_fn_c_try_link "$LINENO"; then :
9328  lt_cv_irix_exported_symbol=yes
9329else
9330  lt_cv_irix_exported_symbol=no
9331fi
9332rm -f core conftest.err conftest.$ac_objext \
9333    conftest$ac_exeext conftest.$ac_ext
9334           LDFLAGS=$save_LDFLAGS
9335fi
9336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9337$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9338	if test yes = "$lt_cv_irix_exported_symbol"; then
9339          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
9340	fi
9341	link_all_deplibs=no
9342      else
9343	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
9344	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
9345      fi
9346      archive_cmds_need_lc='no'
9347      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9348      hardcode_libdir_separator=:
9349      inherit_rpath=yes
9350      link_all_deplibs=yes
9351      ;;
9352
9353    linux*)
9354      case $cc_basename in
9355      tcc*)
9356	# Fabrice Bellard et al's Tiny C Compiler
9357	ld_shlibs=yes
9358	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9359	;;
9360      esac
9361      ;;
9362
9363    netbsd* | netbsdelf*-gnu)
9364      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9365	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9366      else
9367	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9368      fi
9369      hardcode_libdir_flag_spec='-R$libdir'
9370      hardcode_direct=yes
9371      hardcode_shlibpath_var=no
9372      ;;
9373
9374    newsos6)
9375      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9376      hardcode_direct=yes
9377      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9378      hardcode_libdir_separator=:
9379      hardcode_shlibpath_var=no
9380      ;;
9381
9382    *nto* | *qnx*)
9383      ;;
9384
9385    openbsd* | bitrig*)
9386      if test -f /usr/libexec/ld.so; then
9387	hardcode_direct=yes
9388	hardcode_shlibpath_var=no
9389	hardcode_direct_absolute=yes
9390	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9391	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9392	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9393	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9394	  export_dynamic_flag_spec='$wl-E'
9395	else
9396	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9397	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9398	fi
9399      else
9400	ld_shlibs=no
9401      fi
9402      ;;
9403
9404    os2*)
9405      hardcode_libdir_flag_spec='-L$libdir'
9406      hardcode_minus_L=yes
9407      allow_undefined_flag=unsupported
9408      shrext_cmds=.dll
9409      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9410	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9411	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9412	$ECHO EXPORTS >> $output_objdir/$libname.def~
9413	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9414	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9415	emximp -o $lib $output_objdir/$libname.def'
9416      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9417	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9418	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9419	$ECHO EXPORTS >> $output_objdir/$libname.def~
9420	prefix_cmds="$SED"~
9421	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9422	  prefix_cmds="$prefix_cmds -e 1d";
9423	fi~
9424	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9425	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9426	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9427	emximp -o $lib $output_objdir/$libname.def'
9428      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9429      enable_shared_with_static_runtimes=yes
9430      ;;
9431
9432    osf3*)
9433      if test yes = "$GCC"; then
9434	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9435	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
9436      else
9437	allow_undefined_flag=' -expect_unresolved \*'
9438	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
9439      fi
9440      archive_cmds_need_lc='no'
9441      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9442      hardcode_libdir_separator=:
9443      ;;
9444
9445    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9446      if test yes = "$GCC"; then
9447	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9448	archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
9449	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9450      else
9451	allow_undefined_flag=' -expect_unresolved \*'
9452	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
9453	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~
9454          $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
9455
9456	# Both c and cxx compiler support -rpath directly
9457	hardcode_libdir_flag_spec='-rpath $libdir'
9458      fi
9459      archive_cmds_need_lc='no'
9460      hardcode_libdir_separator=:
9461      ;;
9462
9463    solaris*)
9464      no_undefined_flag=' -z defs'
9465      if test yes = "$GCC"; then
9466	wlarc='$wl'
9467	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9468	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9469          $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9470      else
9471	case `$CC -V 2>&1` in
9472	*"Compilers 5.0"*)
9473	  wlarc=''
9474	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
9475	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9476            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9477	  ;;
9478	*)
9479	  wlarc='$wl'
9480	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9481	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9482            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9483	  ;;
9484	esac
9485      fi
9486      hardcode_libdir_flag_spec='-R$libdir'
9487      hardcode_shlibpath_var=no
9488      case $host_os in
9489      solaris2.[0-5] | solaris2.[0-5].*) ;;
9490      *)
9491	# The compiler driver will combine and reorder linker options,
9492	# but understands '-z linker_flag'.  GCC discards it without '$wl',
9493	# but is careful enough not to reorder.
9494	# Supported since Solaris 2.6 (maybe 2.5.1?)
9495	if test yes = "$GCC"; then
9496	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
9497	else
9498	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9499	fi
9500	;;
9501      esac
9502      link_all_deplibs=yes
9503      ;;
9504
9505    sunos4*)
9506      if test sequent = "$host_vendor"; then
9507	# Use $CC to link under sequent, because it throws in some extra .o
9508	# files that make .init and .fini sections work.
9509	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9510      else
9511	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9512      fi
9513      hardcode_libdir_flag_spec='-L$libdir'
9514      hardcode_direct=yes
9515      hardcode_minus_L=yes
9516      hardcode_shlibpath_var=no
9517      ;;
9518
9519    sysv4)
9520      case $host_vendor in
9521	sni)
9522	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9523	  hardcode_direct=yes # is this really true???
9524	;;
9525	siemens)
9526	  ## LD is ld it makes a PLAMLIB
9527	  ## CC just makes a GrossModule.
9528	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9529	  reload_cmds='$CC -r -o $output$reload_objs'
9530	  hardcode_direct=no
9531        ;;
9532	motorola)
9533	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9534	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9535	;;
9536      esac
9537      runpath_var='LD_RUN_PATH'
9538      hardcode_shlibpath_var=no
9539      ;;
9540
9541    sysv4.3*)
9542      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9543      hardcode_shlibpath_var=no
9544      export_dynamic_flag_spec='-Bexport'
9545      ;;
9546
9547    sysv4*MP*)
9548      if test -d /usr/nec; then
9549	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9550	hardcode_shlibpath_var=no
9551	runpath_var=LD_RUN_PATH
9552	hardcode_runpath_var=yes
9553	ld_shlibs=yes
9554      fi
9555      ;;
9556
9557    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9558      no_undefined_flag='$wl-z,text'
9559      archive_cmds_need_lc=no
9560      hardcode_shlibpath_var=no
9561      runpath_var='LD_RUN_PATH'
9562
9563      if test yes = "$GCC"; then
9564	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9565	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9566      else
9567	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9568	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9569      fi
9570      ;;
9571
9572    sysv5* | sco3.2v5* | sco5v6*)
9573      # Note: We CANNOT use -z defs as we might desire, because we do not
9574      # link with -lc, and that would cause any symbols used from libc to
9575      # always be unresolved, which means just about no library would
9576      # ever link correctly.  If we're not using GNU ld we use -z text
9577      # though, which does catch some bad symbols but isn't as heavy-handed
9578      # as -z defs.
9579      no_undefined_flag='$wl-z,text'
9580      allow_undefined_flag='$wl-z,nodefs'
9581      archive_cmds_need_lc=no
9582      hardcode_shlibpath_var=no
9583      hardcode_libdir_flag_spec='$wl-R,$libdir'
9584      hardcode_libdir_separator=':'
9585      link_all_deplibs=yes
9586      export_dynamic_flag_spec='$wl-Bexport'
9587      runpath_var='LD_RUN_PATH'
9588
9589      if test yes = "$GCC"; then
9590	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9591	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9592      else
9593	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9594	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9595      fi
9596      ;;
9597
9598    uts4*)
9599      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9600      hardcode_libdir_flag_spec='-L$libdir'
9601      hardcode_shlibpath_var=no
9602      ;;
9603
9604    *)
9605      ld_shlibs=no
9606      ;;
9607    esac
9608
9609    if test sni = "$host_vendor"; then
9610      case $host in
9611      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9612	export_dynamic_flag_spec='$wl-Blargedynsym'
9613	;;
9614      esac
9615    fi
9616  fi
9617
9618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9619$as_echo "$ld_shlibs" >&6; }
9620test no = "$ld_shlibs" && can_build_shared=no
9621
9622with_gnu_ld=$with_gnu_ld
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638#
9639# Do we need to explicitly link libc?
9640#
9641case "x$archive_cmds_need_lc" in
9642x|xyes)
9643  # Assume -lc should be added
9644  archive_cmds_need_lc=yes
9645
9646  if test yes,yes = "$GCC,$enable_shared"; then
9647    case $archive_cmds in
9648    *'~'*)
9649      # FIXME: we may have to deal with multi-command sequences.
9650      ;;
9651    '$CC '*)
9652      # Test whether the compiler implicitly links with -lc since on some
9653      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9654      # to ld, don't add -lc before -lgcc.
9655      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9656$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9657if ${lt_cv_archive_cmds_need_lc+:} false; then :
9658  $as_echo_n "(cached) " >&6
9659else
9660  $RM conftest*
9661	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9662
9663	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9664  (eval $ac_compile) 2>&5
9665  ac_status=$?
9666  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9667  test $ac_status = 0; } 2>conftest.err; then
9668	  soname=conftest
9669	  lib=conftest
9670	  libobjs=conftest.$ac_objext
9671	  deplibs=
9672	  wl=$lt_prog_compiler_wl
9673	  pic_flag=$lt_prog_compiler_pic
9674	  compiler_flags=-v
9675	  linker_flags=-v
9676	  verstring=
9677	  output_objdir=.
9678	  libname=conftest
9679	  lt_save_allow_undefined_flag=$allow_undefined_flag
9680	  allow_undefined_flag=
9681	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9682  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9683  ac_status=$?
9684  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9685  test $ac_status = 0; }
9686	  then
9687	    lt_cv_archive_cmds_need_lc=no
9688	  else
9689	    lt_cv_archive_cmds_need_lc=yes
9690	  fi
9691	  allow_undefined_flag=$lt_save_allow_undefined_flag
9692	else
9693	  cat conftest.err 1>&5
9694	fi
9695	$RM conftest*
9696
9697fi
9698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9699$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9700      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9701      ;;
9702    esac
9703  fi
9704  ;;
9705esac
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9859$as_echo_n "checking dynamic linker characteristics... " >&6; }
9860
9861if test yes = "$GCC"; then
9862  case $host_os in
9863    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
9864    *) lt_awk_arg='/^libraries:/' ;;
9865  esac
9866  case $host_os in
9867    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
9868    *) lt_sed_strip_eq='s|=/|/|g' ;;
9869  esac
9870  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9871  case $lt_search_path_spec in
9872  *\;*)
9873    # if the path contains ";" then we assume it to be the separator
9874    # otherwise default to the standard path separator (i.e. ":") - it is
9875    # assumed that no part of a normal pathname contains ";" but that should
9876    # okay in the real world where ";" in dirpaths is itself problematic.
9877    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9878    ;;
9879  *)
9880    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9881    ;;
9882  esac
9883  # Ok, now we have the path, separated by spaces, we can step through it
9884  # and add multilib dir if necessary...
9885  lt_tmp_lt_search_path_spec=
9886  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9887  # ...but if some path component already ends with the multilib dir we assume
9888  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
9889  case "$lt_multi_os_dir; $lt_search_path_spec " in
9890  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
9891    lt_multi_os_dir=
9892    ;;
9893  esac
9894  for lt_sys_path in $lt_search_path_spec; do
9895    if test -d "$lt_sys_path$lt_multi_os_dir"; then
9896      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
9897    elif test -n "$lt_multi_os_dir"; then
9898      test -d "$lt_sys_path" && \
9899	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9900    fi
9901  done
9902  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9903BEGIN {RS = " "; FS = "/|\n";} {
9904  lt_foo = "";
9905  lt_count = 0;
9906  for (lt_i = NF; lt_i > 0; lt_i--) {
9907    if ($lt_i != "" && $lt_i != ".") {
9908      if ($lt_i == "..") {
9909        lt_count++;
9910      } else {
9911        if (lt_count == 0) {
9912          lt_foo = "/" $lt_i lt_foo;
9913        } else {
9914          lt_count--;
9915        }
9916      }
9917    }
9918  }
9919  if (lt_foo != "") { lt_freq[lt_foo]++; }
9920  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9921}'`
9922  # AWK program above erroneously prepends '/' to C:/dos/paths
9923  # for these hosts.
9924  case $host_os in
9925    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9926      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
9927  esac
9928  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9929else
9930  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9931fi
9932library_names_spec=
9933libname_spec='lib$name'
9934soname_spec=
9935shrext_cmds=.so
9936postinstall_cmds=
9937postuninstall_cmds=
9938finish_cmds=
9939finish_eval=
9940shlibpath_var=
9941shlibpath_overrides_runpath=unknown
9942version_type=none
9943dynamic_linker="$host_os ld.so"
9944sys_lib_dlsearch_path_spec="/lib /usr/lib"
9945need_lib_prefix=unknown
9946hardcode_into_libs=no
9947
9948# when you set need_version to no, make sure it does not cause -set_version
9949# flags to be left without arguments
9950need_version=unknown
9951
9952
9953
9954case $host_os in
9955aix3*)
9956  version_type=linux # correct to gnu/linux during the next big refactor
9957  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
9958  shlibpath_var=LIBPATH
9959
9960  # AIX 3 has no versioning support, so we append a major version to the name.
9961  soname_spec='$libname$release$shared_ext$major'
9962  ;;
9963
9964aix[4-9]*)
9965  version_type=linux # correct to gnu/linux during the next big refactor
9966  need_lib_prefix=no
9967  need_version=no
9968  hardcode_into_libs=yes
9969  if test ia64 = "$host_cpu"; then
9970    # AIX 5 supports IA64
9971    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
9972    shlibpath_var=LD_LIBRARY_PATH
9973  else
9974    # With GCC up to 2.95.x, collect2 would create an import file
9975    # for dependence libraries.  The import file would start with
9976    # the line '#! .'.  This would cause the generated library to
9977    # depend on '.', always an invalid library.  This was fixed in
9978    # development snapshots of GCC prior to 3.0.
9979    case $host_os in
9980      aix4 | aix4.[01] | aix4.[01].*)
9981      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9982	   echo ' yes '
9983	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
9984	:
9985      else
9986	can_build_shared=no
9987      fi
9988      ;;
9989    esac
9990    # Using Import Files as archive members, it is possible to support
9991    # filename-based versioning of shared library archives on AIX. While
9992    # this would work for both with and without runtime linking, it will
9993    # prevent static linking of such archives. So we do filename-based
9994    # shared library versioning with .so extension only, which is used
9995    # when both runtime linking and shared linking is enabled.
9996    # Unfortunately, runtime linking may impact performance, so we do
9997    # not want this to be the default eventually. Also, we use the
9998    # versioned .so libs for executables only if there is the -brtl
9999    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10000    # To allow for filename-based versioning support, we need to create
10001    # libNAME.so.V as an archive file, containing:
10002    # *) an Import File, referring to the versioned filename of the
10003    #    archive as well as the shared archive member, telling the
10004    #    bitwidth (32 or 64) of that shared object, and providing the
10005    #    list of exported symbols of that shared object, eventually
10006    #    decorated with the 'weak' keyword
10007    # *) the shared object with the F_LOADONLY flag set, to really avoid
10008    #    it being seen by the linker.
10009    # At run time we better use the real file rather than another symlink,
10010    # but for link time we create the symlink libNAME.so -> libNAME.so.V
10011
10012    case $with_aix_soname,$aix_use_runtimelinking in
10013    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10014    # soname into executable. Probably we can add versioning support to
10015    # collect2, so additional links can be useful in future.
10016    aix,yes) # traditional libtool
10017      dynamic_linker='AIX unversionable lib.so'
10018      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10019      # instead of lib<name>.a to let people know that these are not
10020      # typical AIX shared libraries.
10021      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10022      ;;
10023    aix,no) # traditional AIX only
10024      dynamic_linker='AIX lib.a(lib.so.V)'
10025      # We preserve .a as extension for shared libraries through AIX4.2
10026      # and later when we are not doing run time linking.
10027      library_names_spec='$libname$release.a $libname.a'
10028      soname_spec='$libname$release$shared_ext$major'
10029      ;;
10030    svr4,*) # full svr4 only
10031      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10032      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10033      # We do not specify a path in Import Files, so LIBPATH fires.
10034      shlibpath_overrides_runpath=yes
10035      ;;
10036    *,yes) # both, prefer svr4
10037      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10038      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10039      # unpreferred sharedlib libNAME.a needs extra handling
10040      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10041      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10042      # We do not specify a path in Import Files, so LIBPATH fires.
10043      shlibpath_overrides_runpath=yes
10044      ;;
10045    *,no) # both, prefer aix
10046      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10047      library_names_spec='$libname$release.a $libname.a'
10048      soname_spec='$libname$release$shared_ext$major'
10049      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10050      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10051      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10052      ;;
10053    esac
10054    shlibpath_var=LIBPATH
10055  fi
10056  ;;
10057
10058amigaos*)
10059  case $host_cpu in
10060  powerpc)
10061    # Since July 2007 AmigaOS4 officially supports .so libraries.
10062    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10063    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10064    ;;
10065  m68k)
10066    library_names_spec='$libname.ixlibrary $libname.a'
10067    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10068    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10069    ;;
10070  esac
10071  ;;
10072
10073beos*)
10074  library_names_spec='$libname$shared_ext'
10075  dynamic_linker="$host_os ld.so"
10076  shlibpath_var=LIBRARY_PATH
10077  ;;
10078
10079bsdi[45]*)
10080  version_type=linux # correct to gnu/linux during the next big refactor
10081  need_version=no
10082  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10083  soname_spec='$libname$release$shared_ext$major'
10084  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10085  shlibpath_var=LD_LIBRARY_PATH
10086  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10087  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10088  # the default ld.so.conf also contains /usr/contrib/lib and
10089  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10090  # libtool to hard-code these into programs
10091  ;;
10092
10093cygwin* | mingw* | pw32* | cegcc*)
10094  version_type=windows
10095  shrext_cmds=.dll
10096  need_version=no
10097  need_lib_prefix=no
10098
10099  case $GCC,$cc_basename in
10100  yes,*)
10101    # gcc
10102    library_names_spec='$libname.dll.a'
10103    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10104    postinstall_cmds='base_file=`basename \$file`~
10105      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10106      dldir=$destdir/`dirname \$dlpath`~
10107      test -d \$dldir || mkdir -p \$dldir~
10108      $install_prog $dir/$dlname \$dldir/$dlname~
10109      chmod a+x \$dldir/$dlname~
10110      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10111        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10112      fi'
10113    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10114      dlpath=$dir/\$dldll~
10115       $RM \$dlpath'
10116    shlibpath_overrides_runpath=yes
10117
10118    case $host_os in
10119    cygwin*)
10120      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10121      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10122
10123      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10124      ;;
10125    mingw* | cegcc*)
10126      # MinGW DLLs use traditional 'lib' prefix
10127      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10128      ;;
10129    pw32*)
10130      # pw32 DLLs use 'pw' prefix rather than 'lib'
10131      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10132      ;;
10133    esac
10134    dynamic_linker='Win32 ld.exe'
10135    ;;
10136
10137  *,cl*)
10138    # Native MSVC
10139    libname_spec='$name'
10140    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10141    library_names_spec='$libname.dll.lib'
10142
10143    case $build_os in
10144    mingw*)
10145      sys_lib_search_path_spec=
10146      lt_save_ifs=$IFS
10147      IFS=';'
10148      for lt_path in $LIB
10149      do
10150        IFS=$lt_save_ifs
10151        # Let DOS variable expansion print the short 8.3 style file name.
10152        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10153        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10154      done
10155      IFS=$lt_save_ifs
10156      # Convert to MSYS style.
10157      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10158      ;;
10159    cygwin*)
10160      # Convert to unix form, then to dos form, then back to unix form
10161      # but this time dos style (no spaces!) so that the unix form looks
10162      # like /cygdrive/c/PROGRA~1:/cygdr...
10163      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10164      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10165      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10166      ;;
10167    *)
10168      sys_lib_search_path_spec=$LIB
10169      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10170        # It is most probably a Windows format PATH.
10171        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10172      else
10173        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10174      fi
10175      # FIXME: find the short name or the path components, as spaces are
10176      # common. (e.g. "Program Files" -> "PROGRA~1")
10177      ;;
10178    esac
10179
10180    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10181    postinstall_cmds='base_file=`basename \$file`~
10182      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10183      dldir=$destdir/`dirname \$dlpath`~
10184      test -d \$dldir || mkdir -p \$dldir~
10185      $install_prog $dir/$dlname \$dldir/$dlname'
10186    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10187      dlpath=$dir/\$dldll~
10188       $RM \$dlpath'
10189    shlibpath_overrides_runpath=yes
10190    dynamic_linker='Win32 link.exe'
10191    ;;
10192
10193  *)
10194    # Assume MSVC wrapper
10195    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10196    dynamic_linker='Win32 ld.exe'
10197    ;;
10198  esac
10199  # FIXME: first we should search . and the directory the executable is in
10200  shlibpath_var=PATH
10201  ;;
10202
10203darwin* | rhapsody*)
10204  dynamic_linker="$host_os dyld"
10205  version_type=darwin
10206  need_lib_prefix=no
10207  need_version=no
10208  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10209  soname_spec='$libname$release$major$shared_ext'
10210  shlibpath_overrides_runpath=yes
10211  shlibpath_var=DYLD_LIBRARY_PATH
10212  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10213
10214  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10215  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10216  ;;
10217
10218dgux*)
10219  version_type=linux # correct to gnu/linux during the next big refactor
10220  need_lib_prefix=no
10221  need_version=no
10222  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10223  soname_spec='$libname$release$shared_ext$major'
10224  shlibpath_var=LD_LIBRARY_PATH
10225  ;;
10226
10227freebsd* | dragonfly*)
10228  # DragonFly does not have aout.  When/if they implement a new
10229  # versioning mechanism, adjust this.
10230  if test -x /usr/bin/objformat; then
10231    objformat=`/usr/bin/objformat`
10232  else
10233    case $host_os in
10234    freebsd[23].*) objformat=aout ;;
10235    *) objformat=elf ;;
10236    esac
10237  fi
10238  version_type=freebsd-$objformat
10239  case $version_type in
10240    freebsd-elf*)
10241      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10242      soname_spec='$libname$release$shared_ext$major'
10243      need_version=no
10244      need_lib_prefix=no
10245      ;;
10246    freebsd-*)
10247      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10248      need_version=yes
10249      ;;
10250  esac
10251  shlibpath_var=LD_LIBRARY_PATH
10252  case $host_os in
10253  freebsd2.*)
10254    shlibpath_overrides_runpath=yes
10255    ;;
10256  freebsd3.[01]* | freebsdelf3.[01]*)
10257    shlibpath_overrides_runpath=yes
10258    hardcode_into_libs=yes
10259    ;;
10260  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10261  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10262    shlibpath_overrides_runpath=no
10263    hardcode_into_libs=yes
10264    ;;
10265  *) # from 4.6 on, and DragonFly
10266    shlibpath_overrides_runpath=yes
10267    hardcode_into_libs=yes
10268    ;;
10269  esac
10270  ;;
10271
10272haiku*)
10273  version_type=linux # correct to gnu/linux during the next big refactor
10274  need_lib_prefix=no
10275  need_version=no
10276  dynamic_linker="$host_os runtime_loader"
10277  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10278  soname_spec='$libname$release$shared_ext$major'
10279  shlibpath_var=LIBRARY_PATH
10280  shlibpath_overrides_runpath=no
10281  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10282  hardcode_into_libs=yes
10283  ;;
10284
10285hpux9* | hpux10* | hpux11*)
10286  # Give a soname corresponding to the major version so that dld.sl refuses to
10287  # link against other versions.
10288  version_type=sunos
10289  need_lib_prefix=no
10290  need_version=no
10291  case $host_cpu in
10292  ia64*)
10293    shrext_cmds='.so'
10294    hardcode_into_libs=yes
10295    dynamic_linker="$host_os dld.so"
10296    shlibpath_var=LD_LIBRARY_PATH
10297    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10298    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10299    soname_spec='$libname$release$shared_ext$major'
10300    if test 32 = "$HPUX_IA64_MODE"; then
10301      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10302      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10303    else
10304      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10305      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10306    fi
10307    ;;
10308  hppa*64*)
10309    shrext_cmds='.sl'
10310    hardcode_into_libs=yes
10311    dynamic_linker="$host_os dld.sl"
10312    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10313    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10314    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10315    soname_spec='$libname$release$shared_ext$major'
10316    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10317    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10318    ;;
10319  *)
10320    shrext_cmds='.sl'
10321    dynamic_linker="$host_os dld.sl"
10322    shlibpath_var=SHLIB_PATH
10323    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10324    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10325    soname_spec='$libname$release$shared_ext$major'
10326    ;;
10327  esac
10328  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10329  postinstall_cmds='chmod 555 $lib'
10330  # or fails outright, so override atomically:
10331  install_override_mode=555
10332  ;;
10333
10334interix[3-9]*)
10335  version_type=linux # correct to gnu/linux during the next big refactor
10336  need_lib_prefix=no
10337  need_version=no
10338  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10339  soname_spec='$libname$release$shared_ext$major'
10340  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10341  shlibpath_var=LD_LIBRARY_PATH
10342  shlibpath_overrides_runpath=no
10343  hardcode_into_libs=yes
10344  ;;
10345
10346irix5* | irix6* | nonstopux*)
10347  case $host_os in
10348    nonstopux*) version_type=nonstopux ;;
10349    *)
10350	if test yes = "$lt_cv_prog_gnu_ld"; then
10351		version_type=linux # correct to gnu/linux during the next big refactor
10352	else
10353		version_type=irix
10354	fi ;;
10355  esac
10356  need_lib_prefix=no
10357  need_version=no
10358  soname_spec='$libname$release$shared_ext$major'
10359  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10360  case $host_os in
10361  irix5* | nonstopux*)
10362    libsuff= shlibsuff=
10363    ;;
10364  *)
10365    case $LD in # libtool.m4 will add one of these switches to LD
10366    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10367      libsuff= shlibsuff= libmagic=32-bit;;
10368    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10369      libsuff=32 shlibsuff=N32 libmagic=N32;;
10370    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10371      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10372    *) libsuff= shlibsuff= libmagic=never-match;;
10373    esac
10374    ;;
10375  esac
10376  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10377  shlibpath_overrides_runpath=no
10378  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10379  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10380  hardcode_into_libs=yes
10381  ;;
10382
10383# No shared lib support for Linux oldld, aout, or coff.
10384linux*oldld* | linux*aout* | linux*coff*)
10385  dynamic_linker=no
10386  ;;
10387
10388linux*android*)
10389  version_type=none # Android doesn't support versioned libraries.
10390  need_lib_prefix=no
10391  need_version=no
10392  library_names_spec='$libname$release$shared_ext'
10393  soname_spec='$libname$release$shared_ext'
10394  finish_cmds=
10395  shlibpath_var=LD_LIBRARY_PATH
10396  shlibpath_overrides_runpath=yes
10397
10398  # This implies no fast_install, which is unacceptable.
10399  # Some rework will be needed to allow for fast_install
10400  # before this can be enabled.
10401  hardcode_into_libs=yes
10402
10403  dynamic_linker='Android linker'
10404  # Don't embed -rpath directories since the linker doesn't support them.
10405  hardcode_libdir_flag_spec='-L$libdir'
10406  ;;
10407
10408# This must be glibc/ELF.
10409linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10410  version_type=linux # correct to gnu/linux during the next big refactor
10411  need_lib_prefix=no
10412  need_version=no
10413  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10414  soname_spec='$libname$release$shared_ext$major'
10415  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10416  shlibpath_var=LD_LIBRARY_PATH
10417  shlibpath_overrides_runpath=no
10418
10419  # Some binutils ld are patched to set DT_RUNPATH
10420  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10421  $as_echo_n "(cached) " >&6
10422else
10423  lt_cv_shlibpath_overrides_runpath=no
10424    save_LDFLAGS=$LDFLAGS
10425    save_libdir=$libdir
10426    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10427	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10428    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10429/* end confdefs.h.  */
10430
10431int
10432main ()
10433{
10434
10435  ;
10436  return 0;
10437}
10438_ACEOF
10439if ac_fn_c_try_link "$LINENO"; then :
10440  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10441  lt_cv_shlibpath_overrides_runpath=yes
10442fi
10443fi
10444rm -f core conftest.err conftest.$ac_objext \
10445    conftest$ac_exeext conftest.$ac_ext
10446    LDFLAGS=$save_LDFLAGS
10447    libdir=$save_libdir
10448
10449fi
10450
10451  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10452
10453  # This implies no fast_install, which is unacceptable.
10454  # Some rework will be needed to allow for fast_install
10455  # before this can be enabled.
10456  hardcode_into_libs=yes
10457
10458  # Ideally, we could use ldconfig to report *all* directores which are
10459  # searched for libraries, however this is still not possible.  Aside from not
10460  # being certain /sbin/ldconfig is available, command
10461  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
10462  # even though it is searched at run-time.  Try to do the best guess by
10463  # appending ld.so.conf contents (and includes) to the search path.
10464  if test -f /etc/ld.so.conf; then
10465    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10466    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10467  fi
10468
10469  # We used to test for /lib/ld.so.1 and disable shared libraries on
10470  # powerpc, because MkLinux only supported shared libraries with the
10471  # GNU dynamic linker.  Since this was broken with cross compilers,
10472  # most powerpc-linux boxes support dynamic linking these days and
10473  # people can always --disable-shared, the test was removed, and we
10474  # assume the GNU/Linux dynamic linker is in use.
10475  dynamic_linker='GNU/Linux ld.so'
10476  ;;
10477
10478netbsdelf*-gnu)
10479  version_type=linux
10480  need_lib_prefix=no
10481  need_version=no
10482  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10483  soname_spec='${libname}${release}${shared_ext}$major'
10484  shlibpath_var=LD_LIBRARY_PATH
10485  shlibpath_overrides_runpath=no
10486  hardcode_into_libs=yes
10487  dynamic_linker='NetBSD ld.elf_so'
10488  ;;
10489
10490netbsd*)
10491  version_type=sunos
10492  need_lib_prefix=no
10493  need_version=no
10494  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10495    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10496    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10497    dynamic_linker='NetBSD (a.out) ld.so'
10498  else
10499    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10500    soname_spec='$libname$release$shared_ext$major'
10501    dynamic_linker='NetBSD ld.elf_so'
10502  fi
10503  shlibpath_var=LD_LIBRARY_PATH
10504  shlibpath_overrides_runpath=yes
10505  hardcode_into_libs=yes
10506  ;;
10507
10508newsos6)
10509  version_type=linux # correct to gnu/linux during the next big refactor
10510  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10511  shlibpath_var=LD_LIBRARY_PATH
10512  shlibpath_overrides_runpath=yes
10513  ;;
10514
10515*nto* | *qnx*)
10516  version_type=qnx
10517  need_lib_prefix=no
10518  need_version=no
10519  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10520  soname_spec='$libname$release$shared_ext$major'
10521  shlibpath_var=LD_LIBRARY_PATH
10522  shlibpath_overrides_runpath=no
10523  hardcode_into_libs=yes
10524  dynamic_linker='ldqnx.so'
10525  ;;
10526
10527openbsd* | bitrig*)
10528  version_type=sunos
10529  sys_lib_dlsearch_path_spec=/usr/lib
10530  need_lib_prefix=no
10531  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10532    need_version=no
10533  else
10534    need_version=yes
10535  fi
10536  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10537  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10538  shlibpath_var=LD_LIBRARY_PATH
10539  shlibpath_overrides_runpath=yes
10540  ;;
10541
10542os2*)
10543  libname_spec='$name'
10544  version_type=windows
10545  shrext_cmds=.dll
10546  need_version=no
10547  need_lib_prefix=no
10548  # OS/2 can only load a DLL with a base name of 8 characters or less.
10549  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
10550    v=$($ECHO $release$versuffix | tr -d .-);
10551    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
10552    $ECHO $n$v`$shared_ext'
10553  library_names_spec='${libname}_dll.$libext'
10554  dynamic_linker='OS/2 ld.exe'
10555  shlibpath_var=BEGINLIBPATH
10556  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10557  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10558  postinstall_cmds='base_file=`basename \$file`~
10559    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
10560    dldir=$destdir/`dirname \$dlpath`~
10561    test -d \$dldir || mkdir -p \$dldir~
10562    $install_prog $dir/$dlname \$dldir/$dlname~
10563    chmod a+x \$dldir/$dlname~
10564    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10565      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10566    fi'
10567  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
10568    dlpath=$dir/\$dldll~
10569    $RM \$dlpath'
10570  ;;
10571
10572osf3* | osf4* | osf5*)
10573  version_type=osf
10574  need_lib_prefix=no
10575  need_version=no
10576  soname_spec='$libname$release$shared_ext$major'
10577  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10578  shlibpath_var=LD_LIBRARY_PATH
10579  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10580  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10581  ;;
10582
10583rdos*)
10584  dynamic_linker=no
10585  ;;
10586
10587solaris*)
10588  version_type=linux # correct to gnu/linux during the next big refactor
10589  need_lib_prefix=no
10590  need_version=no
10591  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10592  soname_spec='$libname$release$shared_ext$major'
10593  shlibpath_var=LD_LIBRARY_PATH
10594  shlibpath_overrides_runpath=yes
10595  hardcode_into_libs=yes
10596  # ldd complains unless libraries are executable
10597  postinstall_cmds='chmod +x $lib'
10598  ;;
10599
10600sunos4*)
10601  version_type=sunos
10602  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10603  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10604  shlibpath_var=LD_LIBRARY_PATH
10605  shlibpath_overrides_runpath=yes
10606  if test yes = "$with_gnu_ld"; then
10607    need_lib_prefix=no
10608  fi
10609  need_version=yes
10610  ;;
10611
10612sysv4 | sysv4.3*)
10613  version_type=linux # correct to gnu/linux during the next big refactor
10614  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10615  soname_spec='$libname$release$shared_ext$major'
10616  shlibpath_var=LD_LIBRARY_PATH
10617  case $host_vendor in
10618    sni)
10619      shlibpath_overrides_runpath=no
10620      need_lib_prefix=no
10621      runpath_var=LD_RUN_PATH
10622      ;;
10623    siemens)
10624      need_lib_prefix=no
10625      ;;
10626    motorola)
10627      need_lib_prefix=no
10628      need_version=no
10629      shlibpath_overrides_runpath=no
10630      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10631      ;;
10632  esac
10633  ;;
10634
10635sysv4*MP*)
10636  if test -d /usr/nec; then
10637    version_type=linux # correct to gnu/linux during the next big refactor
10638    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
10639    soname_spec='$libname$shared_ext.$major'
10640    shlibpath_var=LD_LIBRARY_PATH
10641  fi
10642  ;;
10643
10644sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10645  version_type=sco
10646  need_lib_prefix=no
10647  need_version=no
10648  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
10649  soname_spec='$libname$release$shared_ext$major'
10650  shlibpath_var=LD_LIBRARY_PATH
10651  shlibpath_overrides_runpath=yes
10652  hardcode_into_libs=yes
10653  if test yes = "$with_gnu_ld"; then
10654    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10655  else
10656    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10657    case $host_os in
10658      sco3.2v5*)
10659        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10660	;;
10661    esac
10662  fi
10663  sys_lib_dlsearch_path_spec='/usr/lib'
10664  ;;
10665
10666tpf*)
10667  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10668  version_type=linux # correct to gnu/linux during the next big refactor
10669  need_lib_prefix=no
10670  need_version=no
10671  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10672  shlibpath_var=LD_LIBRARY_PATH
10673  shlibpath_overrides_runpath=no
10674  hardcode_into_libs=yes
10675  ;;
10676
10677uts4*)
10678  version_type=linux # correct to gnu/linux during the next big refactor
10679  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10680  soname_spec='$libname$release$shared_ext$major'
10681  shlibpath_var=LD_LIBRARY_PATH
10682  ;;
10683
10684*)
10685  dynamic_linker=no
10686  ;;
10687esac
10688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10689$as_echo "$dynamic_linker" >&6; }
10690test no = "$dynamic_linker" && can_build_shared=no
10691
10692variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10693if test yes = "$GCC"; then
10694  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10695fi
10696
10697if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
10698  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
10699fi
10700
10701if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
10702  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
10703fi
10704
10705# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
10706configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
10707
10708# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
10709func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
10710
10711# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
10712configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10811$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10812hardcode_action=
10813if test -n "$hardcode_libdir_flag_spec" ||
10814   test -n "$runpath_var" ||
10815   test yes = "$hardcode_automatic"; then
10816
10817  # We can hardcode non-existent directories.
10818  if test no != "$hardcode_direct" &&
10819     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10820     # have to relink, otherwise we might link with an installed library
10821     # when we should be linking with a yet-to-be-installed one
10822     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
10823     test no != "$hardcode_minus_L"; then
10824    # Linking always hardcodes the temporary library directory.
10825    hardcode_action=relink
10826  else
10827    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10828    hardcode_action=immediate
10829  fi
10830else
10831  # We cannot hardcode anything, or else we can only hardcode existing
10832  # directories.
10833  hardcode_action=unsupported
10834fi
10835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10836$as_echo "$hardcode_action" >&6; }
10837
10838if test relink = "$hardcode_action" ||
10839   test yes = "$inherit_rpath"; then
10840  # Fast installation is not supported
10841  enable_fast_install=no
10842elif test yes = "$shlibpath_overrides_runpath" ||
10843     test no = "$enable_shared"; then
10844  # Fast installation is not necessary
10845  enable_fast_install=needless
10846fi
10847
10848
10849
10850
10851
10852
10853  if test yes != "$enable_dlopen"; then
10854  enable_dlopen=unknown
10855  enable_dlopen_self=unknown
10856  enable_dlopen_self_static=unknown
10857else
10858  lt_cv_dlopen=no
10859  lt_cv_dlopen_libs=
10860
10861  case $host_os in
10862  beos*)
10863    lt_cv_dlopen=load_add_on
10864    lt_cv_dlopen_libs=
10865    lt_cv_dlopen_self=yes
10866    ;;
10867
10868  mingw* | pw32* | cegcc*)
10869    lt_cv_dlopen=LoadLibrary
10870    lt_cv_dlopen_libs=
10871    ;;
10872
10873  cygwin*)
10874    lt_cv_dlopen=dlopen
10875    lt_cv_dlopen_libs=
10876    ;;
10877
10878  darwin*)
10879    # if libdl is installed we need to link against it
10880    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10881$as_echo_n "checking for dlopen in -ldl... " >&6; }
10882if ${ac_cv_lib_dl_dlopen+:} false; then :
10883  $as_echo_n "(cached) " >&6
10884else
10885  ac_check_lib_save_LIBS=$LIBS
10886LIBS="-ldl  $LIBS"
10887cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10888/* end confdefs.h.  */
10889
10890/* Override any GCC internal prototype to avoid an error.
10891   Use char because int might match the return type of a GCC
10892   builtin and then its argument prototype would still apply.  */
10893#ifdef __cplusplus
10894extern "C"
10895#endif
10896char dlopen ();
10897int
10898main ()
10899{
10900return dlopen ();
10901  ;
10902  return 0;
10903}
10904_ACEOF
10905if ac_fn_c_try_link "$LINENO"; then :
10906  ac_cv_lib_dl_dlopen=yes
10907else
10908  ac_cv_lib_dl_dlopen=no
10909fi
10910rm -f core conftest.err conftest.$ac_objext \
10911    conftest$ac_exeext conftest.$ac_ext
10912LIBS=$ac_check_lib_save_LIBS
10913fi
10914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10915$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10916if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10917  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
10918else
10919
10920    lt_cv_dlopen=dyld
10921    lt_cv_dlopen_libs=
10922    lt_cv_dlopen_self=yes
10923
10924fi
10925
10926    ;;
10927
10928  tpf*)
10929    # Don't try to run any link tests for TPF.  We know it's impossible
10930    # because TPF is a cross-compiler, and we know how we open DSOs.
10931    lt_cv_dlopen=dlopen
10932    lt_cv_dlopen_libs=
10933    lt_cv_dlopen_self=no
10934    ;;
10935
10936  *)
10937    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10938if test "x$ac_cv_func_shl_load" = xyes; then :
10939  lt_cv_dlopen=shl_load
10940else
10941  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10942$as_echo_n "checking for shl_load in -ldld... " >&6; }
10943if ${ac_cv_lib_dld_shl_load+:} false; then :
10944  $as_echo_n "(cached) " >&6
10945else
10946  ac_check_lib_save_LIBS=$LIBS
10947LIBS="-ldld  $LIBS"
10948cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10949/* end confdefs.h.  */
10950
10951/* Override any GCC internal prototype to avoid an error.
10952   Use char because int might match the return type of a GCC
10953   builtin and then its argument prototype would still apply.  */
10954#ifdef __cplusplus
10955extern "C"
10956#endif
10957char shl_load ();
10958int
10959main ()
10960{
10961return shl_load ();
10962  ;
10963  return 0;
10964}
10965_ACEOF
10966if ac_fn_c_try_link "$LINENO"; then :
10967  ac_cv_lib_dld_shl_load=yes
10968else
10969  ac_cv_lib_dld_shl_load=no
10970fi
10971rm -f core conftest.err conftest.$ac_objext \
10972    conftest$ac_exeext conftest.$ac_ext
10973LIBS=$ac_check_lib_save_LIBS
10974fi
10975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10976$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10977if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10978  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
10979else
10980  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10981if test "x$ac_cv_func_dlopen" = xyes; then :
10982  lt_cv_dlopen=dlopen
10983else
10984  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10985$as_echo_n "checking for dlopen in -ldl... " >&6; }
10986if ${ac_cv_lib_dl_dlopen+:} false; then :
10987  $as_echo_n "(cached) " >&6
10988else
10989  ac_check_lib_save_LIBS=$LIBS
10990LIBS="-ldl  $LIBS"
10991cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10992/* end confdefs.h.  */
10993
10994/* Override any GCC internal prototype to avoid an error.
10995   Use char because int might match the return type of a GCC
10996   builtin and then its argument prototype would still apply.  */
10997#ifdef __cplusplus
10998extern "C"
10999#endif
11000char dlopen ();
11001int
11002main ()
11003{
11004return dlopen ();
11005  ;
11006  return 0;
11007}
11008_ACEOF
11009if ac_fn_c_try_link "$LINENO"; then :
11010  ac_cv_lib_dl_dlopen=yes
11011else
11012  ac_cv_lib_dl_dlopen=no
11013fi
11014rm -f core conftest.err conftest.$ac_objext \
11015    conftest$ac_exeext conftest.$ac_ext
11016LIBS=$ac_check_lib_save_LIBS
11017fi
11018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11019$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11020if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11021  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11022else
11023  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11024$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11025if ${ac_cv_lib_svld_dlopen+:} false; then :
11026  $as_echo_n "(cached) " >&6
11027else
11028  ac_check_lib_save_LIBS=$LIBS
11029LIBS="-lsvld  $LIBS"
11030cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11031/* end confdefs.h.  */
11032
11033/* Override any GCC internal prototype to avoid an error.
11034   Use char because int might match the return type of a GCC
11035   builtin and then its argument prototype would still apply.  */
11036#ifdef __cplusplus
11037extern "C"
11038#endif
11039char dlopen ();
11040int
11041main ()
11042{
11043return dlopen ();
11044  ;
11045  return 0;
11046}
11047_ACEOF
11048if ac_fn_c_try_link "$LINENO"; then :
11049  ac_cv_lib_svld_dlopen=yes
11050else
11051  ac_cv_lib_svld_dlopen=no
11052fi
11053rm -f core conftest.err conftest.$ac_objext \
11054    conftest$ac_exeext conftest.$ac_ext
11055LIBS=$ac_check_lib_save_LIBS
11056fi
11057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11058$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11059if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11060  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11061else
11062  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11063$as_echo_n "checking for dld_link in -ldld... " >&6; }
11064if ${ac_cv_lib_dld_dld_link+:} false; then :
11065  $as_echo_n "(cached) " >&6
11066else
11067  ac_check_lib_save_LIBS=$LIBS
11068LIBS="-ldld  $LIBS"
11069cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11070/* end confdefs.h.  */
11071
11072/* Override any GCC internal prototype to avoid an error.
11073   Use char because int might match the return type of a GCC
11074   builtin and then its argument prototype would still apply.  */
11075#ifdef __cplusplus
11076extern "C"
11077#endif
11078char dld_link ();
11079int
11080main ()
11081{
11082return dld_link ();
11083  ;
11084  return 0;
11085}
11086_ACEOF
11087if ac_fn_c_try_link "$LINENO"; then :
11088  ac_cv_lib_dld_dld_link=yes
11089else
11090  ac_cv_lib_dld_dld_link=no
11091fi
11092rm -f core conftest.err conftest.$ac_objext \
11093    conftest$ac_exeext conftest.$ac_ext
11094LIBS=$ac_check_lib_save_LIBS
11095fi
11096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11097$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11098if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11099  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11100fi
11101
11102
11103fi
11104
11105
11106fi
11107
11108
11109fi
11110
11111
11112fi
11113
11114
11115fi
11116
11117    ;;
11118  esac
11119
11120  if test no = "$lt_cv_dlopen"; then
11121    enable_dlopen=no
11122  else
11123    enable_dlopen=yes
11124  fi
11125
11126  case $lt_cv_dlopen in
11127  dlopen)
11128    save_CPPFLAGS=$CPPFLAGS
11129    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11130
11131    save_LDFLAGS=$LDFLAGS
11132    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11133
11134    save_LIBS=$LIBS
11135    LIBS="$lt_cv_dlopen_libs $LIBS"
11136
11137    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11138$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11139if ${lt_cv_dlopen_self+:} false; then :
11140  $as_echo_n "(cached) " >&6
11141else
11142  	  if test yes = "$cross_compiling"; then :
11143  lt_cv_dlopen_self=cross
11144else
11145  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11146  lt_status=$lt_dlunknown
11147  cat > conftest.$ac_ext <<_LT_EOF
11148#line $LINENO "configure"
11149#include "confdefs.h"
11150
11151#if HAVE_DLFCN_H
11152#include <dlfcn.h>
11153#endif
11154
11155#include <stdio.h>
11156
11157#ifdef RTLD_GLOBAL
11158#  define LT_DLGLOBAL		RTLD_GLOBAL
11159#else
11160#  ifdef DL_GLOBAL
11161#    define LT_DLGLOBAL		DL_GLOBAL
11162#  else
11163#    define LT_DLGLOBAL		0
11164#  endif
11165#endif
11166
11167/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11168   find out it does not work in some platform. */
11169#ifndef LT_DLLAZY_OR_NOW
11170#  ifdef RTLD_LAZY
11171#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11172#  else
11173#    ifdef DL_LAZY
11174#      define LT_DLLAZY_OR_NOW		DL_LAZY
11175#    else
11176#      ifdef RTLD_NOW
11177#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11178#      else
11179#        ifdef DL_NOW
11180#          define LT_DLLAZY_OR_NOW	DL_NOW
11181#        else
11182#          define LT_DLLAZY_OR_NOW	0
11183#        endif
11184#      endif
11185#    endif
11186#  endif
11187#endif
11188
11189/* When -fvisibility=hidden is used, assume the code has been annotated
11190   correspondingly for the symbols needed.  */
11191#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11192int fnord () __attribute__((visibility("default")));
11193#endif
11194
11195int fnord () { return 42; }
11196int main ()
11197{
11198  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11199  int status = $lt_dlunknown;
11200
11201  if (self)
11202    {
11203      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11204      else
11205        {
11206	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11207          else puts (dlerror ());
11208	}
11209      /* dlclose (self); */
11210    }
11211  else
11212    puts (dlerror ());
11213
11214  return status;
11215}
11216_LT_EOF
11217  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11218  (eval $ac_link) 2>&5
11219  ac_status=$?
11220  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11221  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11222    (./conftest; exit; ) >&5 2>/dev/null
11223    lt_status=$?
11224    case x$lt_status in
11225      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11226      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11227      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11228    esac
11229  else :
11230    # compilation failed
11231    lt_cv_dlopen_self=no
11232  fi
11233fi
11234rm -fr conftest*
11235
11236
11237fi
11238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11239$as_echo "$lt_cv_dlopen_self" >&6; }
11240
11241    if test yes = "$lt_cv_dlopen_self"; then
11242      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11243      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11244$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11245if ${lt_cv_dlopen_self_static+:} false; then :
11246  $as_echo_n "(cached) " >&6
11247else
11248  	  if test yes = "$cross_compiling"; then :
11249  lt_cv_dlopen_self_static=cross
11250else
11251  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11252  lt_status=$lt_dlunknown
11253  cat > conftest.$ac_ext <<_LT_EOF
11254#line $LINENO "configure"
11255#include "confdefs.h"
11256
11257#if HAVE_DLFCN_H
11258#include <dlfcn.h>
11259#endif
11260
11261#include <stdio.h>
11262
11263#ifdef RTLD_GLOBAL
11264#  define LT_DLGLOBAL		RTLD_GLOBAL
11265#else
11266#  ifdef DL_GLOBAL
11267#    define LT_DLGLOBAL		DL_GLOBAL
11268#  else
11269#    define LT_DLGLOBAL		0
11270#  endif
11271#endif
11272
11273/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11274   find out it does not work in some platform. */
11275#ifndef LT_DLLAZY_OR_NOW
11276#  ifdef RTLD_LAZY
11277#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11278#  else
11279#    ifdef DL_LAZY
11280#      define LT_DLLAZY_OR_NOW		DL_LAZY
11281#    else
11282#      ifdef RTLD_NOW
11283#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11284#      else
11285#        ifdef DL_NOW
11286#          define LT_DLLAZY_OR_NOW	DL_NOW
11287#        else
11288#          define LT_DLLAZY_OR_NOW	0
11289#        endif
11290#      endif
11291#    endif
11292#  endif
11293#endif
11294
11295/* When -fvisibility=hidden is used, assume the code has been annotated
11296   correspondingly for the symbols needed.  */
11297#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11298int fnord () __attribute__((visibility("default")));
11299#endif
11300
11301int fnord () { return 42; }
11302int main ()
11303{
11304  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11305  int status = $lt_dlunknown;
11306
11307  if (self)
11308    {
11309      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11310      else
11311        {
11312	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11313          else puts (dlerror ());
11314	}
11315      /* dlclose (self); */
11316    }
11317  else
11318    puts (dlerror ());
11319
11320  return status;
11321}
11322_LT_EOF
11323  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11324  (eval $ac_link) 2>&5
11325  ac_status=$?
11326  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11327  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11328    (./conftest; exit; ) >&5 2>/dev/null
11329    lt_status=$?
11330    case x$lt_status in
11331      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11332      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11333      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11334    esac
11335  else :
11336    # compilation failed
11337    lt_cv_dlopen_self_static=no
11338  fi
11339fi
11340rm -fr conftest*
11341
11342
11343fi
11344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11345$as_echo "$lt_cv_dlopen_self_static" >&6; }
11346    fi
11347
11348    CPPFLAGS=$save_CPPFLAGS
11349    LDFLAGS=$save_LDFLAGS
11350    LIBS=$save_LIBS
11351    ;;
11352  esac
11353
11354  case $lt_cv_dlopen_self in
11355  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11356  *) enable_dlopen_self=unknown ;;
11357  esac
11358
11359  case $lt_cv_dlopen_self_static in
11360  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11361  *) enable_dlopen_self_static=unknown ;;
11362  esac
11363fi
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381striplib=
11382old_striplib=
11383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11384$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11385if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11386  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11387  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11389$as_echo "yes" >&6; }
11390else
11391# FIXME - insert some real tests, host_os isn't really good enough
11392  case $host_os in
11393  darwin*)
11394    if test -n "$STRIP"; then
11395      striplib="$STRIP -x"
11396      old_striplib="$STRIP -S"
11397      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11398$as_echo "yes" >&6; }
11399    else
11400      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11401$as_echo "no" >&6; }
11402    fi
11403    ;;
11404  *)
11405    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11406$as_echo "no" >&6; }
11407    ;;
11408  esac
11409fi
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422  # Report what library types will actually be built
11423  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11424$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11425  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11426$as_echo "$can_build_shared" >&6; }
11427
11428  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11429$as_echo_n "checking whether to build shared libraries... " >&6; }
11430  test no = "$can_build_shared" && enable_shared=no
11431
11432  # On AIX, shared libraries and static libraries use the same namespace, and
11433  # are all built from PIC.
11434  case $host_os in
11435  aix3*)
11436    test yes = "$enable_shared" && enable_static=no
11437    if test -n "$RANLIB"; then
11438      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11439      postinstall_cmds='$RANLIB $lib'
11440    fi
11441    ;;
11442
11443  aix[4-9]*)
11444    if test ia64 != "$host_cpu"; then
11445      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11446      yes,aix,yes) ;;			# shared object as lib.so file only
11447      yes,svr4,*) ;;			# shared object as lib.so archive member only
11448      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
11449      esac
11450    fi
11451    ;;
11452  esac
11453  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11454$as_echo "$enable_shared" >&6; }
11455
11456  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11457$as_echo_n "checking whether to build static libraries... " >&6; }
11458  # Make sure either enable_shared or enable_static is yes.
11459  test yes = "$enable_shared" || enable_static=yes
11460  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11461$as_echo "$enable_static" >&6; }
11462
11463
11464
11465
11466fi
11467ac_ext=c
11468ac_cpp='$CPP $CPPFLAGS'
11469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11471ac_compiler_gnu=$ac_cv_c_compiler_gnu
11472
11473CC=$lt_save_CC
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489        ac_config_commands="$ac_config_commands libtool"
11490
11491
11492
11493
11494# Only expand once:
11495
11496
11497am__api_version='1.15'
11498
11499# Find a good install program.  We prefer a C program (faster),
11500# so one script is as good as another.  But avoid the broken or
11501# incompatible versions:
11502# SysV /etc/install, /usr/sbin/install
11503# SunOS /usr/etc/install
11504# IRIX /sbin/install
11505# AIX /bin/install
11506# AmigaOS /C/install, which installs bootblocks on floppy discs
11507# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11508# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11509# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11510# OS/2's system install, which has a completely different semantic
11511# ./install, which can be erroneously created by make from ./install.sh.
11512# Reject install programs that cannot install multiple files.
11513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
11514$as_echo_n "checking for a BSD-compatible install... " >&6; }
11515if test -z "$INSTALL"; then
11516if ${ac_cv_path_install+:} false; then :
11517  $as_echo_n "(cached) " >&6
11518else
11519  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11520for as_dir in $PATH
11521do
11522  IFS=$as_save_IFS
11523  test -z "$as_dir" && as_dir=.
11524    # Account for people who put trailing slashes in PATH elements.
11525case $as_dir/ in #((
11526  ./ | .// | /[cC]/* | \
11527  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11528  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
11529  /usr/ucb/* ) ;;
11530  *)
11531    # OSF1 and SCO ODT 3.0 have their own names for install.
11532    # Don't use installbsd from OSF since it installs stuff as root
11533    # by default.
11534    for ac_prog in ginstall scoinst install; do
11535      for ac_exec_ext in '' $ac_executable_extensions; do
11536	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11537	  if test $ac_prog = install &&
11538	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11539	    # AIX install.  It has an incompatible calling convention.
11540	    :
11541	  elif test $ac_prog = install &&
11542	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11543	    # program-specific install script used by HP pwplus--don't use.
11544	    :
11545	  else
11546	    rm -rf conftest.one conftest.two conftest.dir
11547	    echo one > conftest.one
11548	    echo two > conftest.two
11549	    mkdir conftest.dir
11550	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11551	      test -s conftest.one && test -s conftest.two &&
11552	      test -s conftest.dir/conftest.one &&
11553	      test -s conftest.dir/conftest.two
11554	    then
11555	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11556	      break 3
11557	    fi
11558	  fi
11559	fi
11560      done
11561    done
11562    ;;
11563esac
11564
11565  done
11566IFS=$as_save_IFS
11567
11568rm -rf conftest.one conftest.two conftest.dir
11569
11570fi
11571  if test "${ac_cv_path_install+set}" = set; then
11572    INSTALL=$ac_cv_path_install
11573  else
11574    # As a last resort, use the slow shell script.  Don't cache a
11575    # value for INSTALL within a source directory, because that will
11576    # break other packages using the cache if that directory is
11577    # removed, or if the value is a relative name.
11578    INSTALL=$ac_install_sh
11579  fi
11580fi
11581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
11582$as_echo "$INSTALL" >&6; }
11583
11584# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11585# It thinks the first close brace ends the variable substitution.
11586test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11587
11588test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11589
11590test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11591
11592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
11593$as_echo_n "checking whether build environment is sane... " >&6; }
11594# Reject unsafe characters in $srcdir or the absolute working directory
11595# name.  Accept space and tab only in the latter.
11596am_lf='
11597'
11598case `pwd` in
11599  *[\\\"\#\$\&\'\`$am_lf]*)
11600    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
11601esac
11602case $srcdir in
11603  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
11604    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
11605esac
11606
11607# Do 'set' in a subshell so we don't clobber the current shell's
11608# arguments.  Must try -L first in case configure is actually a
11609# symlink; some systems play weird games with the mod time of symlinks
11610# (eg FreeBSD returns the mod time of the symlink's containing
11611# directory).
11612if (
11613   am_has_slept=no
11614   for am_try in 1 2; do
11615     echo "timestamp, slept: $am_has_slept" > conftest.file
11616     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
11617     if test "$*" = "X"; then
11618	# -L didn't work.
11619	set X `ls -t "$srcdir/configure" conftest.file`
11620     fi
11621     if test "$*" != "X $srcdir/configure conftest.file" \
11622	&& test "$*" != "X conftest.file $srcdir/configure"; then
11623
11624	# If neither matched, then we have a broken ls.  This can happen
11625	# if, for instance, CONFIG_SHELL is bash and it inherits a
11626	# broken ls alias from the environment.  This has actually
11627	# happened.  Such a system could not be considered "sane".
11628	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
11629  alias in your environment" "$LINENO" 5
11630     fi
11631     if test "$2" = conftest.file || test $am_try -eq 2; then
11632       break
11633     fi
11634     # Just in case.
11635     sleep 1
11636     am_has_slept=yes
11637   done
11638   test "$2" = conftest.file
11639   )
11640then
11641   # Ok.
11642   :
11643else
11644   as_fn_error $? "newly created file is older than distributed files!
11645Check your system clock" "$LINENO" 5
11646fi
11647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11648$as_echo "yes" >&6; }
11649# If we didn't sleep, we still need to ensure time stamps of config.status and
11650# generated files are strictly newer.
11651am_sleep_pid=
11652if grep 'slept: no' conftest.file >/dev/null 2>&1; then
11653  ( sleep 1 ) &
11654  am_sleep_pid=$!
11655fi
11656
11657rm -f conftest.file
11658
11659test "$program_prefix" != NONE &&
11660  program_transform_name="s&^&$program_prefix&;$program_transform_name"
11661# Use a double $ so make ignores it.
11662test "$program_suffix" != NONE &&
11663  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
11664# Double any \ or $.
11665# By default was `s,x,x', remove it if useless.
11666ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
11667program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
11668
11669if test x"${MISSING+set}" != xset; then
11670  case $am_aux_dir in
11671  *\ * | *\	*)
11672    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
11673  *)
11674    MISSING="\${SHELL} $am_aux_dir/missing" ;;
11675  esac
11676fi
11677# Use eval to expand $SHELL
11678if eval "$MISSING --is-lightweight"; then
11679  am_missing_run="$MISSING "
11680else
11681  am_missing_run=
11682  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
11683$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
11684fi
11685
11686if test x"${install_sh+set}" != xset; then
11687  case $am_aux_dir in
11688  *\ * | *\	*)
11689    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
11690  *)
11691    install_sh="\${SHELL} $am_aux_dir/install-sh"
11692  esac
11693fi
11694
11695# Installed binaries are usually stripped using 'strip' when the user
11696# run "make install-strip".  However 'strip' might not be the right
11697# tool to use in cross-compilation environments, therefore Automake
11698# will honor the 'STRIP' environment variable to overrule this program.
11699if test "$cross_compiling" != no; then
11700  if test -n "$ac_tool_prefix"; then
11701  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11702set dummy ${ac_tool_prefix}strip; ac_word=$2
11703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11704$as_echo_n "checking for $ac_word... " >&6; }
11705if ${ac_cv_prog_STRIP+:} false; then :
11706  $as_echo_n "(cached) " >&6
11707else
11708  if test -n "$STRIP"; then
11709  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11710else
11711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11712for as_dir in $PATH
11713do
11714  IFS=$as_save_IFS
11715  test -z "$as_dir" && as_dir=.
11716    for ac_exec_ext in '' $ac_executable_extensions; do
11717  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11718    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11719    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11720    break 2
11721  fi
11722done
11723  done
11724IFS=$as_save_IFS
11725
11726fi
11727fi
11728STRIP=$ac_cv_prog_STRIP
11729if test -n "$STRIP"; then
11730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11731$as_echo "$STRIP" >&6; }
11732else
11733  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11734$as_echo "no" >&6; }
11735fi
11736
11737
11738fi
11739if test -z "$ac_cv_prog_STRIP"; then
11740  ac_ct_STRIP=$STRIP
11741  # Extract the first word of "strip", so it can be a program name with args.
11742set dummy strip; ac_word=$2
11743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11744$as_echo_n "checking for $ac_word... " >&6; }
11745if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
11746  $as_echo_n "(cached) " >&6
11747else
11748  if test -n "$ac_ct_STRIP"; then
11749  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11750else
11751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11752for as_dir in $PATH
11753do
11754  IFS=$as_save_IFS
11755  test -z "$as_dir" && as_dir=.
11756    for ac_exec_ext in '' $ac_executable_extensions; do
11757  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11758    ac_cv_prog_ac_ct_STRIP="strip"
11759    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11760    break 2
11761  fi
11762done
11763  done
11764IFS=$as_save_IFS
11765
11766fi
11767fi
11768ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11769if test -n "$ac_ct_STRIP"; then
11770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11771$as_echo "$ac_ct_STRIP" >&6; }
11772else
11773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11774$as_echo "no" >&6; }
11775fi
11776
11777  if test "x$ac_ct_STRIP" = x; then
11778    STRIP=":"
11779  else
11780    case $cross_compiling:$ac_tool_warned in
11781yes:)
11782{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11783$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11784ac_tool_warned=yes ;;
11785esac
11786    STRIP=$ac_ct_STRIP
11787  fi
11788else
11789  STRIP="$ac_cv_prog_STRIP"
11790fi
11791
11792fi
11793INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
11794
11795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
11796$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
11797if test -z "$MKDIR_P"; then
11798  if ${ac_cv_path_mkdir+:} false; then :
11799  $as_echo_n "(cached) " >&6
11800else
11801  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11802for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
11803do
11804  IFS=$as_save_IFS
11805  test -z "$as_dir" && as_dir=.
11806    for ac_prog in mkdir gmkdir; do
11807	 for ac_exec_ext in '' $ac_executable_extensions; do
11808	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
11809	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
11810	     'mkdir (GNU coreutils) '* | \
11811	     'mkdir (coreutils) '* | \
11812	     'mkdir (fileutils) '4.1*)
11813	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
11814	       break 3;;
11815	   esac
11816	 done
11817       done
11818  done
11819IFS=$as_save_IFS
11820
11821fi
11822
11823  test -d ./--version && rmdir ./--version
11824  if test "${ac_cv_path_mkdir+set}" = set; then
11825    MKDIR_P="$ac_cv_path_mkdir -p"
11826  else
11827    # As a last resort, use the slow shell script.  Don't cache a
11828    # value for MKDIR_P within a source directory, because that will
11829    # break other packages using the cache if that directory is
11830    # removed, or if the value is a relative name.
11831    MKDIR_P="$ac_install_sh -d"
11832  fi
11833fi
11834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
11835$as_echo "$MKDIR_P" >&6; }
11836
11837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11838$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11839set x ${MAKE-make}
11840ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11841if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
11842  $as_echo_n "(cached) " >&6
11843else
11844  cat >conftest.make <<\_ACEOF
11845SHELL = /bin/sh
11846all:
11847	@echo '@@@%%%=$(MAKE)=@@@%%%'
11848_ACEOF
11849# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11850case `${MAKE-make} -f conftest.make 2>/dev/null` in
11851  *@@@%%%=?*=@@@%%%*)
11852    eval ac_cv_prog_make_${ac_make}_set=yes;;
11853  *)
11854    eval ac_cv_prog_make_${ac_make}_set=no;;
11855esac
11856rm -f conftest.make
11857fi
11858if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11859  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11860$as_echo "yes" >&6; }
11861  SET_MAKE=
11862else
11863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11864$as_echo "no" >&6; }
11865  SET_MAKE="MAKE=${MAKE-make}"
11866fi
11867
11868rm -rf .tst 2>/dev/null
11869mkdir .tst 2>/dev/null
11870if test -d .tst; then
11871  am__leading_dot=.
11872else
11873  am__leading_dot=_
11874fi
11875rmdir .tst 2>/dev/null
11876
11877DEPDIR="${am__leading_dot}deps"
11878
11879ac_config_commands="$ac_config_commands depfiles"
11880
11881
11882am_make=${MAKE-make}
11883cat > confinc << 'END'
11884am__doit:
11885	@echo this is the am__doit target
11886.PHONY: am__doit
11887END
11888# If we don't find an include directive, just comment out the code.
11889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
11890$as_echo_n "checking for style of include used by $am_make... " >&6; }
11891am__include="#"
11892am__quote=
11893_am_result=none
11894# First try GNU make style include.
11895echo "include confinc" > confmf
11896# Ignore all kinds of additional output from 'make'.
11897case `$am_make -s -f confmf 2> /dev/null` in #(
11898*the\ am__doit\ target*)
11899  am__include=include
11900  am__quote=
11901  _am_result=GNU
11902  ;;
11903esac
11904# Now try BSD make style include.
11905if test "$am__include" = "#"; then
11906   echo '.include "confinc"' > confmf
11907   case `$am_make -s -f confmf 2> /dev/null` in #(
11908   *the\ am__doit\ target*)
11909     am__include=.include
11910     am__quote="\""
11911     _am_result=BSD
11912     ;;
11913   esac
11914fi
11915
11916
11917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
11918$as_echo "$_am_result" >&6; }
11919rm -f confinc confmf
11920
11921# Check whether --enable-dependency-tracking was given.
11922if test "${enable_dependency_tracking+set}" = set; then :
11923  enableval=$enable_dependency_tracking;
11924fi
11925
11926if test "x$enable_dependency_tracking" != xno; then
11927  am_depcomp="$ac_aux_dir/depcomp"
11928  AMDEPBACKSLASH='\'
11929  am__nodep='_no'
11930fi
11931 if test "x$enable_dependency_tracking" != xno; then
11932  AMDEP_TRUE=
11933  AMDEP_FALSE='#'
11934else
11935  AMDEP_TRUE='#'
11936  AMDEP_FALSE=
11937fi
11938
11939
11940# Check whether --enable-silent-rules was given.
11941if test "${enable_silent_rules+set}" = set; then :
11942  enableval=$enable_silent_rules;
11943fi
11944
11945case $enable_silent_rules in # (((
11946  yes) AM_DEFAULT_VERBOSITY=0;;
11947   no) AM_DEFAULT_VERBOSITY=1;;
11948    *) AM_DEFAULT_VERBOSITY=1;;
11949esac
11950am_make=${MAKE-make}
11951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11952$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
11953if ${am_cv_make_support_nested_variables+:} false; then :
11954  $as_echo_n "(cached) " >&6
11955else
11956  if $as_echo 'TRUE=$(BAR$(V))
11957BAR0=false
11958BAR1=true
11959V=1
11960am__doit:
11961	@$(TRUE)
11962.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11963  am_cv_make_support_nested_variables=yes
11964else
11965  am_cv_make_support_nested_variables=no
11966fi
11967fi
11968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11969$as_echo "$am_cv_make_support_nested_variables" >&6; }
11970if test $am_cv_make_support_nested_variables = yes; then
11971    AM_V='$(V)'
11972  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11973else
11974  AM_V=$AM_DEFAULT_VERBOSITY
11975  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11976fi
11977AM_BACKSLASH='\'
11978
11979if test "`cd $srcdir && pwd`" != "`pwd`"; then
11980  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
11981  # is not polluted with repeated "-I."
11982  am__isrc=' -I$(srcdir)'
11983  # test to see if srcdir already configured
11984  if test -f $srcdir/config.status; then
11985    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
11986  fi
11987fi
11988
11989# test whether we have cygpath
11990if test -z "$CYGPATH_W"; then
11991  if (cygpath --version) >/dev/null 2>/dev/null; then
11992    CYGPATH_W='cygpath -w'
11993  else
11994    CYGPATH_W=echo
11995  fi
11996fi
11997
11998
11999# Define the identity of the package.
12000 PACKAGE='flex'
12001 VERSION='2.6.4'
12002
12003
12004cat >>confdefs.h <<_ACEOF
12005#define PACKAGE "$PACKAGE"
12006_ACEOF
12007
12008
12009cat >>confdefs.h <<_ACEOF
12010#define VERSION "$VERSION"
12011_ACEOF
12012
12013# Some tools Automake needs.
12014
12015ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
12016
12017
12018AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
12019
12020
12021AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
12022
12023
12024AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
12025
12026
12027MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
12028
12029# For better backward compatibility.  To be removed once Automake 1.9.x
12030# dies out for good.  For more background, see:
12031# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
12032# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
12033mkdir_p='$(MKDIR_P)'
12034
12035# We need awk for the "check" target (and possibly the TAP driver).  The
12036# system "awk" is bad on some platforms.
12037# Always define AMTAR for backward compatibility.  Yes, it's still used
12038# in the wild :-(  We should find a proper way to deprecate it ...
12039AMTAR='$${TAR-tar}'
12040
12041
12042# We'll loop over all known methods to create a tar archive until one works.
12043_am_tools='gnutar  pax cpio none'
12044
12045am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
12046
12047
12048
12049
12050
12051depcc="$CC"   am_compiler_list=
12052
12053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12054$as_echo_n "checking dependency style of $depcc... " >&6; }
12055if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12056  $as_echo_n "(cached) " >&6
12057else
12058  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12059  # We make a subdir and do the tests there.  Otherwise we can end up
12060  # making bogus files that we don't know about and never remove.  For
12061  # instance it was reported that on HP-UX the gcc test will end up
12062  # making a dummy file named 'D' -- because '-MD' means "put the output
12063  # in D".
12064  rm -rf conftest.dir
12065  mkdir conftest.dir
12066  # Copy depcomp to subdir because otherwise we won't find it if we're
12067  # using a relative directory.
12068  cp "$am_depcomp" conftest.dir
12069  cd conftest.dir
12070  # We will build objects and dependencies in a subdirectory because
12071  # it helps to detect inapplicable dependency modes.  For instance
12072  # both Tru64's cc and ICC support -MD to output dependencies as a
12073  # side effect of compilation, but ICC will put the dependencies in
12074  # the current directory while Tru64 will put them in the object
12075  # directory.
12076  mkdir sub
12077
12078  am_cv_CC_dependencies_compiler_type=none
12079  if test "$am_compiler_list" = ""; then
12080     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12081  fi
12082  am__universal=false
12083  case " $depcc " in #(
12084     *\ -arch\ *\ -arch\ *) am__universal=true ;;
12085     esac
12086
12087  for depmode in $am_compiler_list; do
12088    # Setup a source with many dependencies, because some compilers
12089    # like to wrap large dependency lists on column 80 (with \), and
12090    # we should not choose a depcomp mode which is confused by this.
12091    #
12092    # We need to recreate these files for each test, as the compiler may
12093    # overwrite some of them when testing with obscure command lines.
12094    # This happens at least with the AIX C compiler.
12095    : > sub/conftest.c
12096    for i in 1 2 3 4 5 6; do
12097      echo '#include "conftst'$i'.h"' >> sub/conftest.c
12098      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12099      # Solaris 10 /bin/sh.
12100      echo '/* dummy */' > sub/conftst$i.h
12101    done
12102    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12103
12104    # We check with '-c' and '-o' for the sake of the "dashmstdout"
12105    # mode.  It turns out that the SunPro C++ compiler does not properly
12106    # handle '-M -o', and we need to detect this.  Also, some Intel
12107    # versions had trouble with output in subdirs.
12108    am__obj=sub/conftest.${OBJEXT-o}
12109    am__minus_obj="-o $am__obj"
12110    case $depmode in
12111    gcc)
12112      # This depmode causes a compiler race in universal mode.
12113      test "$am__universal" = false || continue
12114      ;;
12115    nosideeffect)
12116      # After this tag, mechanisms are not by side-effect, so they'll
12117      # only be used when explicitly requested.
12118      if test "x$enable_dependency_tracking" = xyes; then
12119	continue
12120      else
12121	break
12122      fi
12123      ;;
12124    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12125      # This compiler won't grok '-c -o', but also, the minuso test has
12126      # not run yet.  These depmodes are late enough in the game, and
12127      # so weak that their functioning should not be impacted.
12128      am__obj=conftest.${OBJEXT-o}
12129      am__minus_obj=
12130      ;;
12131    none) break ;;
12132    esac
12133    if depmode=$depmode \
12134       source=sub/conftest.c object=$am__obj \
12135       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12136       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12137         >/dev/null 2>conftest.err &&
12138       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12139       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12140       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12141       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12142      # icc doesn't choke on unknown options, it will just issue warnings
12143      # or remarks (even with -Werror).  So we grep stderr for any message
12144      # that says an option was ignored or not supported.
12145      # When given -MP, icc 7.0 and 7.1 complain thusly:
12146      #   icc: Command line warning: ignoring option '-M'; no argument required
12147      # The diagnosis changed in icc 8.0:
12148      #   icc: Command line remark: option '-MP' not supported
12149      if (grep 'ignoring option' conftest.err ||
12150          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12151        am_cv_CC_dependencies_compiler_type=$depmode
12152        break
12153      fi
12154    fi
12155  done
12156
12157  cd ..
12158  rm -rf conftest.dir
12159else
12160  am_cv_CC_dependencies_compiler_type=none
12161fi
12162
12163fi
12164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12165$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12166CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12167
12168 if
12169  test "x$enable_dependency_tracking" != xno \
12170  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12171  am__fastdepCC_TRUE=
12172  am__fastdepCC_FALSE='#'
12173else
12174  am__fastdepCC_TRUE='#'
12175  am__fastdepCC_FALSE=
12176fi
12177
12178
12179
12180# POSIX will say in a future version that running "rm -f" with no argument
12181# is OK; and we want to be able to make that assumption in our Makefile
12182# recipes.  So use an aggressive probe to check that the usage we want is
12183# actually supported "in the wild" to an acceptable degree.
12184# See automake bug#10828.
12185# To make any issue more visible, cause the running configure to be aborted
12186# by default if the 'rm' program in use doesn't match our expectations; the
12187# user can still override this though.
12188if rm -f && rm -fr && rm -rf; then : OK; else
12189  cat >&2 <<'END'
12190Oops!
12191
12192Your 'rm' program seems unable to run without file operands specified
12193on the command line, even when the '-f' option is present.  This is contrary
12194to the behaviour of most rm programs out there, and not conforming with
12195the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
12196
12197Please tell bug-automake@gnu.org about your system, including the value
12198of your $PATH and any error possibly output before this message.  This
12199can help us improve future automake versions.
12200
12201END
12202  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
12203    echo 'Configuration will proceed anyway, since you have set the' >&2
12204    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
12205    echo >&2
12206  else
12207    cat >&2 <<'END'
12208Aborting the configuration process, to ensure you take notice of the issue.
12209
12210You can download and install GNU coreutils to get an 'rm' implementation
12211that behaves properly: <http://www.gnu.org/software/coreutils/>.
12212
12213If you want to complete the configuration process using your problematic
12214'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
12215to "yes", and re-run configure.
12216
12217END
12218    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
12219  fi
12220fi
12221
12222ac_config_headers="$ac_config_headers src/config.h"
12223
12224
12225
12226SHARED_VERSION_INFO="2:0:0"
12227
12228
12229# checks for programs
12230
12231
12232mkdir_p="$MKDIR_P"
12233case $mkdir_p in
12234  [\\/$]* | ?:[\\/]*) ;;
12235  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
12236esac
12237
12238
12239  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12240$as_echo_n "checking whether NLS is requested... " >&6; }
12241    # Check whether --enable-nls was given.
12242if test "${enable_nls+set}" = set; then :
12243  enableval=$enable_nls; USE_NLS=$enableval
12244else
12245  USE_NLS=yes
12246fi
12247
12248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12249$as_echo "$USE_NLS" >&6; }
12250
12251
12252
12253
12254      GETTEXT_MACRO_VERSION=0.18
12255
12256
12257
12258
12259# Prepare PATH_SEPARATOR.
12260# The user is always right.
12261if test "${PATH_SEPARATOR+set}" != set; then
12262  echo "#! /bin/sh" >conf$$.sh
12263  echo  "exit 0"   >>conf$$.sh
12264  chmod +x conf$$.sh
12265  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12266    PATH_SEPARATOR=';'
12267  else
12268    PATH_SEPARATOR=:
12269  fi
12270  rm -f conf$$.sh
12271fi
12272
12273# Find out how to test for executable files. Don't use a zero-byte file,
12274# as systems may use methods other than mode bits to determine executability.
12275cat >conf$$.file <<_ASEOF
12276#! /bin/sh
12277exit 0
12278_ASEOF
12279chmod +x conf$$.file
12280if test -x conf$$.file >/dev/null 2>&1; then
12281  ac_executable_p="test -x"
12282else
12283  ac_executable_p="test -f"
12284fi
12285rm -f conf$$.file
12286
12287# Extract the first word of "msgfmt", so it can be a program name with args.
12288set dummy msgfmt; ac_word=$2
12289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12290$as_echo_n "checking for $ac_word... " >&6; }
12291if ${ac_cv_path_MSGFMT+:} false; then :
12292  $as_echo_n "(cached) " >&6
12293else
12294  case "$MSGFMT" in
12295  [\\/]* | ?:[\\/]*)
12296    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12297    ;;
12298  *)
12299    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12300    for ac_dir in $PATH; do
12301      IFS="$ac_save_IFS"
12302      test -z "$ac_dir" && ac_dir=.
12303      for ac_exec_ext in '' $ac_executable_extensions; do
12304        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12305          echo "$as_me: trying $ac_dir/$ac_word..." >&5
12306          if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
12307     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12308            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12309            break 2
12310          fi
12311        fi
12312      done
12313    done
12314    IFS="$ac_save_IFS"
12315  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12316    ;;
12317esac
12318fi
12319MSGFMT="$ac_cv_path_MSGFMT"
12320if test "$MSGFMT" != ":"; then
12321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12322$as_echo "$MSGFMT" >&6; }
12323else
12324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12325$as_echo "no" >&6; }
12326fi
12327
12328  # Extract the first word of "gmsgfmt", so it can be a program name with args.
12329set dummy gmsgfmt; ac_word=$2
12330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12331$as_echo_n "checking for $ac_word... " >&6; }
12332if ${ac_cv_path_GMSGFMT+:} false; then :
12333  $as_echo_n "(cached) " >&6
12334else
12335  case $GMSGFMT in
12336  [\\/]* | ?:[\\/]*)
12337  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12338  ;;
12339  *)
12340  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12341for as_dir in $PATH
12342do
12343  IFS=$as_save_IFS
12344  test -z "$as_dir" && as_dir=.
12345    for ac_exec_ext in '' $ac_executable_extensions; do
12346  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12347    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12348    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12349    break 2
12350  fi
12351done
12352  done
12353IFS=$as_save_IFS
12354
12355  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12356  ;;
12357esac
12358fi
12359GMSGFMT=$ac_cv_path_GMSGFMT
12360if test -n "$GMSGFMT"; then
12361  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12362$as_echo "$GMSGFMT" >&6; }
12363else
12364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12365$as_echo "no" >&6; }
12366fi
12367
12368
12369
12370    case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12371    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
12372    *) MSGFMT_015=$MSGFMT ;;
12373  esac
12374
12375  case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12376    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
12377    *) GMSGFMT_015=$GMSGFMT ;;
12378  esac
12379
12380
12381
12382# Prepare PATH_SEPARATOR.
12383# The user is always right.
12384if test "${PATH_SEPARATOR+set}" != set; then
12385  echo "#! /bin/sh" >conf$$.sh
12386  echo  "exit 0"   >>conf$$.sh
12387  chmod +x conf$$.sh
12388  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12389    PATH_SEPARATOR=';'
12390  else
12391    PATH_SEPARATOR=:
12392  fi
12393  rm -f conf$$.sh
12394fi
12395
12396# Find out how to test for executable files. Don't use a zero-byte file,
12397# as systems may use methods other than mode bits to determine executability.
12398cat >conf$$.file <<_ASEOF
12399#! /bin/sh
12400exit 0
12401_ASEOF
12402chmod +x conf$$.file
12403if test -x conf$$.file >/dev/null 2>&1; then
12404  ac_executable_p="test -x"
12405else
12406  ac_executable_p="test -f"
12407fi
12408rm -f conf$$.file
12409
12410# Extract the first word of "xgettext", so it can be a program name with args.
12411set dummy xgettext; ac_word=$2
12412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12413$as_echo_n "checking for $ac_word... " >&6; }
12414if ${ac_cv_path_XGETTEXT+:} false; then :
12415  $as_echo_n "(cached) " >&6
12416else
12417  case "$XGETTEXT" in
12418  [\\/]* | ?:[\\/]*)
12419    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12420    ;;
12421  *)
12422    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12423    for ac_dir in $PATH; do
12424      IFS="$ac_save_IFS"
12425      test -z "$ac_dir" && ac_dir=.
12426      for ac_exec_ext in '' $ac_executable_extensions; do
12427        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12428          echo "$as_me: trying $ac_dir/$ac_word..." >&5
12429          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
12430     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12431            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12432            break 2
12433          fi
12434        fi
12435      done
12436    done
12437    IFS="$ac_save_IFS"
12438  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12439    ;;
12440esac
12441fi
12442XGETTEXT="$ac_cv_path_XGETTEXT"
12443if test "$XGETTEXT" != ":"; then
12444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12445$as_echo "$XGETTEXT" >&6; }
12446else
12447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12448$as_echo "no" >&6; }
12449fi
12450
12451    rm -f messages.po
12452
12453    case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12454    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
12455    *) XGETTEXT_015=$XGETTEXT ;;
12456  esac
12457
12458
12459
12460# Prepare PATH_SEPARATOR.
12461# The user is always right.
12462if test "${PATH_SEPARATOR+set}" != set; then
12463  echo "#! /bin/sh" >conf$$.sh
12464  echo  "exit 0"   >>conf$$.sh
12465  chmod +x conf$$.sh
12466  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12467    PATH_SEPARATOR=';'
12468  else
12469    PATH_SEPARATOR=:
12470  fi
12471  rm -f conf$$.sh
12472fi
12473
12474# Find out how to test for executable files. Don't use a zero-byte file,
12475# as systems may use methods other than mode bits to determine executability.
12476cat >conf$$.file <<_ASEOF
12477#! /bin/sh
12478exit 0
12479_ASEOF
12480chmod +x conf$$.file
12481if test -x conf$$.file >/dev/null 2>&1; then
12482  ac_executable_p="test -x"
12483else
12484  ac_executable_p="test -f"
12485fi
12486rm -f conf$$.file
12487
12488# Extract the first word of "msgmerge", so it can be a program name with args.
12489set dummy msgmerge; ac_word=$2
12490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12491$as_echo_n "checking for $ac_word... " >&6; }
12492if ${ac_cv_path_MSGMERGE+:} false; then :
12493  $as_echo_n "(cached) " >&6
12494else
12495  case "$MSGMERGE" in
12496  [\\/]* | ?:[\\/]*)
12497    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12498    ;;
12499  *)
12500    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12501    for ac_dir in $PATH; do
12502      IFS="$ac_save_IFS"
12503      test -z "$ac_dir" && ac_dir=.
12504      for ac_exec_ext in '' $ac_executable_extensions; do
12505        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12506          echo "$as_me: trying $ac_dir/$ac_word..." >&5
12507          if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
12508            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12509            break 2
12510          fi
12511        fi
12512      done
12513    done
12514    IFS="$ac_save_IFS"
12515  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12516    ;;
12517esac
12518fi
12519MSGMERGE="$ac_cv_path_MSGMERGE"
12520if test "$MSGMERGE" != ":"; then
12521  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12522$as_echo "$MSGMERGE" >&6; }
12523else
12524  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12525$as_echo "no" >&6; }
12526fi
12527
12528
12529        test -n "$localedir" || localedir='${datadir}/locale'
12530
12531
12532    test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
12533
12534
12535  ac_config_commands="$ac_config_commands po-directories"
12536
12537
12538
12539      if test "X$prefix" = "XNONE"; then
12540    acl_final_prefix="$ac_default_prefix"
12541  else
12542    acl_final_prefix="$prefix"
12543  fi
12544  if test "X$exec_prefix" = "XNONE"; then
12545    acl_final_exec_prefix='${prefix}'
12546  else
12547    acl_final_exec_prefix="$exec_prefix"
12548  fi
12549  acl_save_prefix="$prefix"
12550  prefix="$acl_final_prefix"
12551  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
12552  prefix="$acl_save_prefix"
12553
12554
12555# Check whether --with-gnu-ld was given.
12556if test "${with_gnu_ld+set}" = set; then :
12557  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12558else
12559  with_gnu_ld=no
12560fi
12561
12562# Prepare PATH_SEPARATOR.
12563# The user is always right.
12564if test "${PATH_SEPARATOR+set}" != set; then
12565  echo "#! /bin/sh" >conf$$.sh
12566  echo  "exit 0"   >>conf$$.sh
12567  chmod +x conf$$.sh
12568  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12569    PATH_SEPARATOR=';'
12570  else
12571    PATH_SEPARATOR=:
12572  fi
12573  rm -f conf$$.sh
12574fi
12575ac_prog=ld
12576if test "$GCC" = yes; then
12577  # Check if gcc -print-prog-name=ld gives a path.
12578  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
12579$as_echo_n "checking for ld used by GCC... " >&6; }
12580  case $host in
12581  *-*-mingw*)
12582    # gcc leaves a trailing carriage return which upsets mingw
12583    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12584  *)
12585    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12586  esac
12587  case $ac_prog in
12588    # Accept absolute paths.
12589    [\\/]* | [A-Za-z]:[\\/]*)
12590      re_direlt='/[^/][^/]*/\.\./'
12591      # Canonicalize the path of ld
12592      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
12593      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12594        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
12595      done
12596      test -z "$LD" && LD="$ac_prog"
12597      ;;
12598  "")
12599    # If it fails, then pretend we aren't using GCC.
12600    ac_prog=ld
12601    ;;
12602  *)
12603    # If it is relative, then search for the first ld in PATH.
12604    with_gnu_ld=unknown
12605    ;;
12606  esac
12607elif test "$with_gnu_ld" = yes; then
12608  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12609$as_echo_n "checking for GNU ld... " >&6; }
12610else
12611  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12612$as_echo_n "checking for non-GNU ld... " >&6; }
12613fi
12614if ${acl_cv_path_LD+:} false; then :
12615  $as_echo_n "(cached) " >&6
12616else
12617  if test -z "$LD"; then
12618  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
12619  for ac_dir in $PATH; do
12620    test -z "$ac_dir" && ac_dir=.
12621    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12622      acl_cv_path_LD="$ac_dir/$ac_prog"
12623      # Check to see if the program is GNU ld.  I'd rather use --version,
12624      # but apparently some GNU ld's only accept -v.
12625      # Break only if it was the GNU/non-GNU ld that we prefer.
12626      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
12627      *GNU* | *'with BFD'*)
12628        test "$with_gnu_ld" != no && break ;;
12629      *)
12630        test "$with_gnu_ld" != yes && break ;;
12631      esac
12632    fi
12633  done
12634  IFS="$ac_save_ifs"
12635else
12636  acl_cv_path_LD="$LD" # Let the user override the test with a path.
12637fi
12638fi
12639
12640LD="$acl_cv_path_LD"
12641if test -n "$LD"; then
12642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12643$as_echo "$LD" >&6; }
12644else
12645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12646$as_echo "no" >&6; }
12647fi
12648test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12650$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12651if ${acl_cv_prog_gnu_ld+:} false; then :
12652  $as_echo_n "(cached) " >&6
12653else
12654  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12655case `$LD -v 2>&1 </dev/null` in
12656*GNU* | *'with BFD'*)
12657  acl_cv_prog_gnu_ld=yes ;;
12658*)
12659  acl_cv_prog_gnu_ld=no ;;
12660esac
12661fi
12662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
12663$as_echo "$acl_cv_prog_gnu_ld" >&6; }
12664with_gnu_ld=$acl_cv_prog_gnu_ld
12665
12666
12667
12668
12669                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
12670$as_echo_n "checking for shared library run path origin... " >&6; }
12671if ${acl_cv_rpath+:} false; then :
12672  $as_echo_n "(cached) " >&6
12673else
12674
12675    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
12676    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
12677    . ./conftest.sh
12678    rm -f ./conftest.sh
12679    acl_cv_rpath=done
12680
12681fi
12682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
12683$as_echo "$acl_cv_rpath" >&6; }
12684  wl="$acl_cv_wl"
12685  acl_libext="$acl_cv_libext"
12686  acl_shlibext="$acl_cv_shlibext"
12687  acl_libname_spec="$acl_cv_libname_spec"
12688  acl_library_names_spec="$acl_cv_library_names_spec"
12689  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
12690  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
12691  acl_hardcode_direct="$acl_cv_hardcode_direct"
12692  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
12693    # Check whether --enable-rpath was given.
12694if test "${enable_rpath+set}" = set; then :
12695  enableval=$enable_rpath; :
12696else
12697  enable_rpath=yes
12698fi
12699
12700
12701
12702
12703  acl_libdirstem=lib
12704  acl_libdirstem2=
12705  case "$host_os" in
12706    solaris*)
12707                                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
12708$as_echo_n "checking for 64-bit host... " >&6; }
12709if ${gl_cv_solaris_64bit+:} false; then :
12710  $as_echo_n "(cached) " >&6
12711else
12712  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12713/* end confdefs.h.  */
12714
12715#ifdef _LP64
12716sixtyfour bits
12717#endif
12718
12719_ACEOF
12720if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12721  $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
12722  gl_cv_solaris_64bit=yes
12723else
12724  gl_cv_solaris_64bit=no
12725fi
12726rm -f conftest*
12727
12728
12729fi
12730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
12731$as_echo "$gl_cv_solaris_64bit" >&6; }
12732      if test $gl_cv_solaris_64bit = yes; then
12733        acl_libdirstem=lib/64
12734        case "$host_cpu" in
12735          sparc*)        acl_libdirstem2=lib/sparcv9 ;;
12736          i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
12737        esac
12738      fi
12739      ;;
12740    *)
12741      searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
12742      if test -n "$searchpath"; then
12743        acl_save_IFS="${IFS= 	}"; IFS=":"
12744        for searchdir in $searchpath; do
12745          if test -d "$searchdir"; then
12746            case "$searchdir" in
12747              */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
12748              */../ | */.. )
12749                # Better ignore directories of this form. They are misleading.
12750                ;;
12751              *) searchdir=`cd "$searchdir" && pwd`
12752                 case "$searchdir" in
12753                   */lib64 ) acl_libdirstem=lib64 ;;
12754                 esac ;;
12755            esac
12756          fi
12757        done
12758        IFS="$acl_save_IFS"
12759      fi
12760      ;;
12761  esac
12762  test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775    use_additional=yes
12776
12777  acl_save_prefix="$prefix"
12778  prefix="$acl_final_prefix"
12779  acl_save_exec_prefix="$exec_prefix"
12780  exec_prefix="$acl_final_exec_prefix"
12781
12782    eval additional_includedir=\"$includedir\"
12783    eval additional_libdir=\"$libdir\"
12784
12785  exec_prefix="$acl_save_exec_prefix"
12786  prefix="$acl_save_prefix"
12787
12788
12789# Check whether --with-libiconv-prefix was given.
12790if test "${with_libiconv_prefix+set}" = set; then :
12791  withval=$with_libiconv_prefix;
12792    if test "X$withval" = "Xno"; then
12793      use_additional=no
12794    else
12795      if test "X$withval" = "X"; then
12796
12797  acl_save_prefix="$prefix"
12798  prefix="$acl_final_prefix"
12799  acl_save_exec_prefix="$exec_prefix"
12800  exec_prefix="$acl_final_exec_prefix"
12801
12802          eval additional_includedir=\"$includedir\"
12803          eval additional_libdir=\"$libdir\"
12804
12805  exec_prefix="$acl_save_exec_prefix"
12806  prefix="$acl_save_prefix"
12807
12808      else
12809        additional_includedir="$withval/include"
12810        additional_libdir="$withval/$acl_libdirstem"
12811        if test "$acl_libdirstem2" != "$acl_libdirstem" \
12812           && ! test -d "$withval/$acl_libdirstem"; then
12813          additional_libdir="$withval/$acl_libdirstem2"
12814        fi
12815      fi
12816    fi
12817
12818fi
12819
12820      LIBICONV=
12821  LTLIBICONV=
12822  INCICONV=
12823  LIBICONV_PREFIX=
12824      HAVE_LIBICONV=
12825  rpathdirs=
12826  ltrpathdirs=
12827  names_already_handled=
12828  names_next_round='iconv '
12829  while test -n "$names_next_round"; do
12830    names_this_round="$names_next_round"
12831    names_next_round=
12832    for name in $names_this_round; do
12833      already_handled=
12834      for n in $names_already_handled; do
12835        if test "$n" = "$name"; then
12836          already_handled=yes
12837          break
12838        fi
12839      done
12840      if test -z "$already_handled"; then
12841        names_already_handled="$names_already_handled $name"
12842                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12843        eval value=\"\$HAVE_LIB$uppername\"
12844        if test -n "$value"; then
12845          if test "$value" = yes; then
12846            eval value=\"\$LIB$uppername\"
12847            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
12848            eval value=\"\$LTLIB$uppername\"
12849            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
12850          else
12851                                    :
12852          fi
12853        else
12854                              found_dir=
12855          found_la=
12856          found_so=
12857          found_a=
12858          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
12859          if test -n "$acl_shlibext"; then
12860            shrext=".$acl_shlibext"             # typically: shrext=.so
12861          else
12862            shrext=
12863          fi
12864          if test $use_additional = yes; then
12865            dir="$additional_libdir"
12866                                    if test -n "$acl_shlibext"; then
12867              if test -f "$dir/$libname$shrext"; then
12868                found_dir="$dir"
12869                found_so="$dir/$libname$shrext"
12870              else
12871                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12872                  ver=`(cd "$dir" && \
12873                        for f in "$libname$shrext".*; do echo "$f"; done \
12874                        | sed -e "s,^$libname$shrext\\\\.,," \
12875                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12876                        | sed 1q ) 2>/dev/null`
12877                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12878                    found_dir="$dir"
12879                    found_so="$dir/$libname$shrext.$ver"
12880                  fi
12881                else
12882                  eval library_names=\"$acl_library_names_spec\"
12883                  for f in $library_names; do
12884                    if test -f "$dir/$f"; then
12885                      found_dir="$dir"
12886                      found_so="$dir/$f"
12887                      break
12888                    fi
12889                  done
12890                fi
12891              fi
12892            fi
12893                        if test "X$found_dir" = "X"; then
12894              if test -f "$dir/$libname.$acl_libext"; then
12895                found_dir="$dir"
12896                found_a="$dir/$libname.$acl_libext"
12897              fi
12898            fi
12899            if test "X$found_dir" != "X"; then
12900              if test -f "$dir/$libname.la"; then
12901                found_la="$dir/$libname.la"
12902              fi
12903            fi
12904          fi
12905          if test "X$found_dir" = "X"; then
12906            for x in $LDFLAGS $LTLIBICONV; do
12907
12908  acl_save_prefix="$prefix"
12909  prefix="$acl_final_prefix"
12910  acl_save_exec_prefix="$exec_prefix"
12911  exec_prefix="$acl_final_exec_prefix"
12912  eval x=\"$x\"
12913  exec_prefix="$acl_save_exec_prefix"
12914  prefix="$acl_save_prefix"
12915
12916              case "$x" in
12917                -L*)
12918                  dir=`echo "X$x" | sed -e 's/^X-L//'`
12919                                    if test -n "$acl_shlibext"; then
12920                    if test -f "$dir/$libname$shrext"; then
12921                      found_dir="$dir"
12922                      found_so="$dir/$libname$shrext"
12923                    else
12924                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12925                        ver=`(cd "$dir" && \
12926                              for f in "$libname$shrext".*; do echo "$f"; done \
12927                              | sed -e "s,^$libname$shrext\\\\.,," \
12928                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12929                              | sed 1q ) 2>/dev/null`
12930                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12931                          found_dir="$dir"
12932                          found_so="$dir/$libname$shrext.$ver"
12933                        fi
12934                      else
12935                        eval library_names=\"$acl_library_names_spec\"
12936                        for f in $library_names; do
12937                          if test -f "$dir/$f"; then
12938                            found_dir="$dir"
12939                            found_so="$dir/$f"
12940                            break
12941                          fi
12942                        done
12943                      fi
12944                    fi
12945                  fi
12946                                    if test "X$found_dir" = "X"; then
12947                    if test -f "$dir/$libname.$acl_libext"; then
12948                      found_dir="$dir"
12949                      found_a="$dir/$libname.$acl_libext"
12950                    fi
12951                  fi
12952                  if test "X$found_dir" != "X"; then
12953                    if test -f "$dir/$libname.la"; then
12954                      found_la="$dir/$libname.la"
12955                    fi
12956                  fi
12957                  ;;
12958              esac
12959              if test "X$found_dir" != "X"; then
12960                break
12961              fi
12962            done
12963          fi
12964          if test "X$found_dir" != "X"; then
12965                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
12966            if test "X$found_so" != "X"; then
12967                                                        if test "$enable_rpath" = no \
12968                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
12969                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
12970                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12971              else
12972                                                                                haveit=
12973                for x in $ltrpathdirs; do
12974                  if test "X$x" = "X$found_dir"; then
12975                    haveit=yes
12976                    break
12977                  fi
12978                done
12979                if test -z "$haveit"; then
12980                  ltrpathdirs="$ltrpathdirs $found_dir"
12981                fi
12982                                if test "$acl_hardcode_direct" = yes; then
12983                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12984                else
12985                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
12986                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12987                                                            haveit=
12988                    for x in $rpathdirs; do
12989                      if test "X$x" = "X$found_dir"; then
12990                        haveit=yes
12991                        break
12992                      fi
12993                    done
12994                    if test -z "$haveit"; then
12995                      rpathdirs="$rpathdirs $found_dir"
12996                    fi
12997                  else
12998                                                                                haveit=
12999                    for x in $LDFLAGS $LIBICONV; do
13000
13001  acl_save_prefix="$prefix"
13002  prefix="$acl_final_prefix"
13003  acl_save_exec_prefix="$exec_prefix"
13004  exec_prefix="$acl_final_exec_prefix"
13005  eval x=\"$x\"
13006  exec_prefix="$acl_save_exec_prefix"
13007  prefix="$acl_save_prefix"
13008
13009                      if test "X$x" = "X-L$found_dir"; then
13010                        haveit=yes
13011                        break
13012                      fi
13013                    done
13014                    if test -z "$haveit"; then
13015                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13016                    fi
13017                    if test "$acl_hardcode_minus_L" != no; then
13018                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13019                    else
13020                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13021                    fi
13022                  fi
13023                fi
13024              fi
13025            else
13026              if test "X$found_a" != "X"; then
13027                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
13028              else
13029                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13030              fi
13031            fi
13032                        additional_includedir=
13033            case "$found_dir" in
13034              */$acl_libdirstem | */$acl_libdirstem/)
13035                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13036                if test "$name" = 'iconv'; then
13037                  LIBICONV_PREFIX="$basedir"
13038                fi
13039                additional_includedir="$basedir/include"
13040                ;;
13041              */$acl_libdirstem2 | */$acl_libdirstem2/)
13042                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
13043                if test "$name" = 'iconv'; then
13044                  LIBICONV_PREFIX="$basedir"
13045                fi
13046                additional_includedir="$basedir/include"
13047                ;;
13048            esac
13049            if test "X$additional_includedir" != "X"; then
13050                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
13051                haveit=
13052                if test "X$additional_includedir" = "X/usr/local/include"; then
13053                  if test -n "$GCC"; then
13054                    case $host_os in
13055                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13056                    esac
13057                  fi
13058                fi
13059                if test -z "$haveit"; then
13060                  for x in $CPPFLAGS $INCICONV; do
13061
13062  acl_save_prefix="$prefix"
13063  prefix="$acl_final_prefix"
13064  acl_save_exec_prefix="$exec_prefix"
13065  exec_prefix="$acl_final_exec_prefix"
13066  eval x=\"$x\"
13067  exec_prefix="$acl_save_exec_prefix"
13068  prefix="$acl_save_prefix"
13069
13070                    if test "X$x" = "X-I$additional_includedir"; then
13071                      haveit=yes
13072                      break
13073                    fi
13074                  done
13075                  if test -z "$haveit"; then
13076                    if test -d "$additional_includedir"; then
13077                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
13078                    fi
13079                  fi
13080                fi
13081              fi
13082            fi
13083                        if test -n "$found_la"; then
13084                                                        save_libdir="$libdir"
13085              case "$found_la" in
13086                */* | *\\*) . "$found_la" ;;
13087                *) . "./$found_la" ;;
13088              esac
13089              libdir="$save_libdir"
13090                            for dep in $dependency_libs; do
13091                case "$dep" in
13092                  -L*)
13093                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13094                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
13095                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
13096                      haveit=
13097                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
13098                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
13099                        if test -n "$GCC"; then
13100                          case $host_os in
13101                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13102                          esac
13103                        fi
13104                      fi
13105                      if test -z "$haveit"; then
13106                        haveit=
13107                        for x in $LDFLAGS $LIBICONV; do
13108
13109  acl_save_prefix="$prefix"
13110  prefix="$acl_final_prefix"
13111  acl_save_exec_prefix="$exec_prefix"
13112  exec_prefix="$acl_final_exec_prefix"
13113  eval x=\"$x\"
13114  exec_prefix="$acl_save_exec_prefix"
13115  prefix="$acl_save_prefix"
13116
13117                          if test "X$x" = "X-L$additional_libdir"; then
13118                            haveit=yes
13119                            break
13120                          fi
13121                        done
13122                        if test -z "$haveit"; then
13123                          if test -d "$additional_libdir"; then
13124                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
13125                          fi
13126                        fi
13127                        haveit=
13128                        for x in $LDFLAGS $LTLIBICONV; do
13129
13130  acl_save_prefix="$prefix"
13131  prefix="$acl_final_prefix"
13132  acl_save_exec_prefix="$exec_prefix"
13133  exec_prefix="$acl_final_exec_prefix"
13134  eval x=\"$x\"
13135  exec_prefix="$acl_save_exec_prefix"
13136  prefix="$acl_save_prefix"
13137
13138                          if test "X$x" = "X-L$additional_libdir"; then
13139                            haveit=yes
13140                            break
13141                          fi
13142                        done
13143                        if test -z "$haveit"; then
13144                          if test -d "$additional_libdir"; then
13145                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
13146                          fi
13147                        fi
13148                      fi
13149                    fi
13150                    ;;
13151                  -R*)
13152                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
13153                    if test "$enable_rpath" != no; then
13154                                                                  haveit=
13155                      for x in $rpathdirs; do
13156                        if test "X$x" = "X$dir"; then
13157                          haveit=yes
13158                          break
13159                        fi
13160                      done
13161                      if test -z "$haveit"; then
13162                        rpathdirs="$rpathdirs $dir"
13163                      fi
13164                                                                  haveit=
13165                      for x in $ltrpathdirs; do
13166                        if test "X$x" = "X$dir"; then
13167                          haveit=yes
13168                          break
13169                        fi
13170                      done
13171                      if test -z "$haveit"; then
13172                        ltrpathdirs="$ltrpathdirs $dir"
13173                      fi
13174                    fi
13175                    ;;
13176                  -l*)
13177                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13178                    ;;
13179                  *.la)
13180                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13181                    ;;
13182                  *)
13183                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
13184                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
13185                    ;;
13186                esac
13187              done
13188            fi
13189          else
13190                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13191            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
13192          fi
13193        fi
13194      fi
13195    done
13196  done
13197  if test "X$rpathdirs" != "X"; then
13198    if test -n "$acl_hardcode_libdir_separator"; then
13199                        alldirs=
13200      for found_dir in $rpathdirs; do
13201        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
13202      done
13203            acl_save_libdir="$libdir"
13204      libdir="$alldirs"
13205      eval flag=\"$acl_hardcode_libdir_flag_spec\"
13206      libdir="$acl_save_libdir"
13207      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13208    else
13209            for found_dir in $rpathdirs; do
13210        acl_save_libdir="$libdir"
13211        libdir="$found_dir"
13212        eval flag=\"$acl_hardcode_libdir_flag_spec\"
13213        libdir="$acl_save_libdir"
13214        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13215      done
13216    fi
13217  fi
13218  if test "X$ltrpathdirs" != "X"; then
13219            for found_dir in $ltrpathdirs; do
13220      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
13221    done
13222  fi
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
13255$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
13256if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
13257  $as_echo_n "(cached) " >&6
13258else
13259  gt_save_LIBS="$LIBS"
13260     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13261     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13262/* end confdefs.h.  */
13263#include <CoreFoundation/CFPreferences.h>
13264int
13265main ()
13266{
13267CFPreferencesCopyAppValue(NULL, NULL)
13268  ;
13269  return 0;
13270}
13271_ACEOF
13272if ac_fn_c_try_link "$LINENO"; then :
13273  gt_cv_func_CFPreferencesCopyAppValue=yes
13274else
13275  gt_cv_func_CFPreferencesCopyAppValue=no
13276fi
13277rm -f core conftest.err conftest.$ac_objext \
13278    conftest$ac_exeext conftest.$ac_ext
13279     LIBS="$gt_save_LIBS"
13280fi
13281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
13282$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
13283  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
13284
13285$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
13286
13287  fi
13288    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
13289$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
13290if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
13291  $as_echo_n "(cached) " >&6
13292else
13293  gt_save_LIBS="$LIBS"
13294     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13295     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13296/* end confdefs.h.  */
13297#include <CoreFoundation/CFLocale.h>
13298int
13299main ()
13300{
13301CFLocaleCopyCurrent();
13302  ;
13303  return 0;
13304}
13305_ACEOF
13306if ac_fn_c_try_link "$LINENO"; then :
13307  gt_cv_func_CFLocaleCopyCurrent=yes
13308else
13309  gt_cv_func_CFLocaleCopyCurrent=no
13310fi
13311rm -f core conftest.err conftest.$ac_objext \
13312    conftest$ac_exeext conftest.$ac_ext
13313     LIBS="$gt_save_LIBS"
13314fi
13315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
13316$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
13317  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
13318
13319$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
13320
13321  fi
13322  INTL_MACOSX_LIBS=
13323  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
13324    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
13325  fi
13326
13327
13328
13329
13330
13331
13332  LIBINTL=
13333  LTLIBINTL=
13334  POSUB=
13335
13336    case " $gt_needs " in
13337    *" need-formatstring-macros "*) gt_api_version=3 ;;
13338    *" need-ngettext "*) gt_api_version=2 ;;
13339    *) gt_api_version=1 ;;
13340  esac
13341  gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
13342  gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
13343
13344    if test "$USE_NLS" = "yes"; then
13345    gt_use_preinstalled_gnugettext=no
13346
13347
13348        if test $gt_api_version -ge 3; then
13349          gt_revision_test_code='
13350#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13351#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
13352#endif
13353typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
13354'
13355        else
13356          gt_revision_test_code=
13357        fi
13358        if test $gt_api_version -ge 2; then
13359          gt_expression_test_code=' + * ngettext ("", "", 0)'
13360        else
13361          gt_expression_test_code=
13362        fi
13363
13364        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
13365$as_echo_n "checking for GNU gettext in libc... " >&6; }
13366if eval \${$gt_func_gnugettext_libc+:} false; then :
13367  $as_echo_n "(cached) " >&6
13368else
13369  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13370/* end confdefs.h.  */
13371#include <libintl.h>
13372$gt_revision_test_code
13373extern int _nl_msg_cat_cntr;
13374extern int *_nl_domain_bindings;
13375int
13376main ()
13377{
13378bindtextdomain ("", "");
13379return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
13380  ;
13381  return 0;
13382}
13383_ACEOF
13384if ac_fn_c_try_link "$LINENO"; then :
13385  eval "$gt_func_gnugettext_libc=yes"
13386else
13387  eval "$gt_func_gnugettext_libc=no"
13388fi
13389rm -f core conftest.err conftest.$ac_objext \
13390    conftest$ac_exeext conftest.$ac_ext
13391fi
13392eval ac_res=\$$gt_func_gnugettext_libc
13393	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13394$as_echo "$ac_res" >&6; }
13395
13396        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
13397
13398
13399
13400
13401
13402          am_save_CPPFLAGS="$CPPFLAGS"
13403
13404  for element in $INCICONV; do
13405    haveit=
13406    for x in $CPPFLAGS; do
13407
13408  acl_save_prefix="$prefix"
13409  prefix="$acl_final_prefix"
13410  acl_save_exec_prefix="$exec_prefix"
13411  exec_prefix="$acl_final_exec_prefix"
13412  eval x=\"$x\"
13413  exec_prefix="$acl_save_exec_prefix"
13414  prefix="$acl_save_prefix"
13415
13416      if test "X$x" = "X$element"; then
13417        haveit=yes
13418        break
13419      fi
13420    done
13421    if test -z "$haveit"; then
13422      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13423    fi
13424  done
13425
13426
13427  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
13428$as_echo_n "checking for iconv... " >&6; }
13429if ${am_cv_func_iconv+:} false; then :
13430  $as_echo_n "(cached) " >&6
13431else
13432
13433    am_cv_func_iconv="no, consider installing GNU libiconv"
13434    am_cv_lib_iconv=no
13435    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13436/* end confdefs.h.  */
13437#include <stdlib.h>
13438#include <iconv.h>
13439int
13440main ()
13441{
13442iconv_t cd = iconv_open("","");
13443       iconv(cd,NULL,NULL,NULL,NULL);
13444       iconv_close(cd);
13445  ;
13446  return 0;
13447}
13448_ACEOF
13449if ac_fn_c_try_link "$LINENO"; then :
13450  am_cv_func_iconv=yes
13451fi
13452rm -f core conftest.err conftest.$ac_objext \
13453    conftest$ac_exeext conftest.$ac_ext
13454    if test "$am_cv_func_iconv" != yes; then
13455      am_save_LIBS="$LIBS"
13456      LIBS="$LIBS $LIBICONV"
13457      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13458/* end confdefs.h.  */
13459#include <stdlib.h>
13460#include <iconv.h>
13461int
13462main ()
13463{
13464iconv_t cd = iconv_open("","");
13465         iconv(cd,NULL,NULL,NULL,NULL);
13466         iconv_close(cd);
13467  ;
13468  return 0;
13469}
13470_ACEOF
13471if ac_fn_c_try_link "$LINENO"; then :
13472  am_cv_lib_iconv=yes
13473        am_cv_func_iconv=yes
13474fi
13475rm -f core conftest.err conftest.$ac_objext \
13476    conftest$ac_exeext conftest.$ac_ext
13477      LIBS="$am_save_LIBS"
13478    fi
13479
13480fi
13481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
13482$as_echo "$am_cv_func_iconv" >&6; }
13483  if test "$am_cv_func_iconv" = yes; then
13484    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
13485$as_echo_n "checking for working iconv... " >&6; }
13486if ${am_cv_func_iconv_works+:} false; then :
13487  $as_echo_n "(cached) " >&6
13488else
13489
13490            am_save_LIBS="$LIBS"
13491      if test $am_cv_lib_iconv = yes; then
13492        LIBS="$LIBS $LIBICONV"
13493      fi
13494      if test "$cross_compiling" = yes; then :
13495  case "$host_os" in
13496           aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
13497           *)            am_cv_func_iconv_works="guessing yes" ;;
13498         esac
13499else
13500  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13501/* end confdefs.h.  */
13502
13503#include <iconv.h>
13504#include <string.h>
13505int main ()
13506{
13507  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
13508     returns.  */
13509  {
13510    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
13511    if (cd_utf8_to_88591 != (iconv_t)(-1))
13512      {
13513        static const char input[] = "\342\202\254"; /* EURO SIGN */
13514        char buf[10];
13515        const char *inptr = input;
13516        size_t inbytesleft = strlen (input);
13517        char *outptr = buf;
13518        size_t outbytesleft = sizeof (buf);
13519        size_t res = iconv (cd_utf8_to_88591,
13520                            (char **) &inptr, &inbytesleft,
13521                            &outptr, &outbytesleft);
13522        if (res == 0)
13523          return 1;
13524      }
13525  }
13526  /* Test against Solaris 10 bug: Failures are not distinguishable from
13527     successful returns.  */
13528  {
13529    iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
13530    if (cd_ascii_to_88591 != (iconv_t)(-1))
13531      {
13532        static const char input[] = "\263";
13533        char buf[10];
13534        const char *inptr = input;
13535        size_t inbytesleft = strlen (input);
13536        char *outptr = buf;
13537        size_t outbytesleft = sizeof (buf);
13538        size_t res = iconv (cd_ascii_to_88591,
13539                            (char **) &inptr, &inbytesleft,
13540                            &outptr, &outbytesleft);
13541        if (res == 0)
13542          return 1;
13543      }
13544  }
13545#if 0 /* This bug could be worked around by the caller.  */
13546  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
13547  {
13548    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
13549    if (cd_88591_to_utf8 != (iconv_t)(-1))
13550      {
13551        static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
13552        char buf[50];
13553        const char *inptr = input;
13554        size_t inbytesleft = strlen (input);
13555        char *outptr = buf;
13556        size_t outbytesleft = sizeof (buf);
13557        size_t res = iconv (cd_88591_to_utf8,
13558                            (char **) &inptr, &inbytesleft,
13559                            &outptr, &outbytesleft);
13560        if ((int)res > 0)
13561          return 1;
13562      }
13563  }
13564#endif
13565  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
13566     provided.  */
13567  if (/* Try standardized names.  */
13568      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
13569      /* Try IRIX, OSF/1 names.  */
13570      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
13571      /* Try AIX names.  */
13572      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
13573      /* Try HP-UX names.  */
13574      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
13575    return 1;
13576  return 0;
13577}
13578_ACEOF
13579if ac_fn_c_try_run "$LINENO"; then :
13580  am_cv_func_iconv_works=yes
13581else
13582  am_cv_func_iconv_works=no
13583fi
13584rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13585  conftest.$ac_objext conftest.beam conftest.$ac_ext
13586fi
13587
13588      LIBS="$am_save_LIBS"
13589
13590fi
13591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
13592$as_echo "$am_cv_func_iconv_works" >&6; }
13593    case "$am_cv_func_iconv_works" in
13594      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
13595      *)   am_func_iconv=yes ;;
13596    esac
13597  else
13598    am_func_iconv=no am_cv_lib_iconv=no
13599  fi
13600  if test "$am_func_iconv" = yes; then
13601
13602$as_echo "#define HAVE_ICONV 1" >>confdefs.h
13603
13604  fi
13605  if test "$am_cv_lib_iconv" = yes; then
13606    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
13607$as_echo_n "checking how to link with libiconv... " >&6; }
13608    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
13609$as_echo "$LIBICONV" >&6; }
13610  else
13611            CPPFLAGS="$am_save_CPPFLAGS"
13612    LIBICONV=
13613    LTLIBICONV=
13614  fi
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626    use_additional=yes
13627
13628  acl_save_prefix="$prefix"
13629  prefix="$acl_final_prefix"
13630  acl_save_exec_prefix="$exec_prefix"
13631  exec_prefix="$acl_final_exec_prefix"
13632
13633    eval additional_includedir=\"$includedir\"
13634    eval additional_libdir=\"$libdir\"
13635
13636  exec_prefix="$acl_save_exec_prefix"
13637  prefix="$acl_save_prefix"
13638
13639
13640# Check whether --with-libintl-prefix was given.
13641if test "${with_libintl_prefix+set}" = set; then :
13642  withval=$with_libintl_prefix;
13643    if test "X$withval" = "Xno"; then
13644      use_additional=no
13645    else
13646      if test "X$withval" = "X"; then
13647
13648  acl_save_prefix="$prefix"
13649  prefix="$acl_final_prefix"
13650  acl_save_exec_prefix="$exec_prefix"
13651  exec_prefix="$acl_final_exec_prefix"
13652
13653          eval additional_includedir=\"$includedir\"
13654          eval additional_libdir=\"$libdir\"
13655
13656  exec_prefix="$acl_save_exec_prefix"
13657  prefix="$acl_save_prefix"
13658
13659      else
13660        additional_includedir="$withval/include"
13661        additional_libdir="$withval/$acl_libdirstem"
13662        if test "$acl_libdirstem2" != "$acl_libdirstem" \
13663           && ! test -d "$withval/$acl_libdirstem"; then
13664          additional_libdir="$withval/$acl_libdirstem2"
13665        fi
13666      fi
13667    fi
13668
13669fi
13670
13671      LIBINTL=
13672  LTLIBINTL=
13673  INCINTL=
13674  LIBINTL_PREFIX=
13675      HAVE_LIBINTL=
13676  rpathdirs=
13677  ltrpathdirs=
13678  names_already_handled=
13679  names_next_round='intl '
13680  while test -n "$names_next_round"; do
13681    names_this_round="$names_next_round"
13682    names_next_round=
13683    for name in $names_this_round; do
13684      already_handled=
13685      for n in $names_already_handled; do
13686        if test "$n" = "$name"; then
13687          already_handled=yes
13688          break
13689        fi
13690      done
13691      if test -z "$already_handled"; then
13692        names_already_handled="$names_already_handled $name"
13693                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13694        eval value=\"\$HAVE_LIB$uppername\"
13695        if test -n "$value"; then
13696          if test "$value" = yes; then
13697            eval value=\"\$LIB$uppername\"
13698            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
13699            eval value=\"\$LTLIB$uppername\"
13700            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
13701          else
13702                                    :
13703          fi
13704        else
13705                              found_dir=
13706          found_la=
13707          found_so=
13708          found_a=
13709          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
13710          if test -n "$acl_shlibext"; then
13711            shrext=".$acl_shlibext"             # typically: shrext=.so
13712          else
13713            shrext=
13714          fi
13715          if test $use_additional = yes; then
13716            dir="$additional_libdir"
13717                                    if test -n "$acl_shlibext"; then
13718              if test -f "$dir/$libname$shrext"; then
13719                found_dir="$dir"
13720                found_so="$dir/$libname$shrext"
13721              else
13722                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13723                  ver=`(cd "$dir" && \
13724                        for f in "$libname$shrext".*; do echo "$f"; done \
13725                        | sed -e "s,^$libname$shrext\\\\.,," \
13726                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13727                        | sed 1q ) 2>/dev/null`
13728                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13729                    found_dir="$dir"
13730                    found_so="$dir/$libname$shrext.$ver"
13731                  fi
13732                else
13733                  eval library_names=\"$acl_library_names_spec\"
13734                  for f in $library_names; do
13735                    if test -f "$dir/$f"; then
13736                      found_dir="$dir"
13737                      found_so="$dir/$f"
13738                      break
13739                    fi
13740                  done
13741                fi
13742              fi
13743            fi
13744                        if test "X$found_dir" = "X"; then
13745              if test -f "$dir/$libname.$acl_libext"; then
13746                found_dir="$dir"
13747                found_a="$dir/$libname.$acl_libext"
13748              fi
13749            fi
13750            if test "X$found_dir" != "X"; then
13751              if test -f "$dir/$libname.la"; then
13752                found_la="$dir/$libname.la"
13753              fi
13754            fi
13755          fi
13756          if test "X$found_dir" = "X"; then
13757            for x in $LDFLAGS $LTLIBINTL; do
13758
13759  acl_save_prefix="$prefix"
13760  prefix="$acl_final_prefix"
13761  acl_save_exec_prefix="$exec_prefix"
13762  exec_prefix="$acl_final_exec_prefix"
13763  eval x=\"$x\"
13764  exec_prefix="$acl_save_exec_prefix"
13765  prefix="$acl_save_prefix"
13766
13767              case "$x" in
13768                -L*)
13769                  dir=`echo "X$x" | sed -e 's/^X-L//'`
13770                                    if test -n "$acl_shlibext"; then
13771                    if test -f "$dir/$libname$shrext"; then
13772                      found_dir="$dir"
13773                      found_so="$dir/$libname$shrext"
13774                    else
13775                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13776                        ver=`(cd "$dir" && \
13777                              for f in "$libname$shrext".*; do echo "$f"; done \
13778                              | sed -e "s,^$libname$shrext\\\\.,," \
13779                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13780                              | sed 1q ) 2>/dev/null`
13781                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13782                          found_dir="$dir"
13783                          found_so="$dir/$libname$shrext.$ver"
13784                        fi
13785                      else
13786                        eval library_names=\"$acl_library_names_spec\"
13787                        for f in $library_names; do
13788                          if test -f "$dir/$f"; then
13789                            found_dir="$dir"
13790                            found_so="$dir/$f"
13791                            break
13792                          fi
13793                        done
13794                      fi
13795                    fi
13796                  fi
13797                                    if test "X$found_dir" = "X"; then
13798                    if test -f "$dir/$libname.$acl_libext"; then
13799                      found_dir="$dir"
13800                      found_a="$dir/$libname.$acl_libext"
13801                    fi
13802                  fi
13803                  if test "X$found_dir" != "X"; then
13804                    if test -f "$dir/$libname.la"; then
13805                      found_la="$dir/$libname.la"
13806                    fi
13807                  fi
13808                  ;;
13809              esac
13810              if test "X$found_dir" != "X"; then
13811                break
13812              fi
13813            done
13814          fi
13815          if test "X$found_dir" != "X"; then
13816                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
13817            if test "X$found_so" != "X"; then
13818                                                        if test "$enable_rpath" = no \
13819                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
13820                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
13821                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13822              else
13823                                                                                haveit=
13824                for x in $ltrpathdirs; do
13825                  if test "X$x" = "X$found_dir"; then
13826                    haveit=yes
13827                    break
13828                  fi
13829                done
13830                if test -z "$haveit"; then
13831                  ltrpathdirs="$ltrpathdirs $found_dir"
13832                fi
13833                                if test "$acl_hardcode_direct" = yes; then
13834                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13835                else
13836                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
13837                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13838                                                            haveit=
13839                    for x in $rpathdirs; do
13840                      if test "X$x" = "X$found_dir"; then
13841                        haveit=yes
13842                        break
13843                      fi
13844                    done
13845                    if test -z "$haveit"; then
13846                      rpathdirs="$rpathdirs $found_dir"
13847                    fi
13848                  else
13849                                                                                haveit=
13850                    for x in $LDFLAGS $LIBINTL; do
13851
13852  acl_save_prefix="$prefix"
13853  prefix="$acl_final_prefix"
13854  acl_save_exec_prefix="$exec_prefix"
13855  exec_prefix="$acl_final_exec_prefix"
13856  eval x=\"$x\"
13857  exec_prefix="$acl_save_exec_prefix"
13858  prefix="$acl_save_prefix"
13859
13860                      if test "X$x" = "X-L$found_dir"; then
13861                        haveit=yes
13862                        break
13863                      fi
13864                    done
13865                    if test -z "$haveit"; then
13866                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
13867                    fi
13868                    if test "$acl_hardcode_minus_L" != no; then
13869                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13870                    else
13871                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13872                    fi
13873                  fi
13874                fi
13875              fi
13876            else
13877              if test "X$found_a" != "X"; then
13878                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
13879              else
13880                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
13881              fi
13882            fi
13883                        additional_includedir=
13884            case "$found_dir" in
13885              */$acl_libdirstem | */$acl_libdirstem/)
13886                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13887                if test "$name" = 'intl'; then
13888                  LIBINTL_PREFIX="$basedir"
13889                fi
13890                additional_includedir="$basedir/include"
13891                ;;
13892              */$acl_libdirstem2 | */$acl_libdirstem2/)
13893                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
13894                if test "$name" = 'intl'; then
13895                  LIBINTL_PREFIX="$basedir"
13896                fi
13897                additional_includedir="$basedir/include"
13898                ;;
13899            esac
13900            if test "X$additional_includedir" != "X"; then
13901                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
13902                haveit=
13903                if test "X$additional_includedir" = "X/usr/local/include"; then
13904                  if test -n "$GCC"; then
13905                    case $host_os in
13906                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13907                    esac
13908                  fi
13909                fi
13910                if test -z "$haveit"; then
13911                  for x in $CPPFLAGS $INCINTL; do
13912
13913  acl_save_prefix="$prefix"
13914  prefix="$acl_final_prefix"
13915  acl_save_exec_prefix="$exec_prefix"
13916  exec_prefix="$acl_final_exec_prefix"
13917  eval x=\"$x\"
13918  exec_prefix="$acl_save_exec_prefix"
13919  prefix="$acl_save_prefix"
13920
13921                    if test "X$x" = "X-I$additional_includedir"; then
13922                      haveit=yes
13923                      break
13924                    fi
13925                  done
13926                  if test -z "$haveit"; then
13927                    if test -d "$additional_includedir"; then
13928                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
13929                    fi
13930                  fi
13931                fi
13932              fi
13933            fi
13934                        if test -n "$found_la"; then
13935                                                        save_libdir="$libdir"
13936              case "$found_la" in
13937                */* | *\\*) . "$found_la" ;;
13938                *) . "./$found_la" ;;
13939              esac
13940              libdir="$save_libdir"
13941                            for dep in $dependency_libs; do
13942                case "$dep" in
13943                  -L*)
13944                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13945                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
13946                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
13947                      haveit=
13948                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
13949                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
13950                        if test -n "$GCC"; then
13951                          case $host_os in
13952                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13953                          esac
13954                        fi
13955                      fi
13956                      if test -z "$haveit"; then
13957                        haveit=
13958                        for x in $LDFLAGS $LIBINTL; do
13959
13960  acl_save_prefix="$prefix"
13961  prefix="$acl_final_prefix"
13962  acl_save_exec_prefix="$exec_prefix"
13963  exec_prefix="$acl_final_exec_prefix"
13964  eval x=\"$x\"
13965  exec_prefix="$acl_save_exec_prefix"
13966  prefix="$acl_save_prefix"
13967
13968                          if test "X$x" = "X-L$additional_libdir"; then
13969                            haveit=yes
13970                            break
13971                          fi
13972                        done
13973                        if test -z "$haveit"; then
13974                          if test -d "$additional_libdir"; then
13975                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13976                          fi
13977                        fi
13978                        haveit=
13979                        for x in $LDFLAGS $LTLIBINTL; do
13980
13981  acl_save_prefix="$prefix"
13982  prefix="$acl_final_prefix"
13983  acl_save_exec_prefix="$exec_prefix"
13984  exec_prefix="$acl_final_exec_prefix"
13985  eval x=\"$x\"
13986  exec_prefix="$acl_save_exec_prefix"
13987  prefix="$acl_save_prefix"
13988
13989                          if test "X$x" = "X-L$additional_libdir"; then
13990                            haveit=yes
13991                            break
13992                          fi
13993                        done
13994                        if test -z "$haveit"; then
13995                          if test -d "$additional_libdir"; then
13996                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13997                          fi
13998                        fi
13999                      fi
14000                    fi
14001                    ;;
14002                  -R*)
14003                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
14004                    if test "$enable_rpath" != no; then
14005                                                                  haveit=
14006                      for x in $rpathdirs; do
14007                        if test "X$x" = "X$dir"; then
14008                          haveit=yes
14009                          break
14010                        fi
14011                      done
14012                      if test -z "$haveit"; then
14013                        rpathdirs="$rpathdirs $dir"
14014                      fi
14015                                                                  haveit=
14016                      for x in $ltrpathdirs; do
14017                        if test "X$x" = "X$dir"; then
14018                          haveit=yes
14019                          break
14020                        fi
14021                      done
14022                      if test -z "$haveit"; then
14023                        ltrpathdirs="$ltrpathdirs $dir"
14024                      fi
14025                    fi
14026                    ;;
14027                  -l*)
14028                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14029                    ;;
14030                  *.la)
14031                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14032                    ;;
14033                  *)
14034                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
14035                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14036                    ;;
14037                esac
14038              done
14039            fi
14040          else
14041                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14042            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14043          fi
14044        fi
14045      fi
14046    done
14047  done
14048  if test "X$rpathdirs" != "X"; then
14049    if test -n "$acl_hardcode_libdir_separator"; then
14050                        alldirs=
14051      for found_dir in $rpathdirs; do
14052        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
14053      done
14054            acl_save_libdir="$libdir"
14055      libdir="$alldirs"
14056      eval flag=\"$acl_hardcode_libdir_flag_spec\"
14057      libdir="$acl_save_libdir"
14058      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14059    else
14060            for found_dir in $rpathdirs; do
14061        acl_save_libdir="$libdir"
14062        libdir="$found_dir"
14063        eval flag=\"$acl_hardcode_libdir_flag_spec\"
14064        libdir="$acl_save_libdir"
14065        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14066      done
14067    fi
14068  fi
14069  if test "X$ltrpathdirs" != "X"; then
14070            for found_dir in $ltrpathdirs; do
14071      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14072    done
14073  fi
14074
14075
14076
14077
14078
14079
14080          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
14081$as_echo_n "checking for GNU gettext in libintl... " >&6; }
14082if eval \${$gt_func_gnugettext_libintl+:} false; then :
14083  $as_echo_n "(cached) " >&6
14084else
14085  gt_save_CPPFLAGS="$CPPFLAGS"
14086            CPPFLAGS="$CPPFLAGS $INCINTL"
14087            gt_save_LIBS="$LIBS"
14088            LIBS="$LIBS $LIBINTL"
14089                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14090/* end confdefs.h.  */
14091#include <libintl.h>
14092$gt_revision_test_code
14093extern int _nl_msg_cat_cntr;
14094extern
14095#ifdef __cplusplus
14096"C"
14097#endif
14098const char *_nl_expand_alias (const char *);
14099int
14100main ()
14101{
14102bindtextdomain ("", "");
14103return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14104  ;
14105  return 0;
14106}
14107_ACEOF
14108if ac_fn_c_try_link "$LINENO"; then :
14109  eval "$gt_func_gnugettext_libintl=yes"
14110else
14111  eval "$gt_func_gnugettext_libintl=no"
14112fi
14113rm -f core conftest.err conftest.$ac_objext \
14114    conftest$ac_exeext conftest.$ac_ext
14115                        if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
14116              LIBS="$LIBS $LIBICONV"
14117              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14118/* end confdefs.h.  */
14119#include <libintl.h>
14120$gt_revision_test_code
14121extern int _nl_msg_cat_cntr;
14122extern
14123#ifdef __cplusplus
14124"C"
14125#endif
14126const char *_nl_expand_alias (const char *);
14127int
14128main ()
14129{
14130bindtextdomain ("", "");
14131return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14132  ;
14133  return 0;
14134}
14135_ACEOF
14136if ac_fn_c_try_link "$LINENO"; then :
14137  LIBINTL="$LIBINTL $LIBICONV"
14138                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
14139                eval "$gt_func_gnugettext_libintl=yes"
14140
14141fi
14142rm -f core conftest.err conftest.$ac_objext \
14143    conftest$ac_exeext conftest.$ac_ext
14144            fi
14145            CPPFLAGS="$gt_save_CPPFLAGS"
14146            LIBS="$gt_save_LIBS"
14147fi
14148eval ac_res=\$$gt_func_gnugettext_libintl
14149	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14150$as_echo "$ac_res" >&6; }
14151        fi
14152
14153                                        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
14154           || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
14155                && test "$PACKAGE" != gettext-runtime \
14156                && test "$PACKAGE" != gettext-tools; }; then
14157          gt_use_preinstalled_gnugettext=yes
14158        else
14159                    LIBINTL=
14160          LTLIBINTL=
14161          INCINTL=
14162        fi
14163
14164
14165
14166    if test -n "$INTL_MACOSX_LIBS"; then
14167      if test "$gt_use_preinstalled_gnugettext" = "yes" \
14168         || test "$nls_cv_use_gnu_gettext" = "yes"; then
14169                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
14170        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
14171      fi
14172    fi
14173
14174    if test "$gt_use_preinstalled_gnugettext" = "yes" \
14175       || test "$nls_cv_use_gnu_gettext" = "yes"; then
14176
14177$as_echo "#define ENABLE_NLS 1" >>confdefs.h
14178
14179    else
14180      USE_NLS=no
14181    fi
14182  fi
14183
14184  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
14185$as_echo_n "checking whether to use NLS... " >&6; }
14186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14187$as_echo "$USE_NLS" >&6; }
14188  if test "$USE_NLS" = "yes"; then
14189    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
14190$as_echo_n "checking where the gettext function comes from... " >&6; }
14191    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14192      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14193        gt_source="external libintl"
14194      else
14195        gt_source="libc"
14196      fi
14197    else
14198      gt_source="included intl directory"
14199    fi
14200    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
14201$as_echo "$gt_source" >&6; }
14202  fi
14203
14204  if test "$USE_NLS" = "yes"; then
14205
14206    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14207      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14208        { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
14209$as_echo_n "checking how to link with libintl... " >&6; }
14210        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
14211$as_echo "$LIBINTL" >&6; }
14212
14213  for element in $INCINTL; do
14214    haveit=
14215    for x in $CPPFLAGS; do
14216
14217  acl_save_prefix="$prefix"
14218  prefix="$acl_final_prefix"
14219  acl_save_exec_prefix="$exec_prefix"
14220  exec_prefix="$acl_final_exec_prefix"
14221  eval x=\"$x\"
14222  exec_prefix="$acl_save_exec_prefix"
14223  prefix="$acl_save_prefix"
14224
14225      if test "X$x" = "X$element"; then
14226        haveit=yes
14227        break
14228      fi
14229    done
14230    if test -z "$haveit"; then
14231      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14232    fi
14233  done
14234
14235      fi
14236
14237
14238$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
14239
14240
14241$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
14242
14243    fi
14244
14245        POSUB=po
14246  fi
14247
14248
14249
14250    INTLLIBS="$LIBINTL"
14251
14252
14253
14254
14255
14256
14257
14258for ac_prog in 'bison -y' byacc
14259do
14260  # Extract the first word of "$ac_prog", so it can be a program name with args.
14261set dummy $ac_prog; ac_word=$2
14262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14263$as_echo_n "checking for $ac_word... " >&6; }
14264if ${ac_cv_prog_YACC+:} false; then :
14265  $as_echo_n "(cached) " >&6
14266else
14267  if test -n "$YACC"; then
14268  ac_cv_prog_YACC="$YACC" # Let the user override the test.
14269else
14270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14271for as_dir in $PATH
14272do
14273  IFS=$as_save_IFS
14274  test -z "$as_dir" && as_dir=.
14275    for ac_exec_ext in '' $ac_executable_extensions; do
14276  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14277    ac_cv_prog_YACC="$ac_prog"
14278    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14279    break 2
14280  fi
14281done
14282  done
14283IFS=$as_save_IFS
14284
14285fi
14286fi
14287YACC=$ac_cv_prog_YACC
14288if test -n "$YACC"; then
14289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
14290$as_echo "$YACC" >&6; }
14291else
14292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14293$as_echo "no" >&6; }
14294fi
14295
14296
14297  test -n "$YACC" && break
14298done
14299test -n "$YACC" || YACC="yacc"
14300
14301if test "$YACC" != 'bison -y'; then :
14302
14303	YACC="\${top_srcdir}/build-aux/missing bison -y"
14304	{ $as_echo "$as_me:${as_lineno-$LINENO}: no bison program found: only required for maintainers" >&5
14305$as_echo "$as_me: no bison program found: only required for maintainers" >&6;}
14306
14307fi
14308 if test "$YACC" = 'bison -y'; then
14309  HAVE_BISON_TRUE=
14310  HAVE_BISON_FALSE='#'
14311else
14312  HAVE_BISON_TRUE='#'
14313  HAVE_BISON_FALSE=
14314fi
14315
14316for ac_prog in flex lex
14317do
14318  # Extract the first word of "$ac_prog", so it can be a program name with args.
14319set dummy $ac_prog; ac_word=$2
14320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14321$as_echo_n "checking for $ac_word... " >&6; }
14322if ${ac_cv_prog_LEX+:} false; then :
14323  $as_echo_n "(cached) " >&6
14324else
14325  if test -n "$LEX"; then
14326  ac_cv_prog_LEX="$LEX" # Let the user override the test.
14327else
14328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14329for as_dir in $PATH
14330do
14331  IFS=$as_save_IFS
14332  test -z "$as_dir" && as_dir=.
14333    for ac_exec_ext in '' $ac_executable_extensions; do
14334  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14335    ac_cv_prog_LEX="$ac_prog"
14336    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14337    break 2
14338  fi
14339done
14340  done
14341IFS=$as_save_IFS
14342
14343fi
14344fi
14345LEX=$ac_cv_prog_LEX
14346if test -n "$LEX"; then
14347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
14348$as_echo "$LEX" >&6; }
14349else
14350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14351$as_echo "no" >&6; }
14352fi
14353
14354
14355  test -n "$LEX" && break
14356done
14357test -n "$LEX" || LEX=":"
14358
14359if test "x$LEX" != "x:"; then
14360  cat >conftest.l <<_ACEOF
14361%%
14362a { ECHO; }
14363b { REJECT; }
14364c { yymore (); }
14365d { yyless (1); }
14366e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
14367    yyless ((input () != 0)); }
14368f { unput (yytext[0]); }
14369. { BEGIN INITIAL; }
14370%%
14371#ifdef YYTEXT_POINTER
14372extern char *yytext;
14373#endif
14374int
14375main (void)
14376{
14377  return ! yylex () + ! yywrap ();
14378}
14379_ACEOF
14380{ { ac_try="$LEX conftest.l"
14381case "(($ac_try" in
14382  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14383  *) ac_try_echo=$ac_try;;
14384esac
14385eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14386$as_echo "$ac_try_echo"; } >&5
14387  (eval "$LEX conftest.l") 2>&5
14388  ac_status=$?
14389  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14390  test $ac_status = 0; }
14391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
14392$as_echo_n "checking lex output file root... " >&6; }
14393if ${ac_cv_prog_lex_root+:} false; then :
14394  $as_echo_n "(cached) " >&6
14395else
14396
14397if test -f lex.yy.c; then
14398  ac_cv_prog_lex_root=lex.yy
14399elif test -f lexyy.c; then
14400  ac_cv_prog_lex_root=lexyy
14401else
14402  as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
14403fi
14404fi
14405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
14406$as_echo "$ac_cv_prog_lex_root" >&6; }
14407LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
14408
14409if test -z "${LEXLIB+set}"; then
14410  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
14411$as_echo_n "checking lex library... " >&6; }
14412if ${ac_cv_lib_lex+:} false; then :
14413  $as_echo_n "(cached) " >&6
14414else
14415
14416    ac_save_LIBS=$LIBS
14417    ac_cv_lib_lex='none needed'
14418    for ac_lib in '' -lfl -ll; do
14419      LIBS="$ac_lib $ac_save_LIBS"
14420      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14421/* end confdefs.h.  */
14422`cat $LEX_OUTPUT_ROOT.c`
14423_ACEOF
14424if ac_fn_c_try_link "$LINENO"; then :
14425  ac_cv_lib_lex=$ac_lib
14426fi
14427rm -f core conftest.err conftest.$ac_objext \
14428    conftest$ac_exeext conftest.$ac_ext
14429      test "$ac_cv_lib_lex" != 'none needed' && break
14430    done
14431    LIBS=$ac_save_LIBS
14432
14433fi
14434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
14435$as_echo "$ac_cv_lib_lex" >&6; }
14436  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
14437fi
14438
14439
14440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
14441$as_echo_n "checking whether yytext is a pointer... " >&6; }
14442if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
14443  $as_echo_n "(cached) " >&6
14444else
14445  # POSIX says lex can declare yytext either as a pointer or an array; the
14446# default is implementation-dependent.  Figure out which it is, since
14447# not all implementations provide the %pointer and %array declarations.
14448ac_cv_prog_lex_yytext_pointer=no
14449ac_save_LIBS=$LIBS
14450LIBS="$LEXLIB $ac_save_LIBS"
14451cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14452/* end confdefs.h.  */
14453
14454  #define YYTEXT_POINTER 1
14455`cat $LEX_OUTPUT_ROOT.c`
14456_ACEOF
14457if ac_fn_c_try_link "$LINENO"; then :
14458  ac_cv_prog_lex_yytext_pointer=yes
14459fi
14460rm -f core conftest.err conftest.$ac_objext \
14461    conftest$ac_exeext conftest.$ac_ext
14462LIBS=$ac_save_LIBS
14463
14464fi
14465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
14466$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
14467if test $ac_cv_prog_lex_yytext_pointer = yes; then
14468
14469$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
14470
14471fi
14472rm -f conftest.l $LEX_OUTPUT_ROOT.c
14473
14474fi
14475if test "$LEX" = :; then
14476  LEX=${am_missing_run}flex
14477fi
14478ac_ext=c
14479ac_cpp='$CPP $CPPFLAGS'
14480ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14481ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14482ac_compiler_gnu=$ac_cv_c_compiler_gnu
14483if test -n "$ac_tool_prefix"; then
14484  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
14485set dummy ${ac_tool_prefix}gcc; ac_word=$2
14486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14487$as_echo_n "checking for $ac_word... " >&6; }
14488if ${ac_cv_prog_CC+:} false; then :
14489  $as_echo_n "(cached) " >&6
14490else
14491  if test -n "$CC"; then
14492  ac_cv_prog_CC="$CC" # Let the user override the test.
14493else
14494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14495for as_dir in $PATH
14496do
14497  IFS=$as_save_IFS
14498  test -z "$as_dir" && as_dir=.
14499    for ac_exec_ext in '' $ac_executable_extensions; do
14500  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14501    ac_cv_prog_CC="${ac_tool_prefix}gcc"
14502    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14503    break 2
14504  fi
14505done
14506  done
14507IFS=$as_save_IFS
14508
14509fi
14510fi
14511CC=$ac_cv_prog_CC
14512if test -n "$CC"; then
14513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14514$as_echo "$CC" >&6; }
14515else
14516  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14517$as_echo "no" >&6; }
14518fi
14519
14520
14521fi
14522if test -z "$ac_cv_prog_CC"; then
14523  ac_ct_CC=$CC
14524  # Extract the first word of "gcc", so it can be a program name with args.
14525set dummy gcc; ac_word=$2
14526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14527$as_echo_n "checking for $ac_word... " >&6; }
14528if ${ac_cv_prog_ac_ct_CC+:} false; then :
14529  $as_echo_n "(cached) " >&6
14530else
14531  if test -n "$ac_ct_CC"; then
14532  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14533else
14534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14535for as_dir in $PATH
14536do
14537  IFS=$as_save_IFS
14538  test -z "$as_dir" && as_dir=.
14539    for ac_exec_ext in '' $ac_executable_extensions; do
14540  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14541    ac_cv_prog_ac_ct_CC="gcc"
14542    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14543    break 2
14544  fi
14545done
14546  done
14547IFS=$as_save_IFS
14548
14549fi
14550fi
14551ac_ct_CC=$ac_cv_prog_ac_ct_CC
14552if test -n "$ac_ct_CC"; then
14553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
14554$as_echo "$ac_ct_CC" >&6; }
14555else
14556  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14557$as_echo "no" >&6; }
14558fi
14559
14560  if test "x$ac_ct_CC" = x; then
14561    CC=""
14562  else
14563    case $cross_compiling:$ac_tool_warned in
14564yes:)
14565{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14566$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14567ac_tool_warned=yes ;;
14568esac
14569    CC=$ac_ct_CC
14570  fi
14571else
14572  CC="$ac_cv_prog_CC"
14573fi
14574
14575if test -z "$CC"; then
14576          if test -n "$ac_tool_prefix"; then
14577    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
14578set dummy ${ac_tool_prefix}cc; ac_word=$2
14579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14580$as_echo_n "checking for $ac_word... " >&6; }
14581if ${ac_cv_prog_CC+:} false; then :
14582  $as_echo_n "(cached) " >&6
14583else
14584  if test -n "$CC"; then
14585  ac_cv_prog_CC="$CC" # Let the user override the test.
14586else
14587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14588for as_dir in $PATH
14589do
14590  IFS=$as_save_IFS
14591  test -z "$as_dir" && as_dir=.
14592    for ac_exec_ext in '' $ac_executable_extensions; do
14593  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14594    ac_cv_prog_CC="${ac_tool_prefix}cc"
14595    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14596    break 2
14597  fi
14598done
14599  done
14600IFS=$as_save_IFS
14601
14602fi
14603fi
14604CC=$ac_cv_prog_CC
14605if test -n "$CC"; then
14606  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14607$as_echo "$CC" >&6; }
14608else
14609  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14610$as_echo "no" >&6; }
14611fi
14612
14613
14614  fi
14615fi
14616if test -z "$CC"; then
14617  # Extract the first word of "cc", so it can be a program name with args.
14618set dummy cc; ac_word=$2
14619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14620$as_echo_n "checking for $ac_word... " >&6; }
14621if ${ac_cv_prog_CC+:} false; then :
14622  $as_echo_n "(cached) " >&6
14623else
14624  if test -n "$CC"; then
14625  ac_cv_prog_CC="$CC" # Let the user override the test.
14626else
14627  ac_prog_rejected=no
14628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14629for as_dir in $PATH
14630do
14631  IFS=$as_save_IFS
14632  test -z "$as_dir" && as_dir=.
14633    for ac_exec_ext in '' $ac_executable_extensions; do
14634  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14635    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
14636       ac_prog_rejected=yes
14637       continue
14638     fi
14639    ac_cv_prog_CC="cc"
14640    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14641    break 2
14642  fi
14643done
14644  done
14645IFS=$as_save_IFS
14646
14647if test $ac_prog_rejected = yes; then
14648  # We found a bogon in the path, so make sure we never use it.
14649  set dummy $ac_cv_prog_CC
14650  shift
14651  if test $# != 0; then
14652    # We chose a different compiler from the bogus one.
14653    # However, it has the same basename, so the bogon will be chosen
14654    # first if we set CC to just the basename; use the full file name.
14655    shift
14656    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
14657  fi
14658fi
14659fi
14660fi
14661CC=$ac_cv_prog_CC
14662if test -n "$CC"; then
14663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14664$as_echo "$CC" >&6; }
14665else
14666  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14667$as_echo "no" >&6; }
14668fi
14669
14670
14671fi
14672if test -z "$CC"; then
14673  if test -n "$ac_tool_prefix"; then
14674  for ac_prog in cl.exe
14675  do
14676    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14677set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14679$as_echo_n "checking for $ac_word... " >&6; }
14680if ${ac_cv_prog_CC+:} false; then :
14681  $as_echo_n "(cached) " >&6
14682else
14683  if test -n "$CC"; then
14684  ac_cv_prog_CC="$CC" # Let the user override the test.
14685else
14686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14687for as_dir in $PATH
14688do
14689  IFS=$as_save_IFS
14690  test -z "$as_dir" && as_dir=.
14691    for ac_exec_ext in '' $ac_executable_extensions; do
14692  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14693    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
14694    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14695    break 2
14696  fi
14697done
14698  done
14699IFS=$as_save_IFS
14700
14701fi
14702fi
14703CC=$ac_cv_prog_CC
14704if test -n "$CC"; then
14705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14706$as_echo "$CC" >&6; }
14707else
14708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14709$as_echo "no" >&6; }
14710fi
14711
14712
14713    test -n "$CC" && break
14714  done
14715fi
14716if test -z "$CC"; then
14717  ac_ct_CC=$CC
14718  for ac_prog in cl.exe
14719do
14720  # Extract the first word of "$ac_prog", so it can be a program name with args.
14721set dummy $ac_prog; ac_word=$2
14722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14723$as_echo_n "checking for $ac_word... " >&6; }
14724if ${ac_cv_prog_ac_ct_CC+:} false; then :
14725  $as_echo_n "(cached) " >&6
14726else
14727  if test -n "$ac_ct_CC"; then
14728  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14729else
14730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14731for as_dir in $PATH
14732do
14733  IFS=$as_save_IFS
14734  test -z "$as_dir" && as_dir=.
14735    for ac_exec_ext in '' $ac_executable_extensions; do
14736  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14737    ac_cv_prog_ac_ct_CC="$ac_prog"
14738    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14739    break 2
14740  fi
14741done
14742  done
14743IFS=$as_save_IFS
14744
14745fi
14746fi
14747ac_ct_CC=$ac_cv_prog_ac_ct_CC
14748if test -n "$ac_ct_CC"; then
14749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
14750$as_echo "$ac_ct_CC" >&6; }
14751else
14752  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14753$as_echo "no" >&6; }
14754fi
14755
14756
14757  test -n "$ac_ct_CC" && break
14758done
14759
14760  if test "x$ac_ct_CC" = x; then
14761    CC=""
14762  else
14763    case $cross_compiling:$ac_tool_warned in
14764yes:)
14765{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14766$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14767ac_tool_warned=yes ;;
14768esac
14769    CC=$ac_ct_CC
14770  fi
14771fi
14772
14773fi
14774
14775
14776test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14777$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14778as_fn_error $? "no acceptable C compiler found in \$PATH
14779See \`config.log' for more details" "$LINENO" 5; }
14780
14781# Provide some information about the compiler.
14782$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
14783set X $ac_compile
14784ac_compiler=$2
14785for ac_option in --version -v -V -qversion; do
14786  { { ac_try="$ac_compiler $ac_option >&5"
14787case "(($ac_try" in
14788  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14789  *) ac_try_echo=$ac_try;;
14790esac
14791eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14792$as_echo "$ac_try_echo"; } >&5
14793  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14794  ac_status=$?
14795  if test -s conftest.err; then
14796    sed '10a\
14797... rest of stderr output deleted ...
14798         10q' conftest.err >conftest.er1
14799    cat conftest.er1 >&5
14800  fi
14801  rm -f conftest.er1 conftest.err
14802  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14803  test $ac_status = 0; }
14804done
14805
14806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
14807$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
14808if ${ac_cv_c_compiler_gnu+:} false; then :
14809  $as_echo_n "(cached) " >&6
14810else
14811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14812/* end confdefs.h.  */
14813
14814int
14815main ()
14816{
14817#ifndef __GNUC__
14818       choke me
14819#endif
14820
14821  ;
14822  return 0;
14823}
14824_ACEOF
14825if ac_fn_c_try_compile "$LINENO"; then :
14826  ac_compiler_gnu=yes
14827else
14828  ac_compiler_gnu=no
14829fi
14830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14831ac_cv_c_compiler_gnu=$ac_compiler_gnu
14832
14833fi
14834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
14835$as_echo "$ac_cv_c_compiler_gnu" >&6; }
14836if test $ac_compiler_gnu = yes; then
14837  GCC=yes
14838else
14839  GCC=
14840fi
14841ac_test_CFLAGS=${CFLAGS+set}
14842ac_save_CFLAGS=$CFLAGS
14843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
14844$as_echo_n "checking whether $CC accepts -g... " >&6; }
14845if ${ac_cv_prog_cc_g+:} false; then :
14846  $as_echo_n "(cached) " >&6
14847else
14848  ac_save_c_werror_flag=$ac_c_werror_flag
14849   ac_c_werror_flag=yes
14850   ac_cv_prog_cc_g=no
14851   CFLAGS="-g"
14852   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14853/* end confdefs.h.  */
14854
14855int
14856main ()
14857{
14858
14859  ;
14860  return 0;
14861}
14862_ACEOF
14863if ac_fn_c_try_compile "$LINENO"; then :
14864  ac_cv_prog_cc_g=yes
14865else
14866  CFLAGS=""
14867      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14868/* end confdefs.h.  */
14869
14870int
14871main ()
14872{
14873
14874  ;
14875  return 0;
14876}
14877_ACEOF
14878if ac_fn_c_try_compile "$LINENO"; then :
14879
14880else
14881  ac_c_werror_flag=$ac_save_c_werror_flag
14882	 CFLAGS="-g"
14883	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14884/* end confdefs.h.  */
14885
14886int
14887main ()
14888{
14889
14890  ;
14891  return 0;
14892}
14893_ACEOF
14894if ac_fn_c_try_compile "$LINENO"; then :
14895  ac_cv_prog_cc_g=yes
14896fi
14897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14898fi
14899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14900fi
14901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14902   ac_c_werror_flag=$ac_save_c_werror_flag
14903fi
14904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
14905$as_echo "$ac_cv_prog_cc_g" >&6; }
14906if test "$ac_test_CFLAGS" = set; then
14907  CFLAGS=$ac_save_CFLAGS
14908elif test $ac_cv_prog_cc_g = yes; then
14909  if test "$GCC" = yes; then
14910    CFLAGS="-g -O2"
14911  else
14912    CFLAGS="-g"
14913  fi
14914else
14915  if test "$GCC" = yes; then
14916    CFLAGS="-O2"
14917  else
14918    CFLAGS=
14919  fi
14920fi
14921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
14922$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
14923if ${ac_cv_prog_cc_c89+:} false; then :
14924  $as_echo_n "(cached) " >&6
14925else
14926  ac_cv_prog_cc_c89=no
14927ac_save_CC=$CC
14928cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14929/* end confdefs.h.  */
14930#include <stdarg.h>
14931#include <stdio.h>
14932struct stat;
14933/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
14934struct buf { int x; };
14935FILE * (*rcsopen) (struct buf *, struct stat *, int);
14936static char *e (p, i)
14937     char **p;
14938     int i;
14939{
14940  return p[i];
14941}
14942static char *f (char * (*g) (char **, int), char **p, ...)
14943{
14944  char *s;
14945  va_list v;
14946  va_start (v,p);
14947  s = g (p, va_arg (v,int));
14948  va_end (v);
14949  return s;
14950}
14951
14952/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
14953   function prototypes and stuff, but not '\xHH' hex character constants.
14954   These don't provoke an error unfortunately, instead are silently treated
14955   as 'x'.  The following induces an error, until -std is added to get
14956   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
14957   array size at least.  It's necessary to write '\x00'==0 to get something
14958   that's true only with -std.  */
14959int osf4_cc_array ['\x00' == 0 ? 1 : -1];
14960
14961/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
14962   inside strings and character constants.  */
14963#define FOO(x) 'x'
14964int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
14965
14966int test (int i, double x);
14967struct s1 {int (*f) (int a);};
14968struct s2 {int (*f) (double a);};
14969int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
14970int argc;
14971char **argv;
14972int
14973main ()
14974{
14975return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
14976  ;
14977  return 0;
14978}
14979_ACEOF
14980for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
14981	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14982do
14983  CC="$ac_save_CC $ac_arg"
14984  if ac_fn_c_try_compile "$LINENO"; then :
14985  ac_cv_prog_cc_c89=$ac_arg
14986fi
14987rm -f core conftest.err conftest.$ac_objext
14988  test "x$ac_cv_prog_cc_c89" != "xno" && break
14989done
14990rm -f conftest.$ac_ext
14991CC=$ac_save_CC
14992
14993fi
14994# AC_CACHE_VAL
14995case "x$ac_cv_prog_cc_c89" in
14996  x)
14997    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14998$as_echo "none needed" >&6; } ;;
14999  xno)
15000    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15001$as_echo "unsupported" >&6; } ;;
15002  *)
15003    CC="$CC $ac_cv_prog_cc_c89"
15004    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
15005$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
15006esac
15007if test "x$ac_cv_prog_cc_c89" != xno; then :
15008
15009fi
15010
15011ac_ext=c
15012ac_cpp='$CPP $CPPFLAGS'
15013ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15014ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15015ac_compiler_gnu=$ac_cv_c_compiler_gnu
15016
15017ac_ext=c
15018ac_cpp='$CPP $CPPFLAGS'
15019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15021ac_compiler_gnu=$ac_cv_c_compiler_gnu
15022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
15023$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
15024if ${am_cv_prog_cc_c_o+:} false; then :
15025  $as_echo_n "(cached) " >&6
15026else
15027  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15028/* end confdefs.h.  */
15029
15030int
15031main ()
15032{
15033
15034  ;
15035  return 0;
15036}
15037_ACEOF
15038  # Make sure it works both with $CC and with simple cc.
15039  # Following AC_PROG_CC_C_O, we do the test twice because some
15040  # compilers refuse to overwrite an existing .o file with -o,
15041  # though they will create one.
15042  am_cv_prog_cc_c_o=yes
15043  for am_i in 1 2; do
15044    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
15045   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
15046   ac_status=$?
15047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15048   (exit $ac_status); } \
15049         && test -f conftest2.$ac_objext; then
15050      : OK
15051    else
15052      am_cv_prog_cc_c_o=no
15053      break
15054    fi
15055  done
15056  rm -f core conftest*
15057  unset am_i
15058fi
15059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
15060$as_echo "$am_cv_prog_cc_c_o" >&6; }
15061if test "$am_cv_prog_cc_c_o" != yes; then
15062   # Losing compiler, so override with the script.
15063   # FIXME: It is wrong to rewrite CC.
15064   # But if we don't then we get into trouble of one sort or another.
15065   # A longer-term fix would be to have automake use am__CC in this case,
15066   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
15067   CC="$am_aux_dir/compile $CC"
15068fi
15069ac_ext=c
15070ac_cpp='$CPP $CPPFLAGS'
15071ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15072ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15073ac_compiler_gnu=$ac_cv_c_compiler_gnu
15074
15075
15076
15077
15078
15079save_cross_compiling=$cross_compiling
15080save_ac_tool_prefix=$ac_tool_prefix
15081cross_compiling=no
15082ac_tool_prefix=
15083
15084ac_ext=c
15085ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
15086ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
15087ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
15088ac_compiler_gnu=$ac_cv_c_compiler_gnu
15089if test -n "$ac_tool_prefix"; then
15090  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
15091set dummy ${ac_tool_prefix}gcc; ac_word=$2
15092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15093$as_echo_n "checking for $ac_word... " >&6; }
15094if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
15095  $as_echo_n "(cached) " >&6
15096else
15097  if test -n "$CC_FOR_BUILD"; then
15098  ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
15099else
15100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15101for as_dir in $PATH
15102do
15103  IFS=$as_save_IFS
15104  test -z "$as_dir" && as_dir=.
15105    for ac_exec_ext in '' $ac_executable_extensions; do
15106  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15107    ac_cv_prog_CC_FOR_BUILD="${ac_tool_prefix}gcc"
15108    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15109    break 2
15110  fi
15111done
15112  done
15113IFS=$as_save_IFS
15114
15115fi
15116fi
15117CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
15118if test -n "$CC_FOR_BUILD"; then
15119  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
15120$as_echo "$CC_FOR_BUILD" >&6; }
15121else
15122  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15123$as_echo "no" >&6; }
15124fi
15125
15126
15127fi
15128if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
15129  ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
15130  # Extract the first word of "gcc", so it can be a program name with args.
15131set dummy gcc; ac_word=$2
15132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15133$as_echo_n "checking for $ac_word... " >&6; }
15134if ${ac_cv_prog_ac_ct_CC_FOR_BUILD+:} false; then :
15135  $as_echo_n "(cached) " >&6
15136else
15137  if test -n "$ac_ct_CC_FOR_BUILD"; then
15138  ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
15139else
15140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15141for as_dir in $PATH
15142do
15143  IFS=$as_save_IFS
15144  test -z "$as_dir" && as_dir=.
15145    for ac_exec_ext in '' $ac_executable_extensions; do
15146  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15147    ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc"
15148    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15149    break 2
15150  fi
15151done
15152  done
15153IFS=$as_save_IFS
15154
15155fi
15156fi
15157ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
15158if test -n "$ac_ct_CC_FOR_BUILD"; then
15159  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
15160$as_echo "$ac_ct_CC_FOR_BUILD" >&6; }
15161else
15162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15163$as_echo "no" >&6; }
15164fi
15165
15166  if test "x$ac_ct_CC_FOR_BUILD" = x; then
15167    CC_FOR_BUILD=""
15168  else
15169    case $cross_compiling:$ac_tool_warned in
15170yes:)
15171{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
15172$as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
15173ac_tool_warned=yes ;;
15174esac
15175    CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
15176  fi
15177else
15178  CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
15179fi
15180
15181if test -z "$CC_FOR_BUILD"; then
15182          if test -n "$ac_tool_prefix"; then
15183    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
15184set dummy ${ac_tool_prefix}cc; ac_word=$2
15185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15186$as_echo_n "checking for $ac_word... " >&6; }
15187if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
15188  $as_echo_n "(cached) " >&6
15189else
15190  if test -n "$CC_FOR_BUILD"; then
15191  ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
15192else
15193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15194for as_dir in $PATH
15195do
15196  IFS=$as_save_IFS
15197  test -z "$as_dir" && as_dir=.
15198    for ac_exec_ext in '' $ac_executable_extensions; do
15199  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15200    ac_cv_prog_CC_FOR_BUILD="${ac_tool_prefix}cc"
15201    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15202    break 2
15203  fi
15204done
15205  done
15206IFS=$as_save_IFS
15207
15208fi
15209fi
15210CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
15211if test -n "$CC_FOR_BUILD"; then
15212  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
15213$as_echo "$CC_FOR_BUILD" >&6; }
15214else
15215  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15216$as_echo "no" >&6; }
15217fi
15218
15219
15220  fi
15221fi
15222if test -z "$CC_FOR_BUILD"; then
15223  # Extract the first word of "cc", so it can be a program name with args.
15224set dummy cc; ac_word=$2
15225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15226$as_echo_n "checking for $ac_word... " >&6; }
15227if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
15228  $as_echo_n "(cached) " >&6
15229else
15230  if test -n "$CC_FOR_BUILD"; then
15231  ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
15232else
15233  ac_prog_rejected=no
15234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15235for as_dir in $PATH
15236do
15237  IFS=$as_save_IFS
15238  test -z "$as_dir" && as_dir=.
15239    for ac_exec_ext in '' $ac_executable_extensions; do
15240  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15241    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
15242       ac_prog_rejected=yes
15243       continue
15244     fi
15245    ac_cv_prog_CC_FOR_BUILD="cc"
15246    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15247    break 2
15248  fi
15249done
15250  done
15251IFS=$as_save_IFS
15252
15253if test $ac_prog_rejected = yes; then
15254  # We found a bogon in the path, so make sure we never use it.
15255  set dummy $ac_cv_prog_CC_FOR_BUILD
15256  shift
15257  if test $# != 0; then
15258    # We chose a different compiler from the bogus one.
15259    # However, it has the same basename, so the bogon will be chosen
15260    # first if we set CC_FOR_BUILD to just the basename; use the full file name.
15261    shift
15262    ac_cv_prog_CC_FOR_BUILD="$as_dir/$ac_word${1+' '}$@"
15263  fi
15264fi
15265fi
15266fi
15267CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
15268if test -n "$CC_FOR_BUILD"; then
15269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
15270$as_echo "$CC_FOR_BUILD" >&6; }
15271else
15272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15273$as_echo "no" >&6; }
15274fi
15275
15276
15277fi
15278if test -z "$CC_FOR_BUILD"; then
15279  if test -n "$ac_tool_prefix"; then
15280  for ac_prog in cl.exe
15281  do
15282    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15283set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15285$as_echo_n "checking for $ac_word... " >&6; }
15286if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
15287  $as_echo_n "(cached) " >&6
15288else
15289  if test -n "$CC_FOR_BUILD"; then
15290  ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
15291else
15292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15293for as_dir in $PATH
15294do
15295  IFS=$as_save_IFS
15296  test -z "$as_dir" && as_dir=.
15297    for ac_exec_ext in '' $ac_executable_extensions; do
15298  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15299    ac_cv_prog_CC_FOR_BUILD="$ac_tool_prefix$ac_prog"
15300    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15301    break 2
15302  fi
15303done
15304  done
15305IFS=$as_save_IFS
15306
15307fi
15308fi
15309CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
15310if test -n "$CC_FOR_BUILD"; then
15311  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
15312$as_echo "$CC_FOR_BUILD" >&6; }
15313else
15314  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15315$as_echo "no" >&6; }
15316fi
15317
15318
15319    test -n "$CC_FOR_BUILD" && break
15320  done
15321fi
15322if test -z "$CC_FOR_BUILD"; then
15323  ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
15324  for ac_prog in cl.exe
15325do
15326  # Extract the first word of "$ac_prog", so it can be a program name with args.
15327set dummy $ac_prog; ac_word=$2
15328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15329$as_echo_n "checking for $ac_word... " >&6; }
15330if ${ac_cv_prog_ac_ct_CC_FOR_BUILD+:} false; then :
15331  $as_echo_n "(cached) " >&6
15332else
15333  if test -n "$ac_ct_CC_FOR_BUILD"; then
15334  ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
15335else
15336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15337for as_dir in $PATH
15338do
15339  IFS=$as_save_IFS
15340  test -z "$as_dir" && as_dir=.
15341    for ac_exec_ext in '' $ac_executable_extensions; do
15342  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15343    ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog"
15344    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15345    break 2
15346  fi
15347done
15348  done
15349IFS=$as_save_IFS
15350
15351fi
15352fi
15353ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
15354if test -n "$ac_ct_CC_FOR_BUILD"; then
15355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
15356$as_echo "$ac_ct_CC_FOR_BUILD" >&6; }
15357else
15358  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15359$as_echo "no" >&6; }
15360fi
15361
15362
15363  test -n "$ac_ct_CC_FOR_BUILD" && break
15364done
15365
15366  if test "x$ac_ct_CC_FOR_BUILD" = x; then
15367    CC_FOR_BUILD=""
15368  else
15369    case $cross_compiling:$ac_tool_warned in
15370yes:)
15371{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
15372$as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
15373ac_tool_warned=yes ;;
15374esac
15375    CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
15376  fi
15377fi
15378
15379fi
15380
15381
15382test -z "$CC_FOR_BUILD" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15383$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15384as_fn_error $? "no acceptable C compiler found in \$PATH
15385See \`config.log' for more details" "$LINENO" 5; }
15386
15387# Provide some information about the compiler.
15388$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
15389set X $ac_build_compile
15390ac_compiler=$2
15391for ac_option in --version -v -V -qversion; do
15392  { { ac_try="$ac_compiler $ac_option >&5"
15393case "(($ac_try" in
15394  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15395  *) ac_try_echo=$ac_try;;
15396esac
15397eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15398$as_echo "$ac_try_echo"; } >&5
15399  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
15400  ac_status=$?
15401  if test -s conftest.err; then
15402    sed '10a\
15403... rest of stderr output deleted ...
15404         10q' conftest.err >conftest.er1
15405    cat conftest.er1 >&5
15406  fi
15407  rm -f conftest.er1 conftest.err
15408  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15409  test $ac_status = 0; }
15410done
15411
15412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
15413$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
15414if ${ac_cv_c_compiler_gnu+:} false; then :
15415  $as_echo_n "(cached) " >&6
15416else
15417  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15418/* end confdefs.h.  */
15419
15420int
15421main ()
15422{
15423#ifndef __GNUC__
15424       choke me
15425#endif
15426
15427  ;
15428  return 0;
15429}
15430_ACEOF
15431if ac_fn_c_try_compile "$LINENO"; then :
15432  ac_compiler_gnu=yes
15433else
15434  ac_compiler_gnu=no
15435fi
15436rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
15437ac_cv_c_compiler_gnu=$ac_compiler_gnu
15438
15439fi
15440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
15441$as_echo "$ac_cv_c_compiler_gnu" >&6; }
15442if test $ac_compiler_gnu = yes; then
15443  GCC=yes
15444else
15445  GCC=
15446fi
15447ac_test_CFLAGS=${CFLAGS_FOR_BUILD+set}
15448ac_save_CFLAGS=$CFLAGS_FOR_BUILD
15449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD accepts -g" >&5
15450$as_echo_n "checking whether $CC_FOR_BUILD accepts -g... " >&6; }
15451if ${ac_cv_build_prog_cc_g+:} false; then :
15452  $as_echo_n "(cached) " >&6
15453else
15454  ac_save_c_werror_flag=$ac_c_werror_flag
15455   ac_c_werror_flag=yes
15456   ac_cv_build_prog_cc_g=no
15457   CFLAGS_FOR_BUILD="-g"
15458   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15459/* end confdefs.h.  */
15460
15461int
15462main ()
15463{
15464
15465  ;
15466  return 0;
15467}
15468_ACEOF
15469if ac_fn_c_try_compile "$LINENO"; then :
15470  ac_cv_build_prog_cc_g=yes
15471else
15472  CFLAGS_FOR_BUILD=""
15473      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15474/* end confdefs.h.  */
15475
15476int
15477main ()
15478{
15479
15480  ;
15481  return 0;
15482}
15483_ACEOF
15484if ac_fn_c_try_compile "$LINENO"; then :
15485
15486else
15487  ac_c_werror_flag=$ac_save_c_werror_flag
15488	 CFLAGS_FOR_BUILD="-g"
15489	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15490/* end confdefs.h.  */
15491
15492int
15493main ()
15494{
15495
15496  ;
15497  return 0;
15498}
15499_ACEOF
15500if ac_fn_c_try_compile "$LINENO"; then :
15501  ac_cv_build_prog_cc_g=yes
15502fi
15503rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
15504fi
15505rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
15506fi
15507rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
15508   ac_c_werror_flag=$ac_save_c_werror_flag
15509fi
15510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_g" >&5
15511$as_echo "$ac_cv_build_prog_cc_g" >&6; }
15512if test "$ac_test_CFLAGS" = set; then
15513  CFLAGS_FOR_BUILD=$ac_save_CFLAGS
15514elif test $ac_cv_build_prog_cc_g = yes; then
15515  if test "$GCC" = yes; then
15516    CFLAGS_FOR_BUILD="-g -O2"
15517  else
15518    CFLAGS_FOR_BUILD="-g"
15519  fi
15520else
15521  if test "$GCC" = yes; then
15522    CFLAGS_FOR_BUILD="-O2"
15523  else
15524    CFLAGS_FOR_BUILD=
15525  fi
15526fi
15527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
15528$as_echo_n "checking for $CC_FOR_BUILD option to accept ISO C89... " >&6; }
15529if ${ac_cv_prog_cc_c89+:} false; then :
15530  $as_echo_n "(cached) " >&6
15531else
15532  ac_cv_prog_cc_c89=no
15533ac_save_CC=$CC_FOR_BUILD
15534cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15535/* end confdefs.h.  */
15536#include <stdarg.h>
15537#include <stdio.h>
15538struct stat;
15539/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
15540struct buf { int x; };
15541FILE * (*rcsopen) (struct buf *, struct stat *, int);
15542static char *e (p, i)
15543     char **p;
15544     int i;
15545{
15546  return p[i];
15547}
15548static char *f (char * (*g) (char **, int), char **p, ...)
15549{
15550  char *s;
15551  va_list v;
15552  va_start (v,p);
15553  s = g (p, va_arg (v,int));
15554  va_end (v);
15555  return s;
15556}
15557
15558/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
15559   function prototypes and stuff, but not '\xHH' hex character constants.
15560   These don't provoke an error unfortunately, instead are silently treated
15561   as 'x'.  The following induces an error, until -std is added to get
15562   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
15563   array size at least.  It's necessary to write '\x00'==0 to get something
15564   that's true only with -std.  */
15565int osf4_cc_array ['\x00' == 0 ? 1 : -1];
15566
15567/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
15568   inside strings and character constants.  */
15569#define FOO(x) 'x'
15570int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
15571
15572int test (int i, double x);
15573struct s1 {int (*f) (int a);};
15574struct s2 {int (*f) (double a);};
15575int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
15576int argc;
15577char **argv;
15578int
15579main ()
15580{
15581return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
15582  ;
15583  return 0;
15584}
15585_ACEOF
15586for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
15587	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
15588do
15589  CC_FOR_BUILD="$ac_save_CC $ac_arg"
15590  if ac_fn_c_try_compile "$LINENO"; then :
15591  ac_cv_prog_cc_c89=$ac_arg
15592fi
15593rm -f core conftest.err conftest.$ac_build_objext
15594  test "x$ac_cv_prog_cc_c89" != "xno" && break
15595done
15596rm -f conftest.$ac_ext
15597CC_FOR_BUILD=$ac_save_CC
15598
15599fi
15600# AC_CACHE_VAL
15601case "x$ac_cv_prog_cc_c89" in
15602  x)
15603    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15604$as_echo "none needed" >&6; } ;;
15605  xno)
15606    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15607$as_echo "unsupported" >&6; } ;;
15608  *)
15609    CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_prog_cc_c89"
15610    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
15611$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
15612esac
15613if test "x$ac_cv_prog_cc_c89" != xno; then :
15614
15615fi
15616
15617ac_ext=c
15618ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
15619ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
15620ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
15621ac_compiler_gnu=$ac_cv_c_compiler_gnu
15622
15623ac_ext=c
15624ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
15625ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
15626ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
15627ac_compiler_gnu=$ac_cv_c_compiler_gnu
15628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD understands -c and -o together" >&5
15629$as_echo_n "checking whether $CC_FOR_BUILD understands -c and -o together... " >&6; }
15630if ${am_cv_prog_cc_c_o+:} false; then :
15631  $as_echo_n "(cached) " >&6
15632else
15633  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15634/* end confdefs.h.  */
15635
15636int
15637main ()
15638{
15639
15640  ;
15641  return 0;
15642}
15643_ACEOF
15644  # Make sure it works both with $CC and with simple cc.
15645  # Following AC_PROG_CC_C_O, we do the test twice because some
15646  # compilers refuse to overwrite an existing .o file with -o,
15647  # though they will create one.
15648  am_cv_prog_cc_c_o=yes
15649  for am_i in 1 2; do
15650    if { echo "$as_me:$LINENO: $CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext" >&5
15651   ($CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext) >&5 2>&5
15652   ac_status=$?
15653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654   (exit $ac_status); } \
15655         && test -f conftest2.$ac_build_objext; then
15656      : OK
15657    else
15658      am_cv_prog_cc_c_o=no
15659      break
15660    fi
15661  done
15662  rm -f core conftest*
15663  unset am_i
15664fi
15665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
15666$as_echo "$am_cv_prog_cc_c_o" >&6; }
15667if test "$am_cv_prog_cc_c_o" != yes; then
15668   # Losing compiler, so override with the script.
15669   # FIXME: It is wrong to rewrite CC.
15670   # But if we don't then we get into trouble of one sort or another.
15671   # A longer-term fix would be to have automake use am__CC in this case,
15672   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
15673   CC_FOR_BUILD="$am_aux_dir/compile $CC_FOR_BUILD"
15674fi
15675ac_ext=c
15676ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
15677ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
15678ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
15679ac_compiler_gnu=$ac_cv_c_compiler_gnu
15680
15681
15682ac_ext=c
15683ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
15684ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
15685ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
15686ac_compiler_gnu=$ac_cv_c_compiler_gnu
15687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
15688$as_echo_n "checking how to run the C preprocessor... " >&6; }
15689# On Suns, sometimes $CPP names a directory.
15690if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then
15691  CPP_FOR_BUILD=
15692fi
15693if test -z "$CPP_FOR_BUILD"; then
15694  if ${ac_cv_build_prog_CPP+:} false; then :
15695  $as_echo_n "(cached) " >&6
15696else
15697      # Double quotes because CPP needs to be expanded
15698    for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"
15699    do
15700      ac_preproc_ok=false
15701for ac_c_preproc_warn_flag in '' yes
15702do
15703  # Use a header file that comes with gcc, so configuring glibc
15704  # with a fresh cross-compiler works.
15705  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15706  # <limits.h> exists even on freestanding compilers.
15707  # On the NeXT, cc -E runs the code through the compiler's parser,
15708  # not just through cpp. "Syntax error" is here to catch this case.
15709  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15710/* end confdefs.h.  */
15711#ifdef __STDC__
15712# include <limits.h>
15713#else
15714# include <assert.h>
15715#endif
15716		     Syntax error
15717_ACEOF
15718if ac_fn_c_try_cpp "$LINENO"; then :
15719
15720else
15721  # Broken: fails on valid input.
15722continue
15723fi
15724rm -f conftest.err conftest.i conftest.$ac_ext
15725
15726  # OK, works on sane cases.  Now check whether nonexistent headers
15727  # can be detected and how.
15728  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15729/* end confdefs.h.  */
15730#include <ac_nonexistent.h>
15731_ACEOF
15732if ac_fn_c_try_cpp "$LINENO"; then :
15733  # Broken: success on invalid input.
15734continue
15735else
15736  # Passes both tests.
15737ac_preproc_ok=:
15738break
15739fi
15740rm -f conftest.err conftest.i conftest.$ac_ext
15741
15742done
15743# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15744rm -f conftest.i conftest.err conftest.$ac_ext
15745if $ac_preproc_ok; then :
15746  break
15747fi
15748
15749    done
15750    ac_cv_build_prog_CPP=$CPP_FOR_BUILD
15751
15752fi
15753  CPP_FOR_BUILD=$ac_cv_build_prog_CPP
15754else
15755  ac_cv_build_prog_CPP=$CPP_FOR_BUILD
15756fi
15757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP_FOR_BUILD" >&5
15758$as_echo "$CPP_FOR_BUILD" >&6; }
15759ac_preproc_ok=false
15760for ac_c_preproc_warn_flag in '' yes
15761do
15762  # Use a header file that comes with gcc, so configuring glibc
15763  # with a fresh cross-compiler works.
15764  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15765  # <limits.h> exists even on freestanding compilers.
15766  # On the NeXT, cc -E runs the code through the compiler's parser,
15767  # not just through cpp. "Syntax error" is here to catch this case.
15768  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15769/* end confdefs.h.  */
15770#ifdef __STDC__
15771# include <limits.h>
15772#else
15773# include <assert.h>
15774#endif
15775		     Syntax error
15776_ACEOF
15777if ac_fn_c_try_cpp "$LINENO"; then :
15778
15779else
15780  # Broken: fails on valid input.
15781continue
15782fi
15783rm -f conftest.err conftest.i conftest.$ac_ext
15784
15785  # OK, works on sane cases.  Now check whether nonexistent headers
15786  # can be detected and how.
15787  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15788/* end confdefs.h.  */
15789#include <ac_nonexistent.h>
15790_ACEOF
15791if ac_fn_c_try_cpp "$LINENO"; then :
15792  # Broken: success on invalid input.
15793continue
15794else
15795  # Passes both tests.
15796ac_preproc_ok=:
15797break
15798fi
15799rm -f conftest.err conftest.i conftest.$ac_ext
15800
15801done
15802# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15803rm -f conftest.i conftest.err conftest.$ac_ext
15804if $ac_preproc_ok; then :
15805
15806else
15807  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15808$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15809as_fn_error $? "C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
15810See \`config.log' for more details" "$LINENO" 5; }
15811fi
15812
15813ac_ext=c
15814ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
15815ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
15816ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
15817ac_compiler_gnu=$ac_cv_c_compiler_gnu
15818
15819
15820
15821ac_tool_prefix=$save_ac_tool_prefix
15822cross_compiling=$save_cross_compiling
15823
15824
15825BUILD_EXEEXT=$ac_build_exeext
15826BUILD_OBJEXT=$ac_build_objext
15827
15828ac_ext=cpp
15829ac_cpp='$CXXCPP $CPPFLAGS'
15830ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15831ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15832ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15833if test -z "$CXX"; then
15834  if test -n "$CCC"; then
15835    CXX=$CCC
15836  else
15837    if test -n "$ac_tool_prefix"; then
15838  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
15839  do
15840    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15841set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15843$as_echo_n "checking for $ac_word... " >&6; }
15844if ${ac_cv_prog_CXX+:} false; then :
15845  $as_echo_n "(cached) " >&6
15846else
15847  if test -n "$CXX"; then
15848  ac_cv_prog_CXX="$CXX" # Let the user override the test.
15849else
15850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15851for as_dir in $PATH
15852do
15853  IFS=$as_save_IFS
15854  test -z "$as_dir" && as_dir=.
15855    for ac_exec_ext in '' $ac_executable_extensions; do
15856  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15857    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
15858    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15859    break 2
15860  fi
15861done
15862  done
15863IFS=$as_save_IFS
15864
15865fi
15866fi
15867CXX=$ac_cv_prog_CXX
15868if test -n "$CXX"; then
15869  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
15870$as_echo "$CXX" >&6; }
15871else
15872  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15873$as_echo "no" >&6; }
15874fi
15875
15876
15877    test -n "$CXX" && break
15878  done
15879fi
15880if test -z "$CXX"; then
15881  ac_ct_CXX=$CXX
15882  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
15883do
15884  # Extract the first word of "$ac_prog", so it can be a program name with args.
15885set dummy $ac_prog; ac_word=$2
15886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15887$as_echo_n "checking for $ac_word... " >&6; }
15888if ${ac_cv_prog_ac_ct_CXX+:} false; then :
15889  $as_echo_n "(cached) " >&6
15890else
15891  if test -n "$ac_ct_CXX"; then
15892  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
15893else
15894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15895for as_dir in $PATH
15896do
15897  IFS=$as_save_IFS
15898  test -z "$as_dir" && as_dir=.
15899    for ac_exec_ext in '' $ac_executable_extensions; do
15900  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15901    ac_cv_prog_ac_ct_CXX="$ac_prog"
15902    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15903    break 2
15904  fi
15905done
15906  done
15907IFS=$as_save_IFS
15908
15909fi
15910fi
15911ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
15912if test -n "$ac_ct_CXX"; then
15913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
15914$as_echo "$ac_ct_CXX" >&6; }
15915else
15916  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15917$as_echo "no" >&6; }
15918fi
15919
15920
15921  test -n "$ac_ct_CXX" && break
15922done
15923
15924  if test "x$ac_ct_CXX" = x; then
15925    CXX="g++"
15926  else
15927    case $cross_compiling:$ac_tool_warned in
15928yes:)
15929{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15930$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15931ac_tool_warned=yes ;;
15932esac
15933    CXX=$ac_ct_CXX
15934  fi
15935fi
15936
15937  fi
15938fi
15939# Provide some information about the compiler.
15940$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
15941set X $ac_compile
15942ac_compiler=$2
15943for ac_option in --version -v -V -qversion; do
15944  { { ac_try="$ac_compiler $ac_option >&5"
15945case "(($ac_try" in
15946  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15947  *) ac_try_echo=$ac_try;;
15948esac
15949eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15950$as_echo "$ac_try_echo"; } >&5
15951  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
15952  ac_status=$?
15953  if test -s conftest.err; then
15954    sed '10a\
15955... rest of stderr output deleted ...
15956         10q' conftest.err >conftest.er1
15957    cat conftest.er1 >&5
15958  fi
15959  rm -f conftest.er1 conftest.err
15960  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15961  test $ac_status = 0; }
15962done
15963
15964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
15965$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
15966if ${ac_cv_cxx_compiler_gnu+:} false; then :
15967  $as_echo_n "(cached) " >&6
15968else
15969  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15970/* end confdefs.h.  */
15971
15972int
15973main ()
15974{
15975#ifndef __GNUC__
15976       choke me
15977#endif
15978
15979  ;
15980  return 0;
15981}
15982_ACEOF
15983if ac_fn_cxx_try_compile "$LINENO"; then :
15984  ac_compiler_gnu=yes
15985else
15986  ac_compiler_gnu=no
15987fi
15988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15989ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
15990
15991fi
15992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
15993$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
15994if test $ac_compiler_gnu = yes; then
15995  GXX=yes
15996else
15997  GXX=
15998fi
15999ac_test_CXXFLAGS=${CXXFLAGS+set}
16000ac_save_CXXFLAGS=$CXXFLAGS
16001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
16002$as_echo_n "checking whether $CXX accepts -g... " >&6; }
16003if ${ac_cv_prog_cxx_g+:} false; then :
16004  $as_echo_n "(cached) " >&6
16005else
16006  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
16007   ac_cxx_werror_flag=yes
16008   ac_cv_prog_cxx_g=no
16009   CXXFLAGS="-g"
16010   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16011/* end confdefs.h.  */
16012
16013int
16014main ()
16015{
16016
16017  ;
16018  return 0;
16019}
16020_ACEOF
16021if ac_fn_cxx_try_compile "$LINENO"; then :
16022  ac_cv_prog_cxx_g=yes
16023else
16024  CXXFLAGS=""
16025      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16026/* end confdefs.h.  */
16027
16028int
16029main ()
16030{
16031
16032  ;
16033  return 0;
16034}
16035_ACEOF
16036if ac_fn_cxx_try_compile "$LINENO"; then :
16037
16038else
16039  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
16040	 CXXFLAGS="-g"
16041	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16042/* end confdefs.h.  */
16043
16044int
16045main ()
16046{
16047
16048  ;
16049  return 0;
16050}
16051_ACEOF
16052if ac_fn_cxx_try_compile "$LINENO"; then :
16053  ac_cv_prog_cxx_g=yes
16054fi
16055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16056fi
16057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16058fi
16059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16060   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
16061fi
16062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
16063$as_echo "$ac_cv_prog_cxx_g" >&6; }
16064if test "$ac_test_CXXFLAGS" = set; then
16065  CXXFLAGS=$ac_save_CXXFLAGS
16066elif test $ac_cv_prog_cxx_g = yes; then
16067  if test "$GXX" = yes; then
16068    CXXFLAGS="-g -O2"
16069  else
16070    CXXFLAGS="-g"
16071  fi
16072else
16073  if test "$GXX" = yes; then
16074    CXXFLAGS="-O2"
16075  else
16076    CXXFLAGS=
16077  fi
16078fi
16079ac_ext=c
16080ac_cpp='$CPP $CPPFLAGS'
16081ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16082ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16083ac_compiler_gnu=$ac_cv_c_compiler_gnu
16084
16085
16086
16087func_stripname_cnf ()
16088{
16089  case $2 in
16090  .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
16091  *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
16092  esac
16093} # func_stripname_cnf
16094
16095      if test -n "$CXX" && ( test no != "$CXX" &&
16096    ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
16097    (test g++ != "$CXX"))); then
16098  ac_ext=cpp
16099ac_cpp='$CXXCPP $CPPFLAGS'
16100ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16101ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16102ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
16104$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
16105if test -z "$CXXCPP"; then
16106  if ${ac_cv_prog_CXXCPP+:} false; then :
16107  $as_echo_n "(cached) " >&6
16108else
16109      # Double quotes because CXXCPP needs to be expanded
16110    for CXXCPP in "$CXX -E" "/lib/cpp"
16111    do
16112      ac_preproc_ok=false
16113for ac_cxx_preproc_warn_flag in '' yes
16114do
16115  # Use a header file that comes with gcc, so configuring glibc
16116  # with a fresh cross-compiler works.
16117  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16118  # <limits.h> exists even on freestanding compilers.
16119  # On the NeXT, cc -E runs the code through the compiler's parser,
16120  # not just through cpp. "Syntax error" is here to catch this case.
16121  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16122/* end confdefs.h.  */
16123#ifdef __STDC__
16124# include <limits.h>
16125#else
16126# include <assert.h>
16127#endif
16128		     Syntax error
16129_ACEOF
16130if ac_fn_cxx_try_cpp "$LINENO"; then :
16131
16132else
16133  # Broken: fails on valid input.
16134continue
16135fi
16136rm -f conftest.err conftest.i conftest.$ac_ext
16137
16138  # OK, works on sane cases.  Now check whether nonexistent headers
16139  # can be detected and how.
16140  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16141/* end confdefs.h.  */
16142#include <ac_nonexistent.h>
16143_ACEOF
16144if ac_fn_cxx_try_cpp "$LINENO"; then :
16145  # Broken: success on invalid input.
16146continue
16147else
16148  # Passes both tests.
16149ac_preproc_ok=:
16150break
16151fi
16152rm -f conftest.err conftest.i conftest.$ac_ext
16153
16154done
16155# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16156rm -f conftest.i conftest.err conftest.$ac_ext
16157if $ac_preproc_ok; then :
16158  break
16159fi
16160
16161    done
16162    ac_cv_prog_CXXCPP=$CXXCPP
16163
16164fi
16165  CXXCPP=$ac_cv_prog_CXXCPP
16166else
16167  ac_cv_prog_CXXCPP=$CXXCPP
16168fi
16169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
16170$as_echo "$CXXCPP" >&6; }
16171ac_preproc_ok=false
16172for ac_cxx_preproc_warn_flag in '' yes
16173do
16174  # Use a header file that comes with gcc, so configuring glibc
16175  # with a fresh cross-compiler works.
16176  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16177  # <limits.h> exists even on freestanding compilers.
16178  # On the NeXT, cc -E runs the code through the compiler's parser,
16179  # not just through cpp. "Syntax error" is here to catch this case.
16180  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16181/* end confdefs.h.  */
16182#ifdef __STDC__
16183# include <limits.h>
16184#else
16185# include <assert.h>
16186#endif
16187		     Syntax error
16188_ACEOF
16189if ac_fn_cxx_try_cpp "$LINENO"; then :
16190
16191else
16192  # Broken: fails on valid input.
16193continue
16194fi
16195rm -f conftest.err conftest.i conftest.$ac_ext
16196
16197  # OK, works on sane cases.  Now check whether nonexistent headers
16198  # can be detected and how.
16199  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16200/* end confdefs.h.  */
16201#include <ac_nonexistent.h>
16202_ACEOF
16203if ac_fn_cxx_try_cpp "$LINENO"; then :
16204  # Broken: success on invalid input.
16205continue
16206else
16207  # Passes both tests.
16208ac_preproc_ok=:
16209break
16210fi
16211rm -f conftest.err conftest.i conftest.$ac_ext
16212
16213done
16214# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16215rm -f conftest.i conftest.err conftest.$ac_ext
16216if $ac_preproc_ok; then :
16217
16218else
16219  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16220$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16221as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
16222See \`config.log' for more details" "$LINENO" 5; }
16223fi
16224
16225ac_ext=c
16226ac_cpp='$CPP $CPPFLAGS'
16227ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16228ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16229ac_compiler_gnu=$ac_cv_c_compiler_gnu
16230
16231else
16232  _lt_caught_CXX_error=yes
16233fi
16234
16235ac_ext=cpp
16236ac_cpp='$CXXCPP $CPPFLAGS'
16237ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16238ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16239ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16240
16241archive_cmds_need_lc_CXX=no
16242allow_undefined_flag_CXX=
16243always_export_symbols_CXX=no
16244archive_expsym_cmds_CXX=
16245compiler_needs_object_CXX=no
16246export_dynamic_flag_spec_CXX=
16247hardcode_direct_CXX=no
16248hardcode_direct_absolute_CXX=no
16249hardcode_libdir_flag_spec_CXX=
16250hardcode_libdir_separator_CXX=
16251hardcode_minus_L_CXX=no
16252hardcode_shlibpath_var_CXX=unsupported
16253hardcode_automatic_CXX=no
16254inherit_rpath_CXX=no
16255module_cmds_CXX=
16256module_expsym_cmds_CXX=
16257link_all_deplibs_CXX=unknown
16258old_archive_cmds_CXX=$old_archive_cmds
16259reload_flag_CXX=$reload_flag
16260reload_cmds_CXX=$reload_cmds
16261no_undefined_flag_CXX=
16262whole_archive_flag_spec_CXX=
16263enable_shared_with_static_runtimes_CXX=no
16264
16265# Source file extension for C++ test sources.
16266ac_ext=cpp
16267
16268# Object file extension for compiled C++ test sources.
16269objext=o
16270objext_CXX=$objext
16271
16272# No sense in running all these tests if we already determined that
16273# the CXX compiler isn't working.  Some variables (like enable_shared)
16274# are currently assumed to apply to all compilers on this platform,
16275# and will be corrupted by setting them based on a non-working compiler.
16276if test yes != "$_lt_caught_CXX_error"; then
16277  # Code to be used in simple compile tests
16278  lt_simple_compile_test_code="int some_variable = 0;"
16279
16280  # Code to be used in simple link tests
16281  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16282
16283  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16284
16285
16286
16287
16288
16289
16290# If no C compiler was specified, use CC.
16291LTCC=${LTCC-"$CC"}
16292
16293# If no C compiler flags were specified, use CFLAGS.
16294LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16295
16296# Allow CC to be a program name with arguments.
16297compiler=$CC
16298
16299
16300  # save warnings/boilerplate of simple test code
16301  ac_outfile=conftest.$ac_objext
16302echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16303eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16304_lt_compiler_boilerplate=`cat conftest.err`
16305$RM conftest*
16306
16307  ac_outfile=conftest.$ac_objext
16308echo "$lt_simple_link_test_code" >conftest.$ac_ext
16309eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16310_lt_linker_boilerplate=`cat conftest.err`
16311$RM -r conftest*
16312
16313
16314  # Allow CC to be a program name with arguments.
16315  lt_save_CC=$CC
16316  lt_save_CFLAGS=$CFLAGS
16317  lt_save_LD=$LD
16318  lt_save_GCC=$GCC
16319  GCC=$GXX
16320  lt_save_with_gnu_ld=$with_gnu_ld
16321  lt_save_path_LD=$lt_cv_path_LD
16322  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16323    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16324  else
16325    $as_unset lt_cv_prog_gnu_ld
16326  fi
16327  if test -n "${lt_cv_path_LDCXX+set}"; then
16328    lt_cv_path_LD=$lt_cv_path_LDCXX
16329  else
16330    $as_unset lt_cv_path_LD
16331  fi
16332  test -z "${LDCXX+set}" || LD=$LDCXX
16333  CC=${CXX-"c++"}
16334  CFLAGS=$CXXFLAGS
16335  compiler=$CC
16336  compiler_CXX=$CC
16337  func_cc_basename $compiler
16338cc_basename=$func_cc_basename_result
16339
16340
16341  if test -n "$compiler"; then
16342    # We don't want -fno-exception when compiling C++ code, so set the
16343    # no_builtin_flag separately
16344    if test yes = "$GXX"; then
16345      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16346    else
16347      lt_prog_compiler_no_builtin_flag_CXX=
16348    fi
16349
16350    if test yes = "$GXX"; then
16351      # Set up default GNU C++ configuration
16352
16353
16354
16355# Check whether --with-gnu-ld was given.
16356if test "${with_gnu_ld+set}" = set; then :
16357  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
16358else
16359  with_gnu_ld=no
16360fi
16361
16362ac_prog=ld
16363if test yes = "$GCC"; then
16364  # Check if gcc -print-prog-name=ld gives a path.
16365  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16366$as_echo_n "checking for ld used by $CC... " >&6; }
16367  case $host in
16368  *-*-mingw*)
16369    # gcc leaves a trailing carriage return, which upsets mingw
16370    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16371  *)
16372    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16373  esac
16374  case $ac_prog in
16375    # Accept absolute paths.
16376    [\\/]* | ?:[\\/]*)
16377      re_direlt='/[^/][^/]*/\.\./'
16378      # Canonicalize the pathname of ld
16379      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16380      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16381	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16382      done
16383      test -z "$LD" && LD=$ac_prog
16384      ;;
16385  "")
16386    # If it fails, then pretend we aren't using GCC.
16387    ac_prog=ld
16388    ;;
16389  *)
16390    # If it is relative, then search for the first ld in PATH.
16391    with_gnu_ld=unknown
16392    ;;
16393  esac
16394elif test yes = "$with_gnu_ld"; then
16395  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16396$as_echo_n "checking for GNU ld... " >&6; }
16397else
16398  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16399$as_echo_n "checking for non-GNU ld... " >&6; }
16400fi
16401if ${lt_cv_path_LD+:} false; then :
16402  $as_echo_n "(cached) " >&6
16403else
16404  if test -z "$LD"; then
16405  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
16406  for ac_dir in $PATH; do
16407    IFS=$lt_save_ifs
16408    test -z "$ac_dir" && ac_dir=.
16409    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16410      lt_cv_path_LD=$ac_dir/$ac_prog
16411      # Check to see if the program is GNU ld.  I'd rather use --version,
16412      # but apparently some variants of GNU ld only accept -v.
16413      # Break only if it was the GNU/non-GNU ld that we prefer.
16414      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16415      *GNU* | *'with BFD'*)
16416	test no != "$with_gnu_ld" && break
16417	;;
16418      *)
16419	test yes != "$with_gnu_ld" && break
16420	;;
16421      esac
16422    fi
16423  done
16424  IFS=$lt_save_ifs
16425else
16426  lt_cv_path_LD=$LD # Let the user override the test with a path.
16427fi
16428fi
16429
16430LD=$lt_cv_path_LD
16431if test -n "$LD"; then
16432  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16433$as_echo "$LD" >&6; }
16434else
16435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16436$as_echo "no" >&6; }
16437fi
16438test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16440$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16441if ${lt_cv_prog_gnu_ld+:} false; then :
16442  $as_echo_n "(cached) " >&6
16443else
16444  # I'd rather use --version here, but apparently some GNU lds only accept -v.
16445case `$LD -v 2>&1 </dev/null` in
16446*GNU* | *'with BFD'*)
16447  lt_cv_prog_gnu_ld=yes
16448  ;;
16449*)
16450  lt_cv_prog_gnu_ld=no
16451  ;;
16452esac
16453fi
16454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16455$as_echo "$lt_cv_prog_gnu_ld" >&6; }
16456with_gnu_ld=$lt_cv_prog_gnu_ld
16457
16458
16459
16460
16461
16462
16463
16464      # Check if GNU C++ uses GNU ld as the underlying linker, since the
16465      # archiving commands below assume that GNU ld is being used.
16466      if test yes = "$with_gnu_ld"; then
16467        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16468        archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16469
16470        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16471        export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16472
16473        # If archive_cmds runs LD, not CC, wlarc should be empty
16474        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16475        #     investigate it a little bit more. (MM)
16476        wlarc='$wl'
16477
16478        # ancient GNU ld didn't support --whole-archive et. al.
16479        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
16480	  $GREP 'no-whole-archive' > /dev/null; then
16481          whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16482        else
16483          whole_archive_flag_spec_CXX=
16484        fi
16485      else
16486        with_gnu_ld=no
16487        wlarc=
16488
16489        # A generic and very simple default shared library creation
16490        # command for GNU C++ for the case where it uses the native
16491        # linker, instead of GNU ld.  If possible, this setting should
16492        # overridden to take advantage of the native linker features on
16493        # the platform it is being used on.
16494        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16495      fi
16496
16497      # Commands to make compiler produce verbose output that lists
16498      # what "hidden" libraries, object files and flags are used when
16499      # linking a shared library.
16500      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16501
16502    else
16503      GXX=no
16504      with_gnu_ld=no
16505      wlarc=
16506    fi
16507
16508    # PORTME: fill in a description of your system's C++ link characteristics
16509    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16510$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16511    ld_shlibs_CXX=yes
16512    case $host_os in
16513      aix3*)
16514        # FIXME: insert proper C++ library support
16515        ld_shlibs_CXX=no
16516        ;;
16517      aix[4-9]*)
16518        if test ia64 = "$host_cpu"; then
16519          # On IA64, the linker does run time linking by default, so we don't
16520          # have to do anything special.
16521          aix_use_runtimelinking=no
16522          exp_sym_flag='-Bexport'
16523          no_entry_flag=
16524        else
16525          aix_use_runtimelinking=no
16526
16527          # Test if we are trying to use run time linking or normal
16528          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16529          # have runtime linking enabled, and use it for executables.
16530          # For shared libraries, we enable/disable runtime linking
16531          # depending on the kind of the shared library created -
16532          # when "with_aix_soname,aix_use_runtimelinking" is:
16533          # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
16534          # "aix,yes"  lib.so          shared, rtl:yes, for executables
16535          #            lib.a           static archive
16536          # "both,no"  lib.so.V(shr.o) shared, rtl:yes
16537          #            lib.a(lib.so.V) shared, rtl:no,  for executables
16538          # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
16539          #            lib.a(lib.so.V) shared, rtl:no
16540          # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
16541          #            lib.a           static archive
16542          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16543	    for ld_flag in $LDFLAGS; do
16544	      case $ld_flag in
16545	      *-brtl*)
16546	        aix_use_runtimelinking=yes
16547	        break
16548	        ;;
16549	      esac
16550	    done
16551	    if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
16552	      # With aix-soname=svr4, we create the lib.so.V shared archives only,
16553	      # so we don't have lib.a shared libs to link our executables.
16554	      # We have to force runtime linking in this case.
16555	      aix_use_runtimelinking=yes
16556	      LDFLAGS="$LDFLAGS -Wl,-brtl"
16557	    fi
16558	    ;;
16559          esac
16560
16561          exp_sym_flag='-bexport'
16562          no_entry_flag='-bnoentry'
16563        fi
16564
16565        # When large executables or shared objects are built, AIX ld can
16566        # have problems creating the table of contents.  If linking a library
16567        # or program results in "error TOC overflow" add -mminimal-toc to
16568        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16569        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16570
16571        archive_cmds_CXX=''
16572        hardcode_direct_CXX=yes
16573        hardcode_direct_absolute_CXX=yes
16574        hardcode_libdir_separator_CXX=':'
16575        link_all_deplibs_CXX=yes
16576        file_list_spec_CXX='$wl-f,'
16577        case $with_aix_soname,$aix_use_runtimelinking in
16578        aix,*) ;;	# no import file
16579        svr4,* | *,yes) # use import file
16580          # The Import File defines what to hardcode.
16581          hardcode_direct_CXX=no
16582          hardcode_direct_absolute_CXX=no
16583          ;;
16584        esac
16585
16586        if test yes = "$GXX"; then
16587          case $host_os in aix4.[012]|aix4.[012].*)
16588          # We only want to do this on AIX 4.2 and lower, the check
16589          # below for broken collect2 doesn't work under 4.3+
16590	  collect2name=`$CC -print-prog-name=collect2`
16591	  if test -f "$collect2name" &&
16592	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16593	  then
16594	    # We have reworked collect2
16595	    :
16596	  else
16597	    # We have old collect2
16598	    hardcode_direct_CXX=unsupported
16599	    # It fails to find uninstalled libraries when the uninstalled
16600	    # path is not listed in the libpath.  Setting hardcode_minus_L
16601	    # to unsupported forces relinking
16602	    hardcode_minus_L_CXX=yes
16603	    hardcode_libdir_flag_spec_CXX='-L$libdir'
16604	    hardcode_libdir_separator_CXX=
16605	  fi
16606          esac
16607          shared_flag='-shared'
16608	  if test yes = "$aix_use_runtimelinking"; then
16609	    shared_flag=$shared_flag' $wl-G'
16610	  fi
16611	  # Need to ensure runtime linking is disabled for the traditional
16612	  # shared library, or the linker may eventually find shared libraries
16613	  # /with/ Import File - we do not want to mix them.
16614	  shared_flag_aix='-shared'
16615	  shared_flag_svr4='-shared $wl-G'
16616        else
16617          # not using gcc
16618          if test ia64 = "$host_cpu"; then
16619	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16620	  # chokes on -Wl,-G. The following line is correct:
16621	  shared_flag='-G'
16622          else
16623	    if test yes = "$aix_use_runtimelinking"; then
16624	      shared_flag='$wl-G'
16625	    else
16626	      shared_flag='$wl-bM:SRE'
16627	    fi
16628	    shared_flag_aix='$wl-bM:SRE'
16629	    shared_flag_svr4='$wl-G'
16630          fi
16631        fi
16632
16633        export_dynamic_flag_spec_CXX='$wl-bexpall'
16634        # It seems that -bexpall does not export symbols beginning with
16635        # underscore (_), so it is better to generate a list of symbols to
16636	# export.
16637        always_export_symbols_CXX=yes
16638	if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
16639          # Warning - without using the other runtime loading flags (-brtl),
16640          # -berok will link without error, but may produce a broken library.
16641          # The "-G" linker flag allows undefined symbols.
16642          no_undefined_flag_CXX='-bernotok'
16643          # Determine the default libpath from the value encoded in an empty
16644          # executable.
16645          if test set = "${lt_cv_aix_libpath+set}"; then
16646  aix_libpath=$lt_cv_aix_libpath
16647else
16648  if ${lt_cv_aix_libpath__CXX+:} false; then :
16649  $as_echo_n "(cached) " >&6
16650else
16651  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16652/* end confdefs.h.  */
16653
16654int
16655main ()
16656{
16657
16658  ;
16659  return 0;
16660}
16661_ACEOF
16662if ac_fn_cxx_try_link "$LINENO"; then :
16663
16664  lt_aix_libpath_sed='
16665      /Import File Strings/,/^$/ {
16666	  /^0/ {
16667	      s/^0  *\([^ ]*\) *$/\1/
16668	      p
16669	  }
16670      }'
16671  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16672  # Check for a 64-bit object if we didn't find anything.
16673  if test -z "$lt_cv_aix_libpath__CXX"; then
16674    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16675  fi
16676fi
16677rm -f core conftest.err conftest.$ac_objext \
16678    conftest$ac_exeext conftest.$ac_ext
16679  if test -z "$lt_cv_aix_libpath__CXX"; then
16680    lt_cv_aix_libpath__CXX=/usr/lib:/lib
16681  fi
16682
16683fi
16684
16685  aix_libpath=$lt_cv_aix_libpath__CXX
16686fi
16687
16688          hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
16689
16690          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
16691        else
16692          if test ia64 = "$host_cpu"; then
16693	    hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
16694	    allow_undefined_flag_CXX="-z nodefs"
16695	    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"
16696          else
16697	    # Determine the default libpath from the value encoded in an
16698	    # empty executable.
16699	    if test set = "${lt_cv_aix_libpath+set}"; then
16700  aix_libpath=$lt_cv_aix_libpath
16701else
16702  if ${lt_cv_aix_libpath__CXX+:} false; then :
16703  $as_echo_n "(cached) " >&6
16704else
16705  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16706/* end confdefs.h.  */
16707
16708int
16709main ()
16710{
16711
16712  ;
16713  return 0;
16714}
16715_ACEOF
16716if ac_fn_cxx_try_link "$LINENO"; then :
16717
16718  lt_aix_libpath_sed='
16719      /Import File Strings/,/^$/ {
16720	  /^0/ {
16721	      s/^0  *\([^ ]*\) *$/\1/
16722	      p
16723	  }
16724      }'
16725  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16726  # Check for a 64-bit object if we didn't find anything.
16727  if test -z "$lt_cv_aix_libpath__CXX"; then
16728    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16729  fi
16730fi
16731rm -f core conftest.err conftest.$ac_objext \
16732    conftest$ac_exeext conftest.$ac_ext
16733  if test -z "$lt_cv_aix_libpath__CXX"; then
16734    lt_cv_aix_libpath__CXX=/usr/lib:/lib
16735  fi
16736
16737fi
16738
16739  aix_libpath=$lt_cv_aix_libpath__CXX
16740fi
16741
16742	    hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
16743	    # Warning - without using the other run time loading flags,
16744	    # -berok will link without error, but may produce a broken library.
16745	    no_undefined_flag_CXX=' $wl-bernotok'
16746	    allow_undefined_flag_CXX=' $wl-berok'
16747	    if test yes = "$with_gnu_ld"; then
16748	      # We only use this code for GNU lds that support --whole-archive.
16749	      whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
16750	    else
16751	      # Exported symbols can be pulled into shared objects from archives
16752	      whole_archive_flag_spec_CXX='$convenience'
16753	    fi
16754	    archive_cmds_need_lc_CXX=yes
16755	    archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
16756	    # -brtl affects multiple linker settings, -berok does not and is overridden later
16757	    compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
16758	    if test svr4 != "$with_aix_soname"; then
16759	      # This is similar to how AIX traditionally builds its shared
16760	      # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
16761	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
16762	    fi
16763	    if test aix != "$with_aix_soname"; then
16764	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
16765	    else
16766	      # used by -dlpreopen to get the symbols
16767	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
16768	    fi
16769	    archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
16770          fi
16771        fi
16772        ;;
16773
16774      beos*)
16775	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16776	  allow_undefined_flag_CXX=unsupported
16777	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16778	  # support --undefined.  This deserves some investigation.  FIXME
16779	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16780	else
16781	  ld_shlibs_CXX=no
16782	fi
16783	;;
16784
16785      chorus*)
16786        case $cc_basename in
16787          *)
16788	  # FIXME: insert proper C++ library support
16789	  ld_shlibs_CXX=no
16790	  ;;
16791        esac
16792        ;;
16793
16794      cygwin* | mingw* | pw32* | cegcc*)
16795	case $GXX,$cc_basename in
16796	,cl* | no,cl*)
16797	  # Native MSVC
16798	  # hardcode_libdir_flag_spec is actually meaningless, as there is
16799	  # no search path for DLLs.
16800	  hardcode_libdir_flag_spec_CXX=' '
16801	  allow_undefined_flag_CXX=unsupported
16802	  always_export_symbols_CXX=yes
16803	  file_list_spec_CXX='@'
16804	  # Tell ltmain to make .lib files, not .a files.
16805	  libext=lib
16806	  # Tell ltmain to make .dll files, not .so files.
16807	  shrext_cmds=.dll
16808	  # FIXME: Setting linknames here is a bad hack.
16809	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16810	  archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
16811              cp "$export_symbols" "$output_objdir/$soname.def";
16812              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16813            else
16814              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16815            fi~
16816            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16817            linknames='
16818	  # The linker will not automatically build a static lib if we build a DLL.
16819	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
16820	  enable_shared_with_static_runtimes_CXX=yes
16821	  # Don't use ranlib
16822	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
16823	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
16824            lt_tool_outputfile="@TOOL_OUTPUT@"~
16825            case $lt_outputfile in
16826              *.exe|*.EXE) ;;
16827              *)
16828                lt_outputfile=$lt_outputfile.exe
16829                lt_tool_outputfile=$lt_tool_outputfile.exe
16830                ;;
16831            esac~
16832            func_to_tool_file "$lt_outputfile"~
16833            if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16834              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16835              $RM "$lt_outputfile.manifest";
16836            fi'
16837	  ;;
16838	*)
16839	  # g++
16840	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16841	  # as there is no search path for DLLs.
16842	  hardcode_libdir_flag_spec_CXX='-L$libdir'
16843	  export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
16844	  allow_undefined_flag_CXX=unsupported
16845	  always_export_symbols_CXX=no
16846	  enable_shared_with_static_runtimes_CXX=yes
16847
16848	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16849	    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'
16850	    # If the export-symbols file already is a .def file, use it as
16851	    # is; otherwise, prepend EXPORTS...
16852	    archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
16853              cp $export_symbols $output_objdir/$soname.def;
16854            else
16855              echo EXPORTS > $output_objdir/$soname.def;
16856              cat $export_symbols >> $output_objdir/$soname.def;
16857            fi~
16858            $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'
16859	  else
16860	    ld_shlibs_CXX=no
16861	  fi
16862	  ;;
16863	esac
16864	;;
16865      darwin* | rhapsody*)
16866
16867
16868  archive_cmds_need_lc_CXX=no
16869  hardcode_direct_CXX=no
16870  hardcode_automatic_CXX=yes
16871  hardcode_shlibpath_var_CXX=unsupported
16872  if test yes = "$lt_cv_ld_force_load"; then
16873    whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
16874
16875  else
16876    whole_archive_flag_spec_CXX=''
16877  fi
16878  link_all_deplibs_CXX=yes
16879  allow_undefined_flag_CXX=$_lt_dar_allow_undefined
16880  case $cc_basename in
16881     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16882     *) _lt_dar_can_shared=$GCC ;;
16883  esac
16884  if test yes = "$_lt_dar_can_shared"; then
16885    output_verbose_link_cmd=func_echo_all
16886    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"
16887    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16888    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"
16889    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"
16890       if test yes != "$lt_cv_apple_cc_single_mod"; then
16891      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"
16892      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"
16893    fi
16894
16895  else
16896  ld_shlibs_CXX=no
16897  fi
16898
16899	;;
16900
16901      os2*)
16902	hardcode_libdir_flag_spec_CXX='-L$libdir'
16903	hardcode_minus_L_CXX=yes
16904	allow_undefined_flag_CXX=unsupported
16905	shrext_cmds=.dll
16906	archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16907	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16908	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16909	  $ECHO EXPORTS >> $output_objdir/$libname.def~
16910	  emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16911	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16912	  emximp -o $lib $output_objdir/$libname.def'
16913	archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16914	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16915	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16916	  $ECHO EXPORTS >> $output_objdir/$libname.def~
16917	  prefix_cmds="$SED"~
16918	  if test EXPORTS = "`$SED 1q $export_symbols`"; then
16919	    prefix_cmds="$prefix_cmds -e 1d";
16920	  fi~
16921	  prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16922	  cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16923	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16924	  emximp -o $lib $output_objdir/$libname.def'
16925	old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16926	enable_shared_with_static_runtimes_CXX=yes
16927	;;
16928
16929      dgux*)
16930        case $cc_basename in
16931          ec++*)
16932	    # FIXME: insert proper C++ library support
16933	    ld_shlibs_CXX=no
16934	    ;;
16935          ghcx*)
16936	    # Green Hills C++ Compiler
16937	    # FIXME: insert proper C++ library support
16938	    ld_shlibs_CXX=no
16939	    ;;
16940          *)
16941	    # FIXME: insert proper C++ library support
16942	    ld_shlibs_CXX=no
16943	    ;;
16944        esac
16945        ;;
16946
16947      freebsd2.*)
16948        # C++ shared libraries reported to be fairly broken before
16949	# switch to ELF
16950        ld_shlibs_CXX=no
16951        ;;
16952
16953      freebsd-elf*)
16954        archive_cmds_need_lc_CXX=no
16955        ;;
16956
16957      freebsd* | dragonfly*)
16958        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16959        # conventions
16960        ld_shlibs_CXX=yes
16961        ;;
16962
16963      haiku*)
16964        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16965        link_all_deplibs_CXX=yes
16966        ;;
16967
16968      hpux9*)
16969        hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
16970        hardcode_libdir_separator_CXX=:
16971        export_dynamic_flag_spec_CXX='$wl-E'
16972        hardcode_direct_CXX=yes
16973        hardcode_minus_L_CXX=yes # Not in the search PATH,
16974				             # but as the default
16975				             # location of the library.
16976
16977        case $cc_basename in
16978          CC*)
16979            # FIXME: insert proper C++ library support
16980            ld_shlibs_CXX=no
16981            ;;
16982          aCC*)
16983            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
16984            # Commands to make compiler produce verbose output that lists
16985            # what "hidden" libraries, object files and flags are used when
16986            # linking a shared library.
16987            #
16988            # There doesn't appear to be a way to prevent this compiler from
16989            # explicitly linking system object files so we need to strip them
16990            # from the output so that they don't get included in the library
16991            # dependencies.
16992            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
16993            ;;
16994          *)
16995            if test yes = "$GXX"; then
16996              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
16997            else
16998              # FIXME: insert proper C++ library support
16999              ld_shlibs_CXX=no
17000            fi
17001            ;;
17002        esac
17003        ;;
17004
17005      hpux10*|hpux11*)
17006        if test no = "$with_gnu_ld"; then
17007	  hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
17008	  hardcode_libdir_separator_CXX=:
17009
17010          case $host_cpu in
17011            hppa*64*|ia64*)
17012              ;;
17013            *)
17014	      export_dynamic_flag_spec_CXX='$wl-E'
17015              ;;
17016          esac
17017        fi
17018        case $host_cpu in
17019          hppa*64*|ia64*)
17020            hardcode_direct_CXX=no
17021            hardcode_shlibpath_var_CXX=no
17022            ;;
17023          *)
17024            hardcode_direct_CXX=yes
17025            hardcode_direct_absolute_CXX=yes
17026            hardcode_minus_L_CXX=yes # Not in the search PATH,
17027					         # but as the default
17028					         # location of the library.
17029            ;;
17030        esac
17031
17032        case $cc_basename in
17033          CC*)
17034	    # FIXME: insert proper C++ library support
17035	    ld_shlibs_CXX=no
17036	    ;;
17037          aCC*)
17038	    case $host_cpu in
17039	      hppa*64*)
17040	        archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17041	        ;;
17042	      ia64*)
17043	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17044	        ;;
17045	      *)
17046	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17047	        ;;
17048	    esac
17049	    # Commands to make compiler produce verbose output that lists
17050	    # what "hidden" libraries, object files and flags are used when
17051	    # linking a shared library.
17052	    #
17053	    # There doesn't appear to be a way to prevent this compiler from
17054	    # explicitly linking system object files so we need to strip them
17055	    # from the output so that they don't get included in the library
17056	    # dependencies.
17057	    output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
17058	    ;;
17059          *)
17060	    if test yes = "$GXX"; then
17061	      if test no = "$with_gnu_ld"; then
17062	        case $host_cpu in
17063	          hppa*64*)
17064	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17065	            ;;
17066	          ia64*)
17067	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17068	            ;;
17069	          *)
17070	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17071	            ;;
17072	        esac
17073	      fi
17074	    else
17075	      # FIXME: insert proper C++ library support
17076	      ld_shlibs_CXX=no
17077	    fi
17078	    ;;
17079        esac
17080        ;;
17081
17082      interix[3-9]*)
17083	hardcode_direct_CXX=no
17084	hardcode_shlibpath_var_CXX=no
17085	hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17086	export_dynamic_flag_spec_CXX='$wl-E'
17087	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17088	# Instead, shared libraries are loaded at an image base (0x10000000 by
17089	# default) and relocated if they conflict, which is a slow very memory
17090	# consuming and fragmenting process.  To avoid this, we pick a random,
17091	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17092	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17093	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'
17094	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'
17095	;;
17096      irix5* | irix6*)
17097        case $cc_basename in
17098          CC*)
17099	    # SGI C++
17100	    archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
17101
17102	    # Archives containing C++ object files must be created using
17103	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
17104	    # necessary to make sure instantiated templates are included
17105	    # in the archive.
17106	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17107	    ;;
17108          *)
17109	    if test yes = "$GXX"; then
17110	      if test no = "$with_gnu_ld"; then
17111	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
17112	      else
17113	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
17114	      fi
17115	    fi
17116	    link_all_deplibs_CXX=yes
17117	    ;;
17118        esac
17119        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17120        hardcode_libdir_separator_CXX=:
17121        inherit_rpath_CXX=yes
17122        ;;
17123
17124      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17125        case $cc_basename in
17126          KCC*)
17127	    # Kuck and Associates, Inc. (KAI) C++ Compiler
17128
17129	    # KCC will only create a shared library if the output file
17130	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
17131	    # to its proper name (with version) after linking.
17132	    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'
17133	    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'
17134	    # Commands to make compiler produce verbose output that lists
17135	    # what "hidden" libraries, object files and flags are used when
17136	    # linking a shared library.
17137	    #
17138	    # There doesn't appear to be a way to prevent this compiler from
17139	    # explicitly linking system object files so we need to strip them
17140	    # from the output so that they don't get included in the library
17141	    # dependencies.
17142	    output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
17143
17144	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17145	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17146
17147	    # Archives containing C++ object files must be created using
17148	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17149	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17150	    ;;
17151	  icpc* | ecpc* )
17152	    # Intel C++
17153	    with_gnu_ld=yes
17154	    # version 8.0 and above of icpc choke on multiply defined symbols
17155	    # if we add $predep_objects and $postdep_objects, however 7.1 and
17156	    # earlier do not add the objects themselves.
17157	    case `$CC -V 2>&1` in
17158	      *"Version 7."*)
17159	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17160		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'
17161		;;
17162	      *)  # Version 8.0 or newer
17163	        tmp_idyn=
17164	        case $host_cpu in
17165		  ia64*) tmp_idyn=' -i_dynamic';;
17166		esac
17167	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17168		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'
17169		;;
17170	    esac
17171	    archive_cmds_need_lc_CXX=no
17172	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17173	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17174	    whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
17175	    ;;
17176          pgCC* | pgcpp*)
17177            # Portland Group C++ compiler
17178	    case `$CC -V` in
17179	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
17180	      prelink_cmds_CXX='tpldir=Template.dir~
17181               rm -rf $tpldir~
17182               $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
17183               compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
17184	      old_archive_cmds_CXX='tpldir=Template.dir~
17185                rm -rf $tpldir~
17186                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
17187                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
17188                $RANLIB $oldlib'
17189	      archive_cmds_CXX='tpldir=Template.dir~
17190                rm -rf $tpldir~
17191                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17192                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17193	      archive_expsym_cmds_CXX='tpldir=Template.dir~
17194                rm -rf $tpldir~
17195                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17196                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
17197	      ;;
17198	    *) # Version 6 and above use weak symbols
17199	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17200	      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'
17201	      ;;
17202	    esac
17203
17204	    hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
17205	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17206	    whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
17207            ;;
17208	  cxx*)
17209	    # Compaq C++
17210	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17211	    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'
17212
17213	    runpath_var=LD_RUN_PATH
17214	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17215	    hardcode_libdir_separator_CXX=:
17216
17217	    # Commands to make compiler produce verbose output that lists
17218	    # what "hidden" libraries, object files and flags are used when
17219	    # linking a shared library.
17220	    #
17221	    # There doesn't appear to be a way to prevent this compiler from
17222	    # explicitly linking system object files so we need to strip them
17223	    # from the output so that they don't get included in the library
17224	    # dependencies.
17225	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
17226	    ;;
17227	  xl* | mpixl* | bgxl*)
17228	    # IBM XL 8.0 on PPC, with GNU ld
17229	    hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17230	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17231	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17232	    if test yes = "$supports_anon_versioning"; then
17233	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17234                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17235                echo "local: *; };" >> $output_objdir/$libname.ver~
17236                $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
17237	    fi
17238	    ;;
17239	  *)
17240	    case `$CC -V 2>&1 | sed 5q` in
17241	    *Sun\ C*)
17242	      # Sun C++ 5.9
17243	      no_undefined_flag_CXX=' -zdefs'
17244	      archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17245	      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'
17246	      hardcode_libdir_flag_spec_CXX='-R$libdir'
17247	      whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
17248	      compiler_needs_object_CXX=yes
17249
17250	      # Not sure whether something based on
17251	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17252	      # would be better.
17253	      output_verbose_link_cmd='func_echo_all'
17254
17255	      # Archives containing C++ object files must be created using
17256	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
17257	      # necessary to make sure instantiated templates are included
17258	      # in the archive.
17259	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17260	      ;;
17261	    esac
17262	    ;;
17263	esac
17264	;;
17265
17266      lynxos*)
17267        # FIXME: insert proper C++ library support
17268	ld_shlibs_CXX=no
17269	;;
17270
17271      m88k*)
17272        # FIXME: insert proper C++ library support
17273        ld_shlibs_CXX=no
17274	;;
17275
17276      mvs*)
17277        case $cc_basename in
17278          cxx*)
17279	    # FIXME: insert proper C++ library support
17280	    ld_shlibs_CXX=no
17281	    ;;
17282	  *)
17283	    # FIXME: insert proper C++ library support
17284	    ld_shlibs_CXX=no
17285	    ;;
17286	esac
17287	;;
17288
17289      netbsd*)
17290        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17291	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17292	  wlarc=
17293	  hardcode_libdir_flag_spec_CXX='-R$libdir'
17294	  hardcode_direct_CXX=yes
17295	  hardcode_shlibpath_var_CXX=no
17296	fi
17297	# Workaround some broken pre-1.5 toolchains
17298	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17299	;;
17300
17301      *nto* | *qnx*)
17302        ld_shlibs_CXX=yes
17303	;;
17304
17305      openbsd* | bitrig*)
17306	if test -f /usr/libexec/ld.so; then
17307	  hardcode_direct_CXX=yes
17308	  hardcode_shlibpath_var_CXX=no
17309	  hardcode_direct_absolute_CXX=yes
17310	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17311	  hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17312	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
17313	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
17314	    export_dynamic_flag_spec_CXX='$wl-E'
17315	    whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
17316	  fi
17317	  output_verbose_link_cmd=func_echo_all
17318	else
17319	  ld_shlibs_CXX=no
17320	fi
17321	;;
17322
17323      osf3* | osf4* | osf5*)
17324        case $cc_basename in
17325          KCC*)
17326	    # Kuck and Associates, Inc. (KAI) C++ Compiler
17327
17328	    # KCC will only create a shared library if the output file
17329	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
17330	    # to its proper name (with version) after linking.
17331	    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'
17332
17333	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17334	    hardcode_libdir_separator_CXX=:
17335
17336	    # Archives containing C++ object files must be created using
17337	    # the KAI C++ compiler.
17338	    case $host in
17339	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17340	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17341	    esac
17342	    ;;
17343          RCC*)
17344	    # Rational C++ 2.4.1
17345	    # FIXME: insert proper C++ library support
17346	    ld_shlibs_CXX=no
17347	    ;;
17348          cxx*)
17349	    case $host in
17350	      osf3*)
17351	        allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
17352	        archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
17353	        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17354		;;
17355	      *)
17356	        allow_undefined_flag_CXX=' -expect_unresolved \*'
17357	        archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
17358	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17359                  echo "-hidden">> $lib.exp~
17360                  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
17361                  $RM $lib.exp'
17362	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17363		;;
17364	    esac
17365
17366	    hardcode_libdir_separator_CXX=:
17367
17368	    # Commands to make compiler produce verbose output that lists
17369	    # what "hidden" libraries, object files and flags are used when
17370	    # linking a shared library.
17371	    #
17372	    # There doesn't appear to be a way to prevent this compiler from
17373	    # explicitly linking system object files so we need to strip them
17374	    # from the output so that they don't get included in the library
17375	    # dependencies.
17376	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
17377	    ;;
17378	  *)
17379	    if test yes,no = "$GXX,$with_gnu_ld"; then
17380	      allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
17381	      case $host in
17382	        osf3*)
17383	          archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
17384		  ;;
17385	        *)
17386	          archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
17387		  ;;
17388	      esac
17389
17390	      hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17391	      hardcode_libdir_separator_CXX=:
17392
17393	      # Commands to make compiler produce verbose output that lists
17394	      # what "hidden" libraries, object files and flags are used when
17395	      # linking a shared library.
17396	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17397
17398	    else
17399	      # FIXME: insert proper C++ library support
17400	      ld_shlibs_CXX=no
17401	    fi
17402	    ;;
17403        esac
17404        ;;
17405
17406      psos*)
17407        # FIXME: insert proper C++ library support
17408        ld_shlibs_CXX=no
17409        ;;
17410
17411      sunos4*)
17412        case $cc_basename in
17413          CC*)
17414	    # Sun C++ 4.x
17415	    # FIXME: insert proper C++ library support
17416	    ld_shlibs_CXX=no
17417	    ;;
17418          lcc*)
17419	    # Lucid
17420	    # FIXME: insert proper C++ library support
17421	    ld_shlibs_CXX=no
17422	    ;;
17423          *)
17424	    # FIXME: insert proper C++ library support
17425	    ld_shlibs_CXX=no
17426	    ;;
17427        esac
17428        ;;
17429
17430      solaris*)
17431        case $cc_basename in
17432          CC* | sunCC*)
17433	    # Sun C++ 4.2, 5.x and Centerline C++
17434            archive_cmds_need_lc_CXX=yes
17435	    no_undefined_flag_CXX=' -zdefs'
17436	    archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17437	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17438              $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'
17439
17440	    hardcode_libdir_flag_spec_CXX='-R$libdir'
17441	    hardcode_shlibpath_var_CXX=no
17442	    case $host_os in
17443	      solaris2.[0-5] | solaris2.[0-5].*) ;;
17444	      *)
17445		# The compiler driver will combine and reorder linker options,
17446		# but understands '-z linker_flag'.
17447	        # Supported since Solaris 2.6 (maybe 2.5.1?)
17448		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17449	        ;;
17450	    esac
17451	    link_all_deplibs_CXX=yes
17452
17453	    output_verbose_link_cmd='func_echo_all'
17454
17455	    # Archives containing C++ object files must be created using
17456	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
17457	    # necessary to make sure instantiated templates are included
17458	    # in the archive.
17459	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17460	    ;;
17461          gcx*)
17462	    # Green Hills C++ Compiler
17463	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
17464
17465	    # The C++ compiler must be used to create the archive.
17466	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17467	    ;;
17468          *)
17469	    # GNU C++ compiler with Solaris linker
17470	    if test yes,no = "$GXX,$with_gnu_ld"; then
17471	      no_undefined_flag_CXX=' $wl-z ${wl}defs'
17472	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
17473	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
17474	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17475                  $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17476
17477	        # Commands to make compiler produce verbose output that lists
17478	        # what "hidden" libraries, object files and flags are used when
17479	        # linking a shared library.
17480	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17481	      else
17482	        # g++ 2.7 appears to require '-G' NOT '-shared' on this
17483	        # platform.
17484	        archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
17485	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17486                  $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17487
17488	        # Commands to make compiler produce verbose output that lists
17489	        # what "hidden" libraries, object files and flags are used when
17490	        # linking a shared library.
17491	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17492	      fi
17493
17494	      hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
17495	      case $host_os in
17496		solaris2.[0-5] | solaris2.[0-5].*) ;;
17497		*)
17498		  whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
17499		  ;;
17500	      esac
17501	    fi
17502	    ;;
17503        esac
17504        ;;
17505
17506    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17507      no_undefined_flag_CXX='$wl-z,text'
17508      archive_cmds_need_lc_CXX=no
17509      hardcode_shlibpath_var_CXX=no
17510      runpath_var='LD_RUN_PATH'
17511
17512      case $cc_basename in
17513        CC*)
17514	  archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17515	  archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17516	  ;;
17517	*)
17518	  archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17519	  archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17520	  ;;
17521      esac
17522      ;;
17523
17524      sysv5* | sco3.2v5* | sco5v6*)
17525	# Note: We CANNOT use -z defs as we might desire, because we do not
17526	# link with -lc, and that would cause any symbols used from libc to
17527	# always be unresolved, which means just about no library would
17528	# ever link correctly.  If we're not using GNU ld we use -z text
17529	# though, which does catch some bad symbols but isn't as heavy-handed
17530	# as -z defs.
17531	no_undefined_flag_CXX='$wl-z,text'
17532	allow_undefined_flag_CXX='$wl-z,nodefs'
17533	archive_cmds_need_lc_CXX=no
17534	hardcode_shlibpath_var_CXX=no
17535	hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
17536	hardcode_libdir_separator_CXX=':'
17537	link_all_deplibs_CXX=yes
17538	export_dynamic_flag_spec_CXX='$wl-Bexport'
17539	runpath_var='LD_RUN_PATH'
17540
17541	case $cc_basename in
17542          CC*)
17543	    archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17544	    archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17545	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
17546              '"$old_archive_cmds_CXX"
17547	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
17548              '"$reload_cmds_CXX"
17549	    ;;
17550	  *)
17551	    archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17552	    archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17553	    ;;
17554	esac
17555      ;;
17556
17557      tandem*)
17558        case $cc_basename in
17559          NCC*)
17560	    # NonStop-UX NCC 3.20
17561	    # FIXME: insert proper C++ library support
17562	    ld_shlibs_CXX=no
17563	    ;;
17564          *)
17565	    # FIXME: insert proper C++ library support
17566	    ld_shlibs_CXX=no
17567	    ;;
17568        esac
17569        ;;
17570
17571      vxworks*)
17572        # FIXME: insert proper C++ library support
17573        ld_shlibs_CXX=no
17574        ;;
17575
17576      *)
17577        # FIXME: insert proper C++ library support
17578        ld_shlibs_CXX=no
17579        ;;
17580    esac
17581
17582    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17583$as_echo "$ld_shlibs_CXX" >&6; }
17584    test no = "$ld_shlibs_CXX" && can_build_shared=no
17585
17586    GCC_CXX=$GXX
17587    LD_CXX=$LD
17588
17589    ## CAVEAT EMPTOR:
17590    ## There is no encapsulation within the following macros, do not change
17591    ## the running order or otherwise move them around unless you know exactly
17592    ## what you are doing...
17593    # Dependencies to place before and after the object being linked:
17594predep_objects_CXX=
17595postdep_objects_CXX=
17596predeps_CXX=
17597postdeps_CXX=
17598compiler_lib_search_path_CXX=
17599
17600cat > conftest.$ac_ext <<_LT_EOF
17601class Foo
17602{
17603public:
17604  Foo (void) { a = 0; }
17605private:
17606  int a;
17607};
17608_LT_EOF
17609
17610
17611_lt_libdeps_save_CFLAGS=$CFLAGS
17612case "$CC $CFLAGS " in #(
17613*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
17614*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
17615*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
17616esac
17617
17618if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17619  (eval $ac_compile) 2>&5
17620  ac_status=$?
17621  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17622  test $ac_status = 0; }; then
17623  # Parse the compiler output and extract the necessary
17624  # objects, libraries and library flags.
17625
17626  # Sentinel used to keep track of whether or not we are before
17627  # the conftest object file.
17628  pre_test_object_deps_done=no
17629
17630  for p in `eval "$output_verbose_link_cmd"`; do
17631    case $prev$p in
17632
17633    -L* | -R* | -l*)
17634       # Some compilers place space between "-{L,R}" and the path.
17635       # Remove the space.
17636       if test x-L = "$p" ||
17637          test x-R = "$p"; then
17638	 prev=$p
17639	 continue
17640       fi
17641
17642       # Expand the sysroot to ease extracting the directories later.
17643       if test -z "$prev"; then
17644         case $p in
17645         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
17646         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
17647         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
17648         esac
17649       fi
17650       case $p in
17651       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
17652       esac
17653       if test no = "$pre_test_object_deps_done"; then
17654	 case $prev in
17655	 -L | -R)
17656	   # Internal compiler library paths should come after those
17657	   # provided the user.  The postdeps already come after the
17658	   # user supplied libs so there is no need to process them.
17659	   if test -z "$compiler_lib_search_path_CXX"; then
17660	     compiler_lib_search_path_CXX=$prev$p
17661	   else
17662	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
17663	   fi
17664	   ;;
17665	 # The "-l" case would never come before the object being
17666	 # linked, so don't bother handling this case.
17667	 esac
17668       else
17669	 if test -z "$postdeps_CXX"; then
17670	   postdeps_CXX=$prev$p
17671	 else
17672	   postdeps_CXX="${postdeps_CXX} $prev$p"
17673	 fi
17674       fi
17675       prev=
17676       ;;
17677
17678    *.lto.$objext) ;; # Ignore GCC LTO objects
17679    *.$objext)
17680       # This assumes that the test object file only shows up
17681       # once in the compiler output.
17682       if test "$p" = "conftest.$objext"; then
17683	 pre_test_object_deps_done=yes
17684	 continue
17685       fi
17686
17687       if test no = "$pre_test_object_deps_done"; then
17688	 if test -z "$predep_objects_CXX"; then
17689	   predep_objects_CXX=$p
17690	 else
17691	   predep_objects_CXX="$predep_objects_CXX $p"
17692	 fi
17693       else
17694	 if test -z "$postdep_objects_CXX"; then
17695	   postdep_objects_CXX=$p
17696	 else
17697	   postdep_objects_CXX="$postdep_objects_CXX $p"
17698	 fi
17699       fi
17700       ;;
17701
17702    *) ;; # Ignore the rest.
17703
17704    esac
17705  done
17706
17707  # Clean up.
17708  rm -f a.out a.exe
17709else
17710  echo "libtool.m4: error: problem compiling CXX test program"
17711fi
17712
17713$RM -f confest.$objext
17714CFLAGS=$_lt_libdeps_save_CFLAGS
17715
17716# PORTME: override above test on systems where it is broken
17717case $host_os in
17718interix[3-9]*)
17719  # Interix 3.5 installs completely hosed .la files for C++, so rather than
17720  # hack all around it, let's just trust "g++" to DTRT.
17721  predep_objects_CXX=
17722  postdep_objects_CXX=
17723  postdeps_CXX=
17724  ;;
17725esac
17726
17727
17728case " $postdeps_CXX " in
17729*" -lc "*) archive_cmds_need_lc_CXX=no ;;
17730esac
17731 compiler_lib_search_dirs_CXX=
17732if test -n "${compiler_lib_search_path_CXX}"; then
17733 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
17734fi
17735
17736
17737
17738
17739
17740
17741
17742
17743
17744
17745
17746
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766    lt_prog_compiler_wl_CXX=
17767lt_prog_compiler_pic_CXX=
17768lt_prog_compiler_static_CXX=
17769
17770
17771  # C++ specific cases for pic, static, wl, etc.
17772  if test yes = "$GXX"; then
17773    lt_prog_compiler_wl_CXX='-Wl,'
17774    lt_prog_compiler_static_CXX='-static'
17775
17776    case $host_os in
17777    aix*)
17778      # All AIX code is PIC.
17779      if test ia64 = "$host_cpu"; then
17780	# AIX 5 now supports IA64 processor
17781	lt_prog_compiler_static_CXX='-Bstatic'
17782      fi
17783      lt_prog_compiler_pic_CXX='-fPIC'
17784      ;;
17785
17786    amigaos*)
17787      case $host_cpu in
17788      powerpc)
17789            # see comment about AmigaOS4 .so support
17790            lt_prog_compiler_pic_CXX='-fPIC'
17791        ;;
17792      m68k)
17793            # FIXME: we need at least 68020 code to build shared libraries, but
17794            # adding the '-m68020' flag to GCC prevents building anything better,
17795            # like '-m68040'.
17796            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17797        ;;
17798      esac
17799      ;;
17800
17801    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17802      # PIC is the default for these OSes.
17803      ;;
17804    mingw* | cygwin* | os2* | pw32* | cegcc*)
17805      # This hack is so that the source file can tell whether it is being
17806      # built for inclusion in a dll (and should export symbols for example).
17807      # Although the cygwin gcc ignores -fPIC, still need this for old-style
17808      # (--disable-auto-import) libraries
17809      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17810      case $host_os in
17811      os2*)
17812	lt_prog_compiler_static_CXX='$wl-static'
17813	;;
17814      esac
17815      ;;
17816    darwin* | rhapsody*)
17817      # PIC is the default on this platform
17818      # Common symbols not allowed in MH_DYLIB files
17819      lt_prog_compiler_pic_CXX='-fno-common'
17820      ;;
17821    *djgpp*)
17822      # DJGPP does not support shared libraries at all
17823      lt_prog_compiler_pic_CXX=
17824      ;;
17825    haiku*)
17826      # PIC is the default for Haiku.
17827      # The "-static" flag exists, but is broken.
17828      lt_prog_compiler_static_CXX=
17829      ;;
17830    interix[3-9]*)
17831      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17832      # Instead, we relocate shared libraries at runtime.
17833      ;;
17834    sysv4*MP*)
17835      if test -d /usr/nec; then
17836	lt_prog_compiler_pic_CXX=-Kconform_pic
17837      fi
17838      ;;
17839    hpux*)
17840      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17841      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
17842      # sets the default TLS model and affects inlining.
17843      case $host_cpu in
17844      hppa*64*)
17845	;;
17846      *)
17847	lt_prog_compiler_pic_CXX='-fPIC'
17848	;;
17849      esac
17850      ;;
17851    *qnx* | *nto*)
17852      # QNX uses GNU C++, but need to define -shared option too, otherwise
17853      # it will coredump.
17854      lt_prog_compiler_pic_CXX='-fPIC -shared'
17855      ;;
17856    *)
17857      lt_prog_compiler_pic_CXX='-fPIC'
17858      ;;
17859    esac
17860  else
17861    case $host_os in
17862      aix[4-9]*)
17863	# All AIX code is PIC.
17864	if test ia64 = "$host_cpu"; then
17865	  # AIX 5 now supports IA64 processor
17866	  lt_prog_compiler_static_CXX='-Bstatic'
17867	else
17868	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17869	fi
17870	;;
17871      chorus*)
17872	case $cc_basename in
17873	cxch68*)
17874	  # Green Hills C++ Compiler
17875	  # _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"
17876	  ;;
17877	esac
17878	;;
17879      mingw* | cygwin* | os2* | pw32* | cegcc*)
17880	# This hack is so that the source file can tell whether it is being
17881	# built for inclusion in a dll (and should export symbols for example).
17882	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17883	;;
17884      dgux*)
17885	case $cc_basename in
17886	  ec++*)
17887	    lt_prog_compiler_pic_CXX='-KPIC'
17888	    ;;
17889	  ghcx*)
17890	    # Green Hills C++ Compiler
17891	    lt_prog_compiler_pic_CXX='-pic'
17892	    ;;
17893	  *)
17894	    ;;
17895	esac
17896	;;
17897      freebsd* | dragonfly*)
17898	# FreeBSD uses GNU C++
17899	;;
17900      hpux9* | hpux10* | hpux11*)
17901	case $cc_basename in
17902	  CC*)
17903	    lt_prog_compiler_wl_CXX='-Wl,'
17904	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
17905	    if test ia64 != "$host_cpu"; then
17906	      lt_prog_compiler_pic_CXX='+Z'
17907	    fi
17908	    ;;
17909	  aCC*)
17910	    lt_prog_compiler_wl_CXX='-Wl,'
17911	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
17912	    case $host_cpu in
17913	    hppa*64*|ia64*)
17914	      # +Z the default
17915	      ;;
17916	    *)
17917	      lt_prog_compiler_pic_CXX='+Z'
17918	      ;;
17919	    esac
17920	    ;;
17921	  *)
17922	    ;;
17923	esac
17924	;;
17925      interix*)
17926	# This is c89, which is MS Visual C++ (no shared libs)
17927	# Anyone wants to do a port?
17928	;;
17929      irix5* | irix6* | nonstopux*)
17930	case $cc_basename in
17931	  CC*)
17932	    lt_prog_compiler_wl_CXX='-Wl,'
17933	    lt_prog_compiler_static_CXX='-non_shared'
17934	    # CC pic flag -KPIC is the default.
17935	    ;;
17936	  *)
17937	    ;;
17938	esac
17939	;;
17940      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17941	case $cc_basename in
17942	  KCC*)
17943	    # KAI C++ Compiler
17944	    lt_prog_compiler_wl_CXX='--backend -Wl,'
17945	    lt_prog_compiler_pic_CXX='-fPIC'
17946	    ;;
17947	  ecpc* )
17948	    # old Intel C++ for x86_64, which still supported -KPIC.
17949	    lt_prog_compiler_wl_CXX='-Wl,'
17950	    lt_prog_compiler_pic_CXX='-KPIC'
17951	    lt_prog_compiler_static_CXX='-static'
17952	    ;;
17953	  icpc* )
17954	    # Intel C++, used to be incompatible with GCC.
17955	    # ICC 10 doesn't accept -KPIC any more.
17956	    lt_prog_compiler_wl_CXX='-Wl,'
17957	    lt_prog_compiler_pic_CXX='-fPIC'
17958	    lt_prog_compiler_static_CXX='-static'
17959	    ;;
17960	  pgCC* | pgcpp*)
17961	    # Portland Group C++ compiler
17962	    lt_prog_compiler_wl_CXX='-Wl,'
17963	    lt_prog_compiler_pic_CXX='-fpic'
17964	    lt_prog_compiler_static_CXX='-Bstatic'
17965	    ;;
17966	  cxx*)
17967	    # Compaq C++
17968	    # Make sure the PIC flag is empty.  It appears that all Alpha
17969	    # Linux and Compaq Tru64 Unix objects are PIC.
17970	    lt_prog_compiler_pic_CXX=
17971	    lt_prog_compiler_static_CXX='-non_shared'
17972	    ;;
17973	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
17974	    # IBM XL 8.0, 9.0 on PPC and BlueGene
17975	    lt_prog_compiler_wl_CXX='-Wl,'
17976	    lt_prog_compiler_pic_CXX='-qpic'
17977	    lt_prog_compiler_static_CXX='-qstaticlink'
17978	    ;;
17979	  *)
17980	    case `$CC -V 2>&1 | sed 5q` in
17981	    *Sun\ C*)
17982	      # Sun C++ 5.9
17983	      lt_prog_compiler_pic_CXX='-KPIC'
17984	      lt_prog_compiler_static_CXX='-Bstatic'
17985	      lt_prog_compiler_wl_CXX='-Qoption ld '
17986	      ;;
17987	    esac
17988	    ;;
17989	esac
17990	;;
17991      lynxos*)
17992	;;
17993      m88k*)
17994	;;
17995      mvs*)
17996	case $cc_basename in
17997	  cxx*)
17998	    lt_prog_compiler_pic_CXX='-W c,exportall'
17999	    ;;
18000	  *)
18001	    ;;
18002	esac
18003	;;
18004      netbsd* | netbsdelf*-gnu)
18005	;;
18006      *qnx* | *nto*)
18007        # QNX uses GNU C++, but need to define -shared option too, otherwise
18008        # it will coredump.
18009        lt_prog_compiler_pic_CXX='-fPIC -shared'
18010        ;;
18011      osf3* | osf4* | osf5*)
18012	case $cc_basename in
18013	  KCC*)
18014	    lt_prog_compiler_wl_CXX='--backend -Wl,'
18015	    ;;
18016	  RCC*)
18017	    # Rational C++ 2.4.1
18018	    lt_prog_compiler_pic_CXX='-pic'
18019	    ;;
18020	  cxx*)
18021	    # Digital/Compaq C++
18022	    lt_prog_compiler_wl_CXX='-Wl,'
18023	    # Make sure the PIC flag is empty.  It appears that all Alpha
18024	    # Linux and Compaq Tru64 Unix objects are PIC.
18025	    lt_prog_compiler_pic_CXX=
18026	    lt_prog_compiler_static_CXX='-non_shared'
18027	    ;;
18028	  *)
18029	    ;;
18030	esac
18031	;;
18032      psos*)
18033	;;
18034      solaris*)
18035	case $cc_basename in
18036	  CC* | sunCC*)
18037	    # Sun C++ 4.2, 5.x and Centerline C++
18038	    lt_prog_compiler_pic_CXX='-KPIC'
18039	    lt_prog_compiler_static_CXX='-Bstatic'
18040	    lt_prog_compiler_wl_CXX='-Qoption ld '
18041	    ;;
18042	  gcx*)
18043	    # Green Hills C++ Compiler
18044	    lt_prog_compiler_pic_CXX='-PIC'
18045	    ;;
18046	  *)
18047	    ;;
18048	esac
18049	;;
18050      sunos4*)
18051	case $cc_basename in
18052	  CC*)
18053	    # Sun C++ 4.x
18054	    lt_prog_compiler_pic_CXX='-pic'
18055	    lt_prog_compiler_static_CXX='-Bstatic'
18056	    ;;
18057	  lcc*)
18058	    # Lucid
18059	    lt_prog_compiler_pic_CXX='-pic'
18060	    ;;
18061	  *)
18062	    ;;
18063	esac
18064	;;
18065      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18066	case $cc_basename in
18067	  CC*)
18068	    lt_prog_compiler_wl_CXX='-Wl,'
18069	    lt_prog_compiler_pic_CXX='-KPIC'
18070	    lt_prog_compiler_static_CXX='-Bstatic'
18071	    ;;
18072	esac
18073	;;
18074      tandem*)
18075	case $cc_basename in
18076	  NCC*)
18077	    # NonStop-UX NCC 3.20
18078	    lt_prog_compiler_pic_CXX='-KPIC'
18079	    ;;
18080	  *)
18081	    ;;
18082	esac
18083	;;
18084      vxworks*)
18085	;;
18086      *)
18087	lt_prog_compiler_can_build_shared_CXX=no
18088	;;
18089    esac
18090  fi
18091
18092case $host_os in
18093  # For platforms that do not support PIC, -DPIC is meaningless:
18094  *djgpp*)
18095    lt_prog_compiler_pic_CXX=
18096    ;;
18097  *)
18098    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18099    ;;
18100esac
18101
18102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18103$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18104if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
18105  $as_echo_n "(cached) " >&6
18106else
18107  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
18108fi
18109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
18110$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
18111lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
18112
18113#
18114# Check to make sure the PIC flag actually works.
18115#
18116if test -n "$lt_prog_compiler_pic_CXX"; then
18117  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18118$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
18119if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
18120  $as_echo_n "(cached) " >&6
18121else
18122  lt_cv_prog_compiler_pic_works_CXX=no
18123   ac_outfile=conftest.$ac_objext
18124   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18125   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
18126   # Insert the option either (1) after the last *FLAGS variable, or
18127   # (2) before a word containing "conftest.", or (3) at the end.
18128   # Note that $ac_compile itself does not contain backslashes and begins
18129   # with a dollar sign (not a hyphen), so the echo should work correctly.
18130   # The option is referenced via a variable to avoid confusing sed.
18131   lt_compile=`echo "$ac_compile" | $SED \
18132   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18133   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18134   -e 's:$: $lt_compiler_flag:'`
18135   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18136   (eval "$lt_compile" 2>conftest.err)
18137   ac_status=$?
18138   cat conftest.err >&5
18139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18140   if (exit $ac_status) && test -s "$ac_outfile"; then
18141     # The compiler can only warn and ignore the option if not recognized
18142     # So say no if there are warnings other than the usual output.
18143     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18144     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18145     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18146       lt_cv_prog_compiler_pic_works_CXX=yes
18147     fi
18148   fi
18149   $RM conftest*
18150
18151fi
18152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18153$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
18154
18155if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
18156    case $lt_prog_compiler_pic_CXX in
18157     "" | " "*) ;;
18158     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18159     esac
18160else
18161    lt_prog_compiler_pic_CXX=
18162     lt_prog_compiler_can_build_shared_CXX=no
18163fi
18164
18165fi
18166
18167
18168
18169
18170
18171#
18172# Check to make sure the static flag actually works.
18173#
18174wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18176$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18177if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
18178  $as_echo_n "(cached) " >&6
18179else
18180  lt_cv_prog_compiler_static_works_CXX=no
18181   save_LDFLAGS=$LDFLAGS
18182   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18183   echo "$lt_simple_link_test_code" > conftest.$ac_ext
18184   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18185     # The linker can only warn and ignore the option if not recognized
18186     # So say no if there are warnings
18187     if test -s conftest.err; then
18188       # Append any errors to the config.log.
18189       cat conftest.err 1>&5
18190       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18191       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18192       if diff conftest.exp conftest.er2 >/dev/null; then
18193         lt_cv_prog_compiler_static_works_CXX=yes
18194       fi
18195     else
18196       lt_cv_prog_compiler_static_works_CXX=yes
18197     fi
18198   fi
18199   $RM -r conftest*
18200   LDFLAGS=$save_LDFLAGS
18201
18202fi
18203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18204$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18205
18206if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
18207    :
18208else
18209    lt_prog_compiler_static_CXX=
18210fi
18211
18212
18213
18214
18215    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18216$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18217if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
18218  $as_echo_n "(cached) " >&6
18219else
18220  lt_cv_prog_compiler_c_o_CXX=no
18221   $RM -r conftest 2>/dev/null
18222   mkdir conftest
18223   cd conftest
18224   mkdir out
18225   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18226
18227   lt_compiler_flag="-o out/conftest2.$ac_objext"
18228   # Insert the option either (1) after the last *FLAGS variable, or
18229   # (2) before a word containing "conftest.", or (3) at the end.
18230   # Note that $ac_compile itself does not contain backslashes and begins
18231   # with a dollar sign (not a hyphen), so the echo should work correctly.
18232   lt_compile=`echo "$ac_compile" | $SED \
18233   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18234   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18235   -e 's:$: $lt_compiler_flag:'`
18236   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18237   (eval "$lt_compile" 2>out/conftest.err)
18238   ac_status=$?
18239   cat out/conftest.err >&5
18240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18241   if (exit $ac_status) && test -s out/conftest2.$ac_objext
18242   then
18243     # The compiler can only warn and ignore the option if not recognized
18244     # So say no if there are warnings
18245     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18246     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18247     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18248       lt_cv_prog_compiler_c_o_CXX=yes
18249     fi
18250   fi
18251   chmod u+w . 2>&5
18252   $RM conftest*
18253   # SGI C++ compiler will create directory out/ii_files/ for
18254   # template instantiation
18255   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18256   $RM out/* && rmdir out
18257   cd ..
18258   $RM -r conftest
18259   $RM conftest*
18260
18261fi
18262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18263$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18264
18265
18266
18267    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18268$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18269if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
18270  $as_echo_n "(cached) " >&6
18271else
18272  lt_cv_prog_compiler_c_o_CXX=no
18273   $RM -r conftest 2>/dev/null
18274   mkdir conftest
18275   cd conftest
18276   mkdir out
18277   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18278
18279   lt_compiler_flag="-o out/conftest2.$ac_objext"
18280   # Insert the option either (1) after the last *FLAGS variable, or
18281   # (2) before a word containing "conftest.", or (3) at the end.
18282   # Note that $ac_compile itself does not contain backslashes and begins
18283   # with a dollar sign (not a hyphen), so the echo should work correctly.
18284   lt_compile=`echo "$ac_compile" | $SED \
18285   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18286   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18287   -e 's:$: $lt_compiler_flag:'`
18288   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18289   (eval "$lt_compile" 2>out/conftest.err)
18290   ac_status=$?
18291   cat out/conftest.err >&5
18292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18293   if (exit $ac_status) && test -s out/conftest2.$ac_objext
18294   then
18295     # The compiler can only warn and ignore the option if not recognized
18296     # So say no if there are warnings
18297     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18298     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18299     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18300       lt_cv_prog_compiler_c_o_CXX=yes
18301     fi
18302   fi
18303   chmod u+w . 2>&5
18304   $RM conftest*
18305   # SGI C++ compiler will create directory out/ii_files/ for
18306   # template instantiation
18307   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18308   $RM out/* && rmdir out
18309   cd ..
18310   $RM -r conftest
18311   $RM conftest*
18312
18313fi
18314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18315$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18316
18317
18318
18319
18320hard_links=nottested
18321if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
18322  # do not overwrite the value of need_locks provided by the user
18323  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18324$as_echo_n "checking if we can lock with hard links... " >&6; }
18325  hard_links=yes
18326  $RM conftest*
18327  ln conftest.a conftest.b 2>/dev/null && hard_links=no
18328  touch conftest.a
18329  ln conftest.a conftest.b 2>&5 || hard_links=no
18330  ln conftest.a conftest.b 2>/dev/null && hard_links=no
18331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18332$as_echo "$hard_links" >&6; }
18333  if test no = "$hard_links"; then
18334    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
18335$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
18336    need_locks=warn
18337  fi
18338else
18339  need_locks=no
18340fi
18341
18342
18343
18344    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18345$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18346
18347  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18348  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18349  case $host_os in
18350  aix[4-9]*)
18351    # If we're using GNU nm, then we don't want the "-C" option.
18352    # -C means demangle to GNU nm, but means don't demangle to AIX nm.
18353    # Without the "-l" option, or with the "-B" option, AIX nm treats
18354    # weak defined symbols like other global defined symbols, whereas
18355    # GNU nm marks them as "W".
18356    # While the 'weak' keyword is ignored in the Export File, we need
18357    # it in the Import File for the 'aix-soname' feature, so we have
18358    # to replace the "-B" option with "-P" for AIX nm.
18359    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18360      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
18361    else
18362      export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
18363    fi
18364    ;;
18365  pw32*)
18366    export_symbols_cmds_CXX=$ltdll_cmds
18367    ;;
18368  cygwin* | mingw* | cegcc*)
18369    case $cc_basename in
18370    cl*)
18371      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
18372      ;;
18373    *)
18374      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
18375      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
18376      ;;
18377    esac
18378    ;;
18379  linux* | k*bsd*-gnu | gnu*)
18380    link_all_deplibs_CXX=no
18381    ;;
18382  *)
18383    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18384    ;;
18385  esac
18386
18387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18388$as_echo "$ld_shlibs_CXX" >&6; }
18389test no = "$ld_shlibs_CXX" && can_build_shared=no
18390
18391with_gnu_ld_CXX=$with_gnu_ld
18392
18393
18394
18395
18396
18397
18398#
18399# Do we need to explicitly link libc?
18400#
18401case "x$archive_cmds_need_lc_CXX" in
18402x|xyes)
18403  # Assume -lc should be added
18404  archive_cmds_need_lc_CXX=yes
18405
18406  if test yes,yes = "$GCC,$enable_shared"; then
18407    case $archive_cmds_CXX in
18408    *'~'*)
18409      # FIXME: we may have to deal with multi-command sequences.
18410      ;;
18411    '$CC '*)
18412      # Test whether the compiler implicitly links with -lc since on some
18413      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18414      # to ld, don't add -lc before -lgcc.
18415      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18416$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18417if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
18418  $as_echo_n "(cached) " >&6
18419else
18420  $RM conftest*
18421	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18422
18423	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18424  (eval $ac_compile) 2>&5
18425  ac_status=$?
18426  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18427  test $ac_status = 0; } 2>conftest.err; then
18428	  soname=conftest
18429	  lib=conftest
18430	  libobjs=conftest.$ac_objext
18431	  deplibs=
18432	  wl=$lt_prog_compiler_wl_CXX
18433	  pic_flag=$lt_prog_compiler_pic_CXX
18434	  compiler_flags=-v
18435	  linker_flags=-v
18436	  verstring=
18437	  output_objdir=.
18438	  libname=conftest
18439	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18440	  allow_undefined_flag_CXX=
18441	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18442  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18443  ac_status=$?
18444  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18445  test $ac_status = 0; }
18446	  then
18447	    lt_cv_archive_cmds_need_lc_CXX=no
18448	  else
18449	    lt_cv_archive_cmds_need_lc_CXX=yes
18450	  fi
18451	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18452	else
18453	  cat conftest.err 1>&5
18454	fi
18455	$RM conftest*
18456
18457fi
18458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
18459$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
18460      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
18461      ;;
18462    esac
18463  fi
18464  ;;
18465esac
18466
18467
18468
18469
18470
18471
18472
18473
18474
18475
18476
18477
18478
18479
18480
18481
18482
18483
18484
18485
18486
18487
18488
18489
18490
18491
18492
18493
18494
18495
18496
18497
18498
18499
18500
18501
18502
18503
18504
18505
18506
18507
18508
18509
18510
18511
18512
18513
18514
18515
18516
18517
18518
18519
18520
18521
18522
18523
18524
18525
18526
18527
18528    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18529$as_echo_n "checking dynamic linker characteristics... " >&6; }
18530
18531library_names_spec=
18532libname_spec='lib$name'
18533soname_spec=
18534shrext_cmds=.so
18535postinstall_cmds=
18536postuninstall_cmds=
18537finish_cmds=
18538finish_eval=
18539shlibpath_var=
18540shlibpath_overrides_runpath=unknown
18541version_type=none
18542dynamic_linker="$host_os ld.so"
18543sys_lib_dlsearch_path_spec="/lib /usr/lib"
18544need_lib_prefix=unknown
18545hardcode_into_libs=no
18546
18547# when you set need_version to no, make sure it does not cause -set_version
18548# flags to be left without arguments
18549need_version=unknown
18550
18551
18552
18553case $host_os in
18554aix3*)
18555  version_type=linux # correct to gnu/linux during the next big refactor
18556  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
18557  shlibpath_var=LIBPATH
18558
18559  # AIX 3 has no versioning support, so we append a major version to the name.
18560  soname_spec='$libname$release$shared_ext$major'
18561  ;;
18562
18563aix[4-9]*)
18564  version_type=linux # correct to gnu/linux during the next big refactor
18565  need_lib_prefix=no
18566  need_version=no
18567  hardcode_into_libs=yes
18568  if test ia64 = "$host_cpu"; then
18569    # AIX 5 supports IA64
18570    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
18571    shlibpath_var=LD_LIBRARY_PATH
18572  else
18573    # With GCC up to 2.95.x, collect2 would create an import file
18574    # for dependence libraries.  The import file would start with
18575    # the line '#! .'.  This would cause the generated library to
18576    # depend on '.', always an invalid library.  This was fixed in
18577    # development snapshots of GCC prior to 3.0.
18578    case $host_os in
18579      aix4 | aix4.[01] | aix4.[01].*)
18580      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18581	   echo ' yes '
18582	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
18583	:
18584      else
18585	can_build_shared=no
18586      fi
18587      ;;
18588    esac
18589    # Using Import Files as archive members, it is possible to support
18590    # filename-based versioning of shared library archives on AIX. While
18591    # this would work for both with and without runtime linking, it will
18592    # prevent static linking of such archives. So we do filename-based
18593    # shared library versioning with .so extension only, which is used
18594    # when both runtime linking and shared linking is enabled.
18595    # Unfortunately, runtime linking may impact performance, so we do
18596    # not want this to be the default eventually. Also, we use the
18597    # versioned .so libs for executables only if there is the -brtl
18598    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
18599    # To allow for filename-based versioning support, we need to create
18600    # libNAME.so.V as an archive file, containing:
18601    # *) an Import File, referring to the versioned filename of the
18602    #    archive as well as the shared archive member, telling the
18603    #    bitwidth (32 or 64) of that shared object, and providing the
18604    #    list of exported symbols of that shared object, eventually
18605    #    decorated with the 'weak' keyword
18606    # *) the shared object with the F_LOADONLY flag set, to really avoid
18607    #    it being seen by the linker.
18608    # At run time we better use the real file rather than another symlink,
18609    # but for link time we create the symlink libNAME.so -> libNAME.so.V
18610
18611    case $with_aix_soname,$aix_use_runtimelinking in
18612    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
18613    # soname into executable. Probably we can add versioning support to
18614    # collect2, so additional links can be useful in future.
18615    aix,yes) # traditional libtool
18616      dynamic_linker='AIX unversionable lib.so'
18617      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18618      # instead of lib<name>.a to let people know that these are not
18619      # typical AIX shared libraries.
18620      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18621      ;;
18622    aix,no) # traditional AIX only
18623      dynamic_linker='AIX lib.a(lib.so.V)'
18624      # We preserve .a as extension for shared libraries through AIX4.2
18625      # and later when we are not doing run time linking.
18626      library_names_spec='$libname$release.a $libname.a'
18627      soname_spec='$libname$release$shared_ext$major'
18628      ;;
18629    svr4,*) # full svr4 only
18630      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
18631      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18632      # We do not specify a path in Import Files, so LIBPATH fires.
18633      shlibpath_overrides_runpath=yes
18634      ;;
18635    *,yes) # both, prefer svr4
18636      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
18637      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18638      # unpreferred sharedlib libNAME.a needs extra handling
18639      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
18640      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
18641      # We do not specify a path in Import Files, so LIBPATH fires.
18642      shlibpath_overrides_runpath=yes
18643      ;;
18644    *,no) # both, prefer aix
18645      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
18646      library_names_spec='$libname$release.a $libname.a'
18647      soname_spec='$libname$release$shared_ext$major'
18648      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
18649      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
18650      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
18651      ;;
18652    esac
18653    shlibpath_var=LIBPATH
18654  fi
18655  ;;
18656
18657amigaos*)
18658  case $host_cpu in
18659  powerpc)
18660    # Since July 2007 AmigaOS4 officially supports .so libraries.
18661    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18662    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18663    ;;
18664  m68k)
18665    library_names_spec='$libname.ixlibrary $libname.a'
18666    # Create ${libname}_ixlibrary.a entries in /sys/libs.
18667    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
18668    ;;
18669  esac
18670  ;;
18671
18672beos*)
18673  library_names_spec='$libname$shared_ext'
18674  dynamic_linker="$host_os ld.so"
18675  shlibpath_var=LIBRARY_PATH
18676  ;;
18677
18678bsdi[45]*)
18679  version_type=linux # correct to gnu/linux during the next big refactor
18680  need_version=no
18681  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18682  soname_spec='$libname$release$shared_ext$major'
18683  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18684  shlibpath_var=LD_LIBRARY_PATH
18685  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18686  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18687  # the default ld.so.conf also contains /usr/contrib/lib and
18688  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18689  # libtool to hard-code these into programs
18690  ;;
18691
18692cygwin* | mingw* | pw32* | cegcc*)
18693  version_type=windows
18694  shrext_cmds=.dll
18695  need_version=no
18696  need_lib_prefix=no
18697
18698  case $GCC,$cc_basename in
18699  yes,*)
18700    # gcc
18701    library_names_spec='$libname.dll.a'
18702    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18703    postinstall_cmds='base_file=`basename \$file`~
18704      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18705      dldir=$destdir/`dirname \$dlpath`~
18706      test -d \$dldir || mkdir -p \$dldir~
18707      $install_prog $dir/$dlname \$dldir/$dlname~
18708      chmod a+x \$dldir/$dlname~
18709      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18710        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18711      fi'
18712    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18713      dlpath=$dir/\$dldll~
18714       $RM \$dlpath'
18715    shlibpath_overrides_runpath=yes
18716
18717    case $host_os in
18718    cygwin*)
18719      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18720      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18721
18722      ;;
18723    mingw* | cegcc*)
18724      # MinGW DLLs use traditional 'lib' prefix
18725      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18726      ;;
18727    pw32*)
18728      # pw32 DLLs use 'pw' prefix rather than 'lib'
18729      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18730      ;;
18731    esac
18732    dynamic_linker='Win32 ld.exe'
18733    ;;
18734
18735  *,cl*)
18736    # Native MSVC
18737    libname_spec='$name'
18738    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18739    library_names_spec='$libname.dll.lib'
18740
18741    case $build_os in
18742    mingw*)
18743      sys_lib_search_path_spec=
18744      lt_save_ifs=$IFS
18745      IFS=';'
18746      for lt_path in $LIB
18747      do
18748        IFS=$lt_save_ifs
18749        # Let DOS variable expansion print the short 8.3 style file name.
18750        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
18751        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
18752      done
18753      IFS=$lt_save_ifs
18754      # Convert to MSYS style.
18755      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
18756      ;;
18757    cygwin*)
18758      # Convert to unix form, then to dos form, then back to unix form
18759      # but this time dos style (no spaces!) so that the unix form looks
18760      # like /cygdrive/c/PROGRA~1:/cygdr...
18761      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
18762      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
18763      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18764      ;;
18765    *)
18766      sys_lib_search_path_spec=$LIB
18767      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18768        # It is most probably a Windows format PATH.
18769        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18770      else
18771        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18772      fi
18773      # FIXME: find the short name or the path components, as spaces are
18774      # common. (e.g. "Program Files" -> "PROGRA~1")
18775      ;;
18776    esac
18777
18778    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18779    postinstall_cmds='base_file=`basename \$file`~
18780      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18781      dldir=$destdir/`dirname \$dlpath`~
18782      test -d \$dldir || mkdir -p \$dldir~
18783      $install_prog $dir/$dlname \$dldir/$dlname'
18784    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18785      dlpath=$dir/\$dldll~
18786       $RM \$dlpath'
18787    shlibpath_overrides_runpath=yes
18788    dynamic_linker='Win32 link.exe'
18789    ;;
18790
18791  *)
18792    # Assume MSVC wrapper
18793    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
18794    dynamic_linker='Win32 ld.exe'
18795    ;;
18796  esac
18797  # FIXME: first we should search . and the directory the executable is in
18798  shlibpath_var=PATH
18799  ;;
18800
18801darwin* | rhapsody*)
18802  dynamic_linker="$host_os dyld"
18803  version_type=darwin
18804  need_lib_prefix=no
18805  need_version=no
18806  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
18807  soname_spec='$libname$release$major$shared_ext'
18808  shlibpath_overrides_runpath=yes
18809  shlibpath_var=DYLD_LIBRARY_PATH
18810  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18811
18812  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18813  ;;
18814
18815dgux*)
18816  version_type=linux # correct to gnu/linux during the next big refactor
18817  need_lib_prefix=no
18818  need_version=no
18819  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18820  soname_spec='$libname$release$shared_ext$major'
18821  shlibpath_var=LD_LIBRARY_PATH
18822  ;;
18823
18824freebsd* | dragonfly*)
18825  # DragonFly does not have aout.  When/if they implement a new
18826  # versioning mechanism, adjust this.
18827  if test -x /usr/bin/objformat; then
18828    objformat=`/usr/bin/objformat`
18829  else
18830    case $host_os in
18831    freebsd[23].*) objformat=aout ;;
18832    *) objformat=elf ;;
18833    esac
18834  fi
18835  version_type=freebsd-$objformat
18836  case $version_type in
18837    freebsd-elf*)
18838      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18839      soname_spec='$libname$release$shared_ext$major'
18840      need_version=no
18841      need_lib_prefix=no
18842      ;;
18843    freebsd-*)
18844      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18845      need_version=yes
18846      ;;
18847  esac
18848  shlibpath_var=LD_LIBRARY_PATH
18849  case $host_os in
18850  freebsd2.*)
18851    shlibpath_overrides_runpath=yes
18852    ;;
18853  freebsd3.[01]* | freebsdelf3.[01]*)
18854    shlibpath_overrides_runpath=yes
18855    hardcode_into_libs=yes
18856    ;;
18857  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18858  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18859    shlibpath_overrides_runpath=no
18860    hardcode_into_libs=yes
18861    ;;
18862  *) # from 4.6 on, and DragonFly
18863    shlibpath_overrides_runpath=yes
18864    hardcode_into_libs=yes
18865    ;;
18866  esac
18867  ;;
18868
18869haiku*)
18870  version_type=linux # correct to gnu/linux during the next big refactor
18871  need_lib_prefix=no
18872  need_version=no
18873  dynamic_linker="$host_os runtime_loader"
18874  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18875  soname_spec='$libname$release$shared_ext$major'
18876  shlibpath_var=LIBRARY_PATH
18877  shlibpath_overrides_runpath=no
18878  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18879  hardcode_into_libs=yes
18880  ;;
18881
18882hpux9* | hpux10* | hpux11*)
18883  # Give a soname corresponding to the major version so that dld.sl refuses to
18884  # link against other versions.
18885  version_type=sunos
18886  need_lib_prefix=no
18887  need_version=no
18888  case $host_cpu in
18889  ia64*)
18890    shrext_cmds='.so'
18891    hardcode_into_libs=yes
18892    dynamic_linker="$host_os dld.so"
18893    shlibpath_var=LD_LIBRARY_PATH
18894    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18895    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18896    soname_spec='$libname$release$shared_ext$major'
18897    if test 32 = "$HPUX_IA64_MODE"; then
18898      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18899      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
18900    else
18901      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18902      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
18903    fi
18904    ;;
18905  hppa*64*)
18906    shrext_cmds='.sl'
18907    hardcode_into_libs=yes
18908    dynamic_linker="$host_os dld.sl"
18909    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18910    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18911    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18912    soname_spec='$libname$release$shared_ext$major'
18913    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18914    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18915    ;;
18916  *)
18917    shrext_cmds='.sl'
18918    dynamic_linker="$host_os dld.sl"
18919    shlibpath_var=SHLIB_PATH
18920    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18921    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18922    soname_spec='$libname$release$shared_ext$major'
18923    ;;
18924  esac
18925  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18926  postinstall_cmds='chmod 555 $lib'
18927  # or fails outright, so override atomically:
18928  install_override_mode=555
18929  ;;
18930
18931interix[3-9]*)
18932  version_type=linux # correct to gnu/linux during the next big refactor
18933  need_lib_prefix=no
18934  need_version=no
18935  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18936  soname_spec='$libname$release$shared_ext$major'
18937  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18938  shlibpath_var=LD_LIBRARY_PATH
18939  shlibpath_overrides_runpath=no
18940  hardcode_into_libs=yes
18941  ;;
18942
18943irix5* | irix6* | nonstopux*)
18944  case $host_os in
18945    nonstopux*) version_type=nonstopux ;;
18946    *)
18947	if test yes = "$lt_cv_prog_gnu_ld"; then
18948		version_type=linux # correct to gnu/linux during the next big refactor
18949	else
18950		version_type=irix
18951	fi ;;
18952  esac
18953  need_lib_prefix=no
18954  need_version=no
18955  soname_spec='$libname$release$shared_ext$major'
18956  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
18957  case $host_os in
18958  irix5* | nonstopux*)
18959    libsuff= shlibsuff=
18960    ;;
18961  *)
18962    case $LD in # libtool.m4 will add one of these switches to LD
18963    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18964      libsuff= shlibsuff= libmagic=32-bit;;
18965    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18966      libsuff=32 shlibsuff=N32 libmagic=N32;;
18967    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18968      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18969    *) libsuff= shlibsuff= libmagic=never-match;;
18970    esac
18971    ;;
18972  esac
18973  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18974  shlibpath_overrides_runpath=no
18975  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
18976  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
18977  hardcode_into_libs=yes
18978  ;;
18979
18980# No shared lib support for Linux oldld, aout, or coff.
18981linux*oldld* | linux*aout* | linux*coff*)
18982  dynamic_linker=no
18983  ;;
18984
18985linux*android*)
18986  version_type=none # Android doesn't support versioned libraries.
18987  need_lib_prefix=no
18988  need_version=no
18989  library_names_spec='$libname$release$shared_ext'
18990  soname_spec='$libname$release$shared_ext'
18991  finish_cmds=
18992  shlibpath_var=LD_LIBRARY_PATH
18993  shlibpath_overrides_runpath=yes
18994
18995  # This implies no fast_install, which is unacceptable.
18996  # Some rework will be needed to allow for fast_install
18997  # before this can be enabled.
18998  hardcode_into_libs=yes
18999
19000  dynamic_linker='Android linker'
19001  # Don't embed -rpath directories since the linker doesn't support them.
19002  hardcode_libdir_flag_spec_CXX='-L$libdir'
19003  ;;
19004
19005# This must be glibc/ELF.
19006linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
19007  version_type=linux # correct to gnu/linux during the next big refactor
19008  need_lib_prefix=no
19009  need_version=no
19010  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19011  soname_spec='$libname$release$shared_ext$major'
19012  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19013  shlibpath_var=LD_LIBRARY_PATH
19014  shlibpath_overrides_runpath=no
19015
19016  # Some binutils ld are patched to set DT_RUNPATH
19017  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
19018  $as_echo_n "(cached) " >&6
19019else
19020  lt_cv_shlibpath_overrides_runpath=no
19021    save_LDFLAGS=$LDFLAGS
19022    save_libdir=$libdir
19023    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
19024	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
19025    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19026/* end confdefs.h.  */
19027
19028int
19029main ()
19030{
19031
19032  ;
19033  return 0;
19034}
19035_ACEOF
19036if ac_fn_cxx_try_link "$LINENO"; then :
19037  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
19038  lt_cv_shlibpath_overrides_runpath=yes
19039fi
19040fi
19041rm -f core conftest.err conftest.$ac_objext \
19042    conftest$ac_exeext conftest.$ac_ext
19043    LDFLAGS=$save_LDFLAGS
19044    libdir=$save_libdir
19045
19046fi
19047
19048  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
19049
19050  # This implies no fast_install, which is unacceptable.
19051  # Some rework will be needed to allow for fast_install
19052  # before this can be enabled.
19053  hardcode_into_libs=yes
19054
19055  # Ideally, we could use ldconfig to report *all* directores which are
19056  # searched for libraries, however this is still not possible.  Aside from not
19057  # being certain /sbin/ldconfig is available, command
19058  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
19059  # even though it is searched at run-time.  Try to do the best guess by
19060  # appending ld.so.conf contents (and includes) to the search path.
19061  if test -f /etc/ld.so.conf; then
19062    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
19063    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19064  fi
19065
19066  # We used to test for /lib/ld.so.1 and disable shared libraries on
19067  # powerpc, because MkLinux only supported shared libraries with the
19068  # GNU dynamic linker.  Since this was broken with cross compilers,
19069  # most powerpc-linux boxes support dynamic linking these days and
19070  # people can always --disable-shared, the test was removed, and we
19071  # assume the GNU/Linux dynamic linker is in use.
19072  dynamic_linker='GNU/Linux ld.so'
19073  ;;
19074
19075netbsdelf*-gnu)
19076  version_type=linux
19077  need_lib_prefix=no
19078  need_version=no
19079  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19080  soname_spec='${libname}${release}${shared_ext}$major'
19081  shlibpath_var=LD_LIBRARY_PATH
19082  shlibpath_overrides_runpath=no
19083  hardcode_into_libs=yes
19084  dynamic_linker='NetBSD ld.elf_so'
19085  ;;
19086
19087netbsd*)
19088  version_type=sunos
19089  need_lib_prefix=no
19090  need_version=no
19091  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19092    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19093    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19094    dynamic_linker='NetBSD (a.out) ld.so'
19095  else
19096    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19097    soname_spec='$libname$release$shared_ext$major'
19098    dynamic_linker='NetBSD ld.elf_so'
19099  fi
19100  shlibpath_var=LD_LIBRARY_PATH
19101  shlibpath_overrides_runpath=yes
19102  hardcode_into_libs=yes
19103  ;;
19104
19105newsos6)
19106  version_type=linux # correct to gnu/linux during the next big refactor
19107  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19108  shlibpath_var=LD_LIBRARY_PATH
19109  shlibpath_overrides_runpath=yes
19110  ;;
19111
19112*nto* | *qnx*)
19113  version_type=qnx
19114  need_lib_prefix=no
19115  need_version=no
19116  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19117  soname_spec='$libname$release$shared_ext$major'
19118  shlibpath_var=LD_LIBRARY_PATH
19119  shlibpath_overrides_runpath=no
19120  hardcode_into_libs=yes
19121  dynamic_linker='ldqnx.so'
19122  ;;
19123
19124openbsd* | bitrig*)
19125  version_type=sunos
19126  sys_lib_dlsearch_path_spec=/usr/lib
19127  need_lib_prefix=no
19128  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
19129    need_version=no
19130  else
19131    need_version=yes
19132  fi
19133  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19134  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19135  shlibpath_var=LD_LIBRARY_PATH
19136  shlibpath_overrides_runpath=yes
19137  ;;
19138
19139os2*)
19140  libname_spec='$name'
19141  version_type=windows
19142  shrext_cmds=.dll
19143  need_version=no
19144  need_lib_prefix=no
19145  # OS/2 can only load a DLL with a base name of 8 characters or less.
19146  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
19147    v=$($ECHO $release$versuffix | tr -d .-);
19148    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
19149    $ECHO $n$v`$shared_ext'
19150  library_names_spec='${libname}_dll.$libext'
19151  dynamic_linker='OS/2 ld.exe'
19152  shlibpath_var=BEGINLIBPATH
19153  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19154  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19155  postinstall_cmds='base_file=`basename \$file`~
19156    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
19157    dldir=$destdir/`dirname \$dlpath`~
19158    test -d \$dldir || mkdir -p \$dldir~
19159    $install_prog $dir/$dlname \$dldir/$dlname~
19160    chmod a+x \$dldir/$dlname~
19161    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19162      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19163    fi'
19164  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
19165    dlpath=$dir/\$dldll~
19166    $RM \$dlpath'
19167  ;;
19168
19169osf3* | osf4* | osf5*)
19170  version_type=osf
19171  need_lib_prefix=no
19172  need_version=no
19173  soname_spec='$libname$release$shared_ext$major'
19174  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19175  shlibpath_var=LD_LIBRARY_PATH
19176  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19177  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19178  ;;
19179
19180rdos*)
19181  dynamic_linker=no
19182  ;;
19183
19184solaris*)
19185  version_type=linux # correct to gnu/linux during the next big refactor
19186  need_lib_prefix=no
19187  need_version=no
19188  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19189  soname_spec='$libname$release$shared_ext$major'
19190  shlibpath_var=LD_LIBRARY_PATH
19191  shlibpath_overrides_runpath=yes
19192  hardcode_into_libs=yes
19193  # ldd complains unless libraries are executable
19194  postinstall_cmds='chmod +x $lib'
19195  ;;
19196
19197sunos4*)
19198  version_type=sunos
19199  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19200  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19201  shlibpath_var=LD_LIBRARY_PATH
19202  shlibpath_overrides_runpath=yes
19203  if test yes = "$with_gnu_ld"; then
19204    need_lib_prefix=no
19205  fi
19206  need_version=yes
19207  ;;
19208
19209sysv4 | sysv4.3*)
19210  version_type=linux # correct to gnu/linux during the next big refactor
19211  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19212  soname_spec='$libname$release$shared_ext$major'
19213  shlibpath_var=LD_LIBRARY_PATH
19214  case $host_vendor in
19215    sni)
19216      shlibpath_overrides_runpath=no
19217      need_lib_prefix=no
19218      runpath_var=LD_RUN_PATH
19219      ;;
19220    siemens)
19221      need_lib_prefix=no
19222      ;;
19223    motorola)
19224      need_lib_prefix=no
19225      need_version=no
19226      shlibpath_overrides_runpath=no
19227      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19228      ;;
19229  esac
19230  ;;
19231
19232sysv4*MP*)
19233  if test -d /usr/nec; then
19234    version_type=linux # correct to gnu/linux during the next big refactor
19235    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
19236    soname_spec='$libname$shared_ext.$major'
19237    shlibpath_var=LD_LIBRARY_PATH
19238  fi
19239  ;;
19240
19241sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19242  version_type=sco
19243  need_lib_prefix=no
19244  need_version=no
19245  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
19246  soname_spec='$libname$release$shared_ext$major'
19247  shlibpath_var=LD_LIBRARY_PATH
19248  shlibpath_overrides_runpath=yes
19249  hardcode_into_libs=yes
19250  if test yes = "$with_gnu_ld"; then
19251    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19252  else
19253    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19254    case $host_os in
19255      sco3.2v5*)
19256        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19257	;;
19258    esac
19259  fi
19260  sys_lib_dlsearch_path_spec='/usr/lib'
19261  ;;
19262
19263tpf*)
19264  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
19265  version_type=linux # correct to gnu/linux during the next big refactor
19266  need_lib_prefix=no
19267  need_version=no
19268  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19269  shlibpath_var=LD_LIBRARY_PATH
19270  shlibpath_overrides_runpath=no
19271  hardcode_into_libs=yes
19272  ;;
19273
19274uts4*)
19275  version_type=linux # correct to gnu/linux during the next big refactor
19276  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19277  soname_spec='$libname$release$shared_ext$major'
19278  shlibpath_var=LD_LIBRARY_PATH
19279  ;;
19280
19281*)
19282  dynamic_linker=no
19283  ;;
19284esac
19285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19286$as_echo "$dynamic_linker" >&6; }
19287test no = "$dynamic_linker" && can_build_shared=no
19288
19289variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19290if test yes = "$GCC"; then
19291  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19292fi
19293
19294if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
19295  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
19296fi
19297
19298if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
19299  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
19300fi
19301
19302# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
19303configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
19304
19305# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
19306func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
19307
19308# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
19309configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
19310
19311
19312
19313
19314
19315
19316
19317
19318
19319
19320
19321
19322
19323
19324
19325
19326
19327
19328
19329
19330
19331
19332
19333
19334
19335
19336
19337
19338
19339
19340
19341
19342
19343
19344
19345
19346
19347
19348
19349
19350    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19351$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19352hardcode_action_CXX=
19353if test -n "$hardcode_libdir_flag_spec_CXX" ||
19354   test -n "$runpath_var_CXX" ||
19355   test yes = "$hardcode_automatic_CXX"; then
19356
19357  # We can hardcode non-existent directories.
19358  if test no != "$hardcode_direct_CXX" &&
19359     # If the only mechanism to avoid hardcoding is shlibpath_var, we
19360     # have to relink, otherwise we might link with an installed library
19361     # when we should be linking with a yet-to-be-installed one
19362     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
19363     test no != "$hardcode_minus_L_CXX"; then
19364    # Linking always hardcodes the temporary library directory.
19365    hardcode_action_CXX=relink
19366  else
19367    # We can link without hardcoding, and we can hardcode nonexisting dirs.
19368    hardcode_action_CXX=immediate
19369  fi
19370else
19371  # We cannot hardcode anything, or else we can only hardcode existing
19372  # directories.
19373  hardcode_action_CXX=unsupported
19374fi
19375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
19376$as_echo "$hardcode_action_CXX" >&6; }
19377
19378if test relink = "$hardcode_action_CXX" ||
19379   test yes = "$inherit_rpath_CXX"; then
19380  # Fast installation is not supported
19381  enable_fast_install=no
19382elif test yes = "$shlibpath_overrides_runpath" ||
19383     test no = "$enable_shared"; then
19384  # Fast installation is not necessary
19385  enable_fast_install=needless
19386fi
19387
19388
19389
19390
19391
19392
19393
19394  fi # test -n "$compiler"
19395
19396  CC=$lt_save_CC
19397  CFLAGS=$lt_save_CFLAGS
19398  LDCXX=$LD
19399  LD=$lt_save_LD
19400  GCC=$lt_save_GCC
19401  with_gnu_ld=$lt_save_with_gnu_ld
19402  lt_cv_path_LDCXX=$lt_cv_path_LD
19403  lt_cv_path_LD=$lt_save_path_LD
19404  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19405  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19406fi # test yes != "$_lt_caught_CXX_error"
19407
19408ac_ext=c
19409ac_cpp='$CPP $CPPFLAGS'
19410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19412ac_compiler_gnu=$ac_cv_c_compiler_gnu
19413
19414
19415depcc="$CXX"  am_compiler_list=
19416
19417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
19418$as_echo_n "checking dependency style of $depcc... " >&6; }
19419if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
19420  $as_echo_n "(cached) " >&6
19421else
19422  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19423  # We make a subdir and do the tests there.  Otherwise we can end up
19424  # making bogus files that we don't know about and never remove.  For
19425  # instance it was reported that on HP-UX the gcc test will end up
19426  # making a dummy file named 'D' -- because '-MD' means "put the output
19427  # in D".
19428  rm -rf conftest.dir
19429  mkdir conftest.dir
19430  # Copy depcomp to subdir because otherwise we won't find it if we're
19431  # using a relative directory.
19432  cp "$am_depcomp" conftest.dir
19433  cd conftest.dir
19434  # We will build objects and dependencies in a subdirectory because
19435  # it helps to detect inapplicable dependency modes.  For instance
19436  # both Tru64's cc and ICC support -MD to output dependencies as a
19437  # side effect of compilation, but ICC will put the dependencies in
19438  # the current directory while Tru64 will put them in the object
19439  # directory.
19440  mkdir sub
19441
19442  am_cv_CXX_dependencies_compiler_type=none
19443  if test "$am_compiler_list" = ""; then
19444     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19445  fi
19446  am__universal=false
19447  case " $depcc " in #(
19448     *\ -arch\ *\ -arch\ *) am__universal=true ;;
19449     esac
19450
19451  for depmode in $am_compiler_list; do
19452    # Setup a source with many dependencies, because some compilers
19453    # like to wrap large dependency lists on column 80 (with \), and
19454    # we should not choose a depcomp mode which is confused by this.
19455    #
19456    # We need to recreate these files for each test, as the compiler may
19457    # overwrite some of them when testing with obscure command lines.
19458    # This happens at least with the AIX C compiler.
19459    : > sub/conftest.c
19460    for i in 1 2 3 4 5 6; do
19461      echo '#include "conftst'$i'.h"' >> sub/conftest.c
19462      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
19463      # Solaris 10 /bin/sh.
19464      echo '/* dummy */' > sub/conftst$i.h
19465    done
19466    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19467
19468    # We check with '-c' and '-o' for the sake of the "dashmstdout"
19469    # mode.  It turns out that the SunPro C++ compiler does not properly
19470    # handle '-M -o', and we need to detect this.  Also, some Intel
19471    # versions had trouble with output in subdirs.
19472    am__obj=sub/conftest.${OBJEXT-o}
19473    am__minus_obj="-o $am__obj"
19474    case $depmode in
19475    gcc)
19476      # This depmode causes a compiler race in universal mode.
19477      test "$am__universal" = false || continue
19478      ;;
19479    nosideeffect)
19480      # After this tag, mechanisms are not by side-effect, so they'll
19481      # only be used when explicitly requested.
19482      if test "x$enable_dependency_tracking" = xyes; then
19483	continue
19484      else
19485	break
19486      fi
19487      ;;
19488    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
19489      # This compiler won't grok '-c -o', but also, the minuso test has
19490      # not run yet.  These depmodes are late enough in the game, and
19491      # so weak that their functioning should not be impacted.
19492      am__obj=conftest.${OBJEXT-o}
19493      am__minus_obj=
19494      ;;
19495    none) break ;;
19496    esac
19497    if depmode=$depmode \
19498       source=sub/conftest.c object=$am__obj \
19499       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19500       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
19501         >/dev/null 2>conftest.err &&
19502       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
19503       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19504       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
19505       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19506      # icc doesn't choke on unknown options, it will just issue warnings
19507      # or remarks (even with -Werror).  So we grep stderr for any message
19508      # that says an option was ignored or not supported.
19509      # When given -MP, icc 7.0 and 7.1 complain thusly:
19510      #   icc: Command line warning: ignoring option '-M'; no argument required
19511      # The diagnosis changed in icc 8.0:
19512      #   icc: Command line remark: option '-MP' not supported
19513      if (grep 'ignoring option' conftest.err ||
19514          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19515        am_cv_CXX_dependencies_compiler_type=$depmode
19516        break
19517      fi
19518    fi
19519  done
19520
19521  cd ..
19522  rm -rf conftest.dir
19523else
19524  am_cv_CXX_dependencies_compiler_type=none
19525fi
19526
19527fi
19528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
19529$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
19530CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
19531
19532 if
19533  test "x$enable_dependency_tracking" != xno \
19534  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
19535  am__fastdepCXX_TRUE=
19536  am__fastdepCXX_FALSE='#'
19537else
19538  am__fastdepCXX_TRUE='#'
19539  am__fastdepCXX_FALSE=
19540fi
19541
19542
19543
19544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
19545$as_echo_n "checking whether ln -s works... " >&6; }
19546LN_S=$as_ln_s
19547if test "$LN_S" = "ln -s"; then
19548  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19549$as_echo "yes" >&6; }
19550else
19551  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
19552$as_echo "no, using $LN_S" >&6; }
19553fi
19554
19555for ac_prog in gawk mawk nawk awk
19556do
19557  # Extract the first word of "$ac_prog", so it can be a program name with args.
19558set dummy $ac_prog; ac_word=$2
19559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19560$as_echo_n "checking for $ac_word... " >&6; }
19561if ${ac_cv_prog_AWK+:} false; then :
19562  $as_echo_n "(cached) " >&6
19563else
19564  if test -n "$AWK"; then
19565  ac_cv_prog_AWK="$AWK" # Let the user override the test.
19566else
19567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19568for as_dir in $PATH
19569do
19570  IFS=$as_save_IFS
19571  test -z "$as_dir" && as_dir=.
19572    for ac_exec_ext in '' $ac_executable_extensions; do
19573  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19574    ac_cv_prog_AWK="$ac_prog"
19575    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19576    break 2
19577  fi
19578done
19579  done
19580IFS=$as_save_IFS
19581
19582fi
19583fi
19584AWK=$ac_cv_prog_AWK
19585if test -n "$AWK"; then
19586  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
19587$as_echo "$AWK" >&6; }
19588else
19589  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19590$as_echo "no" >&6; }
19591fi
19592
19593
19594  test -n "$AWK" && break
19595done
19596
19597
19598
19599# allow passing a variable `WARNINGFLAGS',
19600#   either when invoking `configure', or when invoking `make'
19601# default to something useful if GCC was detected
19602
19603# Check whether --enable-warnings was given.
19604if test "${enable_warnings+set}" = set; then :
19605  enableval=$enable_warnings; if test "x$GCC" = xyes; then :
19606   : ${WARNINGFLAGS="-Wall -Wextra -Wmissing-prototypes -Wstrict-prototypes -Wnested-externs -Wold-style-definition -Wredundant-decls -Wconversion -Wno-unused-but-set-variable"}
19607fi
19608fi
19609
19610
19611
19612
19613# Check whether --enable-libfl was given.
19614if test "${enable_libfl+set}" = set; then :
19615  enableval=$enable_libfl;
19616else
19617  enable_libfl=yes
19618fi
19619
19620 if test "x$enable_libfl" = xyes; then
19621  ENABLE_LIBFL_TRUE=
19622  ENABLE_LIBFL_FALSE='#'
19623else
19624  ENABLE_LIBFL_TRUE='#'
19625  ENABLE_LIBFL_FALSE=
19626fi
19627
19628
19629# --disable-bootstrap is intended only to workaround problems with bootstrap
19630# (e.g. when cross-compiling flex or when bootstrapping has bugs).
19631# Ideally we should be able to bootstrap even when cross-compiling.
19632# Check whether --enable-bootstrap was given.
19633if test "${enable_bootstrap+set}" = set; then :
19634  enableval=$enable_bootstrap;
19635else
19636  enable_bootstrap=yes
19637fi
19638
19639 if test "x$enable_bootstrap" = xyes; then
19640  ENABLE_BOOTSTRAP_TRUE=
19641  ENABLE_BOOTSTRAP_FALSE='#'
19642else
19643  ENABLE_BOOTSTRAP_TRUE='#'
19644  ENABLE_BOOTSTRAP_FALSE=
19645fi
19646
19647
19648 if test "x$cross_compiling" = xyes; then
19649  CROSS_TRUE=
19650  CROSS_FALSE='#'
19651else
19652  CROSS_TRUE='#'
19653  CROSS_FALSE=
19654fi
19655
19656
19657# Extract the first word of "help2man", so it can be a program name with args.
19658set dummy help2man; ac_word=$2
19659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19660$as_echo_n "checking for $ac_word... " >&6; }
19661if ${ac_cv_path_HELP2MAN+:} false; then :
19662  $as_echo_n "(cached) " >&6
19663else
19664  case $HELP2MAN in
19665  [\\/]* | ?:[\\/]*)
19666  ac_cv_path_HELP2MAN="$HELP2MAN" # Let the user override the test with a path.
19667  ;;
19668  *)
19669  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19670for as_dir in $PATH
19671do
19672  IFS=$as_save_IFS
19673  test -z "$as_dir" && as_dir=.
19674    for ac_exec_ext in '' $ac_executable_extensions; do
19675  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19676    ac_cv_path_HELP2MAN="$as_dir/$ac_word$ac_exec_ext"
19677    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19678    break 2
19679  fi
19680done
19681  done
19682IFS=$as_save_IFS
19683
19684  test -z "$ac_cv_path_HELP2MAN" && ac_cv_path_HELP2MAN="\${top_srcdir}/build-aux/missing help2man"
19685  ;;
19686esac
19687fi
19688HELP2MAN=$ac_cv_path_HELP2MAN
19689if test -n "$HELP2MAN"; then
19690  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HELP2MAN" >&5
19691$as_echo "$HELP2MAN" >&6; }
19692else
19693  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19694$as_echo "no" >&6; }
19695fi
19696
19697
19698  if test "$HELP2MAN" = "\${top_srcdir}/build-aux/missing help2man"; then :
19699  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: help2man: program not found: building man page will not work" >&5
19700$as_echo "$as_me: WARNING: help2man: program not found: building man page will not work" >&2;}
19701
19702fi
19703
19704for ac_prog in gtexi2dvi texi2dvi
19705do
19706  # Extract the first word of "$ac_prog", so it can be a program name with args.
19707set dummy $ac_prog; ac_word=$2
19708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19709$as_echo_n "checking for $ac_word... " >&6; }
19710if ${ac_cv_path_TEXI2DVI+:} false; then :
19711  $as_echo_n "(cached) " >&6
19712else
19713  case $TEXI2DVI in
19714  [\\/]* | ?:[\\/]*)
19715  ac_cv_path_TEXI2DVI="$TEXI2DVI" # Let the user override the test with a path.
19716  ;;
19717  *)
19718  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19719for as_dir in $PATH
19720do
19721  IFS=$as_save_IFS
19722  test -z "$as_dir" && as_dir=.
19723    for ac_exec_ext in '' $ac_executable_extensions; do
19724  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19725    ac_cv_path_TEXI2DVI="$as_dir/$ac_word$ac_exec_ext"
19726    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19727    break 2
19728  fi
19729done
19730  done
19731IFS=$as_save_IFS
19732
19733  ;;
19734esac
19735fi
19736TEXI2DVI=$ac_cv_path_TEXI2DVI
19737if test -n "$TEXI2DVI"; then
19738  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEXI2DVI" >&5
19739$as_echo "$TEXI2DVI" >&6; }
19740else
19741  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19742$as_echo "no" >&6; }
19743fi
19744
19745
19746  test -n "$TEXI2DVI" && break
19747done
19748test -n "$TEXI2DVI" || TEXI2DVI="\${top_srcdir}/build-aux/missing texi2dvi"
19749
19750  if test "$TEXI2DVI" = "\${top_srcdir}/build-aux/missing texi2dvi"; then :
19751  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: texi2dvi: program not found: building pdf version of manual will not work" >&5
19752$as_echo "$as_me: WARNING: texi2dvi: program not found: building pdf version of manual will not work" >&2;}
19753
19754fi
19755
19756# Check for a m4 that supports -P
19757
19758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 that supports -P" >&5
19759$as_echo_n "checking for m4 that supports -P... " >&6; }
19760if ${ac_cv_path_M4+:} false; then :
19761  $as_echo_n "(cached) " >&6
19762else
19763  if test -z "$M4"; then
19764  ac_path_M4_found=false
19765  # Loop through the user's path and test for each of PROGNAME-LIST
19766  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19767for as_dir in $PATH
19768do
19769  IFS=$as_save_IFS
19770  test -z "$as_dir" && as_dir=.
19771    for ac_prog in gm4 gnum4 m4; do
19772    for ac_exec_ext in '' $ac_executable_extensions; do
19773      ac_path_M4="$as_dir/$ac_prog$ac_exec_ext"
19774      as_fn_executable_p "$ac_path_M4" || continue
19775m4out=`echo 'm''4_divnum' | $ac_path_M4 -P`
19776                test "x$m4out" = x0 \
19777                && ac_cv_path_M4=$ac_path_M4 ac_path_M4_found=:
19778      $ac_path_M4_found && break 3
19779    done
19780  done
19781  done
19782IFS=$as_save_IFS
19783  if test -z "$ac_cv_path_M4"; then
19784    as_fn_error $? "could not find m4 that supports -P" "$LINENO" 5
19785  fi
19786else
19787  ac_cv_path_M4=$M4
19788fi
19789
19790fi
19791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_M4" >&5
19792$as_echo "$ac_cv_path_M4" >&6; }
19793M4=$ac_cv_path_M4
19794
19795
19796cat >>confdefs.h <<_ACEOF
19797#define M4 "$M4"
19798_ACEOF
19799
19800
19801# Extract the first word of "indent", so it can be a program name with args.
19802set dummy indent; ac_word=$2
19803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19804$as_echo_n "checking for $ac_word... " >&6; }
19805if ${ac_cv_path_INDENT+:} false; then :
19806  $as_echo_n "(cached) " >&6
19807else
19808  case $INDENT in
19809  [\\/]* | ?:[\\/]*)
19810  ac_cv_path_INDENT="$INDENT" # Let the user override the test with a path.
19811  ;;
19812  *)
19813  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19814for as_dir in $PATH
19815do
19816  IFS=$as_save_IFS
19817  test -z "$as_dir" && as_dir=.
19818    for ac_exec_ext in '' $ac_executable_extensions; do
19819  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19820    ac_cv_path_INDENT="$as_dir/$ac_word$ac_exec_ext"
19821    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19822    break 2
19823  fi
19824done
19825  done
19826IFS=$as_save_IFS
19827
19828  test -z "$ac_cv_path_INDENT" && ac_cv_path_INDENT="\${top_srcdir}/build-aux/missing indent"
19829  ;;
19830esac
19831fi
19832INDENT=$ac_cv_path_INDENT
19833if test -n "$INDENT"; then
19834  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INDENT" >&5
19835$as_echo "$INDENT" >&6; }
19836else
19837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19838$as_echo "no" >&6; }
19839fi
19840
19841
19842  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $INDENT is GNU indent" >&5
19843$as_echo_n "checking if $INDENT is GNU indent... " >&6; }
19844  if $INDENT --version 2>/dev/null | head -n 1 | grep "GNU indent" >/dev/null; then :
19845  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19846$as_echo "yes" >&6; }
19847else
19848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19849$as_echo "no" >&6; }
19850     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $INDENT does not appear to be GNU indent; 'make indent' may not function properly" >&5
19851$as_echo "$as_me: WARNING: $INDENT does not appear to be GNU indent; 'make indent' may not function properly" >&2;}
19852
19853fi
19854
19855# checks for headers
19856
19857for ac_header in regex.h strings.h sys/stat.h sys/wait.h unistd.h
19858do :
19859  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19860ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19861if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19862  cat >>confdefs.h <<_ACEOF
19863#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19864_ACEOF
19865
19866else
19867  as_fn_error $? "required header not found on your system" "$LINENO" 5
19868fi
19869
19870done
19871
19872
19873for ac_header in inttypes.h libintl.h limits.h locale.h malloc.h netinet/in.h
19874do :
19875  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19876ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19877if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19878  cat >>confdefs.h <<_ACEOF
19879#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19880_ACEOF
19881
19882fi
19883
19884done
19885
19886
19887# checks for libraries
19888
19889# The test test-pthread uses libpthread, so we check for it here, but
19890# all we need is the preprocessor symbol defined since we don't need
19891# LIBS to include libpthread for building flex.
19892
19893LIBPTHREAD=''
19894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -lpthread" >&5
19895$as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
19896if ${ac_cv_lib_pthread_pthread_mutex_lock+:} false; then :
19897  $as_echo_n "(cached) " >&6
19898else
19899  ac_check_lib_save_LIBS=$LIBS
19900LIBS="-lpthread  $LIBS"
19901cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19902/* end confdefs.h.  */
19903
19904/* Override any GCC internal prototype to avoid an error.
19905   Use char because int might match the return type of a GCC
19906   builtin and then its argument prototype would still apply.  */
19907#ifdef __cplusplus
19908extern "C"
19909#endif
19910char pthread_mutex_lock ();
19911int
19912main ()
19913{
19914return pthread_mutex_lock ();
19915  ;
19916  return 0;
19917}
19918_ACEOF
19919if ac_fn_c_try_link "$LINENO"; then :
19920  ac_cv_lib_pthread_pthread_mutex_lock=yes
19921else
19922  ac_cv_lib_pthread_pthread_mutex_lock=no
19923fi
19924rm -f core conftest.err conftest.$ac_objext \
19925    conftest$ac_exeext conftest.$ac_ext
19926LIBS=$ac_check_lib_save_LIBS
19927fi
19928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
19929$as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
19930if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = xyes; then :
19931  for ac_header in pthread.h
19932do :
19933  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
19934if test "x$ac_cv_header_pthread_h" = xyes; then :
19935  cat >>confdefs.h <<_ACEOF
19936#define HAVE_PTHREAD_H 1
19937_ACEOF
19938 LIBPTHREAD=-lpthread
19939else
19940  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pthread tests will be skipped" >&5
19941$as_echo "$as_me: WARNING: pthread tests will be skipped" >&2;}
19942fi
19943
19944done
19945
19946else
19947  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pthread tests will be skipped" >&5
19948$as_echo "$as_me: WARNING: pthread tests will be skipped" >&2;}
19949fi
19950
19951
19952
19953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10 in -lm" >&5
19954$as_echo_n "checking for log10 in -lm... " >&6; }
19955if ${ac_cv_lib_m_log10+:} false; then :
19956  $as_echo_n "(cached) " >&6
19957else
19958  ac_check_lib_save_LIBS=$LIBS
19959LIBS="-lm  $LIBS"
19960cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19961/* end confdefs.h.  */
19962
19963/* Override any GCC internal prototype to avoid an error.
19964   Use char because int might match the return type of a GCC
19965   builtin and then its argument prototype would still apply.  */
19966#ifdef __cplusplus
19967extern "C"
19968#endif
19969char log10 ();
19970int
19971main ()
19972{
19973return log10 ();
19974  ;
19975  return 0;
19976}
19977_ACEOF
19978if ac_fn_c_try_link "$LINENO"; then :
19979  ac_cv_lib_m_log10=yes
19980else
19981  ac_cv_lib_m_log10=no
19982fi
19983rm -f core conftest.err conftest.$ac_objext \
19984    conftest$ac_exeext conftest.$ac_ext
19985LIBS=$ac_check_lib_save_LIBS
19986fi
19987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log10" >&5
19988$as_echo "$ac_cv_lib_m_log10" >&6; }
19989if test "x$ac_cv_lib_m_log10" = xyes; then :
19990  cat >>confdefs.h <<_ACEOF
19991#define HAVE_LIBM 1
19992_ACEOF
19993
19994  LIBS="-lm $LIBS"
19995
19996fi
19997
19998
19999# Checks for typedefs, structures, and compiler characteristics.
20000
20001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
20002$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
20003if ${ac_cv_header_stdbool_h+:} false; then :
20004  $as_echo_n "(cached) " >&6
20005else
20006  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20007/* end confdefs.h.  */
20008
20009             #include <stdbool.h>
20010             #ifndef bool
20011              "error: bool is not defined"
20012             #endif
20013             #ifndef false
20014              "error: false is not defined"
20015             #endif
20016             #if false
20017              "error: false is not 0"
20018             #endif
20019             #ifndef true
20020              "error: true is not defined"
20021             #endif
20022             #if true != 1
20023              "error: true is not 1"
20024             #endif
20025             #ifndef __bool_true_false_are_defined
20026              "error: __bool_true_false_are_defined is not defined"
20027             #endif
20028
20029             struct s { _Bool s: 1; _Bool t; } s;
20030
20031             char a[true == 1 ? 1 : -1];
20032             char b[false == 0 ? 1 : -1];
20033             char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20034             char d[(bool) 0.5 == true ? 1 : -1];
20035             /* See body of main program for 'e'.  */
20036             char f[(_Bool) 0.0 == false ? 1 : -1];
20037             char g[true];
20038             char h[sizeof (_Bool)];
20039             char i[sizeof s.t];
20040             enum { j = false, k = true, l = false * true, m = true * 256 };
20041             /* The following fails for
20042                HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
20043             _Bool n[m];
20044             char o[sizeof n == m * sizeof n[0] ? 1 : -1];
20045             char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
20046             /* Catch a bug in an HP-UX C compiler.  See
20047                http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20048                http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
20049              */
20050             _Bool q = true;
20051             _Bool *pq = &q;
20052
20053int
20054main ()
20055{
20056
20057             bool e = &s;
20058             *pq |= q;
20059             *pq |= ! q;
20060             /* Refer to every declared value, to avoid compiler optimizations.  */
20061             return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20062                     + !m + !n + !o + !p + !q + !pq);
20063
20064  ;
20065  return 0;
20066}
20067_ACEOF
20068if ac_fn_c_try_compile "$LINENO"; then :
20069  ac_cv_header_stdbool_h=yes
20070else
20071  ac_cv_header_stdbool_h=no
20072fi
20073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20074fi
20075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
20076$as_echo "$ac_cv_header_stdbool_h" >&6; }
20077   ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
20078if test "x$ac_cv_type__Bool" = xyes; then :
20079
20080cat >>confdefs.h <<_ACEOF
20081#define HAVE__BOOL 1
20082_ACEOF
20083
20084
20085fi
20086
20087
20088if test $ac_cv_header_stdbool_h = yes; then
20089
20090$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
20091
20092fi
20093
20094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
20095$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
20096if ${ac_cv_c_const+:} false; then :
20097  $as_echo_n "(cached) " >&6
20098else
20099  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20100/* end confdefs.h.  */
20101
20102int
20103main ()
20104{
20105
20106#ifndef __cplusplus
20107  /* Ultrix mips cc rejects this sort of thing.  */
20108  typedef int charset[2];
20109  const charset cs = { 0, 0 };
20110  /* SunOS 4.1.1 cc rejects this.  */
20111  char const *const *pcpcc;
20112  char **ppc;
20113  /* NEC SVR4.0.2 mips cc rejects this.  */
20114  struct point {int x, y;};
20115  static struct point const zero = {0,0};
20116  /* AIX XL C 1.02.0.0 rejects this.
20117     It does not let you subtract one const X* pointer from another in
20118     an arm of an if-expression whose if-part is not a constant
20119     expression */
20120  const char *g = "string";
20121  pcpcc = &g + (g ? g-g : 0);
20122  /* HPUX 7.0 cc rejects these. */
20123  ++pcpcc;
20124  ppc = (char**) pcpcc;
20125  pcpcc = (char const *const *) ppc;
20126  { /* SCO 3.2v4 cc rejects this sort of thing.  */
20127    char tx;
20128    char *t = &tx;
20129    char const *s = 0 ? (char *) 0 : (char const *) 0;
20130
20131    *t++ = 0;
20132    if (s) return 0;
20133  }
20134  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20135    int x[] = {25, 17};
20136    const int *foo = &x[0];
20137    ++foo;
20138  }
20139  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20140    typedef const int *iptr;
20141    iptr p = 0;
20142    ++p;
20143  }
20144  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
20145       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20146    struct s { int j; const int *ap[3]; } bx;
20147    struct s *b = &bx; b->j = 5;
20148  }
20149  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20150    const int foo = 10;
20151    if (!foo) return 0;
20152  }
20153  return !cs[0] && !zero.x;
20154#endif
20155
20156  ;
20157  return 0;
20158}
20159_ACEOF
20160if ac_fn_c_try_compile "$LINENO"; then :
20161  ac_cv_c_const=yes
20162else
20163  ac_cv_c_const=no
20164fi
20165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20166fi
20167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
20168$as_echo "$ac_cv_c_const" >&6; }
20169if test $ac_cv_c_const = no; then
20170
20171$as_echo "#define const /**/" >>confdefs.h
20172
20173fi
20174
20175ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
20176if test "x$ac_cv_type_size_t" = xyes; then :
20177
20178else
20179
20180cat >>confdefs.h <<_ACEOF
20181#define size_t unsigned int
20182_ACEOF
20183
20184fi
20185
20186
20187# Checks for library functions.
20188
20189# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
20190# for constant arguments.  Useless!
20191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
20192$as_echo_n "checking for working alloca.h... " >&6; }
20193if ${ac_cv_working_alloca_h+:} false; then :
20194  $as_echo_n "(cached) " >&6
20195else
20196  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20197/* end confdefs.h.  */
20198#include <alloca.h>
20199int
20200main ()
20201{
20202char *p = (char *) alloca (2 * sizeof (int));
20203			  if (p) return 0;
20204  ;
20205  return 0;
20206}
20207_ACEOF
20208if ac_fn_c_try_link "$LINENO"; then :
20209  ac_cv_working_alloca_h=yes
20210else
20211  ac_cv_working_alloca_h=no
20212fi
20213rm -f core conftest.err conftest.$ac_objext \
20214    conftest$ac_exeext conftest.$ac_ext
20215fi
20216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
20217$as_echo "$ac_cv_working_alloca_h" >&6; }
20218if test $ac_cv_working_alloca_h = yes; then
20219
20220$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
20221
20222fi
20223
20224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
20225$as_echo_n "checking for alloca... " >&6; }
20226if ${ac_cv_func_alloca_works+:} false; then :
20227  $as_echo_n "(cached) " >&6
20228else
20229  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20230/* end confdefs.h.  */
20231#ifdef __GNUC__
20232# define alloca __builtin_alloca
20233#else
20234# ifdef _MSC_VER
20235#  include <malloc.h>
20236#  define alloca _alloca
20237# else
20238#  ifdef HAVE_ALLOCA_H
20239#   include <alloca.h>
20240#  else
20241#   ifdef _AIX
20242 #pragma alloca
20243#   else
20244#    ifndef alloca /* predefined by HP cc +Olibcalls */
20245void *alloca (size_t);
20246#    endif
20247#   endif
20248#  endif
20249# endif
20250#endif
20251
20252int
20253main ()
20254{
20255char *p = (char *) alloca (1);
20256				    if (p) return 0;
20257  ;
20258  return 0;
20259}
20260_ACEOF
20261if ac_fn_c_try_link "$LINENO"; then :
20262  ac_cv_func_alloca_works=yes
20263else
20264  ac_cv_func_alloca_works=no
20265fi
20266rm -f core conftest.err conftest.$ac_objext \
20267    conftest$ac_exeext conftest.$ac_ext
20268fi
20269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
20270$as_echo "$ac_cv_func_alloca_works" >&6; }
20271
20272if test $ac_cv_func_alloca_works = yes; then
20273
20274$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
20275
20276else
20277  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
20278# that cause trouble.  Some versions do not even contain alloca or
20279# contain a buggy version.  If you still want to use their alloca,
20280# use ar to extract alloca.o from them instead of compiling alloca.c.
20281
20282ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
20283
20284$as_echo "#define C_ALLOCA 1" >>confdefs.h
20285
20286
20287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
20288$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
20289if ${ac_cv_os_cray+:} false; then :
20290  $as_echo_n "(cached) " >&6
20291else
20292  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20293/* end confdefs.h.  */
20294#if defined CRAY && ! defined CRAY2
20295webecray
20296#else
20297wenotbecray
20298#endif
20299
20300_ACEOF
20301if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20302  $EGREP "webecray" >/dev/null 2>&1; then :
20303  ac_cv_os_cray=yes
20304else
20305  ac_cv_os_cray=no
20306fi
20307rm -f conftest*
20308
20309fi
20310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
20311$as_echo "$ac_cv_os_cray" >&6; }
20312if test $ac_cv_os_cray = yes; then
20313  for ac_func in _getb67 GETB67 getb67; do
20314    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20315ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20316if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20317
20318cat >>confdefs.h <<_ACEOF
20319#define CRAY_STACKSEG_END $ac_func
20320_ACEOF
20321
20322    break
20323fi
20324
20325  done
20326fi
20327
20328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
20329$as_echo_n "checking stack direction for C alloca... " >&6; }
20330if ${ac_cv_c_stack_direction+:} false; then :
20331  $as_echo_n "(cached) " >&6
20332else
20333  if test "$cross_compiling" = yes; then :
20334  ac_cv_c_stack_direction=0
20335else
20336  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20337/* end confdefs.h.  */
20338$ac_includes_default
20339int
20340find_stack_direction (int *addr, int depth)
20341{
20342  int dir, dummy = 0;
20343  if (! addr)
20344    addr = &dummy;
20345  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
20346  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
20347  return dir + dummy;
20348}
20349
20350int
20351main (int argc, char **argv)
20352{
20353  return find_stack_direction (0, argc + !argv + 20) < 0;
20354}
20355_ACEOF
20356if ac_fn_c_try_run "$LINENO"; then :
20357  ac_cv_c_stack_direction=1
20358else
20359  ac_cv_c_stack_direction=-1
20360fi
20361rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20362  conftest.$ac_objext conftest.beam conftest.$ac_ext
20363fi
20364
20365fi
20366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
20367$as_echo "$ac_cv_c_stack_direction" >&6; }
20368cat >>confdefs.h <<_ACEOF
20369#define STACK_DIRECTION $ac_cv_c_stack_direction
20370_ACEOF
20371
20372
20373fi
20374
20375ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
20376if test "x$ac_cv_type_pid_t" = xyes; then :
20377
20378else
20379
20380cat >>confdefs.h <<_ACEOF
20381#define pid_t int
20382_ACEOF
20383
20384fi
20385
20386for ac_header in vfork.h
20387do :
20388  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
20389if test "x$ac_cv_header_vfork_h" = xyes; then :
20390  cat >>confdefs.h <<_ACEOF
20391#define HAVE_VFORK_H 1
20392_ACEOF
20393
20394fi
20395
20396done
20397
20398for ac_func in fork vfork
20399do :
20400  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20401ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20402if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20403  cat >>confdefs.h <<_ACEOF
20404#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20405_ACEOF
20406
20407fi
20408done
20409
20410if test "x$ac_cv_func_fork" = xyes; then
20411  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
20412$as_echo_n "checking for working fork... " >&6; }
20413if ${ac_cv_func_fork_works+:} false; then :
20414  $as_echo_n "(cached) " >&6
20415else
20416  if test "$cross_compiling" = yes; then :
20417  ac_cv_func_fork_works=cross
20418else
20419  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20420/* end confdefs.h.  */
20421$ac_includes_default
20422int
20423main ()
20424{
20425
20426	  /* By Ruediger Kuhlmann. */
20427	  return fork () < 0;
20428
20429  ;
20430  return 0;
20431}
20432_ACEOF
20433if ac_fn_c_try_run "$LINENO"; then :
20434  ac_cv_func_fork_works=yes
20435else
20436  ac_cv_func_fork_works=no
20437fi
20438rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20439  conftest.$ac_objext conftest.beam conftest.$ac_ext
20440fi
20441
20442fi
20443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
20444$as_echo "$ac_cv_func_fork_works" >&6; }
20445
20446else
20447  ac_cv_func_fork_works=$ac_cv_func_fork
20448fi
20449if test "x$ac_cv_func_fork_works" = xcross; then
20450  case $host in
20451    *-*-amigaos* | *-*-msdosdjgpp*)
20452      # Override, as these systems have only a dummy fork() stub
20453      ac_cv_func_fork_works=no
20454      ;;
20455    *)
20456      ac_cv_func_fork_works=yes
20457      ;;
20458  esac
20459  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
20460$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
20461fi
20462ac_cv_func_vfork_works=$ac_cv_func_vfork
20463if test "x$ac_cv_func_vfork" = xyes; then
20464  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
20465$as_echo_n "checking for working vfork... " >&6; }
20466if ${ac_cv_func_vfork_works+:} false; then :
20467  $as_echo_n "(cached) " >&6
20468else
20469  if test "$cross_compiling" = yes; then :
20470  ac_cv_func_vfork_works=cross
20471else
20472  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20473/* end confdefs.h.  */
20474/* Thanks to Paul Eggert for this test.  */
20475$ac_includes_default
20476#include <sys/wait.h>
20477#ifdef HAVE_VFORK_H
20478# include <vfork.h>
20479#endif
20480/* On some sparc systems, changes by the child to local and incoming
20481   argument registers are propagated back to the parent.  The compiler
20482   is told about this with #include <vfork.h>, but some compilers
20483   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
20484   static variable whose address is put into a register that is
20485   clobbered by the vfork.  */
20486static void
20487#ifdef __cplusplus
20488sparc_address_test (int arg)
20489# else
20490sparc_address_test (arg) int arg;
20491#endif
20492{
20493  static pid_t child;
20494  if (!child) {
20495    child = vfork ();
20496    if (child < 0) {
20497      perror ("vfork");
20498      _exit(2);
20499    }
20500    if (!child) {
20501      arg = getpid();
20502      write(-1, "", 0);
20503      _exit (arg);
20504    }
20505  }
20506}
20507
20508int
20509main ()
20510{
20511  pid_t parent = getpid ();
20512  pid_t child;
20513
20514  sparc_address_test (0);
20515
20516  child = vfork ();
20517
20518  if (child == 0) {
20519    /* Here is another test for sparc vfork register problems.  This
20520       test uses lots of local variables, at least as many local
20521       variables as main has allocated so far including compiler
20522       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
20523       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
20524       reuse the register of parent for one of the local variables,
20525       since it will think that parent can't possibly be used any more
20526       in this routine.  Assigning to the local variable will thus
20527       munge parent in the parent process.  */
20528    pid_t
20529      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
20530      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
20531    /* Convince the compiler that p..p7 are live; otherwise, it might
20532       use the same hardware register for all 8 local variables.  */
20533    if (p != p1 || p != p2 || p != p3 || p != p4
20534	|| p != p5 || p != p6 || p != p7)
20535      _exit(1);
20536
20537    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
20538       from child file descriptors.  If the child closes a descriptor
20539       before it execs or exits, this munges the parent's descriptor
20540       as well.  Test for this by closing stdout in the child.  */
20541    _exit(close(fileno(stdout)) != 0);
20542  } else {
20543    int status;
20544    struct stat st;
20545
20546    while (wait(&status) != child)
20547      ;
20548    return (
20549	 /* Was there some problem with vforking?  */
20550	 child < 0
20551
20552	 /* Did the child fail?  (This shouldn't happen.)  */
20553	 || status
20554
20555	 /* Did the vfork/compiler bug occur?  */
20556	 || parent != getpid()
20557
20558	 /* Did the file descriptor bug occur?  */
20559	 || fstat(fileno(stdout), &st) != 0
20560	 );
20561  }
20562}
20563_ACEOF
20564if ac_fn_c_try_run "$LINENO"; then :
20565  ac_cv_func_vfork_works=yes
20566else
20567  ac_cv_func_vfork_works=no
20568fi
20569rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20570  conftest.$ac_objext conftest.beam conftest.$ac_ext
20571fi
20572
20573fi
20574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
20575$as_echo "$ac_cv_func_vfork_works" >&6; }
20576
20577fi;
20578if test "x$ac_cv_func_fork_works" = xcross; then
20579  ac_cv_func_vfork_works=$ac_cv_func_vfork
20580  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
20581$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
20582fi
20583
20584if test "x$ac_cv_func_vfork_works" = xyes; then
20585
20586$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
20587
20588else
20589
20590$as_echo "#define vfork fork" >>confdefs.h
20591
20592fi
20593if test "x$ac_cv_func_fork_works" = xyes; then
20594
20595$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
20596
20597fi
20598
20599for ac_header in stdlib.h
20600do :
20601  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
20602if test "x$ac_cv_header_stdlib_h" = xyes; then :
20603  cat >>confdefs.h <<_ACEOF
20604#define HAVE_STDLIB_H 1
20605_ACEOF
20606
20607fi
20608
20609done
20610
20611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
20612$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
20613if ${ac_cv_func_malloc_0_nonnull+:} false; then :
20614  $as_echo_n "(cached) " >&6
20615else
20616  if test "$cross_compiling" = yes; then :
20617  ac_cv_func_malloc_0_nonnull=no
20618else
20619  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20620/* end confdefs.h.  */
20621#if defined STDC_HEADERS || defined HAVE_STDLIB_H
20622# include <stdlib.h>
20623#else
20624char *malloc ();
20625#endif
20626
20627int
20628main ()
20629{
20630return ! malloc (0);
20631  ;
20632  return 0;
20633}
20634_ACEOF
20635if ac_fn_c_try_run "$LINENO"; then :
20636  ac_cv_func_malloc_0_nonnull=yes
20637else
20638  ac_cv_func_malloc_0_nonnull=no
20639fi
20640rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20641  conftest.$ac_objext conftest.beam conftest.$ac_ext
20642fi
20643
20644fi
20645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
20646$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
20647if test $ac_cv_func_malloc_0_nonnull = yes; then :
20648
20649$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
20650
20651else
20652  $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
20653
20654   case " $LIBOBJS " in
20655  *" malloc.$ac_objext "* ) ;;
20656  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
20657 ;;
20658esac
20659
20660
20661$as_echo "#define malloc rpl_malloc" >>confdefs.h
20662
20663fi
20664
20665
20666if test "$cross_compiling" = yes; then :
20667  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_malloc_0_nonnull guessed because of cross compilation" >&5
20668$as_echo "$as_me: WARNING: result $ac_cv_func_malloc_0_nonnull guessed because of cross compilation" >&2;}
20669fi
20670for ac_header in stdlib.h
20671do :
20672  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
20673if test "x$ac_cv_header_stdlib_h" = xyes; then :
20674  cat >>confdefs.h <<_ACEOF
20675#define HAVE_STDLIB_H 1
20676_ACEOF
20677
20678fi
20679
20680done
20681
20682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
20683$as_echo_n "checking for GNU libc compatible realloc... " >&6; }
20684if ${ac_cv_func_realloc_0_nonnull+:} false; then :
20685  $as_echo_n "(cached) " >&6
20686else
20687  if test "$cross_compiling" = yes; then :
20688  ac_cv_func_realloc_0_nonnull=no
20689else
20690  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20691/* end confdefs.h.  */
20692#if defined STDC_HEADERS || defined HAVE_STDLIB_H
20693# include <stdlib.h>
20694#else
20695char *realloc ();
20696#endif
20697
20698int
20699main ()
20700{
20701return ! realloc (0, 0);
20702  ;
20703  return 0;
20704}
20705_ACEOF
20706if ac_fn_c_try_run "$LINENO"; then :
20707  ac_cv_func_realloc_0_nonnull=yes
20708else
20709  ac_cv_func_realloc_0_nonnull=no
20710fi
20711rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20712  conftest.$ac_objext conftest.beam conftest.$ac_ext
20713fi
20714
20715fi
20716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
20717$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
20718if test $ac_cv_func_realloc_0_nonnull = yes; then :
20719
20720$as_echo "#define HAVE_REALLOC 1" >>confdefs.h
20721
20722else
20723  $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
20724
20725   case " $LIBOBJS " in
20726  *" realloc.$ac_objext "* ) ;;
20727  *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
20728 ;;
20729esac
20730
20731
20732$as_echo "#define realloc rpl_realloc" >>confdefs.h
20733
20734fi
20735
20736
20737if test "$cross_compiling" = yes; then :
20738  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_realloc_0_nonnull guessed because of cross compilation" >&5
20739$as_echo "$as_me: WARNING: result $ac_cv_func_realloc_0_nonnull guessed because of cross compilation" >&2;}
20740fi
20741
20742for ac_func in dup2 memset regcomp strcasecmp strchr strdup strtol
20743do :
20744  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20745ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20746if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20747  cat >>confdefs.h <<_ACEOF
20748#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20749_ACEOF
20750
20751else
20752  as_fn_error $? "required library function not found on your system" "$LINENO" 5
20753fi
20754done
20755
20756
20757# Optional library functions
20758for ac_func in pow setlocale reallocarray
20759do :
20760  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20761ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20762if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20763  cat >>confdefs.h <<_ACEOF
20764#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20765_ACEOF
20766
20767fi
20768done
20769
20770
20771ac_config_files="$ac_config_files Makefile doc/Makefile examples/Makefile examples/fastwc/Makefile examples/manual/Makefile po/Makefile.in src/Makefile tools/Makefile tests/Makefile"
20772
20773
20774cat >confcache <<\_ACEOF
20775# This file is a shell script that caches the results of configure
20776# tests run on this system so they can be shared between configure
20777# scripts and configure runs, see configure's option --config-cache.
20778# It is not useful on other systems.  If it contains results you don't
20779# want to keep, you may remove or edit it.
20780#
20781# config.status only pays attention to the cache file if you give it
20782# the --recheck option to rerun configure.
20783#
20784# `ac_cv_env_foo' variables (set or unset) will be overridden when
20785# loading this file, other *unset* `ac_cv_foo' will be assigned the
20786# following values.
20787
20788_ACEOF
20789
20790# The following way of writing the cache mishandles newlines in values,
20791# but we know of no workaround that is simple, portable, and efficient.
20792# So, we kill variables containing newlines.
20793# Ultrix sh set writes to stderr and can't be redirected directly,
20794# and sets the high bit in the cache file unless we assign to the vars.
20795(
20796  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20797    eval ac_val=\$$ac_var
20798    case $ac_val in #(
20799    *${as_nl}*)
20800      case $ac_var in #(
20801      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20802$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20803      esac
20804      case $ac_var in #(
20805      _ | IFS | as_nl) ;; #(
20806      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20807      *) { eval $ac_var=; unset $ac_var;} ;;
20808      esac ;;
20809    esac
20810  done
20811
20812  (set) 2>&1 |
20813    case $as_nl`(ac_space=' '; set) 2>&1` in #(
20814    *${as_nl}ac_space=\ *)
20815      # `set' does not quote correctly, so add quotes: double-quote
20816      # substitution turns \\\\ into \\, and sed turns \\ into \.
20817      sed -n \
20818	"s/'/'\\\\''/g;
20819	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20820      ;; #(
20821    *)
20822      # `set' quotes correctly as required by POSIX, so do not add quotes.
20823      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20824      ;;
20825    esac |
20826    sort
20827) |
20828  sed '
20829     /^ac_cv_env_/b end
20830     t clear
20831     :clear
20832     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20833     t end
20834     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20835     :end' >>confcache
20836if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20837  if test -w "$cache_file"; then
20838    if test "x$cache_file" != "x/dev/null"; then
20839      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20840$as_echo "$as_me: updating cache $cache_file" >&6;}
20841      if test ! -f "$cache_file" || test -h "$cache_file"; then
20842	cat confcache >"$cache_file"
20843      else
20844        case $cache_file in #(
20845        */* | ?:*)
20846	  mv -f confcache "$cache_file"$$ &&
20847	  mv -f "$cache_file"$$ "$cache_file" ;; #(
20848        *)
20849	  mv -f confcache "$cache_file" ;;
20850	esac
20851      fi
20852    fi
20853  else
20854    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20855$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20856  fi
20857fi
20858rm -f confcache
20859
20860test "x$prefix" = xNONE && prefix=$ac_default_prefix
20861# Let make expand exec_prefix.
20862test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20863
20864DEFS=-DHAVE_CONFIG_H
20865
20866ac_libobjs=
20867ac_ltlibobjs=
20868U=
20869for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20870  # 1. Remove the extension, and $U if already installed.
20871  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20872  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20873  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20874  #    will be set to the directory where LIBOBJS objects are built.
20875  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20876  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20877done
20878LIBOBJS=$ac_libobjs
20879
20880LTLIBOBJS=$ac_ltlibobjs
20881
20882
20883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20884$as_echo_n "checking that generated files are newer than configure... " >&6; }
20885   if test -n "$am_sleep_pid"; then
20886     # Hide warnings about reused PIDs.
20887     wait $am_sleep_pid 2>/dev/null
20888   fi
20889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
20890$as_echo "done" >&6; }
20891if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20892  as_fn_error $? "conditional \"AMDEP\" was never defined.
20893Usually this means the macro was only invoked conditionally." "$LINENO" 5
20894fi
20895if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20896  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20897Usually this means the macro was only invoked conditionally." "$LINENO" 5
20898fi
20899 if test -n "$EXEEXT"; then
20900  am__EXEEXT_TRUE=
20901  am__EXEEXT_FALSE='#'
20902else
20903  am__EXEEXT_TRUE='#'
20904  am__EXEEXT_FALSE=
20905fi
20906
20907if test -z "${HAVE_BISON_TRUE}" && test -z "${HAVE_BISON_FALSE}"; then
20908  as_fn_error $? "conditional \"HAVE_BISON\" was never defined.
20909Usually this means the macro was only invoked conditionally." "$LINENO" 5
20910fi
20911if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20912  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
20913Usually this means the macro was only invoked conditionally." "$LINENO" 5
20914fi
20915if test -z "${ENABLE_LIBFL_TRUE}" && test -z "${ENABLE_LIBFL_FALSE}"; then
20916  as_fn_error $? "conditional \"ENABLE_LIBFL\" was never defined.
20917Usually this means the macro was only invoked conditionally." "$LINENO" 5
20918fi
20919if test -z "${ENABLE_BOOTSTRAP_TRUE}" && test -z "${ENABLE_BOOTSTRAP_FALSE}"; then
20920  as_fn_error $? "conditional \"ENABLE_BOOTSTRAP\" was never defined.
20921Usually this means the macro was only invoked conditionally." "$LINENO" 5
20922fi
20923if test -z "${CROSS_TRUE}" && test -z "${CROSS_FALSE}"; then
20924  as_fn_error $? "conditional \"CROSS\" was never defined.
20925Usually this means the macro was only invoked conditionally." "$LINENO" 5
20926fi
20927
20928: "${CONFIG_STATUS=./config.status}"
20929ac_write_fail=0
20930ac_clean_files_save=$ac_clean_files
20931ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20932{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20933$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20934as_write_fail=0
20935cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20936#! $SHELL
20937# Generated by $as_me.
20938# Run this file to recreate the current configuration.
20939# Compiler output produced by configure, useful for debugging
20940# configure, is in config.log if it exists.
20941
20942debug=false
20943ac_cs_recheck=false
20944ac_cs_silent=false
20945
20946SHELL=\${CONFIG_SHELL-$SHELL}
20947export SHELL
20948_ASEOF
20949cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20950## -------------------- ##
20951## M4sh Initialization. ##
20952## -------------------- ##
20953
20954# Be more Bourne compatible
20955DUALCASE=1; export DUALCASE # for MKS sh
20956if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20957  emulate sh
20958  NULLCMD=:
20959  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20960  # is contrary to our usage.  Disable this feature.
20961  alias -g '${1+"$@"}'='"$@"'
20962  setopt NO_GLOB_SUBST
20963else
20964  case `(set -o) 2>/dev/null` in #(
20965  *posix*) :
20966    set -o posix ;; #(
20967  *) :
20968     ;;
20969esac
20970fi
20971
20972
20973as_nl='
20974'
20975export as_nl
20976# Printing a long string crashes Solaris 7 /usr/bin/printf.
20977as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20978as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20979as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20980# Prefer a ksh shell builtin over an external printf program on Solaris,
20981# but without wasting forks for bash or zsh.
20982if test -z "$BASH_VERSION$ZSH_VERSION" \
20983    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20984  as_echo='print -r --'
20985  as_echo_n='print -rn --'
20986elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20987  as_echo='printf %s\n'
20988  as_echo_n='printf %s'
20989else
20990  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20991    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20992    as_echo_n='/usr/ucb/echo -n'
20993  else
20994    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20995    as_echo_n_body='eval
20996      arg=$1;
20997      case $arg in #(
20998      *"$as_nl"*)
20999	expr "X$arg" : "X\\(.*\\)$as_nl";
21000	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21001      esac;
21002      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21003    '
21004    export as_echo_n_body
21005    as_echo_n='sh -c $as_echo_n_body as_echo'
21006  fi
21007  export as_echo_body
21008  as_echo='sh -c $as_echo_body as_echo'
21009fi
21010
21011# The user is always right.
21012if test "${PATH_SEPARATOR+set}" != set; then
21013  PATH_SEPARATOR=:
21014  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21015    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21016      PATH_SEPARATOR=';'
21017  }
21018fi
21019
21020
21021# IFS
21022# We need space, tab and new line, in precisely that order.  Quoting is
21023# there to prevent editors from complaining about space-tab.
21024# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21025# splitting by setting IFS to empty value.)
21026IFS=" ""	$as_nl"
21027
21028# Find who we are.  Look in the path if we contain no directory separator.
21029as_myself=
21030case $0 in #((
21031  *[\\/]* ) as_myself=$0 ;;
21032  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21033for as_dir in $PATH
21034do
21035  IFS=$as_save_IFS
21036  test -z "$as_dir" && as_dir=.
21037    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21038  done
21039IFS=$as_save_IFS
21040
21041     ;;
21042esac
21043# We did not find ourselves, most probably we were run as `sh COMMAND'
21044# in which case we are not to be found in the path.
21045if test "x$as_myself" = x; then
21046  as_myself=$0
21047fi
21048if test ! -f "$as_myself"; then
21049  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21050  exit 1
21051fi
21052
21053# Unset variables that we do not need and which cause bugs (e.g. in
21054# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
21055# suppresses any "Segmentation fault" message there.  '((' could
21056# trigger a bug in pdksh 5.2.14.
21057for as_var in BASH_ENV ENV MAIL MAILPATH
21058do eval test x\${$as_var+set} = xset \
21059  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21060done
21061PS1='$ '
21062PS2='> '
21063PS4='+ '
21064
21065# NLS nuisances.
21066LC_ALL=C
21067export LC_ALL
21068LANGUAGE=C
21069export LANGUAGE
21070
21071# CDPATH.
21072(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21073
21074
21075# as_fn_error STATUS ERROR [LINENO LOG_FD]
21076# ----------------------------------------
21077# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21078# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21079# script with STATUS, using 1 if that was 0.
21080as_fn_error ()
21081{
21082  as_status=$1; test $as_status -eq 0 && as_status=1
21083  if test "$4"; then
21084    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21085    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21086  fi
21087  $as_echo "$as_me: error: $2" >&2
21088  as_fn_exit $as_status
21089} # as_fn_error
21090
21091
21092# as_fn_set_status STATUS
21093# -----------------------
21094# Set $? to STATUS, without forking.
21095as_fn_set_status ()
21096{
21097  return $1
21098} # as_fn_set_status
21099
21100# as_fn_exit STATUS
21101# -----------------
21102# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21103as_fn_exit ()
21104{
21105  set +e
21106  as_fn_set_status $1
21107  exit $1
21108} # as_fn_exit
21109
21110# as_fn_unset VAR
21111# ---------------
21112# Portably unset VAR.
21113as_fn_unset ()
21114{
21115  { eval $1=; unset $1;}
21116}
21117as_unset=as_fn_unset
21118# as_fn_append VAR VALUE
21119# ----------------------
21120# Append the text in VALUE to the end of the definition contained in VAR. Take
21121# advantage of any shell optimizations that allow amortized linear growth over
21122# repeated appends, instead of the typical quadratic growth present in naive
21123# implementations.
21124if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21125  eval 'as_fn_append ()
21126  {
21127    eval $1+=\$2
21128  }'
21129else
21130  as_fn_append ()
21131  {
21132    eval $1=\$$1\$2
21133  }
21134fi # as_fn_append
21135
21136# as_fn_arith ARG...
21137# ------------------
21138# Perform arithmetic evaluation on the ARGs, and store the result in the
21139# global $as_val. Take advantage of shells that can avoid forks. The arguments
21140# must be portable across $(()) and expr.
21141if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21142  eval 'as_fn_arith ()
21143  {
21144    as_val=$(( $* ))
21145  }'
21146else
21147  as_fn_arith ()
21148  {
21149    as_val=`expr "$@" || test $? -eq 1`
21150  }
21151fi # as_fn_arith
21152
21153
21154if expr a : '\(a\)' >/dev/null 2>&1 &&
21155   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21156  as_expr=expr
21157else
21158  as_expr=false
21159fi
21160
21161if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21162  as_basename=basename
21163else
21164  as_basename=false
21165fi
21166
21167if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21168  as_dirname=dirname
21169else
21170  as_dirname=false
21171fi
21172
21173as_me=`$as_basename -- "$0" ||
21174$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21175	 X"$0" : 'X\(//\)$' \| \
21176	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21177$as_echo X/"$0" |
21178    sed '/^.*\/\([^/][^/]*\)\/*$/{
21179	    s//\1/
21180	    q
21181	  }
21182	  /^X\/\(\/\/\)$/{
21183	    s//\1/
21184	    q
21185	  }
21186	  /^X\/\(\/\).*/{
21187	    s//\1/
21188	    q
21189	  }
21190	  s/.*/./; q'`
21191
21192# Avoid depending upon Character Ranges.
21193as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21194as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21195as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21196as_cr_digits='0123456789'
21197as_cr_alnum=$as_cr_Letters$as_cr_digits
21198
21199ECHO_C= ECHO_N= ECHO_T=
21200case `echo -n x` in #(((((
21201-n*)
21202  case `echo 'xy\c'` in
21203  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
21204  xy)  ECHO_C='\c';;
21205  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
21206       ECHO_T='	';;
21207  esac;;
21208*)
21209  ECHO_N='-n';;
21210esac
21211
21212rm -f conf$$ conf$$.exe conf$$.file
21213if test -d conf$$.dir; then
21214  rm -f conf$$.dir/conf$$.file
21215else
21216  rm -f conf$$.dir
21217  mkdir conf$$.dir 2>/dev/null
21218fi
21219if (echo >conf$$.file) 2>/dev/null; then
21220  if ln -s conf$$.file conf$$ 2>/dev/null; then
21221    as_ln_s='ln -s'
21222    # ... but there are two gotchas:
21223    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21224    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21225    # In both cases, we have to default to `cp -pR'.
21226    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21227      as_ln_s='cp -pR'
21228  elif ln conf$$.file conf$$ 2>/dev/null; then
21229    as_ln_s=ln
21230  else
21231    as_ln_s='cp -pR'
21232  fi
21233else
21234  as_ln_s='cp -pR'
21235fi
21236rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21237rmdir conf$$.dir 2>/dev/null
21238
21239
21240# as_fn_mkdir_p
21241# -------------
21242# Create "$as_dir" as a directory, including parents if necessary.
21243as_fn_mkdir_p ()
21244{
21245
21246  case $as_dir in #(
21247  -*) as_dir=./$as_dir;;
21248  esac
21249  test -d "$as_dir" || eval $as_mkdir_p || {
21250    as_dirs=
21251    while :; do
21252      case $as_dir in #(
21253      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21254      *) as_qdir=$as_dir;;
21255      esac
21256      as_dirs="'$as_qdir' $as_dirs"
21257      as_dir=`$as_dirname -- "$as_dir" ||
21258$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21259	 X"$as_dir" : 'X\(//\)[^/]' \| \
21260	 X"$as_dir" : 'X\(//\)$' \| \
21261	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21262$as_echo X"$as_dir" |
21263    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21264	    s//\1/
21265	    q
21266	  }
21267	  /^X\(\/\/\)[^/].*/{
21268	    s//\1/
21269	    q
21270	  }
21271	  /^X\(\/\/\)$/{
21272	    s//\1/
21273	    q
21274	  }
21275	  /^X\(\/\).*/{
21276	    s//\1/
21277	    q
21278	  }
21279	  s/.*/./; q'`
21280      test -d "$as_dir" && break
21281    done
21282    test -z "$as_dirs" || eval "mkdir $as_dirs"
21283  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21284
21285
21286} # as_fn_mkdir_p
21287if mkdir -p . 2>/dev/null; then
21288  as_mkdir_p='mkdir -p "$as_dir"'
21289else
21290  test -d ./-p && rmdir ./-p
21291  as_mkdir_p=false
21292fi
21293
21294
21295# as_fn_executable_p FILE
21296# -----------------------
21297# Test if FILE is an executable regular file.
21298as_fn_executable_p ()
21299{
21300  test -f "$1" && test -x "$1"
21301} # as_fn_executable_p
21302as_test_x='test -x'
21303as_executable_p=as_fn_executable_p
21304
21305# Sed expression to map a string onto a valid CPP name.
21306as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21307
21308# Sed expression to map a string onto a valid variable name.
21309as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21310
21311
21312exec 6>&1
21313## ----------------------------------- ##
21314## Main body of $CONFIG_STATUS script. ##
21315## ----------------------------------- ##
21316_ASEOF
21317test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21318
21319cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21320# Save the log message, to keep $0 and so on meaningful, and to
21321# report actual input values of CONFIG_FILES etc. instead of their
21322# values after options handling.
21323ac_log="
21324This file was extended by the fast lexical analyser generator $as_me 2.6.4, which was
21325generated by GNU Autoconf 2.69.  Invocation command line was
21326
21327  CONFIG_FILES    = $CONFIG_FILES
21328  CONFIG_HEADERS  = $CONFIG_HEADERS
21329  CONFIG_LINKS    = $CONFIG_LINKS
21330  CONFIG_COMMANDS = $CONFIG_COMMANDS
21331  $ $0 $@
21332
21333on `(hostname || uname -n) 2>/dev/null | sed 1q`
21334"
21335
21336_ACEOF
21337
21338case $ac_config_files in *"
21339"*) set x $ac_config_files; shift; ac_config_files=$*;;
21340esac
21341
21342case $ac_config_headers in *"
21343"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21344esac
21345
21346
21347cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21348# Files that config.status was made for.
21349config_files="$ac_config_files"
21350config_headers="$ac_config_headers"
21351config_commands="$ac_config_commands"
21352
21353_ACEOF
21354
21355cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21356ac_cs_usage="\
21357\`$as_me' instantiates files and other configuration actions
21358from templates according to the current configuration.  Unless the files
21359and actions are specified as TAGs, all are instantiated by default.
21360
21361Usage: $0 [OPTION]... [TAG]...
21362
21363  -h, --help       print this help, then exit
21364  -V, --version    print version number and configuration settings, then exit
21365      --config     print configuration, then exit
21366  -q, --quiet, --silent
21367                   do not print progress messages
21368  -d, --debug      don't remove temporary files
21369      --recheck    update $as_me by reconfiguring in the same conditions
21370      --file=FILE[:TEMPLATE]
21371                   instantiate the configuration file FILE
21372      --header=FILE[:TEMPLATE]
21373                   instantiate the configuration header FILE
21374
21375Configuration files:
21376$config_files
21377
21378Configuration headers:
21379$config_headers
21380
21381Configuration commands:
21382$config_commands
21383
21384Report bugs to <flex-help@lists.sourceforge.net>."
21385
21386_ACEOF
21387cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21388ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21389ac_cs_version="\\
21390the fast lexical analyser generator config.status 2.6.4
21391configured by $0, generated by GNU Autoconf 2.69,
21392  with options \\"\$ac_cs_config\\"
21393
21394Copyright (C) 2012 Free Software Foundation, Inc.
21395This config.status script is free software; the Free Software Foundation
21396gives unlimited permission to copy, distribute and modify it."
21397
21398ac_pwd='$ac_pwd'
21399srcdir='$srcdir'
21400INSTALL='$INSTALL'
21401MKDIR_P='$MKDIR_P'
21402AWK='$AWK'
21403test -n "\$AWK" || AWK=awk
21404_ACEOF
21405
21406cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21407# The default lists apply if the user does not specify any file.
21408ac_need_defaults=:
21409while test $# != 0
21410do
21411  case $1 in
21412  --*=?*)
21413    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21414    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21415    ac_shift=:
21416    ;;
21417  --*=)
21418    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21419    ac_optarg=
21420    ac_shift=:
21421    ;;
21422  *)
21423    ac_option=$1
21424    ac_optarg=$2
21425    ac_shift=shift
21426    ;;
21427  esac
21428
21429  case $ac_option in
21430  # Handling of the options.
21431  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21432    ac_cs_recheck=: ;;
21433  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21434    $as_echo "$ac_cs_version"; exit ;;
21435  --config | --confi | --conf | --con | --co | --c )
21436    $as_echo "$ac_cs_config"; exit ;;
21437  --debug | --debu | --deb | --de | --d | -d )
21438    debug=: ;;
21439  --file | --fil | --fi | --f )
21440    $ac_shift
21441    case $ac_optarg in
21442    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21443    '') as_fn_error $? "missing file argument" ;;
21444    esac
21445    as_fn_append CONFIG_FILES " '$ac_optarg'"
21446    ac_need_defaults=false;;
21447  --header | --heade | --head | --hea )
21448    $ac_shift
21449    case $ac_optarg in
21450    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21451    esac
21452    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21453    ac_need_defaults=false;;
21454  --he | --h)
21455    # Conflict between --help and --header
21456    as_fn_error $? "ambiguous option: \`$1'
21457Try \`$0 --help' for more information.";;
21458  --help | --hel | -h )
21459    $as_echo "$ac_cs_usage"; exit ;;
21460  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21461  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21462    ac_cs_silent=: ;;
21463
21464  # This is an error.
21465  -*) as_fn_error $? "unrecognized option: \`$1'
21466Try \`$0 --help' for more information." ;;
21467
21468  *) as_fn_append ac_config_targets " $1"
21469     ac_need_defaults=false ;;
21470
21471  esac
21472  shift
21473done
21474
21475ac_configure_extra_args=
21476
21477if $ac_cs_silent; then
21478  exec 6>/dev/null
21479  ac_configure_extra_args="$ac_configure_extra_args --silent"
21480fi
21481
21482_ACEOF
21483cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21484if \$ac_cs_recheck; then
21485  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21486  shift
21487  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21488  CONFIG_SHELL='$SHELL'
21489  export CONFIG_SHELL
21490  exec "\$@"
21491fi
21492
21493_ACEOF
21494cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21495exec 5>>config.log
21496{
21497  echo
21498  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21499## Running $as_me. ##
21500_ASBOX
21501  $as_echo "$ac_log"
21502} >&5
21503
21504_ACEOF
21505cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21506#
21507# INIT-COMMANDS
21508#
21509
21510
21511# The HP-UX ksh and POSIX shell print the target directory to stdout
21512# if CDPATH is set.
21513(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21514
21515sed_quote_subst='$sed_quote_subst'
21516double_quote_subst='$double_quote_subst'
21517delay_variable_subst='$delay_variable_subst'
21518macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21519macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21520enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21521enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21522pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21523enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21524shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21525SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21526ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21527PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21528host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21529host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21530host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21531build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21532build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21533build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21534SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21535Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21536GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21537EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21538FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21539LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21540NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21541LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21542max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21543ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21544exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21545lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21546lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21547lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21548lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21549lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21550reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21551reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21552OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21553deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21554file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21555file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21556want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21557DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21558sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21559AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21560AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21561archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21562STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21563RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21564old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21565old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21566old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21567lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21568CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21569CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21570compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21571GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21572lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21573lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21574lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21575lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21576lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
21577lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21578nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21579lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21580lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21581objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21582MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21583lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21584lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21585lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21586lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21587lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21588need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21589MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21590DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21591NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21592LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21593OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21594OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21595libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21596shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21597extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21598archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21599enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21600export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21601whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21602compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21603old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21604old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21605archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21606archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21607module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21608module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21609with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21610allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21611no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21612hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21613hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21614hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21615hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21616hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21617hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21618hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21619inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21620link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21621always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21622export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21623exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21624include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21625prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21626postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21627file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21628variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21629need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21630need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21631version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21632runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21633shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21634shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21635libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21636library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21637soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21638install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21639postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21640postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21641finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21642finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21643hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21644sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21645configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
21646configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
21647hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21648enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21649enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21650enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21651old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21652striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21653compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
21654predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
21655postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
21656predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
21657postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
21658compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
21659LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
21660reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
21661reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21662old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21663compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
21664GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
21665lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
21666lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
21667lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
21668lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
21669lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
21670archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
21671enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
21672export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21673whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21674compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
21675old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21676old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21677archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21678archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21679module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21680module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21681with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
21682allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21683no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21684hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21685hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
21686hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
21687hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
21688hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
21689hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
21690hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
21691inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
21692link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
21693always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
21694export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21695exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21696include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21697prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21698postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21699file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
21700hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
21701compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
21702predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21703postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21704predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
21705postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
21706compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
21707
21708LTCC='$LTCC'
21709LTCFLAGS='$LTCFLAGS'
21710compiler='$compiler_DEFAULT'
21711
21712# A function that is used when there is no print builtin or printf.
21713func_fallback_echo ()
21714{
21715  eval 'cat <<_LTECHO_EOF
21716\$1
21717_LTECHO_EOF'
21718}
21719
21720# Quote evaled strings.
21721for var in SHELL \
21722ECHO \
21723PATH_SEPARATOR \
21724SED \
21725GREP \
21726EGREP \
21727FGREP \
21728LD \
21729NM \
21730LN_S \
21731lt_SP2NL \
21732lt_NL2SP \
21733reload_flag \
21734OBJDUMP \
21735deplibs_check_method \
21736file_magic_cmd \
21737file_magic_glob \
21738want_nocaseglob \
21739DLLTOOL \
21740sharedlib_from_linklib_cmd \
21741AR \
21742AR_FLAGS \
21743archiver_list_spec \
21744STRIP \
21745RANLIB \
21746CC \
21747CFLAGS \
21748compiler \
21749lt_cv_sys_global_symbol_pipe \
21750lt_cv_sys_global_symbol_to_cdecl \
21751lt_cv_sys_global_symbol_to_import \
21752lt_cv_sys_global_symbol_to_c_name_address \
21753lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21754lt_cv_nm_interface \
21755nm_file_list_spec \
21756lt_cv_truncate_bin \
21757lt_prog_compiler_no_builtin_flag \
21758lt_prog_compiler_pic \
21759lt_prog_compiler_wl \
21760lt_prog_compiler_static \
21761lt_cv_prog_compiler_c_o \
21762need_locks \
21763MANIFEST_TOOL \
21764DSYMUTIL \
21765NMEDIT \
21766LIPO \
21767OTOOL \
21768OTOOL64 \
21769shrext_cmds \
21770export_dynamic_flag_spec \
21771whole_archive_flag_spec \
21772compiler_needs_object \
21773with_gnu_ld \
21774allow_undefined_flag \
21775no_undefined_flag \
21776hardcode_libdir_flag_spec \
21777hardcode_libdir_separator \
21778exclude_expsyms \
21779include_expsyms \
21780file_list_spec \
21781variables_saved_for_relink \
21782libname_spec \
21783library_names_spec \
21784soname_spec \
21785install_override_mode \
21786finish_eval \
21787old_striplib \
21788striplib \
21789compiler_lib_search_dirs \
21790predep_objects \
21791postdep_objects \
21792predeps \
21793postdeps \
21794compiler_lib_search_path \
21795LD_CXX \
21796reload_flag_CXX \
21797compiler_CXX \
21798lt_prog_compiler_no_builtin_flag_CXX \
21799lt_prog_compiler_pic_CXX \
21800lt_prog_compiler_wl_CXX \
21801lt_prog_compiler_static_CXX \
21802lt_cv_prog_compiler_c_o_CXX \
21803export_dynamic_flag_spec_CXX \
21804whole_archive_flag_spec_CXX \
21805compiler_needs_object_CXX \
21806with_gnu_ld_CXX \
21807allow_undefined_flag_CXX \
21808no_undefined_flag_CXX \
21809hardcode_libdir_flag_spec_CXX \
21810hardcode_libdir_separator_CXX \
21811exclude_expsyms_CXX \
21812include_expsyms_CXX \
21813file_list_spec_CXX \
21814compiler_lib_search_dirs_CXX \
21815predep_objects_CXX \
21816postdep_objects_CXX \
21817predeps_CXX \
21818postdeps_CXX \
21819compiler_lib_search_path_CXX; do
21820    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21821    *[\\\\\\\`\\"\\\$]*)
21822      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21823      ;;
21824    *)
21825      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21826      ;;
21827    esac
21828done
21829
21830# Double-quote double-evaled strings.
21831for var in reload_cmds \
21832old_postinstall_cmds \
21833old_postuninstall_cmds \
21834old_archive_cmds \
21835extract_expsyms_cmds \
21836old_archive_from_new_cmds \
21837old_archive_from_expsyms_cmds \
21838archive_cmds \
21839archive_expsym_cmds \
21840module_cmds \
21841module_expsym_cmds \
21842export_symbols_cmds \
21843prelink_cmds \
21844postlink_cmds \
21845postinstall_cmds \
21846postuninstall_cmds \
21847finish_cmds \
21848sys_lib_search_path_spec \
21849configure_time_dlsearch_path \
21850configure_time_lt_sys_library_path \
21851reload_cmds_CXX \
21852old_archive_cmds_CXX \
21853old_archive_from_new_cmds_CXX \
21854old_archive_from_expsyms_cmds_CXX \
21855archive_cmds_CXX \
21856archive_expsym_cmds_CXX \
21857module_cmds_CXX \
21858module_expsym_cmds_CXX \
21859export_symbols_cmds_CXX \
21860prelink_cmds_CXX \
21861postlink_cmds_CXX; do
21862    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21863    *[\\\\\\\`\\"\\\$]*)
21864      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21865      ;;
21866    *)
21867      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21868      ;;
21869    esac
21870done
21871
21872ac_aux_dir='$ac_aux_dir'
21873
21874# See if we are running on zsh, and set the options that allow our
21875# commands through without removal of \ escapes INIT.
21876if test -n "\${ZSH_VERSION+set}"; then
21877   setopt NO_GLOB_SUBST
21878fi
21879
21880
21881    PACKAGE='$PACKAGE'
21882    VERSION='$VERSION'
21883    RM='$RM'
21884    ofile='$ofile'
21885
21886
21887
21888
21889
21890AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21891# Capture the value of obsolete ALL_LINGUAS because we need it to compute
21892    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
21893    # from automake < 1.5.
21894    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
21895    # Capture the value of LINGUAS because we need it to compute CATALOGS.
21896    LINGUAS="${LINGUAS-%UNSET%}"
21897
21898
21899_ACEOF
21900
21901cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21902
21903# Handling of arguments.
21904for ac_config_target in $ac_config_targets
21905do
21906  case $ac_config_target in
21907    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21908    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21909    "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
21910    "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
21911    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21912    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21913    "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
21914    "examples/fastwc/Makefile") CONFIG_FILES="$CONFIG_FILES examples/fastwc/Makefile" ;;
21915    "examples/manual/Makefile") CONFIG_FILES="$CONFIG_FILES examples/manual/Makefile" ;;
21916    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
21917    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21918    "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
21919    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
21920
21921  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21922  esac
21923done
21924
21925
21926# If the user did not use the arguments to specify the items to instantiate,
21927# then the envvar interface is used.  Set only those that are not.
21928# We use the long form for the default assignment because of an extremely
21929# bizarre bug on SunOS 4.1.3.
21930if $ac_need_defaults; then
21931  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21932  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21933  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21934fi
21935
21936# Have a temporary directory for convenience.  Make it in the build tree
21937# simply because there is no reason against having it here, and in addition,
21938# creating and moving files from /tmp can sometimes cause problems.
21939# Hook for its removal unless debugging.
21940# Note that there is a small window in which the directory will not be cleaned:
21941# after its creation but before its name has been assigned to `$tmp'.
21942$debug ||
21943{
21944  tmp= ac_tmp=
21945  trap 'exit_status=$?
21946  : "${ac_tmp:=$tmp}"
21947  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21948' 0
21949  trap 'as_fn_exit 1' 1 2 13 15
21950}
21951# Create a (secure) tmp directory for tmp files.
21952
21953{
21954  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21955  test -d "$tmp"
21956}  ||
21957{
21958  tmp=./conf$$-$RANDOM
21959  (umask 077 && mkdir "$tmp")
21960} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21961ac_tmp=$tmp
21962
21963# Set up the scripts for CONFIG_FILES section.
21964# No need to generate them if there are no CONFIG_FILES.
21965# This happens for instance with `./config.status config.h'.
21966if test -n "$CONFIG_FILES"; then
21967
21968
21969ac_cr=`echo X | tr X '\015'`
21970# On cygwin, bash can eat \r inside `` if the user requested igncr.
21971# But we know of no other shell where ac_cr would be empty at this
21972# point, so we can use a bashism as a fallback.
21973if test "x$ac_cr" = x; then
21974  eval ac_cr=\$\'\\r\'
21975fi
21976ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21977if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21978  ac_cs_awk_cr='\\r'
21979else
21980  ac_cs_awk_cr=$ac_cr
21981fi
21982
21983echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21984_ACEOF
21985
21986
21987{
21988  echo "cat >conf$$subs.awk <<_ACEOF" &&
21989  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21990  echo "_ACEOF"
21991} >conf$$subs.sh ||
21992  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21993ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21994ac_delim='%!_!# '
21995for ac_last_try in false false false false false :; do
21996  . ./conf$$subs.sh ||
21997    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21998
21999  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22000  if test $ac_delim_n = $ac_delim_num; then
22001    break
22002  elif $ac_last_try; then
22003    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22004  else
22005    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22006  fi
22007done
22008rm -f conf$$subs.sh
22009
22010cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22011cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22012_ACEOF
22013sed -n '
22014h
22015s/^/S["/; s/!.*/"]=/
22016p
22017g
22018s/^[^!]*!//
22019:repl
22020t repl
22021s/'"$ac_delim"'$//
22022t delim
22023:nl
22024h
22025s/\(.\{148\}\)..*/\1/
22026t more1
22027s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22028p
22029n
22030b repl
22031:more1
22032s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22033p
22034g
22035s/.\{148\}//
22036t nl
22037:delim
22038h
22039s/\(.\{148\}\)..*/\1/
22040t more2
22041s/["\\]/\\&/g; s/^/"/; s/$/"/
22042p
22043b
22044:more2
22045s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22046p
22047g
22048s/.\{148\}//
22049t delim
22050' <conf$$subs.awk | sed '
22051/^[^""]/{
22052  N
22053  s/\n//
22054}
22055' >>$CONFIG_STATUS || ac_write_fail=1
22056rm -f conf$$subs.awk
22057cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22058_ACAWK
22059cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22060  for (key in S) S_is_set[key] = 1
22061  FS = ""
22062
22063}
22064{
22065  line = $ 0
22066  nfields = split(line, field, "@")
22067  substed = 0
22068  len = length(field[1])
22069  for (i = 2; i < nfields; i++) {
22070    key = field[i]
22071    keylen = length(key)
22072    if (S_is_set[key]) {
22073      value = S[key]
22074      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22075      len += length(value) + length(field[++i])
22076      substed = 1
22077    } else
22078      len += 1 + keylen
22079  }
22080
22081  print line
22082}
22083
22084_ACAWK
22085_ACEOF
22086cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22087if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22088  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22089else
22090  cat
22091fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22092  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22093_ACEOF
22094
22095# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22096# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22097# trailing colons and then remove the whole line if VPATH becomes empty
22098# (actually we leave an empty line to preserve line numbers).
22099if test "x$srcdir" = x.; then
22100  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
22101h
22102s///
22103s/^/:/
22104s/[	 ]*$/:/
22105s/:\$(srcdir):/:/g
22106s/:\${srcdir}:/:/g
22107s/:@srcdir@:/:/g
22108s/^:*//
22109s/:*$//
22110x
22111s/\(=[	 ]*\).*/\1/
22112G
22113s/\n//
22114s/^[^=]*=[	 ]*$//
22115}'
22116fi
22117
22118cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22119fi # test -n "$CONFIG_FILES"
22120
22121# Set up the scripts for CONFIG_HEADERS section.
22122# No need to generate them if there are no CONFIG_HEADERS.
22123# This happens for instance with `./config.status Makefile'.
22124if test -n "$CONFIG_HEADERS"; then
22125cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22126BEGIN {
22127_ACEOF
22128
22129# Transform confdefs.h into an awk script `defines.awk', embedded as
22130# here-document in config.status, that substitutes the proper values into
22131# config.h.in to produce config.h.
22132
22133# Create a delimiter string that does not exist in confdefs.h, to ease
22134# handling of long lines.
22135ac_delim='%!_!# '
22136for ac_last_try in false false :; do
22137  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22138  if test -z "$ac_tt"; then
22139    break
22140  elif $ac_last_try; then
22141    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22142  else
22143    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22144  fi
22145done
22146
22147# For the awk script, D is an array of macro values keyed by name,
22148# likewise P contains macro parameters if any.  Preserve backslash
22149# newline sequences.
22150
22151ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22152sed -n '
22153s/.\{148\}/&'"$ac_delim"'/g
22154t rset
22155:rset
22156s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
22157t def
22158d
22159:def
22160s/\\$//
22161t bsnl
22162s/["\\]/\\&/g
22163s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
22164D["\1"]=" \3"/p
22165s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
22166d
22167:bsnl
22168s/["\\]/\\&/g
22169s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
22170D["\1"]=" \3\\\\\\n"\\/p
22171t cont
22172s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22173t cont
22174d
22175:cont
22176n
22177s/.\{148\}/&'"$ac_delim"'/g
22178t clear
22179:clear
22180s/\\$//
22181t bsnlc
22182s/["\\]/\\&/g; s/^/"/; s/$/"/p
22183d
22184:bsnlc
22185s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22186b cont
22187' <confdefs.h | sed '
22188s/'"$ac_delim"'/"\\\
22189"/g' >>$CONFIG_STATUS || ac_write_fail=1
22190
22191cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22192  for (key in D) D_is_set[key] = 1
22193  FS = ""
22194}
22195/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22196  line = \$ 0
22197  split(line, arg, " ")
22198  if (arg[1] == "#") {
22199    defundef = arg[2]
22200    mac1 = arg[3]
22201  } else {
22202    defundef = substr(arg[1], 2)
22203    mac1 = arg[2]
22204  }
22205  split(mac1, mac2, "(") #)
22206  macro = mac2[1]
22207  prefix = substr(line, 1, index(line, defundef) - 1)
22208  if (D_is_set[macro]) {
22209    # Preserve the white space surrounding the "#".
22210    print prefix "define", macro P[macro] D[macro]
22211    next
22212  } else {
22213    # Replace #undef with comments.  This is necessary, for example,
22214    # in the case of _POSIX_SOURCE, which is predefined and required
22215    # on some systems where configure will not decide to define it.
22216    if (defundef == "undef") {
22217      print "/*", prefix defundef, macro, "*/"
22218      next
22219    }
22220  }
22221}
22222{ print }
22223_ACAWK
22224_ACEOF
22225cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22226  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22227fi # test -n "$CONFIG_HEADERS"
22228
22229
22230eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
22231shift
22232for ac_tag
22233do
22234  case $ac_tag in
22235  :[FHLC]) ac_mode=$ac_tag; continue;;
22236  esac
22237  case $ac_mode$ac_tag in
22238  :[FHL]*:*);;
22239  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22240  :[FH]-) ac_tag=-:-;;
22241  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22242  esac
22243  ac_save_IFS=$IFS
22244  IFS=:
22245  set x $ac_tag
22246  IFS=$ac_save_IFS
22247  shift
22248  ac_file=$1
22249  shift
22250
22251  case $ac_mode in
22252  :L) ac_source=$1;;
22253  :[FH])
22254    ac_file_inputs=
22255    for ac_f
22256    do
22257      case $ac_f in
22258      -) ac_f="$ac_tmp/stdin";;
22259      *) # Look for the file first in the build tree, then in the source tree
22260	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
22261	 # because $ac_f cannot contain `:'.
22262	 test -f "$ac_f" ||
22263	   case $ac_f in
22264	   [\\/$]*) false;;
22265	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22266	   esac ||
22267	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22268      esac
22269      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22270      as_fn_append ac_file_inputs " '$ac_f'"
22271    done
22272
22273    # Let's still pretend it is `configure' which instantiates (i.e., don't
22274    # use $as_me), people would be surprised to read:
22275    #    /* config.h.  Generated by config.status.  */
22276    configure_input='Generated from '`
22277	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22278	`' by configure.'
22279    if test x"$ac_file" != x-; then
22280      configure_input="$ac_file.  $configure_input"
22281      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22282$as_echo "$as_me: creating $ac_file" >&6;}
22283    fi
22284    # Neutralize special characters interpreted by sed in replacement strings.
22285    case $configure_input in #(
22286    *\&* | *\|* | *\\* )
22287       ac_sed_conf_input=`$as_echo "$configure_input" |
22288       sed 's/[\\\\&|]/\\\\&/g'`;; #(
22289    *) ac_sed_conf_input=$configure_input;;
22290    esac
22291
22292    case $ac_tag in
22293    *:-:* | *:-) cat >"$ac_tmp/stdin" \
22294      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22295    esac
22296    ;;
22297  esac
22298
22299  ac_dir=`$as_dirname -- "$ac_file" ||
22300$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22301	 X"$ac_file" : 'X\(//\)[^/]' \| \
22302	 X"$ac_file" : 'X\(//\)$' \| \
22303	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22304$as_echo X"$ac_file" |
22305    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22306	    s//\1/
22307	    q
22308	  }
22309	  /^X\(\/\/\)[^/].*/{
22310	    s//\1/
22311	    q
22312	  }
22313	  /^X\(\/\/\)$/{
22314	    s//\1/
22315	    q
22316	  }
22317	  /^X\(\/\).*/{
22318	    s//\1/
22319	    q
22320	  }
22321	  s/.*/./; q'`
22322  as_dir="$ac_dir"; as_fn_mkdir_p
22323  ac_builddir=.
22324
22325case "$ac_dir" in
22326.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22327*)
22328  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22329  # A ".." for each directory in $ac_dir_suffix.
22330  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22331  case $ac_top_builddir_sub in
22332  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22333  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22334  esac ;;
22335esac
22336ac_abs_top_builddir=$ac_pwd
22337ac_abs_builddir=$ac_pwd$ac_dir_suffix
22338# for backward compatibility:
22339ac_top_builddir=$ac_top_build_prefix
22340
22341case $srcdir in
22342  .)  # We are building in place.
22343    ac_srcdir=.
22344    ac_top_srcdir=$ac_top_builddir_sub
22345    ac_abs_top_srcdir=$ac_pwd ;;
22346  [\\/]* | ?:[\\/]* )  # Absolute name.
22347    ac_srcdir=$srcdir$ac_dir_suffix;
22348    ac_top_srcdir=$srcdir
22349    ac_abs_top_srcdir=$srcdir ;;
22350  *) # Relative name.
22351    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22352    ac_top_srcdir=$ac_top_build_prefix$srcdir
22353    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22354esac
22355ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22356
22357
22358  case $ac_mode in
22359  :F)
22360  #
22361  # CONFIG_FILE
22362  #
22363
22364  case $INSTALL in
22365  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22366  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22367  esac
22368  ac_MKDIR_P=$MKDIR_P
22369  case $MKDIR_P in
22370  [\\/$]* | ?:[\\/]* ) ;;
22371  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22372  esac
22373_ACEOF
22374
22375cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22376# If the template does not know about datarootdir, expand it.
22377# FIXME: This hack should be removed a few years after 2.60.
22378ac_datarootdir_hack=; ac_datarootdir_seen=
22379ac_sed_dataroot='
22380/datarootdir/ {
22381  p
22382  q
22383}
22384/@datadir@/p
22385/@docdir@/p
22386/@infodir@/p
22387/@localedir@/p
22388/@mandir@/p'
22389case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22390*datarootdir*) ac_datarootdir_seen=yes;;
22391*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22392  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22393$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22394_ACEOF
22395cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22396  ac_datarootdir_hack='
22397  s&@datadir@&$datadir&g
22398  s&@docdir@&$docdir&g
22399  s&@infodir@&$infodir&g
22400  s&@localedir@&$localedir&g
22401  s&@mandir@&$mandir&g
22402  s&\\\${datarootdir}&$datarootdir&g' ;;
22403esac
22404_ACEOF
22405
22406# Neutralize VPATH when `$srcdir' = `.'.
22407# Shell code in configure.ac might set extrasub.
22408# FIXME: do we really want to maintain this feature?
22409cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22410ac_sed_extra="$ac_vpsub
22411$extrasub
22412_ACEOF
22413cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22414:t
22415/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22416s|@configure_input@|$ac_sed_conf_input|;t t
22417s&@top_builddir@&$ac_top_builddir_sub&;t t
22418s&@top_build_prefix@&$ac_top_build_prefix&;t t
22419s&@srcdir@&$ac_srcdir&;t t
22420s&@abs_srcdir@&$ac_abs_srcdir&;t t
22421s&@top_srcdir@&$ac_top_srcdir&;t t
22422s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22423s&@builddir@&$ac_builddir&;t t
22424s&@abs_builddir@&$ac_abs_builddir&;t t
22425s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22426s&@INSTALL@&$ac_INSTALL&;t t
22427s&@MKDIR_P@&$ac_MKDIR_P&;t t
22428$ac_datarootdir_hack
22429"
22430eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22431  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22432
22433test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22434  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22435  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
22436      "$ac_tmp/out"`; test -z "$ac_out"; } &&
22437  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22438which seems to be undefined.  Please make sure it is defined" >&5
22439$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22440which seems to be undefined.  Please make sure it is defined" >&2;}
22441
22442  rm -f "$ac_tmp/stdin"
22443  case $ac_file in
22444  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22445  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22446  esac \
22447  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22448 ;;
22449  :H)
22450  #
22451  # CONFIG_HEADER
22452  #
22453  if test x"$ac_file" != x-; then
22454    {
22455      $as_echo "/* $configure_input  */" \
22456      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22457    } >"$ac_tmp/config.h" \
22458      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22459    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22460      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22461$as_echo "$as_me: $ac_file is unchanged" >&6;}
22462    else
22463      rm -f "$ac_file"
22464      mv "$ac_tmp/config.h" "$ac_file" \
22465	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
22466    fi
22467  else
22468    $as_echo "/* $configure_input  */" \
22469      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22470      || as_fn_error $? "could not create -" "$LINENO" 5
22471  fi
22472# Compute "$ac_file"'s index in $config_headers.
22473_am_arg="$ac_file"
22474_am_stamp_count=1
22475for _am_header in $config_headers :; do
22476  case $_am_header in
22477    $_am_arg | $_am_arg:* )
22478      break ;;
22479    * )
22480      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22481  esac
22482done
22483echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22484$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22485	 X"$_am_arg" : 'X\(//\)[^/]' \| \
22486	 X"$_am_arg" : 'X\(//\)$' \| \
22487	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22488$as_echo X"$_am_arg" |
22489    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22490	    s//\1/
22491	    q
22492	  }
22493	  /^X\(\/\/\)[^/].*/{
22494	    s//\1/
22495	    q
22496	  }
22497	  /^X\(\/\/\)$/{
22498	    s//\1/
22499	    q
22500	  }
22501	  /^X\(\/\).*/{
22502	    s//\1/
22503	    q
22504	  }
22505	  s/.*/./; q'`/stamp-h$_am_stamp_count
22506 ;;
22507
22508  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22509$as_echo "$as_me: executing $ac_file commands" >&6;}
22510 ;;
22511  esac
22512
22513
22514  case $ac_file$ac_mode in
22515    "libtool":C)
22516
22517    # See if we are running on zsh, and set the options that allow our
22518    # commands through without removal of \ escapes.
22519    if test -n "${ZSH_VERSION+set}"; then
22520      setopt NO_GLOB_SUBST
22521    fi
22522
22523    cfgfile=${ofile}T
22524    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22525    $RM "$cfgfile"
22526
22527    cat <<_LT_EOF >> "$cfgfile"
22528#! $SHELL
22529# Generated automatically by $as_me ($PACKAGE) $VERSION
22530# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22531# NOTE: Changes made to this file will be lost: look at ltmain.sh.
22532
22533# Provide generalized library-building support services.
22534# Written by Gordon Matzigkeit, 1996
22535
22536# Copyright (C) 2014 Free Software Foundation, Inc.
22537# This is free software; see the source for copying conditions.  There is NO
22538# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22539
22540# GNU Libtool is free software; you can redistribute it and/or modify
22541# it under the terms of the GNU General Public License as published by
22542# the Free Software Foundation; either version 2 of of the License, or
22543# (at your option) any later version.
22544#
22545# As a special exception to the GNU General Public License, if you
22546# distribute this file as part of a program or library that is built
22547# using GNU Libtool, you may include this file under the  same
22548# distribution terms that you use for the rest of that program.
22549#
22550# GNU Libtool is distributed in the hope that it will be useful, but
22551# WITHOUT ANY WARRANTY; without even the implied warranty of
22552# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22553# GNU General Public License for more details.
22554#
22555# You should have received a copy of the GNU General Public License
22556# along with this program.  If not, see <http://www.gnu.org/licenses/>.
22557
22558
22559# The names of the tagged configurations supported by this script.
22560available_tags='CXX '
22561
22562# Configured defaults for sys_lib_dlsearch_path munging.
22563: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
22564
22565# ### BEGIN LIBTOOL CONFIG
22566
22567# Which release of libtool.m4 was used?
22568macro_version=$macro_version
22569macro_revision=$macro_revision
22570
22571# Whether or not to build shared libraries.
22572build_libtool_libs=$enable_shared
22573
22574# Whether or not to build static libraries.
22575build_old_libs=$enable_static
22576
22577# What type of objects to build.
22578pic_mode=$pic_mode
22579
22580# Whether or not to optimize for fast installation.
22581fast_install=$enable_fast_install
22582
22583# Shared archive member basename,for filename based shared library versioning on AIX.
22584shared_archive_member_spec=$shared_archive_member_spec
22585
22586# Shell to use when invoking shell scripts.
22587SHELL=$lt_SHELL
22588
22589# An echo program that protects backslashes.
22590ECHO=$lt_ECHO
22591
22592# The PATH separator for the build system.
22593PATH_SEPARATOR=$lt_PATH_SEPARATOR
22594
22595# The host system.
22596host_alias=$host_alias
22597host=$host
22598host_os=$host_os
22599
22600# The build system.
22601build_alias=$build_alias
22602build=$build
22603build_os=$build_os
22604
22605# A sed program that does not truncate output.
22606SED=$lt_SED
22607
22608# Sed that helps us avoid accidentally triggering echo(1) options like -n.
22609Xsed="\$SED -e 1s/^X//"
22610
22611# A grep program that handles long lines.
22612GREP=$lt_GREP
22613
22614# An ERE matcher.
22615EGREP=$lt_EGREP
22616
22617# A literal string matcher.
22618FGREP=$lt_FGREP
22619
22620# A BSD- or MS-compatible name lister.
22621NM=$lt_NM
22622
22623# Whether we need soft or hard links.
22624LN_S=$lt_LN_S
22625
22626# What is the maximum length of a command?
22627max_cmd_len=$max_cmd_len
22628
22629# Object file suffix (normally "o").
22630objext=$ac_objext
22631
22632# Executable file suffix (normally "").
22633exeext=$exeext
22634
22635# whether the shell understands "unset".
22636lt_unset=$lt_unset
22637
22638# turn spaces into newlines.
22639SP2NL=$lt_lt_SP2NL
22640
22641# turn newlines into spaces.
22642NL2SP=$lt_lt_NL2SP
22643
22644# convert \$build file names to \$host format.
22645to_host_file_cmd=$lt_cv_to_host_file_cmd
22646
22647# convert \$build files to toolchain format.
22648to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22649
22650# An object symbol dumper.
22651OBJDUMP=$lt_OBJDUMP
22652
22653# Method to check whether dependent libraries are shared objects.
22654deplibs_check_method=$lt_deplibs_check_method
22655
22656# Command to use when deplibs_check_method = "file_magic".
22657file_magic_cmd=$lt_file_magic_cmd
22658
22659# How to find potential files when deplibs_check_method = "file_magic".
22660file_magic_glob=$lt_file_magic_glob
22661
22662# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22663want_nocaseglob=$lt_want_nocaseglob
22664
22665# DLL creation program.
22666DLLTOOL=$lt_DLLTOOL
22667
22668# Command to associate shared and link libraries.
22669sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22670
22671# The archiver.
22672AR=$lt_AR
22673
22674# Flags to create an archive.
22675AR_FLAGS=$lt_AR_FLAGS
22676
22677# How to feed a file listing to the archiver.
22678archiver_list_spec=$lt_archiver_list_spec
22679
22680# A symbol stripping program.
22681STRIP=$lt_STRIP
22682
22683# Commands used to install an old-style archive.
22684RANLIB=$lt_RANLIB
22685old_postinstall_cmds=$lt_old_postinstall_cmds
22686old_postuninstall_cmds=$lt_old_postuninstall_cmds
22687
22688# Whether to use a lock for old archive extraction.
22689lock_old_archive_extraction=$lock_old_archive_extraction
22690
22691# A C compiler.
22692LTCC=$lt_CC
22693
22694# LTCC compiler flags.
22695LTCFLAGS=$lt_CFLAGS
22696
22697# Take the output of nm and produce a listing of raw symbols and C names.
22698global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22699
22700# Transform the output of nm in a proper C declaration.
22701global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22702
22703# Transform the output of nm into a list of symbols to manually relocate.
22704global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22705
22706# Transform the output of nm in a C name address pair.
22707global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22708
22709# Transform the output of nm in a C name address pair when lib prefix is needed.
22710global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22711
22712# The name lister interface.
22713nm_interface=$lt_lt_cv_nm_interface
22714
22715# Specify filename containing input files for \$NM.
22716nm_file_list_spec=$lt_nm_file_list_spec
22717
22718# The root where to search for dependent libraries,and where our libraries should be installed.
22719lt_sysroot=$lt_sysroot
22720
22721# Command to truncate a binary pipe.
22722lt_truncate_bin=$lt_lt_cv_truncate_bin
22723
22724# The name of the directory that contains temporary libtool files.
22725objdir=$objdir
22726
22727# Used to examine libraries when file_magic_cmd begins with "file".
22728MAGIC_CMD=$MAGIC_CMD
22729
22730# Must we lock files when doing compilation?
22731need_locks=$lt_need_locks
22732
22733# Manifest tool.
22734MANIFEST_TOOL=$lt_MANIFEST_TOOL
22735
22736# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22737DSYMUTIL=$lt_DSYMUTIL
22738
22739# Tool to change global to local symbols on Mac OS X.
22740NMEDIT=$lt_NMEDIT
22741
22742# Tool to manipulate fat objects and archives on Mac OS X.
22743LIPO=$lt_LIPO
22744
22745# ldd/readelf like tool for Mach-O binaries on Mac OS X.
22746OTOOL=$lt_OTOOL
22747
22748# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22749OTOOL64=$lt_OTOOL64
22750
22751# Old archive suffix (normally "a").
22752libext=$libext
22753
22754# Shared library suffix (normally ".so").
22755shrext_cmds=$lt_shrext_cmds
22756
22757# The commands to extract the exported symbol list from a shared archive.
22758extract_expsyms_cmds=$lt_extract_expsyms_cmds
22759
22760# Variables whose values should be saved in libtool wrapper scripts and
22761# restored at link time.
22762variables_saved_for_relink=$lt_variables_saved_for_relink
22763
22764# Do we need the "lib" prefix for modules?
22765need_lib_prefix=$need_lib_prefix
22766
22767# Do we need a version for libraries?
22768need_version=$need_version
22769
22770# Library versioning type.
22771version_type=$version_type
22772
22773# Shared library runtime path variable.
22774runpath_var=$runpath_var
22775
22776# Shared library path variable.
22777shlibpath_var=$shlibpath_var
22778
22779# Is shlibpath searched before the hard-coded library search path?
22780shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22781
22782# Format of library name prefix.
22783libname_spec=$lt_libname_spec
22784
22785# List of archive names.  First name is the real one, the rest are links.
22786# The last name is the one that the linker finds with -lNAME
22787library_names_spec=$lt_library_names_spec
22788
22789# The coded name of the library, if different from the real name.
22790soname_spec=$lt_soname_spec
22791
22792# Permission mode override for installation of shared libraries.
22793install_override_mode=$lt_install_override_mode
22794
22795# Command to use after installation of a shared archive.
22796postinstall_cmds=$lt_postinstall_cmds
22797
22798# Command to use after uninstallation of a shared archive.
22799postuninstall_cmds=$lt_postuninstall_cmds
22800
22801# Commands used to finish a libtool library installation in a directory.
22802finish_cmds=$lt_finish_cmds
22803
22804# As "finish_cmds", except a single script fragment to be evaled but
22805# not shown.
22806finish_eval=$lt_finish_eval
22807
22808# Whether we should hardcode library paths into libraries.
22809hardcode_into_libs=$hardcode_into_libs
22810
22811# Compile-time system search path for libraries.
22812sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22813
22814# Detected run-time system search path for libraries.
22815sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22816
22817# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22818configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22819
22820# Whether dlopen is supported.
22821dlopen_support=$enable_dlopen
22822
22823# Whether dlopen of programs is supported.
22824dlopen_self=$enable_dlopen_self
22825
22826# Whether dlopen of statically linked programs is supported.
22827dlopen_self_static=$enable_dlopen_self_static
22828
22829# Commands to strip libraries.
22830old_striplib=$lt_old_striplib
22831striplib=$lt_striplib
22832
22833
22834# The linker used to build libraries.
22835LD=$lt_LD
22836
22837# How to create reloadable object files.
22838reload_flag=$lt_reload_flag
22839reload_cmds=$lt_reload_cmds
22840
22841# Commands used to build an old-style archive.
22842old_archive_cmds=$lt_old_archive_cmds
22843
22844# A language specific compiler.
22845CC=$lt_compiler
22846
22847# Is the compiler the GNU compiler?
22848with_gcc=$GCC
22849
22850# Compiler flag to turn off builtin functions.
22851no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22852
22853# Additional compiler flags for building library objects.
22854pic_flag=$lt_lt_prog_compiler_pic
22855
22856# How to pass a linker flag through the compiler.
22857wl=$lt_lt_prog_compiler_wl
22858
22859# Compiler flag to prevent dynamic linking.
22860link_static_flag=$lt_lt_prog_compiler_static
22861
22862# Does compiler simultaneously support -c and -o options?
22863compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22864
22865# Whether or not to add -lc for building shared libraries.
22866build_libtool_need_lc=$archive_cmds_need_lc
22867
22868# Whether or not to disallow shared libs when runtime libs are static.
22869allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22870
22871# Compiler flag to allow reflexive dlopens.
22872export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22873
22874# Compiler flag to generate shared objects directly from archives.
22875whole_archive_flag_spec=$lt_whole_archive_flag_spec
22876
22877# Whether the compiler copes with passing no objects directly.
22878compiler_needs_object=$lt_compiler_needs_object
22879
22880# Create an old-style archive from a shared archive.
22881old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22882
22883# Create a temporary old-style archive to link instead of a shared archive.
22884old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22885
22886# Commands used to build a shared archive.
22887archive_cmds=$lt_archive_cmds
22888archive_expsym_cmds=$lt_archive_expsym_cmds
22889
22890# Commands used to build a loadable module if different from building
22891# a shared archive.
22892module_cmds=$lt_module_cmds
22893module_expsym_cmds=$lt_module_expsym_cmds
22894
22895# Whether we are building with GNU ld or not.
22896with_gnu_ld=$lt_with_gnu_ld
22897
22898# Flag that allows shared libraries with undefined symbols to be built.
22899allow_undefined_flag=$lt_allow_undefined_flag
22900
22901# Flag that enforces no undefined symbols.
22902no_undefined_flag=$lt_no_undefined_flag
22903
22904# Flag to hardcode \$libdir into a binary during linking.
22905# This must work even if \$libdir does not exist
22906hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22907
22908# Whether we need a single "-rpath" flag with a separated argument.
22909hardcode_libdir_separator=$lt_hardcode_libdir_separator
22910
22911# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22912# DIR into the resulting binary.
22913hardcode_direct=$hardcode_direct
22914
22915# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22916# DIR into the resulting binary and the resulting library dependency is
22917# "absolute",i.e impossible to change by setting \$shlibpath_var if the
22918# library is relocated.
22919hardcode_direct_absolute=$hardcode_direct_absolute
22920
22921# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22922# into the resulting binary.
22923hardcode_minus_L=$hardcode_minus_L
22924
22925# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22926# into the resulting binary.
22927hardcode_shlibpath_var=$hardcode_shlibpath_var
22928
22929# Set to "yes" if building a shared library automatically hardcodes DIR
22930# into the library and all subsequent libraries and executables linked
22931# against it.
22932hardcode_automatic=$hardcode_automatic
22933
22934# Set to yes if linker adds runtime paths of dependent libraries
22935# to runtime path list.
22936inherit_rpath=$inherit_rpath
22937
22938# Whether libtool must link a program against all its dependency libraries.
22939link_all_deplibs=$link_all_deplibs
22940
22941# Set to "yes" if exported symbols are required.
22942always_export_symbols=$always_export_symbols
22943
22944# The commands to list exported symbols.
22945export_symbols_cmds=$lt_export_symbols_cmds
22946
22947# Symbols that should not be listed in the preloaded symbols.
22948exclude_expsyms=$lt_exclude_expsyms
22949
22950# Symbols that must always be exported.
22951include_expsyms=$lt_include_expsyms
22952
22953# Commands necessary for linking programs (against libraries) with templates.
22954prelink_cmds=$lt_prelink_cmds
22955
22956# Commands necessary for finishing linking programs.
22957postlink_cmds=$lt_postlink_cmds
22958
22959# Specify filename containing input files.
22960file_list_spec=$lt_file_list_spec
22961
22962# How to hardcode a shared library path into an executable.
22963hardcode_action=$hardcode_action
22964
22965# The directories searched by this compiler when creating a shared library.
22966compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22967
22968# Dependencies to place before and after the objects being linked to
22969# create a shared library.
22970predep_objects=$lt_predep_objects
22971postdep_objects=$lt_postdep_objects
22972predeps=$lt_predeps
22973postdeps=$lt_postdeps
22974
22975# The library search path used internally by the compiler when linking
22976# a shared library.
22977compiler_lib_search_path=$lt_compiler_lib_search_path
22978
22979# ### END LIBTOOL CONFIG
22980
22981_LT_EOF
22982
22983    cat <<'_LT_EOF' >> "$cfgfile"
22984
22985# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22986
22987# func_munge_path_list VARIABLE PATH
22988# -----------------------------------
22989# VARIABLE is name of variable containing _space_ separated list of
22990# directories to be munged by the contents of PATH, which is string
22991# having a format:
22992# "DIR[:DIR]:"
22993#       string "DIR[ DIR]" will be prepended to VARIABLE
22994# ":DIR[:DIR]"
22995#       string "DIR[ DIR]" will be appended to VARIABLE
22996# "DIRP[:DIRP]::[DIRA:]DIRA"
22997#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22998#       "DIRA[ DIRA]" will be appended to VARIABLE
22999# "DIR[:DIR]"
23000#       VARIABLE will be replaced by "DIR[ DIR]"
23001func_munge_path_list ()
23002{
23003    case x$2 in
23004    x)
23005        ;;
23006    *:)
23007        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23008        ;;
23009    x:*)
23010        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23011        ;;
23012    *::*)
23013        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23014        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23015        ;;
23016    *)
23017        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23018        ;;
23019    esac
23020}
23021
23022
23023# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
23024func_cc_basename ()
23025{
23026    for cc_temp in $*""; do
23027      case $cc_temp in
23028        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23029        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23030        \-*) ;;
23031        *) break;;
23032      esac
23033    done
23034    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23035}
23036
23037
23038# ### END FUNCTIONS SHARED WITH CONFIGURE
23039
23040_LT_EOF
23041
23042  case $host_os in
23043  aix3*)
23044    cat <<\_LT_EOF >> "$cfgfile"
23045# AIX sometimes has problems with the GCC collect2 program.  For some
23046# reason, if we set the COLLECT_NAMES environment variable, the problems
23047# vanish in a puff of smoke.
23048if test set != "${COLLECT_NAMES+set}"; then
23049  COLLECT_NAMES=
23050  export COLLECT_NAMES
23051fi
23052_LT_EOF
23053    ;;
23054  esac
23055
23056
23057ltmain=$ac_aux_dir/ltmain.sh
23058
23059
23060  # We use sed instead of cat because bash on DJGPP gets confused if
23061  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
23062  # text mode, it properly converts lines to CR/LF.  This bash problem
23063  # is reportedly fixed, but why not run on old versions too?
23064  sed '$q' "$ltmain" >> "$cfgfile" \
23065     || (rm -f "$cfgfile"; exit 1)
23066
23067   mv -f "$cfgfile" "$ofile" ||
23068    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23069  chmod +x "$ofile"
23070
23071
23072    cat <<_LT_EOF >> "$ofile"
23073
23074# ### BEGIN LIBTOOL TAG CONFIG: CXX
23075
23076# The linker used to build libraries.
23077LD=$lt_LD_CXX
23078
23079# How to create reloadable object files.
23080reload_flag=$lt_reload_flag_CXX
23081reload_cmds=$lt_reload_cmds_CXX
23082
23083# Commands used to build an old-style archive.
23084old_archive_cmds=$lt_old_archive_cmds_CXX
23085
23086# A language specific compiler.
23087CC=$lt_compiler_CXX
23088
23089# Is the compiler the GNU compiler?
23090with_gcc=$GCC_CXX
23091
23092# Compiler flag to turn off builtin functions.
23093no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
23094
23095# Additional compiler flags for building library objects.
23096pic_flag=$lt_lt_prog_compiler_pic_CXX
23097
23098# How to pass a linker flag through the compiler.
23099wl=$lt_lt_prog_compiler_wl_CXX
23100
23101# Compiler flag to prevent dynamic linking.
23102link_static_flag=$lt_lt_prog_compiler_static_CXX
23103
23104# Does compiler simultaneously support -c and -o options?
23105compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
23106
23107# Whether or not to add -lc for building shared libraries.
23108build_libtool_need_lc=$archive_cmds_need_lc_CXX
23109
23110# Whether or not to disallow shared libs when runtime libs are static.
23111allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
23112
23113# Compiler flag to allow reflexive dlopens.
23114export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
23115
23116# Compiler flag to generate shared objects directly from archives.
23117whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
23118
23119# Whether the compiler copes with passing no objects directly.
23120compiler_needs_object=$lt_compiler_needs_object_CXX
23121
23122# Create an old-style archive from a shared archive.
23123old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
23124
23125# Create a temporary old-style archive to link instead of a shared archive.
23126old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
23127
23128# Commands used to build a shared archive.
23129archive_cmds=$lt_archive_cmds_CXX
23130archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
23131
23132# Commands used to build a loadable module if different from building
23133# a shared archive.
23134module_cmds=$lt_module_cmds_CXX
23135module_expsym_cmds=$lt_module_expsym_cmds_CXX
23136
23137# Whether we are building with GNU ld or not.
23138with_gnu_ld=$lt_with_gnu_ld_CXX
23139
23140# Flag that allows shared libraries with undefined symbols to be built.
23141allow_undefined_flag=$lt_allow_undefined_flag_CXX
23142
23143# Flag that enforces no undefined symbols.
23144no_undefined_flag=$lt_no_undefined_flag_CXX
23145
23146# Flag to hardcode \$libdir into a binary during linking.
23147# This must work even if \$libdir does not exist
23148hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
23149
23150# Whether we need a single "-rpath" flag with a separated argument.
23151hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
23152
23153# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23154# DIR into the resulting binary.
23155hardcode_direct=$hardcode_direct_CXX
23156
23157# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23158# DIR into the resulting binary and the resulting library dependency is
23159# "absolute",i.e impossible to change by setting \$shlibpath_var if the
23160# library is relocated.
23161hardcode_direct_absolute=$hardcode_direct_absolute_CXX
23162
23163# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23164# into the resulting binary.
23165hardcode_minus_L=$hardcode_minus_L_CXX
23166
23167# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23168# into the resulting binary.
23169hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
23170
23171# Set to "yes" if building a shared library automatically hardcodes DIR
23172# into the library and all subsequent libraries and executables linked
23173# against it.
23174hardcode_automatic=$hardcode_automatic_CXX
23175
23176# Set to yes if linker adds runtime paths of dependent libraries
23177# to runtime path list.
23178inherit_rpath=$inherit_rpath_CXX
23179
23180# Whether libtool must link a program against all its dependency libraries.
23181link_all_deplibs=$link_all_deplibs_CXX
23182
23183# Set to "yes" if exported symbols are required.
23184always_export_symbols=$always_export_symbols_CXX
23185
23186# The commands to list exported symbols.
23187export_symbols_cmds=$lt_export_symbols_cmds_CXX
23188
23189# Symbols that should not be listed in the preloaded symbols.
23190exclude_expsyms=$lt_exclude_expsyms_CXX
23191
23192# Symbols that must always be exported.
23193include_expsyms=$lt_include_expsyms_CXX
23194
23195# Commands necessary for linking programs (against libraries) with templates.
23196prelink_cmds=$lt_prelink_cmds_CXX
23197
23198# Commands necessary for finishing linking programs.
23199postlink_cmds=$lt_postlink_cmds_CXX
23200
23201# Specify filename containing input files.
23202file_list_spec=$lt_file_list_spec_CXX
23203
23204# How to hardcode a shared library path into an executable.
23205hardcode_action=$hardcode_action_CXX
23206
23207# The directories searched by this compiler when creating a shared library.
23208compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
23209
23210# Dependencies to place before and after the objects being linked to
23211# create a shared library.
23212predep_objects=$lt_predep_objects_CXX
23213postdep_objects=$lt_postdep_objects_CXX
23214predeps=$lt_predeps_CXX
23215postdeps=$lt_postdeps_CXX
23216
23217# The library search path used internally by the compiler when linking
23218# a shared library.
23219compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
23220
23221# ### END LIBTOOL TAG CONFIG: CXX
23222_LT_EOF
23223
23224 ;;
23225    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23226  # Older Autoconf quotes --file arguments for eval, but not when files
23227  # are listed without --file.  Let's play safe and only enable the eval
23228  # if we detect the quoting.
23229  case $CONFIG_FILES in
23230  *\'*) eval set x "$CONFIG_FILES" ;;
23231  *)   set x $CONFIG_FILES ;;
23232  esac
23233  shift
23234  for mf
23235  do
23236    # Strip MF so we end up with the name of the file.
23237    mf=`echo "$mf" | sed -e 's/:.*$//'`
23238    # Check whether this is an Automake generated Makefile or not.
23239    # We used to match only the files named 'Makefile.in', but
23240    # some people rename them; so instead we look at the file content.
23241    # Grep'ing the first line is not enough: some people post-process
23242    # each Makefile.in and add a new line on top of each file to say so.
23243    # Grep'ing the whole file is not good either: AIX grep has a line
23244    # limit of 2048, but all sed's we know have understand at least 4000.
23245    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23246      dirpart=`$as_dirname -- "$mf" ||
23247$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23248	 X"$mf" : 'X\(//\)[^/]' \| \
23249	 X"$mf" : 'X\(//\)$' \| \
23250	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23251$as_echo X"$mf" |
23252    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23253	    s//\1/
23254	    q
23255	  }
23256	  /^X\(\/\/\)[^/].*/{
23257	    s//\1/
23258	    q
23259	  }
23260	  /^X\(\/\/\)$/{
23261	    s//\1/
23262	    q
23263	  }
23264	  /^X\(\/\).*/{
23265	    s//\1/
23266	    q
23267	  }
23268	  s/.*/./; q'`
23269    else
23270      continue
23271    fi
23272    # Extract the definition of DEPDIR, am__include, and am__quote
23273    # from the Makefile without running 'make'.
23274    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23275    test -z "$DEPDIR" && continue
23276    am__include=`sed -n 's/^am__include = //p' < "$mf"`
23277    test -z "$am__include" && continue
23278    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23279    # Find all dependency output files, they are included files with
23280    # $(DEPDIR) in their names.  We invoke sed twice because it is the
23281    # simplest approach to changing $(DEPDIR) to its actual value in the
23282    # expansion.
23283    for file in `sed -n "
23284      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23285	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
23286      # Make sure the directory exists.
23287      test -f "$dirpart/$file" && continue
23288      fdir=`$as_dirname -- "$file" ||
23289$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23290	 X"$file" : 'X\(//\)[^/]' \| \
23291	 X"$file" : 'X\(//\)$' \| \
23292	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23293$as_echo X"$file" |
23294    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23295	    s//\1/
23296	    q
23297	  }
23298	  /^X\(\/\/\)[^/].*/{
23299	    s//\1/
23300	    q
23301	  }
23302	  /^X\(\/\/\)$/{
23303	    s//\1/
23304	    q
23305	  }
23306	  /^X\(\/\).*/{
23307	    s//\1/
23308	    q
23309	  }
23310	  s/.*/./; q'`
23311      as_dir=$dirpart/$fdir; as_fn_mkdir_p
23312      # echo "creating $dirpart/$file"
23313      echo '# dummy' > "$dirpart/$file"
23314    done
23315  done
23316}
23317 ;;
23318    "po-directories":C)
23319    for ac_file in $CONFIG_FILES; do
23320      # Support "outfile[:infile[:infile...]]"
23321      case "$ac_file" in
23322        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23323      esac
23324      # PO directories have a Makefile.in generated from Makefile.in.in.
23325      case "$ac_file" in */Makefile.in)
23326        # Adjust a relative srcdir.
23327        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
23328        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
23329        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
23330        # In autoconf-2.13 it is called $ac_given_srcdir.
23331        # In autoconf-2.50 it is called $srcdir.
23332        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
23333        case "$ac_given_srcdir" in
23334          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
23335          /*) top_srcdir="$ac_given_srcdir" ;;
23336          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
23337        esac
23338        # Treat a directory as a PO directory if and only if it has a
23339        # POTFILES.in file. This allows packages to have multiple PO
23340        # directories under different names or in different locations.
23341        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
23342          rm -f "$ac_dir/POTFILES"
23343          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
23344          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
23345          POMAKEFILEDEPS="POTFILES.in"
23346          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
23347          # on $ac_dir but don't depend on user-specified configuration
23348          # parameters.
23349          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
23350            # The LINGUAS file contains the set of available languages.
23351            if test -n "$OBSOLETE_ALL_LINGUAS"; then
23352              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
23353            fi
23354            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
23355            # Hide the ALL_LINGUAS assigment from automake < 1.5.
23356            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
23357            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
23358          else
23359            # The set of available languages was given in configure.in.
23360            # Hide the ALL_LINGUAS assigment from automake < 1.5.
23361            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
23362          fi
23363          # Compute POFILES
23364          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
23365          # Compute UPDATEPOFILES
23366          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
23367          # Compute DUMMYPOFILES
23368          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
23369          # Compute GMOFILES
23370          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
23371          case "$ac_given_srcdir" in
23372            .) srcdirpre= ;;
23373            *) srcdirpre='$(srcdir)/' ;;
23374          esac
23375          POFILES=
23376          UPDATEPOFILES=
23377          DUMMYPOFILES=
23378          GMOFILES=
23379          for lang in $ALL_LINGUAS; do
23380            POFILES="$POFILES $srcdirpre$lang.po"
23381            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
23382            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
23383            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
23384          done
23385          # CATALOGS depends on both $ac_dir and the user's LINGUAS
23386          # environment variable.
23387          INST_LINGUAS=
23388          if test -n "$ALL_LINGUAS"; then
23389            for presentlang in $ALL_LINGUAS; do
23390              useit=no
23391              if test "%UNSET%" != "$LINGUAS"; then
23392                desiredlanguages="$LINGUAS"
23393              else
23394                desiredlanguages="$ALL_LINGUAS"
23395              fi
23396              for desiredlang in $desiredlanguages; do
23397                # Use the presentlang catalog if desiredlang is
23398                #   a. equal to presentlang, or
23399                #   b. a variant of presentlang (because in this case,
23400                #      presentlang can be used as a fallback for messages
23401                #      which are not translated in the desiredlang catalog).
23402                case "$desiredlang" in
23403                  "$presentlang"*) useit=yes;;
23404                esac
23405              done
23406              if test $useit = yes; then
23407                INST_LINGUAS="$INST_LINGUAS $presentlang"
23408              fi
23409            done
23410          fi
23411          CATALOGS=
23412          if test -n "$INST_LINGUAS"; then
23413            for lang in $INST_LINGUAS; do
23414              CATALOGS="$CATALOGS $lang.gmo"
23415            done
23416          fi
23417          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
23418          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
23419          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
23420            if test -f "$f"; then
23421              case "$f" in
23422                *.orig | *.bak | *~) ;;
23423                *) cat "$f" >> "$ac_dir/Makefile" ;;
23424              esac
23425            fi
23426          done
23427        fi
23428        ;;
23429      esac
23430    done ;;
23431
23432  esac
23433done # for ac_tag
23434
23435
23436as_fn_exit 0
23437_ACEOF
23438ac_clean_files=$ac_clean_files_save
23439
23440test $ac_write_fail = 0 ||
23441  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23442
23443
23444# configure is writing to config.log, and then calls config.status.
23445# config.status does its own redirection, appending to config.log.
23446# Unfortunately, on DOS this fails, as config.log is still kept open
23447# by configure, so config.status won't be able to write to it; its
23448# output is simply discarded.  So we exec the FD to /dev/null,
23449# effectively closing config.log, so it can be properly (re)opened and
23450# appended to by config.status.  When coming back to configure, we
23451# need to make the FD available again.
23452if test "$no_create" != yes; then
23453  ac_cs_success=:
23454  ac_config_status_args=
23455  test "$silent" = yes &&
23456    ac_config_status_args="$ac_config_status_args --quiet"
23457  exec 5>/dev/null
23458  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23459  exec 5>>config.log
23460  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23461  # would make configure fail if this is the last instruction.
23462  $ac_cs_success || as_fn_exit 1
23463fi
23464if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23465  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23466$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23467fi
23468
23469