xref: /netbsd-src/external/bsd/flex/dist/configure (revision bdc22b2e01993381dcefeff2bc9b56ca75a4235c)
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.3.
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.3'
594PACKAGE_STRING='the fast lexical analyser generator 2.6.3'
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
642want_pthread_FALSE
643want_pthread_TRUE
644INDENT
645M4
646TEXI2DVI
647HELP2MAN
648BISON
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
661LEXLIB
662LEX_OUTPUT_ROOT
663LEX
664YFLAGS
665YACC
666POSUB
667LTLIBINTL
668LIBINTL
669INTLLIBS
670LTLIBICONV
671LIBICONV
672INTL_MACOSX_LIBS
673XGETTEXT_EXTRA_OPTIONS
674MSGMERGE
675XGETTEXT_015
676XGETTEXT
677GMSGFMT_015
678MSGFMT_015
679GMSGFMT
680MSGFMT
681GETTEXT_MACRO_VERSION
682USE_NLS
683SHARED_VERSION_INFO
684AM_BACKSLASH
685AM_DEFAULT_VERBOSITY
686AM_DEFAULT_V
687AM_V
688am__fastdepCC_FALSE
689am__fastdepCC_TRUE
690CCDEPMODE
691am__nodep
692AMDEPBACKSLASH
693AMDEP_FALSE
694AMDEP_TRUE
695am__quote
696am__include
697DEPDIR
698am__untar
699am__tar
700AMTAR
701am__leading_dot
702SET_MAKE
703mkdir_p
704MKDIR_P
705INSTALL_STRIP_PROGRAM
706install_sh
707MAKEINFO
708AUTOHEADER
709AUTOMAKE
710AUTOCONF
711ACLOCAL
712VERSION
713PACKAGE
714CYGPATH_W
715am__isrc
716INSTALL_DATA
717INSTALL_SCRIPT
718INSTALL_PROGRAM
719CPP
720LT_SYS_LIBRARY_PATH
721OTOOL64
722OTOOL
723LIPO
724NMEDIT
725DSYMUTIL
726MANIFEST_TOOL
727AWK
728RANLIB
729STRIP
730ac_ct_AR
731AR
732DLLTOOL
733OBJDUMP
734LN_S
735NM
736ac_ct_DUMPBIN
737DUMPBIN
738LD
739FGREP
740EGREP
741GREP
742SED
743OBJEXT
744EXEEXT
745ac_ct_CC
746CPPFLAGS
747LDFLAGS
748CFLAGS
749CC
750host_os
751host_vendor
752host_cpu
753host
754build_os
755build_vendor
756build_cpu
757build
758LIBTOOL
759target_alias
760host_alias
761build_alias
762LIBS
763ECHO_T
764ECHO_N
765ECHO_C
766DEFS
767mandir
768localedir
769libdir
770psdir
771pdfdir
772dvidir
773htmldir
774infodir
775docdir
776oldincludedir
777includedir
778runstatedir
779localstatedir
780sharedstatedir
781sysconfdir
782datadir
783datarootdir
784libexecdir
785sbindir
786bindir
787program_transform_name
788prefix
789exec_prefix
790PACKAGE_URL
791PACKAGE_BUGREPORT
792PACKAGE_STRING
793PACKAGE_VERSION
794PACKAGE_TARNAME
795PACKAGE_NAME
796PATH_SEPARATOR
797SHELL'
798ac_subst_files=''
799ac_user_opts='
800enable_option_checking
801enable_shared
802enable_static
803with_pic
804enable_fast_install
805with_aix_soname
806with_gnu_ld
807with_sysroot
808enable_libtool_lock
809enable_dependency_tracking
810enable_silent_rules
811enable_nls
812enable_rpath
813with_libiconv_prefix
814with_libintl_prefix
815enable_warnings
816enable_libfl
817enable_bootstrap
818'
819      ac_precious_vars='build_alias
820host_alias
821target_alias
822CC
823CFLAGS
824LDFLAGS
825LIBS
826CPPFLAGS
827LT_SYS_LIBRARY_PATH
828CPP
829YACC
830YFLAGS
831CXX
832CXXFLAGS
833CCC
834CXXCPP'
835
836
837# Initialize some variables set by options.
838ac_init_help=
839ac_init_version=false
840ac_unrecognized_opts=
841ac_unrecognized_sep=
842# The variables have the same names as the options, with
843# dashes changed to underlines.
844cache_file=/dev/null
845exec_prefix=NONE
846no_create=
847no_recursion=
848prefix=NONE
849program_prefix=NONE
850program_suffix=NONE
851program_transform_name=s,x,x,
852silent=
853site=
854srcdir=
855verbose=
856x_includes=NONE
857x_libraries=NONE
858
859# Installation directory options.
860# These are left unexpanded so users can "make install exec_prefix=/foo"
861# and all the variables that are supposed to be based on exec_prefix
862# by default will actually change.
863# Use braces instead of parens because sh, perl, etc. also accept them.
864# (The list follows the same order as the GNU Coding Standards.)
865bindir='${exec_prefix}/bin'
866sbindir='${exec_prefix}/sbin'
867libexecdir='${exec_prefix}/libexec'
868datarootdir='${prefix}/share'
869datadir='${datarootdir}'
870sysconfdir='${prefix}/etc'
871sharedstatedir='${prefix}/com'
872localstatedir='${prefix}/var'
873runstatedir='${localstatedir}/run'
874includedir='${prefix}/include'
875oldincludedir='/usr/include'
876docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
877infodir='${datarootdir}/info'
878htmldir='${docdir}'
879dvidir='${docdir}'
880pdfdir='${docdir}'
881psdir='${docdir}'
882libdir='${exec_prefix}/lib'
883localedir='${datarootdir}/locale'
884mandir='${datarootdir}/man'
885
886ac_prev=
887ac_dashdash=
888for ac_option
889do
890  # If the previous option needs an argument, assign it.
891  if test -n "$ac_prev"; then
892    eval $ac_prev=\$ac_option
893    ac_prev=
894    continue
895  fi
896
897  case $ac_option in
898  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
899  *=)   ac_optarg= ;;
900  *)    ac_optarg=yes ;;
901  esac
902
903  # Accept the important Cygnus configure options, so we can diagnose typos.
904
905  case $ac_dashdash$ac_option in
906  --)
907    ac_dashdash=yes ;;
908
909  -bindir | --bindir | --bindi | --bind | --bin | --bi)
910    ac_prev=bindir ;;
911  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
912    bindir=$ac_optarg ;;
913
914  -build | --build | --buil | --bui | --bu)
915    ac_prev=build_alias ;;
916  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
917    build_alias=$ac_optarg ;;
918
919  -cache-file | --cache-file | --cache-fil | --cache-fi \
920  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
921    ac_prev=cache_file ;;
922  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
923  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
924    cache_file=$ac_optarg ;;
925
926  --config-cache | -C)
927    cache_file=config.cache ;;
928
929  -datadir | --datadir | --datadi | --datad)
930    ac_prev=datadir ;;
931  -datadir=* | --datadir=* | --datadi=* | --datad=*)
932    datadir=$ac_optarg ;;
933
934  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
935  | --dataroo | --dataro | --datar)
936    ac_prev=datarootdir ;;
937  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
938  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
939    datarootdir=$ac_optarg ;;
940
941  -disable-* | --disable-*)
942    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
943    # Reject names that are not valid shell variable names.
944    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
945      as_fn_error $? "invalid feature name: $ac_useropt"
946    ac_useropt_orig=$ac_useropt
947    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
948    case $ac_user_opts in
949      *"
950"enable_$ac_useropt"
951"*) ;;
952      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
953	 ac_unrecognized_sep=', ';;
954    esac
955    eval enable_$ac_useropt=no ;;
956
957  -docdir | --docdir | --docdi | --doc | --do)
958    ac_prev=docdir ;;
959  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
960    docdir=$ac_optarg ;;
961
962  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
963    ac_prev=dvidir ;;
964  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
965    dvidir=$ac_optarg ;;
966
967  -enable-* | --enable-*)
968    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
969    # Reject names that are not valid shell variable names.
970    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
971      as_fn_error $? "invalid feature name: $ac_useropt"
972    ac_useropt_orig=$ac_useropt
973    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
974    case $ac_user_opts in
975      *"
976"enable_$ac_useropt"
977"*) ;;
978      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
979	 ac_unrecognized_sep=', ';;
980    esac
981    eval enable_$ac_useropt=\$ac_optarg ;;
982
983  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
984  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
985  | --exec | --exe | --ex)
986    ac_prev=exec_prefix ;;
987  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
988  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
989  | --exec=* | --exe=* | --ex=*)
990    exec_prefix=$ac_optarg ;;
991
992  -gas | --gas | --ga | --g)
993    # Obsolete; use --with-gas.
994    with_gas=yes ;;
995
996  -help | --help | --hel | --he | -h)
997    ac_init_help=long ;;
998  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
999    ac_init_help=recursive ;;
1000  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1001    ac_init_help=short ;;
1002
1003  -host | --host | --hos | --ho)
1004    ac_prev=host_alias ;;
1005  -host=* | --host=* | --hos=* | --ho=*)
1006    host_alias=$ac_optarg ;;
1007
1008  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1009    ac_prev=htmldir ;;
1010  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1011  | --ht=*)
1012    htmldir=$ac_optarg ;;
1013
1014  -includedir | --includedir | --includedi | --included | --include \
1015  | --includ | --inclu | --incl | --inc)
1016    ac_prev=includedir ;;
1017  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1018  | --includ=* | --inclu=* | --incl=* | --inc=*)
1019    includedir=$ac_optarg ;;
1020
1021  -infodir | --infodir | --infodi | --infod | --info | --inf)
1022    ac_prev=infodir ;;
1023  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1024    infodir=$ac_optarg ;;
1025
1026  -libdir | --libdir | --libdi | --libd)
1027    ac_prev=libdir ;;
1028  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1029    libdir=$ac_optarg ;;
1030
1031  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1032  | --libexe | --libex | --libe)
1033    ac_prev=libexecdir ;;
1034  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1035  | --libexe=* | --libex=* | --libe=*)
1036    libexecdir=$ac_optarg ;;
1037
1038  -localedir | --localedir | --localedi | --localed | --locale)
1039    ac_prev=localedir ;;
1040  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1041    localedir=$ac_optarg ;;
1042
1043  -localstatedir | --localstatedir | --localstatedi | --localstated \
1044  | --localstate | --localstat | --localsta | --localst | --locals)
1045    ac_prev=localstatedir ;;
1046  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1047  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1048    localstatedir=$ac_optarg ;;
1049
1050  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1051    ac_prev=mandir ;;
1052  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1053    mandir=$ac_optarg ;;
1054
1055  -nfp | --nfp | --nf)
1056    # Obsolete; use --without-fp.
1057    with_fp=no ;;
1058
1059  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1060  | --no-cr | --no-c | -n)
1061    no_create=yes ;;
1062
1063  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1064  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1065    no_recursion=yes ;;
1066
1067  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1068  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1069  | --oldin | --oldi | --old | --ol | --o)
1070    ac_prev=oldincludedir ;;
1071  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1072  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1073  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1074    oldincludedir=$ac_optarg ;;
1075
1076  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1077    ac_prev=prefix ;;
1078  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1079    prefix=$ac_optarg ;;
1080
1081  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1082  | --program-pre | --program-pr | --program-p)
1083    ac_prev=program_prefix ;;
1084  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1085  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1086    program_prefix=$ac_optarg ;;
1087
1088  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1089  | --program-suf | --program-su | --program-s)
1090    ac_prev=program_suffix ;;
1091  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1092  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1093    program_suffix=$ac_optarg ;;
1094
1095  -program-transform-name | --program-transform-name \
1096  | --program-transform-nam | --program-transform-na \
1097  | --program-transform-n | --program-transform- \
1098  | --program-transform | --program-transfor \
1099  | --program-transfo | --program-transf \
1100  | --program-trans | --program-tran \
1101  | --progr-tra | --program-tr | --program-t)
1102    ac_prev=program_transform_name ;;
1103  -program-transform-name=* | --program-transform-name=* \
1104  | --program-transform-nam=* | --program-transform-na=* \
1105  | --program-transform-n=* | --program-transform-=* \
1106  | --program-transform=* | --program-transfor=* \
1107  | --program-transfo=* | --program-transf=* \
1108  | --program-trans=* | --program-tran=* \
1109  | --progr-tra=* | --program-tr=* | --program-t=*)
1110    program_transform_name=$ac_optarg ;;
1111
1112  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1113    ac_prev=pdfdir ;;
1114  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1115    pdfdir=$ac_optarg ;;
1116
1117  -psdir | --psdir | --psdi | --psd | --ps)
1118    ac_prev=psdir ;;
1119  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1120    psdir=$ac_optarg ;;
1121
1122  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1123  | -silent | --silent | --silen | --sile | --sil)
1124    silent=yes ;;
1125
1126  -runstatedir | --runstatedir | --runstatedi | --runstated \
1127  | --runstate | --runstat | --runsta | --runst | --runs \
1128  | --run | --ru | --r)
1129    ac_prev=runstatedir ;;
1130  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1131  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1132  | --run=* | --ru=* | --r=*)
1133    runstatedir=$ac_optarg ;;
1134
1135  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1136    ac_prev=sbindir ;;
1137  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1138  | --sbi=* | --sb=*)
1139    sbindir=$ac_optarg ;;
1140
1141  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1142  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1143  | --sharedst | --shareds | --shared | --share | --shar \
1144  | --sha | --sh)
1145    ac_prev=sharedstatedir ;;
1146  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1147  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1148  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1149  | --sha=* | --sh=*)
1150    sharedstatedir=$ac_optarg ;;
1151
1152  -site | --site | --sit)
1153    ac_prev=site ;;
1154  -site=* | --site=* | --sit=*)
1155    site=$ac_optarg ;;
1156
1157  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1158    ac_prev=srcdir ;;
1159  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1160    srcdir=$ac_optarg ;;
1161
1162  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1163  | --syscon | --sysco | --sysc | --sys | --sy)
1164    ac_prev=sysconfdir ;;
1165  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1166  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1167    sysconfdir=$ac_optarg ;;
1168
1169  -target | --target | --targe | --targ | --tar | --ta | --t)
1170    ac_prev=target_alias ;;
1171  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1172    target_alias=$ac_optarg ;;
1173
1174  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1175    verbose=yes ;;
1176
1177  -version | --version | --versio | --versi | --vers | -V)
1178    ac_init_version=: ;;
1179
1180  -with-* | --with-*)
1181    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1182    # Reject names that are not valid shell variable names.
1183    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1184      as_fn_error $? "invalid package name: $ac_useropt"
1185    ac_useropt_orig=$ac_useropt
1186    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1187    case $ac_user_opts in
1188      *"
1189"with_$ac_useropt"
1190"*) ;;
1191      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1192	 ac_unrecognized_sep=', ';;
1193    esac
1194    eval with_$ac_useropt=\$ac_optarg ;;
1195
1196  -without-* | --without-*)
1197    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1198    # Reject names that are not valid shell variable names.
1199    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1200      as_fn_error $? "invalid package name: $ac_useropt"
1201    ac_useropt_orig=$ac_useropt
1202    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1203    case $ac_user_opts in
1204      *"
1205"with_$ac_useropt"
1206"*) ;;
1207      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1208	 ac_unrecognized_sep=', ';;
1209    esac
1210    eval with_$ac_useropt=no ;;
1211
1212  --x)
1213    # Obsolete; use --with-x.
1214    with_x=yes ;;
1215
1216  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1217  | --x-incl | --x-inc | --x-in | --x-i)
1218    ac_prev=x_includes ;;
1219  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1220  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1221    x_includes=$ac_optarg ;;
1222
1223  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1224  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1225    ac_prev=x_libraries ;;
1226  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1227  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1228    x_libraries=$ac_optarg ;;
1229
1230  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1231Try \`$0 --help' for more information"
1232    ;;
1233
1234  *=*)
1235    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1236    # Reject names that are not valid shell variable names.
1237    case $ac_envvar in #(
1238      '' | [0-9]* | *[!_$as_cr_alnum]* )
1239      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1240    esac
1241    eval $ac_envvar=\$ac_optarg
1242    export $ac_envvar ;;
1243
1244  *)
1245    # FIXME: should be removed in autoconf 3.0.
1246    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1247    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1248      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1249    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1250    ;;
1251
1252  esac
1253done
1254
1255if test -n "$ac_prev"; then
1256  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1257  as_fn_error $? "missing argument to $ac_option"
1258fi
1259
1260if test -n "$ac_unrecognized_opts"; then
1261  case $enable_option_checking in
1262    no) ;;
1263    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1264    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1265  esac
1266fi
1267
1268# Check all directory arguments for consistency.
1269for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1270		datadir sysconfdir sharedstatedir localstatedir includedir \
1271		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1272		libdir localedir mandir runstatedir
1273do
1274  eval ac_val=\$$ac_var
1275  # Remove trailing slashes.
1276  case $ac_val in
1277    */ )
1278      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1279      eval $ac_var=\$ac_val;;
1280  esac
1281  # Be sure to have absolute directory names.
1282  case $ac_val in
1283    [\\/$]* | ?:[\\/]* )  continue;;
1284    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1285  esac
1286  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1287done
1288
1289# There might be people who depend on the old broken behavior: `$host'
1290# used to hold the argument of --host etc.
1291# FIXME: To remove some day.
1292build=$build_alias
1293host=$host_alias
1294target=$target_alias
1295
1296# FIXME: To remove some day.
1297if test "x$host_alias" != x; then
1298  if test "x$build_alias" = x; then
1299    cross_compiling=maybe
1300  elif test "x$build_alias" != "x$host_alias"; then
1301    cross_compiling=yes
1302  fi
1303fi
1304
1305ac_tool_prefix=
1306test -n "$host_alias" && ac_tool_prefix=$host_alias-
1307
1308test "$silent" = yes && exec 6>/dev/null
1309
1310
1311ac_pwd=`pwd` && test -n "$ac_pwd" &&
1312ac_ls_di=`ls -di .` &&
1313ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1314  as_fn_error $? "working directory cannot be determined"
1315test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1316  as_fn_error $? "pwd does not report name of working directory"
1317
1318
1319# Find the source files, if location was not specified.
1320if test -z "$srcdir"; then
1321  ac_srcdir_defaulted=yes
1322  # Try the directory containing this script, then the parent directory.
1323  ac_confdir=`$as_dirname -- "$as_myself" ||
1324$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1325	 X"$as_myself" : 'X\(//\)[^/]' \| \
1326	 X"$as_myself" : 'X\(//\)$' \| \
1327	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1328$as_echo X"$as_myself" |
1329    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1330	    s//\1/
1331	    q
1332	  }
1333	  /^X\(\/\/\)[^/].*/{
1334	    s//\1/
1335	    q
1336	  }
1337	  /^X\(\/\/\)$/{
1338	    s//\1/
1339	    q
1340	  }
1341	  /^X\(\/\).*/{
1342	    s//\1/
1343	    q
1344	  }
1345	  s/.*/./; q'`
1346  srcdir=$ac_confdir
1347  if test ! -r "$srcdir/$ac_unique_file"; then
1348    srcdir=..
1349  fi
1350else
1351  ac_srcdir_defaulted=no
1352fi
1353if test ! -r "$srcdir/$ac_unique_file"; then
1354  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1355  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1356fi
1357ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1358ac_abs_confdir=`(
1359	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1360	pwd)`
1361# When building in place, set srcdir=.
1362if test "$ac_abs_confdir" = "$ac_pwd"; then
1363  srcdir=.
1364fi
1365# Remove unnecessary trailing slashes from srcdir.
1366# Double slashes in file names in object file debugging info
1367# mess up M-x gdb in Emacs.
1368case $srcdir in
1369*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1370esac
1371for ac_var in $ac_precious_vars; do
1372  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1373  eval ac_env_${ac_var}_value=\$${ac_var}
1374  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1375  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1376done
1377
1378#
1379# Report the --help message.
1380#
1381if test "$ac_init_help" = "long"; then
1382  # Omit some internal or obsolete options to make the list less imposing.
1383  # This message is too long to be a string in the A/UX 3.1 sh.
1384  cat <<_ACEOF
1385\`configure' configures the fast lexical analyser generator 2.6.3 to adapt to many kinds of systems.
1386
1387Usage: $0 [OPTION]... [VAR=VALUE]...
1388
1389To assign environment variables (e.g., CC, CFLAGS...), specify them as
1390VAR=VALUE.  See below for descriptions of some of the useful variables.
1391
1392Defaults for the options are specified in brackets.
1393
1394Configuration:
1395  -h, --help              display this help and exit
1396      --help=short        display options specific to this package
1397      --help=recursive    display the short help of all the included packages
1398  -V, --version           display version information and exit
1399  -q, --quiet, --silent   do not print \`checking ...' messages
1400      --cache-file=FILE   cache test results in FILE [disabled]
1401  -C, --config-cache      alias for \`--cache-file=config.cache'
1402  -n, --no-create         do not create output files
1403      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1404
1405Installation directories:
1406  --prefix=PREFIX         install architecture-independent files in PREFIX
1407                          [$ac_default_prefix]
1408  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1409                          [PREFIX]
1410
1411By default, \`make install' will install all the files in
1412\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1413an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1414for instance \`--prefix=\$HOME'.
1415
1416For better control, use the options below.
1417
1418Fine tuning of the installation directories:
1419  --bindir=DIR            user executables [EPREFIX/bin]
1420  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1421  --libexecdir=DIR        program executables [EPREFIX/libexec]
1422  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1423  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1424  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1425  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1426  --libdir=DIR            object code libraries [EPREFIX/lib]
1427  --includedir=DIR        C header files [PREFIX/include]
1428  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1429  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1430  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1431  --infodir=DIR           info documentation [DATAROOTDIR/info]
1432  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1433  --mandir=DIR            man documentation [DATAROOTDIR/man]
1434  --docdir=DIR            documentation root [DATAROOTDIR/doc/flex]
1435  --htmldir=DIR           html documentation [DOCDIR]
1436  --dvidir=DIR            dvi documentation [DOCDIR]
1437  --pdfdir=DIR            pdf documentation [DOCDIR]
1438  --psdir=DIR             ps documentation [DOCDIR]
1439_ACEOF
1440
1441  cat <<\_ACEOF
1442
1443Program names:
1444  --program-prefix=PREFIX            prepend PREFIX to installed program names
1445  --program-suffix=SUFFIX            append SUFFIX to installed program names
1446  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1447
1448System types:
1449  --build=BUILD     configure for building on BUILD [guessed]
1450  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1451_ACEOF
1452fi
1453
1454if test -n "$ac_init_help"; then
1455  case $ac_init_help in
1456     short | recursive ) echo "Configuration of the fast lexical analyser generator 2.6.3:";;
1457   esac
1458  cat <<\_ACEOF
1459
1460Optional Features:
1461  --disable-option-checking  ignore unrecognized --enable/--with options
1462  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1463  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1464  --enable-shared[=PKGS]  build shared libraries [default=yes]
1465  --enable-static[=PKGS]  build static libraries [default=yes]
1466  --enable-fast-install[=PKGS]
1467                          optimize for fast installation [default=yes]
1468  --disable-libtool-lock  avoid locking (might break parallel builds)
1469  --enable-dependency-tracking
1470                          do not reject slow dependency extractors
1471  --disable-dependency-tracking
1472                          speeds up one-time build
1473  --enable-silent-rules   less verbose build output (undo: "make V=1")
1474  --disable-silent-rules  verbose build output (undo: "make V=0")
1475  --disable-nls           do not use Native Language Support
1476  --disable-rpath         do not hardcode runtime library paths
1477  --enable-warnings       enable a bunch of compiler warning flags (defaults
1478                          to GCC warning flags).
1479  --disable-libfl         do not build -lfl runtime support library
1480  --disable-bootstrap     don't perform a bootstrap when building flex
1481
1482Optional Packages:
1483  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1484  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1485  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1486                          both]
1487  --with-aix-soname=aix|svr4|both
1488                          shared library versioning (aka "SONAME") variant to
1489                          provide on AIX, [default=aix].
1490  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1491  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1492                          compiler's sysroot if not specified).
1493  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1494  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1495  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1496  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1497  --without-libintl-prefix     don't search for libintl in includedir and libdir
1498
1499Some influential environment variables:
1500  CC          C compiler command
1501  CFLAGS      C compiler flags
1502  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1503              nonstandard directory <lib dir>
1504  LIBS        libraries to pass to the linker, e.g. -l<library>
1505  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1506              you have headers in a nonstandard directory <include dir>
1507  LT_SYS_LIBRARY_PATH
1508              User-defined run-time library search path.
1509  CPP         C preprocessor
1510  YACC        The `Yet Another Compiler Compiler' implementation to use.
1511              Defaults to the first program found out of: `bison -y', `byacc',
1512              `yacc'.
1513  YFLAGS      The list of arguments that will be passed by default to $YACC.
1514              This script will default YFLAGS to the empty string to avoid a
1515              default value of `-d' given by some make applications.
1516  CXX         C++ compiler command
1517  CXXFLAGS    C++ compiler flags
1518  CXXCPP      C++ preprocessor
1519
1520Use these variables to override the choices made by `configure' or to help
1521it to find libraries and programs with nonstandard names/locations.
1522
1523Report bugs to <flex-help@lists.sourceforge.net>.
1524_ACEOF
1525ac_status=$?
1526fi
1527
1528if test "$ac_init_help" = "recursive"; then
1529  # If there are subdirs, report their specific --help.
1530  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1531    test -d "$ac_dir" ||
1532      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1533      continue
1534    ac_builddir=.
1535
1536case "$ac_dir" in
1537.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1538*)
1539  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1540  # A ".." for each directory in $ac_dir_suffix.
1541  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1542  case $ac_top_builddir_sub in
1543  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1544  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1545  esac ;;
1546esac
1547ac_abs_top_builddir=$ac_pwd
1548ac_abs_builddir=$ac_pwd$ac_dir_suffix
1549# for backward compatibility:
1550ac_top_builddir=$ac_top_build_prefix
1551
1552case $srcdir in
1553  .)  # We are building in place.
1554    ac_srcdir=.
1555    ac_top_srcdir=$ac_top_builddir_sub
1556    ac_abs_top_srcdir=$ac_pwd ;;
1557  [\\/]* | ?:[\\/]* )  # Absolute name.
1558    ac_srcdir=$srcdir$ac_dir_suffix;
1559    ac_top_srcdir=$srcdir
1560    ac_abs_top_srcdir=$srcdir ;;
1561  *) # Relative name.
1562    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1563    ac_top_srcdir=$ac_top_build_prefix$srcdir
1564    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1565esac
1566ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1567
1568    cd "$ac_dir" || { ac_status=$?; continue; }
1569    # Check for guested configure.
1570    if test -f "$ac_srcdir/configure.gnu"; then
1571      echo &&
1572      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1573    elif test -f "$ac_srcdir/configure"; then
1574      echo &&
1575      $SHELL "$ac_srcdir/configure" --help=recursive
1576    else
1577      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1578    fi || ac_status=$?
1579    cd "$ac_pwd" || { ac_status=$?; break; }
1580  done
1581fi
1582
1583test -n "$ac_init_help" && exit $ac_status
1584if $ac_init_version; then
1585  cat <<\_ACEOF
1586the fast lexical analyser generator configure 2.6.3
1587generated by GNU Autoconf 2.69
1588
1589Copyright (C) 2012 Free Software Foundation, Inc.
1590This configure script is free software; the Free Software Foundation
1591gives unlimited permission to copy, distribute and modify it.
1592_ACEOF
1593  exit
1594fi
1595
1596## ------------------------ ##
1597## Autoconf initialization. ##
1598## ------------------------ ##
1599
1600# ac_fn_c_try_compile LINENO
1601# --------------------------
1602# Try to compile conftest.$ac_ext, and return whether this succeeded.
1603ac_fn_c_try_compile ()
1604{
1605  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606  rm -f conftest.$ac_objext
1607  if { { ac_try="$ac_compile"
1608case "(($ac_try" in
1609  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1610  *) ac_try_echo=$ac_try;;
1611esac
1612eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1613$as_echo "$ac_try_echo"; } >&5
1614  (eval "$ac_compile") 2>conftest.err
1615  ac_status=$?
1616  if test -s conftest.err; then
1617    grep -v '^ *+' conftest.err >conftest.er1
1618    cat conftest.er1 >&5
1619    mv -f conftest.er1 conftest.err
1620  fi
1621  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1622  test $ac_status = 0; } && {
1623	 test -z "$ac_c_werror_flag" ||
1624	 test ! -s conftest.err
1625       } && test -s conftest.$ac_objext; then :
1626  ac_retval=0
1627else
1628  $as_echo "$as_me: failed program was:" >&5
1629sed 's/^/| /' conftest.$ac_ext >&5
1630
1631	ac_retval=1
1632fi
1633  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1634  as_fn_set_status $ac_retval
1635
1636} # ac_fn_c_try_compile
1637
1638# ac_fn_c_try_link LINENO
1639# -----------------------
1640# Try to link conftest.$ac_ext, and return whether this succeeded.
1641ac_fn_c_try_link ()
1642{
1643  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1644  rm -f conftest.$ac_objext conftest$ac_exeext
1645  if { { ac_try="$ac_link"
1646case "(($ac_try" in
1647  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1648  *) ac_try_echo=$ac_try;;
1649esac
1650eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1651$as_echo "$ac_try_echo"; } >&5
1652  (eval "$ac_link") 2>conftest.err
1653  ac_status=$?
1654  if test -s conftest.err; then
1655    grep -v '^ *+' conftest.err >conftest.er1
1656    cat conftest.er1 >&5
1657    mv -f conftest.er1 conftest.err
1658  fi
1659  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1660  test $ac_status = 0; } && {
1661	 test -z "$ac_c_werror_flag" ||
1662	 test ! -s conftest.err
1663       } && test -s conftest$ac_exeext && {
1664	 test "$cross_compiling" = yes ||
1665	 test -x conftest$ac_exeext
1666       }; then :
1667  ac_retval=0
1668else
1669  $as_echo "$as_me: failed program was:" >&5
1670sed 's/^/| /' conftest.$ac_ext >&5
1671
1672	ac_retval=1
1673fi
1674  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1675  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1676  # interfere with the next link command; also delete a directory that is
1677  # left behind by Apple's compiler.  We do this before executing the actions.
1678  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1679  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1680  as_fn_set_status $ac_retval
1681
1682} # ac_fn_c_try_link
1683
1684# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1685# -------------------------------------------------------
1686# Tests whether HEADER exists and can be compiled using the include files in
1687# INCLUDES, setting the cache variable VAR accordingly.
1688ac_fn_c_check_header_compile ()
1689{
1690  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1692$as_echo_n "checking for $2... " >&6; }
1693if eval \${$3+:} false; then :
1694  $as_echo_n "(cached) " >&6
1695else
1696  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1697/* end confdefs.h.  */
1698$4
1699#include <$2>
1700_ACEOF
1701if ac_fn_c_try_compile "$LINENO"; then :
1702  eval "$3=yes"
1703else
1704  eval "$3=no"
1705fi
1706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1707fi
1708eval ac_res=\$$3
1709	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1710$as_echo "$ac_res" >&6; }
1711  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712
1713} # ac_fn_c_check_header_compile
1714
1715# ac_fn_c_try_cpp LINENO
1716# ----------------------
1717# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1718ac_fn_c_try_cpp ()
1719{
1720  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721  if { { ac_try="$ac_cpp conftest.$ac_ext"
1722case "(($ac_try" in
1723  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724  *) ac_try_echo=$ac_try;;
1725esac
1726eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727$as_echo "$ac_try_echo"; } >&5
1728  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1729  ac_status=$?
1730  if test -s conftest.err; then
1731    grep -v '^ *+' conftest.err >conftest.er1
1732    cat conftest.er1 >&5
1733    mv -f conftest.er1 conftest.err
1734  fi
1735  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736  test $ac_status = 0; } > conftest.i && {
1737	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1738	 test ! -s conftest.err
1739       }; then :
1740  ac_retval=0
1741else
1742  $as_echo "$as_me: failed program was:" >&5
1743sed 's/^/| /' conftest.$ac_ext >&5
1744
1745    ac_retval=1
1746fi
1747  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1748  as_fn_set_status $ac_retval
1749
1750} # ac_fn_c_try_cpp
1751
1752# ac_fn_c_try_run LINENO
1753# ----------------------
1754# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1755# that executables *can* be run.
1756ac_fn_c_try_run ()
1757{
1758  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759  if { { ac_try="$ac_link"
1760case "(($ac_try" in
1761  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1762  *) ac_try_echo=$ac_try;;
1763esac
1764eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1765$as_echo "$ac_try_echo"; } >&5
1766  (eval "$ac_link") 2>&5
1767  ac_status=$?
1768  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1770  { { case "(($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_try") 2>&5
1777  ac_status=$?
1778  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779  test $ac_status = 0; }; }; then :
1780  ac_retval=0
1781else
1782  $as_echo "$as_me: program exited with status $ac_status" >&5
1783       $as_echo "$as_me: failed program was:" >&5
1784sed 's/^/| /' conftest.$ac_ext >&5
1785
1786       ac_retval=$ac_status
1787fi
1788  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1789  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790  as_fn_set_status $ac_retval
1791
1792} # ac_fn_c_try_run
1793
1794# ac_fn_c_check_func LINENO FUNC VAR
1795# ----------------------------------
1796# Tests whether FUNC exists, setting the cache variable VAR accordingly
1797ac_fn_c_check_func ()
1798{
1799  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1801$as_echo_n "checking for $2... " >&6; }
1802if eval \${$3+:} false; then :
1803  $as_echo_n "(cached) " >&6
1804else
1805  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1806/* end confdefs.h.  */
1807/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1808   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1809#define $2 innocuous_$2
1810
1811/* System header to define __stub macros and hopefully few prototypes,
1812    which can conflict with char $2 (); below.
1813    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1814    <limits.h> exists even on freestanding compilers.  */
1815
1816#ifdef __STDC__
1817# include <limits.h>
1818#else
1819# include <assert.h>
1820#endif
1821
1822#undef $2
1823
1824/* Override any GCC internal prototype to avoid an error.
1825   Use char because int might match the return type of a GCC
1826   builtin and then its argument prototype would still apply.  */
1827#ifdef __cplusplus
1828extern "C"
1829#endif
1830char $2 ();
1831/* The GNU C library defines this for functions which it implements
1832    to always fail with ENOSYS.  Some functions are actually named
1833    something starting with __ and the normal name is an alias.  */
1834#if defined __stub_$2 || defined __stub___$2
1835choke me
1836#endif
1837
1838int
1839main ()
1840{
1841return $2 ();
1842  ;
1843  return 0;
1844}
1845_ACEOF
1846if ac_fn_c_try_link "$LINENO"; then :
1847  eval "$3=yes"
1848else
1849  eval "$3=no"
1850fi
1851rm -f core conftest.err conftest.$ac_objext \
1852    conftest$ac_exeext conftest.$ac_ext
1853fi
1854eval ac_res=\$$3
1855	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1856$as_echo "$ac_res" >&6; }
1857  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1858
1859} # ac_fn_c_check_func
1860
1861# ac_fn_cxx_try_compile LINENO
1862# ----------------------------
1863# Try to compile conftest.$ac_ext, and return whether this succeeded.
1864ac_fn_cxx_try_compile ()
1865{
1866  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867  rm -f conftest.$ac_objext
1868  if { { ac_try="$ac_compile"
1869case "(($ac_try" in
1870  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1871  *) ac_try_echo=$ac_try;;
1872esac
1873eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1874$as_echo "$ac_try_echo"; } >&5
1875  (eval "$ac_compile") 2>conftest.err
1876  ac_status=$?
1877  if test -s conftest.err; then
1878    grep -v '^ *+' conftest.err >conftest.er1
1879    cat conftest.er1 >&5
1880    mv -f conftest.er1 conftest.err
1881  fi
1882  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1883  test $ac_status = 0; } && {
1884	 test -z "$ac_cxx_werror_flag" ||
1885	 test ! -s conftest.err
1886       } && test -s conftest.$ac_objext; then :
1887  ac_retval=0
1888else
1889  $as_echo "$as_me: failed program was:" >&5
1890sed 's/^/| /' conftest.$ac_ext >&5
1891
1892	ac_retval=1
1893fi
1894  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1895  as_fn_set_status $ac_retval
1896
1897} # ac_fn_cxx_try_compile
1898
1899# ac_fn_cxx_try_cpp LINENO
1900# ------------------------
1901# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1902ac_fn_cxx_try_cpp ()
1903{
1904  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1905  if { { ac_try="$ac_cpp conftest.$ac_ext"
1906case "(($ac_try" in
1907  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1908  *) ac_try_echo=$ac_try;;
1909esac
1910eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1911$as_echo "$ac_try_echo"; } >&5
1912  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1913  ac_status=$?
1914  if test -s conftest.err; then
1915    grep -v '^ *+' conftest.err >conftest.er1
1916    cat conftest.er1 >&5
1917    mv -f conftest.er1 conftest.err
1918  fi
1919  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1920  test $ac_status = 0; } > conftest.i && {
1921	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1922	 test ! -s conftest.err
1923       }; then :
1924  ac_retval=0
1925else
1926  $as_echo "$as_me: failed program was:" >&5
1927sed 's/^/| /' conftest.$ac_ext >&5
1928
1929    ac_retval=1
1930fi
1931  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1932  as_fn_set_status $ac_retval
1933
1934} # ac_fn_cxx_try_cpp
1935
1936# ac_fn_cxx_try_link LINENO
1937# -------------------------
1938# Try to link conftest.$ac_ext, and return whether this succeeded.
1939ac_fn_cxx_try_link ()
1940{
1941  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1942  rm -f conftest.$ac_objext conftest$ac_exeext
1943  if { { ac_try="$ac_link"
1944case "(($ac_try" in
1945  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1946  *) ac_try_echo=$ac_try;;
1947esac
1948eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1949$as_echo "$ac_try_echo"; } >&5
1950  (eval "$ac_link") 2>conftest.err
1951  ac_status=$?
1952  if test -s conftest.err; then
1953    grep -v '^ *+' conftest.err >conftest.er1
1954    cat conftest.er1 >&5
1955    mv -f conftest.er1 conftest.err
1956  fi
1957  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1958  test $ac_status = 0; } && {
1959	 test -z "$ac_cxx_werror_flag" ||
1960	 test ! -s conftest.err
1961       } && test -s conftest$ac_exeext && {
1962	 test "$cross_compiling" = yes ||
1963	 test -x conftest$ac_exeext
1964       }; then :
1965  ac_retval=0
1966else
1967  $as_echo "$as_me: failed program was:" >&5
1968sed 's/^/| /' conftest.$ac_ext >&5
1969
1970	ac_retval=1
1971fi
1972  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1973  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1974  # interfere with the next link command; also delete a directory that is
1975  # left behind by Apple's compiler.  We do this before executing the actions.
1976  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1977  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1978  as_fn_set_status $ac_retval
1979
1980} # ac_fn_cxx_try_link
1981
1982# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1983# -------------------------------------------------------
1984# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1985# the include files in INCLUDES and setting the cache variable VAR
1986# accordingly.
1987ac_fn_c_check_header_mongrel ()
1988{
1989  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1990  if eval \${$3+:} false; then :
1991  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1992$as_echo_n "checking for $2... " >&6; }
1993if eval \${$3+:} false; then :
1994  $as_echo_n "(cached) " >&6
1995fi
1996eval ac_res=\$$3
1997	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1998$as_echo "$ac_res" >&6; }
1999else
2000  # Is the header compilable?
2001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2002$as_echo_n "checking $2 usability... " >&6; }
2003cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2004/* end confdefs.h.  */
2005$4
2006#include <$2>
2007_ACEOF
2008if ac_fn_c_try_compile "$LINENO"; then :
2009  ac_header_compiler=yes
2010else
2011  ac_header_compiler=no
2012fi
2013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2015$as_echo "$ac_header_compiler" >&6; }
2016
2017# Is the header present?
2018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2019$as_echo_n "checking $2 presence... " >&6; }
2020cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2021/* end confdefs.h.  */
2022#include <$2>
2023_ACEOF
2024if ac_fn_c_try_cpp "$LINENO"; then :
2025  ac_header_preproc=yes
2026else
2027  ac_header_preproc=no
2028fi
2029rm -f conftest.err conftest.i conftest.$ac_ext
2030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2031$as_echo "$ac_header_preproc" >&6; }
2032
2033# So?  What about this header?
2034case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2035  yes:no: )
2036    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2037$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2038    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2039$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2040    ;;
2041  no:yes:* )
2042    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2043$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2044    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2045$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2046    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2047$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2048    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2049$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2050    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2051$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2052( $as_echo "## ---------------------------------------------- ##
2053## Report this to flex-help@lists.sourceforge.net ##
2054## ---------------------------------------------- ##"
2055     ) | sed "s/^/$as_me: WARNING:     /" >&2
2056    ;;
2057esac
2058  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2059$as_echo_n "checking for $2... " >&6; }
2060if eval \${$3+:} false; then :
2061  $as_echo_n "(cached) " >&6
2062else
2063  eval "$3=\$ac_header_compiler"
2064fi
2065eval ac_res=\$$3
2066	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2067$as_echo "$ac_res" >&6; }
2068fi
2069  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2070
2071} # ac_fn_c_check_header_mongrel
2072
2073# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2074# -------------------------------------------
2075# Tests whether TYPE exists after having included INCLUDES, setting cache
2076# variable VAR accordingly.
2077ac_fn_c_check_type ()
2078{
2079  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2080  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2081$as_echo_n "checking for $2... " >&6; }
2082if eval \${$3+:} false; then :
2083  $as_echo_n "(cached) " >&6
2084else
2085  eval "$3=no"
2086  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2087/* end confdefs.h.  */
2088$4
2089int
2090main ()
2091{
2092if (sizeof ($2))
2093	 return 0;
2094  ;
2095  return 0;
2096}
2097_ACEOF
2098if ac_fn_c_try_compile "$LINENO"; then :
2099  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2100/* end confdefs.h.  */
2101$4
2102int
2103main ()
2104{
2105if (sizeof (($2)))
2106	    return 0;
2107  ;
2108  return 0;
2109}
2110_ACEOF
2111if ac_fn_c_try_compile "$LINENO"; then :
2112
2113else
2114  eval "$3=yes"
2115fi
2116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2117fi
2118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2119fi
2120eval ac_res=\$$3
2121	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2122$as_echo "$ac_res" >&6; }
2123  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2124
2125} # ac_fn_c_check_type
2126cat >config.log <<_ACEOF
2127This file contains any messages produced by compilers while
2128running configure, to aid debugging if configure makes a mistake.
2129
2130It was created by the fast lexical analyser generator $as_me 2.6.3, which was
2131generated by GNU Autoconf 2.69.  Invocation command line was
2132
2133  $ $0 $@
2134
2135_ACEOF
2136exec 5>>config.log
2137{
2138cat <<_ASUNAME
2139## --------- ##
2140## Platform. ##
2141## --------- ##
2142
2143hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2144uname -m = `(uname -m) 2>/dev/null || echo unknown`
2145uname -r = `(uname -r) 2>/dev/null || echo unknown`
2146uname -s = `(uname -s) 2>/dev/null || echo unknown`
2147uname -v = `(uname -v) 2>/dev/null || echo unknown`
2148
2149/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2150/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2151
2152/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2153/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2154/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2155/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2156/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2157/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2158/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2159
2160_ASUNAME
2161
2162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2163for as_dir in $PATH
2164do
2165  IFS=$as_save_IFS
2166  test -z "$as_dir" && as_dir=.
2167    $as_echo "PATH: $as_dir"
2168  done
2169IFS=$as_save_IFS
2170
2171} >&5
2172
2173cat >&5 <<_ACEOF
2174
2175
2176## ----------- ##
2177## Core tests. ##
2178## ----------- ##
2179
2180_ACEOF
2181
2182
2183# Keep a trace of the command line.
2184# Strip out --no-create and --no-recursion so they do not pile up.
2185# Strip out --silent because we don't want to record it for future runs.
2186# Also quote any args containing shell meta-characters.
2187# Make two passes to allow for proper duplicate-argument suppression.
2188ac_configure_args=
2189ac_configure_args0=
2190ac_configure_args1=
2191ac_must_keep_next=false
2192for ac_pass in 1 2
2193do
2194  for ac_arg
2195  do
2196    case $ac_arg in
2197    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2198    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2199    | -silent | --silent | --silen | --sile | --sil)
2200      continue ;;
2201    *\'*)
2202      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2203    esac
2204    case $ac_pass in
2205    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2206    2)
2207      as_fn_append ac_configure_args1 " '$ac_arg'"
2208      if test $ac_must_keep_next = true; then
2209	ac_must_keep_next=false # Got value, back to normal.
2210      else
2211	case $ac_arg in
2212	  *=* | --config-cache | -C | -disable-* | --disable-* \
2213	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2214	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2215	  | -with-* | --with-* | -without-* | --without-* | --x)
2216	    case "$ac_configure_args0 " in
2217	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2218	    esac
2219	    ;;
2220	  -* ) ac_must_keep_next=true ;;
2221	esac
2222      fi
2223      as_fn_append ac_configure_args " '$ac_arg'"
2224      ;;
2225    esac
2226  done
2227done
2228{ ac_configure_args0=; unset ac_configure_args0;}
2229{ ac_configure_args1=; unset ac_configure_args1;}
2230
2231# When interrupted or exit'd, cleanup temporary files, and complete
2232# config.log.  We remove comments because anyway the quotes in there
2233# would cause problems or look ugly.
2234# WARNING: Use '\'' to represent an apostrophe within the trap.
2235# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2236trap 'exit_status=$?
2237  # Save into config.log some information that might help in debugging.
2238  {
2239    echo
2240
2241    $as_echo "## ---------------- ##
2242## Cache variables. ##
2243## ---------------- ##"
2244    echo
2245    # The following way of writing the cache mishandles newlines in values,
2246(
2247  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2248    eval ac_val=\$$ac_var
2249    case $ac_val in #(
2250    *${as_nl}*)
2251      case $ac_var in #(
2252      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2253$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2254      esac
2255      case $ac_var in #(
2256      _ | IFS | as_nl) ;; #(
2257      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2258      *) { eval $ac_var=; unset $ac_var;} ;;
2259      esac ;;
2260    esac
2261  done
2262  (set) 2>&1 |
2263    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2264    *${as_nl}ac_space=\ *)
2265      sed -n \
2266	"s/'\''/'\''\\\\'\'''\''/g;
2267	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2268      ;; #(
2269    *)
2270      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2271      ;;
2272    esac |
2273    sort
2274)
2275    echo
2276
2277    $as_echo "## ----------------- ##
2278## Output variables. ##
2279## ----------------- ##"
2280    echo
2281    for ac_var in $ac_subst_vars
2282    do
2283      eval ac_val=\$$ac_var
2284      case $ac_val in
2285      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2286      esac
2287      $as_echo "$ac_var='\''$ac_val'\''"
2288    done | sort
2289    echo
2290
2291    if test -n "$ac_subst_files"; then
2292      $as_echo "## ------------------- ##
2293## File substitutions. ##
2294## ------------------- ##"
2295      echo
2296      for ac_var in $ac_subst_files
2297      do
2298	eval ac_val=\$$ac_var
2299	case $ac_val in
2300	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2301	esac
2302	$as_echo "$ac_var='\''$ac_val'\''"
2303      done | sort
2304      echo
2305    fi
2306
2307    if test -s confdefs.h; then
2308      $as_echo "## ----------- ##
2309## confdefs.h. ##
2310## ----------- ##"
2311      echo
2312      cat confdefs.h
2313      echo
2314    fi
2315    test "$ac_signal" != 0 &&
2316      $as_echo "$as_me: caught signal $ac_signal"
2317    $as_echo "$as_me: exit $exit_status"
2318  } >&5
2319  rm -f core *.core core.conftest.* &&
2320    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2321    exit $exit_status
2322' 0
2323for ac_signal in 1 2 13 15; do
2324  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2325done
2326ac_signal=0
2327
2328# confdefs.h avoids OS command line length limits that DEFS can exceed.
2329rm -f -r conftest* confdefs.h
2330
2331$as_echo "/* confdefs.h */" > confdefs.h
2332
2333# Predefined preprocessor variables.
2334
2335cat >>confdefs.h <<_ACEOF
2336#define PACKAGE_NAME "$PACKAGE_NAME"
2337_ACEOF
2338
2339cat >>confdefs.h <<_ACEOF
2340#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2341_ACEOF
2342
2343cat >>confdefs.h <<_ACEOF
2344#define PACKAGE_VERSION "$PACKAGE_VERSION"
2345_ACEOF
2346
2347cat >>confdefs.h <<_ACEOF
2348#define PACKAGE_STRING "$PACKAGE_STRING"
2349_ACEOF
2350
2351cat >>confdefs.h <<_ACEOF
2352#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2353_ACEOF
2354
2355cat >>confdefs.h <<_ACEOF
2356#define PACKAGE_URL "$PACKAGE_URL"
2357_ACEOF
2358
2359
2360# Let the site file select an alternate cache file if it wants to.
2361# Prefer an explicitly selected file to automatically selected ones.
2362ac_site_file1=NONE
2363ac_site_file2=NONE
2364if test -n "$CONFIG_SITE"; then
2365  # We do not want a PATH search for config.site.
2366  case $CONFIG_SITE in #((
2367    -*)  ac_site_file1=./$CONFIG_SITE;;
2368    */*) ac_site_file1=$CONFIG_SITE;;
2369    *)   ac_site_file1=./$CONFIG_SITE;;
2370  esac
2371elif test "x$prefix" != xNONE; then
2372  ac_site_file1=$prefix/share/config.site
2373  ac_site_file2=$prefix/etc/config.site
2374else
2375  ac_site_file1=$ac_default_prefix/share/config.site
2376  ac_site_file2=$ac_default_prefix/etc/config.site
2377fi
2378for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2379do
2380  test "x$ac_site_file" = xNONE && continue
2381  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2382    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2383$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2384    sed 's/^/| /' "$ac_site_file" >&5
2385    . "$ac_site_file" \
2386      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2387$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2388as_fn_error $? "failed to load site script $ac_site_file
2389See \`config.log' for more details" "$LINENO" 5; }
2390  fi
2391done
2392
2393if test -r "$cache_file"; then
2394  # Some versions of bash will fail to source /dev/null (special files
2395  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2396  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2397    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2398$as_echo "$as_me: loading cache $cache_file" >&6;}
2399    case $cache_file in
2400      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2401      *)                      . "./$cache_file";;
2402    esac
2403  fi
2404else
2405  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2406$as_echo "$as_me: creating cache $cache_file" >&6;}
2407  >$cache_file
2408fi
2409
2410gt_needs="$gt_needs "
2411# Check that the precious variables saved in the cache have kept the same
2412# value.
2413ac_cache_corrupted=false
2414for ac_var in $ac_precious_vars; do
2415  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2416  eval ac_new_set=\$ac_env_${ac_var}_set
2417  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2418  eval ac_new_val=\$ac_env_${ac_var}_value
2419  case $ac_old_set,$ac_new_set in
2420    set,)
2421      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2422$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2423      ac_cache_corrupted=: ;;
2424    ,set)
2425      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2426$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2427      ac_cache_corrupted=: ;;
2428    ,);;
2429    *)
2430      if test "x$ac_old_val" != "x$ac_new_val"; then
2431	# differences in whitespace do not lead to failure.
2432	ac_old_val_w=`echo x $ac_old_val`
2433	ac_new_val_w=`echo x $ac_new_val`
2434	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2435	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2436$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2437	  ac_cache_corrupted=:
2438	else
2439	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2440$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2441	  eval $ac_var=\$ac_old_val
2442	fi
2443	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2444$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2445	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2446$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2447      fi;;
2448  esac
2449  # Pass precious variables to config.status.
2450  if test "$ac_new_set" = set; then
2451    case $ac_new_val in
2452    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2453    *) ac_arg=$ac_var=$ac_new_val ;;
2454    esac
2455    case " $ac_configure_args " in
2456      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2457      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2458    esac
2459  fi
2460done
2461if $ac_cache_corrupted; then
2462  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2463$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2464  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2465$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2466  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2467fi
2468## -------------------- ##
2469## Main body of script. ##
2470## -------------------- ##
2471
2472ac_ext=c
2473ac_cpp='$CPP $CPPFLAGS'
2474ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2475ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2476ac_compiler_gnu=$ac_cv_c_compiler_gnu
2477
2478
2479
2480ac_aux_dir=
2481for ac_dir in build-aux "$srcdir"/build-aux; do
2482  if test -f "$ac_dir/install-sh"; then
2483    ac_aux_dir=$ac_dir
2484    ac_install_sh="$ac_aux_dir/install-sh -c"
2485    break
2486  elif test -f "$ac_dir/install.sh"; then
2487    ac_aux_dir=$ac_dir
2488    ac_install_sh="$ac_aux_dir/install.sh -c"
2489    break
2490  elif test -f "$ac_dir/shtool"; then
2491    ac_aux_dir=$ac_dir
2492    ac_install_sh="$ac_aux_dir/shtool install -c"
2493    break
2494  fi
2495done
2496if test -z "$ac_aux_dir"; then
2497  as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2498fi
2499
2500# These three variables are undocumented and unsupported,
2501# and are intended to be withdrawn in a future Autoconf release.
2502# They can cause serious problems if a builder's source tree is in a directory
2503# whose full name contains unusual characters.
2504ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2505ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2506ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2507
2508
2509case `pwd` in
2510  *\ * | *\	*)
2511    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2512$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2513esac
2514
2515
2516
2517macro_version='2.4.6'
2518macro_revision='2.4.6'
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532ltmain=$ac_aux_dir/ltmain.sh
2533
2534# Make sure we can run config.sub.
2535$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2536  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2537
2538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2539$as_echo_n "checking build system type... " >&6; }
2540if ${ac_cv_build+:} false; then :
2541  $as_echo_n "(cached) " >&6
2542else
2543  ac_build_alias=$build_alias
2544test "x$ac_build_alias" = x &&
2545  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2546test "x$ac_build_alias" = x &&
2547  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2548ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2549  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2550
2551fi
2552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2553$as_echo "$ac_cv_build" >&6; }
2554case $ac_cv_build in
2555*-*-*) ;;
2556*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2557esac
2558build=$ac_cv_build
2559ac_save_IFS=$IFS; IFS='-'
2560set x $ac_cv_build
2561shift
2562build_cpu=$1
2563build_vendor=$2
2564shift; shift
2565# Remember, the first character of IFS is used to create $*,
2566# except with old shells:
2567build_os=$*
2568IFS=$ac_save_IFS
2569case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2570
2571
2572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2573$as_echo_n "checking host system type... " >&6; }
2574if ${ac_cv_host+:} false; then :
2575  $as_echo_n "(cached) " >&6
2576else
2577  if test "x$host_alias" = x; then
2578  ac_cv_host=$ac_cv_build
2579else
2580  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2581    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2582fi
2583
2584fi
2585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2586$as_echo "$ac_cv_host" >&6; }
2587case $ac_cv_host in
2588*-*-*) ;;
2589*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2590esac
2591host=$ac_cv_host
2592ac_save_IFS=$IFS; IFS='-'
2593set x $ac_cv_host
2594shift
2595host_cpu=$1
2596host_vendor=$2
2597shift; shift
2598# Remember, the first character of IFS is used to create $*,
2599# except with old shells:
2600host_os=$*
2601IFS=$ac_save_IFS
2602case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2603
2604
2605# Backslashify metacharacters that are still active within
2606# double-quoted strings.
2607sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2608
2609# Same as above, but do not quote variable references.
2610double_quote_subst='s/\(["`\\]\)/\\\1/g'
2611
2612# Sed substitution to delay expansion of an escaped shell variable in a
2613# double_quote_subst'ed string.
2614delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2615
2616# Sed substitution to delay expansion of an escaped single quote.
2617delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2618
2619# Sed substitution to avoid accidental globbing in evaled expressions
2620no_glob_subst='s/\*/\\\*/g'
2621
2622ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2623ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2624ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2625
2626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2627$as_echo_n "checking how to print strings... " >&6; }
2628# Test print first, because it will be a builtin if present.
2629if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2630   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2631  ECHO='print -r --'
2632elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2633  ECHO='printf %s\n'
2634else
2635  # Use this function as a fallback that always works.
2636  func_fallback_echo ()
2637  {
2638    eval 'cat <<_LTECHO_EOF
2639$1
2640_LTECHO_EOF'
2641  }
2642  ECHO='func_fallback_echo'
2643fi
2644
2645# func_echo_all arg...
2646# Invoke $ECHO with all args, space-separated.
2647func_echo_all ()
2648{
2649    $ECHO ""
2650}
2651
2652case $ECHO in
2653  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2654$as_echo "printf" >&6; } ;;
2655  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2656$as_echo "print -r" >&6; } ;;
2657  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2658$as_echo "cat" >&6; } ;;
2659esac
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674# Expand $ac_aux_dir to an absolute path.
2675am_aux_dir=`cd "$ac_aux_dir" && pwd`
2676
2677ac_ext=c
2678ac_cpp='$CPP $CPPFLAGS'
2679ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2680ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2681ac_compiler_gnu=$ac_cv_c_compiler_gnu
2682if test -n "$ac_tool_prefix"; then
2683  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2684set dummy ${ac_tool_prefix}gcc; ac_word=$2
2685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2686$as_echo_n "checking for $ac_word... " >&6; }
2687if ${ac_cv_prog_CC+:} false; then :
2688  $as_echo_n "(cached) " >&6
2689else
2690  if test -n "$CC"; then
2691  ac_cv_prog_CC="$CC" # Let the user override the test.
2692else
2693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2694for as_dir in $PATH
2695do
2696  IFS=$as_save_IFS
2697  test -z "$as_dir" && as_dir=.
2698    for ac_exec_ext in '' $ac_executable_extensions; do
2699  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2700    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2701    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2702    break 2
2703  fi
2704done
2705  done
2706IFS=$as_save_IFS
2707
2708fi
2709fi
2710CC=$ac_cv_prog_CC
2711if test -n "$CC"; then
2712  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2713$as_echo "$CC" >&6; }
2714else
2715  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2716$as_echo "no" >&6; }
2717fi
2718
2719
2720fi
2721if test -z "$ac_cv_prog_CC"; then
2722  ac_ct_CC=$CC
2723  # Extract the first word of "gcc", so it can be a program name with args.
2724set dummy gcc; ac_word=$2
2725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2726$as_echo_n "checking for $ac_word... " >&6; }
2727if ${ac_cv_prog_ac_ct_CC+:} false; then :
2728  $as_echo_n "(cached) " >&6
2729else
2730  if test -n "$ac_ct_CC"; then
2731  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2732else
2733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2734for as_dir in $PATH
2735do
2736  IFS=$as_save_IFS
2737  test -z "$as_dir" && as_dir=.
2738    for ac_exec_ext in '' $ac_executable_extensions; do
2739  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2740    ac_cv_prog_ac_ct_CC="gcc"
2741    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2742    break 2
2743  fi
2744done
2745  done
2746IFS=$as_save_IFS
2747
2748fi
2749fi
2750ac_ct_CC=$ac_cv_prog_ac_ct_CC
2751if test -n "$ac_ct_CC"; then
2752  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2753$as_echo "$ac_ct_CC" >&6; }
2754else
2755  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2756$as_echo "no" >&6; }
2757fi
2758
2759  if test "x$ac_ct_CC" = x; then
2760    CC=""
2761  else
2762    case $cross_compiling:$ac_tool_warned in
2763yes:)
2764{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2765$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2766ac_tool_warned=yes ;;
2767esac
2768    CC=$ac_ct_CC
2769  fi
2770else
2771  CC="$ac_cv_prog_CC"
2772fi
2773
2774if test -z "$CC"; then
2775          if test -n "$ac_tool_prefix"; then
2776    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2777set dummy ${ac_tool_prefix}cc; ac_word=$2
2778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2779$as_echo_n "checking for $ac_word... " >&6; }
2780if ${ac_cv_prog_CC+:} false; then :
2781  $as_echo_n "(cached) " >&6
2782else
2783  if test -n "$CC"; then
2784  ac_cv_prog_CC="$CC" # Let the user override the test.
2785else
2786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2787for as_dir in $PATH
2788do
2789  IFS=$as_save_IFS
2790  test -z "$as_dir" && as_dir=.
2791    for ac_exec_ext in '' $ac_executable_extensions; do
2792  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2793    ac_cv_prog_CC="${ac_tool_prefix}cc"
2794    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2795    break 2
2796  fi
2797done
2798  done
2799IFS=$as_save_IFS
2800
2801fi
2802fi
2803CC=$ac_cv_prog_CC
2804if test -n "$CC"; then
2805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2806$as_echo "$CC" >&6; }
2807else
2808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2809$as_echo "no" >&6; }
2810fi
2811
2812
2813  fi
2814fi
2815if test -z "$CC"; then
2816  # Extract the first word of "cc", so it can be a program name with args.
2817set dummy cc; ac_word=$2
2818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2819$as_echo_n "checking for $ac_word... " >&6; }
2820if ${ac_cv_prog_CC+:} false; then :
2821  $as_echo_n "(cached) " >&6
2822else
2823  if test -n "$CC"; then
2824  ac_cv_prog_CC="$CC" # Let the user override the test.
2825else
2826  ac_prog_rejected=no
2827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2828for as_dir in $PATH
2829do
2830  IFS=$as_save_IFS
2831  test -z "$as_dir" && as_dir=.
2832    for ac_exec_ext in '' $ac_executable_extensions; do
2833  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2834    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2835       ac_prog_rejected=yes
2836       continue
2837     fi
2838    ac_cv_prog_CC="cc"
2839    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2840    break 2
2841  fi
2842done
2843  done
2844IFS=$as_save_IFS
2845
2846if test $ac_prog_rejected = yes; then
2847  # We found a bogon in the path, so make sure we never use it.
2848  set dummy $ac_cv_prog_CC
2849  shift
2850  if test $# != 0; then
2851    # We chose a different compiler from the bogus one.
2852    # However, it has the same basename, so the bogon will be chosen
2853    # first if we set CC to just the basename; use the full file name.
2854    shift
2855    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2856  fi
2857fi
2858fi
2859fi
2860CC=$ac_cv_prog_CC
2861if test -n "$CC"; then
2862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2863$as_echo "$CC" >&6; }
2864else
2865  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2866$as_echo "no" >&6; }
2867fi
2868
2869
2870fi
2871if test -z "$CC"; then
2872  if test -n "$ac_tool_prefix"; then
2873  for ac_prog in cl.exe
2874  do
2875    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2876set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2878$as_echo_n "checking for $ac_word... " >&6; }
2879if ${ac_cv_prog_CC+:} false; then :
2880  $as_echo_n "(cached) " >&6
2881else
2882  if test -n "$CC"; then
2883  ac_cv_prog_CC="$CC" # Let the user override the test.
2884else
2885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886for as_dir in $PATH
2887do
2888  IFS=$as_save_IFS
2889  test -z "$as_dir" && as_dir=.
2890    for ac_exec_ext in '' $ac_executable_extensions; do
2891  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2892    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2893    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2894    break 2
2895  fi
2896done
2897  done
2898IFS=$as_save_IFS
2899
2900fi
2901fi
2902CC=$ac_cv_prog_CC
2903if test -n "$CC"; then
2904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2905$as_echo "$CC" >&6; }
2906else
2907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2908$as_echo "no" >&6; }
2909fi
2910
2911
2912    test -n "$CC" && break
2913  done
2914fi
2915if test -z "$CC"; then
2916  ac_ct_CC=$CC
2917  for ac_prog in cl.exe
2918do
2919  # Extract the first word of "$ac_prog", so it can be a program name with args.
2920set dummy $ac_prog; ac_word=$2
2921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2922$as_echo_n "checking for $ac_word... " >&6; }
2923if ${ac_cv_prog_ac_ct_CC+:} false; then :
2924  $as_echo_n "(cached) " >&6
2925else
2926  if test -n "$ac_ct_CC"; then
2927  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2928else
2929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2930for as_dir in $PATH
2931do
2932  IFS=$as_save_IFS
2933  test -z "$as_dir" && as_dir=.
2934    for ac_exec_ext in '' $ac_executable_extensions; do
2935  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2936    ac_cv_prog_ac_ct_CC="$ac_prog"
2937    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2938    break 2
2939  fi
2940done
2941  done
2942IFS=$as_save_IFS
2943
2944fi
2945fi
2946ac_ct_CC=$ac_cv_prog_ac_ct_CC
2947if test -n "$ac_ct_CC"; then
2948  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2949$as_echo "$ac_ct_CC" >&6; }
2950else
2951  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2952$as_echo "no" >&6; }
2953fi
2954
2955
2956  test -n "$ac_ct_CC" && break
2957done
2958
2959  if test "x$ac_ct_CC" = x; then
2960    CC=""
2961  else
2962    case $cross_compiling:$ac_tool_warned in
2963yes:)
2964{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2965$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2966ac_tool_warned=yes ;;
2967esac
2968    CC=$ac_ct_CC
2969  fi
2970fi
2971
2972fi
2973
2974
2975test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2976$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2977as_fn_error $? "no acceptable C compiler found in \$PATH
2978See \`config.log' for more details" "$LINENO" 5; }
2979
2980# Provide some information about the compiler.
2981$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2982set X $ac_compile
2983ac_compiler=$2
2984for ac_option in --version -v -V -qversion; do
2985  { { ac_try="$ac_compiler $ac_option >&5"
2986case "(($ac_try" in
2987  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2988  *) ac_try_echo=$ac_try;;
2989esac
2990eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2991$as_echo "$ac_try_echo"; } >&5
2992  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2993  ac_status=$?
2994  if test -s conftest.err; then
2995    sed '10a\
2996... rest of stderr output deleted ...
2997         10q' conftest.err >conftest.er1
2998    cat conftest.er1 >&5
2999  fi
3000  rm -f conftest.er1 conftest.err
3001  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3002  test $ac_status = 0; }
3003done
3004
3005cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3006/* end confdefs.h.  */
3007
3008int
3009main ()
3010{
3011
3012  ;
3013  return 0;
3014}
3015_ACEOF
3016ac_clean_files_save=$ac_clean_files
3017ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3018# Try to create an executable without -o first, disregard a.out.
3019# It will help us diagnose broken compilers, and finding out an intuition
3020# of exeext.
3021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3022$as_echo_n "checking whether the C compiler works... " >&6; }
3023ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3024
3025# The possible output files:
3026ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3027
3028ac_rmfiles=
3029for ac_file in $ac_files
3030do
3031  case $ac_file in
3032    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3033    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3034  esac
3035done
3036rm -f $ac_rmfiles
3037
3038if { { ac_try="$ac_link_default"
3039case "(($ac_try" in
3040  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041  *) ac_try_echo=$ac_try;;
3042esac
3043eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3044$as_echo "$ac_try_echo"; } >&5
3045  (eval "$ac_link_default") 2>&5
3046  ac_status=$?
3047  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3048  test $ac_status = 0; }; then :
3049  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3050# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3051# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3052# so that the user can short-circuit this test for compilers unknown to
3053# Autoconf.
3054for ac_file in $ac_files ''
3055do
3056  test -f "$ac_file" || continue
3057  case $ac_file in
3058    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3059	;;
3060    [ab].out )
3061	# We found the default executable, but exeext='' is most
3062	# certainly right.
3063	break;;
3064    *.* )
3065	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3066	then :; else
3067	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3068	fi
3069	# We set ac_cv_exeext here because the later test for it is not
3070	# safe: cross compilers may not add the suffix if given an `-o'
3071	# argument, so we may need to know it at that point already.
3072	# Even if this section looks crufty: it has the advantage of
3073	# actually working.
3074	break;;
3075    * )
3076	break;;
3077  esac
3078done
3079test "$ac_cv_exeext" = no && ac_cv_exeext=
3080
3081else
3082  ac_file=''
3083fi
3084if test -z "$ac_file"; then :
3085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3086$as_echo "no" >&6; }
3087$as_echo "$as_me: failed program was:" >&5
3088sed 's/^/| /' conftest.$ac_ext >&5
3089
3090{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3091$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3092as_fn_error 77 "C compiler cannot create executables
3093See \`config.log' for more details" "$LINENO" 5; }
3094else
3095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3096$as_echo "yes" >&6; }
3097fi
3098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3099$as_echo_n "checking for C compiler default output file name... " >&6; }
3100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3101$as_echo "$ac_file" >&6; }
3102ac_exeext=$ac_cv_exeext
3103
3104rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3105ac_clean_files=$ac_clean_files_save
3106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3107$as_echo_n "checking for suffix of executables... " >&6; }
3108if { { ac_try="$ac_link"
3109case "(($ac_try" in
3110  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3111  *) ac_try_echo=$ac_try;;
3112esac
3113eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3114$as_echo "$ac_try_echo"; } >&5
3115  (eval "$ac_link") 2>&5
3116  ac_status=$?
3117  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3118  test $ac_status = 0; }; then :
3119  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3120# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3121# work properly (i.e., refer to `conftest.exe'), while it won't with
3122# `rm'.
3123for ac_file in conftest.exe conftest conftest.*; do
3124  test -f "$ac_file" || continue
3125  case $ac_file in
3126    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3127    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3128	  break;;
3129    * ) break;;
3130  esac
3131done
3132else
3133  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3134$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3135as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3136See \`config.log' for more details" "$LINENO" 5; }
3137fi
3138rm -f conftest conftest$ac_cv_exeext
3139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3140$as_echo "$ac_cv_exeext" >&6; }
3141
3142rm -f conftest.$ac_ext
3143EXEEXT=$ac_cv_exeext
3144ac_exeext=$EXEEXT
3145cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3146/* end confdefs.h.  */
3147#include <stdio.h>
3148int
3149main ()
3150{
3151FILE *f = fopen ("conftest.out", "w");
3152 return ferror (f) || fclose (f) != 0;
3153
3154  ;
3155  return 0;
3156}
3157_ACEOF
3158ac_clean_files="$ac_clean_files conftest.out"
3159# Check that the compiler produces executables we can run.  If not, either
3160# the compiler is broken, or we cross compile.
3161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3162$as_echo_n "checking whether we are cross compiling... " >&6; }
3163if test "$cross_compiling" != yes; then
3164  { { ac_try="$ac_link"
3165case "(($ac_try" in
3166  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167  *) ac_try_echo=$ac_try;;
3168esac
3169eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3170$as_echo "$ac_try_echo"; } >&5
3171  (eval "$ac_link") 2>&5
3172  ac_status=$?
3173  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3174  test $ac_status = 0; }
3175  if { ac_try='./conftest$ac_cv_exeext'
3176  { { case "(($ac_try" in
3177  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178  *) ac_try_echo=$ac_try;;
3179esac
3180eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3181$as_echo "$ac_try_echo"; } >&5
3182  (eval "$ac_try") 2>&5
3183  ac_status=$?
3184  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3185  test $ac_status = 0; }; }; then
3186    cross_compiling=no
3187  else
3188    if test "$cross_compiling" = maybe; then
3189	cross_compiling=yes
3190    else
3191	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3192$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3193as_fn_error $? "cannot run C compiled programs.
3194If you meant to cross compile, use \`--host'.
3195See \`config.log' for more details" "$LINENO" 5; }
3196    fi
3197  fi
3198fi
3199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3200$as_echo "$cross_compiling" >&6; }
3201
3202rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3203ac_clean_files=$ac_clean_files_save
3204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3205$as_echo_n "checking for suffix of object files... " >&6; }
3206if ${ac_cv_objext+:} false; then :
3207  $as_echo_n "(cached) " >&6
3208else
3209  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3210/* end confdefs.h.  */
3211
3212int
3213main ()
3214{
3215
3216  ;
3217  return 0;
3218}
3219_ACEOF
3220rm -f conftest.o conftest.obj
3221if { { ac_try="$ac_compile"
3222case "(($ac_try" in
3223  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3224  *) ac_try_echo=$ac_try;;
3225esac
3226eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3227$as_echo "$ac_try_echo"; } >&5
3228  (eval "$ac_compile") 2>&5
3229  ac_status=$?
3230  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3231  test $ac_status = 0; }; then :
3232  for ac_file in conftest.o conftest.obj conftest.*; do
3233  test -f "$ac_file" || continue;
3234  case $ac_file in
3235    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3236    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3237       break;;
3238  esac
3239done
3240else
3241  $as_echo "$as_me: failed program was:" >&5
3242sed 's/^/| /' conftest.$ac_ext >&5
3243
3244{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3245$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3246as_fn_error $? "cannot compute suffix of object files: cannot compile
3247See \`config.log' for more details" "$LINENO" 5; }
3248fi
3249rm -f conftest.$ac_cv_objext conftest.$ac_ext
3250fi
3251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3252$as_echo "$ac_cv_objext" >&6; }
3253OBJEXT=$ac_cv_objext
3254ac_objext=$OBJEXT
3255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3256$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3257if ${ac_cv_c_compiler_gnu+:} false; then :
3258  $as_echo_n "(cached) " >&6
3259else
3260  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3261/* end confdefs.h.  */
3262
3263int
3264main ()
3265{
3266#ifndef __GNUC__
3267       choke me
3268#endif
3269
3270  ;
3271  return 0;
3272}
3273_ACEOF
3274if ac_fn_c_try_compile "$LINENO"; then :
3275  ac_compiler_gnu=yes
3276else
3277  ac_compiler_gnu=no
3278fi
3279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3280ac_cv_c_compiler_gnu=$ac_compiler_gnu
3281
3282fi
3283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3284$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3285if test $ac_compiler_gnu = yes; then
3286  GCC=yes
3287else
3288  GCC=
3289fi
3290ac_test_CFLAGS=${CFLAGS+set}
3291ac_save_CFLAGS=$CFLAGS
3292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3293$as_echo_n "checking whether $CC accepts -g... " >&6; }
3294if ${ac_cv_prog_cc_g+:} false; then :
3295  $as_echo_n "(cached) " >&6
3296else
3297  ac_save_c_werror_flag=$ac_c_werror_flag
3298   ac_c_werror_flag=yes
3299   ac_cv_prog_cc_g=no
3300   CFLAGS="-g"
3301   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3302/* end confdefs.h.  */
3303
3304int
3305main ()
3306{
3307
3308  ;
3309  return 0;
3310}
3311_ACEOF
3312if ac_fn_c_try_compile "$LINENO"; then :
3313  ac_cv_prog_cc_g=yes
3314else
3315  CFLAGS=""
3316      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3317/* end confdefs.h.  */
3318
3319int
3320main ()
3321{
3322
3323  ;
3324  return 0;
3325}
3326_ACEOF
3327if ac_fn_c_try_compile "$LINENO"; then :
3328
3329else
3330  ac_c_werror_flag=$ac_save_c_werror_flag
3331	 CFLAGS="-g"
3332	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3333/* end confdefs.h.  */
3334
3335int
3336main ()
3337{
3338
3339  ;
3340  return 0;
3341}
3342_ACEOF
3343if ac_fn_c_try_compile "$LINENO"; then :
3344  ac_cv_prog_cc_g=yes
3345fi
3346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3347fi
3348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3349fi
3350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3351   ac_c_werror_flag=$ac_save_c_werror_flag
3352fi
3353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3354$as_echo "$ac_cv_prog_cc_g" >&6; }
3355if test "$ac_test_CFLAGS" = set; then
3356  CFLAGS=$ac_save_CFLAGS
3357elif test $ac_cv_prog_cc_g = yes; then
3358  if test "$GCC" = yes; then
3359    CFLAGS="-g -O2"
3360  else
3361    CFLAGS="-g"
3362  fi
3363else
3364  if test "$GCC" = yes; then
3365    CFLAGS="-O2"
3366  else
3367    CFLAGS=
3368  fi
3369fi
3370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3371$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3372if ${ac_cv_prog_cc_c89+:} false; then :
3373  $as_echo_n "(cached) " >&6
3374else
3375  ac_cv_prog_cc_c89=no
3376ac_save_CC=$CC
3377cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3378/* end confdefs.h.  */
3379#include <stdarg.h>
3380#include <stdio.h>
3381struct stat;
3382/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3383struct buf { int x; };
3384FILE * (*rcsopen) (struct buf *, struct stat *, int);
3385static char *e (p, i)
3386     char **p;
3387     int i;
3388{
3389  return p[i];
3390}
3391static char *f (char * (*g) (char **, int), char **p, ...)
3392{
3393  char *s;
3394  va_list v;
3395  va_start (v,p);
3396  s = g (p, va_arg (v,int));
3397  va_end (v);
3398  return s;
3399}
3400
3401/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3402   function prototypes and stuff, but not '\xHH' hex character constants.
3403   These don't provoke an error unfortunately, instead are silently treated
3404   as 'x'.  The following induces an error, until -std is added to get
3405   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3406   array size at least.  It's necessary to write '\x00'==0 to get something
3407   that's true only with -std.  */
3408int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3409
3410/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3411   inside strings and character constants.  */
3412#define FOO(x) 'x'
3413int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3414
3415int test (int i, double x);
3416struct s1 {int (*f) (int a);};
3417struct s2 {int (*f) (double a);};
3418int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3419int argc;
3420char **argv;
3421int
3422main ()
3423{
3424return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3425  ;
3426  return 0;
3427}
3428_ACEOF
3429for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3430	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3431do
3432  CC="$ac_save_CC $ac_arg"
3433  if ac_fn_c_try_compile "$LINENO"; then :
3434  ac_cv_prog_cc_c89=$ac_arg
3435fi
3436rm -f core conftest.err conftest.$ac_objext
3437  test "x$ac_cv_prog_cc_c89" != "xno" && break
3438done
3439rm -f conftest.$ac_ext
3440CC=$ac_save_CC
3441
3442fi
3443# AC_CACHE_VAL
3444case "x$ac_cv_prog_cc_c89" in
3445  x)
3446    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3447$as_echo "none needed" >&6; } ;;
3448  xno)
3449    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3450$as_echo "unsupported" >&6; } ;;
3451  *)
3452    CC="$CC $ac_cv_prog_cc_c89"
3453    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3454$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3455esac
3456if test "x$ac_cv_prog_cc_c89" != xno; then :
3457
3458fi
3459
3460ac_ext=c
3461ac_cpp='$CPP $CPPFLAGS'
3462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3464ac_compiler_gnu=$ac_cv_c_compiler_gnu
3465
3466ac_ext=c
3467ac_cpp='$CPP $CPPFLAGS'
3468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3470ac_compiler_gnu=$ac_cv_c_compiler_gnu
3471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3472$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3473if ${am_cv_prog_cc_c_o+:} false; then :
3474  $as_echo_n "(cached) " >&6
3475else
3476  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3477/* end confdefs.h.  */
3478
3479int
3480main ()
3481{
3482
3483  ;
3484  return 0;
3485}
3486_ACEOF
3487  # Make sure it works both with $CC and with simple cc.
3488  # Following AC_PROG_CC_C_O, we do the test twice because some
3489  # compilers refuse to overwrite an existing .o file with -o,
3490  # though they will create one.
3491  am_cv_prog_cc_c_o=yes
3492  for am_i in 1 2; do
3493    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3494   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3495   ac_status=$?
3496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497   (exit $ac_status); } \
3498         && test -f conftest2.$ac_objext; then
3499      : OK
3500    else
3501      am_cv_prog_cc_c_o=no
3502      break
3503    fi
3504  done
3505  rm -f core conftest*
3506  unset am_i
3507fi
3508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3509$as_echo "$am_cv_prog_cc_c_o" >&6; }
3510if test "$am_cv_prog_cc_c_o" != yes; then
3511   # Losing compiler, so override with the script.
3512   # FIXME: It is wrong to rewrite CC.
3513   # But if we don't then we get into trouble of one sort or another.
3514   # A longer-term fix would be to have automake use am__CC in this case,
3515   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3516   CC="$am_aux_dir/compile $CC"
3517fi
3518ac_ext=c
3519ac_cpp='$CPP $CPPFLAGS'
3520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3522ac_compiler_gnu=$ac_cv_c_compiler_gnu
3523
3524
3525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3526$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3527if ${ac_cv_path_SED+:} false; then :
3528  $as_echo_n "(cached) " >&6
3529else
3530            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3531     for ac_i in 1 2 3 4 5 6 7; do
3532       ac_script="$ac_script$as_nl$ac_script"
3533     done
3534     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3535     { ac_script=; unset ac_script;}
3536     if test -z "$SED"; then
3537  ac_path_SED_found=false
3538  # Loop through the user's path and test for each of PROGNAME-LIST
3539  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3540for as_dir in $PATH
3541do
3542  IFS=$as_save_IFS
3543  test -z "$as_dir" && as_dir=.
3544    for ac_prog in sed gsed; do
3545    for ac_exec_ext in '' $ac_executable_extensions; do
3546      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3547      as_fn_executable_p "$ac_path_SED" || continue
3548# Check for GNU ac_path_SED and select it if it is found.
3549  # Check for GNU $ac_path_SED
3550case `"$ac_path_SED" --version 2>&1` in
3551*GNU*)
3552  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3553*)
3554  ac_count=0
3555  $as_echo_n 0123456789 >"conftest.in"
3556  while :
3557  do
3558    cat "conftest.in" "conftest.in" >"conftest.tmp"
3559    mv "conftest.tmp" "conftest.in"
3560    cp "conftest.in" "conftest.nl"
3561    $as_echo '' >> "conftest.nl"
3562    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3563    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3564    as_fn_arith $ac_count + 1 && ac_count=$as_val
3565    if test $ac_count -gt ${ac_path_SED_max-0}; then
3566      # Best one so far, save it but keep looking for a better one
3567      ac_cv_path_SED="$ac_path_SED"
3568      ac_path_SED_max=$ac_count
3569    fi
3570    # 10*(2^10) chars as input seems more than enough
3571    test $ac_count -gt 10 && break
3572  done
3573  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3574esac
3575
3576      $ac_path_SED_found && break 3
3577    done
3578  done
3579  done
3580IFS=$as_save_IFS
3581  if test -z "$ac_cv_path_SED"; then
3582    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3583  fi
3584else
3585  ac_cv_path_SED=$SED
3586fi
3587
3588fi
3589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3590$as_echo "$ac_cv_path_SED" >&6; }
3591 SED="$ac_cv_path_SED"
3592  rm -f conftest.sed
3593
3594test -z "$SED" && SED=sed
3595Xsed="$SED -e 1s/^X//"
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3608$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3609if ${ac_cv_path_GREP+:} false; then :
3610  $as_echo_n "(cached) " >&6
3611else
3612  if test -z "$GREP"; then
3613  ac_path_GREP_found=false
3614  # Loop through the user's path and test for each of PROGNAME-LIST
3615  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3616for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3617do
3618  IFS=$as_save_IFS
3619  test -z "$as_dir" && as_dir=.
3620    for ac_prog in grep ggrep; do
3621    for ac_exec_ext in '' $ac_executable_extensions; do
3622      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3623      as_fn_executable_p "$ac_path_GREP" || continue
3624# Check for GNU ac_path_GREP and select it if it is found.
3625  # Check for GNU $ac_path_GREP
3626case `"$ac_path_GREP" --version 2>&1` in
3627*GNU*)
3628  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3629*)
3630  ac_count=0
3631  $as_echo_n 0123456789 >"conftest.in"
3632  while :
3633  do
3634    cat "conftest.in" "conftest.in" >"conftest.tmp"
3635    mv "conftest.tmp" "conftest.in"
3636    cp "conftest.in" "conftest.nl"
3637    $as_echo 'GREP' >> "conftest.nl"
3638    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3639    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3640    as_fn_arith $ac_count + 1 && ac_count=$as_val
3641    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3642      # Best one so far, save it but keep looking for a better one
3643      ac_cv_path_GREP="$ac_path_GREP"
3644      ac_path_GREP_max=$ac_count
3645    fi
3646    # 10*(2^10) chars as input seems more than enough
3647    test $ac_count -gt 10 && break
3648  done
3649  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3650esac
3651
3652      $ac_path_GREP_found && break 3
3653    done
3654  done
3655  done
3656IFS=$as_save_IFS
3657  if test -z "$ac_cv_path_GREP"; then
3658    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3659  fi
3660else
3661  ac_cv_path_GREP=$GREP
3662fi
3663
3664fi
3665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3666$as_echo "$ac_cv_path_GREP" >&6; }
3667 GREP="$ac_cv_path_GREP"
3668
3669
3670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3671$as_echo_n "checking for egrep... " >&6; }
3672if ${ac_cv_path_EGREP+:} false; then :
3673  $as_echo_n "(cached) " >&6
3674else
3675  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3676   then ac_cv_path_EGREP="$GREP -E"
3677   else
3678     if test -z "$EGREP"; then
3679  ac_path_EGREP_found=false
3680  # Loop through the user's path and test for each of PROGNAME-LIST
3681  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3682for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3683do
3684  IFS=$as_save_IFS
3685  test -z "$as_dir" && as_dir=.
3686    for ac_prog in egrep; do
3687    for ac_exec_ext in '' $ac_executable_extensions; do
3688      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3689      as_fn_executable_p "$ac_path_EGREP" || continue
3690# Check for GNU ac_path_EGREP and select it if it is found.
3691  # Check for GNU $ac_path_EGREP
3692case `"$ac_path_EGREP" --version 2>&1` in
3693*GNU*)
3694  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3695*)
3696  ac_count=0
3697  $as_echo_n 0123456789 >"conftest.in"
3698  while :
3699  do
3700    cat "conftest.in" "conftest.in" >"conftest.tmp"
3701    mv "conftest.tmp" "conftest.in"
3702    cp "conftest.in" "conftest.nl"
3703    $as_echo 'EGREP' >> "conftest.nl"
3704    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3705    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3706    as_fn_arith $ac_count + 1 && ac_count=$as_val
3707    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3708      # Best one so far, save it but keep looking for a better one
3709      ac_cv_path_EGREP="$ac_path_EGREP"
3710      ac_path_EGREP_max=$ac_count
3711    fi
3712    # 10*(2^10) chars as input seems more than enough
3713    test $ac_count -gt 10 && break
3714  done
3715  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3716esac
3717
3718      $ac_path_EGREP_found && break 3
3719    done
3720  done
3721  done
3722IFS=$as_save_IFS
3723  if test -z "$ac_cv_path_EGREP"; then
3724    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3725  fi
3726else
3727  ac_cv_path_EGREP=$EGREP
3728fi
3729
3730   fi
3731fi
3732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3733$as_echo "$ac_cv_path_EGREP" >&6; }
3734 EGREP="$ac_cv_path_EGREP"
3735
3736
3737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3738$as_echo_n "checking for fgrep... " >&6; }
3739if ${ac_cv_path_FGREP+:} false; then :
3740  $as_echo_n "(cached) " >&6
3741else
3742  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3743   then ac_cv_path_FGREP="$GREP -F"
3744   else
3745     if test -z "$FGREP"; then
3746  ac_path_FGREP_found=false
3747  # Loop through the user's path and test for each of PROGNAME-LIST
3748  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3749for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3750do
3751  IFS=$as_save_IFS
3752  test -z "$as_dir" && as_dir=.
3753    for ac_prog in fgrep; do
3754    for ac_exec_ext in '' $ac_executable_extensions; do
3755      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3756      as_fn_executable_p "$ac_path_FGREP" || continue
3757# Check for GNU ac_path_FGREP and select it if it is found.
3758  # Check for GNU $ac_path_FGREP
3759case `"$ac_path_FGREP" --version 2>&1` in
3760*GNU*)
3761  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3762*)
3763  ac_count=0
3764  $as_echo_n 0123456789 >"conftest.in"
3765  while :
3766  do
3767    cat "conftest.in" "conftest.in" >"conftest.tmp"
3768    mv "conftest.tmp" "conftest.in"
3769    cp "conftest.in" "conftest.nl"
3770    $as_echo 'FGREP' >> "conftest.nl"
3771    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3772    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3773    as_fn_arith $ac_count + 1 && ac_count=$as_val
3774    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3775      # Best one so far, save it but keep looking for a better one
3776      ac_cv_path_FGREP="$ac_path_FGREP"
3777      ac_path_FGREP_max=$ac_count
3778    fi
3779    # 10*(2^10) chars as input seems more than enough
3780    test $ac_count -gt 10 && break
3781  done
3782  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3783esac
3784
3785      $ac_path_FGREP_found && break 3
3786    done
3787  done
3788  done
3789IFS=$as_save_IFS
3790  if test -z "$ac_cv_path_FGREP"; then
3791    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3792  fi
3793else
3794  ac_cv_path_FGREP=$FGREP
3795fi
3796
3797   fi
3798fi
3799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3800$as_echo "$ac_cv_path_FGREP" >&6; }
3801 FGREP="$ac_cv_path_FGREP"
3802
3803
3804test -z "$GREP" && GREP=grep
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824# Check whether --with-gnu-ld was given.
3825if test "${with_gnu_ld+set}" = set; then :
3826  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
3827else
3828  with_gnu_ld=no
3829fi
3830
3831ac_prog=ld
3832if test yes = "$GCC"; then
3833  # Check if gcc -print-prog-name=ld gives a path.
3834  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3835$as_echo_n "checking for ld used by $CC... " >&6; }
3836  case $host in
3837  *-*-mingw*)
3838    # gcc leaves a trailing carriage return, which upsets mingw
3839    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3840  *)
3841    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3842  esac
3843  case $ac_prog in
3844    # Accept absolute paths.
3845    [\\/]* | ?:[\\/]*)
3846      re_direlt='/[^/][^/]*/\.\./'
3847      # Canonicalize the pathname of ld
3848      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3849      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3850	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3851      done
3852      test -z "$LD" && LD=$ac_prog
3853      ;;
3854  "")
3855    # If it fails, then pretend we aren't using GCC.
3856    ac_prog=ld
3857    ;;
3858  *)
3859    # If it is relative, then search for the first ld in PATH.
3860    with_gnu_ld=unknown
3861    ;;
3862  esac
3863elif test yes = "$with_gnu_ld"; then
3864  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3865$as_echo_n "checking for GNU ld... " >&6; }
3866else
3867  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3868$as_echo_n "checking for non-GNU ld... " >&6; }
3869fi
3870if ${lt_cv_path_LD+:} false; then :
3871  $as_echo_n "(cached) " >&6
3872else
3873  if test -z "$LD"; then
3874  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
3875  for ac_dir in $PATH; do
3876    IFS=$lt_save_ifs
3877    test -z "$ac_dir" && ac_dir=.
3878    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3879      lt_cv_path_LD=$ac_dir/$ac_prog
3880      # Check to see if the program is GNU ld.  I'd rather use --version,
3881      # but apparently some variants of GNU ld only accept -v.
3882      # Break only if it was the GNU/non-GNU ld that we prefer.
3883      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3884      *GNU* | *'with BFD'*)
3885	test no != "$with_gnu_ld" && break
3886	;;
3887      *)
3888	test yes != "$with_gnu_ld" && break
3889	;;
3890      esac
3891    fi
3892  done
3893  IFS=$lt_save_ifs
3894else
3895  lt_cv_path_LD=$LD # Let the user override the test with a path.
3896fi
3897fi
3898
3899LD=$lt_cv_path_LD
3900if test -n "$LD"; then
3901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3902$as_echo "$LD" >&6; }
3903else
3904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3905$as_echo "no" >&6; }
3906fi
3907test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3909$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3910if ${lt_cv_prog_gnu_ld+:} false; then :
3911  $as_echo_n "(cached) " >&6
3912else
3913  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3914case `$LD -v 2>&1 </dev/null` in
3915*GNU* | *'with BFD'*)
3916  lt_cv_prog_gnu_ld=yes
3917  ;;
3918*)
3919  lt_cv_prog_gnu_ld=no
3920  ;;
3921esac
3922fi
3923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
3924$as_echo "$lt_cv_prog_gnu_ld" >&6; }
3925with_gnu_ld=$lt_cv_prog_gnu_ld
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
3936$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3937if ${lt_cv_path_NM+:} false; then :
3938  $as_echo_n "(cached) " >&6
3939else
3940  if test -n "$NM"; then
3941  # Let the user override the test.
3942  lt_cv_path_NM=$NM
3943else
3944  lt_nm_to_check=${ac_tool_prefix}nm
3945  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3946    lt_nm_to_check="$lt_nm_to_check nm"
3947  fi
3948  for lt_tmp_nm in $lt_nm_to_check; do
3949    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
3950    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3951      IFS=$lt_save_ifs
3952      test -z "$ac_dir" && ac_dir=.
3953      tmp_nm=$ac_dir/$lt_tmp_nm
3954      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
3955	# Check to see if the nm accepts a BSD-compat flag.
3956	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
3957	#   nm: unknown option "B" ignored
3958	# Tru64's nm complains that /dev/null is an invalid object file
3959	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
3960	case $build_os in
3961	mingw*) lt_bad_file=conftest.nm/nofile ;;
3962	*) lt_bad_file=/dev/null ;;
3963	esac
3964	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
3965	*$lt_bad_file* | *'Invalid file or object type'*)
3966	  lt_cv_path_NM="$tmp_nm -B"
3967	  break 2
3968	  ;;
3969	*)
3970	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3971	  */dev/null*)
3972	    lt_cv_path_NM="$tmp_nm -p"
3973	    break 2
3974	    ;;
3975	  *)
3976	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3977	    continue # so that we can try to find one that supports BSD flags
3978	    ;;
3979	  esac
3980	  ;;
3981	esac
3982      fi
3983    done
3984    IFS=$lt_save_ifs
3985  done
3986  : ${lt_cv_path_NM=no}
3987fi
3988fi
3989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
3990$as_echo "$lt_cv_path_NM" >&6; }
3991if test no != "$lt_cv_path_NM"; then
3992  NM=$lt_cv_path_NM
3993else
3994  # Didn't find any BSD compatible name lister, look for dumpbin.
3995  if test -n "$DUMPBIN"; then :
3996    # Let the user override the test.
3997  else
3998    if test -n "$ac_tool_prefix"; then
3999  for ac_prog in dumpbin "link -dump"
4000  do
4001    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4002set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4004$as_echo_n "checking for $ac_word... " >&6; }
4005if ${ac_cv_prog_DUMPBIN+:} false; then :
4006  $as_echo_n "(cached) " >&6
4007else
4008  if test -n "$DUMPBIN"; then
4009  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4010else
4011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4012for as_dir in $PATH
4013do
4014  IFS=$as_save_IFS
4015  test -z "$as_dir" && as_dir=.
4016    for ac_exec_ext in '' $ac_executable_extensions; do
4017  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4018    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4019    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4020    break 2
4021  fi
4022done
4023  done
4024IFS=$as_save_IFS
4025
4026fi
4027fi
4028DUMPBIN=$ac_cv_prog_DUMPBIN
4029if test -n "$DUMPBIN"; then
4030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4031$as_echo "$DUMPBIN" >&6; }
4032else
4033  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4034$as_echo "no" >&6; }
4035fi
4036
4037
4038    test -n "$DUMPBIN" && break
4039  done
4040fi
4041if test -z "$DUMPBIN"; then
4042  ac_ct_DUMPBIN=$DUMPBIN
4043  for ac_prog in dumpbin "link -dump"
4044do
4045  # Extract the first word of "$ac_prog", so it can be a program name with args.
4046set dummy $ac_prog; ac_word=$2
4047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4048$as_echo_n "checking for $ac_word... " >&6; }
4049if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4050  $as_echo_n "(cached) " >&6
4051else
4052  if test -n "$ac_ct_DUMPBIN"; then
4053  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4054else
4055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4056for as_dir in $PATH
4057do
4058  IFS=$as_save_IFS
4059  test -z "$as_dir" && as_dir=.
4060    for ac_exec_ext in '' $ac_executable_extensions; do
4061  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4062    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4063    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4064    break 2
4065  fi
4066done
4067  done
4068IFS=$as_save_IFS
4069
4070fi
4071fi
4072ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4073if test -n "$ac_ct_DUMPBIN"; then
4074  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4075$as_echo "$ac_ct_DUMPBIN" >&6; }
4076else
4077  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4078$as_echo "no" >&6; }
4079fi
4080
4081
4082  test -n "$ac_ct_DUMPBIN" && break
4083done
4084
4085  if test "x$ac_ct_DUMPBIN" = x; then
4086    DUMPBIN=":"
4087  else
4088    case $cross_compiling:$ac_tool_warned in
4089yes:)
4090{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4091$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4092ac_tool_warned=yes ;;
4093esac
4094    DUMPBIN=$ac_ct_DUMPBIN
4095  fi
4096fi
4097
4098    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4099    *COFF*)
4100      DUMPBIN="$DUMPBIN -symbols -headers"
4101      ;;
4102    *)
4103      DUMPBIN=:
4104      ;;
4105    esac
4106  fi
4107
4108  if test : != "$DUMPBIN"; then
4109    NM=$DUMPBIN
4110  fi
4111fi
4112test -z "$NM" && NM=nm
4113
4114
4115
4116
4117
4118
4119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4120$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4121if ${lt_cv_nm_interface+:} false; then :
4122  $as_echo_n "(cached) " >&6
4123else
4124  lt_cv_nm_interface="BSD nm"
4125  echo "int some_variable = 0;" > conftest.$ac_ext
4126  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4127  (eval "$ac_compile" 2>conftest.err)
4128  cat conftest.err >&5
4129  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4130  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4131  cat conftest.err >&5
4132  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4133  cat conftest.out >&5
4134  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4135    lt_cv_nm_interface="MS dumpbin"
4136  fi
4137  rm -f conftest*
4138fi
4139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4140$as_echo "$lt_cv_nm_interface" >&6; }
4141
4142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4143$as_echo_n "checking whether ln -s works... " >&6; }
4144LN_S=$as_ln_s
4145if test "$LN_S" = "ln -s"; then
4146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4147$as_echo "yes" >&6; }
4148else
4149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4150$as_echo "no, using $LN_S" >&6; }
4151fi
4152
4153# find the maximum length of command line arguments
4154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4155$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4156if ${lt_cv_sys_max_cmd_len+:} false; then :
4157  $as_echo_n "(cached) " >&6
4158else
4159    i=0
4160  teststring=ABCD
4161
4162  case $build_os in
4163  msdosdjgpp*)
4164    # On DJGPP, this test can blow up pretty badly due to problems in libc
4165    # (any single argument exceeding 2000 bytes causes a buffer overrun
4166    # during glob expansion).  Even if it were fixed, the result of this
4167    # check would be larger than it should be.
4168    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4169    ;;
4170
4171  gnu*)
4172    # Under GNU Hurd, this test is not required because there is
4173    # no limit to the length of command line arguments.
4174    # Libtool will interpret -1 as no limit whatsoever
4175    lt_cv_sys_max_cmd_len=-1;
4176    ;;
4177
4178  cygwin* | mingw* | cegcc*)
4179    # On Win9x/ME, this test blows up -- it succeeds, but takes
4180    # about 5 minutes as the teststring grows exponentially.
4181    # Worse, since 9x/ME are not pre-emptively multitasking,
4182    # you end up with a "frozen" computer, even though with patience
4183    # the test eventually succeeds (with a max line length of 256k).
4184    # Instead, let's just punt: use the minimum linelength reported by
4185    # all of the supported platforms: 8192 (on NT/2K/XP).
4186    lt_cv_sys_max_cmd_len=8192;
4187    ;;
4188
4189  mint*)
4190    # On MiNT this can take a long time and run out of memory.
4191    lt_cv_sys_max_cmd_len=8192;
4192    ;;
4193
4194  amigaos*)
4195    # On AmigaOS with pdksh, this test takes hours, literally.
4196    # So we just punt and use a minimum line length of 8192.
4197    lt_cv_sys_max_cmd_len=8192;
4198    ;;
4199
4200  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4201    # This has been around since 386BSD, at least.  Likely further.
4202    if test -x /sbin/sysctl; then
4203      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4204    elif test -x /usr/sbin/sysctl; then
4205      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4206    else
4207      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4208    fi
4209    # And add a safety zone
4210    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4211    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4212    ;;
4213
4214  interix*)
4215    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4216    lt_cv_sys_max_cmd_len=196608
4217    ;;
4218
4219  os2*)
4220    # The test takes a long time on OS/2.
4221    lt_cv_sys_max_cmd_len=8192
4222    ;;
4223
4224  osf*)
4225    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4226    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4227    # nice to cause kernel panics so lets avoid the loop below.
4228    # First set a reasonable default.
4229    lt_cv_sys_max_cmd_len=16384
4230    #
4231    if test -x /sbin/sysconfig; then
4232      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4233        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4234      esac
4235    fi
4236    ;;
4237  sco3.2v5*)
4238    lt_cv_sys_max_cmd_len=102400
4239    ;;
4240  sysv5* | sco5v6* | sysv4.2uw2*)
4241    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4242    if test -n "$kargmax"; then
4243      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4244    else
4245      lt_cv_sys_max_cmd_len=32768
4246    fi
4247    ;;
4248  *)
4249    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4250    if test -n "$lt_cv_sys_max_cmd_len" && \
4251       test undefined != "$lt_cv_sys_max_cmd_len"; then
4252      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4253      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4254    else
4255      # Make teststring a little bigger before we do anything with it.
4256      # a 1K string should be a reasonable start.
4257      for i in 1 2 3 4 5 6 7 8; do
4258        teststring=$teststring$teststring
4259      done
4260      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4261      # If test is not a shell built-in, we'll probably end up computing a
4262      # maximum length that is only half of the actual maximum length, but
4263      # we can't tell.
4264      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4265	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4266	      test 17 != "$i" # 1/2 MB should be enough
4267      do
4268        i=`expr $i + 1`
4269        teststring=$teststring$teststring
4270      done
4271      # Only check the string length outside the loop.
4272      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4273      teststring=
4274      # Add a significant safety factor because C++ compilers can tack on
4275      # massive amounts of additional arguments before passing them to the
4276      # linker.  It appears as though 1/2 is a usable value.
4277      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4278    fi
4279    ;;
4280  esac
4281
4282fi
4283
4284if test -n "$lt_cv_sys_max_cmd_len"; then
4285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4286$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4287else
4288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4289$as_echo "none" >&6; }
4290fi
4291max_cmd_len=$lt_cv_sys_max_cmd_len
4292
4293
4294
4295
4296
4297
4298: ${CP="cp -f"}
4299: ${MV="mv -f"}
4300: ${RM="rm -f"}
4301
4302if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4303  lt_unset=unset
4304else
4305  lt_unset=false
4306fi
4307
4308
4309
4310
4311
4312# test EBCDIC or ASCII
4313case `echo X|tr X '\101'` in
4314 A) # ASCII based system
4315    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4316  lt_SP2NL='tr \040 \012'
4317  lt_NL2SP='tr \015\012 \040\040'
4318  ;;
4319 *) # EBCDIC based system
4320  lt_SP2NL='tr \100 \n'
4321  lt_NL2SP='tr \r\n \100\100'
4322  ;;
4323esac
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4334$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4335if ${lt_cv_to_host_file_cmd+:} false; then :
4336  $as_echo_n "(cached) " >&6
4337else
4338  case $host in
4339  *-*-mingw* )
4340    case $build in
4341      *-*-mingw* ) # actually msys
4342        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4343        ;;
4344      *-*-cygwin* )
4345        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4346        ;;
4347      * ) # otherwise, assume *nix
4348        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4349        ;;
4350    esac
4351    ;;
4352  *-*-cygwin* )
4353    case $build in
4354      *-*-mingw* ) # actually msys
4355        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4356        ;;
4357      *-*-cygwin* )
4358        lt_cv_to_host_file_cmd=func_convert_file_noop
4359        ;;
4360      * ) # otherwise, assume *nix
4361        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4362        ;;
4363    esac
4364    ;;
4365  * ) # unhandled hosts (and "normal" native builds)
4366    lt_cv_to_host_file_cmd=func_convert_file_noop
4367    ;;
4368esac
4369
4370fi
4371
4372to_host_file_cmd=$lt_cv_to_host_file_cmd
4373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4374$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4375
4376
4377
4378
4379
4380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4381$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4382if ${lt_cv_to_tool_file_cmd+:} false; then :
4383  $as_echo_n "(cached) " >&6
4384else
4385  #assume ordinary cross tools, or native build.
4386lt_cv_to_tool_file_cmd=func_convert_file_noop
4387case $host in
4388  *-*-mingw* )
4389    case $build in
4390      *-*-mingw* ) # actually msys
4391        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4392        ;;
4393    esac
4394    ;;
4395esac
4396
4397fi
4398
4399to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4401$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4402
4403
4404
4405
4406
4407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4408$as_echo_n "checking for $LD option to reload object files... " >&6; }
4409if ${lt_cv_ld_reload_flag+:} false; then :
4410  $as_echo_n "(cached) " >&6
4411else
4412  lt_cv_ld_reload_flag='-r'
4413fi
4414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4415$as_echo "$lt_cv_ld_reload_flag" >&6; }
4416reload_flag=$lt_cv_ld_reload_flag
4417case $reload_flag in
4418"" | " "*) ;;
4419*) reload_flag=" $reload_flag" ;;
4420esac
4421reload_cmds='$LD$reload_flag -o $output$reload_objs'
4422case $host_os in
4423  cygwin* | mingw* | pw32* | cegcc*)
4424    if test yes != "$GCC"; then
4425      reload_cmds=false
4426    fi
4427    ;;
4428  darwin*)
4429    if test yes = "$GCC"; then
4430      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
4431    else
4432      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4433    fi
4434    ;;
4435esac
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445if test -n "$ac_tool_prefix"; then
4446  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4447set dummy ${ac_tool_prefix}objdump; ac_word=$2
4448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4449$as_echo_n "checking for $ac_word... " >&6; }
4450if ${ac_cv_prog_OBJDUMP+:} false; then :
4451  $as_echo_n "(cached) " >&6
4452else
4453  if test -n "$OBJDUMP"; then
4454  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4455else
4456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4457for as_dir in $PATH
4458do
4459  IFS=$as_save_IFS
4460  test -z "$as_dir" && as_dir=.
4461    for ac_exec_ext in '' $ac_executable_extensions; do
4462  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4463    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4464    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4465    break 2
4466  fi
4467done
4468  done
4469IFS=$as_save_IFS
4470
4471fi
4472fi
4473OBJDUMP=$ac_cv_prog_OBJDUMP
4474if test -n "$OBJDUMP"; then
4475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4476$as_echo "$OBJDUMP" >&6; }
4477else
4478  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4479$as_echo "no" >&6; }
4480fi
4481
4482
4483fi
4484if test -z "$ac_cv_prog_OBJDUMP"; then
4485  ac_ct_OBJDUMP=$OBJDUMP
4486  # Extract the first word of "objdump", so it can be a program name with args.
4487set dummy objdump; ac_word=$2
4488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4489$as_echo_n "checking for $ac_word... " >&6; }
4490if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4491  $as_echo_n "(cached) " >&6
4492else
4493  if test -n "$ac_ct_OBJDUMP"; then
4494  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4495else
4496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4497for as_dir in $PATH
4498do
4499  IFS=$as_save_IFS
4500  test -z "$as_dir" && as_dir=.
4501    for ac_exec_ext in '' $ac_executable_extensions; do
4502  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4503    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4504    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4505    break 2
4506  fi
4507done
4508  done
4509IFS=$as_save_IFS
4510
4511fi
4512fi
4513ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4514if test -n "$ac_ct_OBJDUMP"; then
4515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4516$as_echo "$ac_ct_OBJDUMP" >&6; }
4517else
4518  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4519$as_echo "no" >&6; }
4520fi
4521
4522  if test "x$ac_ct_OBJDUMP" = x; then
4523    OBJDUMP="false"
4524  else
4525    case $cross_compiling:$ac_tool_warned in
4526yes:)
4527{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4528$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4529ac_tool_warned=yes ;;
4530esac
4531    OBJDUMP=$ac_ct_OBJDUMP
4532  fi
4533else
4534  OBJDUMP="$ac_cv_prog_OBJDUMP"
4535fi
4536
4537test -z "$OBJDUMP" && OBJDUMP=objdump
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4548$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4549if ${lt_cv_deplibs_check_method+:} false; then :
4550  $as_echo_n "(cached) " >&6
4551else
4552  lt_cv_file_magic_cmd='$MAGIC_CMD'
4553lt_cv_file_magic_test_file=
4554lt_cv_deplibs_check_method='unknown'
4555# Need to set the preceding variable on all platforms that support
4556# interlibrary dependencies.
4557# 'none' -- dependencies not supported.
4558# 'unknown' -- same as none, but documents that we really don't know.
4559# 'pass_all' -- all dependencies passed with no checks.
4560# 'test_compile' -- check by making test program.
4561# 'file_magic [[regex]]' -- check by looking for files in library path
4562# that responds to the $file_magic_cmd with a given extended regex.
4563# If you have 'file' or equivalent on your system and you're not sure
4564# whether 'pass_all' will *always* work, you probably want this one.
4565
4566case $host_os in
4567aix[4-9]*)
4568  lt_cv_deplibs_check_method=pass_all
4569  ;;
4570
4571beos*)
4572  lt_cv_deplibs_check_method=pass_all
4573  ;;
4574
4575bsdi[45]*)
4576  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4577  lt_cv_file_magic_cmd='/usr/bin/file -L'
4578  lt_cv_file_magic_test_file=/shlib/libc.so
4579  ;;
4580
4581cygwin*)
4582  # func_win32_libid is a shell function defined in ltmain.sh
4583  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4584  lt_cv_file_magic_cmd='func_win32_libid'
4585  ;;
4586
4587mingw* | pw32*)
4588  # Base MSYS/MinGW do not provide the 'file' command needed by
4589  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4590  # unless we find 'file', for example because we are cross-compiling.
4591  if ( file / ) >/dev/null 2>&1; then
4592    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4593    lt_cv_file_magic_cmd='func_win32_libid'
4594  else
4595    # Keep this pattern in sync with the one in func_win32_libid.
4596    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4597    lt_cv_file_magic_cmd='$OBJDUMP -f'
4598  fi
4599  ;;
4600
4601cegcc*)
4602  # use the weaker test based on 'objdump'. See mingw*.
4603  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4604  lt_cv_file_magic_cmd='$OBJDUMP -f'
4605  ;;
4606
4607darwin* | rhapsody*)
4608  lt_cv_deplibs_check_method=pass_all
4609  ;;
4610
4611freebsd* | dragonfly*)
4612  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4613    case $host_cpu in
4614    i*86 )
4615      # Not sure whether the presence of OpenBSD here was a mistake.
4616      # Let's accept both of them until this is cleared up.
4617      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4618      lt_cv_file_magic_cmd=/usr/bin/file
4619      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4620      ;;
4621    esac
4622  else
4623    lt_cv_deplibs_check_method=pass_all
4624  fi
4625  ;;
4626
4627haiku*)
4628  lt_cv_deplibs_check_method=pass_all
4629  ;;
4630
4631hpux10.20* | hpux11*)
4632  lt_cv_file_magic_cmd=/usr/bin/file
4633  case $host_cpu in
4634  ia64*)
4635    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4636    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4637    ;;
4638  hppa*64*)
4639    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]'
4640    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4641    ;;
4642  *)
4643    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4644    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4645    ;;
4646  esac
4647  ;;
4648
4649interix[3-9]*)
4650  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4651  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4652  ;;
4653
4654irix5* | irix6* | nonstopux*)
4655  case $LD in
4656  *-32|*"-32 ") libmagic=32-bit;;
4657  *-n32|*"-n32 ") libmagic=N32;;
4658  *-64|*"-64 ") libmagic=64-bit;;
4659  *) libmagic=never-match;;
4660  esac
4661  lt_cv_deplibs_check_method=pass_all
4662  ;;
4663
4664# This must be glibc/ELF.
4665linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4666  lt_cv_deplibs_check_method=pass_all
4667  ;;
4668
4669netbsd* | netbsdelf*-gnu)
4670  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4671    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4672  else
4673    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4674  fi
4675  ;;
4676
4677newos6*)
4678  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4679  lt_cv_file_magic_cmd=/usr/bin/file
4680  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4681  ;;
4682
4683*nto* | *qnx*)
4684  lt_cv_deplibs_check_method=pass_all
4685  ;;
4686
4687openbsd* | bitrig*)
4688  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
4689    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4690  else
4691    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4692  fi
4693  ;;
4694
4695osf3* | osf4* | osf5*)
4696  lt_cv_deplibs_check_method=pass_all
4697  ;;
4698
4699rdos*)
4700  lt_cv_deplibs_check_method=pass_all
4701  ;;
4702
4703solaris*)
4704  lt_cv_deplibs_check_method=pass_all
4705  ;;
4706
4707sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4708  lt_cv_deplibs_check_method=pass_all
4709  ;;
4710
4711sysv4 | sysv4.3*)
4712  case $host_vendor in
4713  motorola)
4714    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]'
4715    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4716    ;;
4717  ncr)
4718    lt_cv_deplibs_check_method=pass_all
4719    ;;
4720  sequent)
4721    lt_cv_file_magic_cmd='/bin/file'
4722    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4723    ;;
4724  sni)
4725    lt_cv_file_magic_cmd='/bin/file'
4726    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4727    lt_cv_file_magic_test_file=/lib/libc.so
4728    ;;
4729  siemens)
4730    lt_cv_deplibs_check_method=pass_all
4731    ;;
4732  pc)
4733    lt_cv_deplibs_check_method=pass_all
4734    ;;
4735  esac
4736  ;;
4737
4738tpf*)
4739  lt_cv_deplibs_check_method=pass_all
4740  ;;
4741os2*)
4742  lt_cv_deplibs_check_method=pass_all
4743  ;;
4744esac
4745
4746fi
4747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4748$as_echo "$lt_cv_deplibs_check_method" >&6; }
4749
4750file_magic_glob=
4751want_nocaseglob=no
4752if test "$build" = "$host"; then
4753  case $host_os in
4754  mingw* | pw32*)
4755    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4756      want_nocaseglob=yes
4757    else
4758      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
4759    fi
4760    ;;
4761  esac
4762fi
4763
4764file_magic_cmd=$lt_cv_file_magic_cmd
4765deplibs_check_method=$lt_cv_deplibs_check_method
4766test -z "$deplibs_check_method" && deplibs_check_method=unknown
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789if test -n "$ac_tool_prefix"; then
4790  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4791set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4793$as_echo_n "checking for $ac_word... " >&6; }
4794if ${ac_cv_prog_DLLTOOL+:} false; then :
4795  $as_echo_n "(cached) " >&6
4796else
4797  if test -n "$DLLTOOL"; then
4798  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4799else
4800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4801for as_dir in $PATH
4802do
4803  IFS=$as_save_IFS
4804  test -z "$as_dir" && as_dir=.
4805    for ac_exec_ext in '' $ac_executable_extensions; do
4806  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4807    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4808    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4809    break 2
4810  fi
4811done
4812  done
4813IFS=$as_save_IFS
4814
4815fi
4816fi
4817DLLTOOL=$ac_cv_prog_DLLTOOL
4818if test -n "$DLLTOOL"; then
4819  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4820$as_echo "$DLLTOOL" >&6; }
4821else
4822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4823$as_echo "no" >&6; }
4824fi
4825
4826
4827fi
4828if test -z "$ac_cv_prog_DLLTOOL"; then
4829  ac_ct_DLLTOOL=$DLLTOOL
4830  # Extract the first word of "dlltool", so it can be a program name with args.
4831set dummy dlltool; ac_word=$2
4832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4833$as_echo_n "checking for $ac_word... " >&6; }
4834if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4835  $as_echo_n "(cached) " >&6
4836else
4837  if test -n "$ac_ct_DLLTOOL"; then
4838  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4839else
4840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4841for as_dir in $PATH
4842do
4843  IFS=$as_save_IFS
4844  test -z "$as_dir" && as_dir=.
4845    for ac_exec_ext in '' $ac_executable_extensions; do
4846  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4847    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4848    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4849    break 2
4850  fi
4851done
4852  done
4853IFS=$as_save_IFS
4854
4855fi
4856fi
4857ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4858if test -n "$ac_ct_DLLTOOL"; then
4859  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4860$as_echo "$ac_ct_DLLTOOL" >&6; }
4861else
4862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4863$as_echo "no" >&6; }
4864fi
4865
4866  if test "x$ac_ct_DLLTOOL" = x; then
4867    DLLTOOL="false"
4868  else
4869    case $cross_compiling:$ac_tool_warned in
4870yes:)
4871{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4872$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4873ac_tool_warned=yes ;;
4874esac
4875    DLLTOOL=$ac_ct_DLLTOOL
4876  fi
4877else
4878  DLLTOOL="$ac_cv_prog_DLLTOOL"
4879fi
4880
4881test -z "$DLLTOOL" && DLLTOOL=dlltool
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
4893$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
4894if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
4895  $as_echo_n "(cached) " >&6
4896else
4897  lt_cv_sharedlib_from_linklib_cmd='unknown'
4898
4899case $host_os in
4900cygwin* | mingw* | pw32* | cegcc*)
4901  # two different shell functions defined in ltmain.sh;
4902  # decide which one to use based on capabilities of $DLLTOOL
4903  case `$DLLTOOL --help 2>&1` in
4904  *--identify-strict*)
4905    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
4906    ;;
4907  *)
4908    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
4909    ;;
4910  esac
4911  ;;
4912*)
4913  # fallback: assume linklib IS sharedlib
4914  lt_cv_sharedlib_from_linklib_cmd=$ECHO
4915  ;;
4916esac
4917
4918fi
4919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
4920$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
4921sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
4922test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
4923
4924
4925
4926
4927
4928
4929
4930
4931if test -n "$ac_tool_prefix"; then
4932  for ac_prog in ar
4933  do
4934    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4935set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4937$as_echo_n "checking for $ac_word... " >&6; }
4938if ${ac_cv_prog_AR+:} false; then :
4939  $as_echo_n "(cached) " >&6
4940else
4941  if test -n "$AR"; then
4942  ac_cv_prog_AR="$AR" # Let the user override the test.
4943else
4944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4945for as_dir in $PATH
4946do
4947  IFS=$as_save_IFS
4948  test -z "$as_dir" && as_dir=.
4949    for ac_exec_ext in '' $ac_executable_extensions; do
4950  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4951    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4952    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4953    break 2
4954  fi
4955done
4956  done
4957IFS=$as_save_IFS
4958
4959fi
4960fi
4961AR=$ac_cv_prog_AR
4962if test -n "$AR"; then
4963  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4964$as_echo "$AR" >&6; }
4965else
4966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4967$as_echo "no" >&6; }
4968fi
4969
4970
4971    test -n "$AR" && break
4972  done
4973fi
4974if test -z "$AR"; then
4975  ac_ct_AR=$AR
4976  for ac_prog in ar
4977do
4978  # Extract the first word of "$ac_prog", so it can be a program name with args.
4979set dummy $ac_prog; ac_word=$2
4980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4981$as_echo_n "checking for $ac_word... " >&6; }
4982if ${ac_cv_prog_ac_ct_AR+:} false; then :
4983  $as_echo_n "(cached) " >&6
4984else
4985  if test -n "$ac_ct_AR"; then
4986  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4987else
4988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4989for as_dir in $PATH
4990do
4991  IFS=$as_save_IFS
4992  test -z "$as_dir" && as_dir=.
4993    for ac_exec_ext in '' $ac_executable_extensions; do
4994  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4995    ac_cv_prog_ac_ct_AR="$ac_prog"
4996    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4997    break 2
4998  fi
4999done
5000  done
5001IFS=$as_save_IFS
5002
5003fi
5004fi
5005ac_ct_AR=$ac_cv_prog_ac_ct_AR
5006if test -n "$ac_ct_AR"; then
5007  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5008$as_echo "$ac_ct_AR" >&6; }
5009else
5010  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5011$as_echo "no" >&6; }
5012fi
5013
5014
5015  test -n "$ac_ct_AR" && break
5016done
5017
5018  if test "x$ac_ct_AR" = x; then
5019    AR="false"
5020  else
5021    case $cross_compiling:$ac_tool_warned in
5022yes:)
5023{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5024$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5025ac_tool_warned=yes ;;
5026esac
5027    AR=$ac_ct_AR
5028  fi
5029fi
5030
5031: ${AR=ar}
5032: ${AR_FLAGS=cru}
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5045$as_echo_n "checking for archiver @FILE support... " >&6; }
5046if ${lt_cv_ar_at_file+:} false; then :
5047  $as_echo_n "(cached) " >&6
5048else
5049  lt_cv_ar_at_file=no
5050   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5051/* end confdefs.h.  */
5052
5053int
5054main ()
5055{
5056
5057  ;
5058  return 0;
5059}
5060_ACEOF
5061if ac_fn_c_try_compile "$LINENO"; then :
5062  echo conftest.$ac_objext > conftest.lst
5063      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5064      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5065  (eval $lt_ar_try) 2>&5
5066  ac_status=$?
5067  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5068  test $ac_status = 0; }
5069      if test 0 -eq "$ac_status"; then
5070	# Ensure the archiver fails upon bogus file names.
5071	rm -f conftest.$ac_objext libconftest.a
5072	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5073  (eval $lt_ar_try) 2>&5
5074  ac_status=$?
5075  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5076  test $ac_status = 0; }
5077	if test 0 -ne "$ac_status"; then
5078          lt_cv_ar_at_file=@
5079        fi
5080      fi
5081      rm -f conftest.* libconftest.a
5082
5083fi
5084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5085
5086fi
5087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5088$as_echo "$lt_cv_ar_at_file" >&6; }
5089
5090if test no = "$lt_cv_ar_at_file"; then
5091  archiver_list_spec=
5092else
5093  archiver_list_spec=$lt_cv_ar_at_file
5094fi
5095
5096
5097
5098
5099
5100
5101
5102if test -n "$ac_tool_prefix"; then
5103  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5104set dummy ${ac_tool_prefix}strip; ac_word=$2
5105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5106$as_echo_n "checking for $ac_word... " >&6; }
5107if ${ac_cv_prog_STRIP+:} false; then :
5108  $as_echo_n "(cached) " >&6
5109else
5110  if test -n "$STRIP"; then
5111  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5112else
5113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5114for as_dir in $PATH
5115do
5116  IFS=$as_save_IFS
5117  test -z "$as_dir" && as_dir=.
5118    for ac_exec_ext in '' $ac_executable_extensions; do
5119  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5120    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5121    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5122    break 2
5123  fi
5124done
5125  done
5126IFS=$as_save_IFS
5127
5128fi
5129fi
5130STRIP=$ac_cv_prog_STRIP
5131if test -n "$STRIP"; then
5132  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5133$as_echo "$STRIP" >&6; }
5134else
5135  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5136$as_echo "no" >&6; }
5137fi
5138
5139
5140fi
5141if test -z "$ac_cv_prog_STRIP"; then
5142  ac_ct_STRIP=$STRIP
5143  # Extract the first word of "strip", so it can be a program name with args.
5144set dummy strip; ac_word=$2
5145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5146$as_echo_n "checking for $ac_word... " >&6; }
5147if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5148  $as_echo_n "(cached) " >&6
5149else
5150  if test -n "$ac_ct_STRIP"; then
5151  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5152else
5153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5154for as_dir in $PATH
5155do
5156  IFS=$as_save_IFS
5157  test -z "$as_dir" && as_dir=.
5158    for ac_exec_ext in '' $ac_executable_extensions; do
5159  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5160    ac_cv_prog_ac_ct_STRIP="strip"
5161    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5162    break 2
5163  fi
5164done
5165  done
5166IFS=$as_save_IFS
5167
5168fi
5169fi
5170ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5171if test -n "$ac_ct_STRIP"; then
5172  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5173$as_echo "$ac_ct_STRIP" >&6; }
5174else
5175  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5176$as_echo "no" >&6; }
5177fi
5178
5179  if test "x$ac_ct_STRIP" = x; then
5180    STRIP=":"
5181  else
5182    case $cross_compiling:$ac_tool_warned in
5183yes:)
5184{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5185$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5186ac_tool_warned=yes ;;
5187esac
5188    STRIP=$ac_ct_STRIP
5189  fi
5190else
5191  STRIP="$ac_cv_prog_STRIP"
5192fi
5193
5194test -z "$STRIP" && STRIP=:
5195
5196
5197
5198
5199
5200
5201if test -n "$ac_tool_prefix"; then
5202  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5203set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5205$as_echo_n "checking for $ac_word... " >&6; }
5206if ${ac_cv_prog_RANLIB+:} false; then :
5207  $as_echo_n "(cached) " >&6
5208else
5209  if test -n "$RANLIB"; then
5210  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5211else
5212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5213for as_dir in $PATH
5214do
5215  IFS=$as_save_IFS
5216  test -z "$as_dir" && as_dir=.
5217    for ac_exec_ext in '' $ac_executable_extensions; do
5218  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5219    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5220    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5221    break 2
5222  fi
5223done
5224  done
5225IFS=$as_save_IFS
5226
5227fi
5228fi
5229RANLIB=$ac_cv_prog_RANLIB
5230if test -n "$RANLIB"; then
5231  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5232$as_echo "$RANLIB" >&6; }
5233else
5234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5235$as_echo "no" >&6; }
5236fi
5237
5238
5239fi
5240if test -z "$ac_cv_prog_RANLIB"; then
5241  ac_ct_RANLIB=$RANLIB
5242  # Extract the first word of "ranlib", so it can be a program name with args.
5243set dummy ranlib; ac_word=$2
5244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5245$as_echo_n "checking for $ac_word... " >&6; }
5246if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5247  $as_echo_n "(cached) " >&6
5248else
5249  if test -n "$ac_ct_RANLIB"; then
5250  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5251else
5252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5253for as_dir in $PATH
5254do
5255  IFS=$as_save_IFS
5256  test -z "$as_dir" && as_dir=.
5257    for ac_exec_ext in '' $ac_executable_extensions; do
5258  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5259    ac_cv_prog_ac_ct_RANLIB="ranlib"
5260    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5261    break 2
5262  fi
5263done
5264  done
5265IFS=$as_save_IFS
5266
5267fi
5268fi
5269ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5270if test -n "$ac_ct_RANLIB"; then
5271  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5272$as_echo "$ac_ct_RANLIB" >&6; }
5273else
5274  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5275$as_echo "no" >&6; }
5276fi
5277
5278  if test "x$ac_ct_RANLIB" = x; then
5279    RANLIB=":"
5280  else
5281    case $cross_compiling:$ac_tool_warned in
5282yes:)
5283{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5284$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5285ac_tool_warned=yes ;;
5286esac
5287    RANLIB=$ac_ct_RANLIB
5288  fi
5289else
5290  RANLIB="$ac_cv_prog_RANLIB"
5291fi
5292
5293test -z "$RANLIB" && RANLIB=:
5294
5295
5296
5297
5298
5299
5300# Determine commands to create old-style static archives.
5301old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5302old_postinstall_cmds='chmod 644 $oldlib'
5303old_postuninstall_cmds=
5304
5305if test -n "$RANLIB"; then
5306  case $host_os in
5307  bitrig* | openbsd*)
5308    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5309    ;;
5310  *)
5311    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5312    ;;
5313  esac
5314  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5315fi
5316
5317case $host_os in
5318  darwin*)
5319    lock_old_archive_extraction=yes ;;
5320  *)
5321    lock_old_archive_extraction=no ;;
5322esac
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344for ac_prog in gawk mawk nawk awk
5345do
5346  # Extract the first word of "$ac_prog", so it can be a program name with args.
5347set dummy $ac_prog; ac_word=$2
5348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5349$as_echo_n "checking for $ac_word... " >&6; }
5350if ${ac_cv_prog_AWK+:} false; then :
5351  $as_echo_n "(cached) " >&6
5352else
5353  if test -n "$AWK"; then
5354  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5355else
5356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5357for as_dir in $PATH
5358do
5359  IFS=$as_save_IFS
5360  test -z "$as_dir" && as_dir=.
5361    for ac_exec_ext in '' $ac_executable_extensions; do
5362  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5363    ac_cv_prog_AWK="$ac_prog"
5364    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5365    break 2
5366  fi
5367done
5368  done
5369IFS=$as_save_IFS
5370
5371fi
5372fi
5373AWK=$ac_cv_prog_AWK
5374if test -n "$AWK"; then
5375  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5376$as_echo "$AWK" >&6; }
5377else
5378  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5379$as_echo "no" >&6; }
5380fi
5381
5382
5383  test -n "$AWK" && break
5384done
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404# If no C compiler was specified, use CC.
5405LTCC=${LTCC-"$CC"}
5406
5407# If no C compiler flags were specified, use CFLAGS.
5408LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5409
5410# Allow CC to be a program name with arguments.
5411compiler=$CC
5412
5413
5414# Check for command to grab the raw symbol name followed by C symbol from nm.
5415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5416$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5417if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5418  $as_echo_n "(cached) " >&6
5419else
5420
5421# These are sane defaults that work on at least a few old systems.
5422# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5423
5424# Character class describing NM global symbol codes.
5425symcode='[BCDEGRST]'
5426
5427# Regexp to match symbols that can be accessed directly from C.
5428sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5429
5430# Define system-specific variables.
5431case $host_os in
5432aix*)
5433  symcode='[BCDT]'
5434  ;;
5435cygwin* | mingw* | pw32* | cegcc*)
5436  symcode='[ABCDGISTW]'
5437  ;;
5438hpux*)
5439  if test ia64 = "$host_cpu"; then
5440    symcode='[ABCDEGRST]'
5441  fi
5442  ;;
5443irix* | nonstopux*)
5444  symcode='[BCDEGRST]'
5445  ;;
5446osf*)
5447  symcode='[BCDEGQRST]'
5448  ;;
5449solaris*)
5450  symcode='[BDRT]'
5451  ;;
5452sco3.2v5*)
5453  symcode='[DT]'
5454  ;;
5455sysv4.2uw2*)
5456  symcode='[DT]'
5457  ;;
5458sysv5* | sco5v6* | unixware* | OpenUNIX*)
5459  symcode='[ABDT]'
5460  ;;
5461sysv4)
5462  symcode='[DFNSTU]'
5463  ;;
5464esac
5465
5466# If we're using GNU nm, then use its standard symbol codes.
5467case `$NM -V 2>&1` in
5468*GNU* | *'with BFD'*)
5469  symcode='[ABCDGIRSTW]' ;;
5470esac
5471
5472if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5473  # Gets list of data symbols to import.
5474  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
5475  # Adjust the below global symbol transforms to fixup imported variables.
5476  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
5477  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
5478  lt_c_name_lib_hook="\
5479  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
5480  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
5481else
5482  # Disable hooks by default.
5483  lt_cv_sys_global_symbol_to_import=
5484  lt_cdecl_hook=
5485  lt_c_name_hook=
5486  lt_c_name_lib_hook=
5487fi
5488
5489# Transform an extracted symbol line into a proper C declaration.
5490# Some systems (esp. on ia64) link data and code symbols differently,
5491# so use this general approach.
5492lt_cv_sys_global_symbol_to_cdecl="sed -n"\
5493$lt_cdecl_hook\
5494" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
5495" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
5496
5497# Transform an extracted symbol line into symbol name and symbol address
5498lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
5499$lt_c_name_hook\
5500" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
5501" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
5502
5503# Transform an extracted symbol line into symbol name with lib prefix and
5504# symbol address.
5505lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
5506$lt_c_name_lib_hook\
5507" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
5508" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
5509" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
5510
5511# Handle CRLF in mingw tool chain
5512opt_cr=
5513case $build_os in
5514mingw*)
5515  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5516  ;;
5517esac
5518
5519# Try without a prefix underscore, then with it.
5520for ac_symprfx in "" "_"; do
5521
5522  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5523  symxfrm="\\1 $ac_symprfx\\2 \\2"
5524
5525  # Write the raw and C identifiers.
5526  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5527    # Fake it for dumpbin and say T for any non-static function,
5528    # D for any global variable and I for any imported variable.
5529    # Also find C++ and __fastcall symbols from MSVC++,
5530    # which start with @ or ?.
5531    lt_cv_sys_global_symbol_pipe="$AWK '"\
5532"     {last_section=section; section=\$ 3};"\
5533"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5534"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5535"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
5536"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
5537"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
5538"     \$ 0!~/External *\|/{next};"\
5539"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5540"     {if(hide[section]) next};"\
5541"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
5542"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
5543"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
5544"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
5545"     ' prfx=^$ac_symprfx"
5546  else
5547    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5548  fi
5549  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5550
5551  # Check to see that the pipe works correctly.
5552  pipe_works=no
5553
5554  rm -f conftest*
5555  cat > conftest.$ac_ext <<_LT_EOF
5556#ifdef __cplusplus
5557extern "C" {
5558#endif
5559char nm_test_var;
5560void nm_test_func(void);
5561void nm_test_func(void){}
5562#ifdef __cplusplus
5563}
5564#endif
5565int main(){nm_test_var='a';nm_test_func();return(0);}
5566_LT_EOF
5567
5568  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5569  (eval $ac_compile) 2>&5
5570  ac_status=$?
5571  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5572  test $ac_status = 0; }; then
5573    # Now try to grab the symbols.
5574    nlist=conftest.nm
5575    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5576  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5577  ac_status=$?
5578  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5579  test $ac_status = 0; } && test -s "$nlist"; then
5580      # Try sorting and uniquifying the output.
5581      if sort "$nlist" | uniq > "$nlist"T; then
5582	mv -f "$nlist"T "$nlist"
5583      else
5584	rm -f "$nlist"T
5585      fi
5586
5587      # Make sure that we snagged all the symbols we need.
5588      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5589	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5590	  cat <<_LT_EOF > conftest.$ac_ext
5591/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
5592#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
5593/* DATA imports from DLLs on WIN32 can't be const, because runtime
5594   relocations are performed -- see ld's documentation on pseudo-relocs.  */
5595# define LT_DLSYM_CONST
5596#elif defined __osf__
5597/* This system does not cope well with relocations in const data.  */
5598# define LT_DLSYM_CONST
5599#else
5600# define LT_DLSYM_CONST const
5601#endif
5602
5603#ifdef __cplusplus
5604extern "C" {
5605#endif
5606
5607_LT_EOF
5608	  # Now generate the symbol file.
5609	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5610
5611	  cat <<_LT_EOF >> conftest.$ac_ext
5612
5613/* The mapping between symbol names and symbols.  */
5614LT_DLSYM_CONST struct {
5615  const char *name;
5616  void       *address;
5617}
5618lt__PROGRAM__LTX_preloaded_symbols[] =
5619{
5620  { "@PROGRAM@", (void *) 0 },
5621_LT_EOF
5622	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5623	  cat <<\_LT_EOF >> conftest.$ac_ext
5624  {0, (void *) 0}
5625};
5626
5627/* This works around a problem in FreeBSD linker */
5628#ifdef FREEBSD_WORKAROUND
5629static const void *lt_preloaded_setup() {
5630  return lt__PROGRAM__LTX_preloaded_symbols;
5631}
5632#endif
5633
5634#ifdef __cplusplus
5635}
5636#endif
5637_LT_EOF
5638	  # Now try linking the two files.
5639	  mv conftest.$ac_objext conftstm.$ac_objext
5640	  lt_globsym_save_LIBS=$LIBS
5641	  lt_globsym_save_CFLAGS=$CFLAGS
5642	  LIBS=conftstm.$ac_objext
5643	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5644	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5645  (eval $ac_link) 2>&5
5646  ac_status=$?
5647  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5648  test $ac_status = 0; } && test -s conftest$ac_exeext; then
5649	    pipe_works=yes
5650	  fi
5651	  LIBS=$lt_globsym_save_LIBS
5652	  CFLAGS=$lt_globsym_save_CFLAGS
5653	else
5654	  echo "cannot find nm_test_func in $nlist" >&5
5655	fi
5656      else
5657	echo "cannot find nm_test_var in $nlist" >&5
5658      fi
5659    else
5660      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5661    fi
5662  else
5663    echo "$progname: failed program was:" >&5
5664    cat conftest.$ac_ext >&5
5665  fi
5666  rm -rf conftest* conftst*
5667
5668  # Do not use the global_symbol_pipe unless it works.
5669  if test yes = "$pipe_works"; then
5670    break
5671  else
5672    lt_cv_sys_global_symbol_pipe=
5673  fi
5674done
5675
5676fi
5677
5678if test -z "$lt_cv_sys_global_symbol_pipe"; then
5679  lt_cv_sys_global_symbol_to_cdecl=
5680fi
5681if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5682  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5683$as_echo "failed" >&6; }
5684else
5685  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5686$as_echo "ok" >&6; }
5687fi
5688
5689# Response file support.
5690if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5691  nm_file_list_spec='@'
5692elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5693  nm_file_list_spec='@'
5694fi
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
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{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5733$as_echo_n "checking for sysroot... " >&6; }
5734
5735# Check whether --with-sysroot was given.
5736if test "${with_sysroot+set}" = set; then :
5737  withval=$with_sysroot;
5738else
5739  with_sysroot=no
5740fi
5741
5742
5743lt_sysroot=
5744case $with_sysroot in #(
5745 yes)
5746   if test yes = "$GCC"; then
5747     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5748   fi
5749   ;; #(
5750 /*)
5751   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5752   ;; #(
5753 no|'')
5754   ;; #(
5755 *)
5756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
5757$as_echo "$with_sysroot" >&6; }
5758   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5759   ;;
5760esac
5761
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5763$as_echo "${lt_sysroot:-no}" >&6; }
5764
5765
5766
5767
5768
5769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
5770$as_echo_n "checking for a working dd... " >&6; }
5771if ${ac_cv_path_lt_DD+:} false; then :
5772  $as_echo_n "(cached) " >&6
5773else
5774  printf 0123456789abcdef0123456789abcdef >conftest.i
5775cat conftest.i conftest.i >conftest2.i
5776: ${lt_DD:=$DD}
5777if test -z "$lt_DD"; then
5778  ac_path_lt_DD_found=false
5779  # Loop through the user's path and test for each of PROGNAME-LIST
5780  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5781for as_dir in $PATH
5782do
5783  IFS=$as_save_IFS
5784  test -z "$as_dir" && as_dir=.
5785    for ac_prog in dd; do
5786    for ac_exec_ext in '' $ac_executable_extensions; do
5787      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
5788      as_fn_executable_p "$ac_path_lt_DD" || continue
5789if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
5790  cmp -s conftest.i conftest.out \
5791  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
5792fi
5793      $ac_path_lt_DD_found && break 3
5794    done
5795  done
5796  done
5797IFS=$as_save_IFS
5798  if test -z "$ac_cv_path_lt_DD"; then
5799    :
5800  fi
5801else
5802  ac_cv_path_lt_DD=$lt_DD
5803fi
5804
5805rm -f conftest.i conftest2.i conftest.out
5806fi
5807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
5808$as_echo "$ac_cv_path_lt_DD" >&6; }
5809
5810
5811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
5812$as_echo_n "checking how to truncate binary pipes... " >&6; }
5813if ${lt_cv_truncate_bin+:} false; then :
5814  $as_echo_n "(cached) " >&6
5815else
5816  printf 0123456789abcdef0123456789abcdef >conftest.i
5817cat conftest.i conftest.i >conftest2.i
5818lt_cv_truncate_bin=
5819if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
5820  cmp -s conftest.i conftest.out \
5821  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
5822fi
5823rm -f conftest.i conftest2.i conftest.out
5824test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
5825fi
5826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
5827$as_echo "$lt_cv_truncate_bin" >&6; }
5828
5829
5830
5831
5832
5833
5834
5835# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
5836func_cc_basename ()
5837{
5838    for cc_temp in $*""; do
5839      case $cc_temp in
5840        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5841        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5842        \-*) ;;
5843        *) break;;
5844      esac
5845    done
5846    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
5847}
5848
5849# Check whether --enable-libtool-lock was given.
5850if test "${enable_libtool_lock+set}" = set; then :
5851  enableval=$enable_libtool_lock;
5852fi
5853
5854test no = "$enable_libtool_lock" || enable_libtool_lock=yes
5855
5856# Some flags need to be propagated to the compiler or linker for good
5857# libtool support.
5858case $host in
5859ia64-*-hpux*)
5860  # Find out what ABI is being produced by ac_compile, and set mode
5861  # options accordingly.
5862  echo 'int i;' > conftest.$ac_ext
5863  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5864  (eval $ac_compile) 2>&5
5865  ac_status=$?
5866  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5867  test $ac_status = 0; }; then
5868    case `/usr/bin/file conftest.$ac_objext` in
5869      *ELF-32*)
5870	HPUX_IA64_MODE=32
5871	;;
5872      *ELF-64*)
5873	HPUX_IA64_MODE=64
5874	;;
5875    esac
5876  fi
5877  rm -rf conftest*
5878  ;;
5879*-*-irix6*)
5880  # Find out what ABI is being produced by ac_compile, and set linker
5881  # options accordingly.
5882  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5883  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5884  (eval $ac_compile) 2>&5
5885  ac_status=$?
5886  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5887  test $ac_status = 0; }; then
5888    if test yes = "$lt_cv_prog_gnu_ld"; then
5889      case `/usr/bin/file conftest.$ac_objext` in
5890	*32-bit*)
5891	  LD="${LD-ld} -melf32bsmip"
5892	  ;;
5893	*N32*)
5894	  LD="${LD-ld} -melf32bmipn32"
5895	  ;;
5896	*64-bit*)
5897	  LD="${LD-ld} -melf64bmip"
5898	;;
5899      esac
5900    else
5901      case `/usr/bin/file conftest.$ac_objext` in
5902	*32-bit*)
5903	  LD="${LD-ld} -32"
5904	  ;;
5905	*N32*)
5906	  LD="${LD-ld} -n32"
5907	  ;;
5908	*64-bit*)
5909	  LD="${LD-ld} -64"
5910	  ;;
5911      esac
5912    fi
5913  fi
5914  rm -rf conftest*
5915  ;;
5916
5917mips64*-*linux*)
5918  # Find out what ABI is being produced by ac_compile, and set linker
5919  # options accordingly.
5920  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5921  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5922  (eval $ac_compile) 2>&5
5923  ac_status=$?
5924  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5925  test $ac_status = 0; }; then
5926    emul=elf
5927    case `/usr/bin/file conftest.$ac_objext` in
5928      *32-bit*)
5929	emul="${emul}32"
5930	;;
5931      *64-bit*)
5932	emul="${emul}64"
5933	;;
5934    esac
5935    case `/usr/bin/file conftest.$ac_objext` in
5936      *MSB*)
5937	emul="${emul}btsmip"
5938	;;
5939      *LSB*)
5940	emul="${emul}ltsmip"
5941	;;
5942    esac
5943    case `/usr/bin/file conftest.$ac_objext` in
5944      *N32*)
5945	emul="${emul}n32"
5946	;;
5947    esac
5948    LD="${LD-ld} -m $emul"
5949  fi
5950  rm -rf conftest*
5951  ;;
5952
5953x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
5954s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5955  # Find out what ABI is being produced by ac_compile, and set linker
5956  # options accordingly.  Note that the listed cases only cover the
5957  # situations where additional linker options are needed (such as when
5958  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
5959  # vice versa); the common cases where no linker options are needed do
5960  # not appear in the list.
5961  echo 'int i;' > conftest.$ac_ext
5962  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5963  (eval $ac_compile) 2>&5
5964  ac_status=$?
5965  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5966  test $ac_status = 0; }; then
5967    case `/usr/bin/file conftest.o` in
5968      *32-bit*)
5969	case $host in
5970	  x86_64-*kfreebsd*-gnu)
5971	    LD="${LD-ld} -m elf_i386_fbsd"
5972	    ;;
5973	  x86_64-*linux*)
5974	    case `/usr/bin/file conftest.o` in
5975	      *x86-64*)
5976		LD="${LD-ld} -m elf32_x86_64"
5977		;;
5978	      *)
5979		LD="${LD-ld} -m elf_i386"
5980		;;
5981	    esac
5982	    ;;
5983	  powerpc64le-*linux*)
5984	    LD="${LD-ld} -m elf32lppclinux"
5985	    ;;
5986	  powerpc64-*linux*)
5987	    LD="${LD-ld} -m elf32ppclinux"
5988	    ;;
5989	  s390x-*linux*)
5990	    LD="${LD-ld} -m elf_s390"
5991	    ;;
5992	  sparc64-*linux*)
5993	    LD="${LD-ld} -m elf32_sparc"
5994	    ;;
5995	esac
5996	;;
5997      *64-bit*)
5998	case $host in
5999	  x86_64-*kfreebsd*-gnu)
6000	    LD="${LD-ld} -m elf_x86_64_fbsd"
6001	    ;;
6002	  x86_64-*linux*)
6003	    LD="${LD-ld} -m elf_x86_64"
6004	    ;;
6005	  powerpcle-*linux*)
6006	    LD="${LD-ld} -m elf64lppc"
6007	    ;;
6008	  powerpc-*linux*)
6009	    LD="${LD-ld} -m elf64ppc"
6010	    ;;
6011	  s390*-*linux*|s390*-*tpf*)
6012	    LD="${LD-ld} -m elf64_s390"
6013	    ;;
6014	  sparc*-*linux*)
6015	    LD="${LD-ld} -m elf64_sparc"
6016	    ;;
6017	esac
6018	;;
6019    esac
6020  fi
6021  rm -rf conftest*
6022  ;;
6023
6024*-*-sco3.2v5*)
6025  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6026  SAVE_CFLAGS=$CFLAGS
6027  CFLAGS="$CFLAGS -belf"
6028  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6029$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6030if ${lt_cv_cc_needs_belf+:} false; then :
6031  $as_echo_n "(cached) " >&6
6032else
6033  ac_ext=c
6034ac_cpp='$CPP $CPPFLAGS'
6035ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6036ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6037ac_compiler_gnu=$ac_cv_c_compiler_gnu
6038
6039     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6040/* end confdefs.h.  */
6041
6042int
6043main ()
6044{
6045
6046  ;
6047  return 0;
6048}
6049_ACEOF
6050if ac_fn_c_try_link "$LINENO"; then :
6051  lt_cv_cc_needs_belf=yes
6052else
6053  lt_cv_cc_needs_belf=no
6054fi
6055rm -f core conftest.err conftest.$ac_objext \
6056    conftest$ac_exeext conftest.$ac_ext
6057     ac_ext=c
6058ac_cpp='$CPP $CPPFLAGS'
6059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6061ac_compiler_gnu=$ac_cv_c_compiler_gnu
6062
6063fi
6064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6065$as_echo "$lt_cv_cc_needs_belf" >&6; }
6066  if test yes != "$lt_cv_cc_needs_belf"; then
6067    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6068    CFLAGS=$SAVE_CFLAGS
6069  fi
6070  ;;
6071*-*solaris*)
6072  # Find out what ABI is being produced by ac_compile, and set linker
6073  # options accordingly.
6074  echo 'int i;' > conftest.$ac_ext
6075  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6076  (eval $ac_compile) 2>&5
6077  ac_status=$?
6078  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6079  test $ac_status = 0; }; then
6080    case `/usr/bin/file conftest.o` in
6081    *64-bit*)
6082      case $lt_cv_prog_gnu_ld in
6083      yes*)
6084        case $host in
6085        i?86-*-solaris*|x86_64-*-solaris*)
6086          LD="${LD-ld} -m elf_x86_64"
6087          ;;
6088        sparc*-*-solaris*)
6089          LD="${LD-ld} -m elf64_sparc"
6090          ;;
6091        esac
6092        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6093        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6094          LD=${LD-ld}_sol2
6095        fi
6096        ;;
6097      *)
6098	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6099	  LD="${LD-ld} -64"
6100	fi
6101	;;
6102      esac
6103      ;;
6104    esac
6105  fi
6106  rm -rf conftest*
6107  ;;
6108esac
6109
6110need_locks=$enable_libtool_lock
6111
6112if test -n "$ac_tool_prefix"; then
6113  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6114set dummy ${ac_tool_prefix}mt; ac_word=$2
6115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6116$as_echo_n "checking for $ac_word... " >&6; }
6117if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6118  $as_echo_n "(cached) " >&6
6119else
6120  if test -n "$MANIFEST_TOOL"; then
6121  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6122else
6123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6124for as_dir in $PATH
6125do
6126  IFS=$as_save_IFS
6127  test -z "$as_dir" && as_dir=.
6128    for ac_exec_ext in '' $ac_executable_extensions; do
6129  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6130    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6131    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6132    break 2
6133  fi
6134done
6135  done
6136IFS=$as_save_IFS
6137
6138fi
6139fi
6140MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6141if test -n "$MANIFEST_TOOL"; then
6142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6143$as_echo "$MANIFEST_TOOL" >&6; }
6144else
6145  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6146$as_echo "no" >&6; }
6147fi
6148
6149
6150fi
6151if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6152  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6153  # Extract the first word of "mt", so it can be a program name with args.
6154set dummy mt; ac_word=$2
6155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6156$as_echo_n "checking for $ac_word... " >&6; }
6157if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6158  $as_echo_n "(cached) " >&6
6159else
6160  if test -n "$ac_ct_MANIFEST_TOOL"; then
6161  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6162else
6163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6164for as_dir in $PATH
6165do
6166  IFS=$as_save_IFS
6167  test -z "$as_dir" && as_dir=.
6168    for ac_exec_ext in '' $ac_executable_extensions; do
6169  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6170    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6171    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6172    break 2
6173  fi
6174done
6175  done
6176IFS=$as_save_IFS
6177
6178fi
6179fi
6180ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6181if test -n "$ac_ct_MANIFEST_TOOL"; then
6182  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6183$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6184else
6185  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6186$as_echo "no" >&6; }
6187fi
6188
6189  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6190    MANIFEST_TOOL=":"
6191  else
6192    case $cross_compiling:$ac_tool_warned in
6193yes:)
6194{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6195$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6196ac_tool_warned=yes ;;
6197esac
6198    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6199  fi
6200else
6201  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6202fi
6203
6204test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6206$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6207if ${lt_cv_path_mainfest_tool+:} false; then :
6208  $as_echo_n "(cached) " >&6
6209else
6210  lt_cv_path_mainfest_tool=no
6211  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6212  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6213  cat conftest.err >&5
6214  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6215    lt_cv_path_mainfest_tool=yes
6216  fi
6217  rm -f conftest*
6218fi
6219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6220$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6221if test yes != "$lt_cv_path_mainfest_tool"; then
6222  MANIFEST_TOOL=:
6223fi
6224
6225
6226
6227
6228
6229
6230  case $host_os in
6231    rhapsody* | darwin*)
6232    if test -n "$ac_tool_prefix"; then
6233  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6234set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6236$as_echo_n "checking for $ac_word... " >&6; }
6237if ${ac_cv_prog_DSYMUTIL+:} false; then :
6238  $as_echo_n "(cached) " >&6
6239else
6240  if test -n "$DSYMUTIL"; then
6241  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6242else
6243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6244for as_dir in $PATH
6245do
6246  IFS=$as_save_IFS
6247  test -z "$as_dir" && as_dir=.
6248    for ac_exec_ext in '' $ac_executable_extensions; do
6249  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6250    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6251    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6252    break 2
6253  fi
6254done
6255  done
6256IFS=$as_save_IFS
6257
6258fi
6259fi
6260DSYMUTIL=$ac_cv_prog_DSYMUTIL
6261if test -n "$DSYMUTIL"; then
6262  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6263$as_echo "$DSYMUTIL" >&6; }
6264else
6265  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6266$as_echo "no" >&6; }
6267fi
6268
6269
6270fi
6271if test -z "$ac_cv_prog_DSYMUTIL"; then
6272  ac_ct_DSYMUTIL=$DSYMUTIL
6273  # Extract the first word of "dsymutil", so it can be a program name with args.
6274set dummy dsymutil; ac_word=$2
6275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6276$as_echo_n "checking for $ac_word... " >&6; }
6277if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6278  $as_echo_n "(cached) " >&6
6279else
6280  if test -n "$ac_ct_DSYMUTIL"; then
6281  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6282else
6283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6284for as_dir in $PATH
6285do
6286  IFS=$as_save_IFS
6287  test -z "$as_dir" && as_dir=.
6288    for ac_exec_ext in '' $ac_executable_extensions; do
6289  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6290    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6291    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6292    break 2
6293  fi
6294done
6295  done
6296IFS=$as_save_IFS
6297
6298fi
6299fi
6300ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6301if test -n "$ac_ct_DSYMUTIL"; then
6302  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6303$as_echo "$ac_ct_DSYMUTIL" >&6; }
6304else
6305  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6306$as_echo "no" >&6; }
6307fi
6308
6309  if test "x$ac_ct_DSYMUTIL" = x; then
6310    DSYMUTIL=":"
6311  else
6312    case $cross_compiling:$ac_tool_warned in
6313yes:)
6314{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6315$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6316ac_tool_warned=yes ;;
6317esac
6318    DSYMUTIL=$ac_ct_DSYMUTIL
6319  fi
6320else
6321  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6322fi
6323
6324    if test -n "$ac_tool_prefix"; then
6325  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6326set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6328$as_echo_n "checking for $ac_word... " >&6; }
6329if ${ac_cv_prog_NMEDIT+:} false; then :
6330  $as_echo_n "(cached) " >&6
6331else
6332  if test -n "$NMEDIT"; then
6333  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6334else
6335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6336for as_dir in $PATH
6337do
6338  IFS=$as_save_IFS
6339  test -z "$as_dir" && as_dir=.
6340    for ac_exec_ext in '' $ac_executable_extensions; do
6341  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6342    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6343    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6344    break 2
6345  fi
6346done
6347  done
6348IFS=$as_save_IFS
6349
6350fi
6351fi
6352NMEDIT=$ac_cv_prog_NMEDIT
6353if test -n "$NMEDIT"; then
6354  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6355$as_echo "$NMEDIT" >&6; }
6356else
6357  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6358$as_echo "no" >&6; }
6359fi
6360
6361
6362fi
6363if test -z "$ac_cv_prog_NMEDIT"; then
6364  ac_ct_NMEDIT=$NMEDIT
6365  # Extract the first word of "nmedit", so it can be a program name with args.
6366set dummy nmedit; ac_word=$2
6367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6368$as_echo_n "checking for $ac_word... " >&6; }
6369if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6370  $as_echo_n "(cached) " >&6
6371else
6372  if test -n "$ac_ct_NMEDIT"; then
6373  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6374else
6375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6376for as_dir in $PATH
6377do
6378  IFS=$as_save_IFS
6379  test -z "$as_dir" && as_dir=.
6380    for ac_exec_ext in '' $ac_executable_extensions; do
6381  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6382    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6383    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6384    break 2
6385  fi
6386done
6387  done
6388IFS=$as_save_IFS
6389
6390fi
6391fi
6392ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6393if test -n "$ac_ct_NMEDIT"; then
6394  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6395$as_echo "$ac_ct_NMEDIT" >&6; }
6396else
6397  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6398$as_echo "no" >&6; }
6399fi
6400
6401  if test "x$ac_ct_NMEDIT" = x; then
6402    NMEDIT=":"
6403  else
6404    case $cross_compiling:$ac_tool_warned in
6405yes:)
6406{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6407$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6408ac_tool_warned=yes ;;
6409esac
6410    NMEDIT=$ac_ct_NMEDIT
6411  fi
6412else
6413  NMEDIT="$ac_cv_prog_NMEDIT"
6414fi
6415
6416    if test -n "$ac_tool_prefix"; then
6417  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6418set dummy ${ac_tool_prefix}lipo; ac_word=$2
6419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6420$as_echo_n "checking for $ac_word... " >&6; }
6421if ${ac_cv_prog_LIPO+:} false; then :
6422  $as_echo_n "(cached) " >&6
6423else
6424  if test -n "$LIPO"; then
6425  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6426else
6427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6428for as_dir in $PATH
6429do
6430  IFS=$as_save_IFS
6431  test -z "$as_dir" && as_dir=.
6432    for ac_exec_ext in '' $ac_executable_extensions; do
6433  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6434    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6435    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6436    break 2
6437  fi
6438done
6439  done
6440IFS=$as_save_IFS
6441
6442fi
6443fi
6444LIPO=$ac_cv_prog_LIPO
6445if test -n "$LIPO"; then
6446  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6447$as_echo "$LIPO" >&6; }
6448else
6449  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6450$as_echo "no" >&6; }
6451fi
6452
6453
6454fi
6455if test -z "$ac_cv_prog_LIPO"; then
6456  ac_ct_LIPO=$LIPO
6457  # Extract the first word of "lipo", so it can be a program name with args.
6458set dummy lipo; ac_word=$2
6459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6460$as_echo_n "checking for $ac_word... " >&6; }
6461if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6462  $as_echo_n "(cached) " >&6
6463else
6464  if test -n "$ac_ct_LIPO"; then
6465  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6466else
6467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6468for as_dir in $PATH
6469do
6470  IFS=$as_save_IFS
6471  test -z "$as_dir" && as_dir=.
6472    for ac_exec_ext in '' $ac_executable_extensions; do
6473  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6474    ac_cv_prog_ac_ct_LIPO="lipo"
6475    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6476    break 2
6477  fi
6478done
6479  done
6480IFS=$as_save_IFS
6481
6482fi
6483fi
6484ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6485if test -n "$ac_ct_LIPO"; then
6486  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6487$as_echo "$ac_ct_LIPO" >&6; }
6488else
6489  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6490$as_echo "no" >&6; }
6491fi
6492
6493  if test "x$ac_ct_LIPO" = x; then
6494    LIPO=":"
6495  else
6496    case $cross_compiling:$ac_tool_warned in
6497yes:)
6498{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6499$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6500ac_tool_warned=yes ;;
6501esac
6502    LIPO=$ac_ct_LIPO
6503  fi
6504else
6505  LIPO="$ac_cv_prog_LIPO"
6506fi
6507
6508    if test -n "$ac_tool_prefix"; then
6509  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6510set dummy ${ac_tool_prefix}otool; ac_word=$2
6511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6512$as_echo_n "checking for $ac_word... " >&6; }
6513if ${ac_cv_prog_OTOOL+:} false; then :
6514  $as_echo_n "(cached) " >&6
6515else
6516  if test -n "$OTOOL"; then
6517  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6518else
6519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6520for as_dir in $PATH
6521do
6522  IFS=$as_save_IFS
6523  test -z "$as_dir" && as_dir=.
6524    for ac_exec_ext in '' $ac_executable_extensions; do
6525  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6526    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6527    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6528    break 2
6529  fi
6530done
6531  done
6532IFS=$as_save_IFS
6533
6534fi
6535fi
6536OTOOL=$ac_cv_prog_OTOOL
6537if test -n "$OTOOL"; then
6538  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6539$as_echo "$OTOOL" >&6; }
6540else
6541  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6542$as_echo "no" >&6; }
6543fi
6544
6545
6546fi
6547if test -z "$ac_cv_prog_OTOOL"; then
6548  ac_ct_OTOOL=$OTOOL
6549  # Extract the first word of "otool", so it can be a program name with args.
6550set dummy otool; ac_word=$2
6551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6552$as_echo_n "checking for $ac_word... " >&6; }
6553if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6554  $as_echo_n "(cached) " >&6
6555else
6556  if test -n "$ac_ct_OTOOL"; then
6557  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6558else
6559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6560for as_dir in $PATH
6561do
6562  IFS=$as_save_IFS
6563  test -z "$as_dir" && as_dir=.
6564    for ac_exec_ext in '' $ac_executable_extensions; do
6565  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6566    ac_cv_prog_ac_ct_OTOOL="otool"
6567    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6568    break 2
6569  fi
6570done
6571  done
6572IFS=$as_save_IFS
6573
6574fi
6575fi
6576ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6577if test -n "$ac_ct_OTOOL"; then
6578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6579$as_echo "$ac_ct_OTOOL" >&6; }
6580else
6581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6582$as_echo "no" >&6; }
6583fi
6584
6585  if test "x$ac_ct_OTOOL" = x; then
6586    OTOOL=":"
6587  else
6588    case $cross_compiling:$ac_tool_warned in
6589yes:)
6590{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6591$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6592ac_tool_warned=yes ;;
6593esac
6594    OTOOL=$ac_ct_OTOOL
6595  fi
6596else
6597  OTOOL="$ac_cv_prog_OTOOL"
6598fi
6599
6600    if test -n "$ac_tool_prefix"; then
6601  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6602set dummy ${ac_tool_prefix}otool64; ac_word=$2
6603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6604$as_echo_n "checking for $ac_word... " >&6; }
6605if ${ac_cv_prog_OTOOL64+:} false; then :
6606  $as_echo_n "(cached) " >&6
6607else
6608  if test -n "$OTOOL64"; then
6609  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6610else
6611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6612for as_dir in $PATH
6613do
6614  IFS=$as_save_IFS
6615  test -z "$as_dir" && as_dir=.
6616    for ac_exec_ext in '' $ac_executable_extensions; do
6617  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6618    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6619    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6620    break 2
6621  fi
6622done
6623  done
6624IFS=$as_save_IFS
6625
6626fi
6627fi
6628OTOOL64=$ac_cv_prog_OTOOL64
6629if test -n "$OTOOL64"; then
6630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6631$as_echo "$OTOOL64" >&6; }
6632else
6633  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6634$as_echo "no" >&6; }
6635fi
6636
6637
6638fi
6639if test -z "$ac_cv_prog_OTOOL64"; then
6640  ac_ct_OTOOL64=$OTOOL64
6641  # Extract the first word of "otool64", so it can be a program name with args.
6642set dummy otool64; ac_word=$2
6643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6644$as_echo_n "checking for $ac_word... " >&6; }
6645if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6646  $as_echo_n "(cached) " >&6
6647else
6648  if test -n "$ac_ct_OTOOL64"; then
6649  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6650else
6651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6652for as_dir in $PATH
6653do
6654  IFS=$as_save_IFS
6655  test -z "$as_dir" && as_dir=.
6656    for ac_exec_ext in '' $ac_executable_extensions; do
6657  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6658    ac_cv_prog_ac_ct_OTOOL64="otool64"
6659    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6660    break 2
6661  fi
6662done
6663  done
6664IFS=$as_save_IFS
6665
6666fi
6667fi
6668ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6669if test -n "$ac_ct_OTOOL64"; then
6670  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6671$as_echo "$ac_ct_OTOOL64" >&6; }
6672else
6673  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6674$as_echo "no" >&6; }
6675fi
6676
6677  if test "x$ac_ct_OTOOL64" = x; then
6678    OTOOL64=":"
6679  else
6680    case $cross_compiling:$ac_tool_warned in
6681yes:)
6682{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6683$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6684ac_tool_warned=yes ;;
6685esac
6686    OTOOL64=$ac_ct_OTOOL64
6687  fi
6688else
6689  OTOOL64="$ac_cv_prog_OTOOL64"
6690fi
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6719$as_echo_n "checking for -single_module linker flag... " >&6; }
6720if ${lt_cv_apple_cc_single_mod+:} false; then :
6721  $as_echo_n "(cached) " >&6
6722else
6723  lt_cv_apple_cc_single_mod=no
6724      if test -z "$LT_MULTI_MODULE"; then
6725	# By default we will add the -single_module flag. You can override
6726	# by either setting the environment variable LT_MULTI_MODULE
6727	# non-empty at configure time, or by adding -multi_module to the
6728	# link flags.
6729	rm -rf libconftest.dylib*
6730	echo "int foo(void){return 1;}" > conftest.c
6731	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6732-dynamiclib -Wl,-single_module conftest.c" >&5
6733	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6734	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6735        _lt_result=$?
6736	# If there is a non-empty error log, and "single_module"
6737	# appears in it, assume the flag caused a linker warning
6738        if test -s conftest.err && $GREP single_module conftest.err; then
6739	  cat conftest.err >&5
6740	# Otherwise, if the output was created with a 0 exit code from
6741	# the compiler, it worked.
6742	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
6743	  lt_cv_apple_cc_single_mod=yes
6744	else
6745	  cat conftest.err >&5
6746	fi
6747	rm -rf libconftest.dylib*
6748	rm -f conftest.*
6749      fi
6750fi
6751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6752$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6753
6754    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6755$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6756if ${lt_cv_ld_exported_symbols_list+:} false; then :
6757  $as_echo_n "(cached) " >&6
6758else
6759  lt_cv_ld_exported_symbols_list=no
6760      save_LDFLAGS=$LDFLAGS
6761      echo "_main" > conftest.sym
6762      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6763      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6764/* end confdefs.h.  */
6765
6766int
6767main ()
6768{
6769
6770  ;
6771  return 0;
6772}
6773_ACEOF
6774if ac_fn_c_try_link "$LINENO"; then :
6775  lt_cv_ld_exported_symbols_list=yes
6776else
6777  lt_cv_ld_exported_symbols_list=no
6778fi
6779rm -f core conftest.err conftest.$ac_objext \
6780    conftest$ac_exeext conftest.$ac_ext
6781	LDFLAGS=$save_LDFLAGS
6782
6783fi
6784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6785$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6786
6787    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6788$as_echo_n "checking for -force_load linker flag... " >&6; }
6789if ${lt_cv_ld_force_load+:} false; then :
6790  $as_echo_n "(cached) " >&6
6791else
6792  lt_cv_ld_force_load=no
6793      cat > conftest.c << _LT_EOF
6794int forced_loaded() { return 2;}
6795_LT_EOF
6796      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6797      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6798      echo "$AR cru libconftest.a conftest.o" >&5
6799      $AR cru libconftest.a conftest.o 2>&5
6800      echo "$RANLIB libconftest.a" >&5
6801      $RANLIB libconftest.a 2>&5
6802      cat > conftest.c << _LT_EOF
6803int main() { return 0;}
6804_LT_EOF
6805      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6806      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6807      _lt_result=$?
6808      if test -s conftest.err && $GREP force_load conftest.err; then
6809	cat conftest.err >&5
6810      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
6811	lt_cv_ld_force_load=yes
6812      else
6813	cat conftest.err >&5
6814      fi
6815        rm -f conftest.err libconftest.a conftest conftest.c
6816        rm -rf conftest.dSYM
6817
6818fi
6819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6820$as_echo "$lt_cv_ld_force_load" >&6; }
6821    case $host_os in
6822    rhapsody* | darwin1.[012])
6823      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
6824    darwin1.*)
6825      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
6826    darwin*) # darwin 5.x on
6827      # if running on 10.5 or later, the deployment target defaults
6828      # to the OS version, if on x86, and 10.4, the deployment
6829      # target defaults to 10.4. Don't you love it?
6830      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6831	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6832	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
6833	10.[012][,.]*)
6834	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
6835	10.*)
6836	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
6837      esac
6838    ;;
6839  esac
6840    if test yes = "$lt_cv_apple_cc_single_mod"; then
6841      _lt_dar_single_mod='$single_module'
6842    fi
6843    if test yes = "$lt_cv_ld_exported_symbols_list"; then
6844      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
6845    else
6846      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
6847    fi
6848    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
6849      _lt_dsymutil='~$DSYMUTIL $lib || :'
6850    else
6851      _lt_dsymutil=
6852    fi
6853    ;;
6854  esac
6855
6856# func_munge_path_list VARIABLE PATH
6857# -----------------------------------
6858# VARIABLE is name of variable containing _space_ separated list of
6859# directories to be munged by the contents of PATH, which is string
6860# having a format:
6861# "DIR[:DIR]:"
6862#       string "DIR[ DIR]" will be prepended to VARIABLE
6863# ":DIR[:DIR]"
6864#       string "DIR[ DIR]" will be appended to VARIABLE
6865# "DIRP[:DIRP]::[DIRA:]DIRA"
6866#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
6867#       "DIRA[ DIRA]" will be appended to VARIABLE
6868# "DIR[:DIR]"
6869#       VARIABLE will be replaced by "DIR[ DIR]"
6870func_munge_path_list ()
6871{
6872    case x$2 in
6873    x)
6874        ;;
6875    *:)
6876        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
6877        ;;
6878    x:*)
6879        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
6880        ;;
6881    *::*)
6882        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
6883        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
6884        ;;
6885    *)
6886        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
6887        ;;
6888    esac
6889}
6890
6891ac_ext=c
6892ac_cpp='$CPP $CPPFLAGS'
6893ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6894ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6895ac_compiler_gnu=$ac_cv_c_compiler_gnu
6896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6897$as_echo_n "checking how to run the C preprocessor... " >&6; }
6898# On Suns, sometimes $CPP names a directory.
6899if test -n "$CPP" && test -d "$CPP"; then
6900  CPP=
6901fi
6902if test -z "$CPP"; then
6903  if ${ac_cv_prog_CPP+:} false; then :
6904  $as_echo_n "(cached) " >&6
6905else
6906      # Double quotes because CPP needs to be expanded
6907    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6908    do
6909      ac_preproc_ok=false
6910for ac_c_preproc_warn_flag in '' yes
6911do
6912  # Use a header file that comes with gcc, so configuring glibc
6913  # with a fresh cross-compiler works.
6914  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6915  # <limits.h> exists even on freestanding compilers.
6916  # On the NeXT, cc -E runs the code through the compiler's parser,
6917  # not just through cpp. "Syntax error" is here to catch this case.
6918  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6919/* end confdefs.h.  */
6920#ifdef __STDC__
6921# include <limits.h>
6922#else
6923# include <assert.h>
6924#endif
6925		     Syntax error
6926_ACEOF
6927if ac_fn_c_try_cpp "$LINENO"; then :
6928
6929else
6930  # Broken: fails on valid input.
6931continue
6932fi
6933rm -f conftest.err conftest.i conftest.$ac_ext
6934
6935  # OK, works on sane cases.  Now check whether nonexistent headers
6936  # can be detected and how.
6937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6938/* end confdefs.h.  */
6939#include <ac_nonexistent.h>
6940_ACEOF
6941if ac_fn_c_try_cpp "$LINENO"; then :
6942  # Broken: success on invalid input.
6943continue
6944else
6945  # Passes both tests.
6946ac_preproc_ok=:
6947break
6948fi
6949rm -f conftest.err conftest.i conftest.$ac_ext
6950
6951done
6952# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6953rm -f conftest.i conftest.err conftest.$ac_ext
6954if $ac_preproc_ok; then :
6955  break
6956fi
6957
6958    done
6959    ac_cv_prog_CPP=$CPP
6960
6961fi
6962  CPP=$ac_cv_prog_CPP
6963else
6964  ac_cv_prog_CPP=$CPP
6965fi
6966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6967$as_echo "$CPP" >&6; }
6968ac_preproc_ok=false
6969for ac_c_preproc_warn_flag in '' yes
6970do
6971  # Use a header file that comes with gcc, so configuring glibc
6972  # with a fresh cross-compiler works.
6973  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6974  # <limits.h> exists even on freestanding compilers.
6975  # On the NeXT, cc -E runs the code through the compiler's parser,
6976  # not just through cpp. "Syntax error" is here to catch this case.
6977  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6978/* end confdefs.h.  */
6979#ifdef __STDC__
6980# include <limits.h>
6981#else
6982# include <assert.h>
6983#endif
6984		     Syntax error
6985_ACEOF
6986if ac_fn_c_try_cpp "$LINENO"; then :
6987
6988else
6989  # Broken: fails on valid input.
6990continue
6991fi
6992rm -f conftest.err conftest.i conftest.$ac_ext
6993
6994  # OK, works on sane cases.  Now check whether nonexistent headers
6995  # can be detected and how.
6996  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6997/* end confdefs.h.  */
6998#include <ac_nonexistent.h>
6999_ACEOF
7000if ac_fn_c_try_cpp "$LINENO"; then :
7001  # Broken: success on invalid input.
7002continue
7003else
7004  # Passes both tests.
7005ac_preproc_ok=:
7006break
7007fi
7008rm -f conftest.err conftest.i conftest.$ac_ext
7009
7010done
7011# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7012rm -f conftest.i conftest.err conftest.$ac_ext
7013if $ac_preproc_ok; then :
7014
7015else
7016  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7017$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7018as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7019See \`config.log' for more details" "$LINENO" 5; }
7020fi
7021
7022ac_ext=c
7023ac_cpp='$CPP $CPPFLAGS'
7024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7026ac_compiler_gnu=$ac_cv_c_compiler_gnu
7027
7028
7029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7030$as_echo_n "checking for ANSI C header files... " >&6; }
7031if ${ac_cv_header_stdc+:} false; then :
7032  $as_echo_n "(cached) " >&6
7033else
7034  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7035/* end confdefs.h.  */
7036#include <stdlib.h>
7037#include <stdarg.h>
7038#include <string.h>
7039#include <float.h>
7040
7041int
7042main ()
7043{
7044
7045  ;
7046  return 0;
7047}
7048_ACEOF
7049if ac_fn_c_try_compile "$LINENO"; then :
7050  ac_cv_header_stdc=yes
7051else
7052  ac_cv_header_stdc=no
7053fi
7054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7055
7056if test $ac_cv_header_stdc = yes; then
7057  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7058  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7059/* end confdefs.h.  */
7060#include <string.h>
7061
7062_ACEOF
7063if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7064  $EGREP "memchr" >/dev/null 2>&1; then :
7065
7066else
7067  ac_cv_header_stdc=no
7068fi
7069rm -f conftest*
7070
7071fi
7072
7073if test $ac_cv_header_stdc = yes; then
7074  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7075  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7076/* end confdefs.h.  */
7077#include <stdlib.h>
7078
7079_ACEOF
7080if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7081  $EGREP "free" >/dev/null 2>&1; then :
7082
7083else
7084  ac_cv_header_stdc=no
7085fi
7086rm -f conftest*
7087
7088fi
7089
7090if test $ac_cv_header_stdc = yes; then
7091  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7092  if test "$cross_compiling" = yes; then :
7093  :
7094else
7095  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7096/* end confdefs.h.  */
7097#include <ctype.h>
7098#include <stdlib.h>
7099#if ((' ' & 0x0FF) == 0x020)
7100# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7101# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7102#else
7103# define ISLOWER(c) \
7104		   (('a' <= (c) && (c) <= 'i') \
7105		     || ('j' <= (c) && (c) <= 'r') \
7106		     || ('s' <= (c) && (c) <= 'z'))
7107# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7108#endif
7109
7110#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7111int
7112main ()
7113{
7114  int i;
7115  for (i = 0; i < 256; i++)
7116    if (XOR (islower (i), ISLOWER (i))
7117	|| toupper (i) != TOUPPER (i))
7118      return 2;
7119  return 0;
7120}
7121_ACEOF
7122if ac_fn_c_try_run "$LINENO"; then :
7123
7124else
7125  ac_cv_header_stdc=no
7126fi
7127rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7128  conftest.$ac_objext conftest.beam conftest.$ac_ext
7129fi
7130
7131fi
7132fi
7133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7134$as_echo "$ac_cv_header_stdc" >&6; }
7135if test $ac_cv_header_stdc = yes; then
7136
7137$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7138
7139fi
7140
7141# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7142for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7143		  inttypes.h stdint.h unistd.h
7144do :
7145  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7146ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7147"
7148if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7149  cat >>confdefs.h <<_ACEOF
7150#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7151_ACEOF
7152
7153fi
7154
7155done
7156
7157
7158for ac_header in dlfcn.h
7159do :
7160  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7161"
7162if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7163  cat >>confdefs.h <<_ACEOF
7164#define HAVE_DLFCN_H 1
7165_ACEOF
7166
7167fi
7168
7169done
7170
7171
7172
7173
7174
7175# Set options
7176
7177
7178
7179        enable_dlopen=no
7180
7181
7182  enable_win32_dll=no
7183
7184
7185            # Check whether --enable-shared was given.
7186if test "${enable_shared+set}" = set; then :
7187  enableval=$enable_shared; p=${PACKAGE-default}
7188    case $enableval in
7189    yes) enable_shared=yes ;;
7190    no) enable_shared=no ;;
7191    *)
7192      enable_shared=no
7193      # Look at the argument we got.  We use all the common list separators.
7194      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7195      for pkg in $enableval; do
7196	IFS=$lt_save_ifs
7197	if test "X$pkg" = "X$p"; then
7198	  enable_shared=yes
7199	fi
7200      done
7201      IFS=$lt_save_ifs
7202      ;;
7203    esac
7204else
7205  enable_shared=yes
7206fi
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216  # Check whether --enable-static was given.
7217if test "${enable_static+set}" = set; then :
7218  enableval=$enable_static; p=${PACKAGE-default}
7219    case $enableval in
7220    yes) enable_static=yes ;;
7221    no) enable_static=no ;;
7222    *)
7223     enable_static=no
7224      # Look at the argument we got.  We use all the common list separators.
7225      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7226      for pkg in $enableval; do
7227	IFS=$lt_save_ifs
7228	if test "X$pkg" = "X$p"; then
7229	  enable_static=yes
7230	fi
7231      done
7232      IFS=$lt_save_ifs
7233      ;;
7234    esac
7235else
7236  enable_static=yes
7237fi
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248# Check whether --with-pic was given.
7249if test "${with_pic+set}" = set; then :
7250  withval=$with_pic; lt_p=${PACKAGE-default}
7251    case $withval in
7252    yes|no) pic_mode=$withval ;;
7253    *)
7254      pic_mode=default
7255      # Look at the argument we got.  We use all the common list separators.
7256      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7257      for lt_pkg in $withval; do
7258	IFS=$lt_save_ifs
7259	if test "X$lt_pkg" = "X$lt_p"; then
7260	  pic_mode=yes
7261	fi
7262      done
7263      IFS=$lt_save_ifs
7264      ;;
7265    esac
7266else
7267  pic_mode=default
7268fi
7269
7270
7271
7272
7273
7274
7275
7276
7277  # Check whether --enable-fast-install was given.
7278if test "${enable_fast_install+set}" = set; then :
7279  enableval=$enable_fast_install; p=${PACKAGE-default}
7280    case $enableval in
7281    yes) enable_fast_install=yes ;;
7282    no) enable_fast_install=no ;;
7283    *)
7284      enable_fast_install=no
7285      # Look at the argument we got.  We use all the common list separators.
7286      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7287      for pkg in $enableval; do
7288	IFS=$lt_save_ifs
7289	if test "X$pkg" = "X$p"; then
7290	  enable_fast_install=yes
7291	fi
7292      done
7293      IFS=$lt_save_ifs
7294      ;;
7295    esac
7296else
7297  enable_fast_install=yes
7298fi
7299
7300
7301
7302
7303
7304
7305
7306
7307  shared_archive_member_spec=
7308case $host,$enable_shared in
7309power*-*-aix[5-9]*,yes)
7310  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7311$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7312
7313# Check whether --with-aix-soname was given.
7314if test "${with_aix_soname+set}" = set; then :
7315  withval=$with_aix_soname; case $withval in
7316    aix|svr4|both)
7317      ;;
7318    *)
7319      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7320      ;;
7321    esac
7322    lt_cv_with_aix_soname=$with_aix_soname
7323else
7324  if ${lt_cv_with_aix_soname+:} false; then :
7325  $as_echo_n "(cached) " >&6
7326else
7327  lt_cv_with_aix_soname=aix
7328fi
7329
7330    with_aix_soname=$lt_cv_with_aix_soname
7331fi
7332
7333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7334$as_echo "$with_aix_soname" >&6; }
7335  if test aix != "$with_aix_soname"; then
7336    # For the AIX way of multilib, we name the shared archive member
7337    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7338    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7339    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7340    # the AIX toolchain works better with OBJECT_MODE set (default 32).
7341    if test 64 = "${OBJECT_MODE-32}"; then
7342      shared_archive_member_spec=shr_64
7343    else
7344      shared_archive_member_spec=shr
7345    fi
7346  fi
7347  ;;
7348*)
7349  with_aix_soname=aix
7350  ;;
7351esac
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362# This can be used to rebuild libtool when needed
7363LIBTOOL_DEPS=$ltmain
7364
7365# Always use our own libtool.
7366LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397test -z "$LN_S" && LN_S="ln -s"
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412if test -n "${ZSH_VERSION+set}"; then
7413   setopt NO_GLOB_SUBST
7414fi
7415
7416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7417$as_echo_n "checking for objdir... " >&6; }
7418if ${lt_cv_objdir+:} false; then :
7419  $as_echo_n "(cached) " >&6
7420else
7421  rm -f .libs 2>/dev/null
7422mkdir .libs 2>/dev/null
7423if test -d .libs; then
7424  lt_cv_objdir=.libs
7425else
7426  # MS-DOS does not allow filenames that begin with a dot.
7427  lt_cv_objdir=_libs
7428fi
7429rmdir .libs 2>/dev/null
7430fi
7431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7432$as_echo "$lt_cv_objdir" >&6; }
7433objdir=$lt_cv_objdir
7434
7435
7436
7437
7438
7439cat >>confdefs.h <<_ACEOF
7440#define LT_OBJDIR "$lt_cv_objdir/"
7441_ACEOF
7442
7443
7444
7445
7446case $host_os in
7447aix3*)
7448  # AIX sometimes has problems with the GCC collect2 program.  For some
7449  # reason, if we set the COLLECT_NAMES environment variable, the problems
7450  # vanish in a puff of smoke.
7451  if test set != "${COLLECT_NAMES+set}"; then
7452    COLLECT_NAMES=
7453    export COLLECT_NAMES
7454  fi
7455  ;;
7456esac
7457
7458# Global variables:
7459ofile=libtool
7460can_build_shared=yes
7461
7462# All known linkers require a '.a' archive for static linking (except MSVC,
7463# which needs '.lib').
7464libext=a
7465
7466with_gnu_ld=$lt_cv_prog_gnu_ld
7467
7468old_CC=$CC
7469old_CFLAGS=$CFLAGS
7470
7471# Set sane defaults for various variables
7472test -z "$CC" && CC=cc
7473test -z "$LTCC" && LTCC=$CC
7474test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7475test -z "$LD" && LD=ld
7476test -z "$ac_objext" && ac_objext=o
7477
7478func_cc_basename $compiler
7479cc_basename=$func_cc_basename_result
7480
7481
7482# Only perform the check for file, if the check method requires it
7483test -z "$MAGIC_CMD" && MAGIC_CMD=file
7484case $deplibs_check_method in
7485file_magic*)
7486  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7487    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7488$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7489if ${lt_cv_path_MAGIC_CMD+:} false; then :
7490  $as_echo_n "(cached) " >&6
7491else
7492  case $MAGIC_CMD in
7493[\\/*] |  ?:[\\/]*)
7494  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7495  ;;
7496*)
7497  lt_save_MAGIC_CMD=$MAGIC_CMD
7498  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7499  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7500  for ac_dir in $ac_dummy; do
7501    IFS=$lt_save_ifs
7502    test -z "$ac_dir" && ac_dir=.
7503    if test -f "$ac_dir/${ac_tool_prefix}file"; then
7504      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
7505      if test -n "$file_magic_test_file"; then
7506	case $deplibs_check_method in
7507	"file_magic "*)
7508	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7509	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7510	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7511	    $EGREP "$file_magic_regex" > /dev/null; then
7512	    :
7513	  else
7514	    cat <<_LT_EOF 1>&2
7515
7516*** Warning: the command libtool uses to detect shared libraries,
7517*** $file_magic_cmd, produces output that libtool cannot recognize.
7518*** The result is that libtool may fail to recognize shared libraries
7519*** as such.  This will affect the creation of libtool libraries that
7520*** depend on shared libraries, but programs linked with such libtool
7521*** libraries will work regardless of this problem.  Nevertheless, you
7522*** may want to report the problem to your system manager and/or to
7523*** bug-libtool@gnu.org
7524
7525_LT_EOF
7526	  fi ;;
7527	esac
7528      fi
7529      break
7530    fi
7531  done
7532  IFS=$lt_save_ifs
7533  MAGIC_CMD=$lt_save_MAGIC_CMD
7534  ;;
7535esac
7536fi
7537
7538MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7539if test -n "$MAGIC_CMD"; then
7540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7541$as_echo "$MAGIC_CMD" >&6; }
7542else
7543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7544$as_echo "no" >&6; }
7545fi
7546
7547
7548
7549
7550
7551if test -z "$lt_cv_path_MAGIC_CMD"; then
7552  if test -n "$ac_tool_prefix"; then
7553    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7554$as_echo_n "checking for file... " >&6; }
7555if ${lt_cv_path_MAGIC_CMD+:} false; then :
7556  $as_echo_n "(cached) " >&6
7557else
7558  case $MAGIC_CMD in
7559[\\/*] |  ?:[\\/]*)
7560  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7561  ;;
7562*)
7563  lt_save_MAGIC_CMD=$MAGIC_CMD
7564  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7565  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7566  for ac_dir in $ac_dummy; do
7567    IFS=$lt_save_ifs
7568    test -z "$ac_dir" && ac_dir=.
7569    if test -f "$ac_dir/file"; then
7570      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
7571      if test -n "$file_magic_test_file"; then
7572	case $deplibs_check_method in
7573	"file_magic "*)
7574	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7575	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7576	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7577	    $EGREP "$file_magic_regex" > /dev/null; then
7578	    :
7579	  else
7580	    cat <<_LT_EOF 1>&2
7581
7582*** Warning: the command libtool uses to detect shared libraries,
7583*** $file_magic_cmd, produces output that libtool cannot recognize.
7584*** The result is that libtool may fail to recognize shared libraries
7585*** as such.  This will affect the creation of libtool libraries that
7586*** depend on shared libraries, but programs linked with such libtool
7587*** libraries will work regardless of this problem.  Nevertheless, you
7588*** may want to report the problem to your system manager and/or to
7589*** bug-libtool@gnu.org
7590
7591_LT_EOF
7592	  fi ;;
7593	esac
7594      fi
7595      break
7596    fi
7597  done
7598  IFS=$lt_save_ifs
7599  MAGIC_CMD=$lt_save_MAGIC_CMD
7600  ;;
7601esac
7602fi
7603
7604MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7605if test -n "$MAGIC_CMD"; then
7606  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7607$as_echo "$MAGIC_CMD" >&6; }
7608else
7609  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7610$as_echo "no" >&6; }
7611fi
7612
7613
7614  else
7615    MAGIC_CMD=:
7616  fi
7617fi
7618
7619  fi
7620  ;;
7621esac
7622
7623# Use C for the default configuration in the libtool script
7624
7625lt_save_CC=$CC
7626ac_ext=c
7627ac_cpp='$CPP $CPPFLAGS'
7628ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7629ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7630ac_compiler_gnu=$ac_cv_c_compiler_gnu
7631
7632
7633# Source file extension for C test sources.
7634ac_ext=c
7635
7636# Object file extension for compiled C test sources.
7637objext=o
7638objext=$objext
7639
7640# Code to be used in simple compile tests
7641lt_simple_compile_test_code="int some_variable = 0;"
7642
7643# Code to be used in simple link tests
7644lt_simple_link_test_code='int main(){return(0);}'
7645
7646
7647
7648
7649
7650
7651
7652# If no C compiler was specified, use CC.
7653LTCC=${LTCC-"$CC"}
7654
7655# If no C compiler flags were specified, use CFLAGS.
7656LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7657
7658# Allow CC to be a program name with arguments.
7659compiler=$CC
7660
7661# Save the default compiler, since it gets overwritten when the other
7662# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7663compiler_DEFAULT=$CC
7664
7665# save warnings/boilerplate of simple test code
7666ac_outfile=conftest.$ac_objext
7667echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7668eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7669_lt_compiler_boilerplate=`cat conftest.err`
7670$RM conftest*
7671
7672ac_outfile=conftest.$ac_objext
7673echo "$lt_simple_link_test_code" >conftest.$ac_ext
7674eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7675_lt_linker_boilerplate=`cat conftest.err`
7676$RM -r conftest*
7677
7678
7679## CAVEAT EMPTOR:
7680## There is no encapsulation within the following macros, do not change
7681## the running order or otherwise move them around unless you know exactly
7682## what you are doing...
7683if test -n "$compiler"; then
7684
7685lt_prog_compiler_no_builtin_flag=
7686
7687if test yes = "$GCC"; then
7688  case $cc_basename in
7689  nvcc*)
7690    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7691  *)
7692    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7693  esac
7694
7695  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7696$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7697if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7698  $as_echo_n "(cached) " >&6
7699else
7700  lt_cv_prog_compiler_rtti_exceptions=no
7701   ac_outfile=conftest.$ac_objext
7702   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7703   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
7704   # Insert the option either (1) after the last *FLAGS variable, or
7705   # (2) before a word containing "conftest.", or (3) at the end.
7706   # Note that $ac_compile itself does not contain backslashes and begins
7707   # with a dollar sign (not a hyphen), so the echo should work correctly.
7708   # The option is referenced via a variable to avoid confusing sed.
7709   lt_compile=`echo "$ac_compile" | $SED \
7710   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7711   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7712   -e 's:$: $lt_compiler_flag:'`
7713   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7714   (eval "$lt_compile" 2>conftest.err)
7715   ac_status=$?
7716   cat conftest.err >&5
7717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7718   if (exit $ac_status) && test -s "$ac_outfile"; then
7719     # The compiler can only warn and ignore the option if not recognized
7720     # So say no if there are warnings other than the usual output.
7721     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7722     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7723     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7724       lt_cv_prog_compiler_rtti_exceptions=yes
7725     fi
7726   fi
7727   $RM conftest*
7728
7729fi
7730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7731$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7732
7733if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
7734    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7735else
7736    :
7737fi
7738
7739fi
7740
7741
7742
7743
7744
7745
7746  lt_prog_compiler_wl=
7747lt_prog_compiler_pic=
7748lt_prog_compiler_static=
7749
7750
7751  if test yes = "$GCC"; then
7752    lt_prog_compiler_wl='-Wl,'
7753    lt_prog_compiler_static='-static'
7754
7755    case $host_os in
7756      aix*)
7757      # All AIX code is PIC.
7758      if test ia64 = "$host_cpu"; then
7759	# AIX 5 now supports IA64 processor
7760	lt_prog_compiler_static='-Bstatic'
7761      fi
7762      lt_prog_compiler_pic='-fPIC'
7763      ;;
7764
7765    amigaos*)
7766      case $host_cpu in
7767      powerpc)
7768            # see comment about AmigaOS4 .so support
7769            lt_prog_compiler_pic='-fPIC'
7770        ;;
7771      m68k)
7772            # FIXME: we need at least 68020 code to build shared libraries, but
7773            # adding the '-m68020' flag to GCC prevents building anything better,
7774            # like '-m68040'.
7775            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7776        ;;
7777      esac
7778      ;;
7779
7780    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7781      # PIC is the default for these OSes.
7782      ;;
7783
7784    mingw* | cygwin* | pw32* | os2* | cegcc*)
7785      # This hack is so that the source file can tell whether it is being
7786      # built for inclusion in a dll (and should export symbols for example).
7787      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7788      # (--disable-auto-import) libraries
7789      lt_prog_compiler_pic='-DDLL_EXPORT'
7790      case $host_os in
7791      os2*)
7792	lt_prog_compiler_static='$wl-static'
7793	;;
7794      esac
7795      ;;
7796
7797    darwin* | rhapsody*)
7798      # PIC is the default on this platform
7799      # Common symbols not allowed in MH_DYLIB files
7800      lt_prog_compiler_pic='-fno-common'
7801      ;;
7802
7803    haiku*)
7804      # PIC is the default for Haiku.
7805      # The "-static" flag exists, but is broken.
7806      lt_prog_compiler_static=
7807      ;;
7808
7809    hpux*)
7810      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7811      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7812      # sets the default TLS model and affects inlining.
7813      case $host_cpu in
7814      hppa*64*)
7815	# +Z the default
7816	;;
7817      *)
7818	lt_prog_compiler_pic='-fPIC'
7819	;;
7820      esac
7821      ;;
7822
7823    interix[3-9]*)
7824      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7825      # Instead, we relocate shared libraries at runtime.
7826      ;;
7827
7828    msdosdjgpp*)
7829      # Just because we use GCC doesn't mean we suddenly get shared libraries
7830      # on systems that don't support them.
7831      lt_prog_compiler_can_build_shared=no
7832      enable_shared=no
7833      ;;
7834
7835    *nto* | *qnx*)
7836      # QNX uses GNU C++, but need to define -shared option too, otherwise
7837      # it will coredump.
7838      lt_prog_compiler_pic='-fPIC -shared'
7839      ;;
7840
7841    sysv4*MP*)
7842      if test -d /usr/nec; then
7843	lt_prog_compiler_pic=-Kconform_pic
7844      fi
7845      ;;
7846
7847    *)
7848      lt_prog_compiler_pic='-fPIC'
7849      ;;
7850    esac
7851
7852    case $cc_basename in
7853    nvcc*) # Cuda Compiler Driver 2.2
7854      lt_prog_compiler_wl='-Xlinker '
7855      if test -n "$lt_prog_compiler_pic"; then
7856        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7857      fi
7858      ;;
7859    esac
7860  else
7861    # PORTME Check for flag to pass linker flags through the system compiler.
7862    case $host_os in
7863    aix*)
7864      lt_prog_compiler_wl='-Wl,'
7865      if test ia64 = "$host_cpu"; then
7866	# AIX 5 now supports IA64 processor
7867	lt_prog_compiler_static='-Bstatic'
7868      else
7869	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7870      fi
7871      ;;
7872
7873    darwin* | rhapsody*)
7874      # PIC is the default on this platform
7875      # Common symbols not allowed in MH_DYLIB files
7876      lt_prog_compiler_pic='-fno-common'
7877      case $cc_basename in
7878      nagfor*)
7879        # NAG Fortran compiler
7880        lt_prog_compiler_wl='-Wl,-Wl,,'
7881        lt_prog_compiler_pic='-PIC'
7882        lt_prog_compiler_static='-Bstatic'
7883        ;;
7884      esac
7885      ;;
7886
7887    mingw* | cygwin* | pw32* | os2* | cegcc*)
7888      # This hack is so that the source file can tell whether it is being
7889      # built for inclusion in a dll (and should export symbols for example).
7890      lt_prog_compiler_pic='-DDLL_EXPORT'
7891      case $host_os in
7892      os2*)
7893	lt_prog_compiler_static='$wl-static'
7894	;;
7895      esac
7896      ;;
7897
7898    hpux9* | hpux10* | hpux11*)
7899      lt_prog_compiler_wl='-Wl,'
7900      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7901      # not for PA HP-UX.
7902      case $host_cpu in
7903      hppa*64*|ia64*)
7904	# +Z the default
7905	;;
7906      *)
7907	lt_prog_compiler_pic='+Z'
7908	;;
7909      esac
7910      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7911      lt_prog_compiler_static='$wl-a ${wl}archive'
7912      ;;
7913
7914    irix5* | irix6* | nonstopux*)
7915      lt_prog_compiler_wl='-Wl,'
7916      # PIC (with -KPIC) is the default.
7917      lt_prog_compiler_static='-non_shared'
7918      ;;
7919
7920    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7921      case $cc_basename in
7922      # old Intel for x86_64, which still supported -KPIC.
7923      ecc*)
7924	lt_prog_compiler_wl='-Wl,'
7925	lt_prog_compiler_pic='-KPIC'
7926	lt_prog_compiler_static='-static'
7927        ;;
7928      # icc used to be incompatible with GCC.
7929      # ICC 10 doesn't accept -KPIC any more.
7930      icc* | ifort*)
7931	lt_prog_compiler_wl='-Wl,'
7932	lt_prog_compiler_pic='-fPIC'
7933	lt_prog_compiler_static='-static'
7934        ;;
7935      # Lahey Fortran 8.1.
7936      lf95*)
7937	lt_prog_compiler_wl='-Wl,'
7938	lt_prog_compiler_pic='--shared'
7939	lt_prog_compiler_static='--static'
7940	;;
7941      nagfor*)
7942	# NAG Fortran compiler
7943	lt_prog_compiler_wl='-Wl,-Wl,,'
7944	lt_prog_compiler_pic='-PIC'
7945	lt_prog_compiler_static='-Bstatic'
7946	;;
7947      tcc*)
7948	# Fabrice Bellard et al's Tiny C Compiler
7949	lt_prog_compiler_wl='-Wl,'
7950	lt_prog_compiler_pic='-fPIC'
7951	lt_prog_compiler_static='-static'
7952	;;
7953      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7954        # Portland Group compilers (*not* the Pentium gcc compiler,
7955	# which looks to be a dead project)
7956	lt_prog_compiler_wl='-Wl,'
7957	lt_prog_compiler_pic='-fpic'
7958	lt_prog_compiler_static='-Bstatic'
7959        ;;
7960      ccc*)
7961        lt_prog_compiler_wl='-Wl,'
7962        # All Alpha code is PIC.
7963        lt_prog_compiler_static='-non_shared'
7964        ;;
7965      xl* | bgxl* | bgf* | mpixl*)
7966	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7967	lt_prog_compiler_wl='-Wl,'
7968	lt_prog_compiler_pic='-qpic'
7969	lt_prog_compiler_static='-qstaticlink'
7970	;;
7971      *)
7972	case `$CC -V 2>&1 | sed 5q` in
7973	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
7974	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7975	  lt_prog_compiler_pic='-KPIC'
7976	  lt_prog_compiler_static='-Bstatic'
7977	  lt_prog_compiler_wl=''
7978	  ;;
7979	*Sun\ F* | *Sun*Fortran*)
7980	  lt_prog_compiler_pic='-KPIC'
7981	  lt_prog_compiler_static='-Bstatic'
7982	  lt_prog_compiler_wl='-Qoption ld '
7983	  ;;
7984	*Sun\ C*)
7985	  # Sun C 5.9
7986	  lt_prog_compiler_pic='-KPIC'
7987	  lt_prog_compiler_static='-Bstatic'
7988	  lt_prog_compiler_wl='-Wl,'
7989	  ;;
7990        *Intel*\ [CF]*Compiler*)
7991	  lt_prog_compiler_wl='-Wl,'
7992	  lt_prog_compiler_pic='-fPIC'
7993	  lt_prog_compiler_static='-static'
7994	  ;;
7995	*Portland\ Group*)
7996	  lt_prog_compiler_wl='-Wl,'
7997	  lt_prog_compiler_pic='-fpic'
7998	  lt_prog_compiler_static='-Bstatic'
7999	  ;;
8000	esac
8001	;;
8002      esac
8003      ;;
8004
8005    newsos6)
8006      lt_prog_compiler_pic='-KPIC'
8007      lt_prog_compiler_static='-Bstatic'
8008      ;;
8009
8010    *nto* | *qnx*)
8011      # QNX uses GNU C++, but need to define -shared option too, otherwise
8012      # it will coredump.
8013      lt_prog_compiler_pic='-fPIC -shared'
8014      ;;
8015
8016    osf3* | osf4* | osf5*)
8017      lt_prog_compiler_wl='-Wl,'
8018      # All OSF/1 code is PIC.
8019      lt_prog_compiler_static='-non_shared'
8020      ;;
8021
8022    rdos*)
8023      lt_prog_compiler_static='-non_shared'
8024      ;;
8025
8026    solaris*)
8027      lt_prog_compiler_pic='-KPIC'
8028      lt_prog_compiler_static='-Bstatic'
8029      case $cc_basename in
8030      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8031	lt_prog_compiler_wl='-Qoption ld ';;
8032      *)
8033	lt_prog_compiler_wl='-Wl,';;
8034      esac
8035      ;;
8036
8037    sunos4*)
8038      lt_prog_compiler_wl='-Qoption ld '
8039      lt_prog_compiler_pic='-PIC'
8040      lt_prog_compiler_static='-Bstatic'
8041      ;;
8042
8043    sysv4 | sysv4.2uw2* | sysv4.3*)
8044      lt_prog_compiler_wl='-Wl,'
8045      lt_prog_compiler_pic='-KPIC'
8046      lt_prog_compiler_static='-Bstatic'
8047      ;;
8048
8049    sysv4*MP*)
8050      if test -d /usr/nec; then
8051	lt_prog_compiler_pic='-Kconform_pic'
8052	lt_prog_compiler_static='-Bstatic'
8053      fi
8054      ;;
8055
8056    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8057      lt_prog_compiler_wl='-Wl,'
8058      lt_prog_compiler_pic='-KPIC'
8059      lt_prog_compiler_static='-Bstatic'
8060      ;;
8061
8062    unicos*)
8063      lt_prog_compiler_wl='-Wl,'
8064      lt_prog_compiler_can_build_shared=no
8065      ;;
8066
8067    uts4*)
8068      lt_prog_compiler_pic='-pic'
8069      lt_prog_compiler_static='-Bstatic'
8070      ;;
8071
8072    *)
8073      lt_prog_compiler_can_build_shared=no
8074      ;;
8075    esac
8076  fi
8077
8078case $host_os in
8079  # For platforms that do not support PIC, -DPIC is meaningless:
8080  *djgpp*)
8081    lt_prog_compiler_pic=
8082    ;;
8083  *)
8084    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8085    ;;
8086esac
8087
8088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8089$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8090if ${lt_cv_prog_compiler_pic+:} false; then :
8091  $as_echo_n "(cached) " >&6
8092else
8093  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8094fi
8095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8096$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8097lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8098
8099#
8100# Check to make sure the PIC flag actually works.
8101#
8102if test -n "$lt_prog_compiler_pic"; then
8103  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8104$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8105if ${lt_cv_prog_compiler_pic_works+:} false; then :
8106  $as_echo_n "(cached) " >&6
8107else
8108  lt_cv_prog_compiler_pic_works=no
8109   ac_outfile=conftest.$ac_objext
8110   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8111   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
8112   # Insert the option either (1) after the last *FLAGS variable, or
8113   # (2) before a word containing "conftest.", or (3) at the end.
8114   # Note that $ac_compile itself does not contain backslashes and begins
8115   # with a dollar sign (not a hyphen), so the echo should work correctly.
8116   # The option is referenced via a variable to avoid confusing sed.
8117   lt_compile=`echo "$ac_compile" | $SED \
8118   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8119   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8120   -e 's:$: $lt_compiler_flag:'`
8121   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8122   (eval "$lt_compile" 2>conftest.err)
8123   ac_status=$?
8124   cat conftest.err >&5
8125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126   if (exit $ac_status) && test -s "$ac_outfile"; then
8127     # The compiler can only warn and ignore the option if not recognized
8128     # So say no if there are warnings other than the usual output.
8129     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8130     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8131     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8132       lt_cv_prog_compiler_pic_works=yes
8133     fi
8134   fi
8135   $RM conftest*
8136
8137fi
8138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8139$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8140
8141if test yes = "$lt_cv_prog_compiler_pic_works"; then
8142    case $lt_prog_compiler_pic in
8143     "" | " "*) ;;
8144     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8145     esac
8146else
8147    lt_prog_compiler_pic=
8148     lt_prog_compiler_can_build_shared=no
8149fi
8150
8151fi
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163#
8164# Check to make sure the static flag actually works.
8165#
8166wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8168$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8169if ${lt_cv_prog_compiler_static_works+:} false; then :
8170  $as_echo_n "(cached) " >&6
8171else
8172  lt_cv_prog_compiler_static_works=no
8173   save_LDFLAGS=$LDFLAGS
8174   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8175   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8176   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8177     # The linker can only warn and ignore the option if not recognized
8178     # So say no if there are warnings
8179     if test -s conftest.err; then
8180       # Append any errors to the config.log.
8181       cat conftest.err 1>&5
8182       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8183       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8184       if diff conftest.exp conftest.er2 >/dev/null; then
8185         lt_cv_prog_compiler_static_works=yes
8186       fi
8187     else
8188       lt_cv_prog_compiler_static_works=yes
8189     fi
8190   fi
8191   $RM -r conftest*
8192   LDFLAGS=$save_LDFLAGS
8193
8194fi
8195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8196$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8197
8198if test yes = "$lt_cv_prog_compiler_static_works"; then
8199    :
8200else
8201    lt_prog_compiler_static=
8202fi
8203
8204
8205
8206
8207
8208
8209
8210  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8211$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8212if ${lt_cv_prog_compiler_c_o+:} false; then :
8213  $as_echo_n "(cached) " >&6
8214else
8215  lt_cv_prog_compiler_c_o=no
8216   $RM -r conftest 2>/dev/null
8217   mkdir conftest
8218   cd conftest
8219   mkdir out
8220   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8221
8222   lt_compiler_flag="-o out/conftest2.$ac_objext"
8223   # Insert the option either (1) after the last *FLAGS variable, or
8224   # (2) before a word containing "conftest.", or (3) at the end.
8225   # Note that $ac_compile itself does not contain backslashes and begins
8226   # with a dollar sign (not a hyphen), so the echo should work correctly.
8227   lt_compile=`echo "$ac_compile" | $SED \
8228   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8229   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8230   -e 's:$: $lt_compiler_flag:'`
8231   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8232   (eval "$lt_compile" 2>out/conftest.err)
8233   ac_status=$?
8234   cat out/conftest.err >&5
8235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8237   then
8238     # The compiler can only warn and ignore the option if not recognized
8239     # So say no if there are warnings
8240     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8241     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8242     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8243       lt_cv_prog_compiler_c_o=yes
8244     fi
8245   fi
8246   chmod u+w . 2>&5
8247   $RM conftest*
8248   # SGI C++ compiler will create directory out/ii_files/ for
8249   # template instantiation
8250   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8251   $RM out/* && rmdir out
8252   cd ..
8253   $RM -r conftest
8254   $RM conftest*
8255
8256fi
8257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8258$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8259
8260
8261
8262
8263
8264
8265  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8266$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8267if ${lt_cv_prog_compiler_c_o+:} false; then :
8268  $as_echo_n "(cached) " >&6
8269else
8270  lt_cv_prog_compiler_c_o=no
8271   $RM -r conftest 2>/dev/null
8272   mkdir conftest
8273   cd conftest
8274   mkdir out
8275   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8276
8277   lt_compiler_flag="-o out/conftest2.$ac_objext"
8278   # Insert the option either (1) after the last *FLAGS variable, or
8279   # (2) before a word containing "conftest.", or (3) at the end.
8280   # Note that $ac_compile itself does not contain backslashes and begins
8281   # with a dollar sign (not a hyphen), so the echo should work correctly.
8282   lt_compile=`echo "$ac_compile" | $SED \
8283   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8284   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8285   -e 's:$: $lt_compiler_flag:'`
8286   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8287   (eval "$lt_compile" 2>out/conftest.err)
8288   ac_status=$?
8289   cat out/conftest.err >&5
8290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8292   then
8293     # The compiler can only warn and ignore the option if not recognized
8294     # So say no if there are warnings
8295     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8296     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8297     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8298       lt_cv_prog_compiler_c_o=yes
8299     fi
8300   fi
8301   chmod u+w . 2>&5
8302   $RM conftest*
8303   # SGI C++ compiler will create directory out/ii_files/ for
8304   # template instantiation
8305   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8306   $RM out/* && rmdir out
8307   cd ..
8308   $RM -r conftest
8309   $RM conftest*
8310
8311fi
8312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8313$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8314
8315
8316
8317
8318hard_links=nottested
8319if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8320  # do not overwrite the value of need_locks provided by the user
8321  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8322$as_echo_n "checking if we can lock with hard links... " >&6; }
8323  hard_links=yes
8324  $RM conftest*
8325  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8326  touch conftest.a
8327  ln conftest.a conftest.b 2>&5 || hard_links=no
8328  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8329  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8330$as_echo "$hard_links" >&6; }
8331  if test no = "$hard_links"; then
8332    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8333$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8334    need_locks=warn
8335  fi
8336else
8337  need_locks=no
8338fi
8339
8340
8341
8342
8343
8344
8345  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8346$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8347
8348  runpath_var=
8349  allow_undefined_flag=
8350  always_export_symbols=no
8351  archive_cmds=
8352  archive_expsym_cmds=
8353  compiler_needs_object=no
8354  enable_shared_with_static_runtimes=no
8355  export_dynamic_flag_spec=
8356  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8357  hardcode_automatic=no
8358  hardcode_direct=no
8359  hardcode_direct_absolute=no
8360  hardcode_libdir_flag_spec=
8361  hardcode_libdir_separator=
8362  hardcode_minus_L=no
8363  hardcode_shlibpath_var=unsupported
8364  inherit_rpath=no
8365  link_all_deplibs=unknown
8366  module_cmds=
8367  module_expsym_cmds=
8368  old_archive_from_new_cmds=
8369  old_archive_from_expsyms_cmds=
8370  thread_safe_flag_spec=
8371  whole_archive_flag_spec=
8372  # include_expsyms should be a list of space-separated symbols to be *always*
8373  # included in the symbol list
8374  include_expsyms=
8375  # exclude_expsyms can be an extended regexp of symbols to exclude
8376  # it will be wrapped by ' (' and ')$', so one must not match beginning or
8377  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8378  # as well as any symbol that contains 'd'.
8379  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8380  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8381  # platforms (ab)use it in PIC code, but their linkers get confused if
8382  # the symbol is explicitly referenced.  Since portable code cannot
8383  # rely on this symbol name, it's probably fine to never include it in
8384  # preloaded symbol tables.
8385  # Exclude shared library initialization/finalization symbols.
8386  extract_expsyms_cmds=
8387
8388  case $host_os in
8389  cygwin* | mingw* | pw32* | cegcc*)
8390    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8391    # When not using gcc, we currently assume that we are using
8392    # Microsoft Visual C++.
8393    if test yes != "$GCC"; then
8394      with_gnu_ld=no
8395    fi
8396    ;;
8397  interix*)
8398    # we just hope/assume this is gcc and not c89 (= MSVC++)
8399    with_gnu_ld=yes
8400    ;;
8401  openbsd* | bitrig*)
8402    with_gnu_ld=no
8403    ;;
8404  linux* | k*bsd*-gnu | gnu*)
8405    link_all_deplibs=no
8406    ;;
8407  esac
8408
8409  ld_shlibs=yes
8410
8411  # On some targets, GNU ld is compatible enough with the native linker
8412  # that we're better off using the native interface for both.
8413  lt_use_gnu_ld_interface=no
8414  if test yes = "$with_gnu_ld"; then
8415    case $host_os in
8416      aix*)
8417	# The AIX port of GNU ld has always aspired to compatibility
8418	# with the native linker.  However, as the warning in the GNU ld
8419	# block says, versions before 2.19.5* couldn't really create working
8420	# shared libraries, regardless of the interface used.
8421	case `$LD -v 2>&1` in
8422	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8423	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8424	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8425	  *)
8426	    lt_use_gnu_ld_interface=yes
8427	    ;;
8428	esac
8429	;;
8430      *)
8431	lt_use_gnu_ld_interface=yes
8432	;;
8433    esac
8434  fi
8435
8436  if test yes = "$lt_use_gnu_ld_interface"; then
8437    # If archive_cmds runs LD, not CC, wlarc should be empty
8438    wlarc='$wl'
8439
8440    # Set some defaults for GNU ld with shared library support. These
8441    # are reset later if shared libraries are not supported. Putting them
8442    # here allows them to be overridden if necessary.
8443    runpath_var=LD_RUN_PATH
8444    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8445    export_dynamic_flag_spec='$wl--export-dynamic'
8446    # ancient GNU ld didn't support --whole-archive et. al.
8447    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8448      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8449    else
8450      whole_archive_flag_spec=
8451    fi
8452    supports_anon_versioning=no
8453    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
8454      *GNU\ gold*) supports_anon_versioning=yes ;;
8455      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8456      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8457      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8458      *\ 2.11.*) ;; # other 2.11 versions
8459      *) supports_anon_versioning=yes ;;
8460    esac
8461
8462    # See if GNU ld supports shared libraries.
8463    case $host_os in
8464    aix[3-9]*)
8465      # On AIX/PPC, the GNU linker is very broken
8466      if test ia64 != "$host_cpu"; then
8467	ld_shlibs=no
8468	cat <<_LT_EOF 1>&2
8469
8470*** Warning: the GNU linker, at least up to release 2.19, is reported
8471*** to be unable to reliably create shared libraries on AIX.
8472*** Therefore, libtool is disabling shared libraries support.  If you
8473*** really care for shared libraries, you may want to install binutils
8474*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8475*** You will then need to restart the configuration process.
8476
8477_LT_EOF
8478      fi
8479      ;;
8480
8481    amigaos*)
8482      case $host_cpu in
8483      powerpc)
8484            # see comment about AmigaOS4 .so support
8485            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8486            archive_expsym_cmds=''
8487        ;;
8488      m68k)
8489            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)'
8490            hardcode_libdir_flag_spec='-L$libdir'
8491            hardcode_minus_L=yes
8492        ;;
8493      esac
8494      ;;
8495
8496    beos*)
8497      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8498	allow_undefined_flag=unsupported
8499	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8500	# support --undefined.  This deserves some investigation.  FIXME
8501	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8502      else
8503	ld_shlibs=no
8504      fi
8505      ;;
8506
8507    cygwin* | mingw* | pw32* | cegcc*)
8508      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8509      # as there is no search path for DLLs.
8510      hardcode_libdir_flag_spec='-L$libdir'
8511      export_dynamic_flag_spec='$wl--export-all-symbols'
8512      allow_undefined_flag=unsupported
8513      always_export_symbols=no
8514      enable_shared_with_static_runtimes=yes
8515      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'
8516      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8517
8518      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8519        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8520	# If the export-symbols file already is a .def file, use it as
8521	# is; otherwise, prepend EXPORTS...
8522	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
8523          cp $export_symbols $output_objdir/$soname.def;
8524        else
8525          echo EXPORTS > $output_objdir/$soname.def;
8526          cat $export_symbols >> $output_objdir/$soname.def;
8527        fi~
8528        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8529      else
8530	ld_shlibs=no
8531      fi
8532      ;;
8533
8534    haiku*)
8535      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8536      link_all_deplibs=yes
8537      ;;
8538
8539    os2*)
8540      hardcode_libdir_flag_spec='-L$libdir'
8541      hardcode_minus_L=yes
8542      allow_undefined_flag=unsupported
8543      shrext_cmds=.dll
8544      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8545	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8546	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8547	$ECHO EXPORTS >> $output_objdir/$libname.def~
8548	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
8549	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8550	emximp -o $lib $output_objdir/$libname.def'
8551      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8552	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8553	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8554	$ECHO EXPORTS >> $output_objdir/$libname.def~
8555	prefix_cmds="$SED"~
8556	if test EXPORTS = "`$SED 1q $export_symbols`"; then
8557	  prefix_cmds="$prefix_cmds -e 1d";
8558	fi~
8559	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
8560	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
8561	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8562	emximp -o $lib $output_objdir/$libname.def'
8563      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
8564      enable_shared_with_static_runtimes=yes
8565      ;;
8566
8567    interix[3-9]*)
8568      hardcode_direct=no
8569      hardcode_shlibpath_var=no
8570      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
8571      export_dynamic_flag_spec='$wl-E'
8572      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8573      # Instead, shared libraries are loaded at an image base (0x10000000 by
8574      # default) and relocated if they conflict, which is a slow very memory
8575      # consuming and fragmenting process.  To avoid this, we pick a random,
8576      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8577      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8578      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8579      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'
8580      ;;
8581
8582    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8583      tmp_diet=no
8584      if test linux-dietlibc = "$host_os"; then
8585	case $cc_basename in
8586	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8587	esac
8588      fi
8589      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8590	 && test no = "$tmp_diet"
8591      then
8592	tmp_addflag=' $pic_flag'
8593	tmp_sharedflag='-shared'
8594	case $cc_basename,$host_cpu in
8595        pgcc*)				# Portland Group C compiler
8596	  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'
8597	  tmp_addflag=' $pic_flag'
8598	  ;;
8599	pgf77* | pgf90* | pgf95* | pgfortran*)
8600					# Portland Group f77 and f90 compilers
8601	  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'
8602	  tmp_addflag=' $pic_flag -Mnomain' ;;
8603	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8604	  tmp_addflag=' -i_dynamic' ;;
8605	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8606	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8607	ifc* | ifort*)			# Intel Fortran compiler
8608	  tmp_addflag=' -nofor_main' ;;
8609	lf95*)				# Lahey Fortran 8.1
8610	  whole_archive_flag_spec=
8611	  tmp_sharedflag='--shared' ;;
8612        nagfor*)                        # NAGFOR 5.3
8613          tmp_sharedflag='-Wl,-shared' ;;
8614	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8615	  tmp_sharedflag='-qmkshrobj'
8616	  tmp_addflag= ;;
8617	nvcc*)	# Cuda Compiler Driver 2.2
8618	  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'
8619	  compiler_needs_object=yes
8620	  ;;
8621	esac
8622	case `$CC -V 2>&1 | sed 5q` in
8623	*Sun\ C*)			# Sun C 5.9
8624	  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'
8625	  compiler_needs_object=yes
8626	  tmp_sharedflag='-G' ;;
8627	*Sun\ F*)			# Sun Fortran 8.3
8628	  tmp_sharedflag='-G' ;;
8629	esac
8630	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8631
8632        if test yes = "$supports_anon_versioning"; then
8633          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8634            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8635            echo "local: *; };" >> $output_objdir/$libname.ver~
8636            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
8637        fi
8638
8639	case $cc_basename in
8640	tcc*)
8641	  export_dynamic_flag_spec='-rdynamic'
8642	  ;;
8643	xlf* | bgf* | bgxlf* | mpixlf*)
8644	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8645	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8646	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8647	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8648	  if test yes = "$supports_anon_versioning"; then
8649	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8650              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8651              echo "local: *; };" >> $output_objdir/$libname.ver~
8652              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8653	  fi
8654	  ;;
8655	esac
8656      else
8657        ld_shlibs=no
8658      fi
8659      ;;
8660
8661    netbsd* | netbsdelf*-gnu)
8662      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8663	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8664	wlarc=
8665      else
8666	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8667	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8668      fi
8669      ;;
8670
8671    solaris*)
8672      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8673	ld_shlibs=no
8674	cat <<_LT_EOF 1>&2
8675
8676*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8677*** create shared libraries on Solaris systems.  Therefore, libtool
8678*** is disabling shared libraries support.  We urge you to upgrade GNU
8679*** binutils to release 2.9.1 or newer.  Another option is to modify
8680*** your PATH or compiler configuration so that the native linker is
8681*** used, and then restart.
8682
8683_LT_EOF
8684      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8685	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8686	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8687      else
8688	ld_shlibs=no
8689      fi
8690      ;;
8691
8692    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8693      case `$LD -v 2>&1` in
8694        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8695	ld_shlibs=no
8696	cat <<_LT_EOF 1>&2
8697
8698*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
8699*** reliably create shared libraries on SCO systems.  Therefore, libtool
8700*** is disabling shared libraries support.  We urge you to upgrade GNU
8701*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8702*** your PATH or compiler configuration so that the native linker is
8703*** used, and then restart.
8704
8705_LT_EOF
8706	;;
8707	*)
8708	  # For security reasons, it is highly recommended that you always
8709	  # use absolute paths for naming shared libraries, and exclude the
8710	  # DT_RUNPATH tag from executables and libraries.  But doing so
8711	  # requires that you compile everything twice, which is a pain.
8712	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8713	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8714	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8715	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8716	  else
8717	    ld_shlibs=no
8718	  fi
8719	;;
8720      esac
8721      ;;
8722
8723    sunos4*)
8724      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8725      wlarc=
8726      hardcode_direct=yes
8727      hardcode_shlibpath_var=no
8728      ;;
8729
8730    *)
8731      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8732	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8733	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8734      else
8735	ld_shlibs=no
8736      fi
8737      ;;
8738    esac
8739
8740    if test no = "$ld_shlibs"; then
8741      runpath_var=
8742      hardcode_libdir_flag_spec=
8743      export_dynamic_flag_spec=
8744      whole_archive_flag_spec=
8745    fi
8746  else
8747    # PORTME fill in a description of your system's linker (not GNU ld)
8748    case $host_os in
8749    aix3*)
8750      allow_undefined_flag=unsupported
8751      always_export_symbols=yes
8752      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'
8753      # Note: this linker hardcodes the directories in LIBPATH if there
8754      # are no directories specified by -L.
8755      hardcode_minus_L=yes
8756      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
8757	# Neither direct hardcoding nor static linking is supported with a
8758	# broken collect2.
8759	hardcode_direct=unsupported
8760      fi
8761      ;;
8762
8763    aix[4-9]*)
8764      if test ia64 = "$host_cpu"; then
8765	# On IA64, the linker does run time linking by default, so we don't
8766	# have to do anything special.
8767	aix_use_runtimelinking=no
8768	exp_sym_flag='-Bexport'
8769	no_entry_flag=
8770      else
8771	# If we're using GNU nm, then we don't want the "-C" option.
8772	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
8773	# Without the "-l" option, or with the "-B" option, AIX nm treats
8774	# weak defined symbols like other global defined symbols, whereas
8775	# GNU nm marks them as "W".
8776	# While the 'weak' keyword is ignored in the Export File, we need
8777	# it in the Import File for the 'aix-soname' feature, so we have
8778	# to replace the "-B" option with "-P" for AIX nm.
8779	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8780	  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'
8781	else
8782	  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'
8783	fi
8784	aix_use_runtimelinking=no
8785
8786	# Test if we are trying to use run time linking or normal
8787	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8788	# have runtime linking enabled, and use it for executables.
8789	# For shared libraries, we enable/disable runtime linking
8790	# depending on the kind of the shared library created -
8791	# when "with_aix_soname,aix_use_runtimelinking" is:
8792	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
8793	# "aix,yes"  lib.so          shared, rtl:yes, for executables
8794	#            lib.a           static archive
8795	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
8796	#            lib.a(lib.so.V) shared, rtl:no,  for executables
8797	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
8798	#            lib.a(lib.so.V) shared, rtl:no
8799	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
8800	#            lib.a           static archive
8801	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8802	  for ld_flag in $LDFLAGS; do
8803	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
8804	    aix_use_runtimelinking=yes
8805	    break
8806	  fi
8807	  done
8808	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
8809	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
8810	    # so we don't have lib.a shared libs to link our executables.
8811	    # We have to force runtime linking in this case.
8812	    aix_use_runtimelinking=yes
8813	    LDFLAGS="$LDFLAGS -Wl,-brtl"
8814	  fi
8815	  ;;
8816	esac
8817
8818	exp_sym_flag='-bexport'
8819	no_entry_flag='-bnoentry'
8820      fi
8821
8822      # When large executables or shared objects are built, AIX ld can
8823      # have problems creating the table of contents.  If linking a library
8824      # or program results in "error TOC overflow" add -mminimal-toc to
8825      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8826      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8827
8828      archive_cmds=''
8829      hardcode_direct=yes
8830      hardcode_direct_absolute=yes
8831      hardcode_libdir_separator=':'
8832      link_all_deplibs=yes
8833      file_list_spec='$wl-f,'
8834      case $with_aix_soname,$aix_use_runtimelinking in
8835      aix,*) ;; # traditional, no import file
8836      svr4,* | *,yes) # use import file
8837	# The Import File defines what to hardcode.
8838	hardcode_direct=no
8839	hardcode_direct_absolute=no
8840	;;
8841      esac
8842
8843      if test yes = "$GCC"; then
8844	case $host_os in aix4.[012]|aix4.[012].*)
8845	# We only want to do this on AIX 4.2 and lower, the check
8846	# below for broken collect2 doesn't work under 4.3+
8847	  collect2name=`$CC -print-prog-name=collect2`
8848	  if test -f "$collect2name" &&
8849	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8850	  then
8851	  # We have reworked collect2
8852	  :
8853	  else
8854	  # We have old collect2
8855	  hardcode_direct=unsupported
8856	  # It fails to find uninstalled libraries when the uninstalled
8857	  # path is not listed in the libpath.  Setting hardcode_minus_L
8858	  # to unsupported forces relinking
8859	  hardcode_minus_L=yes
8860	  hardcode_libdir_flag_spec='-L$libdir'
8861	  hardcode_libdir_separator=
8862	  fi
8863	  ;;
8864	esac
8865	shared_flag='-shared'
8866	if test yes = "$aix_use_runtimelinking"; then
8867	  shared_flag="$shared_flag "'$wl-G'
8868	fi
8869	# Need to ensure runtime linking is disabled for the traditional
8870	# shared library, or the linker may eventually find shared libraries
8871	# /with/ Import File - we do not want to mix them.
8872	shared_flag_aix='-shared'
8873	shared_flag_svr4='-shared $wl-G'
8874      else
8875	# not using gcc
8876	if test ia64 = "$host_cpu"; then
8877	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8878	# chokes on -Wl,-G. The following line is correct:
8879	  shared_flag='-G'
8880	else
8881	  if test yes = "$aix_use_runtimelinking"; then
8882	    shared_flag='$wl-G'
8883	  else
8884	    shared_flag='$wl-bM:SRE'
8885	  fi
8886	  shared_flag_aix='$wl-bM:SRE'
8887	  shared_flag_svr4='$wl-G'
8888	fi
8889      fi
8890
8891      export_dynamic_flag_spec='$wl-bexpall'
8892      # It seems that -bexpall does not export symbols beginning with
8893      # underscore (_), so it is better to generate a list of symbols to export.
8894      always_export_symbols=yes
8895      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
8896	# Warning - without using the other runtime loading flags (-brtl),
8897	# -berok will link without error, but may produce a broken library.
8898	allow_undefined_flag='-berok'
8899        # Determine the default libpath from the value encoded in an
8900        # empty executable.
8901        if test set = "${lt_cv_aix_libpath+set}"; then
8902  aix_libpath=$lt_cv_aix_libpath
8903else
8904  if ${lt_cv_aix_libpath_+:} false; then :
8905  $as_echo_n "(cached) " >&6
8906else
8907  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8908/* end confdefs.h.  */
8909
8910int
8911main ()
8912{
8913
8914  ;
8915  return 0;
8916}
8917_ACEOF
8918if ac_fn_c_try_link "$LINENO"; then :
8919
8920  lt_aix_libpath_sed='
8921      /Import File Strings/,/^$/ {
8922	  /^0/ {
8923	      s/^0  *\([^ ]*\) *$/\1/
8924	      p
8925	  }
8926      }'
8927  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8928  # Check for a 64-bit object if we didn't find anything.
8929  if test -z "$lt_cv_aix_libpath_"; then
8930    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8931  fi
8932fi
8933rm -f core conftest.err conftest.$ac_objext \
8934    conftest$ac_exeext conftest.$ac_ext
8935  if test -z "$lt_cv_aix_libpath_"; then
8936    lt_cv_aix_libpath_=/usr/lib:/lib
8937  fi
8938
8939fi
8940
8941  aix_libpath=$lt_cv_aix_libpath_
8942fi
8943
8944        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
8945        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
8946      else
8947	if test ia64 = "$host_cpu"; then
8948	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
8949	  allow_undefined_flag="-z nodefs"
8950	  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"
8951	else
8952	 # Determine the default libpath from the value encoded in an
8953	 # empty executable.
8954	 if test set = "${lt_cv_aix_libpath+set}"; then
8955  aix_libpath=$lt_cv_aix_libpath
8956else
8957  if ${lt_cv_aix_libpath_+:} false; then :
8958  $as_echo_n "(cached) " >&6
8959else
8960  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8961/* end confdefs.h.  */
8962
8963int
8964main ()
8965{
8966
8967  ;
8968  return 0;
8969}
8970_ACEOF
8971if ac_fn_c_try_link "$LINENO"; then :
8972
8973  lt_aix_libpath_sed='
8974      /Import File Strings/,/^$/ {
8975	  /^0/ {
8976	      s/^0  *\([^ ]*\) *$/\1/
8977	      p
8978	  }
8979      }'
8980  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8981  # Check for a 64-bit object if we didn't find anything.
8982  if test -z "$lt_cv_aix_libpath_"; then
8983    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8984  fi
8985fi
8986rm -f core conftest.err conftest.$ac_objext \
8987    conftest$ac_exeext conftest.$ac_ext
8988  if test -z "$lt_cv_aix_libpath_"; then
8989    lt_cv_aix_libpath_=/usr/lib:/lib
8990  fi
8991
8992fi
8993
8994  aix_libpath=$lt_cv_aix_libpath_
8995fi
8996
8997	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
8998	  # Warning - without using the other run time loading flags,
8999	  # -berok will link without error, but may produce a broken library.
9000	  no_undefined_flag=' $wl-bernotok'
9001	  allow_undefined_flag=' $wl-berok'
9002	  if test yes = "$with_gnu_ld"; then
9003	    # We only use this code for GNU lds that support --whole-archive.
9004	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9005	  else
9006	    # Exported symbols can be pulled into shared objects from archives
9007	    whole_archive_flag_spec='$convenience'
9008	  fi
9009	  archive_cmds_need_lc=yes
9010	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9011	  # -brtl affects multiple linker settings, -berok does not and is overridden later
9012	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9013	  if test svr4 != "$with_aix_soname"; then
9014	    # This is similar to how AIX traditionally builds its shared libraries.
9015	    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'
9016	  fi
9017	  if test aix != "$with_aix_soname"; then
9018	    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'
9019	  else
9020	    # used by -dlpreopen to get the symbols
9021	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9022	  fi
9023	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9024	fi
9025      fi
9026      ;;
9027
9028    amigaos*)
9029      case $host_cpu in
9030      powerpc)
9031            # see comment about AmigaOS4 .so support
9032            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9033            archive_expsym_cmds=''
9034        ;;
9035      m68k)
9036            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)'
9037            hardcode_libdir_flag_spec='-L$libdir'
9038            hardcode_minus_L=yes
9039        ;;
9040      esac
9041      ;;
9042
9043    bsdi[45]*)
9044      export_dynamic_flag_spec=-rdynamic
9045      ;;
9046
9047    cygwin* | mingw* | pw32* | cegcc*)
9048      # When not using gcc, we currently assume that we are using
9049      # Microsoft Visual C++.
9050      # hardcode_libdir_flag_spec is actually meaningless, as there is
9051      # no search path for DLLs.
9052      case $cc_basename in
9053      cl*)
9054	# Native MSVC
9055	hardcode_libdir_flag_spec=' '
9056	allow_undefined_flag=unsupported
9057	always_export_symbols=yes
9058	file_list_spec='@'
9059	# Tell ltmain to make .lib files, not .a files.
9060	libext=lib
9061	# Tell ltmain to make .dll files, not .so files.
9062	shrext_cmds=.dll
9063	# FIXME: Setting linknames here is a bad hack.
9064	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9065	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9066            cp "$export_symbols" "$output_objdir/$soname.def";
9067            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9068          else
9069            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9070          fi~
9071          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9072          linknames='
9073	# The linker will not automatically build a static lib if we build a DLL.
9074	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9075	enable_shared_with_static_runtimes=yes
9076	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9077	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9078	# Don't use ranlib
9079	old_postinstall_cmds='chmod 644 $oldlib'
9080	postlink_cmds='lt_outputfile="@OUTPUT@"~
9081          lt_tool_outputfile="@TOOL_OUTPUT@"~
9082          case $lt_outputfile in
9083            *.exe|*.EXE) ;;
9084            *)
9085              lt_outputfile=$lt_outputfile.exe
9086              lt_tool_outputfile=$lt_tool_outputfile.exe
9087              ;;
9088          esac~
9089          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9090            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9091            $RM "$lt_outputfile.manifest";
9092          fi'
9093	;;
9094      *)
9095	# Assume MSVC wrapper
9096	hardcode_libdir_flag_spec=' '
9097	allow_undefined_flag=unsupported
9098	# Tell ltmain to make .lib files, not .a files.
9099	libext=lib
9100	# Tell ltmain to make .dll files, not .so files.
9101	shrext_cmds=.dll
9102	# FIXME: Setting linknames here is a bad hack.
9103	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9104	# The linker will automatically build a .lib file if we build a DLL.
9105	old_archive_from_new_cmds='true'
9106	# FIXME: Should let the user specify the lib program.
9107	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9108	enable_shared_with_static_runtimes=yes
9109	;;
9110      esac
9111      ;;
9112
9113    darwin* | rhapsody*)
9114
9115
9116  archive_cmds_need_lc=no
9117  hardcode_direct=no
9118  hardcode_automatic=yes
9119  hardcode_shlibpath_var=unsupported
9120  if test yes = "$lt_cv_ld_force_load"; then
9121    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\"`'
9122
9123  else
9124    whole_archive_flag_spec=''
9125  fi
9126  link_all_deplibs=yes
9127  allow_undefined_flag=$_lt_dar_allow_undefined
9128  case $cc_basename in
9129     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9130     *) _lt_dar_can_shared=$GCC ;;
9131  esac
9132  if test yes = "$_lt_dar_can_shared"; then
9133    output_verbose_link_cmd=func_echo_all
9134    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9135    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9136    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"
9137    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"
9138
9139  else
9140  ld_shlibs=no
9141  fi
9142
9143      ;;
9144
9145    dgux*)
9146      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9147      hardcode_libdir_flag_spec='-L$libdir'
9148      hardcode_shlibpath_var=no
9149      ;;
9150
9151    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9152    # support.  Future versions do this automatically, but an explicit c++rt0.o
9153    # does not break anything, and helps significantly (at the cost of a little
9154    # extra space).
9155    freebsd2.2*)
9156      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9157      hardcode_libdir_flag_spec='-R$libdir'
9158      hardcode_direct=yes
9159      hardcode_shlibpath_var=no
9160      ;;
9161
9162    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9163    freebsd2.*)
9164      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9165      hardcode_direct=yes
9166      hardcode_minus_L=yes
9167      hardcode_shlibpath_var=no
9168      ;;
9169
9170    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9171    freebsd* | dragonfly*)
9172      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9173      hardcode_libdir_flag_spec='-R$libdir'
9174      hardcode_direct=yes
9175      hardcode_shlibpath_var=no
9176      ;;
9177
9178    hpux9*)
9179      if test yes = "$GCC"; then
9180	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'
9181      else
9182	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'
9183      fi
9184      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9185      hardcode_libdir_separator=:
9186      hardcode_direct=yes
9187
9188      # hardcode_minus_L: Not really in the search PATH,
9189      # but as the default location of the library.
9190      hardcode_minus_L=yes
9191      export_dynamic_flag_spec='$wl-E'
9192      ;;
9193
9194    hpux10*)
9195      if test yes,no = "$GCC,$with_gnu_ld"; then
9196	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9197      else
9198	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9199      fi
9200      if test no = "$with_gnu_ld"; then
9201	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9202	hardcode_libdir_separator=:
9203	hardcode_direct=yes
9204	hardcode_direct_absolute=yes
9205	export_dynamic_flag_spec='$wl-E'
9206	# hardcode_minus_L: Not really in the search PATH,
9207	# but as the default location of the library.
9208	hardcode_minus_L=yes
9209      fi
9210      ;;
9211
9212    hpux11*)
9213      if test yes,no = "$GCC,$with_gnu_ld"; then
9214	case $host_cpu in
9215	hppa*64*)
9216	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9217	  ;;
9218	ia64*)
9219	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9220	  ;;
9221	*)
9222	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9223	  ;;
9224	esac
9225      else
9226	case $host_cpu in
9227	hppa*64*)
9228	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9229	  ;;
9230	ia64*)
9231	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9232	  ;;
9233	*)
9234
9235	  # Older versions of the 11.00 compiler do not understand -b yet
9236	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9237	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9238$as_echo_n "checking if $CC understands -b... " >&6; }
9239if ${lt_cv_prog_compiler__b+:} false; then :
9240  $as_echo_n "(cached) " >&6
9241else
9242  lt_cv_prog_compiler__b=no
9243   save_LDFLAGS=$LDFLAGS
9244   LDFLAGS="$LDFLAGS -b"
9245   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9246   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9247     # The linker can only warn and ignore the option if not recognized
9248     # So say no if there are warnings
9249     if test -s conftest.err; then
9250       # Append any errors to the config.log.
9251       cat conftest.err 1>&5
9252       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9253       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9254       if diff conftest.exp conftest.er2 >/dev/null; then
9255         lt_cv_prog_compiler__b=yes
9256       fi
9257     else
9258       lt_cv_prog_compiler__b=yes
9259     fi
9260   fi
9261   $RM -r conftest*
9262   LDFLAGS=$save_LDFLAGS
9263
9264fi
9265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9266$as_echo "$lt_cv_prog_compiler__b" >&6; }
9267
9268if test yes = "$lt_cv_prog_compiler__b"; then
9269    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9270else
9271    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9272fi
9273
9274	  ;;
9275	esac
9276      fi
9277      if test no = "$with_gnu_ld"; then
9278	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9279	hardcode_libdir_separator=:
9280
9281	case $host_cpu in
9282	hppa*64*|ia64*)
9283	  hardcode_direct=no
9284	  hardcode_shlibpath_var=no
9285	  ;;
9286	*)
9287	  hardcode_direct=yes
9288	  hardcode_direct_absolute=yes
9289	  export_dynamic_flag_spec='$wl-E'
9290
9291	  # hardcode_minus_L: Not really in the search PATH,
9292	  # but as the default location of the library.
9293	  hardcode_minus_L=yes
9294	  ;;
9295	esac
9296      fi
9297      ;;
9298
9299    irix5* | irix6* | nonstopux*)
9300      if test yes = "$GCC"; then
9301	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'
9302	# Try to use the -exported_symbol ld option, if it does not
9303	# work, assume that -exports_file does not work either and
9304	# implicitly export all symbols.
9305	# This should be the same for all languages, so no per-tag cache variable.
9306	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9307$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9308if ${lt_cv_irix_exported_symbol+:} false; then :
9309  $as_echo_n "(cached) " >&6
9310else
9311  save_LDFLAGS=$LDFLAGS
9312	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9313	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9314/* end confdefs.h.  */
9315int foo (void) { return 0; }
9316_ACEOF
9317if ac_fn_c_try_link "$LINENO"; then :
9318  lt_cv_irix_exported_symbol=yes
9319else
9320  lt_cv_irix_exported_symbol=no
9321fi
9322rm -f core conftest.err conftest.$ac_objext \
9323    conftest$ac_exeext conftest.$ac_ext
9324           LDFLAGS=$save_LDFLAGS
9325fi
9326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9327$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9328	if test yes = "$lt_cv_irix_exported_symbol"; then
9329          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'
9330	fi
9331	link_all_deplibs=no
9332      else
9333	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'
9334	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'
9335      fi
9336      archive_cmds_need_lc='no'
9337      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9338      hardcode_libdir_separator=:
9339      inherit_rpath=yes
9340      link_all_deplibs=yes
9341      ;;
9342
9343    linux*)
9344      case $cc_basename in
9345      tcc*)
9346	# Fabrice Bellard et al's Tiny C Compiler
9347	ld_shlibs=yes
9348	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9349	;;
9350      esac
9351      ;;
9352
9353    netbsd* | netbsdelf*-gnu)
9354      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9355	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9356      else
9357	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9358      fi
9359      hardcode_libdir_flag_spec='-R$libdir'
9360      hardcode_direct=yes
9361      hardcode_shlibpath_var=no
9362      ;;
9363
9364    newsos6)
9365      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9366      hardcode_direct=yes
9367      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9368      hardcode_libdir_separator=:
9369      hardcode_shlibpath_var=no
9370      ;;
9371
9372    *nto* | *qnx*)
9373      ;;
9374
9375    openbsd* | bitrig*)
9376      if test -f /usr/libexec/ld.so; then
9377	hardcode_direct=yes
9378	hardcode_shlibpath_var=no
9379	hardcode_direct_absolute=yes
9380	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9381	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9382	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9383	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9384	  export_dynamic_flag_spec='$wl-E'
9385	else
9386	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9387	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9388	fi
9389      else
9390	ld_shlibs=no
9391      fi
9392      ;;
9393
9394    os2*)
9395      hardcode_libdir_flag_spec='-L$libdir'
9396      hardcode_minus_L=yes
9397      allow_undefined_flag=unsupported
9398      shrext_cmds=.dll
9399      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9400	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9401	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9402	$ECHO EXPORTS >> $output_objdir/$libname.def~
9403	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9404	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9405	emximp -o $lib $output_objdir/$libname.def'
9406      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9407	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9408	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9409	$ECHO EXPORTS >> $output_objdir/$libname.def~
9410	prefix_cmds="$SED"~
9411	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9412	  prefix_cmds="$prefix_cmds -e 1d";
9413	fi~
9414	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9415	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9416	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9417	emximp -o $lib $output_objdir/$libname.def'
9418      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9419      enable_shared_with_static_runtimes=yes
9420      ;;
9421
9422    osf3*)
9423      if test yes = "$GCC"; then
9424	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9425	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'
9426      else
9427	allow_undefined_flag=' -expect_unresolved \*'
9428	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'
9429      fi
9430      archive_cmds_need_lc='no'
9431      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9432      hardcode_libdir_separator=:
9433      ;;
9434
9435    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9436      if test yes = "$GCC"; then
9437	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9438	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'
9439	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9440      else
9441	allow_undefined_flag=' -expect_unresolved \*'
9442	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'
9443	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~
9444          $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'
9445
9446	# Both c and cxx compiler support -rpath directly
9447	hardcode_libdir_flag_spec='-rpath $libdir'
9448      fi
9449      archive_cmds_need_lc='no'
9450      hardcode_libdir_separator=:
9451      ;;
9452
9453    solaris*)
9454      no_undefined_flag=' -z defs'
9455      if test yes = "$GCC"; then
9456	wlarc='$wl'
9457	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9458	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9459          $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'
9460      else
9461	case `$CC -V 2>&1` in
9462	*"Compilers 5.0"*)
9463	  wlarc=''
9464	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
9465	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9466            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9467	  ;;
9468	*)
9469	  wlarc='$wl'
9470	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9471	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9472            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9473	  ;;
9474	esac
9475      fi
9476      hardcode_libdir_flag_spec='-R$libdir'
9477      hardcode_shlibpath_var=no
9478      case $host_os in
9479      solaris2.[0-5] | solaris2.[0-5].*) ;;
9480      *)
9481	# The compiler driver will combine and reorder linker options,
9482	# but understands '-z linker_flag'.  GCC discards it without '$wl',
9483	# but is careful enough not to reorder.
9484	# Supported since Solaris 2.6 (maybe 2.5.1?)
9485	if test yes = "$GCC"; then
9486	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
9487	else
9488	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9489	fi
9490	;;
9491      esac
9492      link_all_deplibs=yes
9493      ;;
9494
9495    sunos4*)
9496      if test sequent = "$host_vendor"; then
9497	# Use $CC to link under sequent, because it throws in some extra .o
9498	# files that make .init and .fini sections work.
9499	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9500      else
9501	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9502      fi
9503      hardcode_libdir_flag_spec='-L$libdir'
9504      hardcode_direct=yes
9505      hardcode_minus_L=yes
9506      hardcode_shlibpath_var=no
9507      ;;
9508
9509    sysv4)
9510      case $host_vendor in
9511	sni)
9512	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9513	  hardcode_direct=yes # is this really true???
9514	;;
9515	siemens)
9516	  ## LD is ld it makes a PLAMLIB
9517	  ## CC just makes a GrossModule.
9518	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9519	  reload_cmds='$CC -r -o $output$reload_objs'
9520	  hardcode_direct=no
9521        ;;
9522	motorola)
9523	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9524	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9525	;;
9526      esac
9527      runpath_var='LD_RUN_PATH'
9528      hardcode_shlibpath_var=no
9529      ;;
9530
9531    sysv4.3*)
9532      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9533      hardcode_shlibpath_var=no
9534      export_dynamic_flag_spec='-Bexport'
9535      ;;
9536
9537    sysv4*MP*)
9538      if test -d /usr/nec; then
9539	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9540	hardcode_shlibpath_var=no
9541	runpath_var=LD_RUN_PATH
9542	hardcode_runpath_var=yes
9543	ld_shlibs=yes
9544      fi
9545      ;;
9546
9547    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9548      no_undefined_flag='$wl-z,text'
9549      archive_cmds_need_lc=no
9550      hardcode_shlibpath_var=no
9551      runpath_var='LD_RUN_PATH'
9552
9553      if test yes = "$GCC"; then
9554	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9555	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9556      else
9557	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9558	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9559      fi
9560      ;;
9561
9562    sysv5* | sco3.2v5* | sco5v6*)
9563      # Note: We CANNOT use -z defs as we might desire, because we do not
9564      # link with -lc, and that would cause any symbols used from libc to
9565      # always be unresolved, which means just about no library would
9566      # ever link correctly.  If we're not using GNU ld we use -z text
9567      # though, which does catch some bad symbols but isn't as heavy-handed
9568      # as -z defs.
9569      no_undefined_flag='$wl-z,text'
9570      allow_undefined_flag='$wl-z,nodefs'
9571      archive_cmds_need_lc=no
9572      hardcode_shlibpath_var=no
9573      hardcode_libdir_flag_spec='$wl-R,$libdir'
9574      hardcode_libdir_separator=':'
9575      link_all_deplibs=yes
9576      export_dynamic_flag_spec='$wl-Bexport'
9577      runpath_var='LD_RUN_PATH'
9578
9579      if test yes = "$GCC"; then
9580	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9581	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9582      else
9583	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9584	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9585      fi
9586      ;;
9587
9588    uts4*)
9589      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9590      hardcode_libdir_flag_spec='-L$libdir'
9591      hardcode_shlibpath_var=no
9592      ;;
9593
9594    *)
9595      ld_shlibs=no
9596      ;;
9597    esac
9598
9599    if test sni = "$host_vendor"; then
9600      case $host in
9601      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9602	export_dynamic_flag_spec='$wl-Blargedynsym'
9603	;;
9604      esac
9605    fi
9606  fi
9607
9608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9609$as_echo "$ld_shlibs" >&6; }
9610test no = "$ld_shlibs" && can_build_shared=no
9611
9612with_gnu_ld=$with_gnu_ld
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628#
9629# Do we need to explicitly link libc?
9630#
9631case "x$archive_cmds_need_lc" in
9632x|xyes)
9633  # Assume -lc should be added
9634  archive_cmds_need_lc=yes
9635
9636  if test yes,yes = "$GCC,$enable_shared"; then
9637    case $archive_cmds in
9638    *'~'*)
9639      # FIXME: we may have to deal with multi-command sequences.
9640      ;;
9641    '$CC '*)
9642      # Test whether the compiler implicitly links with -lc since on some
9643      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9644      # to ld, don't add -lc before -lgcc.
9645      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9646$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9647if ${lt_cv_archive_cmds_need_lc+:} false; then :
9648  $as_echo_n "(cached) " >&6
9649else
9650  $RM conftest*
9651	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9652
9653	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9654  (eval $ac_compile) 2>&5
9655  ac_status=$?
9656  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9657  test $ac_status = 0; } 2>conftest.err; then
9658	  soname=conftest
9659	  lib=conftest
9660	  libobjs=conftest.$ac_objext
9661	  deplibs=
9662	  wl=$lt_prog_compiler_wl
9663	  pic_flag=$lt_prog_compiler_pic
9664	  compiler_flags=-v
9665	  linker_flags=-v
9666	  verstring=
9667	  output_objdir=.
9668	  libname=conftest
9669	  lt_save_allow_undefined_flag=$allow_undefined_flag
9670	  allow_undefined_flag=
9671	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9672  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9673  ac_status=$?
9674  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9675  test $ac_status = 0; }
9676	  then
9677	    lt_cv_archive_cmds_need_lc=no
9678	  else
9679	    lt_cv_archive_cmds_need_lc=yes
9680	  fi
9681	  allow_undefined_flag=$lt_save_allow_undefined_flag
9682	else
9683	  cat conftest.err 1>&5
9684	fi
9685	$RM conftest*
9686
9687fi
9688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9689$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9690      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9691      ;;
9692    esac
9693  fi
9694  ;;
9695esac
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
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  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9849$as_echo_n "checking dynamic linker characteristics... " >&6; }
9850
9851if test yes = "$GCC"; then
9852  case $host_os in
9853    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
9854    *) lt_awk_arg='/^libraries:/' ;;
9855  esac
9856  case $host_os in
9857    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
9858    *) lt_sed_strip_eq='s|=/|/|g' ;;
9859  esac
9860  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9861  case $lt_search_path_spec in
9862  *\;*)
9863    # if the path contains ";" then we assume it to be the separator
9864    # otherwise default to the standard path separator (i.e. ":") - it is
9865    # assumed that no part of a normal pathname contains ";" but that should
9866    # okay in the real world where ";" in dirpaths is itself problematic.
9867    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9868    ;;
9869  *)
9870    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9871    ;;
9872  esac
9873  # Ok, now we have the path, separated by spaces, we can step through it
9874  # and add multilib dir if necessary...
9875  lt_tmp_lt_search_path_spec=
9876  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9877  # ...but if some path component already ends with the multilib dir we assume
9878  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
9879  case "$lt_multi_os_dir; $lt_search_path_spec " in
9880  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
9881    lt_multi_os_dir=
9882    ;;
9883  esac
9884  for lt_sys_path in $lt_search_path_spec; do
9885    if test -d "$lt_sys_path$lt_multi_os_dir"; then
9886      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
9887    elif test -n "$lt_multi_os_dir"; then
9888      test -d "$lt_sys_path" && \
9889	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9890    fi
9891  done
9892  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9893BEGIN {RS = " "; FS = "/|\n";} {
9894  lt_foo = "";
9895  lt_count = 0;
9896  for (lt_i = NF; lt_i > 0; lt_i--) {
9897    if ($lt_i != "" && $lt_i != ".") {
9898      if ($lt_i == "..") {
9899        lt_count++;
9900      } else {
9901        if (lt_count == 0) {
9902          lt_foo = "/" $lt_i lt_foo;
9903        } else {
9904          lt_count--;
9905        }
9906      }
9907    }
9908  }
9909  if (lt_foo != "") { lt_freq[lt_foo]++; }
9910  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9911}'`
9912  # AWK program above erroneously prepends '/' to C:/dos/paths
9913  # for these hosts.
9914  case $host_os in
9915    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9916      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
9917  esac
9918  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9919else
9920  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9921fi
9922library_names_spec=
9923libname_spec='lib$name'
9924soname_spec=
9925shrext_cmds=.so
9926postinstall_cmds=
9927postuninstall_cmds=
9928finish_cmds=
9929finish_eval=
9930shlibpath_var=
9931shlibpath_overrides_runpath=unknown
9932version_type=none
9933dynamic_linker="$host_os ld.so"
9934sys_lib_dlsearch_path_spec="/lib /usr/lib"
9935need_lib_prefix=unknown
9936hardcode_into_libs=no
9937
9938# when you set need_version to no, make sure it does not cause -set_version
9939# flags to be left without arguments
9940need_version=unknown
9941
9942
9943
9944case $host_os in
9945aix3*)
9946  version_type=linux # correct to gnu/linux during the next big refactor
9947  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
9948  shlibpath_var=LIBPATH
9949
9950  # AIX 3 has no versioning support, so we append a major version to the name.
9951  soname_spec='$libname$release$shared_ext$major'
9952  ;;
9953
9954aix[4-9]*)
9955  version_type=linux # correct to gnu/linux during the next big refactor
9956  need_lib_prefix=no
9957  need_version=no
9958  hardcode_into_libs=yes
9959  if test ia64 = "$host_cpu"; then
9960    # AIX 5 supports IA64
9961    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
9962    shlibpath_var=LD_LIBRARY_PATH
9963  else
9964    # With GCC up to 2.95.x, collect2 would create an import file
9965    # for dependence libraries.  The import file would start with
9966    # the line '#! .'.  This would cause the generated library to
9967    # depend on '.', always an invalid library.  This was fixed in
9968    # development snapshots of GCC prior to 3.0.
9969    case $host_os in
9970      aix4 | aix4.[01] | aix4.[01].*)
9971      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9972	   echo ' yes '
9973	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
9974	:
9975      else
9976	can_build_shared=no
9977      fi
9978      ;;
9979    esac
9980    # Using Import Files as archive members, it is possible to support
9981    # filename-based versioning of shared library archives on AIX. While
9982    # this would work for both with and without runtime linking, it will
9983    # prevent static linking of such archives. So we do filename-based
9984    # shared library versioning with .so extension only, which is used
9985    # when both runtime linking and shared linking is enabled.
9986    # Unfortunately, runtime linking may impact performance, so we do
9987    # not want this to be the default eventually. Also, we use the
9988    # versioned .so libs for executables only if there is the -brtl
9989    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
9990    # To allow for filename-based versioning support, we need to create
9991    # libNAME.so.V as an archive file, containing:
9992    # *) an Import File, referring to the versioned filename of the
9993    #    archive as well as the shared archive member, telling the
9994    #    bitwidth (32 or 64) of that shared object, and providing the
9995    #    list of exported symbols of that shared object, eventually
9996    #    decorated with the 'weak' keyword
9997    # *) the shared object with the F_LOADONLY flag set, to really avoid
9998    #    it being seen by the linker.
9999    # At run time we better use the real file rather than another symlink,
10000    # but for link time we create the symlink libNAME.so -> libNAME.so.V
10001
10002    case $with_aix_soname,$aix_use_runtimelinking in
10003    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10004    # soname into executable. Probably we can add versioning support to
10005    # collect2, so additional links can be useful in future.
10006    aix,yes) # traditional libtool
10007      dynamic_linker='AIX unversionable lib.so'
10008      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10009      # instead of lib<name>.a to let people know that these are not
10010      # typical AIX shared libraries.
10011      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10012      ;;
10013    aix,no) # traditional AIX only
10014      dynamic_linker='AIX lib.a(lib.so.V)'
10015      # We preserve .a as extension for shared libraries through AIX4.2
10016      # and later when we are not doing run time linking.
10017      library_names_spec='$libname$release.a $libname.a'
10018      soname_spec='$libname$release$shared_ext$major'
10019      ;;
10020    svr4,*) # full svr4 only
10021      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10022      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10023      # We do not specify a path in Import Files, so LIBPATH fires.
10024      shlibpath_overrides_runpath=yes
10025      ;;
10026    *,yes) # both, prefer svr4
10027      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10028      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10029      # unpreferred sharedlib libNAME.a needs extra handling
10030      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"'
10031      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"'
10032      # We do not specify a path in Import Files, so LIBPATH fires.
10033      shlibpath_overrides_runpath=yes
10034      ;;
10035    *,no) # both, prefer aix
10036      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10037      library_names_spec='$libname$release.a $libname.a'
10038      soname_spec='$libname$release$shared_ext$major'
10039      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10040      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)'
10041      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"'
10042      ;;
10043    esac
10044    shlibpath_var=LIBPATH
10045  fi
10046  ;;
10047
10048amigaos*)
10049  case $host_cpu in
10050  powerpc)
10051    # Since July 2007 AmigaOS4 officially supports .so libraries.
10052    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10053    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10054    ;;
10055  m68k)
10056    library_names_spec='$libname.ixlibrary $libname.a'
10057    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10058    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'
10059    ;;
10060  esac
10061  ;;
10062
10063beos*)
10064  library_names_spec='$libname$shared_ext'
10065  dynamic_linker="$host_os ld.so"
10066  shlibpath_var=LIBRARY_PATH
10067  ;;
10068
10069bsdi[45]*)
10070  version_type=linux # correct to gnu/linux during the next big refactor
10071  need_version=no
10072  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10073  soname_spec='$libname$release$shared_ext$major'
10074  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10075  shlibpath_var=LD_LIBRARY_PATH
10076  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10077  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10078  # the default ld.so.conf also contains /usr/contrib/lib and
10079  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10080  # libtool to hard-code these into programs
10081  ;;
10082
10083cygwin* | mingw* | pw32* | cegcc*)
10084  version_type=windows
10085  shrext_cmds=.dll
10086  need_version=no
10087  need_lib_prefix=no
10088
10089  case $GCC,$cc_basename in
10090  yes,*)
10091    # gcc
10092    library_names_spec='$libname.dll.a'
10093    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10094    postinstall_cmds='base_file=`basename \$file`~
10095      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10096      dldir=$destdir/`dirname \$dlpath`~
10097      test -d \$dldir || mkdir -p \$dldir~
10098      $install_prog $dir/$dlname \$dldir/$dlname~
10099      chmod a+x \$dldir/$dlname~
10100      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10101        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10102      fi'
10103    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10104      dlpath=$dir/\$dldll~
10105       $RM \$dlpath'
10106    shlibpath_overrides_runpath=yes
10107
10108    case $host_os in
10109    cygwin*)
10110      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10111      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10112
10113      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10114      ;;
10115    mingw* | cegcc*)
10116      # MinGW DLLs use traditional 'lib' prefix
10117      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10118      ;;
10119    pw32*)
10120      # pw32 DLLs use 'pw' prefix rather than 'lib'
10121      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10122      ;;
10123    esac
10124    dynamic_linker='Win32 ld.exe'
10125    ;;
10126
10127  *,cl*)
10128    # Native MSVC
10129    libname_spec='$name'
10130    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10131    library_names_spec='$libname.dll.lib'
10132
10133    case $build_os in
10134    mingw*)
10135      sys_lib_search_path_spec=
10136      lt_save_ifs=$IFS
10137      IFS=';'
10138      for lt_path in $LIB
10139      do
10140        IFS=$lt_save_ifs
10141        # Let DOS variable expansion print the short 8.3 style file name.
10142        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10143        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10144      done
10145      IFS=$lt_save_ifs
10146      # Convert to MSYS style.
10147      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10148      ;;
10149    cygwin*)
10150      # Convert to unix form, then to dos form, then back to unix form
10151      # but this time dos style (no spaces!) so that the unix form looks
10152      # like /cygdrive/c/PROGRA~1:/cygdr...
10153      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10154      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10155      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10156      ;;
10157    *)
10158      sys_lib_search_path_spec=$LIB
10159      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10160        # It is most probably a Windows format PATH.
10161        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10162      else
10163        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10164      fi
10165      # FIXME: find the short name or the path components, as spaces are
10166      # common. (e.g. "Program Files" -> "PROGRA~1")
10167      ;;
10168    esac
10169
10170    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10171    postinstall_cmds='base_file=`basename \$file`~
10172      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10173      dldir=$destdir/`dirname \$dlpath`~
10174      test -d \$dldir || mkdir -p \$dldir~
10175      $install_prog $dir/$dlname \$dldir/$dlname'
10176    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10177      dlpath=$dir/\$dldll~
10178       $RM \$dlpath'
10179    shlibpath_overrides_runpath=yes
10180    dynamic_linker='Win32 link.exe'
10181    ;;
10182
10183  *)
10184    # Assume MSVC wrapper
10185    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10186    dynamic_linker='Win32 ld.exe'
10187    ;;
10188  esac
10189  # FIXME: first we should search . and the directory the executable is in
10190  shlibpath_var=PATH
10191  ;;
10192
10193darwin* | rhapsody*)
10194  dynamic_linker="$host_os dyld"
10195  version_type=darwin
10196  need_lib_prefix=no
10197  need_version=no
10198  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10199  soname_spec='$libname$release$major$shared_ext'
10200  shlibpath_overrides_runpath=yes
10201  shlibpath_var=DYLD_LIBRARY_PATH
10202  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10203
10204  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10205  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10206  ;;
10207
10208dgux*)
10209  version_type=linux # correct to gnu/linux during the next big refactor
10210  need_lib_prefix=no
10211  need_version=no
10212  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10213  soname_spec='$libname$release$shared_ext$major'
10214  shlibpath_var=LD_LIBRARY_PATH
10215  ;;
10216
10217freebsd* | dragonfly*)
10218  # DragonFly does not have aout.  When/if they implement a new
10219  # versioning mechanism, adjust this.
10220  if test -x /usr/bin/objformat; then
10221    objformat=`/usr/bin/objformat`
10222  else
10223    case $host_os in
10224    freebsd[23].*) objformat=aout ;;
10225    *) objformat=elf ;;
10226    esac
10227  fi
10228  version_type=freebsd-$objformat
10229  case $version_type in
10230    freebsd-elf*)
10231      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10232      soname_spec='$libname$release$shared_ext$major'
10233      need_version=no
10234      need_lib_prefix=no
10235      ;;
10236    freebsd-*)
10237      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10238      need_version=yes
10239      ;;
10240  esac
10241  shlibpath_var=LD_LIBRARY_PATH
10242  case $host_os in
10243  freebsd2.*)
10244    shlibpath_overrides_runpath=yes
10245    ;;
10246  freebsd3.[01]* | freebsdelf3.[01]*)
10247    shlibpath_overrides_runpath=yes
10248    hardcode_into_libs=yes
10249    ;;
10250  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10251  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10252    shlibpath_overrides_runpath=no
10253    hardcode_into_libs=yes
10254    ;;
10255  *) # from 4.6 on, and DragonFly
10256    shlibpath_overrides_runpath=yes
10257    hardcode_into_libs=yes
10258    ;;
10259  esac
10260  ;;
10261
10262haiku*)
10263  version_type=linux # correct to gnu/linux during the next big refactor
10264  need_lib_prefix=no
10265  need_version=no
10266  dynamic_linker="$host_os runtime_loader"
10267  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10268  soname_spec='$libname$release$shared_ext$major'
10269  shlibpath_var=LIBRARY_PATH
10270  shlibpath_overrides_runpath=no
10271  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10272  hardcode_into_libs=yes
10273  ;;
10274
10275hpux9* | hpux10* | hpux11*)
10276  # Give a soname corresponding to the major version so that dld.sl refuses to
10277  # link against other versions.
10278  version_type=sunos
10279  need_lib_prefix=no
10280  need_version=no
10281  case $host_cpu in
10282  ia64*)
10283    shrext_cmds='.so'
10284    hardcode_into_libs=yes
10285    dynamic_linker="$host_os dld.so"
10286    shlibpath_var=LD_LIBRARY_PATH
10287    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10288    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10289    soname_spec='$libname$release$shared_ext$major'
10290    if test 32 = "$HPUX_IA64_MODE"; then
10291      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10292      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10293    else
10294      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10295      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10296    fi
10297    ;;
10298  hppa*64*)
10299    shrext_cmds='.sl'
10300    hardcode_into_libs=yes
10301    dynamic_linker="$host_os dld.sl"
10302    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10303    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10304    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10305    soname_spec='$libname$release$shared_ext$major'
10306    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10307    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10308    ;;
10309  *)
10310    shrext_cmds='.sl'
10311    dynamic_linker="$host_os dld.sl"
10312    shlibpath_var=SHLIB_PATH
10313    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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    ;;
10317  esac
10318  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10319  postinstall_cmds='chmod 555 $lib'
10320  # or fails outright, so override atomically:
10321  install_override_mode=555
10322  ;;
10323
10324interix[3-9]*)
10325  version_type=linux # correct to gnu/linux during the next big refactor
10326  need_lib_prefix=no
10327  need_version=no
10328  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10329  soname_spec='$libname$release$shared_ext$major'
10330  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10331  shlibpath_var=LD_LIBRARY_PATH
10332  shlibpath_overrides_runpath=no
10333  hardcode_into_libs=yes
10334  ;;
10335
10336irix5* | irix6* | nonstopux*)
10337  case $host_os in
10338    nonstopux*) version_type=nonstopux ;;
10339    *)
10340	if test yes = "$lt_cv_prog_gnu_ld"; then
10341		version_type=linux # correct to gnu/linux during the next big refactor
10342	else
10343		version_type=irix
10344	fi ;;
10345  esac
10346  need_lib_prefix=no
10347  need_version=no
10348  soname_spec='$libname$release$shared_ext$major'
10349  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10350  case $host_os in
10351  irix5* | nonstopux*)
10352    libsuff= shlibsuff=
10353    ;;
10354  *)
10355    case $LD in # libtool.m4 will add one of these switches to LD
10356    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10357      libsuff= shlibsuff= libmagic=32-bit;;
10358    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10359      libsuff=32 shlibsuff=N32 libmagic=N32;;
10360    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10361      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10362    *) libsuff= shlibsuff= libmagic=never-match;;
10363    esac
10364    ;;
10365  esac
10366  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10367  shlibpath_overrides_runpath=no
10368  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10369  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10370  hardcode_into_libs=yes
10371  ;;
10372
10373# No shared lib support for Linux oldld, aout, or coff.
10374linux*oldld* | linux*aout* | linux*coff*)
10375  dynamic_linker=no
10376  ;;
10377
10378linux*android*)
10379  version_type=none # Android doesn't support versioned libraries.
10380  need_lib_prefix=no
10381  need_version=no
10382  library_names_spec='$libname$release$shared_ext'
10383  soname_spec='$libname$release$shared_ext'
10384  finish_cmds=
10385  shlibpath_var=LD_LIBRARY_PATH
10386  shlibpath_overrides_runpath=yes
10387
10388  # This implies no fast_install, which is unacceptable.
10389  # Some rework will be needed to allow for fast_install
10390  # before this can be enabled.
10391  hardcode_into_libs=yes
10392
10393  dynamic_linker='Android linker'
10394  # Don't embed -rpath directories since the linker doesn't support them.
10395  hardcode_libdir_flag_spec='-L$libdir'
10396  ;;
10397
10398# This must be glibc/ELF.
10399linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10400  version_type=linux # correct to gnu/linux during the next big refactor
10401  need_lib_prefix=no
10402  need_version=no
10403  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10404  soname_spec='$libname$release$shared_ext$major'
10405  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10406  shlibpath_var=LD_LIBRARY_PATH
10407  shlibpath_overrides_runpath=no
10408
10409  # Some binutils ld are patched to set DT_RUNPATH
10410  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10411  $as_echo_n "(cached) " >&6
10412else
10413  lt_cv_shlibpath_overrides_runpath=no
10414    save_LDFLAGS=$LDFLAGS
10415    save_libdir=$libdir
10416    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10417	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10418    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10419/* end confdefs.h.  */
10420
10421int
10422main ()
10423{
10424
10425  ;
10426  return 0;
10427}
10428_ACEOF
10429if ac_fn_c_try_link "$LINENO"; then :
10430  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10431  lt_cv_shlibpath_overrides_runpath=yes
10432fi
10433fi
10434rm -f core conftest.err conftest.$ac_objext \
10435    conftest$ac_exeext conftest.$ac_ext
10436    LDFLAGS=$save_LDFLAGS
10437    libdir=$save_libdir
10438
10439fi
10440
10441  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10442
10443  # This implies no fast_install, which is unacceptable.
10444  # Some rework will be needed to allow for fast_install
10445  # before this can be enabled.
10446  hardcode_into_libs=yes
10447
10448  # Ideally, we could use ldconfig to report *all* directores which are
10449  # searched for libraries, however this is still not possible.  Aside from not
10450  # being certain /sbin/ldconfig is available, command
10451  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
10452  # even though it is searched at run-time.  Try to do the best guess by
10453  # appending ld.so.conf contents (and includes) to the search path.
10454  if test -f /etc/ld.so.conf; then
10455    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' ' '`
10456    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10457  fi
10458
10459  # We used to test for /lib/ld.so.1 and disable shared libraries on
10460  # powerpc, because MkLinux only supported shared libraries with the
10461  # GNU dynamic linker.  Since this was broken with cross compilers,
10462  # most powerpc-linux boxes support dynamic linking these days and
10463  # people can always --disable-shared, the test was removed, and we
10464  # assume the GNU/Linux dynamic linker is in use.
10465  dynamic_linker='GNU/Linux ld.so'
10466  ;;
10467
10468netbsdelf*-gnu)
10469  version_type=linux
10470  need_lib_prefix=no
10471  need_version=no
10472  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10473  soname_spec='${libname}${release}${shared_ext}$major'
10474  shlibpath_var=LD_LIBRARY_PATH
10475  shlibpath_overrides_runpath=no
10476  hardcode_into_libs=yes
10477  dynamic_linker='NetBSD ld.elf_so'
10478  ;;
10479
10480netbsd*)
10481  version_type=sunos
10482  need_lib_prefix=no
10483  need_version=no
10484  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10485    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10486    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10487    dynamic_linker='NetBSD (a.out) ld.so'
10488  else
10489    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10490    soname_spec='$libname$release$shared_ext$major'
10491    dynamic_linker='NetBSD ld.elf_so'
10492  fi
10493  shlibpath_var=LD_LIBRARY_PATH
10494  shlibpath_overrides_runpath=yes
10495  hardcode_into_libs=yes
10496  ;;
10497
10498newsos6)
10499  version_type=linux # correct to gnu/linux during the next big refactor
10500  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10501  shlibpath_var=LD_LIBRARY_PATH
10502  shlibpath_overrides_runpath=yes
10503  ;;
10504
10505*nto* | *qnx*)
10506  version_type=qnx
10507  need_lib_prefix=no
10508  need_version=no
10509  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10510  soname_spec='$libname$release$shared_ext$major'
10511  shlibpath_var=LD_LIBRARY_PATH
10512  shlibpath_overrides_runpath=no
10513  hardcode_into_libs=yes
10514  dynamic_linker='ldqnx.so'
10515  ;;
10516
10517openbsd* | bitrig*)
10518  version_type=sunos
10519  sys_lib_dlsearch_path_spec=/usr/lib
10520  need_lib_prefix=no
10521  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10522    need_version=no
10523  else
10524    need_version=yes
10525  fi
10526  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10527  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10528  shlibpath_var=LD_LIBRARY_PATH
10529  shlibpath_overrides_runpath=yes
10530  ;;
10531
10532os2*)
10533  libname_spec='$name'
10534  version_type=windows
10535  shrext_cmds=.dll
10536  need_version=no
10537  need_lib_prefix=no
10538  # OS/2 can only load a DLL with a base name of 8 characters or less.
10539  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
10540    v=$($ECHO $release$versuffix | tr -d .-);
10541    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
10542    $ECHO $n$v`$shared_ext'
10543  library_names_spec='${libname}_dll.$libext'
10544  dynamic_linker='OS/2 ld.exe'
10545  shlibpath_var=BEGINLIBPATH
10546  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10547  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10548  postinstall_cmds='base_file=`basename \$file`~
10549    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
10550    dldir=$destdir/`dirname \$dlpath`~
10551    test -d \$dldir || mkdir -p \$dldir~
10552    $install_prog $dir/$dlname \$dldir/$dlname~
10553    chmod a+x \$dldir/$dlname~
10554    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10555      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10556    fi'
10557  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
10558    dlpath=$dir/\$dldll~
10559    $RM \$dlpath'
10560  ;;
10561
10562osf3* | osf4* | osf5*)
10563  version_type=osf
10564  need_lib_prefix=no
10565  need_version=no
10566  soname_spec='$libname$release$shared_ext$major'
10567  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10568  shlibpath_var=LD_LIBRARY_PATH
10569  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10570  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10571  ;;
10572
10573rdos*)
10574  dynamic_linker=no
10575  ;;
10576
10577solaris*)
10578  version_type=linux # correct to gnu/linux during the next big refactor
10579  need_lib_prefix=no
10580  need_version=no
10581  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10582  soname_spec='$libname$release$shared_ext$major'
10583  shlibpath_var=LD_LIBRARY_PATH
10584  shlibpath_overrides_runpath=yes
10585  hardcode_into_libs=yes
10586  # ldd complains unless libraries are executable
10587  postinstall_cmds='chmod +x $lib'
10588  ;;
10589
10590sunos4*)
10591  version_type=sunos
10592  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10593  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10594  shlibpath_var=LD_LIBRARY_PATH
10595  shlibpath_overrides_runpath=yes
10596  if test yes = "$with_gnu_ld"; then
10597    need_lib_prefix=no
10598  fi
10599  need_version=yes
10600  ;;
10601
10602sysv4 | sysv4.3*)
10603  version_type=linux # correct to gnu/linux during the next big refactor
10604  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10605  soname_spec='$libname$release$shared_ext$major'
10606  shlibpath_var=LD_LIBRARY_PATH
10607  case $host_vendor in
10608    sni)
10609      shlibpath_overrides_runpath=no
10610      need_lib_prefix=no
10611      runpath_var=LD_RUN_PATH
10612      ;;
10613    siemens)
10614      need_lib_prefix=no
10615      ;;
10616    motorola)
10617      need_lib_prefix=no
10618      need_version=no
10619      shlibpath_overrides_runpath=no
10620      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10621      ;;
10622  esac
10623  ;;
10624
10625sysv4*MP*)
10626  if test -d /usr/nec; then
10627    version_type=linux # correct to gnu/linux during the next big refactor
10628    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
10629    soname_spec='$libname$shared_ext.$major'
10630    shlibpath_var=LD_LIBRARY_PATH
10631  fi
10632  ;;
10633
10634sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10635  version_type=sco
10636  need_lib_prefix=no
10637  need_version=no
10638  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
10639  soname_spec='$libname$release$shared_ext$major'
10640  shlibpath_var=LD_LIBRARY_PATH
10641  shlibpath_overrides_runpath=yes
10642  hardcode_into_libs=yes
10643  if test yes = "$with_gnu_ld"; then
10644    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10645  else
10646    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10647    case $host_os in
10648      sco3.2v5*)
10649        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10650	;;
10651    esac
10652  fi
10653  sys_lib_dlsearch_path_spec='/usr/lib'
10654  ;;
10655
10656tpf*)
10657  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10658  version_type=linux # correct to gnu/linux during the next big refactor
10659  need_lib_prefix=no
10660  need_version=no
10661  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10662  shlibpath_var=LD_LIBRARY_PATH
10663  shlibpath_overrides_runpath=no
10664  hardcode_into_libs=yes
10665  ;;
10666
10667uts4*)
10668  version_type=linux # correct to gnu/linux during the next big refactor
10669  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10670  soname_spec='$libname$release$shared_ext$major'
10671  shlibpath_var=LD_LIBRARY_PATH
10672  ;;
10673
10674*)
10675  dynamic_linker=no
10676  ;;
10677esac
10678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10679$as_echo "$dynamic_linker" >&6; }
10680test no = "$dynamic_linker" && can_build_shared=no
10681
10682variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10683if test yes = "$GCC"; then
10684  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10685fi
10686
10687if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
10688  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
10689fi
10690
10691if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
10692  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
10693fi
10694
10695# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
10696configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
10697
10698# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
10699func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
10700
10701# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
10702configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
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  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10801$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10802hardcode_action=
10803if test -n "$hardcode_libdir_flag_spec" ||
10804   test -n "$runpath_var" ||
10805   test yes = "$hardcode_automatic"; then
10806
10807  # We can hardcode non-existent directories.
10808  if test no != "$hardcode_direct" &&
10809     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10810     # have to relink, otherwise we might link with an installed library
10811     # when we should be linking with a yet-to-be-installed one
10812     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
10813     test no != "$hardcode_minus_L"; then
10814    # Linking always hardcodes the temporary library directory.
10815    hardcode_action=relink
10816  else
10817    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10818    hardcode_action=immediate
10819  fi
10820else
10821  # We cannot hardcode anything, or else we can only hardcode existing
10822  # directories.
10823  hardcode_action=unsupported
10824fi
10825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10826$as_echo "$hardcode_action" >&6; }
10827
10828if test relink = "$hardcode_action" ||
10829   test yes = "$inherit_rpath"; then
10830  # Fast installation is not supported
10831  enable_fast_install=no
10832elif test yes = "$shlibpath_overrides_runpath" ||
10833     test no = "$enable_shared"; then
10834  # Fast installation is not necessary
10835  enable_fast_install=needless
10836fi
10837
10838
10839
10840
10841
10842
10843  if test yes != "$enable_dlopen"; then
10844  enable_dlopen=unknown
10845  enable_dlopen_self=unknown
10846  enable_dlopen_self_static=unknown
10847else
10848  lt_cv_dlopen=no
10849  lt_cv_dlopen_libs=
10850
10851  case $host_os in
10852  beos*)
10853    lt_cv_dlopen=load_add_on
10854    lt_cv_dlopen_libs=
10855    lt_cv_dlopen_self=yes
10856    ;;
10857
10858  mingw* | pw32* | cegcc*)
10859    lt_cv_dlopen=LoadLibrary
10860    lt_cv_dlopen_libs=
10861    ;;
10862
10863  cygwin*)
10864    lt_cv_dlopen=dlopen
10865    lt_cv_dlopen_libs=
10866    ;;
10867
10868  darwin*)
10869    # if libdl is installed we need to link against it
10870    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10871$as_echo_n "checking for dlopen in -ldl... " >&6; }
10872if ${ac_cv_lib_dl_dlopen+:} false; then :
10873  $as_echo_n "(cached) " >&6
10874else
10875  ac_check_lib_save_LIBS=$LIBS
10876LIBS="-ldl  $LIBS"
10877cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10878/* end confdefs.h.  */
10879
10880/* Override any GCC internal prototype to avoid an error.
10881   Use char because int might match the return type of a GCC
10882   builtin and then its argument prototype would still apply.  */
10883#ifdef __cplusplus
10884extern "C"
10885#endif
10886char dlopen ();
10887int
10888main ()
10889{
10890return dlopen ();
10891  ;
10892  return 0;
10893}
10894_ACEOF
10895if ac_fn_c_try_link "$LINENO"; then :
10896  ac_cv_lib_dl_dlopen=yes
10897else
10898  ac_cv_lib_dl_dlopen=no
10899fi
10900rm -f core conftest.err conftest.$ac_objext \
10901    conftest$ac_exeext conftest.$ac_ext
10902LIBS=$ac_check_lib_save_LIBS
10903fi
10904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10905$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10906if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10907  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
10908else
10909
10910    lt_cv_dlopen=dyld
10911    lt_cv_dlopen_libs=
10912    lt_cv_dlopen_self=yes
10913
10914fi
10915
10916    ;;
10917
10918  tpf*)
10919    # Don't try to run any link tests for TPF.  We know it's impossible
10920    # because TPF is a cross-compiler, and we know how we open DSOs.
10921    lt_cv_dlopen=dlopen
10922    lt_cv_dlopen_libs=
10923    lt_cv_dlopen_self=no
10924    ;;
10925
10926  *)
10927    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10928if test "x$ac_cv_func_shl_load" = xyes; then :
10929  lt_cv_dlopen=shl_load
10930else
10931  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10932$as_echo_n "checking for shl_load in -ldld... " >&6; }
10933if ${ac_cv_lib_dld_shl_load+:} false; then :
10934  $as_echo_n "(cached) " >&6
10935else
10936  ac_check_lib_save_LIBS=$LIBS
10937LIBS="-ldld  $LIBS"
10938cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10939/* end confdefs.h.  */
10940
10941/* Override any GCC internal prototype to avoid an error.
10942   Use char because int might match the return type of a GCC
10943   builtin and then its argument prototype would still apply.  */
10944#ifdef __cplusplus
10945extern "C"
10946#endif
10947char shl_load ();
10948int
10949main ()
10950{
10951return shl_load ();
10952  ;
10953  return 0;
10954}
10955_ACEOF
10956if ac_fn_c_try_link "$LINENO"; then :
10957  ac_cv_lib_dld_shl_load=yes
10958else
10959  ac_cv_lib_dld_shl_load=no
10960fi
10961rm -f core conftest.err conftest.$ac_objext \
10962    conftest$ac_exeext conftest.$ac_ext
10963LIBS=$ac_check_lib_save_LIBS
10964fi
10965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10966$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10967if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10968  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
10969else
10970  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10971if test "x$ac_cv_func_dlopen" = xyes; then :
10972  lt_cv_dlopen=dlopen
10973else
10974  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10975$as_echo_n "checking for dlopen in -ldl... " >&6; }
10976if ${ac_cv_lib_dl_dlopen+:} false; then :
10977  $as_echo_n "(cached) " >&6
10978else
10979  ac_check_lib_save_LIBS=$LIBS
10980LIBS="-ldl  $LIBS"
10981cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10982/* end confdefs.h.  */
10983
10984/* Override any GCC internal prototype to avoid an error.
10985   Use char because int might match the return type of a GCC
10986   builtin and then its argument prototype would still apply.  */
10987#ifdef __cplusplus
10988extern "C"
10989#endif
10990char dlopen ();
10991int
10992main ()
10993{
10994return dlopen ();
10995  ;
10996  return 0;
10997}
10998_ACEOF
10999if ac_fn_c_try_link "$LINENO"; then :
11000  ac_cv_lib_dl_dlopen=yes
11001else
11002  ac_cv_lib_dl_dlopen=no
11003fi
11004rm -f core conftest.err conftest.$ac_objext \
11005    conftest$ac_exeext conftest.$ac_ext
11006LIBS=$ac_check_lib_save_LIBS
11007fi
11008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11009$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11010if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11011  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11012else
11013  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11014$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11015if ${ac_cv_lib_svld_dlopen+:} false; then :
11016  $as_echo_n "(cached) " >&6
11017else
11018  ac_check_lib_save_LIBS=$LIBS
11019LIBS="-lsvld  $LIBS"
11020cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11021/* end confdefs.h.  */
11022
11023/* Override any GCC internal prototype to avoid an error.
11024   Use char because int might match the return type of a GCC
11025   builtin and then its argument prototype would still apply.  */
11026#ifdef __cplusplus
11027extern "C"
11028#endif
11029char dlopen ();
11030int
11031main ()
11032{
11033return dlopen ();
11034  ;
11035  return 0;
11036}
11037_ACEOF
11038if ac_fn_c_try_link "$LINENO"; then :
11039  ac_cv_lib_svld_dlopen=yes
11040else
11041  ac_cv_lib_svld_dlopen=no
11042fi
11043rm -f core conftest.err conftest.$ac_objext \
11044    conftest$ac_exeext conftest.$ac_ext
11045LIBS=$ac_check_lib_save_LIBS
11046fi
11047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11048$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11049if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11050  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11051else
11052  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11053$as_echo_n "checking for dld_link in -ldld... " >&6; }
11054if ${ac_cv_lib_dld_dld_link+:} false; then :
11055  $as_echo_n "(cached) " >&6
11056else
11057  ac_check_lib_save_LIBS=$LIBS
11058LIBS="-ldld  $LIBS"
11059cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11060/* end confdefs.h.  */
11061
11062/* Override any GCC internal prototype to avoid an error.
11063   Use char because int might match the return type of a GCC
11064   builtin and then its argument prototype would still apply.  */
11065#ifdef __cplusplus
11066extern "C"
11067#endif
11068char dld_link ();
11069int
11070main ()
11071{
11072return dld_link ();
11073  ;
11074  return 0;
11075}
11076_ACEOF
11077if ac_fn_c_try_link "$LINENO"; then :
11078  ac_cv_lib_dld_dld_link=yes
11079else
11080  ac_cv_lib_dld_dld_link=no
11081fi
11082rm -f core conftest.err conftest.$ac_objext \
11083    conftest$ac_exeext conftest.$ac_ext
11084LIBS=$ac_check_lib_save_LIBS
11085fi
11086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11087$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11088if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11089  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11090fi
11091
11092
11093fi
11094
11095
11096fi
11097
11098
11099fi
11100
11101
11102fi
11103
11104
11105fi
11106
11107    ;;
11108  esac
11109
11110  if test no = "$lt_cv_dlopen"; then
11111    enable_dlopen=no
11112  else
11113    enable_dlopen=yes
11114  fi
11115
11116  case $lt_cv_dlopen in
11117  dlopen)
11118    save_CPPFLAGS=$CPPFLAGS
11119    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11120
11121    save_LDFLAGS=$LDFLAGS
11122    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11123
11124    save_LIBS=$LIBS
11125    LIBS="$lt_cv_dlopen_libs $LIBS"
11126
11127    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11128$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11129if ${lt_cv_dlopen_self+:} false; then :
11130  $as_echo_n "(cached) " >&6
11131else
11132  	  if test yes = "$cross_compiling"; then :
11133  lt_cv_dlopen_self=cross
11134else
11135  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11136  lt_status=$lt_dlunknown
11137  cat > conftest.$ac_ext <<_LT_EOF
11138#line $LINENO "configure"
11139#include "confdefs.h"
11140
11141#if HAVE_DLFCN_H
11142#include <dlfcn.h>
11143#endif
11144
11145#include <stdio.h>
11146
11147#ifdef RTLD_GLOBAL
11148#  define LT_DLGLOBAL		RTLD_GLOBAL
11149#else
11150#  ifdef DL_GLOBAL
11151#    define LT_DLGLOBAL		DL_GLOBAL
11152#  else
11153#    define LT_DLGLOBAL		0
11154#  endif
11155#endif
11156
11157/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11158   find out it does not work in some platform. */
11159#ifndef LT_DLLAZY_OR_NOW
11160#  ifdef RTLD_LAZY
11161#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11162#  else
11163#    ifdef DL_LAZY
11164#      define LT_DLLAZY_OR_NOW		DL_LAZY
11165#    else
11166#      ifdef RTLD_NOW
11167#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11168#      else
11169#        ifdef DL_NOW
11170#          define LT_DLLAZY_OR_NOW	DL_NOW
11171#        else
11172#          define LT_DLLAZY_OR_NOW	0
11173#        endif
11174#      endif
11175#    endif
11176#  endif
11177#endif
11178
11179/* When -fvisibility=hidden is used, assume the code has been annotated
11180   correspondingly for the symbols needed.  */
11181#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11182int fnord () __attribute__((visibility("default")));
11183#endif
11184
11185int fnord () { return 42; }
11186int main ()
11187{
11188  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11189  int status = $lt_dlunknown;
11190
11191  if (self)
11192    {
11193      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11194      else
11195        {
11196	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11197          else puts (dlerror ());
11198	}
11199      /* dlclose (self); */
11200    }
11201  else
11202    puts (dlerror ());
11203
11204  return status;
11205}
11206_LT_EOF
11207  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11208  (eval $ac_link) 2>&5
11209  ac_status=$?
11210  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11211  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11212    (./conftest; exit; ) >&5 2>/dev/null
11213    lt_status=$?
11214    case x$lt_status in
11215      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11216      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11217      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11218    esac
11219  else :
11220    # compilation failed
11221    lt_cv_dlopen_self=no
11222  fi
11223fi
11224rm -fr conftest*
11225
11226
11227fi
11228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11229$as_echo "$lt_cv_dlopen_self" >&6; }
11230
11231    if test yes = "$lt_cv_dlopen_self"; then
11232      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11233      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11234$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11235if ${lt_cv_dlopen_self_static+:} false; then :
11236  $as_echo_n "(cached) " >&6
11237else
11238  	  if test yes = "$cross_compiling"; then :
11239  lt_cv_dlopen_self_static=cross
11240else
11241  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11242  lt_status=$lt_dlunknown
11243  cat > conftest.$ac_ext <<_LT_EOF
11244#line $LINENO "configure"
11245#include "confdefs.h"
11246
11247#if HAVE_DLFCN_H
11248#include <dlfcn.h>
11249#endif
11250
11251#include <stdio.h>
11252
11253#ifdef RTLD_GLOBAL
11254#  define LT_DLGLOBAL		RTLD_GLOBAL
11255#else
11256#  ifdef DL_GLOBAL
11257#    define LT_DLGLOBAL		DL_GLOBAL
11258#  else
11259#    define LT_DLGLOBAL		0
11260#  endif
11261#endif
11262
11263/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11264   find out it does not work in some platform. */
11265#ifndef LT_DLLAZY_OR_NOW
11266#  ifdef RTLD_LAZY
11267#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11268#  else
11269#    ifdef DL_LAZY
11270#      define LT_DLLAZY_OR_NOW		DL_LAZY
11271#    else
11272#      ifdef RTLD_NOW
11273#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11274#      else
11275#        ifdef DL_NOW
11276#          define LT_DLLAZY_OR_NOW	DL_NOW
11277#        else
11278#          define LT_DLLAZY_OR_NOW	0
11279#        endif
11280#      endif
11281#    endif
11282#  endif
11283#endif
11284
11285/* When -fvisibility=hidden is used, assume the code has been annotated
11286   correspondingly for the symbols needed.  */
11287#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11288int fnord () __attribute__((visibility("default")));
11289#endif
11290
11291int fnord () { return 42; }
11292int main ()
11293{
11294  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11295  int status = $lt_dlunknown;
11296
11297  if (self)
11298    {
11299      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11300      else
11301        {
11302	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11303          else puts (dlerror ());
11304	}
11305      /* dlclose (self); */
11306    }
11307  else
11308    puts (dlerror ());
11309
11310  return status;
11311}
11312_LT_EOF
11313  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11314  (eval $ac_link) 2>&5
11315  ac_status=$?
11316  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11317  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11318    (./conftest; exit; ) >&5 2>/dev/null
11319    lt_status=$?
11320    case x$lt_status in
11321      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11322      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11323      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11324    esac
11325  else :
11326    # compilation failed
11327    lt_cv_dlopen_self_static=no
11328  fi
11329fi
11330rm -fr conftest*
11331
11332
11333fi
11334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11335$as_echo "$lt_cv_dlopen_self_static" >&6; }
11336    fi
11337
11338    CPPFLAGS=$save_CPPFLAGS
11339    LDFLAGS=$save_LDFLAGS
11340    LIBS=$save_LIBS
11341    ;;
11342  esac
11343
11344  case $lt_cv_dlopen_self in
11345  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11346  *) enable_dlopen_self=unknown ;;
11347  esac
11348
11349  case $lt_cv_dlopen_self_static in
11350  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11351  *) enable_dlopen_self_static=unknown ;;
11352  esac
11353fi
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371striplib=
11372old_striplib=
11373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11374$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11375if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11376  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11377  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11378  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11379$as_echo "yes" >&6; }
11380else
11381# FIXME - insert some real tests, host_os isn't really good enough
11382  case $host_os in
11383  darwin*)
11384    if test -n "$STRIP"; then
11385      striplib="$STRIP -x"
11386      old_striplib="$STRIP -S"
11387      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11388$as_echo "yes" >&6; }
11389    else
11390      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11391$as_echo "no" >&6; }
11392    fi
11393    ;;
11394  *)
11395    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11396$as_echo "no" >&6; }
11397    ;;
11398  esac
11399fi
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412  # Report what library types will actually be built
11413  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11414$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11415  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11416$as_echo "$can_build_shared" >&6; }
11417
11418  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11419$as_echo_n "checking whether to build shared libraries... " >&6; }
11420  test no = "$can_build_shared" && enable_shared=no
11421
11422  # On AIX, shared libraries and static libraries use the same namespace, and
11423  # are all built from PIC.
11424  case $host_os in
11425  aix3*)
11426    test yes = "$enable_shared" && enable_static=no
11427    if test -n "$RANLIB"; then
11428      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11429      postinstall_cmds='$RANLIB $lib'
11430    fi
11431    ;;
11432
11433  aix[4-9]*)
11434    if test ia64 != "$host_cpu"; then
11435      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11436      yes,aix,yes) ;;			# shared object as lib.so file only
11437      yes,svr4,*) ;;			# shared object as lib.so archive member only
11438      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
11439      esac
11440    fi
11441    ;;
11442  esac
11443  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11444$as_echo "$enable_shared" >&6; }
11445
11446  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11447$as_echo_n "checking whether to build static libraries... " >&6; }
11448  # Make sure either enable_shared or enable_static is yes.
11449  test yes = "$enable_shared" || enable_static=yes
11450  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11451$as_echo "$enable_static" >&6; }
11452
11453
11454
11455
11456fi
11457ac_ext=c
11458ac_cpp='$CPP $CPPFLAGS'
11459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11461ac_compiler_gnu=$ac_cv_c_compiler_gnu
11462
11463CC=$lt_save_CC
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479        ac_config_commands="$ac_config_commands libtool"
11480
11481
11482
11483
11484# Only expand once:
11485
11486
11487am__api_version='1.15'
11488
11489# Find a good install program.  We prefer a C program (faster),
11490# so one script is as good as another.  But avoid the broken or
11491# incompatible versions:
11492# SysV /etc/install, /usr/sbin/install
11493# SunOS /usr/etc/install
11494# IRIX /sbin/install
11495# AIX /bin/install
11496# AmigaOS /C/install, which installs bootblocks on floppy discs
11497# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11498# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11499# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11500# OS/2's system install, which has a completely different semantic
11501# ./install, which can be erroneously created by make from ./install.sh.
11502# Reject install programs that cannot install multiple files.
11503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
11504$as_echo_n "checking for a BSD-compatible install... " >&6; }
11505if test -z "$INSTALL"; then
11506if ${ac_cv_path_install+:} false; then :
11507  $as_echo_n "(cached) " >&6
11508else
11509  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11510for as_dir in $PATH
11511do
11512  IFS=$as_save_IFS
11513  test -z "$as_dir" && as_dir=.
11514    # Account for people who put trailing slashes in PATH elements.
11515case $as_dir/ in #((
11516  ./ | .// | /[cC]/* | \
11517  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11518  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
11519  /usr/ucb/* ) ;;
11520  *)
11521    # OSF1 and SCO ODT 3.0 have their own names for install.
11522    # Don't use installbsd from OSF since it installs stuff as root
11523    # by default.
11524    for ac_prog in ginstall scoinst install; do
11525      for ac_exec_ext in '' $ac_executable_extensions; do
11526	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11527	  if test $ac_prog = install &&
11528	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11529	    # AIX install.  It has an incompatible calling convention.
11530	    :
11531	  elif test $ac_prog = install &&
11532	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11533	    # program-specific install script used by HP pwplus--don't use.
11534	    :
11535	  else
11536	    rm -rf conftest.one conftest.two conftest.dir
11537	    echo one > conftest.one
11538	    echo two > conftest.two
11539	    mkdir conftest.dir
11540	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11541	      test -s conftest.one && test -s conftest.two &&
11542	      test -s conftest.dir/conftest.one &&
11543	      test -s conftest.dir/conftest.two
11544	    then
11545	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11546	      break 3
11547	    fi
11548	  fi
11549	fi
11550      done
11551    done
11552    ;;
11553esac
11554
11555  done
11556IFS=$as_save_IFS
11557
11558rm -rf conftest.one conftest.two conftest.dir
11559
11560fi
11561  if test "${ac_cv_path_install+set}" = set; then
11562    INSTALL=$ac_cv_path_install
11563  else
11564    # As a last resort, use the slow shell script.  Don't cache a
11565    # value for INSTALL within a source directory, because that will
11566    # break other packages using the cache if that directory is
11567    # removed, or if the value is a relative name.
11568    INSTALL=$ac_install_sh
11569  fi
11570fi
11571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
11572$as_echo "$INSTALL" >&6; }
11573
11574# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11575# It thinks the first close brace ends the variable substitution.
11576test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11577
11578test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11579
11580test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11581
11582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
11583$as_echo_n "checking whether build environment is sane... " >&6; }
11584# Reject unsafe characters in $srcdir or the absolute working directory
11585# name.  Accept space and tab only in the latter.
11586am_lf='
11587'
11588case `pwd` in
11589  *[\\\"\#\$\&\'\`$am_lf]*)
11590    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
11591esac
11592case $srcdir in
11593  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
11594    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
11595esac
11596
11597# Do 'set' in a subshell so we don't clobber the current shell's
11598# arguments.  Must try -L first in case configure is actually a
11599# symlink; some systems play weird games with the mod time of symlinks
11600# (eg FreeBSD returns the mod time of the symlink's containing
11601# directory).
11602if (
11603   am_has_slept=no
11604   for am_try in 1 2; do
11605     echo "timestamp, slept: $am_has_slept" > conftest.file
11606     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
11607     if test "$*" = "X"; then
11608	# -L didn't work.
11609	set X `ls -t "$srcdir/configure" conftest.file`
11610     fi
11611     if test "$*" != "X $srcdir/configure conftest.file" \
11612	&& test "$*" != "X conftest.file $srcdir/configure"; then
11613
11614	# If neither matched, then we have a broken ls.  This can happen
11615	# if, for instance, CONFIG_SHELL is bash and it inherits a
11616	# broken ls alias from the environment.  This has actually
11617	# happened.  Such a system could not be considered "sane".
11618	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
11619  alias in your environment" "$LINENO" 5
11620     fi
11621     if test "$2" = conftest.file || test $am_try -eq 2; then
11622       break
11623     fi
11624     # Just in case.
11625     sleep 1
11626     am_has_slept=yes
11627   done
11628   test "$2" = conftest.file
11629   )
11630then
11631   # Ok.
11632   :
11633else
11634   as_fn_error $? "newly created file is older than distributed files!
11635Check your system clock" "$LINENO" 5
11636fi
11637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11638$as_echo "yes" >&6; }
11639# If we didn't sleep, we still need to ensure time stamps of config.status and
11640# generated files are strictly newer.
11641am_sleep_pid=
11642if grep 'slept: no' conftest.file >/dev/null 2>&1; then
11643  ( sleep 1 ) &
11644  am_sleep_pid=$!
11645fi
11646
11647rm -f conftest.file
11648
11649test "$program_prefix" != NONE &&
11650  program_transform_name="s&^&$program_prefix&;$program_transform_name"
11651# Use a double $ so make ignores it.
11652test "$program_suffix" != NONE &&
11653  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
11654# Double any \ or $.
11655# By default was `s,x,x', remove it if useless.
11656ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
11657program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
11658
11659if test x"${MISSING+set}" != xset; then
11660  case $am_aux_dir in
11661  *\ * | *\	*)
11662    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
11663  *)
11664    MISSING="\${SHELL} $am_aux_dir/missing" ;;
11665  esac
11666fi
11667# Use eval to expand $SHELL
11668if eval "$MISSING --is-lightweight"; then
11669  am_missing_run="$MISSING "
11670else
11671  am_missing_run=
11672  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
11673$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
11674fi
11675
11676if test x"${install_sh+set}" != xset; then
11677  case $am_aux_dir in
11678  *\ * | *\	*)
11679    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
11680  *)
11681    install_sh="\${SHELL} $am_aux_dir/install-sh"
11682  esac
11683fi
11684
11685# Installed binaries are usually stripped using 'strip' when the user
11686# run "make install-strip".  However 'strip' might not be the right
11687# tool to use in cross-compilation environments, therefore Automake
11688# will honor the 'STRIP' environment variable to overrule this program.
11689if test "$cross_compiling" != no; then
11690  if test -n "$ac_tool_prefix"; then
11691  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11692set dummy ${ac_tool_prefix}strip; ac_word=$2
11693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11694$as_echo_n "checking for $ac_word... " >&6; }
11695if ${ac_cv_prog_STRIP+:} false; then :
11696  $as_echo_n "(cached) " >&6
11697else
11698  if test -n "$STRIP"; then
11699  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11700else
11701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11702for as_dir in $PATH
11703do
11704  IFS=$as_save_IFS
11705  test -z "$as_dir" && as_dir=.
11706    for ac_exec_ext in '' $ac_executable_extensions; do
11707  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11708    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11709    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11710    break 2
11711  fi
11712done
11713  done
11714IFS=$as_save_IFS
11715
11716fi
11717fi
11718STRIP=$ac_cv_prog_STRIP
11719if test -n "$STRIP"; then
11720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11721$as_echo "$STRIP" >&6; }
11722else
11723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11724$as_echo "no" >&6; }
11725fi
11726
11727
11728fi
11729if test -z "$ac_cv_prog_STRIP"; then
11730  ac_ct_STRIP=$STRIP
11731  # Extract the first word of "strip", so it can be a program name with args.
11732set dummy strip; ac_word=$2
11733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11734$as_echo_n "checking for $ac_word... " >&6; }
11735if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
11736  $as_echo_n "(cached) " >&6
11737else
11738  if test -n "$ac_ct_STRIP"; then
11739  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11740else
11741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11742for as_dir in $PATH
11743do
11744  IFS=$as_save_IFS
11745  test -z "$as_dir" && as_dir=.
11746    for ac_exec_ext in '' $ac_executable_extensions; do
11747  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11748    ac_cv_prog_ac_ct_STRIP="strip"
11749    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11750    break 2
11751  fi
11752done
11753  done
11754IFS=$as_save_IFS
11755
11756fi
11757fi
11758ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11759if test -n "$ac_ct_STRIP"; then
11760  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11761$as_echo "$ac_ct_STRIP" >&6; }
11762else
11763  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11764$as_echo "no" >&6; }
11765fi
11766
11767  if test "x$ac_ct_STRIP" = x; then
11768    STRIP=":"
11769  else
11770    case $cross_compiling:$ac_tool_warned in
11771yes:)
11772{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11773$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11774ac_tool_warned=yes ;;
11775esac
11776    STRIP=$ac_ct_STRIP
11777  fi
11778else
11779  STRIP="$ac_cv_prog_STRIP"
11780fi
11781
11782fi
11783INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
11784
11785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
11786$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
11787if test -z "$MKDIR_P"; then
11788  if ${ac_cv_path_mkdir+:} false; then :
11789  $as_echo_n "(cached) " >&6
11790else
11791  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11792for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
11793do
11794  IFS=$as_save_IFS
11795  test -z "$as_dir" && as_dir=.
11796    for ac_prog in mkdir gmkdir; do
11797	 for ac_exec_ext in '' $ac_executable_extensions; do
11798	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
11799	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
11800	     'mkdir (GNU coreutils) '* | \
11801	     'mkdir (coreutils) '* | \
11802	     'mkdir (fileutils) '4.1*)
11803	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
11804	       break 3;;
11805	   esac
11806	 done
11807       done
11808  done
11809IFS=$as_save_IFS
11810
11811fi
11812
11813  test -d ./--version && rmdir ./--version
11814  if test "${ac_cv_path_mkdir+set}" = set; then
11815    MKDIR_P="$ac_cv_path_mkdir -p"
11816  else
11817    # As a last resort, use the slow shell script.  Don't cache a
11818    # value for MKDIR_P within a source directory, because that will
11819    # break other packages using the cache if that directory is
11820    # removed, or if the value is a relative name.
11821    MKDIR_P="$ac_install_sh -d"
11822  fi
11823fi
11824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
11825$as_echo "$MKDIR_P" >&6; }
11826
11827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11828$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11829set x ${MAKE-make}
11830ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11831if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
11832  $as_echo_n "(cached) " >&6
11833else
11834  cat >conftest.make <<\_ACEOF
11835SHELL = /bin/sh
11836all:
11837	@echo '@@@%%%=$(MAKE)=@@@%%%'
11838_ACEOF
11839# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11840case `${MAKE-make} -f conftest.make 2>/dev/null` in
11841  *@@@%%%=?*=@@@%%%*)
11842    eval ac_cv_prog_make_${ac_make}_set=yes;;
11843  *)
11844    eval ac_cv_prog_make_${ac_make}_set=no;;
11845esac
11846rm -f conftest.make
11847fi
11848if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11849  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11850$as_echo "yes" >&6; }
11851  SET_MAKE=
11852else
11853  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11854$as_echo "no" >&6; }
11855  SET_MAKE="MAKE=${MAKE-make}"
11856fi
11857
11858rm -rf .tst 2>/dev/null
11859mkdir .tst 2>/dev/null
11860if test -d .tst; then
11861  am__leading_dot=.
11862else
11863  am__leading_dot=_
11864fi
11865rmdir .tst 2>/dev/null
11866
11867DEPDIR="${am__leading_dot}deps"
11868
11869ac_config_commands="$ac_config_commands depfiles"
11870
11871
11872am_make=${MAKE-make}
11873cat > confinc << 'END'
11874am__doit:
11875	@echo this is the am__doit target
11876.PHONY: am__doit
11877END
11878# If we don't find an include directive, just comment out the code.
11879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
11880$as_echo_n "checking for style of include used by $am_make... " >&6; }
11881am__include="#"
11882am__quote=
11883_am_result=none
11884# First try GNU make style include.
11885echo "include confinc" > confmf
11886# Ignore all kinds of additional output from 'make'.
11887case `$am_make -s -f confmf 2> /dev/null` in #(
11888*the\ am__doit\ target*)
11889  am__include=include
11890  am__quote=
11891  _am_result=GNU
11892  ;;
11893esac
11894# Now try BSD make style include.
11895if test "$am__include" = "#"; then
11896   echo '.include "confinc"' > confmf
11897   case `$am_make -s -f confmf 2> /dev/null` in #(
11898   *the\ am__doit\ target*)
11899     am__include=.include
11900     am__quote="\""
11901     _am_result=BSD
11902     ;;
11903   esac
11904fi
11905
11906
11907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
11908$as_echo "$_am_result" >&6; }
11909rm -f confinc confmf
11910
11911# Check whether --enable-dependency-tracking was given.
11912if test "${enable_dependency_tracking+set}" = set; then :
11913  enableval=$enable_dependency_tracking;
11914fi
11915
11916if test "x$enable_dependency_tracking" != xno; then
11917  am_depcomp="$ac_aux_dir/depcomp"
11918  AMDEPBACKSLASH='\'
11919  am__nodep='_no'
11920fi
11921 if test "x$enable_dependency_tracking" != xno; then
11922  AMDEP_TRUE=
11923  AMDEP_FALSE='#'
11924else
11925  AMDEP_TRUE='#'
11926  AMDEP_FALSE=
11927fi
11928
11929
11930# Check whether --enable-silent-rules was given.
11931if test "${enable_silent_rules+set}" = set; then :
11932  enableval=$enable_silent_rules;
11933fi
11934
11935case $enable_silent_rules in # (((
11936  yes) AM_DEFAULT_VERBOSITY=0;;
11937   no) AM_DEFAULT_VERBOSITY=1;;
11938    *) AM_DEFAULT_VERBOSITY=1;;
11939esac
11940am_make=${MAKE-make}
11941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11942$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
11943if ${am_cv_make_support_nested_variables+:} false; then :
11944  $as_echo_n "(cached) " >&6
11945else
11946  if $as_echo 'TRUE=$(BAR$(V))
11947BAR0=false
11948BAR1=true
11949V=1
11950am__doit:
11951	@$(TRUE)
11952.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11953  am_cv_make_support_nested_variables=yes
11954else
11955  am_cv_make_support_nested_variables=no
11956fi
11957fi
11958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11959$as_echo "$am_cv_make_support_nested_variables" >&6; }
11960if test $am_cv_make_support_nested_variables = yes; then
11961    AM_V='$(V)'
11962  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11963else
11964  AM_V=$AM_DEFAULT_VERBOSITY
11965  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11966fi
11967AM_BACKSLASH='\'
11968
11969if test "`cd $srcdir && pwd`" != "`pwd`"; then
11970  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
11971  # is not polluted with repeated "-I."
11972  am__isrc=' -I$(srcdir)'
11973  # test to see if srcdir already configured
11974  if test -f $srcdir/config.status; then
11975    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
11976  fi
11977fi
11978
11979# test whether we have cygpath
11980if test -z "$CYGPATH_W"; then
11981  if (cygpath --version) >/dev/null 2>/dev/null; then
11982    CYGPATH_W='cygpath -w'
11983  else
11984    CYGPATH_W=echo
11985  fi
11986fi
11987
11988
11989# Define the identity of the package.
11990 PACKAGE='flex'
11991 VERSION='2.6.3'
11992
11993
11994cat >>confdefs.h <<_ACEOF
11995#define PACKAGE "$PACKAGE"
11996_ACEOF
11997
11998
11999cat >>confdefs.h <<_ACEOF
12000#define VERSION "$VERSION"
12001_ACEOF
12002
12003# Some tools Automake needs.
12004
12005ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
12006
12007
12008AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
12009
12010
12011AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
12012
12013
12014AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
12015
12016
12017MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
12018
12019# For better backward compatibility.  To be removed once Automake 1.9.x
12020# dies out for good.  For more background, see:
12021# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
12022# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
12023mkdir_p='$(MKDIR_P)'
12024
12025# We need awk for the "check" target (and possibly the TAP driver).  The
12026# system "awk" is bad on some platforms.
12027# Always define AMTAR for backward compatibility.  Yes, it's still used
12028# in the wild :-(  We should find a proper way to deprecate it ...
12029AMTAR='$${TAR-tar}'
12030
12031
12032# We'll loop over all known methods to create a tar archive until one works.
12033_am_tools='gnutar  pax cpio none'
12034
12035am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
12036
12037
12038
12039
12040
12041depcc="$CC"   am_compiler_list=
12042
12043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12044$as_echo_n "checking dependency style of $depcc... " >&6; }
12045if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12046  $as_echo_n "(cached) " >&6
12047else
12048  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12049  # We make a subdir and do the tests there.  Otherwise we can end up
12050  # making bogus files that we don't know about and never remove.  For
12051  # instance it was reported that on HP-UX the gcc test will end up
12052  # making a dummy file named 'D' -- because '-MD' means "put the output
12053  # in D".
12054  rm -rf conftest.dir
12055  mkdir conftest.dir
12056  # Copy depcomp to subdir because otherwise we won't find it if we're
12057  # using a relative directory.
12058  cp "$am_depcomp" conftest.dir
12059  cd conftest.dir
12060  # We will build objects and dependencies in a subdirectory because
12061  # it helps to detect inapplicable dependency modes.  For instance
12062  # both Tru64's cc and ICC support -MD to output dependencies as a
12063  # side effect of compilation, but ICC will put the dependencies in
12064  # the current directory while Tru64 will put them in the object
12065  # directory.
12066  mkdir sub
12067
12068  am_cv_CC_dependencies_compiler_type=none
12069  if test "$am_compiler_list" = ""; then
12070     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12071  fi
12072  am__universal=false
12073  case " $depcc " in #(
12074     *\ -arch\ *\ -arch\ *) am__universal=true ;;
12075     esac
12076
12077  for depmode in $am_compiler_list; do
12078    # Setup a source with many dependencies, because some compilers
12079    # like to wrap large dependency lists on column 80 (with \), and
12080    # we should not choose a depcomp mode which is confused by this.
12081    #
12082    # We need to recreate these files for each test, as the compiler may
12083    # overwrite some of them when testing with obscure command lines.
12084    # This happens at least with the AIX C compiler.
12085    : > sub/conftest.c
12086    for i in 1 2 3 4 5 6; do
12087      echo '#include "conftst'$i'.h"' >> sub/conftest.c
12088      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12089      # Solaris 10 /bin/sh.
12090      echo '/* dummy */' > sub/conftst$i.h
12091    done
12092    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12093
12094    # We check with '-c' and '-o' for the sake of the "dashmstdout"
12095    # mode.  It turns out that the SunPro C++ compiler does not properly
12096    # handle '-M -o', and we need to detect this.  Also, some Intel
12097    # versions had trouble with output in subdirs.
12098    am__obj=sub/conftest.${OBJEXT-o}
12099    am__minus_obj="-o $am__obj"
12100    case $depmode in
12101    gcc)
12102      # This depmode causes a compiler race in universal mode.
12103      test "$am__universal" = false || continue
12104      ;;
12105    nosideeffect)
12106      # After this tag, mechanisms are not by side-effect, so they'll
12107      # only be used when explicitly requested.
12108      if test "x$enable_dependency_tracking" = xyes; then
12109	continue
12110      else
12111	break
12112      fi
12113      ;;
12114    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12115      # This compiler won't grok '-c -o', but also, the minuso test has
12116      # not run yet.  These depmodes are late enough in the game, and
12117      # so weak that their functioning should not be impacted.
12118      am__obj=conftest.${OBJEXT-o}
12119      am__minus_obj=
12120      ;;
12121    none) break ;;
12122    esac
12123    if depmode=$depmode \
12124       source=sub/conftest.c object=$am__obj \
12125       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12126       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12127         >/dev/null 2>conftest.err &&
12128       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12129       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12130       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12131       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12132      # icc doesn't choke on unknown options, it will just issue warnings
12133      # or remarks (even with -Werror).  So we grep stderr for any message
12134      # that says an option was ignored or not supported.
12135      # When given -MP, icc 7.0 and 7.1 complain thusly:
12136      #   icc: Command line warning: ignoring option '-M'; no argument required
12137      # The diagnosis changed in icc 8.0:
12138      #   icc: Command line remark: option '-MP' not supported
12139      if (grep 'ignoring option' conftest.err ||
12140          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12141        am_cv_CC_dependencies_compiler_type=$depmode
12142        break
12143      fi
12144    fi
12145  done
12146
12147  cd ..
12148  rm -rf conftest.dir
12149else
12150  am_cv_CC_dependencies_compiler_type=none
12151fi
12152
12153fi
12154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12155$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12156CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12157
12158 if
12159  test "x$enable_dependency_tracking" != xno \
12160  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12161  am__fastdepCC_TRUE=
12162  am__fastdepCC_FALSE='#'
12163else
12164  am__fastdepCC_TRUE='#'
12165  am__fastdepCC_FALSE=
12166fi
12167
12168
12169
12170# POSIX will say in a future version that running "rm -f" with no argument
12171# is OK; and we want to be able to make that assumption in our Makefile
12172# recipes.  So use an aggressive probe to check that the usage we want is
12173# actually supported "in the wild" to an acceptable degree.
12174# See automake bug#10828.
12175# To make any issue more visible, cause the running configure to be aborted
12176# by default if the 'rm' program in use doesn't match our expectations; the
12177# user can still override this though.
12178if rm -f && rm -fr && rm -rf; then : OK; else
12179  cat >&2 <<'END'
12180Oops!
12181
12182Your 'rm' program seems unable to run without file operands specified
12183on the command line, even when the '-f' option is present.  This is contrary
12184to the behaviour of most rm programs out there, and not conforming with
12185the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
12186
12187Please tell bug-automake@gnu.org about your system, including the value
12188of your $PATH and any error possibly output before this message.  This
12189can help us improve future automake versions.
12190
12191END
12192  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
12193    echo 'Configuration will proceed anyway, since you have set the' >&2
12194    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
12195    echo >&2
12196  else
12197    cat >&2 <<'END'
12198Aborting the configuration process, to ensure you take notice of the issue.
12199
12200You can download and install GNU coreutils to get an 'rm' implementation
12201that behaves properly: <http://www.gnu.org/software/coreutils/>.
12202
12203If you want to complete the configuration process using your problematic
12204'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
12205to "yes", and re-run configure.
12206
12207END
12208    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
12209  fi
12210fi
12211
12212ac_config_headers="$ac_config_headers src/config.h"
12213
12214
12215
12216SHARED_VERSION_INFO="2:0:0"
12217
12218
12219# checks for programs
12220
12221
12222  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12223$as_echo_n "checking whether NLS is requested... " >&6; }
12224    # Check whether --enable-nls was given.
12225if test "${enable_nls+set}" = set; then :
12226  enableval=$enable_nls; USE_NLS=$enableval
12227else
12228  USE_NLS=yes
12229fi
12230
12231  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12232$as_echo "$USE_NLS" >&6; }
12233
12234
12235
12236
12237      GETTEXT_MACRO_VERSION=0.19
12238
12239
12240
12241
12242# Prepare PATH_SEPARATOR.
12243# The user is always right.
12244if test "${PATH_SEPARATOR+set}" != set; then
12245  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
12246  # contains only /bin. Note that ksh looks also at the FPATH variable,
12247  # so we have to set that as well for the test.
12248  PATH_SEPARATOR=:
12249  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
12250    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
12251           || PATH_SEPARATOR=';'
12252       }
12253fi
12254
12255# Find out how to test for executable files. Don't use a zero-byte file,
12256# as systems may use methods other than mode bits to determine executability.
12257cat >conf$$.file <<_ASEOF
12258#! /bin/sh
12259exit 0
12260_ASEOF
12261chmod +x conf$$.file
12262if test -x conf$$.file >/dev/null 2>&1; then
12263  ac_executable_p="test -x"
12264else
12265  ac_executable_p="test -f"
12266fi
12267rm -f conf$$.file
12268
12269# Extract the first word of "msgfmt", so it can be a program name with args.
12270set dummy msgfmt; ac_word=$2
12271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12272$as_echo_n "checking for $ac_word... " >&6; }
12273if ${ac_cv_path_MSGFMT+:} false; then :
12274  $as_echo_n "(cached) " >&6
12275else
12276  case "$MSGFMT" in
12277  [\\/]* | ?:[\\/]*)
12278    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12279    ;;
12280  *)
12281    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12282    for ac_dir in $PATH; do
12283      IFS="$ac_save_IFS"
12284      test -z "$ac_dir" && ac_dir=.
12285      for ac_exec_ext in '' $ac_executable_extensions; do
12286        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12287          echo "$as_me: trying $ac_dir/$ac_word..." >&5
12288          if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
12289     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12290            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12291            break 2
12292          fi
12293        fi
12294      done
12295    done
12296    IFS="$ac_save_IFS"
12297  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12298    ;;
12299esac
12300fi
12301MSGFMT="$ac_cv_path_MSGFMT"
12302if test "$MSGFMT" != ":"; then
12303  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12304$as_echo "$MSGFMT" >&6; }
12305else
12306  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12307$as_echo "no" >&6; }
12308fi
12309
12310  # Extract the first word of "gmsgfmt", so it can be a program name with args.
12311set dummy gmsgfmt; ac_word=$2
12312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12313$as_echo_n "checking for $ac_word... " >&6; }
12314if ${ac_cv_path_GMSGFMT+:} false; then :
12315  $as_echo_n "(cached) " >&6
12316else
12317  case $GMSGFMT in
12318  [\\/]* | ?:[\\/]*)
12319  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12320  ;;
12321  *)
12322  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12323for as_dir in $PATH
12324do
12325  IFS=$as_save_IFS
12326  test -z "$as_dir" && as_dir=.
12327    for ac_exec_ext in '' $ac_executable_extensions; do
12328  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12329    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12330    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12331    break 2
12332  fi
12333done
12334  done
12335IFS=$as_save_IFS
12336
12337  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12338  ;;
12339esac
12340fi
12341GMSGFMT=$ac_cv_path_GMSGFMT
12342if test -n "$GMSGFMT"; then
12343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12344$as_echo "$GMSGFMT" >&6; }
12345else
12346  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12347$as_echo "no" >&6; }
12348fi
12349
12350
12351
12352    case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12353    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
12354    *) MSGFMT_015=$MSGFMT ;;
12355  esac
12356
12357  case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12358    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
12359    *) GMSGFMT_015=$GMSGFMT ;;
12360  esac
12361
12362
12363
12364# Prepare PATH_SEPARATOR.
12365# The user is always right.
12366if test "${PATH_SEPARATOR+set}" != set; then
12367  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
12368  # contains only /bin. Note that ksh looks also at the FPATH variable,
12369  # so we have to set that as well for the test.
12370  PATH_SEPARATOR=:
12371  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
12372    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
12373           || PATH_SEPARATOR=';'
12374       }
12375fi
12376
12377# Find out how to test for executable files. Don't use a zero-byte file,
12378# as systems may use methods other than mode bits to determine executability.
12379cat >conf$$.file <<_ASEOF
12380#! /bin/sh
12381exit 0
12382_ASEOF
12383chmod +x conf$$.file
12384if test -x conf$$.file >/dev/null 2>&1; then
12385  ac_executable_p="test -x"
12386else
12387  ac_executable_p="test -f"
12388fi
12389rm -f conf$$.file
12390
12391# Extract the first word of "xgettext", so it can be a program name with args.
12392set dummy xgettext; ac_word=$2
12393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12394$as_echo_n "checking for $ac_word... " >&6; }
12395if ${ac_cv_path_XGETTEXT+:} false; then :
12396  $as_echo_n "(cached) " >&6
12397else
12398  case "$XGETTEXT" in
12399  [\\/]* | ?:[\\/]*)
12400    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12401    ;;
12402  *)
12403    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12404    for ac_dir in $PATH; do
12405      IFS="$ac_save_IFS"
12406      test -z "$ac_dir" && ac_dir=.
12407      for ac_exec_ext in '' $ac_executable_extensions; do
12408        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12409          echo "$as_me: trying $ac_dir/$ac_word..." >&5
12410          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
12411     (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
12412            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12413            break 2
12414          fi
12415        fi
12416      done
12417    done
12418    IFS="$ac_save_IFS"
12419  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12420    ;;
12421esac
12422fi
12423XGETTEXT="$ac_cv_path_XGETTEXT"
12424if test "$XGETTEXT" != ":"; then
12425  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12426$as_echo "$XGETTEXT" >&6; }
12427else
12428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12429$as_echo "no" >&6; }
12430fi
12431
12432    rm -f messages.po
12433
12434    case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12435    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
12436    *) XGETTEXT_015=$XGETTEXT ;;
12437  esac
12438
12439
12440
12441# Prepare PATH_SEPARATOR.
12442# The user is always right.
12443if test "${PATH_SEPARATOR+set}" != set; then
12444  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
12445  # contains only /bin. Note that ksh looks also at the FPATH variable,
12446  # so we have to set that as well for the test.
12447  PATH_SEPARATOR=:
12448  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
12449    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
12450           || PATH_SEPARATOR=';'
12451       }
12452fi
12453
12454# Find out how to test for executable files. Don't use a zero-byte file,
12455# as systems may use methods other than mode bits to determine executability.
12456cat >conf$$.file <<_ASEOF
12457#! /bin/sh
12458exit 0
12459_ASEOF
12460chmod +x conf$$.file
12461if test -x conf$$.file >/dev/null 2>&1; then
12462  ac_executable_p="test -x"
12463else
12464  ac_executable_p="test -f"
12465fi
12466rm -f conf$$.file
12467
12468# Extract the first word of "msgmerge", so it can be a program name with args.
12469set dummy msgmerge; ac_word=$2
12470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12471$as_echo_n "checking for $ac_word... " >&6; }
12472if ${ac_cv_path_MSGMERGE+:} false; then :
12473  $as_echo_n "(cached) " >&6
12474else
12475  case "$MSGMERGE" in
12476  [\\/]* | ?:[\\/]*)
12477    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12478    ;;
12479  *)
12480    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12481    for ac_dir in $PATH; do
12482      IFS="$ac_save_IFS"
12483      test -z "$ac_dir" && ac_dir=.
12484      for ac_exec_ext in '' $ac_executable_extensions; do
12485        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12486          echo "$as_me: trying $ac_dir/$ac_word..." >&5
12487          if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
12488            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12489            break 2
12490          fi
12491        fi
12492      done
12493    done
12494    IFS="$ac_save_IFS"
12495  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12496    ;;
12497esac
12498fi
12499MSGMERGE="$ac_cv_path_MSGMERGE"
12500if test "$MSGMERGE" != ":"; then
12501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12502$as_echo "$MSGMERGE" >&6; }
12503else
12504  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12505$as_echo "no" >&6; }
12506fi
12507
12508
12509        test -n "$localedir" || localedir='${datadir}/locale'
12510
12511
12512    test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
12513
12514
12515  ac_config_commands="$ac_config_commands po-directories"
12516
12517
12518
12519      if test "X$prefix" = "XNONE"; then
12520    acl_final_prefix="$ac_default_prefix"
12521  else
12522    acl_final_prefix="$prefix"
12523  fi
12524  if test "X$exec_prefix" = "XNONE"; then
12525    acl_final_exec_prefix='${prefix}'
12526  else
12527    acl_final_exec_prefix="$exec_prefix"
12528  fi
12529  acl_save_prefix="$prefix"
12530  prefix="$acl_final_prefix"
12531  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
12532  prefix="$acl_save_prefix"
12533
12534
12535
12536# Check whether --with-gnu-ld was given.
12537if test "${with_gnu_ld+set}" = set; then :
12538  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12539else
12540  with_gnu_ld=no
12541fi
12542
12543# Prepare PATH_SEPARATOR.
12544# The user is always right.
12545if test "${PATH_SEPARATOR+set}" != set; then
12546  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
12547  # contains only /bin. Note that ksh looks also at the FPATH variable,
12548  # so we have to set that as well for the test.
12549  PATH_SEPARATOR=:
12550  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
12551    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
12552           || PATH_SEPARATOR=';'
12553       }
12554fi
12555
12556ac_prog=ld
12557if test "$GCC" = yes; then
12558  # Check if gcc -print-prog-name=ld gives a path.
12559  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12560$as_echo_n "checking for ld used by $CC... " >&6; }
12561  case $host in
12562  *-*-mingw*)
12563    # gcc leaves a trailing carriage return which upsets mingw
12564    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12565  *)
12566    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12567  esac
12568  case $ac_prog in
12569    # Accept absolute paths.
12570    [\\/]* | ?:[\\/]*)
12571      re_direlt='/[^/][^/]*/\.\./'
12572      # Canonicalize the pathname of ld
12573      ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
12574      while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
12575        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
12576      done
12577      test -z "$LD" && LD="$ac_prog"
12578      ;;
12579  "")
12580    # If it fails, then pretend we aren't using GCC.
12581    ac_prog=ld
12582    ;;
12583  *)
12584    # If it is relative, then search for the first ld in PATH.
12585    with_gnu_ld=unknown
12586    ;;
12587  esac
12588elif test "$with_gnu_ld" = yes; then
12589  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12590$as_echo_n "checking for GNU ld... " >&6; }
12591else
12592  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12593$as_echo_n "checking for non-GNU ld... " >&6; }
12594fi
12595if ${acl_cv_path_LD+:} false; then :
12596  $as_echo_n "(cached) " >&6
12597else
12598  if test -z "$LD"; then
12599  acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12600  for ac_dir in $PATH; do
12601    IFS="$acl_save_ifs"
12602    test -z "$ac_dir" && ac_dir=.
12603    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12604      acl_cv_path_LD="$ac_dir/$ac_prog"
12605      # Check to see if the program is GNU ld.  I'd rather use --version,
12606      # but apparently some variants of GNU ld only accept -v.
12607      # Break only if it was the GNU/non-GNU ld that we prefer.
12608      case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
12609      *GNU* | *'with BFD'*)
12610        test "$with_gnu_ld" != no && break
12611        ;;
12612      *)
12613        test "$with_gnu_ld" != yes && break
12614        ;;
12615      esac
12616    fi
12617  done
12618  IFS="$acl_save_ifs"
12619else
12620  acl_cv_path_LD="$LD" # Let the user override the test with a path.
12621fi
12622fi
12623
12624LD="$acl_cv_path_LD"
12625if test -n "$LD"; then
12626  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12627$as_echo "$LD" >&6; }
12628else
12629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12630$as_echo "no" >&6; }
12631fi
12632test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12634$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12635if ${acl_cv_prog_gnu_ld+:} false; then :
12636  $as_echo_n "(cached) " >&6
12637else
12638  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12639case `$LD -v 2>&1 </dev/null` in
12640*GNU* | *'with BFD'*)
12641  acl_cv_prog_gnu_ld=yes
12642  ;;
12643*)
12644  acl_cv_prog_gnu_ld=no
12645  ;;
12646esac
12647fi
12648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
12649$as_echo "$acl_cv_prog_gnu_ld" >&6; }
12650with_gnu_ld=$acl_cv_prog_gnu_ld
12651
12652
12653
12654
12655                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
12656$as_echo_n "checking for shared library run path origin... " >&6; }
12657if ${acl_cv_rpath+:} false; then :
12658  $as_echo_n "(cached) " >&6
12659else
12660
12661    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
12662    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
12663    . ./conftest.sh
12664    rm -f ./conftest.sh
12665    acl_cv_rpath=done
12666
12667fi
12668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
12669$as_echo "$acl_cv_rpath" >&6; }
12670  wl="$acl_cv_wl"
12671  acl_libext="$acl_cv_libext"
12672  acl_shlibext="$acl_cv_shlibext"
12673  acl_libname_spec="$acl_cv_libname_spec"
12674  acl_library_names_spec="$acl_cv_library_names_spec"
12675  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
12676  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
12677  acl_hardcode_direct="$acl_cv_hardcode_direct"
12678  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
12679    # Check whether --enable-rpath was given.
12680if test "${enable_rpath+set}" = set; then :
12681  enableval=$enable_rpath; :
12682else
12683  enable_rpath=yes
12684fi
12685
12686
12687
12688
12689  acl_libdirstem=lib
12690  acl_libdirstem2=
12691  case "$host_os" in
12692    solaris*)
12693                                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
12694$as_echo_n "checking for 64-bit host... " >&6; }
12695if ${gl_cv_solaris_64bit+:} false; then :
12696  $as_echo_n "(cached) " >&6
12697else
12698  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12699/* end confdefs.h.  */
12700
12701#ifdef _LP64
12702sixtyfour bits
12703#endif
12704
12705_ACEOF
12706if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12707  $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
12708  gl_cv_solaris_64bit=yes
12709else
12710  gl_cv_solaris_64bit=no
12711fi
12712rm -f conftest*
12713
12714
12715fi
12716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
12717$as_echo "$gl_cv_solaris_64bit" >&6; }
12718      if test $gl_cv_solaris_64bit = yes; then
12719        acl_libdirstem=lib/64
12720        case "$host_cpu" in
12721          sparc*)        acl_libdirstem2=lib/sparcv9 ;;
12722          i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
12723        esac
12724      fi
12725      ;;
12726    *)
12727      searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
12728      if test -n "$searchpath"; then
12729        acl_save_IFS="${IFS= 	}"; IFS=":"
12730        for searchdir in $searchpath; do
12731          if test -d "$searchdir"; then
12732            case "$searchdir" in
12733              */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
12734              */../ | */.. )
12735                # Better ignore directories of this form. They are misleading.
12736                ;;
12737              *) searchdir=`cd "$searchdir" && pwd`
12738                 case "$searchdir" in
12739                   */lib64 ) acl_libdirstem=lib64 ;;
12740                 esac ;;
12741            esac
12742          fi
12743        done
12744        IFS="$acl_save_IFS"
12745      fi
12746      ;;
12747  esac
12748  test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761    use_additional=yes
12762
12763  acl_save_prefix="$prefix"
12764  prefix="$acl_final_prefix"
12765  acl_save_exec_prefix="$exec_prefix"
12766  exec_prefix="$acl_final_exec_prefix"
12767
12768    eval additional_includedir=\"$includedir\"
12769    eval additional_libdir=\"$libdir\"
12770
12771  exec_prefix="$acl_save_exec_prefix"
12772  prefix="$acl_save_prefix"
12773
12774
12775# Check whether --with-libiconv-prefix was given.
12776if test "${with_libiconv_prefix+set}" = set; then :
12777  withval=$with_libiconv_prefix;
12778    if test "X$withval" = "Xno"; then
12779      use_additional=no
12780    else
12781      if test "X$withval" = "X"; then
12782
12783  acl_save_prefix="$prefix"
12784  prefix="$acl_final_prefix"
12785  acl_save_exec_prefix="$exec_prefix"
12786  exec_prefix="$acl_final_exec_prefix"
12787
12788          eval additional_includedir=\"$includedir\"
12789          eval additional_libdir=\"$libdir\"
12790
12791  exec_prefix="$acl_save_exec_prefix"
12792  prefix="$acl_save_prefix"
12793
12794      else
12795        additional_includedir="$withval/include"
12796        additional_libdir="$withval/$acl_libdirstem"
12797        if test "$acl_libdirstem2" != "$acl_libdirstem" \
12798           && ! test -d "$withval/$acl_libdirstem"; then
12799          additional_libdir="$withval/$acl_libdirstem2"
12800        fi
12801      fi
12802    fi
12803
12804fi
12805
12806      LIBICONV=
12807  LTLIBICONV=
12808  INCICONV=
12809  LIBICONV_PREFIX=
12810      HAVE_LIBICONV=
12811  rpathdirs=
12812  ltrpathdirs=
12813  names_already_handled=
12814  names_next_round='iconv '
12815  while test -n "$names_next_round"; do
12816    names_this_round="$names_next_round"
12817    names_next_round=
12818    for name in $names_this_round; do
12819      already_handled=
12820      for n in $names_already_handled; do
12821        if test "$n" = "$name"; then
12822          already_handled=yes
12823          break
12824        fi
12825      done
12826      if test -z "$already_handled"; then
12827        names_already_handled="$names_already_handled $name"
12828                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
12829        eval value=\"\$HAVE_LIB$uppername\"
12830        if test -n "$value"; then
12831          if test "$value" = yes; then
12832            eval value=\"\$LIB$uppername\"
12833            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
12834            eval value=\"\$LTLIB$uppername\"
12835            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
12836          else
12837                                    :
12838          fi
12839        else
12840                              found_dir=
12841          found_la=
12842          found_so=
12843          found_a=
12844          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
12845          if test -n "$acl_shlibext"; then
12846            shrext=".$acl_shlibext"             # typically: shrext=.so
12847          else
12848            shrext=
12849          fi
12850          if test $use_additional = yes; then
12851            dir="$additional_libdir"
12852                                    if test -n "$acl_shlibext"; then
12853              if test -f "$dir/$libname$shrext"; then
12854                found_dir="$dir"
12855                found_so="$dir/$libname$shrext"
12856              else
12857                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12858                  ver=`(cd "$dir" && \
12859                        for f in "$libname$shrext".*; do echo "$f"; done \
12860                        | sed -e "s,^$libname$shrext\\\\.,," \
12861                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12862                        | sed 1q ) 2>/dev/null`
12863                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12864                    found_dir="$dir"
12865                    found_so="$dir/$libname$shrext.$ver"
12866                  fi
12867                else
12868                  eval library_names=\"$acl_library_names_spec\"
12869                  for f in $library_names; do
12870                    if test -f "$dir/$f"; then
12871                      found_dir="$dir"
12872                      found_so="$dir/$f"
12873                      break
12874                    fi
12875                  done
12876                fi
12877              fi
12878            fi
12879                        if test "X$found_dir" = "X"; then
12880              if test -f "$dir/$libname.$acl_libext"; then
12881                found_dir="$dir"
12882                found_a="$dir/$libname.$acl_libext"
12883              fi
12884            fi
12885            if test "X$found_dir" != "X"; then
12886              if test -f "$dir/$libname.la"; then
12887                found_la="$dir/$libname.la"
12888              fi
12889            fi
12890          fi
12891          if test "X$found_dir" = "X"; then
12892            for x in $LDFLAGS $LTLIBICONV; do
12893
12894  acl_save_prefix="$prefix"
12895  prefix="$acl_final_prefix"
12896  acl_save_exec_prefix="$exec_prefix"
12897  exec_prefix="$acl_final_exec_prefix"
12898  eval x=\"$x\"
12899  exec_prefix="$acl_save_exec_prefix"
12900  prefix="$acl_save_prefix"
12901
12902              case "$x" in
12903                -L*)
12904                  dir=`echo "X$x" | sed -e 's/^X-L//'`
12905                                    if test -n "$acl_shlibext"; then
12906                    if test -f "$dir/$libname$shrext"; then
12907                      found_dir="$dir"
12908                      found_so="$dir/$libname$shrext"
12909                    else
12910                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12911                        ver=`(cd "$dir" && \
12912                              for f in "$libname$shrext".*; do echo "$f"; done \
12913                              | sed -e "s,^$libname$shrext\\\\.,," \
12914                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12915                              | sed 1q ) 2>/dev/null`
12916                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12917                          found_dir="$dir"
12918                          found_so="$dir/$libname$shrext.$ver"
12919                        fi
12920                      else
12921                        eval library_names=\"$acl_library_names_spec\"
12922                        for f in $library_names; do
12923                          if test -f "$dir/$f"; then
12924                            found_dir="$dir"
12925                            found_so="$dir/$f"
12926                            break
12927                          fi
12928                        done
12929                      fi
12930                    fi
12931                  fi
12932                                    if test "X$found_dir" = "X"; then
12933                    if test -f "$dir/$libname.$acl_libext"; then
12934                      found_dir="$dir"
12935                      found_a="$dir/$libname.$acl_libext"
12936                    fi
12937                  fi
12938                  if test "X$found_dir" != "X"; then
12939                    if test -f "$dir/$libname.la"; then
12940                      found_la="$dir/$libname.la"
12941                    fi
12942                  fi
12943                  ;;
12944              esac
12945              if test "X$found_dir" != "X"; then
12946                break
12947              fi
12948            done
12949          fi
12950          if test "X$found_dir" != "X"; then
12951                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
12952            if test "X$found_so" != "X"; then
12953                                                        if test "$enable_rpath" = no \
12954                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
12955                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
12956                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12957              else
12958                                                                                haveit=
12959                for x in $ltrpathdirs; do
12960                  if test "X$x" = "X$found_dir"; then
12961                    haveit=yes
12962                    break
12963                  fi
12964                done
12965                if test -z "$haveit"; then
12966                  ltrpathdirs="$ltrpathdirs $found_dir"
12967                fi
12968                                if test "$acl_hardcode_direct" = yes; then
12969                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12970                else
12971                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
12972                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12973                                                            haveit=
12974                    for x in $rpathdirs; do
12975                      if test "X$x" = "X$found_dir"; then
12976                        haveit=yes
12977                        break
12978                      fi
12979                    done
12980                    if test -z "$haveit"; then
12981                      rpathdirs="$rpathdirs $found_dir"
12982                    fi
12983                  else
12984                                                                                haveit=
12985                    for x in $LDFLAGS $LIBICONV; do
12986
12987  acl_save_prefix="$prefix"
12988  prefix="$acl_final_prefix"
12989  acl_save_exec_prefix="$exec_prefix"
12990  exec_prefix="$acl_final_exec_prefix"
12991  eval x=\"$x\"
12992  exec_prefix="$acl_save_exec_prefix"
12993  prefix="$acl_save_prefix"
12994
12995                      if test "X$x" = "X-L$found_dir"; then
12996                        haveit=yes
12997                        break
12998                      fi
12999                    done
13000                    if test -z "$haveit"; then
13001                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13002                    fi
13003                    if test "$acl_hardcode_minus_L" != no; then
13004                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13005                    else
13006                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13007                    fi
13008                  fi
13009                fi
13010              fi
13011            else
13012              if test "X$found_a" != "X"; then
13013                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
13014              else
13015                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13016              fi
13017            fi
13018                        additional_includedir=
13019            case "$found_dir" in
13020              */$acl_libdirstem | */$acl_libdirstem/)
13021                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13022                if test "$name" = 'iconv'; then
13023                  LIBICONV_PREFIX="$basedir"
13024                fi
13025                additional_includedir="$basedir/include"
13026                ;;
13027              */$acl_libdirstem2 | */$acl_libdirstem2/)
13028                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
13029                if test "$name" = 'iconv'; then
13030                  LIBICONV_PREFIX="$basedir"
13031                fi
13032                additional_includedir="$basedir/include"
13033                ;;
13034            esac
13035            if test "X$additional_includedir" != "X"; then
13036                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
13037                haveit=
13038                if test "X$additional_includedir" = "X/usr/local/include"; then
13039                  if test -n "$GCC"; then
13040                    case $host_os in
13041                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13042                    esac
13043                  fi
13044                fi
13045                if test -z "$haveit"; then
13046                  for x in $CPPFLAGS $INCICONV; do
13047
13048  acl_save_prefix="$prefix"
13049  prefix="$acl_final_prefix"
13050  acl_save_exec_prefix="$exec_prefix"
13051  exec_prefix="$acl_final_exec_prefix"
13052  eval x=\"$x\"
13053  exec_prefix="$acl_save_exec_prefix"
13054  prefix="$acl_save_prefix"
13055
13056                    if test "X$x" = "X-I$additional_includedir"; then
13057                      haveit=yes
13058                      break
13059                    fi
13060                  done
13061                  if test -z "$haveit"; then
13062                    if test -d "$additional_includedir"; then
13063                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
13064                    fi
13065                  fi
13066                fi
13067              fi
13068            fi
13069                        if test -n "$found_la"; then
13070                                                        save_libdir="$libdir"
13071              case "$found_la" in
13072                */* | *\\*) . "$found_la" ;;
13073                *) . "./$found_la" ;;
13074              esac
13075              libdir="$save_libdir"
13076                            for dep in $dependency_libs; do
13077                case "$dep" in
13078                  -L*)
13079                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13080                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
13081                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
13082                      haveit=
13083                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
13084                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
13085                        if test -n "$GCC"; then
13086                          case $host_os in
13087                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13088                          esac
13089                        fi
13090                      fi
13091                      if test -z "$haveit"; then
13092                        haveit=
13093                        for x in $LDFLAGS $LIBICONV; do
13094
13095  acl_save_prefix="$prefix"
13096  prefix="$acl_final_prefix"
13097  acl_save_exec_prefix="$exec_prefix"
13098  exec_prefix="$acl_final_exec_prefix"
13099  eval x=\"$x\"
13100  exec_prefix="$acl_save_exec_prefix"
13101  prefix="$acl_save_prefix"
13102
13103                          if test "X$x" = "X-L$additional_libdir"; then
13104                            haveit=yes
13105                            break
13106                          fi
13107                        done
13108                        if test -z "$haveit"; then
13109                          if test -d "$additional_libdir"; then
13110                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
13111                          fi
13112                        fi
13113                        haveit=
13114                        for x in $LDFLAGS $LTLIBICONV; do
13115
13116  acl_save_prefix="$prefix"
13117  prefix="$acl_final_prefix"
13118  acl_save_exec_prefix="$exec_prefix"
13119  exec_prefix="$acl_final_exec_prefix"
13120  eval x=\"$x\"
13121  exec_prefix="$acl_save_exec_prefix"
13122  prefix="$acl_save_prefix"
13123
13124                          if test "X$x" = "X-L$additional_libdir"; then
13125                            haveit=yes
13126                            break
13127                          fi
13128                        done
13129                        if test -z "$haveit"; then
13130                          if test -d "$additional_libdir"; then
13131                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
13132                          fi
13133                        fi
13134                      fi
13135                    fi
13136                    ;;
13137                  -R*)
13138                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
13139                    if test "$enable_rpath" != no; then
13140                                                                  haveit=
13141                      for x in $rpathdirs; do
13142                        if test "X$x" = "X$dir"; then
13143                          haveit=yes
13144                          break
13145                        fi
13146                      done
13147                      if test -z "$haveit"; then
13148                        rpathdirs="$rpathdirs $dir"
13149                      fi
13150                                                                  haveit=
13151                      for x in $ltrpathdirs; do
13152                        if test "X$x" = "X$dir"; then
13153                          haveit=yes
13154                          break
13155                        fi
13156                      done
13157                      if test -z "$haveit"; then
13158                        ltrpathdirs="$ltrpathdirs $dir"
13159                      fi
13160                    fi
13161                    ;;
13162                  -l*)
13163                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13164                    ;;
13165                  *.la)
13166                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13167                    ;;
13168                  *)
13169                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
13170                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
13171                    ;;
13172                esac
13173              done
13174            fi
13175          else
13176                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13177            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
13178          fi
13179        fi
13180      fi
13181    done
13182  done
13183  if test "X$rpathdirs" != "X"; then
13184    if test -n "$acl_hardcode_libdir_separator"; then
13185                        alldirs=
13186      for found_dir in $rpathdirs; do
13187        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
13188      done
13189            acl_save_libdir="$libdir"
13190      libdir="$alldirs"
13191      eval flag=\"$acl_hardcode_libdir_flag_spec\"
13192      libdir="$acl_save_libdir"
13193      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13194    else
13195            for found_dir in $rpathdirs; do
13196        acl_save_libdir="$libdir"
13197        libdir="$found_dir"
13198        eval flag=\"$acl_hardcode_libdir_flag_spec\"
13199        libdir="$acl_save_libdir"
13200        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13201      done
13202    fi
13203  fi
13204  if test "X$ltrpathdirs" != "X"; then
13205            for found_dir in $ltrpathdirs; do
13206      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
13207    done
13208  fi
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
13241$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
13242if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
13243  $as_echo_n "(cached) " >&6
13244else
13245  gt_save_LIBS="$LIBS"
13246     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13247     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13248/* end confdefs.h.  */
13249#include <CoreFoundation/CFPreferences.h>
13250int
13251main ()
13252{
13253CFPreferencesCopyAppValue(NULL, NULL)
13254  ;
13255  return 0;
13256}
13257_ACEOF
13258if ac_fn_c_try_link "$LINENO"; then :
13259  gt_cv_func_CFPreferencesCopyAppValue=yes
13260else
13261  gt_cv_func_CFPreferencesCopyAppValue=no
13262fi
13263rm -f core conftest.err conftest.$ac_objext \
13264    conftest$ac_exeext conftest.$ac_ext
13265     LIBS="$gt_save_LIBS"
13266fi
13267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
13268$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
13269  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
13270
13271$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
13272
13273  fi
13274    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
13275$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
13276if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
13277  $as_echo_n "(cached) " >&6
13278else
13279  gt_save_LIBS="$LIBS"
13280     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13281     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13282/* end confdefs.h.  */
13283#include <CoreFoundation/CFLocale.h>
13284int
13285main ()
13286{
13287CFLocaleCopyCurrent();
13288  ;
13289  return 0;
13290}
13291_ACEOF
13292if ac_fn_c_try_link "$LINENO"; then :
13293  gt_cv_func_CFLocaleCopyCurrent=yes
13294else
13295  gt_cv_func_CFLocaleCopyCurrent=no
13296fi
13297rm -f core conftest.err conftest.$ac_objext \
13298    conftest$ac_exeext conftest.$ac_ext
13299     LIBS="$gt_save_LIBS"
13300fi
13301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
13302$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
13303  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
13304
13305$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
13306
13307  fi
13308  INTL_MACOSX_LIBS=
13309  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
13310    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
13311  fi
13312
13313
13314
13315
13316
13317
13318  LIBINTL=
13319  LTLIBINTL=
13320  POSUB=
13321
13322    case " $gt_needs " in
13323    *" need-formatstring-macros "*) gt_api_version=3 ;;
13324    *" need-ngettext "*) gt_api_version=2 ;;
13325    *) gt_api_version=1 ;;
13326  esac
13327  gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
13328  gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
13329
13330    if test "$USE_NLS" = "yes"; then
13331    gt_use_preinstalled_gnugettext=no
13332
13333
13334        if test $gt_api_version -ge 3; then
13335          gt_revision_test_code='
13336#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13337#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
13338#endif
13339typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
13340'
13341        else
13342          gt_revision_test_code=
13343        fi
13344        if test $gt_api_version -ge 2; then
13345          gt_expression_test_code=' + * ngettext ("", "", 0)'
13346        else
13347          gt_expression_test_code=
13348        fi
13349
13350        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
13351$as_echo_n "checking for GNU gettext in libc... " >&6; }
13352if eval \${$gt_func_gnugettext_libc+:} false; then :
13353  $as_echo_n "(cached) " >&6
13354else
13355  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13356/* end confdefs.h.  */
13357
13358#include <libintl.h>
13359$gt_revision_test_code
13360extern int _nl_msg_cat_cntr;
13361extern int *_nl_domain_bindings;
13362
13363int
13364main ()
13365{
13366
13367bindtextdomain ("", "");
13368return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
13369
13370  ;
13371  return 0;
13372}
13373_ACEOF
13374if ac_fn_c_try_link "$LINENO"; then :
13375  eval "$gt_func_gnugettext_libc=yes"
13376else
13377  eval "$gt_func_gnugettext_libc=no"
13378fi
13379rm -f core conftest.err conftest.$ac_objext \
13380    conftest$ac_exeext conftest.$ac_ext
13381fi
13382eval ac_res=\$$gt_func_gnugettext_libc
13383	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13384$as_echo "$ac_res" >&6; }
13385
13386        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
13387
13388
13389
13390
13391
13392          am_save_CPPFLAGS="$CPPFLAGS"
13393
13394  for element in $INCICONV; do
13395    haveit=
13396    for x in $CPPFLAGS; do
13397
13398  acl_save_prefix="$prefix"
13399  prefix="$acl_final_prefix"
13400  acl_save_exec_prefix="$exec_prefix"
13401  exec_prefix="$acl_final_exec_prefix"
13402  eval x=\"$x\"
13403  exec_prefix="$acl_save_exec_prefix"
13404  prefix="$acl_save_prefix"
13405
13406      if test "X$x" = "X$element"; then
13407        haveit=yes
13408        break
13409      fi
13410    done
13411    if test -z "$haveit"; then
13412      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13413    fi
13414  done
13415
13416
13417  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
13418$as_echo_n "checking for iconv... " >&6; }
13419if ${am_cv_func_iconv+:} false; then :
13420  $as_echo_n "(cached) " >&6
13421else
13422
13423    am_cv_func_iconv="no, consider installing GNU libiconv"
13424    am_cv_lib_iconv=no
13425    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13426/* end confdefs.h.  */
13427
13428#include <stdlib.h>
13429#include <iconv.h>
13430
13431int
13432main ()
13433{
13434iconv_t cd = iconv_open("","");
13435           iconv(cd,NULL,NULL,NULL,NULL);
13436           iconv_close(cd);
13437  ;
13438  return 0;
13439}
13440_ACEOF
13441if ac_fn_c_try_link "$LINENO"; then :
13442  am_cv_func_iconv=yes
13443fi
13444rm -f core conftest.err conftest.$ac_objext \
13445    conftest$ac_exeext conftest.$ac_ext
13446    if test "$am_cv_func_iconv" != yes; then
13447      am_save_LIBS="$LIBS"
13448      LIBS="$LIBS $LIBICONV"
13449      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13450/* end confdefs.h.  */
13451
13452#include <stdlib.h>
13453#include <iconv.h>
13454
13455int
13456main ()
13457{
13458iconv_t cd = iconv_open("","");
13459             iconv(cd,NULL,NULL,NULL,NULL);
13460             iconv_close(cd);
13461  ;
13462  return 0;
13463}
13464_ACEOF
13465if ac_fn_c_try_link "$LINENO"; then :
13466  am_cv_lib_iconv=yes
13467        am_cv_func_iconv=yes
13468fi
13469rm -f core conftest.err conftest.$ac_objext \
13470    conftest$ac_exeext conftest.$ac_ext
13471      LIBS="$am_save_LIBS"
13472    fi
13473
13474fi
13475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
13476$as_echo "$am_cv_func_iconv" >&6; }
13477  if test "$am_cv_func_iconv" = yes; then
13478    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
13479$as_echo_n "checking for working iconv... " >&6; }
13480if ${am_cv_func_iconv_works+:} false; then :
13481  $as_echo_n "(cached) " >&6
13482else
13483
13484                  am_save_LIBS="$LIBS"
13485      if test $am_cv_lib_iconv = yes; then
13486        LIBS="$LIBS $LIBICONV"
13487      fi
13488      if test "$cross_compiling" = yes; then :
13489
13490         case "$host_os" in
13491           aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
13492           *)            am_cv_func_iconv_works="guessing yes" ;;
13493         esac
13494
13495else
13496  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13497/* end confdefs.h.  */
13498
13499#include <iconv.h>
13500#include <string.h>
13501int main ()
13502{
13503  int result = 0;
13504  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
13505     returns.  */
13506  {
13507    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
13508    if (cd_utf8_to_88591 != (iconv_t)(-1))
13509      {
13510        static const char input[] = "\342\202\254"; /* EURO SIGN */
13511        char buf[10];
13512        const char *inptr = input;
13513        size_t inbytesleft = strlen (input);
13514        char *outptr = buf;
13515        size_t outbytesleft = sizeof (buf);
13516        size_t res = iconv (cd_utf8_to_88591,
13517                            (char **) &inptr, &inbytesleft,
13518                            &outptr, &outbytesleft);
13519        if (res == 0)
13520          result |= 1;
13521        iconv_close (cd_utf8_to_88591);
13522      }
13523  }
13524  /* Test against Solaris 10 bug: Failures are not distinguishable from
13525     successful returns.  */
13526  {
13527    iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
13528    if (cd_ascii_to_88591 != (iconv_t)(-1))
13529      {
13530        static const char input[] = "\263";
13531        char buf[10];
13532        const char *inptr = input;
13533        size_t inbytesleft = strlen (input);
13534        char *outptr = buf;
13535        size_t outbytesleft = sizeof (buf);
13536        size_t res = iconv (cd_ascii_to_88591,
13537                            (char **) &inptr, &inbytesleft,
13538                            &outptr, &outbytesleft);
13539        if (res == 0)
13540          result |= 2;
13541        iconv_close (cd_ascii_to_88591);
13542      }
13543  }
13544  /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
13545  {
13546    iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
13547    if (cd_88591_to_utf8 != (iconv_t)(-1))
13548      {
13549        static const char input[] = "\304";
13550        static char buf[2] = { (char)0xDE, (char)0xAD };
13551        const char *inptr = input;
13552        size_t inbytesleft = 1;
13553        char *outptr = buf;
13554        size_t outbytesleft = 1;
13555        size_t res = iconv (cd_88591_to_utf8,
13556                            (char **) &inptr, &inbytesleft,
13557                            &outptr, &outbytesleft);
13558        if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
13559          result |= 4;
13560        iconv_close (cd_88591_to_utf8);
13561      }
13562  }
13563#if 0 /* This bug could be worked around by the caller.  */
13564  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
13565  {
13566    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
13567    if (cd_88591_to_utf8 != (iconv_t)(-1))
13568      {
13569        static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
13570        char buf[50];
13571        const char *inptr = input;
13572        size_t inbytesleft = strlen (input);
13573        char *outptr = buf;
13574        size_t outbytesleft = sizeof (buf);
13575        size_t res = iconv (cd_88591_to_utf8,
13576                            (char **) &inptr, &inbytesleft,
13577                            &outptr, &outbytesleft);
13578        if ((int)res > 0)
13579          result |= 8;
13580        iconv_close (cd_88591_to_utf8);
13581      }
13582  }
13583#endif
13584  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
13585     provided.  */
13586  if (/* Try standardized names.  */
13587      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
13588      /* Try IRIX, OSF/1 names.  */
13589      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
13590      /* Try AIX names.  */
13591      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
13592      /* Try HP-UX names.  */
13593      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
13594    result |= 16;
13595  return result;
13596}
13597_ACEOF
13598if ac_fn_c_try_run "$LINENO"; then :
13599  am_cv_func_iconv_works=yes
13600else
13601  am_cv_func_iconv_works=no
13602fi
13603rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13604  conftest.$ac_objext conftest.beam conftest.$ac_ext
13605fi
13606
13607      LIBS="$am_save_LIBS"
13608
13609fi
13610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
13611$as_echo "$am_cv_func_iconv_works" >&6; }
13612    case "$am_cv_func_iconv_works" in
13613      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
13614      *)   am_func_iconv=yes ;;
13615    esac
13616  else
13617    am_func_iconv=no am_cv_lib_iconv=no
13618  fi
13619  if test "$am_func_iconv" = yes; then
13620
13621$as_echo "#define HAVE_ICONV 1" >>confdefs.h
13622
13623  fi
13624  if test "$am_cv_lib_iconv" = yes; then
13625    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
13626$as_echo_n "checking how to link with libiconv... " >&6; }
13627    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
13628$as_echo "$LIBICONV" >&6; }
13629  else
13630            CPPFLAGS="$am_save_CPPFLAGS"
13631    LIBICONV=
13632    LTLIBICONV=
13633  fi
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645    use_additional=yes
13646
13647  acl_save_prefix="$prefix"
13648  prefix="$acl_final_prefix"
13649  acl_save_exec_prefix="$exec_prefix"
13650  exec_prefix="$acl_final_exec_prefix"
13651
13652    eval additional_includedir=\"$includedir\"
13653    eval additional_libdir=\"$libdir\"
13654
13655  exec_prefix="$acl_save_exec_prefix"
13656  prefix="$acl_save_prefix"
13657
13658
13659# Check whether --with-libintl-prefix was given.
13660if test "${with_libintl_prefix+set}" = set; then :
13661  withval=$with_libintl_prefix;
13662    if test "X$withval" = "Xno"; then
13663      use_additional=no
13664    else
13665      if test "X$withval" = "X"; then
13666
13667  acl_save_prefix="$prefix"
13668  prefix="$acl_final_prefix"
13669  acl_save_exec_prefix="$exec_prefix"
13670  exec_prefix="$acl_final_exec_prefix"
13671
13672          eval additional_includedir=\"$includedir\"
13673          eval additional_libdir=\"$libdir\"
13674
13675  exec_prefix="$acl_save_exec_prefix"
13676  prefix="$acl_save_prefix"
13677
13678      else
13679        additional_includedir="$withval/include"
13680        additional_libdir="$withval/$acl_libdirstem"
13681        if test "$acl_libdirstem2" != "$acl_libdirstem" \
13682           && ! test -d "$withval/$acl_libdirstem"; then
13683          additional_libdir="$withval/$acl_libdirstem2"
13684        fi
13685      fi
13686    fi
13687
13688fi
13689
13690      LIBINTL=
13691  LTLIBINTL=
13692  INCINTL=
13693  LIBINTL_PREFIX=
13694      HAVE_LIBINTL=
13695  rpathdirs=
13696  ltrpathdirs=
13697  names_already_handled=
13698  names_next_round='intl '
13699  while test -n "$names_next_round"; do
13700    names_this_round="$names_next_round"
13701    names_next_round=
13702    for name in $names_this_round; do
13703      already_handled=
13704      for n in $names_already_handled; do
13705        if test "$n" = "$name"; then
13706          already_handled=yes
13707          break
13708        fi
13709      done
13710      if test -z "$already_handled"; then
13711        names_already_handled="$names_already_handled $name"
13712                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
13713        eval value=\"\$HAVE_LIB$uppername\"
13714        if test -n "$value"; then
13715          if test "$value" = yes; then
13716            eval value=\"\$LIB$uppername\"
13717            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
13718            eval value=\"\$LTLIB$uppername\"
13719            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
13720          else
13721                                    :
13722          fi
13723        else
13724                              found_dir=
13725          found_la=
13726          found_so=
13727          found_a=
13728          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
13729          if test -n "$acl_shlibext"; then
13730            shrext=".$acl_shlibext"             # typically: shrext=.so
13731          else
13732            shrext=
13733          fi
13734          if test $use_additional = yes; then
13735            dir="$additional_libdir"
13736                                    if test -n "$acl_shlibext"; then
13737              if test -f "$dir/$libname$shrext"; then
13738                found_dir="$dir"
13739                found_so="$dir/$libname$shrext"
13740              else
13741                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13742                  ver=`(cd "$dir" && \
13743                        for f in "$libname$shrext".*; do echo "$f"; done \
13744                        | sed -e "s,^$libname$shrext\\\\.,," \
13745                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13746                        | sed 1q ) 2>/dev/null`
13747                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13748                    found_dir="$dir"
13749                    found_so="$dir/$libname$shrext.$ver"
13750                  fi
13751                else
13752                  eval library_names=\"$acl_library_names_spec\"
13753                  for f in $library_names; do
13754                    if test -f "$dir/$f"; then
13755                      found_dir="$dir"
13756                      found_so="$dir/$f"
13757                      break
13758                    fi
13759                  done
13760                fi
13761              fi
13762            fi
13763                        if test "X$found_dir" = "X"; then
13764              if test -f "$dir/$libname.$acl_libext"; then
13765                found_dir="$dir"
13766                found_a="$dir/$libname.$acl_libext"
13767              fi
13768            fi
13769            if test "X$found_dir" != "X"; then
13770              if test -f "$dir/$libname.la"; then
13771                found_la="$dir/$libname.la"
13772              fi
13773            fi
13774          fi
13775          if test "X$found_dir" = "X"; then
13776            for x in $LDFLAGS $LTLIBINTL; do
13777
13778  acl_save_prefix="$prefix"
13779  prefix="$acl_final_prefix"
13780  acl_save_exec_prefix="$exec_prefix"
13781  exec_prefix="$acl_final_exec_prefix"
13782  eval x=\"$x\"
13783  exec_prefix="$acl_save_exec_prefix"
13784  prefix="$acl_save_prefix"
13785
13786              case "$x" in
13787                -L*)
13788                  dir=`echo "X$x" | sed -e 's/^X-L//'`
13789                                    if test -n "$acl_shlibext"; then
13790                    if test -f "$dir/$libname$shrext"; then
13791                      found_dir="$dir"
13792                      found_so="$dir/$libname$shrext"
13793                    else
13794                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13795                        ver=`(cd "$dir" && \
13796                              for f in "$libname$shrext".*; do echo "$f"; done \
13797                              | sed -e "s,^$libname$shrext\\\\.,," \
13798                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13799                              | sed 1q ) 2>/dev/null`
13800                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13801                          found_dir="$dir"
13802                          found_so="$dir/$libname$shrext.$ver"
13803                        fi
13804                      else
13805                        eval library_names=\"$acl_library_names_spec\"
13806                        for f in $library_names; do
13807                          if test -f "$dir/$f"; then
13808                            found_dir="$dir"
13809                            found_so="$dir/$f"
13810                            break
13811                          fi
13812                        done
13813                      fi
13814                    fi
13815                  fi
13816                                    if test "X$found_dir" = "X"; then
13817                    if test -f "$dir/$libname.$acl_libext"; then
13818                      found_dir="$dir"
13819                      found_a="$dir/$libname.$acl_libext"
13820                    fi
13821                  fi
13822                  if test "X$found_dir" != "X"; then
13823                    if test -f "$dir/$libname.la"; then
13824                      found_la="$dir/$libname.la"
13825                    fi
13826                  fi
13827                  ;;
13828              esac
13829              if test "X$found_dir" != "X"; then
13830                break
13831              fi
13832            done
13833          fi
13834          if test "X$found_dir" != "X"; then
13835                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
13836            if test "X$found_so" != "X"; then
13837                                                        if test "$enable_rpath" = no \
13838                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
13839                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
13840                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13841              else
13842                                                                                haveit=
13843                for x in $ltrpathdirs; do
13844                  if test "X$x" = "X$found_dir"; then
13845                    haveit=yes
13846                    break
13847                  fi
13848                done
13849                if test -z "$haveit"; then
13850                  ltrpathdirs="$ltrpathdirs $found_dir"
13851                fi
13852                                if test "$acl_hardcode_direct" = yes; then
13853                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13854                else
13855                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
13856                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13857                                                            haveit=
13858                    for x in $rpathdirs; do
13859                      if test "X$x" = "X$found_dir"; then
13860                        haveit=yes
13861                        break
13862                      fi
13863                    done
13864                    if test -z "$haveit"; then
13865                      rpathdirs="$rpathdirs $found_dir"
13866                    fi
13867                  else
13868                                                                                haveit=
13869                    for x in $LDFLAGS $LIBINTL; do
13870
13871  acl_save_prefix="$prefix"
13872  prefix="$acl_final_prefix"
13873  acl_save_exec_prefix="$exec_prefix"
13874  exec_prefix="$acl_final_exec_prefix"
13875  eval x=\"$x\"
13876  exec_prefix="$acl_save_exec_prefix"
13877  prefix="$acl_save_prefix"
13878
13879                      if test "X$x" = "X-L$found_dir"; then
13880                        haveit=yes
13881                        break
13882                      fi
13883                    done
13884                    if test -z "$haveit"; then
13885                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
13886                    fi
13887                    if test "$acl_hardcode_minus_L" != no; then
13888                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13889                    else
13890                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13891                    fi
13892                  fi
13893                fi
13894              fi
13895            else
13896              if test "X$found_a" != "X"; then
13897                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
13898              else
13899                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
13900              fi
13901            fi
13902                        additional_includedir=
13903            case "$found_dir" in
13904              */$acl_libdirstem | */$acl_libdirstem/)
13905                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13906                if test "$name" = 'intl'; then
13907                  LIBINTL_PREFIX="$basedir"
13908                fi
13909                additional_includedir="$basedir/include"
13910                ;;
13911              */$acl_libdirstem2 | */$acl_libdirstem2/)
13912                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
13913                if test "$name" = 'intl'; then
13914                  LIBINTL_PREFIX="$basedir"
13915                fi
13916                additional_includedir="$basedir/include"
13917                ;;
13918            esac
13919            if test "X$additional_includedir" != "X"; then
13920                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
13921                haveit=
13922                if test "X$additional_includedir" = "X/usr/local/include"; then
13923                  if test -n "$GCC"; then
13924                    case $host_os in
13925                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13926                    esac
13927                  fi
13928                fi
13929                if test -z "$haveit"; then
13930                  for x in $CPPFLAGS $INCINTL; do
13931
13932  acl_save_prefix="$prefix"
13933  prefix="$acl_final_prefix"
13934  acl_save_exec_prefix="$exec_prefix"
13935  exec_prefix="$acl_final_exec_prefix"
13936  eval x=\"$x\"
13937  exec_prefix="$acl_save_exec_prefix"
13938  prefix="$acl_save_prefix"
13939
13940                    if test "X$x" = "X-I$additional_includedir"; then
13941                      haveit=yes
13942                      break
13943                    fi
13944                  done
13945                  if test -z "$haveit"; then
13946                    if test -d "$additional_includedir"; then
13947                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
13948                    fi
13949                  fi
13950                fi
13951              fi
13952            fi
13953                        if test -n "$found_la"; then
13954                                                        save_libdir="$libdir"
13955              case "$found_la" in
13956                */* | *\\*) . "$found_la" ;;
13957                *) . "./$found_la" ;;
13958              esac
13959              libdir="$save_libdir"
13960                            for dep in $dependency_libs; do
13961                case "$dep" in
13962                  -L*)
13963                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13964                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
13965                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
13966                      haveit=
13967                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
13968                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
13969                        if test -n "$GCC"; then
13970                          case $host_os in
13971                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13972                          esac
13973                        fi
13974                      fi
13975                      if test -z "$haveit"; then
13976                        haveit=
13977                        for x in $LDFLAGS $LIBINTL; do
13978
13979  acl_save_prefix="$prefix"
13980  prefix="$acl_final_prefix"
13981  acl_save_exec_prefix="$exec_prefix"
13982  exec_prefix="$acl_final_exec_prefix"
13983  eval x=\"$x\"
13984  exec_prefix="$acl_save_exec_prefix"
13985  prefix="$acl_save_prefix"
13986
13987                          if test "X$x" = "X-L$additional_libdir"; then
13988                            haveit=yes
13989                            break
13990                          fi
13991                        done
13992                        if test -z "$haveit"; then
13993                          if test -d "$additional_libdir"; then
13994                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13995                          fi
13996                        fi
13997                        haveit=
13998                        for x in $LDFLAGS $LTLIBINTL; do
13999
14000  acl_save_prefix="$prefix"
14001  prefix="$acl_final_prefix"
14002  acl_save_exec_prefix="$exec_prefix"
14003  exec_prefix="$acl_final_exec_prefix"
14004  eval x=\"$x\"
14005  exec_prefix="$acl_save_exec_prefix"
14006  prefix="$acl_save_prefix"
14007
14008                          if test "X$x" = "X-L$additional_libdir"; then
14009                            haveit=yes
14010                            break
14011                          fi
14012                        done
14013                        if test -z "$haveit"; then
14014                          if test -d "$additional_libdir"; then
14015                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14016                          fi
14017                        fi
14018                      fi
14019                    fi
14020                    ;;
14021                  -R*)
14022                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
14023                    if test "$enable_rpath" != no; then
14024                                                                  haveit=
14025                      for x in $rpathdirs; do
14026                        if test "X$x" = "X$dir"; then
14027                          haveit=yes
14028                          break
14029                        fi
14030                      done
14031                      if test -z "$haveit"; then
14032                        rpathdirs="$rpathdirs $dir"
14033                      fi
14034                                                                  haveit=
14035                      for x in $ltrpathdirs; do
14036                        if test "X$x" = "X$dir"; then
14037                          haveit=yes
14038                          break
14039                        fi
14040                      done
14041                      if test -z "$haveit"; then
14042                        ltrpathdirs="$ltrpathdirs $dir"
14043                      fi
14044                    fi
14045                    ;;
14046                  -l*)
14047                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14048                    ;;
14049                  *.la)
14050                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14051                    ;;
14052                  *)
14053                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
14054                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14055                    ;;
14056                esac
14057              done
14058            fi
14059          else
14060                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14061            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14062          fi
14063        fi
14064      fi
14065    done
14066  done
14067  if test "X$rpathdirs" != "X"; then
14068    if test -n "$acl_hardcode_libdir_separator"; then
14069                        alldirs=
14070      for found_dir in $rpathdirs; do
14071        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
14072      done
14073            acl_save_libdir="$libdir"
14074      libdir="$alldirs"
14075      eval flag=\"$acl_hardcode_libdir_flag_spec\"
14076      libdir="$acl_save_libdir"
14077      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14078    else
14079            for found_dir in $rpathdirs; do
14080        acl_save_libdir="$libdir"
14081        libdir="$found_dir"
14082        eval flag=\"$acl_hardcode_libdir_flag_spec\"
14083        libdir="$acl_save_libdir"
14084        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14085      done
14086    fi
14087  fi
14088  if test "X$ltrpathdirs" != "X"; then
14089            for found_dir in $ltrpathdirs; do
14090      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14091    done
14092  fi
14093
14094
14095
14096
14097
14098
14099          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
14100$as_echo_n "checking for GNU gettext in libintl... " >&6; }
14101if eval \${$gt_func_gnugettext_libintl+:} false; then :
14102  $as_echo_n "(cached) " >&6
14103else
14104  gt_save_CPPFLAGS="$CPPFLAGS"
14105            CPPFLAGS="$CPPFLAGS $INCINTL"
14106            gt_save_LIBS="$LIBS"
14107            LIBS="$LIBS $LIBINTL"
14108                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14109/* end confdefs.h.  */
14110
14111#include <libintl.h>
14112$gt_revision_test_code
14113extern int _nl_msg_cat_cntr;
14114extern
14115#ifdef __cplusplus
14116"C"
14117#endif
14118const char *_nl_expand_alias (const char *);
14119
14120int
14121main ()
14122{
14123
14124bindtextdomain ("", "");
14125return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14126
14127  ;
14128  return 0;
14129}
14130_ACEOF
14131if ac_fn_c_try_link "$LINENO"; then :
14132  eval "$gt_func_gnugettext_libintl=yes"
14133else
14134  eval "$gt_func_gnugettext_libintl=no"
14135fi
14136rm -f core conftest.err conftest.$ac_objext \
14137    conftest$ac_exeext conftest.$ac_ext
14138                        if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
14139              LIBS="$LIBS $LIBICONV"
14140              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14141/* end confdefs.h.  */
14142
14143#include <libintl.h>
14144$gt_revision_test_code
14145extern int _nl_msg_cat_cntr;
14146extern
14147#ifdef __cplusplus
14148"C"
14149#endif
14150const char *_nl_expand_alias (const char *);
14151
14152int
14153main ()
14154{
14155
14156bindtextdomain ("", "");
14157return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14158
14159  ;
14160  return 0;
14161}
14162_ACEOF
14163if ac_fn_c_try_link "$LINENO"; then :
14164  LIBINTL="$LIBINTL $LIBICONV"
14165                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
14166                 eval "$gt_func_gnugettext_libintl=yes"
14167
14168fi
14169rm -f core conftest.err conftest.$ac_objext \
14170    conftest$ac_exeext conftest.$ac_ext
14171            fi
14172            CPPFLAGS="$gt_save_CPPFLAGS"
14173            LIBS="$gt_save_LIBS"
14174fi
14175eval ac_res=\$$gt_func_gnugettext_libintl
14176	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14177$as_echo "$ac_res" >&6; }
14178        fi
14179
14180                                        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
14181           || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
14182                && test "$PACKAGE" != gettext-runtime \
14183                && test "$PACKAGE" != gettext-tools; }; then
14184          gt_use_preinstalled_gnugettext=yes
14185        else
14186                    LIBINTL=
14187          LTLIBINTL=
14188          INCINTL=
14189        fi
14190
14191
14192
14193    if test -n "$INTL_MACOSX_LIBS"; then
14194      if test "$gt_use_preinstalled_gnugettext" = "yes" \
14195         || test "$nls_cv_use_gnu_gettext" = "yes"; then
14196                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
14197        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
14198      fi
14199    fi
14200
14201    if test "$gt_use_preinstalled_gnugettext" = "yes" \
14202       || test "$nls_cv_use_gnu_gettext" = "yes"; then
14203
14204$as_echo "#define ENABLE_NLS 1" >>confdefs.h
14205
14206    else
14207      USE_NLS=no
14208    fi
14209  fi
14210
14211  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
14212$as_echo_n "checking whether to use NLS... " >&6; }
14213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14214$as_echo "$USE_NLS" >&6; }
14215  if test "$USE_NLS" = "yes"; then
14216    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
14217$as_echo_n "checking where the gettext function comes from... " >&6; }
14218    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14219      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14220        gt_source="external libintl"
14221      else
14222        gt_source="libc"
14223      fi
14224    else
14225      gt_source="included intl directory"
14226    fi
14227    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
14228$as_echo "$gt_source" >&6; }
14229  fi
14230
14231  if test "$USE_NLS" = "yes"; then
14232
14233    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14234      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14235        { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
14236$as_echo_n "checking how to link with libintl... " >&6; }
14237        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
14238$as_echo "$LIBINTL" >&6; }
14239
14240  for element in $INCINTL; do
14241    haveit=
14242    for x in $CPPFLAGS; do
14243
14244  acl_save_prefix="$prefix"
14245  prefix="$acl_final_prefix"
14246  acl_save_exec_prefix="$exec_prefix"
14247  exec_prefix="$acl_final_exec_prefix"
14248  eval x=\"$x\"
14249  exec_prefix="$acl_save_exec_prefix"
14250  prefix="$acl_save_prefix"
14251
14252      if test "X$x" = "X$element"; then
14253        haveit=yes
14254        break
14255      fi
14256    done
14257    if test -z "$haveit"; then
14258      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14259    fi
14260  done
14261
14262      fi
14263
14264
14265$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
14266
14267
14268$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
14269
14270    fi
14271
14272        POSUB=po
14273  fi
14274
14275
14276
14277    INTLLIBS="$LIBINTL"
14278
14279
14280
14281
14282
14283
14284
14285for ac_prog in 'bison -y' byacc
14286do
14287  # Extract the first word of "$ac_prog", so it can be a program name with args.
14288set dummy $ac_prog; ac_word=$2
14289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14290$as_echo_n "checking for $ac_word... " >&6; }
14291if ${ac_cv_prog_YACC+:} false; then :
14292  $as_echo_n "(cached) " >&6
14293else
14294  if test -n "$YACC"; then
14295  ac_cv_prog_YACC="$YACC" # Let the user override the test.
14296else
14297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14298for as_dir in $PATH
14299do
14300  IFS=$as_save_IFS
14301  test -z "$as_dir" && as_dir=.
14302    for ac_exec_ext in '' $ac_executable_extensions; do
14303  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14304    ac_cv_prog_YACC="$ac_prog"
14305    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14306    break 2
14307  fi
14308done
14309  done
14310IFS=$as_save_IFS
14311
14312fi
14313fi
14314YACC=$ac_cv_prog_YACC
14315if test -n "$YACC"; then
14316  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
14317$as_echo "$YACC" >&6; }
14318else
14319  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14320$as_echo "no" >&6; }
14321fi
14322
14323
14324  test -n "$YACC" && break
14325done
14326test -n "$YACC" || YACC="yacc"
14327
14328for ac_prog in flex lex
14329do
14330  # Extract the first word of "$ac_prog", so it can be a program name with args.
14331set dummy $ac_prog; ac_word=$2
14332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14333$as_echo_n "checking for $ac_word... " >&6; }
14334if ${ac_cv_prog_LEX+:} false; then :
14335  $as_echo_n "(cached) " >&6
14336else
14337  if test -n "$LEX"; then
14338  ac_cv_prog_LEX="$LEX" # Let the user override the test.
14339else
14340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14341for as_dir in $PATH
14342do
14343  IFS=$as_save_IFS
14344  test -z "$as_dir" && as_dir=.
14345    for ac_exec_ext in '' $ac_executable_extensions; do
14346  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14347    ac_cv_prog_LEX="$ac_prog"
14348    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14349    break 2
14350  fi
14351done
14352  done
14353IFS=$as_save_IFS
14354
14355fi
14356fi
14357LEX=$ac_cv_prog_LEX
14358if test -n "$LEX"; then
14359  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
14360$as_echo "$LEX" >&6; }
14361else
14362  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14363$as_echo "no" >&6; }
14364fi
14365
14366
14367  test -n "$LEX" && break
14368done
14369test -n "$LEX" || LEX=":"
14370
14371if test "x$LEX" != "x:"; then
14372  cat >conftest.l <<_ACEOF
14373%%
14374a { ECHO; }
14375b { REJECT; }
14376c { yymore (); }
14377d { yyless (1); }
14378e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
14379    yyless ((input () != 0)); }
14380f { unput (yytext[0]); }
14381. { BEGIN INITIAL; }
14382%%
14383#ifdef YYTEXT_POINTER
14384extern char *yytext;
14385#endif
14386int
14387main (void)
14388{
14389  return ! yylex () + ! yywrap ();
14390}
14391_ACEOF
14392{ { ac_try="$LEX conftest.l"
14393case "(($ac_try" in
14394  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14395  *) ac_try_echo=$ac_try;;
14396esac
14397eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14398$as_echo "$ac_try_echo"; } >&5
14399  (eval "$LEX conftest.l") 2>&5
14400  ac_status=$?
14401  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14402  test $ac_status = 0; }
14403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
14404$as_echo_n "checking lex output file root... " >&6; }
14405if ${ac_cv_prog_lex_root+:} false; then :
14406  $as_echo_n "(cached) " >&6
14407else
14408
14409if test -f lex.yy.c; then
14410  ac_cv_prog_lex_root=lex.yy
14411elif test -f lexyy.c; then
14412  ac_cv_prog_lex_root=lexyy
14413else
14414  as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
14415fi
14416fi
14417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
14418$as_echo "$ac_cv_prog_lex_root" >&6; }
14419LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
14420
14421if test -z "${LEXLIB+set}"; then
14422  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
14423$as_echo_n "checking lex library... " >&6; }
14424if ${ac_cv_lib_lex+:} false; then :
14425  $as_echo_n "(cached) " >&6
14426else
14427
14428    ac_save_LIBS=$LIBS
14429    ac_cv_lib_lex='none needed'
14430    for ac_lib in '' -lfl -ll; do
14431      LIBS="$ac_lib $ac_save_LIBS"
14432      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14433/* end confdefs.h.  */
14434`cat $LEX_OUTPUT_ROOT.c`
14435_ACEOF
14436if ac_fn_c_try_link "$LINENO"; then :
14437  ac_cv_lib_lex=$ac_lib
14438fi
14439rm -f core conftest.err conftest.$ac_objext \
14440    conftest$ac_exeext conftest.$ac_ext
14441      test "$ac_cv_lib_lex" != 'none needed' && break
14442    done
14443    LIBS=$ac_save_LIBS
14444
14445fi
14446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
14447$as_echo "$ac_cv_lib_lex" >&6; }
14448  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
14449fi
14450
14451
14452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
14453$as_echo_n "checking whether yytext is a pointer... " >&6; }
14454if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
14455  $as_echo_n "(cached) " >&6
14456else
14457  # POSIX says lex can declare yytext either as a pointer or an array; the
14458# default is implementation-dependent.  Figure out which it is, since
14459# not all implementations provide the %pointer and %array declarations.
14460ac_cv_prog_lex_yytext_pointer=no
14461ac_save_LIBS=$LIBS
14462LIBS="$LEXLIB $ac_save_LIBS"
14463cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14464/* end confdefs.h.  */
14465
14466  #define YYTEXT_POINTER 1
14467`cat $LEX_OUTPUT_ROOT.c`
14468_ACEOF
14469if ac_fn_c_try_link "$LINENO"; then :
14470  ac_cv_prog_lex_yytext_pointer=yes
14471fi
14472rm -f core conftest.err conftest.$ac_objext \
14473    conftest$ac_exeext conftest.$ac_ext
14474LIBS=$ac_save_LIBS
14475
14476fi
14477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
14478$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
14479if test $ac_cv_prog_lex_yytext_pointer = yes; then
14480
14481$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
14482
14483fi
14484rm -f conftest.l $LEX_OUTPUT_ROOT.c
14485
14486fi
14487if test "$LEX" = :; then
14488  LEX=${am_missing_run}flex
14489fi
14490ac_ext=c
14491ac_cpp='$CPP $CPPFLAGS'
14492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14494ac_compiler_gnu=$ac_cv_c_compiler_gnu
14495if test -n "$ac_tool_prefix"; then
14496  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
14497set dummy ${ac_tool_prefix}gcc; ac_word=$2
14498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14499$as_echo_n "checking for $ac_word... " >&6; }
14500if ${ac_cv_prog_CC+:} false; then :
14501  $as_echo_n "(cached) " >&6
14502else
14503  if test -n "$CC"; then
14504  ac_cv_prog_CC="$CC" # Let the user override the test.
14505else
14506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14507for as_dir in $PATH
14508do
14509  IFS=$as_save_IFS
14510  test -z "$as_dir" && as_dir=.
14511    for ac_exec_ext in '' $ac_executable_extensions; do
14512  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14513    ac_cv_prog_CC="${ac_tool_prefix}gcc"
14514    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14515    break 2
14516  fi
14517done
14518  done
14519IFS=$as_save_IFS
14520
14521fi
14522fi
14523CC=$ac_cv_prog_CC
14524if test -n "$CC"; then
14525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14526$as_echo "$CC" >&6; }
14527else
14528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14529$as_echo "no" >&6; }
14530fi
14531
14532
14533fi
14534if test -z "$ac_cv_prog_CC"; then
14535  ac_ct_CC=$CC
14536  # Extract the first word of "gcc", so it can be a program name with args.
14537set dummy gcc; ac_word=$2
14538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14539$as_echo_n "checking for $ac_word... " >&6; }
14540if ${ac_cv_prog_ac_ct_CC+:} false; then :
14541  $as_echo_n "(cached) " >&6
14542else
14543  if test -n "$ac_ct_CC"; then
14544  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14545else
14546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14547for as_dir in $PATH
14548do
14549  IFS=$as_save_IFS
14550  test -z "$as_dir" && as_dir=.
14551    for ac_exec_ext in '' $ac_executable_extensions; do
14552  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14553    ac_cv_prog_ac_ct_CC="gcc"
14554    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14555    break 2
14556  fi
14557done
14558  done
14559IFS=$as_save_IFS
14560
14561fi
14562fi
14563ac_ct_CC=$ac_cv_prog_ac_ct_CC
14564if test -n "$ac_ct_CC"; then
14565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
14566$as_echo "$ac_ct_CC" >&6; }
14567else
14568  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14569$as_echo "no" >&6; }
14570fi
14571
14572  if test "x$ac_ct_CC" = x; then
14573    CC=""
14574  else
14575    case $cross_compiling:$ac_tool_warned in
14576yes:)
14577{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14578$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14579ac_tool_warned=yes ;;
14580esac
14581    CC=$ac_ct_CC
14582  fi
14583else
14584  CC="$ac_cv_prog_CC"
14585fi
14586
14587if test -z "$CC"; then
14588          if test -n "$ac_tool_prefix"; then
14589    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
14590set dummy ${ac_tool_prefix}cc; ac_word=$2
14591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14592$as_echo_n "checking for $ac_word... " >&6; }
14593if ${ac_cv_prog_CC+:} false; then :
14594  $as_echo_n "(cached) " >&6
14595else
14596  if test -n "$CC"; then
14597  ac_cv_prog_CC="$CC" # Let the user override the test.
14598else
14599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14600for as_dir in $PATH
14601do
14602  IFS=$as_save_IFS
14603  test -z "$as_dir" && as_dir=.
14604    for ac_exec_ext in '' $ac_executable_extensions; do
14605  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14606    ac_cv_prog_CC="${ac_tool_prefix}cc"
14607    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14608    break 2
14609  fi
14610done
14611  done
14612IFS=$as_save_IFS
14613
14614fi
14615fi
14616CC=$ac_cv_prog_CC
14617if test -n "$CC"; then
14618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14619$as_echo "$CC" >&6; }
14620else
14621  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14622$as_echo "no" >&6; }
14623fi
14624
14625
14626  fi
14627fi
14628if test -z "$CC"; then
14629  # Extract the first word of "cc", so it can be a program name with args.
14630set dummy cc; ac_word=$2
14631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14632$as_echo_n "checking for $ac_word... " >&6; }
14633if ${ac_cv_prog_CC+:} false; then :
14634  $as_echo_n "(cached) " >&6
14635else
14636  if test -n "$CC"; then
14637  ac_cv_prog_CC="$CC" # Let the user override the test.
14638else
14639  ac_prog_rejected=no
14640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14641for as_dir in $PATH
14642do
14643  IFS=$as_save_IFS
14644  test -z "$as_dir" && as_dir=.
14645    for ac_exec_ext in '' $ac_executable_extensions; do
14646  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14647    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
14648       ac_prog_rejected=yes
14649       continue
14650     fi
14651    ac_cv_prog_CC="cc"
14652    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14653    break 2
14654  fi
14655done
14656  done
14657IFS=$as_save_IFS
14658
14659if test $ac_prog_rejected = yes; then
14660  # We found a bogon in the path, so make sure we never use it.
14661  set dummy $ac_cv_prog_CC
14662  shift
14663  if test $# != 0; then
14664    # We chose a different compiler from the bogus one.
14665    # However, it has the same basename, so the bogon will be chosen
14666    # first if we set CC to just the basename; use the full file name.
14667    shift
14668    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
14669  fi
14670fi
14671fi
14672fi
14673CC=$ac_cv_prog_CC
14674if test -n "$CC"; then
14675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14676$as_echo "$CC" >&6; }
14677else
14678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14679$as_echo "no" >&6; }
14680fi
14681
14682
14683fi
14684if test -z "$CC"; then
14685  if test -n "$ac_tool_prefix"; then
14686  for ac_prog in cl.exe
14687  do
14688    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14689set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14691$as_echo_n "checking for $ac_word... " >&6; }
14692if ${ac_cv_prog_CC+:} false; then :
14693  $as_echo_n "(cached) " >&6
14694else
14695  if test -n "$CC"; then
14696  ac_cv_prog_CC="$CC" # Let the user override the test.
14697else
14698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14699for as_dir in $PATH
14700do
14701  IFS=$as_save_IFS
14702  test -z "$as_dir" && as_dir=.
14703    for ac_exec_ext in '' $ac_executable_extensions; do
14704  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14705    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
14706    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14707    break 2
14708  fi
14709done
14710  done
14711IFS=$as_save_IFS
14712
14713fi
14714fi
14715CC=$ac_cv_prog_CC
14716if test -n "$CC"; then
14717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14718$as_echo "$CC" >&6; }
14719else
14720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14721$as_echo "no" >&6; }
14722fi
14723
14724
14725    test -n "$CC" && break
14726  done
14727fi
14728if test -z "$CC"; then
14729  ac_ct_CC=$CC
14730  for ac_prog in cl.exe
14731do
14732  # Extract the first word of "$ac_prog", so it can be a program name with args.
14733set dummy $ac_prog; ac_word=$2
14734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14735$as_echo_n "checking for $ac_word... " >&6; }
14736if ${ac_cv_prog_ac_ct_CC+:} false; then :
14737  $as_echo_n "(cached) " >&6
14738else
14739  if test -n "$ac_ct_CC"; then
14740  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14741else
14742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14743for as_dir in $PATH
14744do
14745  IFS=$as_save_IFS
14746  test -z "$as_dir" && as_dir=.
14747    for ac_exec_ext in '' $ac_executable_extensions; do
14748  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14749    ac_cv_prog_ac_ct_CC="$ac_prog"
14750    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14751    break 2
14752  fi
14753done
14754  done
14755IFS=$as_save_IFS
14756
14757fi
14758fi
14759ac_ct_CC=$ac_cv_prog_ac_ct_CC
14760if test -n "$ac_ct_CC"; then
14761  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
14762$as_echo "$ac_ct_CC" >&6; }
14763else
14764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14765$as_echo "no" >&6; }
14766fi
14767
14768
14769  test -n "$ac_ct_CC" && break
14770done
14771
14772  if test "x$ac_ct_CC" = x; then
14773    CC=""
14774  else
14775    case $cross_compiling:$ac_tool_warned in
14776yes:)
14777{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14778$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14779ac_tool_warned=yes ;;
14780esac
14781    CC=$ac_ct_CC
14782  fi
14783fi
14784
14785fi
14786
14787
14788test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14789$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14790as_fn_error $? "no acceptable C compiler found in \$PATH
14791See \`config.log' for more details" "$LINENO" 5; }
14792
14793# Provide some information about the compiler.
14794$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
14795set X $ac_compile
14796ac_compiler=$2
14797for ac_option in --version -v -V -qversion; do
14798  { { ac_try="$ac_compiler $ac_option >&5"
14799case "(($ac_try" in
14800  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14801  *) ac_try_echo=$ac_try;;
14802esac
14803eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14804$as_echo "$ac_try_echo"; } >&5
14805  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14806  ac_status=$?
14807  if test -s conftest.err; then
14808    sed '10a\
14809... rest of stderr output deleted ...
14810         10q' conftest.err >conftest.er1
14811    cat conftest.er1 >&5
14812  fi
14813  rm -f conftest.er1 conftest.err
14814  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14815  test $ac_status = 0; }
14816done
14817
14818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
14819$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
14820if ${ac_cv_c_compiler_gnu+:} false; then :
14821  $as_echo_n "(cached) " >&6
14822else
14823  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14824/* end confdefs.h.  */
14825
14826int
14827main ()
14828{
14829#ifndef __GNUC__
14830       choke me
14831#endif
14832
14833  ;
14834  return 0;
14835}
14836_ACEOF
14837if ac_fn_c_try_compile "$LINENO"; then :
14838  ac_compiler_gnu=yes
14839else
14840  ac_compiler_gnu=no
14841fi
14842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14843ac_cv_c_compiler_gnu=$ac_compiler_gnu
14844
14845fi
14846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
14847$as_echo "$ac_cv_c_compiler_gnu" >&6; }
14848if test $ac_compiler_gnu = yes; then
14849  GCC=yes
14850else
14851  GCC=
14852fi
14853ac_test_CFLAGS=${CFLAGS+set}
14854ac_save_CFLAGS=$CFLAGS
14855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
14856$as_echo_n "checking whether $CC accepts -g... " >&6; }
14857if ${ac_cv_prog_cc_g+:} false; then :
14858  $as_echo_n "(cached) " >&6
14859else
14860  ac_save_c_werror_flag=$ac_c_werror_flag
14861   ac_c_werror_flag=yes
14862   ac_cv_prog_cc_g=no
14863   CFLAGS="-g"
14864   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14865/* end confdefs.h.  */
14866
14867int
14868main ()
14869{
14870
14871  ;
14872  return 0;
14873}
14874_ACEOF
14875if ac_fn_c_try_compile "$LINENO"; then :
14876  ac_cv_prog_cc_g=yes
14877else
14878  CFLAGS=""
14879      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14880/* end confdefs.h.  */
14881
14882int
14883main ()
14884{
14885
14886  ;
14887  return 0;
14888}
14889_ACEOF
14890if ac_fn_c_try_compile "$LINENO"; then :
14891
14892else
14893  ac_c_werror_flag=$ac_save_c_werror_flag
14894	 CFLAGS="-g"
14895	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14896/* end confdefs.h.  */
14897
14898int
14899main ()
14900{
14901
14902  ;
14903  return 0;
14904}
14905_ACEOF
14906if ac_fn_c_try_compile "$LINENO"; then :
14907  ac_cv_prog_cc_g=yes
14908fi
14909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14910fi
14911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14912fi
14913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14914   ac_c_werror_flag=$ac_save_c_werror_flag
14915fi
14916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
14917$as_echo "$ac_cv_prog_cc_g" >&6; }
14918if test "$ac_test_CFLAGS" = set; then
14919  CFLAGS=$ac_save_CFLAGS
14920elif test $ac_cv_prog_cc_g = yes; then
14921  if test "$GCC" = yes; then
14922    CFLAGS="-g -O2"
14923  else
14924    CFLAGS="-g"
14925  fi
14926else
14927  if test "$GCC" = yes; then
14928    CFLAGS="-O2"
14929  else
14930    CFLAGS=
14931  fi
14932fi
14933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
14934$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
14935if ${ac_cv_prog_cc_c89+:} false; then :
14936  $as_echo_n "(cached) " >&6
14937else
14938  ac_cv_prog_cc_c89=no
14939ac_save_CC=$CC
14940cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14941/* end confdefs.h.  */
14942#include <stdarg.h>
14943#include <stdio.h>
14944struct stat;
14945/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
14946struct buf { int x; };
14947FILE * (*rcsopen) (struct buf *, struct stat *, int);
14948static char *e (p, i)
14949     char **p;
14950     int i;
14951{
14952  return p[i];
14953}
14954static char *f (char * (*g) (char **, int), char **p, ...)
14955{
14956  char *s;
14957  va_list v;
14958  va_start (v,p);
14959  s = g (p, va_arg (v,int));
14960  va_end (v);
14961  return s;
14962}
14963
14964/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
14965   function prototypes and stuff, but not '\xHH' hex character constants.
14966   These don't provoke an error unfortunately, instead are silently treated
14967   as 'x'.  The following induces an error, until -std is added to get
14968   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
14969   array size at least.  It's necessary to write '\x00'==0 to get something
14970   that's true only with -std.  */
14971int osf4_cc_array ['\x00' == 0 ? 1 : -1];
14972
14973/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
14974   inside strings and character constants.  */
14975#define FOO(x) 'x'
14976int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
14977
14978int test (int i, double x);
14979struct s1 {int (*f) (int a);};
14980struct s2 {int (*f) (double a);};
14981int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
14982int argc;
14983char **argv;
14984int
14985main ()
14986{
14987return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
14988  ;
14989  return 0;
14990}
14991_ACEOF
14992for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
14993	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14994do
14995  CC="$ac_save_CC $ac_arg"
14996  if ac_fn_c_try_compile "$LINENO"; then :
14997  ac_cv_prog_cc_c89=$ac_arg
14998fi
14999rm -f core conftest.err conftest.$ac_objext
15000  test "x$ac_cv_prog_cc_c89" != "xno" && break
15001done
15002rm -f conftest.$ac_ext
15003CC=$ac_save_CC
15004
15005fi
15006# AC_CACHE_VAL
15007case "x$ac_cv_prog_cc_c89" in
15008  x)
15009    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15010$as_echo "none needed" >&6; } ;;
15011  xno)
15012    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15013$as_echo "unsupported" >&6; } ;;
15014  *)
15015    CC="$CC $ac_cv_prog_cc_c89"
15016    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
15017$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
15018esac
15019if test "x$ac_cv_prog_cc_c89" != xno; then :
15020
15021fi
15022
15023ac_ext=c
15024ac_cpp='$CPP $CPPFLAGS'
15025ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15026ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15027ac_compiler_gnu=$ac_cv_c_compiler_gnu
15028
15029ac_ext=c
15030ac_cpp='$CPP $CPPFLAGS'
15031ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15032ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15033ac_compiler_gnu=$ac_cv_c_compiler_gnu
15034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
15035$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
15036if ${am_cv_prog_cc_c_o+:} false; then :
15037  $as_echo_n "(cached) " >&6
15038else
15039  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15040/* end confdefs.h.  */
15041
15042int
15043main ()
15044{
15045
15046  ;
15047  return 0;
15048}
15049_ACEOF
15050  # Make sure it works both with $CC and with simple cc.
15051  # Following AC_PROG_CC_C_O, we do the test twice because some
15052  # compilers refuse to overwrite an existing .o file with -o,
15053  # though they will create one.
15054  am_cv_prog_cc_c_o=yes
15055  for am_i in 1 2; do
15056    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
15057   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
15058   ac_status=$?
15059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060   (exit $ac_status); } \
15061         && test -f conftest2.$ac_objext; then
15062      : OK
15063    else
15064      am_cv_prog_cc_c_o=no
15065      break
15066    fi
15067  done
15068  rm -f core conftest*
15069  unset am_i
15070fi
15071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
15072$as_echo "$am_cv_prog_cc_c_o" >&6; }
15073if test "$am_cv_prog_cc_c_o" != yes; then
15074   # Losing compiler, so override with the script.
15075   # FIXME: It is wrong to rewrite CC.
15076   # But if we don't then we get into trouble of one sort or another.
15077   # A longer-term fix would be to have automake use am__CC in this case,
15078   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
15079   CC="$am_aux_dir/compile $CC"
15080fi
15081ac_ext=c
15082ac_cpp='$CPP $CPPFLAGS'
15083ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15084ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15085ac_compiler_gnu=$ac_cv_c_compiler_gnu
15086
15087
15088ac_ext=cpp
15089ac_cpp='$CXXCPP $CPPFLAGS'
15090ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15091ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15092ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15093if test -z "$CXX"; then
15094  if test -n "$CCC"; then
15095    CXX=$CCC
15096  else
15097    if test -n "$ac_tool_prefix"; then
15098  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
15099  do
15100    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15101set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15103$as_echo_n "checking for $ac_word... " >&6; }
15104if ${ac_cv_prog_CXX+:} false; then :
15105  $as_echo_n "(cached) " >&6
15106else
15107  if test -n "$CXX"; then
15108  ac_cv_prog_CXX="$CXX" # Let the user override the test.
15109else
15110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15111for as_dir in $PATH
15112do
15113  IFS=$as_save_IFS
15114  test -z "$as_dir" && as_dir=.
15115    for ac_exec_ext in '' $ac_executable_extensions; do
15116  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15117    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
15118    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15119    break 2
15120  fi
15121done
15122  done
15123IFS=$as_save_IFS
15124
15125fi
15126fi
15127CXX=$ac_cv_prog_CXX
15128if test -n "$CXX"; then
15129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
15130$as_echo "$CXX" >&6; }
15131else
15132  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15133$as_echo "no" >&6; }
15134fi
15135
15136
15137    test -n "$CXX" && break
15138  done
15139fi
15140if test -z "$CXX"; then
15141  ac_ct_CXX=$CXX
15142  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
15143do
15144  # Extract the first word of "$ac_prog", so it can be a program name with args.
15145set dummy $ac_prog; ac_word=$2
15146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15147$as_echo_n "checking for $ac_word... " >&6; }
15148if ${ac_cv_prog_ac_ct_CXX+:} false; then :
15149  $as_echo_n "(cached) " >&6
15150else
15151  if test -n "$ac_ct_CXX"; then
15152  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
15153else
15154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15155for as_dir in $PATH
15156do
15157  IFS=$as_save_IFS
15158  test -z "$as_dir" && as_dir=.
15159    for ac_exec_ext in '' $ac_executable_extensions; do
15160  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15161    ac_cv_prog_ac_ct_CXX="$ac_prog"
15162    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15163    break 2
15164  fi
15165done
15166  done
15167IFS=$as_save_IFS
15168
15169fi
15170fi
15171ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
15172if test -n "$ac_ct_CXX"; then
15173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
15174$as_echo "$ac_ct_CXX" >&6; }
15175else
15176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15177$as_echo "no" >&6; }
15178fi
15179
15180
15181  test -n "$ac_ct_CXX" && break
15182done
15183
15184  if test "x$ac_ct_CXX" = x; then
15185    CXX="g++"
15186  else
15187    case $cross_compiling:$ac_tool_warned in
15188yes:)
15189{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15190$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15191ac_tool_warned=yes ;;
15192esac
15193    CXX=$ac_ct_CXX
15194  fi
15195fi
15196
15197  fi
15198fi
15199# Provide some information about the compiler.
15200$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
15201set X $ac_compile
15202ac_compiler=$2
15203for ac_option in --version -v -V -qversion; do
15204  { { ac_try="$ac_compiler $ac_option >&5"
15205case "(($ac_try" in
15206  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15207  *) ac_try_echo=$ac_try;;
15208esac
15209eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15210$as_echo "$ac_try_echo"; } >&5
15211  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
15212  ac_status=$?
15213  if test -s conftest.err; then
15214    sed '10a\
15215... rest of stderr output deleted ...
15216         10q' conftest.err >conftest.er1
15217    cat conftest.er1 >&5
15218  fi
15219  rm -f conftest.er1 conftest.err
15220  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15221  test $ac_status = 0; }
15222done
15223
15224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
15225$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
15226if ${ac_cv_cxx_compiler_gnu+:} false; then :
15227  $as_echo_n "(cached) " >&6
15228else
15229  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15230/* end confdefs.h.  */
15231
15232int
15233main ()
15234{
15235#ifndef __GNUC__
15236       choke me
15237#endif
15238
15239  ;
15240  return 0;
15241}
15242_ACEOF
15243if ac_fn_cxx_try_compile "$LINENO"; then :
15244  ac_compiler_gnu=yes
15245else
15246  ac_compiler_gnu=no
15247fi
15248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15249ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
15250
15251fi
15252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
15253$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
15254if test $ac_compiler_gnu = yes; then
15255  GXX=yes
15256else
15257  GXX=
15258fi
15259ac_test_CXXFLAGS=${CXXFLAGS+set}
15260ac_save_CXXFLAGS=$CXXFLAGS
15261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
15262$as_echo_n "checking whether $CXX accepts -g... " >&6; }
15263if ${ac_cv_prog_cxx_g+:} false; then :
15264  $as_echo_n "(cached) " >&6
15265else
15266  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
15267   ac_cxx_werror_flag=yes
15268   ac_cv_prog_cxx_g=no
15269   CXXFLAGS="-g"
15270   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15271/* end confdefs.h.  */
15272
15273int
15274main ()
15275{
15276
15277  ;
15278  return 0;
15279}
15280_ACEOF
15281if ac_fn_cxx_try_compile "$LINENO"; then :
15282  ac_cv_prog_cxx_g=yes
15283else
15284  CXXFLAGS=""
15285      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15286/* end confdefs.h.  */
15287
15288int
15289main ()
15290{
15291
15292  ;
15293  return 0;
15294}
15295_ACEOF
15296if ac_fn_cxx_try_compile "$LINENO"; then :
15297
15298else
15299  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
15300	 CXXFLAGS="-g"
15301	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15302/* end confdefs.h.  */
15303
15304int
15305main ()
15306{
15307
15308  ;
15309  return 0;
15310}
15311_ACEOF
15312if ac_fn_cxx_try_compile "$LINENO"; then :
15313  ac_cv_prog_cxx_g=yes
15314fi
15315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15316fi
15317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15318fi
15319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15320   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
15321fi
15322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
15323$as_echo "$ac_cv_prog_cxx_g" >&6; }
15324if test "$ac_test_CXXFLAGS" = set; then
15325  CXXFLAGS=$ac_save_CXXFLAGS
15326elif test $ac_cv_prog_cxx_g = yes; then
15327  if test "$GXX" = yes; then
15328    CXXFLAGS="-g -O2"
15329  else
15330    CXXFLAGS="-g"
15331  fi
15332else
15333  if test "$GXX" = yes; then
15334    CXXFLAGS="-O2"
15335  else
15336    CXXFLAGS=
15337  fi
15338fi
15339ac_ext=c
15340ac_cpp='$CPP $CPPFLAGS'
15341ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15342ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15343ac_compiler_gnu=$ac_cv_c_compiler_gnu
15344
15345
15346
15347func_stripname_cnf ()
15348{
15349  case $2 in
15350  .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
15351  *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
15352  esac
15353} # func_stripname_cnf
15354
15355      if test -n "$CXX" && ( test no != "$CXX" &&
15356    ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
15357    (test g++ != "$CXX"))); then
15358  ac_ext=cpp
15359ac_cpp='$CXXCPP $CPPFLAGS'
15360ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15361ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15362ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
15364$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
15365if test -z "$CXXCPP"; then
15366  if ${ac_cv_prog_CXXCPP+:} false; then :
15367  $as_echo_n "(cached) " >&6
15368else
15369      # Double quotes because CXXCPP needs to be expanded
15370    for CXXCPP in "$CXX -E" "/lib/cpp"
15371    do
15372      ac_preproc_ok=false
15373for ac_cxx_preproc_warn_flag in '' yes
15374do
15375  # Use a header file that comes with gcc, so configuring glibc
15376  # with a fresh cross-compiler works.
15377  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15378  # <limits.h> exists even on freestanding compilers.
15379  # On the NeXT, cc -E runs the code through the compiler's parser,
15380  # not just through cpp. "Syntax error" is here to catch this case.
15381  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15382/* end confdefs.h.  */
15383#ifdef __STDC__
15384# include <limits.h>
15385#else
15386# include <assert.h>
15387#endif
15388		     Syntax error
15389_ACEOF
15390if ac_fn_cxx_try_cpp "$LINENO"; then :
15391
15392else
15393  # Broken: fails on valid input.
15394continue
15395fi
15396rm -f conftest.err conftest.i conftest.$ac_ext
15397
15398  # OK, works on sane cases.  Now check whether nonexistent headers
15399  # can be detected and how.
15400  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15401/* end confdefs.h.  */
15402#include <ac_nonexistent.h>
15403_ACEOF
15404if ac_fn_cxx_try_cpp "$LINENO"; then :
15405  # Broken: success on invalid input.
15406continue
15407else
15408  # Passes both tests.
15409ac_preproc_ok=:
15410break
15411fi
15412rm -f conftest.err conftest.i conftest.$ac_ext
15413
15414done
15415# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15416rm -f conftest.i conftest.err conftest.$ac_ext
15417if $ac_preproc_ok; then :
15418  break
15419fi
15420
15421    done
15422    ac_cv_prog_CXXCPP=$CXXCPP
15423
15424fi
15425  CXXCPP=$ac_cv_prog_CXXCPP
15426else
15427  ac_cv_prog_CXXCPP=$CXXCPP
15428fi
15429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
15430$as_echo "$CXXCPP" >&6; }
15431ac_preproc_ok=false
15432for ac_cxx_preproc_warn_flag in '' yes
15433do
15434  # Use a header file that comes with gcc, so configuring glibc
15435  # with a fresh cross-compiler works.
15436  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15437  # <limits.h> exists even on freestanding compilers.
15438  # On the NeXT, cc -E runs the code through the compiler's parser,
15439  # not just through cpp. "Syntax error" is here to catch this case.
15440  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15441/* end confdefs.h.  */
15442#ifdef __STDC__
15443# include <limits.h>
15444#else
15445# include <assert.h>
15446#endif
15447		     Syntax error
15448_ACEOF
15449if ac_fn_cxx_try_cpp "$LINENO"; then :
15450
15451else
15452  # Broken: fails on valid input.
15453continue
15454fi
15455rm -f conftest.err conftest.i conftest.$ac_ext
15456
15457  # OK, works on sane cases.  Now check whether nonexistent headers
15458  # can be detected and how.
15459  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15460/* end confdefs.h.  */
15461#include <ac_nonexistent.h>
15462_ACEOF
15463if ac_fn_cxx_try_cpp "$LINENO"; then :
15464  # Broken: success on invalid input.
15465continue
15466else
15467  # Passes both tests.
15468ac_preproc_ok=:
15469break
15470fi
15471rm -f conftest.err conftest.i conftest.$ac_ext
15472
15473done
15474# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15475rm -f conftest.i conftest.err conftest.$ac_ext
15476if $ac_preproc_ok; then :
15477
15478else
15479  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15480$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15481as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
15482See \`config.log' for more details" "$LINENO" 5; }
15483fi
15484
15485ac_ext=c
15486ac_cpp='$CPP $CPPFLAGS'
15487ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15488ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15489ac_compiler_gnu=$ac_cv_c_compiler_gnu
15490
15491else
15492  _lt_caught_CXX_error=yes
15493fi
15494
15495ac_ext=cpp
15496ac_cpp='$CXXCPP $CPPFLAGS'
15497ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15498ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15499ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15500
15501archive_cmds_need_lc_CXX=no
15502allow_undefined_flag_CXX=
15503always_export_symbols_CXX=no
15504archive_expsym_cmds_CXX=
15505compiler_needs_object_CXX=no
15506export_dynamic_flag_spec_CXX=
15507hardcode_direct_CXX=no
15508hardcode_direct_absolute_CXX=no
15509hardcode_libdir_flag_spec_CXX=
15510hardcode_libdir_separator_CXX=
15511hardcode_minus_L_CXX=no
15512hardcode_shlibpath_var_CXX=unsupported
15513hardcode_automatic_CXX=no
15514inherit_rpath_CXX=no
15515module_cmds_CXX=
15516module_expsym_cmds_CXX=
15517link_all_deplibs_CXX=unknown
15518old_archive_cmds_CXX=$old_archive_cmds
15519reload_flag_CXX=$reload_flag
15520reload_cmds_CXX=$reload_cmds
15521no_undefined_flag_CXX=
15522whole_archive_flag_spec_CXX=
15523enable_shared_with_static_runtimes_CXX=no
15524
15525# Source file extension for C++ test sources.
15526ac_ext=cpp
15527
15528# Object file extension for compiled C++ test sources.
15529objext=o
15530objext_CXX=$objext
15531
15532# No sense in running all these tests if we already determined that
15533# the CXX compiler isn't working.  Some variables (like enable_shared)
15534# are currently assumed to apply to all compilers on this platform,
15535# and will be corrupted by setting them based on a non-working compiler.
15536if test yes != "$_lt_caught_CXX_error"; then
15537  # Code to be used in simple compile tests
15538  lt_simple_compile_test_code="int some_variable = 0;"
15539
15540  # Code to be used in simple link tests
15541  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15542
15543  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15544
15545
15546
15547
15548
15549
15550# If no C compiler was specified, use CC.
15551LTCC=${LTCC-"$CC"}
15552
15553# If no C compiler flags were specified, use CFLAGS.
15554LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15555
15556# Allow CC to be a program name with arguments.
15557compiler=$CC
15558
15559
15560  # save warnings/boilerplate of simple test code
15561  ac_outfile=conftest.$ac_objext
15562echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15563eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15564_lt_compiler_boilerplate=`cat conftest.err`
15565$RM conftest*
15566
15567  ac_outfile=conftest.$ac_objext
15568echo "$lt_simple_link_test_code" >conftest.$ac_ext
15569eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15570_lt_linker_boilerplate=`cat conftest.err`
15571$RM -r conftest*
15572
15573
15574  # Allow CC to be a program name with arguments.
15575  lt_save_CC=$CC
15576  lt_save_CFLAGS=$CFLAGS
15577  lt_save_LD=$LD
15578  lt_save_GCC=$GCC
15579  GCC=$GXX
15580  lt_save_with_gnu_ld=$with_gnu_ld
15581  lt_save_path_LD=$lt_cv_path_LD
15582  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15583    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15584  else
15585    $as_unset lt_cv_prog_gnu_ld
15586  fi
15587  if test -n "${lt_cv_path_LDCXX+set}"; then
15588    lt_cv_path_LD=$lt_cv_path_LDCXX
15589  else
15590    $as_unset lt_cv_path_LD
15591  fi
15592  test -z "${LDCXX+set}" || LD=$LDCXX
15593  CC=${CXX-"c++"}
15594  CFLAGS=$CXXFLAGS
15595  compiler=$CC
15596  compiler_CXX=$CC
15597  func_cc_basename $compiler
15598cc_basename=$func_cc_basename_result
15599
15600
15601  if test -n "$compiler"; then
15602    # We don't want -fno-exception when compiling C++ code, so set the
15603    # no_builtin_flag separately
15604    if test yes = "$GXX"; then
15605      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15606    else
15607      lt_prog_compiler_no_builtin_flag_CXX=
15608    fi
15609
15610    if test yes = "$GXX"; then
15611      # Set up default GNU C++ configuration
15612
15613
15614
15615# Check whether --with-gnu-ld was given.
15616if test "${with_gnu_ld+set}" = set; then :
15617  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
15618else
15619  with_gnu_ld=no
15620fi
15621
15622ac_prog=ld
15623if test yes = "$GCC"; then
15624  # Check if gcc -print-prog-name=ld gives a path.
15625  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15626$as_echo_n "checking for ld used by $CC... " >&6; }
15627  case $host in
15628  *-*-mingw*)
15629    # gcc leaves a trailing carriage return, which upsets mingw
15630    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15631  *)
15632    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15633  esac
15634  case $ac_prog in
15635    # Accept absolute paths.
15636    [\\/]* | ?:[\\/]*)
15637      re_direlt='/[^/][^/]*/\.\./'
15638      # Canonicalize the pathname of ld
15639      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15640      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15641	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15642      done
15643      test -z "$LD" && LD=$ac_prog
15644      ;;
15645  "")
15646    # If it fails, then pretend we aren't using GCC.
15647    ac_prog=ld
15648    ;;
15649  *)
15650    # If it is relative, then search for the first ld in PATH.
15651    with_gnu_ld=unknown
15652    ;;
15653  esac
15654elif test yes = "$with_gnu_ld"; then
15655  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15656$as_echo_n "checking for GNU ld... " >&6; }
15657else
15658  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15659$as_echo_n "checking for non-GNU ld... " >&6; }
15660fi
15661if ${lt_cv_path_LD+:} false; then :
15662  $as_echo_n "(cached) " >&6
15663else
15664  if test -z "$LD"; then
15665  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15666  for ac_dir in $PATH; do
15667    IFS=$lt_save_ifs
15668    test -z "$ac_dir" && ac_dir=.
15669    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15670      lt_cv_path_LD=$ac_dir/$ac_prog
15671      # Check to see if the program is GNU ld.  I'd rather use --version,
15672      # but apparently some variants of GNU ld only accept -v.
15673      # Break only if it was the GNU/non-GNU ld that we prefer.
15674      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15675      *GNU* | *'with BFD'*)
15676	test no != "$with_gnu_ld" && break
15677	;;
15678      *)
15679	test yes != "$with_gnu_ld" && break
15680	;;
15681      esac
15682    fi
15683  done
15684  IFS=$lt_save_ifs
15685else
15686  lt_cv_path_LD=$LD # Let the user override the test with a path.
15687fi
15688fi
15689
15690LD=$lt_cv_path_LD
15691if test -n "$LD"; then
15692  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15693$as_echo "$LD" >&6; }
15694else
15695  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15696$as_echo "no" >&6; }
15697fi
15698test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15700$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15701if ${lt_cv_prog_gnu_ld+:} false; then :
15702  $as_echo_n "(cached) " >&6
15703else
15704  # I'd rather use --version here, but apparently some GNU lds only accept -v.
15705case `$LD -v 2>&1 </dev/null` in
15706*GNU* | *'with BFD'*)
15707  lt_cv_prog_gnu_ld=yes
15708  ;;
15709*)
15710  lt_cv_prog_gnu_ld=no
15711  ;;
15712esac
15713fi
15714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15715$as_echo "$lt_cv_prog_gnu_ld" >&6; }
15716with_gnu_ld=$lt_cv_prog_gnu_ld
15717
15718
15719
15720
15721
15722
15723
15724      # Check if GNU C++ uses GNU ld as the underlying linker, since the
15725      # archiving commands below assume that GNU ld is being used.
15726      if test yes = "$with_gnu_ld"; then
15727        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15728        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'
15729
15730        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15731        export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15732
15733        # If archive_cmds runs LD, not CC, wlarc should be empty
15734        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15735        #     investigate it a little bit more. (MM)
15736        wlarc='$wl'
15737
15738        # ancient GNU ld didn't support --whole-archive et. al.
15739        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15740	  $GREP 'no-whole-archive' > /dev/null; then
15741          whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15742        else
15743          whole_archive_flag_spec_CXX=
15744        fi
15745      else
15746        with_gnu_ld=no
15747        wlarc=
15748
15749        # A generic and very simple default shared library creation
15750        # command for GNU C++ for the case where it uses the native
15751        # linker, instead of GNU ld.  If possible, this setting should
15752        # overridden to take advantage of the native linker features on
15753        # the platform it is being used on.
15754        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15755      fi
15756
15757      # Commands to make compiler produce verbose output that lists
15758      # what "hidden" libraries, object files and flags are used when
15759      # linking a shared library.
15760      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15761
15762    else
15763      GXX=no
15764      with_gnu_ld=no
15765      wlarc=
15766    fi
15767
15768    # PORTME: fill in a description of your system's C++ link characteristics
15769    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15770$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15771    ld_shlibs_CXX=yes
15772    case $host_os in
15773      aix3*)
15774        # FIXME: insert proper C++ library support
15775        ld_shlibs_CXX=no
15776        ;;
15777      aix[4-9]*)
15778        if test ia64 = "$host_cpu"; then
15779          # On IA64, the linker does run time linking by default, so we don't
15780          # have to do anything special.
15781          aix_use_runtimelinking=no
15782          exp_sym_flag='-Bexport'
15783          no_entry_flag=
15784        else
15785          aix_use_runtimelinking=no
15786
15787          # Test if we are trying to use run time linking or normal
15788          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15789          # have runtime linking enabled, and use it for executables.
15790          # For shared libraries, we enable/disable runtime linking
15791          # depending on the kind of the shared library created -
15792          # when "with_aix_soname,aix_use_runtimelinking" is:
15793          # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
15794          # "aix,yes"  lib.so          shared, rtl:yes, for executables
15795          #            lib.a           static archive
15796          # "both,no"  lib.so.V(shr.o) shared, rtl:yes
15797          #            lib.a(lib.so.V) shared, rtl:no,  for executables
15798          # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15799          #            lib.a(lib.so.V) shared, rtl:no
15800          # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
15801          #            lib.a           static archive
15802          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15803	    for ld_flag in $LDFLAGS; do
15804	      case $ld_flag in
15805	      *-brtl*)
15806	        aix_use_runtimelinking=yes
15807	        break
15808	        ;;
15809	      esac
15810	    done
15811	    if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15812	      # With aix-soname=svr4, we create the lib.so.V shared archives only,
15813	      # so we don't have lib.a shared libs to link our executables.
15814	      # We have to force runtime linking in this case.
15815	      aix_use_runtimelinking=yes
15816	      LDFLAGS="$LDFLAGS -Wl,-brtl"
15817	    fi
15818	    ;;
15819          esac
15820
15821          exp_sym_flag='-bexport'
15822          no_entry_flag='-bnoentry'
15823        fi
15824
15825        # When large executables or shared objects are built, AIX ld can
15826        # have problems creating the table of contents.  If linking a library
15827        # or program results in "error TOC overflow" add -mminimal-toc to
15828        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15829        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15830
15831        archive_cmds_CXX=''
15832        hardcode_direct_CXX=yes
15833        hardcode_direct_absolute_CXX=yes
15834        hardcode_libdir_separator_CXX=':'
15835        link_all_deplibs_CXX=yes
15836        file_list_spec_CXX='$wl-f,'
15837        case $with_aix_soname,$aix_use_runtimelinking in
15838        aix,*) ;;	# no import file
15839        svr4,* | *,yes) # use import file
15840          # The Import File defines what to hardcode.
15841          hardcode_direct_CXX=no
15842          hardcode_direct_absolute_CXX=no
15843          ;;
15844        esac
15845
15846        if test yes = "$GXX"; then
15847          case $host_os in aix4.[012]|aix4.[012].*)
15848          # We only want to do this on AIX 4.2 and lower, the check
15849          # below for broken collect2 doesn't work under 4.3+
15850	  collect2name=`$CC -print-prog-name=collect2`
15851	  if test -f "$collect2name" &&
15852	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15853	  then
15854	    # We have reworked collect2
15855	    :
15856	  else
15857	    # We have old collect2
15858	    hardcode_direct_CXX=unsupported
15859	    # It fails to find uninstalled libraries when the uninstalled
15860	    # path is not listed in the libpath.  Setting hardcode_minus_L
15861	    # to unsupported forces relinking
15862	    hardcode_minus_L_CXX=yes
15863	    hardcode_libdir_flag_spec_CXX='-L$libdir'
15864	    hardcode_libdir_separator_CXX=
15865	  fi
15866          esac
15867          shared_flag='-shared'
15868	  if test yes = "$aix_use_runtimelinking"; then
15869	    shared_flag=$shared_flag' $wl-G'
15870	  fi
15871	  # Need to ensure runtime linking is disabled for the traditional
15872	  # shared library, or the linker may eventually find shared libraries
15873	  # /with/ Import File - we do not want to mix them.
15874	  shared_flag_aix='-shared'
15875	  shared_flag_svr4='-shared $wl-G'
15876        else
15877          # not using gcc
15878          if test ia64 = "$host_cpu"; then
15879	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15880	  # chokes on -Wl,-G. The following line is correct:
15881	  shared_flag='-G'
15882          else
15883	    if test yes = "$aix_use_runtimelinking"; then
15884	      shared_flag='$wl-G'
15885	    else
15886	      shared_flag='$wl-bM:SRE'
15887	    fi
15888	    shared_flag_aix='$wl-bM:SRE'
15889	    shared_flag_svr4='$wl-G'
15890          fi
15891        fi
15892
15893        export_dynamic_flag_spec_CXX='$wl-bexpall'
15894        # It seems that -bexpall does not export symbols beginning with
15895        # underscore (_), so it is better to generate a list of symbols to
15896	# export.
15897        always_export_symbols_CXX=yes
15898	if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15899          # Warning - without using the other runtime loading flags (-brtl),
15900          # -berok will link without error, but may produce a broken library.
15901          # The "-G" linker flag allows undefined symbols.
15902          no_undefined_flag_CXX='-bernotok'
15903          # Determine the default libpath from the value encoded in an empty
15904          # executable.
15905          if test set = "${lt_cv_aix_libpath+set}"; then
15906  aix_libpath=$lt_cv_aix_libpath
15907else
15908  if ${lt_cv_aix_libpath__CXX+:} false; then :
15909  $as_echo_n "(cached) " >&6
15910else
15911  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15912/* end confdefs.h.  */
15913
15914int
15915main ()
15916{
15917
15918  ;
15919  return 0;
15920}
15921_ACEOF
15922if ac_fn_cxx_try_link "$LINENO"; then :
15923
15924  lt_aix_libpath_sed='
15925      /Import File Strings/,/^$/ {
15926	  /^0/ {
15927	      s/^0  *\([^ ]*\) *$/\1/
15928	      p
15929	  }
15930      }'
15931  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15932  # Check for a 64-bit object if we didn't find anything.
15933  if test -z "$lt_cv_aix_libpath__CXX"; then
15934    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15935  fi
15936fi
15937rm -f core conftest.err conftest.$ac_objext \
15938    conftest$ac_exeext conftest.$ac_ext
15939  if test -z "$lt_cv_aix_libpath__CXX"; then
15940    lt_cv_aix_libpath__CXX=/usr/lib:/lib
15941  fi
15942
15943fi
15944
15945  aix_libpath=$lt_cv_aix_libpath__CXX
15946fi
15947
15948          hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15949
15950          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
15951        else
15952          if test ia64 = "$host_cpu"; then
15953	    hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
15954	    allow_undefined_flag_CXX="-z nodefs"
15955	    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"
15956          else
15957	    # Determine the default libpath from the value encoded in an
15958	    # empty executable.
15959	    if test set = "${lt_cv_aix_libpath+set}"; then
15960  aix_libpath=$lt_cv_aix_libpath
15961else
15962  if ${lt_cv_aix_libpath__CXX+:} false; then :
15963  $as_echo_n "(cached) " >&6
15964else
15965  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15966/* end confdefs.h.  */
15967
15968int
15969main ()
15970{
15971
15972  ;
15973  return 0;
15974}
15975_ACEOF
15976if ac_fn_cxx_try_link "$LINENO"; then :
15977
15978  lt_aix_libpath_sed='
15979      /Import File Strings/,/^$/ {
15980	  /^0/ {
15981	      s/^0  *\([^ ]*\) *$/\1/
15982	      p
15983	  }
15984      }'
15985  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15986  # Check for a 64-bit object if we didn't find anything.
15987  if test -z "$lt_cv_aix_libpath__CXX"; then
15988    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15989  fi
15990fi
15991rm -f core conftest.err conftest.$ac_objext \
15992    conftest$ac_exeext conftest.$ac_ext
15993  if test -z "$lt_cv_aix_libpath__CXX"; then
15994    lt_cv_aix_libpath__CXX=/usr/lib:/lib
15995  fi
15996
15997fi
15998
15999  aix_libpath=$lt_cv_aix_libpath__CXX
16000fi
16001
16002	    hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
16003	    # Warning - without using the other run time loading flags,
16004	    # -berok will link without error, but may produce a broken library.
16005	    no_undefined_flag_CXX=' $wl-bernotok'
16006	    allow_undefined_flag_CXX=' $wl-berok'
16007	    if test yes = "$with_gnu_ld"; then
16008	      # We only use this code for GNU lds that support --whole-archive.
16009	      whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
16010	    else
16011	      # Exported symbols can be pulled into shared objects from archives
16012	      whole_archive_flag_spec_CXX='$convenience'
16013	    fi
16014	    archive_cmds_need_lc_CXX=yes
16015	    archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
16016	    # -brtl affects multiple linker settings, -berok does not and is overridden later
16017	    compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
16018	    if test svr4 != "$with_aix_soname"; then
16019	      # This is similar to how AIX traditionally builds its shared
16020	      # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
16021	      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'
16022	    fi
16023	    if test aix != "$with_aix_soname"; then
16024	      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'
16025	    else
16026	      # used by -dlpreopen to get the symbols
16027	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
16028	    fi
16029	    archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
16030          fi
16031        fi
16032        ;;
16033
16034      beos*)
16035	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16036	  allow_undefined_flag_CXX=unsupported
16037	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16038	  # support --undefined.  This deserves some investigation.  FIXME
16039	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16040	else
16041	  ld_shlibs_CXX=no
16042	fi
16043	;;
16044
16045      chorus*)
16046        case $cc_basename in
16047          *)
16048	  # FIXME: insert proper C++ library support
16049	  ld_shlibs_CXX=no
16050	  ;;
16051        esac
16052        ;;
16053
16054      cygwin* | mingw* | pw32* | cegcc*)
16055	case $GXX,$cc_basename in
16056	,cl* | no,cl*)
16057	  # Native MSVC
16058	  # hardcode_libdir_flag_spec is actually meaningless, as there is
16059	  # no search path for DLLs.
16060	  hardcode_libdir_flag_spec_CXX=' '
16061	  allow_undefined_flag_CXX=unsupported
16062	  always_export_symbols_CXX=yes
16063	  file_list_spec_CXX='@'
16064	  # Tell ltmain to make .lib files, not .a files.
16065	  libext=lib
16066	  # Tell ltmain to make .dll files, not .so files.
16067	  shrext_cmds=.dll
16068	  # FIXME: Setting linknames here is a bad hack.
16069	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16070	  archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
16071              cp "$export_symbols" "$output_objdir/$soname.def";
16072              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16073            else
16074              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16075            fi~
16076            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16077            linknames='
16078	  # The linker will not automatically build a static lib if we build a DLL.
16079	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
16080	  enable_shared_with_static_runtimes_CXX=yes
16081	  # Don't use ranlib
16082	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
16083	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
16084            lt_tool_outputfile="@TOOL_OUTPUT@"~
16085            case $lt_outputfile in
16086              *.exe|*.EXE) ;;
16087              *)
16088                lt_outputfile=$lt_outputfile.exe
16089                lt_tool_outputfile=$lt_tool_outputfile.exe
16090                ;;
16091            esac~
16092            func_to_tool_file "$lt_outputfile"~
16093            if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16094              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16095              $RM "$lt_outputfile.manifest";
16096            fi'
16097	  ;;
16098	*)
16099	  # g++
16100	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16101	  # as there is no search path for DLLs.
16102	  hardcode_libdir_flag_spec_CXX='-L$libdir'
16103	  export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
16104	  allow_undefined_flag_CXX=unsupported
16105	  always_export_symbols_CXX=no
16106	  enable_shared_with_static_runtimes_CXX=yes
16107
16108	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16109	    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'
16110	    # If the export-symbols file already is a .def file, use it as
16111	    # is; otherwise, prepend EXPORTS...
16112	    archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
16113              cp $export_symbols $output_objdir/$soname.def;
16114            else
16115              echo EXPORTS > $output_objdir/$soname.def;
16116              cat $export_symbols >> $output_objdir/$soname.def;
16117            fi~
16118            $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'
16119	  else
16120	    ld_shlibs_CXX=no
16121	  fi
16122	  ;;
16123	esac
16124	;;
16125      darwin* | rhapsody*)
16126
16127
16128  archive_cmds_need_lc_CXX=no
16129  hardcode_direct_CXX=no
16130  hardcode_automatic_CXX=yes
16131  hardcode_shlibpath_var_CXX=unsupported
16132  if test yes = "$lt_cv_ld_force_load"; then
16133    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\"`'
16134
16135  else
16136    whole_archive_flag_spec_CXX=''
16137  fi
16138  link_all_deplibs_CXX=yes
16139  allow_undefined_flag_CXX=$_lt_dar_allow_undefined
16140  case $cc_basename in
16141     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16142     *) _lt_dar_can_shared=$GCC ;;
16143  esac
16144  if test yes = "$_lt_dar_can_shared"; then
16145    output_verbose_link_cmd=func_echo_all
16146    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"
16147    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16148    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"
16149    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"
16150       if test yes != "$lt_cv_apple_cc_single_mod"; then
16151      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"
16152      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"
16153    fi
16154
16155  else
16156  ld_shlibs_CXX=no
16157  fi
16158
16159	;;
16160
16161      os2*)
16162	hardcode_libdir_flag_spec_CXX='-L$libdir'
16163	hardcode_minus_L_CXX=yes
16164	allow_undefined_flag_CXX=unsupported
16165	shrext_cmds=.dll
16166	archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16167	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16168	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16169	  $ECHO EXPORTS >> $output_objdir/$libname.def~
16170	  emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16171	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16172	  emximp -o $lib $output_objdir/$libname.def'
16173	archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16174	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16175	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16176	  $ECHO EXPORTS >> $output_objdir/$libname.def~
16177	  prefix_cmds="$SED"~
16178	  if test EXPORTS = "`$SED 1q $export_symbols`"; then
16179	    prefix_cmds="$prefix_cmds -e 1d";
16180	  fi~
16181	  prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16182	  cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16183	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16184	  emximp -o $lib $output_objdir/$libname.def'
16185	old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16186	enable_shared_with_static_runtimes_CXX=yes
16187	;;
16188
16189      dgux*)
16190        case $cc_basename in
16191          ec++*)
16192	    # FIXME: insert proper C++ library support
16193	    ld_shlibs_CXX=no
16194	    ;;
16195          ghcx*)
16196	    # Green Hills C++ Compiler
16197	    # FIXME: insert proper C++ library support
16198	    ld_shlibs_CXX=no
16199	    ;;
16200          *)
16201	    # FIXME: insert proper C++ library support
16202	    ld_shlibs_CXX=no
16203	    ;;
16204        esac
16205        ;;
16206
16207      freebsd2.*)
16208        # C++ shared libraries reported to be fairly broken before
16209	# switch to ELF
16210        ld_shlibs_CXX=no
16211        ;;
16212
16213      freebsd-elf*)
16214        archive_cmds_need_lc_CXX=no
16215        ;;
16216
16217      freebsd* | dragonfly*)
16218        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16219        # conventions
16220        ld_shlibs_CXX=yes
16221        ;;
16222
16223      haiku*)
16224        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16225        link_all_deplibs_CXX=yes
16226        ;;
16227
16228      hpux9*)
16229        hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
16230        hardcode_libdir_separator_CXX=:
16231        export_dynamic_flag_spec_CXX='$wl-E'
16232        hardcode_direct_CXX=yes
16233        hardcode_minus_L_CXX=yes # Not in the search PATH,
16234				             # but as the default
16235				             # location of the library.
16236
16237        case $cc_basename in
16238          CC*)
16239            # FIXME: insert proper C++ library support
16240            ld_shlibs_CXX=no
16241            ;;
16242          aCC*)
16243            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'
16244            # Commands to make compiler produce verbose output that lists
16245            # what "hidden" libraries, object files and flags are used when
16246            # linking a shared library.
16247            #
16248            # There doesn't appear to be a way to prevent this compiler from
16249            # explicitly linking system object files so we need to strip them
16250            # from the output so that they don't get included in the library
16251            # dependencies.
16252            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"'
16253            ;;
16254          *)
16255            if test yes = "$GXX"; then
16256              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'
16257            else
16258              # FIXME: insert proper C++ library support
16259              ld_shlibs_CXX=no
16260            fi
16261            ;;
16262        esac
16263        ;;
16264
16265      hpux10*|hpux11*)
16266        if test no = "$with_gnu_ld"; then
16267	  hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
16268	  hardcode_libdir_separator_CXX=:
16269
16270          case $host_cpu in
16271            hppa*64*|ia64*)
16272              ;;
16273            *)
16274	      export_dynamic_flag_spec_CXX='$wl-E'
16275              ;;
16276          esac
16277        fi
16278        case $host_cpu in
16279          hppa*64*|ia64*)
16280            hardcode_direct_CXX=no
16281            hardcode_shlibpath_var_CXX=no
16282            ;;
16283          *)
16284            hardcode_direct_CXX=yes
16285            hardcode_direct_absolute_CXX=yes
16286            hardcode_minus_L_CXX=yes # Not in the search PATH,
16287					         # but as the default
16288					         # location of the library.
16289            ;;
16290        esac
16291
16292        case $cc_basename in
16293          CC*)
16294	    # FIXME: insert proper C++ library support
16295	    ld_shlibs_CXX=no
16296	    ;;
16297          aCC*)
16298	    case $host_cpu in
16299	      hppa*64*)
16300	        archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16301	        ;;
16302	      ia64*)
16303	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16304	        ;;
16305	      *)
16306	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16307	        ;;
16308	    esac
16309	    # Commands to make compiler produce verbose output that lists
16310	    # what "hidden" libraries, object files and flags are used when
16311	    # linking a shared library.
16312	    #
16313	    # There doesn't appear to be a way to prevent this compiler from
16314	    # explicitly linking system object files so we need to strip them
16315	    # from the output so that they don't get included in the library
16316	    # dependencies.
16317	    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"'
16318	    ;;
16319          *)
16320	    if test yes = "$GXX"; then
16321	      if test no = "$with_gnu_ld"; then
16322	        case $host_cpu in
16323	          hppa*64*)
16324	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16325	            ;;
16326	          ia64*)
16327	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16328	            ;;
16329	          *)
16330	            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'
16331	            ;;
16332	        esac
16333	      fi
16334	    else
16335	      # FIXME: insert proper C++ library support
16336	      ld_shlibs_CXX=no
16337	    fi
16338	    ;;
16339        esac
16340        ;;
16341
16342      interix[3-9]*)
16343	hardcode_direct_CXX=no
16344	hardcode_shlibpath_var_CXX=no
16345	hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16346	export_dynamic_flag_spec_CXX='$wl-E'
16347	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16348	# Instead, shared libraries are loaded at an image base (0x10000000 by
16349	# default) and relocated if they conflict, which is a slow very memory
16350	# consuming and fragmenting process.  To avoid this, we pick a random,
16351	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16352	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16353	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'
16354	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'
16355	;;
16356      irix5* | irix6*)
16357        case $cc_basename in
16358          CC*)
16359	    # SGI C++
16360	    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'
16361
16362	    # Archives containing C++ object files must be created using
16363	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
16364	    # necessary to make sure instantiated templates are included
16365	    # in the archive.
16366	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16367	    ;;
16368          *)
16369	    if test yes = "$GXX"; then
16370	      if test no = "$with_gnu_ld"; then
16371	        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'
16372	      else
16373	        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'
16374	      fi
16375	    fi
16376	    link_all_deplibs_CXX=yes
16377	    ;;
16378        esac
16379        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16380        hardcode_libdir_separator_CXX=:
16381        inherit_rpath_CXX=yes
16382        ;;
16383
16384      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16385        case $cc_basename in
16386          KCC*)
16387	    # Kuck and Associates, Inc. (KAI) C++ Compiler
16388
16389	    # KCC will only create a shared library if the output file
16390	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
16391	    # to its proper name (with version) after linking.
16392	    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'
16393	    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'
16394	    # Commands to make compiler produce verbose output that lists
16395	    # what "hidden" libraries, object files and flags are used when
16396	    # linking a shared library.
16397	    #
16398	    # There doesn't appear to be a way to prevent this compiler from
16399	    # explicitly linking system object files so we need to strip them
16400	    # from the output so that they don't get included in the library
16401	    # dependencies.
16402	    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"'
16403
16404	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16405	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16406
16407	    # Archives containing C++ object files must be created using
16408	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16409	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16410	    ;;
16411	  icpc* | ecpc* )
16412	    # Intel C++
16413	    with_gnu_ld=yes
16414	    # version 8.0 and above of icpc choke on multiply defined symbols
16415	    # if we add $predep_objects and $postdep_objects, however 7.1 and
16416	    # earlier do not add the objects themselves.
16417	    case `$CC -V 2>&1` in
16418	      *"Version 7."*)
16419	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16420		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'
16421		;;
16422	      *)  # Version 8.0 or newer
16423	        tmp_idyn=
16424	        case $host_cpu in
16425		  ia64*) tmp_idyn=' -i_dynamic';;
16426		esac
16427	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16428		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'
16429		;;
16430	    esac
16431	    archive_cmds_need_lc_CXX=no
16432	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16433	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16434	    whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
16435	    ;;
16436          pgCC* | pgcpp*)
16437            # Portland Group C++ compiler
16438	    case `$CC -V` in
16439	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
16440	      prelink_cmds_CXX='tpldir=Template.dir~
16441               rm -rf $tpldir~
16442               $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16443               compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
16444	      old_archive_cmds_CXX='tpldir=Template.dir~
16445                rm -rf $tpldir~
16446                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16447                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
16448                $RANLIB $oldlib'
16449	      archive_cmds_CXX='tpldir=Template.dir~
16450                rm -rf $tpldir~
16451                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16452                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16453	      archive_expsym_cmds_CXX='tpldir=Template.dir~
16454                rm -rf $tpldir~
16455                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16456                $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'
16457	      ;;
16458	    *) # Version 6 and above use weak symbols
16459	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16460	      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'
16461	      ;;
16462	    esac
16463
16464	    hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
16465	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16466	    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'
16467            ;;
16468	  cxx*)
16469	    # Compaq C++
16470	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16471	    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'
16472
16473	    runpath_var=LD_RUN_PATH
16474	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16475	    hardcode_libdir_separator_CXX=:
16476
16477	    # Commands to make compiler produce verbose output that lists
16478	    # what "hidden" libraries, object files and flags are used when
16479	    # linking a shared library.
16480	    #
16481	    # There doesn't appear to be a way to prevent this compiler from
16482	    # explicitly linking system object files so we need to strip them
16483	    # from the output so that they don't get included in the library
16484	    # dependencies.
16485	    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'
16486	    ;;
16487	  xl* | mpixl* | bgxl*)
16488	    # IBM XL 8.0 on PPC, with GNU ld
16489	    hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16490	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16491	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16492	    if test yes = "$supports_anon_versioning"; then
16493	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16494                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16495                echo "local: *; };" >> $output_objdir/$libname.ver~
16496                $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
16497	    fi
16498	    ;;
16499	  *)
16500	    case `$CC -V 2>&1 | sed 5q` in
16501	    *Sun\ C*)
16502	      # Sun C++ 5.9
16503	      no_undefined_flag_CXX=' -zdefs'
16504	      archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16505	      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'
16506	      hardcode_libdir_flag_spec_CXX='-R$libdir'
16507	      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'
16508	      compiler_needs_object_CXX=yes
16509
16510	      # Not sure whether something based on
16511	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16512	      # would be better.
16513	      output_verbose_link_cmd='func_echo_all'
16514
16515	      # Archives containing C++ object files must be created using
16516	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16517	      # necessary to make sure instantiated templates are included
16518	      # in the archive.
16519	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16520	      ;;
16521	    esac
16522	    ;;
16523	esac
16524	;;
16525
16526      lynxos*)
16527        # FIXME: insert proper C++ library support
16528	ld_shlibs_CXX=no
16529	;;
16530
16531      m88k*)
16532        # FIXME: insert proper C++ library support
16533        ld_shlibs_CXX=no
16534	;;
16535
16536      mvs*)
16537        case $cc_basename in
16538          cxx*)
16539	    # FIXME: insert proper C++ library support
16540	    ld_shlibs_CXX=no
16541	    ;;
16542	  *)
16543	    # FIXME: insert proper C++ library support
16544	    ld_shlibs_CXX=no
16545	    ;;
16546	esac
16547	;;
16548
16549      netbsd*)
16550        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16551	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16552	  wlarc=
16553	  hardcode_libdir_flag_spec_CXX='-R$libdir'
16554	  hardcode_direct_CXX=yes
16555	  hardcode_shlibpath_var_CXX=no
16556	fi
16557	# Workaround some broken pre-1.5 toolchains
16558	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16559	;;
16560
16561      *nto* | *qnx*)
16562        ld_shlibs_CXX=yes
16563	;;
16564
16565      openbsd* | bitrig*)
16566	if test -f /usr/libexec/ld.so; then
16567	  hardcode_direct_CXX=yes
16568	  hardcode_shlibpath_var_CXX=no
16569	  hardcode_direct_absolute_CXX=yes
16570	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16571	  hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16572	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
16573	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
16574	    export_dynamic_flag_spec_CXX='$wl-E'
16575	    whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16576	  fi
16577	  output_verbose_link_cmd=func_echo_all
16578	else
16579	  ld_shlibs_CXX=no
16580	fi
16581	;;
16582
16583      osf3* | osf4* | osf5*)
16584        case $cc_basename in
16585          KCC*)
16586	    # Kuck and Associates, Inc. (KAI) C++ Compiler
16587
16588	    # KCC will only create a shared library if the output file
16589	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
16590	    # to its proper name (with version) after linking.
16591	    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'
16592
16593	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16594	    hardcode_libdir_separator_CXX=:
16595
16596	    # Archives containing C++ object files must be created using
16597	    # the KAI C++ compiler.
16598	    case $host in
16599	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16600	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16601	    esac
16602	    ;;
16603          RCC*)
16604	    # Rational C++ 2.4.1
16605	    # FIXME: insert proper C++ library support
16606	    ld_shlibs_CXX=no
16607	    ;;
16608          cxx*)
16609	    case $host in
16610	      osf3*)
16611	        allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16612	        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'
16613	        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16614		;;
16615	      *)
16616	        allow_undefined_flag_CXX=' -expect_unresolved \*'
16617	        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'
16618	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16619                  echo "-hidden">> $lib.exp~
16620                  $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~
16621                  $RM $lib.exp'
16622	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16623		;;
16624	    esac
16625
16626	    hardcode_libdir_separator_CXX=:
16627
16628	    # Commands to make compiler produce verbose output that lists
16629	    # what "hidden" libraries, object files and flags are used when
16630	    # linking a shared library.
16631	    #
16632	    # There doesn't appear to be a way to prevent this compiler from
16633	    # explicitly linking system object files so we need to strip them
16634	    # from the output so that they don't get included in the library
16635	    # dependencies.
16636	    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"'
16637	    ;;
16638	  *)
16639	    if test yes,no = "$GXX,$with_gnu_ld"; then
16640	      allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16641	      case $host in
16642	        osf3*)
16643	          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'
16644		  ;;
16645	        *)
16646	          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'
16647		  ;;
16648	      esac
16649
16650	      hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16651	      hardcode_libdir_separator_CXX=:
16652
16653	      # Commands to make compiler produce verbose output that lists
16654	      # what "hidden" libraries, object files and flags are used when
16655	      # linking a shared library.
16656	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16657
16658	    else
16659	      # FIXME: insert proper C++ library support
16660	      ld_shlibs_CXX=no
16661	    fi
16662	    ;;
16663        esac
16664        ;;
16665
16666      psos*)
16667        # FIXME: insert proper C++ library support
16668        ld_shlibs_CXX=no
16669        ;;
16670
16671      sunos4*)
16672        case $cc_basename in
16673          CC*)
16674	    # Sun C++ 4.x
16675	    # FIXME: insert proper C++ library support
16676	    ld_shlibs_CXX=no
16677	    ;;
16678          lcc*)
16679	    # Lucid
16680	    # FIXME: insert proper C++ library support
16681	    ld_shlibs_CXX=no
16682	    ;;
16683          *)
16684	    # FIXME: insert proper C++ library support
16685	    ld_shlibs_CXX=no
16686	    ;;
16687        esac
16688        ;;
16689
16690      solaris*)
16691        case $cc_basename in
16692          CC* | sunCC*)
16693	    # Sun C++ 4.2, 5.x and Centerline C++
16694            archive_cmds_need_lc_CXX=yes
16695	    no_undefined_flag_CXX=' -zdefs'
16696	    archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16697	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16698              $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'
16699
16700	    hardcode_libdir_flag_spec_CXX='-R$libdir'
16701	    hardcode_shlibpath_var_CXX=no
16702	    case $host_os in
16703	      solaris2.[0-5] | solaris2.[0-5].*) ;;
16704	      *)
16705		# The compiler driver will combine and reorder linker options,
16706		# but understands '-z linker_flag'.
16707	        # Supported since Solaris 2.6 (maybe 2.5.1?)
16708		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16709	        ;;
16710	    esac
16711	    link_all_deplibs_CXX=yes
16712
16713	    output_verbose_link_cmd='func_echo_all'
16714
16715	    # Archives containing C++ object files must be created using
16716	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16717	    # necessary to make sure instantiated templates are included
16718	    # in the archive.
16719	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16720	    ;;
16721          gcx*)
16722	    # Green Hills C++ Compiler
16723	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16724
16725	    # The C++ compiler must be used to create the archive.
16726	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16727	    ;;
16728          *)
16729	    # GNU C++ compiler with Solaris linker
16730	    if test yes,no = "$GXX,$with_gnu_ld"; then
16731	      no_undefined_flag_CXX=' $wl-z ${wl}defs'
16732	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16733	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16734	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16735                  $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'
16736
16737	        # Commands to make compiler produce verbose output that lists
16738	        # what "hidden" libraries, object files and flags are used when
16739	        # linking a shared library.
16740	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16741	      else
16742	        # g++ 2.7 appears to require '-G' NOT '-shared' on this
16743	        # platform.
16744	        archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16745	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16746                  $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'
16747
16748	        # Commands to make compiler produce verbose output that lists
16749	        # what "hidden" libraries, object files and flags are used when
16750	        # linking a shared library.
16751	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16752	      fi
16753
16754	      hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
16755	      case $host_os in
16756		solaris2.[0-5] | solaris2.[0-5].*) ;;
16757		*)
16758		  whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16759		  ;;
16760	      esac
16761	    fi
16762	    ;;
16763        esac
16764        ;;
16765
16766    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16767      no_undefined_flag_CXX='$wl-z,text'
16768      archive_cmds_need_lc_CXX=no
16769      hardcode_shlibpath_var_CXX=no
16770      runpath_var='LD_RUN_PATH'
16771
16772      case $cc_basename in
16773        CC*)
16774	  archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16775	  archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16776	  ;;
16777	*)
16778	  archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16779	  archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16780	  ;;
16781      esac
16782      ;;
16783
16784      sysv5* | sco3.2v5* | sco5v6*)
16785	# Note: We CANNOT use -z defs as we might desire, because we do not
16786	# link with -lc, and that would cause any symbols used from libc to
16787	# always be unresolved, which means just about no library would
16788	# ever link correctly.  If we're not using GNU ld we use -z text
16789	# though, which does catch some bad symbols but isn't as heavy-handed
16790	# as -z defs.
16791	no_undefined_flag_CXX='$wl-z,text'
16792	allow_undefined_flag_CXX='$wl-z,nodefs'
16793	archive_cmds_need_lc_CXX=no
16794	hardcode_shlibpath_var_CXX=no
16795	hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
16796	hardcode_libdir_separator_CXX=':'
16797	link_all_deplibs_CXX=yes
16798	export_dynamic_flag_spec_CXX='$wl-Bexport'
16799	runpath_var='LD_RUN_PATH'
16800
16801	case $cc_basename in
16802          CC*)
16803	    archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16804	    archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16805	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16806              '"$old_archive_cmds_CXX"
16807	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16808              '"$reload_cmds_CXX"
16809	    ;;
16810	  *)
16811	    archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16812	    archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16813	    ;;
16814	esac
16815      ;;
16816
16817      tandem*)
16818        case $cc_basename in
16819          NCC*)
16820	    # NonStop-UX NCC 3.20
16821	    # FIXME: insert proper C++ library support
16822	    ld_shlibs_CXX=no
16823	    ;;
16824          *)
16825	    # FIXME: insert proper C++ library support
16826	    ld_shlibs_CXX=no
16827	    ;;
16828        esac
16829        ;;
16830
16831      vxworks*)
16832        # FIXME: insert proper C++ library support
16833        ld_shlibs_CXX=no
16834        ;;
16835
16836      *)
16837        # FIXME: insert proper C++ library support
16838        ld_shlibs_CXX=no
16839        ;;
16840    esac
16841
16842    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16843$as_echo "$ld_shlibs_CXX" >&6; }
16844    test no = "$ld_shlibs_CXX" && can_build_shared=no
16845
16846    GCC_CXX=$GXX
16847    LD_CXX=$LD
16848
16849    ## CAVEAT EMPTOR:
16850    ## There is no encapsulation within the following macros, do not change
16851    ## the running order or otherwise move them around unless you know exactly
16852    ## what you are doing...
16853    # Dependencies to place before and after the object being linked:
16854predep_objects_CXX=
16855postdep_objects_CXX=
16856predeps_CXX=
16857postdeps_CXX=
16858compiler_lib_search_path_CXX=
16859
16860cat > conftest.$ac_ext <<_LT_EOF
16861class Foo
16862{
16863public:
16864  Foo (void) { a = 0; }
16865private:
16866  int a;
16867};
16868_LT_EOF
16869
16870
16871_lt_libdeps_save_CFLAGS=$CFLAGS
16872case "$CC $CFLAGS " in #(
16873*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16874*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
16875*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
16876esac
16877
16878if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16879  (eval $ac_compile) 2>&5
16880  ac_status=$?
16881  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16882  test $ac_status = 0; }; then
16883  # Parse the compiler output and extract the necessary
16884  # objects, libraries and library flags.
16885
16886  # Sentinel used to keep track of whether or not we are before
16887  # the conftest object file.
16888  pre_test_object_deps_done=no
16889
16890  for p in `eval "$output_verbose_link_cmd"`; do
16891    case $prev$p in
16892
16893    -L* | -R* | -l*)
16894       # Some compilers place space between "-{L,R}" and the path.
16895       # Remove the space.
16896       if test x-L = "$p" ||
16897          test x-R = "$p"; then
16898	 prev=$p
16899	 continue
16900       fi
16901
16902       # Expand the sysroot to ease extracting the directories later.
16903       if test -z "$prev"; then
16904         case $p in
16905         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16906         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16907         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16908         esac
16909       fi
16910       case $p in
16911       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16912       esac
16913       if test no = "$pre_test_object_deps_done"; then
16914	 case $prev in
16915	 -L | -R)
16916	   # Internal compiler library paths should come after those
16917	   # provided the user.  The postdeps already come after the
16918	   # user supplied libs so there is no need to process them.
16919	   if test -z "$compiler_lib_search_path_CXX"; then
16920	     compiler_lib_search_path_CXX=$prev$p
16921	   else
16922	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
16923	   fi
16924	   ;;
16925	 # The "-l" case would never come before the object being
16926	 # linked, so don't bother handling this case.
16927	 esac
16928       else
16929	 if test -z "$postdeps_CXX"; then
16930	   postdeps_CXX=$prev$p
16931	 else
16932	   postdeps_CXX="${postdeps_CXX} $prev$p"
16933	 fi
16934       fi
16935       prev=
16936       ;;
16937
16938    *.lto.$objext) ;; # Ignore GCC LTO objects
16939    *.$objext)
16940       # This assumes that the test object file only shows up
16941       # once in the compiler output.
16942       if test "$p" = "conftest.$objext"; then
16943	 pre_test_object_deps_done=yes
16944	 continue
16945       fi
16946
16947       if test no = "$pre_test_object_deps_done"; then
16948	 if test -z "$predep_objects_CXX"; then
16949	   predep_objects_CXX=$p
16950	 else
16951	   predep_objects_CXX="$predep_objects_CXX $p"
16952	 fi
16953       else
16954	 if test -z "$postdep_objects_CXX"; then
16955	   postdep_objects_CXX=$p
16956	 else
16957	   postdep_objects_CXX="$postdep_objects_CXX $p"
16958	 fi
16959       fi
16960       ;;
16961
16962    *) ;; # Ignore the rest.
16963
16964    esac
16965  done
16966
16967  # Clean up.
16968  rm -f a.out a.exe
16969else
16970  echo "libtool.m4: error: problem compiling CXX test program"
16971fi
16972
16973$RM -f confest.$objext
16974CFLAGS=$_lt_libdeps_save_CFLAGS
16975
16976# PORTME: override above test on systems where it is broken
16977case $host_os in
16978interix[3-9]*)
16979  # Interix 3.5 installs completely hosed .la files for C++, so rather than
16980  # hack all around it, let's just trust "g++" to DTRT.
16981  predep_objects_CXX=
16982  postdep_objects_CXX=
16983  postdeps_CXX=
16984  ;;
16985esac
16986
16987
16988case " $postdeps_CXX " in
16989*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16990esac
16991 compiler_lib_search_dirs_CXX=
16992if test -n "${compiler_lib_search_path_CXX}"; then
16993 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
16994fi
16995
16996
16997
16998
16999
17000
17001
17002
17003
17004
17005
17006
17007
17008
17009
17010
17011
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026    lt_prog_compiler_wl_CXX=
17027lt_prog_compiler_pic_CXX=
17028lt_prog_compiler_static_CXX=
17029
17030
17031  # C++ specific cases for pic, static, wl, etc.
17032  if test yes = "$GXX"; then
17033    lt_prog_compiler_wl_CXX='-Wl,'
17034    lt_prog_compiler_static_CXX='-static'
17035
17036    case $host_os in
17037    aix*)
17038      # All AIX code is PIC.
17039      if test ia64 = "$host_cpu"; then
17040	# AIX 5 now supports IA64 processor
17041	lt_prog_compiler_static_CXX='-Bstatic'
17042      fi
17043      lt_prog_compiler_pic_CXX='-fPIC'
17044      ;;
17045
17046    amigaos*)
17047      case $host_cpu in
17048      powerpc)
17049            # see comment about AmigaOS4 .so support
17050            lt_prog_compiler_pic_CXX='-fPIC'
17051        ;;
17052      m68k)
17053            # FIXME: we need at least 68020 code to build shared libraries, but
17054            # adding the '-m68020' flag to GCC prevents building anything better,
17055            # like '-m68040'.
17056            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17057        ;;
17058      esac
17059      ;;
17060
17061    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17062      # PIC is the default for these OSes.
17063      ;;
17064    mingw* | cygwin* | os2* | pw32* | cegcc*)
17065      # This hack is so that the source file can tell whether it is being
17066      # built for inclusion in a dll (and should export symbols for example).
17067      # Although the cygwin gcc ignores -fPIC, still need this for old-style
17068      # (--disable-auto-import) libraries
17069      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17070      case $host_os in
17071      os2*)
17072	lt_prog_compiler_static_CXX='$wl-static'
17073	;;
17074      esac
17075      ;;
17076    darwin* | rhapsody*)
17077      # PIC is the default on this platform
17078      # Common symbols not allowed in MH_DYLIB files
17079      lt_prog_compiler_pic_CXX='-fno-common'
17080      ;;
17081    *djgpp*)
17082      # DJGPP does not support shared libraries at all
17083      lt_prog_compiler_pic_CXX=
17084      ;;
17085    haiku*)
17086      # PIC is the default for Haiku.
17087      # The "-static" flag exists, but is broken.
17088      lt_prog_compiler_static_CXX=
17089      ;;
17090    interix[3-9]*)
17091      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17092      # Instead, we relocate shared libraries at runtime.
17093      ;;
17094    sysv4*MP*)
17095      if test -d /usr/nec; then
17096	lt_prog_compiler_pic_CXX=-Kconform_pic
17097      fi
17098      ;;
17099    hpux*)
17100      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17101      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
17102      # sets the default TLS model and affects inlining.
17103      case $host_cpu in
17104      hppa*64*)
17105	;;
17106      *)
17107	lt_prog_compiler_pic_CXX='-fPIC'
17108	;;
17109      esac
17110      ;;
17111    *qnx* | *nto*)
17112      # QNX uses GNU C++, but need to define -shared option too, otherwise
17113      # it will coredump.
17114      lt_prog_compiler_pic_CXX='-fPIC -shared'
17115      ;;
17116    *)
17117      lt_prog_compiler_pic_CXX='-fPIC'
17118      ;;
17119    esac
17120  else
17121    case $host_os in
17122      aix[4-9]*)
17123	# All AIX code is PIC.
17124	if test ia64 = "$host_cpu"; then
17125	  # AIX 5 now supports IA64 processor
17126	  lt_prog_compiler_static_CXX='-Bstatic'
17127	else
17128	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17129	fi
17130	;;
17131      chorus*)
17132	case $cc_basename in
17133	cxch68*)
17134	  # Green Hills C++ Compiler
17135	  # _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"
17136	  ;;
17137	esac
17138	;;
17139      mingw* | cygwin* | os2* | pw32* | cegcc*)
17140	# This hack is so that the source file can tell whether it is being
17141	# built for inclusion in a dll (and should export symbols for example).
17142	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17143	;;
17144      dgux*)
17145	case $cc_basename in
17146	  ec++*)
17147	    lt_prog_compiler_pic_CXX='-KPIC'
17148	    ;;
17149	  ghcx*)
17150	    # Green Hills C++ Compiler
17151	    lt_prog_compiler_pic_CXX='-pic'
17152	    ;;
17153	  *)
17154	    ;;
17155	esac
17156	;;
17157      freebsd* | dragonfly*)
17158	# FreeBSD uses GNU C++
17159	;;
17160      hpux9* | hpux10* | hpux11*)
17161	case $cc_basename in
17162	  CC*)
17163	    lt_prog_compiler_wl_CXX='-Wl,'
17164	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
17165	    if test ia64 != "$host_cpu"; then
17166	      lt_prog_compiler_pic_CXX='+Z'
17167	    fi
17168	    ;;
17169	  aCC*)
17170	    lt_prog_compiler_wl_CXX='-Wl,'
17171	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
17172	    case $host_cpu in
17173	    hppa*64*|ia64*)
17174	      # +Z the default
17175	      ;;
17176	    *)
17177	      lt_prog_compiler_pic_CXX='+Z'
17178	      ;;
17179	    esac
17180	    ;;
17181	  *)
17182	    ;;
17183	esac
17184	;;
17185      interix*)
17186	# This is c89, which is MS Visual C++ (no shared libs)
17187	# Anyone wants to do a port?
17188	;;
17189      irix5* | irix6* | nonstopux*)
17190	case $cc_basename in
17191	  CC*)
17192	    lt_prog_compiler_wl_CXX='-Wl,'
17193	    lt_prog_compiler_static_CXX='-non_shared'
17194	    # CC pic flag -KPIC is the default.
17195	    ;;
17196	  *)
17197	    ;;
17198	esac
17199	;;
17200      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17201	case $cc_basename in
17202	  KCC*)
17203	    # KAI C++ Compiler
17204	    lt_prog_compiler_wl_CXX='--backend -Wl,'
17205	    lt_prog_compiler_pic_CXX='-fPIC'
17206	    ;;
17207	  ecpc* )
17208	    # old Intel C++ for x86_64, which still supported -KPIC.
17209	    lt_prog_compiler_wl_CXX='-Wl,'
17210	    lt_prog_compiler_pic_CXX='-KPIC'
17211	    lt_prog_compiler_static_CXX='-static'
17212	    ;;
17213	  icpc* )
17214	    # Intel C++, used to be incompatible with GCC.
17215	    # ICC 10 doesn't accept -KPIC any more.
17216	    lt_prog_compiler_wl_CXX='-Wl,'
17217	    lt_prog_compiler_pic_CXX='-fPIC'
17218	    lt_prog_compiler_static_CXX='-static'
17219	    ;;
17220	  pgCC* | pgcpp*)
17221	    # Portland Group C++ compiler
17222	    lt_prog_compiler_wl_CXX='-Wl,'
17223	    lt_prog_compiler_pic_CXX='-fpic'
17224	    lt_prog_compiler_static_CXX='-Bstatic'
17225	    ;;
17226	  cxx*)
17227	    # Compaq C++
17228	    # Make sure the PIC flag is empty.  It appears that all Alpha
17229	    # Linux and Compaq Tru64 Unix objects are PIC.
17230	    lt_prog_compiler_pic_CXX=
17231	    lt_prog_compiler_static_CXX='-non_shared'
17232	    ;;
17233	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
17234	    # IBM XL 8.0, 9.0 on PPC and BlueGene
17235	    lt_prog_compiler_wl_CXX='-Wl,'
17236	    lt_prog_compiler_pic_CXX='-qpic'
17237	    lt_prog_compiler_static_CXX='-qstaticlink'
17238	    ;;
17239	  *)
17240	    case `$CC -V 2>&1 | sed 5q` in
17241	    *Sun\ C*)
17242	      # Sun C++ 5.9
17243	      lt_prog_compiler_pic_CXX='-KPIC'
17244	      lt_prog_compiler_static_CXX='-Bstatic'
17245	      lt_prog_compiler_wl_CXX='-Qoption ld '
17246	      ;;
17247	    esac
17248	    ;;
17249	esac
17250	;;
17251      lynxos*)
17252	;;
17253      m88k*)
17254	;;
17255      mvs*)
17256	case $cc_basename in
17257	  cxx*)
17258	    lt_prog_compiler_pic_CXX='-W c,exportall'
17259	    ;;
17260	  *)
17261	    ;;
17262	esac
17263	;;
17264      netbsd* | netbsdelf*-gnu)
17265	;;
17266      *qnx* | *nto*)
17267        # QNX uses GNU C++, but need to define -shared option too, otherwise
17268        # it will coredump.
17269        lt_prog_compiler_pic_CXX='-fPIC -shared'
17270        ;;
17271      osf3* | osf4* | osf5*)
17272	case $cc_basename in
17273	  KCC*)
17274	    lt_prog_compiler_wl_CXX='--backend -Wl,'
17275	    ;;
17276	  RCC*)
17277	    # Rational C++ 2.4.1
17278	    lt_prog_compiler_pic_CXX='-pic'
17279	    ;;
17280	  cxx*)
17281	    # Digital/Compaq C++
17282	    lt_prog_compiler_wl_CXX='-Wl,'
17283	    # Make sure the PIC flag is empty.  It appears that all Alpha
17284	    # Linux and Compaq Tru64 Unix objects are PIC.
17285	    lt_prog_compiler_pic_CXX=
17286	    lt_prog_compiler_static_CXX='-non_shared'
17287	    ;;
17288	  *)
17289	    ;;
17290	esac
17291	;;
17292      psos*)
17293	;;
17294      solaris*)
17295	case $cc_basename in
17296	  CC* | sunCC*)
17297	    # Sun C++ 4.2, 5.x and Centerline C++
17298	    lt_prog_compiler_pic_CXX='-KPIC'
17299	    lt_prog_compiler_static_CXX='-Bstatic'
17300	    lt_prog_compiler_wl_CXX='-Qoption ld '
17301	    ;;
17302	  gcx*)
17303	    # Green Hills C++ Compiler
17304	    lt_prog_compiler_pic_CXX='-PIC'
17305	    ;;
17306	  *)
17307	    ;;
17308	esac
17309	;;
17310      sunos4*)
17311	case $cc_basename in
17312	  CC*)
17313	    # Sun C++ 4.x
17314	    lt_prog_compiler_pic_CXX='-pic'
17315	    lt_prog_compiler_static_CXX='-Bstatic'
17316	    ;;
17317	  lcc*)
17318	    # Lucid
17319	    lt_prog_compiler_pic_CXX='-pic'
17320	    ;;
17321	  *)
17322	    ;;
17323	esac
17324	;;
17325      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17326	case $cc_basename in
17327	  CC*)
17328	    lt_prog_compiler_wl_CXX='-Wl,'
17329	    lt_prog_compiler_pic_CXX='-KPIC'
17330	    lt_prog_compiler_static_CXX='-Bstatic'
17331	    ;;
17332	esac
17333	;;
17334      tandem*)
17335	case $cc_basename in
17336	  NCC*)
17337	    # NonStop-UX NCC 3.20
17338	    lt_prog_compiler_pic_CXX='-KPIC'
17339	    ;;
17340	  *)
17341	    ;;
17342	esac
17343	;;
17344      vxworks*)
17345	;;
17346      *)
17347	lt_prog_compiler_can_build_shared_CXX=no
17348	;;
17349    esac
17350  fi
17351
17352case $host_os in
17353  # For platforms that do not support PIC, -DPIC is meaningless:
17354  *djgpp*)
17355    lt_prog_compiler_pic_CXX=
17356    ;;
17357  *)
17358    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17359    ;;
17360esac
17361
17362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17363$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17364if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
17365  $as_echo_n "(cached) " >&6
17366else
17367  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
17368fi
17369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
17370$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
17371lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
17372
17373#
17374# Check to make sure the PIC flag actually works.
17375#
17376if test -n "$lt_prog_compiler_pic_CXX"; then
17377  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17378$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17379if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
17380  $as_echo_n "(cached) " >&6
17381else
17382  lt_cv_prog_compiler_pic_works_CXX=no
17383   ac_outfile=conftest.$ac_objext
17384   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17385   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
17386   # Insert the option either (1) after the last *FLAGS variable, or
17387   # (2) before a word containing "conftest.", or (3) at the end.
17388   # Note that $ac_compile itself does not contain backslashes and begins
17389   # with a dollar sign (not a hyphen), so the echo should work correctly.
17390   # The option is referenced via a variable to avoid confusing sed.
17391   lt_compile=`echo "$ac_compile" | $SED \
17392   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17393   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17394   -e 's:$: $lt_compiler_flag:'`
17395   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17396   (eval "$lt_compile" 2>conftest.err)
17397   ac_status=$?
17398   cat conftest.err >&5
17399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17400   if (exit $ac_status) && test -s "$ac_outfile"; then
17401     # The compiler can only warn and ignore the option if not recognized
17402     # So say no if there are warnings other than the usual output.
17403     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17404     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17405     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17406       lt_cv_prog_compiler_pic_works_CXX=yes
17407     fi
17408   fi
17409   $RM conftest*
17410
17411fi
17412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
17413$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17414
17415if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
17416    case $lt_prog_compiler_pic_CXX in
17417     "" | " "*) ;;
17418     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17419     esac
17420else
17421    lt_prog_compiler_pic_CXX=
17422     lt_prog_compiler_can_build_shared_CXX=no
17423fi
17424
17425fi
17426
17427
17428
17429
17430
17431#
17432# Check to make sure the static flag actually works.
17433#
17434wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
17435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17436$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17437if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
17438  $as_echo_n "(cached) " >&6
17439else
17440  lt_cv_prog_compiler_static_works_CXX=no
17441   save_LDFLAGS=$LDFLAGS
17442   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17443   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17444   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17445     # The linker can only warn and ignore the option if not recognized
17446     # So say no if there are warnings
17447     if test -s conftest.err; then
17448       # Append any errors to the config.log.
17449       cat conftest.err 1>&5
17450       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17451       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17452       if diff conftest.exp conftest.er2 >/dev/null; then
17453         lt_cv_prog_compiler_static_works_CXX=yes
17454       fi
17455     else
17456       lt_cv_prog_compiler_static_works_CXX=yes
17457     fi
17458   fi
17459   $RM -r conftest*
17460   LDFLAGS=$save_LDFLAGS
17461
17462fi
17463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
17464$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17465
17466if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
17467    :
17468else
17469    lt_prog_compiler_static_CXX=
17470fi
17471
17472
17473
17474
17475    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17476$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17477if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
17478  $as_echo_n "(cached) " >&6
17479else
17480  lt_cv_prog_compiler_c_o_CXX=no
17481   $RM -r conftest 2>/dev/null
17482   mkdir conftest
17483   cd conftest
17484   mkdir out
17485   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17486
17487   lt_compiler_flag="-o out/conftest2.$ac_objext"
17488   # Insert the option either (1) after the last *FLAGS variable, or
17489   # (2) before a word containing "conftest.", or (3) at the end.
17490   # Note that $ac_compile itself does not contain backslashes and begins
17491   # with a dollar sign (not a hyphen), so the echo should work correctly.
17492   lt_compile=`echo "$ac_compile" | $SED \
17493   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17494   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17495   -e 's:$: $lt_compiler_flag:'`
17496   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17497   (eval "$lt_compile" 2>out/conftest.err)
17498   ac_status=$?
17499   cat out/conftest.err >&5
17500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17502   then
17503     # The compiler can only warn and ignore the option if not recognized
17504     # So say no if there are warnings
17505     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17506     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17507     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17508       lt_cv_prog_compiler_c_o_CXX=yes
17509     fi
17510   fi
17511   chmod u+w . 2>&5
17512   $RM conftest*
17513   # SGI C++ compiler will create directory out/ii_files/ for
17514   # template instantiation
17515   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17516   $RM out/* && rmdir out
17517   cd ..
17518   $RM -r conftest
17519   $RM conftest*
17520
17521fi
17522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17523$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17524
17525
17526
17527    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17528$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17529if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
17530  $as_echo_n "(cached) " >&6
17531else
17532  lt_cv_prog_compiler_c_o_CXX=no
17533   $RM -r conftest 2>/dev/null
17534   mkdir conftest
17535   cd conftest
17536   mkdir out
17537   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17538
17539   lt_compiler_flag="-o out/conftest2.$ac_objext"
17540   # Insert the option either (1) after the last *FLAGS variable, or
17541   # (2) before a word containing "conftest.", or (3) at the end.
17542   # Note that $ac_compile itself does not contain backslashes and begins
17543   # with a dollar sign (not a hyphen), so the echo should work correctly.
17544   lt_compile=`echo "$ac_compile" | $SED \
17545   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17546   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17547   -e 's:$: $lt_compiler_flag:'`
17548   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17549   (eval "$lt_compile" 2>out/conftest.err)
17550   ac_status=$?
17551   cat out/conftest.err >&5
17552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17553   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17554   then
17555     # The compiler can only warn and ignore the option if not recognized
17556     # So say no if there are warnings
17557     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17558     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17559     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17560       lt_cv_prog_compiler_c_o_CXX=yes
17561     fi
17562   fi
17563   chmod u+w . 2>&5
17564   $RM conftest*
17565   # SGI C++ compiler will create directory out/ii_files/ for
17566   # template instantiation
17567   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17568   $RM out/* && rmdir out
17569   cd ..
17570   $RM -r conftest
17571   $RM conftest*
17572
17573fi
17574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17575$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17576
17577
17578
17579
17580hard_links=nottested
17581if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
17582  # do not overwrite the value of need_locks provided by the user
17583  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17584$as_echo_n "checking if we can lock with hard links... " >&6; }
17585  hard_links=yes
17586  $RM conftest*
17587  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17588  touch conftest.a
17589  ln conftest.a conftest.b 2>&5 || hard_links=no
17590  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17591  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17592$as_echo "$hard_links" >&6; }
17593  if test no = "$hard_links"; then
17594    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
17595$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
17596    need_locks=warn
17597  fi
17598else
17599  need_locks=no
17600fi
17601
17602
17603
17604    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17605$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17606
17607  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17608  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17609  case $host_os in
17610  aix[4-9]*)
17611    # If we're using GNU nm, then we don't want the "-C" option.
17612    # -C means demangle to GNU nm, but means don't demangle to AIX nm.
17613    # Without the "-l" option, or with the "-B" option, AIX nm treats
17614    # weak defined symbols like other global defined symbols, whereas
17615    # GNU nm marks them as "W".
17616    # While the 'weak' keyword is ignored in the Export File, we need
17617    # it in the Import File for the 'aix-soname' feature, so we have
17618    # to replace the "-B" option with "-P" for AIX nm.
17619    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17620      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'
17621    else
17622      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'
17623    fi
17624    ;;
17625  pw32*)
17626    export_symbols_cmds_CXX=$ltdll_cmds
17627    ;;
17628  cygwin* | mingw* | cegcc*)
17629    case $cc_basename in
17630    cl*)
17631      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
17632      ;;
17633    *)
17634      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'
17635      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17636      ;;
17637    esac
17638    ;;
17639  linux* | k*bsd*-gnu | gnu*)
17640    link_all_deplibs_CXX=no
17641    ;;
17642  *)
17643    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17644    ;;
17645  esac
17646
17647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17648$as_echo "$ld_shlibs_CXX" >&6; }
17649test no = "$ld_shlibs_CXX" && can_build_shared=no
17650
17651with_gnu_ld_CXX=$with_gnu_ld
17652
17653
17654
17655
17656
17657
17658#
17659# Do we need to explicitly link libc?
17660#
17661case "x$archive_cmds_need_lc_CXX" in
17662x|xyes)
17663  # Assume -lc should be added
17664  archive_cmds_need_lc_CXX=yes
17665
17666  if test yes,yes = "$GCC,$enable_shared"; then
17667    case $archive_cmds_CXX in
17668    *'~'*)
17669      # FIXME: we may have to deal with multi-command sequences.
17670      ;;
17671    '$CC '*)
17672      # Test whether the compiler implicitly links with -lc since on some
17673      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17674      # to ld, don't add -lc before -lgcc.
17675      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17676$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17677if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
17678  $as_echo_n "(cached) " >&6
17679else
17680  $RM conftest*
17681	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17682
17683	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17684  (eval $ac_compile) 2>&5
17685  ac_status=$?
17686  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17687  test $ac_status = 0; } 2>conftest.err; then
17688	  soname=conftest
17689	  lib=conftest
17690	  libobjs=conftest.$ac_objext
17691	  deplibs=
17692	  wl=$lt_prog_compiler_wl_CXX
17693	  pic_flag=$lt_prog_compiler_pic_CXX
17694	  compiler_flags=-v
17695	  linker_flags=-v
17696	  verstring=
17697	  output_objdir=.
17698	  libname=conftest
17699	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17700	  allow_undefined_flag_CXX=
17701	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17702  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17703  ac_status=$?
17704  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17705  test $ac_status = 0; }
17706	  then
17707	    lt_cv_archive_cmds_need_lc_CXX=no
17708	  else
17709	    lt_cv_archive_cmds_need_lc_CXX=yes
17710	  fi
17711	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17712	else
17713	  cat conftest.err 1>&5
17714	fi
17715	$RM conftest*
17716
17717fi
17718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17719$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17720      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
17721      ;;
17722    esac
17723  fi
17724  ;;
17725esac
17726
17727
17728
17729
17730
17731
17732
17733
17734
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
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776
17777
17778
17779
17780
17781
17782
17783
17784
17785
17786
17787
17788    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17789$as_echo_n "checking dynamic linker characteristics... " >&6; }
17790
17791library_names_spec=
17792libname_spec='lib$name'
17793soname_spec=
17794shrext_cmds=.so
17795postinstall_cmds=
17796postuninstall_cmds=
17797finish_cmds=
17798finish_eval=
17799shlibpath_var=
17800shlibpath_overrides_runpath=unknown
17801version_type=none
17802dynamic_linker="$host_os ld.so"
17803sys_lib_dlsearch_path_spec="/lib /usr/lib"
17804need_lib_prefix=unknown
17805hardcode_into_libs=no
17806
17807# when you set need_version to no, make sure it does not cause -set_version
17808# flags to be left without arguments
17809need_version=unknown
17810
17811
17812
17813case $host_os in
17814aix3*)
17815  version_type=linux # correct to gnu/linux during the next big refactor
17816  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17817  shlibpath_var=LIBPATH
17818
17819  # AIX 3 has no versioning support, so we append a major version to the name.
17820  soname_spec='$libname$release$shared_ext$major'
17821  ;;
17822
17823aix[4-9]*)
17824  version_type=linux # correct to gnu/linux during the next big refactor
17825  need_lib_prefix=no
17826  need_version=no
17827  hardcode_into_libs=yes
17828  if test ia64 = "$host_cpu"; then
17829    # AIX 5 supports IA64
17830    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17831    shlibpath_var=LD_LIBRARY_PATH
17832  else
17833    # With GCC up to 2.95.x, collect2 would create an import file
17834    # for dependence libraries.  The import file would start with
17835    # the line '#! .'.  This would cause the generated library to
17836    # depend on '.', always an invalid library.  This was fixed in
17837    # development snapshots of GCC prior to 3.0.
17838    case $host_os in
17839      aix4 | aix4.[01] | aix4.[01].*)
17840      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17841	   echo ' yes '
17842	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17843	:
17844      else
17845	can_build_shared=no
17846      fi
17847      ;;
17848    esac
17849    # Using Import Files as archive members, it is possible to support
17850    # filename-based versioning of shared library archives on AIX. While
17851    # this would work for both with and without runtime linking, it will
17852    # prevent static linking of such archives. So we do filename-based
17853    # shared library versioning with .so extension only, which is used
17854    # when both runtime linking and shared linking is enabled.
17855    # Unfortunately, runtime linking may impact performance, so we do
17856    # not want this to be the default eventually. Also, we use the
17857    # versioned .so libs for executables only if there is the -brtl
17858    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17859    # To allow for filename-based versioning support, we need to create
17860    # libNAME.so.V as an archive file, containing:
17861    # *) an Import File, referring to the versioned filename of the
17862    #    archive as well as the shared archive member, telling the
17863    #    bitwidth (32 or 64) of that shared object, and providing the
17864    #    list of exported symbols of that shared object, eventually
17865    #    decorated with the 'weak' keyword
17866    # *) the shared object with the F_LOADONLY flag set, to really avoid
17867    #    it being seen by the linker.
17868    # At run time we better use the real file rather than another symlink,
17869    # but for link time we create the symlink libNAME.so -> libNAME.so.V
17870
17871    case $with_aix_soname,$aix_use_runtimelinking in
17872    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17873    # soname into executable. Probably we can add versioning support to
17874    # collect2, so additional links can be useful in future.
17875    aix,yes) # traditional libtool
17876      dynamic_linker='AIX unversionable lib.so'
17877      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17878      # instead of lib<name>.a to let people know that these are not
17879      # typical AIX shared libraries.
17880      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17881      ;;
17882    aix,no) # traditional AIX only
17883      dynamic_linker='AIX lib.a(lib.so.V)'
17884      # We preserve .a as extension for shared libraries through AIX4.2
17885      # and later when we are not doing run time linking.
17886      library_names_spec='$libname$release.a $libname.a'
17887      soname_spec='$libname$release$shared_ext$major'
17888      ;;
17889    svr4,*) # full svr4 only
17890      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17891      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17892      # We do not specify a path in Import Files, so LIBPATH fires.
17893      shlibpath_overrides_runpath=yes
17894      ;;
17895    *,yes) # both, prefer svr4
17896      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17897      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17898      # unpreferred sharedlib libNAME.a needs extra handling
17899      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"'
17900      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"'
17901      # We do not specify a path in Import Files, so LIBPATH fires.
17902      shlibpath_overrides_runpath=yes
17903      ;;
17904    *,no) # both, prefer aix
17905      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17906      library_names_spec='$libname$release.a $libname.a'
17907      soname_spec='$libname$release$shared_ext$major'
17908      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17909      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)'
17910      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"'
17911      ;;
17912    esac
17913    shlibpath_var=LIBPATH
17914  fi
17915  ;;
17916
17917amigaos*)
17918  case $host_cpu in
17919  powerpc)
17920    # Since July 2007 AmigaOS4 officially supports .so libraries.
17921    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17922    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17923    ;;
17924  m68k)
17925    library_names_spec='$libname.ixlibrary $libname.a'
17926    # Create ${libname}_ixlibrary.a entries in /sys/libs.
17927    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'
17928    ;;
17929  esac
17930  ;;
17931
17932beos*)
17933  library_names_spec='$libname$shared_ext'
17934  dynamic_linker="$host_os ld.so"
17935  shlibpath_var=LIBRARY_PATH
17936  ;;
17937
17938bsdi[45]*)
17939  version_type=linux # correct to gnu/linux during the next big refactor
17940  need_version=no
17941  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17942  soname_spec='$libname$release$shared_ext$major'
17943  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17944  shlibpath_var=LD_LIBRARY_PATH
17945  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17946  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17947  # the default ld.so.conf also contains /usr/contrib/lib and
17948  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17949  # libtool to hard-code these into programs
17950  ;;
17951
17952cygwin* | mingw* | pw32* | cegcc*)
17953  version_type=windows
17954  shrext_cmds=.dll
17955  need_version=no
17956  need_lib_prefix=no
17957
17958  case $GCC,$cc_basename in
17959  yes,*)
17960    # gcc
17961    library_names_spec='$libname.dll.a'
17962    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17963    postinstall_cmds='base_file=`basename \$file`~
17964      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17965      dldir=$destdir/`dirname \$dlpath`~
17966      test -d \$dldir || mkdir -p \$dldir~
17967      $install_prog $dir/$dlname \$dldir/$dlname~
17968      chmod a+x \$dldir/$dlname~
17969      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17970        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17971      fi'
17972    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17973      dlpath=$dir/\$dldll~
17974       $RM \$dlpath'
17975    shlibpath_overrides_runpath=yes
17976
17977    case $host_os in
17978    cygwin*)
17979      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17980      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17981
17982      ;;
17983    mingw* | cegcc*)
17984      # MinGW DLLs use traditional 'lib' prefix
17985      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17986      ;;
17987    pw32*)
17988      # pw32 DLLs use 'pw' prefix rather than 'lib'
17989      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17990      ;;
17991    esac
17992    dynamic_linker='Win32 ld.exe'
17993    ;;
17994
17995  *,cl*)
17996    # Native MSVC
17997    libname_spec='$name'
17998    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17999    library_names_spec='$libname.dll.lib'
18000
18001    case $build_os in
18002    mingw*)
18003      sys_lib_search_path_spec=
18004      lt_save_ifs=$IFS
18005      IFS=';'
18006      for lt_path in $LIB
18007      do
18008        IFS=$lt_save_ifs
18009        # Let DOS variable expansion print the short 8.3 style file name.
18010        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
18011        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
18012      done
18013      IFS=$lt_save_ifs
18014      # Convert to MSYS style.
18015      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
18016      ;;
18017    cygwin*)
18018      # Convert to unix form, then to dos form, then back to unix form
18019      # but this time dos style (no spaces!) so that the unix form looks
18020      # like /cygdrive/c/PROGRA~1:/cygdr...
18021      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
18022      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
18023      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18024      ;;
18025    *)
18026      sys_lib_search_path_spec=$LIB
18027      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18028        # It is most probably a Windows format PATH.
18029        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18030      else
18031        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18032      fi
18033      # FIXME: find the short name or the path components, as spaces are
18034      # common. (e.g. "Program Files" -> "PROGRA~1")
18035      ;;
18036    esac
18037
18038    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18039    postinstall_cmds='base_file=`basename \$file`~
18040      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18041      dldir=$destdir/`dirname \$dlpath`~
18042      test -d \$dldir || mkdir -p \$dldir~
18043      $install_prog $dir/$dlname \$dldir/$dlname'
18044    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18045      dlpath=$dir/\$dldll~
18046       $RM \$dlpath'
18047    shlibpath_overrides_runpath=yes
18048    dynamic_linker='Win32 link.exe'
18049    ;;
18050
18051  *)
18052    # Assume MSVC wrapper
18053    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
18054    dynamic_linker='Win32 ld.exe'
18055    ;;
18056  esac
18057  # FIXME: first we should search . and the directory the executable is in
18058  shlibpath_var=PATH
18059  ;;
18060
18061darwin* | rhapsody*)
18062  dynamic_linker="$host_os dyld"
18063  version_type=darwin
18064  need_lib_prefix=no
18065  need_version=no
18066  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
18067  soname_spec='$libname$release$major$shared_ext'
18068  shlibpath_overrides_runpath=yes
18069  shlibpath_var=DYLD_LIBRARY_PATH
18070  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18071
18072  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18073  ;;
18074
18075dgux*)
18076  version_type=linux # correct to gnu/linux during the next big refactor
18077  need_lib_prefix=no
18078  need_version=no
18079  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18080  soname_spec='$libname$release$shared_ext$major'
18081  shlibpath_var=LD_LIBRARY_PATH
18082  ;;
18083
18084freebsd* | dragonfly*)
18085  # DragonFly does not have aout.  When/if they implement a new
18086  # versioning mechanism, adjust this.
18087  if test -x /usr/bin/objformat; then
18088    objformat=`/usr/bin/objformat`
18089  else
18090    case $host_os in
18091    freebsd[23].*) objformat=aout ;;
18092    *) objformat=elf ;;
18093    esac
18094  fi
18095  version_type=freebsd-$objformat
18096  case $version_type in
18097    freebsd-elf*)
18098      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18099      soname_spec='$libname$release$shared_ext$major'
18100      need_version=no
18101      need_lib_prefix=no
18102      ;;
18103    freebsd-*)
18104      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18105      need_version=yes
18106      ;;
18107  esac
18108  shlibpath_var=LD_LIBRARY_PATH
18109  case $host_os in
18110  freebsd2.*)
18111    shlibpath_overrides_runpath=yes
18112    ;;
18113  freebsd3.[01]* | freebsdelf3.[01]*)
18114    shlibpath_overrides_runpath=yes
18115    hardcode_into_libs=yes
18116    ;;
18117  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18118  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18119    shlibpath_overrides_runpath=no
18120    hardcode_into_libs=yes
18121    ;;
18122  *) # from 4.6 on, and DragonFly
18123    shlibpath_overrides_runpath=yes
18124    hardcode_into_libs=yes
18125    ;;
18126  esac
18127  ;;
18128
18129haiku*)
18130  version_type=linux # correct to gnu/linux during the next big refactor
18131  need_lib_prefix=no
18132  need_version=no
18133  dynamic_linker="$host_os runtime_loader"
18134  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18135  soname_spec='$libname$release$shared_ext$major'
18136  shlibpath_var=LIBRARY_PATH
18137  shlibpath_overrides_runpath=no
18138  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18139  hardcode_into_libs=yes
18140  ;;
18141
18142hpux9* | hpux10* | hpux11*)
18143  # Give a soname corresponding to the major version so that dld.sl refuses to
18144  # link against other versions.
18145  version_type=sunos
18146  need_lib_prefix=no
18147  need_version=no
18148  case $host_cpu in
18149  ia64*)
18150    shrext_cmds='.so'
18151    hardcode_into_libs=yes
18152    dynamic_linker="$host_os dld.so"
18153    shlibpath_var=LD_LIBRARY_PATH
18154    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18155    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18156    soname_spec='$libname$release$shared_ext$major'
18157    if test 32 = "$HPUX_IA64_MODE"; then
18158      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18159      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
18160    else
18161      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18162      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
18163    fi
18164    ;;
18165  hppa*64*)
18166    shrext_cmds='.sl'
18167    hardcode_into_libs=yes
18168    dynamic_linker="$host_os dld.sl"
18169    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18170    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18171    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18172    soname_spec='$libname$release$shared_ext$major'
18173    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18174    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18175    ;;
18176  *)
18177    shrext_cmds='.sl'
18178    dynamic_linker="$host_os dld.sl"
18179    shlibpath_var=SHLIB_PATH
18180    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18181    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18182    soname_spec='$libname$release$shared_ext$major'
18183    ;;
18184  esac
18185  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18186  postinstall_cmds='chmod 555 $lib'
18187  # or fails outright, so override atomically:
18188  install_override_mode=555
18189  ;;
18190
18191interix[3-9]*)
18192  version_type=linux # correct to gnu/linux during the next big refactor
18193  need_lib_prefix=no
18194  need_version=no
18195  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18196  soname_spec='$libname$release$shared_ext$major'
18197  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18198  shlibpath_var=LD_LIBRARY_PATH
18199  shlibpath_overrides_runpath=no
18200  hardcode_into_libs=yes
18201  ;;
18202
18203irix5* | irix6* | nonstopux*)
18204  case $host_os in
18205    nonstopux*) version_type=nonstopux ;;
18206    *)
18207	if test yes = "$lt_cv_prog_gnu_ld"; then
18208		version_type=linux # correct to gnu/linux during the next big refactor
18209	else
18210		version_type=irix
18211	fi ;;
18212  esac
18213  need_lib_prefix=no
18214  need_version=no
18215  soname_spec='$libname$release$shared_ext$major'
18216  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
18217  case $host_os in
18218  irix5* | nonstopux*)
18219    libsuff= shlibsuff=
18220    ;;
18221  *)
18222    case $LD in # libtool.m4 will add one of these switches to LD
18223    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18224      libsuff= shlibsuff= libmagic=32-bit;;
18225    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18226      libsuff=32 shlibsuff=N32 libmagic=N32;;
18227    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18228      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18229    *) libsuff= shlibsuff= libmagic=never-match;;
18230    esac
18231    ;;
18232  esac
18233  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18234  shlibpath_overrides_runpath=no
18235  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
18236  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
18237  hardcode_into_libs=yes
18238  ;;
18239
18240# No shared lib support for Linux oldld, aout, or coff.
18241linux*oldld* | linux*aout* | linux*coff*)
18242  dynamic_linker=no
18243  ;;
18244
18245linux*android*)
18246  version_type=none # Android doesn't support versioned libraries.
18247  need_lib_prefix=no
18248  need_version=no
18249  library_names_spec='$libname$release$shared_ext'
18250  soname_spec='$libname$release$shared_ext'
18251  finish_cmds=
18252  shlibpath_var=LD_LIBRARY_PATH
18253  shlibpath_overrides_runpath=yes
18254
18255  # This implies no fast_install, which is unacceptable.
18256  # Some rework will be needed to allow for fast_install
18257  # before this can be enabled.
18258  hardcode_into_libs=yes
18259
18260  dynamic_linker='Android linker'
18261  # Don't embed -rpath directories since the linker doesn't support them.
18262  hardcode_libdir_flag_spec_CXX='-L$libdir'
18263  ;;
18264
18265# This must be glibc/ELF.
18266linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18267  version_type=linux # correct to gnu/linux during the next big refactor
18268  need_lib_prefix=no
18269  need_version=no
18270  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18271  soname_spec='$libname$release$shared_ext$major'
18272  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18273  shlibpath_var=LD_LIBRARY_PATH
18274  shlibpath_overrides_runpath=no
18275
18276  # Some binutils ld are patched to set DT_RUNPATH
18277  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
18278  $as_echo_n "(cached) " >&6
18279else
18280  lt_cv_shlibpath_overrides_runpath=no
18281    save_LDFLAGS=$LDFLAGS
18282    save_libdir=$libdir
18283    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18284	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18285    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18286/* end confdefs.h.  */
18287
18288int
18289main ()
18290{
18291
18292  ;
18293  return 0;
18294}
18295_ACEOF
18296if ac_fn_cxx_try_link "$LINENO"; then :
18297  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18298  lt_cv_shlibpath_overrides_runpath=yes
18299fi
18300fi
18301rm -f core conftest.err conftest.$ac_objext \
18302    conftest$ac_exeext conftest.$ac_ext
18303    LDFLAGS=$save_LDFLAGS
18304    libdir=$save_libdir
18305
18306fi
18307
18308  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18309
18310  # This implies no fast_install, which is unacceptable.
18311  # Some rework will be needed to allow for fast_install
18312  # before this can be enabled.
18313  hardcode_into_libs=yes
18314
18315  # Ideally, we could use ldconfig to report *all* directores which are
18316  # searched for libraries, however this is still not possible.  Aside from not
18317  # being certain /sbin/ldconfig is available, command
18318  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
18319  # even though it is searched at run-time.  Try to do the best guess by
18320  # appending ld.so.conf contents (and includes) to the search path.
18321  if test -f /etc/ld.so.conf; then
18322    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' ' '`
18323    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18324  fi
18325
18326  # We used to test for /lib/ld.so.1 and disable shared libraries on
18327  # powerpc, because MkLinux only supported shared libraries with the
18328  # GNU dynamic linker.  Since this was broken with cross compilers,
18329  # most powerpc-linux boxes support dynamic linking these days and
18330  # people can always --disable-shared, the test was removed, and we
18331  # assume the GNU/Linux dynamic linker is in use.
18332  dynamic_linker='GNU/Linux ld.so'
18333  ;;
18334
18335netbsdelf*-gnu)
18336  version_type=linux
18337  need_lib_prefix=no
18338  need_version=no
18339  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18340  soname_spec='${libname}${release}${shared_ext}$major'
18341  shlibpath_var=LD_LIBRARY_PATH
18342  shlibpath_overrides_runpath=no
18343  hardcode_into_libs=yes
18344  dynamic_linker='NetBSD ld.elf_so'
18345  ;;
18346
18347netbsd*)
18348  version_type=sunos
18349  need_lib_prefix=no
18350  need_version=no
18351  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18352    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18353    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18354    dynamic_linker='NetBSD (a.out) ld.so'
18355  else
18356    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18357    soname_spec='$libname$release$shared_ext$major'
18358    dynamic_linker='NetBSD ld.elf_so'
18359  fi
18360  shlibpath_var=LD_LIBRARY_PATH
18361  shlibpath_overrides_runpath=yes
18362  hardcode_into_libs=yes
18363  ;;
18364
18365newsos6)
18366  version_type=linux # correct to gnu/linux during the next big refactor
18367  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18368  shlibpath_var=LD_LIBRARY_PATH
18369  shlibpath_overrides_runpath=yes
18370  ;;
18371
18372*nto* | *qnx*)
18373  version_type=qnx
18374  need_lib_prefix=no
18375  need_version=no
18376  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18377  soname_spec='$libname$release$shared_ext$major'
18378  shlibpath_var=LD_LIBRARY_PATH
18379  shlibpath_overrides_runpath=no
18380  hardcode_into_libs=yes
18381  dynamic_linker='ldqnx.so'
18382  ;;
18383
18384openbsd* | bitrig*)
18385  version_type=sunos
18386  sys_lib_dlsearch_path_spec=/usr/lib
18387  need_lib_prefix=no
18388  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
18389    need_version=no
18390  else
18391    need_version=yes
18392  fi
18393  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18394  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18395  shlibpath_var=LD_LIBRARY_PATH
18396  shlibpath_overrides_runpath=yes
18397  ;;
18398
18399os2*)
18400  libname_spec='$name'
18401  version_type=windows
18402  shrext_cmds=.dll
18403  need_version=no
18404  need_lib_prefix=no
18405  # OS/2 can only load a DLL with a base name of 8 characters or less.
18406  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
18407    v=$($ECHO $release$versuffix | tr -d .-);
18408    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
18409    $ECHO $n$v`$shared_ext'
18410  library_names_spec='${libname}_dll.$libext'
18411  dynamic_linker='OS/2 ld.exe'
18412  shlibpath_var=BEGINLIBPATH
18413  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18414  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18415  postinstall_cmds='base_file=`basename \$file`~
18416    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
18417    dldir=$destdir/`dirname \$dlpath`~
18418    test -d \$dldir || mkdir -p \$dldir~
18419    $install_prog $dir/$dlname \$dldir/$dlname~
18420    chmod a+x \$dldir/$dlname~
18421    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18422      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18423    fi'
18424  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
18425    dlpath=$dir/\$dldll~
18426    $RM \$dlpath'
18427  ;;
18428
18429osf3* | osf4* | osf5*)
18430  version_type=osf
18431  need_lib_prefix=no
18432  need_version=no
18433  soname_spec='$libname$release$shared_ext$major'
18434  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18435  shlibpath_var=LD_LIBRARY_PATH
18436  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18437  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18438  ;;
18439
18440rdos*)
18441  dynamic_linker=no
18442  ;;
18443
18444solaris*)
18445  version_type=linux # correct to gnu/linux during the next big refactor
18446  need_lib_prefix=no
18447  need_version=no
18448  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18449  soname_spec='$libname$release$shared_ext$major'
18450  shlibpath_var=LD_LIBRARY_PATH
18451  shlibpath_overrides_runpath=yes
18452  hardcode_into_libs=yes
18453  # ldd complains unless libraries are executable
18454  postinstall_cmds='chmod +x $lib'
18455  ;;
18456
18457sunos4*)
18458  version_type=sunos
18459  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18460  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18461  shlibpath_var=LD_LIBRARY_PATH
18462  shlibpath_overrides_runpath=yes
18463  if test yes = "$with_gnu_ld"; then
18464    need_lib_prefix=no
18465  fi
18466  need_version=yes
18467  ;;
18468
18469sysv4 | sysv4.3*)
18470  version_type=linux # correct to gnu/linux during the next big refactor
18471  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18472  soname_spec='$libname$release$shared_ext$major'
18473  shlibpath_var=LD_LIBRARY_PATH
18474  case $host_vendor in
18475    sni)
18476      shlibpath_overrides_runpath=no
18477      need_lib_prefix=no
18478      runpath_var=LD_RUN_PATH
18479      ;;
18480    siemens)
18481      need_lib_prefix=no
18482      ;;
18483    motorola)
18484      need_lib_prefix=no
18485      need_version=no
18486      shlibpath_overrides_runpath=no
18487      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18488      ;;
18489  esac
18490  ;;
18491
18492sysv4*MP*)
18493  if test -d /usr/nec; then
18494    version_type=linux # correct to gnu/linux during the next big refactor
18495    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
18496    soname_spec='$libname$shared_ext.$major'
18497    shlibpath_var=LD_LIBRARY_PATH
18498  fi
18499  ;;
18500
18501sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18502  version_type=sco
18503  need_lib_prefix=no
18504  need_version=no
18505  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
18506  soname_spec='$libname$release$shared_ext$major'
18507  shlibpath_var=LD_LIBRARY_PATH
18508  shlibpath_overrides_runpath=yes
18509  hardcode_into_libs=yes
18510  if test yes = "$with_gnu_ld"; then
18511    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18512  else
18513    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18514    case $host_os in
18515      sco3.2v5*)
18516        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18517	;;
18518    esac
18519  fi
18520  sys_lib_dlsearch_path_spec='/usr/lib'
18521  ;;
18522
18523tpf*)
18524  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
18525  version_type=linux # correct to gnu/linux during the next big refactor
18526  need_lib_prefix=no
18527  need_version=no
18528  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18529  shlibpath_var=LD_LIBRARY_PATH
18530  shlibpath_overrides_runpath=no
18531  hardcode_into_libs=yes
18532  ;;
18533
18534uts4*)
18535  version_type=linux # correct to gnu/linux during the next big refactor
18536  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18537  soname_spec='$libname$release$shared_ext$major'
18538  shlibpath_var=LD_LIBRARY_PATH
18539  ;;
18540
18541*)
18542  dynamic_linker=no
18543  ;;
18544esac
18545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18546$as_echo "$dynamic_linker" >&6; }
18547test no = "$dynamic_linker" && can_build_shared=no
18548
18549variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18550if test yes = "$GCC"; then
18551  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18552fi
18553
18554if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18555  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
18556fi
18557
18558if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18559  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
18560fi
18561
18562# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18563configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18564
18565# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18566func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18567
18568# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18569configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18570
18571
18572
18573
18574
18575
18576
18577
18578
18579
18580
18581
18582
18583
18584
18585
18586
18587
18588
18589
18590
18591
18592
18593
18594
18595
18596
18597
18598
18599
18600
18601
18602
18603
18604
18605
18606
18607
18608
18609
18610    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18611$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18612hardcode_action_CXX=
18613if test -n "$hardcode_libdir_flag_spec_CXX" ||
18614   test -n "$runpath_var_CXX" ||
18615   test yes = "$hardcode_automatic_CXX"; then
18616
18617  # We can hardcode non-existent directories.
18618  if test no != "$hardcode_direct_CXX" &&
18619     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18620     # have to relink, otherwise we might link with an installed library
18621     # when we should be linking with a yet-to-be-installed one
18622     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
18623     test no != "$hardcode_minus_L_CXX"; then
18624    # Linking always hardcodes the temporary library directory.
18625    hardcode_action_CXX=relink
18626  else
18627    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18628    hardcode_action_CXX=immediate
18629  fi
18630else
18631  # We cannot hardcode anything, or else we can only hardcode existing
18632  # directories.
18633  hardcode_action_CXX=unsupported
18634fi
18635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18636$as_echo "$hardcode_action_CXX" >&6; }
18637
18638if test relink = "$hardcode_action_CXX" ||
18639   test yes = "$inherit_rpath_CXX"; then
18640  # Fast installation is not supported
18641  enable_fast_install=no
18642elif test yes = "$shlibpath_overrides_runpath" ||
18643     test no = "$enable_shared"; then
18644  # Fast installation is not necessary
18645  enable_fast_install=needless
18646fi
18647
18648
18649
18650
18651
18652
18653
18654  fi # test -n "$compiler"
18655
18656  CC=$lt_save_CC
18657  CFLAGS=$lt_save_CFLAGS
18658  LDCXX=$LD
18659  LD=$lt_save_LD
18660  GCC=$lt_save_GCC
18661  with_gnu_ld=$lt_save_with_gnu_ld
18662  lt_cv_path_LDCXX=$lt_cv_path_LD
18663  lt_cv_path_LD=$lt_save_path_LD
18664  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18665  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18666fi # test yes != "$_lt_caught_CXX_error"
18667
18668ac_ext=c
18669ac_cpp='$CPP $CPPFLAGS'
18670ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18671ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18672ac_compiler_gnu=$ac_cv_c_compiler_gnu
18673
18674
18675depcc="$CXX"  am_compiler_list=
18676
18677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
18678$as_echo_n "checking dependency style of $depcc... " >&6; }
18679if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
18680  $as_echo_n "(cached) " >&6
18681else
18682  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
18683  # We make a subdir and do the tests there.  Otherwise we can end up
18684  # making bogus files that we don't know about and never remove.  For
18685  # instance it was reported that on HP-UX the gcc test will end up
18686  # making a dummy file named 'D' -- because '-MD' means "put the output
18687  # in D".
18688  rm -rf conftest.dir
18689  mkdir conftest.dir
18690  # Copy depcomp to subdir because otherwise we won't find it if we're
18691  # using a relative directory.
18692  cp "$am_depcomp" conftest.dir
18693  cd conftest.dir
18694  # We will build objects and dependencies in a subdirectory because
18695  # it helps to detect inapplicable dependency modes.  For instance
18696  # both Tru64's cc and ICC support -MD to output dependencies as a
18697  # side effect of compilation, but ICC will put the dependencies in
18698  # the current directory while Tru64 will put them in the object
18699  # directory.
18700  mkdir sub
18701
18702  am_cv_CXX_dependencies_compiler_type=none
18703  if test "$am_compiler_list" = ""; then
18704     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
18705  fi
18706  am__universal=false
18707  case " $depcc " in #(
18708     *\ -arch\ *\ -arch\ *) am__universal=true ;;
18709     esac
18710
18711  for depmode in $am_compiler_list; do
18712    # Setup a source with many dependencies, because some compilers
18713    # like to wrap large dependency lists on column 80 (with \), and
18714    # we should not choose a depcomp mode which is confused by this.
18715    #
18716    # We need to recreate these files for each test, as the compiler may
18717    # overwrite some of them when testing with obscure command lines.
18718    # This happens at least with the AIX C compiler.
18719    : > sub/conftest.c
18720    for i in 1 2 3 4 5 6; do
18721      echo '#include "conftst'$i'.h"' >> sub/conftest.c
18722      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
18723      # Solaris 10 /bin/sh.
18724      echo '/* dummy */' > sub/conftst$i.h
18725    done
18726    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
18727
18728    # We check with '-c' and '-o' for the sake of the "dashmstdout"
18729    # mode.  It turns out that the SunPro C++ compiler does not properly
18730    # handle '-M -o', and we need to detect this.  Also, some Intel
18731    # versions had trouble with output in subdirs.
18732    am__obj=sub/conftest.${OBJEXT-o}
18733    am__minus_obj="-o $am__obj"
18734    case $depmode in
18735    gcc)
18736      # This depmode causes a compiler race in universal mode.
18737      test "$am__universal" = false || continue
18738      ;;
18739    nosideeffect)
18740      # After this tag, mechanisms are not by side-effect, so they'll
18741      # only be used when explicitly requested.
18742      if test "x$enable_dependency_tracking" = xyes; then
18743	continue
18744      else
18745	break
18746      fi
18747      ;;
18748    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
18749      # This compiler won't grok '-c -o', but also, the minuso test has
18750      # not run yet.  These depmodes are late enough in the game, and
18751      # so weak that their functioning should not be impacted.
18752      am__obj=conftest.${OBJEXT-o}
18753      am__minus_obj=
18754      ;;
18755    none) break ;;
18756    esac
18757    if depmode=$depmode \
18758       source=sub/conftest.c object=$am__obj \
18759       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
18760       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
18761         >/dev/null 2>conftest.err &&
18762       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
18763       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
18764       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
18765       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
18766      # icc doesn't choke on unknown options, it will just issue warnings
18767      # or remarks (even with -Werror).  So we grep stderr for any message
18768      # that says an option was ignored or not supported.
18769      # When given -MP, icc 7.0 and 7.1 complain thusly:
18770      #   icc: Command line warning: ignoring option '-M'; no argument required
18771      # The diagnosis changed in icc 8.0:
18772      #   icc: Command line remark: option '-MP' not supported
18773      if (grep 'ignoring option' conftest.err ||
18774          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
18775        am_cv_CXX_dependencies_compiler_type=$depmode
18776        break
18777      fi
18778    fi
18779  done
18780
18781  cd ..
18782  rm -rf conftest.dir
18783else
18784  am_cv_CXX_dependencies_compiler_type=none
18785fi
18786
18787fi
18788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
18789$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
18790CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
18791
18792 if
18793  test "x$enable_dependency_tracking" != xno \
18794  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
18795  am__fastdepCXX_TRUE=
18796  am__fastdepCXX_FALSE='#'
18797else
18798  am__fastdepCXX_TRUE='#'
18799  am__fastdepCXX_FALSE=
18800fi
18801
18802
18803
18804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
18805$as_echo_n "checking whether ln -s works... " >&6; }
18806LN_S=$as_ln_s
18807if test "$LN_S" = "ln -s"; then
18808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18809$as_echo "yes" >&6; }
18810else
18811  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
18812$as_echo "no, using $LN_S" >&6; }
18813fi
18814
18815for ac_prog in gawk mawk nawk awk
18816do
18817  # Extract the first word of "$ac_prog", so it can be a program name with args.
18818set dummy $ac_prog; ac_word=$2
18819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18820$as_echo_n "checking for $ac_word... " >&6; }
18821if ${ac_cv_prog_AWK+:} false; then :
18822  $as_echo_n "(cached) " >&6
18823else
18824  if test -n "$AWK"; then
18825  ac_cv_prog_AWK="$AWK" # Let the user override the test.
18826else
18827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18828for as_dir in $PATH
18829do
18830  IFS=$as_save_IFS
18831  test -z "$as_dir" && as_dir=.
18832    for ac_exec_ext in '' $ac_executable_extensions; do
18833  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18834    ac_cv_prog_AWK="$ac_prog"
18835    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18836    break 2
18837  fi
18838done
18839  done
18840IFS=$as_save_IFS
18841
18842fi
18843fi
18844AWK=$ac_cv_prog_AWK
18845if test -n "$AWK"; then
18846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
18847$as_echo "$AWK" >&6; }
18848else
18849  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18850$as_echo "no" >&6; }
18851fi
18852
18853
18854  test -n "$AWK" && break
18855done
18856
18857
18858
18859# allow passing a variable `WARNINGFLAGS',
18860#   either when invoking `configure', or when invoking `make'
18861# default to something useful if GCC was detected
18862
18863# Check whether --enable-warnings was given.
18864if test "${enable_warnings+set}" = set; then :
18865  enableval=$enable_warnings; if test "x$GCC" = xyes; then :
18866   : ${WARNINGFLAGS="-Wall -Wextra -Wmissing-prototypes -Wstrict-prototypes -Wnested-externs -Wold-style-definition -Wredundant-decls -Wconversion -Wno-unused-but-set-variable"}
18867fi
18868fi
18869
18870
18871
18872
18873# Check whether --enable-libfl was given.
18874if test "${enable_libfl+set}" = set; then :
18875  enableval=$enable_libfl;
18876else
18877  enable_libfl=yes
18878fi
18879
18880 if test "x$enable_libfl" = xyes; then
18881  ENABLE_LIBFL_TRUE=
18882  ENABLE_LIBFL_FALSE='#'
18883else
18884  ENABLE_LIBFL_TRUE='#'
18885  ENABLE_LIBFL_FALSE=
18886fi
18887
18888
18889# --disable-bootstrap is intended only to workaround problems with bootstrap
18890# (e.g. when cross-compiling flex or when bootstrapping has bugs).
18891# Ideally we should be able to bootstrap even when cross-compiling.
18892# Check whether --enable-bootstrap was given.
18893if test "${enable_bootstrap+set}" = set; then :
18894  enableval=$enable_bootstrap;
18895else
18896  enable_bootstrap=yes
18897fi
18898
18899 if test "x$enable_bootstrap" = xyes; then
18900  ENABLE_BOOTSTRAP_TRUE=
18901  ENABLE_BOOTSTRAP_FALSE='#'
18902else
18903  ENABLE_BOOTSTRAP_TRUE='#'
18904  ENABLE_BOOTSTRAP_FALSE=
18905fi
18906
18907
18908# Extract the first word of "bison", so it can be a program name with args.
18909set dummy bison; ac_word=$2
18910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18911$as_echo_n "checking for $ac_word... " >&6; }
18912if ${ac_cv_path_BISON+:} false; then :
18913  $as_echo_n "(cached) " >&6
18914else
18915  case $BISON in
18916  [\\/]* | ?:[\\/]*)
18917  ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
18918  ;;
18919  *)
18920  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18921for as_dir in $PATH
18922do
18923  IFS=$as_save_IFS
18924  test -z "$as_dir" && as_dir=.
18925    for ac_exec_ext in '' $ac_executable_extensions; do
18926  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18927    ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
18928    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18929    break 2
18930  fi
18931done
18932  done
18933IFS=$as_save_IFS
18934
18935  test -z "$ac_cv_path_BISON" && ac_cv_path_BISON="no"
18936  ;;
18937esac
18938fi
18939BISON=$ac_cv_path_BISON
18940if test -n "$BISON"; then
18941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
18942$as_echo "$BISON" >&6; }
18943else
18944  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18945$as_echo "no" >&6; }
18946fi
18947
18948
18949if test "$BISON" != no; then :
18950
18951else
18952   BISON=\${top_srcdir}/build-aux/missing bison
18953
18954	  { $as_echo "$as_me:${as_lineno-$LINENO}: no bison program found: only required for maintainers" >&5
18955$as_echo "$as_me: no bison program found: only required for maintainers" >&6;}
18956
18957fi
18958
18959# Extract the first word of "help2man", so it can be a program name with args.
18960set dummy help2man; ac_word=$2
18961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18962$as_echo_n "checking for $ac_word... " >&6; }
18963if ${ac_cv_path_HELP2MAN+:} false; then :
18964  $as_echo_n "(cached) " >&6
18965else
18966  case $HELP2MAN in
18967  [\\/]* | ?:[\\/]*)
18968  ac_cv_path_HELP2MAN="$HELP2MAN" # Let the user override the test with a path.
18969  ;;
18970  *)
18971  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18972for as_dir in $PATH
18973do
18974  IFS=$as_save_IFS
18975  test -z "$as_dir" && as_dir=.
18976    for ac_exec_ext in '' $ac_executable_extensions; do
18977  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18978    ac_cv_path_HELP2MAN="$as_dir/$ac_word$ac_exec_ext"
18979    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18980    break 2
18981  fi
18982done
18983  done
18984IFS=$as_save_IFS
18985
18986  test -z "$ac_cv_path_HELP2MAN" && ac_cv_path_HELP2MAN="\${top_srcdir}/build-aux/missing help2man"
18987  ;;
18988esac
18989fi
18990HELP2MAN=$ac_cv_path_HELP2MAN
18991if test -n "$HELP2MAN"; then
18992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HELP2MAN" >&5
18993$as_echo "$HELP2MAN" >&6; }
18994else
18995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18996$as_echo "no" >&6; }
18997fi
18998
18999
19000  if test "$HELP2MAN" = "\${top_srcdir}/build-aux/missing help2man"; then :
19001  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: help2man: program not found: building man page will not work" >&5
19002$as_echo "$as_me: WARNING: help2man: program not found: building man page will not work" >&2;}
19003
19004fi
19005
19006for ac_prog in gtexi2dvi texi2dvi
19007do
19008  # Extract the first word of "$ac_prog", so it can be a program name with args.
19009set dummy $ac_prog; ac_word=$2
19010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19011$as_echo_n "checking for $ac_word... " >&6; }
19012if ${ac_cv_path_TEXI2DVI+:} false; then :
19013  $as_echo_n "(cached) " >&6
19014else
19015  case $TEXI2DVI in
19016  [\\/]* | ?:[\\/]*)
19017  ac_cv_path_TEXI2DVI="$TEXI2DVI" # Let the user override the test with a path.
19018  ;;
19019  *)
19020  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19021for as_dir in $PATH
19022do
19023  IFS=$as_save_IFS
19024  test -z "$as_dir" && as_dir=.
19025    for ac_exec_ext in '' $ac_executable_extensions; do
19026  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19027    ac_cv_path_TEXI2DVI="$as_dir/$ac_word$ac_exec_ext"
19028    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19029    break 2
19030  fi
19031done
19032  done
19033IFS=$as_save_IFS
19034
19035  ;;
19036esac
19037fi
19038TEXI2DVI=$ac_cv_path_TEXI2DVI
19039if test -n "$TEXI2DVI"; then
19040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEXI2DVI" >&5
19041$as_echo "$TEXI2DVI" >&6; }
19042else
19043  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19044$as_echo "no" >&6; }
19045fi
19046
19047
19048  test -n "$TEXI2DVI" && break
19049done
19050test -n "$TEXI2DVI" || TEXI2DVI="\${top_srcdir}/build-aux/missing texi2dvi"
19051
19052  if test "$TEXI2DVI" = "\${top_srcdir}/build-aux/missing texi2dvi"; then :
19053  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: texi2dvi: program not found: building pdf version of manual will not work" >&5
19054$as_echo "$as_me: WARNING: texi2dvi: program not found: building pdf version of manual will not work" >&2;}
19055
19056fi
19057
19058# Check for a m4 that supports -P
19059
19060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 that supports -P" >&5
19061$as_echo_n "checking for m4 that supports -P... " >&6; }
19062if ${ac_cv_path_M4+:} false; then :
19063  $as_echo_n "(cached) " >&6
19064else
19065  if test -z "$M4"; then
19066  ac_path_M4_found=false
19067  # Loop through the user's path and test for each of PROGNAME-LIST
19068  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19069for as_dir in $PATH
19070do
19071  IFS=$as_save_IFS
19072  test -z "$as_dir" && as_dir=.
19073    for ac_prog in gm4 gnum4 m4; do
19074    for ac_exec_ext in '' $ac_executable_extensions; do
19075      ac_path_M4="$as_dir/$ac_prog$ac_exec_ext"
19076      as_fn_executable_p "$ac_path_M4" || continue
19077m4out=`echo 'm''4_divnum' | $ac_path_M4 -P`
19078                test "x$m4out" = x0 \
19079                && ac_cv_path_M4=$ac_path_M4 ac_path_M4_found=:
19080      $ac_path_M4_found && break 3
19081    done
19082  done
19083  done
19084IFS=$as_save_IFS
19085  if test -z "$ac_cv_path_M4"; then
19086    as_fn_error $? "could not find m4 that supports -P" "$LINENO" 5
19087  fi
19088else
19089  ac_cv_path_M4=$M4
19090fi
19091
19092fi
19093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_M4" >&5
19094$as_echo "$ac_cv_path_M4" >&6; }
19095M4=$ac_cv_path_M4
19096
19097
19098cat >>confdefs.h <<_ACEOF
19099#define M4 "$M4"
19100_ACEOF
19101
19102
19103# Extract the first word of "indent", so it can be a program name with args.
19104set dummy indent; ac_word=$2
19105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19106$as_echo_n "checking for $ac_word... " >&6; }
19107if ${ac_cv_path_INDENT+:} false; then :
19108  $as_echo_n "(cached) " >&6
19109else
19110  case $INDENT in
19111  [\\/]* | ?:[\\/]*)
19112  ac_cv_path_INDENT="$INDENT" # Let the user override the test with a path.
19113  ;;
19114  *)
19115  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19116for as_dir in $PATH
19117do
19118  IFS=$as_save_IFS
19119  test -z "$as_dir" && as_dir=.
19120    for ac_exec_ext in '' $ac_executable_extensions; do
19121  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19122    ac_cv_path_INDENT="$as_dir/$ac_word$ac_exec_ext"
19123    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19124    break 2
19125  fi
19126done
19127  done
19128IFS=$as_save_IFS
19129
19130  test -z "$ac_cv_path_INDENT" && ac_cv_path_INDENT="indent"
19131  ;;
19132esac
19133fi
19134INDENT=$ac_cv_path_INDENT
19135if test -n "$INDENT"; then
19136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INDENT" >&5
19137$as_echo "$INDENT" >&6; }
19138else
19139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19140$as_echo "no" >&6; }
19141fi
19142
19143
19144# if INDENT is set to 'indent' then we didn't find indent
19145if test "$INDENT" != indent ; then
19146   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $INDENT is GNU indent" >&5
19147$as_echo_n "checking if $INDENT is GNU indent... " >&6; }
19148   if $INDENT --version 2>/dev/null | head -n 1|grep "GNU indent" > /dev/null ; then
19149      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19150$as_echo "yes" >&6; }
19151   else
19152      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19153$as_echo "no" >&6; }
19154      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $INDENT does not appear to be GNU indent." >&5
19155$as_echo "$as_me: WARNING: $INDENT does not appear to be GNU indent." >&2;}
19156   fi
19157else
19158   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no indent program found: make indent target will not function" >&5
19159$as_echo "$as_me: WARNING: no indent program found: make indent target will not function" >&2;}
19160fi
19161
19162# checks for headers
19163
19164for ac_header in inttypes.h libintl.h limits.h locale.h malloc.h netinet/in.h regex.h unistd.h
19165do :
19166  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19167ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19168if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19169  cat >>confdefs.h <<_ACEOF
19170#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19171_ACEOF
19172
19173fi
19174
19175done
19176
19177
19178# checks for libraries
19179
19180# The test test-pthread uses libpthread, so we check for it here, but
19181# all we need is the preprocessor symbol defined since we don't need
19182# LIBS to include libpthread for building flex.
19183
19184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -lpthread" >&5
19185$as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
19186if ${ac_cv_lib_pthread_pthread_mutex_lock+:} false; then :
19187  $as_echo_n "(cached) " >&6
19188else
19189  ac_check_lib_save_LIBS=$LIBS
19190LIBS="-lpthread  $LIBS"
19191cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19192/* end confdefs.h.  */
19193
19194/* Override any GCC internal prototype to avoid an error.
19195   Use char because int might match the return type of a GCC
19196   builtin and then its argument prototype would still apply.  */
19197#ifdef __cplusplus
19198extern "C"
19199#endif
19200char pthread_mutex_lock ();
19201int
19202main ()
19203{
19204return pthread_mutex_lock ();
19205  ;
19206  return 0;
19207}
19208_ACEOF
19209if ac_fn_c_try_link "$LINENO"; then :
19210  ac_cv_lib_pthread_pthread_mutex_lock=yes
19211else
19212  ac_cv_lib_pthread_pthread_mutex_lock=no
19213fi
19214rm -f core conftest.err conftest.$ac_objext \
19215    conftest$ac_exeext conftest.$ac_ext
19216LIBS=$ac_check_lib_save_LIBS
19217fi
19218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
19219$as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
19220if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = xyes; then :
19221
19222$as_echo "#define HAVE_LIBPTHREAD 1" >>confdefs.h
19223
19224else
19225
19226$as_echo "#define HAVE_LIBPTHREAD 0" >>confdefs.h
19227
19228
19229fi
19230
19231for ac_header in pthread.h
19232do :
19233  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
19234if test "x$ac_cv_header_pthread_h" = xyes; then :
19235  cat >>confdefs.h <<_ACEOF
19236#define HAVE_PTHREAD_H 1
19237_ACEOF
19238
19239fi
19240
19241done
19242
19243 if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = xyes; then
19244  want_pthread_TRUE=
19245  want_pthread_FALSE='#'
19246else
19247  want_pthread_TRUE='#'
19248  want_pthread_FALSE=
19249fi
19250
19251
19252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10 in -lm" >&5
19253$as_echo_n "checking for log10 in -lm... " >&6; }
19254if ${ac_cv_lib_m_log10+:} false; then :
19255  $as_echo_n "(cached) " >&6
19256else
19257  ac_check_lib_save_LIBS=$LIBS
19258LIBS="-lm  $LIBS"
19259cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19260/* end confdefs.h.  */
19261
19262/* Override any GCC internal prototype to avoid an error.
19263   Use char because int might match the return type of a GCC
19264   builtin and then its argument prototype would still apply.  */
19265#ifdef __cplusplus
19266extern "C"
19267#endif
19268char log10 ();
19269int
19270main ()
19271{
19272return log10 ();
19273  ;
19274  return 0;
19275}
19276_ACEOF
19277if ac_fn_c_try_link "$LINENO"; then :
19278  ac_cv_lib_m_log10=yes
19279else
19280  ac_cv_lib_m_log10=no
19281fi
19282rm -f core conftest.err conftest.$ac_objext \
19283    conftest$ac_exeext conftest.$ac_ext
19284LIBS=$ac_check_lib_save_LIBS
19285fi
19286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log10" >&5
19287$as_echo "$ac_cv_lib_m_log10" >&6; }
19288if test "x$ac_cv_lib_m_log10" = xyes; then :
19289  cat >>confdefs.h <<_ACEOF
19290#define HAVE_LIBM 1
19291_ACEOF
19292
19293  LIBS="-lm $LIBS"
19294
19295fi
19296
19297
19298# Checks for typedefs, structures, and compiler characteristics.
19299
19300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
19301$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
19302if ${ac_cv_header_stdbool_h+:} false; then :
19303  $as_echo_n "(cached) " >&6
19304else
19305  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19306/* end confdefs.h.  */
19307
19308             #include <stdbool.h>
19309             #ifndef bool
19310              "error: bool is not defined"
19311             #endif
19312             #ifndef false
19313              "error: false is not defined"
19314             #endif
19315             #if false
19316              "error: false is not 0"
19317             #endif
19318             #ifndef true
19319              "error: true is not defined"
19320             #endif
19321             #if true != 1
19322              "error: true is not 1"
19323             #endif
19324             #ifndef __bool_true_false_are_defined
19325              "error: __bool_true_false_are_defined is not defined"
19326             #endif
19327
19328             struct s { _Bool s: 1; _Bool t; } s;
19329
19330             char a[true == 1 ? 1 : -1];
19331             char b[false == 0 ? 1 : -1];
19332             char c[__bool_true_false_are_defined == 1 ? 1 : -1];
19333             char d[(bool) 0.5 == true ? 1 : -1];
19334             /* See body of main program for 'e'.  */
19335             char f[(_Bool) 0.0 == false ? 1 : -1];
19336             char g[true];
19337             char h[sizeof (_Bool)];
19338             char i[sizeof s.t];
19339             enum { j = false, k = true, l = false * true, m = true * 256 };
19340             /* The following fails for
19341                HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
19342             _Bool n[m];
19343             char o[sizeof n == m * sizeof n[0] ? 1 : -1];
19344             char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
19345             /* Catch a bug in an HP-UX C compiler.  See
19346                http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
19347                http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
19348              */
19349             _Bool q = true;
19350             _Bool *pq = &q;
19351
19352int
19353main ()
19354{
19355
19356             bool e = &s;
19357             *pq |= q;
19358             *pq |= ! q;
19359             /* Refer to every declared value, to avoid compiler optimizations.  */
19360             return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
19361                     + !m + !n + !o + !p + !q + !pq);
19362
19363  ;
19364  return 0;
19365}
19366_ACEOF
19367if ac_fn_c_try_compile "$LINENO"; then :
19368  ac_cv_header_stdbool_h=yes
19369else
19370  ac_cv_header_stdbool_h=no
19371fi
19372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19373fi
19374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
19375$as_echo "$ac_cv_header_stdbool_h" >&6; }
19376   ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
19377if test "x$ac_cv_type__Bool" = xyes; then :
19378
19379cat >>confdefs.h <<_ACEOF
19380#define HAVE__BOOL 1
19381_ACEOF
19382
19383
19384fi
19385
19386
19387if test $ac_cv_header_stdbool_h = yes; then
19388
19389$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
19390
19391fi
19392
19393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
19394$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19395if ${ac_cv_c_const+:} false; then :
19396  $as_echo_n "(cached) " >&6
19397else
19398  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19399/* end confdefs.h.  */
19400
19401int
19402main ()
19403{
19404
19405#ifndef __cplusplus
19406  /* Ultrix mips cc rejects this sort of thing.  */
19407  typedef int charset[2];
19408  const charset cs = { 0, 0 };
19409  /* SunOS 4.1.1 cc rejects this.  */
19410  char const *const *pcpcc;
19411  char **ppc;
19412  /* NEC SVR4.0.2 mips cc rejects this.  */
19413  struct point {int x, y;};
19414  static struct point const zero = {0,0};
19415  /* AIX XL C 1.02.0.0 rejects this.
19416     It does not let you subtract one const X* pointer from another in
19417     an arm of an if-expression whose if-part is not a constant
19418     expression */
19419  const char *g = "string";
19420  pcpcc = &g + (g ? g-g : 0);
19421  /* HPUX 7.0 cc rejects these. */
19422  ++pcpcc;
19423  ppc = (char**) pcpcc;
19424  pcpcc = (char const *const *) ppc;
19425  { /* SCO 3.2v4 cc rejects this sort of thing.  */
19426    char tx;
19427    char *t = &tx;
19428    char const *s = 0 ? (char *) 0 : (char const *) 0;
19429
19430    *t++ = 0;
19431    if (s) return 0;
19432  }
19433  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19434    int x[] = {25, 17};
19435    const int *foo = &x[0];
19436    ++foo;
19437  }
19438  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19439    typedef const int *iptr;
19440    iptr p = 0;
19441    ++p;
19442  }
19443  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
19444       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19445    struct s { int j; const int *ap[3]; } bx;
19446    struct s *b = &bx; b->j = 5;
19447  }
19448  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19449    const int foo = 10;
19450    if (!foo) return 0;
19451  }
19452  return !cs[0] && !zero.x;
19453#endif
19454
19455  ;
19456  return 0;
19457}
19458_ACEOF
19459if ac_fn_c_try_compile "$LINENO"; then :
19460  ac_cv_c_const=yes
19461else
19462  ac_cv_c_const=no
19463fi
19464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19465fi
19466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19467$as_echo "$ac_cv_c_const" >&6; }
19468if test $ac_cv_c_const = no; then
19469
19470$as_echo "#define const /**/" >>confdefs.h
19471
19472fi
19473
19474ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19475if test "x$ac_cv_type_size_t" = xyes; then :
19476
19477else
19478
19479cat >>confdefs.h <<_ACEOF
19480#define size_t unsigned int
19481_ACEOF
19482
19483fi
19484
19485
19486# Checks for library functions.
19487
19488# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19489# for constant arguments.  Useless!
19490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
19491$as_echo_n "checking for working alloca.h... " >&6; }
19492if ${ac_cv_working_alloca_h+:} false; then :
19493  $as_echo_n "(cached) " >&6
19494else
19495  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19496/* end confdefs.h.  */
19497#include <alloca.h>
19498int
19499main ()
19500{
19501char *p = (char *) alloca (2 * sizeof (int));
19502			  if (p) return 0;
19503  ;
19504  return 0;
19505}
19506_ACEOF
19507if ac_fn_c_try_link "$LINENO"; then :
19508  ac_cv_working_alloca_h=yes
19509else
19510  ac_cv_working_alloca_h=no
19511fi
19512rm -f core conftest.err conftest.$ac_objext \
19513    conftest$ac_exeext conftest.$ac_ext
19514fi
19515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
19516$as_echo "$ac_cv_working_alloca_h" >&6; }
19517if test $ac_cv_working_alloca_h = yes; then
19518
19519$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
19520
19521fi
19522
19523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
19524$as_echo_n "checking for alloca... " >&6; }
19525if ${ac_cv_func_alloca_works+:} false; then :
19526  $as_echo_n "(cached) " >&6
19527else
19528  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19529/* end confdefs.h.  */
19530#ifdef __GNUC__
19531# define alloca __builtin_alloca
19532#else
19533# ifdef _MSC_VER
19534#  include <malloc.h>
19535#  define alloca _alloca
19536# else
19537#  ifdef HAVE_ALLOCA_H
19538#   include <alloca.h>
19539#  else
19540#   ifdef _AIX
19541 #pragma alloca
19542#   else
19543#    ifndef alloca /* predefined by HP cc +Olibcalls */
19544void *alloca (size_t);
19545#    endif
19546#   endif
19547#  endif
19548# endif
19549#endif
19550
19551int
19552main ()
19553{
19554char *p = (char *) alloca (1);
19555				    if (p) return 0;
19556  ;
19557  return 0;
19558}
19559_ACEOF
19560if ac_fn_c_try_link "$LINENO"; then :
19561  ac_cv_func_alloca_works=yes
19562else
19563  ac_cv_func_alloca_works=no
19564fi
19565rm -f core conftest.err conftest.$ac_objext \
19566    conftest$ac_exeext conftest.$ac_ext
19567fi
19568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
19569$as_echo "$ac_cv_func_alloca_works" >&6; }
19570
19571if test $ac_cv_func_alloca_works = yes; then
19572
19573$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19574
19575else
19576  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19577# that cause trouble.  Some versions do not even contain alloca or
19578# contain a buggy version.  If you still want to use their alloca,
19579# use ar to extract alloca.o from them instead of compiling alloca.c.
19580
19581ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19582
19583$as_echo "#define C_ALLOCA 1" >>confdefs.h
19584
19585
19586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
19587$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
19588if ${ac_cv_os_cray+:} false; then :
19589  $as_echo_n "(cached) " >&6
19590else
19591  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19592/* end confdefs.h.  */
19593#if defined CRAY && ! defined CRAY2
19594webecray
19595#else
19596wenotbecray
19597#endif
19598
19599_ACEOF
19600if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19601  $EGREP "webecray" >/dev/null 2>&1; then :
19602  ac_cv_os_cray=yes
19603else
19604  ac_cv_os_cray=no
19605fi
19606rm -f conftest*
19607
19608fi
19609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
19610$as_echo "$ac_cv_os_cray" >&6; }
19611if test $ac_cv_os_cray = yes; then
19612  for ac_func in _getb67 GETB67 getb67; do
19613    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19614ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19615if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19616
19617cat >>confdefs.h <<_ACEOF
19618#define CRAY_STACKSEG_END $ac_func
19619_ACEOF
19620
19621    break
19622fi
19623
19624  done
19625fi
19626
19627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
19628$as_echo_n "checking stack direction for C alloca... " >&6; }
19629if ${ac_cv_c_stack_direction+:} false; then :
19630  $as_echo_n "(cached) " >&6
19631else
19632  if test "$cross_compiling" = yes; then :
19633  ac_cv_c_stack_direction=0
19634else
19635  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19636/* end confdefs.h.  */
19637$ac_includes_default
19638int
19639find_stack_direction (int *addr, int depth)
19640{
19641  int dir, dummy = 0;
19642  if (! addr)
19643    addr = &dummy;
19644  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
19645  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
19646  return dir + dummy;
19647}
19648
19649int
19650main (int argc, char **argv)
19651{
19652  return find_stack_direction (0, argc + !argv + 20) < 0;
19653}
19654_ACEOF
19655if ac_fn_c_try_run "$LINENO"; then :
19656  ac_cv_c_stack_direction=1
19657else
19658  ac_cv_c_stack_direction=-1
19659fi
19660rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19661  conftest.$ac_objext conftest.beam conftest.$ac_ext
19662fi
19663
19664fi
19665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
19666$as_echo "$ac_cv_c_stack_direction" >&6; }
19667cat >>confdefs.h <<_ACEOF
19668#define STACK_DIRECTION $ac_cv_c_stack_direction
19669_ACEOF
19670
19671
19672fi
19673
19674ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
19675if test "x$ac_cv_type_pid_t" = xyes; then :
19676
19677else
19678
19679cat >>confdefs.h <<_ACEOF
19680#define pid_t int
19681_ACEOF
19682
19683fi
19684
19685for ac_header in vfork.h
19686do :
19687  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
19688if test "x$ac_cv_header_vfork_h" = xyes; then :
19689  cat >>confdefs.h <<_ACEOF
19690#define HAVE_VFORK_H 1
19691_ACEOF
19692
19693fi
19694
19695done
19696
19697for ac_func in fork vfork
19698do :
19699  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19700ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19701if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19702  cat >>confdefs.h <<_ACEOF
19703#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19704_ACEOF
19705
19706fi
19707done
19708
19709if test "x$ac_cv_func_fork" = xyes; then
19710  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
19711$as_echo_n "checking for working fork... " >&6; }
19712if ${ac_cv_func_fork_works+:} false; then :
19713  $as_echo_n "(cached) " >&6
19714else
19715  if test "$cross_compiling" = yes; then :
19716  ac_cv_func_fork_works=cross
19717else
19718  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19719/* end confdefs.h.  */
19720$ac_includes_default
19721int
19722main ()
19723{
19724
19725	  /* By Ruediger Kuhlmann. */
19726	  return fork () < 0;
19727
19728  ;
19729  return 0;
19730}
19731_ACEOF
19732if ac_fn_c_try_run "$LINENO"; then :
19733  ac_cv_func_fork_works=yes
19734else
19735  ac_cv_func_fork_works=no
19736fi
19737rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19738  conftest.$ac_objext conftest.beam conftest.$ac_ext
19739fi
19740
19741fi
19742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
19743$as_echo "$ac_cv_func_fork_works" >&6; }
19744
19745else
19746  ac_cv_func_fork_works=$ac_cv_func_fork
19747fi
19748if test "x$ac_cv_func_fork_works" = xcross; then
19749  case $host in
19750    *-*-amigaos* | *-*-msdosdjgpp*)
19751      # Override, as these systems have only a dummy fork() stub
19752      ac_cv_func_fork_works=no
19753      ;;
19754    *)
19755      ac_cv_func_fork_works=yes
19756      ;;
19757  esac
19758  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
19759$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
19760fi
19761ac_cv_func_vfork_works=$ac_cv_func_vfork
19762if test "x$ac_cv_func_vfork" = xyes; then
19763  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
19764$as_echo_n "checking for working vfork... " >&6; }
19765if ${ac_cv_func_vfork_works+:} false; then :
19766  $as_echo_n "(cached) " >&6
19767else
19768  if test "$cross_compiling" = yes; then :
19769  ac_cv_func_vfork_works=cross
19770else
19771  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19772/* end confdefs.h.  */
19773/* Thanks to Paul Eggert for this test.  */
19774$ac_includes_default
19775#include <sys/wait.h>
19776#ifdef HAVE_VFORK_H
19777# include <vfork.h>
19778#endif
19779/* On some sparc systems, changes by the child to local and incoming
19780   argument registers are propagated back to the parent.  The compiler
19781   is told about this with #include <vfork.h>, but some compilers
19782   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
19783   static variable whose address is put into a register that is
19784   clobbered by the vfork.  */
19785static void
19786#ifdef __cplusplus
19787sparc_address_test (int arg)
19788# else
19789sparc_address_test (arg) int arg;
19790#endif
19791{
19792  static pid_t child;
19793  if (!child) {
19794    child = vfork ();
19795    if (child < 0) {
19796      perror ("vfork");
19797      _exit(2);
19798    }
19799    if (!child) {
19800      arg = getpid();
19801      write(-1, "", 0);
19802      _exit (arg);
19803    }
19804  }
19805}
19806
19807int
19808main ()
19809{
19810  pid_t parent = getpid ();
19811  pid_t child;
19812
19813  sparc_address_test (0);
19814
19815  child = vfork ();
19816
19817  if (child == 0) {
19818    /* Here is another test for sparc vfork register problems.  This
19819       test uses lots of local variables, at least as many local
19820       variables as main has allocated so far including compiler
19821       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
19822       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
19823       reuse the register of parent for one of the local variables,
19824       since it will think that parent can't possibly be used any more
19825       in this routine.  Assigning to the local variable will thus
19826       munge parent in the parent process.  */
19827    pid_t
19828      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
19829      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
19830    /* Convince the compiler that p..p7 are live; otherwise, it might
19831       use the same hardware register for all 8 local variables.  */
19832    if (p != p1 || p != p2 || p != p3 || p != p4
19833	|| p != p5 || p != p6 || p != p7)
19834      _exit(1);
19835
19836    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
19837       from child file descriptors.  If the child closes a descriptor
19838       before it execs or exits, this munges the parent's descriptor
19839       as well.  Test for this by closing stdout in the child.  */
19840    _exit(close(fileno(stdout)) != 0);
19841  } else {
19842    int status;
19843    struct stat st;
19844
19845    while (wait(&status) != child)
19846      ;
19847    return (
19848	 /* Was there some problem with vforking?  */
19849	 child < 0
19850
19851	 /* Did the child fail?  (This shouldn't happen.)  */
19852	 || status
19853
19854	 /* Did the vfork/compiler bug occur?  */
19855	 || parent != getpid()
19856
19857	 /* Did the file descriptor bug occur?  */
19858	 || fstat(fileno(stdout), &st) != 0
19859	 );
19860  }
19861}
19862_ACEOF
19863if ac_fn_c_try_run "$LINENO"; then :
19864  ac_cv_func_vfork_works=yes
19865else
19866  ac_cv_func_vfork_works=no
19867fi
19868rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19869  conftest.$ac_objext conftest.beam conftest.$ac_ext
19870fi
19871
19872fi
19873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
19874$as_echo "$ac_cv_func_vfork_works" >&6; }
19875
19876fi;
19877if test "x$ac_cv_func_fork_works" = xcross; then
19878  ac_cv_func_vfork_works=$ac_cv_func_vfork
19879  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
19880$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
19881fi
19882
19883if test "x$ac_cv_func_vfork_works" = xyes; then
19884
19885$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
19886
19887else
19888
19889$as_echo "#define vfork fork" >>confdefs.h
19890
19891fi
19892if test "x$ac_cv_func_fork_works" = xyes; then
19893
19894$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
19895
19896fi
19897
19898for ac_header in stdlib.h
19899do :
19900  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
19901if test "x$ac_cv_header_stdlib_h" = xyes; then :
19902  cat >>confdefs.h <<_ACEOF
19903#define HAVE_STDLIB_H 1
19904_ACEOF
19905
19906fi
19907
19908done
19909
19910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
19911$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
19912if ${ac_cv_func_malloc_0_nonnull+:} false; then :
19913  $as_echo_n "(cached) " >&6
19914else
19915  if test "$cross_compiling" = yes; then :
19916  ac_cv_func_malloc_0_nonnull=no
19917else
19918  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19919/* end confdefs.h.  */
19920#if defined STDC_HEADERS || defined HAVE_STDLIB_H
19921# include <stdlib.h>
19922#else
19923char *malloc ();
19924#endif
19925
19926int
19927main ()
19928{
19929return ! malloc (0);
19930  ;
19931  return 0;
19932}
19933_ACEOF
19934if ac_fn_c_try_run "$LINENO"; then :
19935  ac_cv_func_malloc_0_nonnull=yes
19936else
19937  ac_cv_func_malloc_0_nonnull=no
19938fi
19939rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19940  conftest.$ac_objext conftest.beam conftest.$ac_ext
19941fi
19942
19943fi
19944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
19945$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
19946if test $ac_cv_func_malloc_0_nonnull = yes; then :
19947
19948$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
19949
19950else
19951  $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
19952
19953   case " $LIBOBJS " in
19954  *" malloc.$ac_objext "* ) ;;
19955  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
19956 ;;
19957esac
19958
19959
19960$as_echo "#define malloc rpl_malloc" >>confdefs.h
19961
19962fi
19963
19964
19965if test "$cross_compiling" = yes; then :
19966  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_malloc_0_nonnull guessed because of cross compilation" >&5
19967$as_echo "$as_me: WARNING: result $ac_cv_func_malloc_0_nonnull guessed because of cross compilation" >&2;}
19968fi
19969for ac_header in stdlib.h
19970do :
19971  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
19972if test "x$ac_cv_header_stdlib_h" = xyes; then :
19973  cat >>confdefs.h <<_ACEOF
19974#define HAVE_STDLIB_H 1
19975_ACEOF
19976
19977fi
19978
19979done
19980
19981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
19982$as_echo_n "checking for GNU libc compatible realloc... " >&6; }
19983if ${ac_cv_func_realloc_0_nonnull+:} false; then :
19984  $as_echo_n "(cached) " >&6
19985else
19986  if test "$cross_compiling" = yes; then :
19987  ac_cv_func_realloc_0_nonnull=no
19988else
19989  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19990/* end confdefs.h.  */
19991#if defined STDC_HEADERS || defined HAVE_STDLIB_H
19992# include <stdlib.h>
19993#else
19994char *realloc ();
19995#endif
19996
19997int
19998main ()
19999{
20000return ! realloc (0, 0);
20001  ;
20002  return 0;
20003}
20004_ACEOF
20005if ac_fn_c_try_run "$LINENO"; then :
20006  ac_cv_func_realloc_0_nonnull=yes
20007else
20008  ac_cv_func_realloc_0_nonnull=no
20009fi
20010rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20011  conftest.$ac_objext conftest.beam conftest.$ac_ext
20012fi
20013
20014fi
20015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
20016$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
20017if test $ac_cv_func_realloc_0_nonnull = yes; then :
20018
20019$as_echo "#define HAVE_REALLOC 1" >>confdefs.h
20020
20021else
20022  $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
20023
20024   case " $LIBOBJS " in
20025  *" realloc.$ac_objext "* ) ;;
20026  *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
20027 ;;
20028esac
20029
20030
20031$as_echo "#define realloc rpl_realloc" >>confdefs.h
20032
20033fi
20034
20035
20036if test "$cross_compiling" = yes; then :
20037  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_realloc_0_nonnull guessed because of cross compilation" >&5
20038$as_echo "$as_me: WARNING: result $ac_cv_func_realloc_0_nonnull guessed because of cross compilation" >&2;}
20039fi
20040
20041for ac_func in dup2 memset pow regcomp setlocale strchr strdup strtol
20042do :
20043  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20044ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20045if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20046  cat >>confdefs.h <<_ACEOF
20047#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20048_ACEOF
20049
20050fi
20051done
20052
20053
20054ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
20055if test "x$ac_cv_func_reallocarray" = xyes; then :
20056  $as_echo "#define HAVE_REALLOCARRAY 1" >>confdefs.h
20057
20058else
20059  case " $LIBOBJS " in
20060  *" reallocarray.$ac_objext "* ) ;;
20061  *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext"
20062 ;;
20063esac
20064
20065fi
20066
20067
20068
20069ac_config_files="$ac_config_files Makefile doc/Makefile examples/Makefile examples/fastwc/Makefile examples/manual/Makefile lib/Makefile po/Makefile.in src/Makefile tools/Makefile tests/Makefile"
20070
20071
20072cat >confcache <<\_ACEOF
20073# This file is a shell script that caches the results of configure
20074# tests run on this system so they can be shared between configure
20075# scripts and configure runs, see configure's option --config-cache.
20076# It is not useful on other systems.  If it contains results you don't
20077# want to keep, you may remove or edit it.
20078#
20079# config.status only pays attention to the cache file if you give it
20080# the --recheck option to rerun configure.
20081#
20082# `ac_cv_env_foo' variables (set or unset) will be overridden when
20083# loading this file, other *unset* `ac_cv_foo' will be assigned the
20084# following values.
20085
20086_ACEOF
20087
20088# The following way of writing the cache mishandles newlines in values,
20089# but we know of no workaround that is simple, portable, and efficient.
20090# So, we kill variables containing newlines.
20091# Ultrix sh set writes to stderr and can't be redirected directly,
20092# and sets the high bit in the cache file unless we assign to the vars.
20093(
20094  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20095    eval ac_val=\$$ac_var
20096    case $ac_val in #(
20097    *${as_nl}*)
20098      case $ac_var in #(
20099      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20100$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20101      esac
20102      case $ac_var in #(
20103      _ | IFS | as_nl) ;; #(
20104      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20105      *) { eval $ac_var=; unset $ac_var;} ;;
20106      esac ;;
20107    esac
20108  done
20109
20110  (set) 2>&1 |
20111    case $as_nl`(ac_space=' '; set) 2>&1` in #(
20112    *${as_nl}ac_space=\ *)
20113      # `set' does not quote correctly, so add quotes: double-quote
20114      # substitution turns \\\\ into \\, and sed turns \\ into \.
20115      sed -n \
20116	"s/'/'\\\\''/g;
20117	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20118      ;; #(
20119    *)
20120      # `set' quotes correctly as required by POSIX, so do not add quotes.
20121      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20122      ;;
20123    esac |
20124    sort
20125) |
20126  sed '
20127     /^ac_cv_env_/b end
20128     t clear
20129     :clear
20130     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20131     t end
20132     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20133     :end' >>confcache
20134if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20135  if test -w "$cache_file"; then
20136    if test "x$cache_file" != "x/dev/null"; then
20137      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20138$as_echo "$as_me: updating cache $cache_file" >&6;}
20139      if test ! -f "$cache_file" || test -h "$cache_file"; then
20140	cat confcache >"$cache_file"
20141      else
20142        case $cache_file in #(
20143        */* | ?:*)
20144	  mv -f confcache "$cache_file"$$ &&
20145	  mv -f "$cache_file"$$ "$cache_file" ;; #(
20146        *)
20147	  mv -f confcache "$cache_file" ;;
20148	esac
20149      fi
20150    fi
20151  else
20152    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20153$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20154  fi
20155fi
20156rm -f confcache
20157
20158test "x$prefix" = xNONE && prefix=$ac_default_prefix
20159# Let make expand exec_prefix.
20160test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20161
20162DEFS=-DHAVE_CONFIG_H
20163
20164ac_libobjs=
20165ac_ltlibobjs=
20166U=
20167for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20168  # 1. Remove the extension, and $U if already installed.
20169  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20170  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20171  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20172  #    will be set to the directory where LIBOBJS objects are built.
20173  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20174  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20175done
20176LIBOBJS=$ac_libobjs
20177
20178LTLIBOBJS=$ac_ltlibobjs
20179
20180
20181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20182$as_echo_n "checking that generated files are newer than configure... " >&6; }
20183   if test -n "$am_sleep_pid"; then
20184     # Hide warnings about reused PIDs.
20185     wait $am_sleep_pid 2>/dev/null
20186   fi
20187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
20188$as_echo "done" >&6; }
20189if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20190  as_fn_error $? "conditional \"AMDEP\" was never defined.
20191Usually this means the macro was only invoked conditionally." "$LINENO" 5
20192fi
20193if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20194  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20195Usually this means the macro was only invoked conditionally." "$LINENO" 5
20196fi
20197 if test -n "$EXEEXT"; then
20198  am__EXEEXT_TRUE=
20199  am__EXEEXT_FALSE='#'
20200else
20201  am__EXEEXT_TRUE='#'
20202  am__EXEEXT_FALSE=
20203fi
20204
20205if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20206  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
20207Usually this means the macro was only invoked conditionally." "$LINENO" 5
20208fi
20209if test -z "${ENABLE_LIBFL_TRUE}" && test -z "${ENABLE_LIBFL_FALSE}"; then
20210  as_fn_error $? "conditional \"ENABLE_LIBFL\" was never defined.
20211Usually this means the macro was only invoked conditionally." "$LINENO" 5
20212fi
20213if test -z "${ENABLE_BOOTSTRAP_TRUE}" && test -z "${ENABLE_BOOTSTRAP_FALSE}"; then
20214  as_fn_error $? "conditional \"ENABLE_BOOTSTRAP\" was never defined.
20215Usually this means the macro was only invoked conditionally." "$LINENO" 5
20216fi
20217if test -z "${want_pthread_TRUE}" && test -z "${want_pthread_FALSE}"; then
20218  as_fn_error $? "conditional \"want_pthread\" was never defined.
20219Usually this means the macro was only invoked conditionally." "$LINENO" 5
20220fi
20221
20222: "${CONFIG_STATUS=./config.status}"
20223ac_write_fail=0
20224ac_clean_files_save=$ac_clean_files
20225ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20226{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20227$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20228as_write_fail=0
20229cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20230#! $SHELL
20231# Generated by $as_me.
20232# Run this file to recreate the current configuration.
20233# Compiler output produced by configure, useful for debugging
20234# configure, is in config.log if it exists.
20235
20236debug=false
20237ac_cs_recheck=false
20238ac_cs_silent=false
20239
20240SHELL=\${CONFIG_SHELL-$SHELL}
20241export SHELL
20242_ASEOF
20243cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20244## -------------------- ##
20245## M4sh Initialization. ##
20246## -------------------- ##
20247
20248# Be more Bourne compatible
20249DUALCASE=1; export DUALCASE # for MKS sh
20250if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20251  emulate sh
20252  NULLCMD=:
20253  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20254  # is contrary to our usage.  Disable this feature.
20255  alias -g '${1+"$@"}'='"$@"'
20256  setopt NO_GLOB_SUBST
20257else
20258  case `(set -o) 2>/dev/null` in #(
20259  *posix*) :
20260    set -o posix ;; #(
20261  *) :
20262     ;;
20263esac
20264fi
20265
20266
20267as_nl='
20268'
20269export as_nl
20270# Printing a long string crashes Solaris 7 /usr/bin/printf.
20271as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20272as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20273as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20274# Prefer a ksh shell builtin over an external printf program on Solaris,
20275# but without wasting forks for bash or zsh.
20276if test -z "$BASH_VERSION$ZSH_VERSION" \
20277    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20278  as_echo='print -r --'
20279  as_echo_n='print -rn --'
20280elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20281  as_echo='printf %s\n'
20282  as_echo_n='printf %s'
20283else
20284  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20285    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20286    as_echo_n='/usr/ucb/echo -n'
20287  else
20288    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20289    as_echo_n_body='eval
20290      arg=$1;
20291      case $arg in #(
20292      *"$as_nl"*)
20293	expr "X$arg" : "X\\(.*\\)$as_nl";
20294	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20295      esac;
20296      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20297    '
20298    export as_echo_n_body
20299    as_echo_n='sh -c $as_echo_n_body as_echo'
20300  fi
20301  export as_echo_body
20302  as_echo='sh -c $as_echo_body as_echo'
20303fi
20304
20305# The user is always right.
20306if test "${PATH_SEPARATOR+set}" != set; then
20307  PATH_SEPARATOR=:
20308  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20309    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20310      PATH_SEPARATOR=';'
20311  }
20312fi
20313
20314
20315# IFS
20316# We need space, tab and new line, in precisely that order.  Quoting is
20317# there to prevent editors from complaining about space-tab.
20318# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20319# splitting by setting IFS to empty value.)
20320IFS=" ""	$as_nl"
20321
20322# Find who we are.  Look in the path if we contain no directory separator.
20323as_myself=
20324case $0 in #((
20325  *[\\/]* ) as_myself=$0 ;;
20326  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20327for as_dir in $PATH
20328do
20329  IFS=$as_save_IFS
20330  test -z "$as_dir" && as_dir=.
20331    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20332  done
20333IFS=$as_save_IFS
20334
20335     ;;
20336esac
20337# We did not find ourselves, most probably we were run as `sh COMMAND'
20338# in which case we are not to be found in the path.
20339if test "x$as_myself" = x; then
20340  as_myself=$0
20341fi
20342if test ! -f "$as_myself"; then
20343  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20344  exit 1
20345fi
20346
20347# Unset variables that we do not need and which cause bugs (e.g. in
20348# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
20349# suppresses any "Segmentation fault" message there.  '((' could
20350# trigger a bug in pdksh 5.2.14.
20351for as_var in BASH_ENV ENV MAIL MAILPATH
20352do eval test x\${$as_var+set} = xset \
20353  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20354done
20355PS1='$ '
20356PS2='> '
20357PS4='+ '
20358
20359# NLS nuisances.
20360LC_ALL=C
20361export LC_ALL
20362LANGUAGE=C
20363export LANGUAGE
20364
20365# CDPATH.
20366(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20367
20368
20369# as_fn_error STATUS ERROR [LINENO LOG_FD]
20370# ----------------------------------------
20371# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20372# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20373# script with STATUS, using 1 if that was 0.
20374as_fn_error ()
20375{
20376  as_status=$1; test $as_status -eq 0 && as_status=1
20377  if test "$4"; then
20378    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20379    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20380  fi
20381  $as_echo "$as_me: error: $2" >&2
20382  as_fn_exit $as_status
20383} # as_fn_error
20384
20385
20386# as_fn_set_status STATUS
20387# -----------------------
20388# Set $? to STATUS, without forking.
20389as_fn_set_status ()
20390{
20391  return $1
20392} # as_fn_set_status
20393
20394# as_fn_exit STATUS
20395# -----------------
20396# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20397as_fn_exit ()
20398{
20399  set +e
20400  as_fn_set_status $1
20401  exit $1
20402} # as_fn_exit
20403
20404# as_fn_unset VAR
20405# ---------------
20406# Portably unset VAR.
20407as_fn_unset ()
20408{
20409  { eval $1=; unset $1;}
20410}
20411as_unset=as_fn_unset
20412# as_fn_append VAR VALUE
20413# ----------------------
20414# Append the text in VALUE to the end of the definition contained in VAR. Take
20415# advantage of any shell optimizations that allow amortized linear growth over
20416# repeated appends, instead of the typical quadratic growth present in naive
20417# implementations.
20418if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20419  eval 'as_fn_append ()
20420  {
20421    eval $1+=\$2
20422  }'
20423else
20424  as_fn_append ()
20425  {
20426    eval $1=\$$1\$2
20427  }
20428fi # as_fn_append
20429
20430# as_fn_arith ARG...
20431# ------------------
20432# Perform arithmetic evaluation on the ARGs, and store the result in the
20433# global $as_val. Take advantage of shells that can avoid forks. The arguments
20434# must be portable across $(()) and expr.
20435if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20436  eval 'as_fn_arith ()
20437  {
20438    as_val=$(( $* ))
20439  }'
20440else
20441  as_fn_arith ()
20442  {
20443    as_val=`expr "$@" || test $? -eq 1`
20444  }
20445fi # as_fn_arith
20446
20447
20448if expr a : '\(a\)' >/dev/null 2>&1 &&
20449   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20450  as_expr=expr
20451else
20452  as_expr=false
20453fi
20454
20455if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20456  as_basename=basename
20457else
20458  as_basename=false
20459fi
20460
20461if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20462  as_dirname=dirname
20463else
20464  as_dirname=false
20465fi
20466
20467as_me=`$as_basename -- "$0" ||
20468$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20469	 X"$0" : 'X\(//\)$' \| \
20470	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20471$as_echo X/"$0" |
20472    sed '/^.*\/\([^/][^/]*\)\/*$/{
20473	    s//\1/
20474	    q
20475	  }
20476	  /^X\/\(\/\/\)$/{
20477	    s//\1/
20478	    q
20479	  }
20480	  /^X\/\(\/\).*/{
20481	    s//\1/
20482	    q
20483	  }
20484	  s/.*/./; q'`
20485
20486# Avoid depending upon Character Ranges.
20487as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20488as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20489as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20490as_cr_digits='0123456789'
20491as_cr_alnum=$as_cr_Letters$as_cr_digits
20492
20493ECHO_C= ECHO_N= ECHO_T=
20494case `echo -n x` in #(((((
20495-n*)
20496  case `echo 'xy\c'` in
20497  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
20498  xy)  ECHO_C='\c';;
20499  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20500       ECHO_T='	';;
20501  esac;;
20502*)
20503  ECHO_N='-n';;
20504esac
20505
20506rm -f conf$$ conf$$.exe conf$$.file
20507if test -d conf$$.dir; then
20508  rm -f conf$$.dir/conf$$.file
20509else
20510  rm -f conf$$.dir
20511  mkdir conf$$.dir 2>/dev/null
20512fi
20513if (echo >conf$$.file) 2>/dev/null; then
20514  if ln -s conf$$.file conf$$ 2>/dev/null; then
20515    as_ln_s='ln -s'
20516    # ... but there are two gotchas:
20517    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20518    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20519    # In both cases, we have to default to `cp -pR'.
20520    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20521      as_ln_s='cp -pR'
20522  elif ln conf$$.file conf$$ 2>/dev/null; then
20523    as_ln_s=ln
20524  else
20525    as_ln_s='cp -pR'
20526  fi
20527else
20528  as_ln_s='cp -pR'
20529fi
20530rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20531rmdir conf$$.dir 2>/dev/null
20532
20533
20534# as_fn_mkdir_p
20535# -------------
20536# Create "$as_dir" as a directory, including parents if necessary.
20537as_fn_mkdir_p ()
20538{
20539
20540  case $as_dir in #(
20541  -*) as_dir=./$as_dir;;
20542  esac
20543  test -d "$as_dir" || eval $as_mkdir_p || {
20544    as_dirs=
20545    while :; do
20546      case $as_dir in #(
20547      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20548      *) as_qdir=$as_dir;;
20549      esac
20550      as_dirs="'$as_qdir' $as_dirs"
20551      as_dir=`$as_dirname -- "$as_dir" ||
20552$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20553	 X"$as_dir" : 'X\(//\)[^/]' \| \
20554	 X"$as_dir" : 'X\(//\)$' \| \
20555	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20556$as_echo X"$as_dir" |
20557    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20558	    s//\1/
20559	    q
20560	  }
20561	  /^X\(\/\/\)[^/].*/{
20562	    s//\1/
20563	    q
20564	  }
20565	  /^X\(\/\/\)$/{
20566	    s//\1/
20567	    q
20568	  }
20569	  /^X\(\/\).*/{
20570	    s//\1/
20571	    q
20572	  }
20573	  s/.*/./; q'`
20574      test -d "$as_dir" && break
20575    done
20576    test -z "$as_dirs" || eval "mkdir $as_dirs"
20577  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20578
20579
20580} # as_fn_mkdir_p
20581if mkdir -p . 2>/dev/null; then
20582  as_mkdir_p='mkdir -p "$as_dir"'
20583else
20584  test -d ./-p && rmdir ./-p
20585  as_mkdir_p=false
20586fi
20587
20588
20589# as_fn_executable_p FILE
20590# -----------------------
20591# Test if FILE is an executable regular file.
20592as_fn_executable_p ()
20593{
20594  test -f "$1" && test -x "$1"
20595} # as_fn_executable_p
20596as_test_x='test -x'
20597as_executable_p=as_fn_executable_p
20598
20599# Sed expression to map a string onto a valid CPP name.
20600as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20601
20602# Sed expression to map a string onto a valid variable name.
20603as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20604
20605
20606exec 6>&1
20607## ----------------------------------- ##
20608## Main body of $CONFIG_STATUS script. ##
20609## ----------------------------------- ##
20610_ASEOF
20611test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20612
20613cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20614# Save the log message, to keep $0 and so on meaningful, and to
20615# report actual input values of CONFIG_FILES etc. instead of their
20616# values after options handling.
20617ac_log="
20618This file was extended by the fast lexical analyser generator $as_me 2.6.3, which was
20619generated by GNU Autoconf 2.69.  Invocation command line was
20620
20621  CONFIG_FILES    = $CONFIG_FILES
20622  CONFIG_HEADERS  = $CONFIG_HEADERS
20623  CONFIG_LINKS    = $CONFIG_LINKS
20624  CONFIG_COMMANDS = $CONFIG_COMMANDS
20625  $ $0 $@
20626
20627on `(hostname || uname -n) 2>/dev/null | sed 1q`
20628"
20629
20630_ACEOF
20631
20632case $ac_config_files in *"
20633"*) set x $ac_config_files; shift; ac_config_files=$*;;
20634esac
20635
20636case $ac_config_headers in *"
20637"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20638esac
20639
20640
20641cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20642# Files that config.status was made for.
20643config_files="$ac_config_files"
20644config_headers="$ac_config_headers"
20645config_commands="$ac_config_commands"
20646
20647_ACEOF
20648
20649cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20650ac_cs_usage="\
20651\`$as_me' instantiates files and other configuration actions
20652from templates according to the current configuration.  Unless the files
20653and actions are specified as TAGs, all are instantiated by default.
20654
20655Usage: $0 [OPTION]... [TAG]...
20656
20657  -h, --help       print this help, then exit
20658  -V, --version    print version number and configuration settings, then exit
20659      --config     print configuration, then exit
20660  -q, --quiet, --silent
20661                   do not print progress messages
20662  -d, --debug      don't remove temporary files
20663      --recheck    update $as_me by reconfiguring in the same conditions
20664      --file=FILE[:TEMPLATE]
20665                   instantiate the configuration file FILE
20666      --header=FILE[:TEMPLATE]
20667                   instantiate the configuration header FILE
20668
20669Configuration files:
20670$config_files
20671
20672Configuration headers:
20673$config_headers
20674
20675Configuration commands:
20676$config_commands
20677
20678Report bugs to <flex-help@lists.sourceforge.net>."
20679
20680_ACEOF
20681cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20682ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20683ac_cs_version="\\
20684the fast lexical analyser generator config.status 2.6.3
20685configured by $0, generated by GNU Autoconf 2.69,
20686  with options \\"\$ac_cs_config\\"
20687
20688Copyright (C) 2012 Free Software Foundation, Inc.
20689This config.status script is free software; the Free Software Foundation
20690gives unlimited permission to copy, distribute and modify it."
20691
20692ac_pwd='$ac_pwd'
20693srcdir='$srcdir'
20694INSTALL='$INSTALL'
20695MKDIR_P='$MKDIR_P'
20696AWK='$AWK'
20697test -n "\$AWK" || AWK=awk
20698_ACEOF
20699
20700cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20701# The default lists apply if the user does not specify any file.
20702ac_need_defaults=:
20703while test $# != 0
20704do
20705  case $1 in
20706  --*=?*)
20707    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20708    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20709    ac_shift=:
20710    ;;
20711  --*=)
20712    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20713    ac_optarg=
20714    ac_shift=:
20715    ;;
20716  *)
20717    ac_option=$1
20718    ac_optarg=$2
20719    ac_shift=shift
20720    ;;
20721  esac
20722
20723  case $ac_option in
20724  # Handling of the options.
20725  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20726    ac_cs_recheck=: ;;
20727  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20728    $as_echo "$ac_cs_version"; exit ;;
20729  --config | --confi | --conf | --con | --co | --c )
20730    $as_echo "$ac_cs_config"; exit ;;
20731  --debug | --debu | --deb | --de | --d | -d )
20732    debug=: ;;
20733  --file | --fil | --fi | --f )
20734    $ac_shift
20735    case $ac_optarg in
20736    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20737    '') as_fn_error $? "missing file argument" ;;
20738    esac
20739    as_fn_append CONFIG_FILES " '$ac_optarg'"
20740    ac_need_defaults=false;;
20741  --header | --heade | --head | --hea )
20742    $ac_shift
20743    case $ac_optarg in
20744    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20745    esac
20746    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20747    ac_need_defaults=false;;
20748  --he | --h)
20749    # Conflict between --help and --header
20750    as_fn_error $? "ambiguous option: \`$1'
20751Try \`$0 --help' for more information.";;
20752  --help | --hel | -h )
20753    $as_echo "$ac_cs_usage"; exit ;;
20754  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20755  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20756    ac_cs_silent=: ;;
20757
20758  # This is an error.
20759  -*) as_fn_error $? "unrecognized option: \`$1'
20760Try \`$0 --help' for more information." ;;
20761
20762  *) as_fn_append ac_config_targets " $1"
20763     ac_need_defaults=false ;;
20764
20765  esac
20766  shift
20767done
20768
20769ac_configure_extra_args=
20770
20771if $ac_cs_silent; then
20772  exec 6>/dev/null
20773  ac_configure_extra_args="$ac_configure_extra_args --silent"
20774fi
20775
20776_ACEOF
20777cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20778if \$ac_cs_recheck; then
20779  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20780  shift
20781  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20782  CONFIG_SHELL='$SHELL'
20783  export CONFIG_SHELL
20784  exec "\$@"
20785fi
20786
20787_ACEOF
20788cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20789exec 5>>config.log
20790{
20791  echo
20792  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20793## Running $as_me. ##
20794_ASBOX
20795  $as_echo "$ac_log"
20796} >&5
20797
20798_ACEOF
20799cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20800#
20801# INIT-COMMANDS
20802#
20803
20804
20805# The HP-UX ksh and POSIX shell print the target directory to stdout
20806# if CDPATH is set.
20807(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20808
20809sed_quote_subst='$sed_quote_subst'
20810double_quote_subst='$double_quote_subst'
20811delay_variable_subst='$delay_variable_subst'
20812macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20813macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20814enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20815enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20816pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20817enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20818shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20819SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20820ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20821PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20822host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20823host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20824host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20825build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20826build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20827build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20828SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20829Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20830GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20831EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20832FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20833LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20834NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20835LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20836max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20837ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20838exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20839lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20840lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20841lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20842lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20843lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20844reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20845reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20846OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20847deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20848file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20849file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20850want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20851DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20852sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20853AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20854AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20855archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20856STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20857RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20858old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20859old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20860old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20861lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20862CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20863CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20864compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20865GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20866lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20867lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20868lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20869lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20870lt_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"`'
20871lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20872nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20873lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20874lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20875objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20876MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20877lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20878lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20879lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20880lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20881lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20882need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20883MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20884DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20885NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20886LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20887OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20888OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20889libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20890shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20891extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20892archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20893enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20894export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20895whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20896compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20897old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20898old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20899archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20900archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20901module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20902module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20903with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20904allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20905no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20906hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20907hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20908hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20909hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20910hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20911hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20912hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20913inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20914link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20915always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20916export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20917exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20918include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20919prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20920postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20921file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20922variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20923need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20924need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20925version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20926runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20927shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20928shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20929libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20930library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20931soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20932install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20933postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20934postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20935finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20936finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20937hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20938sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20939configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20940configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20941hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20942enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20943enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20944enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20945old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20946striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20947compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20948predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20949postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20950predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20951postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20952compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20953LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20954reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20955reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20956old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20957compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20958GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20959lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20960lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20961lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20962lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20963lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20964archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20965enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20966export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20967whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20968compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20969old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20970old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20971archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20972archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20973module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20974module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20975with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20976allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20977no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20978hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20979hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20980hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20981hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20982hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20983hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20984hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20985inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20986link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20987always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20988export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20989exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20990include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20991prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20992postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20993file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20994hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20995compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20996predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20997postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20998predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20999postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
21000compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
21001
21002LTCC='$LTCC'
21003LTCFLAGS='$LTCFLAGS'
21004compiler='$compiler_DEFAULT'
21005
21006# A function that is used when there is no print builtin or printf.
21007func_fallback_echo ()
21008{
21009  eval 'cat <<_LTECHO_EOF
21010\$1
21011_LTECHO_EOF'
21012}
21013
21014# Quote evaled strings.
21015for var in SHELL \
21016ECHO \
21017PATH_SEPARATOR \
21018SED \
21019GREP \
21020EGREP \
21021FGREP \
21022LD \
21023NM \
21024LN_S \
21025lt_SP2NL \
21026lt_NL2SP \
21027reload_flag \
21028OBJDUMP \
21029deplibs_check_method \
21030file_magic_cmd \
21031file_magic_glob \
21032want_nocaseglob \
21033DLLTOOL \
21034sharedlib_from_linklib_cmd \
21035AR \
21036AR_FLAGS \
21037archiver_list_spec \
21038STRIP \
21039RANLIB \
21040CC \
21041CFLAGS \
21042compiler \
21043lt_cv_sys_global_symbol_pipe \
21044lt_cv_sys_global_symbol_to_cdecl \
21045lt_cv_sys_global_symbol_to_import \
21046lt_cv_sys_global_symbol_to_c_name_address \
21047lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21048lt_cv_nm_interface \
21049nm_file_list_spec \
21050lt_cv_truncate_bin \
21051lt_prog_compiler_no_builtin_flag \
21052lt_prog_compiler_pic \
21053lt_prog_compiler_wl \
21054lt_prog_compiler_static \
21055lt_cv_prog_compiler_c_o \
21056need_locks \
21057MANIFEST_TOOL \
21058DSYMUTIL \
21059NMEDIT \
21060LIPO \
21061OTOOL \
21062OTOOL64 \
21063shrext_cmds \
21064export_dynamic_flag_spec \
21065whole_archive_flag_spec \
21066compiler_needs_object \
21067with_gnu_ld \
21068allow_undefined_flag \
21069no_undefined_flag \
21070hardcode_libdir_flag_spec \
21071hardcode_libdir_separator \
21072exclude_expsyms \
21073include_expsyms \
21074file_list_spec \
21075variables_saved_for_relink \
21076libname_spec \
21077library_names_spec \
21078soname_spec \
21079install_override_mode \
21080finish_eval \
21081old_striplib \
21082striplib \
21083compiler_lib_search_dirs \
21084predep_objects \
21085postdep_objects \
21086predeps \
21087postdeps \
21088compiler_lib_search_path \
21089LD_CXX \
21090reload_flag_CXX \
21091compiler_CXX \
21092lt_prog_compiler_no_builtin_flag_CXX \
21093lt_prog_compiler_pic_CXX \
21094lt_prog_compiler_wl_CXX \
21095lt_prog_compiler_static_CXX \
21096lt_cv_prog_compiler_c_o_CXX \
21097export_dynamic_flag_spec_CXX \
21098whole_archive_flag_spec_CXX \
21099compiler_needs_object_CXX \
21100with_gnu_ld_CXX \
21101allow_undefined_flag_CXX \
21102no_undefined_flag_CXX \
21103hardcode_libdir_flag_spec_CXX \
21104hardcode_libdir_separator_CXX \
21105exclude_expsyms_CXX \
21106include_expsyms_CXX \
21107file_list_spec_CXX \
21108compiler_lib_search_dirs_CXX \
21109predep_objects_CXX \
21110postdep_objects_CXX \
21111predeps_CXX \
21112postdeps_CXX \
21113compiler_lib_search_path_CXX; do
21114    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21115    *[\\\\\\\`\\"\\\$]*)
21116      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21117      ;;
21118    *)
21119      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21120      ;;
21121    esac
21122done
21123
21124# Double-quote double-evaled strings.
21125for var in reload_cmds \
21126old_postinstall_cmds \
21127old_postuninstall_cmds \
21128old_archive_cmds \
21129extract_expsyms_cmds \
21130old_archive_from_new_cmds \
21131old_archive_from_expsyms_cmds \
21132archive_cmds \
21133archive_expsym_cmds \
21134module_cmds \
21135module_expsym_cmds \
21136export_symbols_cmds \
21137prelink_cmds \
21138postlink_cmds \
21139postinstall_cmds \
21140postuninstall_cmds \
21141finish_cmds \
21142sys_lib_search_path_spec \
21143configure_time_dlsearch_path \
21144configure_time_lt_sys_library_path \
21145reload_cmds_CXX \
21146old_archive_cmds_CXX \
21147old_archive_from_new_cmds_CXX \
21148old_archive_from_expsyms_cmds_CXX \
21149archive_cmds_CXX \
21150archive_expsym_cmds_CXX \
21151module_cmds_CXX \
21152module_expsym_cmds_CXX \
21153export_symbols_cmds_CXX \
21154prelink_cmds_CXX \
21155postlink_cmds_CXX; do
21156    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21157    *[\\\\\\\`\\"\\\$]*)
21158      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21159      ;;
21160    *)
21161      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21162      ;;
21163    esac
21164done
21165
21166ac_aux_dir='$ac_aux_dir'
21167
21168# See if we are running on zsh, and set the options that allow our
21169# commands through without removal of \ escapes INIT.
21170if test -n "\${ZSH_VERSION+set}"; then
21171   setopt NO_GLOB_SUBST
21172fi
21173
21174
21175    PACKAGE='$PACKAGE'
21176    VERSION='$VERSION'
21177    RM='$RM'
21178    ofile='$ofile'
21179
21180
21181
21182
21183
21184AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21185# Capture the value of obsolete ALL_LINGUAS because we need it to compute
21186    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
21187    # from automake < 1.5.
21188    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
21189    # Capture the value of LINGUAS because we need it to compute CATALOGS.
21190    LINGUAS="${LINGUAS-%UNSET%}"
21191
21192
21193_ACEOF
21194
21195cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21196
21197# Handling of arguments.
21198for ac_config_target in $ac_config_targets
21199do
21200  case $ac_config_target in
21201    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21202    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21203    "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
21204    "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
21205    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21206    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21207    "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
21208    "examples/fastwc/Makefile") CONFIG_FILES="$CONFIG_FILES examples/fastwc/Makefile" ;;
21209    "examples/manual/Makefile") CONFIG_FILES="$CONFIG_FILES examples/manual/Makefile" ;;
21210    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
21211    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
21212    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21213    "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
21214    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
21215
21216  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21217  esac
21218done
21219
21220
21221# If the user did not use the arguments to specify the items to instantiate,
21222# then the envvar interface is used.  Set only those that are not.
21223# We use the long form for the default assignment because of an extremely
21224# bizarre bug on SunOS 4.1.3.
21225if $ac_need_defaults; then
21226  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21227  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21228  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21229fi
21230
21231# Have a temporary directory for convenience.  Make it in the build tree
21232# simply because there is no reason against having it here, and in addition,
21233# creating and moving files from /tmp can sometimes cause problems.
21234# Hook for its removal unless debugging.
21235# Note that there is a small window in which the directory will not be cleaned:
21236# after its creation but before its name has been assigned to `$tmp'.
21237$debug ||
21238{
21239  tmp= ac_tmp=
21240  trap 'exit_status=$?
21241  : "${ac_tmp:=$tmp}"
21242  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21243' 0
21244  trap 'as_fn_exit 1' 1 2 13 15
21245}
21246# Create a (secure) tmp directory for tmp files.
21247
21248{
21249  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21250  test -d "$tmp"
21251}  ||
21252{
21253  tmp=./conf$$-$RANDOM
21254  (umask 077 && mkdir "$tmp")
21255} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21256ac_tmp=$tmp
21257
21258# Set up the scripts for CONFIG_FILES section.
21259# No need to generate them if there are no CONFIG_FILES.
21260# This happens for instance with `./config.status config.h'.
21261if test -n "$CONFIG_FILES"; then
21262
21263
21264ac_cr=`echo X | tr X '\015'`
21265# On cygwin, bash can eat \r inside `` if the user requested igncr.
21266# But we know of no other shell where ac_cr would be empty at this
21267# point, so we can use a bashism as a fallback.
21268if test "x$ac_cr" = x; then
21269  eval ac_cr=\$\'\\r\'
21270fi
21271ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21272if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21273  ac_cs_awk_cr='\\r'
21274else
21275  ac_cs_awk_cr=$ac_cr
21276fi
21277
21278echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21279_ACEOF
21280
21281
21282{
21283  echo "cat >conf$$subs.awk <<_ACEOF" &&
21284  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21285  echo "_ACEOF"
21286} >conf$$subs.sh ||
21287  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21288ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21289ac_delim='%!_!# '
21290for ac_last_try in false false false false false :; do
21291  . ./conf$$subs.sh ||
21292    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21293
21294  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21295  if test $ac_delim_n = $ac_delim_num; then
21296    break
21297  elif $ac_last_try; then
21298    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21299  else
21300    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21301  fi
21302done
21303rm -f conf$$subs.sh
21304
21305cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21306cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21307_ACEOF
21308sed -n '
21309h
21310s/^/S["/; s/!.*/"]=/
21311p
21312g
21313s/^[^!]*!//
21314:repl
21315t repl
21316s/'"$ac_delim"'$//
21317t delim
21318:nl
21319h
21320s/\(.\{148\}\)..*/\1/
21321t more1
21322s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21323p
21324n
21325b repl
21326:more1
21327s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21328p
21329g
21330s/.\{148\}//
21331t nl
21332:delim
21333h
21334s/\(.\{148\}\)..*/\1/
21335t more2
21336s/["\\]/\\&/g; s/^/"/; s/$/"/
21337p
21338b
21339:more2
21340s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21341p
21342g
21343s/.\{148\}//
21344t delim
21345' <conf$$subs.awk | sed '
21346/^[^""]/{
21347  N
21348  s/\n//
21349}
21350' >>$CONFIG_STATUS || ac_write_fail=1
21351rm -f conf$$subs.awk
21352cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21353_ACAWK
21354cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21355  for (key in S) S_is_set[key] = 1
21356  FS = ""
21357
21358}
21359{
21360  line = $ 0
21361  nfields = split(line, field, "@")
21362  substed = 0
21363  len = length(field[1])
21364  for (i = 2; i < nfields; i++) {
21365    key = field[i]
21366    keylen = length(key)
21367    if (S_is_set[key]) {
21368      value = S[key]
21369      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21370      len += length(value) + length(field[++i])
21371      substed = 1
21372    } else
21373      len += 1 + keylen
21374  }
21375
21376  print line
21377}
21378
21379_ACAWK
21380_ACEOF
21381cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21382if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21383  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21384else
21385  cat
21386fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21387  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21388_ACEOF
21389
21390# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21391# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21392# trailing colons and then remove the whole line if VPATH becomes empty
21393# (actually we leave an empty line to preserve line numbers).
21394if test "x$srcdir" = x.; then
21395  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
21396h
21397s///
21398s/^/:/
21399s/[	 ]*$/:/
21400s/:\$(srcdir):/:/g
21401s/:\${srcdir}:/:/g
21402s/:@srcdir@:/:/g
21403s/^:*//
21404s/:*$//
21405x
21406s/\(=[	 ]*\).*/\1/
21407G
21408s/\n//
21409s/^[^=]*=[	 ]*$//
21410}'
21411fi
21412
21413cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21414fi # test -n "$CONFIG_FILES"
21415
21416# Set up the scripts for CONFIG_HEADERS section.
21417# No need to generate them if there are no CONFIG_HEADERS.
21418# This happens for instance with `./config.status Makefile'.
21419if test -n "$CONFIG_HEADERS"; then
21420cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21421BEGIN {
21422_ACEOF
21423
21424# Transform confdefs.h into an awk script `defines.awk', embedded as
21425# here-document in config.status, that substitutes the proper values into
21426# config.h.in to produce config.h.
21427
21428# Create a delimiter string that does not exist in confdefs.h, to ease
21429# handling of long lines.
21430ac_delim='%!_!# '
21431for ac_last_try in false false :; do
21432  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21433  if test -z "$ac_tt"; then
21434    break
21435  elif $ac_last_try; then
21436    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21437  else
21438    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21439  fi
21440done
21441
21442# For the awk script, D is an array of macro values keyed by name,
21443# likewise P contains macro parameters if any.  Preserve backslash
21444# newline sequences.
21445
21446ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21447sed -n '
21448s/.\{148\}/&'"$ac_delim"'/g
21449t rset
21450:rset
21451s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
21452t def
21453d
21454:def
21455s/\\$//
21456t bsnl
21457s/["\\]/\\&/g
21458s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21459D["\1"]=" \3"/p
21460s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
21461d
21462:bsnl
21463s/["\\]/\\&/g
21464s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21465D["\1"]=" \3\\\\\\n"\\/p
21466t cont
21467s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21468t cont
21469d
21470:cont
21471n
21472s/.\{148\}/&'"$ac_delim"'/g
21473t clear
21474:clear
21475s/\\$//
21476t bsnlc
21477s/["\\]/\\&/g; s/^/"/; s/$/"/p
21478d
21479:bsnlc
21480s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21481b cont
21482' <confdefs.h | sed '
21483s/'"$ac_delim"'/"\\\
21484"/g' >>$CONFIG_STATUS || ac_write_fail=1
21485
21486cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21487  for (key in D) D_is_set[key] = 1
21488  FS = ""
21489}
21490/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21491  line = \$ 0
21492  split(line, arg, " ")
21493  if (arg[1] == "#") {
21494    defundef = arg[2]
21495    mac1 = arg[3]
21496  } else {
21497    defundef = substr(arg[1], 2)
21498    mac1 = arg[2]
21499  }
21500  split(mac1, mac2, "(") #)
21501  macro = mac2[1]
21502  prefix = substr(line, 1, index(line, defundef) - 1)
21503  if (D_is_set[macro]) {
21504    # Preserve the white space surrounding the "#".
21505    print prefix "define", macro P[macro] D[macro]
21506    next
21507  } else {
21508    # Replace #undef with comments.  This is necessary, for example,
21509    # in the case of _POSIX_SOURCE, which is predefined and required
21510    # on some systems where configure will not decide to define it.
21511    if (defundef == "undef") {
21512      print "/*", prefix defundef, macro, "*/"
21513      next
21514    }
21515  }
21516}
21517{ print }
21518_ACAWK
21519_ACEOF
21520cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21521  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21522fi # test -n "$CONFIG_HEADERS"
21523
21524
21525eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21526shift
21527for ac_tag
21528do
21529  case $ac_tag in
21530  :[FHLC]) ac_mode=$ac_tag; continue;;
21531  esac
21532  case $ac_mode$ac_tag in
21533  :[FHL]*:*);;
21534  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21535  :[FH]-) ac_tag=-:-;;
21536  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21537  esac
21538  ac_save_IFS=$IFS
21539  IFS=:
21540  set x $ac_tag
21541  IFS=$ac_save_IFS
21542  shift
21543  ac_file=$1
21544  shift
21545
21546  case $ac_mode in
21547  :L) ac_source=$1;;
21548  :[FH])
21549    ac_file_inputs=
21550    for ac_f
21551    do
21552      case $ac_f in
21553      -) ac_f="$ac_tmp/stdin";;
21554      *) # Look for the file first in the build tree, then in the source tree
21555	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21556	 # because $ac_f cannot contain `:'.
21557	 test -f "$ac_f" ||
21558	   case $ac_f in
21559	   [\\/$]*) false;;
21560	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21561	   esac ||
21562	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21563      esac
21564      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21565      as_fn_append ac_file_inputs " '$ac_f'"
21566    done
21567
21568    # Let's still pretend it is `configure' which instantiates (i.e., don't
21569    # use $as_me), people would be surprised to read:
21570    #    /* config.h.  Generated by config.status.  */
21571    configure_input='Generated from '`
21572	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21573	`' by configure.'
21574    if test x"$ac_file" != x-; then
21575      configure_input="$ac_file.  $configure_input"
21576      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21577$as_echo "$as_me: creating $ac_file" >&6;}
21578    fi
21579    # Neutralize special characters interpreted by sed in replacement strings.
21580    case $configure_input in #(
21581    *\&* | *\|* | *\\* )
21582       ac_sed_conf_input=`$as_echo "$configure_input" |
21583       sed 's/[\\\\&|]/\\\\&/g'`;; #(
21584    *) ac_sed_conf_input=$configure_input;;
21585    esac
21586
21587    case $ac_tag in
21588    *:-:* | *:-) cat >"$ac_tmp/stdin" \
21589      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21590    esac
21591    ;;
21592  esac
21593
21594  ac_dir=`$as_dirname -- "$ac_file" ||
21595$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21596	 X"$ac_file" : 'X\(//\)[^/]' \| \
21597	 X"$ac_file" : 'X\(//\)$' \| \
21598	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21599$as_echo X"$ac_file" |
21600    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21601	    s//\1/
21602	    q
21603	  }
21604	  /^X\(\/\/\)[^/].*/{
21605	    s//\1/
21606	    q
21607	  }
21608	  /^X\(\/\/\)$/{
21609	    s//\1/
21610	    q
21611	  }
21612	  /^X\(\/\).*/{
21613	    s//\1/
21614	    q
21615	  }
21616	  s/.*/./; q'`
21617  as_dir="$ac_dir"; as_fn_mkdir_p
21618  ac_builddir=.
21619
21620case "$ac_dir" in
21621.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21622*)
21623  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21624  # A ".." for each directory in $ac_dir_suffix.
21625  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21626  case $ac_top_builddir_sub in
21627  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21628  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21629  esac ;;
21630esac
21631ac_abs_top_builddir=$ac_pwd
21632ac_abs_builddir=$ac_pwd$ac_dir_suffix
21633# for backward compatibility:
21634ac_top_builddir=$ac_top_build_prefix
21635
21636case $srcdir in
21637  .)  # We are building in place.
21638    ac_srcdir=.
21639    ac_top_srcdir=$ac_top_builddir_sub
21640    ac_abs_top_srcdir=$ac_pwd ;;
21641  [\\/]* | ?:[\\/]* )  # Absolute name.
21642    ac_srcdir=$srcdir$ac_dir_suffix;
21643    ac_top_srcdir=$srcdir
21644    ac_abs_top_srcdir=$srcdir ;;
21645  *) # Relative name.
21646    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21647    ac_top_srcdir=$ac_top_build_prefix$srcdir
21648    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21649esac
21650ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21651
21652
21653  case $ac_mode in
21654  :F)
21655  #
21656  # CONFIG_FILE
21657  #
21658
21659  case $INSTALL in
21660  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21661  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21662  esac
21663  ac_MKDIR_P=$MKDIR_P
21664  case $MKDIR_P in
21665  [\\/$]* | ?:[\\/]* ) ;;
21666  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21667  esac
21668_ACEOF
21669
21670cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21671# If the template does not know about datarootdir, expand it.
21672# FIXME: This hack should be removed a few years after 2.60.
21673ac_datarootdir_hack=; ac_datarootdir_seen=
21674ac_sed_dataroot='
21675/datarootdir/ {
21676  p
21677  q
21678}
21679/@datadir@/p
21680/@docdir@/p
21681/@infodir@/p
21682/@localedir@/p
21683/@mandir@/p'
21684case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21685*datarootdir*) ac_datarootdir_seen=yes;;
21686*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21687  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21688$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21689_ACEOF
21690cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21691  ac_datarootdir_hack='
21692  s&@datadir@&$datadir&g
21693  s&@docdir@&$docdir&g
21694  s&@infodir@&$infodir&g
21695  s&@localedir@&$localedir&g
21696  s&@mandir@&$mandir&g
21697  s&\\\${datarootdir}&$datarootdir&g' ;;
21698esac
21699_ACEOF
21700
21701# Neutralize VPATH when `$srcdir' = `.'.
21702# Shell code in configure.ac might set extrasub.
21703# FIXME: do we really want to maintain this feature?
21704cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21705ac_sed_extra="$ac_vpsub
21706$extrasub
21707_ACEOF
21708cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21709:t
21710/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21711s|@configure_input@|$ac_sed_conf_input|;t t
21712s&@top_builddir@&$ac_top_builddir_sub&;t t
21713s&@top_build_prefix@&$ac_top_build_prefix&;t t
21714s&@srcdir@&$ac_srcdir&;t t
21715s&@abs_srcdir@&$ac_abs_srcdir&;t t
21716s&@top_srcdir@&$ac_top_srcdir&;t t
21717s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21718s&@builddir@&$ac_builddir&;t t
21719s&@abs_builddir@&$ac_abs_builddir&;t t
21720s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21721s&@INSTALL@&$ac_INSTALL&;t t
21722s&@MKDIR_P@&$ac_MKDIR_P&;t t
21723$ac_datarootdir_hack
21724"
21725eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21726  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21727
21728test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21729  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21730  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
21731      "$ac_tmp/out"`; test -z "$ac_out"; } &&
21732  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21733which seems to be undefined.  Please make sure it is defined" >&5
21734$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21735which seems to be undefined.  Please make sure it is defined" >&2;}
21736
21737  rm -f "$ac_tmp/stdin"
21738  case $ac_file in
21739  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21740  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21741  esac \
21742  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21743 ;;
21744  :H)
21745  #
21746  # CONFIG_HEADER
21747  #
21748  if test x"$ac_file" != x-; then
21749    {
21750      $as_echo "/* $configure_input  */" \
21751      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21752    } >"$ac_tmp/config.h" \
21753      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21754    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21755      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21756$as_echo "$as_me: $ac_file is unchanged" >&6;}
21757    else
21758      rm -f "$ac_file"
21759      mv "$ac_tmp/config.h" "$ac_file" \
21760	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
21761    fi
21762  else
21763    $as_echo "/* $configure_input  */" \
21764      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21765      || as_fn_error $? "could not create -" "$LINENO" 5
21766  fi
21767# Compute "$ac_file"'s index in $config_headers.
21768_am_arg="$ac_file"
21769_am_stamp_count=1
21770for _am_header in $config_headers :; do
21771  case $_am_header in
21772    $_am_arg | $_am_arg:* )
21773      break ;;
21774    * )
21775      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21776  esac
21777done
21778echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21779$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21780	 X"$_am_arg" : 'X\(//\)[^/]' \| \
21781	 X"$_am_arg" : 'X\(//\)$' \| \
21782	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21783$as_echo X"$_am_arg" |
21784    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21785	    s//\1/
21786	    q
21787	  }
21788	  /^X\(\/\/\)[^/].*/{
21789	    s//\1/
21790	    q
21791	  }
21792	  /^X\(\/\/\)$/{
21793	    s//\1/
21794	    q
21795	  }
21796	  /^X\(\/\).*/{
21797	    s//\1/
21798	    q
21799	  }
21800	  s/.*/./; q'`/stamp-h$_am_stamp_count
21801 ;;
21802
21803  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21804$as_echo "$as_me: executing $ac_file commands" >&6;}
21805 ;;
21806  esac
21807
21808
21809  case $ac_file$ac_mode in
21810    "libtool":C)
21811
21812    # See if we are running on zsh, and set the options that allow our
21813    # commands through without removal of \ escapes.
21814    if test -n "${ZSH_VERSION+set}"; then
21815      setopt NO_GLOB_SUBST
21816    fi
21817
21818    cfgfile=${ofile}T
21819    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21820    $RM "$cfgfile"
21821
21822    cat <<_LT_EOF >> "$cfgfile"
21823#! $SHELL
21824# Generated automatically by $as_me ($PACKAGE) $VERSION
21825# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21826# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21827
21828# Provide generalized library-building support services.
21829# Written by Gordon Matzigkeit, 1996
21830
21831# Copyright (C) 2014 Free Software Foundation, Inc.
21832# This is free software; see the source for copying conditions.  There is NO
21833# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21834
21835# GNU Libtool is free software; you can redistribute it and/or modify
21836# it under the terms of the GNU General Public License as published by
21837# the Free Software Foundation; either version 2 of of the License, or
21838# (at your option) any later version.
21839#
21840# As a special exception to the GNU General Public License, if you
21841# distribute this file as part of a program or library that is built
21842# using GNU Libtool, you may include this file under the  same
21843# distribution terms that you use for the rest of that program.
21844#
21845# GNU Libtool is distributed in the hope that it will be useful, but
21846# WITHOUT ANY WARRANTY; without even the implied warranty of
21847# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21848# GNU General Public License for more details.
21849#
21850# You should have received a copy of the GNU General Public License
21851# along with this program.  If not, see <http://www.gnu.org/licenses/>.
21852
21853
21854# The names of the tagged configurations supported by this script.
21855available_tags='CXX '
21856
21857# Configured defaults for sys_lib_dlsearch_path munging.
21858: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21859
21860# ### BEGIN LIBTOOL CONFIG
21861
21862# Which release of libtool.m4 was used?
21863macro_version=$macro_version
21864macro_revision=$macro_revision
21865
21866# Whether or not to build shared libraries.
21867build_libtool_libs=$enable_shared
21868
21869# Whether or not to build static libraries.
21870build_old_libs=$enable_static
21871
21872# What type of objects to build.
21873pic_mode=$pic_mode
21874
21875# Whether or not to optimize for fast installation.
21876fast_install=$enable_fast_install
21877
21878# Shared archive member basename,for filename based shared library versioning on AIX.
21879shared_archive_member_spec=$shared_archive_member_spec
21880
21881# Shell to use when invoking shell scripts.
21882SHELL=$lt_SHELL
21883
21884# An echo program that protects backslashes.
21885ECHO=$lt_ECHO
21886
21887# The PATH separator for the build system.
21888PATH_SEPARATOR=$lt_PATH_SEPARATOR
21889
21890# The host system.
21891host_alias=$host_alias
21892host=$host
21893host_os=$host_os
21894
21895# The build system.
21896build_alias=$build_alias
21897build=$build
21898build_os=$build_os
21899
21900# A sed program that does not truncate output.
21901SED=$lt_SED
21902
21903# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21904Xsed="\$SED -e 1s/^X//"
21905
21906# A grep program that handles long lines.
21907GREP=$lt_GREP
21908
21909# An ERE matcher.
21910EGREP=$lt_EGREP
21911
21912# A literal string matcher.
21913FGREP=$lt_FGREP
21914
21915# A BSD- or MS-compatible name lister.
21916NM=$lt_NM
21917
21918# Whether we need soft or hard links.
21919LN_S=$lt_LN_S
21920
21921# What is the maximum length of a command?
21922max_cmd_len=$max_cmd_len
21923
21924# Object file suffix (normally "o").
21925objext=$ac_objext
21926
21927# Executable file suffix (normally "").
21928exeext=$exeext
21929
21930# whether the shell understands "unset".
21931lt_unset=$lt_unset
21932
21933# turn spaces into newlines.
21934SP2NL=$lt_lt_SP2NL
21935
21936# turn newlines into spaces.
21937NL2SP=$lt_lt_NL2SP
21938
21939# convert \$build file names to \$host format.
21940to_host_file_cmd=$lt_cv_to_host_file_cmd
21941
21942# convert \$build files to toolchain format.
21943to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21944
21945# An object symbol dumper.
21946OBJDUMP=$lt_OBJDUMP
21947
21948# Method to check whether dependent libraries are shared objects.
21949deplibs_check_method=$lt_deplibs_check_method
21950
21951# Command to use when deplibs_check_method = "file_magic".
21952file_magic_cmd=$lt_file_magic_cmd
21953
21954# How to find potential files when deplibs_check_method = "file_magic".
21955file_magic_glob=$lt_file_magic_glob
21956
21957# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21958want_nocaseglob=$lt_want_nocaseglob
21959
21960# DLL creation program.
21961DLLTOOL=$lt_DLLTOOL
21962
21963# Command to associate shared and link libraries.
21964sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21965
21966# The archiver.
21967AR=$lt_AR
21968
21969# Flags to create an archive.
21970AR_FLAGS=$lt_AR_FLAGS
21971
21972# How to feed a file listing to the archiver.
21973archiver_list_spec=$lt_archiver_list_spec
21974
21975# A symbol stripping program.
21976STRIP=$lt_STRIP
21977
21978# Commands used to install an old-style archive.
21979RANLIB=$lt_RANLIB
21980old_postinstall_cmds=$lt_old_postinstall_cmds
21981old_postuninstall_cmds=$lt_old_postuninstall_cmds
21982
21983# Whether to use a lock for old archive extraction.
21984lock_old_archive_extraction=$lock_old_archive_extraction
21985
21986# A C compiler.
21987LTCC=$lt_CC
21988
21989# LTCC compiler flags.
21990LTCFLAGS=$lt_CFLAGS
21991
21992# Take the output of nm and produce a listing of raw symbols and C names.
21993global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21994
21995# Transform the output of nm in a proper C declaration.
21996global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21997
21998# Transform the output of nm into a list of symbols to manually relocate.
21999global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22000
22001# Transform the output of nm in a C name address pair.
22002global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22003
22004# Transform the output of nm in a C name address pair when lib prefix is needed.
22005global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22006
22007# The name lister interface.
22008nm_interface=$lt_lt_cv_nm_interface
22009
22010# Specify filename containing input files for \$NM.
22011nm_file_list_spec=$lt_nm_file_list_spec
22012
22013# The root where to search for dependent libraries,and where our libraries should be installed.
22014lt_sysroot=$lt_sysroot
22015
22016# Command to truncate a binary pipe.
22017lt_truncate_bin=$lt_lt_cv_truncate_bin
22018
22019# The name of the directory that contains temporary libtool files.
22020objdir=$objdir
22021
22022# Used to examine libraries when file_magic_cmd begins with "file".
22023MAGIC_CMD=$MAGIC_CMD
22024
22025# Must we lock files when doing compilation?
22026need_locks=$lt_need_locks
22027
22028# Manifest tool.
22029MANIFEST_TOOL=$lt_MANIFEST_TOOL
22030
22031# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22032DSYMUTIL=$lt_DSYMUTIL
22033
22034# Tool to change global to local symbols on Mac OS X.
22035NMEDIT=$lt_NMEDIT
22036
22037# Tool to manipulate fat objects and archives on Mac OS X.
22038LIPO=$lt_LIPO
22039
22040# ldd/readelf like tool for Mach-O binaries on Mac OS X.
22041OTOOL=$lt_OTOOL
22042
22043# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22044OTOOL64=$lt_OTOOL64
22045
22046# Old archive suffix (normally "a").
22047libext=$libext
22048
22049# Shared library suffix (normally ".so").
22050shrext_cmds=$lt_shrext_cmds
22051
22052# The commands to extract the exported symbol list from a shared archive.
22053extract_expsyms_cmds=$lt_extract_expsyms_cmds
22054
22055# Variables whose values should be saved in libtool wrapper scripts and
22056# restored at link time.
22057variables_saved_for_relink=$lt_variables_saved_for_relink
22058
22059# Do we need the "lib" prefix for modules?
22060need_lib_prefix=$need_lib_prefix
22061
22062# Do we need a version for libraries?
22063need_version=$need_version
22064
22065# Library versioning type.
22066version_type=$version_type
22067
22068# Shared library runtime path variable.
22069runpath_var=$runpath_var
22070
22071# Shared library path variable.
22072shlibpath_var=$shlibpath_var
22073
22074# Is shlibpath searched before the hard-coded library search path?
22075shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22076
22077# Format of library name prefix.
22078libname_spec=$lt_libname_spec
22079
22080# List of archive names.  First name is the real one, the rest are links.
22081# The last name is the one that the linker finds with -lNAME
22082library_names_spec=$lt_library_names_spec
22083
22084# The coded name of the library, if different from the real name.
22085soname_spec=$lt_soname_spec
22086
22087# Permission mode override for installation of shared libraries.
22088install_override_mode=$lt_install_override_mode
22089
22090# Command to use after installation of a shared archive.
22091postinstall_cmds=$lt_postinstall_cmds
22092
22093# Command to use after uninstallation of a shared archive.
22094postuninstall_cmds=$lt_postuninstall_cmds
22095
22096# Commands used to finish a libtool library installation in a directory.
22097finish_cmds=$lt_finish_cmds
22098
22099# As "finish_cmds", except a single script fragment to be evaled but
22100# not shown.
22101finish_eval=$lt_finish_eval
22102
22103# Whether we should hardcode library paths into libraries.
22104hardcode_into_libs=$hardcode_into_libs
22105
22106# Compile-time system search path for libraries.
22107sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22108
22109# Detected run-time system search path for libraries.
22110sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22111
22112# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22113configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22114
22115# Whether dlopen is supported.
22116dlopen_support=$enable_dlopen
22117
22118# Whether dlopen of programs is supported.
22119dlopen_self=$enable_dlopen_self
22120
22121# Whether dlopen of statically linked programs is supported.
22122dlopen_self_static=$enable_dlopen_self_static
22123
22124# Commands to strip libraries.
22125old_striplib=$lt_old_striplib
22126striplib=$lt_striplib
22127
22128
22129# The linker used to build libraries.
22130LD=$lt_LD
22131
22132# How to create reloadable object files.
22133reload_flag=$lt_reload_flag
22134reload_cmds=$lt_reload_cmds
22135
22136# Commands used to build an old-style archive.
22137old_archive_cmds=$lt_old_archive_cmds
22138
22139# A language specific compiler.
22140CC=$lt_compiler
22141
22142# Is the compiler the GNU compiler?
22143with_gcc=$GCC
22144
22145# Compiler flag to turn off builtin functions.
22146no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22147
22148# Additional compiler flags for building library objects.
22149pic_flag=$lt_lt_prog_compiler_pic
22150
22151# How to pass a linker flag through the compiler.
22152wl=$lt_lt_prog_compiler_wl
22153
22154# Compiler flag to prevent dynamic linking.
22155link_static_flag=$lt_lt_prog_compiler_static
22156
22157# Does compiler simultaneously support -c and -o options?
22158compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22159
22160# Whether or not to add -lc for building shared libraries.
22161build_libtool_need_lc=$archive_cmds_need_lc
22162
22163# Whether or not to disallow shared libs when runtime libs are static.
22164allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22165
22166# Compiler flag to allow reflexive dlopens.
22167export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22168
22169# Compiler flag to generate shared objects directly from archives.
22170whole_archive_flag_spec=$lt_whole_archive_flag_spec
22171
22172# Whether the compiler copes with passing no objects directly.
22173compiler_needs_object=$lt_compiler_needs_object
22174
22175# Create an old-style archive from a shared archive.
22176old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22177
22178# Create a temporary old-style archive to link instead of a shared archive.
22179old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22180
22181# Commands used to build a shared archive.
22182archive_cmds=$lt_archive_cmds
22183archive_expsym_cmds=$lt_archive_expsym_cmds
22184
22185# Commands used to build a loadable module if different from building
22186# a shared archive.
22187module_cmds=$lt_module_cmds
22188module_expsym_cmds=$lt_module_expsym_cmds
22189
22190# Whether we are building with GNU ld or not.
22191with_gnu_ld=$lt_with_gnu_ld
22192
22193# Flag that allows shared libraries with undefined symbols to be built.
22194allow_undefined_flag=$lt_allow_undefined_flag
22195
22196# Flag that enforces no undefined symbols.
22197no_undefined_flag=$lt_no_undefined_flag
22198
22199# Flag to hardcode \$libdir into a binary during linking.
22200# This must work even if \$libdir does not exist
22201hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22202
22203# Whether we need a single "-rpath" flag with a separated argument.
22204hardcode_libdir_separator=$lt_hardcode_libdir_separator
22205
22206# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22207# DIR into the resulting binary.
22208hardcode_direct=$hardcode_direct
22209
22210# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22211# DIR into the resulting binary and the resulting library dependency is
22212# "absolute",i.e impossible to change by setting \$shlibpath_var if the
22213# library is relocated.
22214hardcode_direct_absolute=$hardcode_direct_absolute
22215
22216# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22217# into the resulting binary.
22218hardcode_minus_L=$hardcode_minus_L
22219
22220# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22221# into the resulting binary.
22222hardcode_shlibpath_var=$hardcode_shlibpath_var
22223
22224# Set to "yes" if building a shared library automatically hardcodes DIR
22225# into the library and all subsequent libraries and executables linked
22226# against it.
22227hardcode_automatic=$hardcode_automatic
22228
22229# Set to yes if linker adds runtime paths of dependent libraries
22230# to runtime path list.
22231inherit_rpath=$inherit_rpath
22232
22233# Whether libtool must link a program against all its dependency libraries.
22234link_all_deplibs=$link_all_deplibs
22235
22236# Set to "yes" if exported symbols are required.
22237always_export_symbols=$always_export_symbols
22238
22239# The commands to list exported symbols.
22240export_symbols_cmds=$lt_export_symbols_cmds
22241
22242# Symbols that should not be listed in the preloaded symbols.
22243exclude_expsyms=$lt_exclude_expsyms
22244
22245# Symbols that must always be exported.
22246include_expsyms=$lt_include_expsyms
22247
22248# Commands necessary for linking programs (against libraries) with templates.
22249prelink_cmds=$lt_prelink_cmds
22250
22251# Commands necessary for finishing linking programs.
22252postlink_cmds=$lt_postlink_cmds
22253
22254# Specify filename containing input files.
22255file_list_spec=$lt_file_list_spec
22256
22257# How to hardcode a shared library path into an executable.
22258hardcode_action=$hardcode_action
22259
22260# The directories searched by this compiler when creating a shared library.
22261compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22262
22263# Dependencies to place before and after the objects being linked to
22264# create a shared library.
22265predep_objects=$lt_predep_objects
22266postdep_objects=$lt_postdep_objects
22267predeps=$lt_predeps
22268postdeps=$lt_postdeps
22269
22270# The library search path used internally by the compiler when linking
22271# a shared library.
22272compiler_lib_search_path=$lt_compiler_lib_search_path
22273
22274# ### END LIBTOOL CONFIG
22275
22276_LT_EOF
22277
22278    cat <<'_LT_EOF' >> "$cfgfile"
22279
22280# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22281
22282# func_munge_path_list VARIABLE PATH
22283# -----------------------------------
22284# VARIABLE is name of variable containing _space_ separated list of
22285# directories to be munged by the contents of PATH, which is string
22286# having a format:
22287# "DIR[:DIR]:"
22288#       string "DIR[ DIR]" will be prepended to VARIABLE
22289# ":DIR[:DIR]"
22290#       string "DIR[ DIR]" will be appended to VARIABLE
22291# "DIRP[:DIRP]::[DIRA:]DIRA"
22292#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22293#       "DIRA[ DIRA]" will be appended to VARIABLE
22294# "DIR[:DIR]"
22295#       VARIABLE will be replaced by "DIR[ DIR]"
22296func_munge_path_list ()
22297{
22298    case x$2 in
22299    x)
22300        ;;
22301    *:)
22302        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22303        ;;
22304    x:*)
22305        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22306        ;;
22307    *::*)
22308        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22309        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22310        ;;
22311    *)
22312        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22313        ;;
22314    esac
22315}
22316
22317
22318# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
22319func_cc_basename ()
22320{
22321    for cc_temp in $*""; do
22322      case $cc_temp in
22323        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22324        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22325        \-*) ;;
22326        *) break;;
22327      esac
22328    done
22329    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22330}
22331
22332
22333# ### END FUNCTIONS SHARED WITH CONFIGURE
22334
22335_LT_EOF
22336
22337  case $host_os in
22338  aix3*)
22339    cat <<\_LT_EOF >> "$cfgfile"
22340# AIX sometimes has problems with the GCC collect2 program.  For some
22341# reason, if we set the COLLECT_NAMES environment variable, the problems
22342# vanish in a puff of smoke.
22343if test set != "${COLLECT_NAMES+set}"; then
22344  COLLECT_NAMES=
22345  export COLLECT_NAMES
22346fi
22347_LT_EOF
22348    ;;
22349  esac
22350
22351
22352ltmain=$ac_aux_dir/ltmain.sh
22353
22354
22355  # We use sed instead of cat because bash on DJGPP gets confused if
22356  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
22357  # text mode, it properly converts lines to CR/LF.  This bash problem
22358  # is reportedly fixed, but why not run on old versions too?
22359  sed '$q' "$ltmain" >> "$cfgfile" \
22360     || (rm -f "$cfgfile"; exit 1)
22361
22362   mv -f "$cfgfile" "$ofile" ||
22363    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22364  chmod +x "$ofile"
22365
22366
22367    cat <<_LT_EOF >> "$ofile"
22368
22369# ### BEGIN LIBTOOL TAG CONFIG: CXX
22370
22371# The linker used to build libraries.
22372LD=$lt_LD_CXX
22373
22374# How to create reloadable object files.
22375reload_flag=$lt_reload_flag_CXX
22376reload_cmds=$lt_reload_cmds_CXX
22377
22378# Commands used to build an old-style archive.
22379old_archive_cmds=$lt_old_archive_cmds_CXX
22380
22381# A language specific compiler.
22382CC=$lt_compiler_CXX
22383
22384# Is the compiler the GNU compiler?
22385with_gcc=$GCC_CXX
22386
22387# Compiler flag to turn off builtin functions.
22388no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22389
22390# Additional compiler flags for building library objects.
22391pic_flag=$lt_lt_prog_compiler_pic_CXX
22392
22393# How to pass a linker flag through the compiler.
22394wl=$lt_lt_prog_compiler_wl_CXX
22395
22396# Compiler flag to prevent dynamic linking.
22397link_static_flag=$lt_lt_prog_compiler_static_CXX
22398
22399# Does compiler simultaneously support -c and -o options?
22400compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22401
22402# Whether or not to add -lc for building shared libraries.
22403build_libtool_need_lc=$archive_cmds_need_lc_CXX
22404
22405# Whether or not to disallow shared libs when runtime libs are static.
22406allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22407
22408# Compiler flag to allow reflexive dlopens.
22409export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22410
22411# Compiler flag to generate shared objects directly from archives.
22412whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22413
22414# Whether the compiler copes with passing no objects directly.
22415compiler_needs_object=$lt_compiler_needs_object_CXX
22416
22417# Create an old-style archive from a shared archive.
22418old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22419
22420# Create a temporary old-style archive to link instead of a shared archive.
22421old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22422
22423# Commands used to build a shared archive.
22424archive_cmds=$lt_archive_cmds_CXX
22425archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22426
22427# Commands used to build a loadable module if different from building
22428# a shared archive.
22429module_cmds=$lt_module_cmds_CXX
22430module_expsym_cmds=$lt_module_expsym_cmds_CXX
22431
22432# Whether we are building with GNU ld or not.
22433with_gnu_ld=$lt_with_gnu_ld_CXX
22434
22435# Flag that allows shared libraries with undefined symbols to be built.
22436allow_undefined_flag=$lt_allow_undefined_flag_CXX
22437
22438# Flag that enforces no undefined symbols.
22439no_undefined_flag=$lt_no_undefined_flag_CXX
22440
22441# Flag to hardcode \$libdir into a binary during linking.
22442# This must work even if \$libdir does not exist
22443hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22444
22445# Whether we need a single "-rpath" flag with a separated argument.
22446hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22447
22448# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22449# DIR into the resulting binary.
22450hardcode_direct=$hardcode_direct_CXX
22451
22452# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22453# DIR into the resulting binary and the resulting library dependency is
22454# "absolute",i.e impossible to change by setting \$shlibpath_var if the
22455# library is relocated.
22456hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22457
22458# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22459# into the resulting binary.
22460hardcode_minus_L=$hardcode_minus_L_CXX
22461
22462# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22463# into the resulting binary.
22464hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22465
22466# Set to "yes" if building a shared library automatically hardcodes DIR
22467# into the library and all subsequent libraries and executables linked
22468# against it.
22469hardcode_automatic=$hardcode_automatic_CXX
22470
22471# Set to yes if linker adds runtime paths of dependent libraries
22472# to runtime path list.
22473inherit_rpath=$inherit_rpath_CXX
22474
22475# Whether libtool must link a program against all its dependency libraries.
22476link_all_deplibs=$link_all_deplibs_CXX
22477
22478# Set to "yes" if exported symbols are required.
22479always_export_symbols=$always_export_symbols_CXX
22480
22481# The commands to list exported symbols.
22482export_symbols_cmds=$lt_export_symbols_cmds_CXX
22483
22484# Symbols that should not be listed in the preloaded symbols.
22485exclude_expsyms=$lt_exclude_expsyms_CXX
22486
22487# Symbols that must always be exported.
22488include_expsyms=$lt_include_expsyms_CXX
22489
22490# Commands necessary for linking programs (against libraries) with templates.
22491prelink_cmds=$lt_prelink_cmds_CXX
22492
22493# Commands necessary for finishing linking programs.
22494postlink_cmds=$lt_postlink_cmds_CXX
22495
22496# Specify filename containing input files.
22497file_list_spec=$lt_file_list_spec_CXX
22498
22499# How to hardcode a shared library path into an executable.
22500hardcode_action=$hardcode_action_CXX
22501
22502# The directories searched by this compiler when creating a shared library.
22503compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22504
22505# Dependencies to place before and after the objects being linked to
22506# create a shared library.
22507predep_objects=$lt_predep_objects_CXX
22508postdep_objects=$lt_postdep_objects_CXX
22509predeps=$lt_predeps_CXX
22510postdeps=$lt_postdeps_CXX
22511
22512# The library search path used internally by the compiler when linking
22513# a shared library.
22514compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22515
22516# ### END LIBTOOL TAG CONFIG: CXX
22517_LT_EOF
22518
22519 ;;
22520    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22521  # Older Autoconf quotes --file arguments for eval, but not when files
22522  # are listed without --file.  Let's play safe and only enable the eval
22523  # if we detect the quoting.
22524  case $CONFIG_FILES in
22525  *\'*) eval set x "$CONFIG_FILES" ;;
22526  *)   set x $CONFIG_FILES ;;
22527  esac
22528  shift
22529  for mf
22530  do
22531    # Strip MF so we end up with the name of the file.
22532    mf=`echo "$mf" | sed -e 's/:.*$//'`
22533    # Check whether this is an Automake generated Makefile or not.
22534    # We used to match only the files named 'Makefile.in', but
22535    # some people rename them; so instead we look at the file content.
22536    # Grep'ing the first line is not enough: some people post-process
22537    # each Makefile.in and add a new line on top of each file to say so.
22538    # Grep'ing the whole file is not good either: AIX grep has a line
22539    # limit of 2048, but all sed's we know have understand at least 4000.
22540    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22541      dirpart=`$as_dirname -- "$mf" ||
22542$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22543	 X"$mf" : 'X\(//\)[^/]' \| \
22544	 X"$mf" : 'X\(//\)$' \| \
22545	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22546$as_echo X"$mf" |
22547    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22548	    s//\1/
22549	    q
22550	  }
22551	  /^X\(\/\/\)[^/].*/{
22552	    s//\1/
22553	    q
22554	  }
22555	  /^X\(\/\/\)$/{
22556	    s//\1/
22557	    q
22558	  }
22559	  /^X\(\/\).*/{
22560	    s//\1/
22561	    q
22562	  }
22563	  s/.*/./; q'`
22564    else
22565      continue
22566    fi
22567    # Extract the definition of DEPDIR, am__include, and am__quote
22568    # from the Makefile without running 'make'.
22569    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22570    test -z "$DEPDIR" && continue
22571    am__include=`sed -n 's/^am__include = //p' < "$mf"`
22572    test -z "$am__include" && continue
22573    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22574    # Find all dependency output files, they are included files with
22575    # $(DEPDIR) in their names.  We invoke sed twice because it is the
22576    # simplest approach to changing $(DEPDIR) to its actual value in the
22577    # expansion.
22578    for file in `sed -n "
22579      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22580	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
22581      # Make sure the directory exists.
22582      test -f "$dirpart/$file" && continue
22583      fdir=`$as_dirname -- "$file" ||
22584$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22585	 X"$file" : 'X\(//\)[^/]' \| \
22586	 X"$file" : 'X\(//\)$' \| \
22587	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22588$as_echo X"$file" |
22589    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22590	    s//\1/
22591	    q
22592	  }
22593	  /^X\(\/\/\)[^/].*/{
22594	    s//\1/
22595	    q
22596	  }
22597	  /^X\(\/\/\)$/{
22598	    s//\1/
22599	    q
22600	  }
22601	  /^X\(\/\).*/{
22602	    s//\1/
22603	    q
22604	  }
22605	  s/.*/./; q'`
22606      as_dir=$dirpart/$fdir; as_fn_mkdir_p
22607      # echo "creating $dirpart/$file"
22608      echo '# dummy' > "$dirpart/$file"
22609    done
22610  done
22611}
22612 ;;
22613    "po-directories":C)
22614    for ac_file in $CONFIG_FILES; do
22615      # Support "outfile[:infile[:infile...]]"
22616      case "$ac_file" in
22617        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22618      esac
22619      # PO directories have a Makefile.in generated from Makefile.in.in.
22620      case "$ac_file" in */Makefile.in)
22621        # Adjust a relative srcdir.
22622        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
22623        ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
22624        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
22625        # In autoconf-2.13 it is called $ac_given_srcdir.
22626        # In autoconf-2.50 it is called $srcdir.
22627        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
22628        case "$ac_given_srcdir" in
22629          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
22630          /*) top_srcdir="$ac_given_srcdir" ;;
22631          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
22632        esac
22633        # Treat a directory as a PO directory if and only if it has a
22634        # POTFILES.in file. This allows packages to have multiple PO
22635        # directories under different names or in different locations.
22636        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
22637          rm -f "$ac_dir/POTFILES"
22638          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
22639          gt_tab=`printf '\t'`
22640          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
22641          POMAKEFILEDEPS="POTFILES.in"
22642          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
22643          # on $ac_dir but don't depend on user-specified configuration
22644          # parameters.
22645          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
22646            # The LINGUAS file contains the set of available languages.
22647            if test -n "$OBSOLETE_ALL_LINGUAS"; then
22648              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
22649            fi
22650            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
22651            # Hide the ALL_LINGUAS assignment from automake < 1.5.
22652            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
22653            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
22654          else
22655            # The set of available languages was given in configure.in.
22656            # Hide the ALL_LINGUAS assignment from automake < 1.5.
22657            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
22658          fi
22659          # Compute POFILES
22660          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
22661          # Compute UPDATEPOFILES
22662          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
22663          # Compute DUMMYPOFILES
22664          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
22665          # Compute GMOFILES
22666          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
22667          case "$ac_given_srcdir" in
22668            .) srcdirpre= ;;
22669            *) srcdirpre='$(srcdir)/' ;;
22670          esac
22671          POFILES=
22672          UPDATEPOFILES=
22673          DUMMYPOFILES=
22674          GMOFILES=
22675          for lang in $ALL_LINGUAS; do
22676            POFILES="$POFILES $srcdirpre$lang.po"
22677            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
22678            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
22679            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
22680          done
22681          # CATALOGS depends on both $ac_dir and the user's LINGUAS
22682          # environment variable.
22683          INST_LINGUAS=
22684          if test -n "$ALL_LINGUAS"; then
22685            for presentlang in $ALL_LINGUAS; do
22686              useit=no
22687              if test "%UNSET%" != "$LINGUAS"; then
22688                desiredlanguages="$LINGUAS"
22689              else
22690                desiredlanguages="$ALL_LINGUAS"
22691              fi
22692              for desiredlang in $desiredlanguages; do
22693                # Use the presentlang catalog if desiredlang is
22694                #   a. equal to presentlang, or
22695                #   b. a variant of presentlang (because in this case,
22696                #      presentlang can be used as a fallback for messages
22697                #      which are not translated in the desiredlang catalog).
22698                case "$desiredlang" in
22699                  "$presentlang"*) useit=yes;;
22700                esac
22701              done
22702              if test $useit = yes; then
22703                INST_LINGUAS="$INST_LINGUAS $presentlang"
22704              fi
22705            done
22706          fi
22707          CATALOGS=
22708          if test -n "$INST_LINGUAS"; then
22709            for lang in $INST_LINGUAS; do
22710              CATALOGS="$CATALOGS $lang.gmo"
22711            done
22712          fi
22713          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
22714          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"
22715          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
22716            if test -f "$f"; then
22717              case "$f" in
22718                *.orig | *.bak | *~) ;;
22719                *) cat "$f" >> "$ac_dir/Makefile" ;;
22720              esac
22721            fi
22722          done
22723        fi
22724        ;;
22725      esac
22726    done ;;
22727
22728  esac
22729done # for ac_tag
22730
22731
22732as_fn_exit 0
22733_ACEOF
22734ac_clean_files=$ac_clean_files_save
22735
22736test $ac_write_fail = 0 ||
22737  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22738
22739
22740# configure is writing to config.log, and then calls config.status.
22741# config.status does its own redirection, appending to config.log.
22742# Unfortunately, on DOS this fails, as config.log is still kept open
22743# by configure, so config.status won't be able to write to it; its
22744# output is simply discarded.  So we exec the FD to /dev/null,
22745# effectively closing config.log, so it can be properly (re)opened and
22746# appended to by config.status.  When coming back to configure, we
22747# need to make the FD available again.
22748if test "$no_create" != yes; then
22749  ac_cs_success=:
22750  ac_config_status_args=
22751  test "$silent" = yes &&
22752    ac_config_status_args="$ac_config_status_args --quiet"
22753  exec 5>/dev/null
22754  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22755  exec 5>>config.log
22756  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22757  # would make configure fail if this is the last instruction.
22758  $ac_cs_success || as_fn_exit 1
22759fi
22760if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22761  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22762$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22763fi
22764
22765