1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for Poly/ML 5.8.1.
4#
5# Report bugs to <polyml AT polyml DOT org>.
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
201test \$(( 1 + 1 )) = 2 || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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 polyml AT polyml
278$0: DOT org about your system, including any error possibly
279$0: output before this message. Then install a modern
280$0: shell, or manually run the script under such a shell if
281$0: 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='Poly/ML'
592PACKAGE_TARNAME='polyml'
593PACKAGE_VERSION='5.8.1'
594PACKAGE_STRING='Poly/ML 5.8.1'
595PACKAGE_BUGREPORT='polyml AT polyml DOT org'
596PACKAGE_URL=''
597
598# Factoring default headers for most tests.
599ac_includes_default="\
600#include <stdio.h>
601#ifdef HAVE_SYS_TYPES_H
602# include <sys/types.h>
603#endif
604#ifdef HAVE_SYS_STAT_H
605# include <sys/stat.h>
606#endif
607#ifdef STDC_HEADERS
608# include <stdlib.h>
609# include <stddef.h>
610#else
611# ifdef HAVE_STDLIB_H
612#  include <stdlib.h>
613# endif
614#endif
615#ifdef HAVE_STRING_H
616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617#  include <memory.h>
618# endif
619# include <string.h>
620#endif
621#ifdef HAVE_STRINGS_H
622# include <strings.h>
623#endif
624#ifdef HAVE_INTTYPES_H
625# include <inttypes.h>
626#endif
627#ifdef HAVE_STDINT_H
628# include <stdint.h>
629#endif
630#ifdef HAVE_UNISTD_H
631# include <unistd.h>
632#endif"
633
634ac_unique_file="polyexports.h"
635ac_subst_vars='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
638INTINFISINT_FALSE
639INTINFISINT_TRUE
640moduledir
641polyc_CFLAGS
642GIT_VERSION
643gitinstalled
644dependentlibs
645MACOSLDOPTS_FALSE
646MACOSLDOPTS_TRUE
647WINDOWSGUI_FALSE
648WINDOWSGUI_TRUE
649NO_UNDEFINED_FALSE
650NO_UNDEFINED_TRUE
651NATIVE_WINDOWS_FALSE
652NATIVE_WINDOWS_TRUE
653WINDOWSCALLCONV_FALSE
654WINDOWSCALLCONV_TRUE
655ARCHX8632IN64_FALSE
656ARCHX8632IN64_TRUE
657ARCHINTERPRET64_FALSE
658ARCHINTERPRET64_TRUE
659ARCHINTERPRET_FALSE
660ARCHINTERPRET_TRUE
661ARCHX86_64_FALSE
662ARCHX86_64_TRUE
663ARCHI386_FALSE
664ARCHI386_TRUE
665POW_LIB
666LIBOBJS
667EXPMACHO_FALSE
668EXPMACHO_TRUE
669EXPELF_FALSE
670EXPELF_TRUE
671EXPPECOFF_FALSE
672EXPPECOFF_TRUE
673XMKMF
674WINDRES
675PKG_CONFIG_LIBDIR
676PKG_CONFIG_PATH
677PKG_CONFIG
678ALLOCA
679sys_symbol_underscore
680am__fastdepCCAS_FALSE
681am__fastdepCCAS_TRUE
682CCASDEPMODE
683CCASFLAGS
684CCAS
685CXXCPP
686am__fastdepCXX_FALSE
687am__fastdepCXX_TRUE
688CXXDEPMODE
689ac_ct_CXX
690CXXFLAGS
691CXX
692MAINT
693MAINTAINER_MODE_FALSE
694MAINTAINER_MODE_TRUE
695LT_SYS_LIBRARY_PATH
696OTOOL64
697OTOOL
698LIPO
699NMEDIT
700DSYMUTIL
701MANIFEST_TOOL
702RANLIB
703ac_ct_AR
704AR
705LN_S
706NM
707ac_ct_DUMPBIN
708DUMPBIN
709LD
710FGREP
711SED
712LIBTOOL
713OBJDUMP
714DLLTOOL
715AS
716OSFLAG
717EGREP
718GREP
719CPP
720am__fastdepCC_FALSE
721am__fastdepCC_TRUE
722CCDEPMODE
723am__nodep
724AMDEPBACKSLASH
725AMDEP_FALSE
726AMDEP_TRUE
727am__include
728DEPDIR
729OBJEXT
730EXEEXT
731ac_ct_CC
732CPPFLAGS
733LDFLAGS
734CFLAGS
735CC
736host_os
737host_vendor
738host_cpu
739host
740build_os
741build_vendor
742build_cpu
743build
744AM_BACKSLASH
745AM_DEFAULT_VERBOSITY
746AM_DEFAULT_V
747AM_V
748am__untar
749am__tar
750AMTAR
751am__leading_dot
752SET_MAKE
753AWK
754mkdir_p
755MKDIR_P
756INSTALL_STRIP_PROGRAM
757STRIP
758install_sh
759MAKEINFO
760AUTOHEADER
761AUTOMAKE
762AUTOCONF
763ACLOCAL
764VERSION
765PACKAGE
766CYGPATH_W
767am__isrc
768INSTALL_DATA
769INSTALL_SCRIPT
770INSTALL_PROGRAM
771target_alias
772host_alias
773build_alias
774LIBS
775ECHO_T
776ECHO_N
777ECHO_C
778DEFS
779mandir
780localedir
781libdir
782psdir
783pdfdir
784dvidir
785htmldir
786infodir
787docdir
788oldincludedir
789includedir
790runstatedir
791localstatedir
792sharedstatedir
793sysconfdir
794datadir
795datarootdir
796libexecdir
797sbindir
798bindir
799program_transform_name
800prefix
801exec_prefix
802PACKAGE_URL
803PACKAGE_BUGREPORT
804PACKAGE_STRING
805PACKAGE_VERSION
806PACKAGE_TARNAME
807PACKAGE_NAME
808PATH_SEPARATOR
809SHELL
810am__quote'
811ac_subst_files=''
812ac_user_opts='
813enable_option_checking
814enable_silent_rules
815enable_debug
816enable_dependency_tracking
817enable_shared
818enable_static
819with_pic
820enable_fast_install
821with_aix_soname
822with_gnu_ld
823with_sysroot
824enable_libtool_lock
825enable_maintainer_mode
826enable_largefile
827with_gmp
828with_system_libffi
829enable_windows_gui
830with_x
831enable_native_codegeneration
832enable_compact32bit
833with_moduledir
834enable_intinf_as_int
835'
836      ac_precious_vars='build_alias
837host_alias
838target_alias
839CC
840CFLAGS
841LDFLAGS
842LIBS
843CPPFLAGS
844CPP
845LT_SYS_LIBRARY_PATH
846CXX
847CXXFLAGS
848CCC
849CXXCPP
850CCAS
851CCASFLAGS
852PKG_CONFIG
853PKG_CONFIG_PATH
854PKG_CONFIG_LIBDIR
855XMKMF'
856
857
858# Initialize some variables set by options.
859ac_init_help=
860ac_init_version=false
861ac_unrecognized_opts=
862ac_unrecognized_sep=
863# The variables have the same names as the options, with
864# dashes changed to underlines.
865cache_file=/dev/null
866exec_prefix=NONE
867no_create=
868no_recursion=
869prefix=NONE
870program_prefix=NONE
871program_suffix=NONE
872program_transform_name=s,x,x,
873silent=
874site=
875srcdir=
876verbose=
877x_includes=NONE
878x_libraries=NONE
879
880# Installation directory options.
881# These are left unexpanded so users can "make install exec_prefix=/foo"
882# and all the variables that are supposed to be based on exec_prefix
883# by default will actually change.
884# Use braces instead of parens because sh, perl, etc. also accept them.
885# (The list follows the same order as the GNU Coding Standards.)
886bindir='${exec_prefix}/bin'
887sbindir='${exec_prefix}/sbin'
888libexecdir='${exec_prefix}/libexec'
889datarootdir='${prefix}/share'
890datadir='${datarootdir}'
891sysconfdir='${prefix}/etc'
892sharedstatedir='${prefix}/com'
893localstatedir='${prefix}/var'
894runstatedir='${localstatedir}/run'
895includedir='${prefix}/include'
896oldincludedir='/usr/include'
897docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
898infodir='${datarootdir}/info'
899htmldir='${docdir}'
900dvidir='${docdir}'
901pdfdir='${docdir}'
902psdir='${docdir}'
903libdir='${exec_prefix}/lib'
904localedir='${datarootdir}/locale'
905mandir='${datarootdir}/man'
906
907ac_prev=
908ac_dashdash=
909for ac_option
910do
911  # If the previous option needs an argument, assign it.
912  if test -n "$ac_prev"; then
913    eval $ac_prev=\$ac_option
914    ac_prev=
915    continue
916  fi
917
918  case $ac_option in
919  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
920  *=)   ac_optarg= ;;
921  *)    ac_optarg=yes ;;
922  esac
923
924  # Accept the important Cygnus configure options, so we can diagnose typos.
925
926  case $ac_dashdash$ac_option in
927  --)
928    ac_dashdash=yes ;;
929
930  -bindir | --bindir | --bindi | --bind | --bin | --bi)
931    ac_prev=bindir ;;
932  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
933    bindir=$ac_optarg ;;
934
935  -build | --build | --buil | --bui | --bu)
936    ac_prev=build_alias ;;
937  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
938    build_alias=$ac_optarg ;;
939
940  -cache-file | --cache-file | --cache-fil | --cache-fi \
941  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
942    ac_prev=cache_file ;;
943  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
944  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
945    cache_file=$ac_optarg ;;
946
947  --config-cache | -C)
948    cache_file=config.cache ;;
949
950  -datadir | --datadir | --datadi | --datad)
951    ac_prev=datadir ;;
952  -datadir=* | --datadir=* | --datadi=* | --datad=*)
953    datadir=$ac_optarg ;;
954
955  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
956  | --dataroo | --dataro | --datar)
957    ac_prev=datarootdir ;;
958  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
959  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
960    datarootdir=$ac_optarg ;;
961
962  -disable-* | --disable-*)
963    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
964    # Reject names that are not valid shell variable names.
965    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
966      as_fn_error $? "invalid feature name: $ac_useropt"
967    ac_useropt_orig=$ac_useropt
968    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
969    case $ac_user_opts in
970      *"
971"enable_$ac_useropt"
972"*) ;;
973      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
974	 ac_unrecognized_sep=', ';;
975    esac
976    eval enable_$ac_useropt=no ;;
977
978  -docdir | --docdir | --docdi | --doc | --do)
979    ac_prev=docdir ;;
980  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
981    docdir=$ac_optarg ;;
982
983  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
984    ac_prev=dvidir ;;
985  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
986    dvidir=$ac_optarg ;;
987
988  -enable-* | --enable-*)
989    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
990    # Reject names that are not valid shell variable names.
991    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
992      as_fn_error $? "invalid feature name: $ac_useropt"
993    ac_useropt_orig=$ac_useropt
994    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
995    case $ac_user_opts in
996      *"
997"enable_$ac_useropt"
998"*) ;;
999      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1000	 ac_unrecognized_sep=', ';;
1001    esac
1002    eval enable_$ac_useropt=\$ac_optarg ;;
1003
1004  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1005  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1006  | --exec | --exe | --ex)
1007    ac_prev=exec_prefix ;;
1008  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1009  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1010  | --exec=* | --exe=* | --ex=*)
1011    exec_prefix=$ac_optarg ;;
1012
1013  -gas | --gas | --ga | --g)
1014    # Obsolete; use --with-gas.
1015    with_gas=yes ;;
1016
1017  -help | --help | --hel | --he | -h)
1018    ac_init_help=long ;;
1019  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1020    ac_init_help=recursive ;;
1021  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1022    ac_init_help=short ;;
1023
1024  -host | --host | --hos | --ho)
1025    ac_prev=host_alias ;;
1026  -host=* | --host=* | --hos=* | --ho=*)
1027    host_alias=$ac_optarg ;;
1028
1029  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1030    ac_prev=htmldir ;;
1031  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1032  | --ht=*)
1033    htmldir=$ac_optarg ;;
1034
1035  -includedir | --includedir | --includedi | --included | --include \
1036  | --includ | --inclu | --incl | --inc)
1037    ac_prev=includedir ;;
1038  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1039  | --includ=* | --inclu=* | --incl=* | --inc=*)
1040    includedir=$ac_optarg ;;
1041
1042  -infodir | --infodir | --infodi | --infod | --info | --inf)
1043    ac_prev=infodir ;;
1044  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1045    infodir=$ac_optarg ;;
1046
1047  -libdir | --libdir | --libdi | --libd)
1048    ac_prev=libdir ;;
1049  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1050    libdir=$ac_optarg ;;
1051
1052  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1053  | --libexe | --libex | --libe)
1054    ac_prev=libexecdir ;;
1055  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1056  | --libexe=* | --libex=* | --libe=*)
1057    libexecdir=$ac_optarg ;;
1058
1059  -localedir | --localedir | --localedi | --localed | --locale)
1060    ac_prev=localedir ;;
1061  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1062    localedir=$ac_optarg ;;
1063
1064  -localstatedir | --localstatedir | --localstatedi | --localstated \
1065  | --localstate | --localstat | --localsta | --localst | --locals)
1066    ac_prev=localstatedir ;;
1067  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1068  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1069    localstatedir=$ac_optarg ;;
1070
1071  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1072    ac_prev=mandir ;;
1073  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1074    mandir=$ac_optarg ;;
1075
1076  -nfp | --nfp | --nf)
1077    # Obsolete; use --without-fp.
1078    with_fp=no ;;
1079
1080  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1081  | --no-cr | --no-c | -n)
1082    no_create=yes ;;
1083
1084  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1085  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1086    no_recursion=yes ;;
1087
1088  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1089  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1090  | --oldin | --oldi | --old | --ol | --o)
1091    ac_prev=oldincludedir ;;
1092  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1093  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1094  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1095    oldincludedir=$ac_optarg ;;
1096
1097  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1098    ac_prev=prefix ;;
1099  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1100    prefix=$ac_optarg ;;
1101
1102  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1103  | --program-pre | --program-pr | --program-p)
1104    ac_prev=program_prefix ;;
1105  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1106  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1107    program_prefix=$ac_optarg ;;
1108
1109  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1110  | --program-suf | --program-su | --program-s)
1111    ac_prev=program_suffix ;;
1112  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1113  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1114    program_suffix=$ac_optarg ;;
1115
1116  -program-transform-name | --program-transform-name \
1117  | --program-transform-nam | --program-transform-na \
1118  | --program-transform-n | --program-transform- \
1119  | --program-transform | --program-transfor \
1120  | --program-transfo | --program-transf \
1121  | --program-trans | --program-tran \
1122  | --progr-tra | --program-tr | --program-t)
1123    ac_prev=program_transform_name ;;
1124  -program-transform-name=* | --program-transform-name=* \
1125  | --program-transform-nam=* | --program-transform-na=* \
1126  | --program-transform-n=* | --program-transform-=* \
1127  | --program-transform=* | --program-transfor=* \
1128  | --program-transfo=* | --program-transf=* \
1129  | --program-trans=* | --program-tran=* \
1130  | --progr-tra=* | --program-tr=* | --program-t=*)
1131    program_transform_name=$ac_optarg ;;
1132
1133  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1134    ac_prev=pdfdir ;;
1135  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1136    pdfdir=$ac_optarg ;;
1137
1138  -psdir | --psdir | --psdi | --psd | --ps)
1139    ac_prev=psdir ;;
1140  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1141    psdir=$ac_optarg ;;
1142
1143  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1144  | -silent | --silent | --silen | --sile | --sil)
1145    silent=yes ;;
1146
1147  -runstatedir | --runstatedir | --runstatedi | --runstated \
1148  | --runstate | --runstat | --runsta | --runst | --runs \
1149  | --run | --ru | --r)
1150    ac_prev=runstatedir ;;
1151  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1152  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1153  | --run=* | --ru=* | --r=*)
1154    runstatedir=$ac_optarg ;;
1155
1156  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1157    ac_prev=sbindir ;;
1158  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1159  | --sbi=* | --sb=*)
1160    sbindir=$ac_optarg ;;
1161
1162  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1163  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1164  | --sharedst | --shareds | --shared | --share | --shar \
1165  | --sha | --sh)
1166    ac_prev=sharedstatedir ;;
1167  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1168  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1169  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1170  | --sha=* | --sh=*)
1171    sharedstatedir=$ac_optarg ;;
1172
1173  -site | --site | --sit)
1174    ac_prev=site ;;
1175  -site=* | --site=* | --sit=*)
1176    site=$ac_optarg ;;
1177
1178  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1179    ac_prev=srcdir ;;
1180  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1181    srcdir=$ac_optarg ;;
1182
1183  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1184  | --syscon | --sysco | --sysc | --sys | --sy)
1185    ac_prev=sysconfdir ;;
1186  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1187  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1188    sysconfdir=$ac_optarg ;;
1189
1190  -target | --target | --targe | --targ | --tar | --ta | --t)
1191    ac_prev=target_alias ;;
1192  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1193    target_alias=$ac_optarg ;;
1194
1195  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1196    verbose=yes ;;
1197
1198  -version | --version | --versio | --versi | --vers | -V)
1199    ac_init_version=: ;;
1200
1201  -with-* | --with-*)
1202    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1203    # Reject names that are not valid shell variable names.
1204    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1205      as_fn_error $? "invalid package name: $ac_useropt"
1206    ac_useropt_orig=$ac_useropt
1207    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1208    case $ac_user_opts in
1209      *"
1210"with_$ac_useropt"
1211"*) ;;
1212      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1213	 ac_unrecognized_sep=', ';;
1214    esac
1215    eval with_$ac_useropt=\$ac_optarg ;;
1216
1217  -without-* | --without-*)
1218    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1219    # Reject names that are not valid shell variable names.
1220    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1221      as_fn_error $? "invalid package name: $ac_useropt"
1222    ac_useropt_orig=$ac_useropt
1223    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1224    case $ac_user_opts in
1225      *"
1226"with_$ac_useropt"
1227"*) ;;
1228      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1229	 ac_unrecognized_sep=', ';;
1230    esac
1231    eval with_$ac_useropt=no ;;
1232
1233  --x)
1234    # Obsolete; use --with-x.
1235    with_x=yes ;;
1236
1237  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1238  | --x-incl | --x-inc | --x-in | --x-i)
1239    ac_prev=x_includes ;;
1240  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1241  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1242    x_includes=$ac_optarg ;;
1243
1244  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1245  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1246    ac_prev=x_libraries ;;
1247  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1248  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1249    x_libraries=$ac_optarg ;;
1250
1251  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1252Try \`$0 --help' for more information"
1253    ;;
1254
1255  *=*)
1256    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1257    # Reject names that are not valid shell variable names.
1258    case $ac_envvar in #(
1259      '' | [0-9]* | *[!_$as_cr_alnum]* )
1260      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1261    esac
1262    eval $ac_envvar=\$ac_optarg
1263    export $ac_envvar ;;
1264
1265  *)
1266    # FIXME: should be removed in autoconf 3.0.
1267    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1268    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1269      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1270    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1271    ;;
1272
1273  esac
1274done
1275
1276if test -n "$ac_prev"; then
1277  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1278  as_fn_error $? "missing argument to $ac_option"
1279fi
1280
1281if test -n "$ac_unrecognized_opts"; then
1282  case $enable_option_checking in
1283    no) ;;
1284    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1285    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1286  esac
1287fi
1288
1289# Check all directory arguments for consistency.
1290for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1291		datadir sysconfdir sharedstatedir localstatedir includedir \
1292		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1293		libdir localedir mandir runstatedir
1294do
1295  eval ac_val=\$$ac_var
1296  # Remove trailing slashes.
1297  case $ac_val in
1298    */ )
1299      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1300      eval $ac_var=\$ac_val;;
1301  esac
1302  # Be sure to have absolute directory names.
1303  case $ac_val in
1304    [\\/$]* | ?:[\\/]* )  continue;;
1305    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1306  esac
1307  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1308done
1309
1310# There might be people who depend on the old broken behavior: `$host'
1311# used to hold the argument of --host etc.
1312# FIXME: To remove some day.
1313build=$build_alias
1314host=$host_alias
1315target=$target_alias
1316
1317# FIXME: To remove some day.
1318if test "x$host_alias" != x; then
1319  if test "x$build_alias" = x; then
1320    cross_compiling=maybe
1321  elif test "x$build_alias" != "x$host_alias"; then
1322    cross_compiling=yes
1323  fi
1324fi
1325
1326ac_tool_prefix=
1327test -n "$host_alias" && ac_tool_prefix=$host_alias-
1328
1329test "$silent" = yes && exec 6>/dev/null
1330
1331
1332ac_pwd=`pwd` && test -n "$ac_pwd" &&
1333ac_ls_di=`ls -di .` &&
1334ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1335  as_fn_error $? "working directory cannot be determined"
1336test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1337  as_fn_error $? "pwd does not report name of working directory"
1338
1339
1340# Find the source files, if location was not specified.
1341if test -z "$srcdir"; then
1342  ac_srcdir_defaulted=yes
1343  # Try the directory containing this script, then the parent directory.
1344  ac_confdir=`$as_dirname -- "$as_myself" ||
1345$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1346	 X"$as_myself" : 'X\(//\)[^/]' \| \
1347	 X"$as_myself" : 'X\(//\)$' \| \
1348	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1349$as_echo X"$as_myself" |
1350    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1351	    s//\1/
1352	    q
1353	  }
1354	  /^X\(\/\/\)[^/].*/{
1355	    s//\1/
1356	    q
1357	  }
1358	  /^X\(\/\/\)$/{
1359	    s//\1/
1360	    q
1361	  }
1362	  /^X\(\/\).*/{
1363	    s//\1/
1364	    q
1365	  }
1366	  s/.*/./; q'`
1367  srcdir=$ac_confdir
1368  if test ! -r "$srcdir/$ac_unique_file"; then
1369    srcdir=..
1370  fi
1371else
1372  ac_srcdir_defaulted=no
1373fi
1374if test ! -r "$srcdir/$ac_unique_file"; then
1375  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1376  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1377fi
1378ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1379ac_abs_confdir=`(
1380	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1381	pwd)`
1382# When building in place, set srcdir=.
1383if test "$ac_abs_confdir" = "$ac_pwd"; then
1384  srcdir=.
1385fi
1386# Remove unnecessary trailing slashes from srcdir.
1387# Double slashes in file names in object file debugging info
1388# mess up M-x gdb in Emacs.
1389case $srcdir in
1390*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1391esac
1392for ac_var in $ac_precious_vars; do
1393  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1394  eval ac_env_${ac_var}_value=\$${ac_var}
1395  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1396  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1397done
1398
1399#
1400# Report the --help message.
1401#
1402if test "$ac_init_help" = "long"; then
1403  # Omit some internal or obsolete options to make the list less imposing.
1404  # This message is too long to be a string in the A/UX 3.1 sh.
1405  cat <<_ACEOF
1406\`configure' configures Poly/ML 5.8.1 to adapt to many kinds of systems.
1407
1408Usage: $0 [OPTION]... [VAR=VALUE]...
1409
1410To assign environment variables (e.g., CC, CFLAGS...), specify them as
1411VAR=VALUE.  See below for descriptions of some of the useful variables.
1412
1413Defaults for the options are specified in brackets.
1414
1415Configuration:
1416  -h, --help              display this help and exit
1417      --help=short        display options specific to this package
1418      --help=recursive    display the short help of all the included packages
1419  -V, --version           display version information and exit
1420  -q, --quiet, --silent   do not print \`checking ...' messages
1421      --cache-file=FILE   cache test results in FILE [disabled]
1422  -C, --config-cache      alias for \`--cache-file=config.cache'
1423  -n, --no-create         do not create output files
1424      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1425
1426Installation directories:
1427  --prefix=PREFIX         install architecture-independent files in PREFIX
1428                          [$ac_default_prefix]
1429  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1430                          [PREFIX]
1431
1432By default, \`make install' will install all the files in
1433\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1434an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1435for instance \`--prefix=\$HOME'.
1436
1437For better control, use the options below.
1438
1439Fine tuning of the installation directories:
1440  --bindir=DIR            user executables [EPREFIX/bin]
1441  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1442  --libexecdir=DIR        program executables [EPREFIX/libexec]
1443  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1444  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1445  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1446  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1447  --libdir=DIR            object code libraries [EPREFIX/lib]
1448  --includedir=DIR        C header files [PREFIX/include]
1449  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1450  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1451  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1452  --infodir=DIR           info documentation [DATAROOTDIR/info]
1453  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1454  --mandir=DIR            man documentation [DATAROOTDIR/man]
1455  --docdir=DIR            documentation root [DATAROOTDIR/doc/polyml]
1456  --htmldir=DIR           html documentation [DOCDIR]
1457  --dvidir=DIR            dvi documentation [DOCDIR]
1458  --pdfdir=DIR            pdf documentation [DOCDIR]
1459  --psdir=DIR             ps documentation [DOCDIR]
1460_ACEOF
1461
1462  cat <<\_ACEOF
1463
1464Program names:
1465  --program-prefix=PREFIX            prepend PREFIX to installed program names
1466  --program-suffix=SUFFIX            append SUFFIX to installed program names
1467  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1468
1469X features:
1470  --x-includes=DIR    X include files are in DIR
1471  --x-libraries=DIR   X library files are in DIR
1472
1473System types:
1474  --build=BUILD     configure for building on BUILD [guessed]
1475  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1476_ACEOF
1477fi
1478
1479if test -n "$ac_init_help"; then
1480  case $ac_init_help in
1481     short | recursive ) echo "Configuration of Poly/ML 5.8.1:";;
1482   esac
1483  cat <<\_ACEOF
1484
1485Optional Features:
1486  --disable-option-checking  ignore unrecognized --enable/--with options
1487  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1488  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1489  --enable-silent-rules   less verbose build output (undo: "make V=1")
1490  --disable-silent-rules  verbose build output (undo: "make V=0")
1491  --enable-debug          Compiles without optimisation for debugging
1492  --enable-dependency-tracking
1493                          do not reject slow dependency extractors
1494  --disable-dependency-tracking
1495                          speeds up one-time build
1496  --enable-shared[=PKGS]  build shared libraries [default=yes]
1497  --enable-static[=PKGS]  build static libraries [default=yes]
1498  --enable-fast-install[=PKGS]
1499                          optimize for fast installation [default=yes]
1500  --disable-libtool-lock  avoid locking (might break parallel builds)
1501  --enable-maintainer-mode
1502                          enable make rules and dependencies not useful (and
1503                          sometimes confusing) to the casual installer
1504  --disable-largefile     omit support for large files
1505  --enable-windows-gui    create a GUI in Windows. If this is disabled use a
1506                          Windows console. [default=yes]
1507  --disable-native-codegeneration
1508                          disable the native code generator and use the slow
1509                          byte code interpreter instead.
1510  --enable-compact32bit   use 32-bit values rather than native 64-bits.
1511  --enable-intinf-as-int  set arbitrary precision as the default int type
1512
1513Optional Packages:
1514  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1515  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1516  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1517                          both]
1518  --with-aix-soname=aix|svr4|both
1519                          shared library versioning (aka "SONAME") variant to
1520                          provide on AIX, [default=aix].
1521  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1522  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1523                          compiler's sysroot if not specified).
1524  --with-gmp              use the GMP library for arbitrary precision
1525                          arithmetic [default=check]
1526  --with-system-libffi    use the version of libffi installed on your system
1527                          rather than the version supplied with poly
1528                          [default=no]
1529  --with-x                use the X Window System
1530  --with-moduledir=DIR    directory for Poly/ML modules
1531
1532Some influential environment variables:
1533  CC          C compiler command
1534  CFLAGS      C compiler flags
1535  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1536              nonstandard directory <lib dir>
1537  LIBS        libraries to pass to the linker, e.g. -l<library>
1538  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1539              you have headers in a nonstandard directory <include dir>
1540  CPP         C preprocessor
1541  LT_SYS_LIBRARY_PATH
1542              User-defined run-time library search path.
1543  CXX         C++ compiler command
1544  CXXFLAGS    C++ compiler flags
1545  CXXCPP      C++ preprocessor
1546  CCAS        assembler compiler command (defaults to CC)
1547  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1548  PKG_CONFIG  path to pkg-config utility
1549  PKG_CONFIG_PATH
1550              directories to add to pkg-config's search path
1551  PKG_CONFIG_LIBDIR
1552              path overriding pkg-config's built-in search path
1553  XMKMF       Path to xmkmf, Makefile generator for X Window System
1554
1555Use these variables to override the choices made by `configure' or to help
1556it to find libraries and programs with nonstandard names/locations.
1557
1558Report bugs to <polyml AT polyml DOT org>.
1559_ACEOF
1560ac_status=$?
1561fi
1562
1563if test "$ac_init_help" = "recursive"; then
1564  # If there are subdirs, report their specific --help.
1565  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1566    test -d "$ac_dir" ||
1567      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1568      continue
1569    ac_builddir=.
1570
1571case "$ac_dir" in
1572.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1573*)
1574  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1575  # A ".." for each directory in $ac_dir_suffix.
1576  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1577  case $ac_top_builddir_sub in
1578  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1579  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1580  esac ;;
1581esac
1582ac_abs_top_builddir=$ac_pwd
1583ac_abs_builddir=$ac_pwd$ac_dir_suffix
1584# for backward compatibility:
1585ac_top_builddir=$ac_top_build_prefix
1586
1587case $srcdir in
1588  .)  # We are building in place.
1589    ac_srcdir=.
1590    ac_top_srcdir=$ac_top_builddir_sub
1591    ac_abs_top_srcdir=$ac_pwd ;;
1592  [\\/]* | ?:[\\/]* )  # Absolute name.
1593    ac_srcdir=$srcdir$ac_dir_suffix;
1594    ac_top_srcdir=$srcdir
1595    ac_abs_top_srcdir=$srcdir ;;
1596  *) # Relative name.
1597    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1598    ac_top_srcdir=$ac_top_build_prefix$srcdir
1599    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1600esac
1601ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1602
1603    cd "$ac_dir" || { ac_status=$?; continue; }
1604    # Check for guested configure.
1605    if test -f "$ac_srcdir/configure.gnu"; then
1606      echo &&
1607      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1608    elif test -f "$ac_srcdir/configure"; then
1609      echo &&
1610      $SHELL "$ac_srcdir/configure" --help=recursive
1611    else
1612      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1613    fi || ac_status=$?
1614    cd "$ac_pwd" || { ac_status=$?; break; }
1615  done
1616fi
1617
1618test -n "$ac_init_help" && exit $ac_status
1619if $ac_init_version; then
1620  cat <<\_ACEOF
1621Poly/ML configure 5.8.1
1622generated by GNU Autoconf 2.69
1623
1624Copyright (C) 2012 Free Software Foundation, Inc.
1625This configure script is free software; the Free Software Foundation
1626gives unlimited permission to copy, distribute and modify it.
1627_ACEOF
1628  exit
1629fi
1630
1631## ------------------------ ##
1632## Autoconf initialization. ##
1633## ------------------------ ##
1634
1635# ac_fn_c_try_compile LINENO
1636# --------------------------
1637# Try to compile conftest.$ac_ext, and return whether this succeeded.
1638ac_fn_c_try_compile ()
1639{
1640  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641  rm -f conftest.$ac_objext
1642  if { { ac_try="$ac_compile"
1643case "(($ac_try" in
1644  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1645  *) ac_try_echo=$ac_try;;
1646esac
1647eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1648$as_echo "$ac_try_echo"; } >&5
1649  (eval "$ac_compile") 2>conftest.err
1650  ac_status=$?
1651  if test -s conftest.err; then
1652    grep -v '^ *+' conftest.err >conftest.er1
1653    cat conftest.er1 >&5
1654    mv -f conftest.er1 conftest.err
1655  fi
1656  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1657  test $ac_status = 0; } && {
1658	 test -z "$ac_c_werror_flag" ||
1659	 test ! -s conftest.err
1660       } && test -s conftest.$ac_objext; then :
1661  ac_retval=0
1662else
1663  $as_echo "$as_me: failed program was:" >&5
1664sed 's/^/| /' conftest.$ac_ext >&5
1665
1666	ac_retval=1
1667fi
1668  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1669  as_fn_set_status $ac_retval
1670
1671} # ac_fn_c_try_compile
1672
1673# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1674# ---------------------------------------------
1675# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1676# accordingly.
1677ac_fn_c_check_decl ()
1678{
1679  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680  as_decl_name=`echo $2|sed 's/ *(.*//'`
1681  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1682  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1683$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1684if eval \${$3+:} false; then :
1685  $as_echo_n "(cached) " >&6
1686else
1687  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1688/* end confdefs.h.  */
1689$4
1690int
1691main ()
1692{
1693#ifndef $as_decl_name
1694#ifdef __cplusplus
1695  (void) $as_decl_use;
1696#else
1697  (void) $as_decl_name;
1698#endif
1699#endif
1700
1701  ;
1702  return 0;
1703}
1704_ACEOF
1705if ac_fn_c_try_compile "$LINENO"; then :
1706  eval "$3=yes"
1707else
1708  eval "$3=no"
1709fi
1710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1711fi
1712eval ac_res=\$$3
1713	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1714$as_echo "$ac_res" >&6; }
1715  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1716
1717} # ac_fn_c_check_decl
1718
1719# ac_fn_c_try_cpp LINENO
1720# ----------------------
1721# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1722ac_fn_c_try_cpp ()
1723{
1724  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725  if { { ac_try="$ac_cpp conftest.$ac_ext"
1726case "(($ac_try" in
1727  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728  *) ac_try_echo=$ac_try;;
1729esac
1730eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731$as_echo "$ac_try_echo"; } >&5
1732  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1733  ac_status=$?
1734  if test -s conftest.err; then
1735    grep -v '^ *+' conftest.err >conftest.er1
1736    cat conftest.er1 >&5
1737    mv -f conftest.er1 conftest.err
1738  fi
1739  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740  test $ac_status = 0; } > conftest.i && {
1741	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1742	 test ! -s conftest.err
1743       }; then :
1744  ac_retval=0
1745else
1746  $as_echo "$as_me: failed program was:" >&5
1747sed 's/^/| /' conftest.$ac_ext >&5
1748
1749    ac_retval=1
1750fi
1751  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1752  as_fn_set_status $ac_retval
1753
1754} # ac_fn_c_try_cpp
1755
1756# ac_fn_c_try_run LINENO
1757# ----------------------
1758# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1759# that executables *can* be run.
1760ac_fn_c_try_run ()
1761{
1762  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763  if { { ac_try="$ac_link"
1764case "(($ac_try" in
1765  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1766  *) ac_try_echo=$ac_try;;
1767esac
1768eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1769$as_echo "$ac_try_echo"; } >&5
1770  (eval "$ac_link") 2>&5
1771  ac_status=$?
1772  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1773  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1774  { { case "(($ac_try" in
1775  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1776  *) ac_try_echo=$ac_try;;
1777esac
1778eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1779$as_echo "$ac_try_echo"; } >&5
1780  (eval "$ac_try") 2>&5
1781  ac_status=$?
1782  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1783  test $ac_status = 0; }; }; then :
1784  ac_retval=0
1785else
1786  $as_echo "$as_me: program exited with status $ac_status" >&5
1787       $as_echo "$as_me: failed program was:" >&5
1788sed 's/^/| /' conftest.$ac_ext >&5
1789
1790       ac_retval=$ac_status
1791fi
1792  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1793  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1794  as_fn_set_status $ac_retval
1795
1796} # ac_fn_c_try_run
1797
1798# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1799# -------------------------------------------------------
1800# Tests whether HEADER exists and can be compiled using the include files in
1801# INCLUDES, setting the cache variable VAR accordingly.
1802ac_fn_c_check_header_compile ()
1803{
1804  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1806$as_echo_n "checking for $2... " >&6; }
1807if eval \${$3+:} false; then :
1808  $as_echo_n "(cached) " >&6
1809else
1810  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1811/* end confdefs.h.  */
1812$4
1813#include <$2>
1814_ACEOF
1815if ac_fn_c_try_compile "$LINENO"; then :
1816  eval "$3=yes"
1817else
1818  eval "$3=no"
1819fi
1820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1821fi
1822eval ac_res=\$$3
1823	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1824$as_echo "$ac_res" >&6; }
1825  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1826
1827} # ac_fn_c_check_header_compile
1828
1829# ac_fn_c_try_link LINENO
1830# -----------------------
1831# Try to link conftest.$ac_ext, and return whether this succeeded.
1832ac_fn_c_try_link ()
1833{
1834  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835  rm -f conftest.$ac_objext conftest$ac_exeext
1836  if { { ac_try="$ac_link"
1837case "(($ac_try" in
1838  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839  *) ac_try_echo=$ac_try;;
1840esac
1841eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842$as_echo "$ac_try_echo"; } >&5
1843  (eval "$ac_link") 2>conftest.err
1844  ac_status=$?
1845  if test -s conftest.err; then
1846    grep -v '^ *+' conftest.err >conftest.er1
1847    cat conftest.er1 >&5
1848    mv -f conftest.er1 conftest.err
1849  fi
1850  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851  test $ac_status = 0; } && {
1852	 test -z "$ac_c_werror_flag" ||
1853	 test ! -s conftest.err
1854       } && test -s conftest$ac_exeext && {
1855	 test "$cross_compiling" = yes ||
1856	 test -x conftest$ac_exeext
1857       }; then :
1858  ac_retval=0
1859else
1860  $as_echo "$as_me: failed program was:" >&5
1861sed 's/^/| /' conftest.$ac_ext >&5
1862
1863	ac_retval=1
1864fi
1865  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1866  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1867  # interfere with the next link command; also delete a directory that is
1868  # left behind by Apple's compiler.  We do this before executing the actions.
1869  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1870  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1871  as_fn_set_status $ac_retval
1872
1873} # ac_fn_c_try_link
1874
1875# ac_fn_c_check_func LINENO FUNC VAR
1876# ----------------------------------
1877# Tests whether FUNC exists, setting the cache variable VAR accordingly
1878ac_fn_c_check_func ()
1879{
1880  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1882$as_echo_n "checking for $2... " >&6; }
1883if eval \${$3+:} false; then :
1884  $as_echo_n "(cached) " >&6
1885else
1886  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1887/* end confdefs.h.  */
1888/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1889   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1890#define $2 innocuous_$2
1891
1892/* System header to define __stub macros and hopefully few prototypes,
1893    which can conflict with char $2 (); below.
1894    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1895    <limits.h> exists even on freestanding compilers.  */
1896
1897#ifdef __STDC__
1898# include <limits.h>
1899#else
1900# include <assert.h>
1901#endif
1902
1903#undef $2
1904
1905/* Override any GCC internal prototype to avoid an error.
1906   Use char because int might match the return type of a GCC
1907   builtin and then its argument prototype would still apply.  */
1908#ifdef __cplusplus
1909extern "C"
1910#endif
1911char $2 ();
1912/* The GNU C library defines this for functions which it implements
1913    to always fail with ENOSYS.  Some functions are actually named
1914    something starting with __ and the normal name is an alias.  */
1915#if defined __stub_$2 || defined __stub___$2
1916choke me
1917#endif
1918
1919int
1920main ()
1921{
1922return $2 ();
1923  ;
1924  return 0;
1925}
1926_ACEOF
1927if ac_fn_c_try_link "$LINENO"; then :
1928  eval "$3=yes"
1929else
1930  eval "$3=no"
1931fi
1932rm -f core conftest.err conftest.$ac_objext \
1933    conftest$ac_exeext conftest.$ac_ext
1934fi
1935eval ac_res=\$$3
1936	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1937$as_echo "$ac_res" >&6; }
1938  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1939
1940} # ac_fn_c_check_func
1941
1942# ac_fn_cxx_try_compile LINENO
1943# ----------------------------
1944# Try to compile conftest.$ac_ext, and return whether this succeeded.
1945ac_fn_cxx_try_compile ()
1946{
1947  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1948  rm -f conftest.$ac_objext
1949  if { { ac_try="$ac_compile"
1950case "(($ac_try" in
1951  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1952  *) ac_try_echo=$ac_try;;
1953esac
1954eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1955$as_echo "$ac_try_echo"; } >&5
1956  (eval "$ac_compile") 2>conftest.err
1957  ac_status=$?
1958  if test -s conftest.err; then
1959    grep -v '^ *+' conftest.err >conftest.er1
1960    cat conftest.er1 >&5
1961    mv -f conftest.er1 conftest.err
1962  fi
1963  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1964  test $ac_status = 0; } && {
1965	 test -z "$ac_cxx_werror_flag" ||
1966	 test ! -s conftest.err
1967       } && test -s conftest.$ac_objext; then :
1968  ac_retval=0
1969else
1970  $as_echo "$as_me: failed program was:" >&5
1971sed 's/^/| /' conftest.$ac_ext >&5
1972
1973	ac_retval=1
1974fi
1975  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1976  as_fn_set_status $ac_retval
1977
1978} # ac_fn_cxx_try_compile
1979
1980# ac_fn_cxx_try_cpp LINENO
1981# ------------------------
1982# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1983ac_fn_cxx_try_cpp ()
1984{
1985  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1986  if { { ac_try="$ac_cpp conftest.$ac_ext"
1987case "(($ac_try" in
1988  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1989  *) ac_try_echo=$ac_try;;
1990esac
1991eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1992$as_echo "$ac_try_echo"; } >&5
1993  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1994  ac_status=$?
1995  if test -s conftest.err; then
1996    grep -v '^ *+' conftest.err >conftest.er1
1997    cat conftest.er1 >&5
1998    mv -f conftest.er1 conftest.err
1999  fi
2000  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2001  test $ac_status = 0; } > conftest.i && {
2002	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2003	 test ! -s conftest.err
2004       }; then :
2005  ac_retval=0
2006else
2007  $as_echo "$as_me: failed program was:" >&5
2008sed 's/^/| /' conftest.$ac_ext >&5
2009
2010    ac_retval=1
2011fi
2012  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2013  as_fn_set_status $ac_retval
2014
2015} # ac_fn_cxx_try_cpp
2016
2017# ac_fn_cxx_try_link LINENO
2018# -------------------------
2019# Try to link conftest.$ac_ext, and return whether this succeeded.
2020ac_fn_cxx_try_link ()
2021{
2022  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2023  rm -f conftest.$ac_objext conftest$ac_exeext
2024  if { { ac_try="$ac_link"
2025case "(($ac_try" in
2026  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2027  *) ac_try_echo=$ac_try;;
2028esac
2029eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2030$as_echo "$ac_try_echo"; } >&5
2031  (eval "$ac_link") 2>conftest.err
2032  ac_status=$?
2033  if test -s conftest.err; then
2034    grep -v '^ *+' conftest.err >conftest.er1
2035    cat conftest.er1 >&5
2036    mv -f conftest.er1 conftest.err
2037  fi
2038  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2039  test $ac_status = 0; } && {
2040	 test -z "$ac_cxx_werror_flag" ||
2041	 test ! -s conftest.err
2042       } && test -s conftest$ac_exeext && {
2043	 test "$cross_compiling" = yes ||
2044	 test -x conftest$ac_exeext
2045       }; then :
2046  ac_retval=0
2047else
2048  $as_echo "$as_me: failed program was:" >&5
2049sed 's/^/| /' conftest.$ac_ext >&5
2050
2051	ac_retval=1
2052fi
2053  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2054  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2055  # interfere with the next link command; also delete a directory that is
2056  # left behind by Apple's compiler.  We do this before executing the actions.
2057  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2058  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2059  as_fn_set_status $ac_retval
2060
2061} # ac_fn_cxx_try_link
2062
2063# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2064# -------------------------------------------
2065# Tests whether TYPE exists after having included INCLUDES, setting cache
2066# variable VAR accordingly.
2067ac_fn_c_check_type ()
2068{
2069  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2070  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2071$as_echo_n "checking for $2... " >&6; }
2072if eval \${$3+:} false; then :
2073  $as_echo_n "(cached) " >&6
2074else
2075  eval "$3=no"
2076  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077/* end confdefs.h.  */
2078$4
2079int
2080main ()
2081{
2082if (sizeof ($2))
2083	 return 0;
2084  ;
2085  return 0;
2086}
2087_ACEOF
2088if ac_fn_c_try_compile "$LINENO"; then :
2089  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2090/* end confdefs.h.  */
2091$4
2092int
2093main ()
2094{
2095if (sizeof (($2)))
2096	    return 0;
2097  ;
2098  return 0;
2099}
2100_ACEOF
2101if ac_fn_c_try_compile "$LINENO"; then :
2102
2103else
2104  eval "$3=yes"
2105fi
2106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2107fi
2108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2109fi
2110eval ac_res=\$$3
2111	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2112$as_echo "$ac_res" >&6; }
2113  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2114
2115} # ac_fn_c_check_type
2116
2117# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2118# -------------------------------------------------------
2119# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2120# the include files in INCLUDES and setting the cache variable VAR
2121# accordingly.
2122ac_fn_c_check_header_mongrel ()
2123{
2124  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2125  if eval \${$3+:} false; then :
2126  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2127$as_echo_n "checking for $2... " >&6; }
2128if eval \${$3+:} false; then :
2129  $as_echo_n "(cached) " >&6
2130fi
2131eval ac_res=\$$3
2132	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2133$as_echo "$ac_res" >&6; }
2134else
2135  # Is the header compilable?
2136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2137$as_echo_n "checking $2 usability... " >&6; }
2138cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2139/* end confdefs.h.  */
2140$4
2141#include <$2>
2142_ACEOF
2143if ac_fn_c_try_compile "$LINENO"; then :
2144  ac_header_compiler=yes
2145else
2146  ac_header_compiler=no
2147fi
2148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2150$as_echo "$ac_header_compiler" >&6; }
2151
2152# Is the header present?
2153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2154$as_echo_n "checking $2 presence... " >&6; }
2155cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2156/* end confdefs.h.  */
2157#include <$2>
2158_ACEOF
2159if ac_fn_c_try_cpp "$LINENO"; then :
2160  ac_header_preproc=yes
2161else
2162  ac_header_preproc=no
2163fi
2164rm -f conftest.err conftest.i conftest.$ac_ext
2165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2166$as_echo "$ac_header_preproc" >&6; }
2167
2168# So?  What about this header?
2169case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2170  yes:no: )
2171    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2172$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2173    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2174$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2175    ;;
2176  no:yes:* )
2177    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2178$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2179    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2180$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2181    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2182$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2183    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2184$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2185    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2186$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2187( $as_echo "## --------------------------------------- ##
2188## Report this to polyml AT polyml DOT org ##
2189## --------------------------------------- ##"
2190     ) | sed "s/^/$as_me: WARNING:     /" >&2
2191    ;;
2192esac
2193  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2194$as_echo_n "checking for $2... " >&6; }
2195if eval \${$3+:} false; then :
2196  $as_echo_n "(cached) " >&6
2197else
2198  eval "$3=\$ac_header_compiler"
2199fi
2200eval ac_res=\$$3
2201	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2202$as_echo "$ac_res" >&6; }
2203fi
2204  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2205
2206} # ac_fn_c_check_header_mongrel
2207
2208# ac_fn_c_find_intX_t LINENO BITS VAR
2209# -----------------------------------
2210# Finds a signed integer type with width BITS, setting cache variable VAR
2211# accordingly.
2212ac_fn_c_find_intX_t ()
2213{
2214  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2215  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2216$as_echo_n "checking for int$2_t... " >&6; }
2217if eval \${$3+:} false; then :
2218  $as_echo_n "(cached) " >&6
2219else
2220  eval "$3=no"
2221     # Order is important - never check a type that is potentially smaller
2222     # than half of the expected target width.
2223     for ac_type in int$2_t 'int' 'long int' \
2224	 'long long int' 'short int' 'signed char'; do
2225       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2226/* end confdefs.h.  */
2227$ac_includes_default
2228	     enum { N = $2 / 2 - 1 };
2229int
2230main ()
2231{
2232static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2233test_array [0] = 0;
2234return test_array [0];
2235
2236  ;
2237  return 0;
2238}
2239_ACEOF
2240if ac_fn_c_try_compile "$LINENO"; then :
2241  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2242/* end confdefs.h.  */
2243$ac_includes_default
2244	        enum { N = $2 / 2 - 1 };
2245int
2246main ()
2247{
2248static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2249		 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2250test_array [0] = 0;
2251return test_array [0];
2252
2253  ;
2254  return 0;
2255}
2256_ACEOF
2257if ac_fn_c_try_compile "$LINENO"; then :
2258
2259else
2260  case $ac_type in #(
2261  int$2_t) :
2262    eval "$3=yes" ;; #(
2263  *) :
2264    eval "$3=\$ac_type" ;;
2265esac
2266fi
2267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2268fi
2269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2270       if eval test \"x\$"$3"\" = x"no"; then :
2271
2272else
2273  break
2274fi
2275     done
2276fi
2277eval ac_res=\$$3
2278	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2279$as_echo "$ac_res" >&6; }
2280  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2281
2282} # ac_fn_c_find_intX_t
2283
2284# ac_fn_c_find_uintX_t LINENO BITS VAR
2285# ------------------------------------
2286# Finds an unsigned integer type with width BITS, setting cache variable VAR
2287# accordingly.
2288ac_fn_c_find_uintX_t ()
2289{
2290  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2291  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2292$as_echo_n "checking for uint$2_t... " >&6; }
2293if eval \${$3+:} false; then :
2294  $as_echo_n "(cached) " >&6
2295else
2296  eval "$3=no"
2297     # Order is important - never check a type that is potentially smaller
2298     # than half of the expected target width.
2299     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2300	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2301       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2302/* end confdefs.h.  */
2303$ac_includes_default
2304int
2305main ()
2306{
2307static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2308test_array [0] = 0;
2309return test_array [0];
2310
2311  ;
2312  return 0;
2313}
2314_ACEOF
2315if ac_fn_c_try_compile "$LINENO"; then :
2316  case $ac_type in #(
2317  uint$2_t) :
2318    eval "$3=yes" ;; #(
2319  *) :
2320    eval "$3=\$ac_type" ;;
2321esac
2322fi
2323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2324       if eval test \"x\$"$3"\" = x"no"; then :
2325
2326else
2327  break
2328fi
2329     done
2330fi
2331eval ac_res=\$$3
2332	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2333$as_echo "$ac_res" >&6; }
2334  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2335
2336} # ac_fn_c_find_uintX_t
2337
2338# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2339# ----------------------------------------------------
2340# Tries to find if the field MEMBER exists in type AGGR, after including
2341# INCLUDES, setting cache variable VAR accordingly.
2342ac_fn_c_check_member ()
2343{
2344  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2345  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2346$as_echo_n "checking for $2.$3... " >&6; }
2347if eval \${$4+:} false; then :
2348  $as_echo_n "(cached) " >&6
2349else
2350  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2351/* end confdefs.h.  */
2352$5
2353int
2354main ()
2355{
2356static $2 ac_aggr;
2357if (ac_aggr.$3)
2358return 0;
2359  ;
2360  return 0;
2361}
2362_ACEOF
2363if ac_fn_c_try_compile "$LINENO"; then :
2364  eval "$4=yes"
2365else
2366  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2367/* end confdefs.h.  */
2368$5
2369int
2370main ()
2371{
2372static $2 ac_aggr;
2373if (sizeof ac_aggr.$3)
2374return 0;
2375  ;
2376  return 0;
2377}
2378_ACEOF
2379if ac_fn_c_try_compile "$LINENO"; then :
2380  eval "$4=yes"
2381else
2382  eval "$4=no"
2383fi
2384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2385fi
2386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2387fi
2388eval ac_res=\$$4
2389	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2390$as_echo "$ac_res" >&6; }
2391  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2392
2393} # ac_fn_c_check_member
2394
2395# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2396# --------------------------------------------
2397# Tries to find the compile-time value of EXPR in a program that includes
2398# INCLUDES, setting VAR accordingly. Returns whether the value could be
2399# computed
2400ac_fn_c_compute_int ()
2401{
2402  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2403  if test "$cross_compiling" = yes; then
2404    # Depending upon the size, compute the lo and hi bounds.
2405cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2406/* end confdefs.h.  */
2407$4
2408int
2409main ()
2410{
2411static int test_array [1 - 2 * !(($2) >= 0)];
2412test_array [0] = 0;
2413return test_array [0];
2414
2415  ;
2416  return 0;
2417}
2418_ACEOF
2419if ac_fn_c_try_compile "$LINENO"; then :
2420  ac_lo=0 ac_mid=0
2421  while :; do
2422    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2423/* end confdefs.h.  */
2424$4
2425int
2426main ()
2427{
2428static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2429test_array [0] = 0;
2430return test_array [0];
2431
2432  ;
2433  return 0;
2434}
2435_ACEOF
2436if ac_fn_c_try_compile "$LINENO"; then :
2437  ac_hi=$ac_mid; break
2438else
2439  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2440			if test $ac_lo -le $ac_mid; then
2441			  ac_lo= ac_hi=
2442			  break
2443			fi
2444			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2445fi
2446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2447  done
2448else
2449  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2450/* end confdefs.h.  */
2451$4
2452int
2453main ()
2454{
2455static int test_array [1 - 2 * !(($2) < 0)];
2456test_array [0] = 0;
2457return test_array [0];
2458
2459  ;
2460  return 0;
2461}
2462_ACEOF
2463if ac_fn_c_try_compile "$LINENO"; then :
2464  ac_hi=-1 ac_mid=-1
2465  while :; do
2466    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2467/* end confdefs.h.  */
2468$4
2469int
2470main ()
2471{
2472static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2473test_array [0] = 0;
2474return test_array [0];
2475
2476  ;
2477  return 0;
2478}
2479_ACEOF
2480if ac_fn_c_try_compile "$LINENO"; then :
2481  ac_lo=$ac_mid; break
2482else
2483  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2484			if test $ac_mid -le $ac_hi; then
2485			  ac_lo= ac_hi=
2486			  break
2487			fi
2488			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2489fi
2490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2491  done
2492else
2493  ac_lo= ac_hi=
2494fi
2495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2496fi
2497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2498# Binary search between lo and hi bounds.
2499while test "x$ac_lo" != "x$ac_hi"; do
2500  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2501  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2502/* end confdefs.h.  */
2503$4
2504int
2505main ()
2506{
2507static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2508test_array [0] = 0;
2509return test_array [0];
2510
2511  ;
2512  return 0;
2513}
2514_ACEOF
2515if ac_fn_c_try_compile "$LINENO"; then :
2516  ac_hi=$ac_mid
2517else
2518  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2519fi
2520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2521done
2522case $ac_lo in #((
2523?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2524'') ac_retval=1 ;;
2525esac
2526  else
2527    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2528/* end confdefs.h.  */
2529$4
2530static long int longval () { return $2; }
2531static unsigned long int ulongval () { return $2; }
2532#include <stdio.h>
2533#include <stdlib.h>
2534int
2535main ()
2536{
2537
2538  FILE *f = fopen ("conftest.val", "w");
2539  if (! f)
2540    return 1;
2541  if (($2) < 0)
2542    {
2543      long int i = longval ();
2544      if (i != ($2))
2545	return 1;
2546      fprintf (f, "%ld", i);
2547    }
2548  else
2549    {
2550      unsigned long int i = ulongval ();
2551      if (i != ($2))
2552	return 1;
2553      fprintf (f, "%lu", i);
2554    }
2555  /* Do not output a trailing newline, as this causes \r\n confusion
2556     on some platforms.  */
2557  return ferror (f) || fclose (f) != 0;
2558
2559  ;
2560  return 0;
2561}
2562_ACEOF
2563if ac_fn_c_try_run "$LINENO"; then :
2564  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2565else
2566  ac_retval=1
2567fi
2568rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2569  conftest.$ac_objext conftest.beam conftest.$ac_ext
2570rm -f conftest.val
2571
2572  fi
2573  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2574  as_fn_set_status $ac_retval
2575
2576} # ac_fn_c_compute_int
2577cat >config.log <<_ACEOF
2578This file contains any messages produced by compilers while
2579running configure, to aid debugging if configure makes a mistake.
2580
2581It was created by Poly/ML $as_me 5.8.1, which was
2582generated by GNU Autoconf 2.69.  Invocation command line was
2583
2584  $ $0 $@
2585
2586_ACEOF
2587exec 5>>config.log
2588{
2589cat <<_ASUNAME
2590## --------- ##
2591## Platform. ##
2592## --------- ##
2593
2594hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2595uname -m = `(uname -m) 2>/dev/null || echo unknown`
2596uname -r = `(uname -r) 2>/dev/null || echo unknown`
2597uname -s = `(uname -s) 2>/dev/null || echo unknown`
2598uname -v = `(uname -v) 2>/dev/null || echo unknown`
2599
2600/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2601/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2602
2603/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2604/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2605/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2606/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2607/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2608/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2609/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2610
2611_ASUNAME
2612
2613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2614for as_dir in $PATH
2615do
2616  IFS=$as_save_IFS
2617  test -z "$as_dir" && as_dir=.
2618    $as_echo "PATH: $as_dir"
2619  done
2620IFS=$as_save_IFS
2621
2622} >&5
2623
2624cat >&5 <<_ACEOF
2625
2626
2627## ----------- ##
2628## Core tests. ##
2629## ----------- ##
2630
2631_ACEOF
2632
2633
2634# Keep a trace of the command line.
2635# Strip out --no-create and --no-recursion so they do not pile up.
2636# Strip out --silent because we don't want to record it for future runs.
2637# Also quote any args containing shell meta-characters.
2638# Make two passes to allow for proper duplicate-argument suppression.
2639ac_configure_args=
2640ac_configure_args0=
2641ac_configure_args1=
2642ac_must_keep_next=false
2643for ac_pass in 1 2
2644do
2645  for ac_arg
2646  do
2647    case $ac_arg in
2648    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2649    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2650    | -silent | --silent | --silen | --sile | --sil)
2651      continue ;;
2652    *\'*)
2653      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2654    esac
2655    case $ac_pass in
2656    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2657    2)
2658      as_fn_append ac_configure_args1 " '$ac_arg'"
2659      if test $ac_must_keep_next = true; then
2660	ac_must_keep_next=false # Got value, back to normal.
2661      else
2662	case $ac_arg in
2663	  *=* | --config-cache | -C | -disable-* | --disable-* \
2664	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2665	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2666	  | -with-* | --with-* | -without-* | --without-* | --x)
2667	    case "$ac_configure_args0 " in
2668	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2669	    esac
2670	    ;;
2671	  -* ) ac_must_keep_next=true ;;
2672	esac
2673      fi
2674      as_fn_append ac_configure_args " '$ac_arg'"
2675      ;;
2676    esac
2677  done
2678done
2679{ ac_configure_args0=; unset ac_configure_args0;}
2680{ ac_configure_args1=; unset ac_configure_args1;}
2681
2682# When interrupted or exit'd, cleanup temporary files, and complete
2683# config.log.  We remove comments because anyway the quotes in there
2684# would cause problems or look ugly.
2685# WARNING: Use '\'' to represent an apostrophe within the trap.
2686# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2687trap 'exit_status=$?
2688  # Save into config.log some information that might help in debugging.
2689  {
2690    echo
2691
2692    $as_echo "## ---------------- ##
2693## Cache variables. ##
2694## ---------------- ##"
2695    echo
2696    # The following way of writing the cache mishandles newlines in values,
2697(
2698  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2699    eval ac_val=\$$ac_var
2700    case $ac_val in #(
2701    *${as_nl}*)
2702      case $ac_var in #(
2703      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2704$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2705      esac
2706      case $ac_var in #(
2707      _ | IFS | as_nl) ;; #(
2708      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2709      *) { eval $ac_var=; unset $ac_var;} ;;
2710      esac ;;
2711    esac
2712  done
2713  (set) 2>&1 |
2714    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2715    *${as_nl}ac_space=\ *)
2716      sed -n \
2717	"s/'\''/'\''\\\\'\'''\''/g;
2718	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2719      ;; #(
2720    *)
2721      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2722      ;;
2723    esac |
2724    sort
2725)
2726    echo
2727
2728    $as_echo "## ----------------- ##
2729## Output variables. ##
2730## ----------------- ##"
2731    echo
2732    for ac_var in $ac_subst_vars
2733    do
2734      eval ac_val=\$$ac_var
2735      case $ac_val in
2736      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2737      esac
2738      $as_echo "$ac_var='\''$ac_val'\''"
2739    done | sort
2740    echo
2741
2742    if test -n "$ac_subst_files"; then
2743      $as_echo "## ------------------- ##
2744## File substitutions. ##
2745## ------------------- ##"
2746      echo
2747      for ac_var in $ac_subst_files
2748      do
2749	eval ac_val=\$$ac_var
2750	case $ac_val in
2751	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2752	esac
2753	$as_echo "$ac_var='\''$ac_val'\''"
2754      done | sort
2755      echo
2756    fi
2757
2758    if test -s confdefs.h; then
2759      $as_echo "## ----------- ##
2760## confdefs.h. ##
2761## ----------- ##"
2762      echo
2763      cat confdefs.h
2764      echo
2765    fi
2766    test "$ac_signal" != 0 &&
2767      $as_echo "$as_me: caught signal $ac_signal"
2768    $as_echo "$as_me: exit $exit_status"
2769  } >&5
2770  rm -f core *.core core.conftest.* &&
2771    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2772    exit $exit_status
2773' 0
2774for ac_signal in 1 2 13 15; do
2775  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2776done
2777ac_signal=0
2778
2779# confdefs.h avoids OS command line length limits that DEFS can exceed.
2780rm -f -r conftest* confdefs.h
2781
2782$as_echo "/* confdefs.h */" > confdefs.h
2783
2784# Predefined preprocessor variables.
2785
2786cat >>confdefs.h <<_ACEOF
2787#define PACKAGE_NAME "$PACKAGE_NAME"
2788_ACEOF
2789
2790cat >>confdefs.h <<_ACEOF
2791#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2792_ACEOF
2793
2794cat >>confdefs.h <<_ACEOF
2795#define PACKAGE_VERSION "$PACKAGE_VERSION"
2796_ACEOF
2797
2798cat >>confdefs.h <<_ACEOF
2799#define PACKAGE_STRING "$PACKAGE_STRING"
2800_ACEOF
2801
2802cat >>confdefs.h <<_ACEOF
2803#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2804_ACEOF
2805
2806cat >>confdefs.h <<_ACEOF
2807#define PACKAGE_URL "$PACKAGE_URL"
2808_ACEOF
2809
2810
2811# Let the site file select an alternate cache file if it wants to.
2812# Prefer an explicitly selected file to automatically selected ones.
2813ac_site_file1=NONE
2814ac_site_file2=NONE
2815if test -n "$CONFIG_SITE"; then
2816  # We do not want a PATH search for config.site.
2817  case $CONFIG_SITE in #((
2818    -*)  ac_site_file1=./$CONFIG_SITE;;
2819    */*) ac_site_file1=$CONFIG_SITE;;
2820    *)   ac_site_file1=./$CONFIG_SITE;;
2821  esac
2822elif test "x$prefix" != xNONE; then
2823  ac_site_file1=$prefix/share/config.site
2824  ac_site_file2=$prefix/etc/config.site
2825else
2826  ac_site_file1=$ac_default_prefix/share/config.site
2827  ac_site_file2=$ac_default_prefix/etc/config.site
2828fi
2829for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2830do
2831  test "x$ac_site_file" = xNONE && continue
2832  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2833    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2834$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2835    sed 's/^/| /' "$ac_site_file" >&5
2836    . "$ac_site_file" \
2837      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2838$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2839as_fn_error $? "failed to load site script $ac_site_file
2840See \`config.log' for more details" "$LINENO" 5; }
2841  fi
2842done
2843
2844if test -r "$cache_file"; then
2845  # Some versions of bash will fail to source /dev/null (special files
2846  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2847  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2848    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2849$as_echo "$as_me: loading cache $cache_file" >&6;}
2850    case $cache_file in
2851      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2852      *)                      . "./$cache_file";;
2853    esac
2854  fi
2855else
2856  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2857$as_echo "$as_me: creating cache $cache_file" >&6;}
2858  >$cache_file
2859fi
2860
2861# Check that the precious variables saved in the cache have kept the same
2862# value.
2863ac_cache_corrupted=false
2864for ac_var in $ac_precious_vars; do
2865  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2866  eval ac_new_set=\$ac_env_${ac_var}_set
2867  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2868  eval ac_new_val=\$ac_env_${ac_var}_value
2869  case $ac_old_set,$ac_new_set in
2870    set,)
2871      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2872$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2873      ac_cache_corrupted=: ;;
2874    ,set)
2875      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2876$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2877      ac_cache_corrupted=: ;;
2878    ,);;
2879    *)
2880      if test "x$ac_old_val" != "x$ac_new_val"; then
2881	# differences in whitespace do not lead to failure.
2882	ac_old_val_w=`echo x $ac_old_val`
2883	ac_new_val_w=`echo x $ac_new_val`
2884	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2885	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2886$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2887	  ac_cache_corrupted=:
2888	else
2889	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2890$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2891	  eval $ac_var=\$ac_old_val
2892	fi
2893	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2894$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2895	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2896$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2897      fi;;
2898  esac
2899  # Pass precious variables to config.status.
2900  if test "$ac_new_set" = set; then
2901    case $ac_new_val in
2902    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2903    *) ac_arg=$ac_var=$ac_new_val ;;
2904    esac
2905    case " $ac_configure_args " in
2906      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2907      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2908    esac
2909  fi
2910done
2911if $ac_cache_corrupted; then
2912  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2913$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2914  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2915$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2916  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2917fi
2918## -------------------- ##
2919## Main body of script. ##
2920## -------------------- ##
2921
2922ac_ext=c
2923ac_cpp='$CPP $CPPFLAGS'
2924ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2925ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2926ac_compiler_gnu=$ac_cv_c_compiler_gnu
2927
2928
2929am__api_version='1.16'
2930
2931ac_aux_dir=
2932for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2933  if test -f "$ac_dir/install-sh"; then
2934    ac_aux_dir=$ac_dir
2935    ac_install_sh="$ac_aux_dir/install-sh -c"
2936    break
2937  elif test -f "$ac_dir/install.sh"; then
2938    ac_aux_dir=$ac_dir
2939    ac_install_sh="$ac_aux_dir/install.sh -c"
2940    break
2941  elif test -f "$ac_dir/shtool"; then
2942    ac_aux_dir=$ac_dir
2943    ac_install_sh="$ac_aux_dir/shtool install -c"
2944    break
2945  fi
2946done
2947if test -z "$ac_aux_dir"; then
2948  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2949fi
2950
2951# These three variables are undocumented and unsupported,
2952# and are intended to be withdrawn in a future Autoconf release.
2953# They can cause serious problems if a builder's source tree is in a directory
2954# whose full name contains unusual characters.
2955ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2956ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2957ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2958
2959
2960# Find a good install program.  We prefer a C program (faster),
2961# so one script is as good as another.  But avoid the broken or
2962# incompatible versions:
2963# SysV /etc/install, /usr/sbin/install
2964# SunOS /usr/etc/install
2965# IRIX /sbin/install
2966# AIX /bin/install
2967# AmigaOS /C/install, which installs bootblocks on floppy discs
2968# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2969# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2970# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2971# OS/2's system install, which has a completely different semantic
2972# ./install, which can be erroneously created by make from ./install.sh.
2973# Reject install programs that cannot install multiple files.
2974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2975$as_echo_n "checking for a BSD-compatible install... " >&6; }
2976if test -z "$INSTALL"; then
2977if ${ac_cv_path_install+:} false; then :
2978  $as_echo_n "(cached) " >&6
2979else
2980  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2981for as_dir in $PATH
2982do
2983  IFS=$as_save_IFS
2984  test -z "$as_dir" && as_dir=.
2985    # Account for people who put trailing slashes in PATH elements.
2986case $as_dir/ in #((
2987  ./ | .// | /[cC]/* | \
2988  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2989  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2990  /usr/ucb/* ) ;;
2991  *)
2992    # OSF1 and SCO ODT 3.0 have their own names for install.
2993    # Don't use installbsd from OSF since it installs stuff as root
2994    # by default.
2995    for ac_prog in ginstall scoinst install; do
2996      for ac_exec_ext in '' $ac_executable_extensions; do
2997	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2998	  if test $ac_prog = install &&
2999	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3000	    # AIX install.  It has an incompatible calling convention.
3001	    :
3002	  elif test $ac_prog = install &&
3003	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3004	    # program-specific install script used by HP pwplus--don't use.
3005	    :
3006	  else
3007	    rm -rf conftest.one conftest.two conftest.dir
3008	    echo one > conftest.one
3009	    echo two > conftest.two
3010	    mkdir conftest.dir
3011	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3012	      test -s conftest.one && test -s conftest.two &&
3013	      test -s conftest.dir/conftest.one &&
3014	      test -s conftest.dir/conftest.two
3015	    then
3016	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3017	      break 3
3018	    fi
3019	  fi
3020	fi
3021      done
3022    done
3023    ;;
3024esac
3025
3026  done
3027IFS=$as_save_IFS
3028
3029rm -rf conftest.one conftest.two conftest.dir
3030
3031fi
3032  if test "${ac_cv_path_install+set}" = set; then
3033    INSTALL=$ac_cv_path_install
3034  else
3035    # As a last resort, use the slow shell script.  Don't cache a
3036    # value for INSTALL within a source directory, because that will
3037    # break other packages using the cache if that directory is
3038    # removed, or if the value is a relative name.
3039    INSTALL=$ac_install_sh
3040  fi
3041fi
3042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3043$as_echo "$INSTALL" >&6; }
3044
3045# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3046# It thinks the first close brace ends the variable substitution.
3047test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3048
3049test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3050
3051test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3052
3053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3054$as_echo_n "checking whether build environment is sane... " >&6; }
3055# Reject unsafe characters in $srcdir or the absolute working directory
3056# name.  Accept space and tab only in the latter.
3057am_lf='
3058'
3059case `pwd` in
3060  *[\\\"\#\$\&\'\`$am_lf]*)
3061    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3062esac
3063case $srcdir in
3064  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3065    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3066esac
3067
3068# Do 'set' in a subshell so we don't clobber the current shell's
3069# arguments.  Must try -L first in case configure is actually a
3070# symlink; some systems play weird games with the mod time of symlinks
3071# (eg FreeBSD returns the mod time of the symlink's containing
3072# directory).
3073if (
3074   am_has_slept=no
3075   for am_try in 1 2; do
3076     echo "timestamp, slept: $am_has_slept" > conftest.file
3077     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3078     if test "$*" = "X"; then
3079	# -L didn't work.
3080	set X `ls -t "$srcdir/configure" conftest.file`
3081     fi
3082     if test "$*" != "X $srcdir/configure conftest.file" \
3083	&& test "$*" != "X conftest.file $srcdir/configure"; then
3084
3085	# If neither matched, then we have a broken ls.  This can happen
3086	# if, for instance, CONFIG_SHELL is bash and it inherits a
3087	# broken ls alias from the environment.  This has actually
3088	# happened.  Such a system could not be considered "sane".
3089	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3090  alias in your environment" "$LINENO" 5
3091     fi
3092     if test "$2" = conftest.file || test $am_try -eq 2; then
3093       break
3094     fi
3095     # Just in case.
3096     sleep 1
3097     am_has_slept=yes
3098   done
3099   test "$2" = conftest.file
3100   )
3101then
3102   # Ok.
3103   :
3104else
3105   as_fn_error $? "newly created file is older than distributed files!
3106Check your system clock" "$LINENO" 5
3107fi
3108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3109$as_echo "yes" >&6; }
3110# If we didn't sleep, we still need to ensure time stamps of config.status and
3111# generated files are strictly newer.
3112am_sleep_pid=
3113if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3114  ( sleep 1 ) &
3115  am_sleep_pid=$!
3116fi
3117
3118rm -f conftest.file
3119
3120test "$program_prefix" != NONE &&
3121  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3122# Use a double $ so make ignores it.
3123test "$program_suffix" != NONE &&
3124  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3125# Double any \ or $.
3126# By default was `s,x,x', remove it if useless.
3127ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3128program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3129
3130# Expand $ac_aux_dir to an absolute path.
3131am_aux_dir=`cd "$ac_aux_dir" && pwd`
3132
3133if test x"${MISSING+set}" != xset; then
3134  case $am_aux_dir in
3135  *\ * | *\	*)
3136    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3137  *)
3138    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3139  esac
3140fi
3141# Use eval to expand $SHELL
3142if eval "$MISSING --is-lightweight"; then
3143  am_missing_run="$MISSING "
3144else
3145  am_missing_run=
3146  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3147$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3148fi
3149
3150if test x"${install_sh+set}" != xset; then
3151  case $am_aux_dir in
3152  *\ * | *\	*)
3153    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3154  *)
3155    install_sh="\${SHELL} $am_aux_dir/install-sh"
3156  esac
3157fi
3158
3159# Installed binaries are usually stripped using 'strip' when the user
3160# run "make install-strip".  However 'strip' might not be the right
3161# tool to use in cross-compilation environments, therefore Automake
3162# will honor the 'STRIP' environment variable to overrule this program.
3163if test "$cross_compiling" != no; then
3164  if test -n "$ac_tool_prefix"; then
3165  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3166set dummy ${ac_tool_prefix}strip; ac_word=$2
3167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3168$as_echo_n "checking for $ac_word... " >&6; }
3169if ${ac_cv_prog_STRIP+:} false; then :
3170  $as_echo_n "(cached) " >&6
3171else
3172  if test -n "$STRIP"; then
3173  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3174else
3175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3176for as_dir in $PATH
3177do
3178  IFS=$as_save_IFS
3179  test -z "$as_dir" && as_dir=.
3180    for ac_exec_ext in '' $ac_executable_extensions; do
3181  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3182    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3183    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3184    break 2
3185  fi
3186done
3187  done
3188IFS=$as_save_IFS
3189
3190fi
3191fi
3192STRIP=$ac_cv_prog_STRIP
3193if test -n "$STRIP"; then
3194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3195$as_echo "$STRIP" >&6; }
3196else
3197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3198$as_echo "no" >&6; }
3199fi
3200
3201
3202fi
3203if test -z "$ac_cv_prog_STRIP"; then
3204  ac_ct_STRIP=$STRIP
3205  # Extract the first word of "strip", so it can be a program name with args.
3206set dummy strip; ac_word=$2
3207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3208$as_echo_n "checking for $ac_word... " >&6; }
3209if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3210  $as_echo_n "(cached) " >&6
3211else
3212  if test -n "$ac_ct_STRIP"; then
3213  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3214else
3215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3216for as_dir in $PATH
3217do
3218  IFS=$as_save_IFS
3219  test -z "$as_dir" && as_dir=.
3220    for ac_exec_ext in '' $ac_executable_extensions; do
3221  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3222    ac_cv_prog_ac_ct_STRIP="strip"
3223    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3224    break 2
3225  fi
3226done
3227  done
3228IFS=$as_save_IFS
3229
3230fi
3231fi
3232ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3233if test -n "$ac_ct_STRIP"; then
3234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3235$as_echo "$ac_ct_STRIP" >&6; }
3236else
3237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3238$as_echo "no" >&6; }
3239fi
3240
3241  if test "x$ac_ct_STRIP" = x; then
3242    STRIP=":"
3243  else
3244    case $cross_compiling:$ac_tool_warned in
3245yes:)
3246{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3247$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3248ac_tool_warned=yes ;;
3249esac
3250    STRIP=$ac_ct_STRIP
3251  fi
3252else
3253  STRIP="$ac_cv_prog_STRIP"
3254fi
3255
3256fi
3257INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3258
3259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3260$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3261if test -z "$MKDIR_P"; then
3262  if ${ac_cv_path_mkdir+:} false; then :
3263  $as_echo_n "(cached) " >&6
3264else
3265  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3266for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3267do
3268  IFS=$as_save_IFS
3269  test -z "$as_dir" && as_dir=.
3270    for ac_prog in mkdir gmkdir; do
3271	 for ac_exec_ext in '' $ac_executable_extensions; do
3272	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3273	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3274	     'mkdir (GNU coreutils) '* | \
3275	     'mkdir (coreutils) '* | \
3276	     'mkdir (fileutils) '4.1*)
3277	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3278	       break 3;;
3279	   esac
3280	 done
3281       done
3282  done
3283IFS=$as_save_IFS
3284
3285fi
3286
3287  test -d ./--version && rmdir ./--version
3288  if test "${ac_cv_path_mkdir+set}" = set; then
3289    MKDIR_P="$ac_cv_path_mkdir -p"
3290  else
3291    # As a last resort, use the slow shell script.  Don't cache a
3292    # value for MKDIR_P within a source directory, because that will
3293    # break other packages using the cache if that directory is
3294    # removed, or if the value is a relative name.
3295    MKDIR_P="$ac_install_sh -d"
3296  fi
3297fi
3298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3299$as_echo "$MKDIR_P" >&6; }
3300
3301for ac_prog in gawk mawk nawk awk
3302do
3303  # Extract the first word of "$ac_prog", so it can be a program name with args.
3304set dummy $ac_prog; ac_word=$2
3305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3306$as_echo_n "checking for $ac_word... " >&6; }
3307if ${ac_cv_prog_AWK+:} false; then :
3308  $as_echo_n "(cached) " >&6
3309else
3310  if test -n "$AWK"; then
3311  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3312else
3313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3314for as_dir in $PATH
3315do
3316  IFS=$as_save_IFS
3317  test -z "$as_dir" && as_dir=.
3318    for ac_exec_ext in '' $ac_executable_extensions; do
3319  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3320    ac_cv_prog_AWK="$ac_prog"
3321    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3322    break 2
3323  fi
3324done
3325  done
3326IFS=$as_save_IFS
3327
3328fi
3329fi
3330AWK=$ac_cv_prog_AWK
3331if test -n "$AWK"; then
3332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3333$as_echo "$AWK" >&6; }
3334else
3335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3336$as_echo "no" >&6; }
3337fi
3338
3339
3340  test -n "$AWK" && break
3341done
3342
3343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3344$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3345set x ${MAKE-make}
3346ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3347if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3348  $as_echo_n "(cached) " >&6
3349else
3350  cat >conftest.make <<\_ACEOF
3351SHELL = /bin/sh
3352all:
3353	@echo '@@@%%%=$(MAKE)=@@@%%%'
3354_ACEOF
3355# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3356case `${MAKE-make} -f conftest.make 2>/dev/null` in
3357  *@@@%%%=?*=@@@%%%*)
3358    eval ac_cv_prog_make_${ac_make}_set=yes;;
3359  *)
3360    eval ac_cv_prog_make_${ac_make}_set=no;;
3361esac
3362rm -f conftest.make
3363fi
3364if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3365  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3366$as_echo "yes" >&6; }
3367  SET_MAKE=
3368else
3369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3370$as_echo "no" >&6; }
3371  SET_MAKE="MAKE=${MAKE-make}"
3372fi
3373
3374rm -rf .tst 2>/dev/null
3375mkdir .tst 2>/dev/null
3376if test -d .tst; then
3377  am__leading_dot=.
3378else
3379  am__leading_dot=_
3380fi
3381rmdir .tst 2>/dev/null
3382
3383# Check whether --enable-silent-rules was given.
3384if test "${enable_silent_rules+set}" = set; then :
3385  enableval=$enable_silent_rules;
3386fi
3387
3388case $enable_silent_rules in # (((
3389  yes) AM_DEFAULT_VERBOSITY=0;;
3390   no) AM_DEFAULT_VERBOSITY=1;;
3391    *) AM_DEFAULT_VERBOSITY=1;;
3392esac
3393am_make=${MAKE-make}
3394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3395$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3396if ${am_cv_make_support_nested_variables+:} false; then :
3397  $as_echo_n "(cached) " >&6
3398else
3399  if $as_echo 'TRUE=$(BAR$(V))
3400BAR0=false
3401BAR1=true
3402V=1
3403am__doit:
3404	@$(TRUE)
3405.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3406  am_cv_make_support_nested_variables=yes
3407else
3408  am_cv_make_support_nested_variables=no
3409fi
3410fi
3411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3412$as_echo "$am_cv_make_support_nested_variables" >&6; }
3413if test $am_cv_make_support_nested_variables = yes; then
3414    AM_V='$(V)'
3415  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3416else
3417  AM_V=$AM_DEFAULT_VERBOSITY
3418  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3419fi
3420AM_BACKSLASH='\'
3421
3422if test "`cd $srcdir && pwd`" != "`pwd`"; then
3423  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3424  # is not polluted with repeated "-I."
3425  am__isrc=' -I$(srcdir)'
3426  # test to see if srcdir already configured
3427  if test -f $srcdir/config.status; then
3428    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3429  fi
3430fi
3431
3432# test whether we have cygpath
3433if test -z "$CYGPATH_W"; then
3434  if (cygpath --version) >/dev/null 2>/dev/null; then
3435    CYGPATH_W='cygpath -w'
3436  else
3437    CYGPATH_W=echo
3438  fi
3439fi
3440
3441
3442# Define the identity of the package.
3443 PACKAGE='polyml'
3444 VERSION='5.8.1'
3445
3446
3447cat >>confdefs.h <<_ACEOF
3448#define PACKAGE "$PACKAGE"
3449_ACEOF
3450
3451
3452cat >>confdefs.h <<_ACEOF
3453#define VERSION "$VERSION"
3454_ACEOF
3455
3456# Some tools Automake needs.
3457
3458ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3459
3460
3461AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3462
3463
3464AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3465
3466
3467AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3468
3469
3470MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3471
3472# For better backward compatibility.  To be removed once Automake 1.9.x
3473# dies out for good.  For more background, see:
3474# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3475# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3476mkdir_p='$(MKDIR_P)'
3477
3478# We need awk for the "check" target (and possibly the TAP driver).  The
3479# system "awk" is bad on some platforms.
3480# Always define AMTAR for backward compatibility.  Yes, it's still used
3481# in the wild :-(  We should find a proper way to deprecate it ...
3482AMTAR='$${TAR-tar}'
3483
3484
3485# We'll loop over all known methods to create a tar archive until one works.
3486_am_tools='gnutar  pax cpio none'
3487
3488am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3489
3490
3491
3492
3493
3494
3495# POSIX will say in a future version that running "rm -f" with no argument
3496# is OK; and we want to be able to make that assumption in our Makefile
3497# recipes.  So use an aggressive probe to check that the usage we want is
3498# actually supported "in the wild" to an acceptable degree.
3499# See automake bug#10828.
3500# To make any issue more visible, cause the running configure to be aborted
3501# by default if the 'rm' program in use doesn't match our expectations; the
3502# user can still override this though.
3503if rm -f && rm -fr && rm -rf; then : OK; else
3504  cat >&2 <<'END'
3505Oops!
3506
3507Your 'rm' program seems unable to run without file operands specified
3508on the command line, even when the '-f' option is present.  This is contrary
3509to the behaviour of most rm programs out there, and not conforming with
3510the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3511
3512Please tell bug-automake@gnu.org about your system, including the value
3513of your $PATH and any error possibly output before this message.  This
3514can help us improve future automake versions.
3515
3516END
3517  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3518    echo 'Configuration will proceed anyway, since you have set the' >&2
3519    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3520    echo >&2
3521  else
3522    cat >&2 <<'END'
3523Aborting the configuration process, to ensure you take notice of the issue.
3524
3525You can download and install GNU coreutils to get an 'rm' implementation
3526that behaves properly: <https://www.gnu.org/software/coreutils/>.
3527
3528If you want to complete the configuration process using your problematic
3529'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3530to "yes", and re-run configure.
3531
3532END
3533    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3534  fi
3535fi
3536
3537
3538# libtoolize recommends this line.
3539
3540
3541ac_debug_mode="no"
3542
3543# Check whether --enable-debug was given.
3544if test "${enable_debug+set}" = set; then :
3545  enableval=$enable_debug; ac_debug_mode="yes"
3546fi
3547
3548
3549if test "$ac_debug_mode" != "yes"; then
3550    # Default to maximum optimisation. -O2 is not good enough.
3551        # Set CCASFLAGS to empty so that it doesn't get set to CFLAGS.
3552        #   The -g option on assembler causes problems on Sparc/Solaris 10.
3553        # test X || Y  is equivalent to  if !X then Y
3554        test "${CFLAGS+set}" = set || CFLAGS="-O3"
3555        test "${CXXFLAGS+set}" = set || CXXFLAGS="-O3"
3556        test "${CCASFLAGS+set}" = set || CCASFLAGS=""
3557else
3558        test "${CFLAGS+set}" = set || CFLAGS="-g"
3559        test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
3560        test "${CCASFLAGS+set}" = set || CCASFLAGS=""
3561fi
3562
3563# Make sure we can run config.sub.
3564$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3565  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3566
3567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3568$as_echo_n "checking build system type... " >&6; }
3569if ${ac_cv_build+:} false; then :
3570  $as_echo_n "(cached) " >&6
3571else
3572  ac_build_alias=$build_alias
3573test "x$ac_build_alias" = x &&
3574  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3575test "x$ac_build_alias" = x &&
3576  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3577ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3578  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3579
3580fi
3581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3582$as_echo "$ac_cv_build" >&6; }
3583case $ac_cv_build in
3584*-*-*) ;;
3585*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3586esac
3587build=$ac_cv_build
3588ac_save_IFS=$IFS; IFS='-'
3589set x $ac_cv_build
3590shift
3591build_cpu=$1
3592build_vendor=$2
3593shift; shift
3594# Remember, the first character of IFS is used to create $*,
3595# except with old shells:
3596build_os=$*
3597IFS=$ac_save_IFS
3598case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3599
3600
3601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3602$as_echo_n "checking host system type... " >&6; }
3603if ${ac_cv_host+:} false; then :
3604  $as_echo_n "(cached) " >&6
3605else
3606  if test "x$host_alias" = x; then
3607  ac_cv_host=$ac_cv_build
3608else
3609  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3610    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3611fi
3612
3613fi
3614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3615$as_echo "$ac_cv_host" >&6; }
3616case $ac_cv_host in
3617*-*-*) ;;
3618*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3619esac
3620host=$ac_cv_host
3621ac_save_IFS=$IFS; IFS='-'
3622set x $ac_cv_host
3623shift
3624host_cpu=$1
3625host_vendor=$2
3626shift; shift
3627# Remember, the first character of IFS is used to create $*,
3628# except with old shells:
3629host_os=$*
3630IFS=$ac_save_IFS
3631case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3632
3633
3634
3635# If the compiler defines _WIN32 we're building for native Windows otherwise we're
3636# building for something else.
3637DEPDIR="${am__leading_dot}deps"
3638
3639ac_config_commands="$ac_config_commands depfiles"
3640
3641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3642$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3643cat > confinc.mk << 'END'
3644am__doit:
3645	@echo this is the am__doit target >confinc.out
3646.PHONY: am__doit
3647END
3648am__include="#"
3649am__quote=
3650# BSD make does it like this.
3651echo '.include "confinc.mk" # ignored' > confmf.BSD
3652# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3653echo 'include confinc.mk # ignored' > confmf.GNU
3654_am_result=no
3655for s in GNU BSD; do
3656  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3657   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3658   ac_status=$?
3659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660   (exit $ac_status); }
3661  case $?:`cat confinc.out 2>/dev/null` in #(
3662  '0:this is the am__doit target') :
3663    case $s in #(
3664  BSD) :
3665    am__include='.include' am__quote='"' ;; #(
3666  *) :
3667    am__include='include' am__quote='' ;;
3668esac ;; #(
3669  *) :
3670     ;;
3671esac
3672  if test "$am__include" != "#"; then
3673    _am_result="yes ($s style)"
3674    break
3675  fi
3676done
3677rm -f confinc.* confmf.*
3678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3679$as_echo "${_am_result}" >&6; }
3680
3681# Check whether --enable-dependency-tracking was given.
3682if test "${enable_dependency_tracking+set}" = set; then :
3683  enableval=$enable_dependency_tracking;
3684fi
3685
3686if test "x$enable_dependency_tracking" != xno; then
3687  am_depcomp="$ac_aux_dir/depcomp"
3688  AMDEPBACKSLASH='\'
3689  am__nodep='_no'
3690fi
3691 if test "x$enable_dependency_tracking" != xno; then
3692  AMDEP_TRUE=
3693  AMDEP_FALSE='#'
3694else
3695  AMDEP_TRUE='#'
3696  AMDEP_FALSE=
3697fi
3698
3699
3700ac_ext=c
3701ac_cpp='$CPP $CPPFLAGS'
3702ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3703ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3704ac_compiler_gnu=$ac_cv_c_compiler_gnu
3705if test -n "$ac_tool_prefix"; then
3706  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3707set dummy ${ac_tool_prefix}gcc; ac_word=$2
3708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3709$as_echo_n "checking for $ac_word... " >&6; }
3710if ${ac_cv_prog_CC+:} false; then :
3711  $as_echo_n "(cached) " >&6
3712else
3713  if test -n "$CC"; then
3714  ac_cv_prog_CC="$CC" # Let the user override the test.
3715else
3716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3717for as_dir in $PATH
3718do
3719  IFS=$as_save_IFS
3720  test -z "$as_dir" && as_dir=.
3721    for ac_exec_ext in '' $ac_executable_extensions; do
3722  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3723    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3724    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3725    break 2
3726  fi
3727done
3728  done
3729IFS=$as_save_IFS
3730
3731fi
3732fi
3733CC=$ac_cv_prog_CC
3734if test -n "$CC"; then
3735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3736$as_echo "$CC" >&6; }
3737else
3738  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3739$as_echo "no" >&6; }
3740fi
3741
3742
3743fi
3744if test -z "$ac_cv_prog_CC"; then
3745  ac_ct_CC=$CC
3746  # Extract the first word of "gcc", so it can be a program name with args.
3747set dummy gcc; ac_word=$2
3748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3749$as_echo_n "checking for $ac_word... " >&6; }
3750if ${ac_cv_prog_ac_ct_CC+:} false; then :
3751  $as_echo_n "(cached) " >&6
3752else
3753  if test -n "$ac_ct_CC"; then
3754  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3755else
3756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3757for as_dir in $PATH
3758do
3759  IFS=$as_save_IFS
3760  test -z "$as_dir" && as_dir=.
3761    for ac_exec_ext in '' $ac_executable_extensions; do
3762  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3763    ac_cv_prog_ac_ct_CC="gcc"
3764    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3765    break 2
3766  fi
3767done
3768  done
3769IFS=$as_save_IFS
3770
3771fi
3772fi
3773ac_ct_CC=$ac_cv_prog_ac_ct_CC
3774if test -n "$ac_ct_CC"; then
3775  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3776$as_echo "$ac_ct_CC" >&6; }
3777else
3778  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3779$as_echo "no" >&6; }
3780fi
3781
3782  if test "x$ac_ct_CC" = x; then
3783    CC=""
3784  else
3785    case $cross_compiling:$ac_tool_warned in
3786yes:)
3787{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3788$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3789ac_tool_warned=yes ;;
3790esac
3791    CC=$ac_ct_CC
3792  fi
3793else
3794  CC="$ac_cv_prog_CC"
3795fi
3796
3797if test -z "$CC"; then
3798          if test -n "$ac_tool_prefix"; then
3799    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3800set dummy ${ac_tool_prefix}cc; ac_word=$2
3801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3802$as_echo_n "checking for $ac_word... " >&6; }
3803if ${ac_cv_prog_CC+:} false; then :
3804  $as_echo_n "(cached) " >&6
3805else
3806  if test -n "$CC"; then
3807  ac_cv_prog_CC="$CC" # Let the user override the test.
3808else
3809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3810for as_dir in $PATH
3811do
3812  IFS=$as_save_IFS
3813  test -z "$as_dir" && as_dir=.
3814    for ac_exec_ext in '' $ac_executable_extensions; do
3815  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3816    ac_cv_prog_CC="${ac_tool_prefix}cc"
3817    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3818    break 2
3819  fi
3820done
3821  done
3822IFS=$as_save_IFS
3823
3824fi
3825fi
3826CC=$ac_cv_prog_CC
3827if test -n "$CC"; then
3828  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3829$as_echo "$CC" >&6; }
3830else
3831  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3832$as_echo "no" >&6; }
3833fi
3834
3835
3836  fi
3837fi
3838if test -z "$CC"; then
3839  # Extract the first word of "cc", so it can be a program name with args.
3840set dummy cc; ac_word=$2
3841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3842$as_echo_n "checking for $ac_word... " >&6; }
3843if ${ac_cv_prog_CC+:} false; then :
3844  $as_echo_n "(cached) " >&6
3845else
3846  if test -n "$CC"; then
3847  ac_cv_prog_CC="$CC" # Let the user override the test.
3848else
3849  ac_prog_rejected=no
3850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3851for as_dir in $PATH
3852do
3853  IFS=$as_save_IFS
3854  test -z "$as_dir" && as_dir=.
3855    for ac_exec_ext in '' $ac_executable_extensions; do
3856  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3857    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3858       ac_prog_rejected=yes
3859       continue
3860     fi
3861    ac_cv_prog_CC="cc"
3862    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3863    break 2
3864  fi
3865done
3866  done
3867IFS=$as_save_IFS
3868
3869if test $ac_prog_rejected = yes; then
3870  # We found a bogon in the path, so make sure we never use it.
3871  set dummy $ac_cv_prog_CC
3872  shift
3873  if test $# != 0; then
3874    # We chose a different compiler from the bogus one.
3875    # However, it has the same basename, so the bogon will be chosen
3876    # first if we set CC to just the basename; use the full file name.
3877    shift
3878    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3879  fi
3880fi
3881fi
3882fi
3883CC=$ac_cv_prog_CC
3884if test -n "$CC"; then
3885  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3886$as_echo "$CC" >&6; }
3887else
3888  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3889$as_echo "no" >&6; }
3890fi
3891
3892
3893fi
3894if test -z "$CC"; then
3895  if test -n "$ac_tool_prefix"; then
3896  for ac_prog in cl.exe
3897  do
3898    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3899set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3901$as_echo_n "checking for $ac_word... " >&6; }
3902if ${ac_cv_prog_CC+:} false; then :
3903  $as_echo_n "(cached) " >&6
3904else
3905  if test -n "$CC"; then
3906  ac_cv_prog_CC="$CC" # Let the user override the test.
3907else
3908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3909for as_dir in $PATH
3910do
3911  IFS=$as_save_IFS
3912  test -z "$as_dir" && as_dir=.
3913    for ac_exec_ext in '' $ac_executable_extensions; do
3914  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3915    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3916    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3917    break 2
3918  fi
3919done
3920  done
3921IFS=$as_save_IFS
3922
3923fi
3924fi
3925CC=$ac_cv_prog_CC
3926if test -n "$CC"; then
3927  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3928$as_echo "$CC" >&6; }
3929else
3930  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3931$as_echo "no" >&6; }
3932fi
3933
3934
3935    test -n "$CC" && break
3936  done
3937fi
3938if test -z "$CC"; then
3939  ac_ct_CC=$CC
3940  for ac_prog in cl.exe
3941do
3942  # Extract the first word of "$ac_prog", so it can be a program name with args.
3943set dummy $ac_prog; ac_word=$2
3944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3945$as_echo_n "checking for $ac_word... " >&6; }
3946if ${ac_cv_prog_ac_ct_CC+:} false; then :
3947  $as_echo_n "(cached) " >&6
3948else
3949  if test -n "$ac_ct_CC"; then
3950  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3951else
3952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3953for as_dir in $PATH
3954do
3955  IFS=$as_save_IFS
3956  test -z "$as_dir" && as_dir=.
3957    for ac_exec_ext in '' $ac_executable_extensions; do
3958  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3959    ac_cv_prog_ac_ct_CC="$ac_prog"
3960    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3961    break 2
3962  fi
3963done
3964  done
3965IFS=$as_save_IFS
3966
3967fi
3968fi
3969ac_ct_CC=$ac_cv_prog_ac_ct_CC
3970if test -n "$ac_ct_CC"; then
3971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3972$as_echo "$ac_ct_CC" >&6; }
3973else
3974  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3975$as_echo "no" >&6; }
3976fi
3977
3978
3979  test -n "$ac_ct_CC" && break
3980done
3981
3982  if test "x$ac_ct_CC" = x; then
3983    CC=""
3984  else
3985    case $cross_compiling:$ac_tool_warned in
3986yes:)
3987{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3988$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3989ac_tool_warned=yes ;;
3990esac
3991    CC=$ac_ct_CC
3992  fi
3993fi
3994
3995fi
3996
3997
3998test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3999$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4000as_fn_error $? "no acceptable C compiler found in \$PATH
4001See \`config.log' for more details" "$LINENO" 5; }
4002
4003# Provide some information about the compiler.
4004$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4005set X $ac_compile
4006ac_compiler=$2
4007for ac_option in --version -v -V -qversion; do
4008  { { ac_try="$ac_compiler $ac_option >&5"
4009case "(($ac_try" in
4010  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4011  *) ac_try_echo=$ac_try;;
4012esac
4013eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4014$as_echo "$ac_try_echo"; } >&5
4015  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4016  ac_status=$?
4017  if test -s conftest.err; then
4018    sed '10a\
4019... rest of stderr output deleted ...
4020         10q' conftest.err >conftest.er1
4021    cat conftest.er1 >&5
4022  fi
4023  rm -f conftest.er1 conftest.err
4024  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4025  test $ac_status = 0; }
4026done
4027
4028cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4029/* end confdefs.h.  */
4030
4031int
4032main ()
4033{
4034
4035  ;
4036  return 0;
4037}
4038_ACEOF
4039ac_clean_files_save=$ac_clean_files
4040ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4041# Try to create an executable without -o first, disregard a.out.
4042# It will help us diagnose broken compilers, and finding out an intuition
4043# of exeext.
4044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4045$as_echo_n "checking whether the C compiler works... " >&6; }
4046ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4047
4048# The possible output files:
4049ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4050
4051ac_rmfiles=
4052for ac_file in $ac_files
4053do
4054  case $ac_file in
4055    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4056    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4057  esac
4058done
4059rm -f $ac_rmfiles
4060
4061if { { ac_try="$ac_link_default"
4062case "(($ac_try" in
4063  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4064  *) ac_try_echo=$ac_try;;
4065esac
4066eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4067$as_echo "$ac_try_echo"; } >&5
4068  (eval "$ac_link_default") 2>&5
4069  ac_status=$?
4070  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4071  test $ac_status = 0; }; then :
4072  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4073# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4074# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4075# so that the user can short-circuit this test for compilers unknown to
4076# Autoconf.
4077for ac_file in $ac_files ''
4078do
4079  test -f "$ac_file" || continue
4080  case $ac_file in
4081    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4082	;;
4083    [ab].out )
4084	# We found the default executable, but exeext='' is most
4085	# certainly right.
4086	break;;
4087    *.* )
4088	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4089	then :; else
4090	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4091	fi
4092	# We set ac_cv_exeext here because the later test for it is not
4093	# safe: cross compilers may not add the suffix if given an `-o'
4094	# argument, so we may need to know it at that point already.
4095	# Even if this section looks crufty: it has the advantage of
4096	# actually working.
4097	break;;
4098    * )
4099	break;;
4100  esac
4101done
4102test "$ac_cv_exeext" = no && ac_cv_exeext=
4103
4104else
4105  ac_file=''
4106fi
4107if test -z "$ac_file"; then :
4108  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4109$as_echo "no" >&6; }
4110$as_echo "$as_me: failed program was:" >&5
4111sed 's/^/| /' conftest.$ac_ext >&5
4112
4113{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4114$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4115as_fn_error 77 "C compiler cannot create executables
4116See \`config.log' for more details" "$LINENO" 5; }
4117else
4118  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4119$as_echo "yes" >&6; }
4120fi
4121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4122$as_echo_n "checking for C compiler default output file name... " >&6; }
4123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4124$as_echo "$ac_file" >&6; }
4125ac_exeext=$ac_cv_exeext
4126
4127rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4128ac_clean_files=$ac_clean_files_save
4129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4130$as_echo_n "checking for suffix of executables... " >&6; }
4131if { { ac_try="$ac_link"
4132case "(($ac_try" in
4133  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4134  *) ac_try_echo=$ac_try;;
4135esac
4136eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4137$as_echo "$ac_try_echo"; } >&5
4138  (eval "$ac_link") 2>&5
4139  ac_status=$?
4140  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4141  test $ac_status = 0; }; then :
4142  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4143# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4144# work properly (i.e., refer to `conftest.exe'), while it won't with
4145# `rm'.
4146for ac_file in conftest.exe conftest conftest.*; do
4147  test -f "$ac_file" || continue
4148  case $ac_file in
4149    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4150    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4151	  break;;
4152    * ) break;;
4153  esac
4154done
4155else
4156  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4157$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4158as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4159See \`config.log' for more details" "$LINENO" 5; }
4160fi
4161rm -f conftest conftest$ac_cv_exeext
4162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4163$as_echo "$ac_cv_exeext" >&6; }
4164
4165rm -f conftest.$ac_ext
4166EXEEXT=$ac_cv_exeext
4167ac_exeext=$EXEEXT
4168cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4169/* end confdefs.h.  */
4170#include <stdio.h>
4171int
4172main ()
4173{
4174FILE *f = fopen ("conftest.out", "w");
4175 return ferror (f) || fclose (f) != 0;
4176
4177  ;
4178  return 0;
4179}
4180_ACEOF
4181ac_clean_files="$ac_clean_files conftest.out"
4182# Check that the compiler produces executables we can run.  If not, either
4183# the compiler is broken, or we cross compile.
4184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4185$as_echo_n "checking whether we are cross compiling... " >&6; }
4186if test "$cross_compiling" != yes; then
4187  { { ac_try="$ac_link"
4188case "(($ac_try" in
4189  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4190  *) ac_try_echo=$ac_try;;
4191esac
4192eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4193$as_echo "$ac_try_echo"; } >&5
4194  (eval "$ac_link") 2>&5
4195  ac_status=$?
4196  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4197  test $ac_status = 0; }
4198  if { ac_try='./conftest$ac_cv_exeext'
4199  { { case "(($ac_try" in
4200  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4201  *) ac_try_echo=$ac_try;;
4202esac
4203eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4204$as_echo "$ac_try_echo"; } >&5
4205  (eval "$ac_try") 2>&5
4206  ac_status=$?
4207  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4208  test $ac_status = 0; }; }; then
4209    cross_compiling=no
4210  else
4211    if test "$cross_compiling" = maybe; then
4212	cross_compiling=yes
4213    else
4214	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4215$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4216as_fn_error $? "cannot run C compiled programs.
4217If you meant to cross compile, use \`--host'.
4218See \`config.log' for more details" "$LINENO" 5; }
4219    fi
4220  fi
4221fi
4222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4223$as_echo "$cross_compiling" >&6; }
4224
4225rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4226ac_clean_files=$ac_clean_files_save
4227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4228$as_echo_n "checking for suffix of object files... " >&6; }
4229if ${ac_cv_objext+:} false; then :
4230  $as_echo_n "(cached) " >&6
4231else
4232  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4233/* end confdefs.h.  */
4234
4235int
4236main ()
4237{
4238
4239  ;
4240  return 0;
4241}
4242_ACEOF
4243rm -f conftest.o conftest.obj
4244if { { ac_try="$ac_compile"
4245case "(($ac_try" in
4246  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4247  *) ac_try_echo=$ac_try;;
4248esac
4249eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4250$as_echo "$ac_try_echo"; } >&5
4251  (eval "$ac_compile") 2>&5
4252  ac_status=$?
4253  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4254  test $ac_status = 0; }; then :
4255  for ac_file in conftest.o conftest.obj conftest.*; do
4256  test -f "$ac_file" || continue;
4257  case $ac_file in
4258    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4259    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4260       break;;
4261  esac
4262done
4263else
4264  $as_echo "$as_me: failed program was:" >&5
4265sed 's/^/| /' conftest.$ac_ext >&5
4266
4267{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4268$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4269as_fn_error $? "cannot compute suffix of object files: cannot compile
4270See \`config.log' for more details" "$LINENO" 5; }
4271fi
4272rm -f conftest.$ac_cv_objext conftest.$ac_ext
4273fi
4274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4275$as_echo "$ac_cv_objext" >&6; }
4276OBJEXT=$ac_cv_objext
4277ac_objext=$OBJEXT
4278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4279$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4280if ${ac_cv_c_compiler_gnu+:} false; then :
4281  $as_echo_n "(cached) " >&6
4282else
4283  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4284/* end confdefs.h.  */
4285
4286int
4287main ()
4288{
4289#ifndef __GNUC__
4290       choke me
4291#endif
4292
4293  ;
4294  return 0;
4295}
4296_ACEOF
4297if ac_fn_c_try_compile "$LINENO"; then :
4298  ac_compiler_gnu=yes
4299else
4300  ac_compiler_gnu=no
4301fi
4302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4303ac_cv_c_compiler_gnu=$ac_compiler_gnu
4304
4305fi
4306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4307$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4308if test $ac_compiler_gnu = yes; then
4309  GCC=yes
4310else
4311  GCC=
4312fi
4313ac_test_CFLAGS=${CFLAGS+set}
4314ac_save_CFLAGS=$CFLAGS
4315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4316$as_echo_n "checking whether $CC accepts -g... " >&6; }
4317if ${ac_cv_prog_cc_g+:} false; then :
4318  $as_echo_n "(cached) " >&6
4319else
4320  ac_save_c_werror_flag=$ac_c_werror_flag
4321   ac_c_werror_flag=yes
4322   ac_cv_prog_cc_g=no
4323   CFLAGS="-g"
4324   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4325/* end confdefs.h.  */
4326
4327int
4328main ()
4329{
4330
4331  ;
4332  return 0;
4333}
4334_ACEOF
4335if ac_fn_c_try_compile "$LINENO"; then :
4336  ac_cv_prog_cc_g=yes
4337else
4338  CFLAGS=""
4339      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4340/* end confdefs.h.  */
4341
4342int
4343main ()
4344{
4345
4346  ;
4347  return 0;
4348}
4349_ACEOF
4350if ac_fn_c_try_compile "$LINENO"; then :
4351
4352else
4353  ac_c_werror_flag=$ac_save_c_werror_flag
4354	 CFLAGS="-g"
4355	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4356/* end confdefs.h.  */
4357
4358int
4359main ()
4360{
4361
4362  ;
4363  return 0;
4364}
4365_ACEOF
4366if ac_fn_c_try_compile "$LINENO"; then :
4367  ac_cv_prog_cc_g=yes
4368fi
4369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4370fi
4371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4372fi
4373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4374   ac_c_werror_flag=$ac_save_c_werror_flag
4375fi
4376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4377$as_echo "$ac_cv_prog_cc_g" >&6; }
4378if test "$ac_test_CFLAGS" = set; then
4379  CFLAGS=$ac_save_CFLAGS
4380elif test $ac_cv_prog_cc_g = yes; then
4381  if test "$GCC" = yes; then
4382    CFLAGS="-g -O2"
4383  else
4384    CFLAGS="-g"
4385  fi
4386else
4387  if test "$GCC" = yes; then
4388    CFLAGS="-O2"
4389  else
4390    CFLAGS=
4391  fi
4392fi
4393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4394$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4395if ${ac_cv_prog_cc_c89+:} false; then :
4396  $as_echo_n "(cached) " >&6
4397else
4398  ac_cv_prog_cc_c89=no
4399ac_save_CC=$CC
4400cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4401/* end confdefs.h.  */
4402#include <stdarg.h>
4403#include <stdio.h>
4404struct stat;
4405/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4406struct buf { int x; };
4407FILE * (*rcsopen) (struct buf *, struct stat *, int);
4408static char *e (p, i)
4409     char **p;
4410     int i;
4411{
4412  return p[i];
4413}
4414static char *f (char * (*g) (char **, int), char **p, ...)
4415{
4416  char *s;
4417  va_list v;
4418  va_start (v,p);
4419  s = g (p, va_arg (v,int));
4420  va_end (v);
4421  return s;
4422}
4423
4424/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4425   function prototypes and stuff, but not '\xHH' hex character constants.
4426   These don't provoke an error unfortunately, instead are silently treated
4427   as 'x'.  The following induces an error, until -std is added to get
4428   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4429   array size at least.  It's necessary to write '\x00'==0 to get something
4430   that's true only with -std.  */
4431int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4432
4433/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4434   inside strings and character constants.  */
4435#define FOO(x) 'x'
4436int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4437
4438int test (int i, double x);
4439struct s1 {int (*f) (int a);};
4440struct s2 {int (*f) (double a);};
4441int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4442int argc;
4443char **argv;
4444int
4445main ()
4446{
4447return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4448  ;
4449  return 0;
4450}
4451_ACEOF
4452for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4453	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4454do
4455  CC="$ac_save_CC $ac_arg"
4456  if ac_fn_c_try_compile "$LINENO"; then :
4457  ac_cv_prog_cc_c89=$ac_arg
4458fi
4459rm -f core conftest.err conftest.$ac_objext
4460  test "x$ac_cv_prog_cc_c89" != "xno" && break
4461done
4462rm -f conftest.$ac_ext
4463CC=$ac_save_CC
4464
4465fi
4466# AC_CACHE_VAL
4467case "x$ac_cv_prog_cc_c89" in
4468  x)
4469    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4470$as_echo "none needed" >&6; } ;;
4471  xno)
4472    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4473$as_echo "unsupported" >&6; } ;;
4474  *)
4475    CC="$CC $ac_cv_prog_cc_c89"
4476    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4477$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4478esac
4479if test "x$ac_cv_prog_cc_c89" != xno; then :
4480
4481fi
4482
4483ac_ext=c
4484ac_cpp='$CPP $CPPFLAGS'
4485ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4486ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4487ac_compiler_gnu=$ac_cv_c_compiler_gnu
4488
4489ac_ext=c
4490ac_cpp='$CPP $CPPFLAGS'
4491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4493ac_compiler_gnu=$ac_cv_c_compiler_gnu
4494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4495$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4496if ${am_cv_prog_cc_c_o+:} false; then :
4497  $as_echo_n "(cached) " >&6
4498else
4499  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4500/* end confdefs.h.  */
4501
4502int
4503main ()
4504{
4505
4506  ;
4507  return 0;
4508}
4509_ACEOF
4510  # Make sure it works both with $CC and with simple cc.
4511  # Following AC_PROG_CC_C_O, we do the test twice because some
4512  # compilers refuse to overwrite an existing .o file with -o,
4513  # though they will create one.
4514  am_cv_prog_cc_c_o=yes
4515  for am_i in 1 2; do
4516    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4517   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4518   ac_status=$?
4519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520   (exit $ac_status); } \
4521         && test -f conftest2.$ac_objext; then
4522      : OK
4523    else
4524      am_cv_prog_cc_c_o=no
4525      break
4526    fi
4527  done
4528  rm -f core conftest*
4529  unset am_i
4530fi
4531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4532$as_echo "$am_cv_prog_cc_c_o" >&6; }
4533if test "$am_cv_prog_cc_c_o" != yes; then
4534   # Losing compiler, so override with the script.
4535   # FIXME: It is wrong to rewrite CC.
4536   # But if we don't then we get into trouble of one sort or another.
4537   # A longer-term fix would be to have automake use am__CC in this case,
4538   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4539   CC="$am_aux_dir/compile $CC"
4540fi
4541ac_ext=c
4542ac_cpp='$CPP $CPPFLAGS'
4543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4545ac_compiler_gnu=$ac_cv_c_compiler_gnu
4546
4547
4548depcc="$CC"   am_compiler_list=
4549
4550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4551$as_echo_n "checking dependency style of $depcc... " >&6; }
4552if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4553  $as_echo_n "(cached) " >&6
4554else
4555  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4556  # We make a subdir and do the tests there.  Otherwise we can end up
4557  # making bogus files that we don't know about and never remove.  For
4558  # instance it was reported that on HP-UX the gcc test will end up
4559  # making a dummy file named 'D' -- because '-MD' means "put the output
4560  # in D".
4561  rm -rf conftest.dir
4562  mkdir conftest.dir
4563  # Copy depcomp to subdir because otherwise we won't find it if we're
4564  # using a relative directory.
4565  cp "$am_depcomp" conftest.dir
4566  cd conftest.dir
4567  # We will build objects and dependencies in a subdirectory because
4568  # it helps to detect inapplicable dependency modes.  For instance
4569  # both Tru64's cc and ICC support -MD to output dependencies as a
4570  # side effect of compilation, but ICC will put the dependencies in
4571  # the current directory while Tru64 will put them in the object
4572  # directory.
4573  mkdir sub
4574
4575  am_cv_CC_dependencies_compiler_type=none
4576  if test "$am_compiler_list" = ""; then
4577     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4578  fi
4579  am__universal=false
4580  case " $depcc " in #(
4581     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4582     esac
4583
4584  for depmode in $am_compiler_list; do
4585    # Setup a source with many dependencies, because some compilers
4586    # like to wrap large dependency lists on column 80 (with \), and
4587    # we should not choose a depcomp mode which is confused by this.
4588    #
4589    # We need to recreate these files for each test, as the compiler may
4590    # overwrite some of them when testing with obscure command lines.
4591    # This happens at least with the AIX C compiler.
4592    : > sub/conftest.c
4593    for i in 1 2 3 4 5 6; do
4594      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4595      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4596      # Solaris 10 /bin/sh.
4597      echo '/* dummy */' > sub/conftst$i.h
4598    done
4599    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4600
4601    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4602    # mode.  It turns out that the SunPro C++ compiler does not properly
4603    # handle '-M -o', and we need to detect this.  Also, some Intel
4604    # versions had trouble with output in subdirs.
4605    am__obj=sub/conftest.${OBJEXT-o}
4606    am__minus_obj="-o $am__obj"
4607    case $depmode in
4608    gcc)
4609      # This depmode causes a compiler race in universal mode.
4610      test "$am__universal" = false || continue
4611      ;;
4612    nosideeffect)
4613      # After this tag, mechanisms are not by side-effect, so they'll
4614      # only be used when explicitly requested.
4615      if test "x$enable_dependency_tracking" = xyes; then
4616	continue
4617      else
4618	break
4619      fi
4620      ;;
4621    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4622      # This compiler won't grok '-c -o', but also, the minuso test has
4623      # not run yet.  These depmodes are late enough in the game, and
4624      # so weak that their functioning should not be impacted.
4625      am__obj=conftest.${OBJEXT-o}
4626      am__minus_obj=
4627      ;;
4628    none) break ;;
4629    esac
4630    if depmode=$depmode \
4631       source=sub/conftest.c object=$am__obj \
4632       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4633       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4634         >/dev/null 2>conftest.err &&
4635       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4636       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4637       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4638       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4639      # icc doesn't choke on unknown options, it will just issue warnings
4640      # or remarks (even with -Werror).  So we grep stderr for any message
4641      # that says an option was ignored or not supported.
4642      # When given -MP, icc 7.0 and 7.1 complain thusly:
4643      #   icc: Command line warning: ignoring option '-M'; no argument required
4644      # The diagnosis changed in icc 8.0:
4645      #   icc: Command line remark: option '-MP' not supported
4646      if (grep 'ignoring option' conftest.err ||
4647          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4648        am_cv_CC_dependencies_compiler_type=$depmode
4649        break
4650      fi
4651    fi
4652  done
4653
4654  cd ..
4655  rm -rf conftest.dir
4656else
4657  am_cv_CC_dependencies_compiler_type=none
4658fi
4659
4660fi
4661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4662$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4663CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4664
4665 if
4666  test "x$enable_dependency_tracking" != xno \
4667  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4668  am__fastdepCC_TRUE=
4669  am__fastdepCC_FALSE='#'
4670else
4671  am__fastdepCC_TRUE='#'
4672  am__fastdepCC_FALSE=
4673fi
4674
4675
4676
4677ac_ext=c
4678ac_cpp='$CPP $CPPFLAGS'
4679ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4680ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4681ac_compiler_gnu=$ac_cv_c_compiler_gnu
4682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4683$as_echo_n "checking how to run the C preprocessor... " >&6; }
4684# On Suns, sometimes $CPP names a directory.
4685if test -n "$CPP" && test -d "$CPP"; then
4686  CPP=
4687fi
4688if test -z "$CPP"; then
4689  if ${ac_cv_prog_CPP+:} false; then :
4690  $as_echo_n "(cached) " >&6
4691else
4692      # Double quotes because CPP needs to be expanded
4693    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4694    do
4695      ac_preproc_ok=false
4696for ac_c_preproc_warn_flag in '' yes
4697do
4698  # Use a header file that comes with gcc, so configuring glibc
4699  # with a fresh cross-compiler works.
4700  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4701  # <limits.h> exists even on freestanding compilers.
4702  # On the NeXT, cc -E runs the code through the compiler's parser,
4703  # not just through cpp. "Syntax error" is here to catch this case.
4704  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4705/* end confdefs.h.  */
4706#ifdef __STDC__
4707# include <limits.h>
4708#else
4709# include <assert.h>
4710#endif
4711		     Syntax error
4712_ACEOF
4713if ac_fn_c_try_cpp "$LINENO"; then :
4714
4715else
4716  # Broken: fails on valid input.
4717continue
4718fi
4719rm -f conftest.err conftest.i conftest.$ac_ext
4720
4721  # OK, works on sane cases.  Now check whether nonexistent headers
4722  # can be detected and how.
4723  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4724/* end confdefs.h.  */
4725#include <ac_nonexistent.h>
4726_ACEOF
4727if ac_fn_c_try_cpp "$LINENO"; then :
4728  # Broken: success on invalid input.
4729continue
4730else
4731  # Passes both tests.
4732ac_preproc_ok=:
4733break
4734fi
4735rm -f conftest.err conftest.i conftest.$ac_ext
4736
4737done
4738# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4739rm -f conftest.i conftest.err conftest.$ac_ext
4740if $ac_preproc_ok; then :
4741  break
4742fi
4743
4744    done
4745    ac_cv_prog_CPP=$CPP
4746
4747fi
4748  CPP=$ac_cv_prog_CPP
4749else
4750  ac_cv_prog_CPP=$CPP
4751fi
4752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4753$as_echo "$CPP" >&6; }
4754ac_preproc_ok=false
4755for ac_c_preproc_warn_flag in '' yes
4756do
4757  # Use a header file that comes with gcc, so configuring glibc
4758  # with a fresh cross-compiler works.
4759  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4760  # <limits.h> exists even on freestanding compilers.
4761  # On the NeXT, cc -E runs the code through the compiler's parser,
4762  # not just through cpp. "Syntax error" is here to catch this case.
4763  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4764/* end confdefs.h.  */
4765#ifdef __STDC__
4766# include <limits.h>
4767#else
4768# include <assert.h>
4769#endif
4770		     Syntax error
4771_ACEOF
4772if ac_fn_c_try_cpp "$LINENO"; then :
4773
4774else
4775  # Broken: fails on valid input.
4776continue
4777fi
4778rm -f conftest.err conftest.i conftest.$ac_ext
4779
4780  # OK, works on sane cases.  Now check whether nonexistent headers
4781  # can be detected and how.
4782  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4783/* end confdefs.h.  */
4784#include <ac_nonexistent.h>
4785_ACEOF
4786if ac_fn_c_try_cpp "$LINENO"; then :
4787  # Broken: success on invalid input.
4788continue
4789else
4790  # Passes both tests.
4791ac_preproc_ok=:
4792break
4793fi
4794rm -f conftest.err conftest.i conftest.$ac_ext
4795
4796done
4797# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4798rm -f conftest.i conftest.err conftest.$ac_ext
4799if $ac_preproc_ok; then :
4800
4801else
4802  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4803$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4804as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4805See \`config.log' for more details" "$LINENO" 5; }
4806fi
4807
4808ac_ext=c
4809ac_cpp='$CPP $CPPFLAGS'
4810ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4811ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4812ac_compiler_gnu=$ac_cv_c_compiler_gnu
4813
4814
4815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4816$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4817if ${ac_cv_path_GREP+:} false; then :
4818  $as_echo_n "(cached) " >&6
4819else
4820  if test -z "$GREP"; then
4821  ac_path_GREP_found=false
4822  # Loop through the user's path and test for each of PROGNAME-LIST
4823  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4824for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4825do
4826  IFS=$as_save_IFS
4827  test -z "$as_dir" && as_dir=.
4828    for ac_prog in grep ggrep; do
4829    for ac_exec_ext in '' $ac_executable_extensions; do
4830      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4831      as_fn_executable_p "$ac_path_GREP" || continue
4832# Check for GNU ac_path_GREP and select it if it is found.
4833  # Check for GNU $ac_path_GREP
4834case `"$ac_path_GREP" --version 2>&1` in
4835*GNU*)
4836  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4837*)
4838  ac_count=0
4839  $as_echo_n 0123456789 >"conftest.in"
4840  while :
4841  do
4842    cat "conftest.in" "conftest.in" >"conftest.tmp"
4843    mv "conftest.tmp" "conftest.in"
4844    cp "conftest.in" "conftest.nl"
4845    $as_echo 'GREP' >> "conftest.nl"
4846    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4847    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4848    as_fn_arith $ac_count + 1 && ac_count=$as_val
4849    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4850      # Best one so far, save it but keep looking for a better one
4851      ac_cv_path_GREP="$ac_path_GREP"
4852      ac_path_GREP_max=$ac_count
4853    fi
4854    # 10*(2^10) chars as input seems more than enough
4855    test $ac_count -gt 10 && break
4856  done
4857  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4858esac
4859
4860      $ac_path_GREP_found && break 3
4861    done
4862  done
4863  done
4864IFS=$as_save_IFS
4865  if test -z "$ac_cv_path_GREP"; then
4866    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4867  fi
4868else
4869  ac_cv_path_GREP=$GREP
4870fi
4871
4872fi
4873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4874$as_echo "$ac_cv_path_GREP" >&6; }
4875 GREP="$ac_cv_path_GREP"
4876
4877
4878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4879$as_echo_n "checking for egrep... " >&6; }
4880if ${ac_cv_path_EGREP+:} false; then :
4881  $as_echo_n "(cached) " >&6
4882else
4883  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4884   then ac_cv_path_EGREP="$GREP -E"
4885   else
4886     if test -z "$EGREP"; then
4887  ac_path_EGREP_found=false
4888  # Loop through the user's path and test for each of PROGNAME-LIST
4889  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4890for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4891do
4892  IFS=$as_save_IFS
4893  test -z "$as_dir" && as_dir=.
4894    for ac_prog in egrep; do
4895    for ac_exec_ext in '' $ac_executable_extensions; do
4896      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4897      as_fn_executable_p "$ac_path_EGREP" || continue
4898# Check for GNU ac_path_EGREP and select it if it is found.
4899  # Check for GNU $ac_path_EGREP
4900case `"$ac_path_EGREP" --version 2>&1` in
4901*GNU*)
4902  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4903*)
4904  ac_count=0
4905  $as_echo_n 0123456789 >"conftest.in"
4906  while :
4907  do
4908    cat "conftest.in" "conftest.in" >"conftest.tmp"
4909    mv "conftest.tmp" "conftest.in"
4910    cp "conftest.in" "conftest.nl"
4911    $as_echo 'EGREP' >> "conftest.nl"
4912    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4913    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4914    as_fn_arith $ac_count + 1 && ac_count=$as_val
4915    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4916      # Best one so far, save it but keep looking for a better one
4917      ac_cv_path_EGREP="$ac_path_EGREP"
4918      ac_path_EGREP_max=$ac_count
4919    fi
4920    # 10*(2^10) chars as input seems more than enough
4921    test $ac_count -gt 10 && break
4922  done
4923  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4924esac
4925
4926      $ac_path_EGREP_found && break 3
4927    done
4928  done
4929  done
4930IFS=$as_save_IFS
4931  if test -z "$ac_cv_path_EGREP"; then
4932    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4933  fi
4934else
4935  ac_cv_path_EGREP=$EGREP
4936fi
4937
4938   fi
4939fi
4940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4941$as_echo "$ac_cv_path_EGREP" >&6; }
4942 EGREP="$ac_cv_path_EGREP"
4943
4944
4945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4946$as_echo_n "checking for ANSI C header files... " >&6; }
4947if ${ac_cv_header_stdc+:} false; then :
4948  $as_echo_n "(cached) " >&6
4949else
4950  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4951/* end confdefs.h.  */
4952#include <stdlib.h>
4953#include <stdarg.h>
4954#include <string.h>
4955#include <float.h>
4956
4957int
4958main ()
4959{
4960
4961  ;
4962  return 0;
4963}
4964_ACEOF
4965if ac_fn_c_try_compile "$LINENO"; then :
4966  ac_cv_header_stdc=yes
4967else
4968  ac_cv_header_stdc=no
4969fi
4970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4971
4972if test $ac_cv_header_stdc = yes; then
4973  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4974  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4975/* end confdefs.h.  */
4976#include <string.h>
4977
4978_ACEOF
4979if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4980  $EGREP "memchr" >/dev/null 2>&1; then :
4981
4982else
4983  ac_cv_header_stdc=no
4984fi
4985rm -f conftest*
4986
4987fi
4988
4989if test $ac_cv_header_stdc = yes; then
4990  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4991  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4992/* end confdefs.h.  */
4993#include <stdlib.h>
4994
4995_ACEOF
4996if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4997  $EGREP "free" >/dev/null 2>&1; then :
4998
4999else
5000  ac_cv_header_stdc=no
5001fi
5002rm -f conftest*
5003
5004fi
5005
5006if test $ac_cv_header_stdc = yes; then
5007  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5008  if test "$cross_compiling" = yes; then :
5009  :
5010else
5011  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5012/* end confdefs.h.  */
5013#include <ctype.h>
5014#include <stdlib.h>
5015#if ((' ' & 0x0FF) == 0x020)
5016# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5017# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5018#else
5019# define ISLOWER(c) \
5020		   (('a' <= (c) && (c) <= 'i') \
5021		     || ('j' <= (c) && (c) <= 'r') \
5022		     || ('s' <= (c) && (c) <= 'z'))
5023# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5024#endif
5025
5026#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5027int
5028main ()
5029{
5030  int i;
5031  for (i = 0; i < 256; i++)
5032    if (XOR (islower (i), ISLOWER (i))
5033	|| toupper (i) != TOUPPER (i))
5034      return 2;
5035  return 0;
5036}
5037_ACEOF
5038if ac_fn_c_try_run "$LINENO"; then :
5039
5040else
5041  ac_cv_header_stdc=no
5042fi
5043rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5044  conftest.$ac_objext conftest.beam conftest.$ac_ext
5045fi
5046
5047fi
5048fi
5049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5050$as_echo "$ac_cv_header_stdc" >&6; }
5051if test $ac_cv_header_stdc = yes; then
5052
5053$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5054
5055fi
5056
5057# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5058for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5059		  inttypes.h stdint.h unistd.h
5060do :
5061  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5062ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5063"
5064if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5065  cat >>confdefs.h <<_ACEOF
5066#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5067_ACEOF
5068
5069fi
5070
5071done
5072
5073
5074ac_fn_c_check_decl "$LINENO" "_WIN32" "ac_cv_have_decl__WIN32" "$ac_includes_default"
5075if test "x$ac_cv_have_decl__WIN32" = xyes; then :
5076  poly_native_windows=yes
5077else
5078  poly_native_windows=no
5079fi
5080
5081
5082# If we are building on cygwin or mingw we need to give the -no-defined flag to
5083# build a DLL.  We also have to use Windows calling conventions rather than
5084# SysV on 64-bit.
5085poly_use_windowscc=no
5086poly_need_macosopt=no
5087case "${host_os}" in
5088    darwin*)
5089        OSFLAG=-DMACOSX
5090
5091        poly_need_macosopt=yes
5092        ;;
5093    sunos* | solaris*)
5094        OSFLAG=-DSOLARIS
5095
5096        ;;
5097    *mingw* | *cygwin*)
5098        poly_no_undefined=yes
5099        poly_use_windowscc=yes
5100        ;;
5101esac
5102
5103# libpolyml can be a DLL but libpolymain can't.
5104# Enable shared libraries by default.  It complicates installation a bit if the
5105# the library is installed to a non-standard location but simplifies polyc.
5106case `pwd` in
5107  *\ * | *\	*)
5108    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5109$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5110esac
5111
5112
5113
5114macro_version='2.4.6'
5115macro_revision='2.4.6'
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129ltmain=$ac_aux_dir/ltmain.sh
5130
5131# Backslashify metacharacters that are still active within
5132# double-quoted strings.
5133sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5134
5135# Same as above, but do not quote variable references.
5136double_quote_subst='s/\(["`\\]\)/\\\1/g'
5137
5138# Sed substitution to delay expansion of an escaped shell variable in a
5139# double_quote_subst'ed string.
5140delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5141
5142# Sed substitution to delay expansion of an escaped single quote.
5143delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5144
5145# Sed substitution to avoid accidental globbing in evaled expressions
5146no_glob_subst='s/\*/\\\*/g'
5147
5148ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5149ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5150ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5151
5152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5153$as_echo_n "checking how to print strings... " >&6; }
5154# Test print first, because it will be a builtin if present.
5155if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5156   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5157  ECHO='print -r --'
5158elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5159  ECHO='printf %s\n'
5160else
5161  # Use this function as a fallback that always works.
5162  func_fallback_echo ()
5163  {
5164    eval 'cat <<_LTECHO_EOF
5165$1
5166_LTECHO_EOF'
5167  }
5168  ECHO='func_fallback_echo'
5169fi
5170
5171# func_echo_all arg...
5172# Invoke $ECHO with all args, space-separated.
5173func_echo_all ()
5174{
5175    $ECHO ""
5176}
5177
5178case $ECHO in
5179  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5180$as_echo "printf" >&6; } ;;
5181  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5182$as_echo "print -r" >&6; } ;;
5183  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5184$as_echo "cat" >&6; } ;;
5185esac
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5201$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5202if ${ac_cv_path_SED+:} false; then :
5203  $as_echo_n "(cached) " >&6
5204else
5205            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5206     for ac_i in 1 2 3 4 5 6 7; do
5207       ac_script="$ac_script$as_nl$ac_script"
5208     done
5209     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5210     { ac_script=; unset ac_script;}
5211     if test -z "$SED"; then
5212  ac_path_SED_found=false
5213  # Loop through the user's path and test for each of PROGNAME-LIST
5214  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5215for as_dir in $PATH
5216do
5217  IFS=$as_save_IFS
5218  test -z "$as_dir" && as_dir=.
5219    for ac_prog in sed gsed; do
5220    for ac_exec_ext in '' $ac_executable_extensions; do
5221      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5222      as_fn_executable_p "$ac_path_SED" || continue
5223# Check for GNU ac_path_SED and select it if it is found.
5224  # Check for GNU $ac_path_SED
5225case `"$ac_path_SED" --version 2>&1` in
5226*GNU*)
5227  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5228*)
5229  ac_count=0
5230  $as_echo_n 0123456789 >"conftest.in"
5231  while :
5232  do
5233    cat "conftest.in" "conftest.in" >"conftest.tmp"
5234    mv "conftest.tmp" "conftest.in"
5235    cp "conftest.in" "conftest.nl"
5236    $as_echo '' >> "conftest.nl"
5237    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5238    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5239    as_fn_arith $ac_count + 1 && ac_count=$as_val
5240    if test $ac_count -gt ${ac_path_SED_max-0}; then
5241      # Best one so far, save it but keep looking for a better one
5242      ac_cv_path_SED="$ac_path_SED"
5243      ac_path_SED_max=$ac_count
5244    fi
5245    # 10*(2^10) chars as input seems more than enough
5246    test $ac_count -gt 10 && break
5247  done
5248  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5249esac
5250
5251      $ac_path_SED_found && break 3
5252    done
5253  done
5254  done
5255IFS=$as_save_IFS
5256  if test -z "$ac_cv_path_SED"; then
5257    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5258  fi
5259else
5260  ac_cv_path_SED=$SED
5261fi
5262
5263fi
5264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5265$as_echo "$ac_cv_path_SED" >&6; }
5266 SED="$ac_cv_path_SED"
5267  rm -f conftest.sed
5268
5269test -z "$SED" && SED=sed
5270Xsed="$SED -e 1s/^X//"
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5283$as_echo_n "checking for fgrep... " >&6; }
5284if ${ac_cv_path_FGREP+:} false; then :
5285  $as_echo_n "(cached) " >&6
5286else
5287  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5288   then ac_cv_path_FGREP="$GREP -F"
5289   else
5290     if test -z "$FGREP"; then
5291  ac_path_FGREP_found=false
5292  # Loop through the user's path and test for each of PROGNAME-LIST
5293  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5294for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5295do
5296  IFS=$as_save_IFS
5297  test -z "$as_dir" && as_dir=.
5298    for ac_prog in fgrep; do
5299    for ac_exec_ext in '' $ac_executable_extensions; do
5300      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5301      as_fn_executable_p "$ac_path_FGREP" || continue
5302# Check for GNU ac_path_FGREP and select it if it is found.
5303  # Check for GNU $ac_path_FGREP
5304case `"$ac_path_FGREP" --version 2>&1` in
5305*GNU*)
5306  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5307*)
5308  ac_count=0
5309  $as_echo_n 0123456789 >"conftest.in"
5310  while :
5311  do
5312    cat "conftest.in" "conftest.in" >"conftest.tmp"
5313    mv "conftest.tmp" "conftest.in"
5314    cp "conftest.in" "conftest.nl"
5315    $as_echo 'FGREP' >> "conftest.nl"
5316    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5317    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5318    as_fn_arith $ac_count + 1 && ac_count=$as_val
5319    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5320      # Best one so far, save it but keep looking for a better one
5321      ac_cv_path_FGREP="$ac_path_FGREP"
5322      ac_path_FGREP_max=$ac_count
5323    fi
5324    # 10*(2^10) chars as input seems more than enough
5325    test $ac_count -gt 10 && break
5326  done
5327  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5328esac
5329
5330      $ac_path_FGREP_found && break 3
5331    done
5332  done
5333  done
5334IFS=$as_save_IFS
5335  if test -z "$ac_cv_path_FGREP"; then
5336    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5337  fi
5338else
5339  ac_cv_path_FGREP=$FGREP
5340fi
5341
5342   fi
5343fi
5344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5345$as_echo "$ac_cv_path_FGREP" >&6; }
5346 FGREP="$ac_cv_path_FGREP"
5347
5348
5349test -z "$GREP" && GREP=grep
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369# Check whether --with-gnu-ld was given.
5370if test "${with_gnu_ld+set}" = set; then :
5371  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5372else
5373  with_gnu_ld=no
5374fi
5375
5376ac_prog=ld
5377if test yes = "$GCC"; then
5378  # Check if gcc -print-prog-name=ld gives a path.
5379  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5380$as_echo_n "checking for ld used by $CC... " >&6; }
5381  case $host in
5382  *-*-mingw*)
5383    # gcc leaves a trailing carriage return, which upsets mingw
5384    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5385  *)
5386    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5387  esac
5388  case $ac_prog in
5389    # Accept absolute paths.
5390    [\\/]* | ?:[\\/]*)
5391      re_direlt='/[^/][^/]*/\.\./'
5392      # Canonicalize the pathname of ld
5393      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5394      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5395	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5396      done
5397      test -z "$LD" && LD=$ac_prog
5398      ;;
5399  "")
5400    # If it fails, then pretend we aren't using GCC.
5401    ac_prog=ld
5402    ;;
5403  *)
5404    # If it is relative, then search for the first ld in PATH.
5405    with_gnu_ld=unknown
5406    ;;
5407  esac
5408elif test yes = "$with_gnu_ld"; then
5409  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5410$as_echo_n "checking for GNU ld... " >&6; }
5411else
5412  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5413$as_echo_n "checking for non-GNU ld... " >&6; }
5414fi
5415if ${lt_cv_path_LD+:} false; then :
5416  $as_echo_n "(cached) " >&6
5417else
5418  if test -z "$LD"; then
5419  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5420  for ac_dir in $PATH; do
5421    IFS=$lt_save_ifs
5422    test -z "$ac_dir" && ac_dir=.
5423    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5424      lt_cv_path_LD=$ac_dir/$ac_prog
5425      # Check to see if the program is GNU ld.  I'd rather use --version,
5426      # but apparently some variants of GNU ld only accept -v.
5427      # Break only if it was the GNU/non-GNU ld that we prefer.
5428      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5429      *GNU* | *'with BFD'*)
5430	test no != "$with_gnu_ld" && break
5431	;;
5432      *)
5433	test yes != "$with_gnu_ld" && break
5434	;;
5435      esac
5436    fi
5437  done
5438  IFS=$lt_save_ifs
5439else
5440  lt_cv_path_LD=$LD # Let the user override the test with a path.
5441fi
5442fi
5443
5444LD=$lt_cv_path_LD
5445if test -n "$LD"; then
5446  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5447$as_echo "$LD" >&6; }
5448else
5449  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5450$as_echo "no" >&6; }
5451fi
5452test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5454$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5455if ${lt_cv_prog_gnu_ld+:} false; then :
5456  $as_echo_n "(cached) " >&6
5457else
5458  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5459case `$LD -v 2>&1 </dev/null` in
5460*GNU* | *'with BFD'*)
5461  lt_cv_prog_gnu_ld=yes
5462  ;;
5463*)
5464  lt_cv_prog_gnu_ld=no
5465  ;;
5466esac
5467fi
5468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5469$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5470with_gnu_ld=$lt_cv_prog_gnu_ld
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5481$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5482if ${lt_cv_path_NM+:} false; then :
5483  $as_echo_n "(cached) " >&6
5484else
5485  if test -n "$NM"; then
5486  # Let the user override the test.
5487  lt_cv_path_NM=$NM
5488else
5489  lt_nm_to_check=${ac_tool_prefix}nm
5490  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5491    lt_nm_to_check="$lt_nm_to_check nm"
5492  fi
5493  for lt_tmp_nm in $lt_nm_to_check; do
5494    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5495    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5496      IFS=$lt_save_ifs
5497      test -z "$ac_dir" && ac_dir=.
5498      tmp_nm=$ac_dir/$lt_tmp_nm
5499      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5500	# Check to see if the nm accepts a BSD-compat flag.
5501	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5502	#   nm: unknown option "B" ignored
5503	# Tru64's nm complains that /dev/null is an invalid object file
5504	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5505	case $build_os in
5506	mingw*) lt_bad_file=conftest.nm/nofile ;;
5507	*) lt_bad_file=/dev/null ;;
5508	esac
5509	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5510	*$lt_bad_file* | *'Invalid file or object type'*)
5511	  lt_cv_path_NM="$tmp_nm -B"
5512	  break 2
5513	  ;;
5514	*)
5515	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5516	  */dev/null*)
5517	    lt_cv_path_NM="$tmp_nm -p"
5518	    break 2
5519	    ;;
5520	  *)
5521	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5522	    continue # so that we can try to find one that supports BSD flags
5523	    ;;
5524	  esac
5525	  ;;
5526	esac
5527      fi
5528    done
5529    IFS=$lt_save_ifs
5530  done
5531  : ${lt_cv_path_NM=no}
5532fi
5533fi
5534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5535$as_echo "$lt_cv_path_NM" >&6; }
5536if test no != "$lt_cv_path_NM"; then
5537  NM=$lt_cv_path_NM
5538else
5539  # Didn't find any BSD compatible name lister, look for dumpbin.
5540  if test -n "$DUMPBIN"; then :
5541    # Let the user override the test.
5542  else
5543    if test -n "$ac_tool_prefix"; then
5544  for ac_prog in dumpbin "link -dump"
5545  do
5546    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5547set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5549$as_echo_n "checking for $ac_word... " >&6; }
5550if ${ac_cv_prog_DUMPBIN+:} false; then :
5551  $as_echo_n "(cached) " >&6
5552else
5553  if test -n "$DUMPBIN"; then
5554  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5555else
5556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5557for as_dir in $PATH
5558do
5559  IFS=$as_save_IFS
5560  test -z "$as_dir" && as_dir=.
5561    for ac_exec_ext in '' $ac_executable_extensions; do
5562  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5563    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5564    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5565    break 2
5566  fi
5567done
5568  done
5569IFS=$as_save_IFS
5570
5571fi
5572fi
5573DUMPBIN=$ac_cv_prog_DUMPBIN
5574if test -n "$DUMPBIN"; then
5575  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5576$as_echo "$DUMPBIN" >&6; }
5577else
5578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5579$as_echo "no" >&6; }
5580fi
5581
5582
5583    test -n "$DUMPBIN" && break
5584  done
5585fi
5586if test -z "$DUMPBIN"; then
5587  ac_ct_DUMPBIN=$DUMPBIN
5588  for ac_prog in dumpbin "link -dump"
5589do
5590  # Extract the first word of "$ac_prog", so it can be a program name with args.
5591set dummy $ac_prog; ac_word=$2
5592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5593$as_echo_n "checking for $ac_word... " >&6; }
5594if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5595  $as_echo_n "(cached) " >&6
5596else
5597  if test -n "$ac_ct_DUMPBIN"; then
5598  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5599else
5600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5601for as_dir in $PATH
5602do
5603  IFS=$as_save_IFS
5604  test -z "$as_dir" && as_dir=.
5605    for ac_exec_ext in '' $ac_executable_extensions; do
5606  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5607    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5608    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5609    break 2
5610  fi
5611done
5612  done
5613IFS=$as_save_IFS
5614
5615fi
5616fi
5617ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5618if test -n "$ac_ct_DUMPBIN"; then
5619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5620$as_echo "$ac_ct_DUMPBIN" >&6; }
5621else
5622  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5623$as_echo "no" >&6; }
5624fi
5625
5626
5627  test -n "$ac_ct_DUMPBIN" && break
5628done
5629
5630  if test "x$ac_ct_DUMPBIN" = x; then
5631    DUMPBIN=":"
5632  else
5633    case $cross_compiling:$ac_tool_warned in
5634yes:)
5635{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5636$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5637ac_tool_warned=yes ;;
5638esac
5639    DUMPBIN=$ac_ct_DUMPBIN
5640  fi
5641fi
5642
5643    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5644    *COFF*)
5645      DUMPBIN="$DUMPBIN -symbols -headers"
5646      ;;
5647    *)
5648      DUMPBIN=:
5649      ;;
5650    esac
5651  fi
5652
5653  if test : != "$DUMPBIN"; then
5654    NM=$DUMPBIN
5655  fi
5656fi
5657test -z "$NM" && NM=nm
5658
5659
5660
5661
5662
5663
5664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5665$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5666if ${lt_cv_nm_interface+:} false; then :
5667  $as_echo_n "(cached) " >&6
5668else
5669  lt_cv_nm_interface="BSD nm"
5670  echo "int some_variable = 0;" > conftest.$ac_ext
5671  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5672  (eval "$ac_compile" 2>conftest.err)
5673  cat conftest.err >&5
5674  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5675  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5676  cat conftest.err >&5
5677  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5678  cat conftest.out >&5
5679  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5680    lt_cv_nm_interface="MS dumpbin"
5681  fi
5682  rm -f conftest*
5683fi
5684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5685$as_echo "$lt_cv_nm_interface" >&6; }
5686
5687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5688$as_echo_n "checking whether ln -s works... " >&6; }
5689LN_S=$as_ln_s
5690if test "$LN_S" = "ln -s"; then
5691  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5692$as_echo "yes" >&6; }
5693else
5694  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5695$as_echo "no, using $LN_S" >&6; }
5696fi
5697
5698# find the maximum length of command line arguments
5699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5700$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5701if ${lt_cv_sys_max_cmd_len+:} false; then :
5702  $as_echo_n "(cached) " >&6
5703else
5704    i=0
5705  teststring=ABCD
5706
5707  case $build_os in
5708  msdosdjgpp*)
5709    # On DJGPP, this test can blow up pretty badly due to problems in libc
5710    # (any single argument exceeding 2000 bytes causes a buffer overrun
5711    # during glob expansion).  Even if it were fixed, the result of this
5712    # check would be larger than it should be.
5713    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5714    ;;
5715
5716  gnu*)
5717    # Under GNU Hurd, this test is not required because there is
5718    # no limit to the length of command line arguments.
5719    # Libtool will interpret -1 as no limit whatsoever
5720    lt_cv_sys_max_cmd_len=-1;
5721    ;;
5722
5723  cygwin* | mingw* | cegcc*)
5724    # On Win9x/ME, this test blows up -- it succeeds, but takes
5725    # about 5 minutes as the teststring grows exponentially.
5726    # Worse, since 9x/ME are not pre-emptively multitasking,
5727    # you end up with a "frozen" computer, even though with patience
5728    # the test eventually succeeds (with a max line length of 256k).
5729    # Instead, let's just punt: use the minimum linelength reported by
5730    # all of the supported platforms: 8192 (on NT/2K/XP).
5731    lt_cv_sys_max_cmd_len=8192;
5732    ;;
5733
5734  mint*)
5735    # On MiNT this can take a long time and run out of memory.
5736    lt_cv_sys_max_cmd_len=8192;
5737    ;;
5738
5739  amigaos*)
5740    # On AmigaOS with pdksh, this test takes hours, literally.
5741    # So we just punt and use a minimum line length of 8192.
5742    lt_cv_sys_max_cmd_len=8192;
5743    ;;
5744
5745  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5746    # This has been around since 386BSD, at least.  Likely further.
5747    if test -x /sbin/sysctl; then
5748      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5749    elif test -x /usr/sbin/sysctl; then
5750      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5751    else
5752      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5753    fi
5754    # And add a safety zone
5755    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5756    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5757    ;;
5758
5759  interix*)
5760    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5761    lt_cv_sys_max_cmd_len=196608
5762    ;;
5763
5764  os2*)
5765    # The test takes a long time on OS/2.
5766    lt_cv_sys_max_cmd_len=8192
5767    ;;
5768
5769  osf*)
5770    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5771    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5772    # nice to cause kernel panics so lets avoid the loop below.
5773    # First set a reasonable default.
5774    lt_cv_sys_max_cmd_len=16384
5775    #
5776    if test -x /sbin/sysconfig; then
5777      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5778        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5779      esac
5780    fi
5781    ;;
5782  sco3.2v5*)
5783    lt_cv_sys_max_cmd_len=102400
5784    ;;
5785  sysv5* | sco5v6* | sysv4.2uw2*)
5786    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5787    if test -n "$kargmax"; then
5788      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5789    else
5790      lt_cv_sys_max_cmd_len=32768
5791    fi
5792    ;;
5793  *)
5794    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5795    if test -n "$lt_cv_sys_max_cmd_len" && \
5796       test undefined != "$lt_cv_sys_max_cmd_len"; then
5797      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5798      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5799    else
5800      # Make teststring a little bigger before we do anything with it.
5801      # a 1K string should be a reasonable start.
5802      for i in 1 2 3 4 5 6 7 8; do
5803        teststring=$teststring$teststring
5804      done
5805      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5806      # If test is not a shell built-in, we'll probably end up computing a
5807      # maximum length that is only half of the actual maximum length, but
5808      # we can't tell.
5809      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5810	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5811	      test 17 != "$i" # 1/2 MB should be enough
5812      do
5813        i=`expr $i + 1`
5814        teststring=$teststring$teststring
5815      done
5816      # Only check the string length outside the loop.
5817      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5818      teststring=
5819      # Add a significant safety factor because C++ compilers can tack on
5820      # massive amounts of additional arguments before passing them to the
5821      # linker.  It appears as though 1/2 is a usable value.
5822      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5823    fi
5824    ;;
5825  esac
5826
5827fi
5828
5829if test -n "$lt_cv_sys_max_cmd_len"; then
5830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5831$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5832else
5833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5834$as_echo "none" >&6; }
5835fi
5836max_cmd_len=$lt_cv_sys_max_cmd_len
5837
5838
5839
5840
5841
5842
5843: ${CP="cp -f"}
5844: ${MV="mv -f"}
5845: ${RM="rm -f"}
5846
5847if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5848  lt_unset=unset
5849else
5850  lt_unset=false
5851fi
5852
5853
5854
5855
5856
5857# test EBCDIC or ASCII
5858case `echo X|tr X '\101'` in
5859 A) # ASCII based system
5860    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5861  lt_SP2NL='tr \040 \012'
5862  lt_NL2SP='tr \015\012 \040\040'
5863  ;;
5864 *) # EBCDIC based system
5865  lt_SP2NL='tr \100 \n'
5866  lt_NL2SP='tr \r\n \100\100'
5867  ;;
5868esac
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5879$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5880if ${lt_cv_to_host_file_cmd+:} false; then :
5881  $as_echo_n "(cached) " >&6
5882else
5883  case $host in
5884  *-*-mingw* )
5885    case $build in
5886      *-*-mingw* ) # actually msys
5887        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5888        ;;
5889      *-*-cygwin* )
5890        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5891        ;;
5892      * ) # otherwise, assume *nix
5893        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5894        ;;
5895    esac
5896    ;;
5897  *-*-cygwin* )
5898    case $build in
5899      *-*-mingw* ) # actually msys
5900        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5901        ;;
5902      *-*-cygwin* )
5903        lt_cv_to_host_file_cmd=func_convert_file_noop
5904        ;;
5905      * ) # otherwise, assume *nix
5906        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5907        ;;
5908    esac
5909    ;;
5910  * ) # unhandled hosts (and "normal" native builds)
5911    lt_cv_to_host_file_cmd=func_convert_file_noop
5912    ;;
5913esac
5914
5915fi
5916
5917to_host_file_cmd=$lt_cv_to_host_file_cmd
5918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5919$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5920
5921
5922
5923
5924
5925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5926$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5927if ${lt_cv_to_tool_file_cmd+:} false; then :
5928  $as_echo_n "(cached) " >&6
5929else
5930  #assume ordinary cross tools, or native build.
5931lt_cv_to_tool_file_cmd=func_convert_file_noop
5932case $host in
5933  *-*-mingw* )
5934    case $build in
5935      *-*-mingw* ) # actually msys
5936        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5937        ;;
5938    esac
5939    ;;
5940esac
5941
5942fi
5943
5944to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5946$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5947
5948
5949
5950
5951
5952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5953$as_echo_n "checking for $LD option to reload object files... " >&6; }
5954if ${lt_cv_ld_reload_flag+:} false; then :
5955  $as_echo_n "(cached) " >&6
5956else
5957  lt_cv_ld_reload_flag='-r'
5958fi
5959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5960$as_echo "$lt_cv_ld_reload_flag" >&6; }
5961reload_flag=$lt_cv_ld_reload_flag
5962case $reload_flag in
5963"" | " "*) ;;
5964*) reload_flag=" $reload_flag" ;;
5965esac
5966reload_cmds='$LD$reload_flag -o $output$reload_objs'
5967case $host_os in
5968  cygwin* | mingw* | pw32* | cegcc*)
5969    if test yes != "$GCC"; then
5970      reload_cmds=false
5971    fi
5972    ;;
5973  darwin*)
5974    if test yes = "$GCC"; then
5975      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5976    else
5977      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5978    fi
5979    ;;
5980esac
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990if test -n "$ac_tool_prefix"; then
5991  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5992set dummy ${ac_tool_prefix}objdump; ac_word=$2
5993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5994$as_echo_n "checking for $ac_word... " >&6; }
5995if ${ac_cv_prog_OBJDUMP+:} false; then :
5996  $as_echo_n "(cached) " >&6
5997else
5998  if test -n "$OBJDUMP"; then
5999  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6000else
6001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6002for as_dir in $PATH
6003do
6004  IFS=$as_save_IFS
6005  test -z "$as_dir" && as_dir=.
6006    for ac_exec_ext in '' $ac_executable_extensions; do
6007  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6008    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6009    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6010    break 2
6011  fi
6012done
6013  done
6014IFS=$as_save_IFS
6015
6016fi
6017fi
6018OBJDUMP=$ac_cv_prog_OBJDUMP
6019if test -n "$OBJDUMP"; then
6020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6021$as_echo "$OBJDUMP" >&6; }
6022else
6023  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6024$as_echo "no" >&6; }
6025fi
6026
6027
6028fi
6029if test -z "$ac_cv_prog_OBJDUMP"; then
6030  ac_ct_OBJDUMP=$OBJDUMP
6031  # Extract the first word of "objdump", so it can be a program name with args.
6032set dummy objdump; ac_word=$2
6033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6034$as_echo_n "checking for $ac_word... " >&6; }
6035if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6036  $as_echo_n "(cached) " >&6
6037else
6038  if test -n "$ac_ct_OBJDUMP"; then
6039  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6040else
6041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6042for as_dir in $PATH
6043do
6044  IFS=$as_save_IFS
6045  test -z "$as_dir" && as_dir=.
6046    for ac_exec_ext in '' $ac_executable_extensions; do
6047  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6048    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6049    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6050    break 2
6051  fi
6052done
6053  done
6054IFS=$as_save_IFS
6055
6056fi
6057fi
6058ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6059if test -n "$ac_ct_OBJDUMP"; then
6060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6061$as_echo "$ac_ct_OBJDUMP" >&6; }
6062else
6063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6064$as_echo "no" >&6; }
6065fi
6066
6067  if test "x$ac_ct_OBJDUMP" = x; then
6068    OBJDUMP="false"
6069  else
6070    case $cross_compiling:$ac_tool_warned in
6071yes:)
6072{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6073$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6074ac_tool_warned=yes ;;
6075esac
6076    OBJDUMP=$ac_ct_OBJDUMP
6077  fi
6078else
6079  OBJDUMP="$ac_cv_prog_OBJDUMP"
6080fi
6081
6082test -z "$OBJDUMP" && OBJDUMP=objdump
6083
6084
6085
6086
6087
6088
6089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6090$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6091if ${lt_cv_deplibs_check_method+:} false; then :
6092  $as_echo_n "(cached) " >&6
6093else
6094  lt_cv_file_magic_cmd='$MAGIC_CMD'
6095lt_cv_file_magic_test_file=
6096lt_cv_deplibs_check_method='unknown'
6097# Need to set the preceding variable on all platforms that support
6098# interlibrary dependencies.
6099# 'none' -- dependencies not supported.
6100# 'unknown' -- same as none, but documents that we really don't know.
6101# 'pass_all' -- all dependencies passed with no checks.
6102# 'test_compile' -- check by making test program.
6103# 'file_magic [[regex]]' -- check by looking for files in library path
6104# that responds to the $file_magic_cmd with a given extended regex.
6105# If you have 'file' or equivalent on your system and you're not sure
6106# whether 'pass_all' will *always* work, you probably want this one.
6107
6108case $host_os in
6109aix[4-9]*)
6110  lt_cv_deplibs_check_method=pass_all
6111  ;;
6112
6113beos*)
6114  lt_cv_deplibs_check_method=pass_all
6115  ;;
6116
6117bsdi[45]*)
6118  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6119  lt_cv_file_magic_cmd='/usr/bin/file -L'
6120  lt_cv_file_magic_test_file=/shlib/libc.so
6121  ;;
6122
6123cygwin*)
6124  # func_win32_libid is a shell function defined in ltmain.sh
6125  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6126  lt_cv_file_magic_cmd='func_win32_libid'
6127  ;;
6128
6129mingw* | pw32*)
6130  # Base MSYS/MinGW do not provide the 'file' command needed by
6131  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6132  # unless we find 'file', for example because we are cross-compiling.
6133  if ( file / ) >/dev/null 2>&1; then
6134    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6135    lt_cv_file_magic_cmd='func_win32_libid'
6136  else
6137    # Keep this pattern in sync with the one in func_win32_libid.
6138    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6139    lt_cv_file_magic_cmd='$OBJDUMP -f'
6140  fi
6141  ;;
6142
6143cegcc*)
6144  # use the weaker test based on 'objdump'. See mingw*.
6145  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6146  lt_cv_file_magic_cmd='$OBJDUMP -f'
6147  ;;
6148
6149darwin* | rhapsody*)
6150  lt_cv_deplibs_check_method=pass_all
6151  ;;
6152
6153freebsd* | dragonfly*)
6154  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6155    case $host_cpu in
6156    i*86 )
6157      # Not sure whether the presence of OpenBSD here was a mistake.
6158      # Let's accept both of them until this is cleared up.
6159      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6160      lt_cv_file_magic_cmd=/usr/bin/file
6161      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6162      ;;
6163    esac
6164  else
6165    lt_cv_deplibs_check_method=pass_all
6166  fi
6167  ;;
6168
6169haiku*)
6170  lt_cv_deplibs_check_method=pass_all
6171  ;;
6172
6173hpux10.20* | hpux11*)
6174  lt_cv_file_magic_cmd=/usr/bin/file
6175  case $host_cpu in
6176  ia64*)
6177    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6178    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6179    ;;
6180  hppa*64*)
6181    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]'
6182    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6183    ;;
6184  *)
6185    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6186    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6187    ;;
6188  esac
6189  ;;
6190
6191interix[3-9]*)
6192  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6193  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6194  ;;
6195
6196irix5* | irix6* | nonstopux*)
6197  case $LD in
6198  *-32|*"-32 ") libmagic=32-bit;;
6199  *-n32|*"-n32 ") libmagic=N32;;
6200  *-64|*"-64 ") libmagic=64-bit;;
6201  *) libmagic=never-match;;
6202  esac
6203  lt_cv_deplibs_check_method=pass_all
6204  ;;
6205
6206# This must be glibc/ELF.
6207linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6208  lt_cv_deplibs_check_method=pass_all
6209  ;;
6210
6211netbsd* | netbsdelf*-gnu)
6212  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6213    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6214  else
6215    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6216  fi
6217  ;;
6218
6219newos6*)
6220  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6221  lt_cv_file_magic_cmd=/usr/bin/file
6222  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6223  ;;
6224
6225*nto* | *qnx*)
6226  lt_cv_deplibs_check_method=pass_all
6227  ;;
6228
6229openbsd* | bitrig*)
6230  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6231    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6232  else
6233    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6234  fi
6235  ;;
6236
6237osf3* | osf4* | osf5*)
6238  lt_cv_deplibs_check_method=pass_all
6239  ;;
6240
6241rdos*)
6242  lt_cv_deplibs_check_method=pass_all
6243  ;;
6244
6245solaris*)
6246  lt_cv_deplibs_check_method=pass_all
6247  ;;
6248
6249sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6250  lt_cv_deplibs_check_method=pass_all
6251  ;;
6252
6253sysv4 | sysv4.3*)
6254  case $host_vendor in
6255  motorola)
6256    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]'
6257    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6258    ;;
6259  ncr)
6260    lt_cv_deplibs_check_method=pass_all
6261    ;;
6262  sequent)
6263    lt_cv_file_magic_cmd='/bin/file'
6264    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6265    ;;
6266  sni)
6267    lt_cv_file_magic_cmd='/bin/file'
6268    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6269    lt_cv_file_magic_test_file=/lib/libc.so
6270    ;;
6271  siemens)
6272    lt_cv_deplibs_check_method=pass_all
6273    ;;
6274  pc)
6275    lt_cv_deplibs_check_method=pass_all
6276    ;;
6277  esac
6278  ;;
6279
6280tpf*)
6281  lt_cv_deplibs_check_method=pass_all
6282  ;;
6283os2*)
6284  lt_cv_deplibs_check_method=pass_all
6285  ;;
6286esac
6287
6288fi
6289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6290$as_echo "$lt_cv_deplibs_check_method" >&6; }
6291
6292file_magic_glob=
6293want_nocaseglob=no
6294if test "$build" = "$host"; then
6295  case $host_os in
6296  mingw* | pw32*)
6297    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6298      want_nocaseglob=yes
6299    else
6300      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6301    fi
6302    ;;
6303  esac
6304fi
6305
6306file_magic_cmd=$lt_cv_file_magic_cmd
6307deplibs_check_method=$lt_cv_deplibs_check_method
6308test -z "$deplibs_check_method" && deplibs_check_method=unknown
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331if test -n "$ac_tool_prefix"; then
6332  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6333set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6335$as_echo_n "checking for $ac_word... " >&6; }
6336if ${ac_cv_prog_DLLTOOL+:} false; then :
6337  $as_echo_n "(cached) " >&6
6338else
6339  if test -n "$DLLTOOL"; then
6340  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6341else
6342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6343for as_dir in $PATH
6344do
6345  IFS=$as_save_IFS
6346  test -z "$as_dir" && as_dir=.
6347    for ac_exec_ext in '' $ac_executable_extensions; do
6348  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6349    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6350    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6351    break 2
6352  fi
6353done
6354  done
6355IFS=$as_save_IFS
6356
6357fi
6358fi
6359DLLTOOL=$ac_cv_prog_DLLTOOL
6360if test -n "$DLLTOOL"; then
6361  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6362$as_echo "$DLLTOOL" >&6; }
6363else
6364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6365$as_echo "no" >&6; }
6366fi
6367
6368
6369fi
6370if test -z "$ac_cv_prog_DLLTOOL"; then
6371  ac_ct_DLLTOOL=$DLLTOOL
6372  # Extract the first word of "dlltool", so it can be a program name with args.
6373set dummy dlltool; ac_word=$2
6374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6375$as_echo_n "checking for $ac_word... " >&6; }
6376if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6377  $as_echo_n "(cached) " >&6
6378else
6379  if test -n "$ac_ct_DLLTOOL"; then
6380  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6381else
6382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6383for as_dir in $PATH
6384do
6385  IFS=$as_save_IFS
6386  test -z "$as_dir" && as_dir=.
6387    for ac_exec_ext in '' $ac_executable_extensions; do
6388  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6389    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6390    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6391    break 2
6392  fi
6393done
6394  done
6395IFS=$as_save_IFS
6396
6397fi
6398fi
6399ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6400if test -n "$ac_ct_DLLTOOL"; then
6401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6402$as_echo "$ac_ct_DLLTOOL" >&6; }
6403else
6404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6405$as_echo "no" >&6; }
6406fi
6407
6408  if test "x$ac_ct_DLLTOOL" = x; then
6409    DLLTOOL="false"
6410  else
6411    case $cross_compiling:$ac_tool_warned in
6412yes:)
6413{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6414$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6415ac_tool_warned=yes ;;
6416esac
6417    DLLTOOL=$ac_ct_DLLTOOL
6418  fi
6419else
6420  DLLTOOL="$ac_cv_prog_DLLTOOL"
6421fi
6422
6423test -z "$DLLTOOL" && DLLTOOL=dlltool
6424
6425
6426
6427
6428
6429
6430
6431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6432$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6433if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6434  $as_echo_n "(cached) " >&6
6435else
6436  lt_cv_sharedlib_from_linklib_cmd='unknown'
6437
6438case $host_os in
6439cygwin* | mingw* | pw32* | cegcc*)
6440  # two different shell functions defined in ltmain.sh;
6441  # decide which one to use based on capabilities of $DLLTOOL
6442  case `$DLLTOOL --help 2>&1` in
6443  *--identify-strict*)
6444    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6445    ;;
6446  *)
6447    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6448    ;;
6449  esac
6450  ;;
6451*)
6452  # fallback: assume linklib IS sharedlib
6453  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6454  ;;
6455esac
6456
6457fi
6458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6459$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6460sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6461test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6462
6463
6464
6465
6466
6467
6468
6469if test -n "$ac_tool_prefix"; then
6470  for ac_prog in ar
6471  do
6472    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6473set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6475$as_echo_n "checking for $ac_word... " >&6; }
6476if ${ac_cv_prog_AR+:} false; then :
6477  $as_echo_n "(cached) " >&6
6478else
6479  if test -n "$AR"; then
6480  ac_cv_prog_AR="$AR" # Let the user override the test.
6481else
6482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6483for as_dir in $PATH
6484do
6485  IFS=$as_save_IFS
6486  test -z "$as_dir" && as_dir=.
6487    for ac_exec_ext in '' $ac_executable_extensions; do
6488  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6489    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6490    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6491    break 2
6492  fi
6493done
6494  done
6495IFS=$as_save_IFS
6496
6497fi
6498fi
6499AR=$ac_cv_prog_AR
6500if test -n "$AR"; then
6501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6502$as_echo "$AR" >&6; }
6503else
6504  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6505$as_echo "no" >&6; }
6506fi
6507
6508
6509    test -n "$AR" && break
6510  done
6511fi
6512if test -z "$AR"; then
6513  ac_ct_AR=$AR
6514  for ac_prog in ar
6515do
6516  # Extract the first word of "$ac_prog", so it can be a program name with args.
6517set dummy $ac_prog; ac_word=$2
6518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6519$as_echo_n "checking for $ac_word... " >&6; }
6520if ${ac_cv_prog_ac_ct_AR+:} false; then :
6521  $as_echo_n "(cached) " >&6
6522else
6523  if test -n "$ac_ct_AR"; then
6524  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6525else
6526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6527for as_dir in $PATH
6528do
6529  IFS=$as_save_IFS
6530  test -z "$as_dir" && as_dir=.
6531    for ac_exec_ext in '' $ac_executable_extensions; do
6532  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6533    ac_cv_prog_ac_ct_AR="$ac_prog"
6534    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6535    break 2
6536  fi
6537done
6538  done
6539IFS=$as_save_IFS
6540
6541fi
6542fi
6543ac_ct_AR=$ac_cv_prog_ac_ct_AR
6544if test -n "$ac_ct_AR"; then
6545  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6546$as_echo "$ac_ct_AR" >&6; }
6547else
6548  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6549$as_echo "no" >&6; }
6550fi
6551
6552
6553  test -n "$ac_ct_AR" && break
6554done
6555
6556  if test "x$ac_ct_AR" = x; then
6557    AR="false"
6558  else
6559    case $cross_compiling:$ac_tool_warned in
6560yes:)
6561{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6562$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6563ac_tool_warned=yes ;;
6564esac
6565    AR=$ac_ct_AR
6566  fi
6567fi
6568
6569: ${AR=ar}
6570: ${AR_FLAGS=cru}
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6583$as_echo_n "checking for archiver @FILE support... " >&6; }
6584if ${lt_cv_ar_at_file+:} false; then :
6585  $as_echo_n "(cached) " >&6
6586else
6587  lt_cv_ar_at_file=no
6588   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6589/* end confdefs.h.  */
6590
6591int
6592main ()
6593{
6594
6595  ;
6596  return 0;
6597}
6598_ACEOF
6599if ac_fn_c_try_compile "$LINENO"; then :
6600  echo conftest.$ac_objext > conftest.lst
6601      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6602      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6603  (eval $lt_ar_try) 2>&5
6604  ac_status=$?
6605  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6606  test $ac_status = 0; }
6607      if test 0 -eq "$ac_status"; then
6608	# Ensure the archiver fails upon bogus file names.
6609	rm -f conftest.$ac_objext libconftest.a
6610	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6611  (eval $lt_ar_try) 2>&5
6612  ac_status=$?
6613  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6614  test $ac_status = 0; }
6615	if test 0 -ne "$ac_status"; then
6616          lt_cv_ar_at_file=@
6617        fi
6618      fi
6619      rm -f conftest.* libconftest.a
6620
6621fi
6622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6623
6624fi
6625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6626$as_echo "$lt_cv_ar_at_file" >&6; }
6627
6628if test no = "$lt_cv_ar_at_file"; then
6629  archiver_list_spec=
6630else
6631  archiver_list_spec=$lt_cv_ar_at_file
6632fi
6633
6634
6635
6636
6637
6638
6639
6640if test -n "$ac_tool_prefix"; then
6641  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6642set dummy ${ac_tool_prefix}strip; 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_STRIP+:} false; then :
6646  $as_echo_n "(cached) " >&6
6647else
6648  if test -n "$STRIP"; then
6649  ac_cv_prog_STRIP="$STRIP" # 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_STRIP="${ac_tool_prefix}strip"
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
6668STRIP=$ac_cv_prog_STRIP
6669if test -n "$STRIP"; then
6670  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6671$as_echo "$STRIP" >&6; }
6672else
6673  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6674$as_echo "no" >&6; }
6675fi
6676
6677
6678fi
6679if test -z "$ac_cv_prog_STRIP"; then
6680  ac_ct_STRIP=$STRIP
6681  # Extract the first word of "strip", so it can be a program name with args.
6682set dummy strip; ac_word=$2
6683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6684$as_echo_n "checking for $ac_word... " >&6; }
6685if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6686  $as_echo_n "(cached) " >&6
6687else
6688  if test -n "$ac_ct_STRIP"; then
6689  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6690else
6691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6692for as_dir in $PATH
6693do
6694  IFS=$as_save_IFS
6695  test -z "$as_dir" && as_dir=.
6696    for ac_exec_ext in '' $ac_executable_extensions; do
6697  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6698    ac_cv_prog_ac_ct_STRIP="strip"
6699    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6700    break 2
6701  fi
6702done
6703  done
6704IFS=$as_save_IFS
6705
6706fi
6707fi
6708ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6709if test -n "$ac_ct_STRIP"; then
6710  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6711$as_echo "$ac_ct_STRIP" >&6; }
6712else
6713  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6714$as_echo "no" >&6; }
6715fi
6716
6717  if test "x$ac_ct_STRIP" = x; then
6718    STRIP=":"
6719  else
6720    case $cross_compiling:$ac_tool_warned in
6721yes:)
6722{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6723$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6724ac_tool_warned=yes ;;
6725esac
6726    STRIP=$ac_ct_STRIP
6727  fi
6728else
6729  STRIP="$ac_cv_prog_STRIP"
6730fi
6731
6732test -z "$STRIP" && STRIP=:
6733
6734
6735
6736
6737
6738
6739if test -n "$ac_tool_prefix"; then
6740  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6741set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6743$as_echo_n "checking for $ac_word... " >&6; }
6744if ${ac_cv_prog_RANLIB+:} false; then :
6745  $as_echo_n "(cached) " >&6
6746else
6747  if test -n "$RANLIB"; then
6748  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6749else
6750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6751for as_dir in $PATH
6752do
6753  IFS=$as_save_IFS
6754  test -z "$as_dir" && as_dir=.
6755    for ac_exec_ext in '' $ac_executable_extensions; do
6756  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6757    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6758    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6759    break 2
6760  fi
6761done
6762  done
6763IFS=$as_save_IFS
6764
6765fi
6766fi
6767RANLIB=$ac_cv_prog_RANLIB
6768if test -n "$RANLIB"; then
6769  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6770$as_echo "$RANLIB" >&6; }
6771else
6772  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6773$as_echo "no" >&6; }
6774fi
6775
6776
6777fi
6778if test -z "$ac_cv_prog_RANLIB"; then
6779  ac_ct_RANLIB=$RANLIB
6780  # Extract the first word of "ranlib", so it can be a program name with args.
6781set dummy ranlib; ac_word=$2
6782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6783$as_echo_n "checking for $ac_word... " >&6; }
6784if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6785  $as_echo_n "(cached) " >&6
6786else
6787  if test -n "$ac_ct_RANLIB"; then
6788  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6789else
6790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6791for as_dir in $PATH
6792do
6793  IFS=$as_save_IFS
6794  test -z "$as_dir" && as_dir=.
6795    for ac_exec_ext in '' $ac_executable_extensions; do
6796  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6797    ac_cv_prog_ac_ct_RANLIB="ranlib"
6798    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6799    break 2
6800  fi
6801done
6802  done
6803IFS=$as_save_IFS
6804
6805fi
6806fi
6807ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6808if test -n "$ac_ct_RANLIB"; then
6809  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6810$as_echo "$ac_ct_RANLIB" >&6; }
6811else
6812  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6813$as_echo "no" >&6; }
6814fi
6815
6816  if test "x$ac_ct_RANLIB" = x; then
6817    RANLIB=":"
6818  else
6819    case $cross_compiling:$ac_tool_warned in
6820yes:)
6821{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6822$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6823ac_tool_warned=yes ;;
6824esac
6825    RANLIB=$ac_ct_RANLIB
6826  fi
6827else
6828  RANLIB="$ac_cv_prog_RANLIB"
6829fi
6830
6831test -z "$RANLIB" && RANLIB=:
6832
6833
6834
6835
6836
6837
6838# Determine commands to create old-style static archives.
6839old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6840old_postinstall_cmds='chmod 644 $oldlib'
6841old_postuninstall_cmds=
6842
6843if test -n "$RANLIB"; then
6844  case $host_os in
6845  bitrig* | openbsd*)
6846    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6847    ;;
6848  *)
6849    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6850    ;;
6851  esac
6852  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6853fi
6854
6855case $host_os in
6856  darwin*)
6857    lock_old_archive_extraction=yes ;;
6858  *)
6859    lock_old_archive_extraction=no ;;
6860esac
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900# If no C compiler was specified, use CC.
6901LTCC=${LTCC-"$CC"}
6902
6903# If no C compiler flags were specified, use CFLAGS.
6904LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6905
6906# Allow CC to be a program name with arguments.
6907compiler=$CC
6908
6909
6910# Check for command to grab the raw symbol name followed by C symbol from nm.
6911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6912$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6913if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6914  $as_echo_n "(cached) " >&6
6915else
6916
6917# These are sane defaults that work on at least a few old systems.
6918# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6919
6920# Character class describing NM global symbol codes.
6921symcode='[BCDEGRST]'
6922
6923# Regexp to match symbols that can be accessed directly from C.
6924sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6925
6926# Define system-specific variables.
6927case $host_os in
6928aix*)
6929  symcode='[BCDT]'
6930  ;;
6931cygwin* | mingw* | pw32* | cegcc*)
6932  symcode='[ABCDGISTW]'
6933  ;;
6934hpux*)
6935  if test ia64 = "$host_cpu"; then
6936    symcode='[ABCDEGRST]'
6937  fi
6938  ;;
6939irix* | nonstopux*)
6940  symcode='[BCDEGRST]'
6941  ;;
6942osf*)
6943  symcode='[BCDEGQRST]'
6944  ;;
6945solaris*)
6946  symcode='[BDRT]'
6947  ;;
6948sco3.2v5*)
6949  symcode='[DT]'
6950  ;;
6951sysv4.2uw2*)
6952  symcode='[DT]'
6953  ;;
6954sysv5* | sco5v6* | unixware* | OpenUNIX*)
6955  symcode='[ABDT]'
6956  ;;
6957sysv4)
6958  symcode='[DFNSTU]'
6959  ;;
6960esac
6961
6962# If we're using GNU nm, then use its standard symbol codes.
6963case `$NM -V 2>&1` in
6964*GNU* | *'with BFD'*)
6965  symcode='[ABCDGIRSTW]' ;;
6966esac
6967
6968if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6969  # Gets list of data symbols to import.
6970  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6971  # Adjust the below global symbol transforms to fixup imported variables.
6972  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6973  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6974  lt_c_name_lib_hook="\
6975  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6976  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6977else
6978  # Disable hooks by default.
6979  lt_cv_sys_global_symbol_to_import=
6980  lt_cdecl_hook=
6981  lt_c_name_hook=
6982  lt_c_name_lib_hook=
6983fi
6984
6985# Transform an extracted symbol line into a proper C declaration.
6986# Some systems (esp. on ia64) link data and code symbols differently,
6987# so use this general approach.
6988lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6989$lt_cdecl_hook\
6990" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6991" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6992
6993# Transform an extracted symbol line into symbol name and symbol address
6994lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6995$lt_c_name_hook\
6996" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6997" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6998
6999# Transform an extracted symbol line into symbol name with lib prefix and
7000# symbol address.
7001lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7002$lt_c_name_lib_hook\
7003" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7004" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7005" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7006
7007# Handle CRLF in mingw tool chain
7008opt_cr=
7009case $build_os in
7010mingw*)
7011  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7012  ;;
7013esac
7014
7015# Try without a prefix underscore, then with it.
7016for ac_symprfx in "" "_"; do
7017
7018  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7019  symxfrm="\\1 $ac_symprfx\\2 \\2"
7020
7021  # Write the raw and C identifiers.
7022  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7023    # Fake it for dumpbin and say T for any non-static function,
7024    # D for any global variable and I for any imported variable.
7025    # Also find C++ and __fastcall symbols from MSVC++,
7026    # which start with @ or ?.
7027    lt_cv_sys_global_symbol_pipe="$AWK '"\
7028"     {last_section=section; section=\$ 3};"\
7029"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7030"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7031"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7032"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7033"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7034"     \$ 0!~/External *\|/{next};"\
7035"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7036"     {if(hide[section]) next};"\
7037"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7038"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7039"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7040"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7041"     ' prfx=^$ac_symprfx"
7042  else
7043    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7044  fi
7045  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7046
7047  # Check to see that the pipe works correctly.
7048  pipe_works=no
7049
7050  rm -f conftest*
7051  cat > conftest.$ac_ext <<_LT_EOF
7052#ifdef __cplusplus
7053extern "C" {
7054#endif
7055char nm_test_var;
7056void nm_test_func(void);
7057void nm_test_func(void){}
7058#ifdef __cplusplus
7059}
7060#endif
7061int main(){nm_test_var='a';nm_test_func();return(0);}
7062_LT_EOF
7063
7064  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7065  (eval $ac_compile) 2>&5
7066  ac_status=$?
7067  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7068  test $ac_status = 0; }; then
7069    # Now try to grab the symbols.
7070    nlist=conftest.nm
7071    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7072  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7073  ac_status=$?
7074  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7075  test $ac_status = 0; } && test -s "$nlist"; then
7076      # Try sorting and uniquifying the output.
7077      if sort "$nlist" | uniq > "$nlist"T; then
7078	mv -f "$nlist"T "$nlist"
7079      else
7080	rm -f "$nlist"T
7081      fi
7082
7083      # Make sure that we snagged all the symbols we need.
7084      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7085	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7086	  cat <<_LT_EOF > conftest.$ac_ext
7087/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7088#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7089/* DATA imports from DLLs on WIN32 can't be const, because runtime
7090   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7091# define LT_DLSYM_CONST
7092#elif defined __osf__
7093/* This system does not cope well with relocations in const data.  */
7094# define LT_DLSYM_CONST
7095#else
7096# define LT_DLSYM_CONST const
7097#endif
7098
7099#ifdef __cplusplus
7100extern "C" {
7101#endif
7102
7103_LT_EOF
7104	  # Now generate the symbol file.
7105	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7106
7107	  cat <<_LT_EOF >> conftest.$ac_ext
7108
7109/* The mapping between symbol names and symbols.  */
7110LT_DLSYM_CONST struct {
7111  const char *name;
7112  void       *address;
7113}
7114lt__PROGRAM__LTX_preloaded_symbols[] =
7115{
7116  { "@PROGRAM@", (void *) 0 },
7117_LT_EOF
7118	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7119	  cat <<\_LT_EOF >> conftest.$ac_ext
7120  {0, (void *) 0}
7121};
7122
7123/* This works around a problem in FreeBSD linker */
7124#ifdef FREEBSD_WORKAROUND
7125static const void *lt_preloaded_setup() {
7126  return lt__PROGRAM__LTX_preloaded_symbols;
7127}
7128#endif
7129
7130#ifdef __cplusplus
7131}
7132#endif
7133_LT_EOF
7134	  # Now try linking the two files.
7135	  mv conftest.$ac_objext conftstm.$ac_objext
7136	  lt_globsym_save_LIBS=$LIBS
7137	  lt_globsym_save_CFLAGS=$CFLAGS
7138	  LIBS=conftstm.$ac_objext
7139	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7140	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7141  (eval $ac_link) 2>&5
7142  ac_status=$?
7143  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7144  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7145	    pipe_works=yes
7146	  fi
7147	  LIBS=$lt_globsym_save_LIBS
7148	  CFLAGS=$lt_globsym_save_CFLAGS
7149	else
7150	  echo "cannot find nm_test_func in $nlist" >&5
7151	fi
7152      else
7153	echo "cannot find nm_test_var in $nlist" >&5
7154      fi
7155    else
7156      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7157    fi
7158  else
7159    echo "$progname: failed program was:" >&5
7160    cat conftest.$ac_ext >&5
7161  fi
7162  rm -rf conftest* conftst*
7163
7164  # Do not use the global_symbol_pipe unless it works.
7165  if test yes = "$pipe_works"; then
7166    break
7167  else
7168    lt_cv_sys_global_symbol_pipe=
7169  fi
7170done
7171
7172fi
7173
7174if test -z "$lt_cv_sys_global_symbol_pipe"; then
7175  lt_cv_sys_global_symbol_to_cdecl=
7176fi
7177if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7178  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7179$as_echo "failed" >&6; }
7180else
7181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7182$as_echo "ok" >&6; }
7183fi
7184
7185# Response file support.
7186if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7187  nm_file_list_spec='@'
7188elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7189  nm_file_list_spec='@'
7190fi
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7229$as_echo_n "checking for sysroot... " >&6; }
7230
7231# Check whether --with-sysroot was given.
7232if test "${with_sysroot+set}" = set; then :
7233  withval=$with_sysroot;
7234else
7235  with_sysroot=no
7236fi
7237
7238
7239lt_sysroot=
7240case $with_sysroot in #(
7241 yes)
7242   if test yes = "$GCC"; then
7243     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7244   fi
7245   ;; #(
7246 /*)
7247   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7248   ;; #(
7249 no|'')
7250   ;; #(
7251 *)
7252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7253$as_echo "$with_sysroot" >&6; }
7254   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7255   ;;
7256esac
7257
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7259$as_echo "${lt_sysroot:-no}" >&6; }
7260
7261
7262
7263
7264
7265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7266$as_echo_n "checking for a working dd... " >&6; }
7267if ${ac_cv_path_lt_DD+:} false; then :
7268  $as_echo_n "(cached) " >&6
7269else
7270  printf 0123456789abcdef0123456789abcdef >conftest.i
7271cat conftest.i conftest.i >conftest2.i
7272: ${lt_DD:=$DD}
7273if test -z "$lt_DD"; then
7274  ac_path_lt_DD_found=false
7275  # Loop through the user's path and test for each of PROGNAME-LIST
7276  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7277for as_dir in $PATH
7278do
7279  IFS=$as_save_IFS
7280  test -z "$as_dir" && as_dir=.
7281    for ac_prog in dd; do
7282    for ac_exec_ext in '' $ac_executable_extensions; do
7283      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7284      as_fn_executable_p "$ac_path_lt_DD" || continue
7285if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7286  cmp -s conftest.i conftest.out \
7287  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7288fi
7289      $ac_path_lt_DD_found && break 3
7290    done
7291  done
7292  done
7293IFS=$as_save_IFS
7294  if test -z "$ac_cv_path_lt_DD"; then
7295    :
7296  fi
7297else
7298  ac_cv_path_lt_DD=$lt_DD
7299fi
7300
7301rm -f conftest.i conftest2.i conftest.out
7302fi
7303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7304$as_echo "$ac_cv_path_lt_DD" >&6; }
7305
7306
7307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7308$as_echo_n "checking how to truncate binary pipes... " >&6; }
7309if ${lt_cv_truncate_bin+:} false; then :
7310  $as_echo_n "(cached) " >&6
7311else
7312  printf 0123456789abcdef0123456789abcdef >conftest.i
7313cat conftest.i conftest.i >conftest2.i
7314lt_cv_truncate_bin=
7315if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7316  cmp -s conftest.i conftest.out \
7317  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7318fi
7319rm -f conftest.i conftest2.i conftest.out
7320test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7321fi
7322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7323$as_echo "$lt_cv_truncate_bin" >&6; }
7324
7325
7326
7327
7328
7329
7330
7331# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7332func_cc_basename ()
7333{
7334    for cc_temp in $*""; do
7335      case $cc_temp in
7336        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7337        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7338        \-*) ;;
7339        *) break;;
7340      esac
7341    done
7342    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7343}
7344
7345# Check whether --enable-libtool-lock was given.
7346if test "${enable_libtool_lock+set}" = set; then :
7347  enableval=$enable_libtool_lock;
7348fi
7349
7350test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7351
7352# Some flags need to be propagated to the compiler or linker for good
7353# libtool support.
7354case $host in
7355ia64-*-hpux*)
7356  # Find out what ABI is being produced by ac_compile, and set mode
7357  # options accordingly.
7358  echo 'int i;' > conftest.$ac_ext
7359  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7360  (eval $ac_compile) 2>&5
7361  ac_status=$?
7362  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7363  test $ac_status = 0; }; then
7364    case `/usr/bin/file conftest.$ac_objext` in
7365      *ELF-32*)
7366	HPUX_IA64_MODE=32
7367	;;
7368      *ELF-64*)
7369	HPUX_IA64_MODE=64
7370	;;
7371    esac
7372  fi
7373  rm -rf conftest*
7374  ;;
7375*-*-irix6*)
7376  # Find out what ABI is being produced by ac_compile, and set linker
7377  # options accordingly.
7378  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7379  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7380  (eval $ac_compile) 2>&5
7381  ac_status=$?
7382  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7383  test $ac_status = 0; }; then
7384    if test yes = "$lt_cv_prog_gnu_ld"; then
7385      case `/usr/bin/file conftest.$ac_objext` in
7386	*32-bit*)
7387	  LD="${LD-ld} -melf32bsmip"
7388	  ;;
7389	*N32*)
7390	  LD="${LD-ld} -melf32bmipn32"
7391	  ;;
7392	*64-bit*)
7393	  LD="${LD-ld} -melf64bmip"
7394	;;
7395      esac
7396    else
7397      case `/usr/bin/file conftest.$ac_objext` in
7398	*32-bit*)
7399	  LD="${LD-ld} -32"
7400	  ;;
7401	*N32*)
7402	  LD="${LD-ld} -n32"
7403	  ;;
7404	*64-bit*)
7405	  LD="${LD-ld} -64"
7406	  ;;
7407      esac
7408    fi
7409  fi
7410  rm -rf conftest*
7411  ;;
7412
7413mips64*-*linux*)
7414  # Find out what ABI is being produced by ac_compile, and set linker
7415  # options accordingly.
7416  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7417  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7418  (eval $ac_compile) 2>&5
7419  ac_status=$?
7420  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7421  test $ac_status = 0; }; then
7422    emul=elf
7423    case `/usr/bin/file conftest.$ac_objext` in
7424      *32-bit*)
7425	emul="${emul}32"
7426	;;
7427      *64-bit*)
7428	emul="${emul}64"
7429	;;
7430    esac
7431    case `/usr/bin/file conftest.$ac_objext` in
7432      *MSB*)
7433	emul="${emul}btsmip"
7434	;;
7435      *LSB*)
7436	emul="${emul}ltsmip"
7437	;;
7438    esac
7439    case `/usr/bin/file conftest.$ac_objext` in
7440      *N32*)
7441	emul="${emul}n32"
7442	;;
7443    esac
7444    LD="${LD-ld} -m $emul"
7445  fi
7446  rm -rf conftest*
7447  ;;
7448
7449x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7450s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7451  # Find out what ABI is being produced by ac_compile, and set linker
7452  # options accordingly.  Note that the listed cases only cover the
7453  # situations where additional linker options are needed (such as when
7454  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7455  # vice versa); the common cases where no linker options are needed do
7456  # not appear in the list.
7457  echo 'int i;' > conftest.$ac_ext
7458  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7459  (eval $ac_compile) 2>&5
7460  ac_status=$?
7461  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7462  test $ac_status = 0; }; then
7463    case `/usr/bin/file conftest.o` in
7464      *32-bit*)
7465	case $host in
7466	  x86_64-*kfreebsd*-gnu)
7467	    LD="${LD-ld} -m elf_i386_fbsd"
7468	    ;;
7469	  x86_64-*linux*)
7470	    case `/usr/bin/file conftest.o` in
7471	      *x86-64*)
7472		LD="${LD-ld} -m elf32_x86_64"
7473		;;
7474	      *)
7475		LD="${LD-ld} -m elf_i386"
7476		;;
7477	    esac
7478	    ;;
7479	  powerpc64le-*linux*)
7480	    LD="${LD-ld} -m elf32lppclinux"
7481	    ;;
7482	  powerpc64-*linux*)
7483	    LD="${LD-ld} -m elf32ppclinux"
7484	    ;;
7485	  s390x-*linux*)
7486	    LD="${LD-ld} -m elf_s390"
7487	    ;;
7488	  sparc64-*linux*)
7489	    LD="${LD-ld} -m elf32_sparc"
7490	    ;;
7491	esac
7492	;;
7493      *64-bit*)
7494	case $host in
7495	  x86_64-*kfreebsd*-gnu)
7496	    LD="${LD-ld} -m elf_x86_64_fbsd"
7497	    ;;
7498	  x86_64-*linux*)
7499	    LD="${LD-ld} -m elf_x86_64"
7500	    ;;
7501	  powerpcle-*linux*)
7502	    LD="${LD-ld} -m elf64lppc"
7503	    ;;
7504	  powerpc-*linux*)
7505	    LD="${LD-ld} -m elf64ppc"
7506	    ;;
7507	  s390*-*linux*|s390*-*tpf*)
7508	    LD="${LD-ld} -m elf64_s390"
7509	    ;;
7510	  sparc*-*linux*)
7511	    LD="${LD-ld} -m elf64_sparc"
7512	    ;;
7513	esac
7514	;;
7515    esac
7516  fi
7517  rm -rf conftest*
7518  ;;
7519
7520*-*-sco3.2v5*)
7521  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7522  SAVE_CFLAGS=$CFLAGS
7523  CFLAGS="$CFLAGS -belf"
7524  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7525$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7526if ${lt_cv_cc_needs_belf+:} false; then :
7527  $as_echo_n "(cached) " >&6
7528else
7529  ac_ext=c
7530ac_cpp='$CPP $CPPFLAGS'
7531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7533ac_compiler_gnu=$ac_cv_c_compiler_gnu
7534
7535     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7536/* end confdefs.h.  */
7537
7538int
7539main ()
7540{
7541
7542  ;
7543  return 0;
7544}
7545_ACEOF
7546if ac_fn_c_try_link "$LINENO"; then :
7547  lt_cv_cc_needs_belf=yes
7548else
7549  lt_cv_cc_needs_belf=no
7550fi
7551rm -f core conftest.err conftest.$ac_objext \
7552    conftest$ac_exeext conftest.$ac_ext
7553     ac_ext=c
7554ac_cpp='$CPP $CPPFLAGS'
7555ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7556ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7557ac_compiler_gnu=$ac_cv_c_compiler_gnu
7558
7559fi
7560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7561$as_echo "$lt_cv_cc_needs_belf" >&6; }
7562  if test yes != "$lt_cv_cc_needs_belf"; then
7563    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7564    CFLAGS=$SAVE_CFLAGS
7565  fi
7566  ;;
7567*-*solaris*)
7568  # Find out what ABI is being produced by ac_compile, and set linker
7569  # options accordingly.
7570  echo 'int i;' > conftest.$ac_ext
7571  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7572  (eval $ac_compile) 2>&5
7573  ac_status=$?
7574  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7575  test $ac_status = 0; }; then
7576    case `/usr/bin/file conftest.o` in
7577    *64-bit*)
7578      case $lt_cv_prog_gnu_ld in
7579      yes*)
7580        case $host in
7581        i?86-*-solaris*|x86_64-*-solaris*)
7582          LD="${LD-ld} -m elf_x86_64"
7583          ;;
7584        sparc*-*-solaris*)
7585          LD="${LD-ld} -m elf64_sparc"
7586          ;;
7587        esac
7588        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7589        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7590          LD=${LD-ld}_sol2
7591        fi
7592        ;;
7593      *)
7594	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7595	  LD="${LD-ld} -64"
7596	fi
7597	;;
7598      esac
7599      ;;
7600    esac
7601  fi
7602  rm -rf conftest*
7603  ;;
7604esac
7605
7606need_locks=$enable_libtool_lock
7607
7608if test -n "$ac_tool_prefix"; then
7609  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7610set dummy ${ac_tool_prefix}mt; ac_word=$2
7611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7612$as_echo_n "checking for $ac_word... " >&6; }
7613if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7614  $as_echo_n "(cached) " >&6
7615else
7616  if test -n "$MANIFEST_TOOL"; then
7617  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7618else
7619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7620for as_dir in $PATH
7621do
7622  IFS=$as_save_IFS
7623  test -z "$as_dir" && as_dir=.
7624    for ac_exec_ext in '' $ac_executable_extensions; do
7625  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7626    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7627    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7628    break 2
7629  fi
7630done
7631  done
7632IFS=$as_save_IFS
7633
7634fi
7635fi
7636MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7637if test -n "$MANIFEST_TOOL"; then
7638  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7639$as_echo "$MANIFEST_TOOL" >&6; }
7640else
7641  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7642$as_echo "no" >&6; }
7643fi
7644
7645
7646fi
7647if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7648  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7649  # Extract the first word of "mt", so it can be a program name with args.
7650set dummy mt; ac_word=$2
7651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7652$as_echo_n "checking for $ac_word... " >&6; }
7653if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7654  $as_echo_n "(cached) " >&6
7655else
7656  if test -n "$ac_ct_MANIFEST_TOOL"; then
7657  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7658else
7659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7660for as_dir in $PATH
7661do
7662  IFS=$as_save_IFS
7663  test -z "$as_dir" && as_dir=.
7664    for ac_exec_ext in '' $ac_executable_extensions; do
7665  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7666    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7667    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7668    break 2
7669  fi
7670done
7671  done
7672IFS=$as_save_IFS
7673
7674fi
7675fi
7676ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7677if test -n "$ac_ct_MANIFEST_TOOL"; then
7678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7679$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7680else
7681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7682$as_echo "no" >&6; }
7683fi
7684
7685  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7686    MANIFEST_TOOL=":"
7687  else
7688    case $cross_compiling:$ac_tool_warned in
7689yes:)
7690{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7691$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7692ac_tool_warned=yes ;;
7693esac
7694    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7695  fi
7696else
7697  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7698fi
7699
7700test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7702$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7703if ${lt_cv_path_mainfest_tool+:} false; then :
7704  $as_echo_n "(cached) " >&6
7705else
7706  lt_cv_path_mainfest_tool=no
7707  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7708  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7709  cat conftest.err >&5
7710  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7711    lt_cv_path_mainfest_tool=yes
7712  fi
7713  rm -f conftest*
7714fi
7715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7716$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7717if test yes != "$lt_cv_path_mainfest_tool"; then
7718  MANIFEST_TOOL=:
7719fi
7720
7721
7722
7723
7724
7725
7726  case $host_os in
7727    rhapsody* | darwin*)
7728    if test -n "$ac_tool_prefix"; then
7729  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7730set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7732$as_echo_n "checking for $ac_word... " >&6; }
7733if ${ac_cv_prog_DSYMUTIL+:} false; then :
7734  $as_echo_n "(cached) " >&6
7735else
7736  if test -n "$DSYMUTIL"; then
7737  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7738else
7739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7740for as_dir in $PATH
7741do
7742  IFS=$as_save_IFS
7743  test -z "$as_dir" && as_dir=.
7744    for ac_exec_ext in '' $ac_executable_extensions; do
7745  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7746    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7747    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7748    break 2
7749  fi
7750done
7751  done
7752IFS=$as_save_IFS
7753
7754fi
7755fi
7756DSYMUTIL=$ac_cv_prog_DSYMUTIL
7757if test -n "$DSYMUTIL"; then
7758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7759$as_echo "$DSYMUTIL" >&6; }
7760else
7761  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7762$as_echo "no" >&6; }
7763fi
7764
7765
7766fi
7767if test -z "$ac_cv_prog_DSYMUTIL"; then
7768  ac_ct_DSYMUTIL=$DSYMUTIL
7769  # Extract the first word of "dsymutil", so it can be a program name with args.
7770set dummy dsymutil; ac_word=$2
7771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7772$as_echo_n "checking for $ac_word... " >&6; }
7773if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7774  $as_echo_n "(cached) " >&6
7775else
7776  if test -n "$ac_ct_DSYMUTIL"; then
7777  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7778else
7779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7780for as_dir in $PATH
7781do
7782  IFS=$as_save_IFS
7783  test -z "$as_dir" && as_dir=.
7784    for ac_exec_ext in '' $ac_executable_extensions; do
7785  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7786    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7787    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7788    break 2
7789  fi
7790done
7791  done
7792IFS=$as_save_IFS
7793
7794fi
7795fi
7796ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7797if test -n "$ac_ct_DSYMUTIL"; then
7798  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7799$as_echo "$ac_ct_DSYMUTIL" >&6; }
7800else
7801  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7802$as_echo "no" >&6; }
7803fi
7804
7805  if test "x$ac_ct_DSYMUTIL" = x; then
7806    DSYMUTIL=":"
7807  else
7808    case $cross_compiling:$ac_tool_warned in
7809yes:)
7810{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7811$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7812ac_tool_warned=yes ;;
7813esac
7814    DSYMUTIL=$ac_ct_DSYMUTIL
7815  fi
7816else
7817  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7818fi
7819
7820    if test -n "$ac_tool_prefix"; then
7821  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7822set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7824$as_echo_n "checking for $ac_word... " >&6; }
7825if ${ac_cv_prog_NMEDIT+:} false; then :
7826  $as_echo_n "(cached) " >&6
7827else
7828  if test -n "$NMEDIT"; then
7829  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7830else
7831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7832for as_dir in $PATH
7833do
7834  IFS=$as_save_IFS
7835  test -z "$as_dir" && as_dir=.
7836    for ac_exec_ext in '' $ac_executable_extensions; do
7837  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7838    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7839    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7840    break 2
7841  fi
7842done
7843  done
7844IFS=$as_save_IFS
7845
7846fi
7847fi
7848NMEDIT=$ac_cv_prog_NMEDIT
7849if test -n "$NMEDIT"; then
7850  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7851$as_echo "$NMEDIT" >&6; }
7852else
7853  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7854$as_echo "no" >&6; }
7855fi
7856
7857
7858fi
7859if test -z "$ac_cv_prog_NMEDIT"; then
7860  ac_ct_NMEDIT=$NMEDIT
7861  # Extract the first word of "nmedit", so it can be a program name with args.
7862set dummy nmedit; ac_word=$2
7863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7864$as_echo_n "checking for $ac_word... " >&6; }
7865if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7866  $as_echo_n "(cached) " >&6
7867else
7868  if test -n "$ac_ct_NMEDIT"; then
7869  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7870else
7871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7872for as_dir in $PATH
7873do
7874  IFS=$as_save_IFS
7875  test -z "$as_dir" && as_dir=.
7876    for ac_exec_ext in '' $ac_executable_extensions; do
7877  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7878    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7879    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7880    break 2
7881  fi
7882done
7883  done
7884IFS=$as_save_IFS
7885
7886fi
7887fi
7888ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7889if test -n "$ac_ct_NMEDIT"; then
7890  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7891$as_echo "$ac_ct_NMEDIT" >&6; }
7892else
7893  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7894$as_echo "no" >&6; }
7895fi
7896
7897  if test "x$ac_ct_NMEDIT" = x; then
7898    NMEDIT=":"
7899  else
7900    case $cross_compiling:$ac_tool_warned in
7901yes:)
7902{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7903$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7904ac_tool_warned=yes ;;
7905esac
7906    NMEDIT=$ac_ct_NMEDIT
7907  fi
7908else
7909  NMEDIT="$ac_cv_prog_NMEDIT"
7910fi
7911
7912    if test -n "$ac_tool_prefix"; then
7913  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7914set dummy ${ac_tool_prefix}lipo; ac_word=$2
7915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7916$as_echo_n "checking for $ac_word... " >&6; }
7917if ${ac_cv_prog_LIPO+:} false; then :
7918  $as_echo_n "(cached) " >&6
7919else
7920  if test -n "$LIPO"; then
7921  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7922else
7923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7924for as_dir in $PATH
7925do
7926  IFS=$as_save_IFS
7927  test -z "$as_dir" && as_dir=.
7928    for ac_exec_ext in '' $ac_executable_extensions; do
7929  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7930    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7931    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7932    break 2
7933  fi
7934done
7935  done
7936IFS=$as_save_IFS
7937
7938fi
7939fi
7940LIPO=$ac_cv_prog_LIPO
7941if test -n "$LIPO"; then
7942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7943$as_echo "$LIPO" >&6; }
7944else
7945  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7946$as_echo "no" >&6; }
7947fi
7948
7949
7950fi
7951if test -z "$ac_cv_prog_LIPO"; then
7952  ac_ct_LIPO=$LIPO
7953  # Extract the first word of "lipo", so it can be a program name with args.
7954set dummy lipo; ac_word=$2
7955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7956$as_echo_n "checking for $ac_word... " >&6; }
7957if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7958  $as_echo_n "(cached) " >&6
7959else
7960  if test -n "$ac_ct_LIPO"; then
7961  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7962else
7963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7964for as_dir in $PATH
7965do
7966  IFS=$as_save_IFS
7967  test -z "$as_dir" && as_dir=.
7968    for ac_exec_ext in '' $ac_executable_extensions; do
7969  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7970    ac_cv_prog_ac_ct_LIPO="lipo"
7971    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7972    break 2
7973  fi
7974done
7975  done
7976IFS=$as_save_IFS
7977
7978fi
7979fi
7980ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7981if test -n "$ac_ct_LIPO"; then
7982  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7983$as_echo "$ac_ct_LIPO" >&6; }
7984else
7985  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7986$as_echo "no" >&6; }
7987fi
7988
7989  if test "x$ac_ct_LIPO" = x; then
7990    LIPO=":"
7991  else
7992    case $cross_compiling:$ac_tool_warned in
7993yes:)
7994{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7995$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7996ac_tool_warned=yes ;;
7997esac
7998    LIPO=$ac_ct_LIPO
7999  fi
8000else
8001  LIPO="$ac_cv_prog_LIPO"
8002fi
8003
8004    if test -n "$ac_tool_prefix"; then
8005  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8006set dummy ${ac_tool_prefix}otool; ac_word=$2
8007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8008$as_echo_n "checking for $ac_word... " >&6; }
8009if ${ac_cv_prog_OTOOL+:} false; then :
8010  $as_echo_n "(cached) " >&6
8011else
8012  if test -n "$OTOOL"; then
8013  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8014else
8015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8016for as_dir in $PATH
8017do
8018  IFS=$as_save_IFS
8019  test -z "$as_dir" && as_dir=.
8020    for ac_exec_ext in '' $ac_executable_extensions; do
8021  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8022    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8023    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8024    break 2
8025  fi
8026done
8027  done
8028IFS=$as_save_IFS
8029
8030fi
8031fi
8032OTOOL=$ac_cv_prog_OTOOL
8033if test -n "$OTOOL"; then
8034  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8035$as_echo "$OTOOL" >&6; }
8036else
8037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8038$as_echo "no" >&6; }
8039fi
8040
8041
8042fi
8043if test -z "$ac_cv_prog_OTOOL"; then
8044  ac_ct_OTOOL=$OTOOL
8045  # Extract the first word of "otool", so it can be a program name with args.
8046set dummy otool; ac_word=$2
8047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8048$as_echo_n "checking for $ac_word... " >&6; }
8049if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8050  $as_echo_n "(cached) " >&6
8051else
8052  if test -n "$ac_ct_OTOOL"; then
8053  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8054else
8055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8056for as_dir in $PATH
8057do
8058  IFS=$as_save_IFS
8059  test -z "$as_dir" && as_dir=.
8060    for ac_exec_ext in '' $ac_executable_extensions; do
8061  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8062    ac_cv_prog_ac_ct_OTOOL="otool"
8063    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8064    break 2
8065  fi
8066done
8067  done
8068IFS=$as_save_IFS
8069
8070fi
8071fi
8072ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8073if test -n "$ac_ct_OTOOL"; then
8074  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8075$as_echo "$ac_ct_OTOOL" >&6; }
8076else
8077  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8078$as_echo "no" >&6; }
8079fi
8080
8081  if test "x$ac_ct_OTOOL" = x; then
8082    OTOOL=":"
8083  else
8084    case $cross_compiling:$ac_tool_warned in
8085yes:)
8086{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8087$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8088ac_tool_warned=yes ;;
8089esac
8090    OTOOL=$ac_ct_OTOOL
8091  fi
8092else
8093  OTOOL="$ac_cv_prog_OTOOL"
8094fi
8095
8096    if test -n "$ac_tool_prefix"; then
8097  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8098set dummy ${ac_tool_prefix}otool64; ac_word=$2
8099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8100$as_echo_n "checking for $ac_word... " >&6; }
8101if ${ac_cv_prog_OTOOL64+:} false; then :
8102  $as_echo_n "(cached) " >&6
8103else
8104  if test -n "$OTOOL64"; then
8105  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8106else
8107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8108for as_dir in $PATH
8109do
8110  IFS=$as_save_IFS
8111  test -z "$as_dir" && as_dir=.
8112    for ac_exec_ext in '' $ac_executable_extensions; do
8113  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8114    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8115    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8116    break 2
8117  fi
8118done
8119  done
8120IFS=$as_save_IFS
8121
8122fi
8123fi
8124OTOOL64=$ac_cv_prog_OTOOL64
8125if test -n "$OTOOL64"; then
8126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8127$as_echo "$OTOOL64" >&6; }
8128else
8129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8130$as_echo "no" >&6; }
8131fi
8132
8133
8134fi
8135if test -z "$ac_cv_prog_OTOOL64"; then
8136  ac_ct_OTOOL64=$OTOOL64
8137  # Extract the first word of "otool64", so it can be a program name with args.
8138set dummy otool64; ac_word=$2
8139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8140$as_echo_n "checking for $ac_word... " >&6; }
8141if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8142  $as_echo_n "(cached) " >&6
8143else
8144  if test -n "$ac_ct_OTOOL64"; then
8145  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8146else
8147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8148for as_dir in $PATH
8149do
8150  IFS=$as_save_IFS
8151  test -z "$as_dir" && as_dir=.
8152    for ac_exec_ext in '' $ac_executable_extensions; do
8153  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8154    ac_cv_prog_ac_ct_OTOOL64="otool64"
8155    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8156    break 2
8157  fi
8158done
8159  done
8160IFS=$as_save_IFS
8161
8162fi
8163fi
8164ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8165if test -n "$ac_ct_OTOOL64"; then
8166  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8167$as_echo "$ac_ct_OTOOL64" >&6; }
8168else
8169  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8170$as_echo "no" >&6; }
8171fi
8172
8173  if test "x$ac_ct_OTOOL64" = x; then
8174    OTOOL64=":"
8175  else
8176    case $cross_compiling:$ac_tool_warned in
8177yes:)
8178{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8179$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8180ac_tool_warned=yes ;;
8181esac
8182    OTOOL64=$ac_ct_OTOOL64
8183  fi
8184else
8185  OTOOL64="$ac_cv_prog_OTOOL64"
8186fi
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8215$as_echo_n "checking for -single_module linker flag... " >&6; }
8216if ${lt_cv_apple_cc_single_mod+:} false; then :
8217  $as_echo_n "(cached) " >&6
8218else
8219  lt_cv_apple_cc_single_mod=no
8220      if test -z "$LT_MULTI_MODULE"; then
8221	# By default we will add the -single_module flag. You can override
8222	# by either setting the environment variable LT_MULTI_MODULE
8223	# non-empty at configure time, or by adding -multi_module to the
8224	# link flags.
8225	rm -rf libconftest.dylib*
8226	echo "int foo(void){return 1;}" > conftest.c
8227	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8228-dynamiclib -Wl,-single_module conftest.c" >&5
8229	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8230	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8231        _lt_result=$?
8232	# If there is a non-empty error log, and "single_module"
8233	# appears in it, assume the flag caused a linker warning
8234        if test -s conftest.err && $GREP single_module conftest.err; then
8235	  cat conftest.err >&5
8236	# Otherwise, if the output was created with a 0 exit code from
8237	# the compiler, it worked.
8238	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8239	  lt_cv_apple_cc_single_mod=yes
8240	else
8241	  cat conftest.err >&5
8242	fi
8243	rm -rf libconftest.dylib*
8244	rm -f conftest.*
8245      fi
8246fi
8247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8248$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8249
8250    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8251$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8252if ${lt_cv_ld_exported_symbols_list+:} false; then :
8253  $as_echo_n "(cached) " >&6
8254else
8255  lt_cv_ld_exported_symbols_list=no
8256      save_LDFLAGS=$LDFLAGS
8257      echo "_main" > conftest.sym
8258      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8259      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8260/* end confdefs.h.  */
8261
8262int
8263main ()
8264{
8265
8266  ;
8267  return 0;
8268}
8269_ACEOF
8270if ac_fn_c_try_link "$LINENO"; then :
8271  lt_cv_ld_exported_symbols_list=yes
8272else
8273  lt_cv_ld_exported_symbols_list=no
8274fi
8275rm -f core conftest.err conftest.$ac_objext \
8276    conftest$ac_exeext conftest.$ac_ext
8277	LDFLAGS=$save_LDFLAGS
8278
8279fi
8280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8281$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8282
8283    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8284$as_echo_n "checking for -force_load linker flag... " >&6; }
8285if ${lt_cv_ld_force_load+:} false; then :
8286  $as_echo_n "(cached) " >&6
8287else
8288  lt_cv_ld_force_load=no
8289      cat > conftest.c << _LT_EOF
8290int forced_loaded() { return 2;}
8291_LT_EOF
8292      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8293      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8294      echo "$AR cru libconftest.a conftest.o" >&5
8295      $AR cru libconftest.a conftest.o 2>&5
8296      echo "$RANLIB libconftest.a" >&5
8297      $RANLIB libconftest.a 2>&5
8298      cat > conftest.c << _LT_EOF
8299int main() { return 0;}
8300_LT_EOF
8301      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8302      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8303      _lt_result=$?
8304      if test -s conftest.err && $GREP force_load conftest.err; then
8305	cat conftest.err >&5
8306      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8307	lt_cv_ld_force_load=yes
8308      else
8309	cat conftest.err >&5
8310      fi
8311        rm -f conftest.err libconftest.a conftest conftest.c
8312        rm -rf conftest.dSYM
8313
8314fi
8315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8316$as_echo "$lt_cv_ld_force_load" >&6; }
8317    case $host_os in
8318    rhapsody* | darwin1.[012])
8319      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8320    darwin1.*)
8321      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8322    darwin*) # darwin 5.x on
8323      # if running on 10.5 or later, the deployment target defaults
8324      # to the OS version, if on x86, and 10.4, the deployment
8325      # target defaults to 10.4. Don't you love it?
8326      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8327	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8328	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8329	10.[012][,.]*)
8330	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8331	10.*)
8332	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8333      esac
8334    ;;
8335  esac
8336    if test yes = "$lt_cv_apple_cc_single_mod"; then
8337      _lt_dar_single_mod='$single_module'
8338    fi
8339    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8340      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8341    else
8342      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8343    fi
8344    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8345      _lt_dsymutil='~$DSYMUTIL $lib || :'
8346    else
8347      _lt_dsymutil=
8348    fi
8349    ;;
8350  esac
8351
8352# func_munge_path_list VARIABLE PATH
8353# -----------------------------------
8354# VARIABLE is name of variable containing _space_ separated list of
8355# directories to be munged by the contents of PATH, which is string
8356# having a format:
8357# "DIR[:DIR]:"
8358#       string "DIR[ DIR]" will be prepended to VARIABLE
8359# ":DIR[:DIR]"
8360#       string "DIR[ DIR]" will be appended to VARIABLE
8361# "DIRP[:DIRP]::[DIRA:]DIRA"
8362#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8363#       "DIRA[ DIRA]" will be appended to VARIABLE
8364# "DIR[:DIR]"
8365#       VARIABLE will be replaced by "DIR[ DIR]"
8366func_munge_path_list ()
8367{
8368    case x$2 in
8369    x)
8370        ;;
8371    *:)
8372        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8373        ;;
8374    x:*)
8375        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8376        ;;
8377    *::*)
8378        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8379        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8380        ;;
8381    *)
8382        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8383        ;;
8384    esac
8385}
8386
8387for ac_header in dlfcn.h
8388do :
8389  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8390"
8391if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8392  cat >>confdefs.h <<_ACEOF
8393#define HAVE_DLFCN_H 1
8394_ACEOF
8395
8396fi
8397
8398done
8399
8400
8401
8402
8403
8404# Set options
8405enable_win32_dll=yes
8406
8407case $host in
8408*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8409  if test -n "$ac_tool_prefix"; then
8410  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8411set dummy ${ac_tool_prefix}as; ac_word=$2
8412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8413$as_echo_n "checking for $ac_word... " >&6; }
8414if ${ac_cv_prog_AS+:} false; then :
8415  $as_echo_n "(cached) " >&6
8416else
8417  if test -n "$AS"; then
8418  ac_cv_prog_AS="$AS" # Let the user override the test.
8419else
8420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8421for as_dir in $PATH
8422do
8423  IFS=$as_save_IFS
8424  test -z "$as_dir" && as_dir=.
8425    for ac_exec_ext in '' $ac_executable_extensions; do
8426  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8427    ac_cv_prog_AS="${ac_tool_prefix}as"
8428    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8429    break 2
8430  fi
8431done
8432  done
8433IFS=$as_save_IFS
8434
8435fi
8436fi
8437AS=$ac_cv_prog_AS
8438if test -n "$AS"; then
8439  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8440$as_echo "$AS" >&6; }
8441else
8442  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8443$as_echo "no" >&6; }
8444fi
8445
8446
8447fi
8448if test -z "$ac_cv_prog_AS"; then
8449  ac_ct_AS=$AS
8450  # Extract the first word of "as", so it can be a program name with args.
8451set dummy as; ac_word=$2
8452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8453$as_echo_n "checking for $ac_word... " >&6; }
8454if ${ac_cv_prog_ac_ct_AS+:} false; then :
8455  $as_echo_n "(cached) " >&6
8456else
8457  if test -n "$ac_ct_AS"; then
8458  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8459else
8460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8461for as_dir in $PATH
8462do
8463  IFS=$as_save_IFS
8464  test -z "$as_dir" && as_dir=.
8465    for ac_exec_ext in '' $ac_executable_extensions; do
8466  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8467    ac_cv_prog_ac_ct_AS="as"
8468    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8469    break 2
8470  fi
8471done
8472  done
8473IFS=$as_save_IFS
8474
8475fi
8476fi
8477ac_ct_AS=$ac_cv_prog_ac_ct_AS
8478if test -n "$ac_ct_AS"; then
8479  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8480$as_echo "$ac_ct_AS" >&6; }
8481else
8482  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8483$as_echo "no" >&6; }
8484fi
8485
8486  if test "x$ac_ct_AS" = x; then
8487    AS="false"
8488  else
8489    case $cross_compiling:$ac_tool_warned in
8490yes:)
8491{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8492$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8493ac_tool_warned=yes ;;
8494esac
8495    AS=$ac_ct_AS
8496  fi
8497else
8498  AS="$ac_cv_prog_AS"
8499fi
8500
8501  if test -n "$ac_tool_prefix"; then
8502  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8503set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8505$as_echo_n "checking for $ac_word... " >&6; }
8506if ${ac_cv_prog_DLLTOOL+:} false; then :
8507  $as_echo_n "(cached) " >&6
8508else
8509  if test -n "$DLLTOOL"; then
8510  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8511else
8512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8513for as_dir in $PATH
8514do
8515  IFS=$as_save_IFS
8516  test -z "$as_dir" && as_dir=.
8517    for ac_exec_ext in '' $ac_executable_extensions; do
8518  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8519    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8520    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8521    break 2
8522  fi
8523done
8524  done
8525IFS=$as_save_IFS
8526
8527fi
8528fi
8529DLLTOOL=$ac_cv_prog_DLLTOOL
8530if test -n "$DLLTOOL"; then
8531  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8532$as_echo "$DLLTOOL" >&6; }
8533else
8534  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8535$as_echo "no" >&6; }
8536fi
8537
8538
8539fi
8540if test -z "$ac_cv_prog_DLLTOOL"; then
8541  ac_ct_DLLTOOL=$DLLTOOL
8542  # Extract the first word of "dlltool", so it can be a program name with args.
8543set dummy dlltool; ac_word=$2
8544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8545$as_echo_n "checking for $ac_word... " >&6; }
8546if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8547  $as_echo_n "(cached) " >&6
8548else
8549  if test -n "$ac_ct_DLLTOOL"; then
8550  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8551else
8552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8553for as_dir in $PATH
8554do
8555  IFS=$as_save_IFS
8556  test -z "$as_dir" && as_dir=.
8557    for ac_exec_ext in '' $ac_executable_extensions; do
8558  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8559    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8560    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8561    break 2
8562  fi
8563done
8564  done
8565IFS=$as_save_IFS
8566
8567fi
8568fi
8569ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8570if test -n "$ac_ct_DLLTOOL"; then
8571  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8572$as_echo "$ac_ct_DLLTOOL" >&6; }
8573else
8574  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8575$as_echo "no" >&6; }
8576fi
8577
8578  if test "x$ac_ct_DLLTOOL" = x; then
8579    DLLTOOL="false"
8580  else
8581    case $cross_compiling:$ac_tool_warned in
8582yes:)
8583{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8584$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8585ac_tool_warned=yes ;;
8586esac
8587    DLLTOOL=$ac_ct_DLLTOOL
8588  fi
8589else
8590  DLLTOOL="$ac_cv_prog_DLLTOOL"
8591fi
8592
8593  if test -n "$ac_tool_prefix"; then
8594  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8595set dummy ${ac_tool_prefix}objdump; ac_word=$2
8596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8597$as_echo_n "checking for $ac_word... " >&6; }
8598if ${ac_cv_prog_OBJDUMP+:} false; then :
8599  $as_echo_n "(cached) " >&6
8600else
8601  if test -n "$OBJDUMP"; then
8602  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8603else
8604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8605for as_dir in $PATH
8606do
8607  IFS=$as_save_IFS
8608  test -z "$as_dir" && as_dir=.
8609    for ac_exec_ext in '' $ac_executable_extensions; do
8610  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8611    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8612    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8613    break 2
8614  fi
8615done
8616  done
8617IFS=$as_save_IFS
8618
8619fi
8620fi
8621OBJDUMP=$ac_cv_prog_OBJDUMP
8622if test -n "$OBJDUMP"; then
8623  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8624$as_echo "$OBJDUMP" >&6; }
8625else
8626  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8627$as_echo "no" >&6; }
8628fi
8629
8630
8631fi
8632if test -z "$ac_cv_prog_OBJDUMP"; then
8633  ac_ct_OBJDUMP=$OBJDUMP
8634  # Extract the first word of "objdump", so it can be a program name with args.
8635set dummy objdump; ac_word=$2
8636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8637$as_echo_n "checking for $ac_word... " >&6; }
8638if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8639  $as_echo_n "(cached) " >&6
8640else
8641  if test -n "$ac_ct_OBJDUMP"; then
8642  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8643else
8644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8645for as_dir in $PATH
8646do
8647  IFS=$as_save_IFS
8648  test -z "$as_dir" && as_dir=.
8649    for ac_exec_ext in '' $ac_executable_extensions; do
8650  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8651    ac_cv_prog_ac_ct_OBJDUMP="objdump"
8652    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8653    break 2
8654  fi
8655done
8656  done
8657IFS=$as_save_IFS
8658
8659fi
8660fi
8661ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8662if test -n "$ac_ct_OBJDUMP"; then
8663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8664$as_echo "$ac_ct_OBJDUMP" >&6; }
8665else
8666  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8667$as_echo "no" >&6; }
8668fi
8669
8670  if test "x$ac_ct_OBJDUMP" = x; then
8671    OBJDUMP="false"
8672  else
8673    case $cross_compiling:$ac_tool_warned in
8674yes:)
8675{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8676$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8677ac_tool_warned=yes ;;
8678esac
8679    OBJDUMP=$ac_ct_OBJDUMP
8680  fi
8681else
8682  OBJDUMP="$ac_cv_prog_OBJDUMP"
8683fi
8684
8685  ;;
8686esac
8687
8688test -z "$AS" && AS=as
8689
8690
8691
8692
8693
8694test -z "$DLLTOOL" && DLLTOOL=dlltool
8695
8696
8697
8698
8699
8700test -z "$OBJDUMP" && OBJDUMP=objdump
8701
8702
8703
8704
8705
8706
8707
8708        enable_dlopen=no
8709
8710
8711
8712            # Check whether --enable-shared was given.
8713if test "${enable_shared+set}" = set; then :
8714  enableval=$enable_shared; p=${PACKAGE-default}
8715    case $enableval in
8716    yes) enable_shared=yes ;;
8717    no) enable_shared=no ;;
8718    *)
8719      enable_shared=no
8720      # Look at the argument we got.  We use all the common list separators.
8721      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8722      for pkg in $enableval; do
8723	IFS=$lt_save_ifs
8724	if test "X$pkg" = "X$p"; then
8725	  enable_shared=yes
8726	fi
8727      done
8728      IFS=$lt_save_ifs
8729      ;;
8730    esac
8731else
8732  enable_shared=yes
8733fi
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743  # Check whether --enable-static was given.
8744if test "${enable_static+set}" = set; then :
8745  enableval=$enable_static; p=${PACKAGE-default}
8746    case $enableval in
8747    yes) enable_static=yes ;;
8748    no) enable_static=no ;;
8749    *)
8750     enable_static=no
8751      # Look at the argument we got.  We use all the common list separators.
8752      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8753      for pkg in $enableval; do
8754	IFS=$lt_save_ifs
8755	if test "X$pkg" = "X$p"; then
8756	  enable_static=yes
8757	fi
8758      done
8759      IFS=$lt_save_ifs
8760      ;;
8761    esac
8762else
8763  enable_static=yes
8764fi
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775# Check whether --with-pic was given.
8776if test "${with_pic+set}" = set; then :
8777  withval=$with_pic; lt_p=${PACKAGE-default}
8778    case $withval in
8779    yes|no) pic_mode=$withval ;;
8780    *)
8781      pic_mode=default
8782      # Look at the argument we got.  We use all the common list separators.
8783      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8784      for lt_pkg in $withval; do
8785	IFS=$lt_save_ifs
8786	if test "X$lt_pkg" = "X$lt_p"; then
8787	  pic_mode=yes
8788	fi
8789      done
8790      IFS=$lt_save_ifs
8791      ;;
8792    esac
8793else
8794  pic_mode=default
8795fi
8796
8797
8798
8799
8800
8801
8802
8803
8804  # Check whether --enable-fast-install was given.
8805if test "${enable_fast_install+set}" = set; then :
8806  enableval=$enable_fast_install; p=${PACKAGE-default}
8807    case $enableval in
8808    yes) enable_fast_install=yes ;;
8809    no) enable_fast_install=no ;;
8810    *)
8811      enable_fast_install=no
8812      # Look at the argument we got.  We use all the common list separators.
8813      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8814      for pkg in $enableval; do
8815	IFS=$lt_save_ifs
8816	if test "X$pkg" = "X$p"; then
8817	  enable_fast_install=yes
8818	fi
8819      done
8820      IFS=$lt_save_ifs
8821      ;;
8822    esac
8823else
8824  enable_fast_install=yes
8825fi
8826
8827
8828
8829
8830
8831
8832
8833
8834  shared_archive_member_spec=
8835case $host,$enable_shared in
8836power*-*-aix[5-9]*,yes)
8837  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8838$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8839
8840# Check whether --with-aix-soname was given.
8841if test "${with_aix_soname+set}" = set; then :
8842  withval=$with_aix_soname; case $withval in
8843    aix|svr4|both)
8844      ;;
8845    *)
8846      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8847      ;;
8848    esac
8849    lt_cv_with_aix_soname=$with_aix_soname
8850else
8851  if ${lt_cv_with_aix_soname+:} false; then :
8852  $as_echo_n "(cached) " >&6
8853else
8854  lt_cv_with_aix_soname=aix
8855fi
8856
8857    with_aix_soname=$lt_cv_with_aix_soname
8858fi
8859
8860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8861$as_echo "$with_aix_soname" >&6; }
8862  if test aix != "$with_aix_soname"; then
8863    # For the AIX way of multilib, we name the shared archive member
8864    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8865    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8866    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8867    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8868    if test 64 = "${OBJECT_MODE-32}"; then
8869      shared_archive_member_spec=shr_64
8870    else
8871      shared_archive_member_spec=shr
8872    fi
8873  fi
8874  ;;
8875*)
8876  with_aix_soname=aix
8877  ;;
8878esac
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889# This can be used to rebuild libtool when needed
8890LIBTOOL_DEPS=$ltmain
8891
8892# Always use our own libtool.
8893LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924test -z "$LN_S" && LN_S="ln -s"
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939if test -n "${ZSH_VERSION+set}"; then
8940   setopt NO_GLOB_SUBST
8941fi
8942
8943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8944$as_echo_n "checking for objdir... " >&6; }
8945if ${lt_cv_objdir+:} false; then :
8946  $as_echo_n "(cached) " >&6
8947else
8948  rm -f .libs 2>/dev/null
8949mkdir .libs 2>/dev/null
8950if test -d .libs; then
8951  lt_cv_objdir=.libs
8952else
8953  # MS-DOS does not allow filenames that begin with a dot.
8954  lt_cv_objdir=_libs
8955fi
8956rmdir .libs 2>/dev/null
8957fi
8958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8959$as_echo "$lt_cv_objdir" >&6; }
8960objdir=$lt_cv_objdir
8961
8962
8963
8964
8965
8966cat >>confdefs.h <<_ACEOF
8967#define LT_OBJDIR "$lt_cv_objdir/"
8968_ACEOF
8969
8970
8971
8972
8973case $host_os in
8974aix3*)
8975  # AIX sometimes has problems with the GCC collect2 program.  For some
8976  # reason, if we set the COLLECT_NAMES environment variable, the problems
8977  # vanish in a puff of smoke.
8978  if test set != "${COLLECT_NAMES+set}"; then
8979    COLLECT_NAMES=
8980    export COLLECT_NAMES
8981  fi
8982  ;;
8983esac
8984
8985# Global variables:
8986ofile=libtool
8987can_build_shared=yes
8988
8989# All known linkers require a '.a' archive for static linking (except MSVC,
8990# which needs '.lib').
8991libext=a
8992
8993with_gnu_ld=$lt_cv_prog_gnu_ld
8994
8995old_CC=$CC
8996old_CFLAGS=$CFLAGS
8997
8998# Set sane defaults for various variables
8999test -z "$CC" && CC=cc
9000test -z "$LTCC" && LTCC=$CC
9001test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9002test -z "$LD" && LD=ld
9003test -z "$ac_objext" && ac_objext=o
9004
9005func_cc_basename $compiler
9006cc_basename=$func_cc_basename_result
9007
9008
9009# Only perform the check for file, if the check method requires it
9010test -z "$MAGIC_CMD" && MAGIC_CMD=file
9011case $deplibs_check_method in
9012file_magic*)
9013  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9014    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9015$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9016if ${lt_cv_path_MAGIC_CMD+:} false; then :
9017  $as_echo_n "(cached) " >&6
9018else
9019  case $MAGIC_CMD in
9020[\\/*] |  ?:[\\/]*)
9021  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9022  ;;
9023*)
9024  lt_save_MAGIC_CMD=$MAGIC_CMD
9025  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9026  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9027  for ac_dir in $ac_dummy; do
9028    IFS=$lt_save_ifs
9029    test -z "$ac_dir" && ac_dir=.
9030    if test -f "$ac_dir/${ac_tool_prefix}file"; then
9031      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9032      if test -n "$file_magic_test_file"; then
9033	case $deplibs_check_method in
9034	"file_magic "*)
9035	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9036	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9037	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9038	    $EGREP "$file_magic_regex" > /dev/null; then
9039	    :
9040	  else
9041	    cat <<_LT_EOF 1>&2
9042
9043*** Warning: the command libtool uses to detect shared libraries,
9044*** $file_magic_cmd, produces output that libtool cannot recognize.
9045*** The result is that libtool may fail to recognize shared libraries
9046*** as such.  This will affect the creation of libtool libraries that
9047*** depend on shared libraries, but programs linked with such libtool
9048*** libraries will work regardless of this problem.  Nevertheless, you
9049*** may want to report the problem to your system manager and/or to
9050*** bug-libtool@gnu.org
9051
9052_LT_EOF
9053	  fi ;;
9054	esac
9055      fi
9056      break
9057    fi
9058  done
9059  IFS=$lt_save_ifs
9060  MAGIC_CMD=$lt_save_MAGIC_CMD
9061  ;;
9062esac
9063fi
9064
9065MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9066if test -n "$MAGIC_CMD"; then
9067  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9068$as_echo "$MAGIC_CMD" >&6; }
9069else
9070  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9071$as_echo "no" >&6; }
9072fi
9073
9074
9075
9076
9077
9078if test -z "$lt_cv_path_MAGIC_CMD"; then
9079  if test -n "$ac_tool_prefix"; then
9080    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9081$as_echo_n "checking for file... " >&6; }
9082if ${lt_cv_path_MAGIC_CMD+:} false; then :
9083  $as_echo_n "(cached) " >&6
9084else
9085  case $MAGIC_CMD in
9086[\\/*] |  ?:[\\/]*)
9087  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9088  ;;
9089*)
9090  lt_save_MAGIC_CMD=$MAGIC_CMD
9091  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9092  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9093  for ac_dir in $ac_dummy; do
9094    IFS=$lt_save_ifs
9095    test -z "$ac_dir" && ac_dir=.
9096    if test -f "$ac_dir/file"; then
9097      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9098      if test -n "$file_magic_test_file"; then
9099	case $deplibs_check_method in
9100	"file_magic "*)
9101	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9102	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9103	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9104	    $EGREP "$file_magic_regex" > /dev/null; then
9105	    :
9106	  else
9107	    cat <<_LT_EOF 1>&2
9108
9109*** Warning: the command libtool uses to detect shared libraries,
9110*** $file_magic_cmd, produces output that libtool cannot recognize.
9111*** The result is that libtool may fail to recognize shared libraries
9112*** as such.  This will affect the creation of libtool libraries that
9113*** depend on shared libraries, but programs linked with such libtool
9114*** libraries will work regardless of this problem.  Nevertheless, you
9115*** may want to report the problem to your system manager and/or to
9116*** bug-libtool@gnu.org
9117
9118_LT_EOF
9119	  fi ;;
9120	esac
9121      fi
9122      break
9123    fi
9124  done
9125  IFS=$lt_save_ifs
9126  MAGIC_CMD=$lt_save_MAGIC_CMD
9127  ;;
9128esac
9129fi
9130
9131MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9132if test -n "$MAGIC_CMD"; then
9133  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9134$as_echo "$MAGIC_CMD" >&6; }
9135else
9136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9137$as_echo "no" >&6; }
9138fi
9139
9140
9141  else
9142    MAGIC_CMD=:
9143  fi
9144fi
9145
9146  fi
9147  ;;
9148esac
9149
9150# Use C for the default configuration in the libtool script
9151
9152lt_save_CC=$CC
9153ac_ext=c
9154ac_cpp='$CPP $CPPFLAGS'
9155ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9156ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9157ac_compiler_gnu=$ac_cv_c_compiler_gnu
9158
9159
9160# Source file extension for C test sources.
9161ac_ext=c
9162
9163# Object file extension for compiled C test sources.
9164objext=o
9165objext=$objext
9166
9167# Code to be used in simple compile tests
9168lt_simple_compile_test_code="int some_variable = 0;"
9169
9170# Code to be used in simple link tests
9171lt_simple_link_test_code='int main(){return(0);}'
9172
9173
9174
9175
9176
9177
9178
9179# If no C compiler was specified, use CC.
9180LTCC=${LTCC-"$CC"}
9181
9182# If no C compiler flags were specified, use CFLAGS.
9183LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9184
9185# Allow CC to be a program name with arguments.
9186compiler=$CC
9187
9188# Save the default compiler, since it gets overwritten when the other
9189# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9190compiler_DEFAULT=$CC
9191
9192# save warnings/boilerplate of simple test code
9193ac_outfile=conftest.$ac_objext
9194echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9195eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9196_lt_compiler_boilerplate=`cat conftest.err`
9197$RM conftest*
9198
9199ac_outfile=conftest.$ac_objext
9200echo "$lt_simple_link_test_code" >conftest.$ac_ext
9201eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9202_lt_linker_boilerplate=`cat conftest.err`
9203$RM -r conftest*
9204
9205
9206## CAVEAT EMPTOR:
9207## There is no encapsulation within the following macros, do not change
9208## the running order or otherwise move them around unless you know exactly
9209## what you are doing...
9210if test -n "$compiler"; then
9211
9212lt_prog_compiler_no_builtin_flag=
9213
9214if test yes = "$GCC"; then
9215  case $cc_basename in
9216  nvcc*)
9217    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9218  *)
9219    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9220  esac
9221
9222  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9223$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9224if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9225  $as_echo_n "(cached) " >&6
9226else
9227  lt_cv_prog_compiler_rtti_exceptions=no
9228   ac_outfile=conftest.$ac_objext
9229   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9230   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9231   # Insert the option either (1) after the last *FLAGS variable, or
9232   # (2) before a word containing "conftest.", or (3) at the end.
9233   # Note that $ac_compile itself does not contain backslashes and begins
9234   # with a dollar sign (not a hyphen), so the echo should work correctly.
9235   # The option is referenced via a variable to avoid confusing sed.
9236   lt_compile=`echo "$ac_compile" | $SED \
9237   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9238   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9239   -e 's:$: $lt_compiler_flag:'`
9240   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9241   (eval "$lt_compile" 2>conftest.err)
9242   ac_status=$?
9243   cat conftest.err >&5
9244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9245   if (exit $ac_status) && test -s "$ac_outfile"; then
9246     # The compiler can only warn and ignore the option if not recognized
9247     # So say no if there are warnings other than the usual output.
9248     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9249     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9250     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9251       lt_cv_prog_compiler_rtti_exceptions=yes
9252     fi
9253   fi
9254   $RM conftest*
9255
9256fi
9257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9258$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9259
9260if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9261    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9262else
9263    :
9264fi
9265
9266fi
9267
9268
9269
9270
9271
9272
9273  lt_prog_compiler_wl=
9274lt_prog_compiler_pic=
9275lt_prog_compiler_static=
9276
9277
9278  if test yes = "$GCC"; then
9279    lt_prog_compiler_wl='-Wl,'
9280    lt_prog_compiler_static='-static'
9281
9282    case $host_os in
9283      aix*)
9284      # All AIX code is PIC.
9285      if test ia64 = "$host_cpu"; then
9286	# AIX 5 now supports IA64 processor
9287	lt_prog_compiler_static='-Bstatic'
9288      fi
9289      lt_prog_compiler_pic='-fPIC'
9290      ;;
9291
9292    amigaos*)
9293      case $host_cpu in
9294      powerpc)
9295            # see comment about AmigaOS4 .so support
9296            lt_prog_compiler_pic='-fPIC'
9297        ;;
9298      m68k)
9299            # FIXME: we need at least 68020 code to build shared libraries, but
9300            # adding the '-m68020' flag to GCC prevents building anything better,
9301            # like '-m68040'.
9302            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9303        ;;
9304      esac
9305      ;;
9306
9307    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9308      # PIC is the default for these OSes.
9309      ;;
9310
9311    mingw* | cygwin* | pw32* | os2* | cegcc*)
9312      # This hack is so that the source file can tell whether it is being
9313      # built for inclusion in a dll (and should export symbols for example).
9314      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9315      # (--disable-auto-import) libraries
9316      lt_prog_compiler_pic='-DDLL_EXPORT'
9317      case $host_os in
9318      os2*)
9319	lt_prog_compiler_static='$wl-static'
9320	;;
9321      esac
9322      ;;
9323
9324    darwin* | rhapsody*)
9325      # PIC is the default on this platform
9326      # Common symbols not allowed in MH_DYLIB files
9327      lt_prog_compiler_pic='-fno-common'
9328      ;;
9329
9330    haiku*)
9331      # PIC is the default for Haiku.
9332      # The "-static" flag exists, but is broken.
9333      lt_prog_compiler_static=
9334      ;;
9335
9336    hpux*)
9337      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9338      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9339      # sets the default TLS model and affects inlining.
9340      case $host_cpu in
9341      hppa*64*)
9342	# +Z the default
9343	;;
9344      *)
9345	lt_prog_compiler_pic='-fPIC'
9346	;;
9347      esac
9348      ;;
9349
9350    interix[3-9]*)
9351      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9352      # Instead, we relocate shared libraries at runtime.
9353      ;;
9354
9355    msdosdjgpp*)
9356      # Just because we use GCC doesn't mean we suddenly get shared libraries
9357      # on systems that don't support them.
9358      lt_prog_compiler_can_build_shared=no
9359      enable_shared=no
9360      ;;
9361
9362    *nto* | *qnx*)
9363      # QNX uses GNU C++, but need to define -shared option too, otherwise
9364      # it will coredump.
9365      lt_prog_compiler_pic='-fPIC -shared'
9366      ;;
9367
9368    sysv4*MP*)
9369      if test -d /usr/nec; then
9370	lt_prog_compiler_pic=-Kconform_pic
9371      fi
9372      ;;
9373
9374    *)
9375      lt_prog_compiler_pic='-fPIC'
9376      ;;
9377    esac
9378
9379    case $cc_basename in
9380    nvcc*) # Cuda Compiler Driver 2.2
9381      lt_prog_compiler_wl='-Xlinker '
9382      if test -n "$lt_prog_compiler_pic"; then
9383        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9384      fi
9385      ;;
9386    esac
9387  else
9388    # PORTME Check for flag to pass linker flags through the system compiler.
9389    case $host_os in
9390    aix*)
9391      lt_prog_compiler_wl='-Wl,'
9392      if test ia64 = "$host_cpu"; then
9393	# AIX 5 now supports IA64 processor
9394	lt_prog_compiler_static='-Bstatic'
9395      else
9396	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9397      fi
9398      ;;
9399
9400    darwin* | rhapsody*)
9401      # PIC is the default on this platform
9402      # Common symbols not allowed in MH_DYLIB files
9403      lt_prog_compiler_pic='-fno-common'
9404      case $cc_basename in
9405      nagfor*)
9406        # NAG Fortran compiler
9407        lt_prog_compiler_wl='-Wl,-Wl,,'
9408        lt_prog_compiler_pic='-PIC'
9409        lt_prog_compiler_static='-Bstatic'
9410        ;;
9411      esac
9412      ;;
9413
9414    mingw* | cygwin* | pw32* | os2* | cegcc*)
9415      # This hack is so that the source file can tell whether it is being
9416      # built for inclusion in a dll (and should export symbols for example).
9417      lt_prog_compiler_pic='-DDLL_EXPORT'
9418      case $host_os in
9419      os2*)
9420	lt_prog_compiler_static='$wl-static'
9421	;;
9422      esac
9423      ;;
9424
9425    hpux9* | hpux10* | hpux11*)
9426      lt_prog_compiler_wl='-Wl,'
9427      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9428      # not for PA HP-UX.
9429      case $host_cpu in
9430      hppa*64*|ia64*)
9431	# +Z the default
9432	;;
9433      *)
9434	lt_prog_compiler_pic='+Z'
9435	;;
9436      esac
9437      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9438      lt_prog_compiler_static='$wl-a ${wl}archive'
9439      ;;
9440
9441    irix5* | irix6* | nonstopux*)
9442      lt_prog_compiler_wl='-Wl,'
9443      # PIC (with -KPIC) is the default.
9444      lt_prog_compiler_static='-non_shared'
9445      ;;
9446
9447    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9448      case $cc_basename in
9449      # old Intel for x86_64, which still supported -KPIC.
9450      ecc*)
9451	lt_prog_compiler_wl='-Wl,'
9452	lt_prog_compiler_pic='-KPIC'
9453	lt_prog_compiler_static='-static'
9454        ;;
9455      # icc used to be incompatible with GCC.
9456      # ICC 10 doesn't accept -KPIC any more.
9457      icc* | ifort*)
9458	lt_prog_compiler_wl='-Wl,'
9459	lt_prog_compiler_pic='-fPIC'
9460	lt_prog_compiler_static='-static'
9461        ;;
9462      # Lahey Fortran 8.1.
9463      lf95*)
9464	lt_prog_compiler_wl='-Wl,'
9465	lt_prog_compiler_pic='--shared'
9466	lt_prog_compiler_static='--static'
9467	;;
9468      nagfor*)
9469	# NAG Fortran compiler
9470	lt_prog_compiler_wl='-Wl,-Wl,,'
9471	lt_prog_compiler_pic='-PIC'
9472	lt_prog_compiler_static='-Bstatic'
9473	;;
9474      tcc*)
9475	# Fabrice Bellard et al's Tiny C Compiler
9476	lt_prog_compiler_wl='-Wl,'
9477	lt_prog_compiler_pic='-fPIC'
9478	lt_prog_compiler_static='-static'
9479	;;
9480      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9481        # Portland Group compilers (*not* the Pentium gcc compiler,
9482	# which looks to be a dead project)
9483	lt_prog_compiler_wl='-Wl,'
9484	lt_prog_compiler_pic='-fpic'
9485	lt_prog_compiler_static='-Bstatic'
9486        ;;
9487      ccc*)
9488        lt_prog_compiler_wl='-Wl,'
9489        # All Alpha code is PIC.
9490        lt_prog_compiler_static='-non_shared'
9491        ;;
9492      xl* | bgxl* | bgf* | mpixl*)
9493	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9494	lt_prog_compiler_wl='-Wl,'
9495	lt_prog_compiler_pic='-qpic'
9496	lt_prog_compiler_static='-qstaticlink'
9497	;;
9498      *)
9499	case `$CC -V 2>&1 | sed 5q` in
9500	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9501	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9502	  lt_prog_compiler_pic='-KPIC'
9503	  lt_prog_compiler_static='-Bstatic'
9504	  lt_prog_compiler_wl=''
9505	  ;;
9506	*Sun\ F* | *Sun*Fortran*)
9507	  lt_prog_compiler_pic='-KPIC'
9508	  lt_prog_compiler_static='-Bstatic'
9509	  lt_prog_compiler_wl='-Qoption ld '
9510	  ;;
9511	*Sun\ C*)
9512	  # Sun C 5.9
9513	  lt_prog_compiler_pic='-KPIC'
9514	  lt_prog_compiler_static='-Bstatic'
9515	  lt_prog_compiler_wl='-Wl,'
9516	  ;;
9517        *Intel*\ [CF]*Compiler*)
9518	  lt_prog_compiler_wl='-Wl,'
9519	  lt_prog_compiler_pic='-fPIC'
9520	  lt_prog_compiler_static='-static'
9521	  ;;
9522	*Portland\ Group*)
9523	  lt_prog_compiler_wl='-Wl,'
9524	  lt_prog_compiler_pic='-fpic'
9525	  lt_prog_compiler_static='-Bstatic'
9526	  ;;
9527	esac
9528	;;
9529      esac
9530      ;;
9531
9532    newsos6)
9533      lt_prog_compiler_pic='-KPIC'
9534      lt_prog_compiler_static='-Bstatic'
9535      ;;
9536
9537    *nto* | *qnx*)
9538      # QNX uses GNU C++, but need to define -shared option too, otherwise
9539      # it will coredump.
9540      lt_prog_compiler_pic='-fPIC -shared'
9541      ;;
9542
9543    osf3* | osf4* | osf5*)
9544      lt_prog_compiler_wl='-Wl,'
9545      # All OSF/1 code is PIC.
9546      lt_prog_compiler_static='-non_shared'
9547      ;;
9548
9549    rdos*)
9550      lt_prog_compiler_static='-non_shared'
9551      ;;
9552
9553    solaris*)
9554      lt_prog_compiler_pic='-KPIC'
9555      lt_prog_compiler_static='-Bstatic'
9556      case $cc_basename in
9557      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9558	lt_prog_compiler_wl='-Qoption ld ';;
9559      *)
9560	lt_prog_compiler_wl='-Wl,';;
9561      esac
9562      ;;
9563
9564    sunos4*)
9565      lt_prog_compiler_wl='-Qoption ld '
9566      lt_prog_compiler_pic='-PIC'
9567      lt_prog_compiler_static='-Bstatic'
9568      ;;
9569
9570    sysv4 | sysv4.2uw2* | sysv4.3*)
9571      lt_prog_compiler_wl='-Wl,'
9572      lt_prog_compiler_pic='-KPIC'
9573      lt_prog_compiler_static='-Bstatic'
9574      ;;
9575
9576    sysv4*MP*)
9577      if test -d /usr/nec; then
9578	lt_prog_compiler_pic='-Kconform_pic'
9579	lt_prog_compiler_static='-Bstatic'
9580      fi
9581      ;;
9582
9583    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9584      lt_prog_compiler_wl='-Wl,'
9585      lt_prog_compiler_pic='-KPIC'
9586      lt_prog_compiler_static='-Bstatic'
9587      ;;
9588
9589    unicos*)
9590      lt_prog_compiler_wl='-Wl,'
9591      lt_prog_compiler_can_build_shared=no
9592      ;;
9593
9594    uts4*)
9595      lt_prog_compiler_pic='-pic'
9596      lt_prog_compiler_static='-Bstatic'
9597      ;;
9598
9599    *)
9600      lt_prog_compiler_can_build_shared=no
9601      ;;
9602    esac
9603  fi
9604
9605case $host_os in
9606  # For platforms that do not support PIC, -DPIC is meaningless:
9607  *djgpp*)
9608    lt_prog_compiler_pic=
9609    ;;
9610  *)
9611    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9612    ;;
9613esac
9614
9615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9616$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9617if ${lt_cv_prog_compiler_pic+:} false; then :
9618  $as_echo_n "(cached) " >&6
9619else
9620  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9621fi
9622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9623$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9624lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9625
9626#
9627# Check to make sure the PIC flag actually works.
9628#
9629if test -n "$lt_prog_compiler_pic"; then
9630  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9631$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9632if ${lt_cv_prog_compiler_pic_works+:} false; then :
9633  $as_echo_n "(cached) " >&6
9634else
9635  lt_cv_prog_compiler_pic_works=no
9636   ac_outfile=conftest.$ac_objext
9637   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9638   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9639   # Insert the option either (1) after the last *FLAGS variable, or
9640   # (2) before a word containing "conftest.", or (3) at the end.
9641   # Note that $ac_compile itself does not contain backslashes and begins
9642   # with a dollar sign (not a hyphen), so the echo should work correctly.
9643   # The option is referenced via a variable to avoid confusing sed.
9644   lt_compile=`echo "$ac_compile" | $SED \
9645   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9646   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9647   -e 's:$: $lt_compiler_flag:'`
9648   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9649   (eval "$lt_compile" 2>conftest.err)
9650   ac_status=$?
9651   cat conftest.err >&5
9652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653   if (exit $ac_status) && test -s "$ac_outfile"; then
9654     # The compiler can only warn and ignore the option if not recognized
9655     # So say no if there are warnings other than the usual output.
9656     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9657     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9658     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9659       lt_cv_prog_compiler_pic_works=yes
9660     fi
9661   fi
9662   $RM conftest*
9663
9664fi
9665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9666$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9667
9668if test yes = "$lt_cv_prog_compiler_pic_works"; then
9669    case $lt_prog_compiler_pic in
9670     "" | " "*) ;;
9671     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9672     esac
9673else
9674    lt_prog_compiler_pic=
9675     lt_prog_compiler_can_build_shared=no
9676fi
9677
9678fi
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690#
9691# Check to make sure the static flag actually works.
9692#
9693wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9695$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9696if ${lt_cv_prog_compiler_static_works+:} false; then :
9697  $as_echo_n "(cached) " >&6
9698else
9699  lt_cv_prog_compiler_static_works=no
9700   save_LDFLAGS=$LDFLAGS
9701   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9702   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9703   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9704     # The linker can only warn and ignore the option if not recognized
9705     # So say no if there are warnings
9706     if test -s conftest.err; then
9707       # Append any errors to the config.log.
9708       cat conftest.err 1>&5
9709       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9710       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9711       if diff conftest.exp conftest.er2 >/dev/null; then
9712         lt_cv_prog_compiler_static_works=yes
9713       fi
9714     else
9715       lt_cv_prog_compiler_static_works=yes
9716     fi
9717   fi
9718   $RM -r conftest*
9719   LDFLAGS=$save_LDFLAGS
9720
9721fi
9722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9723$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9724
9725if test yes = "$lt_cv_prog_compiler_static_works"; then
9726    :
9727else
9728    lt_prog_compiler_static=
9729fi
9730
9731
9732
9733
9734
9735
9736
9737  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9738$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9739if ${lt_cv_prog_compiler_c_o+:} false; then :
9740  $as_echo_n "(cached) " >&6
9741else
9742  lt_cv_prog_compiler_c_o=no
9743   $RM -r conftest 2>/dev/null
9744   mkdir conftest
9745   cd conftest
9746   mkdir out
9747   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9748
9749   lt_compiler_flag="-o out/conftest2.$ac_objext"
9750   # Insert the option either (1) after the last *FLAGS variable, or
9751   # (2) before a word containing "conftest.", or (3) at the end.
9752   # Note that $ac_compile itself does not contain backslashes and begins
9753   # with a dollar sign (not a hyphen), so the echo should work correctly.
9754   lt_compile=`echo "$ac_compile" | $SED \
9755   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9756   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9757   -e 's:$: $lt_compiler_flag:'`
9758   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9759   (eval "$lt_compile" 2>out/conftest.err)
9760   ac_status=$?
9761   cat out/conftest.err >&5
9762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9763   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9764   then
9765     # The compiler can only warn and ignore the option if not recognized
9766     # So say no if there are warnings
9767     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9768     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9769     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9770       lt_cv_prog_compiler_c_o=yes
9771     fi
9772   fi
9773   chmod u+w . 2>&5
9774   $RM conftest*
9775   # SGI C++ compiler will create directory out/ii_files/ for
9776   # template instantiation
9777   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9778   $RM out/* && rmdir out
9779   cd ..
9780   $RM -r conftest
9781   $RM conftest*
9782
9783fi
9784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9785$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9786
9787
9788
9789
9790
9791
9792  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9793$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9794if ${lt_cv_prog_compiler_c_o+:} false; then :
9795  $as_echo_n "(cached) " >&6
9796else
9797  lt_cv_prog_compiler_c_o=no
9798   $RM -r conftest 2>/dev/null
9799   mkdir conftest
9800   cd conftest
9801   mkdir out
9802   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9803
9804   lt_compiler_flag="-o out/conftest2.$ac_objext"
9805   # Insert the option either (1) after the last *FLAGS variable, or
9806   # (2) before a word containing "conftest.", or (3) at the end.
9807   # Note that $ac_compile itself does not contain backslashes and begins
9808   # with a dollar sign (not a hyphen), so the echo should work correctly.
9809   lt_compile=`echo "$ac_compile" | $SED \
9810   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9811   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9812   -e 's:$: $lt_compiler_flag:'`
9813   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9814   (eval "$lt_compile" 2>out/conftest.err)
9815   ac_status=$?
9816   cat out/conftest.err >&5
9817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9819   then
9820     # The compiler can only warn and ignore the option if not recognized
9821     # So say no if there are warnings
9822     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9823     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9824     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9825       lt_cv_prog_compiler_c_o=yes
9826     fi
9827   fi
9828   chmod u+w . 2>&5
9829   $RM conftest*
9830   # SGI C++ compiler will create directory out/ii_files/ for
9831   # template instantiation
9832   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9833   $RM out/* && rmdir out
9834   cd ..
9835   $RM -r conftest
9836   $RM conftest*
9837
9838fi
9839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9840$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9841
9842
9843
9844
9845hard_links=nottested
9846if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9847  # do not overwrite the value of need_locks provided by the user
9848  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9849$as_echo_n "checking if we can lock with hard links... " >&6; }
9850  hard_links=yes
9851  $RM conftest*
9852  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9853  touch conftest.a
9854  ln conftest.a conftest.b 2>&5 || hard_links=no
9855  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9856  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9857$as_echo "$hard_links" >&6; }
9858  if test no = "$hard_links"; then
9859    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9860$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9861    need_locks=warn
9862  fi
9863else
9864  need_locks=no
9865fi
9866
9867
9868
9869
9870
9871
9872  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9873$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9874
9875  runpath_var=
9876  allow_undefined_flag=
9877  always_export_symbols=no
9878  archive_cmds=
9879  archive_expsym_cmds=
9880  compiler_needs_object=no
9881  enable_shared_with_static_runtimes=no
9882  export_dynamic_flag_spec=
9883  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9884  hardcode_automatic=no
9885  hardcode_direct=no
9886  hardcode_direct_absolute=no
9887  hardcode_libdir_flag_spec=
9888  hardcode_libdir_separator=
9889  hardcode_minus_L=no
9890  hardcode_shlibpath_var=unsupported
9891  inherit_rpath=no
9892  link_all_deplibs=unknown
9893  module_cmds=
9894  module_expsym_cmds=
9895  old_archive_from_new_cmds=
9896  old_archive_from_expsyms_cmds=
9897  thread_safe_flag_spec=
9898  whole_archive_flag_spec=
9899  # include_expsyms should be a list of space-separated symbols to be *always*
9900  # included in the symbol list
9901  include_expsyms=
9902  # exclude_expsyms can be an extended regexp of symbols to exclude
9903  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9904  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9905  # as well as any symbol that contains 'd'.
9906  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9907  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9908  # platforms (ab)use it in PIC code, but their linkers get confused if
9909  # the symbol is explicitly referenced.  Since portable code cannot
9910  # rely on this symbol name, it's probably fine to never include it in
9911  # preloaded symbol tables.
9912  # Exclude shared library initialization/finalization symbols.
9913  extract_expsyms_cmds=
9914
9915  case $host_os in
9916  cygwin* | mingw* | pw32* | cegcc*)
9917    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9918    # When not using gcc, we currently assume that we are using
9919    # Microsoft Visual C++.
9920    if test yes != "$GCC"; then
9921      with_gnu_ld=no
9922    fi
9923    ;;
9924  interix*)
9925    # we just hope/assume this is gcc and not c89 (= MSVC++)
9926    with_gnu_ld=yes
9927    ;;
9928  openbsd* | bitrig*)
9929    with_gnu_ld=no
9930    ;;
9931  linux* | k*bsd*-gnu | gnu*)
9932    link_all_deplibs=no
9933    ;;
9934  esac
9935
9936  ld_shlibs=yes
9937
9938  # On some targets, GNU ld is compatible enough with the native linker
9939  # that we're better off using the native interface for both.
9940  lt_use_gnu_ld_interface=no
9941  if test yes = "$with_gnu_ld"; then
9942    case $host_os in
9943      aix*)
9944	# The AIX port of GNU ld has always aspired to compatibility
9945	# with the native linker.  However, as the warning in the GNU ld
9946	# block says, versions before 2.19.5* couldn't really create working
9947	# shared libraries, regardless of the interface used.
9948	case `$LD -v 2>&1` in
9949	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9950	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9951	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9952	  *)
9953	    lt_use_gnu_ld_interface=yes
9954	    ;;
9955	esac
9956	;;
9957      *)
9958	lt_use_gnu_ld_interface=yes
9959	;;
9960    esac
9961  fi
9962
9963  if test yes = "$lt_use_gnu_ld_interface"; then
9964    # If archive_cmds runs LD, not CC, wlarc should be empty
9965    wlarc='$wl'
9966
9967    # Set some defaults for GNU ld with shared library support. These
9968    # are reset later if shared libraries are not supported. Putting them
9969    # here allows them to be overridden if necessary.
9970    runpath_var=LD_RUN_PATH
9971    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9972    export_dynamic_flag_spec='$wl--export-dynamic'
9973    # ancient GNU ld didn't support --whole-archive et. al.
9974    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9975      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9976    else
9977      whole_archive_flag_spec=
9978    fi
9979    supports_anon_versioning=no
9980    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9981      *GNU\ gold*) supports_anon_versioning=yes ;;
9982      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9983      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9984      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9985      *\ 2.11.*) ;; # other 2.11 versions
9986      *) supports_anon_versioning=yes ;;
9987    esac
9988
9989    # See if GNU ld supports shared libraries.
9990    case $host_os in
9991    aix[3-9]*)
9992      # On AIX/PPC, the GNU linker is very broken
9993      if test ia64 != "$host_cpu"; then
9994	ld_shlibs=no
9995	cat <<_LT_EOF 1>&2
9996
9997*** Warning: the GNU linker, at least up to release 2.19, is reported
9998*** to be unable to reliably create shared libraries on AIX.
9999*** Therefore, libtool is disabling shared libraries support.  If you
10000*** really care for shared libraries, you may want to install binutils
10001*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10002*** You will then need to restart the configuration process.
10003
10004_LT_EOF
10005      fi
10006      ;;
10007
10008    amigaos*)
10009      case $host_cpu in
10010      powerpc)
10011            # see comment about AmigaOS4 .so support
10012            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10013            archive_expsym_cmds=''
10014        ;;
10015      m68k)
10016            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)'
10017            hardcode_libdir_flag_spec='-L$libdir'
10018            hardcode_minus_L=yes
10019        ;;
10020      esac
10021      ;;
10022
10023    beos*)
10024      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10025	allow_undefined_flag=unsupported
10026	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10027	# support --undefined.  This deserves some investigation.  FIXME
10028	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10029      else
10030	ld_shlibs=no
10031      fi
10032      ;;
10033
10034    cygwin* | mingw* | pw32* | cegcc*)
10035      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10036      # as there is no search path for DLLs.
10037      hardcode_libdir_flag_spec='-L$libdir'
10038      export_dynamic_flag_spec='$wl--export-all-symbols'
10039      allow_undefined_flag=unsupported
10040      always_export_symbols=no
10041      enable_shared_with_static_runtimes=yes
10042      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'
10043      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10044
10045      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10046        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10047	# If the export-symbols file already is a .def file, use it as
10048	# is; otherwise, prepend EXPORTS...
10049	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10050          cp $export_symbols $output_objdir/$soname.def;
10051        else
10052          echo EXPORTS > $output_objdir/$soname.def;
10053          cat $export_symbols >> $output_objdir/$soname.def;
10054        fi~
10055        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10056      else
10057	ld_shlibs=no
10058      fi
10059      ;;
10060
10061    haiku*)
10062      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10063      link_all_deplibs=yes
10064      ;;
10065
10066    os2*)
10067      hardcode_libdir_flag_spec='-L$libdir'
10068      hardcode_minus_L=yes
10069      allow_undefined_flag=unsupported
10070      shrext_cmds=.dll
10071      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10072	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10073	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10074	$ECHO EXPORTS >> $output_objdir/$libname.def~
10075	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10076	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10077	emximp -o $lib $output_objdir/$libname.def'
10078      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10079	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10080	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10081	$ECHO EXPORTS >> $output_objdir/$libname.def~
10082	prefix_cmds="$SED"~
10083	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10084	  prefix_cmds="$prefix_cmds -e 1d";
10085	fi~
10086	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10087	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10088	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10089	emximp -o $lib $output_objdir/$libname.def'
10090      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10091      enable_shared_with_static_runtimes=yes
10092      ;;
10093
10094    interix[3-9]*)
10095      hardcode_direct=no
10096      hardcode_shlibpath_var=no
10097      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10098      export_dynamic_flag_spec='$wl-E'
10099      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10100      # Instead, shared libraries are loaded at an image base (0x10000000 by
10101      # default) and relocated if they conflict, which is a slow very memory
10102      # consuming and fragmenting process.  To avoid this, we pick a random,
10103      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10104      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10105      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10106      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'
10107      ;;
10108
10109    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10110      tmp_diet=no
10111      if test linux-dietlibc = "$host_os"; then
10112	case $cc_basename in
10113	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10114	esac
10115      fi
10116      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10117	 && test no = "$tmp_diet"
10118      then
10119	tmp_addflag=' $pic_flag'
10120	tmp_sharedflag='-shared'
10121	case $cc_basename,$host_cpu in
10122        pgcc*)				# Portland Group C compiler
10123	  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'
10124	  tmp_addflag=' $pic_flag'
10125	  ;;
10126	pgf77* | pgf90* | pgf95* | pgfortran*)
10127					# Portland Group f77 and f90 compilers
10128	  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'
10129	  tmp_addflag=' $pic_flag -Mnomain' ;;
10130	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10131	  tmp_addflag=' -i_dynamic' ;;
10132	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10133	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10134	ifc* | ifort*)			# Intel Fortran compiler
10135	  tmp_addflag=' -nofor_main' ;;
10136	lf95*)				# Lahey Fortran 8.1
10137	  whole_archive_flag_spec=
10138	  tmp_sharedflag='--shared' ;;
10139        nagfor*)                        # NAGFOR 5.3
10140          tmp_sharedflag='-Wl,-shared' ;;
10141	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10142	  tmp_sharedflag='-qmkshrobj'
10143	  tmp_addflag= ;;
10144	nvcc*)	# Cuda Compiler Driver 2.2
10145	  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'
10146	  compiler_needs_object=yes
10147	  ;;
10148	esac
10149	case `$CC -V 2>&1 | sed 5q` in
10150	*Sun\ C*)			# Sun C 5.9
10151	  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'
10152	  compiler_needs_object=yes
10153	  tmp_sharedflag='-G' ;;
10154	*Sun\ F*)			# Sun Fortran 8.3
10155	  tmp_sharedflag='-G' ;;
10156	esac
10157	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10158
10159        if test yes = "$supports_anon_versioning"; then
10160          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10161            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10162            echo "local: *; };" >> $output_objdir/$libname.ver~
10163            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10164        fi
10165
10166	case $cc_basename in
10167	tcc*)
10168	  export_dynamic_flag_spec='-rdynamic'
10169	  ;;
10170	xlf* | bgf* | bgxlf* | mpixlf*)
10171	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10172	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10173	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10174	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10175	  if test yes = "$supports_anon_versioning"; then
10176	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10177              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10178              echo "local: *; };" >> $output_objdir/$libname.ver~
10179              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10180	  fi
10181	  ;;
10182	esac
10183      else
10184        ld_shlibs=no
10185      fi
10186      ;;
10187
10188    netbsd* | netbsdelf*-gnu)
10189      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10190	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10191	wlarc=
10192      else
10193	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10194	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10195      fi
10196      ;;
10197
10198    solaris*)
10199      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10200	ld_shlibs=no
10201	cat <<_LT_EOF 1>&2
10202
10203*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10204*** create shared libraries on Solaris systems.  Therefore, libtool
10205*** is disabling shared libraries support.  We urge you to upgrade GNU
10206*** binutils to release 2.9.1 or newer.  Another option is to modify
10207*** your PATH or compiler configuration so that the native linker is
10208*** used, and then restart.
10209
10210_LT_EOF
10211      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10212	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10213	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10214      else
10215	ld_shlibs=no
10216      fi
10217      ;;
10218
10219    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10220      case `$LD -v 2>&1` in
10221        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10222	ld_shlibs=no
10223	cat <<_LT_EOF 1>&2
10224
10225*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10226*** reliably create shared libraries on SCO systems.  Therefore, libtool
10227*** is disabling shared libraries support.  We urge you to upgrade GNU
10228*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10229*** your PATH or compiler configuration so that the native linker is
10230*** used, and then restart.
10231
10232_LT_EOF
10233	;;
10234	*)
10235	  # For security reasons, it is highly recommended that you always
10236	  # use absolute paths for naming shared libraries, and exclude the
10237	  # DT_RUNPATH tag from executables and libraries.  But doing so
10238	  # requires that you compile everything twice, which is a pain.
10239	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10240	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10241	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10242	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10243	  else
10244	    ld_shlibs=no
10245	  fi
10246	;;
10247      esac
10248      ;;
10249
10250    sunos4*)
10251      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10252      wlarc=
10253      hardcode_direct=yes
10254      hardcode_shlibpath_var=no
10255      ;;
10256
10257    *)
10258      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10259	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10260	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10261      else
10262	ld_shlibs=no
10263      fi
10264      ;;
10265    esac
10266
10267    if test no = "$ld_shlibs"; then
10268      runpath_var=
10269      hardcode_libdir_flag_spec=
10270      export_dynamic_flag_spec=
10271      whole_archive_flag_spec=
10272    fi
10273  else
10274    # PORTME fill in a description of your system's linker (not GNU ld)
10275    case $host_os in
10276    aix3*)
10277      allow_undefined_flag=unsupported
10278      always_export_symbols=yes
10279      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'
10280      # Note: this linker hardcodes the directories in LIBPATH if there
10281      # are no directories specified by -L.
10282      hardcode_minus_L=yes
10283      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10284	# Neither direct hardcoding nor static linking is supported with a
10285	# broken collect2.
10286	hardcode_direct=unsupported
10287      fi
10288      ;;
10289
10290    aix[4-9]*)
10291      if test ia64 = "$host_cpu"; then
10292	# On IA64, the linker does run time linking by default, so we don't
10293	# have to do anything special.
10294	aix_use_runtimelinking=no
10295	exp_sym_flag='-Bexport'
10296	no_entry_flag=
10297      else
10298	# If we're using GNU nm, then we don't want the "-C" option.
10299	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10300	# Without the "-l" option, or with the "-B" option, AIX nm treats
10301	# weak defined symbols like other global defined symbols, whereas
10302	# GNU nm marks them as "W".
10303	# While the 'weak' keyword is ignored in the Export File, we need
10304	# it in the Import File for the 'aix-soname' feature, so we have
10305	# to replace the "-B" option with "-P" for AIX nm.
10306	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10307	  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'
10308	else
10309	  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'
10310	fi
10311	aix_use_runtimelinking=no
10312
10313	# Test if we are trying to use run time linking or normal
10314	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10315	# have runtime linking enabled, and use it for executables.
10316	# For shared libraries, we enable/disable runtime linking
10317	# depending on the kind of the shared library created -
10318	# when "with_aix_soname,aix_use_runtimelinking" is:
10319	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10320	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10321	#            lib.a           static archive
10322	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10323	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10324	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10325	#            lib.a(lib.so.V) shared, rtl:no
10326	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10327	#            lib.a           static archive
10328	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10329	  for ld_flag in $LDFLAGS; do
10330	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10331	    aix_use_runtimelinking=yes
10332	    break
10333	  fi
10334	  done
10335	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10336	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10337	    # so we don't have lib.a shared libs to link our executables.
10338	    # We have to force runtime linking in this case.
10339	    aix_use_runtimelinking=yes
10340	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10341	  fi
10342	  ;;
10343	esac
10344
10345	exp_sym_flag='-bexport'
10346	no_entry_flag='-bnoentry'
10347      fi
10348
10349      # When large executables or shared objects are built, AIX ld can
10350      # have problems creating the table of contents.  If linking a library
10351      # or program results in "error TOC overflow" add -mminimal-toc to
10352      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10353      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10354
10355      archive_cmds=''
10356      hardcode_direct=yes
10357      hardcode_direct_absolute=yes
10358      hardcode_libdir_separator=':'
10359      link_all_deplibs=yes
10360      file_list_spec='$wl-f,'
10361      case $with_aix_soname,$aix_use_runtimelinking in
10362      aix,*) ;; # traditional, no import file
10363      svr4,* | *,yes) # use import file
10364	# The Import File defines what to hardcode.
10365	hardcode_direct=no
10366	hardcode_direct_absolute=no
10367	;;
10368      esac
10369
10370      if test yes = "$GCC"; then
10371	case $host_os in aix4.[012]|aix4.[012].*)
10372	# We only want to do this on AIX 4.2 and lower, the check
10373	# below for broken collect2 doesn't work under 4.3+
10374	  collect2name=`$CC -print-prog-name=collect2`
10375	  if test -f "$collect2name" &&
10376	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10377	  then
10378	  # We have reworked collect2
10379	  :
10380	  else
10381	  # We have old collect2
10382	  hardcode_direct=unsupported
10383	  # It fails to find uninstalled libraries when the uninstalled
10384	  # path is not listed in the libpath.  Setting hardcode_minus_L
10385	  # to unsupported forces relinking
10386	  hardcode_minus_L=yes
10387	  hardcode_libdir_flag_spec='-L$libdir'
10388	  hardcode_libdir_separator=
10389	  fi
10390	  ;;
10391	esac
10392	shared_flag='-shared'
10393	if test yes = "$aix_use_runtimelinking"; then
10394	  shared_flag="$shared_flag "'$wl-G'
10395	fi
10396	# Need to ensure runtime linking is disabled for the traditional
10397	# shared library, or the linker may eventually find shared libraries
10398	# /with/ Import File - we do not want to mix them.
10399	shared_flag_aix='-shared'
10400	shared_flag_svr4='-shared $wl-G'
10401      else
10402	# not using gcc
10403	if test ia64 = "$host_cpu"; then
10404	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10405	# chokes on -Wl,-G. The following line is correct:
10406	  shared_flag='-G'
10407	else
10408	  if test yes = "$aix_use_runtimelinking"; then
10409	    shared_flag='$wl-G'
10410	  else
10411	    shared_flag='$wl-bM:SRE'
10412	  fi
10413	  shared_flag_aix='$wl-bM:SRE'
10414	  shared_flag_svr4='$wl-G'
10415	fi
10416      fi
10417
10418      export_dynamic_flag_spec='$wl-bexpall'
10419      # It seems that -bexpall does not export symbols beginning with
10420      # underscore (_), so it is better to generate a list of symbols to export.
10421      always_export_symbols=yes
10422      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10423	# Warning - without using the other runtime loading flags (-brtl),
10424	# -berok will link without error, but may produce a broken library.
10425	allow_undefined_flag='-berok'
10426        # Determine the default libpath from the value encoded in an
10427        # empty executable.
10428        if test set = "${lt_cv_aix_libpath+set}"; then
10429  aix_libpath=$lt_cv_aix_libpath
10430else
10431  if ${lt_cv_aix_libpath_+:} false; then :
10432  $as_echo_n "(cached) " >&6
10433else
10434  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10435/* end confdefs.h.  */
10436
10437int
10438main ()
10439{
10440
10441  ;
10442  return 0;
10443}
10444_ACEOF
10445if ac_fn_c_try_link "$LINENO"; then :
10446
10447  lt_aix_libpath_sed='
10448      /Import File Strings/,/^$/ {
10449	  /^0/ {
10450	      s/^0  *\([^ ]*\) *$/\1/
10451	      p
10452	  }
10453      }'
10454  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10455  # Check for a 64-bit object if we didn't find anything.
10456  if test -z "$lt_cv_aix_libpath_"; then
10457    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10458  fi
10459fi
10460rm -f core conftest.err conftest.$ac_objext \
10461    conftest$ac_exeext conftest.$ac_ext
10462  if test -z "$lt_cv_aix_libpath_"; then
10463    lt_cv_aix_libpath_=/usr/lib:/lib
10464  fi
10465
10466fi
10467
10468  aix_libpath=$lt_cv_aix_libpath_
10469fi
10470
10471        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10472        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
10473      else
10474	if test ia64 = "$host_cpu"; then
10475	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10476	  allow_undefined_flag="-z nodefs"
10477	  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"
10478	else
10479	 # Determine the default libpath from the value encoded in an
10480	 # empty executable.
10481	 if test set = "${lt_cv_aix_libpath+set}"; then
10482  aix_libpath=$lt_cv_aix_libpath
10483else
10484  if ${lt_cv_aix_libpath_+:} false; then :
10485  $as_echo_n "(cached) " >&6
10486else
10487  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10488/* end confdefs.h.  */
10489
10490int
10491main ()
10492{
10493
10494  ;
10495  return 0;
10496}
10497_ACEOF
10498if ac_fn_c_try_link "$LINENO"; then :
10499
10500  lt_aix_libpath_sed='
10501      /Import File Strings/,/^$/ {
10502	  /^0/ {
10503	      s/^0  *\([^ ]*\) *$/\1/
10504	      p
10505	  }
10506      }'
10507  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10508  # Check for a 64-bit object if we didn't find anything.
10509  if test -z "$lt_cv_aix_libpath_"; then
10510    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10511  fi
10512fi
10513rm -f core conftest.err conftest.$ac_objext \
10514    conftest$ac_exeext conftest.$ac_ext
10515  if test -z "$lt_cv_aix_libpath_"; then
10516    lt_cv_aix_libpath_=/usr/lib:/lib
10517  fi
10518
10519fi
10520
10521  aix_libpath=$lt_cv_aix_libpath_
10522fi
10523
10524	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10525	  # Warning - without using the other run time loading flags,
10526	  # -berok will link without error, but may produce a broken library.
10527	  no_undefined_flag=' $wl-bernotok'
10528	  allow_undefined_flag=' $wl-berok'
10529	  if test yes = "$with_gnu_ld"; then
10530	    # We only use this code for GNU lds that support --whole-archive.
10531	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10532	  else
10533	    # Exported symbols can be pulled into shared objects from archives
10534	    whole_archive_flag_spec='$convenience'
10535	  fi
10536	  archive_cmds_need_lc=yes
10537	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10538	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10539	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10540	  if test svr4 != "$with_aix_soname"; then
10541	    # This is similar to how AIX traditionally builds its shared libraries.
10542	    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'
10543	  fi
10544	  if test aix != "$with_aix_soname"; then
10545	    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'
10546	  else
10547	    # used by -dlpreopen to get the symbols
10548	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10549	  fi
10550	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10551	fi
10552      fi
10553      ;;
10554
10555    amigaos*)
10556      case $host_cpu in
10557      powerpc)
10558            # see comment about AmigaOS4 .so support
10559            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10560            archive_expsym_cmds=''
10561        ;;
10562      m68k)
10563            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)'
10564            hardcode_libdir_flag_spec='-L$libdir'
10565            hardcode_minus_L=yes
10566        ;;
10567      esac
10568      ;;
10569
10570    bsdi[45]*)
10571      export_dynamic_flag_spec=-rdynamic
10572      ;;
10573
10574    cygwin* | mingw* | pw32* | cegcc*)
10575      # When not using gcc, we currently assume that we are using
10576      # Microsoft Visual C++.
10577      # hardcode_libdir_flag_spec is actually meaningless, as there is
10578      # no search path for DLLs.
10579      case $cc_basename in
10580      cl*)
10581	# Native MSVC
10582	hardcode_libdir_flag_spec=' '
10583	allow_undefined_flag=unsupported
10584	always_export_symbols=yes
10585	file_list_spec='@'
10586	# Tell ltmain to make .lib files, not .a files.
10587	libext=lib
10588	# Tell ltmain to make .dll files, not .so files.
10589	shrext_cmds=.dll
10590	# FIXME: Setting linknames here is a bad hack.
10591	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10592	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10593            cp "$export_symbols" "$output_objdir/$soname.def";
10594            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10595          else
10596            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10597          fi~
10598          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10599          linknames='
10600	# The linker will not automatically build a static lib if we build a DLL.
10601	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10602	enable_shared_with_static_runtimes=yes
10603	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10604	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10605	# Don't use ranlib
10606	old_postinstall_cmds='chmod 644 $oldlib'
10607	postlink_cmds='lt_outputfile="@OUTPUT@"~
10608          lt_tool_outputfile="@TOOL_OUTPUT@"~
10609          case $lt_outputfile in
10610            *.exe|*.EXE) ;;
10611            *)
10612              lt_outputfile=$lt_outputfile.exe
10613              lt_tool_outputfile=$lt_tool_outputfile.exe
10614              ;;
10615          esac~
10616          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10617            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10618            $RM "$lt_outputfile.manifest";
10619          fi'
10620	;;
10621      *)
10622	# Assume MSVC wrapper
10623	hardcode_libdir_flag_spec=' '
10624	allow_undefined_flag=unsupported
10625	# Tell ltmain to make .lib files, not .a files.
10626	libext=lib
10627	# Tell ltmain to make .dll files, not .so files.
10628	shrext_cmds=.dll
10629	# FIXME: Setting linknames here is a bad hack.
10630	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10631	# The linker will automatically build a .lib file if we build a DLL.
10632	old_archive_from_new_cmds='true'
10633	# FIXME: Should let the user specify the lib program.
10634	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10635	enable_shared_with_static_runtimes=yes
10636	;;
10637      esac
10638      ;;
10639
10640    darwin* | rhapsody*)
10641
10642
10643  archive_cmds_need_lc=no
10644  hardcode_direct=no
10645  hardcode_automatic=yes
10646  hardcode_shlibpath_var=unsupported
10647  if test yes = "$lt_cv_ld_force_load"; then
10648    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\"`'
10649
10650  else
10651    whole_archive_flag_spec=''
10652  fi
10653  link_all_deplibs=yes
10654  allow_undefined_flag=$_lt_dar_allow_undefined
10655  case $cc_basename in
10656     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10657     *) _lt_dar_can_shared=$GCC ;;
10658  esac
10659  if test yes = "$_lt_dar_can_shared"; then
10660    output_verbose_link_cmd=func_echo_all
10661    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10662    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10663    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"
10664    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"
10665
10666  else
10667  ld_shlibs=no
10668  fi
10669
10670      ;;
10671
10672    dgux*)
10673      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10674      hardcode_libdir_flag_spec='-L$libdir'
10675      hardcode_shlibpath_var=no
10676      ;;
10677
10678    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10679    # support.  Future versions do this automatically, but an explicit c++rt0.o
10680    # does not break anything, and helps significantly (at the cost of a little
10681    # extra space).
10682    freebsd2.2*)
10683      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10684      hardcode_libdir_flag_spec='-R$libdir'
10685      hardcode_direct=yes
10686      hardcode_shlibpath_var=no
10687      ;;
10688
10689    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10690    freebsd2.*)
10691      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10692      hardcode_direct=yes
10693      hardcode_minus_L=yes
10694      hardcode_shlibpath_var=no
10695      ;;
10696
10697    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10698    freebsd* | dragonfly*)
10699      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10700      hardcode_libdir_flag_spec='-R$libdir'
10701      hardcode_direct=yes
10702      hardcode_shlibpath_var=no
10703      ;;
10704
10705    hpux9*)
10706      if test yes = "$GCC"; then
10707	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'
10708      else
10709	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'
10710      fi
10711      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10712      hardcode_libdir_separator=:
10713      hardcode_direct=yes
10714
10715      # hardcode_minus_L: Not really in the search PATH,
10716      # but as the default location of the library.
10717      hardcode_minus_L=yes
10718      export_dynamic_flag_spec='$wl-E'
10719      ;;
10720
10721    hpux10*)
10722      if test yes,no = "$GCC,$with_gnu_ld"; then
10723	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10724      else
10725	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10726      fi
10727      if test no = "$with_gnu_ld"; then
10728	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10729	hardcode_libdir_separator=:
10730	hardcode_direct=yes
10731	hardcode_direct_absolute=yes
10732	export_dynamic_flag_spec='$wl-E'
10733	# hardcode_minus_L: Not really in the search PATH,
10734	# but as the default location of the library.
10735	hardcode_minus_L=yes
10736      fi
10737      ;;
10738
10739    hpux11*)
10740      if test yes,no = "$GCC,$with_gnu_ld"; then
10741	case $host_cpu in
10742	hppa*64*)
10743	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10744	  ;;
10745	ia64*)
10746	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10747	  ;;
10748	*)
10749	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10750	  ;;
10751	esac
10752      else
10753	case $host_cpu in
10754	hppa*64*)
10755	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10756	  ;;
10757	ia64*)
10758	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10759	  ;;
10760	*)
10761
10762	  # Older versions of the 11.00 compiler do not understand -b yet
10763	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10764	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10765$as_echo_n "checking if $CC understands -b... " >&6; }
10766if ${lt_cv_prog_compiler__b+:} false; then :
10767  $as_echo_n "(cached) " >&6
10768else
10769  lt_cv_prog_compiler__b=no
10770   save_LDFLAGS=$LDFLAGS
10771   LDFLAGS="$LDFLAGS -b"
10772   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10773   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10774     # The linker can only warn and ignore the option if not recognized
10775     # So say no if there are warnings
10776     if test -s conftest.err; then
10777       # Append any errors to the config.log.
10778       cat conftest.err 1>&5
10779       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10780       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10781       if diff conftest.exp conftest.er2 >/dev/null; then
10782         lt_cv_prog_compiler__b=yes
10783       fi
10784     else
10785       lt_cv_prog_compiler__b=yes
10786     fi
10787   fi
10788   $RM -r conftest*
10789   LDFLAGS=$save_LDFLAGS
10790
10791fi
10792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10793$as_echo "$lt_cv_prog_compiler__b" >&6; }
10794
10795if test yes = "$lt_cv_prog_compiler__b"; then
10796    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10797else
10798    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10799fi
10800
10801	  ;;
10802	esac
10803      fi
10804      if test no = "$with_gnu_ld"; then
10805	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10806	hardcode_libdir_separator=:
10807
10808	case $host_cpu in
10809	hppa*64*|ia64*)
10810	  hardcode_direct=no
10811	  hardcode_shlibpath_var=no
10812	  ;;
10813	*)
10814	  hardcode_direct=yes
10815	  hardcode_direct_absolute=yes
10816	  export_dynamic_flag_spec='$wl-E'
10817
10818	  # hardcode_minus_L: Not really in the search PATH,
10819	  # but as the default location of the library.
10820	  hardcode_minus_L=yes
10821	  ;;
10822	esac
10823      fi
10824      ;;
10825
10826    irix5* | irix6* | nonstopux*)
10827      if test yes = "$GCC"; then
10828	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'
10829	# Try to use the -exported_symbol ld option, if it does not
10830	# work, assume that -exports_file does not work either and
10831	# implicitly export all symbols.
10832	# This should be the same for all languages, so no per-tag cache variable.
10833	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10834$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10835if ${lt_cv_irix_exported_symbol+:} false; then :
10836  $as_echo_n "(cached) " >&6
10837else
10838  save_LDFLAGS=$LDFLAGS
10839	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10840	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10841/* end confdefs.h.  */
10842int foo (void) { return 0; }
10843_ACEOF
10844if ac_fn_c_try_link "$LINENO"; then :
10845  lt_cv_irix_exported_symbol=yes
10846else
10847  lt_cv_irix_exported_symbol=no
10848fi
10849rm -f core conftest.err conftest.$ac_objext \
10850    conftest$ac_exeext conftest.$ac_ext
10851           LDFLAGS=$save_LDFLAGS
10852fi
10853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10854$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10855	if test yes = "$lt_cv_irix_exported_symbol"; then
10856          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'
10857	fi
10858	link_all_deplibs=no
10859      else
10860	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'
10861	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'
10862      fi
10863      archive_cmds_need_lc='no'
10864      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10865      hardcode_libdir_separator=:
10866      inherit_rpath=yes
10867      link_all_deplibs=yes
10868      ;;
10869
10870    linux*)
10871      case $cc_basename in
10872      tcc*)
10873	# Fabrice Bellard et al's Tiny C Compiler
10874	ld_shlibs=yes
10875	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10876	;;
10877      esac
10878      ;;
10879
10880    netbsd* | netbsdelf*-gnu)
10881      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10882	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10883      else
10884	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10885      fi
10886      hardcode_libdir_flag_spec='-R$libdir'
10887      hardcode_direct=yes
10888      hardcode_shlibpath_var=no
10889      ;;
10890
10891    newsos6)
10892      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10893      hardcode_direct=yes
10894      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10895      hardcode_libdir_separator=:
10896      hardcode_shlibpath_var=no
10897      ;;
10898
10899    *nto* | *qnx*)
10900      ;;
10901
10902    openbsd* | bitrig*)
10903      if test -f /usr/libexec/ld.so; then
10904	hardcode_direct=yes
10905	hardcode_shlibpath_var=no
10906	hardcode_direct_absolute=yes
10907	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10908	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10909	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10910	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10911	  export_dynamic_flag_spec='$wl-E'
10912	else
10913	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10914	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10915	fi
10916      else
10917	ld_shlibs=no
10918      fi
10919      ;;
10920
10921    os2*)
10922      hardcode_libdir_flag_spec='-L$libdir'
10923      hardcode_minus_L=yes
10924      allow_undefined_flag=unsupported
10925      shrext_cmds=.dll
10926      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10927	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10928	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10929	$ECHO EXPORTS >> $output_objdir/$libname.def~
10930	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10931	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10932	emximp -o $lib $output_objdir/$libname.def'
10933      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10934	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10935	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10936	$ECHO EXPORTS >> $output_objdir/$libname.def~
10937	prefix_cmds="$SED"~
10938	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10939	  prefix_cmds="$prefix_cmds -e 1d";
10940	fi~
10941	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10942	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10943	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10944	emximp -o $lib $output_objdir/$libname.def'
10945      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10946      enable_shared_with_static_runtimes=yes
10947      ;;
10948
10949    osf3*)
10950      if test yes = "$GCC"; then
10951	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10952	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'
10953      else
10954	allow_undefined_flag=' -expect_unresolved \*'
10955	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'
10956      fi
10957      archive_cmds_need_lc='no'
10958      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10959      hardcode_libdir_separator=:
10960      ;;
10961
10962    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10963      if test yes = "$GCC"; then
10964	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10965	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'
10966	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10967      else
10968	allow_undefined_flag=' -expect_unresolved \*'
10969	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'
10970	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~
10971          $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'
10972
10973	# Both c and cxx compiler support -rpath directly
10974	hardcode_libdir_flag_spec='-rpath $libdir'
10975      fi
10976      archive_cmds_need_lc='no'
10977      hardcode_libdir_separator=:
10978      ;;
10979
10980    solaris*)
10981      no_undefined_flag=' -z defs'
10982      if test yes = "$GCC"; then
10983	wlarc='$wl'
10984	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10985	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10986          $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'
10987      else
10988	case `$CC -V 2>&1` in
10989	*"Compilers 5.0"*)
10990	  wlarc=''
10991	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10992	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10993            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10994	  ;;
10995	*)
10996	  wlarc='$wl'
10997	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10998	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10999            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11000	  ;;
11001	esac
11002      fi
11003      hardcode_libdir_flag_spec='-R$libdir'
11004      hardcode_shlibpath_var=no
11005      case $host_os in
11006      solaris2.[0-5] | solaris2.[0-5].*) ;;
11007      *)
11008	# The compiler driver will combine and reorder linker options,
11009	# but understands '-z linker_flag'.  GCC discards it without '$wl',
11010	# but is careful enough not to reorder.
11011	# Supported since Solaris 2.6 (maybe 2.5.1?)
11012	if test yes = "$GCC"; then
11013	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11014	else
11015	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11016	fi
11017	;;
11018      esac
11019      link_all_deplibs=yes
11020      ;;
11021
11022    sunos4*)
11023      if test sequent = "$host_vendor"; then
11024	# Use $CC to link under sequent, because it throws in some extra .o
11025	# files that make .init and .fini sections work.
11026	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11027      else
11028	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11029      fi
11030      hardcode_libdir_flag_spec='-L$libdir'
11031      hardcode_direct=yes
11032      hardcode_minus_L=yes
11033      hardcode_shlibpath_var=no
11034      ;;
11035
11036    sysv4)
11037      case $host_vendor in
11038	sni)
11039	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11040	  hardcode_direct=yes # is this really true???
11041	;;
11042	siemens)
11043	  ## LD is ld it makes a PLAMLIB
11044	  ## CC just makes a GrossModule.
11045	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11046	  reload_cmds='$CC -r -o $output$reload_objs'
11047	  hardcode_direct=no
11048        ;;
11049	motorola)
11050	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11051	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11052	;;
11053      esac
11054      runpath_var='LD_RUN_PATH'
11055      hardcode_shlibpath_var=no
11056      ;;
11057
11058    sysv4.3*)
11059      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11060      hardcode_shlibpath_var=no
11061      export_dynamic_flag_spec='-Bexport'
11062      ;;
11063
11064    sysv4*MP*)
11065      if test -d /usr/nec; then
11066	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11067	hardcode_shlibpath_var=no
11068	runpath_var=LD_RUN_PATH
11069	hardcode_runpath_var=yes
11070	ld_shlibs=yes
11071      fi
11072      ;;
11073
11074    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11075      no_undefined_flag='$wl-z,text'
11076      archive_cmds_need_lc=no
11077      hardcode_shlibpath_var=no
11078      runpath_var='LD_RUN_PATH'
11079
11080      if test yes = "$GCC"; then
11081	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11082	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11083      else
11084	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11085	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11086      fi
11087      ;;
11088
11089    sysv5* | sco3.2v5* | sco5v6*)
11090      # Note: We CANNOT use -z defs as we might desire, because we do not
11091      # link with -lc, and that would cause any symbols used from libc to
11092      # always be unresolved, which means just about no library would
11093      # ever link correctly.  If we're not using GNU ld we use -z text
11094      # though, which does catch some bad symbols but isn't as heavy-handed
11095      # as -z defs.
11096      no_undefined_flag='$wl-z,text'
11097      allow_undefined_flag='$wl-z,nodefs'
11098      archive_cmds_need_lc=no
11099      hardcode_shlibpath_var=no
11100      hardcode_libdir_flag_spec='$wl-R,$libdir'
11101      hardcode_libdir_separator=':'
11102      link_all_deplibs=yes
11103      export_dynamic_flag_spec='$wl-Bexport'
11104      runpath_var='LD_RUN_PATH'
11105
11106      if test yes = "$GCC"; then
11107	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11108	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11109      else
11110	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11111	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11112      fi
11113      ;;
11114
11115    uts4*)
11116      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11117      hardcode_libdir_flag_spec='-L$libdir'
11118      hardcode_shlibpath_var=no
11119      ;;
11120
11121    *)
11122      ld_shlibs=no
11123      ;;
11124    esac
11125
11126    if test sni = "$host_vendor"; then
11127      case $host in
11128      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11129	export_dynamic_flag_spec='$wl-Blargedynsym'
11130	;;
11131      esac
11132    fi
11133  fi
11134
11135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11136$as_echo "$ld_shlibs" >&6; }
11137test no = "$ld_shlibs" && can_build_shared=no
11138
11139with_gnu_ld=$with_gnu_ld
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155#
11156# Do we need to explicitly link libc?
11157#
11158case "x$archive_cmds_need_lc" in
11159x|xyes)
11160  # Assume -lc should be added
11161  archive_cmds_need_lc=yes
11162
11163  if test yes,yes = "$GCC,$enable_shared"; then
11164    case $archive_cmds in
11165    *'~'*)
11166      # FIXME: we may have to deal with multi-command sequences.
11167      ;;
11168    '$CC '*)
11169      # Test whether the compiler implicitly links with -lc since on some
11170      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11171      # to ld, don't add -lc before -lgcc.
11172      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11173$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11174if ${lt_cv_archive_cmds_need_lc+:} false; then :
11175  $as_echo_n "(cached) " >&6
11176else
11177  $RM conftest*
11178	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11179
11180	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11181  (eval $ac_compile) 2>&5
11182  ac_status=$?
11183  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11184  test $ac_status = 0; } 2>conftest.err; then
11185	  soname=conftest
11186	  lib=conftest
11187	  libobjs=conftest.$ac_objext
11188	  deplibs=
11189	  wl=$lt_prog_compiler_wl
11190	  pic_flag=$lt_prog_compiler_pic
11191	  compiler_flags=-v
11192	  linker_flags=-v
11193	  verstring=
11194	  output_objdir=.
11195	  libname=conftest
11196	  lt_save_allow_undefined_flag=$allow_undefined_flag
11197	  allow_undefined_flag=
11198	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11199  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11200  ac_status=$?
11201  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11202  test $ac_status = 0; }
11203	  then
11204	    lt_cv_archive_cmds_need_lc=no
11205	  else
11206	    lt_cv_archive_cmds_need_lc=yes
11207	  fi
11208	  allow_undefined_flag=$lt_save_allow_undefined_flag
11209	else
11210	  cat conftest.err 1>&5
11211	fi
11212	$RM conftest*
11213
11214fi
11215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11216$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11217      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11218      ;;
11219    esac
11220  fi
11221  ;;
11222esac
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11376$as_echo_n "checking dynamic linker characteristics... " >&6; }
11377
11378if test yes = "$GCC"; then
11379  case $host_os in
11380    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11381    *) lt_awk_arg='/^libraries:/' ;;
11382  esac
11383  case $host_os in
11384    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11385    *) lt_sed_strip_eq='s|=/|/|g' ;;
11386  esac
11387  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11388  case $lt_search_path_spec in
11389  *\;*)
11390    # if the path contains ";" then we assume it to be the separator
11391    # otherwise default to the standard path separator (i.e. ":") - it is
11392    # assumed that no part of a normal pathname contains ";" but that should
11393    # okay in the real world where ";" in dirpaths is itself problematic.
11394    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11395    ;;
11396  *)
11397    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11398    ;;
11399  esac
11400  # Ok, now we have the path, separated by spaces, we can step through it
11401  # and add multilib dir if necessary...
11402  lt_tmp_lt_search_path_spec=
11403  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11404  # ...but if some path component already ends with the multilib dir we assume
11405  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11406  case "$lt_multi_os_dir; $lt_search_path_spec " in
11407  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11408    lt_multi_os_dir=
11409    ;;
11410  esac
11411  for lt_sys_path in $lt_search_path_spec; do
11412    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11413      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11414    elif test -n "$lt_multi_os_dir"; then
11415      test -d "$lt_sys_path" && \
11416	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11417    fi
11418  done
11419  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11420BEGIN {RS = " "; FS = "/|\n";} {
11421  lt_foo = "";
11422  lt_count = 0;
11423  for (lt_i = NF; lt_i > 0; lt_i--) {
11424    if ($lt_i != "" && $lt_i != ".") {
11425      if ($lt_i == "..") {
11426        lt_count++;
11427      } else {
11428        if (lt_count == 0) {
11429          lt_foo = "/" $lt_i lt_foo;
11430        } else {
11431          lt_count--;
11432        }
11433      }
11434    }
11435  }
11436  if (lt_foo != "") { lt_freq[lt_foo]++; }
11437  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11438}'`
11439  # AWK program above erroneously prepends '/' to C:/dos/paths
11440  # for these hosts.
11441  case $host_os in
11442    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11443      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11444  esac
11445  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11446else
11447  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11448fi
11449library_names_spec=
11450libname_spec='lib$name'
11451soname_spec=
11452shrext_cmds=.so
11453postinstall_cmds=
11454postuninstall_cmds=
11455finish_cmds=
11456finish_eval=
11457shlibpath_var=
11458shlibpath_overrides_runpath=unknown
11459version_type=none
11460dynamic_linker="$host_os ld.so"
11461sys_lib_dlsearch_path_spec="/lib /usr/lib"
11462need_lib_prefix=unknown
11463hardcode_into_libs=no
11464
11465# when you set need_version to no, make sure it does not cause -set_version
11466# flags to be left without arguments
11467need_version=unknown
11468
11469
11470
11471case $host_os in
11472aix3*)
11473  version_type=linux # correct to gnu/linux during the next big refactor
11474  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11475  shlibpath_var=LIBPATH
11476
11477  # AIX 3 has no versioning support, so we append a major version to the name.
11478  soname_spec='$libname$release$shared_ext$major'
11479  ;;
11480
11481aix[4-9]*)
11482  version_type=linux # correct to gnu/linux during the next big refactor
11483  need_lib_prefix=no
11484  need_version=no
11485  hardcode_into_libs=yes
11486  if test ia64 = "$host_cpu"; then
11487    # AIX 5 supports IA64
11488    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11489    shlibpath_var=LD_LIBRARY_PATH
11490  else
11491    # With GCC up to 2.95.x, collect2 would create an import file
11492    # for dependence libraries.  The import file would start with
11493    # the line '#! .'.  This would cause the generated library to
11494    # depend on '.', always an invalid library.  This was fixed in
11495    # development snapshots of GCC prior to 3.0.
11496    case $host_os in
11497      aix4 | aix4.[01] | aix4.[01].*)
11498      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11499	   echo ' yes '
11500	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11501	:
11502      else
11503	can_build_shared=no
11504      fi
11505      ;;
11506    esac
11507    # Using Import Files as archive members, it is possible to support
11508    # filename-based versioning of shared library archives on AIX. While
11509    # this would work for both with and without runtime linking, it will
11510    # prevent static linking of such archives. So we do filename-based
11511    # shared library versioning with .so extension only, which is used
11512    # when both runtime linking and shared linking is enabled.
11513    # Unfortunately, runtime linking may impact performance, so we do
11514    # not want this to be the default eventually. Also, we use the
11515    # versioned .so libs for executables only if there is the -brtl
11516    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11517    # To allow for filename-based versioning support, we need to create
11518    # libNAME.so.V as an archive file, containing:
11519    # *) an Import File, referring to the versioned filename of the
11520    #    archive as well as the shared archive member, telling the
11521    #    bitwidth (32 or 64) of that shared object, and providing the
11522    #    list of exported symbols of that shared object, eventually
11523    #    decorated with the 'weak' keyword
11524    # *) the shared object with the F_LOADONLY flag set, to really avoid
11525    #    it being seen by the linker.
11526    # At run time we better use the real file rather than another symlink,
11527    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11528
11529    case $with_aix_soname,$aix_use_runtimelinking in
11530    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11531    # soname into executable. Probably we can add versioning support to
11532    # collect2, so additional links can be useful in future.
11533    aix,yes) # traditional libtool
11534      dynamic_linker='AIX unversionable lib.so'
11535      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11536      # instead of lib<name>.a to let people know that these are not
11537      # typical AIX shared libraries.
11538      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11539      ;;
11540    aix,no) # traditional AIX only
11541      dynamic_linker='AIX lib.a(lib.so.V)'
11542      # We preserve .a as extension for shared libraries through AIX4.2
11543      # and later when we are not doing run time linking.
11544      library_names_spec='$libname$release.a $libname.a'
11545      soname_spec='$libname$release$shared_ext$major'
11546      ;;
11547    svr4,*) # full svr4 only
11548      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11549      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11550      # We do not specify a path in Import Files, so LIBPATH fires.
11551      shlibpath_overrides_runpath=yes
11552      ;;
11553    *,yes) # both, prefer svr4
11554      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11555      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11556      # unpreferred sharedlib libNAME.a needs extra handling
11557      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"'
11558      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"'
11559      # We do not specify a path in Import Files, so LIBPATH fires.
11560      shlibpath_overrides_runpath=yes
11561      ;;
11562    *,no) # both, prefer aix
11563      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11564      library_names_spec='$libname$release.a $libname.a'
11565      soname_spec='$libname$release$shared_ext$major'
11566      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11567      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)'
11568      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"'
11569      ;;
11570    esac
11571    shlibpath_var=LIBPATH
11572  fi
11573  ;;
11574
11575amigaos*)
11576  case $host_cpu in
11577  powerpc)
11578    # Since July 2007 AmigaOS4 officially supports .so libraries.
11579    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11580    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11581    ;;
11582  m68k)
11583    library_names_spec='$libname.ixlibrary $libname.a'
11584    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11585    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'
11586    ;;
11587  esac
11588  ;;
11589
11590beos*)
11591  library_names_spec='$libname$shared_ext'
11592  dynamic_linker="$host_os ld.so"
11593  shlibpath_var=LIBRARY_PATH
11594  ;;
11595
11596bsdi[45]*)
11597  version_type=linux # correct to gnu/linux during the next big refactor
11598  need_version=no
11599  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11600  soname_spec='$libname$release$shared_ext$major'
11601  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11602  shlibpath_var=LD_LIBRARY_PATH
11603  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11604  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11605  # the default ld.so.conf also contains /usr/contrib/lib and
11606  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11607  # libtool to hard-code these into programs
11608  ;;
11609
11610cygwin* | mingw* | pw32* | cegcc*)
11611  version_type=windows
11612  shrext_cmds=.dll
11613  need_version=no
11614  need_lib_prefix=no
11615
11616  case $GCC,$cc_basename in
11617  yes,*)
11618    # gcc
11619    library_names_spec='$libname.dll.a'
11620    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11621    postinstall_cmds='base_file=`basename \$file`~
11622      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11623      dldir=$destdir/`dirname \$dlpath`~
11624      test -d \$dldir || mkdir -p \$dldir~
11625      $install_prog $dir/$dlname \$dldir/$dlname~
11626      chmod a+x \$dldir/$dlname~
11627      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11628        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11629      fi'
11630    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11631      dlpath=$dir/\$dldll~
11632       $RM \$dlpath'
11633    shlibpath_overrides_runpath=yes
11634
11635    case $host_os in
11636    cygwin*)
11637      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11638      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11639
11640      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11641      ;;
11642    mingw* | cegcc*)
11643      # MinGW DLLs use traditional 'lib' prefix
11644      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11645      ;;
11646    pw32*)
11647      # pw32 DLLs use 'pw' prefix rather than 'lib'
11648      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11649      ;;
11650    esac
11651    dynamic_linker='Win32 ld.exe'
11652    ;;
11653
11654  *,cl*)
11655    # Native MSVC
11656    libname_spec='$name'
11657    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11658    library_names_spec='$libname.dll.lib'
11659
11660    case $build_os in
11661    mingw*)
11662      sys_lib_search_path_spec=
11663      lt_save_ifs=$IFS
11664      IFS=';'
11665      for lt_path in $LIB
11666      do
11667        IFS=$lt_save_ifs
11668        # Let DOS variable expansion print the short 8.3 style file name.
11669        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11670        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11671      done
11672      IFS=$lt_save_ifs
11673      # Convert to MSYS style.
11674      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11675      ;;
11676    cygwin*)
11677      # Convert to unix form, then to dos form, then back to unix form
11678      # but this time dos style (no spaces!) so that the unix form looks
11679      # like /cygdrive/c/PROGRA~1:/cygdr...
11680      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11681      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11682      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11683      ;;
11684    *)
11685      sys_lib_search_path_spec=$LIB
11686      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11687        # It is most probably a Windows format PATH.
11688        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11689      else
11690        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11691      fi
11692      # FIXME: find the short name or the path components, as spaces are
11693      # common. (e.g. "Program Files" -> "PROGRA~1")
11694      ;;
11695    esac
11696
11697    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11698    postinstall_cmds='base_file=`basename \$file`~
11699      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11700      dldir=$destdir/`dirname \$dlpath`~
11701      test -d \$dldir || mkdir -p \$dldir~
11702      $install_prog $dir/$dlname \$dldir/$dlname'
11703    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11704      dlpath=$dir/\$dldll~
11705       $RM \$dlpath'
11706    shlibpath_overrides_runpath=yes
11707    dynamic_linker='Win32 link.exe'
11708    ;;
11709
11710  *)
11711    # Assume MSVC wrapper
11712    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11713    dynamic_linker='Win32 ld.exe'
11714    ;;
11715  esac
11716  # FIXME: first we should search . and the directory the executable is in
11717  shlibpath_var=PATH
11718  ;;
11719
11720darwin* | rhapsody*)
11721  dynamic_linker="$host_os dyld"
11722  version_type=darwin
11723  need_lib_prefix=no
11724  need_version=no
11725  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11726  soname_spec='$libname$release$major$shared_ext'
11727  shlibpath_overrides_runpath=yes
11728  shlibpath_var=DYLD_LIBRARY_PATH
11729  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11730
11731  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11732  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11733  ;;
11734
11735dgux*)
11736  version_type=linux # correct to gnu/linux during the next big refactor
11737  need_lib_prefix=no
11738  need_version=no
11739  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11740  soname_spec='$libname$release$shared_ext$major'
11741  shlibpath_var=LD_LIBRARY_PATH
11742  ;;
11743
11744freebsd* | dragonfly*)
11745  # DragonFly does not have aout.  When/if they implement a new
11746  # versioning mechanism, adjust this.
11747  if test -x /usr/bin/objformat; then
11748    objformat=`/usr/bin/objformat`
11749  else
11750    case $host_os in
11751    freebsd[23].*) objformat=aout ;;
11752    *) objformat=elf ;;
11753    esac
11754  fi
11755  version_type=freebsd-$objformat
11756  case $version_type in
11757    freebsd-elf*)
11758      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11759      soname_spec='$libname$release$shared_ext$major'
11760      need_version=no
11761      need_lib_prefix=no
11762      ;;
11763    freebsd-*)
11764      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11765      need_version=yes
11766      ;;
11767  esac
11768  shlibpath_var=LD_LIBRARY_PATH
11769  case $host_os in
11770  freebsd2.*)
11771    shlibpath_overrides_runpath=yes
11772    ;;
11773  freebsd3.[01]* | freebsdelf3.[01]*)
11774    shlibpath_overrides_runpath=yes
11775    hardcode_into_libs=yes
11776    ;;
11777  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11778  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11779    shlibpath_overrides_runpath=no
11780    hardcode_into_libs=yes
11781    ;;
11782  *) # from 4.6 on, and DragonFly
11783    shlibpath_overrides_runpath=yes
11784    hardcode_into_libs=yes
11785    ;;
11786  esac
11787  ;;
11788
11789haiku*)
11790  version_type=linux # correct to gnu/linux during the next big refactor
11791  need_lib_prefix=no
11792  need_version=no
11793  dynamic_linker="$host_os runtime_loader"
11794  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11795  soname_spec='$libname$release$shared_ext$major'
11796  shlibpath_var=LIBRARY_PATH
11797  shlibpath_overrides_runpath=no
11798  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11799  hardcode_into_libs=yes
11800  ;;
11801
11802hpux9* | hpux10* | hpux11*)
11803  # Give a soname corresponding to the major version so that dld.sl refuses to
11804  # link against other versions.
11805  version_type=sunos
11806  need_lib_prefix=no
11807  need_version=no
11808  case $host_cpu in
11809  ia64*)
11810    shrext_cmds='.so'
11811    hardcode_into_libs=yes
11812    dynamic_linker="$host_os dld.so"
11813    shlibpath_var=LD_LIBRARY_PATH
11814    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11815    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11816    soname_spec='$libname$release$shared_ext$major'
11817    if test 32 = "$HPUX_IA64_MODE"; then
11818      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11819      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11820    else
11821      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11822      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11823    fi
11824    ;;
11825  hppa*64*)
11826    shrext_cmds='.sl'
11827    hardcode_into_libs=yes
11828    dynamic_linker="$host_os dld.sl"
11829    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11830    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11831    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11832    soname_spec='$libname$release$shared_ext$major'
11833    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11834    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11835    ;;
11836  *)
11837    shrext_cmds='.sl'
11838    dynamic_linker="$host_os dld.sl"
11839    shlibpath_var=SHLIB_PATH
11840    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11841    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11842    soname_spec='$libname$release$shared_ext$major'
11843    ;;
11844  esac
11845  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11846  postinstall_cmds='chmod 555 $lib'
11847  # or fails outright, so override atomically:
11848  install_override_mode=555
11849  ;;
11850
11851interix[3-9]*)
11852  version_type=linux # correct to gnu/linux during the next big refactor
11853  need_lib_prefix=no
11854  need_version=no
11855  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11856  soname_spec='$libname$release$shared_ext$major'
11857  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11858  shlibpath_var=LD_LIBRARY_PATH
11859  shlibpath_overrides_runpath=no
11860  hardcode_into_libs=yes
11861  ;;
11862
11863irix5* | irix6* | nonstopux*)
11864  case $host_os in
11865    nonstopux*) version_type=nonstopux ;;
11866    *)
11867	if test yes = "$lt_cv_prog_gnu_ld"; then
11868		version_type=linux # correct to gnu/linux during the next big refactor
11869	else
11870		version_type=irix
11871	fi ;;
11872  esac
11873  need_lib_prefix=no
11874  need_version=no
11875  soname_spec='$libname$release$shared_ext$major'
11876  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11877  case $host_os in
11878  irix5* | nonstopux*)
11879    libsuff= shlibsuff=
11880    ;;
11881  *)
11882    case $LD in # libtool.m4 will add one of these switches to LD
11883    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11884      libsuff= shlibsuff= libmagic=32-bit;;
11885    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11886      libsuff=32 shlibsuff=N32 libmagic=N32;;
11887    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11888      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11889    *) libsuff= shlibsuff= libmagic=never-match;;
11890    esac
11891    ;;
11892  esac
11893  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11894  shlibpath_overrides_runpath=no
11895  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11896  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11897  hardcode_into_libs=yes
11898  ;;
11899
11900# No shared lib support for Linux oldld, aout, or coff.
11901linux*oldld* | linux*aout* | linux*coff*)
11902  dynamic_linker=no
11903  ;;
11904
11905linux*android*)
11906  version_type=none # Android doesn't support versioned libraries.
11907  need_lib_prefix=no
11908  need_version=no
11909  library_names_spec='$libname$release$shared_ext'
11910  soname_spec='$libname$release$shared_ext'
11911  finish_cmds=
11912  shlibpath_var=LD_LIBRARY_PATH
11913  shlibpath_overrides_runpath=yes
11914
11915  # This implies no fast_install, which is unacceptable.
11916  # Some rework will be needed to allow for fast_install
11917  # before this can be enabled.
11918  hardcode_into_libs=yes
11919
11920  dynamic_linker='Android linker'
11921  # Don't embed -rpath directories since the linker doesn't support them.
11922  hardcode_libdir_flag_spec='-L$libdir'
11923  ;;
11924
11925# This must be glibc/ELF.
11926linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11927  version_type=linux # correct to gnu/linux during the next big refactor
11928  need_lib_prefix=no
11929  need_version=no
11930  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11931  soname_spec='$libname$release$shared_ext$major'
11932  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11933  shlibpath_var=LD_LIBRARY_PATH
11934  shlibpath_overrides_runpath=no
11935
11936  # Some binutils ld are patched to set DT_RUNPATH
11937  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11938  $as_echo_n "(cached) " >&6
11939else
11940  lt_cv_shlibpath_overrides_runpath=no
11941    save_LDFLAGS=$LDFLAGS
11942    save_libdir=$libdir
11943    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11944	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11945    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11946/* end confdefs.h.  */
11947
11948int
11949main ()
11950{
11951
11952  ;
11953  return 0;
11954}
11955_ACEOF
11956if ac_fn_c_try_link "$LINENO"; then :
11957  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11958  lt_cv_shlibpath_overrides_runpath=yes
11959fi
11960fi
11961rm -f core conftest.err conftest.$ac_objext \
11962    conftest$ac_exeext conftest.$ac_ext
11963    LDFLAGS=$save_LDFLAGS
11964    libdir=$save_libdir
11965
11966fi
11967
11968  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11969
11970  # This implies no fast_install, which is unacceptable.
11971  # Some rework will be needed to allow for fast_install
11972  # before this can be enabled.
11973  hardcode_into_libs=yes
11974
11975  # Ideally, we could use ldconfig to report *all* directores which are
11976  # searched for libraries, however this is still not possible.  Aside from not
11977  # being certain /sbin/ldconfig is available, command
11978  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11979  # even though it is searched at run-time.  Try to do the best guess by
11980  # appending ld.so.conf contents (and includes) to the search path.
11981  if test -f /etc/ld.so.conf; then
11982    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' ' '`
11983    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11984  fi
11985
11986  # We used to test for /lib/ld.so.1 and disable shared libraries on
11987  # powerpc, because MkLinux only supported shared libraries with the
11988  # GNU dynamic linker.  Since this was broken with cross compilers,
11989  # most powerpc-linux boxes support dynamic linking these days and
11990  # people can always --disable-shared, the test was removed, and we
11991  # assume the GNU/Linux dynamic linker is in use.
11992  dynamic_linker='GNU/Linux ld.so'
11993  ;;
11994
11995netbsdelf*-gnu)
11996  version_type=linux
11997  need_lib_prefix=no
11998  need_version=no
11999  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12000  soname_spec='${libname}${release}${shared_ext}$major'
12001  shlibpath_var=LD_LIBRARY_PATH
12002  shlibpath_overrides_runpath=no
12003  hardcode_into_libs=yes
12004  dynamic_linker='NetBSD ld.elf_so'
12005  ;;
12006
12007netbsd*)
12008  version_type=sunos
12009  need_lib_prefix=no
12010  need_version=no
12011  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12012    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12013    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12014    dynamic_linker='NetBSD (a.out) ld.so'
12015  else
12016    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12017    soname_spec='$libname$release$shared_ext$major'
12018    dynamic_linker='NetBSD ld.elf_so'
12019  fi
12020  shlibpath_var=LD_LIBRARY_PATH
12021  shlibpath_overrides_runpath=yes
12022  hardcode_into_libs=yes
12023  ;;
12024
12025newsos6)
12026  version_type=linux # correct to gnu/linux during the next big refactor
12027  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12028  shlibpath_var=LD_LIBRARY_PATH
12029  shlibpath_overrides_runpath=yes
12030  ;;
12031
12032*nto* | *qnx*)
12033  version_type=qnx
12034  need_lib_prefix=no
12035  need_version=no
12036  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12037  soname_spec='$libname$release$shared_ext$major'
12038  shlibpath_var=LD_LIBRARY_PATH
12039  shlibpath_overrides_runpath=no
12040  hardcode_into_libs=yes
12041  dynamic_linker='ldqnx.so'
12042  ;;
12043
12044openbsd* | bitrig*)
12045  version_type=sunos
12046  sys_lib_dlsearch_path_spec=/usr/lib
12047  need_lib_prefix=no
12048  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12049    need_version=no
12050  else
12051    need_version=yes
12052  fi
12053  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12054  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12055  shlibpath_var=LD_LIBRARY_PATH
12056  shlibpath_overrides_runpath=yes
12057  ;;
12058
12059os2*)
12060  libname_spec='$name'
12061  version_type=windows
12062  shrext_cmds=.dll
12063  need_version=no
12064  need_lib_prefix=no
12065  # OS/2 can only load a DLL with a base name of 8 characters or less.
12066  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12067    v=$($ECHO $release$versuffix | tr -d .-);
12068    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12069    $ECHO $n$v`$shared_ext'
12070  library_names_spec='${libname}_dll.$libext'
12071  dynamic_linker='OS/2 ld.exe'
12072  shlibpath_var=BEGINLIBPATH
12073  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12074  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12075  postinstall_cmds='base_file=`basename \$file`~
12076    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12077    dldir=$destdir/`dirname \$dlpath`~
12078    test -d \$dldir || mkdir -p \$dldir~
12079    $install_prog $dir/$dlname \$dldir/$dlname~
12080    chmod a+x \$dldir/$dlname~
12081    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12082      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12083    fi'
12084  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12085    dlpath=$dir/\$dldll~
12086    $RM \$dlpath'
12087  ;;
12088
12089osf3* | osf4* | osf5*)
12090  version_type=osf
12091  need_lib_prefix=no
12092  need_version=no
12093  soname_spec='$libname$release$shared_ext$major'
12094  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12095  shlibpath_var=LD_LIBRARY_PATH
12096  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12097  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12098  ;;
12099
12100rdos*)
12101  dynamic_linker=no
12102  ;;
12103
12104solaris*)
12105  version_type=linux # correct to gnu/linux during the next big refactor
12106  need_lib_prefix=no
12107  need_version=no
12108  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12109  soname_spec='$libname$release$shared_ext$major'
12110  shlibpath_var=LD_LIBRARY_PATH
12111  shlibpath_overrides_runpath=yes
12112  hardcode_into_libs=yes
12113  # ldd complains unless libraries are executable
12114  postinstall_cmds='chmod +x $lib'
12115  ;;
12116
12117sunos4*)
12118  version_type=sunos
12119  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12120  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12121  shlibpath_var=LD_LIBRARY_PATH
12122  shlibpath_overrides_runpath=yes
12123  if test yes = "$with_gnu_ld"; then
12124    need_lib_prefix=no
12125  fi
12126  need_version=yes
12127  ;;
12128
12129sysv4 | sysv4.3*)
12130  version_type=linux # correct to gnu/linux during the next big refactor
12131  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12132  soname_spec='$libname$release$shared_ext$major'
12133  shlibpath_var=LD_LIBRARY_PATH
12134  case $host_vendor in
12135    sni)
12136      shlibpath_overrides_runpath=no
12137      need_lib_prefix=no
12138      runpath_var=LD_RUN_PATH
12139      ;;
12140    siemens)
12141      need_lib_prefix=no
12142      ;;
12143    motorola)
12144      need_lib_prefix=no
12145      need_version=no
12146      shlibpath_overrides_runpath=no
12147      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12148      ;;
12149  esac
12150  ;;
12151
12152sysv4*MP*)
12153  if test -d /usr/nec; then
12154    version_type=linux # correct to gnu/linux during the next big refactor
12155    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12156    soname_spec='$libname$shared_ext.$major'
12157    shlibpath_var=LD_LIBRARY_PATH
12158  fi
12159  ;;
12160
12161sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12162  version_type=sco
12163  need_lib_prefix=no
12164  need_version=no
12165  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12166  soname_spec='$libname$release$shared_ext$major'
12167  shlibpath_var=LD_LIBRARY_PATH
12168  shlibpath_overrides_runpath=yes
12169  hardcode_into_libs=yes
12170  if test yes = "$with_gnu_ld"; then
12171    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12172  else
12173    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12174    case $host_os in
12175      sco3.2v5*)
12176        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12177	;;
12178    esac
12179  fi
12180  sys_lib_dlsearch_path_spec='/usr/lib'
12181  ;;
12182
12183tpf*)
12184  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12185  version_type=linux # correct to gnu/linux during the next big refactor
12186  need_lib_prefix=no
12187  need_version=no
12188  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12189  shlibpath_var=LD_LIBRARY_PATH
12190  shlibpath_overrides_runpath=no
12191  hardcode_into_libs=yes
12192  ;;
12193
12194uts4*)
12195  version_type=linux # correct to gnu/linux during the next big refactor
12196  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12197  soname_spec='$libname$release$shared_ext$major'
12198  shlibpath_var=LD_LIBRARY_PATH
12199  ;;
12200
12201*)
12202  dynamic_linker=no
12203  ;;
12204esac
12205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12206$as_echo "$dynamic_linker" >&6; }
12207test no = "$dynamic_linker" && can_build_shared=no
12208
12209variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12210if test yes = "$GCC"; then
12211  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12212fi
12213
12214if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12215  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12216fi
12217
12218if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12219  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12220fi
12221
12222# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12223configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12224
12225# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12226func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12227
12228# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12229configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12328$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12329hardcode_action=
12330if test -n "$hardcode_libdir_flag_spec" ||
12331   test -n "$runpath_var" ||
12332   test yes = "$hardcode_automatic"; then
12333
12334  # We can hardcode non-existent directories.
12335  if test no != "$hardcode_direct" &&
12336     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12337     # have to relink, otherwise we might link with an installed library
12338     # when we should be linking with a yet-to-be-installed one
12339     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12340     test no != "$hardcode_minus_L"; then
12341    # Linking always hardcodes the temporary library directory.
12342    hardcode_action=relink
12343  else
12344    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12345    hardcode_action=immediate
12346  fi
12347else
12348  # We cannot hardcode anything, or else we can only hardcode existing
12349  # directories.
12350  hardcode_action=unsupported
12351fi
12352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12353$as_echo "$hardcode_action" >&6; }
12354
12355if test relink = "$hardcode_action" ||
12356   test yes = "$inherit_rpath"; then
12357  # Fast installation is not supported
12358  enable_fast_install=no
12359elif test yes = "$shlibpath_overrides_runpath" ||
12360     test no = "$enable_shared"; then
12361  # Fast installation is not necessary
12362  enable_fast_install=needless
12363fi
12364
12365
12366
12367
12368
12369
12370  if test yes != "$enable_dlopen"; then
12371  enable_dlopen=unknown
12372  enable_dlopen_self=unknown
12373  enable_dlopen_self_static=unknown
12374else
12375  lt_cv_dlopen=no
12376  lt_cv_dlopen_libs=
12377
12378  case $host_os in
12379  beos*)
12380    lt_cv_dlopen=load_add_on
12381    lt_cv_dlopen_libs=
12382    lt_cv_dlopen_self=yes
12383    ;;
12384
12385  mingw* | pw32* | cegcc*)
12386    lt_cv_dlopen=LoadLibrary
12387    lt_cv_dlopen_libs=
12388    ;;
12389
12390  cygwin*)
12391    lt_cv_dlopen=dlopen
12392    lt_cv_dlopen_libs=
12393    ;;
12394
12395  darwin*)
12396    # if libdl is installed we need to link against it
12397    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12398$as_echo_n "checking for dlopen in -ldl... " >&6; }
12399if ${ac_cv_lib_dl_dlopen+:} false; then :
12400  $as_echo_n "(cached) " >&6
12401else
12402  ac_check_lib_save_LIBS=$LIBS
12403LIBS="-ldl  $LIBS"
12404cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12405/* end confdefs.h.  */
12406
12407/* Override any GCC internal prototype to avoid an error.
12408   Use char because int might match the return type of a GCC
12409   builtin and then its argument prototype would still apply.  */
12410#ifdef __cplusplus
12411extern "C"
12412#endif
12413char dlopen ();
12414int
12415main ()
12416{
12417return dlopen ();
12418  ;
12419  return 0;
12420}
12421_ACEOF
12422if ac_fn_c_try_link "$LINENO"; then :
12423  ac_cv_lib_dl_dlopen=yes
12424else
12425  ac_cv_lib_dl_dlopen=no
12426fi
12427rm -f core conftest.err conftest.$ac_objext \
12428    conftest$ac_exeext conftest.$ac_ext
12429LIBS=$ac_check_lib_save_LIBS
12430fi
12431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12432$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12433if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12434  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12435else
12436
12437    lt_cv_dlopen=dyld
12438    lt_cv_dlopen_libs=
12439    lt_cv_dlopen_self=yes
12440
12441fi
12442
12443    ;;
12444
12445  tpf*)
12446    # Don't try to run any link tests for TPF.  We know it's impossible
12447    # because TPF is a cross-compiler, and we know how we open DSOs.
12448    lt_cv_dlopen=dlopen
12449    lt_cv_dlopen_libs=
12450    lt_cv_dlopen_self=no
12451    ;;
12452
12453  *)
12454    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12455if test "x$ac_cv_func_shl_load" = xyes; then :
12456  lt_cv_dlopen=shl_load
12457else
12458  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12459$as_echo_n "checking for shl_load in -ldld... " >&6; }
12460if ${ac_cv_lib_dld_shl_load+:} false; then :
12461  $as_echo_n "(cached) " >&6
12462else
12463  ac_check_lib_save_LIBS=$LIBS
12464LIBS="-ldld  $LIBS"
12465cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12466/* end confdefs.h.  */
12467
12468/* Override any GCC internal prototype to avoid an error.
12469   Use char because int might match the return type of a GCC
12470   builtin and then its argument prototype would still apply.  */
12471#ifdef __cplusplus
12472extern "C"
12473#endif
12474char shl_load ();
12475int
12476main ()
12477{
12478return shl_load ();
12479  ;
12480  return 0;
12481}
12482_ACEOF
12483if ac_fn_c_try_link "$LINENO"; then :
12484  ac_cv_lib_dld_shl_load=yes
12485else
12486  ac_cv_lib_dld_shl_load=no
12487fi
12488rm -f core conftest.err conftest.$ac_objext \
12489    conftest$ac_exeext conftest.$ac_ext
12490LIBS=$ac_check_lib_save_LIBS
12491fi
12492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12493$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12494if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12495  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12496else
12497  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12498if test "x$ac_cv_func_dlopen" = xyes; then :
12499  lt_cv_dlopen=dlopen
12500else
12501  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12502$as_echo_n "checking for dlopen in -ldl... " >&6; }
12503if ${ac_cv_lib_dl_dlopen+:} false; then :
12504  $as_echo_n "(cached) " >&6
12505else
12506  ac_check_lib_save_LIBS=$LIBS
12507LIBS="-ldl  $LIBS"
12508cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12509/* end confdefs.h.  */
12510
12511/* Override any GCC internal prototype to avoid an error.
12512   Use char because int might match the return type of a GCC
12513   builtin and then its argument prototype would still apply.  */
12514#ifdef __cplusplus
12515extern "C"
12516#endif
12517char dlopen ();
12518int
12519main ()
12520{
12521return dlopen ();
12522  ;
12523  return 0;
12524}
12525_ACEOF
12526if ac_fn_c_try_link "$LINENO"; then :
12527  ac_cv_lib_dl_dlopen=yes
12528else
12529  ac_cv_lib_dl_dlopen=no
12530fi
12531rm -f core conftest.err conftest.$ac_objext \
12532    conftest$ac_exeext conftest.$ac_ext
12533LIBS=$ac_check_lib_save_LIBS
12534fi
12535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12536$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12537if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12538  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12539else
12540  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12541$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12542if ${ac_cv_lib_svld_dlopen+:} false; then :
12543  $as_echo_n "(cached) " >&6
12544else
12545  ac_check_lib_save_LIBS=$LIBS
12546LIBS="-lsvld  $LIBS"
12547cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12548/* end confdefs.h.  */
12549
12550/* Override any GCC internal prototype to avoid an error.
12551   Use char because int might match the return type of a GCC
12552   builtin and then its argument prototype would still apply.  */
12553#ifdef __cplusplus
12554extern "C"
12555#endif
12556char dlopen ();
12557int
12558main ()
12559{
12560return dlopen ();
12561  ;
12562  return 0;
12563}
12564_ACEOF
12565if ac_fn_c_try_link "$LINENO"; then :
12566  ac_cv_lib_svld_dlopen=yes
12567else
12568  ac_cv_lib_svld_dlopen=no
12569fi
12570rm -f core conftest.err conftest.$ac_objext \
12571    conftest$ac_exeext conftest.$ac_ext
12572LIBS=$ac_check_lib_save_LIBS
12573fi
12574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12575$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12576if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12577  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12578else
12579  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12580$as_echo_n "checking for dld_link in -ldld... " >&6; }
12581if ${ac_cv_lib_dld_dld_link+:} false; then :
12582  $as_echo_n "(cached) " >&6
12583else
12584  ac_check_lib_save_LIBS=$LIBS
12585LIBS="-ldld  $LIBS"
12586cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12587/* end confdefs.h.  */
12588
12589/* Override any GCC internal prototype to avoid an error.
12590   Use char because int might match the return type of a GCC
12591   builtin and then its argument prototype would still apply.  */
12592#ifdef __cplusplus
12593extern "C"
12594#endif
12595char dld_link ();
12596int
12597main ()
12598{
12599return dld_link ();
12600  ;
12601  return 0;
12602}
12603_ACEOF
12604if ac_fn_c_try_link "$LINENO"; then :
12605  ac_cv_lib_dld_dld_link=yes
12606else
12607  ac_cv_lib_dld_dld_link=no
12608fi
12609rm -f core conftest.err conftest.$ac_objext \
12610    conftest$ac_exeext conftest.$ac_ext
12611LIBS=$ac_check_lib_save_LIBS
12612fi
12613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12614$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12615if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12616  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12617fi
12618
12619
12620fi
12621
12622
12623fi
12624
12625
12626fi
12627
12628
12629fi
12630
12631
12632fi
12633
12634    ;;
12635  esac
12636
12637  if test no = "$lt_cv_dlopen"; then
12638    enable_dlopen=no
12639  else
12640    enable_dlopen=yes
12641  fi
12642
12643  case $lt_cv_dlopen in
12644  dlopen)
12645    save_CPPFLAGS=$CPPFLAGS
12646    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12647
12648    save_LDFLAGS=$LDFLAGS
12649    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12650
12651    save_LIBS=$LIBS
12652    LIBS="$lt_cv_dlopen_libs $LIBS"
12653
12654    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12655$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12656if ${lt_cv_dlopen_self+:} false; then :
12657  $as_echo_n "(cached) " >&6
12658else
12659  	  if test yes = "$cross_compiling"; then :
12660  lt_cv_dlopen_self=cross
12661else
12662  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12663  lt_status=$lt_dlunknown
12664  cat > conftest.$ac_ext <<_LT_EOF
12665#line $LINENO "configure"
12666#include "confdefs.h"
12667
12668#if HAVE_DLFCN_H
12669#include <dlfcn.h>
12670#endif
12671
12672#include <stdio.h>
12673
12674#ifdef RTLD_GLOBAL
12675#  define LT_DLGLOBAL		RTLD_GLOBAL
12676#else
12677#  ifdef DL_GLOBAL
12678#    define LT_DLGLOBAL		DL_GLOBAL
12679#  else
12680#    define LT_DLGLOBAL		0
12681#  endif
12682#endif
12683
12684/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12685   find out it does not work in some platform. */
12686#ifndef LT_DLLAZY_OR_NOW
12687#  ifdef RTLD_LAZY
12688#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12689#  else
12690#    ifdef DL_LAZY
12691#      define LT_DLLAZY_OR_NOW		DL_LAZY
12692#    else
12693#      ifdef RTLD_NOW
12694#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12695#      else
12696#        ifdef DL_NOW
12697#          define LT_DLLAZY_OR_NOW	DL_NOW
12698#        else
12699#          define LT_DLLAZY_OR_NOW	0
12700#        endif
12701#      endif
12702#    endif
12703#  endif
12704#endif
12705
12706/* When -fvisibility=hidden is used, assume the code has been annotated
12707   correspondingly for the symbols needed.  */
12708#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12709int fnord () __attribute__((visibility("default")));
12710#endif
12711
12712int fnord () { return 42; }
12713int main ()
12714{
12715  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12716  int status = $lt_dlunknown;
12717
12718  if (self)
12719    {
12720      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12721      else
12722        {
12723	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12724          else puts (dlerror ());
12725	}
12726      /* dlclose (self); */
12727    }
12728  else
12729    puts (dlerror ());
12730
12731  return status;
12732}
12733_LT_EOF
12734  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12735  (eval $ac_link) 2>&5
12736  ac_status=$?
12737  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12738  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12739    (./conftest; exit; ) >&5 2>/dev/null
12740    lt_status=$?
12741    case x$lt_status in
12742      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12743      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12744      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12745    esac
12746  else :
12747    # compilation failed
12748    lt_cv_dlopen_self=no
12749  fi
12750fi
12751rm -fr conftest*
12752
12753
12754fi
12755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12756$as_echo "$lt_cv_dlopen_self" >&6; }
12757
12758    if test yes = "$lt_cv_dlopen_self"; then
12759      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12760      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12761$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12762if ${lt_cv_dlopen_self_static+:} false; then :
12763  $as_echo_n "(cached) " >&6
12764else
12765  	  if test yes = "$cross_compiling"; then :
12766  lt_cv_dlopen_self_static=cross
12767else
12768  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12769  lt_status=$lt_dlunknown
12770  cat > conftest.$ac_ext <<_LT_EOF
12771#line $LINENO "configure"
12772#include "confdefs.h"
12773
12774#if HAVE_DLFCN_H
12775#include <dlfcn.h>
12776#endif
12777
12778#include <stdio.h>
12779
12780#ifdef RTLD_GLOBAL
12781#  define LT_DLGLOBAL		RTLD_GLOBAL
12782#else
12783#  ifdef DL_GLOBAL
12784#    define LT_DLGLOBAL		DL_GLOBAL
12785#  else
12786#    define LT_DLGLOBAL		0
12787#  endif
12788#endif
12789
12790/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12791   find out it does not work in some platform. */
12792#ifndef LT_DLLAZY_OR_NOW
12793#  ifdef RTLD_LAZY
12794#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12795#  else
12796#    ifdef DL_LAZY
12797#      define LT_DLLAZY_OR_NOW		DL_LAZY
12798#    else
12799#      ifdef RTLD_NOW
12800#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12801#      else
12802#        ifdef DL_NOW
12803#          define LT_DLLAZY_OR_NOW	DL_NOW
12804#        else
12805#          define LT_DLLAZY_OR_NOW	0
12806#        endif
12807#      endif
12808#    endif
12809#  endif
12810#endif
12811
12812/* When -fvisibility=hidden is used, assume the code has been annotated
12813   correspondingly for the symbols needed.  */
12814#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12815int fnord () __attribute__((visibility("default")));
12816#endif
12817
12818int fnord () { return 42; }
12819int main ()
12820{
12821  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12822  int status = $lt_dlunknown;
12823
12824  if (self)
12825    {
12826      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12827      else
12828        {
12829	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12830          else puts (dlerror ());
12831	}
12832      /* dlclose (self); */
12833    }
12834  else
12835    puts (dlerror ());
12836
12837  return status;
12838}
12839_LT_EOF
12840  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12841  (eval $ac_link) 2>&5
12842  ac_status=$?
12843  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12844  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12845    (./conftest; exit; ) >&5 2>/dev/null
12846    lt_status=$?
12847    case x$lt_status in
12848      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12849      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12850      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12851    esac
12852  else :
12853    # compilation failed
12854    lt_cv_dlopen_self_static=no
12855  fi
12856fi
12857rm -fr conftest*
12858
12859
12860fi
12861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12862$as_echo "$lt_cv_dlopen_self_static" >&6; }
12863    fi
12864
12865    CPPFLAGS=$save_CPPFLAGS
12866    LDFLAGS=$save_LDFLAGS
12867    LIBS=$save_LIBS
12868    ;;
12869  esac
12870
12871  case $lt_cv_dlopen_self in
12872  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12873  *) enable_dlopen_self=unknown ;;
12874  esac
12875
12876  case $lt_cv_dlopen_self_static in
12877  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12878  *) enable_dlopen_self_static=unknown ;;
12879  esac
12880fi
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898striplib=
12899old_striplib=
12900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12901$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12902if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12903  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12904  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12905  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12906$as_echo "yes" >&6; }
12907else
12908# FIXME - insert some real tests, host_os isn't really good enough
12909  case $host_os in
12910  darwin*)
12911    if test -n "$STRIP"; then
12912      striplib="$STRIP -x"
12913      old_striplib="$STRIP -S"
12914      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12915$as_echo "yes" >&6; }
12916    else
12917      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12918$as_echo "no" >&6; }
12919    fi
12920    ;;
12921  *)
12922    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12923$as_echo "no" >&6; }
12924    ;;
12925  esac
12926fi
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939  # Report what library types will actually be built
12940  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12941$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12943$as_echo "$can_build_shared" >&6; }
12944
12945  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12946$as_echo_n "checking whether to build shared libraries... " >&6; }
12947  test no = "$can_build_shared" && enable_shared=no
12948
12949  # On AIX, shared libraries and static libraries use the same namespace, and
12950  # are all built from PIC.
12951  case $host_os in
12952  aix3*)
12953    test yes = "$enable_shared" && enable_static=no
12954    if test -n "$RANLIB"; then
12955      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12956      postinstall_cmds='$RANLIB $lib'
12957    fi
12958    ;;
12959
12960  aix[4-9]*)
12961    if test ia64 != "$host_cpu"; then
12962      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12963      yes,aix,yes) ;;			# shared object as lib.so file only
12964      yes,svr4,*) ;;			# shared object as lib.so archive member only
12965      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12966      esac
12967    fi
12968    ;;
12969  esac
12970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12971$as_echo "$enable_shared" >&6; }
12972
12973  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12974$as_echo_n "checking whether to build static libraries... " >&6; }
12975  # Make sure either enable_shared or enable_static is yes.
12976  test yes = "$enable_shared" || enable_static=yes
12977  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12978$as_echo "$enable_static" >&6; }
12979
12980
12981
12982
12983fi
12984ac_ext=c
12985ac_cpp='$CPP $CPPFLAGS'
12986ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12987ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12988ac_compiler_gnu=$ac_cv_c_compiler_gnu
12989
12990CC=$lt_save_CC
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006        ac_config_commands="$ac_config_commands libtool"
13007
13008
13009
13010
13011# Only expand once:
13012
13013
13014
13015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13016$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13017    # Check whether --enable-maintainer-mode was given.
13018if test "${enable_maintainer_mode+set}" = set; then :
13019  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13020else
13021  USE_MAINTAINER_MODE=no
13022fi
13023
13024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13025$as_echo "$USE_MAINTAINER_MODE" >&6; }
13026   if test $USE_MAINTAINER_MODE = yes; then
13027  MAINTAINER_MODE_TRUE=
13028  MAINTAINER_MODE_FALSE='#'
13029else
13030  MAINTAINER_MODE_TRUE='#'
13031  MAINTAINER_MODE_FALSE=
13032fi
13033
13034  MAINT=$MAINTAINER_MODE_TRUE
13035
13036
13037
13038
13039# Check we're in the right directory
13040
13041ac_config_headers="$ac_config_headers config.h"
13042
13043
13044
13045# Checks for programs.
13046ac_ext=cpp
13047ac_cpp='$CXXCPP $CPPFLAGS'
13048ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13049ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13050ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13051if test -z "$CXX"; then
13052  if test -n "$CCC"; then
13053    CXX=$CCC
13054  else
13055    if test -n "$ac_tool_prefix"; then
13056  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13057  do
13058    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13059set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13061$as_echo_n "checking for $ac_word... " >&6; }
13062if ${ac_cv_prog_CXX+:} false; then :
13063  $as_echo_n "(cached) " >&6
13064else
13065  if test -n "$CXX"; then
13066  ac_cv_prog_CXX="$CXX" # Let the user override the test.
13067else
13068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13069for as_dir in $PATH
13070do
13071  IFS=$as_save_IFS
13072  test -z "$as_dir" && as_dir=.
13073    for ac_exec_ext in '' $ac_executable_extensions; do
13074  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13075    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13076    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13077    break 2
13078  fi
13079done
13080  done
13081IFS=$as_save_IFS
13082
13083fi
13084fi
13085CXX=$ac_cv_prog_CXX
13086if test -n "$CXX"; then
13087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
13088$as_echo "$CXX" >&6; }
13089else
13090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13091$as_echo "no" >&6; }
13092fi
13093
13094
13095    test -n "$CXX" && break
13096  done
13097fi
13098if test -z "$CXX"; then
13099  ac_ct_CXX=$CXX
13100  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13101do
13102  # Extract the first word of "$ac_prog", so it can be a program name with args.
13103set dummy $ac_prog; ac_word=$2
13104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13105$as_echo_n "checking for $ac_word... " >&6; }
13106if ${ac_cv_prog_ac_ct_CXX+:} false; then :
13107  $as_echo_n "(cached) " >&6
13108else
13109  if test -n "$ac_ct_CXX"; then
13110  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13111else
13112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13113for as_dir in $PATH
13114do
13115  IFS=$as_save_IFS
13116  test -z "$as_dir" && as_dir=.
13117    for ac_exec_ext in '' $ac_executable_extensions; do
13118  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13119    ac_cv_prog_ac_ct_CXX="$ac_prog"
13120    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13121    break 2
13122  fi
13123done
13124  done
13125IFS=$as_save_IFS
13126
13127fi
13128fi
13129ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13130if test -n "$ac_ct_CXX"; then
13131  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
13132$as_echo "$ac_ct_CXX" >&6; }
13133else
13134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13135$as_echo "no" >&6; }
13136fi
13137
13138
13139  test -n "$ac_ct_CXX" && break
13140done
13141
13142  if test "x$ac_ct_CXX" = x; then
13143    CXX="g++"
13144  else
13145    case $cross_compiling:$ac_tool_warned in
13146yes:)
13147{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13148$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13149ac_tool_warned=yes ;;
13150esac
13151    CXX=$ac_ct_CXX
13152  fi
13153fi
13154
13155  fi
13156fi
13157# Provide some information about the compiler.
13158$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
13159set X $ac_compile
13160ac_compiler=$2
13161for ac_option in --version -v -V -qversion; do
13162  { { ac_try="$ac_compiler $ac_option >&5"
13163case "(($ac_try" in
13164  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13165  *) ac_try_echo=$ac_try;;
13166esac
13167eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13168$as_echo "$ac_try_echo"; } >&5
13169  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13170  ac_status=$?
13171  if test -s conftest.err; then
13172    sed '10a\
13173... rest of stderr output deleted ...
13174         10q' conftest.err >conftest.er1
13175    cat conftest.er1 >&5
13176  fi
13177  rm -f conftest.er1 conftest.err
13178  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13179  test $ac_status = 0; }
13180done
13181
13182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
13183$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
13184if ${ac_cv_cxx_compiler_gnu+:} false; then :
13185  $as_echo_n "(cached) " >&6
13186else
13187  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13188/* end confdefs.h.  */
13189
13190int
13191main ()
13192{
13193#ifndef __GNUC__
13194       choke me
13195#endif
13196
13197  ;
13198  return 0;
13199}
13200_ACEOF
13201if ac_fn_cxx_try_compile "$LINENO"; then :
13202  ac_compiler_gnu=yes
13203else
13204  ac_compiler_gnu=no
13205fi
13206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13207ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13208
13209fi
13210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
13211$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
13212if test $ac_compiler_gnu = yes; then
13213  GXX=yes
13214else
13215  GXX=
13216fi
13217ac_test_CXXFLAGS=${CXXFLAGS+set}
13218ac_save_CXXFLAGS=$CXXFLAGS
13219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
13220$as_echo_n "checking whether $CXX accepts -g... " >&6; }
13221if ${ac_cv_prog_cxx_g+:} false; then :
13222  $as_echo_n "(cached) " >&6
13223else
13224  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
13225   ac_cxx_werror_flag=yes
13226   ac_cv_prog_cxx_g=no
13227   CXXFLAGS="-g"
13228   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13229/* end confdefs.h.  */
13230
13231int
13232main ()
13233{
13234
13235  ;
13236  return 0;
13237}
13238_ACEOF
13239if ac_fn_cxx_try_compile "$LINENO"; then :
13240  ac_cv_prog_cxx_g=yes
13241else
13242  CXXFLAGS=""
13243      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13244/* end confdefs.h.  */
13245
13246int
13247main ()
13248{
13249
13250  ;
13251  return 0;
13252}
13253_ACEOF
13254if ac_fn_cxx_try_compile "$LINENO"; then :
13255
13256else
13257  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13258	 CXXFLAGS="-g"
13259	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13260/* end confdefs.h.  */
13261
13262int
13263main ()
13264{
13265
13266  ;
13267  return 0;
13268}
13269_ACEOF
13270if ac_fn_cxx_try_compile "$LINENO"; then :
13271  ac_cv_prog_cxx_g=yes
13272fi
13273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13274fi
13275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13276fi
13277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13278   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13279fi
13280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
13281$as_echo "$ac_cv_prog_cxx_g" >&6; }
13282if test "$ac_test_CXXFLAGS" = set; then
13283  CXXFLAGS=$ac_save_CXXFLAGS
13284elif test $ac_cv_prog_cxx_g = yes; then
13285  if test "$GXX" = yes; then
13286    CXXFLAGS="-g -O2"
13287  else
13288    CXXFLAGS="-g"
13289  fi
13290else
13291  if test "$GXX" = yes; then
13292    CXXFLAGS="-O2"
13293  else
13294    CXXFLAGS=
13295  fi
13296fi
13297ac_ext=c
13298ac_cpp='$CPP $CPPFLAGS'
13299ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13300ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13301ac_compiler_gnu=$ac_cv_c_compiler_gnu
13302
13303depcc="$CXX"  am_compiler_list=
13304
13305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13306$as_echo_n "checking dependency style of $depcc... " >&6; }
13307if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
13308  $as_echo_n "(cached) " >&6
13309else
13310  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13311  # We make a subdir and do the tests there.  Otherwise we can end up
13312  # making bogus files that we don't know about and never remove.  For
13313  # instance it was reported that on HP-UX the gcc test will end up
13314  # making a dummy file named 'D' -- because '-MD' means "put the output
13315  # in D".
13316  rm -rf conftest.dir
13317  mkdir conftest.dir
13318  # Copy depcomp to subdir because otherwise we won't find it if we're
13319  # using a relative directory.
13320  cp "$am_depcomp" conftest.dir
13321  cd conftest.dir
13322  # We will build objects and dependencies in a subdirectory because
13323  # it helps to detect inapplicable dependency modes.  For instance
13324  # both Tru64's cc and ICC support -MD to output dependencies as a
13325  # side effect of compilation, but ICC will put the dependencies in
13326  # the current directory while Tru64 will put them in the object
13327  # directory.
13328  mkdir sub
13329
13330  am_cv_CXX_dependencies_compiler_type=none
13331  if test "$am_compiler_list" = ""; then
13332     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13333  fi
13334  am__universal=false
13335  case " $depcc " in #(
13336     *\ -arch\ *\ -arch\ *) am__universal=true ;;
13337     esac
13338
13339  for depmode in $am_compiler_list; do
13340    # Setup a source with many dependencies, because some compilers
13341    # like to wrap large dependency lists on column 80 (with \), and
13342    # we should not choose a depcomp mode which is confused by this.
13343    #
13344    # We need to recreate these files for each test, as the compiler may
13345    # overwrite some of them when testing with obscure command lines.
13346    # This happens at least with the AIX C compiler.
13347    : > sub/conftest.c
13348    for i in 1 2 3 4 5 6; do
13349      echo '#include "conftst'$i'.h"' >> sub/conftest.c
13350      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13351      # Solaris 10 /bin/sh.
13352      echo '/* dummy */' > sub/conftst$i.h
13353    done
13354    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13355
13356    # We check with '-c' and '-o' for the sake of the "dashmstdout"
13357    # mode.  It turns out that the SunPro C++ compiler does not properly
13358    # handle '-M -o', and we need to detect this.  Also, some Intel
13359    # versions had trouble with output in subdirs.
13360    am__obj=sub/conftest.${OBJEXT-o}
13361    am__minus_obj="-o $am__obj"
13362    case $depmode in
13363    gcc)
13364      # This depmode causes a compiler race in universal mode.
13365      test "$am__universal" = false || continue
13366      ;;
13367    nosideeffect)
13368      # After this tag, mechanisms are not by side-effect, so they'll
13369      # only be used when explicitly requested.
13370      if test "x$enable_dependency_tracking" = xyes; then
13371	continue
13372      else
13373	break
13374      fi
13375      ;;
13376    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13377      # This compiler won't grok '-c -o', but also, the minuso test has
13378      # not run yet.  These depmodes are late enough in the game, and
13379      # so weak that their functioning should not be impacted.
13380      am__obj=conftest.${OBJEXT-o}
13381      am__minus_obj=
13382      ;;
13383    none) break ;;
13384    esac
13385    if depmode=$depmode \
13386       source=sub/conftest.c object=$am__obj \
13387       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13388       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13389         >/dev/null 2>conftest.err &&
13390       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13391       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13392       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13393       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13394      # icc doesn't choke on unknown options, it will just issue warnings
13395      # or remarks (even with -Werror).  So we grep stderr for any message
13396      # that says an option was ignored or not supported.
13397      # When given -MP, icc 7.0 and 7.1 complain thusly:
13398      #   icc: Command line warning: ignoring option '-M'; no argument required
13399      # The diagnosis changed in icc 8.0:
13400      #   icc: Command line remark: option '-MP' not supported
13401      if (grep 'ignoring option' conftest.err ||
13402          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13403        am_cv_CXX_dependencies_compiler_type=$depmode
13404        break
13405      fi
13406    fi
13407  done
13408
13409  cd ..
13410  rm -rf conftest.dir
13411else
13412  am_cv_CXX_dependencies_compiler_type=none
13413fi
13414
13415fi
13416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
13417$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
13418CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
13419
13420 if
13421  test "x$enable_dependency_tracking" != xno \
13422  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
13423  am__fastdepCXX_TRUE=
13424  am__fastdepCXX_FALSE='#'
13425else
13426  am__fastdepCXX_TRUE='#'
13427  am__fastdepCXX_FALSE=
13428fi
13429
13430
13431
13432
13433func_stripname_cnf ()
13434{
13435  case $2 in
13436  .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
13437  *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
13438  esac
13439} # func_stripname_cnf
13440
13441      if test -n "$CXX" && ( test no != "$CXX" &&
13442    ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13443    (test g++ != "$CXX"))); then
13444  ac_ext=cpp
13445ac_cpp='$CXXCPP $CPPFLAGS'
13446ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13447ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13448ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13450$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13451if test -z "$CXXCPP"; then
13452  if ${ac_cv_prog_CXXCPP+:} false; then :
13453  $as_echo_n "(cached) " >&6
13454else
13455      # Double quotes because CXXCPP needs to be expanded
13456    for CXXCPP in "$CXX -E" "/lib/cpp"
13457    do
13458      ac_preproc_ok=false
13459for ac_cxx_preproc_warn_flag in '' yes
13460do
13461  # Use a header file that comes with gcc, so configuring glibc
13462  # with a fresh cross-compiler works.
13463  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13464  # <limits.h> exists even on freestanding compilers.
13465  # On the NeXT, cc -E runs the code through the compiler's parser,
13466  # not just through cpp. "Syntax error" is here to catch this case.
13467  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13468/* end confdefs.h.  */
13469#ifdef __STDC__
13470# include <limits.h>
13471#else
13472# include <assert.h>
13473#endif
13474		     Syntax error
13475_ACEOF
13476if ac_fn_cxx_try_cpp "$LINENO"; then :
13477
13478else
13479  # Broken: fails on valid input.
13480continue
13481fi
13482rm -f conftest.err conftest.i conftest.$ac_ext
13483
13484  # OK, works on sane cases.  Now check whether nonexistent headers
13485  # can be detected and how.
13486  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13487/* end confdefs.h.  */
13488#include <ac_nonexistent.h>
13489_ACEOF
13490if ac_fn_cxx_try_cpp "$LINENO"; then :
13491  # Broken: success on invalid input.
13492continue
13493else
13494  # Passes both tests.
13495ac_preproc_ok=:
13496break
13497fi
13498rm -f conftest.err conftest.i conftest.$ac_ext
13499
13500done
13501# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13502rm -f conftest.i conftest.err conftest.$ac_ext
13503if $ac_preproc_ok; then :
13504  break
13505fi
13506
13507    done
13508    ac_cv_prog_CXXCPP=$CXXCPP
13509
13510fi
13511  CXXCPP=$ac_cv_prog_CXXCPP
13512else
13513  ac_cv_prog_CXXCPP=$CXXCPP
13514fi
13515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13516$as_echo "$CXXCPP" >&6; }
13517ac_preproc_ok=false
13518for ac_cxx_preproc_warn_flag in '' yes
13519do
13520  # Use a header file that comes with gcc, so configuring glibc
13521  # with a fresh cross-compiler works.
13522  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13523  # <limits.h> exists even on freestanding compilers.
13524  # On the NeXT, cc -E runs the code through the compiler's parser,
13525  # not just through cpp. "Syntax error" is here to catch this case.
13526  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13527/* end confdefs.h.  */
13528#ifdef __STDC__
13529# include <limits.h>
13530#else
13531# include <assert.h>
13532#endif
13533		     Syntax error
13534_ACEOF
13535if ac_fn_cxx_try_cpp "$LINENO"; then :
13536
13537else
13538  # Broken: fails on valid input.
13539continue
13540fi
13541rm -f conftest.err conftest.i conftest.$ac_ext
13542
13543  # OK, works on sane cases.  Now check whether nonexistent headers
13544  # can be detected and how.
13545  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13546/* end confdefs.h.  */
13547#include <ac_nonexistent.h>
13548_ACEOF
13549if ac_fn_cxx_try_cpp "$LINENO"; then :
13550  # Broken: success on invalid input.
13551continue
13552else
13553  # Passes both tests.
13554ac_preproc_ok=:
13555break
13556fi
13557rm -f conftest.err conftest.i conftest.$ac_ext
13558
13559done
13560# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13561rm -f conftest.i conftest.err conftest.$ac_ext
13562if $ac_preproc_ok; then :
13563
13564else
13565  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13566$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13567as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13568See \`config.log' for more details" "$LINENO" 5; }
13569fi
13570
13571ac_ext=c
13572ac_cpp='$CPP $CPPFLAGS'
13573ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13574ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13575ac_compiler_gnu=$ac_cv_c_compiler_gnu
13576
13577else
13578  _lt_caught_CXX_error=yes
13579fi
13580
13581ac_ext=cpp
13582ac_cpp='$CXXCPP $CPPFLAGS'
13583ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13584ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13585ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13586
13587archive_cmds_need_lc_CXX=no
13588allow_undefined_flag_CXX=
13589always_export_symbols_CXX=no
13590archive_expsym_cmds_CXX=
13591compiler_needs_object_CXX=no
13592export_dynamic_flag_spec_CXX=
13593hardcode_direct_CXX=no
13594hardcode_direct_absolute_CXX=no
13595hardcode_libdir_flag_spec_CXX=
13596hardcode_libdir_separator_CXX=
13597hardcode_minus_L_CXX=no
13598hardcode_shlibpath_var_CXX=unsupported
13599hardcode_automatic_CXX=no
13600inherit_rpath_CXX=no
13601module_cmds_CXX=
13602module_expsym_cmds_CXX=
13603link_all_deplibs_CXX=unknown
13604old_archive_cmds_CXX=$old_archive_cmds
13605reload_flag_CXX=$reload_flag
13606reload_cmds_CXX=$reload_cmds
13607no_undefined_flag_CXX=
13608whole_archive_flag_spec_CXX=
13609enable_shared_with_static_runtimes_CXX=no
13610
13611# Source file extension for C++ test sources.
13612ac_ext=cpp
13613
13614# Object file extension for compiled C++ test sources.
13615objext=o
13616objext_CXX=$objext
13617
13618# No sense in running all these tests if we already determined that
13619# the CXX compiler isn't working.  Some variables (like enable_shared)
13620# are currently assumed to apply to all compilers on this platform,
13621# and will be corrupted by setting them based on a non-working compiler.
13622if test yes != "$_lt_caught_CXX_error"; then
13623  # Code to be used in simple compile tests
13624  lt_simple_compile_test_code="int some_variable = 0;"
13625
13626  # Code to be used in simple link tests
13627  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13628
13629  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13630
13631
13632
13633
13634
13635
13636# If no C compiler was specified, use CC.
13637LTCC=${LTCC-"$CC"}
13638
13639# If no C compiler flags were specified, use CFLAGS.
13640LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13641
13642# Allow CC to be a program name with arguments.
13643compiler=$CC
13644
13645
13646  # save warnings/boilerplate of simple test code
13647  ac_outfile=conftest.$ac_objext
13648echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13649eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13650_lt_compiler_boilerplate=`cat conftest.err`
13651$RM conftest*
13652
13653  ac_outfile=conftest.$ac_objext
13654echo "$lt_simple_link_test_code" >conftest.$ac_ext
13655eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13656_lt_linker_boilerplate=`cat conftest.err`
13657$RM -r conftest*
13658
13659
13660  # Allow CC to be a program name with arguments.
13661  lt_save_CC=$CC
13662  lt_save_CFLAGS=$CFLAGS
13663  lt_save_LD=$LD
13664  lt_save_GCC=$GCC
13665  GCC=$GXX
13666  lt_save_with_gnu_ld=$with_gnu_ld
13667  lt_save_path_LD=$lt_cv_path_LD
13668  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13669    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13670  else
13671    $as_unset lt_cv_prog_gnu_ld
13672  fi
13673  if test -n "${lt_cv_path_LDCXX+set}"; then
13674    lt_cv_path_LD=$lt_cv_path_LDCXX
13675  else
13676    $as_unset lt_cv_path_LD
13677  fi
13678  test -z "${LDCXX+set}" || LD=$LDCXX
13679  CC=${CXX-"c++"}
13680  CFLAGS=$CXXFLAGS
13681  compiler=$CC
13682  compiler_CXX=$CC
13683  func_cc_basename $compiler
13684cc_basename=$func_cc_basename_result
13685
13686
13687  if test -n "$compiler"; then
13688    # We don't want -fno-exception when compiling C++ code, so set the
13689    # no_builtin_flag separately
13690    if test yes = "$GXX"; then
13691      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13692    else
13693      lt_prog_compiler_no_builtin_flag_CXX=
13694    fi
13695
13696    if test yes = "$GXX"; then
13697      # Set up default GNU C++ configuration
13698
13699
13700
13701# Check whether --with-gnu-ld was given.
13702if test "${with_gnu_ld+set}" = set; then :
13703  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
13704else
13705  with_gnu_ld=no
13706fi
13707
13708ac_prog=ld
13709if test yes = "$GCC"; then
13710  # Check if gcc -print-prog-name=ld gives a path.
13711  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13712$as_echo_n "checking for ld used by $CC... " >&6; }
13713  case $host in
13714  *-*-mingw*)
13715    # gcc leaves a trailing carriage return, which upsets mingw
13716    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13717  *)
13718    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13719  esac
13720  case $ac_prog in
13721    # Accept absolute paths.
13722    [\\/]* | ?:[\\/]*)
13723      re_direlt='/[^/][^/]*/\.\./'
13724      # Canonicalize the pathname of ld
13725      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13726      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13727	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13728      done
13729      test -z "$LD" && LD=$ac_prog
13730      ;;
13731  "")
13732    # If it fails, then pretend we aren't using GCC.
13733    ac_prog=ld
13734    ;;
13735  *)
13736    # If it is relative, then search for the first ld in PATH.
13737    with_gnu_ld=unknown
13738    ;;
13739  esac
13740elif test yes = "$with_gnu_ld"; then
13741  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13742$as_echo_n "checking for GNU ld... " >&6; }
13743else
13744  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13745$as_echo_n "checking for non-GNU ld... " >&6; }
13746fi
13747if ${lt_cv_path_LD+:} false; then :
13748  $as_echo_n "(cached) " >&6
13749else
13750  if test -z "$LD"; then
13751  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13752  for ac_dir in $PATH; do
13753    IFS=$lt_save_ifs
13754    test -z "$ac_dir" && ac_dir=.
13755    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13756      lt_cv_path_LD=$ac_dir/$ac_prog
13757      # Check to see if the program is GNU ld.  I'd rather use --version,
13758      # but apparently some variants of GNU ld only accept -v.
13759      # Break only if it was the GNU/non-GNU ld that we prefer.
13760      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13761      *GNU* | *'with BFD'*)
13762	test no != "$with_gnu_ld" && break
13763	;;
13764      *)
13765	test yes != "$with_gnu_ld" && break
13766	;;
13767      esac
13768    fi
13769  done
13770  IFS=$lt_save_ifs
13771else
13772  lt_cv_path_LD=$LD # Let the user override the test with a path.
13773fi
13774fi
13775
13776LD=$lt_cv_path_LD
13777if test -n "$LD"; then
13778  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13779$as_echo "$LD" >&6; }
13780else
13781  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13782$as_echo "no" >&6; }
13783fi
13784test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13786$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13787if ${lt_cv_prog_gnu_ld+:} false; then :
13788  $as_echo_n "(cached) " >&6
13789else
13790  # I'd rather use --version here, but apparently some GNU lds only accept -v.
13791case `$LD -v 2>&1 </dev/null` in
13792*GNU* | *'with BFD'*)
13793  lt_cv_prog_gnu_ld=yes
13794  ;;
13795*)
13796  lt_cv_prog_gnu_ld=no
13797  ;;
13798esac
13799fi
13800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13801$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13802with_gnu_ld=$lt_cv_prog_gnu_ld
13803
13804
13805
13806
13807
13808
13809
13810      # Check if GNU C++ uses GNU ld as the underlying linker, since the
13811      # archiving commands below assume that GNU ld is being used.
13812      if test yes = "$with_gnu_ld"; then
13813        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13814        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'
13815
13816        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13817        export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13818
13819        # If archive_cmds runs LD, not CC, wlarc should be empty
13820        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13821        #     investigate it a little bit more. (MM)
13822        wlarc='$wl'
13823
13824        # ancient GNU ld didn't support --whole-archive et. al.
13825        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13826	  $GREP 'no-whole-archive' > /dev/null; then
13827          whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13828        else
13829          whole_archive_flag_spec_CXX=
13830        fi
13831      else
13832        with_gnu_ld=no
13833        wlarc=
13834
13835        # A generic and very simple default shared library creation
13836        # command for GNU C++ for the case where it uses the native
13837        # linker, instead of GNU ld.  If possible, this setting should
13838        # overridden to take advantage of the native linker features on
13839        # the platform it is being used on.
13840        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13841      fi
13842
13843      # Commands to make compiler produce verbose output that lists
13844      # what "hidden" libraries, object files and flags are used when
13845      # linking a shared library.
13846      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13847
13848    else
13849      GXX=no
13850      with_gnu_ld=no
13851      wlarc=
13852    fi
13853
13854    # PORTME: fill in a description of your system's C++ link characteristics
13855    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13856$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13857    ld_shlibs_CXX=yes
13858    case $host_os in
13859      aix3*)
13860        # FIXME: insert proper C++ library support
13861        ld_shlibs_CXX=no
13862        ;;
13863      aix[4-9]*)
13864        if test ia64 = "$host_cpu"; then
13865          # On IA64, the linker does run time linking by default, so we don't
13866          # have to do anything special.
13867          aix_use_runtimelinking=no
13868          exp_sym_flag='-Bexport'
13869          no_entry_flag=
13870        else
13871          aix_use_runtimelinking=no
13872
13873          # Test if we are trying to use run time linking or normal
13874          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13875          # have runtime linking enabled, and use it for executables.
13876          # For shared libraries, we enable/disable runtime linking
13877          # depending on the kind of the shared library created -
13878          # when "with_aix_soname,aix_use_runtimelinking" is:
13879          # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
13880          # "aix,yes"  lib.so          shared, rtl:yes, for executables
13881          #            lib.a           static archive
13882          # "both,no"  lib.so.V(shr.o) shared, rtl:yes
13883          #            lib.a(lib.so.V) shared, rtl:no,  for executables
13884          # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13885          #            lib.a(lib.so.V) shared, rtl:no
13886          # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
13887          #            lib.a           static archive
13888          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13889	    for ld_flag in $LDFLAGS; do
13890	      case $ld_flag in
13891	      *-brtl*)
13892	        aix_use_runtimelinking=yes
13893	        break
13894	        ;;
13895	      esac
13896	    done
13897	    if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13898	      # With aix-soname=svr4, we create the lib.so.V shared archives only,
13899	      # so we don't have lib.a shared libs to link our executables.
13900	      # We have to force runtime linking in this case.
13901	      aix_use_runtimelinking=yes
13902	      LDFLAGS="$LDFLAGS -Wl,-brtl"
13903	    fi
13904	    ;;
13905          esac
13906
13907          exp_sym_flag='-bexport'
13908          no_entry_flag='-bnoentry'
13909        fi
13910
13911        # When large executables or shared objects are built, AIX ld can
13912        # have problems creating the table of contents.  If linking a library
13913        # or program results in "error TOC overflow" add -mminimal-toc to
13914        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13915        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13916
13917        archive_cmds_CXX=''
13918        hardcode_direct_CXX=yes
13919        hardcode_direct_absolute_CXX=yes
13920        hardcode_libdir_separator_CXX=':'
13921        link_all_deplibs_CXX=yes
13922        file_list_spec_CXX='$wl-f,'
13923        case $with_aix_soname,$aix_use_runtimelinking in
13924        aix,*) ;;	# no import file
13925        svr4,* | *,yes) # use import file
13926          # The Import File defines what to hardcode.
13927          hardcode_direct_CXX=no
13928          hardcode_direct_absolute_CXX=no
13929          ;;
13930        esac
13931
13932        if test yes = "$GXX"; then
13933          case $host_os in aix4.[012]|aix4.[012].*)
13934          # We only want to do this on AIX 4.2 and lower, the check
13935          # below for broken collect2 doesn't work under 4.3+
13936	  collect2name=`$CC -print-prog-name=collect2`
13937	  if test -f "$collect2name" &&
13938	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13939	  then
13940	    # We have reworked collect2
13941	    :
13942	  else
13943	    # We have old collect2
13944	    hardcode_direct_CXX=unsupported
13945	    # It fails to find uninstalled libraries when the uninstalled
13946	    # path is not listed in the libpath.  Setting hardcode_minus_L
13947	    # to unsupported forces relinking
13948	    hardcode_minus_L_CXX=yes
13949	    hardcode_libdir_flag_spec_CXX='-L$libdir'
13950	    hardcode_libdir_separator_CXX=
13951	  fi
13952          esac
13953          shared_flag='-shared'
13954	  if test yes = "$aix_use_runtimelinking"; then
13955	    shared_flag=$shared_flag' $wl-G'
13956	  fi
13957	  # Need to ensure runtime linking is disabled for the traditional
13958	  # shared library, or the linker may eventually find shared libraries
13959	  # /with/ Import File - we do not want to mix them.
13960	  shared_flag_aix='-shared'
13961	  shared_flag_svr4='-shared $wl-G'
13962        else
13963          # not using gcc
13964          if test ia64 = "$host_cpu"; then
13965	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13966	  # chokes on -Wl,-G. The following line is correct:
13967	  shared_flag='-G'
13968          else
13969	    if test yes = "$aix_use_runtimelinking"; then
13970	      shared_flag='$wl-G'
13971	    else
13972	      shared_flag='$wl-bM:SRE'
13973	    fi
13974	    shared_flag_aix='$wl-bM:SRE'
13975	    shared_flag_svr4='$wl-G'
13976          fi
13977        fi
13978
13979        export_dynamic_flag_spec_CXX='$wl-bexpall'
13980        # It seems that -bexpall does not export symbols beginning with
13981        # underscore (_), so it is better to generate a list of symbols to
13982	# export.
13983        always_export_symbols_CXX=yes
13984	if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13985          # Warning - without using the other runtime loading flags (-brtl),
13986          # -berok will link without error, but may produce a broken library.
13987          # The "-G" linker flag allows undefined symbols.
13988          no_undefined_flag_CXX='-bernotok'
13989          # Determine the default libpath from the value encoded in an empty
13990          # executable.
13991          if test set = "${lt_cv_aix_libpath+set}"; then
13992  aix_libpath=$lt_cv_aix_libpath
13993else
13994  if ${lt_cv_aix_libpath__CXX+:} false; then :
13995  $as_echo_n "(cached) " >&6
13996else
13997  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13998/* end confdefs.h.  */
13999
14000int
14001main ()
14002{
14003
14004  ;
14005  return 0;
14006}
14007_ACEOF
14008if ac_fn_cxx_try_link "$LINENO"; then :
14009
14010  lt_aix_libpath_sed='
14011      /Import File Strings/,/^$/ {
14012	  /^0/ {
14013	      s/^0  *\([^ ]*\) *$/\1/
14014	      p
14015	  }
14016      }'
14017  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14018  # Check for a 64-bit object if we didn't find anything.
14019  if test -z "$lt_cv_aix_libpath__CXX"; then
14020    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14021  fi
14022fi
14023rm -f core conftest.err conftest.$ac_objext \
14024    conftest$ac_exeext conftest.$ac_ext
14025  if test -z "$lt_cv_aix_libpath__CXX"; then
14026    lt_cv_aix_libpath__CXX=/usr/lib:/lib
14027  fi
14028
14029fi
14030
14031  aix_libpath=$lt_cv_aix_libpath__CXX
14032fi
14033
14034          hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14035
14036          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
14037        else
14038          if test ia64 = "$host_cpu"; then
14039	    hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
14040	    allow_undefined_flag_CXX="-z nodefs"
14041	    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"
14042          else
14043	    # Determine the default libpath from the value encoded in an
14044	    # empty executable.
14045	    if test set = "${lt_cv_aix_libpath+set}"; then
14046  aix_libpath=$lt_cv_aix_libpath
14047else
14048  if ${lt_cv_aix_libpath__CXX+:} false; then :
14049  $as_echo_n "(cached) " >&6
14050else
14051  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14052/* end confdefs.h.  */
14053
14054int
14055main ()
14056{
14057
14058  ;
14059  return 0;
14060}
14061_ACEOF
14062if ac_fn_cxx_try_link "$LINENO"; then :
14063
14064  lt_aix_libpath_sed='
14065      /Import File Strings/,/^$/ {
14066	  /^0/ {
14067	      s/^0  *\([^ ]*\) *$/\1/
14068	      p
14069	  }
14070      }'
14071  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14072  # Check for a 64-bit object if we didn't find anything.
14073  if test -z "$lt_cv_aix_libpath__CXX"; then
14074    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14075  fi
14076fi
14077rm -f core conftest.err conftest.$ac_objext \
14078    conftest$ac_exeext conftest.$ac_ext
14079  if test -z "$lt_cv_aix_libpath__CXX"; then
14080    lt_cv_aix_libpath__CXX=/usr/lib:/lib
14081  fi
14082
14083fi
14084
14085  aix_libpath=$lt_cv_aix_libpath__CXX
14086fi
14087
14088	    hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14089	    # Warning - without using the other run time loading flags,
14090	    # -berok will link without error, but may produce a broken library.
14091	    no_undefined_flag_CXX=' $wl-bernotok'
14092	    allow_undefined_flag_CXX=' $wl-berok'
14093	    if test yes = "$with_gnu_ld"; then
14094	      # We only use this code for GNU lds that support --whole-archive.
14095	      whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14096	    else
14097	      # Exported symbols can be pulled into shared objects from archives
14098	      whole_archive_flag_spec_CXX='$convenience'
14099	    fi
14100	    archive_cmds_need_lc_CXX=yes
14101	    archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14102	    # -brtl affects multiple linker settings, -berok does not and is overridden later
14103	    compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14104	    if test svr4 != "$with_aix_soname"; then
14105	      # This is similar to how AIX traditionally builds its shared
14106	      # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
14107	      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'
14108	    fi
14109	    if test aix != "$with_aix_soname"; then
14110	      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'
14111	    else
14112	      # used by -dlpreopen to get the symbols
14113	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
14114	    fi
14115	    archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
14116          fi
14117        fi
14118        ;;
14119
14120      beos*)
14121	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14122	  allow_undefined_flag_CXX=unsupported
14123	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14124	  # support --undefined.  This deserves some investigation.  FIXME
14125	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14126	else
14127	  ld_shlibs_CXX=no
14128	fi
14129	;;
14130
14131      chorus*)
14132        case $cc_basename in
14133          *)
14134	  # FIXME: insert proper C++ library support
14135	  ld_shlibs_CXX=no
14136	  ;;
14137        esac
14138        ;;
14139
14140      cygwin* | mingw* | pw32* | cegcc*)
14141	case $GXX,$cc_basename in
14142	,cl* | no,cl*)
14143	  # Native MSVC
14144	  # hardcode_libdir_flag_spec is actually meaningless, as there is
14145	  # no search path for DLLs.
14146	  hardcode_libdir_flag_spec_CXX=' '
14147	  allow_undefined_flag_CXX=unsupported
14148	  always_export_symbols_CXX=yes
14149	  file_list_spec_CXX='@'
14150	  # Tell ltmain to make .lib files, not .a files.
14151	  libext=lib
14152	  # Tell ltmain to make .dll files, not .so files.
14153	  shrext_cmds=.dll
14154	  # FIXME: Setting linknames here is a bad hack.
14155	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14156	  archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14157              cp "$export_symbols" "$output_objdir/$soname.def";
14158              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14159            else
14160              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14161            fi~
14162            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14163            linknames='
14164	  # The linker will not automatically build a static lib if we build a DLL.
14165	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14166	  enable_shared_with_static_runtimes_CXX=yes
14167	  # Don't use ranlib
14168	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
14169	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14170            lt_tool_outputfile="@TOOL_OUTPUT@"~
14171            case $lt_outputfile in
14172              *.exe|*.EXE) ;;
14173              *)
14174                lt_outputfile=$lt_outputfile.exe
14175                lt_tool_outputfile=$lt_tool_outputfile.exe
14176                ;;
14177            esac~
14178            func_to_tool_file "$lt_outputfile"~
14179            if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14180              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14181              $RM "$lt_outputfile.manifest";
14182            fi'
14183	  ;;
14184	*)
14185	  # g++
14186	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14187	  # as there is no search path for DLLs.
14188	  hardcode_libdir_flag_spec_CXX='-L$libdir'
14189	  export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
14190	  allow_undefined_flag_CXX=unsupported
14191	  always_export_symbols_CXX=no
14192	  enable_shared_with_static_runtimes_CXX=yes
14193
14194	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14195	    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'
14196	    # If the export-symbols file already is a .def file, use it as
14197	    # is; otherwise, prepend EXPORTS...
14198	    archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14199              cp $export_symbols $output_objdir/$soname.def;
14200            else
14201              echo EXPORTS > $output_objdir/$soname.def;
14202              cat $export_symbols >> $output_objdir/$soname.def;
14203            fi~
14204            $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'
14205	  else
14206	    ld_shlibs_CXX=no
14207	  fi
14208	  ;;
14209	esac
14210	;;
14211      darwin* | rhapsody*)
14212
14213
14214  archive_cmds_need_lc_CXX=no
14215  hardcode_direct_CXX=no
14216  hardcode_automatic_CXX=yes
14217  hardcode_shlibpath_var_CXX=unsupported
14218  if test yes = "$lt_cv_ld_force_load"; then
14219    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\"`'
14220
14221  else
14222    whole_archive_flag_spec_CXX=''
14223  fi
14224  link_all_deplibs_CXX=yes
14225  allow_undefined_flag_CXX=$_lt_dar_allow_undefined
14226  case $cc_basename in
14227     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14228     *) _lt_dar_can_shared=$GCC ;;
14229  esac
14230  if test yes = "$_lt_dar_can_shared"; then
14231    output_verbose_link_cmd=func_echo_all
14232    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"
14233    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14234    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"
14235    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"
14236       if test yes != "$lt_cv_apple_cc_single_mod"; then
14237      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"
14238      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"
14239    fi
14240
14241  else
14242  ld_shlibs_CXX=no
14243  fi
14244
14245	;;
14246
14247      os2*)
14248	hardcode_libdir_flag_spec_CXX='-L$libdir'
14249	hardcode_minus_L_CXX=yes
14250	allow_undefined_flag_CXX=unsupported
14251	shrext_cmds=.dll
14252	archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14253	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14254	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14255	  $ECHO EXPORTS >> $output_objdir/$libname.def~
14256	  emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14257	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14258	  emximp -o $lib $output_objdir/$libname.def'
14259	archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14260	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14261	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14262	  $ECHO EXPORTS >> $output_objdir/$libname.def~
14263	  prefix_cmds="$SED"~
14264	  if test EXPORTS = "`$SED 1q $export_symbols`"; then
14265	    prefix_cmds="$prefix_cmds -e 1d";
14266	  fi~
14267	  prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14268	  cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14269	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14270	  emximp -o $lib $output_objdir/$libname.def'
14271	old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14272	enable_shared_with_static_runtimes_CXX=yes
14273	;;
14274
14275      dgux*)
14276        case $cc_basename in
14277          ec++*)
14278	    # FIXME: insert proper C++ library support
14279	    ld_shlibs_CXX=no
14280	    ;;
14281          ghcx*)
14282	    # Green Hills C++ Compiler
14283	    # FIXME: insert proper C++ library support
14284	    ld_shlibs_CXX=no
14285	    ;;
14286          *)
14287	    # FIXME: insert proper C++ library support
14288	    ld_shlibs_CXX=no
14289	    ;;
14290        esac
14291        ;;
14292
14293      freebsd2.*)
14294        # C++ shared libraries reported to be fairly broken before
14295	# switch to ELF
14296        ld_shlibs_CXX=no
14297        ;;
14298
14299      freebsd-elf*)
14300        archive_cmds_need_lc_CXX=no
14301        ;;
14302
14303      freebsd* | dragonfly*)
14304        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14305        # conventions
14306        ld_shlibs_CXX=yes
14307        ;;
14308
14309      haiku*)
14310        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14311        link_all_deplibs_CXX=yes
14312        ;;
14313
14314      hpux9*)
14315        hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14316        hardcode_libdir_separator_CXX=:
14317        export_dynamic_flag_spec_CXX='$wl-E'
14318        hardcode_direct_CXX=yes
14319        hardcode_minus_L_CXX=yes # Not in the search PATH,
14320				             # but as the default
14321				             # location of the library.
14322
14323        case $cc_basename in
14324          CC*)
14325            # FIXME: insert proper C++ library support
14326            ld_shlibs_CXX=no
14327            ;;
14328          aCC*)
14329            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'
14330            # Commands to make compiler produce verbose output that lists
14331            # what "hidden" libraries, object files and flags are used when
14332            # linking a shared library.
14333            #
14334            # There doesn't appear to be a way to prevent this compiler from
14335            # explicitly linking system object files so we need to strip them
14336            # from the output so that they don't get included in the library
14337            # dependencies.
14338            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"'
14339            ;;
14340          *)
14341            if test yes = "$GXX"; then
14342              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'
14343            else
14344              # FIXME: insert proper C++ library support
14345              ld_shlibs_CXX=no
14346            fi
14347            ;;
14348        esac
14349        ;;
14350
14351      hpux10*|hpux11*)
14352        if test no = "$with_gnu_ld"; then
14353	  hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14354	  hardcode_libdir_separator_CXX=:
14355
14356          case $host_cpu in
14357            hppa*64*|ia64*)
14358              ;;
14359            *)
14360	      export_dynamic_flag_spec_CXX='$wl-E'
14361              ;;
14362          esac
14363        fi
14364        case $host_cpu in
14365          hppa*64*|ia64*)
14366            hardcode_direct_CXX=no
14367            hardcode_shlibpath_var_CXX=no
14368            ;;
14369          *)
14370            hardcode_direct_CXX=yes
14371            hardcode_direct_absolute_CXX=yes
14372            hardcode_minus_L_CXX=yes # Not in the search PATH,
14373					         # but as the default
14374					         # location of the library.
14375            ;;
14376        esac
14377
14378        case $cc_basename in
14379          CC*)
14380	    # FIXME: insert proper C++ library support
14381	    ld_shlibs_CXX=no
14382	    ;;
14383          aCC*)
14384	    case $host_cpu in
14385	      hppa*64*)
14386	        archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14387	        ;;
14388	      ia64*)
14389	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14390	        ;;
14391	      *)
14392	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14393	        ;;
14394	    esac
14395	    # Commands to make compiler produce verbose output that lists
14396	    # what "hidden" libraries, object files and flags are used when
14397	    # linking a shared library.
14398	    #
14399	    # There doesn't appear to be a way to prevent this compiler from
14400	    # explicitly linking system object files so we need to strip them
14401	    # from the output so that they don't get included in the library
14402	    # dependencies.
14403	    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"'
14404	    ;;
14405          *)
14406	    if test yes = "$GXX"; then
14407	      if test no = "$with_gnu_ld"; then
14408	        case $host_cpu in
14409	          hppa*64*)
14410	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14411	            ;;
14412	          ia64*)
14413	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14414	            ;;
14415	          *)
14416	            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'
14417	            ;;
14418	        esac
14419	      fi
14420	    else
14421	      # FIXME: insert proper C++ library support
14422	      ld_shlibs_CXX=no
14423	    fi
14424	    ;;
14425        esac
14426        ;;
14427
14428      interix[3-9]*)
14429	hardcode_direct_CXX=no
14430	hardcode_shlibpath_var_CXX=no
14431	hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14432	export_dynamic_flag_spec_CXX='$wl-E'
14433	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14434	# Instead, shared libraries are loaded at an image base (0x10000000 by
14435	# default) and relocated if they conflict, which is a slow very memory
14436	# consuming and fragmenting process.  To avoid this, we pick a random,
14437	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14438	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14439	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'
14440	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'
14441	;;
14442      irix5* | irix6*)
14443        case $cc_basename in
14444          CC*)
14445	    # SGI C++
14446	    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'
14447
14448	    # Archives containing C++ object files must be created using
14449	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14450	    # necessary to make sure instantiated templates are included
14451	    # in the archive.
14452	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14453	    ;;
14454          *)
14455	    if test yes = "$GXX"; then
14456	      if test no = "$with_gnu_ld"; then
14457	        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'
14458	      else
14459	        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'
14460	      fi
14461	    fi
14462	    link_all_deplibs_CXX=yes
14463	    ;;
14464        esac
14465        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14466        hardcode_libdir_separator_CXX=:
14467        inherit_rpath_CXX=yes
14468        ;;
14469
14470      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14471        case $cc_basename in
14472          KCC*)
14473	    # Kuck and Associates, Inc. (KAI) C++ Compiler
14474
14475	    # KCC will only create a shared library if the output file
14476	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
14477	    # to its proper name (with version) after linking.
14478	    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'
14479	    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'
14480	    # Commands to make compiler produce verbose output that lists
14481	    # what "hidden" libraries, object files and flags are used when
14482	    # linking a shared library.
14483	    #
14484	    # There doesn't appear to be a way to prevent this compiler from
14485	    # explicitly linking system object files so we need to strip them
14486	    # from the output so that they don't get included in the library
14487	    # dependencies.
14488	    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"'
14489
14490	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14491	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14492
14493	    # Archives containing C++ object files must be created using
14494	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14495	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14496	    ;;
14497	  icpc* | ecpc* )
14498	    # Intel C++
14499	    with_gnu_ld=yes
14500	    # version 8.0 and above of icpc choke on multiply defined symbols
14501	    # if we add $predep_objects and $postdep_objects, however 7.1 and
14502	    # earlier do not add the objects themselves.
14503	    case `$CC -V 2>&1` in
14504	      *"Version 7."*)
14505	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14506		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'
14507		;;
14508	      *)  # Version 8.0 or newer
14509	        tmp_idyn=
14510	        case $host_cpu in
14511		  ia64*) tmp_idyn=' -i_dynamic';;
14512		esac
14513	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14514		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'
14515		;;
14516	    esac
14517	    archive_cmds_need_lc_CXX=no
14518	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14519	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14520	    whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14521	    ;;
14522          pgCC* | pgcpp*)
14523            # Portland Group C++ compiler
14524	    case `$CC -V` in
14525	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14526	      prelink_cmds_CXX='tpldir=Template.dir~
14527               rm -rf $tpldir~
14528               $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14529               compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14530	      old_archive_cmds_CXX='tpldir=Template.dir~
14531                rm -rf $tpldir~
14532                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14533                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14534                $RANLIB $oldlib'
14535	      archive_cmds_CXX='tpldir=Template.dir~
14536                rm -rf $tpldir~
14537                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14538                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14539	      archive_expsym_cmds_CXX='tpldir=Template.dir~
14540                rm -rf $tpldir~
14541                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14542                $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'
14543	      ;;
14544	    *) # Version 6 and above use weak symbols
14545	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14546	      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'
14547	      ;;
14548	    esac
14549
14550	    hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
14551	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14552	    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'
14553            ;;
14554	  cxx*)
14555	    # Compaq C++
14556	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14557	    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'
14558
14559	    runpath_var=LD_RUN_PATH
14560	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14561	    hardcode_libdir_separator_CXX=:
14562
14563	    # Commands to make compiler produce verbose output that lists
14564	    # what "hidden" libraries, object files and flags are used when
14565	    # linking a shared library.
14566	    #
14567	    # There doesn't appear to be a way to prevent this compiler from
14568	    # explicitly linking system object files so we need to strip them
14569	    # from the output so that they don't get included in the library
14570	    # dependencies.
14571	    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'
14572	    ;;
14573	  xl* | mpixl* | bgxl*)
14574	    # IBM XL 8.0 on PPC, with GNU ld
14575	    hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14576	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14577	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14578	    if test yes = "$supports_anon_versioning"; then
14579	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14580                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14581                echo "local: *; };" >> $output_objdir/$libname.ver~
14582                $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14583	    fi
14584	    ;;
14585	  *)
14586	    case `$CC -V 2>&1 | sed 5q` in
14587	    *Sun\ C*)
14588	      # Sun C++ 5.9
14589	      no_undefined_flag_CXX=' -zdefs'
14590	      archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14591	      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'
14592	      hardcode_libdir_flag_spec_CXX='-R$libdir'
14593	      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'
14594	      compiler_needs_object_CXX=yes
14595
14596	      # Not sure whether something based on
14597	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14598	      # would be better.
14599	      output_verbose_link_cmd='func_echo_all'
14600
14601	      # Archives containing C++ object files must be created using
14602	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14603	      # necessary to make sure instantiated templates are included
14604	      # in the archive.
14605	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14606	      ;;
14607	    esac
14608	    ;;
14609	esac
14610	;;
14611
14612      lynxos*)
14613        # FIXME: insert proper C++ library support
14614	ld_shlibs_CXX=no
14615	;;
14616
14617      m88k*)
14618        # FIXME: insert proper C++ library support
14619        ld_shlibs_CXX=no
14620	;;
14621
14622      mvs*)
14623        case $cc_basename in
14624          cxx*)
14625	    # FIXME: insert proper C++ library support
14626	    ld_shlibs_CXX=no
14627	    ;;
14628	  *)
14629	    # FIXME: insert proper C++ library support
14630	    ld_shlibs_CXX=no
14631	    ;;
14632	esac
14633	;;
14634
14635      netbsd*)
14636        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14637	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14638	  wlarc=
14639	  hardcode_libdir_flag_spec_CXX='-R$libdir'
14640	  hardcode_direct_CXX=yes
14641	  hardcode_shlibpath_var_CXX=no
14642	fi
14643	# Workaround some broken pre-1.5 toolchains
14644	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14645	;;
14646
14647      *nto* | *qnx*)
14648        ld_shlibs_CXX=yes
14649	;;
14650
14651      openbsd* | bitrig*)
14652	if test -f /usr/libexec/ld.so; then
14653	  hardcode_direct_CXX=yes
14654	  hardcode_shlibpath_var_CXX=no
14655	  hardcode_direct_absolute_CXX=yes
14656	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14657	  hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14658	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
14659	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
14660	    export_dynamic_flag_spec_CXX='$wl-E'
14661	    whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14662	  fi
14663	  output_verbose_link_cmd=func_echo_all
14664	else
14665	  ld_shlibs_CXX=no
14666	fi
14667	;;
14668
14669      osf3* | osf4* | osf5*)
14670        case $cc_basename in
14671          KCC*)
14672	    # Kuck and Associates, Inc. (KAI) C++ Compiler
14673
14674	    # KCC will only create a shared library if the output file
14675	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
14676	    # to its proper name (with version) after linking.
14677	    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'
14678
14679	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14680	    hardcode_libdir_separator_CXX=:
14681
14682	    # Archives containing C++ object files must be created using
14683	    # the KAI C++ compiler.
14684	    case $host in
14685	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14686	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14687	    esac
14688	    ;;
14689          RCC*)
14690	    # Rational C++ 2.4.1
14691	    # FIXME: insert proper C++ library support
14692	    ld_shlibs_CXX=no
14693	    ;;
14694          cxx*)
14695	    case $host in
14696	      osf3*)
14697	        allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14698	        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'
14699	        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14700		;;
14701	      *)
14702	        allow_undefined_flag_CXX=' -expect_unresolved \*'
14703	        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'
14704	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14705                  echo "-hidden">> $lib.exp~
14706                  $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~
14707                  $RM $lib.exp'
14708	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14709		;;
14710	    esac
14711
14712	    hardcode_libdir_separator_CXX=:
14713
14714	    # Commands to make compiler produce verbose output that lists
14715	    # what "hidden" libraries, object files and flags are used when
14716	    # linking a shared library.
14717	    #
14718	    # There doesn't appear to be a way to prevent this compiler from
14719	    # explicitly linking system object files so we need to strip them
14720	    # from the output so that they don't get included in the library
14721	    # dependencies.
14722	    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"'
14723	    ;;
14724	  *)
14725	    if test yes,no = "$GXX,$with_gnu_ld"; then
14726	      allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14727	      case $host in
14728	        osf3*)
14729	          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'
14730		  ;;
14731	        *)
14732	          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'
14733		  ;;
14734	      esac
14735
14736	      hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14737	      hardcode_libdir_separator_CXX=:
14738
14739	      # Commands to make compiler produce verbose output that lists
14740	      # what "hidden" libraries, object files and flags are used when
14741	      # linking a shared library.
14742	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14743
14744	    else
14745	      # FIXME: insert proper C++ library support
14746	      ld_shlibs_CXX=no
14747	    fi
14748	    ;;
14749        esac
14750        ;;
14751
14752      psos*)
14753        # FIXME: insert proper C++ library support
14754        ld_shlibs_CXX=no
14755        ;;
14756
14757      sunos4*)
14758        case $cc_basename in
14759          CC*)
14760	    # Sun C++ 4.x
14761	    # FIXME: insert proper C++ library support
14762	    ld_shlibs_CXX=no
14763	    ;;
14764          lcc*)
14765	    # Lucid
14766	    # FIXME: insert proper C++ library support
14767	    ld_shlibs_CXX=no
14768	    ;;
14769          *)
14770	    # FIXME: insert proper C++ library support
14771	    ld_shlibs_CXX=no
14772	    ;;
14773        esac
14774        ;;
14775
14776      solaris*)
14777        case $cc_basename in
14778          CC* | sunCC*)
14779	    # Sun C++ 4.2, 5.x and Centerline C++
14780            archive_cmds_need_lc_CXX=yes
14781	    no_undefined_flag_CXX=' -zdefs'
14782	    archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14783	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14784              $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'
14785
14786	    hardcode_libdir_flag_spec_CXX='-R$libdir'
14787	    hardcode_shlibpath_var_CXX=no
14788	    case $host_os in
14789	      solaris2.[0-5] | solaris2.[0-5].*) ;;
14790	      *)
14791		# The compiler driver will combine and reorder linker options,
14792		# but understands '-z linker_flag'.
14793	        # Supported since Solaris 2.6 (maybe 2.5.1?)
14794		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14795	        ;;
14796	    esac
14797	    link_all_deplibs_CXX=yes
14798
14799	    output_verbose_link_cmd='func_echo_all'
14800
14801	    # Archives containing C++ object files must be created using
14802	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14803	    # necessary to make sure instantiated templates are included
14804	    # in the archive.
14805	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14806	    ;;
14807          gcx*)
14808	    # Green Hills C++ Compiler
14809	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14810
14811	    # The C++ compiler must be used to create the archive.
14812	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14813	    ;;
14814          *)
14815	    # GNU C++ compiler with Solaris linker
14816	    if test yes,no = "$GXX,$with_gnu_ld"; then
14817	      no_undefined_flag_CXX=' $wl-z ${wl}defs'
14818	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14819	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14820	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14821                  $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'
14822
14823	        # Commands to make compiler produce verbose output that lists
14824	        # what "hidden" libraries, object files and flags are used when
14825	        # linking a shared library.
14826	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14827	      else
14828	        # g++ 2.7 appears to require '-G' NOT '-shared' on this
14829	        # platform.
14830	        archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14831	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14832                  $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'
14833
14834	        # Commands to make compiler produce verbose output that lists
14835	        # what "hidden" libraries, object files and flags are used when
14836	        # linking a shared library.
14837	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14838	      fi
14839
14840	      hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
14841	      case $host_os in
14842		solaris2.[0-5] | solaris2.[0-5].*) ;;
14843		*)
14844		  whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14845		  ;;
14846	      esac
14847	    fi
14848	    ;;
14849        esac
14850        ;;
14851
14852    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14853      no_undefined_flag_CXX='$wl-z,text'
14854      archive_cmds_need_lc_CXX=no
14855      hardcode_shlibpath_var_CXX=no
14856      runpath_var='LD_RUN_PATH'
14857
14858      case $cc_basename in
14859        CC*)
14860	  archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14861	  archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14862	  ;;
14863	*)
14864	  archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14865	  archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14866	  ;;
14867      esac
14868      ;;
14869
14870      sysv5* | sco3.2v5* | sco5v6*)
14871	# Note: We CANNOT use -z defs as we might desire, because we do not
14872	# link with -lc, and that would cause any symbols used from libc to
14873	# always be unresolved, which means just about no library would
14874	# ever link correctly.  If we're not using GNU ld we use -z text
14875	# though, which does catch some bad symbols but isn't as heavy-handed
14876	# as -z defs.
14877	no_undefined_flag_CXX='$wl-z,text'
14878	allow_undefined_flag_CXX='$wl-z,nodefs'
14879	archive_cmds_need_lc_CXX=no
14880	hardcode_shlibpath_var_CXX=no
14881	hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
14882	hardcode_libdir_separator_CXX=':'
14883	link_all_deplibs_CXX=yes
14884	export_dynamic_flag_spec_CXX='$wl-Bexport'
14885	runpath_var='LD_RUN_PATH'
14886
14887	case $cc_basename in
14888          CC*)
14889	    archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14890	    archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14891	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14892              '"$old_archive_cmds_CXX"
14893	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14894              '"$reload_cmds_CXX"
14895	    ;;
14896	  *)
14897	    archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14898	    archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14899	    ;;
14900	esac
14901      ;;
14902
14903      tandem*)
14904        case $cc_basename in
14905          NCC*)
14906	    # NonStop-UX NCC 3.20
14907	    # FIXME: insert proper C++ library support
14908	    ld_shlibs_CXX=no
14909	    ;;
14910          *)
14911	    # FIXME: insert proper C++ library support
14912	    ld_shlibs_CXX=no
14913	    ;;
14914        esac
14915        ;;
14916
14917      vxworks*)
14918        # FIXME: insert proper C++ library support
14919        ld_shlibs_CXX=no
14920        ;;
14921
14922      *)
14923        # FIXME: insert proper C++ library support
14924        ld_shlibs_CXX=no
14925        ;;
14926    esac
14927
14928    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14929$as_echo "$ld_shlibs_CXX" >&6; }
14930    test no = "$ld_shlibs_CXX" && can_build_shared=no
14931
14932    GCC_CXX=$GXX
14933    LD_CXX=$LD
14934
14935    ## CAVEAT EMPTOR:
14936    ## There is no encapsulation within the following macros, do not change
14937    ## the running order or otherwise move them around unless you know exactly
14938    ## what you are doing...
14939    # Dependencies to place before and after the object being linked:
14940predep_objects_CXX=
14941postdep_objects_CXX=
14942predeps_CXX=
14943postdeps_CXX=
14944compiler_lib_search_path_CXX=
14945
14946cat > conftest.$ac_ext <<_LT_EOF
14947class Foo
14948{
14949public:
14950  Foo (void) { a = 0; }
14951private:
14952  int a;
14953};
14954_LT_EOF
14955
14956
14957_lt_libdeps_save_CFLAGS=$CFLAGS
14958case "$CC $CFLAGS " in #(
14959*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14960*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14961*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14962esac
14963
14964if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14965  (eval $ac_compile) 2>&5
14966  ac_status=$?
14967  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14968  test $ac_status = 0; }; then
14969  # Parse the compiler output and extract the necessary
14970  # objects, libraries and library flags.
14971
14972  # Sentinel used to keep track of whether or not we are before
14973  # the conftest object file.
14974  pre_test_object_deps_done=no
14975
14976  for p in `eval "$output_verbose_link_cmd"`; do
14977    case $prev$p in
14978
14979    -L* | -R* | -l*)
14980       # Some compilers place space between "-{L,R}" and the path.
14981       # Remove the space.
14982       if test x-L = "$p" ||
14983          test x-R = "$p"; then
14984	 prev=$p
14985	 continue
14986       fi
14987
14988       # Expand the sysroot to ease extracting the directories later.
14989       if test -z "$prev"; then
14990         case $p in
14991         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14992         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14993         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14994         esac
14995       fi
14996       case $p in
14997       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14998       esac
14999       if test no = "$pre_test_object_deps_done"; then
15000	 case $prev in
15001	 -L | -R)
15002	   # Internal compiler library paths should come after those
15003	   # provided the user.  The postdeps already come after the
15004	   # user supplied libs so there is no need to process them.
15005	   if test -z "$compiler_lib_search_path_CXX"; then
15006	     compiler_lib_search_path_CXX=$prev$p
15007	   else
15008	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
15009	   fi
15010	   ;;
15011	 # The "-l" case would never come before the object being
15012	 # linked, so don't bother handling this case.
15013	 esac
15014       else
15015	 if test -z "$postdeps_CXX"; then
15016	   postdeps_CXX=$prev$p
15017	 else
15018	   postdeps_CXX="${postdeps_CXX} $prev$p"
15019	 fi
15020       fi
15021       prev=
15022       ;;
15023
15024    *.lto.$objext) ;; # Ignore GCC LTO objects
15025    *.$objext)
15026       # This assumes that the test object file only shows up
15027       # once in the compiler output.
15028       if test "$p" = "conftest.$objext"; then
15029	 pre_test_object_deps_done=yes
15030	 continue
15031       fi
15032
15033       if test no = "$pre_test_object_deps_done"; then
15034	 if test -z "$predep_objects_CXX"; then
15035	   predep_objects_CXX=$p
15036	 else
15037	   predep_objects_CXX="$predep_objects_CXX $p"
15038	 fi
15039       else
15040	 if test -z "$postdep_objects_CXX"; then
15041	   postdep_objects_CXX=$p
15042	 else
15043	   postdep_objects_CXX="$postdep_objects_CXX $p"
15044	 fi
15045       fi
15046       ;;
15047
15048    *) ;; # Ignore the rest.
15049
15050    esac
15051  done
15052
15053  # Clean up.
15054  rm -f a.out a.exe
15055else
15056  echo "libtool.m4: error: problem compiling CXX test program"
15057fi
15058
15059$RM -f confest.$objext
15060CFLAGS=$_lt_libdeps_save_CFLAGS
15061
15062# PORTME: override above test on systems where it is broken
15063case $host_os in
15064interix[3-9]*)
15065  # Interix 3.5 installs completely hosed .la files for C++, so rather than
15066  # hack all around it, let's just trust "g++" to DTRT.
15067  predep_objects_CXX=
15068  postdep_objects_CXX=
15069  postdeps_CXX=
15070  ;;
15071esac
15072
15073
15074case " $postdeps_CXX " in
15075*" -lc "*) archive_cmds_need_lc_CXX=no ;;
15076esac
15077 compiler_lib_search_dirs_CXX=
15078if test -n "${compiler_lib_search_path_CXX}"; then
15079 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
15080fi
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112    lt_prog_compiler_wl_CXX=
15113lt_prog_compiler_pic_CXX=
15114lt_prog_compiler_static_CXX=
15115
15116
15117  # C++ specific cases for pic, static, wl, etc.
15118  if test yes = "$GXX"; then
15119    lt_prog_compiler_wl_CXX='-Wl,'
15120    lt_prog_compiler_static_CXX='-static'
15121
15122    case $host_os in
15123    aix*)
15124      # All AIX code is PIC.
15125      if test ia64 = "$host_cpu"; then
15126	# AIX 5 now supports IA64 processor
15127	lt_prog_compiler_static_CXX='-Bstatic'
15128      fi
15129      lt_prog_compiler_pic_CXX='-fPIC'
15130      ;;
15131
15132    amigaos*)
15133      case $host_cpu in
15134      powerpc)
15135            # see comment about AmigaOS4 .so support
15136            lt_prog_compiler_pic_CXX='-fPIC'
15137        ;;
15138      m68k)
15139            # FIXME: we need at least 68020 code to build shared libraries, but
15140            # adding the '-m68020' flag to GCC prevents building anything better,
15141            # like '-m68040'.
15142            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15143        ;;
15144      esac
15145      ;;
15146
15147    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15148      # PIC is the default for these OSes.
15149      ;;
15150    mingw* | cygwin* | os2* | pw32* | cegcc*)
15151      # This hack is so that the source file can tell whether it is being
15152      # built for inclusion in a dll (and should export symbols for example).
15153      # Although the cygwin gcc ignores -fPIC, still need this for old-style
15154      # (--disable-auto-import) libraries
15155      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15156      case $host_os in
15157      os2*)
15158	lt_prog_compiler_static_CXX='$wl-static'
15159	;;
15160      esac
15161      ;;
15162    darwin* | rhapsody*)
15163      # PIC is the default on this platform
15164      # Common symbols not allowed in MH_DYLIB files
15165      lt_prog_compiler_pic_CXX='-fno-common'
15166      ;;
15167    *djgpp*)
15168      # DJGPP does not support shared libraries at all
15169      lt_prog_compiler_pic_CXX=
15170      ;;
15171    haiku*)
15172      # PIC is the default for Haiku.
15173      # The "-static" flag exists, but is broken.
15174      lt_prog_compiler_static_CXX=
15175      ;;
15176    interix[3-9]*)
15177      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15178      # Instead, we relocate shared libraries at runtime.
15179      ;;
15180    sysv4*MP*)
15181      if test -d /usr/nec; then
15182	lt_prog_compiler_pic_CXX=-Kconform_pic
15183      fi
15184      ;;
15185    hpux*)
15186      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15187      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15188      # sets the default TLS model and affects inlining.
15189      case $host_cpu in
15190      hppa*64*)
15191	;;
15192      *)
15193	lt_prog_compiler_pic_CXX='-fPIC'
15194	;;
15195      esac
15196      ;;
15197    *qnx* | *nto*)
15198      # QNX uses GNU C++, but need to define -shared option too, otherwise
15199      # it will coredump.
15200      lt_prog_compiler_pic_CXX='-fPIC -shared'
15201      ;;
15202    *)
15203      lt_prog_compiler_pic_CXX='-fPIC'
15204      ;;
15205    esac
15206  else
15207    case $host_os in
15208      aix[4-9]*)
15209	# All AIX code is PIC.
15210	if test ia64 = "$host_cpu"; then
15211	  # AIX 5 now supports IA64 processor
15212	  lt_prog_compiler_static_CXX='-Bstatic'
15213	else
15214	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15215	fi
15216	;;
15217      chorus*)
15218	case $cc_basename in
15219	cxch68*)
15220	  # Green Hills C++ Compiler
15221	  # _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"
15222	  ;;
15223	esac
15224	;;
15225      mingw* | cygwin* | os2* | pw32* | cegcc*)
15226	# This hack is so that the source file can tell whether it is being
15227	# built for inclusion in a dll (and should export symbols for example).
15228	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15229	;;
15230      dgux*)
15231	case $cc_basename in
15232	  ec++*)
15233	    lt_prog_compiler_pic_CXX='-KPIC'
15234	    ;;
15235	  ghcx*)
15236	    # Green Hills C++ Compiler
15237	    lt_prog_compiler_pic_CXX='-pic'
15238	    ;;
15239	  *)
15240	    ;;
15241	esac
15242	;;
15243      freebsd* | dragonfly*)
15244	# FreeBSD uses GNU C++
15245	;;
15246      hpux9* | hpux10* | hpux11*)
15247	case $cc_basename in
15248	  CC*)
15249	    lt_prog_compiler_wl_CXX='-Wl,'
15250	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15251	    if test ia64 != "$host_cpu"; then
15252	      lt_prog_compiler_pic_CXX='+Z'
15253	    fi
15254	    ;;
15255	  aCC*)
15256	    lt_prog_compiler_wl_CXX='-Wl,'
15257	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15258	    case $host_cpu in
15259	    hppa*64*|ia64*)
15260	      # +Z the default
15261	      ;;
15262	    *)
15263	      lt_prog_compiler_pic_CXX='+Z'
15264	      ;;
15265	    esac
15266	    ;;
15267	  *)
15268	    ;;
15269	esac
15270	;;
15271      interix*)
15272	# This is c89, which is MS Visual C++ (no shared libs)
15273	# Anyone wants to do a port?
15274	;;
15275      irix5* | irix6* | nonstopux*)
15276	case $cc_basename in
15277	  CC*)
15278	    lt_prog_compiler_wl_CXX='-Wl,'
15279	    lt_prog_compiler_static_CXX='-non_shared'
15280	    # CC pic flag -KPIC is the default.
15281	    ;;
15282	  *)
15283	    ;;
15284	esac
15285	;;
15286      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15287	case $cc_basename in
15288	  KCC*)
15289	    # KAI C++ Compiler
15290	    lt_prog_compiler_wl_CXX='--backend -Wl,'
15291	    lt_prog_compiler_pic_CXX='-fPIC'
15292	    ;;
15293	  ecpc* )
15294	    # old Intel C++ for x86_64, which still supported -KPIC.
15295	    lt_prog_compiler_wl_CXX='-Wl,'
15296	    lt_prog_compiler_pic_CXX='-KPIC'
15297	    lt_prog_compiler_static_CXX='-static'
15298	    ;;
15299	  icpc* )
15300	    # Intel C++, used to be incompatible with GCC.
15301	    # ICC 10 doesn't accept -KPIC any more.
15302	    lt_prog_compiler_wl_CXX='-Wl,'
15303	    lt_prog_compiler_pic_CXX='-fPIC'
15304	    lt_prog_compiler_static_CXX='-static'
15305	    ;;
15306	  pgCC* | pgcpp*)
15307	    # Portland Group C++ compiler
15308	    lt_prog_compiler_wl_CXX='-Wl,'
15309	    lt_prog_compiler_pic_CXX='-fpic'
15310	    lt_prog_compiler_static_CXX='-Bstatic'
15311	    ;;
15312	  cxx*)
15313	    # Compaq C++
15314	    # Make sure the PIC flag is empty.  It appears that all Alpha
15315	    # Linux and Compaq Tru64 Unix objects are PIC.
15316	    lt_prog_compiler_pic_CXX=
15317	    lt_prog_compiler_static_CXX='-non_shared'
15318	    ;;
15319	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15320	    # IBM XL 8.0, 9.0 on PPC and BlueGene
15321	    lt_prog_compiler_wl_CXX='-Wl,'
15322	    lt_prog_compiler_pic_CXX='-qpic'
15323	    lt_prog_compiler_static_CXX='-qstaticlink'
15324	    ;;
15325	  *)
15326	    case `$CC -V 2>&1 | sed 5q` in
15327	    *Sun\ C*)
15328	      # Sun C++ 5.9
15329	      lt_prog_compiler_pic_CXX='-KPIC'
15330	      lt_prog_compiler_static_CXX='-Bstatic'
15331	      lt_prog_compiler_wl_CXX='-Qoption ld '
15332	      ;;
15333	    esac
15334	    ;;
15335	esac
15336	;;
15337      lynxos*)
15338	;;
15339      m88k*)
15340	;;
15341      mvs*)
15342	case $cc_basename in
15343	  cxx*)
15344	    lt_prog_compiler_pic_CXX='-W c,exportall'
15345	    ;;
15346	  *)
15347	    ;;
15348	esac
15349	;;
15350      netbsd* | netbsdelf*-gnu)
15351	;;
15352      *qnx* | *nto*)
15353        # QNX uses GNU C++, but need to define -shared option too, otherwise
15354        # it will coredump.
15355        lt_prog_compiler_pic_CXX='-fPIC -shared'
15356        ;;
15357      osf3* | osf4* | osf5*)
15358	case $cc_basename in
15359	  KCC*)
15360	    lt_prog_compiler_wl_CXX='--backend -Wl,'
15361	    ;;
15362	  RCC*)
15363	    # Rational C++ 2.4.1
15364	    lt_prog_compiler_pic_CXX='-pic'
15365	    ;;
15366	  cxx*)
15367	    # Digital/Compaq C++
15368	    lt_prog_compiler_wl_CXX='-Wl,'
15369	    # Make sure the PIC flag is empty.  It appears that all Alpha
15370	    # Linux and Compaq Tru64 Unix objects are PIC.
15371	    lt_prog_compiler_pic_CXX=
15372	    lt_prog_compiler_static_CXX='-non_shared'
15373	    ;;
15374	  *)
15375	    ;;
15376	esac
15377	;;
15378      psos*)
15379	;;
15380      solaris*)
15381	case $cc_basename in
15382	  CC* | sunCC*)
15383	    # Sun C++ 4.2, 5.x and Centerline C++
15384	    lt_prog_compiler_pic_CXX='-KPIC'
15385	    lt_prog_compiler_static_CXX='-Bstatic'
15386	    lt_prog_compiler_wl_CXX='-Qoption ld '
15387	    ;;
15388	  gcx*)
15389	    # Green Hills C++ Compiler
15390	    lt_prog_compiler_pic_CXX='-PIC'
15391	    ;;
15392	  *)
15393	    ;;
15394	esac
15395	;;
15396      sunos4*)
15397	case $cc_basename in
15398	  CC*)
15399	    # Sun C++ 4.x
15400	    lt_prog_compiler_pic_CXX='-pic'
15401	    lt_prog_compiler_static_CXX='-Bstatic'
15402	    ;;
15403	  lcc*)
15404	    # Lucid
15405	    lt_prog_compiler_pic_CXX='-pic'
15406	    ;;
15407	  *)
15408	    ;;
15409	esac
15410	;;
15411      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15412	case $cc_basename in
15413	  CC*)
15414	    lt_prog_compiler_wl_CXX='-Wl,'
15415	    lt_prog_compiler_pic_CXX='-KPIC'
15416	    lt_prog_compiler_static_CXX='-Bstatic'
15417	    ;;
15418	esac
15419	;;
15420      tandem*)
15421	case $cc_basename in
15422	  NCC*)
15423	    # NonStop-UX NCC 3.20
15424	    lt_prog_compiler_pic_CXX='-KPIC'
15425	    ;;
15426	  *)
15427	    ;;
15428	esac
15429	;;
15430      vxworks*)
15431	;;
15432      *)
15433	lt_prog_compiler_can_build_shared_CXX=no
15434	;;
15435    esac
15436  fi
15437
15438case $host_os in
15439  # For platforms that do not support PIC, -DPIC is meaningless:
15440  *djgpp*)
15441    lt_prog_compiler_pic_CXX=
15442    ;;
15443  *)
15444    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15445    ;;
15446esac
15447
15448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15449$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15450if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15451  $as_echo_n "(cached) " >&6
15452else
15453  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15454fi
15455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15456$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15457lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15458
15459#
15460# Check to make sure the PIC flag actually works.
15461#
15462if test -n "$lt_prog_compiler_pic_CXX"; then
15463  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15464$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15465if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15466  $as_echo_n "(cached) " >&6
15467else
15468  lt_cv_prog_compiler_pic_works_CXX=no
15469   ac_outfile=conftest.$ac_objext
15470   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15471   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
15472   # Insert the option either (1) after the last *FLAGS variable, or
15473   # (2) before a word containing "conftest.", or (3) at the end.
15474   # Note that $ac_compile itself does not contain backslashes and begins
15475   # with a dollar sign (not a hyphen), so the echo should work correctly.
15476   # The option is referenced via a variable to avoid confusing sed.
15477   lt_compile=`echo "$ac_compile" | $SED \
15478   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15479   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15480   -e 's:$: $lt_compiler_flag:'`
15481   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15482   (eval "$lt_compile" 2>conftest.err)
15483   ac_status=$?
15484   cat conftest.err >&5
15485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15486   if (exit $ac_status) && test -s "$ac_outfile"; then
15487     # The compiler can only warn and ignore the option if not recognized
15488     # So say no if there are warnings other than the usual output.
15489     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15490     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15491     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15492       lt_cv_prog_compiler_pic_works_CXX=yes
15493     fi
15494   fi
15495   $RM conftest*
15496
15497fi
15498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15499$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15500
15501if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
15502    case $lt_prog_compiler_pic_CXX in
15503     "" | " "*) ;;
15504     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15505     esac
15506else
15507    lt_prog_compiler_pic_CXX=
15508     lt_prog_compiler_can_build_shared_CXX=no
15509fi
15510
15511fi
15512
15513
15514
15515
15516
15517#
15518# Check to make sure the static flag actually works.
15519#
15520wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15522$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15523if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15524  $as_echo_n "(cached) " >&6
15525else
15526  lt_cv_prog_compiler_static_works_CXX=no
15527   save_LDFLAGS=$LDFLAGS
15528   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15529   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15530   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15531     # The linker can only warn and ignore the option if not recognized
15532     # So say no if there are warnings
15533     if test -s conftest.err; then
15534       # Append any errors to the config.log.
15535       cat conftest.err 1>&5
15536       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15537       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15538       if diff conftest.exp conftest.er2 >/dev/null; then
15539         lt_cv_prog_compiler_static_works_CXX=yes
15540       fi
15541     else
15542       lt_cv_prog_compiler_static_works_CXX=yes
15543     fi
15544   fi
15545   $RM -r conftest*
15546   LDFLAGS=$save_LDFLAGS
15547
15548fi
15549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15550$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15551
15552if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
15553    :
15554else
15555    lt_prog_compiler_static_CXX=
15556fi
15557
15558
15559
15560
15561    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15562$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15563if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15564  $as_echo_n "(cached) " >&6
15565else
15566  lt_cv_prog_compiler_c_o_CXX=no
15567   $RM -r conftest 2>/dev/null
15568   mkdir conftest
15569   cd conftest
15570   mkdir out
15571   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15572
15573   lt_compiler_flag="-o out/conftest2.$ac_objext"
15574   # Insert the option either (1) after the last *FLAGS variable, or
15575   # (2) before a word containing "conftest.", or (3) at the end.
15576   # Note that $ac_compile itself does not contain backslashes and begins
15577   # with a dollar sign (not a hyphen), so the echo should work correctly.
15578   lt_compile=`echo "$ac_compile" | $SED \
15579   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15580   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15581   -e 's:$: $lt_compiler_flag:'`
15582   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15583   (eval "$lt_compile" 2>out/conftest.err)
15584   ac_status=$?
15585   cat out/conftest.err >&5
15586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15587   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15588   then
15589     # The compiler can only warn and ignore the option if not recognized
15590     # So say no if there are warnings
15591     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15592     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15593     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15594       lt_cv_prog_compiler_c_o_CXX=yes
15595     fi
15596   fi
15597   chmod u+w . 2>&5
15598   $RM conftest*
15599   # SGI C++ compiler will create directory out/ii_files/ for
15600   # template instantiation
15601   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15602   $RM out/* && rmdir out
15603   cd ..
15604   $RM -r conftest
15605   $RM conftest*
15606
15607fi
15608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15609$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15610
15611
15612
15613    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15614$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15615if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15616  $as_echo_n "(cached) " >&6
15617else
15618  lt_cv_prog_compiler_c_o_CXX=no
15619   $RM -r conftest 2>/dev/null
15620   mkdir conftest
15621   cd conftest
15622   mkdir out
15623   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15624
15625   lt_compiler_flag="-o out/conftest2.$ac_objext"
15626   # Insert the option either (1) after the last *FLAGS variable, or
15627   # (2) before a word containing "conftest.", or (3) at the end.
15628   # Note that $ac_compile itself does not contain backslashes and begins
15629   # with a dollar sign (not a hyphen), so the echo should work correctly.
15630   lt_compile=`echo "$ac_compile" | $SED \
15631   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15632   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15633   -e 's:$: $lt_compiler_flag:'`
15634   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15635   (eval "$lt_compile" 2>out/conftest.err)
15636   ac_status=$?
15637   cat out/conftest.err >&5
15638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15640   then
15641     # The compiler can only warn and ignore the option if not recognized
15642     # So say no if there are warnings
15643     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15644     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15645     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15646       lt_cv_prog_compiler_c_o_CXX=yes
15647     fi
15648   fi
15649   chmod u+w . 2>&5
15650   $RM conftest*
15651   # SGI C++ compiler will create directory out/ii_files/ for
15652   # template instantiation
15653   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15654   $RM out/* && rmdir out
15655   cd ..
15656   $RM -r conftest
15657   $RM conftest*
15658
15659fi
15660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15661$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15662
15663
15664
15665
15666hard_links=nottested
15667if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
15668  # do not overwrite the value of need_locks provided by the user
15669  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15670$as_echo_n "checking if we can lock with hard links... " >&6; }
15671  hard_links=yes
15672  $RM conftest*
15673  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15674  touch conftest.a
15675  ln conftest.a conftest.b 2>&5 || hard_links=no
15676  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15678$as_echo "$hard_links" >&6; }
15679  if test no = "$hard_links"; then
15680    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15681$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15682    need_locks=warn
15683  fi
15684else
15685  need_locks=no
15686fi
15687
15688
15689
15690    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15691$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15692
15693  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15694  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15695  case $host_os in
15696  aix[4-9]*)
15697    # If we're using GNU nm, then we don't want the "-C" option.
15698    # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15699    # Without the "-l" option, or with the "-B" option, AIX nm treats
15700    # weak defined symbols like other global defined symbols, whereas
15701    # GNU nm marks them as "W".
15702    # While the 'weak' keyword is ignored in the Export File, we need
15703    # it in the Import File for the 'aix-soname' feature, so we have
15704    # to replace the "-B" option with "-P" for AIX nm.
15705    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15706      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'
15707    else
15708      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'
15709    fi
15710    ;;
15711  pw32*)
15712    export_symbols_cmds_CXX=$ltdll_cmds
15713    ;;
15714  cygwin* | mingw* | cegcc*)
15715    case $cc_basename in
15716    cl*)
15717      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15718      ;;
15719    *)
15720      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'
15721      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15722      ;;
15723    esac
15724    ;;
15725  linux* | k*bsd*-gnu | gnu*)
15726    link_all_deplibs_CXX=no
15727    ;;
15728  *)
15729    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15730    ;;
15731  esac
15732
15733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15734$as_echo "$ld_shlibs_CXX" >&6; }
15735test no = "$ld_shlibs_CXX" && can_build_shared=no
15736
15737with_gnu_ld_CXX=$with_gnu_ld
15738
15739
15740
15741
15742
15743
15744#
15745# Do we need to explicitly link libc?
15746#
15747case "x$archive_cmds_need_lc_CXX" in
15748x|xyes)
15749  # Assume -lc should be added
15750  archive_cmds_need_lc_CXX=yes
15751
15752  if test yes,yes = "$GCC,$enable_shared"; then
15753    case $archive_cmds_CXX in
15754    *'~'*)
15755      # FIXME: we may have to deal with multi-command sequences.
15756      ;;
15757    '$CC '*)
15758      # Test whether the compiler implicitly links with -lc since on some
15759      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15760      # to ld, don't add -lc before -lgcc.
15761      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15762$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15763if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15764  $as_echo_n "(cached) " >&6
15765else
15766  $RM conftest*
15767	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15768
15769	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15770  (eval $ac_compile) 2>&5
15771  ac_status=$?
15772  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15773  test $ac_status = 0; } 2>conftest.err; then
15774	  soname=conftest
15775	  lib=conftest
15776	  libobjs=conftest.$ac_objext
15777	  deplibs=
15778	  wl=$lt_prog_compiler_wl_CXX
15779	  pic_flag=$lt_prog_compiler_pic_CXX
15780	  compiler_flags=-v
15781	  linker_flags=-v
15782	  verstring=
15783	  output_objdir=.
15784	  libname=conftest
15785	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15786	  allow_undefined_flag_CXX=
15787	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15788  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15789  ac_status=$?
15790  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15791  test $ac_status = 0; }
15792	  then
15793	    lt_cv_archive_cmds_need_lc_CXX=no
15794	  else
15795	    lt_cv_archive_cmds_need_lc_CXX=yes
15796	  fi
15797	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15798	else
15799	  cat conftest.err 1>&5
15800	fi
15801	$RM conftest*
15802
15803fi
15804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15805$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15806      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15807      ;;
15808    esac
15809  fi
15810  ;;
15811esac
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15875$as_echo_n "checking dynamic linker characteristics... " >&6; }
15876
15877library_names_spec=
15878libname_spec='lib$name'
15879soname_spec=
15880shrext_cmds=.so
15881postinstall_cmds=
15882postuninstall_cmds=
15883finish_cmds=
15884finish_eval=
15885shlibpath_var=
15886shlibpath_overrides_runpath=unknown
15887version_type=none
15888dynamic_linker="$host_os ld.so"
15889sys_lib_dlsearch_path_spec="/lib /usr/lib"
15890need_lib_prefix=unknown
15891hardcode_into_libs=no
15892
15893# when you set need_version to no, make sure it does not cause -set_version
15894# flags to be left without arguments
15895need_version=unknown
15896
15897
15898
15899case $host_os in
15900aix3*)
15901  version_type=linux # correct to gnu/linux during the next big refactor
15902  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15903  shlibpath_var=LIBPATH
15904
15905  # AIX 3 has no versioning support, so we append a major version to the name.
15906  soname_spec='$libname$release$shared_ext$major'
15907  ;;
15908
15909aix[4-9]*)
15910  version_type=linux # correct to gnu/linux during the next big refactor
15911  need_lib_prefix=no
15912  need_version=no
15913  hardcode_into_libs=yes
15914  if test ia64 = "$host_cpu"; then
15915    # AIX 5 supports IA64
15916    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15917    shlibpath_var=LD_LIBRARY_PATH
15918  else
15919    # With GCC up to 2.95.x, collect2 would create an import file
15920    # for dependence libraries.  The import file would start with
15921    # the line '#! .'.  This would cause the generated library to
15922    # depend on '.', always an invalid library.  This was fixed in
15923    # development snapshots of GCC prior to 3.0.
15924    case $host_os in
15925      aix4 | aix4.[01] | aix4.[01].*)
15926      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15927	   echo ' yes '
15928	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15929	:
15930      else
15931	can_build_shared=no
15932      fi
15933      ;;
15934    esac
15935    # Using Import Files as archive members, it is possible to support
15936    # filename-based versioning of shared library archives on AIX. While
15937    # this would work for both with and without runtime linking, it will
15938    # prevent static linking of such archives. So we do filename-based
15939    # shared library versioning with .so extension only, which is used
15940    # when both runtime linking and shared linking is enabled.
15941    # Unfortunately, runtime linking may impact performance, so we do
15942    # not want this to be the default eventually. Also, we use the
15943    # versioned .so libs for executables only if there is the -brtl
15944    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15945    # To allow for filename-based versioning support, we need to create
15946    # libNAME.so.V as an archive file, containing:
15947    # *) an Import File, referring to the versioned filename of the
15948    #    archive as well as the shared archive member, telling the
15949    #    bitwidth (32 or 64) of that shared object, and providing the
15950    #    list of exported symbols of that shared object, eventually
15951    #    decorated with the 'weak' keyword
15952    # *) the shared object with the F_LOADONLY flag set, to really avoid
15953    #    it being seen by the linker.
15954    # At run time we better use the real file rather than another symlink,
15955    # but for link time we create the symlink libNAME.so -> libNAME.so.V
15956
15957    case $with_aix_soname,$aix_use_runtimelinking in
15958    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15959    # soname into executable. Probably we can add versioning support to
15960    # collect2, so additional links can be useful in future.
15961    aix,yes) # traditional libtool
15962      dynamic_linker='AIX unversionable lib.so'
15963      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15964      # instead of lib<name>.a to let people know that these are not
15965      # typical AIX shared libraries.
15966      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15967      ;;
15968    aix,no) # traditional AIX only
15969      dynamic_linker='AIX lib.a(lib.so.V)'
15970      # We preserve .a as extension for shared libraries through AIX4.2
15971      # and later when we are not doing run time linking.
15972      library_names_spec='$libname$release.a $libname.a'
15973      soname_spec='$libname$release$shared_ext$major'
15974      ;;
15975    svr4,*) # full svr4 only
15976      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15977      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15978      # We do not specify a path in Import Files, so LIBPATH fires.
15979      shlibpath_overrides_runpath=yes
15980      ;;
15981    *,yes) # both, prefer svr4
15982      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15983      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15984      # unpreferred sharedlib libNAME.a needs extra handling
15985      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"'
15986      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"'
15987      # We do not specify a path in Import Files, so LIBPATH fires.
15988      shlibpath_overrides_runpath=yes
15989      ;;
15990    *,no) # both, prefer aix
15991      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15992      library_names_spec='$libname$release.a $libname.a'
15993      soname_spec='$libname$release$shared_ext$major'
15994      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15995      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)'
15996      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"'
15997      ;;
15998    esac
15999    shlibpath_var=LIBPATH
16000  fi
16001  ;;
16002
16003amigaos*)
16004  case $host_cpu in
16005  powerpc)
16006    # Since July 2007 AmigaOS4 officially supports .so libraries.
16007    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16008    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16009    ;;
16010  m68k)
16011    library_names_spec='$libname.ixlibrary $libname.a'
16012    # Create ${libname}_ixlibrary.a entries in /sys/libs.
16013    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'
16014    ;;
16015  esac
16016  ;;
16017
16018beos*)
16019  library_names_spec='$libname$shared_ext'
16020  dynamic_linker="$host_os ld.so"
16021  shlibpath_var=LIBRARY_PATH
16022  ;;
16023
16024bsdi[45]*)
16025  version_type=linux # correct to gnu/linux during the next big refactor
16026  need_version=no
16027  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16028  soname_spec='$libname$release$shared_ext$major'
16029  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16030  shlibpath_var=LD_LIBRARY_PATH
16031  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16032  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16033  # the default ld.so.conf also contains /usr/contrib/lib and
16034  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16035  # libtool to hard-code these into programs
16036  ;;
16037
16038cygwin* | mingw* | pw32* | cegcc*)
16039  version_type=windows
16040  shrext_cmds=.dll
16041  need_version=no
16042  need_lib_prefix=no
16043
16044  case $GCC,$cc_basename in
16045  yes,*)
16046    # gcc
16047    library_names_spec='$libname.dll.a'
16048    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16049    postinstall_cmds='base_file=`basename \$file`~
16050      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16051      dldir=$destdir/`dirname \$dlpath`~
16052      test -d \$dldir || mkdir -p \$dldir~
16053      $install_prog $dir/$dlname \$dldir/$dlname~
16054      chmod a+x \$dldir/$dlname~
16055      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16056        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16057      fi'
16058    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16059      dlpath=$dir/\$dldll~
16060       $RM \$dlpath'
16061    shlibpath_overrides_runpath=yes
16062
16063    case $host_os in
16064    cygwin*)
16065      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16066      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16067
16068      ;;
16069    mingw* | cegcc*)
16070      # MinGW DLLs use traditional 'lib' prefix
16071      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16072      ;;
16073    pw32*)
16074      # pw32 DLLs use 'pw' prefix rather than 'lib'
16075      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16076      ;;
16077    esac
16078    dynamic_linker='Win32 ld.exe'
16079    ;;
16080
16081  *,cl*)
16082    # Native MSVC
16083    libname_spec='$name'
16084    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16085    library_names_spec='$libname.dll.lib'
16086
16087    case $build_os in
16088    mingw*)
16089      sys_lib_search_path_spec=
16090      lt_save_ifs=$IFS
16091      IFS=';'
16092      for lt_path in $LIB
16093      do
16094        IFS=$lt_save_ifs
16095        # Let DOS variable expansion print the short 8.3 style file name.
16096        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16097        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16098      done
16099      IFS=$lt_save_ifs
16100      # Convert to MSYS style.
16101      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16102      ;;
16103    cygwin*)
16104      # Convert to unix form, then to dos form, then back to unix form
16105      # but this time dos style (no spaces!) so that the unix form looks
16106      # like /cygdrive/c/PROGRA~1:/cygdr...
16107      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16108      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16109      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16110      ;;
16111    *)
16112      sys_lib_search_path_spec=$LIB
16113      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16114        # It is most probably a Windows format PATH.
16115        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16116      else
16117        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16118      fi
16119      # FIXME: find the short name or the path components, as spaces are
16120      # common. (e.g. "Program Files" -> "PROGRA~1")
16121      ;;
16122    esac
16123
16124    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16125    postinstall_cmds='base_file=`basename \$file`~
16126      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16127      dldir=$destdir/`dirname \$dlpath`~
16128      test -d \$dldir || mkdir -p \$dldir~
16129      $install_prog $dir/$dlname \$dldir/$dlname'
16130    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16131      dlpath=$dir/\$dldll~
16132       $RM \$dlpath'
16133    shlibpath_overrides_runpath=yes
16134    dynamic_linker='Win32 link.exe'
16135    ;;
16136
16137  *)
16138    # Assume MSVC wrapper
16139    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
16140    dynamic_linker='Win32 ld.exe'
16141    ;;
16142  esac
16143  # FIXME: first we should search . and the directory the executable is in
16144  shlibpath_var=PATH
16145  ;;
16146
16147darwin* | rhapsody*)
16148  dynamic_linker="$host_os dyld"
16149  version_type=darwin
16150  need_lib_prefix=no
16151  need_version=no
16152  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
16153  soname_spec='$libname$release$major$shared_ext'
16154  shlibpath_overrides_runpath=yes
16155  shlibpath_var=DYLD_LIBRARY_PATH
16156  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16157
16158  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16159  ;;
16160
16161dgux*)
16162  version_type=linux # correct to gnu/linux during the next big refactor
16163  need_lib_prefix=no
16164  need_version=no
16165  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16166  soname_spec='$libname$release$shared_ext$major'
16167  shlibpath_var=LD_LIBRARY_PATH
16168  ;;
16169
16170freebsd* | dragonfly*)
16171  # DragonFly does not have aout.  When/if they implement a new
16172  # versioning mechanism, adjust this.
16173  if test -x /usr/bin/objformat; then
16174    objformat=`/usr/bin/objformat`
16175  else
16176    case $host_os in
16177    freebsd[23].*) objformat=aout ;;
16178    *) objformat=elf ;;
16179    esac
16180  fi
16181  version_type=freebsd-$objformat
16182  case $version_type in
16183    freebsd-elf*)
16184      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16185      soname_spec='$libname$release$shared_ext$major'
16186      need_version=no
16187      need_lib_prefix=no
16188      ;;
16189    freebsd-*)
16190      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16191      need_version=yes
16192      ;;
16193  esac
16194  shlibpath_var=LD_LIBRARY_PATH
16195  case $host_os in
16196  freebsd2.*)
16197    shlibpath_overrides_runpath=yes
16198    ;;
16199  freebsd3.[01]* | freebsdelf3.[01]*)
16200    shlibpath_overrides_runpath=yes
16201    hardcode_into_libs=yes
16202    ;;
16203  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16204  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16205    shlibpath_overrides_runpath=no
16206    hardcode_into_libs=yes
16207    ;;
16208  *) # from 4.6 on, and DragonFly
16209    shlibpath_overrides_runpath=yes
16210    hardcode_into_libs=yes
16211    ;;
16212  esac
16213  ;;
16214
16215haiku*)
16216  version_type=linux # correct to gnu/linux during the next big refactor
16217  need_lib_prefix=no
16218  need_version=no
16219  dynamic_linker="$host_os runtime_loader"
16220  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16221  soname_spec='$libname$release$shared_ext$major'
16222  shlibpath_var=LIBRARY_PATH
16223  shlibpath_overrides_runpath=no
16224  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16225  hardcode_into_libs=yes
16226  ;;
16227
16228hpux9* | hpux10* | hpux11*)
16229  # Give a soname corresponding to the major version so that dld.sl refuses to
16230  # link against other versions.
16231  version_type=sunos
16232  need_lib_prefix=no
16233  need_version=no
16234  case $host_cpu in
16235  ia64*)
16236    shrext_cmds='.so'
16237    hardcode_into_libs=yes
16238    dynamic_linker="$host_os dld.so"
16239    shlibpath_var=LD_LIBRARY_PATH
16240    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16241    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16242    soname_spec='$libname$release$shared_ext$major'
16243    if test 32 = "$HPUX_IA64_MODE"; then
16244      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16245      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
16246    else
16247      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16248      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
16249    fi
16250    ;;
16251  hppa*64*)
16252    shrext_cmds='.sl'
16253    hardcode_into_libs=yes
16254    dynamic_linker="$host_os dld.sl"
16255    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16256    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16257    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16258    soname_spec='$libname$release$shared_ext$major'
16259    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16260    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16261    ;;
16262  *)
16263    shrext_cmds='.sl'
16264    dynamic_linker="$host_os dld.sl"
16265    shlibpath_var=SHLIB_PATH
16266    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16267    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16268    soname_spec='$libname$release$shared_ext$major'
16269    ;;
16270  esac
16271  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16272  postinstall_cmds='chmod 555 $lib'
16273  # or fails outright, so override atomically:
16274  install_override_mode=555
16275  ;;
16276
16277interix[3-9]*)
16278  version_type=linux # correct to gnu/linux during the next big refactor
16279  need_lib_prefix=no
16280  need_version=no
16281  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16282  soname_spec='$libname$release$shared_ext$major'
16283  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16284  shlibpath_var=LD_LIBRARY_PATH
16285  shlibpath_overrides_runpath=no
16286  hardcode_into_libs=yes
16287  ;;
16288
16289irix5* | irix6* | nonstopux*)
16290  case $host_os in
16291    nonstopux*) version_type=nonstopux ;;
16292    *)
16293	if test yes = "$lt_cv_prog_gnu_ld"; then
16294		version_type=linux # correct to gnu/linux during the next big refactor
16295	else
16296		version_type=irix
16297	fi ;;
16298  esac
16299  need_lib_prefix=no
16300  need_version=no
16301  soname_spec='$libname$release$shared_ext$major'
16302  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16303  case $host_os in
16304  irix5* | nonstopux*)
16305    libsuff= shlibsuff=
16306    ;;
16307  *)
16308    case $LD in # libtool.m4 will add one of these switches to LD
16309    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16310      libsuff= shlibsuff= libmagic=32-bit;;
16311    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16312      libsuff=32 shlibsuff=N32 libmagic=N32;;
16313    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16314      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16315    *) libsuff= shlibsuff= libmagic=never-match;;
16316    esac
16317    ;;
16318  esac
16319  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16320  shlibpath_overrides_runpath=no
16321  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16322  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16323  hardcode_into_libs=yes
16324  ;;
16325
16326# No shared lib support for Linux oldld, aout, or coff.
16327linux*oldld* | linux*aout* | linux*coff*)
16328  dynamic_linker=no
16329  ;;
16330
16331linux*android*)
16332  version_type=none # Android doesn't support versioned libraries.
16333  need_lib_prefix=no
16334  need_version=no
16335  library_names_spec='$libname$release$shared_ext'
16336  soname_spec='$libname$release$shared_ext'
16337  finish_cmds=
16338  shlibpath_var=LD_LIBRARY_PATH
16339  shlibpath_overrides_runpath=yes
16340
16341  # This implies no fast_install, which is unacceptable.
16342  # Some rework will be needed to allow for fast_install
16343  # before this can be enabled.
16344  hardcode_into_libs=yes
16345
16346  dynamic_linker='Android linker'
16347  # Don't embed -rpath directories since the linker doesn't support them.
16348  hardcode_libdir_flag_spec_CXX='-L$libdir'
16349  ;;
16350
16351# This must be glibc/ELF.
16352linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16353  version_type=linux # correct to gnu/linux during the next big refactor
16354  need_lib_prefix=no
16355  need_version=no
16356  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16357  soname_spec='$libname$release$shared_ext$major'
16358  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16359  shlibpath_var=LD_LIBRARY_PATH
16360  shlibpath_overrides_runpath=no
16361
16362  # Some binutils ld are patched to set DT_RUNPATH
16363  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16364  $as_echo_n "(cached) " >&6
16365else
16366  lt_cv_shlibpath_overrides_runpath=no
16367    save_LDFLAGS=$LDFLAGS
16368    save_libdir=$libdir
16369    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16370	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16371    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16372/* end confdefs.h.  */
16373
16374int
16375main ()
16376{
16377
16378  ;
16379  return 0;
16380}
16381_ACEOF
16382if ac_fn_cxx_try_link "$LINENO"; then :
16383  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16384  lt_cv_shlibpath_overrides_runpath=yes
16385fi
16386fi
16387rm -f core conftest.err conftest.$ac_objext \
16388    conftest$ac_exeext conftest.$ac_ext
16389    LDFLAGS=$save_LDFLAGS
16390    libdir=$save_libdir
16391
16392fi
16393
16394  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16395
16396  # This implies no fast_install, which is unacceptable.
16397  # Some rework will be needed to allow for fast_install
16398  # before this can be enabled.
16399  hardcode_into_libs=yes
16400
16401  # Ideally, we could use ldconfig to report *all* directores which are
16402  # searched for libraries, however this is still not possible.  Aside from not
16403  # being certain /sbin/ldconfig is available, command
16404  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16405  # even though it is searched at run-time.  Try to do the best guess by
16406  # appending ld.so.conf contents (and includes) to the search path.
16407  if test -f /etc/ld.so.conf; then
16408    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' ' '`
16409    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16410  fi
16411
16412  # We used to test for /lib/ld.so.1 and disable shared libraries on
16413  # powerpc, because MkLinux only supported shared libraries with the
16414  # GNU dynamic linker.  Since this was broken with cross compilers,
16415  # most powerpc-linux boxes support dynamic linking these days and
16416  # people can always --disable-shared, the test was removed, and we
16417  # assume the GNU/Linux dynamic linker is in use.
16418  dynamic_linker='GNU/Linux ld.so'
16419  ;;
16420
16421netbsdelf*-gnu)
16422  version_type=linux
16423  need_lib_prefix=no
16424  need_version=no
16425  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16426  soname_spec='${libname}${release}${shared_ext}$major'
16427  shlibpath_var=LD_LIBRARY_PATH
16428  shlibpath_overrides_runpath=no
16429  hardcode_into_libs=yes
16430  dynamic_linker='NetBSD ld.elf_so'
16431  ;;
16432
16433netbsd*)
16434  version_type=sunos
16435  need_lib_prefix=no
16436  need_version=no
16437  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16438    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16439    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16440    dynamic_linker='NetBSD (a.out) ld.so'
16441  else
16442    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16443    soname_spec='$libname$release$shared_ext$major'
16444    dynamic_linker='NetBSD ld.elf_so'
16445  fi
16446  shlibpath_var=LD_LIBRARY_PATH
16447  shlibpath_overrides_runpath=yes
16448  hardcode_into_libs=yes
16449  ;;
16450
16451newsos6)
16452  version_type=linux # correct to gnu/linux during the next big refactor
16453  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16454  shlibpath_var=LD_LIBRARY_PATH
16455  shlibpath_overrides_runpath=yes
16456  ;;
16457
16458*nto* | *qnx*)
16459  version_type=qnx
16460  need_lib_prefix=no
16461  need_version=no
16462  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16463  soname_spec='$libname$release$shared_ext$major'
16464  shlibpath_var=LD_LIBRARY_PATH
16465  shlibpath_overrides_runpath=no
16466  hardcode_into_libs=yes
16467  dynamic_linker='ldqnx.so'
16468  ;;
16469
16470openbsd* | bitrig*)
16471  version_type=sunos
16472  sys_lib_dlsearch_path_spec=/usr/lib
16473  need_lib_prefix=no
16474  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16475    need_version=no
16476  else
16477    need_version=yes
16478  fi
16479  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16480  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16481  shlibpath_var=LD_LIBRARY_PATH
16482  shlibpath_overrides_runpath=yes
16483  ;;
16484
16485os2*)
16486  libname_spec='$name'
16487  version_type=windows
16488  shrext_cmds=.dll
16489  need_version=no
16490  need_lib_prefix=no
16491  # OS/2 can only load a DLL with a base name of 8 characters or less.
16492  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16493    v=$($ECHO $release$versuffix | tr -d .-);
16494    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16495    $ECHO $n$v`$shared_ext'
16496  library_names_spec='${libname}_dll.$libext'
16497  dynamic_linker='OS/2 ld.exe'
16498  shlibpath_var=BEGINLIBPATH
16499  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16500  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16501  postinstall_cmds='base_file=`basename \$file`~
16502    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16503    dldir=$destdir/`dirname \$dlpath`~
16504    test -d \$dldir || mkdir -p \$dldir~
16505    $install_prog $dir/$dlname \$dldir/$dlname~
16506    chmod a+x \$dldir/$dlname~
16507    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16508      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16509    fi'
16510  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16511    dlpath=$dir/\$dldll~
16512    $RM \$dlpath'
16513  ;;
16514
16515osf3* | osf4* | osf5*)
16516  version_type=osf
16517  need_lib_prefix=no
16518  need_version=no
16519  soname_spec='$libname$release$shared_ext$major'
16520  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16521  shlibpath_var=LD_LIBRARY_PATH
16522  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16523  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16524  ;;
16525
16526rdos*)
16527  dynamic_linker=no
16528  ;;
16529
16530solaris*)
16531  version_type=linux # correct to gnu/linux during the next big refactor
16532  need_lib_prefix=no
16533  need_version=no
16534  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16535  soname_spec='$libname$release$shared_ext$major'
16536  shlibpath_var=LD_LIBRARY_PATH
16537  shlibpath_overrides_runpath=yes
16538  hardcode_into_libs=yes
16539  # ldd complains unless libraries are executable
16540  postinstall_cmds='chmod +x $lib'
16541  ;;
16542
16543sunos4*)
16544  version_type=sunos
16545  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16546  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16547  shlibpath_var=LD_LIBRARY_PATH
16548  shlibpath_overrides_runpath=yes
16549  if test yes = "$with_gnu_ld"; then
16550    need_lib_prefix=no
16551  fi
16552  need_version=yes
16553  ;;
16554
16555sysv4 | sysv4.3*)
16556  version_type=linux # correct to gnu/linux during the next big refactor
16557  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16558  soname_spec='$libname$release$shared_ext$major'
16559  shlibpath_var=LD_LIBRARY_PATH
16560  case $host_vendor in
16561    sni)
16562      shlibpath_overrides_runpath=no
16563      need_lib_prefix=no
16564      runpath_var=LD_RUN_PATH
16565      ;;
16566    siemens)
16567      need_lib_prefix=no
16568      ;;
16569    motorola)
16570      need_lib_prefix=no
16571      need_version=no
16572      shlibpath_overrides_runpath=no
16573      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16574      ;;
16575  esac
16576  ;;
16577
16578sysv4*MP*)
16579  if test -d /usr/nec; then
16580    version_type=linux # correct to gnu/linux during the next big refactor
16581    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16582    soname_spec='$libname$shared_ext.$major'
16583    shlibpath_var=LD_LIBRARY_PATH
16584  fi
16585  ;;
16586
16587sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16588  version_type=sco
16589  need_lib_prefix=no
16590  need_version=no
16591  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16592  soname_spec='$libname$release$shared_ext$major'
16593  shlibpath_var=LD_LIBRARY_PATH
16594  shlibpath_overrides_runpath=yes
16595  hardcode_into_libs=yes
16596  if test yes = "$with_gnu_ld"; then
16597    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16598  else
16599    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16600    case $host_os in
16601      sco3.2v5*)
16602        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16603	;;
16604    esac
16605  fi
16606  sys_lib_dlsearch_path_spec='/usr/lib'
16607  ;;
16608
16609tpf*)
16610  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16611  version_type=linux # correct to gnu/linux during the next big refactor
16612  need_lib_prefix=no
16613  need_version=no
16614  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16615  shlibpath_var=LD_LIBRARY_PATH
16616  shlibpath_overrides_runpath=no
16617  hardcode_into_libs=yes
16618  ;;
16619
16620uts4*)
16621  version_type=linux # correct to gnu/linux during the next big refactor
16622  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16623  soname_spec='$libname$release$shared_ext$major'
16624  shlibpath_var=LD_LIBRARY_PATH
16625  ;;
16626
16627*)
16628  dynamic_linker=no
16629  ;;
16630esac
16631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16632$as_echo "$dynamic_linker" >&6; }
16633test no = "$dynamic_linker" && can_build_shared=no
16634
16635variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16636if test yes = "$GCC"; then
16637  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16638fi
16639
16640if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16641  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16642fi
16643
16644if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16645  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16646fi
16647
16648# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16649configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16650
16651# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16652func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16653
16654# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16655configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16697$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16698hardcode_action_CXX=
16699if test -n "$hardcode_libdir_flag_spec_CXX" ||
16700   test -n "$runpath_var_CXX" ||
16701   test yes = "$hardcode_automatic_CXX"; then
16702
16703  # We can hardcode non-existent directories.
16704  if test no != "$hardcode_direct_CXX" &&
16705     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16706     # have to relink, otherwise we might link with an installed library
16707     # when we should be linking with a yet-to-be-installed one
16708     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
16709     test no != "$hardcode_minus_L_CXX"; then
16710    # Linking always hardcodes the temporary library directory.
16711    hardcode_action_CXX=relink
16712  else
16713    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16714    hardcode_action_CXX=immediate
16715  fi
16716else
16717  # We cannot hardcode anything, or else we can only hardcode existing
16718  # directories.
16719  hardcode_action_CXX=unsupported
16720fi
16721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16722$as_echo "$hardcode_action_CXX" >&6; }
16723
16724if test relink = "$hardcode_action_CXX" ||
16725   test yes = "$inherit_rpath_CXX"; then
16726  # Fast installation is not supported
16727  enable_fast_install=no
16728elif test yes = "$shlibpath_overrides_runpath" ||
16729     test no = "$enable_shared"; then
16730  # Fast installation is not necessary
16731  enable_fast_install=needless
16732fi
16733
16734
16735
16736
16737
16738
16739
16740  fi # test -n "$compiler"
16741
16742  CC=$lt_save_CC
16743  CFLAGS=$lt_save_CFLAGS
16744  LDCXX=$LD
16745  LD=$lt_save_LD
16746  GCC=$lt_save_GCC
16747  with_gnu_ld=$lt_save_with_gnu_ld
16748  lt_cv_path_LDCXX=$lt_cv_path_LD
16749  lt_cv_path_LD=$lt_save_path_LD
16750  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16751  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16752fi # test yes != "$_lt_caught_CXX_error"
16753
16754ac_ext=c
16755ac_cpp='$CPP $CPPFLAGS'
16756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16758ac_compiler_gnu=$ac_cv_c_compiler_gnu
16759
16760
16761# The following check was supposed to check that there was actually a
16762# C++ compiler but doesn't work properly if CXX is set by the user.
16763#AC_CHECK_PROG(check_cpp, $CXX, "yes", "no")
16764#if test "$check_cpp" != "yes"; then
16765#    AC_MSG_ERROR([No C++ compiler found.  Unable to build Poly/ML.])
16766#fi
16767
16768ac_ext=c
16769ac_cpp='$CPP $CPPFLAGS'
16770ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16771ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16772ac_compiler_gnu=$ac_cv_c_compiler_gnu
16773if test -n "$ac_tool_prefix"; then
16774  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
16775set dummy ${ac_tool_prefix}gcc; ac_word=$2
16776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16777$as_echo_n "checking for $ac_word... " >&6; }
16778if ${ac_cv_prog_CC+:} false; then :
16779  $as_echo_n "(cached) " >&6
16780else
16781  if test -n "$CC"; then
16782  ac_cv_prog_CC="$CC" # Let the user override the test.
16783else
16784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16785for as_dir in $PATH
16786do
16787  IFS=$as_save_IFS
16788  test -z "$as_dir" && as_dir=.
16789    for ac_exec_ext in '' $ac_executable_extensions; do
16790  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16791    ac_cv_prog_CC="${ac_tool_prefix}gcc"
16792    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16793    break 2
16794  fi
16795done
16796  done
16797IFS=$as_save_IFS
16798
16799fi
16800fi
16801CC=$ac_cv_prog_CC
16802if test -n "$CC"; then
16803  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
16804$as_echo "$CC" >&6; }
16805else
16806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16807$as_echo "no" >&6; }
16808fi
16809
16810
16811fi
16812if test -z "$ac_cv_prog_CC"; then
16813  ac_ct_CC=$CC
16814  # Extract the first word of "gcc", so it can be a program name with args.
16815set dummy gcc; ac_word=$2
16816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16817$as_echo_n "checking for $ac_word... " >&6; }
16818if ${ac_cv_prog_ac_ct_CC+:} false; then :
16819  $as_echo_n "(cached) " >&6
16820else
16821  if test -n "$ac_ct_CC"; then
16822  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
16823else
16824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16825for as_dir in $PATH
16826do
16827  IFS=$as_save_IFS
16828  test -z "$as_dir" && as_dir=.
16829    for ac_exec_ext in '' $ac_executable_extensions; do
16830  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16831    ac_cv_prog_ac_ct_CC="gcc"
16832    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16833    break 2
16834  fi
16835done
16836  done
16837IFS=$as_save_IFS
16838
16839fi
16840fi
16841ac_ct_CC=$ac_cv_prog_ac_ct_CC
16842if test -n "$ac_ct_CC"; then
16843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
16844$as_echo "$ac_ct_CC" >&6; }
16845else
16846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16847$as_echo "no" >&6; }
16848fi
16849
16850  if test "x$ac_ct_CC" = x; then
16851    CC=""
16852  else
16853    case $cross_compiling:$ac_tool_warned in
16854yes:)
16855{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16856$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16857ac_tool_warned=yes ;;
16858esac
16859    CC=$ac_ct_CC
16860  fi
16861else
16862  CC="$ac_cv_prog_CC"
16863fi
16864
16865if test -z "$CC"; then
16866          if test -n "$ac_tool_prefix"; then
16867    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
16868set dummy ${ac_tool_prefix}cc; ac_word=$2
16869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16870$as_echo_n "checking for $ac_word... " >&6; }
16871if ${ac_cv_prog_CC+:} false; then :
16872  $as_echo_n "(cached) " >&6
16873else
16874  if test -n "$CC"; then
16875  ac_cv_prog_CC="$CC" # Let the user override the test.
16876else
16877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16878for as_dir in $PATH
16879do
16880  IFS=$as_save_IFS
16881  test -z "$as_dir" && as_dir=.
16882    for ac_exec_ext in '' $ac_executable_extensions; do
16883  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16884    ac_cv_prog_CC="${ac_tool_prefix}cc"
16885    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16886    break 2
16887  fi
16888done
16889  done
16890IFS=$as_save_IFS
16891
16892fi
16893fi
16894CC=$ac_cv_prog_CC
16895if test -n "$CC"; then
16896  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
16897$as_echo "$CC" >&6; }
16898else
16899  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16900$as_echo "no" >&6; }
16901fi
16902
16903
16904  fi
16905fi
16906if test -z "$CC"; then
16907  # Extract the first word of "cc", so it can be a program name with args.
16908set dummy cc; ac_word=$2
16909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16910$as_echo_n "checking for $ac_word... " >&6; }
16911if ${ac_cv_prog_CC+:} false; then :
16912  $as_echo_n "(cached) " >&6
16913else
16914  if test -n "$CC"; then
16915  ac_cv_prog_CC="$CC" # Let the user override the test.
16916else
16917  ac_prog_rejected=no
16918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16919for as_dir in $PATH
16920do
16921  IFS=$as_save_IFS
16922  test -z "$as_dir" && as_dir=.
16923    for ac_exec_ext in '' $ac_executable_extensions; do
16924  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16925    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
16926       ac_prog_rejected=yes
16927       continue
16928     fi
16929    ac_cv_prog_CC="cc"
16930    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16931    break 2
16932  fi
16933done
16934  done
16935IFS=$as_save_IFS
16936
16937if test $ac_prog_rejected = yes; then
16938  # We found a bogon in the path, so make sure we never use it.
16939  set dummy $ac_cv_prog_CC
16940  shift
16941  if test $# != 0; then
16942    # We chose a different compiler from the bogus one.
16943    # However, it has the same basename, so the bogon will be chosen
16944    # first if we set CC to just the basename; use the full file name.
16945    shift
16946    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
16947  fi
16948fi
16949fi
16950fi
16951CC=$ac_cv_prog_CC
16952if test -n "$CC"; then
16953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
16954$as_echo "$CC" >&6; }
16955else
16956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16957$as_echo "no" >&6; }
16958fi
16959
16960
16961fi
16962if test -z "$CC"; then
16963  if test -n "$ac_tool_prefix"; then
16964  for ac_prog in cl.exe
16965  do
16966    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16967set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16969$as_echo_n "checking for $ac_word... " >&6; }
16970if ${ac_cv_prog_CC+:} false; then :
16971  $as_echo_n "(cached) " >&6
16972else
16973  if test -n "$CC"; then
16974  ac_cv_prog_CC="$CC" # Let the user override the test.
16975else
16976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16977for as_dir in $PATH
16978do
16979  IFS=$as_save_IFS
16980  test -z "$as_dir" && as_dir=.
16981    for ac_exec_ext in '' $ac_executable_extensions; do
16982  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16983    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
16984    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16985    break 2
16986  fi
16987done
16988  done
16989IFS=$as_save_IFS
16990
16991fi
16992fi
16993CC=$ac_cv_prog_CC
16994if test -n "$CC"; then
16995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
16996$as_echo "$CC" >&6; }
16997else
16998  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16999$as_echo "no" >&6; }
17000fi
17001
17002
17003    test -n "$CC" && break
17004  done
17005fi
17006if test -z "$CC"; then
17007  ac_ct_CC=$CC
17008  for ac_prog in cl.exe
17009do
17010  # Extract the first word of "$ac_prog", so it can be a program name with args.
17011set dummy $ac_prog; ac_word=$2
17012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17013$as_echo_n "checking for $ac_word... " >&6; }
17014if ${ac_cv_prog_ac_ct_CC+:} false; then :
17015  $as_echo_n "(cached) " >&6
17016else
17017  if test -n "$ac_ct_CC"; then
17018  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
17019else
17020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17021for as_dir in $PATH
17022do
17023  IFS=$as_save_IFS
17024  test -z "$as_dir" && as_dir=.
17025    for ac_exec_ext in '' $ac_executable_extensions; do
17026  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17027    ac_cv_prog_ac_ct_CC="$ac_prog"
17028    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17029    break 2
17030  fi
17031done
17032  done
17033IFS=$as_save_IFS
17034
17035fi
17036fi
17037ac_ct_CC=$ac_cv_prog_ac_ct_CC
17038if test -n "$ac_ct_CC"; then
17039  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
17040$as_echo "$ac_ct_CC" >&6; }
17041else
17042  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17043$as_echo "no" >&6; }
17044fi
17045
17046
17047  test -n "$ac_ct_CC" && break
17048done
17049
17050  if test "x$ac_ct_CC" = x; then
17051    CC=""
17052  else
17053    case $cross_compiling:$ac_tool_warned in
17054yes:)
17055{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17056$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17057ac_tool_warned=yes ;;
17058esac
17059    CC=$ac_ct_CC
17060  fi
17061fi
17062
17063fi
17064
17065
17066test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17067$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17068as_fn_error $? "no acceptable C compiler found in \$PATH
17069See \`config.log' for more details" "$LINENO" 5; }
17070
17071# Provide some information about the compiler.
17072$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
17073set X $ac_compile
17074ac_compiler=$2
17075for ac_option in --version -v -V -qversion; do
17076  { { ac_try="$ac_compiler $ac_option >&5"
17077case "(($ac_try" in
17078  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17079  *) ac_try_echo=$ac_try;;
17080esac
17081eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17082$as_echo "$ac_try_echo"; } >&5
17083  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
17084  ac_status=$?
17085  if test -s conftest.err; then
17086    sed '10a\
17087... rest of stderr output deleted ...
17088         10q' conftest.err >conftest.er1
17089    cat conftest.er1 >&5
17090  fi
17091  rm -f conftest.er1 conftest.err
17092  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17093  test $ac_status = 0; }
17094done
17095
17096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
17097$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
17098if ${ac_cv_c_compiler_gnu+:} false; then :
17099  $as_echo_n "(cached) " >&6
17100else
17101  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17102/* end confdefs.h.  */
17103
17104int
17105main ()
17106{
17107#ifndef __GNUC__
17108       choke me
17109#endif
17110
17111  ;
17112  return 0;
17113}
17114_ACEOF
17115if ac_fn_c_try_compile "$LINENO"; then :
17116  ac_compiler_gnu=yes
17117else
17118  ac_compiler_gnu=no
17119fi
17120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17121ac_cv_c_compiler_gnu=$ac_compiler_gnu
17122
17123fi
17124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
17125$as_echo "$ac_cv_c_compiler_gnu" >&6; }
17126if test $ac_compiler_gnu = yes; then
17127  GCC=yes
17128else
17129  GCC=
17130fi
17131ac_test_CFLAGS=${CFLAGS+set}
17132ac_save_CFLAGS=$CFLAGS
17133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
17134$as_echo_n "checking whether $CC accepts -g... " >&6; }
17135if ${ac_cv_prog_cc_g+:} false; then :
17136  $as_echo_n "(cached) " >&6
17137else
17138  ac_save_c_werror_flag=$ac_c_werror_flag
17139   ac_c_werror_flag=yes
17140   ac_cv_prog_cc_g=no
17141   CFLAGS="-g"
17142   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17143/* end confdefs.h.  */
17144
17145int
17146main ()
17147{
17148
17149  ;
17150  return 0;
17151}
17152_ACEOF
17153if ac_fn_c_try_compile "$LINENO"; then :
17154  ac_cv_prog_cc_g=yes
17155else
17156  CFLAGS=""
17157      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17158/* end confdefs.h.  */
17159
17160int
17161main ()
17162{
17163
17164  ;
17165  return 0;
17166}
17167_ACEOF
17168if ac_fn_c_try_compile "$LINENO"; then :
17169
17170else
17171  ac_c_werror_flag=$ac_save_c_werror_flag
17172	 CFLAGS="-g"
17173	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17174/* end confdefs.h.  */
17175
17176int
17177main ()
17178{
17179
17180  ;
17181  return 0;
17182}
17183_ACEOF
17184if ac_fn_c_try_compile "$LINENO"; then :
17185  ac_cv_prog_cc_g=yes
17186fi
17187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17188fi
17189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17190fi
17191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17192   ac_c_werror_flag=$ac_save_c_werror_flag
17193fi
17194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
17195$as_echo "$ac_cv_prog_cc_g" >&6; }
17196if test "$ac_test_CFLAGS" = set; then
17197  CFLAGS=$ac_save_CFLAGS
17198elif test $ac_cv_prog_cc_g = yes; then
17199  if test "$GCC" = yes; then
17200    CFLAGS="-g -O2"
17201  else
17202    CFLAGS="-g"
17203  fi
17204else
17205  if test "$GCC" = yes; then
17206    CFLAGS="-O2"
17207  else
17208    CFLAGS=
17209  fi
17210fi
17211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
17212$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
17213if ${ac_cv_prog_cc_c89+:} false; then :
17214  $as_echo_n "(cached) " >&6
17215else
17216  ac_cv_prog_cc_c89=no
17217ac_save_CC=$CC
17218cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17219/* end confdefs.h.  */
17220#include <stdarg.h>
17221#include <stdio.h>
17222struct stat;
17223/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
17224struct buf { int x; };
17225FILE * (*rcsopen) (struct buf *, struct stat *, int);
17226static char *e (p, i)
17227     char **p;
17228     int i;
17229{
17230  return p[i];
17231}
17232static char *f (char * (*g) (char **, int), char **p, ...)
17233{
17234  char *s;
17235  va_list v;
17236  va_start (v,p);
17237  s = g (p, va_arg (v,int));
17238  va_end (v);
17239  return s;
17240}
17241
17242/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
17243   function prototypes and stuff, but not '\xHH' hex character constants.
17244   These don't provoke an error unfortunately, instead are silently treated
17245   as 'x'.  The following induces an error, until -std is added to get
17246   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
17247   array size at least.  It's necessary to write '\x00'==0 to get something
17248   that's true only with -std.  */
17249int osf4_cc_array ['\x00' == 0 ? 1 : -1];
17250
17251/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
17252   inside strings and character constants.  */
17253#define FOO(x) 'x'
17254int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
17255
17256int test (int i, double x);
17257struct s1 {int (*f) (int a);};
17258struct s2 {int (*f) (double a);};
17259int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
17260int argc;
17261char **argv;
17262int
17263main ()
17264{
17265return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
17266  ;
17267  return 0;
17268}
17269_ACEOF
17270for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
17271	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
17272do
17273  CC="$ac_save_CC $ac_arg"
17274  if ac_fn_c_try_compile "$LINENO"; then :
17275  ac_cv_prog_cc_c89=$ac_arg
17276fi
17277rm -f core conftest.err conftest.$ac_objext
17278  test "x$ac_cv_prog_cc_c89" != "xno" && break
17279done
17280rm -f conftest.$ac_ext
17281CC=$ac_save_CC
17282
17283fi
17284# AC_CACHE_VAL
17285case "x$ac_cv_prog_cc_c89" in
17286  x)
17287    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
17288$as_echo "none needed" >&6; } ;;
17289  xno)
17290    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
17291$as_echo "unsupported" >&6; } ;;
17292  *)
17293    CC="$CC $ac_cv_prog_cc_c89"
17294    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
17295$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
17296esac
17297if test "x$ac_cv_prog_cc_c89" != xno; then :
17298
17299fi
17300
17301ac_ext=c
17302ac_cpp='$CPP $CPPFLAGS'
17303ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17304ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17305ac_compiler_gnu=$ac_cv_c_compiler_gnu
17306
17307ac_ext=c
17308ac_cpp='$CPP $CPPFLAGS'
17309ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17310ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17311ac_compiler_gnu=$ac_cv_c_compiler_gnu
17312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
17313$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
17314if ${am_cv_prog_cc_c_o+:} false; then :
17315  $as_echo_n "(cached) " >&6
17316else
17317  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17318/* end confdefs.h.  */
17319
17320int
17321main ()
17322{
17323
17324  ;
17325  return 0;
17326}
17327_ACEOF
17328  # Make sure it works both with $CC and with simple cc.
17329  # Following AC_PROG_CC_C_O, we do the test twice because some
17330  # compilers refuse to overwrite an existing .o file with -o,
17331  # though they will create one.
17332  am_cv_prog_cc_c_o=yes
17333  for am_i in 1 2; do
17334    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
17335   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
17336   ac_status=$?
17337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17338   (exit $ac_status); } \
17339         && test -f conftest2.$ac_objext; then
17340      : OK
17341    else
17342      am_cv_prog_cc_c_o=no
17343      break
17344    fi
17345  done
17346  rm -f core conftest*
17347  unset am_i
17348fi
17349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
17350$as_echo "$am_cv_prog_cc_c_o" >&6; }
17351if test "$am_cv_prog_cc_c_o" != yes; then
17352   # Losing compiler, so override with the script.
17353   # FIXME: It is wrong to rewrite CC.
17354   # But if we don't then we get into trouble of one sort or another.
17355   # A longer-term fix would be to have automake use am__CC in this case,
17356   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
17357   CC="$am_aux_dir/compile $CC"
17358fi
17359ac_ext=c
17360ac_cpp='$CPP $CPPFLAGS'
17361ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17362ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17363ac_compiler_gnu=$ac_cv_c_compiler_gnu
17364
17365
17366depcc="$CC"   am_compiler_list=
17367
17368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
17369$as_echo_n "checking dependency style of $depcc... " >&6; }
17370if ${am_cv_CC_dependencies_compiler_type+:} false; then :
17371  $as_echo_n "(cached) " >&6
17372else
17373  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
17374  # We make a subdir and do the tests there.  Otherwise we can end up
17375  # making bogus files that we don't know about and never remove.  For
17376  # instance it was reported that on HP-UX the gcc test will end up
17377  # making a dummy file named 'D' -- because '-MD' means "put the output
17378  # in D".
17379  rm -rf conftest.dir
17380  mkdir conftest.dir
17381  # Copy depcomp to subdir because otherwise we won't find it if we're
17382  # using a relative directory.
17383  cp "$am_depcomp" conftest.dir
17384  cd conftest.dir
17385  # We will build objects and dependencies in a subdirectory because
17386  # it helps to detect inapplicable dependency modes.  For instance
17387  # both Tru64's cc and ICC support -MD to output dependencies as a
17388  # side effect of compilation, but ICC will put the dependencies in
17389  # the current directory while Tru64 will put them in the object
17390  # directory.
17391  mkdir sub
17392
17393  am_cv_CC_dependencies_compiler_type=none
17394  if test "$am_compiler_list" = ""; then
17395     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
17396  fi
17397  am__universal=false
17398  case " $depcc " in #(
17399     *\ -arch\ *\ -arch\ *) am__universal=true ;;
17400     esac
17401
17402  for depmode in $am_compiler_list; do
17403    # Setup a source with many dependencies, because some compilers
17404    # like to wrap large dependency lists on column 80 (with \), and
17405    # we should not choose a depcomp mode which is confused by this.
17406    #
17407    # We need to recreate these files for each test, as the compiler may
17408    # overwrite some of them when testing with obscure command lines.
17409    # This happens at least with the AIX C compiler.
17410    : > sub/conftest.c
17411    for i in 1 2 3 4 5 6; do
17412      echo '#include "conftst'$i'.h"' >> sub/conftest.c
17413      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
17414      # Solaris 10 /bin/sh.
17415      echo '/* dummy */' > sub/conftst$i.h
17416    done
17417    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
17418
17419    # We check with '-c' and '-o' for the sake of the "dashmstdout"
17420    # mode.  It turns out that the SunPro C++ compiler does not properly
17421    # handle '-M -o', and we need to detect this.  Also, some Intel
17422    # versions had trouble with output in subdirs.
17423    am__obj=sub/conftest.${OBJEXT-o}
17424    am__minus_obj="-o $am__obj"
17425    case $depmode in
17426    gcc)
17427      # This depmode causes a compiler race in universal mode.
17428      test "$am__universal" = false || continue
17429      ;;
17430    nosideeffect)
17431      # After this tag, mechanisms are not by side-effect, so they'll
17432      # only be used when explicitly requested.
17433      if test "x$enable_dependency_tracking" = xyes; then
17434	continue
17435      else
17436	break
17437      fi
17438      ;;
17439    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
17440      # This compiler won't grok '-c -o', but also, the minuso test has
17441      # not run yet.  These depmodes are late enough in the game, and
17442      # so weak that their functioning should not be impacted.
17443      am__obj=conftest.${OBJEXT-o}
17444      am__minus_obj=
17445      ;;
17446    none) break ;;
17447    esac
17448    if depmode=$depmode \
17449       source=sub/conftest.c object=$am__obj \
17450       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
17451       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
17452         >/dev/null 2>conftest.err &&
17453       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
17454       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
17455       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
17456       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
17457      # icc doesn't choke on unknown options, it will just issue warnings
17458      # or remarks (even with -Werror).  So we grep stderr for any message
17459      # that says an option was ignored or not supported.
17460      # When given -MP, icc 7.0 and 7.1 complain thusly:
17461      #   icc: Command line warning: ignoring option '-M'; no argument required
17462      # The diagnosis changed in icc 8.0:
17463      #   icc: Command line remark: option '-MP' not supported
17464      if (grep 'ignoring option' conftest.err ||
17465          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
17466        am_cv_CC_dependencies_compiler_type=$depmode
17467        break
17468      fi
17469    fi
17470  done
17471
17472  cd ..
17473  rm -rf conftest.dir
17474else
17475  am_cv_CC_dependencies_compiler_type=none
17476fi
17477
17478fi
17479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
17480$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
17481CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
17482
17483 if
17484  test "x$enable_dependency_tracking" != xno \
17485  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
17486  am__fastdepCC_TRUE=
17487  am__fastdepCC_FALSE='#'
17488else
17489  am__fastdepCC_TRUE='#'
17490  am__fastdepCC_FALSE=
17491fi
17492
17493
17494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
17495$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
17496set x ${MAKE-make}
17497ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
17498if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
17499  $as_echo_n "(cached) " >&6
17500else
17501  cat >conftest.make <<\_ACEOF
17502SHELL = /bin/sh
17503all:
17504	@echo '@@@%%%=$(MAKE)=@@@%%%'
17505_ACEOF
17506# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
17507case `${MAKE-make} -f conftest.make 2>/dev/null` in
17508  *@@@%%%=?*=@@@%%%*)
17509    eval ac_cv_prog_make_${ac_make}_set=yes;;
17510  *)
17511    eval ac_cv_prog_make_${ac_make}_set=no;;
17512esac
17513rm -f conftest.make
17514fi
17515if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
17516  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17517$as_echo "yes" >&6; }
17518  SET_MAKE=
17519else
17520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17521$as_echo "no" >&6; }
17522  SET_MAKE="MAKE=${MAKE-make}"
17523fi
17524
17525ac_ext=c
17526ac_cpp='$CPP $CPPFLAGS'
17527ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17528ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17529ac_compiler_gnu=$ac_cv_c_compiler_gnu
17530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
17531$as_echo_n "checking how to run the C preprocessor... " >&6; }
17532# On Suns, sometimes $CPP names a directory.
17533if test -n "$CPP" && test -d "$CPP"; then
17534  CPP=
17535fi
17536if test -z "$CPP"; then
17537  if ${ac_cv_prog_CPP+:} false; then :
17538  $as_echo_n "(cached) " >&6
17539else
17540      # Double quotes because CPP needs to be expanded
17541    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
17542    do
17543      ac_preproc_ok=false
17544for ac_c_preproc_warn_flag in '' yes
17545do
17546  # Use a header file that comes with gcc, so configuring glibc
17547  # with a fresh cross-compiler works.
17548  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17549  # <limits.h> exists even on freestanding compilers.
17550  # On the NeXT, cc -E runs the code through the compiler's parser,
17551  # not just through cpp. "Syntax error" is here to catch this case.
17552  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17553/* end confdefs.h.  */
17554#ifdef __STDC__
17555# include <limits.h>
17556#else
17557# include <assert.h>
17558#endif
17559		     Syntax error
17560_ACEOF
17561if ac_fn_c_try_cpp "$LINENO"; then :
17562
17563else
17564  # Broken: fails on valid input.
17565continue
17566fi
17567rm -f conftest.err conftest.i conftest.$ac_ext
17568
17569  # OK, works on sane cases.  Now check whether nonexistent headers
17570  # can be detected and how.
17571  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17572/* end confdefs.h.  */
17573#include <ac_nonexistent.h>
17574_ACEOF
17575if ac_fn_c_try_cpp "$LINENO"; then :
17576  # Broken: success on invalid input.
17577continue
17578else
17579  # Passes both tests.
17580ac_preproc_ok=:
17581break
17582fi
17583rm -f conftest.err conftest.i conftest.$ac_ext
17584
17585done
17586# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17587rm -f conftest.i conftest.err conftest.$ac_ext
17588if $ac_preproc_ok; then :
17589  break
17590fi
17591
17592    done
17593    ac_cv_prog_CPP=$CPP
17594
17595fi
17596  CPP=$ac_cv_prog_CPP
17597else
17598  ac_cv_prog_CPP=$CPP
17599fi
17600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
17601$as_echo "$CPP" >&6; }
17602ac_preproc_ok=false
17603for ac_c_preproc_warn_flag in '' yes
17604do
17605  # Use a header file that comes with gcc, so configuring glibc
17606  # with a fresh cross-compiler works.
17607  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17608  # <limits.h> exists even on freestanding compilers.
17609  # On the NeXT, cc -E runs the code through the compiler's parser,
17610  # not just through cpp. "Syntax error" is here to catch this case.
17611  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17612/* end confdefs.h.  */
17613#ifdef __STDC__
17614# include <limits.h>
17615#else
17616# include <assert.h>
17617#endif
17618		     Syntax error
17619_ACEOF
17620if ac_fn_c_try_cpp "$LINENO"; then :
17621
17622else
17623  # Broken: fails on valid input.
17624continue
17625fi
17626rm -f conftest.err conftest.i conftest.$ac_ext
17627
17628  # OK, works on sane cases.  Now check whether nonexistent headers
17629  # can be detected and how.
17630  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17631/* end confdefs.h.  */
17632#include <ac_nonexistent.h>
17633_ACEOF
17634if ac_fn_c_try_cpp "$LINENO"; then :
17635  # Broken: success on invalid input.
17636continue
17637else
17638  # Passes both tests.
17639ac_preproc_ok=:
17640break
17641fi
17642rm -f conftest.err conftest.i conftest.$ac_ext
17643
17644done
17645# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17646rm -f conftest.i conftest.err conftest.$ac_ext
17647if $ac_preproc_ok; then :
17648
17649else
17650  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17651$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17652as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
17653See \`config.log' for more details" "$LINENO" 5; }
17654fi
17655
17656ac_ext=c
17657ac_cpp='$CPP $CPPFLAGS'
17658ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17659ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17660ac_compiler_gnu=$ac_cv_c_compiler_gnu
17661
17662
17663# By default we simply use the C compiler to build assembly code.
17664
17665test "${CCAS+set}" = set || CCAS=$CC
17666test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
17667
17668
17669
17670depcc="$CCAS"   am_compiler_list=
17671
17672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
17673$as_echo_n "checking dependency style of $depcc... " >&6; }
17674if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
17675  $as_echo_n "(cached) " >&6
17676else
17677  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
17678  # We make a subdir and do the tests there.  Otherwise we can end up
17679  # making bogus files that we don't know about and never remove.  For
17680  # instance it was reported that on HP-UX the gcc test will end up
17681  # making a dummy file named 'D' -- because '-MD' means "put the output
17682  # in D".
17683  rm -rf conftest.dir
17684  mkdir conftest.dir
17685  # Copy depcomp to subdir because otherwise we won't find it if we're
17686  # using a relative directory.
17687  cp "$am_depcomp" conftest.dir
17688  cd conftest.dir
17689  # We will build objects and dependencies in a subdirectory because
17690  # it helps to detect inapplicable dependency modes.  For instance
17691  # both Tru64's cc and ICC support -MD to output dependencies as a
17692  # side effect of compilation, but ICC will put the dependencies in
17693  # the current directory while Tru64 will put them in the object
17694  # directory.
17695  mkdir sub
17696
17697  am_cv_CCAS_dependencies_compiler_type=none
17698  if test "$am_compiler_list" = ""; then
17699     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
17700  fi
17701  am__universal=false
17702
17703
17704  for depmode in $am_compiler_list; do
17705    # Setup a source with many dependencies, because some compilers
17706    # like to wrap large dependency lists on column 80 (with \), and
17707    # we should not choose a depcomp mode which is confused by this.
17708    #
17709    # We need to recreate these files for each test, as the compiler may
17710    # overwrite some of them when testing with obscure command lines.
17711    # This happens at least with the AIX C compiler.
17712    : > sub/conftest.c
17713    for i in 1 2 3 4 5 6; do
17714      echo '#include "conftst'$i'.h"' >> sub/conftest.c
17715      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
17716      # Solaris 10 /bin/sh.
17717      echo '/* dummy */' > sub/conftst$i.h
17718    done
17719    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
17720
17721    # We check with '-c' and '-o' for the sake of the "dashmstdout"
17722    # mode.  It turns out that the SunPro C++ compiler does not properly
17723    # handle '-M -o', and we need to detect this.  Also, some Intel
17724    # versions had trouble with output in subdirs.
17725    am__obj=sub/conftest.${OBJEXT-o}
17726    am__minus_obj="-o $am__obj"
17727    case $depmode in
17728    gcc)
17729      # This depmode causes a compiler race in universal mode.
17730      test "$am__universal" = false || continue
17731      ;;
17732    nosideeffect)
17733      # After this tag, mechanisms are not by side-effect, so they'll
17734      # only be used when explicitly requested.
17735      if test "x$enable_dependency_tracking" = xyes; then
17736	continue
17737      else
17738	break
17739      fi
17740      ;;
17741    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
17742      # This compiler won't grok '-c -o', but also, the minuso test has
17743      # not run yet.  These depmodes are late enough in the game, and
17744      # so weak that their functioning should not be impacted.
17745      am__obj=conftest.${OBJEXT-o}
17746      am__minus_obj=
17747      ;;
17748    none) break ;;
17749    esac
17750    if depmode=$depmode \
17751       source=sub/conftest.c object=$am__obj \
17752       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
17753       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
17754         >/dev/null 2>conftest.err &&
17755       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
17756       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
17757       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
17758       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
17759      # icc doesn't choke on unknown options, it will just issue warnings
17760      # or remarks (even with -Werror).  So we grep stderr for any message
17761      # that says an option was ignored or not supported.
17762      # When given -MP, icc 7.0 and 7.1 complain thusly:
17763      #   icc: Command line warning: ignoring option '-M'; no argument required
17764      # The diagnosis changed in icc 8.0:
17765      #   icc: Command line remark: option '-MP' not supported
17766      if (grep 'ignoring option' conftest.err ||
17767          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
17768        am_cv_CCAS_dependencies_compiler_type=$depmode
17769        break
17770      fi
17771    fi
17772  done
17773
17774  cd ..
17775  rm -rf conftest.dir
17776else
17777  am_cv_CCAS_dependencies_compiler_type=none
17778fi
17779
17780fi
17781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
17782$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
17783CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
17784
17785 if
17786  test "x$enable_dependency_tracking" != xno \
17787  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
17788  am__fastdepCCAS_TRUE=
17789  am__fastdepCCAS_FALSE='#'
17790else
17791  am__fastdepCCAS_TRUE='#'
17792  am__fastdepCCAS_FALSE=
17793fi
17794
17795
17796
17797# Activate large file mode if needed
17798# Check whether --enable-largefile was given.
17799if test "${enable_largefile+set}" = set; then :
17800  enableval=$enable_largefile;
17801fi
17802
17803if test "$enable_largefile" != no; then
17804
17805  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
17806$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
17807if ${ac_cv_sys_largefile_CC+:} false; then :
17808  $as_echo_n "(cached) " >&6
17809else
17810  ac_cv_sys_largefile_CC=no
17811     if test "$GCC" != yes; then
17812       ac_save_CC=$CC
17813       while :; do
17814	 # IRIX 6.2 and later do not support large files by default,
17815	 # so use the C compiler's -n32 option if that helps.
17816	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17817/* end confdefs.h.  */
17818#include <sys/types.h>
17819 /* Check that off_t can represent 2**63 - 1 correctly.
17820    We can't simply define LARGE_OFF_T to be 9223372036854775807,
17821    since some C++ compilers masquerading as C compilers
17822    incorrectly reject 9223372036854775807.  */
17823#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
17824  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17825		       && LARGE_OFF_T % 2147483647 == 1)
17826		      ? 1 : -1];
17827int
17828main ()
17829{
17830
17831  ;
17832  return 0;
17833}
17834_ACEOF
17835	 if ac_fn_c_try_compile "$LINENO"; then :
17836  break
17837fi
17838rm -f core conftest.err conftest.$ac_objext
17839	 CC="$CC -n32"
17840	 if ac_fn_c_try_compile "$LINENO"; then :
17841  ac_cv_sys_largefile_CC=' -n32'; break
17842fi
17843rm -f core conftest.err conftest.$ac_objext
17844	 break
17845       done
17846       CC=$ac_save_CC
17847       rm -f conftest.$ac_ext
17848    fi
17849fi
17850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
17851$as_echo "$ac_cv_sys_largefile_CC" >&6; }
17852  if test "$ac_cv_sys_largefile_CC" != no; then
17853    CC=$CC$ac_cv_sys_largefile_CC
17854  fi
17855
17856  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17857$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
17858if ${ac_cv_sys_file_offset_bits+:} false; then :
17859  $as_echo_n "(cached) " >&6
17860else
17861  while :; do
17862  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17863/* end confdefs.h.  */
17864#include <sys/types.h>
17865 /* Check that off_t can represent 2**63 - 1 correctly.
17866    We can't simply define LARGE_OFF_T to be 9223372036854775807,
17867    since some C++ compilers masquerading as C compilers
17868    incorrectly reject 9223372036854775807.  */
17869#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
17870  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17871		       && LARGE_OFF_T % 2147483647 == 1)
17872		      ? 1 : -1];
17873int
17874main ()
17875{
17876
17877  ;
17878  return 0;
17879}
17880_ACEOF
17881if ac_fn_c_try_compile "$LINENO"; then :
17882  ac_cv_sys_file_offset_bits=no; break
17883fi
17884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17885  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17886/* end confdefs.h.  */
17887#define _FILE_OFFSET_BITS 64
17888#include <sys/types.h>
17889 /* Check that off_t can represent 2**63 - 1 correctly.
17890    We can't simply define LARGE_OFF_T to be 9223372036854775807,
17891    since some C++ compilers masquerading as C compilers
17892    incorrectly reject 9223372036854775807.  */
17893#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
17894  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17895		       && LARGE_OFF_T % 2147483647 == 1)
17896		      ? 1 : -1];
17897int
17898main ()
17899{
17900
17901  ;
17902  return 0;
17903}
17904_ACEOF
17905if ac_fn_c_try_compile "$LINENO"; then :
17906  ac_cv_sys_file_offset_bits=64; break
17907fi
17908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17909  ac_cv_sys_file_offset_bits=unknown
17910  break
17911done
17912fi
17913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
17914$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
17915case $ac_cv_sys_file_offset_bits in #(
17916  no | unknown) ;;
17917  *)
17918cat >>confdefs.h <<_ACEOF
17919#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17920_ACEOF
17921;;
17922esac
17923rm -rf conftest*
17924  if test $ac_cv_sys_file_offset_bits = unknown; then
17925    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
17926$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
17927if ${ac_cv_sys_large_files+:} false; then :
17928  $as_echo_n "(cached) " >&6
17929else
17930  while :; do
17931  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17932/* end confdefs.h.  */
17933#include <sys/types.h>
17934 /* Check that off_t can represent 2**63 - 1 correctly.
17935    We can't simply define LARGE_OFF_T to be 9223372036854775807,
17936    since some C++ compilers masquerading as C compilers
17937    incorrectly reject 9223372036854775807.  */
17938#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
17939  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17940		       && LARGE_OFF_T % 2147483647 == 1)
17941		      ? 1 : -1];
17942int
17943main ()
17944{
17945
17946  ;
17947  return 0;
17948}
17949_ACEOF
17950if ac_fn_c_try_compile "$LINENO"; then :
17951  ac_cv_sys_large_files=no; break
17952fi
17953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17954  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17955/* end confdefs.h.  */
17956#define _LARGE_FILES 1
17957#include <sys/types.h>
17958 /* Check that off_t can represent 2**63 - 1 correctly.
17959    We can't simply define LARGE_OFF_T to be 9223372036854775807,
17960    since some C++ compilers masquerading as C compilers
17961    incorrectly reject 9223372036854775807.  */
17962#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
17963  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17964		       && LARGE_OFF_T % 2147483647 == 1)
17965		      ? 1 : -1];
17966int
17967main ()
17968{
17969
17970  ;
17971  return 0;
17972}
17973_ACEOF
17974if ac_fn_c_try_compile "$LINENO"; then :
17975  ac_cv_sys_large_files=1; break
17976fi
17977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17978  ac_cv_sys_large_files=unknown
17979  break
17980done
17981fi
17982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
17983$as_echo "$ac_cv_sys_large_files" >&6; }
17984case $ac_cv_sys_large_files in #(
17985  no | unknown) ;;
17986  *)
17987cat >>confdefs.h <<_ACEOF
17988#define _LARGE_FILES $ac_cv_sys_large_files
17989_ACEOF
17990;;
17991esac
17992rm -rf conftest*
17993  fi
17994
17995
17996fi
17997
17998
17999# Checks for libraries.
18000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgcc" >&5
18001$as_echo_n "checking for main in -lgcc... " >&6; }
18002if ${ac_cv_lib_gcc_main+:} false; then :
18003  $as_echo_n "(cached) " >&6
18004else
18005  ac_check_lib_save_LIBS=$LIBS
18006LIBS="-lgcc  $LIBS"
18007cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18008/* end confdefs.h.  */
18009
18010
18011int
18012main ()
18013{
18014return main ();
18015  ;
18016  return 0;
18017}
18018_ACEOF
18019if ac_fn_c_try_link "$LINENO"; then :
18020  ac_cv_lib_gcc_main=yes
18021else
18022  ac_cv_lib_gcc_main=no
18023fi
18024rm -f core conftest.err conftest.$ac_objext \
18025    conftest$ac_exeext conftest.$ac_ext
18026LIBS=$ac_check_lib_save_LIBS
18027fi
18028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc_main" >&5
18029$as_echo "$ac_cv_lib_gcc_main" >&6; }
18030if test "x$ac_cv_lib_gcc_main" = xyes; then :
18031  cat >>confdefs.h <<_ACEOF
18032#define HAVE_LIBGCC 1
18033_ACEOF
18034
18035  LIBS="-lgcc $LIBS"
18036
18037fi
18038
18039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgcc_s" >&5
18040$as_echo_n "checking for main in -lgcc_s... " >&6; }
18041if ${ac_cv_lib_gcc_s_main+:} false; then :
18042  $as_echo_n "(cached) " >&6
18043else
18044  ac_check_lib_save_LIBS=$LIBS
18045LIBS="-lgcc_s  $LIBS"
18046cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18047/* end confdefs.h.  */
18048
18049
18050int
18051main ()
18052{
18053return main ();
18054  ;
18055  return 0;
18056}
18057_ACEOF
18058if ac_fn_c_try_link "$LINENO"; then :
18059  ac_cv_lib_gcc_s_main=yes
18060else
18061  ac_cv_lib_gcc_s_main=no
18062fi
18063rm -f core conftest.err conftest.$ac_objext \
18064    conftest$ac_exeext conftest.$ac_ext
18065LIBS=$ac_check_lib_save_LIBS
18066fi
18067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc_s_main" >&5
18068$as_echo "$ac_cv_lib_gcc_s_main" >&6; }
18069if test "x$ac_cv_lib_gcc_s_main" = xyes; then :
18070  cat >>confdefs.h <<_ACEOF
18071#define HAVE_LIBGCC_S 1
18072_ACEOF
18073
18074  LIBS="-lgcc_s $LIBS"
18075
18076fi
18077
18078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lstdc++" >&5
18079$as_echo_n "checking for main in -lstdc++... " >&6; }
18080if ${ac_cv_lib_stdcpp_main+:} false; then :
18081  $as_echo_n "(cached) " >&6
18082else
18083  ac_check_lib_save_LIBS=$LIBS
18084LIBS="-lstdc++  $LIBS"
18085cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18086/* end confdefs.h.  */
18087
18088
18089int
18090main ()
18091{
18092return main ();
18093  ;
18094  return 0;
18095}
18096_ACEOF
18097if ac_fn_c_try_link "$LINENO"; then :
18098  ac_cv_lib_stdcpp_main=yes
18099else
18100  ac_cv_lib_stdcpp_main=no
18101fi
18102rm -f core conftest.err conftest.$ac_objext \
18103    conftest$ac_exeext conftest.$ac_ext
18104LIBS=$ac_check_lib_save_LIBS
18105fi
18106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_stdcpp_main" >&5
18107$as_echo "$ac_cv_lib_stdcpp_main" >&6; }
18108if test "x$ac_cv_lib_stdcpp_main" = xyes; then :
18109  cat >>confdefs.h <<_ACEOF
18110#define HAVE_LIBSTDC__ 1
18111_ACEOF
18112
18113  LIBS="-lstdc++ $LIBS"
18114
18115fi
18116
18117
18118# These can sometimes be in the standard libraries
18119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
18120$as_echo_n "checking for library containing dlopen... " >&6; }
18121if ${ac_cv_search_dlopen+:} false; then :
18122  $as_echo_n "(cached) " >&6
18123else
18124  ac_func_search_save_LIBS=$LIBS
18125cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18126/* end confdefs.h.  */
18127
18128/* Override any GCC internal prototype to avoid an error.
18129   Use char because int might match the return type of a GCC
18130   builtin and then its argument prototype would still apply.  */
18131#ifdef __cplusplus
18132extern "C"
18133#endif
18134char dlopen ();
18135int
18136main ()
18137{
18138return dlopen ();
18139  ;
18140  return 0;
18141}
18142_ACEOF
18143for ac_lib in '' dl dld; do
18144  if test -z "$ac_lib"; then
18145    ac_res="none required"
18146  else
18147    ac_res=-l$ac_lib
18148    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18149  fi
18150  if ac_fn_c_try_link "$LINENO"; then :
18151  ac_cv_search_dlopen=$ac_res
18152fi
18153rm -f core conftest.err conftest.$ac_objext \
18154    conftest$ac_exeext
18155  if ${ac_cv_search_dlopen+:} false; then :
18156  break
18157fi
18158done
18159if ${ac_cv_search_dlopen+:} false; then :
18160
18161else
18162  ac_cv_search_dlopen=no
18163fi
18164rm conftest.$ac_ext
18165LIBS=$ac_func_search_save_LIBS
18166fi
18167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
18168$as_echo "$ac_cv_search_dlopen" >&6; }
18169ac_res=$ac_cv_search_dlopen
18170if test "$ac_res" != no; then :
18171  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18172
18173fi
18174
18175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5
18176$as_echo_n "checking for library containing floor... " >&6; }
18177if ${ac_cv_search_floor+:} false; then :
18178  $as_echo_n "(cached) " >&6
18179else
18180  ac_func_search_save_LIBS=$LIBS
18181cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18182/* end confdefs.h.  */
18183
18184/* Override any GCC internal prototype to avoid an error.
18185   Use char because int might match the return type of a GCC
18186   builtin and then its argument prototype would still apply.  */
18187#ifdef __cplusplus
18188extern "C"
18189#endif
18190char floor ();
18191int
18192main ()
18193{
18194return floor ();
18195  ;
18196  return 0;
18197}
18198_ACEOF
18199for ac_lib in '' m; do
18200  if test -z "$ac_lib"; then
18201    ac_res="none required"
18202  else
18203    ac_res=-l$ac_lib
18204    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18205  fi
18206  if ac_fn_c_try_link "$LINENO"; then :
18207  ac_cv_search_floor=$ac_res
18208fi
18209rm -f core conftest.err conftest.$ac_objext \
18210    conftest$ac_exeext
18211  if ${ac_cv_search_floor+:} false; then :
18212  break
18213fi
18214done
18215if ${ac_cv_search_floor+:} false; then :
18216
18217else
18218  ac_cv_search_floor=no
18219fi
18220rm conftest.$ac_ext
18221LIBS=$ac_func_search_save_LIBS
18222fi
18223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_floor" >&5
18224$as_echo "$ac_cv_search_floor" >&6; }
18225ac_res=$ac_cv_search_floor
18226if test "$ac_res" != no; then :
18227  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18228
18229fi
18230
18231
18232## External names on Win64.  They have no leading underscores as per
18233## the X64 ABI published by MS.  Earlier versions of GCC (anything
18234## prior to 4.5.0) were faulty.
18235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
18236$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
18237if ${lt_cv_sys_symbol_underscore+:} false; then :
18238  $as_echo_n "(cached) " >&6
18239else
18240  lt_cv_sys_symbol_underscore=no
18241  cat > conftest.$ac_ext <<_LT_EOF
18242void nm_test_func(){}
18243int main(){nm_test_func;return 0;}
18244_LT_EOF
18245  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18246  (eval $ac_compile) 2>&5
18247  ac_status=$?
18248  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18249  test $ac_status = 0; }; then
18250    # Now try to grab the symbols.
18251    ac_nlist=conftest.nm
18252    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
18253  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
18254  ac_status=$?
18255  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18256  test $ac_status = 0; } && test -s "$ac_nlist"; then
18257      # See whether the symbols have a leading underscore.
18258      if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
18259        lt_cv_sys_symbol_underscore=yes
18260      else
18261        if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
18262	  :
18263        else
18264	  echo "configure: cannot find nm_test_func in $ac_nlist" >&5
18265        fi
18266      fi
18267    else
18268      echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
18269    fi
18270  else
18271    echo "configure: failed program was:" >&5
18272    cat conftest.c >&5
18273  fi
18274  rm -rf conftest*
18275
18276fi
18277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
18278$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
18279  sys_symbol_underscore=$lt_cv_sys_symbol_underscore
18280
18281
18282if test x$sys_symbol_underscore = xyes; then
18283
18284$as_echo "#define SYMBOLS_REQUIRE_UNDERSCORE 1" >>confdefs.h
18285
18286fi
18287
18288# Check for headers
18289
18290ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18291if test "x$ac_cv_type_size_t" = xyes; then :
18292
18293else
18294
18295cat >>confdefs.h <<_ACEOF
18296#define size_t unsigned int
18297_ACEOF
18298
18299fi
18300
18301# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
18302# for constant arguments.  Useless!
18303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
18304$as_echo_n "checking for working alloca.h... " >&6; }
18305if ${ac_cv_working_alloca_h+:} false; then :
18306  $as_echo_n "(cached) " >&6
18307else
18308  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18309/* end confdefs.h.  */
18310#include <alloca.h>
18311int
18312main ()
18313{
18314char *p = (char *) alloca (2 * sizeof (int));
18315			  if (p) return 0;
18316  ;
18317  return 0;
18318}
18319_ACEOF
18320if ac_fn_c_try_link "$LINENO"; then :
18321  ac_cv_working_alloca_h=yes
18322else
18323  ac_cv_working_alloca_h=no
18324fi
18325rm -f core conftest.err conftest.$ac_objext \
18326    conftest$ac_exeext conftest.$ac_ext
18327fi
18328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
18329$as_echo "$ac_cv_working_alloca_h" >&6; }
18330if test $ac_cv_working_alloca_h = yes; then
18331
18332$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
18333
18334fi
18335
18336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
18337$as_echo_n "checking for alloca... " >&6; }
18338if ${ac_cv_func_alloca_works+:} false; then :
18339  $as_echo_n "(cached) " >&6
18340else
18341  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18342/* end confdefs.h.  */
18343#ifdef __GNUC__
18344# define alloca __builtin_alloca
18345#else
18346# ifdef _MSC_VER
18347#  include <malloc.h>
18348#  define alloca _alloca
18349# else
18350#  ifdef HAVE_ALLOCA_H
18351#   include <alloca.h>
18352#  else
18353#   ifdef _AIX
18354 #pragma alloca
18355#   else
18356#    ifndef alloca /* predefined by HP cc +Olibcalls */
18357void *alloca (size_t);
18358#    endif
18359#   endif
18360#  endif
18361# endif
18362#endif
18363
18364int
18365main ()
18366{
18367char *p = (char *) alloca (1);
18368				    if (p) return 0;
18369  ;
18370  return 0;
18371}
18372_ACEOF
18373if ac_fn_c_try_link "$LINENO"; then :
18374  ac_cv_func_alloca_works=yes
18375else
18376  ac_cv_func_alloca_works=no
18377fi
18378rm -f core conftest.err conftest.$ac_objext \
18379    conftest$ac_exeext conftest.$ac_ext
18380fi
18381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
18382$as_echo "$ac_cv_func_alloca_works" >&6; }
18383
18384if test $ac_cv_func_alloca_works = yes; then
18385
18386$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
18387
18388else
18389  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
18390# that cause trouble.  Some versions do not even contain alloca or
18391# contain a buggy version.  If you still want to use their alloca,
18392# use ar to extract alloca.o from them instead of compiling alloca.c.
18393
18394ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
18395
18396$as_echo "#define C_ALLOCA 1" >>confdefs.h
18397
18398
18399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
18400$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
18401if ${ac_cv_os_cray+:} false; then :
18402  $as_echo_n "(cached) " >&6
18403else
18404  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18405/* end confdefs.h.  */
18406#if defined CRAY && ! defined CRAY2
18407webecray
18408#else
18409wenotbecray
18410#endif
18411
18412_ACEOF
18413if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18414  $EGREP "webecray" >/dev/null 2>&1; then :
18415  ac_cv_os_cray=yes
18416else
18417  ac_cv_os_cray=no
18418fi
18419rm -f conftest*
18420
18421fi
18422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
18423$as_echo "$ac_cv_os_cray" >&6; }
18424if test $ac_cv_os_cray = yes; then
18425  for ac_func in _getb67 GETB67 getb67; do
18426    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18427ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18428if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18429
18430cat >>confdefs.h <<_ACEOF
18431#define CRAY_STACKSEG_END $ac_func
18432_ACEOF
18433
18434    break
18435fi
18436
18437  done
18438fi
18439
18440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
18441$as_echo_n "checking stack direction for C alloca... " >&6; }
18442if ${ac_cv_c_stack_direction+:} false; then :
18443  $as_echo_n "(cached) " >&6
18444else
18445  if test "$cross_compiling" = yes; then :
18446  ac_cv_c_stack_direction=0
18447else
18448  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18449/* end confdefs.h.  */
18450$ac_includes_default
18451int
18452find_stack_direction (int *addr, int depth)
18453{
18454  int dir, dummy = 0;
18455  if (! addr)
18456    addr = &dummy;
18457  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
18458  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
18459  return dir + dummy;
18460}
18461
18462int
18463main (int argc, char **argv)
18464{
18465  return find_stack_direction (0, argc + !argv + 20) < 0;
18466}
18467_ACEOF
18468if ac_fn_c_try_run "$LINENO"; then :
18469  ac_cv_c_stack_direction=1
18470else
18471  ac_cv_c_stack_direction=-1
18472fi
18473rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18474  conftest.$ac_objext conftest.beam conftest.$ac_ext
18475fi
18476
18477fi
18478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
18479$as_echo "$ac_cv_c_stack_direction" >&6; }
18480cat >>confdefs.h <<_ACEOF
18481#define STACK_DIRECTION $ac_cv_c_stack_direction
18482_ACEOF
18483
18484
18485fi
18486
18487ac_header_dirent=no
18488for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
18489  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
18490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
18491$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
18492if eval \${$as_ac_Header+:} false; then :
18493  $as_echo_n "(cached) " >&6
18494else
18495  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18496/* end confdefs.h.  */
18497#include <sys/types.h>
18498#include <$ac_hdr>
18499
18500int
18501main ()
18502{
18503if ((DIR *) 0)
18504return 0;
18505  ;
18506  return 0;
18507}
18508_ACEOF
18509if ac_fn_c_try_compile "$LINENO"; then :
18510  eval "$as_ac_Header=yes"
18511else
18512  eval "$as_ac_Header=no"
18513fi
18514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18515fi
18516eval ac_res=\$$as_ac_Header
18517	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18518$as_echo "$ac_res" >&6; }
18519if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18520  cat >>confdefs.h <<_ACEOF
18521#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
18522_ACEOF
18523
18524ac_header_dirent=$ac_hdr; break
18525fi
18526
18527done
18528# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
18529if test $ac_header_dirent = dirent.h; then
18530  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
18531$as_echo_n "checking for library containing opendir... " >&6; }
18532if ${ac_cv_search_opendir+:} false; then :
18533  $as_echo_n "(cached) " >&6
18534else
18535  ac_func_search_save_LIBS=$LIBS
18536cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18537/* end confdefs.h.  */
18538
18539/* Override any GCC internal prototype to avoid an error.
18540   Use char because int might match the return type of a GCC
18541   builtin and then its argument prototype would still apply.  */
18542#ifdef __cplusplus
18543extern "C"
18544#endif
18545char opendir ();
18546int
18547main ()
18548{
18549return opendir ();
18550  ;
18551  return 0;
18552}
18553_ACEOF
18554for ac_lib in '' dir; do
18555  if test -z "$ac_lib"; then
18556    ac_res="none required"
18557  else
18558    ac_res=-l$ac_lib
18559    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18560  fi
18561  if ac_fn_c_try_link "$LINENO"; then :
18562  ac_cv_search_opendir=$ac_res
18563fi
18564rm -f core conftest.err conftest.$ac_objext \
18565    conftest$ac_exeext
18566  if ${ac_cv_search_opendir+:} false; then :
18567  break
18568fi
18569done
18570if ${ac_cv_search_opendir+:} false; then :
18571
18572else
18573  ac_cv_search_opendir=no
18574fi
18575rm conftest.$ac_ext
18576LIBS=$ac_func_search_save_LIBS
18577fi
18578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
18579$as_echo "$ac_cv_search_opendir" >&6; }
18580ac_res=$ac_cv_search_opendir
18581if test "$ac_res" != no; then :
18582  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18583
18584fi
18585
18586else
18587  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
18588$as_echo_n "checking for library containing opendir... " >&6; }
18589if ${ac_cv_search_opendir+:} false; then :
18590  $as_echo_n "(cached) " >&6
18591else
18592  ac_func_search_save_LIBS=$LIBS
18593cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18594/* end confdefs.h.  */
18595
18596/* Override any GCC internal prototype to avoid an error.
18597   Use char because int might match the return type of a GCC
18598   builtin and then its argument prototype would still apply.  */
18599#ifdef __cplusplus
18600extern "C"
18601#endif
18602char opendir ();
18603int
18604main ()
18605{
18606return opendir ();
18607  ;
18608  return 0;
18609}
18610_ACEOF
18611for ac_lib in '' x; do
18612  if test -z "$ac_lib"; then
18613    ac_res="none required"
18614  else
18615    ac_res=-l$ac_lib
18616    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18617  fi
18618  if ac_fn_c_try_link "$LINENO"; then :
18619  ac_cv_search_opendir=$ac_res
18620fi
18621rm -f core conftest.err conftest.$ac_objext \
18622    conftest$ac_exeext
18623  if ${ac_cv_search_opendir+:} false; then :
18624  break
18625fi
18626done
18627if ${ac_cv_search_opendir+:} false; then :
18628
18629else
18630  ac_cv_search_opendir=no
18631fi
18632rm conftest.$ac_ext
18633LIBS=$ac_func_search_save_LIBS
18634fi
18635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
18636$as_echo "$ac_cv_search_opendir" >&6; }
18637ac_res=$ac_cv_search_opendir
18638if test "$ac_res" != no; then :
18639  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18640
18641fi
18642
18643fi
18644
18645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
18646$as_echo_n "checking for ANSI C header files... " >&6; }
18647if ${ac_cv_header_stdc+:} false; then :
18648  $as_echo_n "(cached) " >&6
18649else
18650  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18651/* end confdefs.h.  */
18652#include <stdlib.h>
18653#include <stdarg.h>
18654#include <string.h>
18655#include <float.h>
18656
18657int
18658main ()
18659{
18660
18661  ;
18662  return 0;
18663}
18664_ACEOF
18665if ac_fn_c_try_compile "$LINENO"; then :
18666  ac_cv_header_stdc=yes
18667else
18668  ac_cv_header_stdc=no
18669fi
18670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18671
18672if test $ac_cv_header_stdc = yes; then
18673  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18674  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18675/* end confdefs.h.  */
18676#include <string.h>
18677
18678_ACEOF
18679if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18680  $EGREP "memchr" >/dev/null 2>&1; then :
18681
18682else
18683  ac_cv_header_stdc=no
18684fi
18685rm -f conftest*
18686
18687fi
18688
18689if test $ac_cv_header_stdc = yes; then
18690  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18691  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18692/* end confdefs.h.  */
18693#include <stdlib.h>
18694
18695_ACEOF
18696if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18697  $EGREP "free" >/dev/null 2>&1; then :
18698
18699else
18700  ac_cv_header_stdc=no
18701fi
18702rm -f conftest*
18703
18704fi
18705
18706if test $ac_cv_header_stdc = yes; then
18707  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18708  if test "$cross_compiling" = yes; then :
18709  :
18710else
18711  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18712/* end confdefs.h.  */
18713#include <ctype.h>
18714#include <stdlib.h>
18715#if ((' ' & 0x0FF) == 0x020)
18716# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18717# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18718#else
18719# define ISLOWER(c) \
18720		   (('a' <= (c) && (c) <= 'i') \
18721		     || ('j' <= (c) && (c) <= 'r') \
18722		     || ('s' <= (c) && (c) <= 'z'))
18723# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18724#endif
18725
18726#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18727int
18728main ()
18729{
18730  int i;
18731  for (i = 0; i < 256; i++)
18732    if (XOR (islower (i), ISLOWER (i))
18733	|| toupper (i) != TOUPPER (i))
18734      return 2;
18735  return 0;
18736}
18737_ACEOF
18738if ac_fn_c_try_run "$LINENO"; then :
18739
18740else
18741  ac_cv_header_stdc=no
18742fi
18743rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18744  conftest.$ac_objext conftest.beam conftest.$ac_ext
18745fi
18746
18747fi
18748fi
18749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
18750$as_echo "$ac_cv_header_stdc" >&6; }
18751if test $ac_cv_header_stdc = yes; then
18752
18753$as_echo "#define STDC_HEADERS 1" >>confdefs.h
18754
18755fi
18756
18757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
18758$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
18759if ${ac_cv_header_sys_wait_h+:} false; then :
18760  $as_echo_n "(cached) " >&6
18761else
18762  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18763/* end confdefs.h.  */
18764#include <sys/types.h>
18765#include <sys/wait.h>
18766#ifndef WEXITSTATUS
18767# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
18768#endif
18769#ifndef WIFEXITED
18770# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
18771#endif
18772
18773int
18774main ()
18775{
18776  int s;
18777  wait (&s);
18778  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
18779  ;
18780  return 0;
18781}
18782_ACEOF
18783if ac_fn_c_try_compile "$LINENO"; then :
18784  ac_cv_header_sys_wait_h=yes
18785else
18786  ac_cv_header_sys_wait_h=no
18787fi
18788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18789fi
18790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
18791$as_echo "$ac_cv_header_sys_wait_h" >&6; }
18792if test $ac_cv_header_sys_wait_h = yes; then
18793
18794$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
18795
18796fi
18797
18798for ac_header in stdio.h time.h fcntl.h float.h limits.h locale.h malloc.h netdb.h netinet/in.h stddef.h
18799do :
18800  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18801ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18802if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18803  cat >>confdefs.h <<_ACEOF
18804#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18805_ACEOF
18806
18807fi
18808
18809done
18810
18811for ac_header in stdlib.h string.h sys/file.h sys/ioctl.h sys/param.h sys/socket.h sys/systeminfo.h
18812do :
18813  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18814ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18815if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18816  cat >>confdefs.h <<_ACEOF
18817#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18818_ACEOF
18819
18820fi
18821
18822done
18823
18824for ac_header in sys/time.h unistd.h values.h dlfcn.h signal.h ucontext.h
18825do :
18826  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18827ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18828if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18829  cat >>confdefs.h <<_ACEOF
18830#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18831_ACEOF
18832
18833fi
18834
18835done
18836
18837for ac_header in assert.h ctype.h direct.h errno.h excpt.h fenv.h fpu_control.h grp.h
18838do :
18839  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18840ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18841if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18842  cat >>confdefs.h <<_ACEOF
18843#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18844_ACEOF
18845
18846fi
18847
18848done
18849
18850for ac_header in ieeefp.h io.h math.h memory.h netinet/tcp.h arpa/inet.h poll.h pwd.h siginfo.h
18851do :
18852  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18853ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18854if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18855  cat >>confdefs.h <<_ACEOF
18856#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18857_ACEOF
18858
18859fi
18860
18861done
18862
18863for ac_header in stdarg.h sys/errno.h sys/filio.h sys/mman.h sys/resource.h
18864do :
18865  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18866ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18867if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18868  cat >>confdefs.h <<_ACEOF
18869#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18870_ACEOF
18871
18872fi
18873
18874done
18875
18876for ac_header in sys/sockio.h sys/stat.h termios.h sys/times.h
18877do :
18878  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18879ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18880if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18881  cat >>confdefs.h <<_ACEOF
18882#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18883_ACEOF
18884
18885fi
18886
18887done
18888
18889for ac_header in sys/types.h sys/uio.h sys/un.h sys/utsname.h sys/select.h sys/sysctl.h
18890do :
18891  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18892ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18893if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18894  cat >>confdefs.h <<_ACEOF
18895#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18896_ACEOF
18897
18898fi
18899
18900done
18901
18902for ac_header in sys/elf_SPARC.h sys/elf_386.h sys/elf_amd64.h asm/elf.h machine/reloc.h
18903do :
18904  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18905ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18906if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18907  cat >>confdefs.h <<_ACEOF
18908#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18909_ACEOF
18910
18911fi
18912
18913done
18914
18915for ac_header in windows.h tchar.h semaphore.h
18916do :
18917  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18918ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18919if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18920  cat >>confdefs.h <<_ACEOF
18921#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18922_ACEOF
18923
18924fi
18925
18926done
18927
18928for ac_header in stdint.h inttypes.h
18929do :
18930  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18931ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18932if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18933  cat >>confdefs.h <<_ACEOF
18934#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18935_ACEOF
18936
18937fi
18938
18939done
18940
18941
18942# Only check for the X headers if the user said --with-x.
18943if test "${with_x+set}" = set; then
18944    for ac_header in X11/Xlib.h Xm/Xm.h
18945do :
18946  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18947ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18948if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18949  cat >>confdefs.h <<_ACEOF
18950#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18951_ACEOF
18952
18953fi
18954
18955done
18956
18957fi
18958
18959
18960
18961
18962
18963
18964
18965
18966if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18967	if test -n "$ac_tool_prefix"; then
18968  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18969set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18971$as_echo_n "checking for $ac_word... " >&6; }
18972if ${ac_cv_path_PKG_CONFIG+:} false; then :
18973  $as_echo_n "(cached) " >&6
18974else
18975  case $PKG_CONFIG in
18976  [\\/]* | ?:[\\/]*)
18977  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18978  ;;
18979  *)
18980  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18981for as_dir in $PATH
18982do
18983  IFS=$as_save_IFS
18984  test -z "$as_dir" && as_dir=.
18985    for ac_exec_ext in '' $ac_executable_extensions; do
18986  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18987    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18988    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18989    break 2
18990  fi
18991done
18992  done
18993IFS=$as_save_IFS
18994
18995  ;;
18996esac
18997fi
18998PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18999if test -n "$PKG_CONFIG"; then
19000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19001$as_echo "$PKG_CONFIG" >&6; }
19002else
19003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19004$as_echo "no" >&6; }
19005fi
19006
19007
19008fi
19009if test -z "$ac_cv_path_PKG_CONFIG"; then
19010  ac_pt_PKG_CONFIG=$PKG_CONFIG
19011  # Extract the first word of "pkg-config", so it can be a program name with args.
19012set dummy pkg-config; ac_word=$2
19013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19014$as_echo_n "checking for $ac_word... " >&6; }
19015if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
19016  $as_echo_n "(cached) " >&6
19017else
19018  case $ac_pt_PKG_CONFIG in
19019  [\\/]* | ?:[\\/]*)
19020  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19021  ;;
19022  *)
19023  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19024for as_dir in $PATH
19025do
19026  IFS=$as_save_IFS
19027  test -z "$as_dir" && as_dir=.
19028    for ac_exec_ext in '' $ac_executable_extensions; do
19029  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19030    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19031    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19032    break 2
19033  fi
19034done
19035  done
19036IFS=$as_save_IFS
19037
19038  ;;
19039esac
19040fi
19041ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19042if test -n "$ac_pt_PKG_CONFIG"; then
19043  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19044$as_echo "$ac_pt_PKG_CONFIG" >&6; }
19045else
19046  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19047$as_echo "no" >&6; }
19048fi
19049
19050  if test "x$ac_pt_PKG_CONFIG" = x; then
19051    PKG_CONFIG=""
19052  else
19053    case $cross_compiling:$ac_tool_warned in
19054yes:)
19055{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19056$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19057ac_tool_warned=yes ;;
19058esac
19059    PKG_CONFIG=$ac_pt_PKG_CONFIG
19060  fi
19061else
19062  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19063fi
19064
19065fi
19066if test -n "$PKG_CONFIG"; then
19067	_pkg_min_version=0.9.0
19068	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
19069$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
19070	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19071		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19072$as_echo "yes" >&6; }
19073	else
19074		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19075$as_echo "no" >&6; }
19076		PKG_CONFIG=""
19077	fi
19078fi
19079
19080# Check for GMP
19081
19082# Check whether --with-gmp was given.
19083if test "${with_gmp+set}" = set; then :
19084  withval=$with_gmp;
19085else
19086  with_gmp=check
19087fi
19088
19089
19090# If we want GMP check that the library and headers are installed.
19091if test "x$with_gmp" != "xno"; then
19092    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpn_tdiv_qr in -lgmp" >&5
19093$as_echo_n "checking for __gmpn_tdiv_qr in -lgmp... " >&6; }
19094if ${ac_cv_lib_gmp___gmpn_tdiv_qr+:} false; then :
19095  $as_echo_n "(cached) " >&6
19096else
19097  ac_check_lib_save_LIBS=$LIBS
19098LIBS="-lgmp  $LIBS"
19099cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19100/* end confdefs.h.  */
19101
19102/* Override any GCC internal prototype to avoid an error.
19103   Use char because int might match the return type of a GCC
19104   builtin and then its argument prototype would still apply.  */
19105#ifdef __cplusplus
19106extern "C"
19107#endif
19108char __gmpn_tdiv_qr ();
19109int
19110main ()
19111{
19112return __gmpn_tdiv_qr ();
19113  ;
19114  return 0;
19115}
19116_ACEOF
19117if ac_fn_c_try_link "$LINENO"; then :
19118  ac_cv_lib_gmp___gmpn_tdiv_qr=yes
19119else
19120  ac_cv_lib_gmp___gmpn_tdiv_qr=no
19121fi
19122rm -f core conftest.err conftest.$ac_objext \
19123    conftest$ac_exeext conftest.$ac_ext
19124LIBS=$ac_check_lib_save_LIBS
19125fi
19126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpn_tdiv_qr" >&5
19127$as_echo "$ac_cv_lib_gmp___gmpn_tdiv_qr" >&6; }
19128if test "x$ac_cv_lib_gmp___gmpn_tdiv_qr" = xyes; then :
19129
19130$as_echo "#define HAVE_LIBGMP 1" >>confdefs.h
19131
19132         LIBS="-lgmp $LIBS"
19133         ac_fn_c_check_header_mongrel "$LINENO" "gmp.h" "ac_cv_header_gmp_h" "$ac_includes_default"
19134if test "x$ac_cv_header_gmp_h" = xyes; then :
19135
19136$as_echo "#define HAVE_GMP_H 1" >>confdefs.h
19137
19138else
19139  if test "x$with_gmp" != "xcheck"; then
19140                  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19141$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19142as_fn_error $? "--with-gmp was given, but gmp.h header file is not installed
19143See \`config.log' for more details" "$LINENO" 5; }
19144              fi
19145
19146fi
19147
19148
19149
19150else
19151  if test "x$with_gmp" != "xcheck"; then
19152            { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19153$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19154as_fn_error $? "--with-gmp was given, but gmp library (version 4 or later) is not installed
19155See \`config.log' for more details" "$LINENO" 5; }
19156         fi
19157
19158fi
19159
19160fi
19161
19162# libffi - No longer used in native code - just retain this for backwards compatibility.
19163
19164# Check whether --with-system-libffi was given.
19165if test "${with_system_libffi+set}" = set; then :
19166  withval=$with_system_libffi;
19167else
19168  with_system_libffi=no
19169fi
19170
19171
19172# But libffi is needed if we want FFI in the interpreted version.
19173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ffi_prep_closure_loc in -lffi" >&5
19174$as_echo_n "checking for ffi_prep_closure_loc in -lffi... " >&6; }
19175if ${ac_cv_lib_ffi_ffi_prep_closure_loc+:} false; then :
19176  $as_echo_n "(cached) " >&6
19177else
19178  ac_check_lib_save_LIBS=$LIBS
19179LIBS="-lffi  $LIBS"
19180cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19181/* end confdefs.h.  */
19182
19183/* Override any GCC internal prototype to avoid an error.
19184   Use char because int might match the return type of a GCC
19185   builtin and then its argument prototype would still apply.  */
19186#ifdef __cplusplus
19187extern "C"
19188#endif
19189char ffi_prep_closure_loc ();
19190int
19191main ()
19192{
19193return ffi_prep_closure_loc ();
19194  ;
19195  return 0;
19196}
19197_ACEOF
19198if ac_fn_c_try_link "$LINENO"; then :
19199  ac_cv_lib_ffi_ffi_prep_closure_loc=yes
19200else
19201  ac_cv_lib_ffi_ffi_prep_closure_loc=no
19202fi
19203rm -f core conftest.err conftest.$ac_objext \
19204    conftest$ac_exeext conftest.$ac_ext
19205LIBS=$ac_check_lib_save_LIBS
19206fi
19207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ffi_ffi_prep_closure_loc" >&5
19208$as_echo "$ac_cv_lib_ffi_ffi_prep_closure_loc" >&6; }
19209if test "x$ac_cv_lib_ffi_ffi_prep_closure_loc" = xyes; then :
19210  cat >>confdefs.h <<_ACEOF
19211#define HAVE_LIBFFI 1
19212_ACEOF
19213
19214  LIBS="-lffi $LIBS"
19215
19216fi
19217
19218for ac_header in ffi.h
19219do :
19220  ac_fn_c_check_header_mongrel "$LINENO" "ffi.h" "ac_cv_header_ffi_h" "$ac_includes_default"
19221if test "x$ac_cv_header_ffi_h" = xyes; then :
19222  cat >>confdefs.h <<_ACEOF
19223#define HAVE_FFI_H 1
19224_ACEOF
19225
19226fi
19227
19228done
19229
19230
19231
19232# Special configuration for Windows or Unix.
19233poly_windows_enablegui=false
19234
19235if test "x$poly_native_windows" = xyes; then
19236    # The next two are only used with mingw.  We mustn't include ws2_32 in Cygwin64 because
19237    # the "select" function gets used instead of Cygwin's own.
19238    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
19239$as_echo_n "checking for main in -lws2_32... " >&6; }
19240if ${ac_cv_lib_ws2_32_main+:} false; then :
19241  $as_echo_n "(cached) " >&6
19242else
19243  ac_check_lib_save_LIBS=$LIBS
19244LIBS="-lws2_32  $LIBS"
19245cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19246/* end confdefs.h.  */
19247
19248
19249int
19250main ()
19251{
19252return main ();
19253  ;
19254  return 0;
19255}
19256_ACEOF
19257if ac_fn_c_try_link "$LINENO"; then :
19258  ac_cv_lib_ws2_32_main=yes
19259else
19260  ac_cv_lib_ws2_32_main=no
19261fi
19262rm -f core conftest.err conftest.$ac_objext \
19263    conftest$ac_exeext conftest.$ac_ext
19264LIBS=$ac_check_lib_save_LIBS
19265fi
19266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
19267$as_echo "$ac_cv_lib_ws2_32_main" >&6; }
19268if test "x$ac_cv_lib_ws2_32_main" = xyes; then :
19269  cat >>confdefs.h <<_ACEOF
19270#define HAVE_LIBWS2_32 1
19271_ACEOF
19272
19273  LIBS="-lws2_32 $LIBS"
19274
19275fi
19276
19277    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgdi32" >&5
19278$as_echo_n "checking for main in -lgdi32... " >&6; }
19279if ${ac_cv_lib_gdi32_main+:} false; then :
19280  $as_echo_n "(cached) " >&6
19281else
19282  ac_check_lib_save_LIBS=$LIBS
19283LIBS="-lgdi32  $LIBS"
19284cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19285/* end confdefs.h.  */
19286
19287
19288int
19289main ()
19290{
19291return main ();
19292  ;
19293  return 0;
19294}
19295_ACEOF
19296if ac_fn_c_try_link "$LINENO"; then :
19297  ac_cv_lib_gdi32_main=yes
19298else
19299  ac_cv_lib_gdi32_main=no
19300fi
19301rm -f core conftest.err conftest.$ac_objext \
19302    conftest$ac_exeext conftest.$ac_ext
19303LIBS=$ac_check_lib_save_LIBS
19304fi
19305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdi32_main" >&5
19306$as_echo "$ac_cv_lib_gdi32_main" >&6; }
19307if test "x$ac_cv_lib_gdi32_main" = xyes; then :
19308  cat >>confdefs.h <<_ACEOF
19309#define HAVE_LIBGDI32 1
19310_ACEOF
19311
19312  LIBS="-lgdi32 $LIBS"
19313
19314fi
19315
19316
19317    CFLAGS="$CFLAGS -mthreads"
19318    CXXFLAGS="$CXXFLAGS -mthreads"
19319    OSFLAG="-DUNICODE -D_UNICODE -D_WIN32_WINNT=0x600"
19320
19321    if test -n "$ac_tool_prefix"; then
19322  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
19323set dummy ${ac_tool_prefix}windres; ac_word=$2
19324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19325$as_echo_n "checking for $ac_word... " >&6; }
19326if ${ac_cv_prog_WINDRES+:} false; then :
19327  $as_echo_n "(cached) " >&6
19328else
19329  if test -n "$WINDRES"; then
19330  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
19331else
19332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19333for as_dir in $PATH
19334do
19335  IFS=$as_save_IFS
19336  test -z "$as_dir" && as_dir=.
19337    for ac_exec_ext in '' $ac_executable_extensions; do
19338  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19339    ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
19340    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19341    break 2
19342  fi
19343done
19344  done
19345IFS=$as_save_IFS
19346
19347fi
19348fi
19349WINDRES=$ac_cv_prog_WINDRES
19350if test -n "$WINDRES"; then
19351  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
19352$as_echo "$WINDRES" >&6; }
19353else
19354  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19355$as_echo "no" >&6; }
19356fi
19357
19358
19359fi
19360if test -z "$ac_cv_prog_WINDRES"; then
19361  ac_ct_WINDRES=$WINDRES
19362  # Extract the first word of "windres", so it can be a program name with args.
19363set dummy windres; ac_word=$2
19364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19365$as_echo_n "checking for $ac_word... " >&6; }
19366if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
19367  $as_echo_n "(cached) " >&6
19368else
19369  if test -n "$ac_ct_WINDRES"; then
19370  ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
19371else
19372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19373for as_dir in $PATH
19374do
19375  IFS=$as_save_IFS
19376  test -z "$as_dir" && as_dir=.
19377    for ac_exec_ext in '' $ac_executable_extensions; do
19378  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19379    ac_cv_prog_ac_ct_WINDRES="windres"
19380    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19381    break 2
19382  fi
19383done
19384  done
19385IFS=$as_save_IFS
19386
19387fi
19388fi
19389ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
19390if test -n "$ac_ct_WINDRES"; then
19391  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
19392$as_echo "$ac_ct_WINDRES" >&6; }
19393else
19394  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19395$as_echo "no" >&6; }
19396fi
19397
19398  if test "x$ac_ct_WINDRES" = x; then
19399    WINDRES=""
19400  else
19401    case $cross_compiling:$ac_tool_warned in
19402yes:)
19403{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19404$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19405ac_tool_warned=yes ;;
19406esac
19407    WINDRES=$ac_ct_WINDRES
19408  fi
19409else
19410  WINDRES="$ac_cv_prog_WINDRES"
19411fi
19412
19413
19414    # Enable/Disable the GUI in Windows.
19415    # Check whether --enable-windows-gui was given.
19416if test "${enable_windows_gui+set}" = set; then :
19417  enableval=$enable_windows_gui; case "${enableval}" in
19418            yes) poly_windows_enablegui=true ;;
19419            no)  poly_windows_enablegui=false ;;
19420            *) as_fn_error $? "bad value ${enableval} for --enable-windows-gui" "$LINENO" 5 ;;
19421        esac
19422else
19423  poly_windows_enablegui=true
19424fi
19425
19426
19427else
19428    # Unix or similar e.g. Cygwin.  We need pthreads.
19429    # On Android pthread_create is in the standard library
19430    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
19431$as_echo_n "checking for library containing pthread_create... " >&6; }
19432if ${ac_cv_search_pthread_create+:} false; then :
19433  $as_echo_n "(cached) " >&6
19434else
19435  ac_func_search_save_LIBS=$LIBS
19436cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19437/* end confdefs.h.  */
19438
19439/* Override any GCC internal prototype to avoid an error.
19440   Use char because int might match the return type of a GCC
19441   builtin and then its argument prototype would still apply.  */
19442#ifdef __cplusplus
19443extern "C"
19444#endif
19445char pthread_create ();
19446int
19447main ()
19448{
19449return pthread_create ();
19450  ;
19451  return 0;
19452}
19453_ACEOF
19454for ac_lib in '' pthread; do
19455  if test -z "$ac_lib"; then
19456    ac_res="none required"
19457  else
19458    ac_res=-l$ac_lib
19459    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19460  fi
19461  if ac_fn_c_try_link "$LINENO"; then :
19462  ac_cv_search_pthread_create=$ac_res
19463fi
19464rm -f core conftest.err conftest.$ac_objext \
19465    conftest$ac_exeext
19466  if ${ac_cv_search_pthread_create+:} false; then :
19467  break
19468fi
19469done
19470if ${ac_cv_search_pthread_create+:} false; then :
19471
19472else
19473  ac_cv_search_pthread_create=no
19474fi
19475rm conftest.$ac_ext
19476LIBS=$ac_func_search_save_LIBS
19477fi
19478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
19479$as_echo "$ac_cv_search_pthread_create" >&6; }
19480ac_res=$ac_cv_search_pthread_create
19481if test "$ac_res" != no; then :
19482  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19483
19484$as_echo "#define HAVE_LIBPTHREAD 1" >>confdefs.h
19485
19486         ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
19487if test "x$ac_cv_header_pthread_h" = xyes; then :
19488
19489$as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
19490
19491else
19492
19493                  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19494$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19495as_fn_error $? "pthread.h header file is not installed
19496See \`config.log' for more details" "$LINENO" 5; }
19497
19498fi
19499
19500
19501
19502else
19503
19504            { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19505$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19506as_fn_error $? "pthread library is not installed
19507See \`config.log' for more details" "$LINENO" 5; }
19508
19509fi
19510
19511
19512    # Solaris needs -lsocket, -lnsl and -lrt
19513    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
19514$as_echo_n "checking for library containing gethostbyname... " >&6; }
19515if ${ac_cv_search_gethostbyname+:} false; then :
19516  $as_echo_n "(cached) " >&6
19517else
19518  ac_func_search_save_LIBS=$LIBS
19519cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19520/* end confdefs.h.  */
19521
19522/* Override any GCC internal prototype to avoid an error.
19523   Use char because int might match the return type of a GCC
19524   builtin and then its argument prototype would still apply.  */
19525#ifdef __cplusplus
19526extern "C"
19527#endif
19528char gethostbyname ();
19529int
19530main ()
19531{
19532return gethostbyname ();
19533  ;
19534  return 0;
19535}
19536_ACEOF
19537for ac_lib in '' nsl; do
19538  if test -z "$ac_lib"; then
19539    ac_res="none required"
19540  else
19541    ac_res=-l$ac_lib
19542    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19543  fi
19544  if ac_fn_c_try_link "$LINENO"; then :
19545  ac_cv_search_gethostbyname=$ac_res
19546fi
19547rm -f core conftest.err conftest.$ac_objext \
19548    conftest$ac_exeext
19549  if ${ac_cv_search_gethostbyname+:} false; then :
19550  break
19551fi
19552done
19553if ${ac_cv_search_gethostbyname+:} false; then :
19554
19555else
19556  ac_cv_search_gethostbyname=no
19557fi
19558rm conftest.$ac_ext
19559LIBS=$ac_func_search_save_LIBS
19560fi
19561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
19562$as_echo "$ac_cv_search_gethostbyname" >&6; }
19563ac_res=$ac_cv_search_gethostbyname
19564if test "$ac_res" != no; then :
19565  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19566
19567fi
19568
19569    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsockopt" >&5
19570$as_echo_n "checking for library containing getsockopt... " >&6; }
19571if ${ac_cv_search_getsockopt+:} false; then :
19572  $as_echo_n "(cached) " >&6
19573else
19574  ac_func_search_save_LIBS=$LIBS
19575cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19576/* end confdefs.h.  */
19577
19578/* Override any GCC internal prototype to avoid an error.
19579   Use char because int might match the return type of a GCC
19580   builtin and then its argument prototype would still apply.  */
19581#ifdef __cplusplus
19582extern "C"
19583#endif
19584char getsockopt ();
19585int
19586main ()
19587{
19588return getsockopt ();
19589  ;
19590  return 0;
19591}
19592_ACEOF
19593for ac_lib in '' socket; do
19594  if test -z "$ac_lib"; then
19595    ac_res="none required"
19596  else
19597    ac_res=-l$ac_lib
19598    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19599  fi
19600  if ac_fn_c_try_link "$LINENO"; then :
19601  ac_cv_search_getsockopt=$ac_res
19602fi
19603rm -f core conftest.err conftest.$ac_objext \
19604    conftest$ac_exeext
19605  if ${ac_cv_search_getsockopt+:} false; then :
19606  break
19607fi
19608done
19609if ${ac_cv_search_getsockopt+:} false; then :
19610
19611else
19612  ac_cv_search_getsockopt=no
19613fi
19614rm conftest.$ac_ext
19615LIBS=$ac_func_search_save_LIBS
19616fi
19617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsockopt" >&5
19618$as_echo "$ac_cv_search_getsockopt" >&6; }
19619ac_res=$ac_cv_search_getsockopt
19620if test "$ac_res" != no; then :
19621  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19622
19623fi
19624
19625    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_wait" >&5
19626$as_echo_n "checking for library containing sem_wait... " >&6; }
19627if ${ac_cv_search_sem_wait+:} false; then :
19628  $as_echo_n "(cached) " >&6
19629else
19630  ac_func_search_save_LIBS=$LIBS
19631cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19632/* end confdefs.h.  */
19633
19634/* Override any GCC internal prototype to avoid an error.
19635   Use char because int might match the return type of a GCC
19636   builtin and then its argument prototype would still apply.  */
19637#ifdef __cplusplus
19638extern "C"
19639#endif
19640char sem_wait ();
19641int
19642main ()
19643{
19644return sem_wait ();
19645  ;
19646  return 0;
19647}
19648_ACEOF
19649for ac_lib in '' rt; do
19650  if test -z "$ac_lib"; then
19651    ac_res="none required"
19652  else
19653    ac_res=-l$ac_lib
19654    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19655  fi
19656  if ac_fn_c_try_link "$LINENO"; then :
19657  ac_cv_search_sem_wait=$ac_res
19658fi
19659rm -f core conftest.err conftest.$ac_objext \
19660    conftest$ac_exeext
19661  if ${ac_cv_search_sem_wait+:} false; then :
19662  break
19663fi
19664done
19665if ${ac_cv_search_sem_wait+:} false; then :
19666
19667else
19668  ac_cv_search_sem_wait=no
19669fi
19670rm conftest.$ac_ext
19671LIBS=$ac_func_search_save_LIBS
19672fi
19673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_wait" >&5
19674$as_echo "$ac_cv_search_sem_wait" >&6; }
19675ac_res=$ac_cv_search_sem_wait
19676if test "$ac_res" != no; then :
19677  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19678
19679fi
19680
19681
19682    # Check for X and Motif headers and libraries
19683    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
19684$as_echo_n "checking for X... " >&6; }
19685
19686
19687# Check whether --with-x was given.
19688if test "${with_x+set}" = set; then :
19689  withval=$with_x;
19690fi
19691
19692# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19693if test "x$with_x" = xno; then
19694  # The user explicitly disabled X.
19695  have_x=disabled
19696else
19697  case $x_includes,$x_libraries in #(
19698    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
19699    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
19700  $as_echo_n "(cached) " >&6
19701else
19702  # One or both of the vars are not set, and there is no cached value.
19703ac_x_includes=no ac_x_libraries=no
19704rm -f -r conftest.dir
19705if mkdir conftest.dir; then
19706  cd conftest.dir
19707  cat >Imakefile <<'_ACEOF'
19708incroot:
19709	@echo incroot='${INCROOT}'
19710usrlibdir:
19711	@echo usrlibdir='${USRLIBDIR}'
19712libdir:
19713	@echo libdir='${LIBDIR}'
19714_ACEOF
19715  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19716    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
19717    for ac_var in incroot usrlibdir libdir; do
19718      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19719    done
19720    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19721    for ac_extension in a so sl dylib la dll; do
19722      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19723	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
19724	ac_im_usrlibdir=$ac_im_libdir; break
19725      fi
19726    done
19727    # Screen out bogus values from the imake configuration.  They are
19728    # bogus both because they are the default anyway, and because
19729    # using them would break gcc on systems where it needs fixed includes.
19730    case $ac_im_incroot in
19731	/usr/include) ac_x_includes= ;;
19732	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19733    esac
19734    case $ac_im_usrlibdir in
19735	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
19736	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19737    esac
19738  fi
19739  cd ..
19740  rm -f -r conftest.dir
19741fi
19742
19743# Standard set of common directories for X headers.
19744# Check X11 before X11Rn because it is often a symlink to the current release.
19745ac_x_header_dirs='
19746/usr/X11/include
19747/usr/X11R7/include
19748/usr/X11R6/include
19749/usr/X11R5/include
19750/usr/X11R4/include
19751
19752/usr/include/X11
19753/usr/include/X11R7
19754/usr/include/X11R6
19755/usr/include/X11R5
19756/usr/include/X11R4
19757
19758/usr/local/X11/include
19759/usr/local/X11R7/include
19760/usr/local/X11R6/include
19761/usr/local/X11R5/include
19762/usr/local/X11R4/include
19763
19764/usr/local/include/X11
19765/usr/local/include/X11R7
19766/usr/local/include/X11R6
19767/usr/local/include/X11R5
19768/usr/local/include/X11R4
19769
19770/usr/X386/include
19771/usr/x386/include
19772/usr/XFree86/include/X11
19773
19774/usr/include
19775/usr/local/include
19776/usr/unsupported/include
19777/usr/athena/include
19778/usr/local/x11r5/include
19779/usr/lpp/Xamples/include
19780
19781/usr/openwin/include
19782/usr/openwin/share/include'
19783
19784if test "$ac_x_includes" = no; then
19785  # Guess where to find include files, by looking for Xlib.h.
19786  # First, try using that file with no special directory specified.
19787  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19788/* end confdefs.h.  */
19789#include <X11/Xlib.h>
19790_ACEOF
19791if ac_fn_c_try_cpp "$LINENO"; then :
19792  # We can compile using X headers with no special include directory.
19793ac_x_includes=
19794else
19795  for ac_dir in $ac_x_header_dirs; do
19796  if test -r "$ac_dir/X11/Xlib.h"; then
19797    ac_x_includes=$ac_dir
19798    break
19799  fi
19800done
19801fi
19802rm -f conftest.err conftest.i conftest.$ac_ext
19803fi # $ac_x_includes = no
19804
19805if test "$ac_x_libraries" = no; then
19806  # Check for the libraries.
19807  # See if we find them without any special options.
19808  # Don't add to $LIBS permanently.
19809  ac_save_LIBS=$LIBS
19810  LIBS="-lX11 $LIBS"
19811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19812/* end confdefs.h.  */
19813#include <X11/Xlib.h>
19814int
19815main ()
19816{
19817XrmInitialize ()
19818  ;
19819  return 0;
19820}
19821_ACEOF
19822if ac_fn_c_try_link "$LINENO"; then :
19823  LIBS=$ac_save_LIBS
19824# We can link X programs with no special library path.
19825ac_x_libraries=
19826else
19827  LIBS=$ac_save_LIBS
19828for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19829do
19830  # Don't even attempt the hair of trying to link an X program!
19831  for ac_extension in a so sl dylib la dll; do
19832    if test -r "$ac_dir/libX11.$ac_extension"; then
19833      ac_x_libraries=$ac_dir
19834      break 2
19835    fi
19836  done
19837done
19838fi
19839rm -f core conftest.err conftest.$ac_objext \
19840    conftest$ac_exeext conftest.$ac_ext
19841fi # $ac_x_libraries = no
19842
19843case $ac_x_includes,$ac_x_libraries in #(
19844  no,* | *,no | *\'*)
19845    # Didn't find X, or a directory has "'" in its name.
19846    ac_cv_have_x="have_x=no";; #(
19847  *)
19848    # Record where we found X for the cache.
19849    ac_cv_have_x="have_x=yes\
19850	ac_x_includes='$ac_x_includes'\
19851	ac_x_libraries='$ac_x_libraries'"
19852esac
19853fi
19854;; #(
19855    *) have_x=yes;;
19856  esac
19857  eval "$ac_cv_have_x"
19858fi # $with_x != no
19859
19860if test "$have_x" != yes; then
19861  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
19862$as_echo "$have_x" >&6; }
19863  no_x=yes
19864else
19865  # If each of the values was on the command line, it overrides each guess.
19866  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19867  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19868  # Update the cache value to reflect the command line values.
19869  ac_cv_have_x="have_x=yes\
19870	ac_x_includes='$x_includes'\
19871	ac_x_libraries='$x_libraries'"
19872  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
19873$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
19874fi
19875
19876
19877    if test "x${with_x}" = "xyes"; then
19878
19879
19880$as_echo "#define WITH_XWINDOWS 1" >>confdefs.h
19881
19882
19883        if test "$x_includes" != "" ; then
19884        if test  "$x_includes" != "NONE" ; then
19885            CFLAGS="$CFLAGS -I$x_includes"
19886            CXXFLAGS="$CXXFLAGS -I$x_includes"
19887            CPPFLAGS="$CPPFLAGS -I$x_includes"
19888        fi
19889        fi
19890        if test "$x_libraries" != "" ; then
19891        if test "$x_libraries" != "NONE" ; then
19892            LIBS="-L$x_libraries $LIBS"
19893        fi
19894        fi
19895        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCreateGC in -lX11" >&5
19896$as_echo_n "checking for XCreateGC in -lX11... " >&6; }
19897if ${ac_cv_lib_X11_XCreateGC+:} false; then :
19898  $as_echo_n "(cached) " >&6
19899else
19900  ac_check_lib_save_LIBS=$LIBS
19901LIBS="-lX11  $LIBS"
19902cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19903/* end confdefs.h.  */
19904
19905/* Override any GCC internal prototype to avoid an error.
19906   Use char because int might match the return type of a GCC
19907   builtin and then its argument prototype would still apply.  */
19908#ifdef __cplusplus
19909extern "C"
19910#endif
19911char XCreateGC ();
19912int
19913main ()
19914{
19915return XCreateGC ();
19916  ;
19917  return 0;
19918}
19919_ACEOF
19920if ac_fn_c_try_link "$LINENO"; then :
19921  ac_cv_lib_X11_XCreateGC=yes
19922else
19923  ac_cv_lib_X11_XCreateGC=no
19924fi
19925rm -f core conftest.err conftest.$ac_objext \
19926    conftest$ac_exeext conftest.$ac_ext
19927LIBS=$ac_check_lib_save_LIBS
19928fi
19929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XCreateGC" >&5
19930$as_echo "$ac_cv_lib_X11_XCreateGC" >&6; }
19931if test "x$ac_cv_lib_X11_XCreateGC" = xyes; then :
19932  cat >>confdefs.h <<_ACEOF
19933#define HAVE_LIBX11 1
19934_ACEOF
19935
19936  LIBS="-lX11 $LIBS"
19937
19938fi
19939
19940        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtMalloc in -lXt" >&5
19941$as_echo_n "checking for XtMalloc in -lXt... " >&6; }
19942if ${ac_cv_lib_Xt_XtMalloc+:} false; then :
19943  $as_echo_n "(cached) " >&6
19944else
19945  ac_check_lib_save_LIBS=$LIBS
19946LIBS="-lXt  $LIBS"
19947cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19948/* end confdefs.h.  */
19949
19950/* Override any GCC internal prototype to avoid an error.
19951   Use char because int might match the return type of a GCC
19952   builtin and then its argument prototype would still apply.  */
19953#ifdef __cplusplus
19954extern "C"
19955#endif
19956char XtMalloc ();
19957int
19958main ()
19959{
19960return XtMalloc ();
19961  ;
19962  return 0;
19963}
19964_ACEOF
19965if ac_fn_c_try_link "$LINENO"; then :
19966  ac_cv_lib_Xt_XtMalloc=yes
19967else
19968  ac_cv_lib_Xt_XtMalloc=no
19969fi
19970rm -f core conftest.err conftest.$ac_objext \
19971    conftest$ac_exeext conftest.$ac_ext
19972LIBS=$ac_check_lib_save_LIBS
19973fi
19974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtMalloc" >&5
19975$as_echo "$ac_cv_lib_Xt_XtMalloc" >&6; }
19976if test "x$ac_cv_lib_Xt_XtMalloc" = xyes; then :
19977  cat >>confdefs.h <<_ACEOF
19978#define HAVE_LIBXT 1
19979_ACEOF
19980
19981  LIBS="-lXt $LIBS"
19982
19983fi
19984
19985        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XextAddDisplay in -lXext" >&5
19986$as_echo_n "checking for XextAddDisplay in -lXext... " >&6; }
19987if ${ac_cv_lib_Xext_XextAddDisplay+:} false; then :
19988  $as_echo_n "(cached) " >&6
19989else
19990  ac_check_lib_save_LIBS=$LIBS
19991LIBS="-lXext  $LIBS"
19992cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19993/* end confdefs.h.  */
19994
19995/* Override any GCC internal prototype to avoid an error.
19996   Use char because int might match the return type of a GCC
19997   builtin and then its argument prototype would still apply.  */
19998#ifdef __cplusplus
19999extern "C"
20000#endif
20001char XextAddDisplay ();
20002int
20003main ()
20004{
20005return XextAddDisplay ();
20006  ;
20007  return 0;
20008}
20009_ACEOF
20010if ac_fn_c_try_link "$LINENO"; then :
20011  ac_cv_lib_Xext_XextAddDisplay=yes
20012else
20013  ac_cv_lib_Xext_XextAddDisplay=no
20014fi
20015rm -f core conftest.err conftest.$ac_objext \
20016    conftest$ac_exeext conftest.$ac_ext
20017LIBS=$ac_check_lib_save_LIBS
20018fi
20019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XextAddDisplay" >&5
20020$as_echo "$ac_cv_lib_Xext_XextAddDisplay" >&6; }
20021if test "x$ac_cv_lib_Xext_XextAddDisplay" = xyes; then :
20022  cat >>confdefs.h <<_ACEOF
20023#define HAVE_LIBXEXT 1
20024_ACEOF
20025
20026  LIBS="-lXext $LIBS"
20027
20028fi
20029
20030
20031        if test "$xm_includes" != "" ; then
20032        if test "$xm_includes" != "NONE" ; then
20033            CFLAGS="$CFLAGS -I$xm_includes"
20034            CXXFLAGS="$CXXFLAGS -I$xm_includes"
20035            CPPFLAGS="$CPPFLAGS -I$xm_includes"
20036        fi
20037        fi
20038        if test "$xm_libraries" != "" ; then
20039        if test "$xm_libraries" != "NONE" ; then
20040            LIBS="-L$xm_libraries $LIBS"
20041        fi
20042        fi
20043        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmGetDestination in -lXm" >&5
20044$as_echo_n "checking for XmGetDestination in -lXm... " >&6; }
20045if ${ac_cv_lib_Xm_XmGetDestination+:} false; then :
20046  $as_echo_n "(cached) " >&6
20047else
20048  ac_check_lib_save_LIBS=$LIBS
20049LIBS="-lXm  $LIBS"
20050cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20051/* end confdefs.h.  */
20052
20053/* Override any GCC internal prototype to avoid an error.
20054   Use char because int might match the return type of a GCC
20055   builtin and then its argument prototype would still apply.  */
20056#ifdef __cplusplus
20057extern "C"
20058#endif
20059char XmGetDestination ();
20060int
20061main ()
20062{
20063return XmGetDestination ();
20064  ;
20065  return 0;
20066}
20067_ACEOF
20068if ac_fn_c_try_link "$LINENO"; then :
20069  ac_cv_lib_Xm_XmGetDestination=yes
20070else
20071  ac_cv_lib_Xm_XmGetDestination=no
20072fi
20073rm -f core conftest.err conftest.$ac_objext \
20074    conftest$ac_exeext conftest.$ac_ext
20075LIBS=$ac_check_lib_save_LIBS
20076fi
20077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xm_XmGetDestination" >&5
20078$as_echo "$ac_cv_lib_Xm_XmGetDestination" >&6; }
20079if test "x$ac_cv_lib_Xm_XmGetDestination" = xyes; then :
20080  cat >>confdefs.h <<_ACEOF
20081#define HAVE_LIBXM 1
20082_ACEOF
20083
20084  LIBS="-lXm $LIBS"
20085
20086fi
20087
20088
20089    fi
20090
20091    # TODO: May need AC_PATH_XTRA for Solaris
20092
20093fi
20094# End of Windows/Unix configuration.
20095
20096# Find out which type of object code exporter to use.
20097# If we have winnt use PECOFF.  This really only applies to cygwin here.
20098# If we have elf.h use ELF.
20099# If we have mach-o/reloc.h use Mach-O
20100# Otherwise use the C source code exporter.
20101ac_fn_c_check_type "$LINENO" "IMAGE_FILE_HEADER" "ac_cv_type_IMAGE_FILE_HEADER" "#include <windows.h>
20102
20103"
20104if test "x$ac_cv_type_IMAGE_FILE_HEADER" = xyes; then :
20105
20106cat >>confdefs.h <<_ACEOF
20107#define HAVE_IMAGE_FILE_HEADER 1
20108_ACEOF
20109
20110
20111$as_echo "#define HAVE_PECOFF /**/" >>confdefs.h
20112
20113        polyexport=pecoff
20114else
20115  ac_fn_c_check_header_mongrel "$LINENO" "elf.h" "ac_cv_header_elf_h" "$ac_includes_default"
20116if test "x$ac_cv_header_elf_h" = xyes; then :
20117
20118$as_echo "#define HAVE_ELF_H /**/" >>confdefs.h
20119
20120            polyexport=elf
20121else
20122  ac_fn_c_check_header_mongrel "$LINENO" "mach-o/reloc.h" "ac_cv_header_mach_o_reloc_h" "$ac_includes_default"
20123if test "x$ac_cv_header_mach_o_reloc_h" = xyes; then :
20124
20125$as_echo "#define HAVE_MACH_O_RELOC_H /**/" >>confdefs.h
20126
20127                          polyexport=macho
20128else
20129  for ac_header in elf_abi.h machine/reloc.h
20130do :
20131  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20132ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20133if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20134  cat >>confdefs.h <<_ACEOF
20135#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20136_ACEOF
20137
20138$as_echo "#define HAVE_ELF_ABI_H /**/" >>confdefs.h
20139
20140                              polyexport=elf
20141fi
20142
20143done
20144
20145
20146fi
20147
20148
20149
20150fi
20151
20152
20153fi
20154
20155
20156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports __sync_add_and_fetch" >&5
20157$as_echo_n "checking whether the compiler supports __sync_add_and_fetch... " >&6; }
20158cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20159/* end confdefs.h.  */
20160int main(void) { long i=0; return __sync_fetch_and_add(&i, 0) + __sync_sub_and_fetch(&i, 0); }
20161_ACEOF
20162if ac_fn_c_try_link "$LINENO"; then :
20163  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20164$as_echo "yes" >&6; }
20165$as_echo "#define HAVE_SYNC_FETCH 1" >>confdefs.h
20166
20167else
20168  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20169$as_echo "no" >&6; }
20170fi
20171rm -f core conftest.err conftest.$ac_objext \
20172    conftest$ac_exeext conftest.$ac_ext
20173
20174
20175 if test "$polyexport" = pecoff; then
20176  EXPPECOFF_TRUE=
20177  EXPPECOFF_FALSE='#'
20178else
20179  EXPPECOFF_TRUE='#'
20180  EXPPECOFF_FALSE=
20181fi
20182
20183 if test "$polyexport" = elf; then
20184  EXPELF_TRUE=
20185  EXPELF_FALSE='#'
20186else
20187  EXPELF_TRUE='#'
20188  EXPELF_FALSE=
20189fi
20190
20191 if test "$polyexport" = macho; then
20192  EXPMACHO_TRUE=
20193  EXPMACHO_FALSE='#'
20194else
20195  EXPMACHO_TRUE='#'
20196  EXPMACHO_FALSE=
20197fi
20198
20199
20200# Checks for typedefs, structures, and compiler characteristics.
20201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
20202$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
20203if ${ac_cv_header_stdbool_h+:} false; then :
20204  $as_echo_n "(cached) " >&6
20205else
20206  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20207/* end confdefs.h.  */
20208
20209             #include <stdbool.h>
20210             #ifndef bool
20211              "error: bool is not defined"
20212             #endif
20213             #ifndef false
20214              "error: false is not defined"
20215             #endif
20216             #if false
20217              "error: false is not 0"
20218             #endif
20219             #ifndef true
20220              "error: true is not defined"
20221             #endif
20222             #if true != 1
20223              "error: true is not 1"
20224             #endif
20225             #ifndef __bool_true_false_are_defined
20226              "error: __bool_true_false_are_defined is not defined"
20227             #endif
20228
20229             struct s { _Bool s: 1; _Bool t; } s;
20230
20231             char a[true == 1 ? 1 : -1];
20232             char b[false == 0 ? 1 : -1];
20233             char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20234             char d[(bool) 0.5 == true ? 1 : -1];
20235             /* See body of main program for 'e'.  */
20236             char f[(_Bool) 0.0 == false ? 1 : -1];
20237             char g[true];
20238             char h[sizeof (_Bool)];
20239             char i[sizeof s.t];
20240             enum { j = false, k = true, l = false * true, m = true * 256 };
20241             /* The following fails for
20242                HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
20243             _Bool n[m];
20244             char o[sizeof n == m * sizeof n[0] ? 1 : -1];
20245             char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
20246             /* Catch a bug in an HP-UX C compiler.  See
20247                http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20248                http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
20249              */
20250             _Bool q = true;
20251             _Bool *pq = &q;
20252
20253int
20254main ()
20255{
20256
20257             bool e = &s;
20258             *pq |= q;
20259             *pq |= ! q;
20260             /* Refer to every declared value, to avoid compiler optimizations.  */
20261             return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20262                     + !m + !n + !o + !p + !q + !pq);
20263
20264  ;
20265  return 0;
20266}
20267_ACEOF
20268if ac_fn_c_try_compile "$LINENO"; then :
20269  ac_cv_header_stdbool_h=yes
20270else
20271  ac_cv_header_stdbool_h=no
20272fi
20273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20274fi
20275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
20276$as_echo "$ac_cv_header_stdbool_h" >&6; }
20277   ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
20278if test "x$ac_cv_type__Bool" = xyes; then :
20279
20280cat >>confdefs.h <<_ACEOF
20281#define HAVE__BOOL 1
20282_ACEOF
20283
20284
20285fi
20286
20287
20288if test $ac_cv_header_stdbool_h = yes; then
20289
20290$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
20291
20292fi
20293
20294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
20295$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
20296if ${ac_cv_c_const+:} false; then :
20297  $as_echo_n "(cached) " >&6
20298else
20299  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20300/* end confdefs.h.  */
20301
20302int
20303main ()
20304{
20305
20306#ifndef __cplusplus
20307  /* Ultrix mips cc rejects this sort of thing.  */
20308  typedef int charset[2];
20309  const charset cs = { 0, 0 };
20310  /* SunOS 4.1.1 cc rejects this.  */
20311  char const *const *pcpcc;
20312  char **ppc;
20313  /* NEC SVR4.0.2 mips cc rejects this.  */
20314  struct point {int x, y;};
20315  static struct point const zero = {0,0};
20316  /* AIX XL C 1.02.0.0 rejects this.
20317     It does not let you subtract one const X* pointer from another in
20318     an arm of an if-expression whose if-part is not a constant
20319     expression */
20320  const char *g = "string";
20321  pcpcc = &g + (g ? g-g : 0);
20322  /* HPUX 7.0 cc rejects these. */
20323  ++pcpcc;
20324  ppc = (char**) pcpcc;
20325  pcpcc = (char const *const *) ppc;
20326  { /* SCO 3.2v4 cc rejects this sort of thing.  */
20327    char tx;
20328    char *t = &tx;
20329    char const *s = 0 ? (char *) 0 : (char const *) 0;
20330
20331    *t++ = 0;
20332    if (s) return 0;
20333  }
20334  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20335    int x[] = {25, 17};
20336    const int *foo = &x[0];
20337    ++foo;
20338  }
20339  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20340    typedef const int *iptr;
20341    iptr p = 0;
20342    ++p;
20343  }
20344  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
20345       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20346    struct s { int j; const int *ap[3]; } bx;
20347    struct s *b = &bx; b->j = 5;
20348  }
20349  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20350    const int foo = 10;
20351    if (!foo) return 0;
20352  }
20353  return !cs[0] && !zero.x;
20354#endif
20355
20356  ;
20357  return 0;
20358}
20359_ACEOF
20360if ac_fn_c_try_compile "$LINENO"; then :
20361  ac_cv_c_const=yes
20362else
20363  ac_cv_c_const=no
20364fi
20365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20366fi
20367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
20368$as_echo "$ac_cv_c_const" >&6; }
20369if test $ac_cv_c_const = no; then
20370
20371$as_echo "#define const /**/" >>confdefs.h
20372
20373fi
20374
20375ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
20376case $ac_cv_c_int16_t in #(
20377  no|yes) ;; #(
20378  *)
20379
20380cat >>confdefs.h <<_ACEOF
20381#define int16_t $ac_cv_c_int16_t
20382_ACEOF
20383;;
20384esac
20385
20386ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
20387case $ac_cv_c_uint16_t in #(
20388  no|yes) ;; #(
20389  *)
20390
20391
20392cat >>confdefs.h <<_ACEOF
20393#define uint16_t $ac_cv_c_uint16_t
20394_ACEOF
20395;;
20396  esac
20397
20398ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
20399case $ac_cv_c_int32_t in #(
20400  no|yes) ;; #(
20401  *)
20402
20403cat >>confdefs.h <<_ACEOF
20404#define int32_t $ac_cv_c_int32_t
20405_ACEOF
20406;;
20407esac
20408
20409ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
20410case $ac_cv_c_uint32_t in #(
20411  no|yes) ;; #(
20412  *)
20413
20414$as_echo "#define _UINT32_T 1" >>confdefs.h
20415
20416
20417cat >>confdefs.h <<_ACEOF
20418#define uint32_t $ac_cv_c_uint32_t
20419_ACEOF
20420;;
20421  esac
20422
20423ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
20424case $ac_cv_c_int64_t in #(
20425  no|yes) ;; #(
20426  *)
20427
20428cat >>confdefs.h <<_ACEOF
20429#define int64_t $ac_cv_c_int64_t
20430_ACEOF
20431;;
20432esac
20433
20434ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
20435case $ac_cv_c_uint64_t in #(
20436  no|yes) ;; #(
20437  *)
20438
20439$as_echo "#define _UINT64_T 1" >>confdefs.h
20440
20441
20442cat >>confdefs.h <<_ACEOF
20443#define uint64_t $ac_cv_c_uint64_t
20444_ACEOF
20445;;
20446  esac
20447
20448
20449  ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
20450if test "x$ac_cv_type_intptr_t" = xyes; then :
20451
20452$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
20453
20454else
20455  for ac_type in 'int' 'long int' 'long long int'; do
20456       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20457/* end confdefs.h.  */
20458$ac_includes_default
20459int
20460main ()
20461{
20462static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
20463test_array [0] = 0;
20464return test_array [0];
20465
20466  ;
20467  return 0;
20468}
20469_ACEOF
20470if ac_fn_c_try_compile "$LINENO"; then :
20471
20472cat >>confdefs.h <<_ACEOF
20473#define intptr_t $ac_type
20474_ACEOF
20475
20476	  ac_type=
20477fi
20478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20479       test -z "$ac_type" && break
20480     done
20481fi
20482
20483
20484
20485  ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
20486if test "x$ac_cv_type_uintptr_t" = xyes; then :
20487
20488$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
20489
20490else
20491  for ac_type in 'unsigned int' 'unsigned long int' \
20492	'unsigned long long int'; do
20493       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20494/* end confdefs.h.  */
20495$ac_includes_default
20496int
20497main ()
20498{
20499static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
20500test_array [0] = 0;
20501return test_array [0];
20502
20503  ;
20504  return 0;
20505}
20506_ACEOF
20507if ac_fn_c_try_compile "$LINENO"; then :
20508
20509cat >>confdefs.h <<_ACEOF
20510#define uintptr_t $ac_type
20511_ACEOF
20512
20513	  ac_type=
20514fi
20515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20516       test -z "$ac_type" && break
20517     done
20518fi
20519
20520
20521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
20522$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
20523if ${ac_cv_type_uid_t+:} false; then :
20524  $as_echo_n "(cached) " >&6
20525else
20526  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20527/* end confdefs.h.  */
20528#include <sys/types.h>
20529
20530_ACEOF
20531if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20532  $EGREP "uid_t" >/dev/null 2>&1; then :
20533  ac_cv_type_uid_t=yes
20534else
20535  ac_cv_type_uid_t=no
20536fi
20537rm -f conftest*
20538
20539fi
20540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
20541$as_echo "$ac_cv_type_uid_t" >&6; }
20542if test $ac_cv_type_uid_t = no; then
20543
20544$as_echo "#define uid_t int" >>confdefs.h
20545
20546
20547$as_echo "#define gid_t int" >>confdefs.h
20548
20549fi
20550
20551ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
20552if test "x$ac_cv_type_mode_t" = xyes; then :
20553
20554else
20555
20556cat >>confdefs.h <<_ACEOF
20557#define mode_t int
20558_ACEOF
20559
20560fi
20561
20562ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
20563if test "x$ac_cv_type_off_t" = xyes; then :
20564
20565else
20566
20567cat >>confdefs.h <<_ACEOF
20568#define off_t long int
20569_ACEOF
20570
20571fi
20572
20573ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
20574if test "x$ac_cv_type_pid_t" = xyes; then :
20575
20576else
20577
20578cat >>confdefs.h <<_ACEOF
20579#define pid_t int
20580_ACEOF
20581
20582fi
20583
20584ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
20585if test "x$ac_cv_type_size_t" = xyes; then :
20586
20587else
20588
20589cat >>confdefs.h <<_ACEOF
20590#define size_t unsigned int
20591_ACEOF
20592
20593fi
20594
20595ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
20596if test "x$ac_cv_type_ssize_t" = xyes; then :
20597
20598else
20599
20600cat >>confdefs.h <<_ACEOF
20601#define ssize_t int
20602_ACEOF
20603
20604fi
20605
20606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
20607$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
20608if ${ac_cv_header_time+:} false; then :
20609  $as_echo_n "(cached) " >&6
20610else
20611  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20612/* end confdefs.h.  */
20613#include <sys/types.h>
20614#include <sys/time.h>
20615#include <time.h>
20616
20617int
20618main ()
20619{
20620if ((struct tm *) 0)
20621return 0;
20622  ;
20623  return 0;
20624}
20625_ACEOF
20626if ac_fn_c_try_compile "$LINENO"; then :
20627  ac_cv_header_time=yes
20628else
20629  ac_cv_header_time=no
20630fi
20631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20632fi
20633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
20634$as_echo "$ac_cv_header_time" >&6; }
20635if test $ac_cv_header_time = yes; then
20636
20637$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
20638
20639fi
20640
20641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
20642$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
20643if ${ac_cv_struct_tm+:} false; then :
20644  $as_echo_n "(cached) " >&6
20645else
20646  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20647/* end confdefs.h.  */
20648#include <sys/types.h>
20649#include <time.h>
20650
20651int
20652main ()
20653{
20654struct tm tm;
20655				     int *p = &tm.tm_sec;
20656				     return !p;
20657  ;
20658  return 0;
20659}
20660_ACEOF
20661if ac_fn_c_try_compile "$LINENO"; then :
20662  ac_cv_struct_tm=time.h
20663else
20664  ac_cv_struct_tm=sys/time.h
20665fi
20666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20667fi
20668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
20669$as_echo "$ac_cv_struct_tm" >&6; }
20670if test $ac_cv_struct_tm = sys/time.h; then
20671
20672$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
20673
20674fi
20675
20676
20677# Check for the various sub-second fields of the stat structure.
20678ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
20679if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
20680
20681cat >>confdefs.h <<_ACEOF
20682#define HAVE_STRUCT_STAT_ST_ATIM 1
20683_ACEOF
20684
20685
20686fi
20687ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec" "ac_cv_member_struct_stat_st_atimespec" "$ac_includes_default"
20688if test "x$ac_cv_member_struct_stat_st_atimespec" = xyes; then :
20689
20690cat >>confdefs.h <<_ACEOF
20691#define HAVE_STRUCT_STAT_ST_ATIMESPEC 1
20692_ACEOF
20693
20694
20695fi
20696ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "$ac_includes_default"
20697if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes; then :
20698
20699cat >>confdefs.h <<_ACEOF
20700#define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
20701_ACEOF
20702
20703
20704fi
20705ac_fn_c_check_member "$LINENO" "struct stat" "st_atime_n" "ac_cv_member_struct_stat_st_atime_n" "$ac_includes_default"
20706if test "x$ac_cv_member_struct_stat_st_atime_n" = xyes; then :
20707
20708cat >>confdefs.h <<_ACEOF
20709#define HAVE_STRUCT_STAT_ST_ATIME_N 1
20710_ACEOF
20711
20712
20713fi
20714ac_fn_c_check_member "$LINENO" "struct stat" "st_uatime" "ac_cv_member_struct_stat_st_uatime" "$ac_includes_default"
20715if test "x$ac_cv_member_struct_stat_st_uatime" = xyes; then :
20716
20717cat >>confdefs.h <<_ACEOF
20718#define HAVE_STRUCT_STAT_ST_UATIME 1
20719_ACEOF
20720
20721
20722fi
20723
20724
20725# Mac OS X, at any rate, needs signal.h to be included first.
20726ac_fn_c_check_type "$LINENO" "ucontext_t" "ac_cv_type_ucontext_t" "#include \"signal.h\"
20727#include \"ucontext.h\"
20728"
20729if test "x$ac_cv_type_ucontext_t" = xyes; then :
20730
20731cat >>confdefs.h <<_ACEOF
20732#define HAVE_UCONTEXT_T 1
20733_ACEOF
20734
20735
20736fi
20737
20738ac_fn_c_check_type "$LINENO" "struct sigcontext" "ac_cv_type_struct_sigcontext" "#include \"signal.h\"
20739"
20740if test "x$ac_cv_type_struct_sigcontext" = xyes; then :
20741
20742cat >>confdefs.h <<_ACEOF
20743#define HAVE_STRUCT_SIGCONTEXT 1
20744_ACEOF
20745
20746
20747fi
20748ac_fn_c_check_type "$LINENO" "stack_t" "ac_cv_type_stack_t" "#include \"signal.h\"
20749"
20750if test "x$ac_cv_type_stack_t" = xyes; then :
20751
20752cat >>confdefs.h <<_ACEOF
20753#define HAVE_STACK_T 1
20754_ACEOF
20755
20756
20757fi
20758ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "#include \"signal.h\"
20759"
20760if test "x$ac_cv_type_sighandler_t" = xyes; then :
20761
20762cat >>confdefs.h <<_ACEOF
20763#define HAVE_SIGHANDLER_T 1
20764_ACEOF
20765
20766
20767fi
20768ac_fn_c_check_type "$LINENO" "sig_t" "ac_cv_type_sig_t" "#include \"signal.h\"
20769"
20770if test "x$ac_cv_type_sig_t" = xyes; then :
20771
20772cat >>confdefs.h <<_ACEOF
20773#define HAVE_SIG_T 1
20774_ACEOF
20775
20776
20777fi
20778
20779ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include \"sys/types.h\"
20780#include \"sys/socket.h\"
20781"
20782if test "x$ac_cv_type_socklen_t" = xyes; then :
20783
20784cat >>confdefs.h <<_ACEOF
20785#define HAVE_SOCKLEN_T 1
20786_ACEOF
20787
20788
20789fi
20790
20791
20792ac_fn_c_check_type "$LINENO" "SYSTEM_LOGICAL_PROCESSOR_INFORMATION" "ac_cv_type_SYSTEM_LOGICAL_PROCESSOR_INFORMATION" "#include \"windows.h\"
20793"
20794if test "x$ac_cv_type_SYSTEM_LOGICAL_PROCESSOR_INFORMATION" = xyes; then :
20795
20796cat >>confdefs.h <<_ACEOF
20797#define HAVE_SYSTEM_LOGICAL_PROCESSOR_INFORMATION 1
20798_ACEOF
20799
20800
20801fi
20802
20803
20804ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
20805if test "x$ac_cv_type_long_long" = xyes; then :
20806
20807cat >>confdefs.h <<_ACEOF
20808#define HAVE_LONG_LONG 1
20809_ACEOF
20810
20811
20812fi
20813
20814ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
20815if test "x$ac_cv_type_ssize_t" = xyes; then :
20816
20817cat >>confdefs.h <<_ACEOF
20818#define HAVE_SSIZE_T 1
20819_ACEOF
20820
20821
20822fi
20823
20824
20825# The cast to long int works around a bug in the HP C Compiler
20826# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20827# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20828# This bug is HP SR number 8606223364.
20829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
20830$as_echo_n "checking size of void*... " >&6; }
20831if ${ac_cv_sizeof_voidp+:} false; then :
20832  $as_echo_n "(cached) " >&6
20833else
20834  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp"        "$ac_includes_default"; then :
20835
20836else
20837  if test "$ac_cv_type_voidp" = yes; then
20838     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20839$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20840as_fn_error 77 "cannot compute sizeof (void*)
20841See \`config.log' for more details" "$LINENO" 5; }
20842   else
20843     ac_cv_sizeof_voidp=0
20844   fi
20845fi
20846
20847fi
20848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
20849$as_echo "$ac_cv_sizeof_voidp" >&6; }
20850
20851
20852
20853cat >>confdefs.h <<_ACEOF
20854#define SIZEOF_VOIDP $ac_cv_sizeof_voidp
20855_ACEOF
20856
20857
20858# The cast to long int works around a bug in the HP C Compiler
20859# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20860# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20861# This bug is HP SR number 8606223364.
20862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
20863$as_echo_n "checking size of long... " >&6; }
20864if ${ac_cv_sizeof_long+:} false; then :
20865  $as_echo_n "(cached) " >&6
20866else
20867  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
20868
20869else
20870  if test "$ac_cv_type_long" = yes; then
20871     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20872$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20873as_fn_error 77 "cannot compute sizeof (long)
20874See \`config.log' for more details" "$LINENO" 5; }
20875   else
20876     ac_cv_sizeof_long=0
20877   fi
20878fi
20879
20880fi
20881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
20882$as_echo "$ac_cv_sizeof_long" >&6; }
20883
20884
20885
20886cat >>confdefs.h <<_ACEOF
20887#define SIZEOF_LONG $ac_cv_sizeof_long
20888_ACEOF
20889
20890
20891# The cast to long int works around a bug in the HP C Compiler
20892# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20893# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20894# This bug is HP SR number 8606223364.
20895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
20896$as_echo_n "checking size of int... " >&6; }
20897if ${ac_cv_sizeof_int+:} false; then :
20898  $as_echo_n "(cached) " >&6
20899else
20900  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
20901
20902else
20903  if test "$ac_cv_type_int" = yes; then
20904     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20905$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20906as_fn_error 77 "cannot compute sizeof (int)
20907See \`config.log' for more details" "$LINENO" 5; }
20908   else
20909     ac_cv_sizeof_int=0
20910   fi
20911fi
20912
20913fi
20914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
20915$as_echo "$ac_cv_sizeof_int" >&6; }
20916
20917
20918
20919cat >>confdefs.h <<_ACEOF
20920#define SIZEOF_INT $ac_cv_sizeof_int
20921_ACEOF
20922
20923
20924# The cast to long int works around a bug in the HP C Compiler
20925# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20926# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20927# This bug is HP SR number 8606223364.
20928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
20929$as_echo_n "checking size of long long... " >&6; }
20930if ${ac_cv_sizeof_long_long+:} false; then :
20931  $as_echo_n "(cached) " >&6
20932else
20933  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
20934
20935else
20936  if test "$ac_cv_type_long_long" = yes; then
20937     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20938$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20939as_fn_error 77 "cannot compute sizeof (long long)
20940See \`config.log' for more details" "$LINENO" 5; }
20941   else
20942     ac_cv_sizeof_long_long=0
20943   fi
20944fi
20945
20946fi
20947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
20948$as_echo "$ac_cv_sizeof_long_long" >&6; }
20949
20950
20951
20952cat >>confdefs.h <<_ACEOF
20953#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20954_ACEOF
20955
20956
20957# The cast to long int works around a bug in the HP C Compiler
20958# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20959# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20960# This bug is HP SR number 8606223364.
20961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
20962$as_echo_n "checking size of double... " >&6; }
20963if ${ac_cv_sizeof_double+:} false; then :
20964  $as_echo_n "(cached) " >&6
20965else
20966  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then :
20967
20968else
20969  if test "$ac_cv_type_double" = yes; then
20970     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20971$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20972as_fn_error 77 "cannot compute sizeof (double)
20973See \`config.log' for more details" "$LINENO" 5; }
20974   else
20975     ac_cv_sizeof_double=0
20976   fi
20977fi
20978
20979fi
20980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
20981$as_echo "$ac_cv_sizeof_double" >&6; }
20982
20983
20984
20985cat >>confdefs.h <<_ACEOF
20986#define SIZEOF_DOUBLE $ac_cv_sizeof_double
20987_ACEOF
20988
20989
20990# The cast to long int works around a bug in the HP C Compiler
20991# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20992# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20993# This bug is HP SR number 8606223364.
20994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
20995$as_echo_n "checking size of float... " >&6; }
20996if ${ac_cv_sizeof_float+:} false; then :
20997  $as_echo_n "(cached) " >&6
20998else
20999  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float"        "$ac_includes_default"; then :
21000
21001else
21002  if test "$ac_cv_type_float" = yes; then
21003     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21004$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21005as_fn_error 77 "cannot compute sizeof (float)
21006See \`config.log' for more details" "$LINENO" 5; }
21007   else
21008     ac_cv_sizeof_float=0
21009   fi
21010fi
21011
21012fi
21013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
21014$as_echo "$ac_cv_sizeof_float" >&6; }
21015
21016
21017
21018cat >>confdefs.h <<_ACEOF
21019#define SIZEOF_FLOAT $ac_cv_sizeof_float
21020_ACEOF
21021
21022
21023
21024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
21025$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
21026if ${ac_cv_c_bigendian+:} false; then :
21027  $as_echo_n "(cached) " >&6
21028else
21029  ac_cv_c_bigendian=unknown
21030    # See if we're dealing with a universal compiler.
21031    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21032/* end confdefs.h.  */
21033#ifndef __APPLE_CC__
21034	       not a universal capable compiler
21035	     #endif
21036	     typedef int dummy;
21037
21038_ACEOF
21039if ac_fn_c_try_compile "$LINENO"; then :
21040
21041	# Check for potential -arch flags.  It is not universal unless
21042	# there are at least two -arch flags with different values.
21043	ac_arch=
21044	ac_prev=
21045	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
21046	 if test -n "$ac_prev"; then
21047	   case $ac_word in
21048	     i?86 | x86_64 | ppc | ppc64)
21049	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
21050		 ac_arch=$ac_word
21051	       else
21052		 ac_cv_c_bigendian=universal
21053		 break
21054	       fi
21055	       ;;
21056	   esac
21057	   ac_prev=
21058	 elif test "x$ac_word" = "x-arch"; then
21059	   ac_prev=arch
21060	 fi
21061       done
21062fi
21063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21064    if test $ac_cv_c_bigendian = unknown; then
21065      # See if sys/param.h defines the BYTE_ORDER macro.
21066      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21067/* end confdefs.h.  */
21068#include <sys/types.h>
21069	     #include <sys/param.h>
21070
21071int
21072main ()
21073{
21074#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
21075		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
21076		     && LITTLE_ENDIAN)
21077	      bogus endian macros
21078	     #endif
21079
21080  ;
21081  return 0;
21082}
21083_ACEOF
21084if ac_fn_c_try_compile "$LINENO"; then :
21085  # It does; now see whether it defined to BIG_ENDIAN or not.
21086	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21087/* end confdefs.h.  */
21088#include <sys/types.h>
21089		#include <sys/param.h>
21090
21091int
21092main ()
21093{
21094#if BYTE_ORDER != BIG_ENDIAN
21095		 not big endian
21096		#endif
21097
21098  ;
21099  return 0;
21100}
21101_ACEOF
21102if ac_fn_c_try_compile "$LINENO"; then :
21103  ac_cv_c_bigendian=yes
21104else
21105  ac_cv_c_bigendian=no
21106fi
21107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21108fi
21109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21110    fi
21111    if test $ac_cv_c_bigendian = unknown; then
21112      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
21113      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21114/* end confdefs.h.  */
21115#include <limits.h>
21116
21117int
21118main ()
21119{
21120#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
21121	      bogus endian macros
21122	     #endif
21123
21124  ;
21125  return 0;
21126}
21127_ACEOF
21128if ac_fn_c_try_compile "$LINENO"; then :
21129  # It does; now see whether it defined to _BIG_ENDIAN or not.
21130	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21131/* end confdefs.h.  */
21132#include <limits.h>
21133
21134int
21135main ()
21136{
21137#ifndef _BIG_ENDIAN
21138		 not big endian
21139		#endif
21140
21141  ;
21142  return 0;
21143}
21144_ACEOF
21145if ac_fn_c_try_compile "$LINENO"; then :
21146  ac_cv_c_bigendian=yes
21147else
21148  ac_cv_c_bigendian=no
21149fi
21150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21151fi
21152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21153    fi
21154    if test $ac_cv_c_bigendian = unknown; then
21155      # Compile a test program.
21156      if test "$cross_compiling" = yes; then :
21157  # Try to guess by grepping values from an object file.
21158	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21159/* end confdefs.h.  */
21160short int ascii_mm[] =
21161		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21162		short int ascii_ii[] =
21163		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21164		int use_ascii (int i) {
21165		  return ascii_mm[i] + ascii_ii[i];
21166		}
21167		short int ebcdic_ii[] =
21168		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21169		short int ebcdic_mm[] =
21170		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21171		int use_ebcdic (int i) {
21172		  return ebcdic_mm[i] + ebcdic_ii[i];
21173		}
21174		extern int foo;
21175
21176int
21177main ()
21178{
21179return use_ascii (foo) == use_ebcdic (foo);
21180  ;
21181  return 0;
21182}
21183_ACEOF
21184if ac_fn_c_try_compile "$LINENO"; then :
21185  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
21186	      ac_cv_c_bigendian=yes
21187	    fi
21188	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21189	      if test "$ac_cv_c_bigendian" = unknown; then
21190		ac_cv_c_bigendian=no
21191	      else
21192		# finding both strings is unlikely to happen, but who knows?
21193		ac_cv_c_bigendian=unknown
21194	      fi
21195	    fi
21196fi
21197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21198else
21199  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21200/* end confdefs.h.  */
21201$ac_includes_default
21202int
21203main ()
21204{
21205
21206	     /* Are we little or big endian?  From Harbison&Steele.  */
21207	     union
21208	     {
21209	       long int l;
21210	       char c[sizeof (long int)];
21211	     } u;
21212	     u.l = 1;
21213	     return u.c[sizeof (long int) - 1] == 1;
21214
21215  ;
21216  return 0;
21217}
21218_ACEOF
21219if ac_fn_c_try_run "$LINENO"; then :
21220  ac_cv_c_bigendian=no
21221else
21222  ac_cv_c_bigendian=yes
21223fi
21224rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21225  conftest.$ac_objext conftest.beam conftest.$ac_ext
21226fi
21227
21228    fi
21229fi
21230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
21231$as_echo "$ac_cv_c_bigendian" >&6; }
21232 case $ac_cv_c_bigendian in #(
21233   yes)
21234     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
21235;; #(
21236   no)
21237      ;; #(
21238   universal)
21239
21240$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
21241
21242     ;; #(
21243   *)
21244     as_fn_error $? "unknown endianness
21245 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
21246 esac
21247
21248
21249# Checks for library functions.
21250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
21251$as_echo_n "checking for error_at_line... " >&6; }
21252if ${ac_cv_lib_error_at_line+:} false; then :
21253  $as_echo_n "(cached) " >&6
21254else
21255  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21256/* end confdefs.h.  */
21257#include <error.h>
21258int
21259main ()
21260{
21261error_at_line (0, 0, "", 0, "an error occurred");
21262  ;
21263  return 0;
21264}
21265_ACEOF
21266if ac_fn_c_try_link "$LINENO"; then :
21267  ac_cv_lib_error_at_line=yes
21268else
21269  ac_cv_lib_error_at_line=no
21270fi
21271rm -f core conftest.err conftest.$ac_objext \
21272    conftest$ac_exeext conftest.$ac_ext
21273fi
21274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
21275$as_echo "$ac_cv_lib_error_at_line" >&6; }
21276if test $ac_cv_lib_error_at_line = no; then
21277  case " $LIBOBJS " in
21278  *" error.$ac_objext "* ) ;;
21279  *) LIBOBJS="$LIBOBJS error.$ac_objext"
21280 ;;
21281esac
21282
21283fi
21284
21285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
21286$as_echo_n "checking type of array argument to getgroups... " >&6; }
21287if ${ac_cv_type_getgroups+:} false; then :
21288  $as_echo_n "(cached) " >&6
21289else
21290  if test "$cross_compiling" = yes; then :
21291  ac_cv_type_getgroups=cross
21292else
21293  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21294/* end confdefs.h.  */
21295/* Thanks to Mike Rendell for this test.  */
21296$ac_includes_default
21297#define NGID 256
21298#undef MAX
21299#define MAX(x, y) ((x) > (y) ? (x) : (y))
21300
21301int
21302main ()
21303{
21304  gid_t gidset[NGID];
21305  int i, n;
21306  union { gid_t gval; long int lval; }  val;
21307
21308  val.lval = -1;
21309  for (i = 0; i < NGID; i++)
21310    gidset[i] = val.gval;
21311  n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
21312		 gidset);
21313  /* Exit non-zero if getgroups seems to require an array of ints.  This
21314     happens when gid_t is short int but getgroups modifies an array
21315     of ints.  */
21316  return n > 0 && gidset[n] != val.gval;
21317}
21318_ACEOF
21319if ac_fn_c_try_run "$LINENO"; then :
21320  ac_cv_type_getgroups=gid_t
21321else
21322  ac_cv_type_getgroups=int
21323fi
21324rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21325  conftest.$ac_objext conftest.beam conftest.$ac_ext
21326fi
21327
21328if test $ac_cv_type_getgroups = cross; then
21329        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21330/* end confdefs.h.  */
21331#include <unistd.h>
21332
21333_ACEOF
21334if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21335  $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
21336  ac_cv_type_getgroups=gid_t
21337else
21338  ac_cv_type_getgroups=int
21339fi
21340rm -f conftest*
21341
21342fi
21343fi
21344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
21345$as_echo "$ac_cv_type_getgroups" >&6; }
21346
21347cat >>confdefs.h <<_ACEOF
21348#define GETGROUPS_T $ac_cv_type_getgroups
21349_ACEOF
21350
21351
21352ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
21353if test "x$ac_cv_func_getgroups" = xyes; then :
21354
21355fi
21356
21357
21358# If we don't yet have getgroups, see if it's in -lbsd.
21359# This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
21360ac_save_LIBS=$LIBS
21361if test $ac_cv_func_getgroups = no; then
21362  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
21363$as_echo_n "checking for getgroups in -lbsd... " >&6; }
21364if ${ac_cv_lib_bsd_getgroups+:} false; then :
21365  $as_echo_n "(cached) " >&6
21366else
21367  ac_check_lib_save_LIBS=$LIBS
21368LIBS="-lbsd  $LIBS"
21369cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21370/* end confdefs.h.  */
21371
21372/* Override any GCC internal prototype to avoid an error.
21373   Use char because int might match the return type of a GCC
21374   builtin and then its argument prototype would still apply.  */
21375#ifdef __cplusplus
21376extern "C"
21377#endif
21378char getgroups ();
21379int
21380main ()
21381{
21382return getgroups ();
21383  ;
21384  return 0;
21385}
21386_ACEOF
21387if ac_fn_c_try_link "$LINENO"; then :
21388  ac_cv_lib_bsd_getgroups=yes
21389else
21390  ac_cv_lib_bsd_getgroups=no
21391fi
21392rm -f core conftest.err conftest.$ac_objext \
21393    conftest$ac_exeext conftest.$ac_ext
21394LIBS=$ac_check_lib_save_LIBS
21395fi
21396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
21397$as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
21398if test "x$ac_cv_lib_bsd_getgroups" = xyes; then :
21399  GETGROUPS_LIB=-lbsd
21400fi
21401
21402fi
21403
21404# Run the program to test the functionality of the system-supplied
21405# getgroups function only if there is such a function.
21406if test $ac_cv_func_getgroups = yes; then
21407  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
21408$as_echo_n "checking for working getgroups... " >&6; }
21409if ${ac_cv_func_getgroups_works+:} false; then :
21410  $as_echo_n "(cached) " >&6
21411else
21412  if test "$cross_compiling" = yes; then :
21413  ac_cv_func_getgroups_works=no
21414else
21415  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21416/* end confdefs.h.  */
21417$ac_includes_default
21418int
21419main ()
21420{
21421/* On Ultrix 4.3, getgroups (0, 0) always fails.  */
21422       return getgroups (0, 0) == -1;
21423  ;
21424  return 0;
21425}
21426_ACEOF
21427if ac_fn_c_try_run "$LINENO"; then :
21428  ac_cv_func_getgroups_works=yes
21429else
21430  ac_cv_func_getgroups_works=no
21431fi
21432rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21433  conftest.$ac_objext conftest.beam conftest.$ac_ext
21434fi
21435
21436
21437fi
21438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
21439$as_echo "$ac_cv_func_getgroups_works" >&6; }
21440else
21441  ac_cv_func_getgroups_works=no
21442fi
21443if test $ac_cv_func_getgroups_works = yes; then
21444
21445$as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
21446
21447fi
21448LIBS=$ac_save_LIBS
21449
21450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
21451$as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
21452if ${ac_cv_func_getpgrp_void+:} false; then :
21453  $as_echo_n "(cached) " >&6
21454else
21455  # Use it with a single arg.
21456cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21457/* end confdefs.h.  */
21458$ac_includes_default
21459int
21460main ()
21461{
21462getpgrp (0);
21463  ;
21464  return 0;
21465}
21466_ACEOF
21467if ac_fn_c_try_compile "$LINENO"; then :
21468  ac_cv_func_getpgrp_void=no
21469else
21470  ac_cv_func_getpgrp_void=yes
21471fi
21472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21473
21474fi
21475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
21476$as_echo "$ac_cv_func_getpgrp_void" >&6; }
21477if test $ac_cv_func_getpgrp_void = yes; then
21478
21479$as_echo "#define GETPGRP_VOID 1" >>confdefs.h
21480
21481fi
21482
21483if test $ac_cv_c_compiler_gnu = yes; then
21484    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
21485$as_echo_n "checking whether $CC needs -traditional... " >&6; }
21486if ${ac_cv_prog_gcc_traditional+:} false; then :
21487  $as_echo_n "(cached) " >&6
21488else
21489    ac_pattern="Autoconf.*'x'"
21490  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21491/* end confdefs.h.  */
21492#include <sgtty.h>
21493Autoconf TIOCGETP
21494_ACEOF
21495if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21496  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
21497  ac_cv_prog_gcc_traditional=yes
21498else
21499  ac_cv_prog_gcc_traditional=no
21500fi
21501rm -f conftest*
21502
21503
21504  if test $ac_cv_prog_gcc_traditional = no; then
21505    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21506/* end confdefs.h.  */
21507#include <termio.h>
21508Autoconf TCGETA
21509_ACEOF
21510if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21511  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
21512  ac_cv_prog_gcc_traditional=yes
21513fi
21514rm -f conftest*
21515
21516  fi
21517fi
21518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
21519$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21520  if test $ac_cv_prog_gcc_traditional = yes; then
21521    CC="$CC -traditional"
21522  fi
21523fi
21524
21525for ac_header in sys/select.h sys/socket.h
21526do :
21527  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21528ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21529if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21530  cat >>confdefs.h <<_ACEOF
21531#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21532_ACEOF
21533
21534fi
21535
21536done
21537
21538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
21539$as_echo_n "checking types of arguments for select... " >&6; }
21540if ${ac_cv_func_select_args+:} false; then :
21541  $as_echo_n "(cached) " >&6
21542else
21543  for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
21544 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
21545  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
21546   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21547/* end confdefs.h.  */
21548$ac_includes_default
21549#ifdef HAVE_SYS_SELECT_H
21550# include <sys/select.h>
21551#endif
21552#ifdef HAVE_SYS_SOCKET_H
21553# include <sys/socket.h>
21554#endif
21555
21556int
21557main ()
21558{
21559extern int select ($ac_arg1,
21560					    $ac_arg234, $ac_arg234, $ac_arg234,
21561					    $ac_arg5);
21562  ;
21563  return 0;
21564}
21565_ACEOF
21566if ac_fn_c_try_compile "$LINENO"; then :
21567  ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
21568fi
21569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21570  done
21571 done
21572done
21573# Provide a safe default value.
21574: "${ac_cv_func_select_args=int,int *,struct timeval *}"
21575
21576fi
21577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
21578$as_echo "$ac_cv_func_select_args" >&6; }
21579ac_save_IFS=$IFS; IFS=','
21580set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
21581IFS=$ac_save_IFS
21582shift
21583
21584cat >>confdefs.h <<_ACEOF
21585#define SELECT_TYPE_ARG1 $1
21586_ACEOF
21587
21588
21589cat >>confdefs.h <<_ACEOF
21590#define SELECT_TYPE_ARG234 ($2)
21591_ACEOF
21592
21593
21594cat >>confdefs.h <<_ACEOF
21595#define SELECT_TYPE_ARG5 ($3)
21596_ACEOF
21597
21598rm -f conftest*
21599
21600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
21601$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
21602if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
21603  $as_echo_n "(cached) " >&6
21604else
21605  rm -f conftest.sym conftest.file
21606echo >conftest.file
21607if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
21608  if test "$cross_compiling" = yes; then :
21609  ac_cv_func_lstat_dereferences_slashed_symlink=no
21610else
21611  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21612/* end confdefs.h.  */
21613$ac_includes_default
21614int
21615main ()
21616{
21617struct stat sbuf;
21618     /* Linux will dereference the symlink and fail, as required by POSIX.
21619	That is better in the sense that it means we will not
21620	have to compile and use the lstat wrapper.  */
21621     return lstat ("conftest.sym/", &sbuf) == 0;
21622  ;
21623  return 0;
21624}
21625_ACEOF
21626if ac_fn_c_try_run "$LINENO"; then :
21627  ac_cv_func_lstat_dereferences_slashed_symlink=yes
21628else
21629  ac_cv_func_lstat_dereferences_slashed_symlink=no
21630fi
21631rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21632  conftest.$ac_objext conftest.beam conftest.$ac_ext
21633fi
21634
21635else
21636  # If the `ln -s' command failed, then we probably don't even
21637  # have an lstat function.
21638  ac_cv_func_lstat_dereferences_slashed_symlink=no
21639fi
21640rm -f conftest.sym conftest.file
21641
21642fi
21643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
21644$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
21645
21646test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
21647
21648cat >>confdefs.h <<_ACEOF
21649#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
21650_ACEOF
21651
21652
21653if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
21654  case " $LIBOBJS " in
21655  *" lstat.$ac_objext "* ) ;;
21656  *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
21657 ;;
21658esac
21659
21660fi
21661
21662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
21663$as_echo_n "checking whether stat accepts an empty string... " >&6; }
21664if ${ac_cv_func_stat_empty_string_bug+:} false; then :
21665  $as_echo_n "(cached) " >&6
21666else
21667  if test "$cross_compiling" = yes; then :
21668  ac_cv_func_stat_empty_string_bug=yes
21669else
21670  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21671/* end confdefs.h.  */
21672$ac_includes_default
21673int
21674main ()
21675{
21676struct stat sbuf;
21677  return stat ("", &sbuf) == 0;
21678  ;
21679  return 0;
21680}
21681_ACEOF
21682if ac_fn_c_try_run "$LINENO"; then :
21683  ac_cv_func_stat_empty_string_bug=no
21684else
21685  ac_cv_func_stat_empty_string_bug=yes
21686fi
21687rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21688  conftest.$ac_objext conftest.beam conftest.$ac_ext
21689fi
21690
21691fi
21692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
21693$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
21694if test $ac_cv_func_stat_empty_string_bug = yes; then
21695  case " $LIBOBJS " in
21696  *" stat.$ac_objext "* ) ;;
21697  *) LIBOBJS="$LIBOBJS stat.$ac_objext"
21698 ;;
21699esac
21700
21701
21702cat >>confdefs.h <<_ACEOF
21703#define HAVE_STAT_EMPTY_STRING_BUG 1
21704_ACEOF
21705
21706fi
21707
21708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
21709$as_echo_n "checking for working strtod... " >&6; }
21710if ${ac_cv_func_strtod+:} false; then :
21711  $as_echo_n "(cached) " >&6
21712else
21713  if test "$cross_compiling" = yes; then :
21714  ac_cv_func_strtod=no
21715else
21716  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21717/* end confdefs.h.  */
21718
21719$ac_includes_default
21720#ifndef strtod
21721double strtod ();
21722#endif
21723int
21724main()
21725{
21726  {
21727    /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
21728    char *string = " +69";
21729    char *term;
21730    double value;
21731    value = strtod (string, &term);
21732    if (value != 69 || term != (string + 4))
21733      return 1;
21734  }
21735
21736  {
21737    /* Under Solaris 2.4, strtod returns the wrong value for the
21738       terminating character under some conditions.  */
21739    char *string = "NaN";
21740    char *term;
21741    strtod (string, &term);
21742    if (term != string && *(term - 1) == 0)
21743      return 1;
21744  }
21745  return 0;
21746}
21747
21748_ACEOF
21749if ac_fn_c_try_run "$LINENO"; then :
21750  ac_cv_func_strtod=yes
21751else
21752  ac_cv_func_strtod=no
21753fi
21754rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21755  conftest.$ac_objext conftest.beam conftest.$ac_ext
21756fi
21757
21758fi
21759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
21760$as_echo "$ac_cv_func_strtod" >&6; }
21761if test $ac_cv_func_strtod = no; then
21762  case " $LIBOBJS " in
21763  *" strtod.$ac_objext "* ) ;;
21764  *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
21765 ;;
21766esac
21767
21768ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
21769if test "x$ac_cv_func_pow" = xyes; then :
21770
21771fi
21772
21773if test $ac_cv_func_pow = no; then
21774  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
21775$as_echo_n "checking for pow in -lm... " >&6; }
21776if ${ac_cv_lib_m_pow+:} false; then :
21777  $as_echo_n "(cached) " >&6
21778else
21779  ac_check_lib_save_LIBS=$LIBS
21780LIBS="-lm  $LIBS"
21781cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21782/* end confdefs.h.  */
21783
21784/* Override any GCC internal prototype to avoid an error.
21785   Use char because int might match the return type of a GCC
21786   builtin and then its argument prototype would still apply.  */
21787#ifdef __cplusplus
21788extern "C"
21789#endif
21790char pow ();
21791int
21792main ()
21793{
21794return pow ();
21795  ;
21796  return 0;
21797}
21798_ACEOF
21799if ac_fn_c_try_link "$LINENO"; then :
21800  ac_cv_lib_m_pow=yes
21801else
21802  ac_cv_lib_m_pow=no
21803fi
21804rm -f core conftest.err conftest.$ac_objext \
21805    conftest$ac_exeext conftest.$ac_ext
21806LIBS=$ac_check_lib_save_LIBS
21807fi
21808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
21809$as_echo "$ac_cv_lib_m_pow" >&6; }
21810if test "x$ac_cv_lib_m_pow" = xyes; then :
21811  POW_LIB=-lm
21812else
21813  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
21814$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
21815fi
21816
21817fi
21818
21819fi
21820
21821for ac_func in dlopen strtod dtoa getpagesize sigaltstack mmap mkstemp
21822do :
21823  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21824ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21825if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21826  cat >>confdefs.h <<_ACEOF
21827#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21828_ACEOF
21829
21830fi
21831done
21832
21833## There does not seem to be a declaration for fpsetmask in mingw64.
21834ac_fn_c_check_decl "$LINENO" "fpsetmask" "ac_cv_have_decl_fpsetmask" "#include <ieeefp.h>
21835"
21836if test "x$ac_cv_have_decl_fpsetmask" = xyes; then :
21837  ac_have_decl=1
21838else
21839  ac_have_decl=0
21840fi
21841
21842cat >>confdefs.h <<_ACEOF
21843#define HAVE_DECL_FPSETMASK $ac_have_decl
21844_ACEOF
21845
21846for ac_func in sysctl sysctlbyname
21847do :
21848  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21849ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21850if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21851  cat >>confdefs.h <<_ACEOF
21852#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21853_ACEOF
21854
21855fi
21856done
21857
21858for ac_func in localtime_r gmtime_r
21859do :
21860  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21861ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21862if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21863  cat >>confdefs.h <<_ACEOF
21864#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21865_ACEOF
21866
21867fi
21868done
21869
21870for ac_func in ctermid tcdrain
21871do :
21872  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21873ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21874if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21875  cat >>confdefs.h <<_ACEOF
21876#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21877_ACEOF
21878
21879fi
21880done
21881
21882for ac_func in _ftelli64
21883do :
21884  ac_fn_c_check_func "$LINENO" "_ftelli64" "ac_cv_func__ftelli64"
21885if test "x$ac_cv_func__ftelli64" = xyes; then :
21886  cat >>confdefs.h <<_ACEOF
21887#define HAVE__FTELLI64 1
21888_ACEOF
21889
21890fi
21891done
21892
21893
21894# Where are the registers when we get a signal?  Used in time profiling.
21895#Linux:
21896ac_fn_c_check_member "$LINENO" "mcontext_t" "gregs" "ac_cv_member_mcontext_t_gregs" "#include \"ucontext.h\"
21897"
21898if test "x$ac_cv_member_mcontext_t_gregs" = xyes; then :
21899
21900cat >>confdefs.h <<_ACEOF
21901#define HAVE_MCONTEXT_T_GREGS 1
21902_ACEOF
21903
21904
21905fi
21906ac_fn_c_check_member "$LINENO" "mcontext_t" "regs" "ac_cv_member_mcontext_t_regs" "#include \"ucontext.h\"
21907"
21908if test "x$ac_cv_member_mcontext_t_regs" = xyes; then :
21909
21910cat >>confdefs.h <<_ACEOF
21911#define HAVE_MCONTEXT_T_REGS 1
21912_ACEOF
21913
21914
21915fi
21916ac_fn_c_check_member "$LINENO" "mcontext_t" "mc_esp" "ac_cv_member_mcontext_t_mc_esp" "#include \"ucontext.h\"
21917"
21918if test "x$ac_cv_member_mcontext_t_mc_esp" = xyes; then :
21919
21920cat >>confdefs.h <<_ACEOF
21921#define HAVE_MCONTEXT_T_MC_ESP 1
21922_ACEOF
21923
21924
21925fi
21926
21927#Mac OS X:
21928ac_fn_c_check_member "$LINENO" "struct mcontext" "ss" "ac_cv_member_struct_mcontext_ss" "#include \"signal.h\"
21929#include \"ucontext.h\"
21930"
21931if test "x$ac_cv_member_struct_mcontext_ss" = xyes; then :
21932
21933cat >>confdefs.h <<_ACEOF
21934#define HAVE_STRUCT_MCONTEXT_SS 1
21935_ACEOF
21936
21937
21938fi
21939ac_fn_c_check_member "$LINENO" "struct __darwin_mcontext" "ss" "ac_cv_member_struct___darwin_mcontext_ss" "#include \"signal.h\"
21940#include \"ucontext.h\"
21941"
21942if test "x$ac_cv_member_struct___darwin_mcontext_ss" = xyes; then :
21943
21944cat >>confdefs.h <<_ACEOF
21945#define HAVE_STRUCT___DARWIN_MCONTEXT_SS 1
21946_ACEOF
21947
21948
21949fi
21950ac_fn_c_check_member "$LINENO" "struct __darwin_mcontext" "__ss" "ac_cv_member_struct___darwin_mcontext___ss" "#include \"signal.h\"
21951#include \"ucontext.h\"
21952"
21953if test "x$ac_cv_member_struct___darwin_mcontext___ss" = xyes; then :
21954
21955cat >>confdefs.h <<_ACEOF
21956#define HAVE_STRUCT___DARWIN_MCONTEXT___SS 1
21957_ACEOF
21958
21959
21960fi
21961ac_fn_c_check_member "$LINENO" "struct __darwin_mcontext32" "ss" "ac_cv_member_struct___darwin_mcontext32_ss" "#include \"signal.h\"
21962#include \"ucontext.h\"
21963"
21964if test "x$ac_cv_member_struct___darwin_mcontext32_ss" = xyes; then :
21965
21966cat >>confdefs.h <<_ACEOF
21967#define HAVE_STRUCT___DARWIN_MCONTEXT32_SS 1
21968_ACEOF
21969
21970
21971fi
21972ac_fn_c_check_member "$LINENO" "struct __darwin_mcontext32" "__ss" "ac_cv_member_struct___darwin_mcontext32___ss" "#include \"signal.h\"
21973#include \"ucontext.h\"
21974"
21975if test "x$ac_cv_member_struct___darwin_mcontext32___ss" = xyes; then :
21976
21977cat >>confdefs.h <<_ACEOF
21978#define HAVE_STRUCT___DARWIN_MCONTEXT32___SS 1
21979_ACEOF
21980
21981
21982fi
21983ac_fn_c_check_member "$LINENO" "struct __darwin_mcontext64" "ss" "ac_cv_member_struct___darwin_mcontext64_ss" "#include \"signal.h\"
21984#include \"ucontext.h\"
21985"
21986if test "x$ac_cv_member_struct___darwin_mcontext64_ss" = xyes; then :
21987
21988cat >>confdefs.h <<_ACEOF
21989#define HAVE_STRUCT___DARWIN_MCONTEXT64_SS 1
21990_ACEOF
21991
21992
21993fi
21994ac_fn_c_check_member "$LINENO" "struct __darwin_mcontext64" "__ss" "ac_cv_member_struct___darwin_mcontext64___ss" "#include \"signal.h\"
21995#include \"ucontext.h\"
21996"
21997if test "x$ac_cv_member_struct___darwin_mcontext64___ss" = xyes; then :
21998
21999cat >>confdefs.h <<_ACEOF
22000#define HAVE_STRUCT___DARWIN_MCONTEXT64___SS 1
22001_ACEOF
22002
22003
22004fi
22005
22006
22007# FreeBSD includes a sun_len member in struct sockaddr_un
22008ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#include <sys/un.h>
22009"
22010if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
22011
22012cat >>confdefs.h <<_ACEOF
22013#define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
22014_ACEOF
22015
22016
22017fi
22018
22019
22020# This option enables the native code generator.  More precisely it allows
22021# the byte code interpreter to be built on X86.
22022
22023# Check whether --enable-native-codegeneration was given.
22024if test "${enable_native_codegeneration+set}" = set; then :
22025  enableval=$enable_native_codegeneration; case "${enableval}" in
22026           no)  with_portable=yes ;;
22027           yes) with_portable=no ;;
22028           *) as_fn_error $? "bad value ${enableval} for --enable-native-codegeneration" "$LINENO" 5 ;;
22029        esac
22030else
22031  with_portable=check
22032fi
22033
22034
22035# Check which CPU we're building for.  Can we use a native pre-built compiler
22036# or do we need to fall back to the interpreter?  Most of these settings are to tweak
22037# the ELF exporter.
22038
22039case "${host_cpu}" in
22040      i[3456]86*)
22041
22042$as_echo "#define HOSTARCHITECTURE_X86 1" >>confdefs.h
22043
22044            polyarch=i386
22045            ;;
22046      x86_64* | amd64*)
22047            if test X"$ac_cv_sizeof_voidp" = X8; then
22048
22049$as_echo "#define HOSTARCHITECTURE_X86_64 1" >>confdefs.h
22050
22051                polyarch=x86_64
22052            else
22053
22054$as_echo "#define HOSTARCHITECTURE_X32 1" >>confdefs.h
22055
22056                polyarch=interpret
22057            fi
22058            ;;
22059      sparc64*)
22060
22061$as_echo "#define HOSTARCHITECTURE_SPARC64 1" >>confdefs.h
22062
22063            polyarch=interpret
22064            ;;
22065      sparc*)
22066
22067$as_echo "#define HOSTARCHITECTURE_SPARC 1" >>confdefs.h
22068
22069            polyarch=interpret
22070            ;;
22071      powerpc64* | ppc64*)
22072
22073$as_echo "#define HOSTARCHITECTURE_PPC64 1" >>confdefs.h
22074
22075            polyarch=interpret
22076            ;;
22077      power* | ppc*)
22078
22079$as_echo "#define HOSTARCHITECTURE_PPC 1" >>confdefs.h
22080
22081            polyarch=interpret
22082            ;;
22083      arm*)
22084
22085$as_echo "#define HOSTARCHITECTURE_ARM 1" >>confdefs.h
22086
22087            polyarch=interpret
22088            ;;
22089      aarch64*)
22090
22091$as_echo "#define HOSTARCHITECTURE_AARCH64 1" >>confdefs.h
22092
22093            polyarch=interpret
22094            ;;
22095      hppa*)
22096
22097$as_echo "#define HOSTARCHITECTURE_HPPA 1" >>confdefs.h
22098
22099            polyarch=interpret
22100            ;;
22101      ia64*)
22102
22103$as_echo "#define HOSTARCHITECTURE_IA64 1" >>confdefs.h
22104
22105            polyarch=interpret
22106            ;;
22107      m68k*)
22108
22109$as_echo "#define HOSTARCHITECTURE_M68K 1" >>confdefs.h
22110
22111            polyarch=interpret
22112            ;;
22113      mips64*)
22114
22115$as_echo "#define HOSTARCHITECTURE_MIPS64 1" >>confdefs.h
22116
22117            polyarch=interpret
22118            ;;
22119      mips*)
22120
22121$as_echo "#define HOSTARCHITECTURE_MIPS 1" >>confdefs.h
22122
22123            polyarch=interpret
22124            ;;
22125      s390x*)
22126
22127$as_echo "#define HOSTARCHITECTURE_S390X 1" >>confdefs.h
22128
22129            polyarch=interpret
22130            ;;
22131      s390*)
22132
22133$as_echo "#define HOSTARCHITECTURE_S390 1" >>confdefs.h
22134
22135            polyarch=interpret
22136            ;;
22137      sh*)
22138
22139$as_echo "#define HOSTARCHITECTURE_SH 1" >>confdefs.h
22140
22141            polyarch=interpret
22142            ;;
22143      alpha*)
22144
22145$as_echo "#define HOSTARCHITECTURE_ALPHA 1" >>confdefs.h
22146
22147            polyarch=interpret
22148            # GCC defaults to non-conforming floating-point, and does not respect the rounding mode
22149            # in the floating-point control register, so we force it to conform to IEEE and use the
22150            # dynamic suffix on the floating-point instructions it produces.
22151            CFLAGS="$CFLAGS -mieee -mfp-rounding-mode=d"
22152            CXXFLAGS="$CXXFLAGS -mieee -mfp-rounding-mode=d"
22153            ;;
22154      riscv32)
22155
22156$as_echo "#define HOSTARCHITECTURE_RISCV32 1" >>confdefs.h
22157
22158            polyarch=interpret
22159            ;;
22160      riscv64)
22161
22162$as_echo "#define HOSTARCHITECTURE_RISCV64 1" >>confdefs.h
22163
22164            polyarch=interpret
22165            ;;
22166      *) as_fn_error $? "Poly/ML is not supported for this architecture" "$LINENO" 5 ;;
22167esac
22168
22169# If we explicitly asked to use the interpreter set the architecture to interpreted.
22170if test "x$with_portable" = "xyes" ; then
22171    if test "x$polyarch" != "xinterpret" ; then
22172        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *******You have disabled native code generation.  Are you really sure you want to do that?*******" >&5
22173$as_echo "$as_me: WARNING: *******You have disabled native code generation.  Are you really sure you want to do that?*******" >&2;}
22174    fi
22175    polyarch=interpret
22176fi
22177
22178# If we asked not to use the interpreter check we have native code support.
22179if test "x$with_portable" = "xno" ; then
22180    if test "x$polyarch" = "xinterpret" ; then
22181        as_fn_error $? "--enable-native-codegeneration was given but native code is not supported on this platform" "$LINENO" 5
22182    fi
22183fi
22184
22185# Build 32-bit in 64-bits.  This is only allowed when building on native 64-bit X86.
22186# Check whether --enable-compact32bit was given.
22187if test "${enable_compact32bit+set}" = set; then :
22188  enableval=$enable_compact32bit;
22189fi
22190
22191
22192if test "x$enable_compact32bit" = "xyes"; then
22193    if test X"$polyarch" = "Xx86_64" ; then
22194
22195$as_echo "#define POLYML32IN64 1" >>confdefs.h
22196
22197        polyarch=x86_32in64
22198    else
22199        as_fn_error $? "--enable-compact32bit is only available on X86/64" "$LINENO" 5
22200   fi
22201fi
22202
22203# Put this test at the end where it's less likely to be missed.
22204# If we're compiling on Cygwin (and mingw?) and /usr/bin/file is not present
22205# the link step will produce some strange warning messages of the form:
22206# "Warning: linker path does not have real file for library -lXXX".  I think
22207# that's really a bug in autoconf but to explain what's happening to the user
22208# add a test here.
22209if test "$lt_cv_file_magic_cmd" = "func_win32_libid";
22210then
22211    if test \! -x /usr/bin/file;
22212    then
22213        echo ""
22214        echo "*** Warning: You are building Poly/ML on Cygwin/Mingw but '/usr/bin/file' cannot be found."
22215        echo "*** You can still go ahead and build Poly/ML but libpolyml will not be built as a"
22216        echo "*** shared library and you may get strange warning messages from the linker step."
22217        echo "*** Install the 'file' package to correct this problem."
22218        echo ""
22219    fi
22220fi
22221
22222 if test "$polyarch" = i386; then
22223  ARCHI386_TRUE=
22224  ARCHI386_FALSE='#'
22225else
22226  ARCHI386_TRUE='#'
22227  ARCHI386_FALSE=
22228fi
22229
22230 if test "$polyarch" = x86_64; then
22231  ARCHX86_64_TRUE=
22232  ARCHX86_64_FALSE='#'
22233else
22234  ARCHX86_64_TRUE='#'
22235  ARCHX86_64_FALSE=
22236fi
22237
22238 if test "$polyarch" = interpret -a X"$ac_cv_sizeof_voidp" = X4; then
22239  ARCHINTERPRET_TRUE=
22240  ARCHINTERPRET_FALSE='#'
22241else
22242  ARCHINTERPRET_TRUE='#'
22243  ARCHINTERPRET_FALSE=
22244fi
22245
22246 if test "$polyarch" = interpret -a X"$ac_cv_sizeof_voidp" = X8; then
22247  ARCHINTERPRET64_TRUE=
22248  ARCHINTERPRET64_FALSE='#'
22249else
22250  ARCHINTERPRET64_TRUE='#'
22251  ARCHINTERPRET64_FALSE=
22252fi
22253
22254 if test "$polyarch" = x86_32in64; then
22255  ARCHX8632IN64_TRUE=
22256  ARCHX8632IN64_FALSE='#'
22257else
22258  ARCHX8632IN64_TRUE='#'
22259  ARCHX8632IN64_FALSE=
22260fi
22261
22262# If we are targeting Windows rather than *nix we need the pre=built compiler with Windows conventions.
22263 if test "$poly_use_windowscc" = yes; then
22264  WINDOWSCALLCONV_TRUE=
22265  WINDOWSCALLCONV_FALSE='#'
22266else
22267  WINDOWSCALLCONV_TRUE='#'
22268  WINDOWSCALLCONV_FALSE=
22269fi
22270
22271
22272# This is true if we are building for native Windows rather than Cygwin
22273 if test "$poly_native_windows" = yes; then
22274  NATIVE_WINDOWS_TRUE=
22275  NATIVE_WINDOWS_FALSE='#'
22276else
22277  NATIVE_WINDOWS_TRUE='#'
22278  NATIVE_WINDOWS_FALSE=
22279fi
22280
22281 if test "$poly_no_undefined" = yes; then
22282  NO_UNDEFINED_TRUE=
22283  NO_UNDEFINED_FALSE='#'
22284else
22285  NO_UNDEFINED_TRUE='#'
22286  NO_UNDEFINED_FALSE=
22287fi
22288
22289 if test x$poly_windows_enablegui = xtrue; then
22290  WINDOWSGUI_TRUE=
22291  WINDOWSGUI_FALSE='#'
22292else
22293  WINDOWSGUI_TRUE='#'
22294  WINDOWSGUI_FALSE=
22295fi
22296
22297
22298 if test "$poly_need_macosopt" = yes ; then
22299  MACOSLDOPTS_TRUE=
22300  MACOSLDOPTS_FALSE='#'
22301else
22302  MACOSLDOPTS_TRUE='#'
22303  MACOSLDOPTS_FALSE=
22304fi
22305
22306
22307# If we're building only the static version of libpolyml
22308# then polyc and polyml.pc have to include the dependent libraries.
22309dependentlibs=""
22310if test "${enable_shared}" != yes; then
22311    dependentlibs=${LIBS}
22312fi
22313
22314dependentlibs="$dependentlibs"
22315
22316
22317# Test whether this is a git directory and set the version if possible
22318# Extract the first word of "git", so it can be a program name with args.
22319set dummy git; ac_word=$2
22320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22321$as_echo_n "checking for $ac_word... " >&6; }
22322if ${ac_cv_prog_gitinstalled+:} false; then :
22323  $as_echo_n "(cached) " >&6
22324else
22325  if test -n "$gitinstalled"; then
22326  ac_cv_prog_gitinstalled="$gitinstalled" # Let the user override the test.
22327else
22328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22329for as_dir in $PATH
22330do
22331  IFS=$as_save_IFS
22332  test -z "$as_dir" && as_dir=.
22333    for ac_exec_ext in '' $ac_executable_extensions; do
22334  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22335    ac_cv_prog_gitinstalled="yes"
22336    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22337    break 2
22338  fi
22339done
22340  done
22341IFS=$as_save_IFS
22342
22343  test -z "$ac_cv_prog_gitinstalled" && ac_cv_prog_gitinstalled="no"
22344fi
22345fi
22346gitinstalled=$ac_cv_prog_gitinstalled
22347if test -n "$gitinstalled"; then
22348  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gitinstalled" >&5
22349$as_echo "$gitinstalled" >&6; }
22350else
22351  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22352$as_echo "no" >&6; }
22353fi
22354
22355
22356if test X"$gitinstalled" = "Xyes" -a -d ".git"; then
22357    GIT_VERSION='-DGIT_VERSION=\"$(shell git describe --tags --always)\"'
22358
22359fi
22360
22361# Strip -fdebug-prefix-map= from CFLAGS; it's meaningless for users of polyc,
22362# and hurts reproducibility.
22363polyc_CFLAGS=
22364for cflag in $CFLAGS; do
22365    cflag="${cflag##-fdebug-prefix-map=*}"
22366    if test -n "$cflag"; then
22367        if test -n "$polyc_CFLAGS"; then
22368            polyc_CFLAGS="$polyc_CFLAGS $cflag"
22369        else
22370            polyc_CFLAGS="$cflag"
22371        fi
22372    fi
22373done
22374polyc_CFLAGS="$polyc_CFLAGS"
22375
22376
22377# Modules directory
22378
22379# Check whether --with-moduledir was given.
22380if test "${with_moduledir+set}" = set; then :
22381  withval=$with_moduledir; moduledir=$withval
22382else
22383  moduledir="\${libdir}/polyml/modules"
22384fi
22385
22386moduledir=$moduledir
22387
22388
22389# Control whether to build the basis library with arbitrary precision as the default int
22390# Check whether --enable-intinf-as-int was given.
22391if test "${enable_intinf_as_int+set}" = set; then :
22392  enableval=$enable_intinf_as_int; case "${enableval}" in
22393       no) intisintinf=no ;;
22394       yes) intisintinf=yes ;;
22395       *) as_fn_error $? "bad value ${enableval} for --enable-intinf-as-int" "$LINENO" 5 ;;
22396        esac
22397else
22398  intisintinf=no
22399fi
22400
22401
22402 if test "$intisintinf" = "yes"; then
22403  INTINFISINT_TRUE=
22404  INTINFISINT_FALSE='#'
22405else
22406  INTINFISINT_TRUE='#'
22407  INTINFISINT_FALSE=
22408fi
22409
22410
22411# These are needed for building in a separate build directory, as they are
22412# referenced from exportPoly.sml.
22413ac_config_commands="$ac_config_commands basis"
22414
22415ac_config_commands="$ac_config_commands mlsource"
22416
22417
22418ac_config_files="$ac_config_files Makefile libpolyml/Makefile libpolyml/polyml.pc libpolymain/Makefile modules/Makefile modules/IntInfAsInt/Makefile"
22419
22420ac_config_files="$ac_config_files polyc"
22421
22422
22423cat >confcache <<\_ACEOF
22424# This file is a shell script that caches the results of configure
22425# tests run on this system so they can be shared between configure
22426# scripts and configure runs, see configure's option --config-cache.
22427# It is not useful on other systems.  If it contains results you don't
22428# want to keep, you may remove or edit it.
22429#
22430# config.status only pays attention to the cache file if you give it
22431# the --recheck option to rerun configure.
22432#
22433# `ac_cv_env_foo' variables (set or unset) will be overridden when
22434# loading this file, other *unset* `ac_cv_foo' will be assigned the
22435# following values.
22436
22437_ACEOF
22438
22439# The following way of writing the cache mishandles newlines in values,
22440# but we know of no workaround that is simple, portable, and efficient.
22441# So, we kill variables containing newlines.
22442# Ultrix sh set writes to stderr and can't be redirected directly,
22443# and sets the high bit in the cache file unless we assign to the vars.
22444(
22445  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22446    eval ac_val=\$$ac_var
22447    case $ac_val in #(
22448    *${as_nl}*)
22449      case $ac_var in #(
22450      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22451$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22452      esac
22453      case $ac_var in #(
22454      _ | IFS | as_nl) ;; #(
22455      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22456      *) { eval $ac_var=; unset $ac_var;} ;;
22457      esac ;;
22458    esac
22459  done
22460
22461  (set) 2>&1 |
22462    case $as_nl`(ac_space=' '; set) 2>&1` in #(
22463    *${as_nl}ac_space=\ *)
22464      # `set' does not quote correctly, so add quotes: double-quote
22465      # substitution turns \\\\ into \\, and sed turns \\ into \.
22466      sed -n \
22467	"s/'/'\\\\''/g;
22468	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22469      ;; #(
22470    *)
22471      # `set' quotes correctly as required by POSIX, so do not add quotes.
22472      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22473      ;;
22474    esac |
22475    sort
22476) |
22477  sed '
22478     /^ac_cv_env_/b end
22479     t clear
22480     :clear
22481     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22482     t end
22483     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22484     :end' >>confcache
22485if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22486  if test -w "$cache_file"; then
22487    if test "x$cache_file" != "x/dev/null"; then
22488      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22489$as_echo "$as_me: updating cache $cache_file" >&6;}
22490      if test ! -f "$cache_file" || test -h "$cache_file"; then
22491	cat confcache >"$cache_file"
22492      else
22493        case $cache_file in #(
22494        */* | ?:*)
22495	  mv -f confcache "$cache_file"$$ &&
22496	  mv -f "$cache_file"$$ "$cache_file" ;; #(
22497        *)
22498	  mv -f confcache "$cache_file" ;;
22499	esac
22500      fi
22501    fi
22502  else
22503    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22504$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22505  fi
22506fi
22507rm -f confcache
22508
22509test "x$prefix" = xNONE && prefix=$ac_default_prefix
22510# Let make expand exec_prefix.
22511test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22512
22513DEFS=-DHAVE_CONFIG_H
22514
22515ac_libobjs=
22516ac_ltlibobjs=
22517U=
22518for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22519  # 1. Remove the extension, and $U if already installed.
22520  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22521  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22522  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22523  #    will be set to the directory where LIBOBJS objects are built.
22524  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22525  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22526done
22527LIBOBJS=$ac_libobjs
22528
22529LTLIBOBJS=$ac_ltlibobjs
22530
22531
22532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
22533$as_echo_n "checking that generated files are newer than configure... " >&6; }
22534   if test -n "$am_sleep_pid"; then
22535     # Hide warnings about reused PIDs.
22536     wait $am_sleep_pid 2>/dev/null
22537   fi
22538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
22539$as_echo "done" >&6; }
22540 if test -n "$EXEEXT"; then
22541  am__EXEEXT_TRUE=
22542  am__EXEEXT_FALSE='#'
22543else
22544  am__EXEEXT_TRUE='#'
22545  am__EXEEXT_FALSE=
22546fi
22547
22548if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22549  as_fn_error $? "conditional \"AMDEP\" was never defined.
22550Usually this means the macro was only invoked conditionally." "$LINENO" 5
22551fi
22552if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22553  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22554Usually this means the macro was only invoked conditionally." "$LINENO" 5
22555fi
22556if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22557  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
22558Usually this means the macro was only invoked conditionally." "$LINENO" 5
22559fi
22560if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22561  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
22562Usually this means the macro was only invoked conditionally." "$LINENO" 5
22563fi
22564if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22565  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22566Usually this means the macro was only invoked conditionally." "$LINENO" 5
22567fi
22568if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
22569  as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
22570Usually this means the macro was only invoked conditionally." "$LINENO" 5
22571fi
22572if test -z "${EXPPECOFF_TRUE}" && test -z "${EXPPECOFF_FALSE}"; then
22573  as_fn_error $? "conditional \"EXPPECOFF\" was never defined.
22574Usually this means the macro was only invoked conditionally." "$LINENO" 5
22575fi
22576if test -z "${EXPELF_TRUE}" && test -z "${EXPELF_FALSE}"; then
22577  as_fn_error $? "conditional \"EXPELF\" was never defined.
22578Usually this means the macro was only invoked conditionally." "$LINENO" 5
22579fi
22580if test -z "${EXPMACHO_TRUE}" && test -z "${EXPMACHO_FALSE}"; then
22581  as_fn_error $? "conditional \"EXPMACHO\" was never defined.
22582Usually this means the macro was only invoked conditionally." "$LINENO" 5
22583fi
22584
22585if test -z "${ARCHI386_TRUE}" && test -z "${ARCHI386_FALSE}"; then
22586  as_fn_error $? "conditional \"ARCHI386\" was never defined.
22587Usually this means the macro was only invoked conditionally." "$LINENO" 5
22588fi
22589if test -z "${ARCHX86_64_TRUE}" && test -z "${ARCHX86_64_FALSE}"; then
22590  as_fn_error $? "conditional \"ARCHX86_64\" was never defined.
22591Usually this means the macro was only invoked conditionally." "$LINENO" 5
22592fi
22593if test -z "${ARCHINTERPRET_TRUE}" && test -z "${ARCHINTERPRET_FALSE}"; then
22594  as_fn_error $? "conditional \"ARCHINTERPRET\" was never defined.
22595Usually this means the macro was only invoked conditionally." "$LINENO" 5
22596fi
22597if test -z "${ARCHINTERPRET64_TRUE}" && test -z "${ARCHINTERPRET64_FALSE}"; then
22598  as_fn_error $? "conditional \"ARCHINTERPRET64\" was never defined.
22599Usually this means the macro was only invoked conditionally." "$LINENO" 5
22600fi
22601if test -z "${ARCHX8632IN64_TRUE}" && test -z "${ARCHX8632IN64_FALSE}"; then
22602  as_fn_error $? "conditional \"ARCHX8632IN64\" was never defined.
22603Usually this means the macro was only invoked conditionally." "$LINENO" 5
22604fi
22605if test -z "${WINDOWSCALLCONV_TRUE}" && test -z "${WINDOWSCALLCONV_FALSE}"; then
22606  as_fn_error $? "conditional \"WINDOWSCALLCONV\" was never defined.
22607Usually this means the macro was only invoked conditionally." "$LINENO" 5
22608fi
22609if test -z "${NATIVE_WINDOWS_TRUE}" && test -z "${NATIVE_WINDOWS_FALSE}"; then
22610  as_fn_error $? "conditional \"NATIVE_WINDOWS\" was never defined.
22611Usually this means the macro was only invoked conditionally." "$LINENO" 5
22612fi
22613if test -z "${NO_UNDEFINED_TRUE}" && test -z "${NO_UNDEFINED_FALSE}"; then
22614  as_fn_error $? "conditional \"NO_UNDEFINED\" was never defined.
22615Usually this means the macro was only invoked conditionally." "$LINENO" 5
22616fi
22617if test -z "${WINDOWSGUI_TRUE}" && test -z "${WINDOWSGUI_FALSE}"; then
22618  as_fn_error $? "conditional \"WINDOWSGUI\" was never defined.
22619Usually this means the macro was only invoked conditionally." "$LINENO" 5
22620fi
22621if test -z "${MACOSLDOPTS_TRUE}" && test -z "${MACOSLDOPTS_FALSE}"; then
22622  as_fn_error $? "conditional \"MACOSLDOPTS\" was never defined.
22623Usually this means the macro was only invoked conditionally." "$LINENO" 5
22624fi
22625if test -z "${INTINFISINT_TRUE}" && test -z "${INTINFISINT_FALSE}"; then
22626  as_fn_error $? "conditional \"INTINFISINT\" was never defined.
22627Usually this means the macro was only invoked conditionally." "$LINENO" 5
22628fi
22629
22630: "${CONFIG_STATUS=./config.status}"
22631ac_write_fail=0
22632ac_clean_files_save=$ac_clean_files
22633ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22634{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22635$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22636as_write_fail=0
22637cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22638#! $SHELL
22639# Generated by $as_me.
22640# Run this file to recreate the current configuration.
22641# Compiler output produced by configure, useful for debugging
22642# configure, is in config.log if it exists.
22643
22644debug=false
22645ac_cs_recheck=false
22646ac_cs_silent=false
22647
22648SHELL=\${CONFIG_SHELL-$SHELL}
22649export SHELL
22650_ASEOF
22651cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22652## -------------------- ##
22653## M4sh Initialization. ##
22654## -------------------- ##
22655
22656# Be more Bourne compatible
22657DUALCASE=1; export DUALCASE # for MKS sh
22658if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22659  emulate sh
22660  NULLCMD=:
22661  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22662  # is contrary to our usage.  Disable this feature.
22663  alias -g '${1+"$@"}'='"$@"'
22664  setopt NO_GLOB_SUBST
22665else
22666  case `(set -o) 2>/dev/null` in #(
22667  *posix*) :
22668    set -o posix ;; #(
22669  *) :
22670     ;;
22671esac
22672fi
22673
22674
22675as_nl='
22676'
22677export as_nl
22678# Printing a long string crashes Solaris 7 /usr/bin/printf.
22679as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22680as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22681as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22682# Prefer a ksh shell builtin over an external printf program on Solaris,
22683# but without wasting forks for bash or zsh.
22684if test -z "$BASH_VERSION$ZSH_VERSION" \
22685    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22686  as_echo='print -r --'
22687  as_echo_n='print -rn --'
22688elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22689  as_echo='printf %s\n'
22690  as_echo_n='printf %s'
22691else
22692  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22693    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22694    as_echo_n='/usr/ucb/echo -n'
22695  else
22696    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22697    as_echo_n_body='eval
22698      arg=$1;
22699      case $arg in #(
22700      *"$as_nl"*)
22701	expr "X$arg" : "X\\(.*\\)$as_nl";
22702	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22703      esac;
22704      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22705    '
22706    export as_echo_n_body
22707    as_echo_n='sh -c $as_echo_n_body as_echo'
22708  fi
22709  export as_echo_body
22710  as_echo='sh -c $as_echo_body as_echo'
22711fi
22712
22713# The user is always right.
22714if test "${PATH_SEPARATOR+set}" != set; then
22715  PATH_SEPARATOR=:
22716  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22717    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22718      PATH_SEPARATOR=';'
22719  }
22720fi
22721
22722
22723# IFS
22724# We need space, tab and new line, in precisely that order.  Quoting is
22725# there to prevent editors from complaining about space-tab.
22726# (If _AS_PATH_WALK were called with IFS unset, it would disable word
22727# splitting by setting IFS to empty value.)
22728IFS=" ""	$as_nl"
22729
22730# Find who we are.  Look in the path if we contain no directory separator.
22731as_myself=
22732case $0 in #((
22733  *[\\/]* ) as_myself=$0 ;;
22734  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22735for as_dir in $PATH
22736do
22737  IFS=$as_save_IFS
22738  test -z "$as_dir" && as_dir=.
22739    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22740  done
22741IFS=$as_save_IFS
22742
22743     ;;
22744esac
22745# We did not find ourselves, most probably we were run as `sh COMMAND'
22746# in which case we are not to be found in the path.
22747if test "x$as_myself" = x; then
22748  as_myself=$0
22749fi
22750if test ! -f "$as_myself"; then
22751  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22752  exit 1
22753fi
22754
22755# Unset variables that we do not need and which cause bugs (e.g. in
22756# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
22757# suppresses any "Segmentation fault" message there.  '((' could
22758# trigger a bug in pdksh 5.2.14.
22759for as_var in BASH_ENV ENV MAIL MAILPATH
22760do eval test x\${$as_var+set} = xset \
22761  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22762done
22763PS1='$ '
22764PS2='> '
22765PS4='+ '
22766
22767# NLS nuisances.
22768LC_ALL=C
22769export LC_ALL
22770LANGUAGE=C
22771export LANGUAGE
22772
22773# CDPATH.
22774(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22775
22776
22777# as_fn_error STATUS ERROR [LINENO LOG_FD]
22778# ----------------------------------------
22779# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22780# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22781# script with STATUS, using 1 if that was 0.
22782as_fn_error ()
22783{
22784  as_status=$1; test $as_status -eq 0 && as_status=1
22785  if test "$4"; then
22786    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22787    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22788  fi
22789  $as_echo "$as_me: error: $2" >&2
22790  as_fn_exit $as_status
22791} # as_fn_error
22792
22793
22794# as_fn_set_status STATUS
22795# -----------------------
22796# Set $? to STATUS, without forking.
22797as_fn_set_status ()
22798{
22799  return $1
22800} # as_fn_set_status
22801
22802# as_fn_exit STATUS
22803# -----------------
22804# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22805as_fn_exit ()
22806{
22807  set +e
22808  as_fn_set_status $1
22809  exit $1
22810} # as_fn_exit
22811
22812# as_fn_unset VAR
22813# ---------------
22814# Portably unset VAR.
22815as_fn_unset ()
22816{
22817  { eval $1=; unset $1;}
22818}
22819as_unset=as_fn_unset
22820# as_fn_append VAR VALUE
22821# ----------------------
22822# Append the text in VALUE to the end of the definition contained in VAR. Take
22823# advantage of any shell optimizations that allow amortized linear growth over
22824# repeated appends, instead of the typical quadratic growth present in naive
22825# implementations.
22826if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22827  eval 'as_fn_append ()
22828  {
22829    eval $1+=\$2
22830  }'
22831else
22832  as_fn_append ()
22833  {
22834    eval $1=\$$1\$2
22835  }
22836fi # as_fn_append
22837
22838# as_fn_arith ARG...
22839# ------------------
22840# Perform arithmetic evaluation on the ARGs, and store the result in the
22841# global $as_val. Take advantage of shells that can avoid forks. The arguments
22842# must be portable across $(()) and expr.
22843if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22844  eval 'as_fn_arith ()
22845  {
22846    as_val=$(( $* ))
22847  }'
22848else
22849  as_fn_arith ()
22850  {
22851    as_val=`expr "$@" || test $? -eq 1`
22852  }
22853fi # as_fn_arith
22854
22855
22856if expr a : '\(a\)' >/dev/null 2>&1 &&
22857   test "X`expr 00001 : '.*\(...\)'`" = X001; then
22858  as_expr=expr
22859else
22860  as_expr=false
22861fi
22862
22863if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22864  as_basename=basename
22865else
22866  as_basename=false
22867fi
22868
22869if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22870  as_dirname=dirname
22871else
22872  as_dirname=false
22873fi
22874
22875as_me=`$as_basename -- "$0" ||
22876$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22877	 X"$0" : 'X\(//\)$' \| \
22878	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22879$as_echo X/"$0" |
22880    sed '/^.*\/\([^/][^/]*\)\/*$/{
22881	    s//\1/
22882	    q
22883	  }
22884	  /^X\/\(\/\/\)$/{
22885	    s//\1/
22886	    q
22887	  }
22888	  /^X\/\(\/\).*/{
22889	    s//\1/
22890	    q
22891	  }
22892	  s/.*/./; q'`
22893
22894# Avoid depending upon Character Ranges.
22895as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22896as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22897as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22898as_cr_digits='0123456789'
22899as_cr_alnum=$as_cr_Letters$as_cr_digits
22900
22901ECHO_C= ECHO_N= ECHO_T=
22902case `echo -n x` in #(((((
22903-n*)
22904  case `echo 'xy\c'` in
22905  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
22906  xy)  ECHO_C='\c';;
22907  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
22908       ECHO_T='	';;
22909  esac;;
22910*)
22911  ECHO_N='-n';;
22912esac
22913
22914rm -f conf$$ conf$$.exe conf$$.file
22915if test -d conf$$.dir; then
22916  rm -f conf$$.dir/conf$$.file
22917else
22918  rm -f conf$$.dir
22919  mkdir conf$$.dir 2>/dev/null
22920fi
22921if (echo >conf$$.file) 2>/dev/null; then
22922  if ln -s conf$$.file conf$$ 2>/dev/null; then
22923    as_ln_s='ln -s'
22924    # ... but there are two gotchas:
22925    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22926    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22927    # In both cases, we have to default to `cp -pR'.
22928    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22929      as_ln_s='cp -pR'
22930  elif ln conf$$.file conf$$ 2>/dev/null; then
22931    as_ln_s=ln
22932  else
22933    as_ln_s='cp -pR'
22934  fi
22935else
22936  as_ln_s='cp -pR'
22937fi
22938rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22939rmdir conf$$.dir 2>/dev/null
22940
22941
22942# as_fn_mkdir_p
22943# -------------
22944# Create "$as_dir" as a directory, including parents if necessary.
22945as_fn_mkdir_p ()
22946{
22947
22948  case $as_dir in #(
22949  -*) as_dir=./$as_dir;;
22950  esac
22951  test -d "$as_dir" || eval $as_mkdir_p || {
22952    as_dirs=
22953    while :; do
22954      case $as_dir in #(
22955      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22956      *) as_qdir=$as_dir;;
22957      esac
22958      as_dirs="'$as_qdir' $as_dirs"
22959      as_dir=`$as_dirname -- "$as_dir" ||
22960$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22961	 X"$as_dir" : 'X\(//\)[^/]' \| \
22962	 X"$as_dir" : 'X\(//\)$' \| \
22963	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22964$as_echo X"$as_dir" |
22965    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22966	    s//\1/
22967	    q
22968	  }
22969	  /^X\(\/\/\)[^/].*/{
22970	    s//\1/
22971	    q
22972	  }
22973	  /^X\(\/\/\)$/{
22974	    s//\1/
22975	    q
22976	  }
22977	  /^X\(\/\).*/{
22978	    s//\1/
22979	    q
22980	  }
22981	  s/.*/./; q'`
22982      test -d "$as_dir" && break
22983    done
22984    test -z "$as_dirs" || eval "mkdir $as_dirs"
22985  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22986
22987
22988} # as_fn_mkdir_p
22989if mkdir -p . 2>/dev/null; then
22990  as_mkdir_p='mkdir -p "$as_dir"'
22991else
22992  test -d ./-p && rmdir ./-p
22993  as_mkdir_p=false
22994fi
22995
22996
22997# as_fn_executable_p FILE
22998# -----------------------
22999# Test if FILE is an executable regular file.
23000as_fn_executable_p ()
23001{
23002  test -f "$1" && test -x "$1"
23003} # as_fn_executable_p
23004as_test_x='test -x'
23005as_executable_p=as_fn_executable_p
23006
23007# Sed expression to map a string onto a valid CPP name.
23008as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23009
23010# Sed expression to map a string onto a valid variable name.
23011as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23012
23013
23014exec 6>&1
23015## ----------------------------------- ##
23016## Main body of $CONFIG_STATUS script. ##
23017## ----------------------------------- ##
23018_ASEOF
23019test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
23020
23021cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23022# Save the log message, to keep $0 and so on meaningful, and to
23023# report actual input values of CONFIG_FILES etc. instead of their
23024# values after options handling.
23025ac_log="
23026This file was extended by Poly/ML $as_me 5.8.1, which was
23027generated by GNU Autoconf 2.69.  Invocation command line was
23028
23029  CONFIG_FILES    = $CONFIG_FILES
23030  CONFIG_HEADERS  = $CONFIG_HEADERS
23031  CONFIG_LINKS    = $CONFIG_LINKS
23032  CONFIG_COMMANDS = $CONFIG_COMMANDS
23033  $ $0 $@
23034
23035on `(hostname || uname -n) 2>/dev/null | sed 1q`
23036"
23037
23038_ACEOF
23039
23040case $ac_config_files in *"
23041"*) set x $ac_config_files; shift; ac_config_files=$*;;
23042esac
23043
23044case $ac_config_headers in *"
23045"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23046esac
23047
23048
23049cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23050# Files that config.status was made for.
23051config_files="$ac_config_files"
23052config_headers="$ac_config_headers"
23053config_commands="$ac_config_commands"
23054
23055_ACEOF
23056
23057cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23058ac_cs_usage="\
23059\`$as_me' instantiates files and other configuration actions
23060from templates according to the current configuration.  Unless the files
23061and actions are specified as TAGs, all are instantiated by default.
23062
23063Usage: $0 [OPTION]... [TAG]...
23064
23065  -h, --help       print this help, then exit
23066  -V, --version    print version number and configuration settings, then exit
23067      --config     print configuration, then exit
23068  -q, --quiet, --silent
23069                   do not print progress messages
23070  -d, --debug      don't remove temporary files
23071      --recheck    update $as_me by reconfiguring in the same conditions
23072      --file=FILE[:TEMPLATE]
23073                   instantiate the configuration file FILE
23074      --header=FILE[:TEMPLATE]
23075                   instantiate the configuration header FILE
23076
23077Configuration files:
23078$config_files
23079
23080Configuration headers:
23081$config_headers
23082
23083Configuration commands:
23084$config_commands
23085
23086Report bugs to <polyml AT polyml DOT org>."
23087
23088_ACEOF
23089cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23090ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
23091ac_cs_version="\\
23092Poly/ML config.status 5.8.1
23093configured by $0, generated by GNU Autoconf 2.69,
23094  with options \\"\$ac_cs_config\\"
23095
23096Copyright (C) 2012 Free Software Foundation, Inc.
23097This config.status script is free software; the Free Software Foundation
23098gives unlimited permission to copy, distribute and modify it."
23099
23100ac_pwd='$ac_pwd'
23101srcdir='$srcdir'
23102INSTALL='$INSTALL'
23103MKDIR_P='$MKDIR_P'
23104AWK='$AWK'
23105test -n "\$AWK" || AWK=awk
23106_ACEOF
23107
23108cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23109# The default lists apply if the user does not specify any file.
23110ac_need_defaults=:
23111while test $# != 0
23112do
23113  case $1 in
23114  --*=?*)
23115    ac_option=`expr "X$1" : 'X\([^=]*\)='`
23116    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23117    ac_shift=:
23118    ;;
23119  --*=)
23120    ac_option=`expr "X$1" : 'X\([^=]*\)='`
23121    ac_optarg=
23122    ac_shift=:
23123    ;;
23124  *)
23125    ac_option=$1
23126    ac_optarg=$2
23127    ac_shift=shift
23128    ;;
23129  esac
23130
23131  case $ac_option in
23132  # Handling of the options.
23133  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23134    ac_cs_recheck=: ;;
23135  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23136    $as_echo "$ac_cs_version"; exit ;;
23137  --config | --confi | --conf | --con | --co | --c )
23138    $as_echo "$ac_cs_config"; exit ;;
23139  --debug | --debu | --deb | --de | --d | -d )
23140    debug=: ;;
23141  --file | --fil | --fi | --f )
23142    $ac_shift
23143    case $ac_optarg in
23144    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23145    '') as_fn_error $? "missing file argument" ;;
23146    esac
23147    as_fn_append CONFIG_FILES " '$ac_optarg'"
23148    ac_need_defaults=false;;
23149  --header | --heade | --head | --hea )
23150    $ac_shift
23151    case $ac_optarg in
23152    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23153    esac
23154    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
23155    ac_need_defaults=false;;
23156  --he | --h)
23157    # Conflict between --help and --header
23158    as_fn_error $? "ambiguous option: \`$1'
23159Try \`$0 --help' for more information.";;
23160  --help | --hel | -h )
23161    $as_echo "$ac_cs_usage"; exit ;;
23162  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23163  | -silent | --silent | --silen | --sile | --sil | --si | --s)
23164    ac_cs_silent=: ;;
23165
23166  # This is an error.
23167  -*) as_fn_error $? "unrecognized option: \`$1'
23168Try \`$0 --help' for more information." ;;
23169
23170  *) as_fn_append ac_config_targets " $1"
23171     ac_need_defaults=false ;;
23172
23173  esac
23174  shift
23175done
23176
23177ac_configure_extra_args=
23178
23179if $ac_cs_silent; then
23180  exec 6>/dev/null
23181  ac_configure_extra_args="$ac_configure_extra_args --silent"
23182fi
23183
23184_ACEOF
23185cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23186if \$ac_cs_recheck; then
23187  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23188  shift
23189  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23190  CONFIG_SHELL='$SHELL'
23191  export CONFIG_SHELL
23192  exec "\$@"
23193fi
23194
23195_ACEOF
23196cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23197exec 5>>config.log
23198{
23199  echo
23200  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23201## Running $as_me. ##
23202_ASBOX
23203  $as_echo "$ac_log"
23204} >&5
23205
23206_ACEOF
23207cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23208#
23209# INIT-COMMANDS
23210#
23211AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
23212
23213
23214# The HP-UX ksh and POSIX shell print the target directory to stdout
23215# if CDPATH is set.
23216(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23217
23218sed_quote_subst='$sed_quote_subst'
23219double_quote_subst='$double_quote_subst'
23220delay_variable_subst='$delay_variable_subst'
23221macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
23222macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
23223AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
23224DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
23225OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
23226enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
23227enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
23228pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
23229enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
23230shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
23231SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
23232ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
23233PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
23234host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
23235host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
23236host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
23237build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
23238build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
23239build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
23240SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
23241Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
23242GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
23243EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
23244FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
23245LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
23246NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
23247LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
23248max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
23249ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
23250exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
23251lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
23252lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
23253lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
23254lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
23255lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
23256reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
23257reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
23258deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
23259file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
23260file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
23261want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
23262sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
23263AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
23264AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
23265archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
23266STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
23267RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
23268old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23269old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23270old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
23271lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
23272CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
23273CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
23274compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
23275GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
23276lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
23277lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
23278lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
23279lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
23280lt_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"`'
23281lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
23282nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
23283lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
23284lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
23285objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
23286MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
23287lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
23288lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
23289lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
23290lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
23291lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
23292need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
23293MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
23294DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
23295NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
23296LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
23297OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
23298OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
23299libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
23300shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
23301extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23302archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
23303enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
23304export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
23305whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
23306compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
23307old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
23308old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23309archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
23310archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23311module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
23312module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23313with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
23314allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
23315no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
23316hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
23317hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
23318hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
23319hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
23320hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
23321hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
23322hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
23323inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
23324link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
23325always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
23326export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
23327exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
23328include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
23329prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
23330postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
23331file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
23332variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
23333need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
23334need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
23335version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
23336runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
23337shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
23338shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
23339libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
23340library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
23341soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
23342install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
23343postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23344postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23345finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
23346finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
23347hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
23348sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
23349configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
23350configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
23351hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
23352enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
23353enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
23354enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
23355old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
23356striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
23357compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
23358predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
23359postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
23360predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
23361postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
23362compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
23363LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
23364reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
23365reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23366old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23367compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
23368GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
23369lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
23370lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
23371lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
23372lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
23373lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
23374archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
23375enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
23376export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
23377whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
23378compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
23379old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23380old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23381archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23382archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23383module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23384module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23385with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
23386allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
23387no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
23388hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
23389hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
23390hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
23391hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
23392hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
23393hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
23394hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
23395inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
23396link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
23397always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
23398export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23399exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
23400include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
23401prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23402postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23403file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
23404hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
23405compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
23406predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
23407postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
23408predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
23409postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
23410compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
23411
23412LTCC='$LTCC'
23413LTCFLAGS='$LTCFLAGS'
23414compiler='$compiler_DEFAULT'
23415
23416# A function that is used when there is no print builtin or printf.
23417func_fallback_echo ()
23418{
23419  eval 'cat <<_LTECHO_EOF
23420\$1
23421_LTECHO_EOF'
23422}
23423
23424# Quote evaled strings.
23425for var in AS \
23426DLLTOOL \
23427OBJDUMP \
23428SHELL \
23429ECHO \
23430PATH_SEPARATOR \
23431SED \
23432GREP \
23433EGREP \
23434FGREP \
23435LD \
23436NM \
23437LN_S \
23438lt_SP2NL \
23439lt_NL2SP \
23440reload_flag \
23441deplibs_check_method \
23442file_magic_cmd \
23443file_magic_glob \
23444want_nocaseglob \
23445sharedlib_from_linklib_cmd \
23446AR \
23447AR_FLAGS \
23448archiver_list_spec \
23449STRIP \
23450RANLIB \
23451CC \
23452CFLAGS \
23453compiler \
23454lt_cv_sys_global_symbol_pipe \
23455lt_cv_sys_global_symbol_to_cdecl \
23456lt_cv_sys_global_symbol_to_import \
23457lt_cv_sys_global_symbol_to_c_name_address \
23458lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
23459lt_cv_nm_interface \
23460nm_file_list_spec \
23461lt_cv_truncate_bin \
23462lt_prog_compiler_no_builtin_flag \
23463lt_prog_compiler_pic \
23464lt_prog_compiler_wl \
23465lt_prog_compiler_static \
23466lt_cv_prog_compiler_c_o \
23467need_locks \
23468MANIFEST_TOOL \
23469DSYMUTIL \
23470NMEDIT \
23471LIPO \
23472OTOOL \
23473OTOOL64 \
23474shrext_cmds \
23475export_dynamic_flag_spec \
23476whole_archive_flag_spec \
23477compiler_needs_object \
23478with_gnu_ld \
23479allow_undefined_flag \
23480no_undefined_flag \
23481hardcode_libdir_flag_spec \
23482hardcode_libdir_separator \
23483exclude_expsyms \
23484include_expsyms \
23485file_list_spec \
23486variables_saved_for_relink \
23487libname_spec \
23488library_names_spec \
23489soname_spec \
23490install_override_mode \
23491finish_eval \
23492old_striplib \
23493striplib \
23494compiler_lib_search_dirs \
23495predep_objects \
23496postdep_objects \
23497predeps \
23498postdeps \
23499compiler_lib_search_path \
23500LD_CXX \
23501reload_flag_CXX \
23502compiler_CXX \
23503lt_prog_compiler_no_builtin_flag_CXX \
23504lt_prog_compiler_pic_CXX \
23505lt_prog_compiler_wl_CXX \
23506lt_prog_compiler_static_CXX \
23507lt_cv_prog_compiler_c_o_CXX \
23508export_dynamic_flag_spec_CXX \
23509whole_archive_flag_spec_CXX \
23510compiler_needs_object_CXX \
23511with_gnu_ld_CXX \
23512allow_undefined_flag_CXX \
23513no_undefined_flag_CXX \
23514hardcode_libdir_flag_spec_CXX \
23515hardcode_libdir_separator_CXX \
23516exclude_expsyms_CXX \
23517include_expsyms_CXX \
23518file_list_spec_CXX \
23519compiler_lib_search_dirs_CXX \
23520predep_objects_CXX \
23521postdep_objects_CXX \
23522predeps_CXX \
23523postdeps_CXX \
23524compiler_lib_search_path_CXX; do
23525    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23526    *[\\\\\\\`\\"\\\$]*)
23527      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
23528      ;;
23529    *)
23530      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23531      ;;
23532    esac
23533done
23534
23535# Double-quote double-evaled strings.
23536for var in reload_cmds \
23537old_postinstall_cmds \
23538old_postuninstall_cmds \
23539old_archive_cmds \
23540extract_expsyms_cmds \
23541old_archive_from_new_cmds \
23542old_archive_from_expsyms_cmds \
23543archive_cmds \
23544archive_expsym_cmds \
23545module_cmds \
23546module_expsym_cmds \
23547export_symbols_cmds \
23548prelink_cmds \
23549postlink_cmds \
23550postinstall_cmds \
23551postuninstall_cmds \
23552finish_cmds \
23553sys_lib_search_path_spec \
23554configure_time_dlsearch_path \
23555configure_time_lt_sys_library_path \
23556reload_cmds_CXX \
23557old_archive_cmds_CXX \
23558old_archive_from_new_cmds_CXX \
23559old_archive_from_expsyms_cmds_CXX \
23560archive_cmds_CXX \
23561archive_expsym_cmds_CXX \
23562module_cmds_CXX \
23563module_expsym_cmds_CXX \
23564export_symbols_cmds_CXX \
23565prelink_cmds_CXX \
23566postlink_cmds_CXX; do
23567    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23568    *[\\\\\\\`\\"\\\$]*)
23569      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
23570      ;;
23571    *)
23572      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23573      ;;
23574    esac
23575done
23576
23577ac_aux_dir='$ac_aux_dir'
23578
23579# See if we are running on zsh, and set the options that allow our
23580# commands through without removal of \ escapes INIT.
23581if test -n "\${ZSH_VERSION+set}"; then
23582   setopt NO_GLOB_SUBST
23583fi
23584
23585
23586    PACKAGE='$PACKAGE'
23587    VERSION='$VERSION'
23588    RM='$RM'
23589    ofile='$ofile'
23590
23591
23592
23593
23594
23595
23596_ACEOF
23597
23598cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23599
23600# Handling of arguments.
23601for ac_config_target in $ac_config_targets
23602do
23603  case $ac_config_target in
23604    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23605    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
23606    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23607    "basis") CONFIG_COMMANDS="$CONFIG_COMMANDS basis" ;;
23608    "mlsource") CONFIG_COMMANDS="$CONFIG_COMMANDS mlsource" ;;
23609    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23610    "libpolyml/Makefile") CONFIG_FILES="$CONFIG_FILES libpolyml/Makefile" ;;
23611    "libpolyml/polyml.pc") CONFIG_FILES="$CONFIG_FILES libpolyml/polyml.pc" ;;
23612    "libpolymain/Makefile") CONFIG_FILES="$CONFIG_FILES libpolymain/Makefile" ;;
23613    "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
23614    "modules/IntInfAsInt/Makefile") CONFIG_FILES="$CONFIG_FILES modules/IntInfAsInt/Makefile" ;;
23615    "polyc") CONFIG_FILES="$CONFIG_FILES polyc" ;;
23616
23617  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23618  esac
23619done
23620
23621
23622# If the user did not use the arguments to specify the items to instantiate,
23623# then the envvar interface is used.  Set only those that are not.
23624# We use the long form for the default assignment because of an extremely
23625# bizarre bug on SunOS 4.1.3.
23626if $ac_need_defaults; then
23627  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23628  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23629  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23630fi
23631
23632# Have a temporary directory for convenience.  Make it in the build tree
23633# simply because there is no reason against having it here, and in addition,
23634# creating and moving files from /tmp can sometimes cause problems.
23635# Hook for its removal unless debugging.
23636# Note that there is a small window in which the directory will not be cleaned:
23637# after its creation but before its name has been assigned to `$tmp'.
23638$debug ||
23639{
23640  tmp= ac_tmp=
23641  trap 'exit_status=$?
23642  : "${ac_tmp:=$tmp}"
23643  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
23644' 0
23645  trap 'as_fn_exit 1' 1 2 13 15
23646}
23647# Create a (secure) tmp directory for tmp files.
23648
23649{
23650  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23651  test -d "$tmp"
23652}  ||
23653{
23654  tmp=./conf$$-$RANDOM
23655  (umask 077 && mkdir "$tmp")
23656} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
23657ac_tmp=$tmp
23658
23659# Set up the scripts for CONFIG_FILES section.
23660# No need to generate them if there are no CONFIG_FILES.
23661# This happens for instance with `./config.status config.h'.
23662if test -n "$CONFIG_FILES"; then
23663
23664
23665ac_cr=`echo X | tr X '\015'`
23666# On cygwin, bash can eat \r inside `` if the user requested igncr.
23667# But we know of no other shell where ac_cr would be empty at this
23668# point, so we can use a bashism as a fallback.
23669if test "x$ac_cr" = x; then
23670  eval ac_cr=\$\'\\r\'
23671fi
23672ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23673if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23674  ac_cs_awk_cr='\\r'
23675else
23676  ac_cs_awk_cr=$ac_cr
23677fi
23678
23679echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
23680_ACEOF
23681
23682
23683{
23684  echo "cat >conf$$subs.awk <<_ACEOF" &&
23685  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23686  echo "_ACEOF"
23687} >conf$$subs.sh ||
23688  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23689ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
23690ac_delim='%!_!# '
23691for ac_last_try in false false false false false :; do
23692  . ./conf$$subs.sh ||
23693    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23694
23695  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23696  if test $ac_delim_n = $ac_delim_num; then
23697    break
23698  elif $ac_last_try; then
23699    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23700  else
23701    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23702  fi
23703done
23704rm -f conf$$subs.sh
23705
23706cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23707cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
23708_ACEOF
23709sed -n '
23710h
23711s/^/S["/; s/!.*/"]=/
23712p
23713g
23714s/^[^!]*!//
23715:repl
23716t repl
23717s/'"$ac_delim"'$//
23718t delim
23719:nl
23720h
23721s/\(.\{148\}\)..*/\1/
23722t more1
23723s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23724p
23725n
23726b repl
23727:more1
23728s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23729p
23730g
23731s/.\{148\}//
23732t nl
23733:delim
23734h
23735s/\(.\{148\}\)..*/\1/
23736t more2
23737s/["\\]/\\&/g; s/^/"/; s/$/"/
23738p
23739b
23740:more2
23741s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23742p
23743g
23744s/.\{148\}//
23745t delim
23746' <conf$$subs.awk | sed '
23747/^[^""]/{
23748  N
23749  s/\n//
23750}
23751' >>$CONFIG_STATUS || ac_write_fail=1
23752rm -f conf$$subs.awk
23753cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23754_ACAWK
23755cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
23756  for (key in S) S_is_set[key] = 1
23757  FS = ""
23758
23759}
23760{
23761  line = $ 0
23762  nfields = split(line, field, "@")
23763  substed = 0
23764  len = length(field[1])
23765  for (i = 2; i < nfields; i++) {
23766    key = field[i]
23767    keylen = length(key)
23768    if (S_is_set[key]) {
23769      value = S[key]
23770      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23771      len += length(value) + length(field[++i])
23772      substed = 1
23773    } else
23774      len += 1 + keylen
23775  }
23776
23777  print line
23778}
23779
23780_ACAWK
23781_ACEOF
23782cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23783if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23784  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23785else
23786  cat
23787fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
23788  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
23789_ACEOF
23790
23791# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23792# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23793# trailing colons and then remove the whole line if VPATH becomes empty
23794# (actually we leave an empty line to preserve line numbers).
23795if test "x$srcdir" = x.; then
23796  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
23797h
23798s///
23799s/^/:/
23800s/[	 ]*$/:/
23801s/:\$(srcdir):/:/g
23802s/:\${srcdir}:/:/g
23803s/:@srcdir@:/:/g
23804s/^:*//
23805s/:*$//
23806x
23807s/\(=[	 ]*\).*/\1/
23808G
23809s/\n//
23810s/^[^=]*=[	 ]*$//
23811}'
23812fi
23813
23814cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23815fi # test -n "$CONFIG_FILES"
23816
23817# Set up the scripts for CONFIG_HEADERS section.
23818# No need to generate them if there are no CONFIG_HEADERS.
23819# This happens for instance with `./config.status Makefile'.
23820if test -n "$CONFIG_HEADERS"; then
23821cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
23822BEGIN {
23823_ACEOF
23824
23825# Transform confdefs.h into an awk script `defines.awk', embedded as
23826# here-document in config.status, that substitutes the proper values into
23827# config.h.in to produce config.h.
23828
23829# Create a delimiter string that does not exist in confdefs.h, to ease
23830# handling of long lines.
23831ac_delim='%!_!# '
23832for ac_last_try in false false :; do
23833  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
23834  if test -z "$ac_tt"; then
23835    break
23836  elif $ac_last_try; then
23837    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23838  else
23839    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23840  fi
23841done
23842
23843# For the awk script, D is an array of macro values keyed by name,
23844# likewise P contains macro parameters if any.  Preserve backslash
23845# newline sequences.
23846
23847ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23848sed -n '
23849s/.\{148\}/&'"$ac_delim"'/g
23850t rset
23851:rset
23852s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
23853t def
23854d
23855:def
23856s/\\$//
23857t bsnl
23858s/["\\]/\\&/g
23859s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
23860D["\1"]=" \3"/p
23861s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
23862d
23863:bsnl
23864s/["\\]/\\&/g
23865s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
23866D["\1"]=" \3\\\\\\n"\\/p
23867t cont
23868s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23869t cont
23870d
23871:cont
23872n
23873s/.\{148\}/&'"$ac_delim"'/g
23874t clear
23875:clear
23876s/\\$//
23877t bsnlc
23878s/["\\]/\\&/g; s/^/"/; s/$/"/p
23879d
23880:bsnlc
23881s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23882b cont
23883' <confdefs.h | sed '
23884s/'"$ac_delim"'/"\\\
23885"/g' >>$CONFIG_STATUS || ac_write_fail=1
23886
23887cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23888  for (key in D) D_is_set[key] = 1
23889  FS = ""
23890}
23891/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23892  line = \$ 0
23893  split(line, arg, " ")
23894  if (arg[1] == "#") {
23895    defundef = arg[2]
23896    mac1 = arg[3]
23897  } else {
23898    defundef = substr(arg[1], 2)
23899    mac1 = arg[2]
23900  }
23901  split(mac1, mac2, "(") #)
23902  macro = mac2[1]
23903  prefix = substr(line, 1, index(line, defundef) - 1)
23904  if (D_is_set[macro]) {
23905    # Preserve the white space surrounding the "#".
23906    print prefix "define", macro P[macro] D[macro]
23907    next
23908  } else {
23909    # Replace #undef with comments.  This is necessary, for example,
23910    # in the case of _POSIX_SOURCE, which is predefined and required
23911    # on some systems where configure will not decide to define it.
23912    if (defundef == "undef") {
23913      print "/*", prefix defundef, macro, "*/"
23914      next
23915    }
23916  }
23917}
23918{ print }
23919_ACAWK
23920_ACEOF
23921cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23922  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23923fi # test -n "$CONFIG_HEADERS"
23924
23925
23926eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
23927shift
23928for ac_tag
23929do
23930  case $ac_tag in
23931  :[FHLC]) ac_mode=$ac_tag; continue;;
23932  esac
23933  case $ac_mode$ac_tag in
23934  :[FHL]*:*);;
23935  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23936  :[FH]-) ac_tag=-:-;;
23937  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23938  esac
23939  ac_save_IFS=$IFS
23940  IFS=:
23941  set x $ac_tag
23942  IFS=$ac_save_IFS
23943  shift
23944  ac_file=$1
23945  shift
23946
23947  case $ac_mode in
23948  :L) ac_source=$1;;
23949  :[FH])
23950    ac_file_inputs=
23951    for ac_f
23952    do
23953      case $ac_f in
23954      -) ac_f="$ac_tmp/stdin";;
23955      *) # Look for the file first in the build tree, then in the source tree
23956	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
23957	 # because $ac_f cannot contain `:'.
23958	 test -f "$ac_f" ||
23959	   case $ac_f in
23960	   [\\/$]*) false;;
23961	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23962	   esac ||
23963	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23964      esac
23965      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23966      as_fn_append ac_file_inputs " '$ac_f'"
23967    done
23968
23969    # Let's still pretend it is `configure' which instantiates (i.e., don't
23970    # use $as_me), people would be surprised to read:
23971    #    /* config.h.  Generated by config.status.  */
23972    configure_input='Generated from '`
23973	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23974	`' by configure.'
23975    if test x"$ac_file" != x-; then
23976      configure_input="$ac_file.  $configure_input"
23977      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23978$as_echo "$as_me: creating $ac_file" >&6;}
23979    fi
23980    # Neutralize special characters interpreted by sed in replacement strings.
23981    case $configure_input in #(
23982    *\&* | *\|* | *\\* )
23983       ac_sed_conf_input=`$as_echo "$configure_input" |
23984       sed 's/[\\\\&|]/\\\\&/g'`;; #(
23985    *) ac_sed_conf_input=$configure_input;;
23986    esac
23987
23988    case $ac_tag in
23989    *:-:* | *:-) cat >"$ac_tmp/stdin" \
23990      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23991    esac
23992    ;;
23993  esac
23994
23995  ac_dir=`$as_dirname -- "$ac_file" ||
23996$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23997	 X"$ac_file" : 'X\(//\)[^/]' \| \
23998	 X"$ac_file" : 'X\(//\)$' \| \
23999	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24000$as_echo X"$ac_file" |
24001    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24002	    s//\1/
24003	    q
24004	  }
24005	  /^X\(\/\/\)[^/].*/{
24006	    s//\1/
24007	    q
24008	  }
24009	  /^X\(\/\/\)$/{
24010	    s//\1/
24011	    q
24012	  }
24013	  /^X\(\/\).*/{
24014	    s//\1/
24015	    q
24016	  }
24017	  s/.*/./; q'`
24018  as_dir="$ac_dir"; as_fn_mkdir_p
24019  ac_builddir=.
24020
24021case "$ac_dir" in
24022.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24023*)
24024  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
24025  # A ".." for each directory in $ac_dir_suffix.
24026  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24027  case $ac_top_builddir_sub in
24028  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24029  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24030  esac ;;
24031esac
24032ac_abs_top_builddir=$ac_pwd
24033ac_abs_builddir=$ac_pwd$ac_dir_suffix
24034# for backward compatibility:
24035ac_top_builddir=$ac_top_build_prefix
24036
24037case $srcdir in
24038  .)  # We are building in place.
24039    ac_srcdir=.
24040    ac_top_srcdir=$ac_top_builddir_sub
24041    ac_abs_top_srcdir=$ac_pwd ;;
24042  [\\/]* | ?:[\\/]* )  # Absolute name.
24043    ac_srcdir=$srcdir$ac_dir_suffix;
24044    ac_top_srcdir=$srcdir
24045    ac_abs_top_srcdir=$srcdir ;;
24046  *) # Relative name.
24047    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24048    ac_top_srcdir=$ac_top_build_prefix$srcdir
24049    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24050esac
24051ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24052
24053
24054  case $ac_mode in
24055  :F)
24056  #
24057  # CONFIG_FILE
24058  #
24059
24060  case $INSTALL in
24061  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24062  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24063  esac
24064  ac_MKDIR_P=$MKDIR_P
24065  case $MKDIR_P in
24066  [\\/$]* | ?:[\\/]* ) ;;
24067  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24068  esac
24069_ACEOF
24070
24071cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24072# If the template does not know about datarootdir, expand it.
24073# FIXME: This hack should be removed a few years after 2.60.
24074ac_datarootdir_hack=; ac_datarootdir_seen=
24075ac_sed_dataroot='
24076/datarootdir/ {
24077  p
24078  q
24079}
24080/@datadir@/p
24081/@docdir@/p
24082/@infodir@/p
24083/@localedir@/p
24084/@mandir@/p'
24085case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24086*datarootdir*) ac_datarootdir_seen=yes;;
24087*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24088  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24089$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24090_ACEOF
24091cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24092  ac_datarootdir_hack='
24093  s&@datadir@&$datadir&g
24094  s&@docdir@&$docdir&g
24095  s&@infodir@&$infodir&g
24096  s&@localedir@&$localedir&g
24097  s&@mandir@&$mandir&g
24098  s&\\\${datarootdir}&$datarootdir&g' ;;
24099esac
24100_ACEOF
24101
24102# Neutralize VPATH when `$srcdir' = `.'.
24103# Shell code in configure.ac might set extrasub.
24104# FIXME: do we really want to maintain this feature?
24105cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24106ac_sed_extra="$ac_vpsub
24107$extrasub
24108_ACEOF
24109cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24110:t
24111/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24112s|@configure_input@|$ac_sed_conf_input|;t t
24113s&@top_builddir@&$ac_top_builddir_sub&;t t
24114s&@top_build_prefix@&$ac_top_build_prefix&;t t
24115s&@srcdir@&$ac_srcdir&;t t
24116s&@abs_srcdir@&$ac_abs_srcdir&;t t
24117s&@top_srcdir@&$ac_top_srcdir&;t t
24118s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24119s&@builddir@&$ac_builddir&;t t
24120s&@abs_builddir@&$ac_abs_builddir&;t t
24121s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24122s&@INSTALL@&$ac_INSTALL&;t t
24123s&@MKDIR_P@&$ac_MKDIR_P&;t t
24124$ac_datarootdir_hack
24125"
24126eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
24127  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24128
24129test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24130  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
24131  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
24132      "$ac_tmp/out"`; test -z "$ac_out"; } &&
24133  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24134which seems to be undefined.  Please make sure it is defined" >&5
24135$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24136which seems to be undefined.  Please make sure it is defined" >&2;}
24137
24138  rm -f "$ac_tmp/stdin"
24139  case $ac_file in
24140  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
24141  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
24142  esac \
24143  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24144 ;;
24145  :H)
24146  #
24147  # CONFIG_HEADER
24148  #
24149  if test x"$ac_file" != x-; then
24150    {
24151      $as_echo "/* $configure_input  */" \
24152      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
24153    } >"$ac_tmp/config.h" \
24154      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24155    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
24156      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
24157$as_echo "$as_me: $ac_file is unchanged" >&6;}
24158    else
24159      rm -f "$ac_file"
24160      mv "$ac_tmp/config.h" "$ac_file" \
24161	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
24162    fi
24163  else
24164    $as_echo "/* $configure_input  */" \
24165      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
24166      || as_fn_error $? "could not create -" "$LINENO" 5
24167  fi
24168# Compute "$ac_file"'s index in $config_headers.
24169_am_arg="$ac_file"
24170_am_stamp_count=1
24171for _am_header in $config_headers :; do
24172  case $_am_header in
24173    $_am_arg | $_am_arg:* )
24174      break ;;
24175    * )
24176      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24177  esac
24178done
24179echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24180$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24181	 X"$_am_arg" : 'X\(//\)[^/]' \| \
24182	 X"$_am_arg" : 'X\(//\)$' \| \
24183	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24184$as_echo X"$_am_arg" |
24185    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24186	    s//\1/
24187	    q
24188	  }
24189	  /^X\(\/\/\)[^/].*/{
24190	    s//\1/
24191	    q
24192	  }
24193	  /^X\(\/\/\)$/{
24194	    s//\1/
24195	    q
24196	  }
24197	  /^X\(\/\).*/{
24198	    s//\1/
24199	    q
24200	  }
24201	  s/.*/./; q'`/stamp-h$_am_stamp_count
24202 ;;
24203
24204  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
24205$as_echo "$as_me: executing $ac_file commands" >&6;}
24206 ;;
24207  esac
24208
24209
24210  case $ac_file$ac_mode in
24211    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
24212  # Older Autoconf quotes --file arguments for eval, but not when files
24213  # are listed without --file.  Let's play safe and only enable the eval
24214  # if we detect the quoting.
24215  # TODO: see whether this extra hack can be removed once we start
24216  # requiring Autoconf 2.70 or later.
24217  case $CONFIG_FILES in #(
24218  *\'*) :
24219    eval set x "$CONFIG_FILES" ;; #(
24220  *) :
24221    set x $CONFIG_FILES ;; #(
24222  *) :
24223     ;;
24224esac
24225  shift
24226  # Used to flag and report bootstrapping failures.
24227  am_rc=0
24228  for am_mf
24229  do
24230    # Strip MF so we end up with the name of the file.
24231    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
24232    # Check whether this is an Automake generated Makefile which includes
24233    # dependency-tracking related rules and includes.
24234    # Grep'ing the whole file directly is not great: AIX grep has a line
24235    # limit of 2048, but all sed's we know have understand at least 4000.
24236    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
24237      || continue
24238    am_dirpart=`$as_dirname -- "$am_mf" ||
24239$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24240	 X"$am_mf" : 'X\(//\)[^/]' \| \
24241	 X"$am_mf" : 'X\(//\)$' \| \
24242	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
24243$as_echo X"$am_mf" |
24244    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24245	    s//\1/
24246	    q
24247	  }
24248	  /^X\(\/\/\)[^/].*/{
24249	    s//\1/
24250	    q
24251	  }
24252	  /^X\(\/\/\)$/{
24253	    s//\1/
24254	    q
24255	  }
24256	  /^X\(\/\).*/{
24257	    s//\1/
24258	    q
24259	  }
24260	  s/.*/./; q'`
24261    am_filepart=`$as_basename -- "$am_mf" ||
24262$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
24263	 X"$am_mf" : 'X\(//\)$' \| \
24264	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
24265$as_echo X/"$am_mf" |
24266    sed '/^.*\/\([^/][^/]*\)\/*$/{
24267	    s//\1/
24268	    q
24269	  }
24270	  /^X\/\(\/\/\)$/{
24271	    s//\1/
24272	    q
24273	  }
24274	  /^X\/\(\/\).*/{
24275	    s//\1/
24276	    q
24277	  }
24278	  s/.*/./; q'`
24279    { echo "$as_me:$LINENO: cd "$am_dirpart" \
24280      && sed -e '/# am--include-marker/d' "$am_filepart" \
24281        | $MAKE -f - am--depfiles" >&5
24282   (cd "$am_dirpart" \
24283      && sed -e '/# am--include-marker/d' "$am_filepart" \
24284        | $MAKE -f - am--depfiles) >&5 2>&5
24285   ac_status=$?
24286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24287   (exit $ac_status); } || am_rc=$?
24288  done
24289  if test $am_rc -ne 0; then
24290    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24291$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24292as_fn_error $? "Something went wrong bootstrapping makefile fragments
24293    for automatic dependency tracking.  Try re-running configure with the
24294    '--disable-dependency-tracking' option to at least be able to build
24295    the package (albeit without support for automatic dependency tracking).
24296See \`config.log' for more details" "$LINENO" 5; }
24297  fi
24298  { am_dirpart=; unset am_dirpart;}
24299  { am_filepart=; unset am_filepart;}
24300  { am_mf=; unset am_mf;}
24301  { am_rc=; unset am_rc;}
24302  rm -f conftest-deps.mk
24303}
24304 ;;
24305    "libtool":C)
24306
24307    # See if we are running on zsh, and set the options that allow our
24308    # commands through without removal of \ escapes.
24309    if test -n "${ZSH_VERSION+set}"; then
24310      setopt NO_GLOB_SUBST
24311    fi
24312
24313    cfgfile=${ofile}T
24314    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
24315    $RM "$cfgfile"
24316
24317    cat <<_LT_EOF >> "$cfgfile"
24318#! $SHELL
24319# Generated automatically by $as_me ($PACKAGE) $VERSION
24320# NOTE: Changes made to this file will be lost: look at ltmain.sh.
24321
24322# Provide generalized library-building support services.
24323# Written by Gordon Matzigkeit, 1996
24324
24325# Copyright (C) 2014 Free Software Foundation, Inc.
24326# This is free software; see the source for copying conditions.  There is NO
24327# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
24328
24329# GNU Libtool is free software; you can redistribute it and/or modify
24330# it under the terms of the GNU General Public License as published by
24331# the Free Software Foundation; either version 2 of of the License, or
24332# (at your option) any later version.
24333#
24334# As a special exception to the GNU General Public License, if you
24335# distribute this file as part of a program or library that is built
24336# using GNU Libtool, you may include this file under the  same
24337# distribution terms that you use for the rest of that program.
24338#
24339# GNU Libtool is distributed in the hope that it will be useful, but
24340# WITHOUT ANY WARRANTY; without even the implied warranty of
24341# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
24342# GNU General Public License for more details.
24343#
24344# You should have received a copy of the GNU General Public License
24345# along with this program.  If not, see <http://www.gnu.org/licenses/>.
24346
24347
24348# The names of the tagged configurations supported by this script.
24349available_tags='CXX '
24350
24351# Configured defaults for sys_lib_dlsearch_path munging.
24352: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
24353
24354# ### BEGIN LIBTOOL CONFIG
24355
24356# Which release of libtool.m4 was used?
24357macro_version=$macro_version
24358macro_revision=$macro_revision
24359
24360# Assembler program.
24361AS=$lt_AS
24362
24363# DLL creation program.
24364DLLTOOL=$lt_DLLTOOL
24365
24366# Object dumper program.
24367OBJDUMP=$lt_OBJDUMP
24368
24369# Whether or not to build shared libraries.
24370build_libtool_libs=$enable_shared
24371
24372# Whether or not to build static libraries.
24373build_old_libs=$enable_static
24374
24375# What type of objects to build.
24376pic_mode=$pic_mode
24377
24378# Whether or not to optimize for fast installation.
24379fast_install=$enable_fast_install
24380
24381# Shared archive member basename,for filename based shared library versioning on AIX.
24382shared_archive_member_spec=$shared_archive_member_spec
24383
24384# Shell to use when invoking shell scripts.
24385SHELL=$lt_SHELL
24386
24387# An echo program that protects backslashes.
24388ECHO=$lt_ECHO
24389
24390# The PATH separator for the build system.
24391PATH_SEPARATOR=$lt_PATH_SEPARATOR
24392
24393# The host system.
24394host_alias=$host_alias
24395host=$host
24396host_os=$host_os
24397
24398# The build system.
24399build_alias=$build_alias
24400build=$build
24401build_os=$build_os
24402
24403# A sed program that does not truncate output.
24404SED=$lt_SED
24405
24406# Sed that helps us avoid accidentally triggering echo(1) options like -n.
24407Xsed="\$SED -e 1s/^X//"
24408
24409# A grep program that handles long lines.
24410GREP=$lt_GREP
24411
24412# An ERE matcher.
24413EGREP=$lt_EGREP
24414
24415# A literal string matcher.
24416FGREP=$lt_FGREP
24417
24418# A BSD- or MS-compatible name lister.
24419NM=$lt_NM
24420
24421# Whether we need soft or hard links.
24422LN_S=$lt_LN_S
24423
24424# What is the maximum length of a command?
24425max_cmd_len=$max_cmd_len
24426
24427# Object file suffix (normally "o").
24428objext=$ac_objext
24429
24430# Executable file suffix (normally "").
24431exeext=$exeext
24432
24433# whether the shell understands "unset".
24434lt_unset=$lt_unset
24435
24436# turn spaces into newlines.
24437SP2NL=$lt_lt_SP2NL
24438
24439# turn newlines into spaces.
24440NL2SP=$lt_lt_NL2SP
24441
24442# convert \$build file names to \$host format.
24443to_host_file_cmd=$lt_cv_to_host_file_cmd
24444
24445# convert \$build files to toolchain format.
24446to_tool_file_cmd=$lt_cv_to_tool_file_cmd
24447
24448# Method to check whether dependent libraries are shared objects.
24449deplibs_check_method=$lt_deplibs_check_method
24450
24451# Command to use when deplibs_check_method = "file_magic".
24452file_magic_cmd=$lt_file_magic_cmd
24453
24454# How to find potential files when deplibs_check_method = "file_magic".
24455file_magic_glob=$lt_file_magic_glob
24456
24457# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
24458want_nocaseglob=$lt_want_nocaseglob
24459
24460# Command to associate shared and link libraries.
24461sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
24462
24463# The archiver.
24464AR=$lt_AR
24465
24466# Flags to create an archive.
24467AR_FLAGS=$lt_AR_FLAGS
24468
24469# How to feed a file listing to the archiver.
24470archiver_list_spec=$lt_archiver_list_spec
24471
24472# A symbol stripping program.
24473STRIP=$lt_STRIP
24474
24475# Commands used to install an old-style archive.
24476RANLIB=$lt_RANLIB
24477old_postinstall_cmds=$lt_old_postinstall_cmds
24478old_postuninstall_cmds=$lt_old_postuninstall_cmds
24479
24480# Whether to use a lock for old archive extraction.
24481lock_old_archive_extraction=$lock_old_archive_extraction
24482
24483# A C compiler.
24484LTCC=$lt_CC
24485
24486# LTCC compiler flags.
24487LTCFLAGS=$lt_CFLAGS
24488
24489# Take the output of nm and produce a listing of raw symbols and C names.
24490global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24491
24492# Transform the output of nm in a proper C declaration.
24493global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24494
24495# Transform the output of nm into a list of symbols to manually relocate.
24496global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
24497
24498# Transform the output of nm in a C name address pair.
24499global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24500
24501# Transform the output of nm in a C name address pair when lib prefix is needed.
24502global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
24503
24504# The name lister interface.
24505nm_interface=$lt_lt_cv_nm_interface
24506
24507# Specify filename containing input files for \$NM.
24508nm_file_list_spec=$lt_nm_file_list_spec
24509
24510# The root where to search for dependent libraries,and where our libraries should be installed.
24511lt_sysroot=$lt_sysroot
24512
24513# Command to truncate a binary pipe.
24514lt_truncate_bin=$lt_lt_cv_truncate_bin
24515
24516# The name of the directory that contains temporary libtool files.
24517objdir=$objdir
24518
24519# Used to examine libraries when file_magic_cmd begins with "file".
24520MAGIC_CMD=$MAGIC_CMD
24521
24522# Must we lock files when doing compilation?
24523need_locks=$lt_need_locks
24524
24525# Manifest tool.
24526MANIFEST_TOOL=$lt_MANIFEST_TOOL
24527
24528# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
24529DSYMUTIL=$lt_DSYMUTIL
24530
24531# Tool to change global to local symbols on Mac OS X.
24532NMEDIT=$lt_NMEDIT
24533
24534# Tool to manipulate fat objects and archives on Mac OS X.
24535LIPO=$lt_LIPO
24536
24537# ldd/readelf like tool for Mach-O binaries on Mac OS X.
24538OTOOL=$lt_OTOOL
24539
24540# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
24541OTOOL64=$lt_OTOOL64
24542
24543# Old archive suffix (normally "a").
24544libext=$libext
24545
24546# Shared library suffix (normally ".so").
24547shrext_cmds=$lt_shrext_cmds
24548
24549# The commands to extract the exported symbol list from a shared archive.
24550extract_expsyms_cmds=$lt_extract_expsyms_cmds
24551
24552# Variables whose values should be saved in libtool wrapper scripts and
24553# restored at link time.
24554variables_saved_for_relink=$lt_variables_saved_for_relink
24555
24556# Do we need the "lib" prefix for modules?
24557need_lib_prefix=$need_lib_prefix
24558
24559# Do we need a version for libraries?
24560need_version=$need_version
24561
24562# Library versioning type.
24563version_type=$version_type
24564
24565# Shared library runtime path variable.
24566runpath_var=$runpath_var
24567
24568# Shared library path variable.
24569shlibpath_var=$shlibpath_var
24570
24571# Is shlibpath searched before the hard-coded library search path?
24572shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24573
24574# Format of library name prefix.
24575libname_spec=$lt_libname_spec
24576
24577# List of archive names.  First name is the real one, the rest are links.
24578# The last name is the one that the linker finds with -lNAME
24579library_names_spec=$lt_library_names_spec
24580
24581# The coded name of the library, if different from the real name.
24582soname_spec=$lt_soname_spec
24583
24584# Permission mode override for installation of shared libraries.
24585install_override_mode=$lt_install_override_mode
24586
24587# Command to use after installation of a shared archive.
24588postinstall_cmds=$lt_postinstall_cmds
24589
24590# Command to use after uninstallation of a shared archive.
24591postuninstall_cmds=$lt_postuninstall_cmds
24592
24593# Commands used to finish a libtool library installation in a directory.
24594finish_cmds=$lt_finish_cmds
24595
24596# As "finish_cmds", except a single script fragment to be evaled but
24597# not shown.
24598finish_eval=$lt_finish_eval
24599
24600# Whether we should hardcode library paths into libraries.
24601hardcode_into_libs=$hardcode_into_libs
24602
24603# Compile-time system search path for libraries.
24604sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24605
24606# Detected run-time system search path for libraries.
24607sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
24608
24609# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
24610configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
24611
24612# Whether dlopen is supported.
24613dlopen_support=$enable_dlopen
24614
24615# Whether dlopen of programs is supported.
24616dlopen_self=$enable_dlopen_self
24617
24618# Whether dlopen of statically linked programs is supported.
24619dlopen_self_static=$enable_dlopen_self_static
24620
24621# Commands to strip libraries.
24622old_striplib=$lt_old_striplib
24623striplib=$lt_striplib
24624
24625
24626# The linker used to build libraries.
24627LD=$lt_LD
24628
24629# How to create reloadable object files.
24630reload_flag=$lt_reload_flag
24631reload_cmds=$lt_reload_cmds
24632
24633# Commands used to build an old-style archive.
24634old_archive_cmds=$lt_old_archive_cmds
24635
24636# A language specific compiler.
24637CC=$lt_compiler
24638
24639# Is the compiler the GNU compiler?
24640with_gcc=$GCC
24641
24642# Compiler flag to turn off builtin functions.
24643no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
24644
24645# Additional compiler flags for building library objects.
24646pic_flag=$lt_lt_prog_compiler_pic
24647
24648# How to pass a linker flag through the compiler.
24649wl=$lt_lt_prog_compiler_wl
24650
24651# Compiler flag to prevent dynamic linking.
24652link_static_flag=$lt_lt_prog_compiler_static
24653
24654# Does compiler simultaneously support -c and -o options?
24655compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24656
24657# Whether or not to add -lc for building shared libraries.
24658build_libtool_need_lc=$archive_cmds_need_lc
24659
24660# Whether or not to disallow shared libs when runtime libs are static.
24661allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24662
24663# Compiler flag to allow reflexive dlopens.
24664export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24665
24666# Compiler flag to generate shared objects directly from archives.
24667whole_archive_flag_spec=$lt_whole_archive_flag_spec
24668
24669# Whether the compiler copes with passing no objects directly.
24670compiler_needs_object=$lt_compiler_needs_object
24671
24672# Create an old-style archive from a shared archive.
24673old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24674
24675# Create a temporary old-style archive to link instead of a shared archive.
24676old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24677
24678# Commands used to build a shared archive.
24679archive_cmds=$lt_archive_cmds
24680archive_expsym_cmds=$lt_archive_expsym_cmds
24681
24682# Commands used to build a loadable module if different from building
24683# a shared archive.
24684module_cmds=$lt_module_cmds
24685module_expsym_cmds=$lt_module_expsym_cmds
24686
24687# Whether we are building with GNU ld or not.
24688with_gnu_ld=$lt_with_gnu_ld
24689
24690# Flag that allows shared libraries with undefined symbols to be built.
24691allow_undefined_flag=$lt_allow_undefined_flag
24692
24693# Flag that enforces no undefined symbols.
24694no_undefined_flag=$lt_no_undefined_flag
24695
24696# Flag to hardcode \$libdir into a binary during linking.
24697# This must work even if \$libdir does not exist
24698hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24699
24700# Whether we need a single "-rpath" flag with a separated argument.
24701hardcode_libdir_separator=$lt_hardcode_libdir_separator
24702
24703# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24704# DIR into the resulting binary.
24705hardcode_direct=$hardcode_direct
24706
24707# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24708# DIR into the resulting binary and the resulting library dependency is
24709# "absolute",i.e impossible to change by setting \$shlibpath_var if the
24710# library is relocated.
24711hardcode_direct_absolute=$hardcode_direct_absolute
24712
24713# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24714# into the resulting binary.
24715hardcode_minus_L=$hardcode_minus_L
24716
24717# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24718# into the resulting binary.
24719hardcode_shlibpath_var=$hardcode_shlibpath_var
24720
24721# Set to "yes" if building a shared library automatically hardcodes DIR
24722# into the library and all subsequent libraries and executables linked
24723# against it.
24724hardcode_automatic=$hardcode_automatic
24725
24726# Set to yes if linker adds runtime paths of dependent libraries
24727# to runtime path list.
24728inherit_rpath=$inherit_rpath
24729
24730# Whether libtool must link a program against all its dependency libraries.
24731link_all_deplibs=$link_all_deplibs
24732
24733# Set to "yes" if exported symbols are required.
24734always_export_symbols=$always_export_symbols
24735
24736# The commands to list exported symbols.
24737export_symbols_cmds=$lt_export_symbols_cmds
24738
24739# Symbols that should not be listed in the preloaded symbols.
24740exclude_expsyms=$lt_exclude_expsyms
24741
24742# Symbols that must always be exported.
24743include_expsyms=$lt_include_expsyms
24744
24745# Commands necessary for linking programs (against libraries) with templates.
24746prelink_cmds=$lt_prelink_cmds
24747
24748# Commands necessary for finishing linking programs.
24749postlink_cmds=$lt_postlink_cmds
24750
24751# Specify filename containing input files.
24752file_list_spec=$lt_file_list_spec
24753
24754# How to hardcode a shared library path into an executable.
24755hardcode_action=$hardcode_action
24756
24757# The directories searched by this compiler when creating a shared library.
24758compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
24759
24760# Dependencies to place before and after the objects being linked to
24761# create a shared library.
24762predep_objects=$lt_predep_objects
24763postdep_objects=$lt_postdep_objects
24764predeps=$lt_predeps
24765postdeps=$lt_postdeps
24766
24767# The library search path used internally by the compiler when linking
24768# a shared library.
24769compiler_lib_search_path=$lt_compiler_lib_search_path
24770
24771# ### END LIBTOOL CONFIG
24772
24773_LT_EOF
24774
24775    cat <<'_LT_EOF' >> "$cfgfile"
24776
24777# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
24778
24779# func_munge_path_list VARIABLE PATH
24780# -----------------------------------
24781# VARIABLE is name of variable containing _space_ separated list of
24782# directories to be munged by the contents of PATH, which is string
24783# having a format:
24784# "DIR[:DIR]:"
24785#       string "DIR[ DIR]" will be prepended to VARIABLE
24786# ":DIR[:DIR]"
24787#       string "DIR[ DIR]" will be appended to VARIABLE
24788# "DIRP[:DIRP]::[DIRA:]DIRA"
24789#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
24790#       "DIRA[ DIRA]" will be appended to VARIABLE
24791# "DIR[:DIR]"
24792#       VARIABLE will be replaced by "DIR[ DIR]"
24793func_munge_path_list ()
24794{
24795    case x$2 in
24796    x)
24797        ;;
24798    *:)
24799        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
24800        ;;
24801    x:*)
24802        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
24803        ;;
24804    *::*)
24805        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
24806        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
24807        ;;
24808    *)
24809        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
24810        ;;
24811    esac
24812}
24813
24814
24815# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
24816func_cc_basename ()
24817{
24818    for cc_temp in $*""; do
24819      case $cc_temp in
24820        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24821        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24822        \-*) ;;
24823        *) break;;
24824      esac
24825    done
24826    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
24827}
24828
24829
24830# ### END FUNCTIONS SHARED WITH CONFIGURE
24831
24832_LT_EOF
24833
24834  case $host_os in
24835  aix3*)
24836    cat <<\_LT_EOF >> "$cfgfile"
24837# AIX sometimes has problems with the GCC collect2 program.  For some
24838# reason, if we set the COLLECT_NAMES environment variable, the problems
24839# vanish in a puff of smoke.
24840if test set != "${COLLECT_NAMES+set}"; then
24841  COLLECT_NAMES=
24842  export COLLECT_NAMES
24843fi
24844_LT_EOF
24845    ;;
24846  esac
24847
24848
24849ltmain=$ac_aux_dir/ltmain.sh
24850
24851
24852  # We use sed instead of cat because bash on DJGPP gets confused if
24853  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
24854  # text mode, it properly converts lines to CR/LF.  This bash problem
24855  # is reportedly fixed, but why not run on old versions too?
24856  sed '$q' "$ltmain" >> "$cfgfile" \
24857     || (rm -f "$cfgfile"; exit 1)
24858
24859   mv -f "$cfgfile" "$ofile" ||
24860    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24861  chmod +x "$ofile"
24862
24863
24864    cat <<_LT_EOF >> "$ofile"
24865
24866# ### BEGIN LIBTOOL TAG CONFIG: CXX
24867
24868# The linker used to build libraries.
24869LD=$lt_LD_CXX
24870
24871# How to create reloadable object files.
24872reload_flag=$lt_reload_flag_CXX
24873reload_cmds=$lt_reload_cmds_CXX
24874
24875# Commands used to build an old-style archive.
24876old_archive_cmds=$lt_old_archive_cmds_CXX
24877
24878# A language specific compiler.
24879CC=$lt_compiler_CXX
24880
24881# Is the compiler the GNU compiler?
24882with_gcc=$GCC_CXX
24883
24884# Compiler flag to turn off builtin functions.
24885no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
24886
24887# Additional compiler flags for building library objects.
24888pic_flag=$lt_lt_prog_compiler_pic_CXX
24889
24890# How to pass a linker flag through the compiler.
24891wl=$lt_lt_prog_compiler_wl_CXX
24892
24893# Compiler flag to prevent dynamic linking.
24894link_static_flag=$lt_lt_prog_compiler_static_CXX
24895
24896# Does compiler simultaneously support -c and -o options?
24897compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
24898
24899# Whether or not to add -lc for building shared libraries.
24900build_libtool_need_lc=$archive_cmds_need_lc_CXX
24901
24902# Whether or not to disallow shared libs when runtime libs are static.
24903allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
24904
24905# Compiler flag to allow reflexive dlopens.
24906export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
24907
24908# Compiler flag to generate shared objects directly from archives.
24909whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
24910
24911# Whether the compiler copes with passing no objects directly.
24912compiler_needs_object=$lt_compiler_needs_object_CXX
24913
24914# Create an old-style archive from a shared archive.
24915old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
24916
24917# Create a temporary old-style archive to link instead of a shared archive.
24918old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
24919
24920# Commands used to build a shared archive.
24921archive_cmds=$lt_archive_cmds_CXX
24922archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
24923
24924# Commands used to build a loadable module if different from building
24925# a shared archive.
24926module_cmds=$lt_module_cmds_CXX
24927module_expsym_cmds=$lt_module_expsym_cmds_CXX
24928
24929# Whether we are building with GNU ld or not.
24930with_gnu_ld=$lt_with_gnu_ld_CXX
24931
24932# Flag that allows shared libraries with undefined symbols to be built.
24933allow_undefined_flag=$lt_allow_undefined_flag_CXX
24934
24935# Flag that enforces no undefined symbols.
24936no_undefined_flag=$lt_no_undefined_flag_CXX
24937
24938# Flag to hardcode \$libdir into a binary during linking.
24939# This must work even if \$libdir does not exist
24940hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
24941
24942# Whether we need a single "-rpath" flag with a separated argument.
24943hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
24944
24945# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24946# DIR into the resulting binary.
24947hardcode_direct=$hardcode_direct_CXX
24948
24949# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24950# DIR into the resulting binary and the resulting library dependency is
24951# "absolute",i.e impossible to change by setting \$shlibpath_var if the
24952# library is relocated.
24953hardcode_direct_absolute=$hardcode_direct_absolute_CXX
24954
24955# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24956# into the resulting binary.
24957hardcode_minus_L=$hardcode_minus_L_CXX
24958
24959# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24960# into the resulting binary.
24961hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
24962
24963# Set to "yes" if building a shared library automatically hardcodes DIR
24964# into the library and all subsequent libraries and executables linked
24965# against it.
24966hardcode_automatic=$hardcode_automatic_CXX
24967
24968# Set to yes if linker adds runtime paths of dependent libraries
24969# to runtime path list.
24970inherit_rpath=$inherit_rpath_CXX
24971
24972# Whether libtool must link a program against all its dependency libraries.
24973link_all_deplibs=$link_all_deplibs_CXX
24974
24975# Set to "yes" if exported symbols are required.
24976always_export_symbols=$always_export_symbols_CXX
24977
24978# The commands to list exported symbols.
24979export_symbols_cmds=$lt_export_symbols_cmds_CXX
24980
24981# Symbols that should not be listed in the preloaded symbols.
24982exclude_expsyms=$lt_exclude_expsyms_CXX
24983
24984# Symbols that must always be exported.
24985include_expsyms=$lt_include_expsyms_CXX
24986
24987# Commands necessary for linking programs (against libraries) with templates.
24988prelink_cmds=$lt_prelink_cmds_CXX
24989
24990# Commands necessary for finishing linking programs.
24991postlink_cmds=$lt_postlink_cmds_CXX
24992
24993# Specify filename containing input files.
24994file_list_spec=$lt_file_list_spec_CXX
24995
24996# How to hardcode a shared library path into an executable.
24997hardcode_action=$hardcode_action_CXX
24998
24999# The directories searched by this compiler when creating a shared library.
25000compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
25001
25002# Dependencies to place before and after the objects being linked to
25003# create a shared library.
25004predep_objects=$lt_predep_objects_CXX
25005postdep_objects=$lt_postdep_objects_CXX
25006predeps=$lt_predeps_CXX
25007postdeps=$lt_postdeps_CXX
25008
25009# The library search path used internally by the compiler when linking
25010# a shared library.
25011compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
25012
25013# ### END LIBTOOL TAG CONFIG: CXX
25014_LT_EOF
25015
25016 ;;
25017    "basis":C) test -e basis || ln -sf ${ac_top_srcdir}/basis . ;;
25018    "mlsource":C) test -e mlsource || ln -sf ${ac_top_srcdir}/mlsource . ;;
25019    "polyc":F) chmod +x polyc ;;
25020
25021  esac
25022done # for ac_tag
25023
25024
25025as_fn_exit 0
25026_ACEOF
25027ac_clean_files=$ac_clean_files_save
25028
25029test $ac_write_fail = 0 ||
25030  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
25031
25032
25033# configure is writing to config.log, and then calls config.status.
25034# config.status does its own redirection, appending to config.log.
25035# Unfortunately, on DOS this fails, as config.log is still kept open
25036# by configure, so config.status won't be able to write to it; its
25037# output is simply discarded.  So we exec the FD to /dev/null,
25038# effectively closing config.log, so it can be properly (re)opened and
25039# appended to by config.status.  When coming back to configure, we
25040# need to make the FD available again.
25041if test "$no_create" != yes; then
25042  ac_cs_success=:
25043  ac_config_status_args=
25044  test "$silent" = yes &&
25045    ac_config_status_args="$ac_config_status_args --quiet"
25046  exec 5>/dev/null
25047  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25048  exec 5>>config.log
25049  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25050  # would make configure fail if this is the last instruction.
25051  $ac_cs_success || as_fn_exit 1
25052fi
25053if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
25054  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
25055$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
25056fi
25057
25058