1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for ANU Nilpotent Quotient Program 2.5.4.
4#
5# Report bugs to <https://github.com/gap-packages/nq/issues>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    PATH=/empty FPATH=/empty; export PATH FPATH
207    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: https://github.com/gap-packages/nq/issues about your
279$0: system, including any error possibly output before this
280$0: message. Then install a modern shell, or manually run
281$0: the script under such a shell if you do have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='ANU Nilpotent Quotient Program'
592PACKAGE_TARNAME='nq'
593PACKAGE_VERSION='2.5.4'
594PACKAGE_STRING='ANU Nilpotent Quotient Program 2.5.4'
595PACKAGE_BUGREPORT='https://github.com/gap-packages/nq/issues'
596PACKAGE_URL='http://gap-packages.github.io/nq/'
597
598ac_unique_file="src/nq.c"
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613#  include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618#  include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635ac_subst_vars='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
638LIBOBJS
639ABI_CFLAGS
640ABI
641GAP_LIBS
642GAP_LDFLAGS
643GAP_CFLAGS
644GAP_CPPFLAGS
645GAPROOT
646GAPARCH
647CPP
648LT_SYS_LIBRARY_PATH
649OTOOL64
650OTOOL
651LIPO
652NMEDIT
653DSYMUTIL
654MANIFEST_TOOL
655RANLIB
656ac_ct_AR
657AR
658DLLTOOL
659OBJDUMP
660LN_S
661NM
662ac_ct_DUMPBIN
663DUMPBIN
664LD
665FGREP
666EGREP
667GREP
668SED
669am__fastdepCC_FALSE
670am__fastdepCC_TRUE
671CCDEPMODE
672am__nodep
673AMDEPBACKSLASH
674AMDEP_FALSE
675AMDEP_TRUE
676am__quote
677am__include
678DEPDIR
679OBJEXT
680EXEEXT
681ac_ct_CC
682CPPFLAGS
683LDFLAGS
684CFLAGS
685CC
686host_os
687host_vendor
688host_cpu
689host
690build_os
691build_vendor
692build_cpu
693build
694LIBTOOL
695MAINT
696MAINTAINER_MODE_FALSE
697MAINTAINER_MODE_TRUE
698AM_BACKSLASH
699AM_DEFAULT_VERBOSITY
700AM_DEFAULT_V
701AM_V
702am__untar
703am__tar
704AMTAR
705am__leading_dot
706SET_MAKE
707AWK
708mkdir_p
709MKDIR_P
710INSTALL_STRIP_PROGRAM
711STRIP
712install_sh
713MAKEINFO
714AUTOHEADER
715AUTOMAKE
716AUTOCONF
717ACLOCAL
718VERSION
719PACKAGE
720CYGPATH_W
721am__isrc
722INSTALL_DATA
723INSTALL_SCRIPT
724INSTALL_PROGRAM
725target_alias
726host_alias
727build_alias
728LIBS
729ECHO_T
730ECHO_N
731ECHO_C
732DEFS
733mandir
734localedir
735libdir
736psdir
737pdfdir
738dvidir
739htmldir
740infodir
741docdir
742oldincludedir
743includedir
744localstatedir
745sharedstatedir
746sysconfdir
747datadir
748datarootdir
749libexecdir
750sbindir
751bindir
752program_transform_name
753prefix
754exec_prefix
755PACKAGE_URL
756PACKAGE_BUGREPORT
757PACKAGE_STRING
758PACKAGE_VERSION
759PACKAGE_TARNAME
760PACKAGE_NAME
761PATH_SEPARATOR
762SHELL'
763ac_subst_files=''
764ac_user_opts='
765enable_option_checking
766enable_silent_rules
767enable_maintainer_mode
768enable_shared
769enable_static
770with_pic
771enable_fast_install
772with_aix_soname
773enable_dependency_tracking
774with_gnu_ld
775with_sysroot
776enable_libtool_lock
777with_gaproot
778'
779      ac_precious_vars='build_alias
780host_alias
781target_alias
782CC
783CFLAGS
784LDFLAGS
785LIBS
786CPPFLAGS
787LT_SYS_LIBRARY_PATH
788CPP
789ABI'
790
791
792# Initialize some variables set by options.
793ac_init_help=
794ac_init_version=false
795ac_unrecognized_opts=
796ac_unrecognized_sep=
797# The variables have the same names as the options, with
798# dashes changed to underlines.
799cache_file=/dev/null
800exec_prefix=NONE
801no_create=
802no_recursion=
803prefix=NONE
804program_prefix=NONE
805program_suffix=NONE
806program_transform_name=s,x,x,
807silent=
808site=
809srcdir=
810verbose=
811x_includes=NONE
812x_libraries=NONE
813
814# Installation directory options.
815# These are left unexpanded so users can "make install exec_prefix=/foo"
816# and all the variables that are supposed to be based on exec_prefix
817# by default will actually change.
818# Use braces instead of parens because sh, perl, etc. also accept them.
819# (The list follows the same order as the GNU Coding Standards.)
820bindir='${exec_prefix}/bin'
821sbindir='${exec_prefix}/sbin'
822libexecdir='${exec_prefix}/libexec'
823datarootdir='${prefix}/share'
824datadir='${datarootdir}'
825sysconfdir='${prefix}/etc'
826sharedstatedir='${prefix}/com'
827localstatedir='${prefix}/var'
828includedir='${prefix}/include'
829oldincludedir='/usr/include'
830docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
831infodir='${datarootdir}/info'
832htmldir='${docdir}'
833dvidir='${docdir}'
834pdfdir='${docdir}'
835psdir='${docdir}'
836libdir='${exec_prefix}/lib'
837localedir='${datarootdir}/locale'
838mandir='${datarootdir}/man'
839
840ac_prev=
841ac_dashdash=
842for ac_option
843do
844  # If the previous option needs an argument, assign it.
845  if test -n "$ac_prev"; then
846    eval $ac_prev=\$ac_option
847    ac_prev=
848    continue
849  fi
850
851  case $ac_option in
852  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
853  *=)   ac_optarg= ;;
854  *)    ac_optarg=yes ;;
855  esac
856
857  # Accept the important Cygnus configure options, so we can diagnose typos.
858
859  case $ac_dashdash$ac_option in
860  --)
861    ac_dashdash=yes ;;
862
863  -bindir | --bindir | --bindi | --bind | --bin | --bi)
864    ac_prev=bindir ;;
865  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
866    bindir=$ac_optarg ;;
867
868  -build | --build | --buil | --bui | --bu)
869    ac_prev=build_alias ;;
870  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
871    build_alias=$ac_optarg ;;
872
873  -cache-file | --cache-file | --cache-fil | --cache-fi \
874  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
875    ac_prev=cache_file ;;
876  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
877  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
878    cache_file=$ac_optarg ;;
879
880  --config-cache | -C)
881    cache_file=config.cache ;;
882
883  -datadir | --datadir | --datadi | --datad)
884    ac_prev=datadir ;;
885  -datadir=* | --datadir=* | --datadi=* | --datad=*)
886    datadir=$ac_optarg ;;
887
888  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
889  | --dataroo | --dataro | --datar)
890    ac_prev=datarootdir ;;
891  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
892  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
893    datarootdir=$ac_optarg ;;
894
895  -disable-* | --disable-*)
896    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
897    # Reject names that are not valid shell variable names.
898    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
899      as_fn_error $? "invalid feature name: $ac_useropt"
900    ac_useropt_orig=$ac_useropt
901    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
902    case $ac_user_opts in
903      *"
904"enable_$ac_useropt"
905"*) ;;
906      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
907	 ac_unrecognized_sep=', ';;
908    esac
909    eval enable_$ac_useropt=no ;;
910
911  -docdir | --docdir | --docdi | --doc | --do)
912    ac_prev=docdir ;;
913  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
914    docdir=$ac_optarg ;;
915
916  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
917    ac_prev=dvidir ;;
918  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
919    dvidir=$ac_optarg ;;
920
921  -enable-* | --enable-*)
922    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
923    # Reject names that are not valid shell variable names.
924    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
925      as_fn_error $? "invalid feature name: $ac_useropt"
926    ac_useropt_orig=$ac_useropt
927    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928    case $ac_user_opts in
929      *"
930"enable_$ac_useropt"
931"*) ;;
932      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
933	 ac_unrecognized_sep=', ';;
934    esac
935    eval enable_$ac_useropt=\$ac_optarg ;;
936
937  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
938  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
939  | --exec | --exe | --ex)
940    ac_prev=exec_prefix ;;
941  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
942  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
943  | --exec=* | --exe=* | --ex=*)
944    exec_prefix=$ac_optarg ;;
945
946  -gas | --gas | --ga | --g)
947    # Obsolete; use --with-gas.
948    with_gas=yes ;;
949
950  -help | --help | --hel | --he | -h)
951    ac_init_help=long ;;
952  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
953    ac_init_help=recursive ;;
954  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
955    ac_init_help=short ;;
956
957  -host | --host | --hos | --ho)
958    ac_prev=host_alias ;;
959  -host=* | --host=* | --hos=* | --ho=*)
960    host_alias=$ac_optarg ;;
961
962  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
963    ac_prev=htmldir ;;
964  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
965  | --ht=*)
966    htmldir=$ac_optarg ;;
967
968  -includedir | --includedir | --includedi | --included | --include \
969  | --includ | --inclu | --incl | --inc)
970    ac_prev=includedir ;;
971  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
972  | --includ=* | --inclu=* | --incl=* | --inc=*)
973    includedir=$ac_optarg ;;
974
975  -infodir | --infodir | --infodi | --infod | --info | --inf)
976    ac_prev=infodir ;;
977  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
978    infodir=$ac_optarg ;;
979
980  -libdir | --libdir | --libdi | --libd)
981    ac_prev=libdir ;;
982  -libdir=* | --libdir=* | --libdi=* | --libd=*)
983    libdir=$ac_optarg ;;
984
985  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
986  | --libexe | --libex | --libe)
987    ac_prev=libexecdir ;;
988  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
989  | --libexe=* | --libex=* | --libe=*)
990    libexecdir=$ac_optarg ;;
991
992  -localedir | --localedir | --localedi | --localed | --locale)
993    ac_prev=localedir ;;
994  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
995    localedir=$ac_optarg ;;
996
997  -localstatedir | --localstatedir | --localstatedi | --localstated \
998  | --localstate | --localstat | --localsta | --localst | --locals)
999    ac_prev=localstatedir ;;
1000  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1001  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1002    localstatedir=$ac_optarg ;;
1003
1004  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1005    ac_prev=mandir ;;
1006  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1007    mandir=$ac_optarg ;;
1008
1009  -nfp | --nfp | --nf)
1010    # Obsolete; use --without-fp.
1011    with_fp=no ;;
1012
1013  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1014  | --no-cr | --no-c | -n)
1015    no_create=yes ;;
1016
1017  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1018  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1019    no_recursion=yes ;;
1020
1021  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1022  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1023  | --oldin | --oldi | --old | --ol | --o)
1024    ac_prev=oldincludedir ;;
1025  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1026  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1027  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1028    oldincludedir=$ac_optarg ;;
1029
1030  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1031    ac_prev=prefix ;;
1032  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1033    prefix=$ac_optarg ;;
1034
1035  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1036  | --program-pre | --program-pr | --program-p)
1037    ac_prev=program_prefix ;;
1038  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1039  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1040    program_prefix=$ac_optarg ;;
1041
1042  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1043  | --program-suf | --program-su | --program-s)
1044    ac_prev=program_suffix ;;
1045  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1046  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1047    program_suffix=$ac_optarg ;;
1048
1049  -program-transform-name | --program-transform-name \
1050  | --program-transform-nam | --program-transform-na \
1051  | --program-transform-n | --program-transform- \
1052  | --program-transform | --program-transfor \
1053  | --program-transfo | --program-transf \
1054  | --program-trans | --program-tran \
1055  | --progr-tra | --program-tr | --program-t)
1056    ac_prev=program_transform_name ;;
1057  -program-transform-name=* | --program-transform-name=* \
1058  | --program-transform-nam=* | --program-transform-na=* \
1059  | --program-transform-n=* | --program-transform-=* \
1060  | --program-transform=* | --program-transfor=* \
1061  | --program-transfo=* | --program-transf=* \
1062  | --program-trans=* | --program-tran=* \
1063  | --progr-tra=* | --program-tr=* | --program-t=*)
1064    program_transform_name=$ac_optarg ;;
1065
1066  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1067    ac_prev=pdfdir ;;
1068  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1069    pdfdir=$ac_optarg ;;
1070
1071  -psdir | --psdir | --psdi | --psd | --ps)
1072    ac_prev=psdir ;;
1073  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1074    psdir=$ac_optarg ;;
1075
1076  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1077  | -silent | --silent | --silen | --sile | --sil)
1078    silent=yes ;;
1079
1080  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1081    ac_prev=sbindir ;;
1082  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1083  | --sbi=* | --sb=*)
1084    sbindir=$ac_optarg ;;
1085
1086  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1087  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1088  | --sharedst | --shareds | --shared | --share | --shar \
1089  | --sha | --sh)
1090    ac_prev=sharedstatedir ;;
1091  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1092  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1093  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1094  | --sha=* | --sh=*)
1095    sharedstatedir=$ac_optarg ;;
1096
1097  -site | --site | --sit)
1098    ac_prev=site ;;
1099  -site=* | --site=* | --sit=*)
1100    site=$ac_optarg ;;
1101
1102  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1103    ac_prev=srcdir ;;
1104  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1105    srcdir=$ac_optarg ;;
1106
1107  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1108  | --syscon | --sysco | --sysc | --sys | --sy)
1109    ac_prev=sysconfdir ;;
1110  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1111  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1112    sysconfdir=$ac_optarg ;;
1113
1114  -target | --target | --targe | --targ | --tar | --ta | --t)
1115    ac_prev=target_alias ;;
1116  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1117    target_alias=$ac_optarg ;;
1118
1119  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1120    verbose=yes ;;
1121
1122  -version | --version | --versio | --versi | --vers | -V)
1123    ac_init_version=: ;;
1124
1125  -with-* | --with-*)
1126    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1127    # Reject names that are not valid shell variable names.
1128    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1129      as_fn_error $? "invalid package name: $ac_useropt"
1130    ac_useropt_orig=$ac_useropt
1131    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1132    case $ac_user_opts in
1133      *"
1134"with_$ac_useropt"
1135"*) ;;
1136      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1137	 ac_unrecognized_sep=', ';;
1138    esac
1139    eval with_$ac_useropt=\$ac_optarg ;;
1140
1141  -without-* | --without-*)
1142    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1143    # Reject names that are not valid shell variable names.
1144    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1145      as_fn_error $? "invalid package name: $ac_useropt"
1146    ac_useropt_orig=$ac_useropt
1147    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1148    case $ac_user_opts in
1149      *"
1150"with_$ac_useropt"
1151"*) ;;
1152      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1153	 ac_unrecognized_sep=', ';;
1154    esac
1155    eval with_$ac_useropt=no ;;
1156
1157  --x)
1158    # Obsolete; use --with-x.
1159    with_x=yes ;;
1160
1161  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1162  | --x-incl | --x-inc | --x-in | --x-i)
1163    ac_prev=x_includes ;;
1164  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1165  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1166    x_includes=$ac_optarg ;;
1167
1168  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1169  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1170    ac_prev=x_libraries ;;
1171  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1172  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1173    x_libraries=$ac_optarg ;;
1174
1175  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1176Try \`$0 --help' for more information"
1177    ;;
1178
1179  *=*)
1180    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1181    # Reject names that are not valid shell variable names.
1182    case $ac_envvar in #(
1183      '' | [0-9]* | *[!_$as_cr_alnum]* )
1184      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1185    esac
1186    eval $ac_envvar=\$ac_optarg
1187    export $ac_envvar ;;
1188
1189  *)
1190    # FIXME: should be removed in autoconf 3.0.
1191    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1192    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1193      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1194    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1195    ;;
1196
1197  esac
1198done
1199
1200if test -n "$ac_prev"; then
1201  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1202  as_fn_error $? "missing argument to $ac_option"
1203fi
1204
1205if test -n "$ac_unrecognized_opts"; then
1206  case $enable_option_checking in
1207    no) ;;
1208    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1209    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1210  esac
1211fi
1212
1213# Check all directory arguments for consistency.
1214for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1215		datadir sysconfdir sharedstatedir localstatedir includedir \
1216		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1217		libdir localedir mandir
1218do
1219  eval ac_val=\$$ac_var
1220  # Remove trailing slashes.
1221  case $ac_val in
1222    */ )
1223      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1224      eval $ac_var=\$ac_val;;
1225  esac
1226  # Be sure to have absolute directory names.
1227  case $ac_val in
1228    [\\/$]* | ?:[\\/]* )  continue;;
1229    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1230  esac
1231  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1232done
1233
1234# There might be people who depend on the old broken behavior: `$host'
1235# used to hold the argument of --host etc.
1236# FIXME: To remove some day.
1237build=$build_alias
1238host=$host_alias
1239target=$target_alias
1240
1241# FIXME: To remove some day.
1242if test "x$host_alias" != x; then
1243  if test "x$build_alias" = x; then
1244    cross_compiling=maybe
1245  elif test "x$build_alias" != "x$host_alias"; then
1246    cross_compiling=yes
1247  fi
1248fi
1249
1250ac_tool_prefix=
1251test -n "$host_alias" && ac_tool_prefix=$host_alias-
1252
1253test "$silent" = yes && exec 6>/dev/null
1254
1255
1256ac_pwd=`pwd` && test -n "$ac_pwd" &&
1257ac_ls_di=`ls -di .` &&
1258ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1259  as_fn_error $? "working directory cannot be determined"
1260test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1261  as_fn_error $? "pwd does not report name of working directory"
1262
1263
1264# Find the source files, if location was not specified.
1265if test -z "$srcdir"; then
1266  ac_srcdir_defaulted=yes
1267  # Try the directory containing this script, then the parent directory.
1268  ac_confdir=`$as_dirname -- "$as_myself" ||
1269$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1270	 X"$as_myself" : 'X\(//\)[^/]' \| \
1271	 X"$as_myself" : 'X\(//\)$' \| \
1272	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1273$as_echo X"$as_myself" |
1274    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1275	    s//\1/
1276	    q
1277	  }
1278	  /^X\(\/\/\)[^/].*/{
1279	    s//\1/
1280	    q
1281	  }
1282	  /^X\(\/\/\)$/{
1283	    s//\1/
1284	    q
1285	  }
1286	  /^X\(\/\).*/{
1287	    s//\1/
1288	    q
1289	  }
1290	  s/.*/./; q'`
1291  srcdir=$ac_confdir
1292  if test ! -r "$srcdir/$ac_unique_file"; then
1293    srcdir=..
1294  fi
1295else
1296  ac_srcdir_defaulted=no
1297fi
1298if test ! -r "$srcdir/$ac_unique_file"; then
1299  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1300  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1301fi
1302ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1303ac_abs_confdir=`(
1304	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1305	pwd)`
1306# When building in place, set srcdir=.
1307if test "$ac_abs_confdir" = "$ac_pwd"; then
1308  srcdir=.
1309fi
1310# Remove unnecessary trailing slashes from srcdir.
1311# Double slashes in file names in object file debugging info
1312# mess up M-x gdb in Emacs.
1313case $srcdir in
1314*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1315esac
1316for ac_var in $ac_precious_vars; do
1317  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1318  eval ac_env_${ac_var}_value=\$${ac_var}
1319  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1320  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1321done
1322
1323#
1324# Report the --help message.
1325#
1326if test "$ac_init_help" = "long"; then
1327  # Omit some internal or obsolete options to make the list less imposing.
1328  # This message is too long to be a string in the A/UX 3.1 sh.
1329  cat <<_ACEOF
1330\`configure' configures ANU Nilpotent Quotient Program 2.5.4 to adapt to many kinds of systems.
1331
1332Usage: $0 [OPTION]... [VAR=VALUE]...
1333
1334To assign environment variables (e.g., CC, CFLAGS...), specify them as
1335VAR=VALUE.  See below for descriptions of some of the useful variables.
1336
1337Defaults for the options are specified in brackets.
1338
1339Configuration:
1340  -h, --help              display this help and exit
1341      --help=short        display options specific to this package
1342      --help=recursive    display the short help of all the included packages
1343  -V, --version           display version information and exit
1344  -q, --quiet, --silent   do not print \`checking ...' messages
1345      --cache-file=FILE   cache test results in FILE [disabled]
1346  -C, --config-cache      alias for \`--cache-file=config.cache'
1347  -n, --no-create         do not create output files
1348      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1349
1350Installation directories:
1351  --prefix=PREFIX         install architecture-independent files in PREFIX
1352                          [$ac_default_prefix]
1353  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1354                          [PREFIX]
1355
1356By default, \`make install' will install all the files in
1357\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1358an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1359for instance \`--prefix=\$HOME'.
1360
1361For better control, use the options below.
1362
1363Fine tuning of the installation directories:
1364  --bindir=DIR            user executables [EPREFIX/bin]
1365  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1366  --libexecdir=DIR        program executables [EPREFIX/libexec]
1367  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1368  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1369  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1370  --libdir=DIR            object code libraries [EPREFIX/lib]
1371  --includedir=DIR        C header files [PREFIX/include]
1372  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1373  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1374  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1375  --infodir=DIR           info documentation [DATAROOTDIR/info]
1376  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1377  --mandir=DIR            man documentation [DATAROOTDIR/man]
1378  --docdir=DIR            documentation root [DATAROOTDIR/doc/nq]
1379  --htmldir=DIR           html documentation [DOCDIR]
1380  --dvidir=DIR            dvi documentation [DOCDIR]
1381  --pdfdir=DIR            pdf documentation [DOCDIR]
1382  --psdir=DIR             ps documentation [DOCDIR]
1383_ACEOF
1384
1385  cat <<\_ACEOF
1386
1387Program names:
1388  --program-prefix=PREFIX            prepend PREFIX to installed program names
1389  --program-suffix=SUFFIX            append SUFFIX to installed program names
1390  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1391
1392System types:
1393  --build=BUILD     configure for building on BUILD [guessed]
1394  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1395_ACEOF
1396fi
1397
1398if test -n "$ac_init_help"; then
1399  case $ac_init_help in
1400     short | recursive ) echo "Configuration of ANU Nilpotent Quotient Program 2.5.4:";;
1401   esac
1402  cat <<\_ACEOF
1403
1404Optional Features:
1405  --disable-option-checking  ignore unrecognized --enable/--with options
1406  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1407  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1408  --enable-silent-rules   less verbose build output (undo: "make V=1")
1409  --disable-silent-rules  verbose build output (undo: "make V=0")
1410  --enable-maintainer-mode
1411                          enable make rules and dependencies not useful (and
1412                          sometimes confusing) to the casual installer
1413  --enable-shared[=PKGS]  build shared libraries [default=yes]
1414  --enable-static[=PKGS]  build static libraries [default=yes]
1415  --enable-fast-install[=PKGS]
1416                          optimize for fast installation [default=yes]
1417  --enable-dependency-tracking
1418                          do not reject slow dependency extractors
1419  --disable-dependency-tracking
1420                          speeds up one-time build
1421  --disable-libtool-lock  avoid locking (might break parallel builds)
1422
1423Optional Packages:
1424  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1425  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1426  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1427                          both]
1428  --with-aix-soname=aix|svr4|both
1429                          shared library versioning (aka "SONAME") variant to
1430                          provide on AIX, [default=aix].
1431  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1432  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1433                          compiler's sysroot if not specified).
1434  --with-gaproot=<path>   specify root of GAP installation
1435
1436Some influential environment variables:
1437  CC          C compiler command
1438  CFLAGS      C compiler flags
1439  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1440              nonstandard directory <lib dir>
1441  LIBS        libraries to pass to the linker, e.g. -l<library>
1442  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1443              you have headers in a nonstandard directory <include dir>
1444  LT_SYS_LIBRARY_PATH
1445              User-defined run-time library search path.
1446  CPP         C preprocessor
1447  ABI         Set this equal to 32 or 64 to build nq in 32- or 64-bit mode.
1448              The default value for this option is determined by testing the
1449              behaviour of your compiler, so should be 32 on a 32-bit system
1450              and 64 on one which is 64-bit.
1451
1452Use these variables to override the choices made by `configure' or to help
1453it to find libraries and programs with nonstandard names/locations.
1454
1455Report bugs to <https://github.com/gap-packages/nq/issues>.
1456ANU Nilpotent Quotient Program home page: <http://gap-packages.github.io/nq/>.
1457_ACEOF
1458ac_status=$?
1459fi
1460
1461if test "$ac_init_help" = "recursive"; then
1462  # If there are subdirs, report their specific --help.
1463  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1464    test -d "$ac_dir" ||
1465      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1466      continue
1467    ac_builddir=.
1468
1469case "$ac_dir" in
1470.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1471*)
1472  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1473  # A ".." for each directory in $ac_dir_suffix.
1474  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1475  case $ac_top_builddir_sub in
1476  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1477  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1478  esac ;;
1479esac
1480ac_abs_top_builddir=$ac_pwd
1481ac_abs_builddir=$ac_pwd$ac_dir_suffix
1482# for backward compatibility:
1483ac_top_builddir=$ac_top_build_prefix
1484
1485case $srcdir in
1486  .)  # We are building in place.
1487    ac_srcdir=.
1488    ac_top_srcdir=$ac_top_builddir_sub
1489    ac_abs_top_srcdir=$ac_pwd ;;
1490  [\\/]* | ?:[\\/]* )  # Absolute name.
1491    ac_srcdir=$srcdir$ac_dir_suffix;
1492    ac_top_srcdir=$srcdir
1493    ac_abs_top_srcdir=$srcdir ;;
1494  *) # Relative name.
1495    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1496    ac_top_srcdir=$ac_top_build_prefix$srcdir
1497    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1498esac
1499ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1500
1501    cd "$ac_dir" || { ac_status=$?; continue; }
1502    # Check for guested configure.
1503    if test -f "$ac_srcdir/configure.gnu"; then
1504      echo &&
1505      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1506    elif test -f "$ac_srcdir/configure"; then
1507      echo &&
1508      $SHELL "$ac_srcdir/configure" --help=recursive
1509    else
1510      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1511    fi || ac_status=$?
1512    cd "$ac_pwd" || { ac_status=$?; break; }
1513  done
1514fi
1515
1516test -n "$ac_init_help" && exit $ac_status
1517if $ac_init_version; then
1518  cat <<\_ACEOF
1519ANU Nilpotent Quotient Program configure 2.5.4
1520generated by GNU Autoconf 2.69
1521
1522Copyright (C) 2012 Free Software Foundation, Inc.
1523This configure script is free software; the Free Software Foundation
1524gives unlimited permission to copy, distribute and modify it.
1525_ACEOF
1526  exit
1527fi
1528
1529## ------------------------ ##
1530## Autoconf initialization. ##
1531## ------------------------ ##
1532
1533# ac_fn_c_try_compile LINENO
1534# --------------------------
1535# Try to compile conftest.$ac_ext, and return whether this succeeded.
1536ac_fn_c_try_compile ()
1537{
1538  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1539  rm -f conftest.$ac_objext
1540  if { { ac_try="$ac_compile"
1541case "(($ac_try" in
1542  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1543  *) ac_try_echo=$ac_try;;
1544esac
1545eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1546$as_echo "$ac_try_echo"; } >&5
1547  (eval "$ac_compile") 2>conftest.err
1548  ac_status=$?
1549  if test -s conftest.err; then
1550    grep -v '^ *+' conftest.err >conftest.er1
1551    cat conftest.er1 >&5
1552    mv -f conftest.er1 conftest.err
1553  fi
1554  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1555  test $ac_status = 0; } && {
1556	 test -z "$ac_c_werror_flag" ||
1557	 test ! -s conftest.err
1558       } && test -s conftest.$ac_objext; then :
1559  ac_retval=0
1560else
1561  $as_echo "$as_me: failed program was:" >&5
1562sed 's/^/| /' conftest.$ac_ext >&5
1563
1564	ac_retval=1
1565fi
1566  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1567  as_fn_set_status $ac_retval
1568
1569} # ac_fn_c_try_compile
1570
1571# ac_fn_c_try_link LINENO
1572# -----------------------
1573# Try to link conftest.$ac_ext, and return whether this succeeded.
1574ac_fn_c_try_link ()
1575{
1576  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1577  rm -f conftest.$ac_objext conftest$ac_exeext
1578  if { { ac_try="$ac_link"
1579case "(($ac_try" in
1580  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1581  *) ac_try_echo=$ac_try;;
1582esac
1583eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1584$as_echo "$ac_try_echo"; } >&5
1585  (eval "$ac_link") 2>conftest.err
1586  ac_status=$?
1587  if test -s conftest.err; then
1588    grep -v '^ *+' conftest.err >conftest.er1
1589    cat conftest.er1 >&5
1590    mv -f conftest.er1 conftest.err
1591  fi
1592  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1593  test $ac_status = 0; } && {
1594	 test -z "$ac_c_werror_flag" ||
1595	 test ! -s conftest.err
1596       } && test -s conftest$ac_exeext && {
1597	 test "$cross_compiling" = yes ||
1598	 test -x conftest$ac_exeext
1599       }; then :
1600  ac_retval=0
1601else
1602  $as_echo "$as_me: failed program was:" >&5
1603sed 's/^/| /' conftest.$ac_ext >&5
1604
1605	ac_retval=1
1606fi
1607  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1608  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1609  # interfere with the next link command; also delete a directory that is
1610  # left behind by Apple's compiler.  We do this before executing the actions.
1611  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1612  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1613  as_fn_set_status $ac_retval
1614
1615} # ac_fn_c_try_link
1616
1617# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1618# -------------------------------------------------------
1619# Tests whether HEADER exists and can be compiled using the include files in
1620# INCLUDES, setting the cache variable VAR accordingly.
1621ac_fn_c_check_header_compile ()
1622{
1623  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1625$as_echo_n "checking for $2... " >&6; }
1626if eval \${$3+:} false; then :
1627  $as_echo_n "(cached) " >&6
1628else
1629  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1630/* end confdefs.h.  */
1631$4
1632#include <$2>
1633_ACEOF
1634if ac_fn_c_try_compile "$LINENO"; then :
1635  eval "$3=yes"
1636else
1637  eval "$3=no"
1638fi
1639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1640fi
1641eval ac_res=\$$3
1642	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1643$as_echo "$ac_res" >&6; }
1644  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1645
1646} # ac_fn_c_check_header_compile
1647
1648# ac_fn_c_try_cpp LINENO
1649# ----------------------
1650# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1651ac_fn_c_try_cpp ()
1652{
1653  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654  if { { ac_try="$ac_cpp conftest.$ac_ext"
1655case "(($ac_try" in
1656  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1657  *) ac_try_echo=$ac_try;;
1658esac
1659eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1660$as_echo "$ac_try_echo"; } >&5
1661  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1662  ac_status=$?
1663  if test -s conftest.err; then
1664    grep -v '^ *+' conftest.err >conftest.er1
1665    cat conftest.er1 >&5
1666    mv -f conftest.er1 conftest.err
1667  fi
1668  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1669  test $ac_status = 0; } > conftest.i && {
1670	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1671	 test ! -s conftest.err
1672       }; then :
1673  ac_retval=0
1674else
1675  $as_echo "$as_me: failed program was:" >&5
1676sed 's/^/| /' conftest.$ac_ext >&5
1677
1678    ac_retval=1
1679fi
1680  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1681  as_fn_set_status $ac_retval
1682
1683} # ac_fn_c_try_cpp
1684
1685# ac_fn_c_try_run LINENO
1686# ----------------------
1687# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1688# that executables *can* be run.
1689ac_fn_c_try_run ()
1690{
1691  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692  if { { ac_try="$ac_link"
1693case "(($ac_try" in
1694  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695  *) ac_try_echo=$ac_try;;
1696esac
1697eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698$as_echo "$ac_try_echo"; } >&5
1699  (eval "$ac_link") 2>&5
1700  ac_status=$?
1701  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1703  { { case "(($ac_try" in
1704  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705  *) ac_try_echo=$ac_try;;
1706esac
1707eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708$as_echo "$ac_try_echo"; } >&5
1709  (eval "$ac_try") 2>&5
1710  ac_status=$?
1711  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712  test $ac_status = 0; }; }; then :
1713  ac_retval=0
1714else
1715  $as_echo "$as_me: program exited with status $ac_status" >&5
1716       $as_echo "$as_me: failed program was:" >&5
1717sed 's/^/| /' conftest.$ac_ext >&5
1718
1719       ac_retval=$ac_status
1720fi
1721  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1722  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1723  as_fn_set_status $ac_retval
1724
1725} # ac_fn_c_try_run
1726
1727# ac_fn_c_check_func LINENO FUNC VAR
1728# ----------------------------------
1729# Tests whether FUNC exists, setting the cache variable VAR accordingly
1730ac_fn_c_check_func ()
1731{
1732  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1734$as_echo_n "checking for $2... " >&6; }
1735if eval \${$3+:} false; then :
1736  $as_echo_n "(cached) " >&6
1737else
1738  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1739/* end confdefs.h.  */
1740/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1741   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1742#define $2 innocuous_$2
1743
1744/* System header to define __stub macros and hopefully few prototypes,
1745    which can conflict with char $2 (); below.
1746    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1747    <limits.h> exists even on freestanding compilers.  */
1748
1749#ifdef __STDC__
1750# include <limits.h>
1751#else
1752# include <assert.h>
1753#endif
1754
1755#undef $2
1756
1757/* Override any GCC internal prototype to avoid an error.
1758   Use char because int might match the return type of a GCC
1759   builtin and then its argument prototype would still apply.  */
1760#ifdef __cplusplus
1761extern "C"
1762#endif
1763char $2 ();
1764/* The GNU C library defines this for functions which it implements
1765    to always fail with ENOSYS.  Some functions are actually named
1766    something starting with __ and the normal name is an alias.  */
1767#if defined __stub_$2 || defined __stub___$2
1768choke me
1769#endif
1770
1771int
1772main ()
1773{
1774return $2 ();
1775  ;
1776  return 0;
1777}
1778_ACEOF
1779if ac_fn_c_try_link "$LINENO"; then :
1780  eval "$3=yes"
1781else
1782  eval "$3=no"
1783fi
1784rm -f core conftest.err conftest.$ac_objext \
1785    conftest$ac_exeext conftest.$ac_ext
1786fi
1787eval ac_res=\$$3
1788	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1789$as_echo "$ac_res" >&6; }
1790  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791
1792} # ac_fn_c_check_func
1793
1794# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1795# -------------------------------------------------------
1796# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1797# the include files in INCLUDES and setting the cache variable VAR
1798# accordingly.
1799ac_fn_c_check_header_mongrel ()
1800{
1801  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802  if eval \${$3+:} false; then :
1803  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1804$as_echo_n "checking for $2... " >&6; }
1805if eval \${$3+:} false; then :
1806  $as_echo_n "(cached) " >&6
1807fi
1808eval ac_res=\$$3
1809	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1810$as_echo "$ac_res" >&6; }
1811else
1812  # Is the header compilable?
1813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1814$as_echo_n "checking $2 usability... " >&6; }
1815cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1816/* end confdefs.h.  */
1817$4
1818#include <$2>
1819_ACEOF
1820if ac_fn_c_try_compile "$LINENO"; then :
1821  ac_header_compiler=yes
1822else
1823  ac_header_compiler=no
1824fi
1825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1827$as_echo "$ac_header_compiler" >&6; }
1828
1829# Is the header present?
1830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1831$as_echo_n "checking $2 presence... " >&6; }
1832cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1833/* end confdefs.h.  */
1834#include <$2>
1835_ACEOF
1836if ac_fn_c_try_cpp "$LINENO"; then :
1837  ac_header_preproc=yes
1838else
1839  ac_header_preproc=no
1840fi
1841rm -f conftest.err conftest.i conftest.$ac_ext
1842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1843$as_echo "$ac_header_preproc" >&6; }
1844
1845# So?  What about this header?
1846case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1847  yes:no: )
1848    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1849$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1850    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1851$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1852    ;;
1853  no:yes:* )
1854    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1855$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1856    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1857$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1858    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1859$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1860    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1861$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1862    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1863$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1864( $as_echo "## -------------------------------------------------------- ##
1865## Report this to https://github.com/gap-packages/nq/issues ##
1866## -------------------------------------------------------- ##"
1867     ) | sed "s/^/$as_me: WARNING:     /" >&2
1868    ;;
1869esac
1870  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1871$as_echo_n "checking for $2... " >&6; }
1872if eval \${$3+:} false; then :
1873  $as_echo_n "(cached) " >&6
1874else
1875  eval "$3=\$ac_header_compiler"
1876fi
1877eval ac_res=\$$3
1878	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1879$as_echo "$ac_res" >&6; }
1880fi
1881  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1882
1883} # ac_fn_c_check_header_mongrel
1884
1885# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1886# --------------------------------------------
1887# Tries to find the compile-time value of EXPR in a program that includes
1888# INCLUDES, setting VAR accordingly. Returns whether the value could be
1889# computed
1890ac_fn_c_compute_int ()
1891{
1892  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893  if test "$cross_compiling" = yes; then
1894    # Depending upon the size, compute the lo and hi bounds.
1895cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1896/* end confdefs.h.  */
1897$4
1898int
1899main ()
1900{
1901static int test_array [1 - 2 * !(($2) >= 0)];
1902test_array [0] = 0;
1903return test_array [0];
1904
1905  ;
1906  return 0;
1907}
1908_ACEOF
1909if ac_fn_c_try_compile "$LINENO"; then :
1910  ac_lo=0 ac_mid=0
1911  while :; do
1912    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1913/* end confdefs.h.  */
1914$4
1915int
1916main ()
1917{
1918static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1919test_array [0] = 0;
1920return test_array [0];
1921
1922  ;
1923  return 0;
1924}
1925_ACEOF
1926if ac_fn_c_try_compile "$LINENO"; then :
1927  ac_hi=$ac_mid; break
1928else
1929  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1930			if test $ac_lo -le $ac_mid; then
1931			  ac_lo= ac_hi=
1932			  break
1933			fi
1934			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1935fi
1936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1937  done
1938else
1939  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940/* end confdefs.h.  */
1941$4
1942int
1943main ()
1944{
1945static int test_array [1 - 2 * !(($2) < 0)];
1946test_array [0] = 0;
1947return test_array [0];
1948
1949  ;
1950  return 0;
1951}
1952_ACEOF
1953if ac_fn_c_try_compile "$LINENO"; then :
1954  ac_hi=-1 ac_mid=-1
1955  while :; do
1956    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1957/* end confdefs.h.  */
1958$4
1959int
1960main ()
1961{
1962static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1963test_array [0] = 0;
1964return test_array [0];
1965
1966  ;
1967  return 0;
1968}
1969_ACEOF
1970if ac_fn_c_try_compile "$LINENO"; then :
1971  ac_lo=$ac_mid; break
1972else
1973  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1974			if test $ac_mid -le $ac_hi; then
1975			  ac_lo= ac_hi=
1976			  break
1977			fi
1978			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1979fi
1980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1981  done
1982else
1983  ac_lo= ac_hi=
1984fi
1985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1986fi
1987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1988# Binary search between lo and hi bounds.
1989while test "x$ac_lo" != "x$ac_hi"; do
1990  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1991  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1992/* end confdefs.h.  */
1993$4
1994int
1995main ()
1996{
1997static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1998test_array [0] = 0;
1999return test_array [0];
2000
2001  ;
2002  return 0;
2003}
2004_ACEOF
2005if ac_fn_c_try_compile "$LINENO"; then :
2006  ac_hi=$ac_mid
2007else
2008  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2009fi
2010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2011done
2012case $ac_lo in #((
2013?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2014'') ac_retval=1 ;;
2015esac
2016  else
2017    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018/* end confdefs.h.  */
2019$4
2020static long int longval () { return $2; }
2021static unsigned long int ulongval () { return $2; }
2022#include <stdio.h>
2023#include <stdlib.h>
2024int
2025main ()
2026{
2027
2028  FILE *f = fopen ("conftest.val", "w");
2029  if (! f)
2030    return 1;
2031  if (($2) < 0)
2032    {
2033      long int i = longval ();
2034      if (i != ($2))
2035	return 1;
2036      fprintf (f, "%ld", i);
2037    }
2038  else
2039    {
2040      unsigned long int i = ulongval ();
2041      if (i != ($2))
2042	return 1;
2043      fprintf (f, "%lu", i);
2044    }
2045  /* Do not output a trailing newline, as this causes \r\n confusion
2046     on some platforms.  */
2047  return ferror (f) || fclose (f) != 0;
2048
2049  ;
2050  return 0;
2051}
2052_ACEOF
2053if ac_fn_c_try_run "$LINENO"; then :
2054  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2055else
2056  ac_retval=1
2057fi
2058rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2059  conftest.$ac_objext conftest.beam conftest.$ac_ext
2060rm -f conftest.val
2061
2062  fi
2063  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2064  as_fn_set_status $ac_retval
2065
2066} # ac_fn_c_compute_int
2067cat >config.log <<_ACEOF
2068This file contains any messages produced by compilers while
2069running configure, to aid debugging if configure makes a mistake.
2070
2071It was created by ANU Nilpotent Quotient Program $as_me 2.5.4, which was
2072generated by GNU Autoconf 2.69.  Invocation command line was
2073
2074  $ $0 $@
2075
2076_ACEOF
2077exec 5>>config.log
2078{
2079cat <<_ASUNAME
2080## --------- ##
2081## Platform. ##
2082## --------- ##
2083
2084hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2085uname -m = `(uname -m) 2>/dev/null || echo unknown`
2086uname -r = `(uname -r) 2>/dev/null || echo unknown`
2087uname -s = `(uname -s) 2>/dev/null || echo unknown`
2088uname -v = `(uname -v) 2>/dev/null || echo unknown`
2089
2090/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2091/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2092
2093/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2094/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2095/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2096/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2097/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2098/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2099/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2100
2101_ASUNAME
2102
2103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2104for as_dir in $PATH
2105do
2106  IFS=$as_save_IFS
2107  test -z "$as_dir" && as_dir=.
2108    $as_echo "PATH: $as_dir"
2109  done
2110IFS=$as_save_IFS
2111
2112} >&5
2113
2114cat >&5 <<_ACEOF
2115
2116
2117## ----------- ##
2118## Core tests. ##
2119## ----------- ##
2120
2121_ACEOF
2122
2123
2124# Keep a trace of the command line.
2125# Strip out --no-create and --no-recursion so they do not pile up.
2126# Strip out --silent because we don't want to record it for future runs.
2127# Also quote any args containing shell meta-characters.
2128# Make two passes to allow for proper duplicate-argument suppression.
2129ac_configure_args=
2130ac_configure_args0=
2131ac_configure_args1=
2132ac_must_keep_next=false
2133for ac_pass in 1 2
2134do
2135  for ac_arg
2136  do
2137    case $ac_arg in
2138    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2139    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2140    | -silent | --silent | --silen | --sile | --sil)
2141      continue ;;
2142    *\'*)
2143      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2144    esac
2145    case $ac_pass in
2146    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2147    2)
2148      as_fn_append ac_configure_args1 " '$ac_arg'"
2149      if test $ac_must_keep_next = true; then
2150	ac_must_keep_next=false # Got value, back to normal.
2151      else
2152	case $ac_arg in
2153	  *=* | --config-cache | -C | -disable-* | --disable-* \
2154	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2155	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2156	  | -with-* | --with-* | -without-* | --without-* | --x)
2157	    case "$ac_configure_args0 " in
2158	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2159	    esac
2160	    ;;
2161	  -* ) ac_must_keep_next=true ;;
2162	esac
2163      fi
2164      as_fn_append ac_configure_args " '$ac_arg'"
2165      ;;
2166    esac
2167  done
2168done
2169{ ac_configure_args0=; unset ac_configure_args0;}
2170{ ac_configure_args1=; unset ac_configure_args1;}
2171
2172# When interrupted or exit'd, cleanup temporary files, and complete
2173# config.log.  We remove comments because anyway the quotes in there
2174# would cause problems or look ugly.
2175# WARNING: Use '\'' to represent an apostrophe within the trap.
2176# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2177trap 'exit_status=$?
2178  # Save into config.log some information that might help in debugging.
2179  {
2180    echo
2181
2182    $as_echo "## ---------------- ##
2183## Cache variables. ##
2184## ---------------- ##"
2185    echo
2186    # The following way of writing the cache mishandles newlines in values,
2187(
2188  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2189    eval ac_val=\$$ac_var
2190    case $ac_val in #(
2191    *${as_nl}*)
2192      case $ac_var in #(
2193      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2194$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2195      esac
2196      case $ac_var in #(
2197      _ | IFS | as_nl) ;; #(
2198      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2199      *) { eval $ac_var=; unset $ac_var;} ;;
2200      esac ;;
2201    esac
2202  done
2203  (set) 2>&1 |
2204    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2205    *${as_nl}ac_space=\ *)
2206      sed -n \
2207	"s/'\''/'\''\\\\'\'''\''/g;
2208	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2209      ;; #(
2210    *)
2211      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2212      ;;
2213    esac |
2214    sort
2215)
2216    echo
2217
2218    $as_echo "## ----------------- ##
2219## Output variables. ##
2220## ----------------- ##"
2221    echo
2222    for ac_var in $ac_subst_vars
2223    do
2224      eval ac_val=\$$ac_var
2225      case $ac_val in
2226      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2227      esac
2228      $as_echo "$ac_var='\''$ac_val'\''"
2229    done | sort
2230    echo
2231
2232    if test -n "$ac_subst_files"; then
2233      $as_echo "## ------------------- ##
2234## File substitutions. ##
2235## ------------------- ##"
2236      echo
2237      for ac_var in $ac_subst_files
2238      do
2239	eval ac_val=\$$ac_var
2240	case $ac_val in
2241	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2242	esac
2243	$as_echo "$ac_var='\''$ac_val'\''"
2244      done | sort
2245      echo
2246    fi
2247
2248    if test -s confdefs.h; then
2249      $as_echo "## ----------- ##
2250## confdefs.h. ##
2251## ----------- ##"
2252      echo
2253      cat confdefs.h
2254      echo
2255    fi
2256    test "$ac_signal" != 0 &&
2257      $as_echo "$as_me: caught signal $ac_signal"
2258    $as_echo "$as_me: exit $exit_status"
2259  } >&5
2260  rm -f core *.core core.conftest.* &&
2261    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2262    exit $exit_status
2263' 0
2264for ac_signal in 1 2 13 15; do
2265  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2266done
2267ac_signal=0
2268
2269# confdefs.h avoids OS command line length limits that DEFS can exceed.
2270rm -f -r conftest* confdefs.h
2271
2272$as_echo "/* confdefs.h */" > confdefs.h
2273
2274# Predefined preprocessor variables.
2275
2276cat >>confdefs.h <<_ACEOF
2277#define PACKAGE_NAME "$PACKAGE_NAME"
2278_ACEOF
2279
2280cat >>confdefs.h <<_ACEOF
2281#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2282_ACEOF
2283
2284cat >>confdefs.h <<_ACEOF
2285#define PACKAGE_VERSION "$PACKAGE_VERSION"
2286_ACEOF
2287
2288cat >>confdefs.h <<_ACEOF
2289#define PACKAGE_STRING "$PACKAGE_STRING"
2290_ACEOF
2291
2292cat >>confdefs.h <<_ACEOF
2293#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2294_ACEOF
2295
2296cat >>confdefs.h <<_ACEOF
2297#define PACKAGE_URL "$PACKAGE_URL"
2298_ACEOF
2299
2300
2301# Let the site file select an alternate cache file if it wants to.
2302# Prefer an explicitly selected file to automatically selected ones.
2303ac_site_file1=NONE
2304ac_site_file2=NONE
2305if test -n "$CONFIG_SITE"; then
2306  # We do not want a PATH search for config.site.
2307  case $CONFIG_SITE in #((
2308    -*)  ac_site_file1=./$CONFIG_SITE;;
2309    */*) ac_site_file1=$CONFIG_SITE;;
2310    *)   ac_site_file1=./$CONFIG_SITE;;
2311  esac
2312elif test "x$prefix" != xNONE; then
2313  ac_site_file1=$prefix/share/config.site
2314  ac_site_file2=$prefix/etc/config.site
2315else
2316  ac_site_file1=$ac_default_prefix/share/config.site
2317  ac_site_file2=$ac_default_prefix/etc/config.site
2318fi
2319for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2320do
2321  test "x$ac_site_file" = xNONE && continue
2322  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2323    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2324$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2325    sed 's/^/| /' "$ac_site_file" >&5
2326    . "$ac_site_file" \
2327      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2328$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2329as_fn_error $? "failed to load site script $ac_site_file
2330See \`config.log' for more details" "$LINENO" 5; }
2331  fi
2332done
2333
2334if test -r "$cache_file"; then
2335  # Some versions of bash will fail to source /dev/null (special files
2336  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2337  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2338    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2339$as_echo "$as_me: loading cache $cache_file" >&6;}
2340    case $cache_file in
2341      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2342      *)                      . "./$cache_file";;
2343    esac
2344  fi
2345else
2346  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2347$as_echo "$as_me: creating cache $cache_file" >&6;}
2348  >$cache_file
2349fi
2350
2351# Check that the precious variables saved in the cache have kept the same
2352# value.
2353ac_cache_corrupted=false
2354for ac_var in $ac_precious_vars; do
2355  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2356  eval ac_new_set=\$ac_env_${ac_var}_set
2357  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2358  eval ac_new_val=\$ac_env_${ac_var}_value
2359  case $ac_old_set,$ac_new_set in
2360    set,)
2361      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2362$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2363      ac_cache_corrupted=: ;;
2364    ,set)
2365      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2366$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2367      ac_cache_corrupted=: ;;
2368    ,);;
2369    *)
2370      if test "x$ac_old_val" != "x$ac_new_val"; then
2371	# differences in whitespace do not lead to failure.
2372	ac_old_val_w=`echo x $ac_old_val`
2373	ac_new_val_w=`echo x $ac_new_val`
2374	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2375	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2376$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2377	  ac_cache_corrupted=:
2378	else
2379	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2380$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2381	  eval $ac_var=\$ac_old_val
2382	fi
2383	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2384$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2385	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2386$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2387      fi;;
2388  esac
2389  # Pass precious variables to config.status.
2390  if test "$ac_new_set" = set; then
2391    case $ac_new_val in
2392    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2393    *) ac_arg=$ac_var=$ac_new_val ;;
2394    esac
2395    case " $ac_configure_args " in
2396      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2397      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2398    esac
2399  fi
2400done
2401if $ac_cache_corrupted; then
2402  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2403$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2404  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2405$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2406  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2407fi
2408## -------------------- ##
2409## Main body of script. ##
2410## -------------------- ##
2411
2412ac_ext=c
2413ac_cpp='$CPP $CPPFLAGS'
2414ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2415ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2416ac_compiler_gnu=$ac_cv_c_compiler_gnu
2417
2418
2419
2420ac_config_headers="$ac_config_headers src/config.h:src/config.hin"
2421
2422ac_aux_dir=
2423for ac_dir in cnf "$srcdir"/cnf; do
2424  if test -f "$ac_dir/install-sh"; then
2425    ac_aux_dir=$ac_dir
2426    ac_install_sh="$ac_aux_dir/install-sh -c"
2427    break
2428  elif test -f "$ac_dir/install.sh"; then
2429    ac_aux_dir=$ac_dir
2430    ac_install_sh="$ac_aux_dir/install.sh -c"
2431    break
2432  elif test -f "$ac_dir/shtool"; then
2433    ac_aux_dir=$ac_dir
2434    ac_install_sh="$ac_aux_dir/shtool install -c"
2435    break
2436  fi
2437done
2438if test -z "$ac_aux_dir"; then
2439  as_fn_error $? "cannot find install-sh, install.sh, or shtool in cnf \"$srcdir\"/cnf" "$LINENO" 5
2440fi
2441
2442# These three variables are undocumented and unsupported,
2443# and are intended to be withdrawn in a future Autoconf release.
2444# They can cause serious problems if a builder's source tree is in a directory
2445# whose full name contains unusual characters.
2446ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2447ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2448ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2449
2450
2451
2452am__api_version='1.15'
2453
2454# Find a good install program.  We prefer a C program (faster),
2455# so one script is as good as another.  But avoid the broken or
2456# incompatible versions:
2457# SysV /etc/install, /usr/sbin/install
2458# SunOS /usr/etc/install
2459# IRIX /sbin/install
2460# AIX /bin/install
2461# AmigaOS /C/install, which installs bootblocks on floppy discs
2462# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2463# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2464# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2465# OS/2's system install, which has a completely different semantic
2466# ./install, which can be erroneously created by make from ./install.sh.
2467# Reject install programs that cannot install multiple files.
2468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2469$as_echo_n "checking for a BSD-compatible install... " >&6; }
2470if test -z "$INSTALL"; then
2471if ${ac_cv_path_install+:} false; then :
2472  $as_echo_n "(cached) " >&6
2473else
2474  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2475for as_dir in $PATH
2476do
2477  IFS=$as_save_IFS
2478  test -z "$as_dir" && as_dir=.
2479    # Account for people who put trailing slashes in PATH elements.
2480case $as_dir/ in #((
2481  ./ | .// | /[cC]/* | \
2482  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2483  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2484  /usr/ucb/* ) ;;
2485  *)
2486    # OSF1 and SCO ODT 3.0 have their own names for install.
2487    # Don't use installbsd from OSF since it installs stuff as root
2488    # by default.
2489    for ac_prog in ginstall scoinst install; do
2490      for ac_exec_ext in '' $ac_executable_extensions; do
2491	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2492	  if test $ac_prog = install &&
2493	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2494	    # AIX install.  It has an incompatible calling convention.
2495	    :
2496	  elif test $ac_prog = install &&
2497	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2498	    # program-specific install script used by HP pwplus--don't use.
2499	    :
2500	  else
2501	    rm -rf conftest.one conftest.two conftest.dir
2502	    echo one > conftest.one
2503	    echo two > conftest.two
2504	    mkdir conftest.dir
2505	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2506	      test -s conftest.one && test -s conftest.two &&
2507	      test -s conftest.dir/conftest.one &&
2508	      test -s conftest.dir/conftest.two
2509	    then
2510	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2511	      break 3
2512	    fi
2513	  fi
2514	fi
2515      done
2516    done
2517    ;;
2518esac
2519
2520  done
2521IFS=$as_save_IFS
2522
2523rm -rf conftest.one conftest.two conftest.dir
2524
2525fi
2526  if test "${ac_cv_path_install+set}" = set; then
2527    INSTALL=$ac_cv_path_install
2528  else
2529    # As a last resort, use the slow shell script.  Don't cache a
2530    # value for INSTALL within a source directory, because that will
2531    # break other packages using the cache if that directory is
2532    # removed, or if the value is a relative name.
2533    INSTALL=$ac_install_sh
2534  fi
2535fi
2536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2537$as_echo "$INSTALL" >&6; }
2538
2539# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2540# It thinks the first close brace ends the variable substitution.
2541test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2542
2543test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2544
2545test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2546
2547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2548$as_echo_n "checking whether build environment is sane... " >&6; }
2549# Reject unsafe characters in $srcdir or the absolute working directory
2550# name.  Accept space and tab only in the latter.
2551am_lf='
2552'
2553case `pwd` in
2554  *[\\\"\#\$\&\'\`$am_lf]*)
2555    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2556esac
2557case $srcdir in
2558  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2559    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2560esac
2561
2562# Do 'set' in a subshell so we don't clobber the current shell's
2563# arguments.  Must try -L first in case configure is actually a
2564# symlink; some systems play weird games with the mod time of symlinks
2565# (eg FreeBSD returns the mod time of the symlink's containing
2566# directory).
2567if (
2568   am_has_slept=no
2569   for am_try in 1 2; do
2570     echo "timestamp, slept: $am_has_slept" > conftest.file
2571     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2572     if test "$*" = "X"; then
2573	# -L didn't work.
2574	set X `ls -t "$srcdir/configure" conftest.file`
2575     fi
2576     if test "$*" != "X $srcdir/configure conftest.file" \
2577	&& test "$*" != "X conftest.file $srcdir/configure"; then
2578
2579	# If neither matched, then we have a broken ls.  This can happen
2580	# if, for instance, CONFIG_SHELL is bash and it inherits a
2581	# broken ls alias from the environment.  This has actually
2582	# happened.  Such a system could not be considered "sane".
2583	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2584  alias in your environment" "$LINENO" 5
2585     fi
2586     if test "$2" = conftest.file || test $am_try -eq 2; then
2587       break
2588     fi
2589     # Just in case.
2590     sleep 1
2591     am_has_slept=yes
2592   done
2593   test "$2" = conftest.file
2594   )
2595then
2596   # Ok.
2597   :
2598else
2599   as_fn_error $? "newly created file is older than distributed files!
2600Check your system clock" "$LINENO" 5
2601fi
2602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2603$as_echo "yes" >&6; }
2604# If we didn't sleep, we still need to ensure time stamps of config.status and
2605# generated files are strictly newer.
2606am_sleep_pid=
2607if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2608  ( sleep 1 ) &
2609  am_sleep_pid=$!
2610fi
2611
2612rm -f conftest.file
2613
2614test "$program_prefix" != NONE &&
2615  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2616# Use a double $ so make ignores it.
2617test "$program_suffix" != NONE &&
2618  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2619# Double any \ or $.
2620# By default was `s,x,x', remove it if useless.
2621ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2622program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2623
2624# Expand $ac_aux_dir to an absolute path.
2625am_aux_dir=`cd "$ac_aux_dir" && pwd`
2626
2627if test x"${MISSING+set}" != xset; then
2628  case $am_aux_dir in
2629  *\ * | *\	*)
2630    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2631  *)
2632    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2633  esac
2634fi
2635# Use eval to expand $SHELL
2636if eval "$MISSING --is-lightweight"; then
2637  am_missing_run="$MISSING "
2638else
2639  am_missing_run=
2640  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2641$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2642fi
2643
2644if test x"${install_sh+set}" != xset; then
2645  case $am_aux_dir in
2646  *\ * | *\	*)
2647    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2648  *)
2649    install_sh="\${SHELL} $am_aux_dir/install-sh"
2650  esac
2651fi
2652
2653# Installed binaries are usually stripped using 'strip' when the user
2654# run "make install-strip".  However 'strip' might not be the right
2655# tool to use in cross-compilation environments, therefore Automake
2656# will honor the 'STRIP' environment variable to overrule this program.
2657if test "$cross_compiling" != no; then
2658  if test -n "$ac_tool_prefix"; then
2659  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2660set dummy ${ac_tool_prefix}strip; ac_word=$2
2661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2662$as_echo_n "checking for $ac_word... " >&6; }
2663if ${ac_cv_prog_STRIP+:} false; then :
2664  $as_echo_n "(cached) " >&6
2665else
2666  if test -n "$STRIP"; then
2667  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2668else
2669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670for as_dir in $PATH
2671do
2672  IFS=$as_save_IFS
2673  test -z "$as_dir" && as_dir=.
2674    for ac_exec_ext in '' $ac_executable_extensions; do
2675  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2676    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2677    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2678    break 2
2679  fi
2680done
2681  done
2682IFS=$as_save_IFS
2683
2684fi
2685fi
2686STRIP=$ac_cv_prog_STRIP
2687if test -n "$STRIP"; then
2688  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2689$as_echo "$STRIP" >&6; }
2690else
2691  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2692$as_echo "no" >&6; }
2693fi
2694
2695
2696fi
2697if test -z "$ac_cv_prog_STRIP"; then
2698  ac_ct_STRIP=$STRIP
2699  # Extract the first word of "strip", so it can be a program name with args.
2700set dummy strip; ac_word=$2
2701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2702$as_echo_n "checking for $ac_word... " >&6; }
2703if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2704  $as_echo_n "(cached) " >&6
2705else
2706  if test -n "$ac_ct_STRIP"; then
2707  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2708else
2709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2710for as_dir in $PATH
2711do
2712  IFS=$as_save_IFS
2713  test -z "$as_dir" && as_dir=.
2714    for ac_exec_ext in '' $ac_executable_extensions; do
2715  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2716    ac_cv_prog_ac_ct_STRIP="strip"
2717    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2718    break 2
2719  fi
2720done
2721  done
2722IFS=$as_save_IFS
2723
2724fi
2725fi
2726ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2727if test -n "$ac_ct_STRIP"; then
2728  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2729$as_echo "$ac_ct_STRIP" >&6; }
2730else
2731  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2732$as_echo "no" >&6; }
2733fi
2734
2735  if test "x$ac_ct_STRIP" = x; then
2736    STRIP=":"
2737  else
2738    case $cross_compiling:$ac_tool_warned in
2739yes:)
2740{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2741$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2742ac_tool_warned=yes ;;
2743esac
2744    STRIP=$ac_ct_STRIP
2745  fi
2746else
2747  STRIP="$ac_cv_prog_STRIP"
2748fi
2749
2750fi
2751INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2752
2753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2754$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2755if test -z "$MKDIR_P"; then
2756  if ${ac_cv_path_mkdir+:} false; then :
2757  $as_echo_n "(cached) " >&6
2758else
2759  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2760for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2761do
2762  IFS=$as_save_IFS
2763  test -z "$as_dir" && as_dir=.
2764    for ac_prog in mkdir gmkdir; do
2765	 for ac_exec_ext in '' $ac_executable_extensions; do
2766	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2767	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2768	     'mkdir (GNU coreutils) '* | \
2769	     'mkdir (coreutils) '* | \
2770	     'mkdir (fileutils) '4.1*)
2771	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2772	       break 3;;
2773	   esac
2774	 done
2775       done
2776  done
2777IFS=$as_save_IFS
2778
2779fi
2780
2781  test -d ./--version && rmdir ./--version
2782  if test "${ac_cv_path_mkdir+set}" = set; then
2783    MKDIR_P="$ac_cv_path_mkdir -p"
2784  else
2785    # As a last resort, use the slow shell script.  Don't cache a
2786    # value for MKDIR_P within a source directory, because that will
2787    # break other packages using the cache if that directory is
2788    # removed, or if the value is a relative name.
2789    MKDIR_P="$ac_install_sh -d"
2790  fi
2791fi
2792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2793$as_echo "$MKDIR_P" >&6; }
2794
2795for ac_prog in gawk mawk nawk awk
2796do
2797  # Extract the first word of "$ac_prog", so it can be a program name with args.
2798set dummy $ac_prog; ac_word=$2
2799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2800$as_echo_n "checking for $ac_word... " >&6; }
2801if ${ac_cv_prog_AWK+:} false; then :
2802  $as_echo_n "(cached) " >&6
2803else
2804  if test -n "$AWK"; then
2805  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2806else
2807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2808for as_dir in $PATH
2809do
2810  IFS=$as_save_IFS
2811  test -z "$as_dir" && as_dir=.
2812    for ac_exec_ext in '' $ac_executable_extensions; do
2813  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2814    ac_cv_prog_AWK="$ac_prog"
2815    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2816    break 2
2817  fi
2818done
2819  done
2820IFS=$as_save_IFS
2821
2822fi
2823fi
2824AWK=$ac_cv_prog_AWK
2825if test -n "$AWK"; then
2826  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2827$as_echo "$AWK" >&6; }
2828else
2829  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2830$as_echo "no" >&6; }
2831fi
2832
2833
2834  test -n "$AWK" && break
2835done
2836
2837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2838$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2839set x ${MAKE-make}
2840ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2841if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2842  $as_echo_n "(cached) " >&6
2843else
2844  cat >conftest.make <<\_ACEOF
2845SHELL = /bin/sh
2846all:
2847	@echo '@@@%%%=$(MAKE)=@@@%%%'
2848_ACEOF
2849# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2850case `${MAKE-make} -f conftest.make 2>/dev/null` in
2851  *@@@%%%=?*=@@@%%%*)
2852    eval ac_cv_prog_make_${ac_make}_set=yes;;
2853  *)
2854    eval ac_cv_prog_make_${ac_make}_set=no;;
2855esac
2856rm -f conftest.make
2857fi
2858if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2859  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2860$as_echo "yes" >&6; }
2861  SET_MAKE=
2862else
2863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2864$as_echo "no" >&6; }
2865  SET_MAKE="MAKE=${MAKE-make}"
2866fi
2867
2868rm -rf .tst 2>/dev/null
2869mkdir .tst 2>/dev/null
2870if test -d .tst; then
2871  am__leading_dot=.
2872else
2873  am__leading_dot=_
2874fi
2875rmdir .tst 2>/dev/null
2876
2877# Check whether --enable-silent-rules was given.
2878if test "${enable_silent_rules+set}" = set; then :
2879  enableval=$enable_silent_rules;
2880fi
2881
2882case $enable_silent_rules in # (((
2883  yes) AM_DEFAULT_VERBOSITY=0;;
2884   no) AM_DEFAULT_VERBOSITY=1;;
2885    *) AM_DEFAULT_VERBOSITY=1;;
2886esac
2887am_make=${MAKE-make}
2888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2889$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2890if ${am_cv_make_support_nested_variables+:} false; then :
2891  $as_echo_n "(cached) " >&6
2892else
2893  if $as_echo 'TRUE=$(BAR$(V))
2894BAR0=false
2895BAR1=true
2896V=1
2897am__doit:
2898	@$(TRUE)
2899.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2900  am_cv_make_support_nested_variables=yes
2901else
2902  am_cv_make_support_nested_variables=no
2903fi
2904fi
2905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2906$as_echo "$am_cv_make_support_nested_variables" >&6; }
2907if test $am_cv_make_support_nested_variables = yes; then
2908    AM_V='$(V)'
2909  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2910else
2911  AM_V=$AM_DEFAULT_VERBOSITY
2912  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2913fi
2914AM_BACKSLASH='\'
2915
2916if test "`cd $srcdir && pwd`" != "`pwd`"; then
2917  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2918  # is not polluted with repeated "-I."
2919  am__isrc=' -I$(srcdir)'
2920  # test to see if srcdir already configured
2921  if test -f $srcdir/config.status; then
2922    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2923  fi
2924fi
2925
2926# test whether we have cygpath
2927if test -z "$CYGPATH_W"; then
2928  if (cygpath --version) >/dev/null 2>/dev/null; then
2929    CYGPATH_W='cygpath -w'
2930  else
2931    CYGPATH_W=echo
2932  fi
2933fi
2934
2935
2936# Define the identity of the package.
2937 PACKAGE='nq'
2938 VERSION='2.5.4'
2939
2940
2941cat >>confdefs.h <<_ACEOF
2942#define PACKAGE "$PACKAGE"
2943_ACEOF
2944
2945
2946cat >>confdefs.h <<_ACEOF
2947#define VERSION "$VERSION"
2948_ACEOF
2949
2950# Some tools Automake needs.
2951
2952ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2953
2954
2955AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2956
2957
2958AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2959
2960
2961AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2962
2963
2964MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2965
2966# For better backward compatibility.  To be removed once Automake 1.9.x
2967# dies out for good.  For more background, see:
2968# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2969# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2970mkdir_p='$(MKDIR_P)'
2971
2972# We need awk for the "check" target (and possibly the TAP driver).  The
2973# system "awk" is bad on some platforms.
2974# Always define AMTAR for backward compatibility.  Yes, it's still used
2975# in the wild :-(  We should find a proper way to deprecate it ...
2976AMTAR='$${TAR-tar}'
2977
2978
2979# We'll loop over all known methods to create a tar archive until one works.
2980_am_tools='gnutar  pax cpio none'
2981
2982am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2983
2984
2985
2986
2987
2988
2989# POSIX will say in a future version that running "rm -f" with no argument
2990# is OK; and we want to be able to make that assumption in our Makefile
2991# recipes.  So use an aggressive probe to check that the usage we want is
2992# actually supported "in the wild" to an acceptable degree.
2993# See automake bug#10828.
2994# To make any issue more visible, cause the running configure to be aborted
2995# by default if the 'rm' program in use doesn't match our expectations; the
2996# user can still override this though.
2997if rm -f && rm -fr && rm -rf; then : OK; else
2998  cat >&2 <<'END'
2999Oops!
3000
3001Your 'rm' program seems unable to run without file operands specified
3002on the command line, even when the '-f' option is present.  This is contrary
3003to the behaviour of most rm programs out there, and not conforming with
3004the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3005
3006Please tell bug-automake@gnu.org about your system, including the value
3007of your $PATH and any error possibly output before this message.  This
3008can help us improve future automake versions.
3009
3010END
3011  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3012    echo 'Configuration will proceed anyway, since you have set the' >&2
3013    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3014    echo >&2
3015  else
3016    cat >&2 <<'END'
3017Aborting the configuration process, to ensure you take notice of the issue.
3018
3019You can download and install GNU coreutils to get an 'rm' implementation
3020that behaves properly: <http://www.gnu.org/software/coreutils/>.
3021
3022If you want to complete the configuration process using your problematic
3023'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3024to "yes", and re-run configure.
3025
3026END
3027    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3028  fi
3029fi
3030
3031# Check whether --enable-silent-rules was given.
3032if test "${enable_silent_rules+set}" = set; then :
3033  enableval=$enable_silent_rules;
3034fi
3035
3036case $enable_silent_rules in # (((
3037  yes) AM_DEFAULT_VERBOSITY=0;;
3038   no) AM_DEFAULT_VERBOSITY=1;;
3039    *) AM_DEFAULT_VERBOSITY=0;;
3040esac
3041am_make=${MAKE-make}
3042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3043$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3044if ${am_cv_make_support_nested_variables+:} false; then :
3045  $as_echo_n "(cached) " >&6
3046else
3047  if $as_echo 'TRUE=$(BAR$(V))
3048BAR0=false
3049BAR1=true
3050V=1
3051am__doit:
3052	@$(TRUE)
3053.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3054  am_cv_make_support_nested_variables=yes
3055else
3056  am_cv_make_support_nested_variables=no
3057fi
3058fi
3059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3060$as_echo "$am_cv_make_support_nested_variables" >&6; }
3061if test $am_cv_make_support_nested_variables = yes; then
3062    AM_V='$(V)'
3063  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3064else
3065  AM_V=$AM_DEFAULT_VERBOSITY
3066  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3067fi
3068AM_BACKSLASH='\'
3069
3070
3071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3072$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3073    # Check whether --enable-maintainer-mode was given.
3074if test "${enable_maintainer_mode+set}" = set; then :
3075  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3076else
3077  USE_MAINTAINER_MODE=no
3078fi
3079
3080  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3081$as_echo "$USE_MAINTAINER_MODE" >&6; }
3082   if test $USE_MAINTAINER_MODE = yes; then
3083  MAINTAINER_MODE_TRUE=
3084  MAINTAINER_MODE_FALSE='#'
3085else
3086  MAINTAINER_MODE_TRUE='#'
3087  MAINTAINER_MODE_FALSE=
3088fi
3089
3090  MAINT=$MAINTAINER_MODE_TRUE
3091
3092
3093
3094
3095case `pwd` in
3096  *\ * | *\	*)
3097    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3098$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3099esac
3100
3101
3102
3103macro_version='2.4.6'
3104macro_revision='2.4.6'
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118ltmain=$ac_aux_dir/ltmain.sh
3119
3120# Make sure we can run config.sub.
3121$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3122  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3123
3124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3125$as_echo_n "checking build system type... " >&6; }
3126if ${ac_cv_build+:} false; then :
3127  $as_echo_n "(cached) " >&6
3128else
3129  ac_build_alias=$build_alias
3130test "x$ac_build_alias" = x &&
3131  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3132test "x$ac_build_alias" = x &&
3133  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3134ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3135  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3136
3137fi
3138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3139$as_echo "$ac_cv_build" >&6; }
3140case $ac_cv_build in
3141*-*-*) ;;
3142*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3143esac
3144build=$ac_cv_build
3145ac_save_IFS=$IFS; IFS='-'
3146set x $ac_cv_build
3147shift
3148build_cpu=$1
3149build_vendor=$2
3150shift; shift
3151# Remember, the first character of IFS is used to create $*,
3152# except with old shells:
3153build_os=$*
3154IFS=$ac_save_IFS
3155case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3156
3157
3158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3159$as_echo_n "checking host system type... " >&6; }
3160if ${ac_cv_host+:} false; then :
3161  $as_echo_n "(cached) " >&6
3162else
3163  if test "x$host_alias" = x; then
3164  ac_cv_host=$ac_cv_build
3165else
3166  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3167    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3168fi
3169
3170fi
3171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3172$as_echo "$ac_cv_host" >&6; }
3173case $ac_cv_host in
3174*-*-*) ;;
3175*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3176esac
3177host=$ac_cv_host
3178ac_save_IFS=$IFS; IFS='-'
3179set x $ac_cv_host
3180shift
3181host_cpu=$1
3182host_vendor=$2
3183shift; shift
3184# Remember, the first character of IFS is used to create $*,
3185# except with old shells:
3186host_os=$*
3187IFS=$ac_save_IFS
3188case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3189
3190
3191# Backslashify metacharacters that are still active within
3192# double-quoted strings.
3193sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3194
3195# Same as above, but do not quote variable references.
3196double_quote_subst='s/\(["`\\]\)/\\\1/g'
3197
3198# Sed substitution to delay expansion of an escaped shell variable in a
3199# double_quote_subst'ed string.
3200delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3201
3202# Sed substitution to delay expansion of an escaped single quote.
3203delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3204
3205# Sed substitution to avoid accidental globbing in evaled expressions
3206no_glob_subst='s/\*/\\\*/g'
3207
3208ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3209ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3210ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3211
3212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3213$as_echo_n "checking how to print strings... " >&6; }
3214# Test print first, because it will be a builtin if present.
3215if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3216   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3217  ECHO='print -r --'
3218elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3219  ECHO='printf %s\n'
3220else
3221  # Use this function as a fallback that always works.
3222  func_fallback_echo ()
3223  {
3224    eval 'cat <<_LTECHO_EOF
3225$1
3226_LTECHO_EOF'
3227  }
3228  ECHO='func_fallback_echo'
3229fi
3230
3231# func_echo_all arg...
3232# Invoke $ECHO with all args, space-separated.
3233func_echo_all ()
3234{
3235    $ECHO ""
3236}
3237
3238case $ECHO in
3239  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3240$as_echo "printf" >&6; } ;;
3241  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3242$as_echo "print -r" >&6; } ;;
3243  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3244$as_echo "cat" >&6; } ;;
3245esac
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260DEPDIR="${am__leading_dot}deps"
3261
3262ac_config_commands="$ac_config_commands depfiles"
3263
3264
3265am_make=${MAKE-make}
3266cat > confinc << 'END'
3267am__doit:
3268	@echo this is the am__doit target
3269.PHONY: am__doit
3270END
3271# If we don't find an include directive, just comment out the code.
3272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3273$as_echo_n "checking for style of include used by $am_make... " >&6; }
3274am__include="#"
3275am__quote=
3276_am_result=none
3277# First try GNU make style include.
3278echo "include confinc" > confmf
3279# Ignore all kinds of additional output from 'make'.
3280case `$am_make -s -f confmf 2> /dev/null` in #(
3281*the\ am__doit\ target*)
3282  am__include=include
3283  am__quote=
3284  _am_result=GNU
3285  ;;
3286esac
3287# Now try BSD make style include.
3288if test "$am__include" = "#"; then
3289   echo '.include "confinc"' > confmf
3290   case `$am_make -s -f confmf 2> /dev/null` in #(
3291   *the\ am__doit\ target*)
3292     am__include=.include
3293     am__quote="\""
3294     _am_result=BSD
3295     ;;
3296   esac
3297fi
3298
3299
3300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3301$as_echo "$_am_result" >&6; }
3302rm -f confinc confmf
3303
3304# Check whether --enable-dependency-tracking was given.
3305if test "${enable_dependency_tracking+set}" = set; then :
3306  enableval=$enable_dependency_tracking;
3307fi
3308
3309if test "x$enable_dependency_tracking" != xno; then
3310  am_depcomp="$ac_aux_dir/depcomp"
3311  AMDEPBACKSLASH='\'
3312  am__nodep='_no'
3313fi
3314 if test "x$enable_dependency_tracking" != xno; then
3315  AMDEP_TRUE=
3316  AMDEP_FALSE='#'
3317else
3318  AMDEP_TRUE='#'
3319  AMDEP_FALSE=
3320fi
3321
3322
3323ac_ext=c
3324ac_cpp='$CPP $CPPFLAGS'
3325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3327ac_compiler_gnu=$ac_cv_c_compiler_gnu
3328if test -n "$ac_tool_prefix"; then
3329  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3330set dummy ${ac_tool_prefix}gcc; ac_word=$2
3331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3332$as_echo_n "checking for $ac_word... " >&6; }
3333if ${ac_cv_prog_CC+:} false; then :
3334  $as_echo_n "(cached) " >&6
3335else
3336  if test -n "$CC"; then
3337  ac_cv_prog_CC="$CC" # Let the user override the test.
3338else
3339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3340for as_dir in $PATH
3341do
3342  IFS=$as_save_IFS
3343  test -z "$as_dir" && as_dir=.
3344    for ac_exec_ext in '' $ac_executable_extensions; do
3345  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3346    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3347    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3348    break 2
3349  fi
3350done
3351  done
3352IFS=$as_save_IFS
3353
3354fi
3355fi
3356CC=$ac_cv_prog_CC
3357if test -n "$CC"; then
3358  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3359$as_echo "$CC" >&6; }
3360else
3361  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3362$as_echo "no" >&6; }
3363fi
3364
3365
3366fi
3367if test -z "$ac_cv_prog_CC"; then
3368  ac_ct_CC=$CC
3369  # Extract the first word of "gcc", so it can be a program name with args.
3370set dummy gcc; ac_word=$2
3371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3372$as_echo_n "checking for $ac_word... " >&6; }
3373if ${ac_cv_prog_ac_ct_CC+:} false; then :
3374  $as_echo_n "(cached) " >&6
3375else
3376  if test -n "$ac_ct_CC"; then
3377  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3378else
3379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3380for as_dir in $PATH
3381do
3382  IFS=$as_save_IFS
3383  test -z "$as_dir" && as_dir=.
3384    for ac_exec_ext in '' $ac_executable_extensions; do
3385  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3386    ac_cv_prog_ac_ct_CC="gcc"
3387    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3388    break 2
3389  fi
3390done
3391  done
3392IFS=$as_save_IFS
3393
3394fi
3395fi
3396ac_ct_CC=$ac_cv_prog_ac_ct_CC
3397if test -n "$ac_ct_CC"; then
3398  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3399$as_echo "$ac_ct_CC" >&6; }
3400else
3401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3402$as_echo "no" >&6; }
3403fi
3404
3405  if test "x$ac_ct_CC" = x; then
3406    CC=""
3407  else
3408    case $cross_compiling:$ac_tool_warned in
3409yes:)
3410{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3411$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3412ac_tool_warned=yes ;;
3413esac
3414    CC=$ac_ct_CC
3415  fi
3416else
3417  CC="$ac_cv_prog_CC"
3418fi
3419
3420if test -z "$CC"; then
3421          if test -n "$ac_tool_prefix"; then
3422    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3423set dummy ${ac_tool_prefix}cc; ac_word=$2
3424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3425$as_echo_n "checking for $ac_word... " >&6; }
3426if ${ac_cv_prog_CC+:} false; then :
3427  $as_echo_n "(cached) " >&6
3428else
3429  if test -n "$CC"; then
3430  ac_cv_prog_CC="$CC" # Let the user override the test.
3431else
3432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3433for as_dir in $PATH
3434do
3435  IFS=$as_save_IFS
3436  test -z "$as_dir" && as_dir=.
3437    for ac_exec_ext in '' $ac_executable_extensions; do
3438  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3439    ac_cv_prog_CC="${ac_tool_prefix}cc"
3440    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3441    break 2
3442  fi
3443done
3444  done
3445IFS=$as_save_IFS
3446
3447fi
3448fi
3449CC=$ac_cv_prog_CC
3450if test -n "$CC"; then
3451  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3452$as_echo "$CC" >&6; }
3453else
3454  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3455$as_echo "no" >&6; }
3456fi
3457
3458
3459  fi
3460fi
3461if test -z "$CC"; then
3462  # Extract the first word of "cc", so it can be a program name with args.
3463set dummy cc; ac_word=$2
3464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3465$as_echo_n "checking for $ac_word... " >&6; }
3466if ${ac_cv_prog_CC+:} false; then :
3467  $as_echo_n "(cached) " >&6
3468else
3469  if test -n "$CC"; then
3470  ac_cv_prog_CC="$CC" # Let the user override the test.
3471else
3472  ac_prog_rejected=no
3473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3474for as_dir in $PATH
3475do
3476  IFS=$as_save_IFS
3477  test -z "$as_dir" && as_dir=.
3478    for ac_exec_ext in '' $ac_executable_extensions; do
3479  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3480    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3481       ac_prog_rejected=yes
3482       continue
3483     fi
3484    ac_cv_prog_CC="cc"
3485    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3486    break 2
3487  fi
3488done
3489  done
3490IFS=$as_save_IFS
3491
3492if test $ac_prog_rejected = yes; then
3493  # We found a bogon in the path, so make sure we never use it.
3494  set dummy $ac_cv_prog_CC
3495  shift
3496  if test $# != 0; then
3497    # We chose a different compiler from the bogus one.
3498    # However, it has the same basename, so the bogon will be chosen
3499    # first if we set CC to just the basename; use the full file name.
3500    shift
3501    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3502  fi
3503fi
3504fi
3505fi
3506CC=$ac_cv_prog_CC
3507if test -n "$CC"; then
3508  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3509$as_echo "$CC" >&6; }
3510else
3511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3512$as_echo "no" >&6; }
3513fi
3514
3515
3516fi
3517if test -z "$CC"; then
3518  if test -n "$ac_tool_prefix"; then
3519  for ac_prog in cl.exe
3520  do
3521    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3522set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3524$as_echo_n "checking for $ac_word... " >&6; }
3525if ${ac_cv_prog_CC+:} false; then :
3526  $as_echo_n "(cached) " >&6
3527else
3528  if test -n "$CC"; then
3529  ac_cv_prog_CC="$CC" # Let the user override the test.
3530else
3531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3532for as_dir in $PATH
3533do
3534  IFS=$as_save_IFS
3535  test -z "$as_dir" && as_dir=.
3536    for ac_exec_ext in '' $ac_executable_extensions; do
3537  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3538    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3539    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3540    break 2
3541  fi
3542done
3543  done
3544IFS=$as_save_IFS
3545
3546fi
3547fi
3548CC=$ac_cv_prog_CC
3549if test -n "$CC"; then
3550  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3551$as_echo "$CC" >&6; }
3552else
3553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3554$as_echo "no" >&6; }
3555fi
3556
3557
3558    test -n "$CC" && break
3559  done
3560fi
3561if test -z "$CC"; then
3562  ac_ct_CC=$CC
3563  for ac_prog in cl.exe
3564do
3565  # Extract the first word of "$ac_prog", so it can be a program name with args.
3566set dummy $ac_prog; ac_word=$2
3567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3568$as_echo_n "checking for $ac_word... " >&6; }
3569if ${ac_cv_prog_ac_ct_CC+:} false; then :
3570  $as_echo_n "(cached) " >&6
3571else
3572  if test -n "$ac_ct_CC"; then
3573  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3574else
3575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3576for as_dir in $PATH
3577do
3578  IFS=$as_save_IFS
3579  test -z "$as_dir" && as_dir=.
3580    for ac_exec_ext in '' $ac_executable_extensions; do
3581  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3582    ac_cv_prog_ac_ct_CC="$ac_prog"
3583    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3584    break 2
3585  fi
3586done
3587  done
3588IFS=$as_save_IFS
3589
3590fi
3591fi
3592ac_ct_CC=$ac_cv_prog_ac_ct_CC
3593if test -n "$ac_ct_CC"; then
3594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3595$as_echo "$ac_ct_CC" >&6; }
3596else
3597  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3598$as_echo "no" >&6; }
3599fi
3600
3601
3602  test -n "$ac_ct_CC" && break
3603done
3604
3605  if test "x$ac_ct_CC" = x; then
3606    CC=""
3607  else
3608    case $cross_compiling:$ac_tool_warned in
3609yes:)
3610{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3611$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3612ac_tool_warned=yes ;;
3613esac
3614    CC=$ac_ct_CC
3615  fi
3616fi
3617
3618fi
3619
3620
3621test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3622$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3623as_fn_error $? "no acceptable C compiler found in \$PATH
3624See \`config.log' for more details" "$LINENO" 5; }
3625
3626# Provide some information about the compiler.
3627$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3628set X $ac_compile
3629ac_compiler=$2
3630for ac_option in --version -v -V -qversion; do
3631  { { ac_try="$ac_compiler $ac_option >&5"
3632case "(($ac_try" in
3633  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3634  *) ac_try_echo=$ac_try;;
3635esac
3636eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3637$as_echo "$ac_try_echo"; } >&5
3638  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3639  ac_status=$?
3640  if test -s conftest.err; then
3641    sed '10a\
3642... rest of stderr output deleted ...
3643         10q' conftest.err >conftest.er1
3644    cat conftest.er1 >&5
3645  fi
3646  rm -f conftest.er1 conftest.err
3647  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3648  test $ac_status = 0; }
3649done
3650
3651cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3652/* end confdefs.h.  */
3653
3654int
3655main ()
3656{
3657
3658  ;
3659  return 0;
3660}
3661_ACEOF
3662ac_clean_files_save=$ac_clean_files
3663ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3664# Try to create an executable without -o first, disregard a.out.
3665# It will help us diagnose broken compilers, and finding out an intuition
3666# of exeext.
3667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3668$as_echo_n "checking whether the C compiler works... " >&6; }
3669ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3670
3671# The possible output files:
3672ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3673
3674ac_rmfiles=
3675for ac_file in $ac_files
3676do
3677  case $ac_file in
3678    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3679    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3680  esac
3681done
3682rm -f $ac_rmfiles
3683
3684if { { ac_try="$ac_link_default"
3685case "(($ac_try" in
3686  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3687  *) ac_try_echo=$ac_try;;
3688esac
3689eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3690$as_echo "$ac_try_echo"; } >&5
3691  (eval "$ac_link_default") 2>&5
3692  ac_status=$?
3693  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3694  test $ac_status = 0; }; then :
3695  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3696# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3697# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3698# so that the user can short-circuit this test for compilers unknown to
3699# Autoconf.
3700for ac_file in $ac_files ''
3701do
3702  test -f "$ac_file" || continue
3703  case $ac_file in
3704    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3705	;;
3706    [ab].out )
3707	# We found the default executable, but exeext='' is most
3708	# certainly right.
3709	break;;
3710    *.* )
3711	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3712	then :; else
3713	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3714	fi
3715	# We set ac_cv_exeext here because the later test for it is not
3716	# safe: cross compilers may not add the suffix if given an `-o'
3717	# argument, so we may need to know it at that point already.
3718	# Even if this section looks crufty: it has the advantage of
3719	# actually working.
3720	break;;
3721    * )
3722	break;;
3723  esac
3724done
3725test "$ac_cv_exeext" = no && ac_cv_exeext=
3726
3727else
3728  ac_file=''
3729fi
3730if test -z "$ac_file"; then :
3731  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3732$as_echo "no" >&6; }
3733$as_echo "$as_me: failed program was:" >&5
3734sed 's/^/| /' conftest.$ac_ext >&5
3735
3736{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3737$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3738as_fn_error 77 "C compiler cannot create executables
3739See \`config.log' for more details" "$LINENO" 5; }
3740else
3741  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3742$as_echo "yes" >&6; }
3743fi
3744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3745$as_echo_n "checking for C compiler default output file name... " >&6; }
3746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3747$as_echo "$ac_file" >&6; }
3748ac_exeext=$ac_cv_exeext
3749
3750rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3751ac_clean_files=$ac_clean_files_save
3752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3753$as_echo_n "checking for suffix of executables... " >&6; }
3754if { { ac_try="$ac_link"
3755case "(($ac_try" in
3756  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3757  *) ac_try_echo=$ac_try;;
3758esac
3759eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3760$as_echo "$ac_try_echo"; } >&5
3761  (eval "$ac_link") 2>&5
3762  ac_status=$?
3763  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3764  test $ac_status = 0; }; then :
3765  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3766# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3767# work properly (i.e., refer to `conftest.exe'), while it won't with
3768# `rm'.
3769for ac_file in conftest.exe conftest conftest.*; do
3770  test -f "$ac_file" || continue
3771  case $ac_file in
3772    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3773    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3774	  break;;
3775    * ) break;;
3776  esac
3777done
3778else
3779  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3780$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3781as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3782See \`config.log' for more details" "$LINENO" 5; }
3783fi
3784rm -f conftest conftest$ac_cv_exeext
3785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3786$as_echo "$ac_cv_exeext" >&6; }
3787
3788rm -f conftest.$ac_ext
3789EXEEXT=$ac_cv_exeext
3790ac_exeext=$EXEEXT
3791cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3792/* end confdefs.h.  */
3793#include <stdio.h>
3794int
3795main ()
3796{
3797FILE *f = fopen ("conftest.out", "w");
3798 return ferror (f) || fclose (f) != 0;
3799
3800  ;
3801  return 0;
3802}
3803_ACEOF
3804ac_clean_files="$ac_clean_files conftest.out"
3805# Check that the compiler produces executables we can run.  If not, either
3806# the compiler is broken, or we cross compile.
3807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3808$as_echo_n "checking whether we are cross compiling... " >&6; }
3809if test "$cross_compiling" != yes; then
3810  { { ac_try="$ac_link"
3811case "(($ac_try" in
3812  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3813  *) ac_try_echo=$ac_try;;
3814esac
3815eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3816$as_echo "$ac_try_echo"; } >&5
3817  (eval "$ac_link") 2>&5
3818  ac_status=$?
3819  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3820  test $ac_status = 0; }
3821  if { ac_try='./conftest$ac_cv_exeext'
3822  { { case "(($ac_try" in
3823  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3824  *) ac_try_echo=$ac_try;;
3825esac
3826eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3827$as_echo "$ac_try_echo"; } >&5
3828  (eval "$ac_try") 2>&5
3829  ac_status=$?
3830  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3831  test $ac_status = 0; }; }; then
3832    cross_compiling=no
3833  else
3834    if test "$cross_compiling" = maybe; then
3835	cross_compiling=yes
3836    else
3837	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3838$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3839as_fn_error $? "cannot run C compiled programs.
3840If you meant to cross compile, use \`--host'.
3841See \`config.log' for more details" "$LINENO" 5; }
3842    fi
3843  fi
3844fi
3845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3846$as_echo "$cross_compiling" >&6; }
3847
3848rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3849ac_clean_files=$ac_clean_files_save
3850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3851$as_echo_n "checking for suffix of object files... " >&6; }
3852if ${ac_cv_objext+:} false; then :
3853  $as_echo_n "(cached) " >&6
3854else
3855  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3856/* end confdefs.h.  */
3857
3858int
3859main ()
3860{
3861
3862  ;
3863  return 0;
3864}
3865_ACEOF
3866rm -f conftest.o conftest.obj
3867if { { ac_try="$ac_compile"
3868case "(($ac_try" in
3869  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3870  *) ac_try_echo=$ac_try;;
3871esac
3872eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3873$as_echo "$ac_try_echo"; } >&5
3874  (eval "$ac_compile") 2>&5
3875  ac_status=$?
3876  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3877  test $ac_status = 0; }; then :
3878  for ac_file in conftest.o conftest.obj conftest.*; do
3879  test -f "$ac_file" || continue;
3880  case $ac_file in
3881    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3882    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3883       break;;
3884  esac
3885done
3886else
3887  $as_echo "$as_me: failed program was:" >&5
3888sed 's/^/| /' conftest.$ac_ext >&5
3889
3890{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3891$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3892as_fn_error $? "cannot compute suffix of object files: cannot compile
3893See \`config.log' for more details" "$LINENO" 5; }
3894fi
3895rm -f conftest.$ac_cv_objext conftest.$ac_ext
3896fi
3897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3898$as_echo "$ac_cv_objext" >&6; }
3899OBJEXT=$ac_cv_objext
3900ac_objext=$OBJEXT
3901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3902$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3903if ${ac_cv_c_compiler_gnu+:} false; then :
3904  $as_echo_n "(cached) " >&6
3905else
3906  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3907/* end confdefs.h.  */
3908
3909int
3910main ()
3911{
3912#ifndef __GNUC__
3913       choke me
3914#endif
3915
3916  ;
3917  return 0;
3918}
3919_ACEOF
3920if ac_fn_c_try_compile "$LINENO"; then :
3921  ac_compiler_gnu=yes
3922else
3923  ac_compiler_gnu=no
3924fi
3925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3926ac_cv_c_compiler_gnu=$ac_compiler_gnu
3927
3928fi
3929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3930$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3931if test $ac_compiler_gnu = yes; then
3932  GCC=yes
3933else
3934  GCC=
3935fi
3936ac_test_CFLAGS=${CFLAGS+set}
3937ac_save_CFLAGS=$CFLAGS
3938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3939$as_echo_n "checking whether $CC accepts -g... " >&6; }
3940if ${ac_cv_prog_cc_g+:} false; then :
3941  $as_echo_n "(cached) " >&6
3942else
3943  ac_save_c_werror_flag=$ac_c_werror_flag
3944   ac_c_werror_flag=yes
3945   ac_cv_prog_cc_g=no
3946   CFLAGS="-g"
3947   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3948/* end confdefs.h.  */
3949
3950int
3951main ()
3952{
3953
3954  ;
3955  return 0;
3956}
3957_ACEOF
3958if ac_fn_c_try_compile "$LINENO"; then :
3959  ac_cv_prog_cc_g=yes
3960else
3961  CFLAGS=""
3962      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3963/* end confdefs.h.  */
3964
3965int
3966main ()
3967{
3968
3969  ;
3970  return 0;
3971}
3972_ACEOF
3973if ac_fn_c_try_compile "$LINENO"; then :
3974
3975else
3976  ac_c_werror_flag=$ac_save_c_werror_flag
3977	 CFLAGS="-g"
3978	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3979/* end confdefs.h.  */
3980
3981int
3982main ()
3983{
3984
3985  ;
3986  return 0;
3987}
3988_ACEOF
3989if ac_fn_c_try_compile "$LINENO"; then :
3990  ac_cv_prog_cc_g=yes
3991fi
3992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3993fi
3994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3995fi
3996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3997   ac_c_werror_flag=$ac_save_c_werror_flag
3998fi
3999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4000$as_echo "$ac_cv_prog_cc_g" >&6; }
4001if test "$ac_test_CFLAGS" = set; then
4002  CFLAGS=$ac_save_CFLAGS
4003elif test $ac_cv_prog_cc_g = yes; then
4004  if test "$GCC" = yes; then
4005    CFLAGS="-g -O2"
4006  else
4007    CFLAGS="-g"
4008  fi
4009else
4010  if test "$GCC" = yes; then
4011    CFLAGS="-O2"
4012  else
4013    CFLAGS=
4014  fi
4015fi
4016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4017$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4018if ${ac_cv_prog_cc_c89+:} false; then :
4019  $as_echo_n "(cached) " >&6
4020else
4021  ac_cv_prog_cc_c89=no
4022ac_save_CC=$CC
4023cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4024/* end confdefs.h.  */
4025#include <stdarg.h>
4026#include <stdio.h>
4027struct stat;
4028/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4029struct buf { int x; };
4030FILE * (*rcsopen) (struct buf *, struct stat *, int);
4031static char *e (p, i)
4032     char **p;
4033     int i;
4034{
4035  return p[i];
4036}
4037static char *f (char * (*g) (char **, int), char **p, ...)
4038{
4039  char *s;
4040  va_list v;
4041  va_start (v,p);
4042  s = g (p, va_arg (v,int));
4043  va_end (v);
4044  return s;
4045}
4046
4047/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4048   function prototypes and stuff, but not '\xHH' hex character constants.
4049   These don't provoke an error unfortunately, instead are silently treated
4050   as 'x'.  The following induces an error, until -std is added to get
4051   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4052   array size at least.  It's necessary to write '\x00'==0 to get something
4053   that's true only with -std.  */
4054int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4055
4056/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4057   inside strings and character constants.  */
4058#define FOO(x) 'x'
4059int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4060
4061int test (int i, double x);
4062struct s1 {int (*f) (int a);};
4063struct s2 {int (*f) (double a);};
4064int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4065int argc;
4066char **argv;
4067int
4068main ()
4069{
4070return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4071  ;
4072  return 0;
4073}
4074_ACEOF
4075for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4076	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4077do
4078  CC="$ac_save_CC $ac_arg"
4079  if ac_fn_c_try_compile "$LINENO"; then :
4080  ac_cv_prog_cc_c89=$ac_arg
4081fi
4082rm -f core conftest.err conftest.$ac_objext
4083  test "x$ac_cv_prog_cc_c89" != "xno" && break
4084done
4085rm -f conftest.$ac_ext
4086CC=$ac_save_CC
4087
4088fi
4089# AC_CACHE_VAL
4090case "x$ac_cv_prog_cc_c89" in
4091  x)
4092    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4093$as_echo "none needed" >&6; } ;;
4094  xno)
4095    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4096$as_echo "unsupported" >&6; } ;;
4097  *)
4098    CC="$CC $ac_cv_prog_cc_c89"
4099    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4100$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4101esac
4102if test "x$ac_cv_prog_cc_c89" != xno; then :
4103
4104fi
4105
4106ac_ext=c
4107ac_cpp='$CPP $CPPFLAGS'
4108ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4109ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4110ac_compiler_gnu=$ac_cv_c_compiler_gnu
4111
4112ac_ext=c
4113ac_cpp='$CPP $CPPFLAGS'
4114ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4115ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4116ac_compiler_gnu=$ac_cv_c_compiler_gnu
4117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4118$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4119if ${am_cv_prog_cc_c_o+:} false; then :
4120  $as_echo_n "(cached) " >&6
4121else
4122  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4123/* end confdefs.h.  */
4124
4125int
4126main ()
4127{
4128
4129  ;
4130  return 0;
4131}
4132_ACEOF
4133  # Make sure it works both with $CC and with simple cc.
4134  # Following AC_PROG_CC_C_O, we do the test twice because some
4135  # compilers refuse to overwrite an existing .o file with -o,
4136  # though they will create one.
4137  am_cv_prog_cc_c_o=yes
4138  for am_i in 1 2; do
4139    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4140   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4141   ac_status=$?
4142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143   (exit $ac_status); } \
4144         && test -f conftest2.$ac_objext; then
4145      : OK
4146    else
4147      am_cv_prog_cc_c_o=no
4148      break
4149    fi
4150  done
4151  rm -f core conftest*
4152  unset am_i
4153fi
4154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4155$as_echo "$am_cv_prog_cc_c_o" >&6; }
4156if test "$am_cv_prog_cc_c_o" != yes; then
4157   # Losing compiler, so override with the script.
4158   # FIXME: It is wrong to rewrite CC.
4159   # But if we don't then we get into trouble of one sort or another.
4160   # A longer-term fix would be to have automake use am__CC in this case,
4161   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4162   CC="$am_aux_dir/compile $CC"
4163fi
4164ac_ext=c
4165ac_cpp='$CPP $CPPFLAGS'
4166ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4167ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4168ac_compiler_gnu=$ac_cv_c_compiler_gnu
4169
4170
4171depcc="$CC"   am_compiler_list=
4172
4173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4174$as_echo_n "checking dependency style of $depcc... " >&6; }
4175if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4176  $as_echo_n "(cached) " >&6
4177else
4178  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4179  # We make a subdir and do the tests there.  Otherwise we can end up
4180  # making bogus files that we don't know about and never remove.  For
4181  # instance it was reported that on HP-UX the gcc test will end up
4182  # making a dummy file named 'D' -- because '-MD' means "put the output
4183  # in D".
4184  rm -rf conftest.dir
4185  mkdir conftest.dir
4186  # Copy depcomp to subdir because otherwise we won't find it if we're
4187  # using a relative directory.
4188  cp "$am_depcomp" conftest.dir
4189  cd conftest.dir
4190  # We will build objects and dependencies in a subdirectory because
4191  # it helps to detect inapplicable dependency modes.  For instance
4192  # both Tru64's cc and ICC support -MD to output dependencies as a
4193  # side effect of compilation, but ICC will put the dependencies in
4194  # the current directory while Tru64 will put them in the object
4195  # directory.
4196  mkdir sub
4197
4198  am_cv_CC_dependencies_compiler_type=none
4199  if test "$am_compiler_list" = ""; then
4200     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4201  fi
4202  am__universal=false
4203  case " $depcc " in #(
4204     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4205     esac
4206
4207  for depmode in $am_compiler_list; do
4208    # Setup a source with many dependencies, because some compilers
4209    # like to wrap large dependency lists on column 80 (with \), and
4210    # we should not choose a depcomp mode which is confused by this.
4211    #
4212    # We need to recreate these files for each test, as the compiler may
4213    # overwrite some of them when testing with obscure command lines.
4214    # This happens at least with the AIX C compiler.
4215    : > sub/conftest.c
4216    for i in 1 2 3 4 5 6; do
4217      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4218      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4219      # Solaris 10 /bin/sh.
4220      echo '/* dummy */' > sub/conftst$i.h
4221    done
4222    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4223
4224    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4225    # mode.  It turns out that the SunPro C++ compiler does not properly
4226    # handle '-M -o', and we need to detect this.  Also, some Intel
4227    # versions had trouble with output in subdirs.
4228    am__obj=sub/conftest.${OBJEXT-o}
4229    am__minus_obj="-o $am__obj"
4230    case $depmode in
4231    gcc)
4232      # This depmode causes a compiler race in universal mode.
4233      test "$am__universal" = false || continue
4234      ;;
4235    nosideeffect)
4236      # After this tag, mechanisms are not by side-effect, so they'll
4237      # only be used when explicitly requested.
4238      if test "x$enable_dependency_tracking" = xyes; then
4239	continue
4240      else
4241	break
4242      fi
4243      ;;
4244    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4245      # This compiler won't grok '-c -o', but also, the minuso test has
4246      # not run yet.  These depmodes are late enough in the game, and
4247      # so weak that their functioning should not be impacted.
4248      am__obj=conftest.${OBJEXT-o}
4249      am__minus_obj=
4250      ;;
4251    none) break ;;
4252    esac
4253    if depmode=$depmode \
4254       source=sub/conftest.c object=$am__obj \
4255       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4256       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4257         >/dev/null 2>conftest.err &&
4258       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4259       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4260       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4261       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4262      # icc doesn't choke on unknown options, it will just issue warnings
4263      # or remarks (even with -Werror).  So we grep stderr for any message
4264      # that says an option was ignored or not supported.
4265      # When given -MP, icc 7.0 and 7.1 complain thusly:
4266      #   icc: Command line warning: ignoring option '-M'; no argument required
4267      # The diagnosis changed in icc 8.0:
4268      #   icc: Command line remark: option '-MP' not supported
4269      if (grep 'ignoring option' conftest.err ||
4270          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4271        am_cv_CC_dependencies_compiler_type=$depmode
4272        break
4273      fi
4274    fi
4275  done
4276
4277  cd ..
4278  rm -rf conftest.dir
4279else
4280  am_cv_CC_dependencies_compiler_type=none
4281fi
4282
4283fi
4284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4285$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4286CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4287
4288 if
4289  test "x$enable_dependency_tracking" != xno \
4290  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4291  am__fastdepCC_TRUE=
4292  am__fastdepCC_FALSE='#'
4293else
4294  am__fastdepCC_TRUE='#'
4295  am__fastdepCC_FALSE=
4296fi
4297
4298
4299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4300$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4301if ${ac_cv_path_SED+:} false; then :
4302  $as_echo_n "(cached) " >&6
4303else
4304            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4305     for ac_i in 1 2 3 4 5 6 7; do
4306       ac_script="$ac_script$as_nl$ac_script"
4307     done
4308     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4309     { ac_script=; unset ac_script;}
4310     if test -z "$SED"; then
4311  ac_path_SED_found=false
4312  # Loop through the user's path and test for each of PROGNAME-LIST
4313  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4314for as_dir in $PATH
4315do
4316  IFS=$as_save_IFS
4317  test -z "$as_dir" && as_dir=.
4318    for ac_prog in sed gsed; do
4319    for ac_exec_ext in '' $ac_executable_extensions; do
4320      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4321      as_fn_executable_p "$ac_path_SED" || continue
4322# Check for GNU ac_path_SED and select it if it is found.
4323  # Check for GNU $ac_path_SED
4324case `"$ac_path_SED" --version 2>&1` in
4325*GNU*)
4326  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4327*)
4328  ac_count=0
4329  $as_echo_n 0123456789 >"conftest.in"
4330  while :
4331  do
4332    cat "conftest.in" "conftest.in" >"conftest.tmp"
4333    mv "conftest.tmp" "conftest.in"
4334    cp "conftest.in" "conftest.nl"
4335    $as_echo '' >> "conftest.nl"
4336    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4337    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4338    as_fn_arith $ac_count + 1 && ac_count=$as_val
4339    if test $ac_count -gt ${ac_path_SED_max-0}; then
4340      # Best one so far, save it but keep looking for a better one
4341      ac_cv_path_SED="$ac_path_SED"
4342      ac_path_SED_max=$ac_count
4343    fi
4344    # 10*(2^10) chars as input seems more than enough
4345    test $ac_count -gt 10 && break
4346  done
4347  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4348esac
4349
4350      $ac_path_SED_found && break 3
4351    done
4352  done
4353  done
4354IFS=$as_save_IFS
4355  if test -z "$ac_cv_path_SED"; then
4356    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4357  fi
4358else
4359  ac_cv_path_SED=$SED
4360fi
4361
4362fi
4363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4364$as_echo "$ac_cv_path_SED" >&6; }
4365 SED="$ac_cv_path_SED"
4366  rm -f conftest.sed
4367
4368test -z "$SED" && SED=sed
4369Xsed="$SED -e 1s/^X//"
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4382$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4383if ${ac_cv_path_GREP+:} false; then :
4384  $as_echo_n "(cached) " >&6
4385else
4386  if test -z "$GREP"; then
4387  ac_path_GREP_found=false
4388  # Loop through the user's path and test for each of PROGNAME-LIST
4389  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4390for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4391do
4392  IFS=$as_save_IFS
4393  test -z "$as_dir" && as_dir=.
4394    for ac_prog in grep ggrep; do
4395    for ac_exec_ext in '' $ac_executable_extensions; do
4396      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4397      as_fn_executable_p "$ac_path_GREP" || continue
4398# Check for GNU ac_path_GREP and select it if it is found.
4399  # Check for GNU $ac_path_GREP
4400case `"$ac_path_GREP" --version 2>&1` in
4401*GNU*)
4402  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4403*)
4404  ac_count=0
4405  $as_echo_n 0123456789 >"conftest.in"
4406  while :
4407  do
4408    cat "conftest.in" "conftest.in" >"conftest.tmp"
4409    mv "conftest.tmp" "conftest.in"
4410    cp "conftest.in" "conftest.nl"
4411    $as_echo 'GREP' >> "conftest.nl"
4412    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4413    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4414    as_fn_arith $ac_count + 1 && ac_count=$as_val
4415    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4416      # Best one so far, save it but keep looking for a better one
4417      ac_cv_path_GREP="$ac_path_GREP"
4418      ac_path_GREP_max=$ac_count
4419    fi
4420    # 10*(2^10) chars as input seems more than enough
4421    test $ac_count -gt 10 && break
4422  done
4423  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4424esac
4425
4426      $ac_path_GREP_found && break 3
4427    done
4428  done
4429  done
4430IFS=$as_save_IFS
4431  if test -z "$ac_cv_path_GREP"; then
4432    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4433  fi
4434else
4435  ac_cv_path_GREP=$GREP
4436fi
4437
4438fi
4439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4440$as_echo "$ac_cv_path_GREP" >&6; }
4441 GREP="$ac_cv_path_GREP"
4442
4443
4444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4445$as_echo_n "checking for egrep... " >&6; }
4446if ${ac_cv_path_EGREP+:} false; then :
4447  $as_echo_n "(cached) " >&6
4448else
4449  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4450   then ac_cv_path_EGREP="$GREP -E"
4451   else
4452     if test -z "$EGREP"; then
4453  ac_path_EGREP_found=false
4454  # Loop through the user's path and test for each of PROGNAME-LIST
4455  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4456for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4457do
4458  IFS=$as_save_IFS
4459  test -z "$as_dir" && as_dir=.
4460    for ac_prog in egrep; do
4461    for ac_exec_ext in '' $ac_executable_extensions; do
4462      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4463      as_fn_executable_p "$ac_path_EGREP" || continue
4464# Check for GNU ac_path_EGREP and select it if it is found.
4465  # Check for GNU $ac_path_EGREP
4466case `"$ac_path_EGREP" --version 2>&1` in
4467*GNU*)
4468  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4469*)
4470  ac_count=0
4471  $as_echo_n 0123456789 >"conftest.in"
4472  while :
4473  do
4474    cat "conftest.in" "conftest.in" >"conftest.tmp"
4475    mv "conftest.tmp" "conftest.in"
4476    cp "conftest.in" "conftest.nl"
4477    $as_echo 'EGREP' >> "conftest.nl"
4478    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4479    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4480    as_fn_arith $ac_count + 1 && ac_count=$as_val
4481    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4482      # Best one so far, save it but keep looking for a better one
4483      ac_cv_path_EGREP="$ac_path_EGREP"
4484      ac_path_EGREP_max=$ac_count
4485    fi
4486    # 10*(2^10) chars as input seems more than enough
4487    test $ac_count -gt 10 && break
4488  done
4489  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4490esac
4491
4492      $ac_path_EGREP_found && break 3
4493    done
4494  done
4495  done
4496IFS=$as_save_IFS
4497  if test -z "$ac_cv_path_EGREP"; then
4498    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4499  fi
4500else
4501  ac_cv_path_EGREP=$EGREP
4502fi
4503
4504   fi
4505fi
4506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4507$as_echo "$ac_cv_path_EGREP" >&6; }
4508 EGREP="$ac_cv_path_EGREP"
4509
4510
4511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4512$as_echo_n "checking for fgrep... " >&6; }
4513if ${ac_cv_path_FGREP+:} false; then :
4514  $as_echo_n "(cached) " >&6
4515else
4516  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4517   then ac_cv_path_FGREP="$GREP -F"
4518   else
4519     if test -z "$FGREP"; then
4520  ac_path_FGREP_found=false
4521  # Loop through the user's path and test for each of PROGNAME-LIST
4522  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4523for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4524do
4525  IFS=$as_save_IFS
4526  test -z "$as_dir" && as_dir=.
4527    for ac_prog in fgrep; do
4528    for ac_exec_ext in '' $ac_executable_extensions; do
4529      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4530      as_fn_executable_p "$ac_path_FGREP" || continue
4531# Check for GNU ac_path_FGREP and select it if it is found.
4532  # Check for GNU $ac_path_FGREP
4533case `"$ac_path_FGREP" --version 2>&1` in
4534*GNU*)
4535  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4536*)
4537  ac_count=0
4538  $as_echo_n 0123456789 >"conftest.in"
4539  while :
4540  do
4541    cat "conftest.in" "conftest.in" >"conftest.tmp"
4542    mv "conftest.tmp" "conftest.in"
4543    cp "conftest.in" "conftest.nl"
4544    $as_echo 'FGREP' >> "conftest.nl"
4545    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4546    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4547    as_fn_arith $ac_count + 1 && ac_count=$as_val
4548    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4549      # Best one so far, save it but keep looking for a better one
4550      ac_cv_path_FGREP="$ac_path_FGREP"
4551      ac_path_FGREP_max=$ac_count
4552    fi
4553    # 10*(2^10) chars as input seems more than enough
4554    test $ac_count -gt 10 && break
4555  done
4556  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4557esac
4558
4559      $ac_path_FGREP_found && break 3
4560    done
4561  done
4562  done
4563IFS=$as_save_IFS
4564  if test -z "$ac_cv_path_FGREP"; then
4565    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4566  fi
4567else
4568  ac_cv_path_FGREP=$FGREP
4569fi
4570
4571   fi
4572fi
4573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4574$as_echo "$ac_cv_path_FGREP" >&6; }
4575 FGREP="$ac_cv_path_FGREP"
4576
4577
4578test -z "$GREP" && GREP=grep
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598# Check whether --with-gnu-ld was given.
4599if test "${with_gnu_ld+set}" = set; then :
4600  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4601else
4602  with_gnu_ld=no
4603fi
4604
4605ac_prog=ld
4606if test yes = "$GCC"; then
4607  # Check if gcc -print-prog-name=ld gives a path.
4608  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4609$as_echo_n "checking for ld used by $CC... " >&6; }
4610  case $host in
4611  *-*-mingw*)
4612    # gcc leaves a trailing carriage return, which upsets mingw
4613    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4614  *)
4615    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4616  esac
4617  case $ac_prog in
4618    # Accept absolute paths.
4619    [\\/]* | ?:[\\/]*)
4620      re_direlt='/[^/][^/]*/\.\./'
4621      # Canonicalize the pathname of ld
4622      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4623      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4624	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4625      done
4626      test -z "$LD" && LD=$ac_prog
4627      ;;
4628  "")
4629    # If it fails, then pretend we aren't using GCC.
4630    ac_prog=ld
4631    ;;
4632  *)
4633    # If it is relative, then search for the first ld in PATH.
4634    with_gnu_ld=unknown
4635    ;;
4636  esac
4637elif test yes = "$with_gnu_ld"; then
4638  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4639$as_echo_n "checking for GNU ld... " >&6; }
4640else
4641  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4642$as_echo_n "checking for non-GNU ld... " >&6; }
4643fi
4644if ${lt_cv_path_LD+:} false; then :
4645  $as_echo_n "(cached) " >&6
4646else
4647  if test -z "$LD"; then
4648  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4649  for ac_dir in $PATH; do
4650    IFS=$lt_save_ifs
4651    test -z "$ac_dir" && ac_dir=.
4652    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4653      lt_cv_path_LD=$ac_dir/$ac_prog
4654      # Check to see if the program is GNU ld.  I'd rather use --version,
4655      # but apparently some variants of GNU ld only accept -v.
4656      # Break only if it was the GNU/non-GNU ld that we prefer.
4657      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4658      *GNU* | *'with BFD'*)
4659	test no != "$with_gnu_ld" && break
4660	;;
4661      *)
4662	test yes != "$with_gnu_ld" && break
4663	;;
4664      esac
4665    fi
4666  done
4667  IFS=$lt_save_ifs
4668else
4669  lt_cv_path_LD=$LD # Let the user override the test with a path.
4670fi
4671fi
4672
4673LD=$lt_cv_path_LD
4674if test -n "$LD"; then
4675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4676$as_echo "$LD" >&6; }
4677else
4678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4679$as_echo "no" >&6; }
4680fi
4681test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4683$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4684if ${lt_cv_prog_gnu_ld+:} false; then :
4685  $as_echo_n "(cached) " >&6
4686else
4687  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4688case `$LD -v 2>&1 </dev/null` in
4689*GNU* | *'with BFD'*)
4690  lt_cv_prog_gnu_ld=yes
4691  ;;
4692*)
4693  lt_cv_prog_gnu_ld=no
4694  ;;
4695esac
4696fi
4697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4698$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4699with_gnu_ld=$lt_cv_prog_gnu_ld
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4710$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4711if ${lt_cv_path_NM+:} false; then :
4712  $as_echo_n "(cached) " >&6
4713else
4714  if test -n "$NM"; then
4715  # Let the user override the test.
4716  lt_cv_path_NM=$NM
4717else
4718  lt_nm_to_check=${ac_tool_prefix}nm
4719  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4720    lt_nm_to_check="$lt_nm_to_check nm"
4721  fi
4722  for lt_tmp_nm in $lt_nm_to_check; do
4723    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4724    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4725      IFS=$lt_save_ifs
4726      test -z "$ac_dir" && ac_dir=.
4727      tmp_nm=$ac_dir/$lt_tmp_nm
4728      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4729	# Check to see if the nm accepts a BSD-compat flag.
4730	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4731	#   nm: unknown option "B" ignored
4732	# Tru64's nm complains that /dev/null is an invalid object file
4733	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4734	case $build_os in
4735	mingw*) lt_bad_file=conftest.nm/nofile ;;
4736	*) lt_bad_file=/dev/null ;;
4737	esac
4738	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4739	*$lt_bad_file* | *'Invalid file or object type'*)
4740	  lt_cv_path_NM="$tmp_nm -B"
4741	  break 2
4742	  ;;
4743	*)
4744	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4745	  */dev/null*)
4746	    lt_cv_path_NM="$tmp_nm -p"
4747	    break 2
4748	    ;;
4749	  *)
4750	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4751	    continue # so that we can try to find one that supports BSD flags
4752	    ;;
4753	  esac
4754	  ;;
4755	esac
4756      fi
4757    done
4758    IFS=$lt_save_ifs
4759  done
4760  : ${lt_cv_path_NM=no}
4761fi
4762fi
4763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4764$as_echo "$lt_cv_path_NM" >&6; }
4765if test no != "$lt_cv_path_NM"; then
4766  NM=$lt_cv_path_NM
4767else
4768  # Didn't find any BSD compatible name lister, look for dumpbin.
4769  if test -n "$DUMPBIN"; then :
4770    # Let the user override the test.
4771  else
4772    if test -n "$ac_tool_prefix"; then
4773  for ac_prog in dumpbin "link -dump"
4774  do
4775    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4776set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4778$as_echo_n "checking for $ac_word... " >&6; }
4779if ${ac_cv_prog_DUMPBIN+:} false; then :
4780  $as_echo_n "(cached) " >&6
4781else
4782  if test -n "$DUMPBIN"; then
4783  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4784else
4785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4786for as_dir in $PATH
4787do
4788  IFS=$as_save_IFS
4789  test -z "$as_dir" && as_dir=.
4790    for ac_exec_ext in '' $ac_executable_extensions; do
4791  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4792    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4793    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4794    break 2
4795  fi
4796done
4797  done
4798IFS=$as_save_IFS
4799
4800fi
4801fi
4802DUMPBIN=$ac_cv_prog_DUMPBIN
4803if test -n "$DUMPBIN"; then
4804  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4805$as_echo "$DUMPBIN" >&6; }
4806else
4807  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4808$as_echo "no" >&6; }
4809fi
4810
4811
4812    test -n "$DUMPBIN" && break
4813  done
4814fi
4815if test -z "$DUMPBIN"; then
4816  ac_ct_DUMPBIN=$DUMPBIN
4817  for ac_prog in dumpbin "link -dump"
4818do
4819  # Extract the first word of "$ac_prog", so it can be a program name with args.
4820set dummy $ac_prog; ac_word=$2
4821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4822$as_echo_n "checking for $ac_word... " >&6; }
4823if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4824  $as_echo_n "(cached) " >&6
4825else
4826  if test -n "$ac_ct_DUMPBIN"; then
4827  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4828else
4829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4830for as_dir in $PATH
4831do
4832  IFS=$as_save_IFS
4833  test -z "$as_dir" && as_dir=.
4834    for ac_exec_ext in '' $ac_executable_extensions; do
4835  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4836    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4837    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4838    break 2
4839  fi
4840done
4841  done
4842IFS=$as_save_IFS
4843
4844fi
4845fi
4846ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4847if test -n "$ac_ct_DUMPBIN"; then
4848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4849$as_echo "$ac_ct_DUMPBIN" >&6; }
4850else
4851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4852$as_echo "no" >&6; }
4853fi
4854
4855
4856  test -n "$ac_ct_DUMPBIN" && break
4857done
4858
4859  if test "x$ac_ct_DUMPBIN" = x; then
4860    DUMPBIN=":"
4861  else
4862    case $cross_compiling:$ac_tool_warned in
4863yes:)
4864{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4865$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4866ac_tool_warned=yes ;;
4867esac
4868    DUMPBIN=$ac_ct_DUMPBIN
4869  fi
4870fi
4871
4872    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4873    *COFF*)
4874      DUMPBIN="$DUMPBIN -symbols -headers"
4875      ;;
4876    *)
4877      DUMPBIN=:
4878      ;;
4879    esac
4880  fi
4881
4882  if test : != "$DUMPBIN"; then
4883    NM=$DUMPBIN
4884  fi
4885fi
4886test -z "$NM" && NM=nm
4887
4888
4889
4890
4891
4892
4893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4894$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4895if ${lt_cv_nm_interface+:} false; then :
4896  $as_echo_n "(cached) " >&6
4897else
4898  lt_cv_nm_interface="BSD nm"
4899  echo "int some_variable = 0;" > conftest.$ac_ext
4900  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4901  (eval "$ac_compile" 2>conftest.err)
4902  cat conftest.err >&5
4903  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4904  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4905  cat conftest.err >&5
4906  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4907  cat conftest.out >&5
4908  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4909    lt_cv_nm_interface="MS dumpbin"
4910  fi
4911  rm -rf conftest*
4912fi
4913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4914$as_echo "$lt_cv_nm_interface" >&6; }
4915
4916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4917$as_echo_n "checking whether ln -s works... " >&6; }
4918LN_S=$as_ln_s
4919if test "$LN_S" = "ln -s"; then
4920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4921$as_echo "yes" >&6; }
4922else
4923  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4924$as_echo "no, using $LN_S" >&6; }
4925fi
4926
4927# find the maximum length of command line arguments
4928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4929$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4930if ${lt_cv_sys_max_cmd_len+:} false; then :
4931  $as_echo_n "(cached) " >&6
4932else
4933    i=0
4934  teststring=ABCD
4935
4936  case $build_os in
4937  msdosdjgpp*)
4938    # On DJGPP, this test can blow up pretty badly due to problems in libc
4939    # (any single argument exceeding 2000 bytes causes a buffer overrun
4940    # during glob expansion).  Even if it were fixed, the result of this
4941    # check would be larger than it should be.
4942    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4943    ;;
4944
4945  gnu*)
4946    # Under GNU Hurd, this test is not required because there is
4947    # no limit to the length of command line arguments.
4948    # Libtool will interpret -1 as no limit whatsoever
4949    lt_cv_sys_max_cmd_len=-1;
4950    ;;
4951
4952  cygwin* | mingw* | cegcc*)
4953    # On Win9x/ME, this test blows up -- it succeeds, but takes
4954    # about 5 minutes as the teststring grows exponentially.
4955    # Worse, since 9x/ME are not pre-emptively multitasking,
4956    # you end up with a "frozen" computer, even though with patience
4957    # the test eventually succeeds (with a max line length of 256k).
4958    # Instead, let's just punt: use the minimum linelength reported by
4959    # all of the supported platforms: 8192 (on NT/2K/XP).
4960    lt_cv_sys_max_cmd_len=8192;
4961    ;;
4962
4963  mint*)
4964    # On MiNT this can take a long time and run out of memory.
4965    lt_cv_sys_max_cmd_len=8192;
4966    ;;
4967
4968  amigaos*)
4969    # On AmigaOS with pdksh, this test takes hours, literally.
4970    # So we just punt and use a minimum line length of 8192.
4971    lt_cv_sys_max_cmd_len=8192;
4972    ;;
4973
4974  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4975    # This has been around since 386BSD, at least.  Likely further.
4976    if test -x /sbin/sysctl; then
4977      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4978    elif test -x /usr/sbin/sysctl; then
4979      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4980    else
4981      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4982    fi
4983    # And add a safety zone
4984    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4985    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4986    ;;
4987
4988  interix*)
4989    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4990    lt_cv_sys_max_cmd_len=196608
4991    ;;
4992
4993  os2*)
4994    # The test takes a long time on OS/2.
4995    lt_cv_sys_max_cmd_len=8192
4996    ;;
4997
4998  osf*)
4999    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5000    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5001    # nice to cause kernel panics so lets avoid the loop below.
5002    # First set a reasonable default.
5003    lt_cv_sys_max_cmd_len=16384
5004    #
5005    if test -x /sbin/sysconfig; then
5006      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5007        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5008      esac
5009    fi
5010    ;;
5011  sco3.2v5*)
5012    lt_cv_sys_max_cmd_len=102400
5013    ;;
5014  sysv5* | sco5v6* | sysv4.2uw2*)
5015    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5016    if test -n "$kargmax"; then
5017      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5018    else
5019      lt_cv_sys_max_cmd_len=32768
5020    fi
5021    ;;
5022  *)
5023    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5024    if test -n "$lt_cv_sys_max_cmd_len" && \
5025       test undefined != "$lt_cv_sys_max_cmd_len"; then
5026      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5027      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5028    else
5029      # Make teststring a little bigger before we do anything with it.
5030      # a 1K string should be a reasonable start.
5031      for i in 1 2 3 4 5 6 7 8; do
5032        teststring=$teststring$teststring
5033      done
5034      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5035      # If test is not a shell built-in, we'll probably end up computing a
5036      # maximum length that is only half of the actual maximum length, but
5037      # we can't tell.
5038      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5039	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5040	      test 17 != "$i" # 1/2 MB should be enough
5041      do
5042        i=`expr $i + 1`
5043        teststring=$teststring$teststring
5044      done
5045      # Only check the string length outside the loop.
5046      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5047      teststring=
5048      # Add a significant safety factor because C++ compilers can tack on
5049      # massive amounts of additional arguments before passing them to the
5050      # linker.  It appears as though 1/2 is a usable value.
5051      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5052    fi
5053    ;;
5054  esac
5055
5056fi
5057
5058if test -n "$lt_cv_sys_max_cmd_len"; then
5059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5060$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5061else
5062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5063$as_echo "none" >&6; }
5064fi
5065max_cmd_len=$lt_cv_sys_max_cmd_len
5066
5067
5068
5069
5070
5071
5072: ${CP="cp -f"}
5073: ${MV="mv -f"}
5074: ${RM="rm -f"}
5075
5076if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5077  lt_unset=unset
5078else
5079  lt_unset=false
5080fi
5081
5082
5083
5084
5085
5086# test EBCDIC or ASCII
5087case `echo X|tr X '\101'` in
5088 A) # ASCII based system
5089    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5090  lt_SP2NL='tr \040 \012'
5091  lt_NL2SP='tr \015\012 \040\040'
5092  ;;
5093 *) # EBCDIC based system
5094  lt_SP2NL='tr \100 \n'
5095  lt_NL2SP='tr \r\n \100\100'
5096  ;;
5097esac
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5108$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5109if ${lt_cv_to_host_file_cmd+:} false; then :
5110  $as_echo_n "(cached) " >&6
5111else
5112  case $host in
5113  *-*-mingw* )
5114    case $build in
5115      *-*-mingw* ) # actually msys
5116        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5117        ;;
5118      *-*-cygwin* )
5119        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5120        ;;
5121      * ) # otherwise, assume *nix
5122        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5123        ;;
5124    esac
5125    ;;
5126  *-*-cygwin* )
5127    case $build in
5128      *-*-mingw* ) # actually msys
5129        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5130        ;;
5131      *-*-cygwin* )
5132        lt_cv_to_host_file_cmd=func_convert_file_noop
5133        ;;
5134      * ) # otherwise, assume *nix
5135        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5136        ;;
5137    esac
5138    ;;
5139  * ) # unhandled hosts (and "normal" native builds)
5140    lt_cv_to_host_file_cmd=func_convert_file_noop
5141    ;;
5142esac
5143
5144fi
5145
5146to_host_file_cmd=$lt_cv_to_host_file_cmd
5147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5148$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5149
5150
5151
5152
5153
5154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5155$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5156if ${lt_cv_to_tool_file_cmd+:} false; then :
5157  $as_echo_n "(cached) " >&6
5158else
5159  #assume ordinary cross tools, or native build.
5160lt_cv_to_tool_file_cmd=func_convert_file_noop
5161case $host in
5162  *-*-mingw* )
5163    case $build in
5164      *-*-mingw* ) # actually msys
5165        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5166        ;;
5167    esac
5168    ;;
5169esac
5170
5171fi
5172
5173to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5175$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5176
5177
5178
5179
5180
5181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5182$as_echo_n "checking for $LD option to reload object files... " >&6; }
5183if ${lt_cv_ld_reload_flag+:} false; then :
5184  $as_echo_n "(cached) " >&6
5185else
5186  lt_cv_ld_reload_flag='-r'
5187fi
5188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5189$as_echo "$lt_cv_ld_reload_flag" >&6; }
5190reload_flag=$lt_cv_ld_reload_flag
5191case $reload_flag in
5192"" | " "*) ;;
5193*) reload_flag=" $reload_flag" ;;
5194esac
5195reload_cmds='$LD$reload_flag -o $output$reload_objs'
5196case $host_os in
5197  cygwin* | mingw* | pw32* | cegcc*)
5198    if test yes != "$GCC"; then
5199      reload_cmds=false
5200    fi
5201    ;;
5202  darwin*)
5203    if test yes = "$GCC"; then
5204      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5205    else
5206      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5207    fi
5208    ;;
5209esac
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219if test -n "$ac_tool_prefix"; then
5220  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5221set dummy ${ac_tool_prefix}objdump; ac_word=$2
5222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5223$as_echo_n "checking for $ac_word... " >&6; }
5224if ${ac_cv_prog_OBJDUMP+:} false; then :
5225  $as_echo_n "(cached) " >&6
5226else
5227  if test -n "$OBJDUMP"; then
5228  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5229else
5230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5231for as_dir in $PATH
5232do
5233  IFS=$as_save_IFS
5234  test -z "$as_dir" && as_dir=.
5235    for ac_exec_ext in '' $ac_executable_extensions; do
5236  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5237    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5238    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5239    break 2
5240  fi
5241done
5242  done
5243IFS=$as_save_IFS
5244
5245fi
5246fi
5247OBJDUMP=$ac_cv_prog_OBJDUMP
5248if test -n "$OBJDUMP"; then
5249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5250$as_echo "$OBJDUMP" >&6; }
5251else
5252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5253$as_echo "no" >&6; }
5254fi
5255
5256
5257fi
5258if test -z "$ac_cv_prog_OBJDUMP"; then
5259  ac_ct_OBJDUMP=$OBJDUMP
5260  # Extract the first word of "objdump", so it can be a program name with args.
5261set dummy objdump; ac_word=$2
5262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5263$as_echo_n "checking for $ac_word... " >&6; }
5264if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5265  $as_echo_n "(cached) " >&6
5266else
5267  if test -n "$ac_ct_OBJDUMP"; then
5268  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5269else
5270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5271for as_dir in $PATH
5272do
5273  IFS=$as_save_IFS
5274  test -z "$as_dir" && as_dir=.
5275    for ac_exec_ext in '' $ac_executable_extensions; do
5276  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5277    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5278    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5279    break 2
5280  fi
5281done
5282  done
5283IFS=$as_save_IFS
5284
5285fi
5286fi
5287ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5288if test -n "$ac_ct_OBJDUMP"; then
5289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5290$as_echo "$ac_ct_OBJDUMP" >&6; }
5291else
5292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5293$as_echo "no" >&6; }
5294fi
5295
5296  if test "x$ac_ct_OBJDUMP" = x; then
5297    OBJDUMP="false"
5298  else
5299    case $cross_compiling:$ac_tool_warned in
5300yes:)
5301{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5302$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5303ac_tool_warned=yes ;;
5304esac
5305    OBJDUMP=$ac_ct_OBJDUMP
5306  fi
5307else
5308  OBJDUMP="$ac_cv_prog_OBJDUMP"
5309fi
5310
5311test -z "$OBJDUMP" && OBJDUMP=objdump
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5322$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5323if ${lt_cv_deplibs_check_method+:} false; then :
5324  $as_echo_n "(cached) " >&6
5325else
5326  lt_cv_file_magic_cmd='$MAGIC_CMD'
5327lt_cv_file_magic_test_file=
5328lt_cv_deplibs_check_method='unknown'
5329# Need to set the preceding variable on all platforms that support
5330# interlibrary dependencies.
5331# 'none' -- dependencies not supported.
5332# 'unknown' -- same as none, but documents that we really don't know.
5333# 'pass_all' -- all dependencies passed with no checks.
5334# 'test_compile' -- check by making test program.
5335# 'file_magic [[regex]]' -- check by looking for files in library path
5336# that responds to the $file_magic_cmd with a given extended regex.
5337# If you have 'file' or equivalent on your system and you're not sure
5338# whether 'pass_all' will *always* work, you probably want this one.
5339
5340case $host_os in
5341aix[4-9]*)
5342  lt_cv_deplibs_check_method=pass_all
5343  ;;
5344
5345beos*)
5346  lt_cv_deplibs_check_method=pass_all
5347  ;;
5348
5349bsdi[45]*)
5350  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5351  lt_cv_file_magic_cmd='/usr/bin/file -L'
5352  lt_cv_file_magic_test_file=/shlib/libc.so
5353  ;;
5354
5355cygwin*)
5356  # func_win32_libid is a shell function defined in ltmain.sh
5357  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5358  lt_cv_file_magic_cmd='func_win32_libid'
5359  ;;
5360
5361mingw* | pw32*)
5362  # Base MSYS/MinGW do not provide the 'file' command needed by
5363  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5364  # unless we find 'file', for example because we are cross-compiling.
5365  if ( file / ) >/dev/null 2>&1; then
5366    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5367    lt_cv_file_magic_cmd='func_win32_libid'
5368  else
5369    # Keep this pattern in sync with the one in func_win32_libid.
5370    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5371    lt_cv_file_magic_cmd='$OBJDUMP -f'
5372  fi
5373  ;;
5374
5375cegcc*)
5376  # use the weaker test based on 'objdump'. See mingw*.
5377  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5378  lt_cv_file_magic_cmd='$OBJDUMP -f'
5379  ;;
5380
5381darwin* | rhapsody*)
5382  lt_cv_deplibs_check_method=pass_all
5383  ;;
5384
5385freebsd* | dragonfly*)
5386  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5387    case $host_cpu in
5388    i*86 )
5389      # Not sure whether the presence of OpenBSD here was a mistake.
5390      # Let's accept both of them until this is cleared up.
5391      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5392      lt_cv_file_magic_cmd=/usr/bin/file
5393      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5394      ;;
5395    esac
5396  else
5397    lt_cv_deplibs_check_method=pass_all
5398  fi
5399  ;;
5400
5401haiku*)
5402  lt_cv_deplibs_check_method=pass_all
5403  ;;
5404
5405hpux10.20* | hpux11*)
5406  lt_cv_file_magic_cmd=/usr/bin/file
5407  case $host_cpu in
5408  ia64*)
5409    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5410    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5411    ;;
5412  hppa*64*)
5413    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]'
5414    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5415    ;;
5416  *)
5417    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5418    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5419    ;;
5420  esac
5421  ;;
5422
5423interix[3-9]*)
5424  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5425  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5426  ;;
5427
5428irix5* | irix6* | nonstopux*)
5429  case $LD in
5430  *-32|*"-32 ") libmagic=32-bit;;
5431  *-n32|*"-n32 ") libmagic=N32;;
5432  *-64|*"-64 ") libmagic=64-bit;;
5433  *) libmagic=never-match;;
5434  esac
5435  lt_cv_deplibs_check_method=pass_all
5436  ;;
5437
5438# This must be glibc/ELF.
5439linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5440  lt_cv_deplibs_check_method=pass_all
5441  ;;
5442
5443netbsd*)
5444  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5445    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5446  else
5447    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5448  fi
5449  ;;
5450
5451newos6*)
5452  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5453  lt_cv_file_magic_cmd=/usr/bin/file
5454  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5455  ;;
5456
5457*nto* | *qnx*)
5458  lt_cv_deplibs_check_method=pass_all
5459  ;;
5460
5461openbsd* | bitrig*)
5462  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5463    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5464  else
5465    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5466  fi
5467  ;;
5468
5469osf3* | osf4* | osf5*)
5470  lt_cv_deplibs_check_method=pass_all
5471  ;;
5472
5473rdos*)
5474  lt_cv_deplibs_check_method=pass_all
5475  ;;
5476
5477solaris*)
5478  lt_cv_deplibs_check_method=pass_all
5479  ;;
5480
5481sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5482  lt_cv_deplibs_check_method=pass_all
5483  ;;
5484
5485sysv4 | sysv4.3*)
5486  case $host_vendor in
5487  motorola)
5488    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]'
5489    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5490    ;;
5491  ncr)
5492    lt_cv_deplibs_check_method=pass_all
5493    ;;
5494  sequent)
5495    lt_cv_file_magic_cmd='/bin/file'
5496    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5497    ;;
5498  sni)
5499    lt_cv_file_magic_cmd='/bin/file'
5500    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5501    lt_cv_file_magic_test_file=/lib/libc.so
5502    ;;
5503  siemens)
5504    lt_cv_deplibs_check_method=pass_all
5505    ;;
5506  pc)
5507    lt_cv_deplibs_check_method=pass_all
5508    ;;
5509  esac
5510  ;;
5511
5512tpf*)
5513  lt_cv_deplibs_check_method=pass_all
5514  ;;
5515os2*)
5516  lt_cv_deplibs_check_method=pass_all
5517  ;;
5518esac
5519
5520fi
5521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5522$as_echo "$lt_cv_deplibs_check_method" >&6; }
5523
5524file_magic_glob=
5525want_nocaseglob=no
5526if test "$build" = "$host"; then
5527  case $host_os in
5528  mingw* | pw32*)
5529    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5530      want_nocaseglob=yes
5531    else
5532      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5533    fi
5534    ;;
5535  esac
5536fi
5537
5538file_magic_cmd=$lt_cv_file_magic_cmd
5539deplibs_check_method=$lt_cv_deplibs_check_method
5540test -z "$deplibs_check_method" && deplibs_check_method=unknown
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563if test -n "$ac_tool_prefix"; then
5564  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5565set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5567$as_echo_n "checking for $ac_word... " >&6; }
5568if ${ac_cv_prog_DLLTOOL+:} false; then :
5569  $as_echo_n "(cached) " >&6
5570else
5571  if test -n "$DLLTOOL"; then
5572  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5573else
5574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5575for as_dir in $PATH
5576do
5577  IFS=$as_save_IFS
5578  test -z "$as_dir" && as_dir=.
5579    for ac_exec_ext in '' $ac_executable_extensions; do
5580  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5581    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5582    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5583    break 2
5584  fi
5585done
5586  done
5587IFS=$as_save_IFS
5588
5589fi
5590fi
5591DLLTOOL=$ac_cv_prog_DLLTOOL
5592if test -n "$DLLTOOL"; then
5593  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5594$as_echo "$DLLTOOL" >&6; }
5595else
5596  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5597$as_echo "no" >&6; }
5598fi
5599
5600
5601fi
5602if test -z "$ac_cv_prog_DLLTOOL"; then
5603  ac_ct_DLLTOOL=$DLLTOOL
5604  # Extract the first word of "dlltool", so it can be a program name with args.
5605set dummy dlltool; ac_word=$2
5606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5607$as_echo_n "checking for $ac_word... " >&6; }
5608if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5609  $as_echo_n "(cached) " >&6
5610else
5611  if test -n "$ac_ct_DLLTOOL"; then
5612  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5613else
5614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5615for as_dir in $PATH
5616do
5617  IFS=$as_save_IFS
5618  test -z "$as_dir" && as_dir=.
5619    for ac_exec_ext in '' $ac_executable_extensions; do
5620  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5621    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5622    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5623    break 2
5624  fi
5625done
5626  done
5627IFS=$as_save_IFS
5628
5629fi
5630fi
5631ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5632if test -n "$ac_ct_DLLTOOL"; then
5633  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5634$as_echo "$ac_ct_DLLTOOL" >&6; }
5635else
5636  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5637$as_echo "no" >&6; }
5638fi
5639
5640  if test "x$ac_ct_DLLTOOL" = x; then
5641    DLLTOOL="false"
5642  else
5643    case $cross_compiling:$ac_tool_warned in
5644yes:)
5645{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5646$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5647ac_tool_warned=yes ;;
5648esac
5649    DLLTOOL=$ac_ct_DLLTOOL
5650  fi
5651else
5652  DLLTOOL="$ac_cv_prog_DLLTOOL"
5653fi
5654
5655test -z "$DLLTOOL" && DLLTOOL=dlltool
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5667$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5668if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5669  $as_echo_n "(cached) " >&6
5670else
5671  lt_cv_sharedlib_from_linklib_cmd='unknown'
5672
5673case $host_os in
5674cygwin* | mingw* | pw32* | cegcc*)
5675  # two different shell functions defined in ltmain.sh;
5676  # decide which one to use based on capabilities of $DLLTOOL
5677  case `$DLLTOOL --help 2>&1` in
5678  *--identify-strict*)
5679    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5680    ;;
5681  *)
5682    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5683    ;;
5684  esac
5685  ;;
5686*)
5687  # fallback: assume linklib IS sharedlib
5688  lt_cv_sharedlib_from_linklib_cmd=$ECHO
5689  ;;
5690esac
5691
5692fi
5693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5694$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5695sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5696test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5697
5698
5699
5700
5701
5702
5703
5704
5705if test -n "$ac_tool_prefix"; then
5706  for ac_prog in ar
5707  do
5708    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5709set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5711$as_echo_n "checking for $ac_word... " >&6; }
5712if ${ac_cv_prog_AR+:} false; then :
5713  $as_echo_n "(cached) " >&6
5714else
5715  if test -n "$AR"; then
5716  ac_cv_prog_AR="$AR" # Let the user override the test.
5717else
5718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5719for as_dir in $PATH
5720do
5721  IFS=$as_save_IFS
5722  test -z "$as_dir" && as_dir=.
5723    for ac_exec_ext in '' $ac_executable_extensions; do
5724  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5725    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5726    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5727    break 2
5728  fi
5729done
5730  done
5731IFS=$as_save_IFS
5732
5733fi
5734fi
5735AR=$ac_cv_prog_AR
5736if test -n "$AR"; then
5737  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5738$as_echo "$AR" >&6; }
5739else
5740  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5741$as_echo "no" >&6; }
5742fi
5743
5744
5745    test -n "$AR" && break
5746  done
5747fi
5748if test -z "$AR"; then
5749  ac_ct_AR=$AR
5750  for ac_prog in ar
5751do
5752  # Extract the first word of "$ac_prog", so it can be a program name with args.
5753set dummy $ac_prog; ac_word=$2
5754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5755$as_echo_n "checking for $ac_word... " >&6; }
5756if ${ac_cv_prog_ac_ct_AR+:} false; then :
5757  $as_echo_n "(cached) " >&6
5758else
5759  if test -n "$ac_ct_AR"; then
5760  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5761else
5762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5763for as_dir in $PATH
5764do
5765  IFS=$as_save_IFS
5766  test -z "$as_dir" && as_dir=.
5767    for ac_exec_ext in '' $ac_executable_extensions; do
5768  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5769    ac_cv_prog_ac_ct_AR="$ac_prog"
5770    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5771    break 2
5772  fi
5773done
5774  done
5775IFS=$as_save_IFS
5776
5777fi
5778fi
5779ac_ct_AR=$ac_cv_prog_ac_ct_AR
5780if test -n "$ac_ct_AR"; then
5781  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5782$as_echo "$ac_ct_AR" >&6; }
5783else
5784  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5785$as_echo "no" >&6; }
5786fi
5787
5788
5789  test -n "$ac_ct_AR" && break
5790done
5791
5792  if test "x$ac_ct_AR" = x; then
5793    AR="false"
5794  else
5795    case $cross_compiling:$ac_tool_warned in
5796yes:)
5797{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5798$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5799ac_tool_warned=yes ;;
5800esac
5801    AR=$ac_ct_AR
5802  fi
5803fi
5804
5805: ${AR=ar}
5806: ${AR_FLAGS=cru}
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5819$as_echo_n "checking for archiver @FILE support... " >&6; }
5820if ${lt_cv_ar_at_file+:} false; then :
5821  $as_echo_n "(cached) " >&6
5822else
5823  lt_cv_ar_at_file=no
5824   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5825/* end confdefs.h.  */
5826
5827int
5828main ()
5829{
5830
5831  ;
5832  return 0;
5833}
5834_ACEOF
5835if ac_fn_c_try_compile "$LINENO"; then :
5836  echo conftest.$ac_objext > conftest.lst
5837      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5838      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5839  (eval $lt_ar_try) 2>&5
5840  ac_status=$?
5841  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5842  test $ac_status = 0; }
5843      if test 0 -eq "$ac_status"; then
5844	# Ensure the archiver fails upon bogus file names.
5845	rm -f conftest.$ac_objext libconftest.a
5846	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5847  (eval $lt_ar_try) 2>&5
5848  ac_status=$?
5849  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5850  test $ac_status = 0; }
5851	if test 0 -ne "$ac_status"; then
5852          lt_cv_ar_at_file=@
5853        fi
5854      fi
5855      rm -f conftest.* libconftest.a
5856
5857fi
5858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5859
5860fi
5861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5862$as_echo "$lt_cv_ar_at_file" >&6; }
5863
5864if test no = "$lt_cv_ar_at_file"; then
5865  archiver_list_spec=
5866else
5867  archiver_list_spec=$lt_cv_ar_at_file
5868fi
5869
5870
5871
5872
5873
5874
5875
5876if test -n "$ac_tool_prefix"; then
5877  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5878set dummy ${ac_tool_prefix}strip; ac_word=$2
5879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5880$as_echo_n "checking for $ac_word... " >&6; }
5881if ${ac_cv_prog_STRIP+:} false; then :
5882  $as_echo_n "(cached) " >&6
5883else
5884  if test -n "$STRIP"; then
5885  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5886else
5887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5888for as_dir in $PATH
5889do
5890  IFS=$as_save_IFS
5891  test -z "$as_dir" && as_dir=.
5892    for ac_exec_ext in '' $ac_executable_extensions; do
5893  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5894    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5895    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5896    break 2
5897  fi
5898done
5899  done
5900IFS=$as_save_IFS
5901
5902fi
5903fi
5904STRIP=$ac_cv_prog_STRIP
5905if test -n "$STRIP"; then
5906  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5907$as_echo "$STRIP" >&6; }
5908else
5909  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5910$as_echo "no" >&6; }
5911fi
5912
5913
5914fi
5915if test -z "$ac_cv_prog_STRIP"; then
5916  ac_ct_STRIP=$STRIP
5917  # Extract the first word of "strip", so it can be a program name with args.
5918set dummy strip; ac_word=$2
5919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5920$as_echo_n "checking for $ac_word... " >&6; }
5921if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5922  $as_echo_n "(cached) " >&6
5923else
5924  if test -n "$ac_ct_STRIP"; then
5925  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5926else
5927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5928for as_dir in $PATH
5929do
5930  IFS=$as_save_IFS
5931  test -z "$as_dir" && as_dir=.
5932    for ac_exec_ext in '' $ac_executable_extensions; do
5933  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5934    ac_cv_prog_ac_ct_STRIP="strip"
5935    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5936    break 2
5937  fi
5938done
5939  done
5940IFS=$as_save_IFS
5941
5942fi
5943fi
5944ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5945if test -n "$ac_ct_STRIP"; then
5946  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5947$as_echo "$ac_ct_STRIP" >&6; }
5948else
5949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5950$as_echo "no" >&6; }
5951fi
5952
5953  if test "x$ac_ct_STRIP" = x; then
5954    STRIP=":"
5955  else
5956    case $cross_compiling:$ac_tool_warned in
5957yes:)
5958{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5959$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5960ac_tool_warned=yes ;;
5961esac
5962    STRIP=$ac_ct_STRIP
5963  fi
5964else
5965  STRIP="$ac_cv_prog_STRIP"
5966fi
5967
5968test -z "$STRIP" && STRIP=:
5969
5970
5971
5972
5973
5974
5975if test -n "$ac_tool_prefix"; then
5976  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5977set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5979$as_echo_n "checking for $ac_word... " >&6; }
5980if ${ac_cv_prog_RANLIB+:} false; then :
5981  $as_echo_n "(cached) " >&6
5982else
5983  if test -n "$RANLIB"; then
5984  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5985else
5986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5987for as_dir in $PATH
5988do
5989  IFS=$as_save_IFS
5990  test -z "$as_dir" && as_dir=.
5991    for ac_exec_ext in '' $ac_executable_extensions; do
5992  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5993    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5994    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5995    break 2
5996  fi
5997done
5998  done
5999IFS=$as_save_IFS
6000
6001fi
6002fi
6003RANLIB=$ac_cv_prog_RANLIB
6004if test -n "$RANLIB"; then
6005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6006$as_echo "$RANLIB" >&6; }
6007else
6008  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6009$as_echo "no" >&6; }
6010fi
6011
6012
6013fi
6014if test -z "$ac_cv_prog_RANLIB"; then
6015  ac_ct_RANLIB=$RANLIB
6016  # Extract the first word of "ranlib", so it can be a program name with args.
6017set dummy ranlib; ac_word=$2
6018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6019$as_echo_n "checking for $ac_word... " >&6; }
6020if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6021  $as_echo_n "(cached) " >&6
6022else
6023  if test -n "$ac_ct_RANLIB"; then
6024  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6025else
6026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6027for as_dir in $PATH
6028do
6029  IFS=$as_save_IFS
6030  test -z "$as_dir" && as_dir=.
6031    for ac_exec_ext in '' $ac_executable_extensions; do
6032  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6033    ac_cv_prog_ac_ct_RANLIB="ranlib"
6034    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6035    break 2
6036  fi
6037done
6038  done
6039IFS=$as_save_IFS
6040
6041fi
6042fi
6043ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6044if test -n "$ac_ct_RANLIB"; then
6045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6046$as_echo "$ac_ct_RANLIB" >&6; }
6047else
6048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6049$as_echo "no" >&6; }
6050fi
6051
6052  if test "x$ac_ct_RANLIB" = x; then
6053    RANLIB=":"
6054  else
6055    case $cross_compiling:$ac_tool_warned in
6056yes:)
6057{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6058$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6059ac_tool_warned=yes ;;
6060esac
6061    RANLIB=$ac_ct_RANLIB
6062  fi
6063else
6064  RANLIB="$ac_cv_prog_RANLIB"
6065fi
6066
6067test -z "$RANLIB" && RANLIB=:
6068
6069
6070
6071
6072
6073
6074# Determine commands to create old-style static archives.
6075old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6076old_postinstall_cmds='chmod 644 $oldlib'
6077old_postuninstall_cmds=
6078
6079if test -n "$RANLIB"; then
6080  case $host_os in
6081  bitrig* | openbsd*)
6082    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6083    ;;
6084  *)
6085    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6086    ;;
6087  esac
6088  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6089fi
6090
6091case $host_os in
6092  darwin*)
6093    lock_old_archive_extraction=yes ;;
6094  *)
6095    lock_old_archive_extraction=no ;;
6096esac
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136# If no C compiler was specified, use CC.
6137LTCC=${LTCC-"$CC"}
6138
6139# If no C compiler flags were specified, use CFLAGS.
6140LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6141
6142# Allow CC to be a program name with arguments.
6143compiler=$CC
6144
6145
6146# Check for command to grab the raw symbol name followed by C symbol from nm.
6147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6148$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6149if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6150  $as_echo_n "(cached) " >&6
6151else
6152
6153# These are sane defaults that work on at least a few old systems.
6154# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6155
6156# Character class describing NM global symbol codes.
6157symcode='[BCDEGRST]'
6158
6159# Regexp to match symbols that can be accessed directly from C.
6160sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6161
6162# Define system-specific variables.
6163case $host_os in
6164aix*)
6165  symcode='[BCDT]'
6166  ;;
6167cygwin* | mingw* | pw32* | cegcc*)
6168  symcode='[ABCDGISTW]'
6169  ;;
6170hpux*)
6171  if test ia64 = "$host_cpu"; then
6172    symcode='[ABCDEGRST]'
6173  fi
6174  ;;
6175irix* | nonstopux*)
6176  symcode='[BCDEGRST]'
6177  ;;
6178osf*)
6179  symcode='[BCDEGQRST]'
6180  ;;
6181solaris*)
6182  symcode='[BDRT]'
6183  ;;
6184sco3.2v5*)
6185  symcode='[DT]'
6186  ;;
6187sysv4.2uw2*)
6188  symcode='[DT]'
6189  ;;
6190sysv5* | sco5v6* | unixware* | OpenUNIX*)
6191  symcode='[ABDT]'
6192  ;;
6193sysv4)
6194  symcode='[DFNSTU]'
6195  ;;
6196esac
6197
6198# If we're using GNU nm, then use its standard symbol codes.
6199case `$NM -V 2>&1` in
6200*GNU* | *'with BFD'*)
6201  symcode='[ABCDGIRSTW]' ;;
6202esac
6203
6204if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6205  # Gets list of data symbols to import.
6206  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6207  # Adjust the below global symbol transforms to fixup imported variables.
6208  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6209  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6210  lt_c_name_lib_hook="\
6211  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6212  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6213else
6214  # Disable hooks by default.
6215  lt_cv_sys_global_symbol_to_import=
6216  lt_cdecl_hook=
6217  lt_c_name_hook=
6218  lt_c_name_lib_hook=
6219fi
6220
6221# Transform an extracted symbol line into a proper C declaration.
6222# Some systems (esp. on ia64) link data and code symbols differently,
6223# so use this general approach.
6224lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6225$lt_cdecl_hook\
6226" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6227" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6228
6229# Transform an extracted symbol line into symbol name and symbol address
6230lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6231$lt_c_name_hook\
6232" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6233" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6234
6235# Transform an extracted symbol line into symbol name with lib prefix and
6236# symbol address.
6237lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6238$lt_c_name_lib_hook\
6239" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6240" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6241" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6242
6243# Handle CRLF in mingw tool chain
6244opt_cr=
6245case $build_os in
6246mingw*)
6247  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6248  ;;
6249esac
6250
6251# Try without a prefix underscore, then with it.
6252for ac_symprfx in "" "_"; do
6253
6254  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6255  symxfrm="\\1 $ac_symprfx\\2 \\2"
6256
6257  # Write the raw and C identifiers.
6258  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6259    # Fake it for dumpbin and say T for any non-static function,
6260    # D for any global variable and I for any imported variable.
6261    # Also find C++ and __fastcall symbols from MSVC++,
6262    # which start with @ or ?.
6263    lt_cv_sys_global_symbol_pipe="$AWK '"\
6264"     {last_section=section; section=\$ 3};"\
6265"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6266"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6267"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6268"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6269"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6270"     \$ 0!~/External *\|/{next};"\
6271"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6272"     {if(hide[section]) next};"\
6273"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6274"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6275"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6276"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6277"     ' prfx=^$ac_symprfx"
6278  else
6279    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6280  fi
6281  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6282
6283  # Check to see that the pipe works correctly.
6284  pipe_works=no
6285
6286  rm -rf conftest*
6287  cat > conftest.$ac_ext <<_LT_EOF
6288#ifdef __cplusplus
6289extern "C" {
6290#endif
6291char nm_test_var;
6292void nm_test_func(void);
6293void nm_test_func(void){}
6294#ifdef __cplusplus
6295}
6296#endif
6297int main(){nm_test_var='a';nm_test_func();return(0);}
6298_LT_EOF
6299
6300  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6301  (eval $ac_compile) 2>&5
6302  ac_status=$?
6303  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6304  test $ac_status = 0; }; then
6305    # Now try to grab the symbols.
6306    nlist=conftest.nm
6307    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6308  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6309  ac_status=$?
6310  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6311  test $ac_status = 0; } && test -s "$nlist"; then
6312      # Try sorting and uniquifying the output.
6313      if sort "$nlist" | uniq > "$nlist"T; then
6314	mv -f "$nlist"T "$nlist"
6315      else
6316	rm -f "$nlist"T
6317      fi
6318
6319      # Make sure that we snagged all the symbols we need.
6320      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6321	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6322	  cat <<_LT_EOF > conftest.$ac_ext
6323/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6324#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6325/* DATA imports from DLLs on WIN32 can't be const, because runtime
6326   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6327# define LT_DLSYM_CONST
6328#elif defined __osf__
6329/* This system does not cope well with relocations in const data.  */
6330# define LT_DLSYM_CONST
6331#else
6332# define LT_DLSYM_CONST const
6333#endif
6334
6335#ifdef __cplusplus
6336extern "C" {
6337#endif
6338
6339_LT_EOF
6340	  # Now generate the symbol file.
6341	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6342
6343	  cat <<_LT_EOF >> conftest.$ac_ext
6344
6345/* The mapping between symbol names and symbols.  */
6346LT_DLSYM_CONST struct {
6347  const char *name;
6348  void       *address;
6349}
6350lt__PROGRAM__LTX_preloaded_symbols[] =
6351{
6352  { "@PROGRAM@", (void *) 0 },
6353_LT_EOF
6354	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6355	  cat <<\_LT_EOF >> conftest.$ac_ext
6356  {0, (void *) 0}
6357};
6358
6359/* This works around a problem in FreeBSD linker */
6360#ifdef FREEBSD_WORKAROUND
6361static const void *lt_preloaded_setup() {
6362  return lt__PROGRAM__LTX_preloaded_symbols;
6363}
6364#endif
6365
6366#ifdef __cplusplus
6367}
6368#endif
6369_LT_EOF
6370	  # Now try linking the two files.
6371	  mv conftest.$ac_objext conftstm.$ac_objext
6372	  lt_globsym_save_LIBS=$LIBS
6373	  lt_globsym_save_CFLAGS=$CFLAGS
6374	  LIBS=conftstm.$ac_objext
6375	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6376	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6377  (eval $ac_link) 2>&5
6378  ac_status=$?
6379  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6380  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6381	    pipe_works=yes
6382	  fi
6383	  LIBS=$lt_globsym_save_LIBS
6384	  CFLAGS=$lt_globsym_save_CFLAGS
6385	else
6386	  echo "cannot find nm_test_func in $nlist" >&5
6387	fi
6388      else
6389	echo "cannot find nm_test_var in $nlist" >&5
6390      fi
6391    else
6392      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6393    fi
6394  else
6395    echo "$progname: failed program was:" >&5
6396    cat conftest.$ac_ext >&5
6397  fi
6398  rm -rf conftest* conftst*
6399
6400  # Do not use the global_symbol_pipe unless it works.
6401  if test yes = "$pipe_works"; then
6402    break
6403  else
6404    lt_cv_sys_global_symbol_pipe=
6405  fi
6406done
6407
6408fi
6409
6410if test -z "$lt_cv_sys_global_symbol_pipe"; then
6411  lt_cv_sys_global_symbol_to_cdecl=
6412fi
6413if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6415$as_echo "failed" >&6; }
6416else
6417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6418$as_echo "ok" >&6; }
6419fi
6420
6421# Response file support.
6422if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6423  nm_file_list_spec='@'
6424elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6425  nm_file_list_spec='@'
6426fi
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6465$as_echo_n "checking for sysroot... " >&6; }
6466
6467# Check whether --with-sysroot was given.
6468if test "${with_sysroot+set}" = set; then :
6469  withval=$with_sysroot;
6470else
6471  with_sysroot=no
6472fi
6473
6474
6475lt_sysroot=
6476case $with_sysroot in #(
6477 yes)
6478   if test yes = "$GCC"; then
6479     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6480   fi
6481   ;; #(
6482 /*)
6483   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6484   ;; #(
6485 no|'')
6486   ;; #(
6487 *)
6488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6489$as_echo "$with_sysroot" >&6; }
6490   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6491   ;;
6492esac
6493
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6495$as_echo "${lt_sysroot:-no}" >&6; }
6496
6497
6498
6499
6500
6501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6502$as_echo_n "checking for a working dd... " >&6; }
6503if ${ac_cv_path_lt_DD+:} false; then :
6504  $as_echo_n "(cached) " >&6
6505else
6506  printf 0123456789abcdef0123456789abcdef >conftest.i
6507cat conftest.i conftest.i >conftest2.i
6508: ${lt_DD:=$DD}
6509if test -z "$lt_DD"; then
6510  ac_path_lt_DD_found=false
6511  # Loop through the user's path and test for each of PROGNAME-LIST
6512  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6513for as_dir in $PATH
6514do
6515  IFS=$as_save_IFS
6516  test -z "$as_dir" && as_dir=.
6517    for ac_prog in dd; do
6518    for ac_exec_ext in '' $ac_executable_extensions; do
6519      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6520      as_fn_executable_p "$ac_path_lt_DD" || continue
6521if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6522  cmp -s conftest.i conftest.out \
6523  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6524fi
6525      $ac_path_lt_DD_found && break 3
6526    done
6527  done
6528  done
6529IFS=$as_save_IFS
6530  if test -z "$ac_cv_path_lt_DD"; then
6531    :
6532  fi
6533else
6534  ac_cv_path_lt_DD=$lt_DD
6535fi
6536
6537rm -f conftest.i conftest2.i conftest.out
6538fi
6539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6540$as_echo "$ac_cv_path_lt_DD" >&6; }
6541
6542
6543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6544$as_echo_n "checking how to truncate binary pipes... " >&6; }
6545if ${lt_cv_truncate_bin+:} false; then :
6546  $as_echo_n "(cached) " >&6
6547else
6548  printf 0123456789abcdef0123456789abcdef >conftest.i
6549cat conftest.i conftest.i >conftest2.i
6550lt_cv_truncate_bin=
6551if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6552  cmp -s conftest.i conftest.out \
6553  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6554fi
6555rm -f conftest.i conftest2.i conftest.out
6556test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6557fi
6558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6559$as_echo "$lt_cv_truncate_bin" >&6; }
6560
6561
6562
6563
6564
6565
6566
6567# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6568func_cc_basename ()
6569{
6570    for cc_temp in $*""; do
6571      case $cc_temp in
6572        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6573        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6574        \-*) ;;
6575        *) break;;
6576      esac
6577    done
6578    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6579}
6580
6581# Check whether --enable-libtool-lock was given.
6582if test "${enable_libtool_lock+set}" = set; then :
6583  enableval=$enable_libtool_lock;
6584fi
6585
6586test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6587
6588# Some flags need to be propagated to the compiler or linker for good
6589# libtool support.
6590case $host in
6591ia64-*-hpux*)
6592  # Find out what ABI is being produced by ac_compile, and set mode
6593  # options accordingly.
6594  echo 'int i;' > conftest.$ac_ext
6595  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6596  (eval $ac_compile) 2>&5
6597  ac_status=$?
6598  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6599  test $ac_status = 0; }; then
6600    case `/usr/bin/file conftest.$ac_objext` in
6601      *ELF-32*)
6602	HPUX_IA64_MODE=32
6603	;;
6604      *ELF-64*)
6605	HPUX_IA64_MODE=64
6606	;;
6607    esac
6608  fi
6609  rm -rf conftest*
6610  ;;
6611*-*-irix6*)
6612  # Find out what ABI is being produced by ac_compile, and set linker
6613  # options accordingly.
6614  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6615  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6616  (eval $ac_compile) 2>&5
6617  ac_status=$?
6618  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6619  test $ac_status = 0; }; then
6620    if test yes = "$lt_cv_prog_gnu_ld"; then
6621      case `/usr/bin/file conftest.$ac_objext` in
6622	*32-bit*)
6623	  LD="${LD-ld} -melf32bsmip"
6624	  ;;
6625	*N32*)
6626	  LD="${LD-ld} -melf32bmipn32"
6627	  ;;
6628	*64-bit*)
6629	  LD="${LD-ld} -melf64bmip"
6630	;;
6631      esac
6632    else
6633      case `/usr/bin/file conftest.$ac_objext` in
6634	*32-bit*)
6635	  LD="${LD-ld} -32"
6636	  ;;
6637	*N32*)
6638	  LD="${LD-ld} -n32"
6639	  ;;
6640	*64-bit*)
6641	  LD="${LD-ld} -64"
6642	  ;;
6643      esac
6644    fi
6645  fi
6646  rm -rf conftest*
6647  ;;
6648
6649mips64*-*linux*)
6650  # Find out what ABI is being produced by ac_compile, and set linker
6651  # options accordingly.
6652  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6653  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6654  (eval $ac_compile) 2>&5
6655  ac_status=$?
6656  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6657  test $ac_status = 0; }; then
6658    emul=elf
6659    case `/usr/bin/file conftest.$ac_objext` in
6660      *32-bit*)
6661	emul="${emul}32"
6662	;;
6663      *64-bit*)
6664	emul="${emul}64"
6665	;;
6666    esac
6667    case `/usr/bin/file conftest.$ac_objext` in
6668      *MSB*)
6669	emul="${emul}btsmip"
6670	;;
6671      *LSB*)
6672	emul="${emul}ltsmip"
6673	;;
6674    esac
6675    case `/usr/bin/file conftest.$ac_objext` in
6676      *N32*)
6677	emul="${emul}n32"
6678	;;
6679    esac
6680    LD="${LD-ld} -m $emul"
6681  fi
6682  rm -rf conftest*
6683  ;;
6684
6685x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6686s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6687  # Find out what ABI is being produced by ac_compile, and set linker
6688  # options accordingly.  Note that the listed cases only cover the
6689  # situations where additional linker options are needed (such as when
6690  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6691  # vice versa); the common cases where no linker options are needed do
6692  # not appear in the list.
6693  echo 'int i;' > conftest.$ac_ext
6694  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6695  (eval $ac_compile) 2>&5
6696  ac_status=$?
6697  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6698  test $ac_status = 0; }; then
6699    case `/usr/bin/file conftest.o` in
6700      *32-bit*)
6701	case $host in
6702	  x86_64-*kfreebsd*-gnu)
6703	    LD="${LD-ld} -m elf_i386_fbsd"
6704	    ;;
6705	  x86_64-*linux*)
6706	    case `/usr/bin/file conftest.o` in
6707	      *x86-64*)
6708		LD="${LD-ld} -m elf32_x86_64"
6709		;;
6710	      *)
6711		LD="${LD-ld} -m elf_i386"
6712		;;
6713	    esac
6714	    ;;
6715	  powerpc64le-*linux*)
6716	    LD="${LD-ld} -m elf32lppclinux"
6717	    ;;
6718	  powerpc64-*linux*)
6719	    LD="${LD-ld} -m elf32ppclinux"
6720	    ;;
6721	  s390x-*linux*)
6722	    LD="${LD-ld} -m elf_s390"
6723	    ;;
6724	  sparc64-*linux*)
6725	    LD="${LD-ld} -m elf32_sparc"
6726	    ;;
6727	esac
6728	;;
6729      *64-bit*)
6730	case $host in
6731	  x86_64-*kfreebsd*-gnu)
6732	    LD="${LD-ld} -m elf_x86_64_fbsd"
6733	    ;;
6734	  x86_64-*linux*)
6735	    LD="${LD-ld} -m elf_x86_64"
6736	    ;;
6737	  powerpcle-*linux*)
6738	    LD="${LD-ld} -m elf64lppc"
6739	    ;;
6740	  powerpc-*linux*)
6741	    LD="${LD-ld} -m elf64ppc"
6742	    ;;
6743	  s390*-*linux*|s390*-*tpf*)
6744	    LD="${LD-ld} -m elf64_s390"
6745	    ;;
6746	  sparc*-*linux*)
6747	    LD="${LD-ld} -m elf64_sparc"
6748	    ;;
6749	esac
6750	;;
6751    esac
6752  fi
6753  rm -rf conftest*
6754  ;;
6755
6756*-*-sco3.2v5*)
6757  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6758  SAVE_CFLAGS=$CFLAGS
6759  CFLAGS="$CFLAGS -belf"
6760  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6761$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6762if ${lt_cv_cc_needs_belf+:} false; then :
6763  $as_echo_n "(cached) " >&6
6764else
6765  ac_ext=c
6766ac_cpp='$CPP $CPPFLAGS'
6767ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6768ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6769ac_compiler_gnu=$ac_cv_c_compiler_gnu
6770
6771     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6772/* end confdefs.h.  */
6773
6774int
6775main ()
6776{
6777
6778  ;
6779  return 0;
6780}
6781_ACEOF
6782if ac_fn_c_try_link "$LINENO"; then :
6783  lt_cv_cc_needs_belf=yes
6784else
6785  lt_cv_cc_needs_belf=no
6786fi
6787rm -f core conftest.err conftest.$ac_objext \
6788    conftest$ac_exeext conftest.$ac_ext
6789     ac_ext=c
6790ac_cpp='$CPP $CPPFLAGS'
6791ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6792ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6793ac_compiler_gnu=$ac_cv_c_compiler_gnu
6794
6795fi
6796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6797$as_echo "$lt_cv_cc_needs_belf" >&6; }
6798  if test yes != "$lt_cv_cc_needs_belf"; then
6799    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6800    CFLAGS=$SAVE_CFLAGS
6801  fi
6802  ;;
6803*-*solaris*)
6804  # Find out what ABI is being produced by ac_compile, and set linker
6805  # options accordingly.
6806  echo 'int i;' > conftest.$ac_ext
6807  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6808  (eval $ac_compile) 2>&5
6809  ac_status=$?
6810  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6811  test $ac_status = 0; }; then
6812    case `/usr/bin/file conftest.o` in
6813    *64-bit*)
6814      case $lt_cv_prog_gnu_ld in
6815      yes*)
6816        case $host in
6817        i?86-*-solaris*|x86_64-*-solaris*)
6818          LD="${LD-ld} -m elf_x86_64"
6819          ;;
6820        sparc*-*-solaris*)
6821          LD="${LD-ld} -m elf64_sparc"
6822          ;;
6823        esac
6824        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6825        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6826          LD=${LD-ld}_sol2
6827        fi
6828        ;;
6829      *)
6830	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6831	  LD="${LD-ld} -64"
6832	fi
6833	;;
6834      esac
6835      ;;
6836    esac
6837  fi
6838  rm -rf conftest*
6839  ;;
6840esac
6841
6842need_locks=$enable_libtool_lock
6843
6844if test -n "$ac_tool_prefix"; then
6845  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6846set dummy ${ac_tool_prefix}mt; ac_word=$2
6847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6848$as_echo_n "checking for $ac_word... " >&6; }
6849if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6850  $as_echo_n "(cached) " >&6
6851else
6852  if test -n "$MANIFEST_TOOL"; then
6853  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6854else
6855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6856for as_dir in $PATH
6857do
6858  IFS=$as_save_IFS
6859  test -z "$as_dir" && as_dir=.
6860    for ac_exec_ext in '' $ac_executable_extensions; do
6861  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6862    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6863    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6864    break 2
6865  fi
6866done
6867  done
6868IFS=$as_save_IFS
6869
6870fi
6871fi
6872MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6873if test -n "$MANIFEST_TOOL"; then
6874  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6875$as_echo "$MANIFEST_TOOL" >&6; }
6876else
6877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6878$as_echo "no" >&6; }
6879fi
6880
6881
6882fi
6883if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6884  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6885  # Extract the first word of "mt", so it can be a program name with args.
6886set dummy mt; ac_word=$2
6887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6888$as_echo_n "checking for $ac_word... " >&6; }
6889if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6890  $as_echo_n "(cached) " >&6
6891else
6892  if test -n "$ac_ct_MANIFEST_TOOL"; then
6893  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6894else
6895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6896for as_dir in $PATH
6897do
6898  IFS=$as_save_IFS
6899  test -z "$as_dir" && as_dir=.
6900    for ac_exec_ext in '' $ac_executable_extensions; do
6901  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6902    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6903    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6904    break 2
6905  fi
6906done
6907  done
6908IFS=$as_save_IFS
6909
6910fi
6911fi
6912ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6913if test -n "$ac_ct_MANIFEST_TOOL"; then
6914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6915$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6916else
6917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6918$as_echo "no" >&6; }
6919fi
6920
6921  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6922    MANIFEST_TOOL=":"
6923  else
6924    case $cross_compiling:$ac_tool_warned in
6925yes:)
6926{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6927$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6928ac_tool_warned=yes ;;
6929esac
6930    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6931  fi
6932else
6933  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6934fi
6935
6936test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6938$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6939if ${lt_cv_path_mainfest_tool+:} false; then :
6940  $as_echo_n "(cached) " >&6
6941else
6942  lt_cv_path_mainfest_tool=no
6943  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6944  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6945  cat conftest.err >&5
6946  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6947    lt_cv_path_mainfest_tool=yes
6948  fi
6949  rm -rf conftest*
6950fi
6951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6952$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6953if test yes != "$lt_cv_path_mainfest_tool"; then
6954  MANIFEST_TOOL=:
6955fi
6956
6957
6958
6959
6960
6961
6962  case $host_os in
6963    rhapsody* | darwin*)
6964    if test -n "$ac_tool_prefix"; then
6965  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6966set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6968$as_echo_n "checking for $ac_word... " >&6; }
6969if ${ac_cv_prog_DSYMUTIL+:} false; then :
6970  $as_echo_n "(cached) " >&6
6971else
6972  if test -n "$DSYMUTIL"; then
6973  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6974else
6975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6976for as_dir in $PATH
6977do
6978  IFS=$as_save_IFS
6979  test -z "$as_dir" && as_dir=.
6980    for ac_exec_ext in '' $ac_executable_extensions; do
6981  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6982    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6983    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6984    break 2
6985  fi
6986done
6987  done
6988IFS=$as_save_IFS
6989
6990fi
6991fi
6992DSYMUTIL=$ac_cv_prog_DSYMUTIL
6993if test -n "$DSYMUTIL"; then
6994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6995$as_echo "$DSYMUTIL" >&6; }
6996else
6997  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6998$as_echo "no" >&6; }
6999fi
7000
7001
7002fi
7003if test -z "$ac_cv_prog_DSYMUTIL"; then
7004  ac_ct_DSYMUTIL=$DSYMUTIL
7005  # Extract the first word of "dsymutil", so it can be a program name with args.
7006set dummy dsymutil; ac_word=$2
7007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7008$as_echo_n "checking for $ac_word... " >&6; }
7009if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7010  $as_echo_n "(cached) " >&6
7011else
7012  if test -n "$ac_ct_DSYMUTIL"; then
7013  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7014else
7015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7016for as_dir in $PATH
7017do
7018  IFS=$as_save_IFS
7019  test -z "$as_dir" && as_dir=.
7020    for ac_exec_ext in '' $ac_executable_extensions; do
7021  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7022    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7023    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7024    break 2
7025  fi
7026done
7027  done
7028IFS=$as_save_IFS
7029
7030fi
7031fi
7032ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7033if test -n "$ac_ct_DSYMUTIL"; then
7034  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7035$as_echo "$ac_ct_DSYMUTIL" >&6; }
7036else
7037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7038$as_echo "no" >&6; }
7039fi
7040
7041  if test "x$ac_ct_DSYMUTIL" = x; then
7042    DSYMUTIL=":"
7043  else
7044    case $cross_compiling:$ac_tool_warned in
7045yes:)
7046{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7047$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7048ac_tool_warned=yes ;;
7049esac
7050    DSYMUTIL=$ac_ct_DSYMUTIL
7051  fi
7052else
7053  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7054fi
7055
7056    if test -n "$ac_tool_prefix"; then
7057  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7058set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7060$as_echo_n "checking for $ac_word... " >&6; }
7061if ${ac_cv_prog_NMEDIT+:} false; then :
7062  $as_echo_n "(cached) " >&6
7063else
7064  if test -n "$NMEDIT"; then
7065  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7066else
7067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7068for as_dir in $PATH
7069do
7070  IFS=$as_save_IFS
7071  test -z "$as_dir" && as_dir=.
7072    for ac_exec_ext in '' $ac_executable_extensions; do
7073  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7074    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7075    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7076    break 2
7077  fi
7078done
7079  done
7080IFS=$as_save_IFS
7081
7082fi
7083fi
7084NMEDIT=$ac_cv_prog_NMEDIT
7085if test -n "$NMEDIT"; then
7086  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7087$as_echo "$NMEDIT" >&6; }
7088else
7089  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7090$as_echo "no" >&6; }
7091fi
7092
7093
7094fi
7095if test -z "$ac_cv_prog_NMEDIT"; then
7096  ac_ct_NMEDIT=$NMEDIT
7097  # Extract the first word of "nmedit", so it can be a program name with args.
7098set dummy nmedit; ac_word=$2
7099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7100$as_echo_n "checking for $ac_word... " >&6; }
7101if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7102  $as_echo_n "(cached) " >&6
7103else
7104  if test -n "$ac_ct_NMEDIT"; then
7105  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7106else
7107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7108for as_dir in $PATH
7109do
7110  IFS=$as_save_IFS
7111  test -z "$as_dir" && as_dir=.
7112    for ac_exec_ext in '' $ac_executable_extensions; do
7113  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7114    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7115    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7116    break 2
7117  fi
7118done
7119  done
7120IFS=$as_save_IFS
7121
7122fi
7123fi
7124ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7125if test -n "$ac_ct_NMEDIT"; then
7126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7127$as_echo "$ac_ct_NMEDIT" >&6; }
7128else
7129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7130$as_echo "no" >&6; }
7131fi
7132
7133  if test "x$ac_ct_NMEDIT" = x; then
7134    NMEDIT=":"
7135  else
7136    case $cross_compiling:$ac_tool_warned in
7137yes:)
7138{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7139$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7140ac_tool_warned=yes ;;
7141esac
7142    NMEDIT=$ac_ct_NMEDIT
7143  fi
7144else
7145  NMEDIT="$ac_cv_prog_NMEDIT"
7146fi
7147
7148    if test -n "$ac_tool_prefix"; then
7149  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7150set dummy ${ac_tool_prefix}lipo; ac_word=$2
7151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7152$as_echo_n "checking for $ac_word... " >&6; }
7153if ${ac_cv_prog_LIPO+:} false; then :
7154  $as_echo_n "(cached) " >&6
7155else
7156  if test -n "$LIPO"; then
7157  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7158else
7159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7160for as_dir in $PATH
7161do
7162  IFS=$as_save_IFS
7163  test -z "$as_dir" && as_dir=.
7164    for ac_exec_ext in '' $ac_executable_extensions; do
7165  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7166    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7167    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7168    break 2
7169  fi
7170done
7171  done
7172IFS=$as_save_IFS
7173
7174fi
7175fi
7176LIPO=$ac_cv_prog_LIPO
7177if test -n "$LIPO"; then
7178  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7179$as_echo "$LIPO" >&6; }
7180else
7181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7182$as_echo "no" >&6; }
7183fi
7184
7185
7186fi
7187if test -z "$ac_cv_prog_LIPO"; then
7188  ac_ct_LIPO=$LIPO
7189  # Extract the first word of "lipo", so it can be a program name with args.
7190set dummy lipo; ac_word=$2
7191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7192$as_echo_n "checking for $ac_word... " >&6; }
7193if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7194  $as_echo_n "(cached) " >&6
7195else
7196  if test -n "$ac_ct_LIPO"; then
7197  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7198else
7199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7200for as_dir in $PATH
7201do
7202  IFS=$as_save_IFS
7203  test -z "$as_dir" && as_dir=.
7204    for ac_exec_ext in '' $ac_executable_extensions; do
7205  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7206    ac_cv_prog_ac_ct_LIPO="lipo"
7207    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7208    break 2
7209  fi
7210done
7211  done
7212IFS=$as_save_IFS
7213
7214fi
7215fi
7216ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7217if test -n "$ac_ct_LIPO"; then
7218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7219$as_echo "$ac_ct_LIPO" >&6; }
7220else
7221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7222$as_echo "no" >&6; }
7223fi
7224
7225  if test "x$ac_ct_LIPO" = x; then
7226    LIPO=":"
7227  else
7228    case $cross_compiling:$ac_tool_warned in
7229yes:)
7230{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7231$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7232ac_tool_warned=yes ;;
7233esac
7234    LIPO=$ac_ct_LIPO
7235  fi
7236else
7237  LIPO="$ac_cv_prog_LIPO"
7238fi
7239
7240    if test -n "$ac_tool_prefix"; then
7241  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7242set dummy ${ac_tool_prefix}otool; ac_word=$2
7243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7244$as_echo_n "checking for $ac_word... " >&6; }
7245if ${ac_cv_prog_OTOOL+:} false; then :
7246  $as_echo_n "(cached) " >&6
7247else
7248  if test -n "$OTOOL"; then
7249  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7250else
7251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7252for as_dir in $PATH
7253do
7254  IFS=$as_save_IFS
7255  test -z "$as_dir" && as_dir=.
7256    for ac_exec_ext in '' $ac_executable_extensions; do
7257  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7258    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7259    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7260    break 2
7261  fi
7262done
7263  done
7264IFS=$as_save_IFS
7265
7266fi
7267fi
7268OTOOL=$ac_cv_prog_OTOOL
7269if test -n "$OTOOL"; then
7270  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7271$as_echo "$OTOOL" >&6; }
7272else
7273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7274$as_echo "no" >&6; }
7275fi
7276
7277
7278fi
7279if test -z "$ac_cv_prog_OTOOL"; then
7280  ac_ct_OTOOL=$OTOOL
7281  # Extract the first word of "otool", so it can be a program name with args.
7282set dummy otool; ac_word=$2
7283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7284$as_echo_n "checking for $ac_word... " >&6; }
7285if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7286  $as_echo_n "(cached) " >&6
7287else
7288  if test -n "$ac_ct_OTOOL"; then
7289  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7290else
7291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7292for as_dir in $PATH
7293do
7294  IFS=$as_save_IFS
7295  test -z "$as_dir" && as_dir=.
7296    for ac_exec_ext in '' $ac_executable_extensions; do
7297  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7298    ac_cv_prog_ac_ct_OTOOL="otool"
7299    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7300    break 2
7301  fi
7302done
7303  done
7304IFS=$as_save_IFS
7305
7306fi
7307fi
7308ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7309if test -n "$ac_ct_OTOOL"; then
7310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7311$as_echo "$ac_ct_OTOOL" >&6; }
7312else
7313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7314$as_echo "no" >&6; }
7315fi
7316
7317  if test "x$ac_ct_OTOOL" = x; then
7318    OTOOL=":"
7319  else
7320    case $cross_compiling:$ac_tool_warned in
7321yes:)
7322{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7323$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7324ac_tool_warned=yes ;;
7325esac
7326    OTOOL=$ac_ct_OTOOL
7327  fi
7328else
7329  OTOOL="$ac_cv_prog_OTOOL"
7330fi
7331
7332    if test -n "$ac_tool_prefix"; then
7333  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7334set dummy ${ac_tool_prefix}otool64; ac_word=$2
7335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7336$as_echo_n "checking for $ac_word... " >&6; }
7337if ${ac_cv_prog_OTOOL64+:} false; then :
7338  $as_echo_n "(cached) " >&6
7339else
7340  if test -n "$OTOOL64"; then
7341  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7342else
7343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7344for as_dir in $PATH
7345do
7346  IFS=$as_save_IFS
7347  test -z "$as_dir" && as_dir=.
7348    for ac_exec_ext in '' $ac_executable_extensions; do
7349  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7350    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7351    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7352    break 2
7353  fi
7354done
7355  done
7356IFS=$as_save_IFS
7357
7358fi
7359fi
7360OTOOL64=$ac_cv_prog_OTOOL64
7361if test -n "$OTOOL64"; then
7362  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7363$as_echo "$OTOOL64" >&6; }
7364else
7365  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7366$as_echo "no" >&6; }
7367fi
7368
7369
7370fi
7371if test -z "$ac_cv_prog_OTOOL64"; then
7372  ac_ct_OTOOL64=$OTOOL64
7373  # Extract the first word of "otool64", so it can be a program name with args.
7374set dummy otool64; ac_word=$2
7375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7376$as_echo_n "checking for $ac_word... " >&6; }
7377if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7378  $as_echo_n "(cached) " >&6
7379else
7380  if test -n "$ac_ct_OTOOL64"; then
7381  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7382else
7383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7384for as_dir in $PATH
7385do
7386  IFS=$as_save_IFS
7387  test -z "$as_dir" && as_dir=.
7388    for ac_exec_ext in '' $ac_executable_extensions; do
7389  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7390    ac_cv_prog_ac_ct_OTOOL64="otool64"
7391    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7392    break 2
7393  fi
7394done
7395  done
7396IFS=$as_save_IFS
7397
7398fi
7399fi
7400ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7401if test -n "$ac_ct_OTOOL64"; then
7402  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7403$as_echo "$ac_ct_OTOOL64" >&6; }
7404else
7405  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7406$as_echo "no" >&6; }
7407fi
7408
7409  if test "x$ac_ct_OTOOL64" = x; then
7410    OTOOL64=":"
7411  else
7412    case $cross_compiling:$ac_tool_warned in
7413yes:)
7414{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7415$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7416ac_tool_warned=yes ;;
7417esac
7418    OTOOL64=$ac_ct_OTOOL64
7419  fi
7420else
7421  OTOOL64="$ac_cv_prog_OTOOL64"
7422fi
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7451$as_echo_n "checking for -single_module linker flag... " >&6; }
7452if ${lt_cv_apple_cc_single_mod+:} false; then :
7453  $as_echo_n "(cached) " >&6
7454else
7455  lt_cv_apple_cc_single_mod=no
7456      if test -z "$LT_MULTI_MODULE"; then
7457	# By default we will add the -single_module flag. You can override
7458	# by either setting the environment variable LT_MULTI_MODULE
7459	# non-empty at configure time, or by adding -multi_module to the
7460	# link flags.
7461	rm -rf libconftest.dylib*
7462	echo "int foo(void){return 1;}" > conftest.c
7463	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7464-dynamiclib -Wl,-single_module conftest.c" >&5
7465	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7466	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7467        _lt_result=$?
7468	# If there is a non-empty error log, and "single_module"
7469	# appears in it, assume the flag caused a linker warning
7470        if test -s conftest.err && $GREP single_module conftest.err; then
7471	  cat conftest.err >&5
7472	# Otherwise, if the output was created with a 0 exit code from
7473	# the compiler, it worked.
7474	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7475	  lt_cv_apple_cc_single_mod=yes
7476	else
7477	  cat conftest.err >&5
7478	fi
7479	rm -rf libconftest.dylib*
7480	rm -f conftest.*
7481      fi
7482fi
7483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7484$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7485
7486    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7487$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7488if ${lt_cv_ld_exported_symbols_list+:} false; then :
7489  $as_echo_n "(cached) " >&6
7490else
7491  lt_cv_ld_exported_symbols_list=no
7492      save_LDFLAGS=$LDFLAGS
7493      echo "_main" > conftest.sym
7494      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7495      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7496/* end confdefs.h.  */
7497
7498int
7499main ()
7500{
7501
7502  ;
7503  return 0;
7504}
7505_ACEOF
7506if ac_fn_c_try_link "$LINENO"; then :
7507  lt_cv_ld_exported_symbols_list=yes
7508else
7509  lt_cv_ld_exported_symbols_list=no
7510fi
7511rm -f core conftest.err conftest.$ac_objext \
7512    conftest$ac_exeext conftest.$ac_ext
7513	LDFLAGS=$save_LDFLAGS
7514
7515fi
7516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7517$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7518
7519    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7520$as_echo_n "checking for -force_load linker flag... " >&6; }
7521if ${lt_cv_ld_force_load+:} false; then :
7522  $as_echo_n "(cached) " >&6
7523else
7524  lt_cv_ld_force_load=no
7525      cat > conftest.c << _LT_EOF
7526int forced_loaded() { return 2;}
7527_LT_EOF
7528      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7529      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7530      echo "$AR cru libconftest.a conftest.o" >&5
7531      $AR cru libconftest.a conftest.o 2>&5
7532      echo "$RANLIB libconftest.a" >&5
7533      $RANLIB libconftest.a 2>&5
7534      cat > conftest.c << _LT_EOF
7535int main() { return 0;}
7536_LT_EOF
7537      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7538      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7539      _lt_result=$?
7540      if test -s conftest.err && $GREP force_load conftest.err; then
7541	cat conftest.err >&5
7542      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7543	lt_cv_ld_force_load=yes
7544      else
7545	cat conftest.err >&5
7546      fi
7547        rm -f conftest.err libconftest.a conftest conftest.c
7548        rm -rf conftest.dSYM
7549
7550fi
7551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7552$as_echo "$lt_cv_ld_force_load" >&6; }
7553    case $host_os in
7554    rhapsody* | darwin1.[012])
7555      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7556    darwin1.*)
7557      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7558    darwin*) # darwin 5.x on
7559      # if running on 10.5 or later, the deployment target defaults
7560      # to the OS version, if on x86, and 10.4, the deployment
7561      # target defaults to 10.4. Don't you love it?
7562      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7563	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7564	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7565	10.[012][,.]*)
7566	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7567	10.*)
7568	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7569      esac
7570    ;;
7571  esac
7572    if test yes = "$lt_cv_apple_cc_single_mod"; then
7573      _lt_dar_single_mod='$single_module'
7574    fi
7575    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7576      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7577    else
7578      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7579    fi
7580    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7581      _lt_dsymutil='~$DSYMUTIL $lib || :'
7582    else
7583      _lt_dsymutil=
7584    fi
7585    ;;
7586  esac
7587
7588# func_munge_path_list VARIABLE PATH
7589# -----------------------------------
7590# VARIABLE is name of variable containing _space_ separated list of
7591# directories to be munged by the contents of PATH, which is string
7592# having a format:
7593# "DIR[:DIR]:"
7594#       string "DIR[ DIR]" will be prepended to VARIABLE
7595# ":DIR[:DIR]"
7596#       string "DIR[ DIR]" will be appended to VARIABLE
7597# "DIRP[:DIRP]::[DIRA:]DIRA"
7598#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7599#       "DIRA[ DIRA]" will be appended to VARIABLE
7600# "DIR[:DIR]"
7601#       VARIABLE will be replaced by "DIR[ DIR]"
7602func_munge_path_list ()
7603{
7604    case x$2 in
7605    x)
7606        ;;
7607    *:)
7608        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7609        ;;
7610    x:*)
7611        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7612        ;;
7613    *::*)
7614        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7615        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7616        ;;
7617    *)
7618        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7619        ;;
7620    esac
7621}
7622
7623ac_ext=c
7624ac_cpp='$CPP $CPPFLAGS'
7625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7627ac_compiler_gnu=$ac_cv_c_compiler_gnu
7628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7629$as_echo_n "checking how to run the C preprocessor... " >&6; }
7630# On Suns, sometimes $CPP names a directory.
7631if test -n "$CPP" && test -d "$CPP"; then
7632  CPP=
7633fi
7634if test -z "$CPP"; then
7635  if ${ac_cv_prog_CPP+:} false; then :
7636  $as_echo_n "(cached) " >&6
7637else
7638      # Double quotes because CPP needs to be expanded
7639    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7640    do
7641      ac_preproc_ok=false
7642for ac_c_preproc_warn_flag in '' yes
7643do
7644  # Use a header file that comes with gcc, so configuring glibc
7645  # with a fresh cross-compiler works.
7646  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7647  # <limits.h> exists even on freestanding compilers.
7648  # On the NeXT, cc -E runs the code through the compiler's parser,
7649  # not just through cpp. "Syntax error" is here to catch this case.
7650  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7651/* end confdefs.h.  */
7652#ifdef __STDC__
7653# include <limits.h>
7654#else
7655# include <assert.h>
7656#endif
7657		     Syntax error
7658_ACEOF
7659if ac_fn_c_try_cpp "$LINENO"; then :
7660
7661else
7662  # Broken: fails on valid input.
7663continue
7664fi
7665rm -f conftest.err conftest.i conftest.$ac_ext
7666
7667  # OK, works on sane cases.  Now check whether nonexistent headers
7668  # can be detected and how.
7669  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7670/* end confdefs.h.  */
7671#include <ac_nonexistent.h>
7672_ACEOF
7673if ac_fn_c_try_cpp "$LINENO"; then :
7674  # Broken: success on invalid input.
7675continue
7676else
7677  # Passes both tests.
7678ac_preproc_ok=:
7679break
7680fi
7681rm -f conftest.err conftest.i conftest.$ac_ext
7682
7683done
7684# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7685rm -f conftest.i conftest.err conftest.$ac_ext
7686if $ac_preproc_ok; then :
7687  break
7688fi
7689
7690    done
7691    ac_cv_prog_CPP=$CPP
7692
7693fi
7694  CPP=$ac_cv_prog_CPP
7695else
7696  ac_cv_prog_CPP=$CPP
7697fi
7698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7699$as_echo "$CPP" >&6; }
7700ac_preproc_ok=false
7701for ac_c_preproc_warn_flag in '' yes
7702do
7703  # Use a header file that comes with gcc, so configuring glibc
7704  # with a fresh cross-compiler works.
7705  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7706  # <limits.h> exists even on freestanding compilers.
7707  # On the NeXT, cc -E runs the code through the compiler's parser,
7708  # not just through cpp. "Syntax error" is here to catch this case.
7709  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7710/* end confdefs.h.  */
7711#ifdef __STDC__
7712# include <limits.h>
7713#else
7714# include <assert.h>
7715#endif
7716		     Syntax error
7717_ACEOF
7718if ac_fn_c_try_cpp "$LINENO"; then :
7719
7720else
7721  # Broken: fails on valid input.
7722continue
7723fi
7724rm -f conftest.err conftest.i conftest.$ac_ext
7725
7726  # OK, works on sane cases.  Now check whether nonexistent headers
7727  # can be detected and how.
7728  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7729/* end confdefs.h.  */
7730#include <ac_nonexistent.h>
7731_ACEOF
7732if ac_fn_c_try_cpp "$LINENO"; then :
7733  # Broken: success on invalid input.
7734continue
7735else
7736  # Passes both tests.
7737ac_preproc_ok=:
7738break
7739fi
7740rm -f conftest.err conftest.i conftest.$ac_ext
7741
7742done
7743# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7744rm -f conftest.i conftest.err conftest.$ac_ext
7745if $ac_preproc_ok; then :
7746
7747else
7748  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7749$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7750as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7751See \`config.log' for more details" "$LINENO" 5; }
7752fi
7753
7754ac_ext=c
7755ac_cpp='$CPP $CPPFLAGS'
7756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7758ac_compiler_gnu=$ac_cv_c_compiler_gnu
7759
7760
7761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7762$as_echo_n "checking for ANSI C header files... " >&6; }
7763if ${ac_cv_header_stdc+:} false; then :
7764  $as_echo_n "(cached) " >&6
7765else
7766  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7767/* end confdefs.h.  */
7768#include <stdlib.h>
7769#include <stdarg.h>
7770#include <string.h>
7771#include <float.h>
7772
7773int
7774main ()
7775{
7776
7777  ;
7778  return 0;
7779}
7780_ACEOF
7781if ac_fn_c_try_compile "$LINENO"; then :
7782  ac_cv_header_stdc=yes
7783else
7784  ac_cv_header_stdc=no
7785fi
7786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7787
7788if test $ac_cv_header_stdc = yes; then
7789  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7790  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7791/* end confdefs.h.  */
7792#include <string.h>
7793
7794_ACEOF
7795if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7796  $EGREP "memchr" >/dev/null 2>&1; then :
7797
7798else
7799  ac_cv_header_stdc=no
7800fi
7801rm -f conftest*
7802
7803fi
7804
7805if test $ac_cv_header_stdc = yes; then
7806  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7807  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7808/* end confdefs.h.  */
7809#include <stdlib.h>
7810
7811_ACEOF
7812if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7813  $EGREP "free" >/dev/null 2>&1; then :
7814
7815else
7816  ac_cv_header_stdc=no
7817fi
7818rm -f conftest*
7819
7820fi
7821
7822if test $ac_cv_header_stdc = yes; then
7823  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7824  if test "$cross_compiling" = yes; then :
7825  :
7826else
7827  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7828/* end confdefs.h.  */
7829#include <ctype.h>
7830#include <stdlib.h>
7831#if ((' ' & 0x0FF) == 0x020)
7832# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7833# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7834#else
7835# define ISLOWER(c) \
7836		   (('a' <= (c) && (c) <= 'i') \
7837		     || ('j' <= (c) && (c) <= 'r') \
7838		     || ('s' <= (c) && (c) <= 'z'))
7839# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7840#endif
7841
7842#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7843int
7844main ()
7845{
7846  int i;
7847  for (i = 0; i < 256; i++)
7848    if (XOR (islower (i), ISLOWER (i))
7849	|| toupper (i) != TOUPPER (i))
7850      return 2;
7851  return 0;
7852}
7853_ACEOF
7854if ac_fn_c_try_run "$LINENO"; then :
7855
7856else
7857  ac_cv_header_stdc=no
7858fi
7859rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7860  conftest.$ac_objext conftest.beam conftest.$ac_ext
7861fi
7862
7863fi
7864fi
7865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7866$as_echo "$ac_cv_header_stdc" >&6; }
7867if test $ac_cv_header_stdc = yes; then
7868
7869$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7870
7871fi
7872
7873# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7874for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7875		  inttypes.h stdint.h unistd.h
7876do :
7877  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7878ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7879"
7880if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7881  cat >>confdefs.h <<_ACEOF
7882#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7883_ACEOF
7884
7885fi
7886
7887done
7888
7889
7890for ac_header in dlfcn.h
7891do :
7892  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7893"
7894if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7895  cat >>confdefs.h <<_ACEOF
7896#define HAVE_DLFCN_H 1
7897_ACEOF
7898
7899fi
7900
7901done
7902
7903
7904
7905
7906
7907# Set options
7908
7909
7910
7911        enable_dlopen=no
7912
7913
7914  enable_win32_dll=no
7915
7916
7917            # Check whether --enable-shared was given.
7918if test "${enable_shared+set}" = set; then :
7919  enableval=$enable_shared; p=${PACKAGE-default}
7920    case $enableval in
7921    yes) enable_shared=yes ;;
7922    no) enable_shared=no ;;
7923    *)
7924      enable_shared=no
7925      # Look at the argument we got.  We use all the common list separators.
7926      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7927      for pkg in $enableval; do
7928	IFS=$lt_save_ifs
7929	if test "X$pkg" = "X$p"; then
7930	  enable_shared=yes
7931	fi
7932      done
7933      IFS=$lt_save_ifs
7934      ;;
7935    esac
7936else
7937  enable_shared=yes
7938fi
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948  # Check whether --enable-static was given.
7949if test "${enable_static+set}" = set; then :
7950  enableval=$enable_static; p=${PACKAGE-default}
7951    case $enableval in
7952    yes) enable_static=yes ;;
7953    no) enable_static=no ;;
7954    *)
7955     enable_static=no
7956      # Look at the argument we got.  We use all the common list separators.
7957      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7958      for pkg in $enableval; do
7959	IFS=$lt_save_ifs
7960	if test "X$pkg" = "X$p"; then
7961	  enable_static=yes
7962	fi
7963      done
7964      IFS=$lt_save_ifs
7965      ;;
7966    esac
7967else
7968  enable_static=yes
7969fi
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980# Check whether --with-pic was given.
7981if test "${with_pic+set}" = set; then :
7982  withval=$with_pic; lt_p=${PACKAGE-default}
7983    case $withval in
7984    yes|no) pic_mode=$withval ;;
7985    *)
7986      pic_mode=default
7987      # Look at the argument we got.  We use all the common list separators.
7988      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7989      for lt_pkg in $withval; do
7990	IFS=$lt_save_ifs
7991	if test "X$lt_pkg" = "X$lt_p"; then
7992	  pic_mode=yes
7993	fi
7994      done
7995      IFS=$lt_save_ifs
7996      ;;
7997    esac
7998else
7999  pic_mode=default
8000fi
8001
8002
8003
8004
8005
8006
8007
8008
8009  # Check whether --enable-fast-install was given.
8010if test "${enable_fast_install+set}" = set; then :
8011  enableval=$enable_fast_install; p=${PACKAGE-default}
8012    case $enableval in
8013    yes) enable_fast_install=yes ;;
8014    no) enable_fast_install=no ;;
8015    *)
8016      enable_fast_install=no
8017      # Look at the argument we got.  We use all the common list separators.
8018      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8019      for pkg in $enableval; do
8020	IFS=$lt_save_ifs
8021	if test "X$pkg" = "X$p"; then
8022	  enable_fast_install=yes
8023	fi
8024      done
8025      IFS=$lt_save_ifs
8026      ;;
8027    esac
8028else
8029  enable_fast_install=yes
8030fi
8031
8032
8033
8034
8035
8036
8037
8038
8039  shared_archive_member_spec=
8040case $host,$enable_shared in
8041power*-*-aix[5-9]*,yes)
8042  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8043$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8044
8045# Check whether --with-aix-soname was given.
8046if test "${with_aix_soname+set}" = set; then :
8047  withval=$with_aix_soname; case $withval in
8048    aix|svr4|both)
8049      ;;
8050    *)
8051      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8052      ;;
8053    esac
8054    lt_cv_with_aix_soname=$with_aix_soname
8055else
8056  if ${lt_cv_with_aix_soname+:} false; then :
8057  $as_echo_n "(cached) " >&6
8058else
8059  lt_cv_with_aix_soname=aix
8060fi
8061
8062    with_aix_soname=$lt_cv_with_aix_soname
8063fi
8064
8065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8066$as_echo "$with_aix_soname" >&6; }
8067  if test aix != "$with_aix_soname"; then
8068    # For the AIX way of multilib, we name the shared archive member
8069    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8070    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8071    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8072    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8073    if test 64 = "${OBJECT_MODE-32}"; then
8074      shared_archive_member_spec=shr_64
8075    else
8076      shared_archive_member_spec=shr
8077    fi
8078  fi
8079  ;;
8080*)
8081  with_aix_soname=aix
8082  ;;
8083esac
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094# This can be used to rebuild libtool when needed
8095LIBTOOL_DEPS=$ltmain
8096
8097# Always use our own libtool.
8098LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129test -z "$LN_S" && LN_S="ln -s"
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144if test -n "${ZSH_VERSION+set}"; then
8145   setopt NO_GLOB_SUBST
8146fi
8147
8148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8149$as_echo_n "checking for objdir... " >&6; }
8150if ${lt_cv_objdir+:} false; then :
8151  $as_echo_n "(cached) " >&6
8152else
8153  rm -f .libs 2>/dev/null
8154mkdir .libs 2>/dev/null
8155if test -d .libs; then
8156  lt_cv_objdir=.libs
8157else
8158  # MS-DOS does not allow filenames that begin with a dot.
8159  lt_cv_objdir=_libs
8160fi
8161rmdir .libs 2>/dev/null
8162fi
8163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8164$as_echo "$lt_cv_objdir" >&6; }
8165objdir=$lt_cv_objdir
8166
8167
8168
8169
8170
8171cat >>confdefs.h <<_ACEOF
8172#define LT_OBJDIR "$lt_cv_objdir/"
8173_ACEOF
8174
8175
8176
8177
8178case $host_os in
8179aix3*)
8180  # AIX sometimes has problems with the GCC collect2 program.  For some
8181  # reason, if we set the COLLECT_NAMES environment variable, the problems
8182  # vanish in a puff of smoke.
8183  if test set != "${COLLECT_NAMES+set}"; then
8184    COLLECT_NAMES=
8185    export COLLECT_NAMES
8186  fi
8187  ;;
8188esac
8189
8190# Global variables:
8191ofile=libtool
8192can_build_shared=yes
8193
8194# All known linkers require a '.a' archive for static linking (except MSVC,
8195# which needs '.lib').
8196libext=a
8197
8198with_gnu_ld=$lt_cv_prog_gnu_ld
8199
8200old_CC=$CC
8201old_CFLAGS=$CFLAGS
8202
8203# Set sane defaults for various variables
8204test -z "$CC" && CC=cc
8205test -z "$LTCC" && LTCC=$CC
8206test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8207test -z "$LD" && LD=ld
8208test -z "$ac_objext" && ac_objext=o
8209
8210func_cc_basename $compiler
8211cc_basename=$func_cc_basename_result
8212
8213
8214# Only perform the check for file, if the check method requires it
8215test -z "$MAGIC_CMD" && MAGIC_CMD=file
8216case $deplibs_check_method in
8217file_magic*)
8218  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8219    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8220$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8221if ${lt_cv_path_MAGIC_CMD+:} false; then :
8222  $as_echo_n "(cached) " >&6
8223else
8224  case $MAGIC_CMD in
8225[\\/*] |  ?:[\\/]*)
8226  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8227  ;;
8228*)
8229  lt_save_MAGIC_CMD=$MAGIC_CMD
8230  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8231  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8232  for ac_dir in $ac_dummy; do
8233    IFS=$lt_save_ifs
8234    test -z "$ac_dir" && ac_dir=.
8235    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8236      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8237      if test -n "$file_magic_test_file"; then
8238	case $deplibs_check_method in
8239	"file_magic "*)
8240	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8241	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8242	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8243	    $EGREP "$file_magic_regex" > /dev/null; then
8244	    :
8245	  else
8246	    cat <<_LT_EOF 1>&2
8247
8248*** Warning: the command libtool uses to detect shared libraries,
8249*** $file_magic_cmd, produces output that libtool cannot recognize.
8250*** The result is that libtool may fail to recognize shared libraries
8251*** as such.  This will affect the creation of libtool libraries that
8252*** depend on shared libraries, but programs linked with such libtool
8253*** libraries will work regardless of this problem.  Nevertheless, you
8254*** may want to report the problem to your system manager and/or to
8255*** bug-libtool@gnu.org
8256
8257_LT_EOF
8258	  fi ;;
8259	esac
8260      fi
8261      break
8262    fi
8263  done
8264  IFS=$lt_save_ifs
8265  MAGIC_CMD=$lt_save_MAGIC_CMD
8266  ;;
8267esac
8268fi
8269
8270MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8271if test -n "$MAGIC_CMD"; then
8272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8273$as_echo "$MAGIC_CMD" >&6; }
8274else
8275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8276$as_echo "no" >&6; }
8277fi
8278
8279
8280
8281
8282
8283if test -z "$lt_cv_path_MAGIC_CMD"; then
8284  if test -n "$ac_tool_prefix"; then
8285    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8286$as_echo_n "checking for file... " >&6; }
8287if ${lt_cv_path_MAGIC_CMD+:} false; then :
8288  $as_echo_n "(cached) " >&6
8289else
8290  case $MAGIC_CMD in
8291[\\/*] |  ?:[\\/]*)
8292  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8293  ;;
8294*)
8295  lt_save_MAGIC_CMD=$MAGIC_CMD
8296  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8297  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8298  for ac_dir in $ac_dummy; do
8299    IFS=$lt_save_ifs
8300    test -z "$ac_dir" && ac_dir=.
8301    if test -f "$ac_dir/file"; then
8302      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8303      if test -n "$file_magic_test_file"; then
8304	case $deplibs_check_method in
8305	"file_magic "*)
8306	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8307	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8308	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8309	    $EGREP "$file_magic_regex" > /dev/null; then
8310	    :
8311	  else
8312	    cat <<_LT_EOF 1>&2
8313
8314*** Warning: the command libtool uses to detect shared libraries,
8315*** $file_magic_cmd, produces output that libtool cannot recognize.
8316*** The result is that libtool may fail to recognize shared libraries
8317*** as such.  This will affect the creation of libtool libraries that
8318*** depend on shared libraries, but programs linked with such libtool
8319*** libraries will work regardless of this problem.  Nevertheless, you
8320*** may want to report the problem to your system manager and/or to
8321*** bug-libtool@gnu.org
8322
8323_LT_EOF
8324	  fi ;;
8325	esac
8326      fi
8327      break
8328    fi
8329  done
8330  IFS=$lt_save_ifs
8331  MAGIC_CMD=$lt_save_MAGIC_CMD
8332  ;;
8333esac
8334fi
8335
8336MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8337if test -n "$MAGIC_CMD"; then
8338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8339$as_echo "$MAGIC_CMD" >&6; }
8340else
8341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8342$as_echo "no" >&6; }
8343fi
8344
8345
8346  else
8347    MAGIC_CMD=:
8348  fi
8349fi
8350
8351  fi
8352  ;;
8353esac
8354
8355# Use C for the default configuration in the libtool script
8356
8357lt_save_CC=$CC
8358ac_ext=c
8359ac_cpp='$CPP $CPPFLAGS'
8360ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8361ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8362ac_compiler_gnu=$ac_cv_c_compiler_gnu
8363
8364
8365# Source file extension for C test sources.
8366ac_ext=c
8367
8368# Object file extension for compiled C test sources.
8369objext=o
8370objext=$objext
8371
8372# Code to be used in simple compile tests
8373lt_simple_compile_test_code="int some_variable = 0;"
8374
8375# Code to be used in simple link tests
8376lt_simple_link_test_code='int main(){return(0);}'
8377
8378
8379
8380
8381
8382
8383
8384# If no C compiler was specified, use CC.
8385LTCC=${LTCC-"$CC"}
8386
8387# If no C compiler flags were specified, use CFLAGS.
8388LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8389
8390# Allow CC to be a program name with arguments.
8391compiler=$CC
8392
8393# Save the default compiler, since it gets overwritten when the other
8394# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8395compiler_DEFAULT=$CC
8396
8397# save warnings/boilerplate of simple test code
8398ac_outfile=conftest.$ac_objext
8399echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8400eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8401_lt_compiler_boilerplate=`cat conftest.err`
8402$RM -r conftest*
8403
8404ac_outfile=conftest.$ac_objext
8405echo "$lt_simple_link_test_code" >conftest.$ac_ext
8406eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8407_lt_linker_boilerplate=`cat conftest.err`
8408$RM -r conftest*
8409
8410
8411## CAVEAT EMPTOR:
8412## There is no encapsulation within the following macros, do not change
8413## the running order or otherwise move them around unless you know exactly
8414## what you are doing...
8415if test -n "$compiler"; then
8416
8417lt_prog_compiler_no_builtin_flag=
8418
8419if test yes = "$GCC"; then
8420  case $cc_basename in
8421  nvcc*)
8422    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8423  *)
8424    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8425  esac
8426
8427  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8428$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8429if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8430  $as_echo_n "(cached) " >&6
8431else
8432  lt_cv_prog_compiler_rtti_exceptions=no
8433   ac_outfile=conftest.$ac_objext
8434   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8435   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8436   # Insert the option either (1) after the last *FLAGS variable, or
8437   # (2) before a word containing "conftest.", or (3) at the end.
8438   # Note that $ac_compile itself does not contain backslashes and begins
8439   # with a dollar sign (not a hyphen), so the echo should work correctly.
8440   # The option is referenced via a variable to avoid confusing sed.
8441   lt_compile=`echo "$ac_compile" | $SED \
8442   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8443   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8444   -e 's:$: $lt_compiler_flag:'`
8445   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8446   (eval "$lt_compile" 2>conftest.err)
8447   ac_status=$?
8448   cat conftest.err >&5
8449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450   if (exit $ac_status) && test -s "$ac_outfile"; then
8451     # The compiler can only warn and ignore the option if not recognized
8452     # So say no if there are warnings other than the usual output.
8453     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8454     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8455     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8456       lt_cv_prog_compiler_rtti_exceptions=yes
8457     fi
8458   fi
8459   $RM -r conftest*
8460
8461fi
8462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8463$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8464
8465if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8466    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8467else
8468    :
8469fi
8470
8471fi
8472
8473
8474
8475
8476
8477
8478  lt_prog_compiler_wl=
8479lt_prog_compiler_pic=
8480lt_prog_compiler_static=
8481
8482
8483  if test yes = "$GCC"; then
8484    lt_prog_compiler_wl='-Wl,'
8485    lt_prog_compiler_static='-static'
8486
8487    case $host_os in
8488      aix*)
8489      # All AIX code is PIC.
8490      if test ia64 = "$host_cpu"; then
8491	# AIX 5 now supports IA64 processor
8492	lt_prog_compiler_static='-Bstatic'
8493      fi
8494      lt_prog_compiler_pic='-fPIC'
8495      ;;
8496
8497    amigaos*)
8498      case $host_cpu in
8499      powerpc)
8500            # see comment about AmigaOS4 .so support
8501            lt_prog_compiler_pic='-fPIC'
8502        ;;
8503      m68k)
8504            # FIXME: we need at least 68020 code to build shared libraries, but
8505            # adding the '-m68020' flag to GCC prevents building anything better,
8506            # like '-m68040'.
8507            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8508        ;;
8509      esac
8510      ;;
8511
8512    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8513      # PIC is the default for these OSes.
8514      ;;
8515
8516    mingw* | cygwin* | pw32* | os2* | cegcc*)
8517      # This hack is so that the source file can tell whether it is being
8518      # built for inclusion in a dll (and should export symbols for example).
8519      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8520      # (--disable-auto-import) libraries
8521      lt_prog_compiler_pic='-DDLL_EXPORT'
8522      case $host_os in
8523      os2*)
8524	lt_prog_compiler_static='$wl-static'
8525	;;
8526      esac
8527      ;;
8528
8529    darwin* | rhapsody*)
8530      # PIC is the default on this platform
8531      # Common symbols not allowed in MH_DYLIB files
8532      lt_prog_compiler_pic='-fno-common'
8533      ;;
8534
8535    haiku*)
8536      # PIC is the default for Haiku.
8537      # The "-static" flag exists, but is broken.
8538      lt_prog_compiler_static=
8539      ;;
8540
8541    hpux*)
8542      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8543      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8544      # sets the default TLS model and affects inlining.
8545      case $host_cpu in
8546      hppa*64*)
8547	# +Z the default
8548	;;
8549      *)
8550	lt_prog_compiler_pic='-fPIC'
8551	;;
8552      esac
8553      ;;
8554
8555    interix[3-9]*)
8556      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8557      # Instead, we relocate shared libraries at runtime.
8558      ;;
8559
8560    msdosdjgpp*)
8561      # Just because we use GCC doesn't mean we suddenly get shared libraries
8562      # on systems that don't support them.
8563      lt_prog_compiler_can_build_shared=no
8564      enable_shared=no
8565      ;;
8566
8567    *nto* | *qnx*)
8568      # QNX uses GNU C++, but need to define -shared option too, otherwise
8569      # it will coredump.
8570      lt_prog_compiler_pic='-fPIC -shared'
8571      ;;
8572
8573    sysv4*MP*)
8574      if test -d /usr/nec; then
8575	lt_prog_compiler_pic=-Kconform_pic
8576      fi
8577      ;;
8578
8579    *)
8580      lt_prog_compiler_pic='-fPIC'
8581      ;;
8582    esac
8583
8584    case $cc_basename in
8585    nvcc*) # Cuda Compiler Driver 2.2
8586      lt_prog_compiler_wl='-Xlinker '
8587      if test -n "$lt_prog_compiler_pic"; then
8588        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8589      fi
8590      ;;
8591    esac
8592  else
8593    # PORTME Check for flag to pass linker flags through the system compiler.
8594    case $host_os in
8595    aix*)
8596      lt_prog_compiler_wl='-Wl,'
8597      if test ia64 = "$host_cpu"; then
8598	# AIX 5 now supports IA64 processor
8599	lt_prog_compiler_static='-Bstatic'
8600      else
8601	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8602      fi
8603      ;;
8604
8605    darwin* | rhapsody*)
8606      # PIC is the default on this platform
8607      # Common symbols not allowed in MH_DYLIB files
8608      lt_prog_compiler_pic='-fno-common'
8609      case $cc_basename in
8610      nagfor*)
8611        # NAG Fortran compiler
8612        lt_prog_compiler_wl='-Wl,-Wl,,'
8613        lt_prog_compiler_pic='-PIC'
8614        lt_prog_compiler_static='-Bstatic'
8615        ;;
8616      esac
8617      ;;
8618
8619    mingw* | cygwin* | pw32* | os2* | cegcc*)
8620      # This hack is so that the source file can tell whether it is being
8621      # built for inclusion in a dll (and should export symbols for example).
8622      lt_prog_compiler_pic='-DDLL_EXPORT'
8623      case $host_os in
8624      os2*)
8625	lt_prog_compiler_static='$wl-static'
8626	;;
8627      esac
8628      ;;
8629
8630    hpux9* | hpux10* | hpux11*)
8631      lt_prog_compiler_wl='-Wl,'
8632      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8633      # not for PA HP-UX.
8634      case $host_cpu in
8635      hppa*64*|ia64*)
8636	# +Z the default
8637	;;
8638      *)
8639	lt_prog_compiler_pic='+Z'
8640	;;
8641      esac
8642      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8643      lt_prog_compiler_static='$wl-a ${wl}archive'
8644      ;;
8645
8646    irix5* | irix6* | nonstopux*)
8647      lt_prog_compiler_wl='-Wl,'
8648      # PIC (with -KPIC) is the default.
8649      lt_prog_compiler_static='-non_shared'
8650      ;;
8651
8652    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8653      case $cc_basename in
8654      # old Intel for x86_64, which still supported -KPIC.
8655      ecc*)
8656	lt_prog_compiler_wl='-Wl,'
8657	lt_prog_compiler_pic='-KPIC'
8658	lt_prog_compiler_static='-static'
8659        ;;
8660      # icc used to be incompatible with GCC.
8661      # ICC 10 doesn't accept -KPIC any more.
8662      icc* | ifort*)
8663	lt_prog_compiler_wl='-Wl,'
8664	lt_prog_compiler_pic='-fPIC'
8665	lt_prog_compiler_static='-static'
8666        ;;
8667      # Lahey Fortran 8.1.
8668      lf95*)
8669	lt_prog_compiler_wl='-Wl,'
8670	lt_prog_compiler_pic='--shared'
8671	lt_prog_compiler_static='--static'
8672	;;
8673      nagfor*)
8674	# NAG Fortran compiler
8675	lt_prog_compiler_wl='-Wl,-Wl,,'
8676	lt_prog_compiler_pic='-PIC'
8677	lt_prog_compiler_static='-Bstatic'
8678	;;
8679      tcc*)
8680	# Fabrice Bellard et al's Tiny C Compiler
8681	lt_prog_compiler_wl='-Wl,'
8682	lt_prog_compiler_pic='-fPIC'
8683	lt_prog_compiler_static='-static'
8684	;;
8685      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8686        # Portland Group compilers (*not* the Pentium gcc compiler,
8687	# which looks to be a dead project)
8688	lt_prog_compiler_wl='-Wl,'
8689	lt_prog_compiler_pic='-fpic'
8690	lt_prog_compiler_static='-Bstatic'
8691        ;;
8692      ccc*)
8693        lt_prog_compiler_wl='-Wl,'
8694        # All Alpha code is PIC.
8695        lt_prog_compiler_static='-non_shared'
8696        ;;
8697      xl* | bgxl* | bgf* | mpixl*)
8698	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8699	lt_prog_compiler_wl='-Wl,'
8700	lt_prog_compiler_pic='-qpic'
8701	lt_prog_compiler_static='-qstaticlink'
8702	;;
8703      *)
8704	case `$CC -V 2>&1 | sed 5q` in
8705	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8706	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8707	  lt_prog_compiler_pic='-KPIC'
8708	  lt_prog_compiler_static='-Bstatic'
8709	  lt_prog_compiler_wl=''
8710	  ;;
8711	*Sun\ F* | *Sun*Fortran*)
8712	  lt_prog_compiler_pic='-KPIC'
8713	  lt_prog_compiler_static='-Bstatic'
8714	  lt_prog_compiler_wl='-Qoption ld '
8715	  ;;
8716	*Sun\ C*)
8717	  # Sun C 5.9
8718	  lt_prog_compiler_pic='-KPIC'
8719	  lt_prog_compiler_static='-Bstatic'
8720	  lt_prog_compiler_wl='-Wl,'
8721	  ;;
8722        *Intel*\ [CF]*Compiler*)
8723	  lt_prog_compiler_wl='-Wl,'
8724	  lt_prog_compiler_pic='-fPIC'
8725	  lt_prog_compiler_static='-static'
8726	  ;;
8727	*Portland\ Group*)
8728	  lt_prog_compiler_wl='-Wl,'
8729	  lt_prog_compiler_pic='-fpic'
8730	  lt_prog_compiler_static='-Bstatic'
8731	  ;;
8732	esac
8733	;;
8734      esac
8735      ;;
8736
8737    newsos6)
8738      lt_prog_compiler_pic='-KPIC'
8739      lt_prog_compiler_static='-Bstatic'
8740      ;;
8741
8742    *nto* | *qnx*)
8743      # QNX uses GNU C++, but need to define -shared option too, otherwise
8744      # it will coredump.
8745      lt_prog_compiler_pic='-fPIC -shared'
8746      ;;
8747
8748    osf3* | osf4* | osf5*)
8749      lt_prog_compiler_wl='-Wl,'
8750      # All OSF/1 code is PIC.
8751      lt_prog_compiler_static='-non_shared'
8752      ;;
8753
8754    rdos*)
8755      lt_prog_compiler_static='-non_shared'
8756      ;;
8757
8758    solaris*)
8759      lt_prog_compiler_pic='-KPIC'
8760      lt_prog_compiler_static='-Bstatic'
8761      case $cc_basename in
8762      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8763	lt_prog_compiler_wl='-Qoption ld ';;
8764      *)
8765	lt_prog_compiler_wl='-Wl,';;
8766      esac
8767      ;;
8768
8769    sunos4*)
8770      lt_prog_compiler_wl='-Qoption ld '
8771      lt_prog_compiler_pic='-PIC'
8772      lt_prog_compiler_static='-Bstatic'
8773      ;;
8774
8775    sysv4 | sysv4.2uw2* | sysv4.3*)
8776      lt_prog_compiler_wl='-Wl,'
8777      lt_prog_compiler_pic='-KPIC'
8778      lt_prog_compiler_static='-Bstatic'
8779      ;;
8780
8781    sysv4*MP*)
8782      if test -d /usr/nec; then
8783	lt_prog_compiler_pic='-Kconform_pic'
8784	lt_prog_compiler_static='-Bstatic'
8785      fi
8786      ;;
8787
8788    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8789      lt_prog_compiler_wl='-Wl,'
8790      lt_prog_compiler_pic='-KPIC'
8791      lt_prog_compiler_static='-Bstatic'
8792      ;;
8793
8794    unicos*)
8795      lt_prog_compiler_wl='-Wl,'
8796      lt_prog_compiler_can_build_shared=no
8797      ;;
8798
8799    uts4*)
8800      lt_prog_compiler_pic='-pic'
8801      lt_prog_compiler_static='-Bstatic'
8802      ;;
8803
8804    *)
8805      lt_prog_compiler_can_build_shared=no
8806      ;;
8807    esac
8808  fi
8809
8810case $host_os in
8811  # For platforms that do not support PIC, -DPIC is meaningless:
8812  *djgpp*)
8813    lt_prog_compiler_pic=
8814    ;;
8815  *)
8816    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8817    ;;
8818esac
8819
8820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8821$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8822if ${lt_cv_prog_compiler_pic+:} false; then :
8823  $as_echo_n "(cached) " >&6
8824else
8825  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8826fi
8827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8828$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8829lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8830
8831#
8832# Check to make sure the PIC flag actually works.
8833#
8834if test -n "$lt_prog_compiler_pic"; then
8835  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8836$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8837if ${lt_cv_prog_compiler_pic_works+:} false; then :
8838  $as_echo_n "(cached) " >&6
8839else
8840  lt_cv_prog_compiler_pic_works=no
8841   ac_outfile=conftest.$ac_objext
8842   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8843   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
8844   # Insert the option either (1) after the last *FLAGS variable, or
8845   # (2) before a word containing "conftest.", or (3) at the end.
8846   # Note that $ac_compile itself does not contain backslashes and begins
8847   # with a dollar sign (not a hyphen), so the echo should work correctly.
8848   # The option is referenced via a variable to avoid confusing sed.
8849   lt_compile=`echo "$ac_compile" | $SED \
8850   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8851   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8852   -e 's:$: $lt_compiler_flag:'`
8853   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8854   (eval "$lt_compile" 2>conftest.err)
8855   ac_status=$?
8856   cat conftest.err >&5
8857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858   if (exit $ac_status) && test -s "$ac_outfile"; then
8859     # The compiler can only warn and ignore the option if not recognized
8860     # So say no if there are warnings other than the usual output.
8861     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8862     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8863     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8864       lt_cv_prog_compiler_pic_works=yes
8865     fi
8866   fi
8867   $RM -r conftest*
8868
8869fi
8870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8871$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8872
8873if test yes = "$lt_cv_prog_compiler_pic_works"; then
8874    case $lt_prog_compiler_pic in
8875     "" | " "*) ;;
8876     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8877     esac
8878else
8879    lt_prog_compiler_pic=
8880     lt_prog_compiler_can_build_shared=no
8881fi
8882
8883fi
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895#
8896# Check to make sure the static flag actually works.
8897#
8898wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8900$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8901if ${lt_cv_prog_compiler_static_works+:} false; then :
8902  $as_echo_n "(cached) " >&6
8903else
8904  lt_cv_prog_compiler_static_works=no
8905   save_LDFLAGS=$LDFLAGS
8906   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8907   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8908   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8909     # The linker can only warn and ignore the option if not recognized
8910     # So say no if there are warnings
8911     if test -s conftest.err; then
8912       # Append any errors to the config.log.
8913       cat conftest.err 1>&5
8914       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8915       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8916       if diff conftest.exp conftest.er2 >/dev/null; then
8917         lt_cv_prog_compiler_static_works=yes
8918       fi
8919     else
8920       lt_cv_prog_compiler_static_works=yes
8921     fi
8922   fi
8923   $RM -r conftest*
8924   LDFLAGS=$save_LDFLAGS
8925
8926fi
8927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8928$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8929
8930if test yes = "$lt_cv_prog_compiler_static_works"; then
8931    :
8932else
8933    lt_prog_compiler_static=
8934fi
8935
8936
8937
8938
8939
8940
8941
8942  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8943$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8944if ${lt_cv_prog_compiler_c_o+:} false; then :
8945  $as_echo_n "(cached) " >&6
8946else
8947  lt_cv_prog_compiler_c_o=no
8948   $RM -r conftest 2>/dev/null
8949   mkdir conftest
8950   cd conftest
8951   mkdir out
8952   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8953
8954   lt_compiler_flag="-o out/conftest2.$ac_objext"
8955   # Insert the option either (1) after the last *FLAGS variable, or
8956   # (2) before a word containing "conftest.", or (3) at the end.
8957   # Note that $ac_compile itself does not contain backslashes and begins
8958   # with a dollar sign (not a hyphen), so the echo should work correctly.
8959   lt_compile=`echo "$ac_compile" | $SED \
8960   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8961   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8962   -e 's:$: $lt_compiler_flag:'`
8963   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8964   (eval "$lt_compile" 2>out/conftest.err)
8965   ac_status=$?
8966   cat out/conftest.err >&5
8967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8969   then
8970     # The compiler can only warn and ignore the option if not recognized
8971     # So say no if there are warnings
8972     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8973     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8974     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8975       lt_cv_prog_compiler_c_o=yes
8976     fi
8977   fi
8978   chmod u+w . 2>&5
8979   $RM -r conftest*
8980   # SGI C++ compiler will create directory out/ii_files/ for
8981   # template instantiation
8982   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8983   $RM out/* && rmdir out
8984   cd ..
8985   $RM -r conftest
8986   $RM -r conftest*
8987
8988fi
8989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8990$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8991
8992
8993
8994
8995
8996
8997  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8998$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8999if ${lt_cv_prog_compiler_c_o+:} false; then :
9000  $as_echo_n "(cached) " >&6
9001else
9002  lt_cv_prog_compiler_c_o=no
9003   $RM -r conftest 2>/dev/null
9004   mkdir conftest
9005   cd conftest
9006   mkdir out
9007   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9008
9009   lt_compiler_flag="-o out/conftest2.$ac_objext"
9010   # Insert the option either (1) after the last *FLAGS variable, or
9011   # (2) before a word containing "conftest.", or (3) at the end.
9012   # Note that $ac_compile itself does not contain backslashes and begins
9013   # with a dollar sign (not a hyphen), so the echo should work correctly.
9014   lt_compile=`echo "$ac_compile" | $SED \
9015   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9016   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9017   -e 's:$: $lt_compiler_flag:'`
9018   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9019   (eval "$lt_compile" 2>out/conftest.err)
9020   ac_status=$?
9021   cat out/conftest.err >&5
9022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9024   then
9025     # The compiler can only warn and ignore the option if not recognized
9026     # So say no if there are warnings
9027     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9028     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9029     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9030       lt_cv_prog_compiler_c_o=yes
9031     fi
9032   fi
9033   chmod u+w . 2>&5
9034   $RM -r conftest*
9035   # SGI C++ compiler will create directory out/ii_files/ for
9036   # template instantiation
9037   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9038   $RM out/* && rmdir out
9039   cd ..
9040   $RM -r conftest
9041   $RM -r conftest*
9042
9043fi
9044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9045$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9046
9047
9048
9049
9050hard_links=nottested
9051if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9052  # do not overwrite the value of need_locks provided by the user
9053  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9054$as_echo_n "checking if we can lock with hard links... " >&6; }
9055  hard_links=yes
9056  $RM -r conftest*
9057  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9058  touch conftest.a
9059  ln conftest.a conftest.b 2>&5 || hard_links=no
9060  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9061  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9062$as_echo "$hard_links" >&6; }
9063  if test no = "$hard_links"; then
9064    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9065$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9066    need_locks=warn
9067  fi
9068else
9069  need_locks=no
9070fi
9071
9072
9073
9074
9075
9076
9077  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9078$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9079
9080  runpath_var=
9081  allow_undefined_flag=
9082  always_export_symbols=no
9083  archive_cmds=
9084  archive_expsym_cmds=
9085  compiler_needs_object=no
9086  enable_shared_with_static_runtimes=no
9087  export_dynamic_flag_spec=
9088  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9089  hardcode_automatic=no
9090  hardcode_direct=no
9091  hardcode_direct_absolute=no
9092  hardcode_libdir_flag_spec=
9093  hardcode_libdir_separator=
9094  hardcode_minus_L=no
9095  hardcode_shlibpath_var=unsupported
9096  inherit_rpath=no
9097  link_all_deplibs=unknown
9098  module_cmds=
9099  module_expsym_cmds=
9100  old_archive_from_new_cmds=
9101  old_archive_from_expsyms_cmds=
9102  thread_safe_flag_spec=
9103  whole_archive_flag_spec=
9104  # include_expsyms should be a list of space-separated symbols to be *always*
9105  # included in the symbol list
9106  include_expsyms=
9107  # exclude_expsyms can be an extended regexp of symbols to exclude
9108  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9109  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9110  # as well as any symbol that contains 'd'.
9111  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9112  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9113  # platforms (ab)use it in PIC code, but their linkers get confused if
9114  # the symbol is explicitly referenced.  Since portable code cannot
9115  # rely on this symbol name, it's probably fine to never include it in
9116  # preloaded symbol tables.
9117  # Exclude shared library initialization/finalization symbols.
9118  extract_expsyms_cmds=
9119
9120  case $host_os in
9121  cygwin* | mingw* | pw32* | cegcc*)
9122    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9123    # When not using gcc, we currently assume that we are using
9124    # Microsoft Visual C++.
9125    if test yes != "$GCC"; then
9126      with_gnu_ld=no
9127    fi
9128    ;;
9129  interix*)
9130    # we just hope/assume this is gcc and not c89 (= MSVC++)
9131    with_gnu_ld=yes
9132    ;;
9133  openbsd* | bitrig*)
9134    with_gnu_ld=no
9135    ;;
9136  esac
9137
9138  ld_shlibs=yes
9139
9140  # On some targets, GNU ld is compatible enough with the native linker
9141  # that we're better off using the native interface for both.
9142  lt_use_gnu_ld_interface=no
9143  if test yes = "$with_gnu_ld"; then
9144    case $host_os in
9145      aix*)
9146	# The AIX port of GNU ld has always aspired to compatibility
9147	# with the native linker.  However, as the warning in the GNU ld
9148	# block says, versions before 2.19.5* couldn't really create working
9149	# shared libraries, regardless of the interface used.
9150	case `$LD -v 2>&1` in
9151	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9152	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9153	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9154	  *)
9155	    lt_use_gnu_ld_interface=yes
9156	    ;;
9157	esac
9158	;;
9159      *)
9160	lt_use_gnu_ld_interface=yes
9161	;;
9162    esac
9163  fi
9164
9165  if test yes = "$lt_use_gnu_ld_interface"; then
9166    # If archive_cmds runs LD, not CC, wlarc should be empty
9167    wlarc='$wl'
9168
9169    # Set some defaults for GNU ld with shared library support. These
9170    # are reset later if shared libraries are not supported. Putting them
9171    # here allows them to be overridden if necessary.
9172    runpath_var=LD_RUN_PATH
9173    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9174    export_dynamic_flag_spec='$wl--export-dynamic'
9175    # ancient GNU ld didn't support --whole-archive et. al.
9176    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9177      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9178    else
9179      whole_archive_flag_spec=
9180    fi
9181    supports_anon_versioning=no
9182    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9183      *GNU\ gold*) supports_anon_versioning=yes ;;
9184      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9185      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9186      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9187      *\ 2.11.*) ;; # other 2.11 versions
9188      *) supports_anon_versioning=yes ;;
9189    esac
9190
9191    # See if GNU ld supports shared libraries.
9192    case $host_os in
9193    aix[3-9]*)
9194      # On AIX/PPC, the GNU linker is very broken
9195      if test ia64 != "$host_cpu"; then
9196	ld_shlibs=no
9197	cat <<_LT_EOF 1>&2
9198
9199*** Warning: the GNU linker, at least up to release 2.19, is reported
9200*** to be unable to reliably create shared libraries on AIX.
9201*** Therefore, libtool is disabling shared libraries support.  If you
9202*** really care for shared libraries, you may want to install binutils
9203*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9204*** You will then need to restart the configuration process.
9205
9206_LT_EOF
9207      fi
9208      ;;
9209
9210    amigaos*)
9211      case $host_cpu in
9212      powerpc)
9213            # see comment about AmigaOS4 .so support
9214            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9215            archive_expsym_cmds=''
9216        ;;
9217      m68k)
9218            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)'
9219            hardcode_libdir_flag_spec='-L$libdir'
9220            hardcode_minus_L=yes
9221        ;;
9222      esac
9223      ;;
9224
9225    beos*)
9226      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9227	allow_undefined_flag=unsupported
9228	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9229	# support --undefined.  This deserves some investigation.  FIXME
9230	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9231      else
9232	ld_shlibs=no
9233      fi
9234      ;;
9235
9236    cygwin* | mingw* | pw32* | cegcc*)
9237      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9238      # as there is no search path for DLLs.
9239      hardcode_libdir_flag_spec='-L$libdir'
9240      export_dynamic_flag_spec='$wl--export-all-symbols'
9241      allow_undefined_flag=unsupported
9242      always_export_symbols=no
9243      enable_shared_with_static_runtimes=yes
9244      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'
9245      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9246
9247      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9248        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9249	# If the export-symbols file already is a .def file, use it as
9250	# is; otherwise, prepend EXPORTS...
9251	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9252          cp $export_symbols $output_objdir/$soname.def;
9253        else
9254          echo EXPORTS > $output_objdir/$soname.def;
9255          cat $export_symbols >> $output_objdir/$soname.def;
9256        fi~
9257        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9258      else
9259	ld_shlibs=no
9260      fi
9261      ;;
9262
9263    haiku*)
9264      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9265      link_all_deplibs=yes
9266      ;;
9267
9268    os2*)
9269      hardcode_libdir_flag_spec='-L$libdir'
9270      hardcode_minus_L=yes
9271      allow_undefined_flag=unsupported
9272      shrext_cmds=.dll
9273      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9274	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9275	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9276	$ECHO EXPORTS >> $output_objdir/$libname.def~
9277	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9278	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9279	emximp -o $lib $output_objdir/$libname.def'
9280      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9281	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9282	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9283	$ECHO EXPORTS >> $output_objdir/$libname.def~
9284	prefix_cmds="$SED"~
9285	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9286	  prefix_cmds="$prefix_cmds -e 1d";
9287	fi~
9288	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9289	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9290	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9291	emximp -o $lib $output_objdir/$libname.def'
9292      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9293      enable_shared_with_static_runtimes=yes
9294      ;;
9295
9296    interix[3-9]*)
9297      hardcode_direct=no
9298      hardcode_shlibpath_var=no
9299      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9300      export_dynamic_flag_spec='$wl-E'
9301      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9302      # Instead, shared libraries are loaded at an image base (0x10000000 by
9303      # default) and relocated if they conflict, which is a slow very memory
9304      # consuming and fragmenting process.  To avoid this, we pick a random,
9305      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9306      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9307      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9308      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'
9309      ;;
9310
9311    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9312      tmp_diet=no
9313      if test linux-dietlibc = "$host_os"; then
9314	case $cc_basename in
9315	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9316	esac
9317      fi
9318      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9319	 && test no = "$tmp_diet"
9320      then
9321	tmp_addflag=' $pic_flag'
9322	tmp_sharedflag='-shared'
9323	case $cc_basename,$host_cpu in
9324        pgcc*)				# Portland Group C compiler
9325	  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'
9326	  tmp_addflag=' $pic_flag'
9327	  ;;
9328	pgf77* | pgf90* | pgf95* | pgfortran*)
9329					# Portland Group f77 and f90 compilers
9330	  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'
9331	  tmp_addflag=' $pic_flag -Mnomain' ;;
9332	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9333	  tmp_addflag=' -i_dynamic' ;;
9334	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9335	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9336	ifc* | ifort*)			# Intel Fortran compiler
9337	  tmp_addflag=' -nofor_main' ;;
9338	lf95*)				# Lahey Fortran 8.1
9339	  whole_archive_flag_spec=
9340	  tmp_sharedflag='--shared' ;;
9341        nagfor*)                        # NAGFOR 5.3
9342          tmp_sharedflag='-Wl,-shared' ;;
9343	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9344	  tmp_sharedflag='-qmkshrobj'
9345	  tmp_addflag= ;;
9346	nvcc*)	# Cuda Compiler Driver 2.2
9347	  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'
9348	  compiler_needs_object=yes
9349	  ;;
9350	esac
9351	case `$CC -V 2>&1 | sed 5q` in
9352	*Sun\ C*)			# Sun C 5.9
9353	  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'
9354	  compiler_needs_object=yes
9355	  tmp_sharedflag='-G' ;;
9356	*Sun\ F*)			# Sun Fortran 8.3
9357	  tmp_sharedflag='-G' ;;
9358	esac
9359	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9360
9361        if test yes = "$supports_anon_versioning"; then
9362          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9363            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9364            echo "local: *; };" >> $output_objdir/$libname.ver~
9365            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9366        fi
9367
9368	case $cc_basename in
9369	tcc*)
9370	  export_dynamic_flag_spec='-rdynamic'
9371	  ;;
9372	xlf* | bgf* | bgxlf* | mpixlf*)
9373	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9374	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9375	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9376	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9377	  if test yes = "$supports_anon_versioning"; then
9378	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9379              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9380              echo "local: *; };" >> $output_objdir/$libname.ver~
9381              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9382	  fi
9383	  ;;
9384	esac
9385      else
9386        ld_shlibs=no
9387      fi
9388      ;;
9389
9390    netbsd*)
9391      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9392	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9393	wlarc=
9394      else
9395	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9396	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9397      fi
9398      ;;
9399
9400    solaris*)
9401      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9402	ld_shlibs=no
9403	cat <<_LT_EOF 1>&2
9404
9405*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9406*** create shared libraries on Solaris systems.  Therefore, libtool
9407*** is disabling shared libraries support.  We urge you to upgrade GNU
9408*** binutils to release 2.9.1 or newer.  Another option is to modify
9409*** your PATH or compiler configuration so that the native linker is
9410*** used, and then restart.
9411
9412_LT_EOF
9413      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9414	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9415	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9416      else
9417	ld_shlibs=no
9418      fi
9419      ;;
9420
9421    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9422      case `$LD -v 2>&1` in
9423        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9424	ld_shlibs=no
9425	cat <<_LT_EOF 1>&2
9426
9427*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9428*** reliably create shared libraries on SCO systems.  Therefore, libtool
9429*** is disabling shared libraries support.  We urge you to upgrade GNU
9430*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9431*** your PATH or compiler configuration so that the native linker is
9432*** used, and then restart.
9433
9434_LT_EOF
9435	;;
9436	*)
9437	  # For security reasons, it is highly recommended that you always
9438	  # use absolute paths for naming shared libraries, and exclude the
9439	  # DT_RUNPATH tag from executables and libraries.  But doing so
9440	  # requires that you compile everything twice, which is a pain.
9441	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9442	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9443	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9444	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9445	  else
9446	    ld_shlibs=no
9447	  fi
9448	;;
9449      esac
9450      ;;
9451
9452    sunos4*)
9453      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9454      wlarc=
9455      hardcode_direct=yes
9456      hardcode_shlibpath_var=no
9457      ;;
9458
9459    *)
9460      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9461	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9462	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9463      else
9464	ld_shlibs=no
9465      fi
9466      ;;
9467    esac
9468
9469    if test no = "$ld_shlibs"; then
9470      runpath_var=
9471      hardcode_libdir_flag_spec=
9472      export_dynamic_flag_spec=
9473      whole_archive_flag_spec=
9474    fi
9475  else
9476    # PORTME fill in a description of your system's linker (not GNU ld)
9477    case $host_os in
9478    aix3*)
9479      allow_undefined_flag=unsupported
9480      always_export_symbols=yes
9481      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'
9482      # Note: this linker hardcodes the directories in LIBPATH if there
9483      # are no directories specified by -L.
9484      hardcode_minus_L=yes
9485      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9486	# Neither direct hardcoding nor static linking is supported with a
9487	# broken collect2.
9488	hardcode_direct=unsupported
9489      fi
9490      ;;
9491
9492    aix[4-9]*)
9493      if test ia64 = "$host_cpu"; then
9494	# On IA64, the linker does run time linking by default, so we don't
9495	# have to do anything special.
9496	aix_use_runtimelinking=no
9497	exp_sym_flag='-Bexport'
9498	no_entry_flag=
9499      else
9500	# If we're using GNU nm, then we don't want the "-C" option.
9501	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9502	# Without the "-l" option, or with the "-B" option, AIX nm treats
9503	# weak defined symbols like other global defined symbols, whereas
9504	# GNU nm marks them as "W".
9505	# While the 'weak' keyword is ignored in the Export File, we need
9506	# it in the Import File for the 'aix-soname' feature, so we have
9507	# to replace the "-B" option with "-P" for AIX nm.
9508	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9509	  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'
9510	else
9511	  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'
9512	fi
9513	aix_use_runtimelinking=no
9514
9515	# Test if we are trying to use run time linking or normal
9516	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9517	# have runtime linking enabled, and use it for executables.
9518	# For shared libraries, we enable/disable runtime linking
9519	# depending on the kind of the shared library created -
9520	# when "with_aix_soname,aix_use_runtimelinking" is:
9521	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9522	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9523	#            lib.a           static archive
9524	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9525	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9526	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9527	#            lib.a(lib.so.V) shared, rtl:no
9528	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9529	#            lib.a           static archive
9530	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9531	  for ld_flag in $LDFLAGS; do
9532	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9533	    aix_use_runtimelinking=yes
9534	    break
9535	  fi
9536	  done
9537	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9538	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9539	    # so we don't have lib.a shared libs to link our executables.
9540	    # We have to force runtime linking in this case.
9541	    aix_use_runtimelinking=yes
9542	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9543	  fi
9544	  ;;
9545	esac
9546
9547	exp_sym_flag='-bexport'
9548	no_entry_flag='-bnoentry'
9549      fi
9550
9551      # When large executables or shared objects are built, AIX ld can
9552      # have problems creating the table of contents.  If linking a library
9553      # or program results in "error TOC overflow" add -mminimal-toc to
9554      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9555      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9556
9557      archive_cmds=''
9558      hardcode_direct=yes
9559      hardcode_direct_absolute=yes
9560      hardcode_libdir_separator=':'
9561      link_all_deplibs=yes
9562      file_list_spec='$wl-f,'
9563      case $with_aix_soname,$aix_use_runtimelinking in
9564      aix,*) ;; # traditional, no import file
9565      svr4,* | *,yes) # use import file
9566	# The Import File defines what to hardcode.
9567	hardcode_direct=no
9568	hardcode_direct_absolute=no
9569	;;
9570      esac
9571
9572      if test yes = "$GCC"; then
9573	case $host_os in aix4.[012]|aix4.[012].*)
9574	# We only want to do this on AIX 4.2 and lower, the check
9575	# below for broken collect2 doesn't work under 4.3+
9576	  collect2name=`$CC -print-prog-name=collect2`
9577	  if test -f "$collect2name" &&
9578	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9579	  then
9580	  # We have reworked collect2
9581	  :
9582	  else
9583	  # We have old collect2
9584	  hardcode_direct=unsupported
9585	  # It fails to find uninstalled libraries when the uninstalled
9586	  # path is not listed in the libpath.  Setting hardcode_minus_L
9587	  # to unsupported forces relinking
9588	  hardcode_minus_L=yes
9589	  hardcode_libdir_flag_spec='-L$libdir'
9590	  hardcode_libdir_separator=
9591	  fi
9592	  ;;
9593	esac
9594	shared_flag='-shared'
9595	if test yes = "$aix_use_runtimelinking"; then
9596	  shared_flag="$shared_flag "'$wl-G'
9597	fi
9598	# Need to ensure runtime linking is disabled for the traditional
9599	# shared library, or the linker may eventually find shared libraries
9600	# /with/ Import File - we do not want to mix them.
9601	shared_flag_aix='-shared'
9602	shared_flag_svr4='-shared $wl-G'
9603      else
9604	# not using gcc
9605	if test ia64 = "$host_cpu"; then
9606	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9607	# chokes on -Wl,-G. The following line is correct:
9608	  shared_flag='-G'
9609	else
9610	  if test yes = "$aix_use_runtimelinking"; then
9611	    shared_flag='$wl-G'
9612	  else
9613	    shared_flag='$wl-bM:SRE'
9614	  fi
9615	  shared_flag_aix='$wl-bM:SRE'
9616	  shared_flag_svr4='$wl-G'
9617	fi
9618      fi
9619
9620      export_dynamic_flag_spec='$wl-bexpall'
9621      # It seems that -bexpall does not export symbols beginning with
9622      # underscore (_), so it is better to generate a list of symbols to export.
9623      always_export_symbols=yes
9624      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9625	# Warning - without using the other runtime loading flags (-brtl),
9626	# -berok will link without error, but may produce a broken library.
9627	allow_undefined_flag='-berok'
9628        # Determine the default libpath from the value encoded in an
9629        # empty executable.
9630        if test set = "${lt_cv_aix_libpath+set}"; then
9631  aix_libpath=$lt_cv_aix_libpath
9632else
9633  if ${lt_cv_aix_libpath_+:} false; then :
9634  $as_echo_n "(cached) " >&6
9635else
9636  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9637/* end confdefs.h.  */
9638
9639int
9640main ()
9641{
9642
9643  ;
9644  return 0;
9645}
9646_ACEOF
9647if ac_fn_c_try_link "$LINENO"; then :
9648
9649  lt_aix_libpath_sed='
9650      /Import File Strings/,/^$/ {
9651	  /^0/ {
9652	      s/^0  *\([^ ]*\) *$/\1/
9653	      p
9654	  }
9655      }'
9656  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9657  # Check for a 64-bit object if we didn't find anything.
9658  if test -z "$lt_cv_aix_libpath_"; then
9659    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9660  fi
9661fi
9662rm -f core conftest.err conftest.$ac_objext \
9663    conftest$ac_exeext conftest.$ac_ext
9664  if test -z "$lt_cv_aix_libpath_"; then
9665    lt_cv_aix_libpath_=/usr/lib:/lib
9666  fi
9667
9668fi
9669
9670  aix_libpath=$lt_cv_aix_libpath_
9671fi
9672
9673        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9674        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
9675      else
9676	if test ia64 = "$host_cpu"; then
9677	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9678	  allow_undefined_flag="-z nodefs"
9679	  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"
9680	else
9681	 # Determine the default libpath from the value encoded in an
9682	 # empty executable.
9683	 if test set = "${lt_cv_aix_libpath+set}"; then
9684  aix_libpath=$lt_cv_aix_libpath
9685else
9686  if ${lt_cv_aix_libpath_+:} false; then :
9687  $as_echo_n "(cached) " >&6
9688else
9689  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9690/* end confdefs.h.  */
9691
9692int
9693main ()
9694{
9695
9696  ;
9697  return 0;
9698}
9699_ACEOF
9700if ac_fn_c_try_link "$LINENO"; then :
9701
9702  lt_aix_libpath_sed='
9703      /Import File Strings/,/^$/ {
9704	  /^0/ {
9705	      s/^0  *\([^ ]*\) *$/\1/
9706	      p
9707	  }
9708      }'
9709  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9710  # Check for a 64-bit object if we didn't find anything.
9711  if test -z "$lt_cv_aix_libpath_"; then
9712    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9713  fi
9714fi
9715rm -f core conftest.err conftest.$ac_objext \
9716    conftest$ac_exeext conftest.$ac_ext
9717  if test -z "$lt_cv_aix_libpath_"; then
9718    lt_cv_aix_libpath_=/usr/lib:/lib
9719  fi
9720
9721fi
9722
9723  aix_libpath=$lt_cv_aix_libpath_
9724fi
9725
9726	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9727	  # Warning - without using the other run time loading flags,
9728	  # -berok will link without error, but may produce a broken library.
9729	  no_undefined_flag=' $wl-bernotok'
9730	  allow_undefined_flag=' $wl-berok'
9731	  if test yes = "$with_gnu_ld"; then
9732	    # We only use this code for GNU lds that support --whole-archive.
9733	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9734	  else
9735	    # Exported symbols can be pulled into shared objects from archives
9736	    whole_archive_flag_spec='$convenience'
9737	  fi
9738	  archive_cmds_need_lc=yes
9739	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9740	  # -brtl affects multiple linker settings, -berok does not and is overridden later
9741	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9742	  if test svr4 != "$with_aix_soname"; then
9743	    # This is similar to how AIX traditionally builds its shared libraries.
9744	    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'
9745	  fi
9746	  if test aix != "$with_aix_soname"; then
9747	    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'
9748	  else
9749	    # used by -dlpreopen to get the symbols
9750	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9751	  fi
9752	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9753	fi
9754      fi
9755      ;;
9756
9757    amigaos*)
9758      case $host_cpu in
9759      powerpc)
9760            # see comment about AmigaOS4 .so support
9761            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9762            archive_expsym_cmds=''
9763        ;;
9764      m68k)
9765            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)'
9766            hardcode_libdir_flag_spec='-L$libdir'
9767            hardcode_minus_L=yes
9768        ;;
9769      esac
9770      ;;
9771
9772    bsdi[45]*)
9773      export_dynamic_flag_spec=-rdynamic
9774      ;;
9775
9776    cygwin* | mingw* | pw32* | cegcc*)
9777      # When not using gcc, we currently assume that we are using
9778      # Microsoft Visual C++.
9779      # hardcode_libdir_flag_spec is actually meaningless, as there is
9780      # no search path for DLLs.
9781      case $cc_basename in
9782      cl*)
9783	# Native MSVC
9784	hardcode_libdir_flag_spec=' '
9785	allow_undefined_flag=unsupported
9786	always_export_symbols=yes
9787	file_list_spec='@'
9788	# Tell ltmain to make .lib files, not .a files.
9789	libext=lib
9790	# Tell ltmain to make .dll files, not .so files.
9791	shrext_cmds=.dll
9792	# FIXME: Setting linknames here is a bad hack.
9793	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9794	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9795            cp "$export_symbols" "$output_objdir/$soname.def";
9796            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9797          else
9798            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9799          fi~
9800          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9801          linknames='
9802	# The linker will not automatically build a static lib if we build a DLL.
9803	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9804	enable_shared_with_static_runtimes=yes
9805	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9806	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9807	# Don't use ranlib
9808	old_postinstall_cmds='chmod 644 $oldlib'
9809	postlink_cmds='lt_outputfile="@OUTPUT@"~
9810          lt_tool_outputfile="@TOOL_OUTPUT@"~
9811          case $lt_outputfile in
9812            *.exe|*.EXE) ;;
9813            *)
9814              lt_outputfile=$lt_outputfile.exe
9815              lt_tool_outputfile=$lt_tool_outputfile.exe
9816              ;;
9817          esac~
9818          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9819            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9820            $RM "$lt_outputfile.manifest";
9821          fi'
9822	;;
9823      *)
9824	# Assume MSVC wrapper
9825	hardcode_libdir_flag_spec=' '
9826	allow_undefined_flag=unsupported
9827	# Tell ltmain to make .lib files, not .a files.
9828	libext=lib
9829	# Tell ltmain to make .dll files, not .so files.
9830	shrext_cmds=.dll
9831	# FIXME: Setting linknames here is a bad hack.
9832	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9833	# The linker will automatically build a .lib file if we build a DLL.
9834	old_archive_from_new_cmds='true'
9835	# FIXME: Should let the user specify the lib program.
9836	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9837	enable_shared_with_static_runtimes=yes
9838	;;
9839      esac
9840      ;;
9841
9842    darwin* | rhapsody*)
9843
9844
9845  archive_cmds_need_lc=no
9846  hardcode_direct=no
9847  hardcode_automatic=yes
9848  hardcode_shlibpath_var=unsupported
9849  if test yes = "$lt_cv_ld_force_load"; then
9850    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\"`'
9851
9852  else
9853    whole_archive_flag_spec=''
9854  fi
9855  link_all_deplibs=yes
9856  allow_undefined_flag=$_lt_dar_allow_undefined
9857  case $cc_basename in
9858     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9859     *) _lt_dar_can_shared=$GCC ;;
9860  esac
9861  if test yes = "$_lt_dar_can_shared"; then
9862    output_verbose_link_cmd=func_echo_all
9863    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9864    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9865    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"
9866    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"
9867
9868  else
9869  ld_shlibs=no
9870  fi
9871
9872      ;;
9873
9874    dgux*)
9875      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9876      hardcode_libdir_flag_spec='-L$libdir'
9877      hardcode_shlibpath_var=no
9878      ;;
9879
9880    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9881    # support.  Future versions do this automatically, but an explicit c++rt0.o
9882    # does not break anything, and helps significantly (at the cost of a little
9883    # extra space).
9884    freebsd2.2*)
9885      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9886      hardcode_libdir_flag_spec='-R$libdir'
9887      hardcode_direct=yes
9888      hardcode_shlibpath_var=no
9889      ;;
9890
9891    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9892    freebsd2.*)
9893      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9894      hardcode_direct=yes
9895      hardcode_minus_L=yes
9896      hardcode_shlibpath_var=no
9897      ;;
9898
9899    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9900    freebsd* | dragonfly*)
9901      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9902      hardcode_libdir_flag_spec='-R$libdir'
9903      hardcode_direct=yes
9904      hardcode_shlibpath_var=no
9905      ;;
9906
9907    hpux9*)
9908      if test yes = "$GCC"; then
9909	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'
9910      else
9911	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'
9912      fi
9913      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9914      hardcode_libdir_separator=:
9915      hardcode_direct=yes
9916
9917      # hardcode_minus_L: Not really in the search PATH,
9918      # but as the default location of the library.
9919      hardcode_minus_L=yes
9920      export_dynamic_flag_spec='$wl-E'
9921      ;;
9922
9923    hpux10*)
9924      if test yes,no = "$GCC,$with_gnu_ld"; then
9925	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9926      else
9927	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9928      fi
9929      if test no = "$with_gnu_ld"; then
9930	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9931	hardcode_libdir_separator=:
9932	hardcode_direct=yes
9933	hardcode_direct_absolute=yes
9934	export_dynamic_flag_spec='$wl-E'
9935	# hardcode_minus_L: Not really in the search PATH,
9936	# but as the default location of the library.
9937	hardcode_minus_L=yes
9938      fi
9939      ;;
9940
9941    hpux11*)
9942      if test yes,no = "$GCC,$with_gnu_ld"; then
9943	case $host_cpu in
9944	hppa*64*)
9945	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9946	  ;;
9947	ia64*)
9948	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9949	  ;;
9950	*)
9951	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9952	  ;;
9953	esac
9954      else
9955	case $host_cpu in
9956	hppa*64*)
9957	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9958	  ;;
9959	ia64*)
9960	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9961	  ;;
9962	*)
9963
9964	  # Older versions of the 11.00 compiler do not understand -b yet
9965	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9966	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9967$as_echo_n "checking if $CC understands -b... " >&6; }
9968if ${lt_cv_prog_compiler__b+:} false; then :
9969  $as_echo_n "(cached) " >&6
9970else
9971  lt_cv_prog_compiler__b=no
9972   save_LDFLAGS=$LDFLAGS
9973   LDFLAGS="$LDFLAGS -b"
9974   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9975   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9976     # The linker can only warn and ignore the option if not recognized
9977     # So say no if there are warnings
9978     if test -s conftest.err; then
9979       # Append any errors to the config.log.
9980       cat conftest.err 1>&5
9981       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9982       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9983       if diff conftest.exp conftest.er2 >/dev/null; then
9984         lt_cv_prog_compiler__b=yes
9985       fi
9986     else
9987       lt_cv_prog_compiler__b=yes
9988     fi
9989   fi
9990   $RM -r conftest*
9991   LDFLAGS=$save_LDFLAGS
9992
9993fi
9994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9995$as_echo "$lt_cv_prog_compiler__b" >&6; }
9996
9997if test yes = "$lt_cv_prog_compiler__b"; then
9998    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9999else
10000    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10001fi
10002
10003	  ;;
10004	esac
10005      fi
10006      if test no = "$with_gnu_ld"; then
10007	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10008	hardcode_libdir_separator=:
10009
10010	case $host_cpu in
10011	hppa*64*|ia64*)
10012	  hardcode_direct=no
10013	  hardcode_shlibpath_var=no
10014	  ;;
10015	*)
10016	  hardcode_direct=yes
10017	  hardcode_direct_absolute=yes
10018	  export_dynamic_flag_spec='$wl-E'
10019
10020	  # hardcode_minus_L: Not really in the search PATH,
10021	  # but as the default location of the library.
10022	  hardcode_minus_L=yes
10023	  ;;
10024	esac
10025      fi
10026      ;;
10027
10028    irix5* | irix6* | nonstopux*)
10029      if test yes = "$GCC"; then
10030	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'
10031	# Try to use the -exported_symbol ld option, if it does not
10032	# work, assume that -exports_file does not work either and
10033	# implicitly export all symbols.
10034	# This should be the same for all languages, so no per-tag cache variable.
10035	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10036$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10037if ${lt_cv_irix_exported_symbol+:} false; then :
10038  $as_echo_n "(cached) " >&6
10039else
10040  save_LDFLAGS=$LDFLAGS
10041	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10042	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10043/* end confdefs.h.  */
10044int foo (void) { return 0; }
10045_ACEOF
10046if ac_fn_c_try_link "$LINENO"; then :
10047  lt_cv_irix_exported_symbol=yes
10048else
10049  lt_cv_irix_exported_symbol=no
10050fi
10051rm -f core conftest.err conftest.$ac_objext \
10052    conftest$ac_exeext conftest.$ac_ext
10053           LDFLAGS=$save_LDFLAGS
10054fi
10055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10056$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10057	if test yes = "$lt_cv_irix_exported_symbol"; then
10058          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'
10059	fi
10060      else
10061	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'
10062	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'
10063      fi
10064      archive_cmds_need_lc='no'
10065      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10066      hardcode_libdir_separator=:
10067      inherit_rpath=yes
10068      link_all_deplibs=yes
10069      ;;
10070
10071    linux*)
10072      case $cc_basename in
10073      tcc*)
10074	# Fabrice Bellard et al's Tiny C Compiler
10075	ld_shlibs=yes
10076	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10077	;;
10078      esac
10079      ;;
10080
10081    netbsd*)
10082      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10083	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10084      else
10085	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10086      fi
10087      hardcode_libdir_flag_spec='-R$libdir'
10088      hardcode_direct=yes
10089      hardcode_shlibpath_var=no
10090      ;;
10091
10092    newsos6)
10093      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10094      hardcode_direct=yes
10095      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10096      hardcode_libdir_separator=:
10097      hardcode_shlibpath_var=no
10098      ;;
10099
10100    *nto* | *qnx*)
10101      ;;
10102
10103    openbsd* | bitrig*)
10104      if test -f /usr/libexec/ld.so; then
10105	hardcode_direct=yes
10106	hardcode_shlibpath_var=no
10107	hardcode_direct_absolute=yes
10108	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10109	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10110	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10111	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10112	  export_dynamic_flag_spec='$wl-E'
10113	else
10114	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10115	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10116	fi
10117      else
10118	ld_shlibs=no
10119      fi
10120      ;;
10121
10122    os2*)
10123      hardcode_libdir_flag_spec='-L$libdir'
10124      hardcode_minus_L=yes
10125      allow_undefined_flag=unsupported
10126      shrext_cmds=.dll
10127      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10128	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10129	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10130	$ECHO EXPORTS >> $output_objdir/$libname.def~
10131	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10132	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10133	emximp -o $lib $output_objdir/$libname.def'
10134      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10135	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10136	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10137	$ECHO EXPORTS >> $output_objdir/$libname.def~
10138	prefix_cmds="$SED"~
10139	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10140	  prefix_cmds="$prefix_cmds -e 1d";
10141	fi~
10142	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10143	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10144	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10145	emximp -o $lib $output_objdir/$libname.def'
10146      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10147      enable_shared_with_static_runtimes=yes
10148      ;;
10149
10150    osf3*)
10151      if test yes = "$GCC"; then
10152	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10153	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'
10154      else
10155	allow_undefined_flag=' -expect_unresolved \*'
10156	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'
10157      fi
10158      archive_cmds_need_lc='no'
10159      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10160      hardcode_libdir_separator=:
10161      ;;
10162
10163    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10164      if test yes = "$GCC"; then
10165	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10166	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'
10167	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10168      else
10169	allow_undefined_flag=' -expect_unresolved \*'
10170	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'
10171	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~
10172          $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'
10173
10174	# Both c and cxx compiler support -rpath directly
10175	hardcode_libdir_flag_spec='-rpath $libdir'
10176      fi
10177      archive_cmds_need_lc='no'
10178      hardcode_libdir_separator=:
10179      ;;
10180
10181    solaris*)
10182      no_undefined_flag=' -z defs'
10183      if test yes = "$GCC"; then
10184	wlarc='$wl'
10185	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10186	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10187          $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'
10188      else
10189	case `$CC -V 2>&1` in
10190	*"Compilers 5.0"*)
10191	  wlarc=''
10192	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10193	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10194            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10195	  ;;
10196	*)
10197	  wlarc='$wl'
10198	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10199	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10200            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10201	  ;;
10202	esac
10203      fi
10204      hardcode_libdir_flag_spec='-R$libdir'
10205      hardcode_shlibpath_var=no
10206      case $host_os in
10207      solaris2.[0-5] | solaris2.[0-5].*) ;;
10208      *)
10209	# The compiler driver will combine and reorder linker options,
10210	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10211	# but is careful enough not to reorder.
10212	# Supported since Solaris 2.6 (maybe 2.5.1?)
10213	if test yes = "$GCC"; then
10214	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10215	else
10216	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10217	fi
10218	;;
10219      esac
10220      link_all_deplibs=yes
10221      ;;
10222
10223    sunos4*)
10224      if test sequent = "$host_vendor"; then
10225	# Use $CC to link under sequent, because it throws in some extra .o
10226	# files that make .init and .fini sections work.
10227	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10228      else
10229	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10230      fi
10231      hardcode_libdir_flag_spec='-L$libdir'
10232      hardcode_direct=yes
10233      hardcode_minus_L=yes
10234      hardcode_shlibpath_var=no
10235      ;;
10236
10237    sysv4)
10238      case $host_vendor in
10239	sni)
10240	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10241	  hardcode_direct=yes # is this really true???
10242	;;
10243	siemens)
10244	  ## LD is ld it makes a PLAMLIB
10245	  ## CC just makes a GrossModule.
10246	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10247	  reload_cmds='$CC -r -o $output$reload_objs'
10248	  hardcode_direct=no
10249        ;;
10250	motorola)
10251	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10252	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10253	;;
10254      esac
10255      runpath_var='LD_RUN_PATH'
10256      hardcode_shlibpath_var=no
10257      ;;
10258
10259    sysv4.3*)
10260      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10261      hardcode_shlibpath_var=no
10262      export_dynamic_flag_spec='-Bexport'
10263      ;;
10264
10265    sysv4*MP*)
10266      if test -d /usr/nec; then
10267	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10268	hardcode_shlibpath_var=no
10269	runpath_var=LD_RUN_PATH
10270	hardcode_runpath_var=yes
10271	ld_shlibs=yes
10272      fi
10273      ;;
10274
10275    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10276      no_undefined_flag='$wl-z,text'
10277      archive_cmds_need_lc=no
10278      hardcode_shlibpath_var=no
10279      runpath_var='LD_RUN_PATH'
10280
10281      if test yes = "$GCC"; then
10282	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10283	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10284      else
10285	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10286	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10287      fi
10288      ;;
10289
10290    sysv5* | sco3.2v5* | sco5v6*)
10291      # Note: We CANNOT use -z defs as we might desire, because we do not
10292      # link with -lc, and that would cause any symbols used from libc to
10293      # always be unresolved, which means just about no library would
10294      # ever link correctly.  If we're not using GNU ld we use -z text
10295      # though, which does catch some bad symbols but isn't as heavy-handed
10296      # as -z defs.
10297      no_undefined_flag='$wl-z,text'
10298      allow_undefined_flag='$wl-z,nodefs'
10299      archive_cmds_need_lc=no
10300      hardcode_shlibpath_var=no
10301      hardcode_libdir_flag_spec='$wl-R,$libdir'
10302      hardcode_libdir_separator=':'
10303      link_all_deplibs=yes
10304      export_dynamic_flag_spec='$wl-Bexport'
10305      runpath_var='LD_RUN_PATH'
10306
10307      if test yes = "$GCC"; then
10308	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10309	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10310      else
10311	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10312	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10313      fi
10314      ;;
10315
10316    uts4*)
10317      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10318      hardcode_libdir_flag_spec='-L$libdir'
10319      hardcode_shlibpath_var=no
10320      ;;
10321
10322    *)
10323      ld_shlibs=no
10324      ;;
10325    esac
10326
10327    if test sni = "$host_vendor"; then
10328      case $host in
10329      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10330	export_dynamic_flag_spec='$wl-Blargedynsym'
10331	;;
10332      esac
10333    fi
10334  fi
10335
10336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10337$as_echo "$ld_shlibs" >&6; }
10338test no = "$ld_shlibs" && can_build_shared=no
10339
10340with_gnu_ld=$with_gnu_ld
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356#
10357# Do we need to explicitly link libc?
10358#
10359case "x$archive_cmds_need_lc" in
10360x|xyes)
10361  # Assume -lc should be added
10362  archive_cmds_need_lc=yes
10363
10364  if test yes,yes = "$GCC,$enable_shared"; then
10365    case $archive_cmds in
10366    *'~'*)
10367      # FIXME: we may have to deal with multi-command sequences.
10368      ;;
10369    '$CC '*)
10370      # Test whether the compiler implicitly links with -lc since on some
10371      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10372      # to ld, don't add -lc before -lgcc.
10373      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10374$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10375if ${lt_cv_archive_cmds_need_lc+:} false; then :
10376  $as_echo_n "(cached) " >&6
10377else
10378  $RM -r conftest*
10379	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10380
10381	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10382  (eval $ac_compile) 2>&5
10383  ac_status=$?
10384  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10385  test $ac_status = 0; } 2>conftest.err; then
10386	  soname=conftest
10387	  lib=conftest
10388	  libobjs=conftest.$ac_objext
10389	  deplibs=
10390	  wl=$lt_prog_compiler_wl
10391	  pic_flag=$lt_prog_compiler_pic
10392	  compiler_flags=-v
10393	  linker_flags=-v
10394	  verstring=
10395	  output_objdir=.
10396	  libname=conftest
10397	  lt_save_allow_undefined_flag=$allow_undefined_flag
10398	  allow_undefined_flag=
10399	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10400  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10401  ac_status=$?
10402  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10403  test $ac_status = 0; }
10404	  then
10405	    lt_cv_archive_cmds_need_lc=no
10406	  else
10407	    lt_cv_archive_cmds_need_lc=yes
10408	  fi
10409	  allow_undefined_flag=$lt_save_allow_undefined_flag
10410	else
10411	  cat conftest.err 1>&5
10412	fi
10413	$RM -r conftest*
10414
10415fi
10416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10417$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10418      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10419      ;;
10420    esac
10421  fi
10422  ;;
10423esac
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10577$as_echo_n "checking dynamic linker characteristics... " >&6; }
10578
10579if test yes = "$GCC"; then
10580  case $host_os in
10581    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10582    *) lt_awk_arg='/^libraries:/' ;;
10583  esac
10584  case $host_os in
10585    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10586    *) lt_sed_strip_eq='s|=/|/|g' ;;
10587  esac
10588  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10589  case $lt_search_path_spec in
10590  *\;*)
10591    # if the path contains ";" then we assume it to be the separator
10592    # otherwise default to the standard path separator (i.e. ":") - it is
10593    # assumed that no part of a normal pathname contains ";" but that should
10594    # okay in the real world where ";" in dirpaths is itself problematic.
10595    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10596    ;;
10597  *)
10598    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10599    ;;
10600  esac
10601  # Ok, now we have the path, separated by spaces, we can step through it
10602  # and add multilib dir if necessary...
10603  lt_tmp_lt_search_path_spec=
10604  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10605  # ...but if some path component already ends with the multilib dir we assume
10606  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10607  case "$lt_multi_os_dir; $lt_search_path_spec " in
10608  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10609    lt_multi_os_dir=
10610    ;;
10611  esac
10612  for lt_sys_path in $lt_search_path_spec; do
10613    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10614      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10615    elif test -n "$lt_multi_os_dir"; then
10616      test -d "$lt_sys_path" && \
10617	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10618    fi
10619  done
10620  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10621BEGIN {RS = " "; FS = "/|\n";} {
10622  lt_foo = "";
10623  lt_count = 0;
10624  for (lt_i = NF; lt_i > 0; lt_i--) {
10625    if ($lt_i != "" && $lt_i != ".") {
10626      if ($lt_i == "..") {
10627        lt_count++;
10628      } else {
10629        if (lt_count == 0) {
10630          lt_foo = "/" $lt_i lt_foo;
10631        } else {
10632          lt_count--;
10633        }
10634      }
10635    }
10636  }
10637  if (lt_foo != "") { lt_freq[lt_foo]++; }
10638  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10639}'`
10640  # AWK program above erroneously prepends '/' to C:/dos/paths
10641  # for these hosts.
10642  case $host_os in
10643    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10644      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10645  esac
10646  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10647else
10648  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10649fi
10650library_names_spec=
10651libname_spec='lib$name'
10652soname_spec=
10653shrext_cmds=.so
10654postinstall_cmds=
10655postuninstall_cmds=
10656finish_cmds=
10657finish_eval=
10658shlibpath_var=
10659shlibpath_overrides_runpath=unknown
10660version_type=none
10661dynamic_linker="$host_os ld.so"
10662sys_lib_dlsearch_path_spec="/lib /usr/lib"
10663need_lib_prefix=unknown
10664hardcode_into_libs=no
10665
10666# when you set need_version to no, make sure it does not cause -set_version
10667# flags to be left without arguments
10668need_version=unknown
10669
10670
10671
10672case $host_os in
10673aix3*)
10674  version_type=linux # correct to gnu/linux during the next big refactor
10675  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10676  shlibpath_var=LIBPATH
10677
10678  # AIX 3 has no versioning support, so we append a major version to the name.
10679  soname_spec='$libname$release$shared_ext$major'
10680  ;;
10681
10682aix[4-9]*)
10683  version_type=linux # correct to gnu/linux during the next big refactor
10684  need_lib_prefix=no
10685  need_version=no
10686  hardcode_into_libs=yes
10687  if test ia64 = "$host_cpu"; then
10688    # AIX 5 supports IA64
10689    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10690    shlibpath_var=LD_LIBRARY_PATH
10691  else
10692    # With GCC up to 2.95.x, collect2 would create an import file
10693    # for dependence libraries.  The import file would start with
10694    # the line '#! .'.  This would cause the generated library to
10695    # depend on '.', always an invalid library.  This was fixed in
10696    # development snapshots of GCC prior to 3.0.
10697    case $host_os in
10698      aix4 | aix4.[01] | aix4.[01].*)
10699      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10700	   echo ' yes '
10701	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10702	:
10703      else
10704	can_build_shared=no
10705      fi
10706      ;;
10707    esac
10708    # Using Import Files as archive members, it is possible to support
10709    # filename-based versioning of shared library archives on AIX. While
10710    # this would work for both with and without runtime linking, it will
10711    # prevent static linking of such archives. So we do filename-based
10712    # shared library versioning with .so extension only, which is used
10713    # when both runtime linking and shared linking is enabled.
10714    # Unfortunately, runtime linking may impact performance, so we do
10715    # not want this to be the default eventually. Also, we use the
10716    # versioned .so libs for executables only if there is the -brtl
10717    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10718    # To allow for filename-based versioning support, we need to create
10719    # libNAME.so.V as an archive file, containing:
10720    # *) an Import File, referring to the versioned filename of the
10721    #    archive as well as the shared archive member, telling the
10722    #    bitwidth (32 or 64) of that shared object, and providing the
10723    #    list of exported symbols of that shared object, eventually
10724    #    decorated with the 'weak' keyword
10725    # *) the shared object with the F_LOADONLY flag set, to really avoid
10726    #    it being seen by the linker.
10727    # At run time we better use the real file rather than another symlink,
10728    # but for link time we create the symlink libNAME.so -> libNAME.so.V
10729
10730    case $with_aix_soname,$aix_use_runtimelinking in
10731    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10732    # soname into executable. Probably we can add versioning support to
10733    # collect2, so additional links can be useful in future.
10734    aix,yes) # traditional libtool
10735      dynamic_linker='AIX unversionable lib.so'
10736      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10737      # instead of lib<name>.a to let people know that these are not
10738      # typical AIX shared libraries.
10739      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10740      ;;
10741    aix,no) # traditional AIX only
10742      dynamic_linker='AIX lib.a(lib.so.V)'
10743      # We preserve .a as extension for shared libraries through AIX4.2
10744      # and later when we are not doing run time linking.
10745      library_names_spec='$libname$release.a $libname.a'
10746      soname_spec='$libname$release$shared_ext$major'
10747      ;;
10748    svr4,*) # full svr4 only
10749      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10750      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10751      # We do not specify a path in Import Files, so LIBPATH fires.
10752      shlibpath_overrides_runpath=yes
10753      ;;
10754    *,yes) # both, prefer svr4
10755      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10756      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10757      # unpreferred sharedlib libNAME.a needs extra handling
10758      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"'
10759      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"'
10760      # We do not specify a path in Import Files, so LIBPATH fires.
10761      shlibpath_overrides_runpath=yes
10762      ;;
10763    *,no) # both, prefer aix
10764      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10765      library_names_spec='$libname$release.a $libname.a'
10766      soname_spec='$libname$release$shared_ext$major'
10767      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10768      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)'
10769      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"'
10770      ;;
10771    esac
10772    shlibpath_var=LIBPATH
10773  fi
10774  ;;
10775
10776amigaos*)
10777  case $host_cpu in
10778  powerpc)
10779    # Since July 2007 AmigaOS4 officially supports .so libraries.
10780    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10781    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10782    ;;
10783  m68k)
10784    library_names_spec='$libname.ixlibrary $libname.a'
10785    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10786    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'
10787    ;;
10788  esac
10789  ;;
10790
10791beos*)
10792  library_names_spec='$libname$shared_ext'
10793  dynamic_linker="$host_os ld.so"
10794  shlibpath_var=LIBRARY_PATH
10795  ;;
10796
10797bsdi[45]*)
10798  version_type=linux # correct to gnu/linux during the next big refactor
10799  need_version=no
10800  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10801  soname_spec='$libname$release$shared_ext$major'
10802  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10803  shlibpath_var=LD_LIBRARY_PATH
10804  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10805  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10806  # the default ld.so.conf also contains /usr/contrib/lib and
10807  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10808  # libtool to hard-code these into programs
10809  ;;
10810
10811cygwin* | mingw* | pw32* | cegcc*)
10812  version_type=windows
10813  shrext_cmds=.dll
10814  need_version=no
10815  need_lib_prefix=no
10816
10817  case $GCC,$cc_basename in
10818  yes,*)
10819    # gcc
10820    library_names_spec='$libname.dll.a'
10821    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10822    postinstall_cmds='base_file=`basename \$file`~
10823      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10824      dldir=$destdir/`dirname \$dlpath`~
10825      test -d \$dldir || mkdir -p \$dldir~
10826      $install_prog $dir/$dlname \$dldir/$dlname~
10827      chmod a+x \$dldir/$dlname~
10828      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10829        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10830      fi'
10831    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10832      dlpath=$dir/\$dldll~
10833       $RM \$dlpath'
10834    shlibpath_overrides_runpath=yes
10835
10836    case $host_os in
10837    cygwin*)
10838      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10839      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10840
10841      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10842      ;;
10843    mingw* | cegcc*)
10844      # MinGW DLLs use traditional 'lib' prefix
10845      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10846      ;;
10847    pw32*)
10848      # pw32 DLLs use 'pw' prefix rather than 'lib'
10849      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10850      ;;
10851    esac
10852    dynamic_linker='Win32 ld.exe'
10853    ;;
10854
10855  *,cl*)
10856    # Native MSVC
10857    libname_spec='$name'
10858    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10859    library_names_spec='$libname.dll.lib'
10860
10861    case $build_os in
10862    mingw*)
10863      sys_lib_search_path_spec=
10864      lt_save_ifs=$IFS
10865      IFS=';'
10866      for lt_path in $LIB
10867      do
10868        IFS=$lt_save_ifs
10869        # Let DOS variable expansion print the short 8.3 style file name.
10870        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10871        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10872      done
10873      IFS=$lt_save_ifs
10874      # Convert to MSYS style.
10875      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10876      ;;
10877    cygwin*)
10878      # Convert to unix form, then to dos form, then back to unix form
10879      # but this time dos style (no spaces!) so that the unix form looks
10880      # like /cygdrive/c/PROGRA~1:/cygdr...
10881      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10882      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10883      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10884      ;;
10885    *)
10886      sys_lib_search_path_spec=$LIB
10887      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10888        # It is most probably a Windows format PATH.
10889        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10890      else
10891        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10892      fi
10893      # FIXME: find the short name or the path components, as spaces are
10894      # common. (e.g. "Program Files" -> "PROGRA~1")
10895      ;;
10896    esac
10897
10898    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10899    postinstall_cmds='base_file=`basename \$file`~
10900      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10901      dldir=$destdir/`dirname \$dlpath`~
10902      test -d \$dldir || mkdir -p \$dldir~
10903      $install_prog $dir/$dlname \$dldir/$dlname'
10904    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10905      dlpath=$dir/\$dldll~
10906       $RM \$dlpath'
10907    shlibpath_overrides_runpath=yes
10908    dynamic_linker='Win32 link.exe'
10909    ;;
10910
10911  *)
10912    # Assume MSVC wrapper
10913    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10914    dynamic_linker='Win32 ld.exe'
10915    ;;
10916  esac
10917  # FIXME: first we should search . and the directory the executable is in
10918  shlibpath_var=PATH
10919  ;;
10920
10921darwin* | rhapsody*)
10922  dynamic_linker="$host_os dyld"
10923  version_type=darwin
10924  need_lib_prefix=no
10925  need_version=no
10926  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10927  soname_spec='$libname$release$major$shared_ext'
10928  shlibpath_overrides_runpath=yes
10929  shlibpath_var=DYLD_LIBRARY_PATH
10930  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10931
10932  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10933  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10934  ;;
10935
10936dgux*)
10937  version_type=linux # correct to gnu/linux during the next big refactor
10938  need_lib_prefix=no
10939  need_version=no
10940  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10941  soname_spec='$libname$release$shared_ext$major'
10942  shlibpath_var=LD_LIBRARY_PATH
10943  ;;
10944
10945freebsd* | dragonfly*)
10946  # DragonFly does not have aout.  When/if they implement a new
10947  # versioning mechanism, adjust this.
10948  if test -x /usr/bin/objformat; then
10949    objformat=`/usr/bin/objformat`
10950  else
10951    case $host_os in
10952    freebsd[23].*) objformat=aout ;;
10953    *) objformat=elf ;;
10954    esac
10955  fi
10956  version_type=freebsd-$objformat
10957  case $version_type in
10958    freebsd-elf*)
10959      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10960      soname_spec='$libname$release$shared_ext$major'
10961      need_version=no
10962      need_lib_prefix=no
10963      ;;
10964    freebsd-*)
10965      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10966      need_version=yes
10967      ;;
10968  esac
10969  shlibpath_var=LD_LIBRARY_PATH
10970  case $host_os in
10971  freebsd2.*)
10972    shlibpath_overrides_runpath=yes
10973    ;;
10974  freebsd3.[01]* | freebsdelf3.[01]*)
10975    shlibpath_overrides_runpath=yes
10976    hardcode_into_libs=yes
10977    ;;
10978  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10979  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10980    shlibpath_overrides_runpath=no
10981    hardcode_into_libs=yes
10982    ;;
10983  *) # from 4.6 on, and DragonFly
10984    shlibpath_overrides_runpath=yes
10985    hardcode_into_libs=yes
10986    ;;
10987  esac
10988  ;;
10989
10990haiku*)
10991  version_type=linux # correct to gnu/linux during the next big refactor
10992  need_lib_prefix=no
10993  need_version=no
10994  dynamic_linker="$host_os runtime_loader"
10995  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10996  soname_spec='$libname$release$shared_ext$major'
10997  shlibpath_var=LIBRARY_PATH
10998  shlibpath_overrides_runpath=no
10999  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11000  hardcode_into_libs=yes
11001  ;;
11002
11003hpux9* | hpux10* | hpux11*)
11004  # Give a soname corresponding to the major version so that dld.sl refuses to
11005  # link against other versions.
11006  version_type=sunos
11007  need_lib_prefix=no
11008  need_version=no
11009  case $host_cpu in
11010  ia64*)
11011    shrext_cmds='.so'
11012    hardcode_into_libs=yes
11013    dynamic_linker="$host_os dld.so"
11014    shlibpath_var=LD_LIBRARY_PATH
11015    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11016    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11017    soname_spec='$libname$release$shared_ext$major'
11018    if test 32 = "$HPUX_IA64_MODE"; then
11019      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11020      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11021    else
11022      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11023      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11024    fi
11025    ;;
11026  hppa*64*)
11027    shrext_cmds='.sl'
11028    hardcode_into_libs=yes
11029    dynamic_linker="$host_os dld.sl"
11030    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11031    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11032    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11033    soname_spec='$libname$release$shared_ext$major'
11034    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11035    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11036    ;;
11037  *)
11038    shrext_cmds='.sl'
11039    dynamic_linker="$host_os dld.sl"
11040    shlibpath_var=SHLIB_PATH
11041    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11042    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11043    soname_spec='$libname$release$shared_ext$major'
11044    ;;
11045  esac
11046  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11047  postinstall_cmds='chmod 555 $lib'
11048  # or fails outright, so override atomically:
11049  install_override_mode=555
11050  ;;
11051
11052interix[3-9]*)
11053  version_type=linux # correct to gnu/linux during the next big refactor
11054  need_lib_prefix=no
11055  need_version=no
11056  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11057  soname_spec='$libname$release$shared_ext$major'
11058  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11059  shlibpath_var=LD_LIBRARY_PATH
11060  shlibpath_overrides_runpath=no
11061  hardcode_into_libs=yes
11062  ;;
11063
11064irix5* | irix6* | nonstopux*)
11065  case $host_os in
11066    nonstopux*) version_type=nonstopux ;;
11067    *)
11068	if test yes = "$lt_cv_prog_gnu_ld"; then
11069		version_type=linux # correct to gnu/linux during the next big refactor
11070	else
11071		version_type=irix
11072	fi ;;
11073  esac
11074  need_lib_prefix=no
11075  need_version=no
11076  soname_spec='$libname$release$shared_ext$major'
11077  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11078  case $host_os in
11079  irix5* | nonstopux*)
11080    libsuff= shlibsuff=
11081    ;;
11082  *)
11083    case $LD in # libtool.m4 will add one of these switches to LD
11084    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11085      libsuff= shlibsuff= libmagic=32-bit;;
11086    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11087      libsuff=32 shlibsuff=N32 libmagic=N32;;
11088    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11089      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11090    *) libsuff= shlibsuff= libmagic=never-match;;
11091    esac
11092    ;;
11093  esac
11094  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11095  shlibpath_overrides_runpath=no
11096  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11097  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11098  hardcode_into_libs=yes
11099  ;;
11100
11101# No shared lib support for Linux oldld, aout, or coff.
11102linux*oldld* | linux*aout* | linux*coff*)
11103  dynamic_linker=no
11104  ;;
11105
11106linux*android*)
11107  version_type=none # Android doesn't support versioned libraries.
11108  need_lib_prefix=no
11109  need_version=no
11110  library_names_spec='$libname$release$shared_ext'
11111  soname_spec='$libname$release$shared_ext'
11112  finish_cmds=
11113  shlibpath_var=LD_LIBRARY_PATH
11114  shlibpath_overrides_runpath=yes
11115
11116  # This implies no fast_install, which is unacceptable.
11117  # Some rework will be needed to allow for fast_install
11118  # before this can be enabled.
11119  hardcode_into_libs=yes
11120
11121  dynamic_linker='Android linker'
11122  # Don't embed -rpath directories since the linker doesn't support them.
11123  hardcode_libdir_flag_spec='-L$libdir'
11124  ;;
11125
11126# This must be glibc/ELF.
11127linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11128  version_type=linux # correct to gnu/linux during the next big refactor
11129  need_lib_prefix=no
11130  need_version=no
11131  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11132  soname_spec='$libname$release$shared_ext$major'
11133  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11134  shlibpath_var=LD_LIBRARY_PATH
11135  shlibpath_overrides_runpath=no
11136
11137  # Some binutils ld are patched to set DT_RUNPATH
11138  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11139  $as_echo_n "(cached) " >&6
11140else
11141  lt_cv_shlibpath_overrides_runpath=no
11142    save_LDFLAGS=$LDFLAGS
11143    save_libdir=$libdir
11144    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11145	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11146    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11147/* end confdefs.h.  */
11148
11149int
11150main ()
11151{
11152
11153  ;
11154  return 0;
11155}
11156_ACEOF
11157if ac_fn_c_try_link "$LINENO"; then :
11158  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11159  lt_cv_shlibpath_overrides_runpath=yes
11160fi
11161fi
11162rm -f core conftest.err conftest.$ac_objext \
11163    conftest$ac_exeext conftest.$ac_ext
11164    LDFLAGS=$save_LDFLAGS
11165    libdir=$save_libdir
11166
11167fi
11168
11169  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11170
11171  # This implies no fast_install, which is unacceptable.
11172  # Some rework will be needed to allow for fast_install
11173  # before this can be enabled.
11174  hardcode_into_libs=yes
11175
11176  # Ideally, we could use ldconfig to report *all* directores which are
11177  # searched for libraries, however this is still not possible.  Aside from not
11178  # being certain /sbin/ldconfig is available, command
11179  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11180  # even though it is searched at run-time.  Try to do the best guess by
11181  # appending ld.so.conf contents (and includes) to the search path.
11182  if test -f /etc/ld.so.conf; then
11183    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' ' '`
11184    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11185  fi
11186
11187  # We used to test for /lib/ld.so.1 and disable shared libraries on
11188  # powerpc, because MkLinux only supported shared libraries with the
11189  # GNU dynamic linker.  Since this was broken with cross compilers,
11190  # most powerpc-linux boxes support dynamic linking these days and
11191  # people can always --disable-shared, the test was removed, and we
11192  # assume the GNU/Linux dynamic linker is in use.
11193  dynamic_linker='GNU/Linux ld.so'
11194  ;;
11195
11196netbsd*)
11197  version_type=sunos
11198  need_lib_prefix=no
11199  need_version=no
11200  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11201    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11202    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11203    dynamic_linker='NetBSD (a.out) ld.so'
11204  else
11205    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11206    soname_spec='$libname$release$shared_ext$major'
11207    dynamic_linker='NetBSD ld.elf_so'
11208  fi
11209  shlibpath_var=LD_LIBRARY_PATH
11210  shlibpath_overrides_runpath=yes
11211  hardcode_into_libs=yes
11212  ;;
11213
11214newsos6)
11215  version_type=linux # correct to gnu/linux during the next big refactor
11216  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11217  shlibpath_var=LD_LIBRARY_PATH
11218  shlibpath_overrides_runpath=yes
11219  ;;
11220
11221*nto* | *qnx*)
11222  version_type=qnx
11223  need_lib_prefix=no
11224  need_version=no
11225  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11226  soname_spec='$libname$release$shared_ext$major'
11227  shlibpath_var=LD_LIBRARY_PATH
11228  shlibpath_overrides_runpath=no
11229  hardcode_into_libs=yes
11230  dynamic_linker='ldqnx.so'
11231  ;;
11232
11233openbsd* | bitrig*)
11234  version_type=sunos
11235  sys_lib_dlsearch_path_spec=/usr/lib
11236  need_lib_prefix=no
11237  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11238    need_version=no
11239  else
11240    need_version=yes
11241  fi
11242  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11243  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11244  shlibpath_var=LD_LIBRARY_PATH
11245  shlibpath_overrides_runpath=yes
11246  ;;
11247
11248os2*)
11249  libname_spec='$name'
11250  version_type=windows
11251  shrext_cmds=.dll
11252  need_version=no
11253  need_lib_prefix=no
11254  # OS/2 can only load a DLL with a base name of 8 characters or less.
11255  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11256    v=$($ECHO $release$versuffix | tr -d .-);
11257    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11258    $ECHO $n$v`$shared_ext'
11259  library_names_spec='${libname}_dll.$libext'
11260  dynamic_linker='OS/2 ld.exe'
11261  shlibpath_var=BEGINLIBPATH
11262  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11263  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11264  postinstall_cmds='base_file=`basename \$file`~
11265    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11266    dldir=$destdir/`dirname \$dlpath`~
11267    test -d \$dldir || mkdir -p \$dldir~
11268    $install_prog $dir/$dlname \$dldir/$dlname~
11269    chmod a+x \$dldir/$dlname~
11270    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11271      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11272    fi'
11273  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11274    dlpath=$dir/\$dldll~
11275    $RM \$dlpath'
11276  ;;
11277
11278osf3* | osf4* | osf5*)
11279  version_type=osf
11280  need_lib_prefix=no
11281  need_version=no
11282  soname_spec='$libname$release$shared_ext$major'
11283  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11284  shlibpath_var=LD_LIBRARY_PATH
11285  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11286  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11287  ;;
11288
11289rdos*)
11290  dynamic_linker=no
11291  ;;
11292
11293solaris*)
11294  version_type=linux # correct to gnu/linux during the next big refactor
11295  need_lib_prefix=no
11296  need_version=no
11297  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11298  soname_spec='$libname$release$shared_ext$major'
11299  shlibpath_var=LD_LIBRARY_PATH
11300  shlibpath_overrides_runpath=yes
11301  hardcode_into_libs=yes
11302  # ldd complains unless libraries are executable
11303  postinstall_cmds='chmod +x $lib'
11304  ;;
11305
11306sunos4*)
11307  version_type=sunos
11308  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11309  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11310  shlibpath_var=LD_LIBRARY_PATH
11311  shlibpath_overrides_runpath=yes
11312  if test yes = "$with_gnu_ld"; then
11313    need_lib_prefix=no
11314  fi
11315  need_version=yes
11316  ;;
11317
11318sysv4 | sysv4.3*)
11319  version_type=linux # correct to gnu/linux during the next big refactor
11320  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11321  soname_spec='$libname$release$shared_ext$major'
11322  shlibpath_var=LD_LIBRARY_PATH
11323  case $host_vendor in
11324    sni)
11325      shlibpath_overrides_runpath=no
11326      need_lib_prefix=no
11327      runpath_var=LD_RUN_PATH
11328      ;;
11329    siemens)
11330      need_lib_prefix=no
11331      ;;
11332    motorola)
11333      need_lib_prefix=no
11334      need_version=no
11335      shlibpath_overrides_runpath=no
11336      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11337      ;;
11338  esac
11339  ;;
11340
11341sysv4*MP*)
11342  if test -d /usr/nec; then
11343    version_type=linux # correct to gnu/linux during the next big refactor
11344    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11345    soname_spec='$libname$shared_ext.$major'
11346    shlibpath_var=LD_LIBRARY_PATH
11347  fi
11348  ;;
11349
11350sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11351  version_type=sco
11352  need_lib_prefix=no
11353  need_version=no
11354  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11355  soname_spec='$libname$release$shared_ext$major'
11356  shlibpath_var=LD_LIBRARY_PATH
11357  shlibpath_overrides_runpath=yes
11358  hardcode_into_libs=yes
11359  if test yes = "$with_gnu_ld"; then
11360    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11361  else
11362    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11363    case $host_os in
11364      sco3.2v5*)
11365        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11366	;;
11367    esac
11368  fi
11369  sys_lib_dlsearch_path_spec='/usr/lib'
11370  ;;
11371
11372tpf*)
11373  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11374  version_type=linux # correct to gnu/linux during the next big refactor
11375  need_lib_prefix=no
11376  need_version=no
11377  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11378  shlibpath_var=LD_LIBRARY_PATH
11379  shlibpath_overrides_runpath=no
11380  hardcode_into_libs=yes
11381  ;;
11382
11383uts4*)
11384  version_type=linux # correct to gnu/linux during the next big refactor
11385  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11386  soname_spec='$libname$release$shared_ext$major'
11387  shlibpath_var=LD_LIBRARY_PATH
11388  ;;
11389
11390*)
11391  dynamic_linker=no
11392  ;;
11393esac
11394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11395$as_echo "$dynamic_linker" >&6; }
11396test no = "$dynamic_linker" && can_build_shared=no
11397
11398variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11399if test yes = "$GCC"; then
11400  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11401fi
11402
11403if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11404  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11405fi
11406
11407if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11408  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11409fi
11410
11411# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11412configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11413
11414# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11415func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11416
11417# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11418configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11517$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11518hardcode_action=
11519if test -n "$hardcode_libdir_flag_spec" ||
11520   test -n "$runpath_var" ||
11521   test yes = "$hardcode_automatic"; then
11522
11523  # We can hardcode non-existent directories.
11524  if test no != "$hardcode_direct" &&
11525     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11526     # have to relink, otherwise we might link with an installed library
11527     # when we should be linking with a yet-to-be-installed one
11528     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11529     test no != "$hardcode_minus_L"; then
11530    # Linking always hardcodes the temporary library directory.
11531    hardcode_action=relink
11532  else
11533    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11534    hardcode_action=immediate
11535  fi
11536else
11537  # We cannot hardcode anything, or else we can only hardcode existing
11538  # directories.
11539  hardcode_action=unsupported
11540fi
11541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11542$as_echo "$hardcode_action" >&6; }
11543
11544if test relink = "$hardcode_action" ||
11545   test yes = "$inherit_rpath"; then
11546  # Fast installation is not supported
11547  enable_fast_install=no
11548elif test yes = "$shlibpath_overrides_runpath" ||
11549     test no = "$enable_shared"; then
11550  # Fast installation is not necessary
11551  enable_fast_install=needless
11552fi
11553
11554
11555
11556
11557
11558
11559  if test yes != "$enable_dlopen"; then
11560  enable_dlopen=unknown
11561  enable_dlopen_self=unknown
11562  enable_dlopen_self_static=unknown
11563else
11564  lt_cv_dlopen=no
11565  lt_cv_dlopen_libs=
11566
11567  case $host_os in
11568  beos*)
11569    lt_cv_dlopen=load_add_on
11570    lt_cv_dlopen_libs=
11571    lt_cv_dlopen_self=yes
11572    ;;
11573
11574  mingw* | pw32* | cegcc*)
11575    lt_cv_dlopen=LoadLibrary
11576    lt_cv_dlopen_libs=
11577    ;;
11578
11579  cygwin*)
11580    lt_cv_dlopen=dlopen
11581    lt_cv_dlopen_libs=
11582    ;;
11583
11584  darwin*)
11585    # if libdl is installed we need to link against it
11586    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11587$as_echo_n "checking for dlopen in -ldl... " >&6; }
11588if ${ac_cv_lib_dl_dlopen+:} false; then :
11589  $as_echo_n "(cached) " >&6
11590else
11591  ac_check_lib_save_LIBS=$LIBS
11592LIBS="-ldl  $LIBS"
11593cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11594/* end confdefs.h.  */
11595
11596/* Override any GCC internal prototype to avoid an error.
11597   Use char because int might match the return type of a GCC
11598   builtin and then its argument prototype would still apply.  */
11599#ifdef __cplusplus
11600extern "C"
11601#endif
11602char dlopen ();
11603int
11604main ()
11605{
11606return dlopen ();
11607  ;
11608  return 0;
11609}
11610_ACEOF
11611if ac_fn_c_try_link "$LINENO"; then :
11612  ac_cv_lib_dl_dlopen=yes
11613else
11614  ac_cv_lib_dl_dlopen=no
11615fi
11616rm -f core conftest.err conftest.$ac_objext \
11617    conftest$ac_exeext conftest.$ac_ext
11618LIBS=$ac_check_lib_save_LIBS
11619fi
11620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11621$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11622if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11623  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11624else
11625
11626    lt_cv_dlopen=dyld
11627    lt_cv_dlopen_libs=
11628    lt_cv_dlopen_self=yes
11629
11630fi
11631
11632    ;;
11633
11634  tpf*)
11635    # Don't try to run any link tests for TPF.  We know it's impossible
11636    # because TPF is a cross-compiler, and we know how we open DSOs.
11637    lt_cv_dlopen=dlopen
11638    lt_cv_dlopen_libs=
11639    lt_cv_dlopen_self=no
11640    ;;
11641
11642  *)
11643    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11644if test "x$ac_cv_func_shl_load" = xyes; then :
11645  lt_cv_dlopen=shl_load
11646else
11647  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11648$as_echo_n "checking for shl_load in -ldld... " >&6; }
11649if ${ac_cv_lib_dld_shl_load+:} false; then :
11650  $as_echo_n "(cached) " >&6
11651else
11652  ac_check_lib_save_LIBS=$LIBS
11653LIBS="-ldld  $LIBS"
11654cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11655/* end confdefs.h.  */
11656
11657/* Override any GCC internal prototype to avoid an error.
11658   Use char because int might match the return type of a GCC
11659   builtin and then its argument prototype would still apply.  */
11660#ifdef __cplusplus
11661extern "C"
11662#endif
11663char shl_load ();
11664int
11665main ()
11666{
11667return shl_load ();
11668  ;
11669  return 0;
11670}
11671_ACEOF
11672if ac_fn_c_try_link "$LINENO"; then :
11673  ac_cv_lib_dld_shl_load=yes
11674else
11675  ac_cv_lib_dld_shl_load=no
11676fi
11677rm -f core conftest.err conftest.$ac_objext \
11678    conftest$ac_exeext conftest.$ac_ext
11679LIBS=$ac_check_lib_save_LIBS
11680fi
11681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11682$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11683if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11684  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11685else
11686  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11687if test "x$ac_cv_func_dlopen" = xyes; then :
11688  lt_cv_dlopen=dlopen
11689else
11690  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11691$as_echo_n "checking for dlopen in -ldl... " >&6; }
11692if ${ac_cv_lib_dl_dlopen+:} false; then :
11693  $as_echo_n "(cached) " >&6
11694else
11695  ac_check_lib_save_LIBS=$LIBS
11696LIBS="-ldl  $LIBS"
11697cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11698/* end confdefs.h.  */
11699
11700/* Override any GCC internal prototype to avoid an error.
11701   Use char because int might match the return type of a GCC
11702   builtin and then its argument prototype would still apply.  */
11703#ifdef __cplusplus
11704extern "C"
11705#endif
11706char dlopen ();
11707int
11708main ()
11709{
11710return dlopen ();
11711  ;
11712  return 0;
11713}
11714_ACEOF
11715if ac_fn_c_try_link "$LINENO"; then :
11716  ac_cv_lib_dl_dlopen=yes
11717else
11718  ac_cv_lib_dl_dlopen=no
11719fi
11720rm -f core conftest.err conftest.$ac_objext \
11721    conftest$ac_exeext conftest.$ac_ext
11722LIBS=$ac_check_lib_save_LIBS
11723fi
11724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11725$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11726if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11727  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11728else
11729  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11730$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11731if ${ac_cv_lib_svld_dlopen+:} false; then :
11732  $as_echo_n "(cached) " >&6
11733else
11734  ac_check_lib_save_LIBS=$LIBS
11735LIBS="-lsvld  $LIBS"
11736cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11737/* end confdefs.h.  */
11738
11739/* Override any GCC internal prototype to avoid an error.
11740   Use char because int might match the return type of a GCC
11741   builtin and then its argument prototype would still apply.  */
11742#ifdef __cplusplus
11743extern "C"
11744#endif
11745char dlopen ();
11746int
11747main ()
11748{
11749return dlopen ();
11750  ;
11751  return 0;
11752}
11753_ACEOF
11754if ac_fn_c_try_link "$LINENO"; then :
11755  ac_cv_lib_svld_dlopen=yes
11756else
11757  ac_cv_lib_svld_dlopen=no
11758fi
11759rm -f core conftest.err conftest.$ac_objext \
11760    conftest$ac_exeext conftest.$ac_ext
11761LIBS=$ac_check_lib_save_LIBS
11762fi
11763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11764$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11765if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11766  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11767else
11768  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11769$as_echo_n "checking for dld_link in -ldld... " >&6; }
11770if ${ac_cv_lib_dld_dld_link+:} false; then :
11771  $as_echo_n "(cached) " >&6
11772else
11773  ac_check_lib_save_LIBS=$LIBS
11774LIBS="-ldld  $LIBS"
11775cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11776/* end confdefs.h.  */
11777
11778/* Override any GCC internal prototype to avoid an error.
11779   Use char because int might match the return type of a GCC
11780   builtin and then its argument prototype would still apply.  */
11781#ifdef __cplusplus
11782extern "C"
11783#endif
11784char dld_link ();
11785int
11786main ()
11787{
11788return dld_link ();
11789  ;
11790  return 0;
11791}
11792_ACEOF
11793if ac_fn_c_try_link "$LINENO"; then :
11794  ac_cv_lib_dld_dld_link=yes
11795else
11796  ac_cv_lib_dld_dld_link=no
11797fi
11798rm -f core conftest.err conftest.$ac_objext \
11799    conftest$ac_exeext conftest.$ac_ext
11800LIBS=$ac_check_lib_save_LIBS
11801fi
11802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11803$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11804if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11805  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11806fi
11807
11808
11809fi
11810
11811
11812fi
11813
11814
11815fi
11816
11817
11818fi
11819
11820
11821fi
11822
11823    ;;
11824  esac
11825
11826  if test no = "$lt_cv_dlopen"; then
11827    enable_dlopen=no
11828  else
11829    enable_dlopen=yes
11830  fi
11831
11832  case $lt_cv_dlopen in
11833  dlopen)
11834    save_CPPFLAGS=$CPPFLAGS
11835    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11836
11837    save_LDFLAGS=$LDFLAGS
11838    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11839
11840    save_LIBS=$LIBS
11841    LIBS="$lt_cv_dlopen_libs $LIBS"
11842
11843    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11844$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11845if ${lt_cv_dlopen_self+:} false; then :
11846  $as_echo_n "(cached) " >&6
11847else
11848  	  if test yes = "$cross_compiling"; then :
11849  lt_cv_dlopen_self=cross
11850else
11851  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11852  lt_status=$lt_dlunknown
11853  cat > conftest.$ac_ext <<_LT_EOF
11854#line $LINENO "configure"
11855#include "confdefs.h"
11856
11857#if HAVE_DLFCN_H
11858#include <dlfcn.h>
11859#endif
11860
11861#include <stdio.h>
11862
11863#ifdef RTLD_GLOBAL
11864#  define LT_DLGLOBAL		RTLD_GLOBAL
11865#else
11866#  ifdef DL_GLOBAL
11867#    define LT_DLGLOBAL		DL_GLOBAL
11868#  else
11869#    define LT_DLGLOBAL		0
11870#  endif
11871#endif
11872
11873/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11874   find out it does not work in some platform. */
11875#ifndef LT_DLLAZY_OR_NOW
11876#  ifdef RTLD_LAZY
11877#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11878#  else
11879#    ifdef DL_LAZY
11880#      define LT_DLLAZY_OR_NOW		DL_LAZY
11881#    else
11882#      ifdef RTLD_NOW
11883#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11884#      else
11885#        ifdef DL_NOW
11886#          define LT_DLLAZY_OR_NOW	DL_NOW
11887#        else
11888#          define LT_DLLAZY_OR_NOW	0
11889#        endif
11890#      endif
11891#    endif
11892#  endif
11893#endif
11894
11895/* When -fvisibility=hidden is used, assume the code has been annotated
11896   correspondingly for the symbols needed.  */
11897#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11898int fnord () __attribute__((visibility("default")));
11899#endif
11900
11901int fnord () { return 42; }
11902int main ()
11903{
11904  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11905  int status = $lt_dlunknown;
11906
11907  if (self)
11908    {
11909      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11910      else
11911        {
11912	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11913          else puts (dlerror ());
11914	}
11915      /* dlclose (self); */
11916    }
11917  else
11918    puts (dlerror ());
11919
11920  return status;
11921}
11922_LT_EOF
11923  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11924  (eval $ac_link) 2>&5
11925  ac_status=$?
11926  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11927  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11928    (./conftest; exit; ) >&5 2>/dev/null
11929    lt_status=$?
11930    case x$lt_status in
11931      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11932      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11933      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11934    esac
11935  else :
11936    # compilation failed
11937    lt_cv_dlopen_self=no
11938  fi
11939fi
11940rm -fr conftest*
11941
11942
11943fi
11944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11945$as_echo "$lt_cv_dlopen_self" >&6; }
11946
11947    if test yes = "$lt_cv_dlopen_self"; then
11948      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11949      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11950$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11951if ${lt_cv_dlopen_self_static+:} false; then :
11952  $as_echo_n "(cached) " >&6
11953else
11954  	  if test yes = "$cross_compiling"; then :
11955  lt_cv_dlopen_self_static=cross
11956else
11957  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11958  lt_status=$lt_dlunknown
11959  cat > conftest.$ac_ext <<_LT_EOF
11960#line $LINENO "configure"
11961#include "confdefs.h"
11962
11963#if HAVE_DLFCN_H
11964#include <dlfcn.h>
11965#endif
11966
11967#include <stdio.h>
11968
11969#ifdef RTLD_GLOBAL
11970#  define LT_DLGLOBAL		RTLD_GLOBAL
11971#else
11972#  ifdef DL_GLOBAL
11973#    define LT_DLGLOBAL		DL_GLOBAL
11974#  else
11975#    define LT_DLGLOBAL		0
11976#  endif
11977#endif
11978
11979/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11980   find out it does not work in some platform. */
11981#ifndef LT_DLLAZY_OR_NOW
11982#  ifdef RTLD_LAZY
11983#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11984#  else
11985#    ifdef DL_LAZY
11986#      define LT_DLLAZY_OR_NOW		DL_LAZY
11987#    else
11988#      ifdef RTLD_NOW
11989#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11990#      else
11991#        ifdef DL_NOW
11992#          define LT_DLLAZY_OR_NOW	DL_NOW
11993#        else
11994#          define LT_DLLAZY_OR_NOW	0
11995#        endif
11996#      endif
11997#    endif
11998#  endif
11999#endif
12000
12001/* When -fvisibility=hidden is used, assume the code has been annotated
12002   correspondingly for the symbols needed.  */
12003#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12004int fnord () __attribute__((visibility("default")));
12005#endif
12006
12007int fnord () { return 42; }
12008int main ()
12009{
12010  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12011  int status = $lt_dlunknown;
12012
12013  if (self)
12014    {
12015      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12016      else
12017        {
12018	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12019          else puts (dlerror ());
12020	}
12021      /* dlclose (self); */
12022    }
12023  else
12024    puts (dlerror ());
12025
12026  return status;
12027}
12028_LT_EOF
12029  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12030  (eval $ac_link) 2>&5
12031  ac_status=$?
12032  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12033  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12034    (./conftest; exit; ) >&5 2>/dev/null
12035    lt_status=$?
12036    case x$lt_status in
12037      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12038      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12039      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12040    esac
12041  else :
12042    # compilation failed
12043    lt_cv_dlopen_self_static=no
12044  fi
12045fi
12046rm -fr conftest*
12047
12048
12049fi
12050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12051$as_echo "$lt_cv_dlopen_self_static" >&6; }
12052    fi
12053
12054    CPPFLAGS=$save_CPPFLAGS
12055    LDFLAGS=$save_LDFLAGS
12056    LIBS=$save_LIBS
12057    ;;
12058  esac
12059
12060  case $lt_cv_dlopen_self in
12061  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12062  *) enable_dlopen_self=unknown ;;
12063  esac
12064
12065  case $lt_cv_dlopen_self_static in
12066  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12067  *) enable_dlopen_self_static=unknown ;;
12068  esac
12069fi
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087striplib=
12088old_striplib=
12089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12090$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12091if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12092  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12093  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12094  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12095$as_echo "yes" >&6; }
12096else
12097# FIXME - insert some real tests, host_os isn't really good enough
12098  case $host_os in
12099  darwin*)
12100    if test -n "$STRIP"; then
12101      striplib="$STRIP -x"
12102      old_striplib="$STRIP -S"
12103      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12104$as_echo "yes" >&6; }
12105    else
12106      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12107$as_echo "no" >&6; }
12108    fi
12109    ;;
12110  *)
12111    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12112$as_echo "no" >&6; }
12113    ;;
12114  esac
12115fi
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128  # Report what library types will actually be built
12129  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12130$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12131  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12132$as_echo "$can_build_shared" >&6; }
12133
12134  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12135$as_echo_n "checking whether to build shared libraries... " >&6; }
12136  test no = "$can_build_shared" && enable_shared=no
12137
12138  # On AIX, shared libraries and static libraries use the same namespace, and
12139  # are all built from PIC.
12140  case $host_os in
12141  aix3*)
12142    test yes = "$enable_shared" && enable_static=no
12143    if test -n "$RANLIB"; then
12144      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12145      postinstall_cmds='$RANLIB $lib'
12146    fi
12147    ;;
12148
12149  aix[4-9]*)
12150    if test ia64 != "$host_cpu"; then
12151      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12152      yes,aix,yes) ;;			# shared object as lib.so file only
12153      yes,svr4,*) ;;			# shared object as lib.so archive member only
12154      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12155      esac
12156    fi
12157    ;;
12158  esac
12159  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12160$as_echo "$enable_shared" >&6; }
12161
12162  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12163$as_echo_n "checking whether to build static libraries... " >&6; }
12164  # Make sure either enable_shared or enable_static is yes.
12165  test yes = "$enable_shared" || enable_static=yes
12166  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12167$as_echo "$enable_static" >&6; }
12168
12169
12170
12171
12172fi
12173ac_ext=c
12174ac_cpp='$CPP $CPPFLAGS'
12175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12177ac_compiler_gnu=$ac_cv_c_compiler_gnu
12178
12179CC=$lt_save_CC
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195        ac_config_commands="$ac_config_commands libtool"
12196
12197
12198
12199
12200# Only expand once:
12201
12202
12203
12204ac_ext=c
12205ac_cpp='$CPP $CPPFLAGS'
12206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12208ac_compiler_gnu=$ac_cv_c_compiler_gnu
12209
12210
12211for ac_prog in gawk mawk nawk awk
12212do
12213  # Extract the first word of "$ac_prog", so it can be a program name with args.
12214set dummy $ac_prog; ac_word=$2
12215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12216$as_echo_n "checking for $ac_word... " >&6; }
12217if ${ac_cv_prog_AWK+:} false; then :
12218  $as_echo_n "(cached) " >&6
12219else
12220  if test -n "$AWK"; then
12221  ac_cv_prog_AWK="$AWK" # Let the user override the test.
12222else
12223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12224for as_dir in $PATH
12225do
12226  IFS=$as_save_IFS
12227  test -z "$as_dir" && as_dir=.
12228    for ac_exec_ext in '' $ac_executable_extensions; do
12229  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12230    ac_cv_prog_AWK="$ac_prog"
12231    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12232    break 2
12233  fi
12234done
12235  done
12236IFS=$as_save_IFS
12237
12238fi
12239fi
12240AWK=$ac_cv_prog_AWK
12241if test -n "$AWK"; then
12242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
12243$as_echo "$AWK" >&6; }
12244else
12245  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12246$as_echo "no" >&6; }
12247fi
12248
12249
12250  test -n "$AWK" && break
12251done
12252
12253ac_ext=c
12254ac_cpp='$CPP $CPPFLAGS'
12255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12257ac_compiler_gnu=$ac_cv_c_compiler_gnu
12258if test -n "$ac_tool_prefix"; then
12259  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12260set dummy ${ac_tool_prefix}gcc; ac_word=$2
12261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12262$as_echo_n "checking for $ac_word... " >&6; }
12263if ${ac_cv_prog_CC+:} false; then :
12264  $as_echo_n "(cached) " >&6
12265else
12266  if test -n "$CC"; then
12267  ac_cv_prog_CC="$CC" # Let the user override the test.
12268else
12269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12270for as_dir in $PATH
12271do
12272  IFS=$as_save_IFS
12273  test -z "$as_dir" && as_dir=.
12274    for ac_exec_ext in '' $ac_executable_extensions; do
12275  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12276    ac_cv_prog_CC="${ac_tool_prefix}gcc"
12277    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12278    break 2
12279  fi
12280done
12281  done
12282IFS=$as_save_IFS
12283
12284fi
12285fi
12286CC=$ac_cv_prog_CC
12287if test -n "$CC"; then
12288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12289$as_echo "$CC" >&6; }
12290else
12291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12292$as_echo "no" >&6; }
12293fi
12294
12295
12296fi
12297if test -z "$ac_cv_prog_CC"; then
12298  ac_ct_CC=$CC
12299  # Extract the first word of "gcc", so it can be a program name with args.
12300set dummy gcc; ac_word=$2
12301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12302$as_echo_n "checking for $ac_word... " >&6; }
12303if ${ac_cv_prog_ac_ct_CC+:} false; then :
12304  $as_echo_n "(cached) " >&6
12305else
12306  if test -n "$ac_ct_CC"; then
12307  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12308else
12309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12310for as_dir in $PATH
12311do
12312  IFS=$as_save_IFS
12313  test -z "$as_dir" && as_dir=.
12314    for ac_exec_ext in '' $ac_executable_extensions; do
12315  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12316    ac_cv_prog_ac_ct_CC="gcc"
12317    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12318    break 2
12319  fi
12320done
12321  done
12322IFS=$as_save_IFS
12323
12324fi
12325fi
12326ac_ct_CC=$ac_cv_prog_ac_ct_CC
12327if test -n "$ac_ct_CC"; then
12328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12329$as_echo "$ac_ct_CC" >&6; }
12330else
12331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12332$as_echo "no" >&6; }
12333fi
12334
12335  if test "x$ac_ct_CC" = x; then
12336    CC=""
12337  else
12338    case $cross_compiling:$ac_tool_warned in
12339yes:)
12340{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12341$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12342ac_tool_warned=yes ;;
12343esac
12344    CC=$ac_ct_CC
12345  fi
12346else
12347  CC="$ac_cv_prog_CC"
12348fi
12349
12350if test -z "$CC"; then
12351          if test -n "$ac_tool_prefix"; then
12352    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12353set dummy ${ac_tool_prefix}cc; ac_word=$2
12354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12355$as_echo_n "checking for $ac_word... " >&6; }
12356if ${ac_cv_prog_CC+:} false; then :
12357  $as_echo_n "(cached) " >&6
12358else
12359  if test -n "$CC"; then
12360  ac_cv_prog_CC="$CC" # Let the user override the test.
12361else
12362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12363for as_dir in $PATH
12364do
12365  IFS=$as_save_IFS
12366  test -z "$as_dir" && as_dir=.
12367    for ac_exec_ext in '' $ac_executable_extensions; do
12368  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12369    ac_cv_prog_CC="${ac_tool_prefix}cc"
12370    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12371    break 2
12372  fi
12373done
12374  done
12375IFS=$as_save_IFS
12376
12377fi
12378fi
12379CC=$ac_cv_prog_CC
12380if test -n "$CC"; then
12381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12382$as_echo "$CC" >&6; }
12383else
12384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12385$as_echo "no" >&6; }
12386fi
12387
12388
12389  fi
12390fi
12391if test -z "$CC"; then
12392  # Extract the first word of "cc", so it can be a program name with args.
12393set dummy cc; ac_word=$2
12394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12395$as_echo_n "checking for $ac_word... " >&6; }
12396if ${ac_cv_prog_CC+:} false; then :
12397  $as_echo_n "(cached) " >&6
12398else
12399  if test -n "$CC"; then
12400  ac_cv_prog_CC="$CC" # Let the user override the test.
12401else
12402  ac_prog_rejected=no
12403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12404for as_dir in $PATH
12405do
12406  IFS=$as_save_IFS
12407  test -z "$as_dir" && as_dir=.
12408    for ac_exec_ext in '' $ac_executable_extensions; do
12409  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12410    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12411       ac_prog_rejected=yes
12412       continue
12413     fi
12414    ac_cv_prog_CC="cc"
12415    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12416    break 2
12417  fi
12418done
12419  done
12420IFS=$as_save_IFS
12421
12422if test $ac_prog_rejected = yes; then
12423  # We found a bogon in the path, so make sure we never use it.
12424  set dummy $ac_cv_prog_CC
12425  shift
12426  if test $# != 0; then
12427    # We chose a different compiler from the bogus one.
12428    # However, it has the same basename, so the bogon will be chosen
12429    # first if we set CC to just the basename; use the full file name.
12430    shift
12431    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12432  fi
12433fi
12434fi
12435fi
12436CC=$ac_cv_prog_CC
12437if test -n "$CC"; then
12438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12439$as_echo "$CC" >&6; }
12440else
12441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12442$as_echo "no" >&6; }
12443fi
12444
12445
12446fi
12447if test -z "$CC"; then
12448  if test -n "$ac_tool_prefix"; then
12449  for ac_prog in cl.exe
12450  do
12451    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12452set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12454$as_echo_n "checking for $ac_word... " >&6; }
12455if ${ac_cv_prog_CC+:} false; then :
12456  $as_echo_n "(cached) " >&6
12457else
12458  if test -n "$CC"; then
12459  ac_cv_prog_CC="$CC" # Let the user override the test.
12460else
12461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12462for as_dir in $PATH
12463do
12464  IFS=$as_save_IFS
12465  test -z "$as_dir" && as_dir=.
12466    for ac_exec_ext in '' $ac_executable_extensions; do
12467  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12468    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12469    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12470    break 2
12471  fi
12472done
12473  done
12474IFS=$as_save_IFS
12475
12476fi
12477fi
12478CC=$ac_cv_prog_CC
12479if test -n "$CC"; then
12480  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12481$as_echo "$CC" >&6; }
12482else
12483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12484$as_echo "no" >&6; }
12485fi
12486
12487
12488    test -n "$CC" && break
12489  done
12490fi
12491if test -z "$CC"; then
12492  ac_ct_CC=$CC
12493  for ac_prog in cl.exe
12494do
12495  # Extract the first word of "$ac_prog", so it can be a program name with args.
12496set dummy $ac_prog; ac_word=$2
12497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12498$as_echo_n "checking for $ac_word... " >&6; }
12499if ${ac_cv_prog_ac_ct_CC+:} false; then :
12500  $as_echo_n "(cached) " >&6
12501else
12502  if test -n "$ac_ct_CC"; then
12503  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12504else
12505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12506for as_dir in $PATH
12507do
12508  IFS=$as_save_IFS
12509  test -z "$as_dir" && as_dir=.
12510    for ac_exec_ext in '' $ac_executable_extensions; do
12511  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12512    ac_cv_prog_ac_ct_CC="$ac_prog"
12513    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12514    break 2
12515  fi
12516done
12517  done
12518IFS=$as_save_IFS
12519
12520fi
12521fi
12522ac_ct_CC=$ac_cv_prog_ac_ct_CC
12523if test -n "$ac_ct_CC"; then
12524  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12525$as_echo "$ac_ct_CC" >&6; }
12526else
12527  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12528$as_echo "no" >&6; }
12529fi
12530
12531
12532  test -n "$ac_ct_CC" && break
12533done
12534
12535  if test "x$ac_ct_CC" = x; then
12536    CC=""
12537  else
12538    case $cross_compiling:$ac_tool_warned in
12539yes:)
12540{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12541$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12542ac_tool_warned=yes ;;
12543esac
12544    CC=$ac_ct_CC
12545  fi
12546fi
12547
12548fi
12549
12550
12551test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12552$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12553as_fn_error $? "no acceptable C compiler found in \$PATH
12554See \`config.log' for more details" "$LINENO" 5; }
12555
12556# Provide some information about the compiler.
12557$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12558set X $ac_compile
12559ac_compiler=$2
12560for ac_option in --version -v -V -qversion; do
12561  { { ac_try="$ac_compiler $ac_option >&5"
12562case "(($ac_try" in
12563  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12564  *) ac_try_echo=$ac_try;;
12565esac
12566eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12567$as_echo "$ac_try_echo"; } >&5
12568  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12569  ac_status=$?
12570  if test -s conftest.err; then
12571    sed '10a\
12572... rest of stderr output deleted ...
12573         10q' conftest.err >conftest.er1
12574    cat conftest.er1 >&5
12575  fi
12576  rm -f conftest.er1 conftest.err
12577  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12578  test $ac_status = 0; }
12579done
12580
12581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12582$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12583if ${ac_cv_c_compiler_gnu+:} false; then :
12584  $as_echo_n "(cached) " >&6
12585else
12586  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12587/* end confdefs.h.  */
12588
12589int
12590main ()
12591{
12592#ifndef __GNUC__
12593       choke me
12594#endif
12595
12596  ;
12597  return 0;
12598}
12599_ACEOF
12600if ac_fn_c_try_compile "$LINENO"; then :
12601  ac_compiler_gnu=yes
12602else
12603  ac_compiler_gnu=no
12604fi
12605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12606ac_cv_c_compiler_gnu=$ac_compiler_gnu
12607
12608fi
12609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12610$as_echo "$ac_cv_c_compiler_gnu" >&6; }
12611if test $ac_compiler_gnu = yes; then
12612  GCC=yes
12613else
12614  GCC=
12615fi
12616ac_test_CFLAGS=${CFLAGS+set}
12617ac_save_CFLAGS=$CFLAGS
12618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12619$as_echo_n "checking whether $CC accepts -g... " >&6; }
12620if ${ac_cv_prog_cc_g+:} false; then :
12621  $as_echo_n "(cached) " >&6
12622else
12623  ac_save_c_werror_flag=$ac_c_werror_flag
12624   ac_c_werror_flag=yes
12625   ac_cv_prog_cc_g=no
12626   CFLAGS="-g"
12627   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12628/* end confdefs.h.  */
12629
12630int
12631main ()
12632{
12633
12634  ;
12635  return 0;
12636}
12637_ACEOF
12638if ac_fn_c_try_compile "$LINENO"; then :
12639  ac_cv_prog_cc_g=yes
12640else
12641  CFLAGS=""
12642      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12643/* end confdefs.h.  */
12644
12645int
12646main ()
12647{
12648
12649  ;
12650  return 0;
12651}
12652_ACEOF
12653if ac_fn_c_try_compile "$LINENO"; then :
12654
12655else
12656  ac_c_werror_flag=$ac_save_c_werror_flag
12657	 CFLAGS="-g"
12658	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12659/* end confdefs.h.  */
12660
12661int
12662main ()
12663{
12664
12665  ;
12666  return 0;
12667}
12668_ACEOF
12669if ac_fn_c_try_compile "$LINENO"; then :
12670  ac_cv_prog_cc_g=yes
12671fi
12672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12673fi
12674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12675fi
12676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12677   ac_c_werror_flag=$ac_save_c_werror_flag
12678fi
12679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12680$as_echo "$ac_cv_prog_cc_g" >&6; }
12681if test "$ac_test_CFLAGS" = set; then
12682  CFLAGS=$ac_save_CFLAGS
12683elif test $ac_cv_prog_cc_g = yes; then
12684  if test "$GCC" = yes; then
12685    CFLAGS="-g -O2"
12686  else
12687    CFLAGS="-g"
12688  fi
12689else
12690  if test "$GCC" = yes; then
12691    CFLAGS="-O2"
12692  else
12693    CFLAGS=
12694  fi
12695fi
12696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12697$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12698if ${ac_cv_prog_cc_c89+:} false; then :
12699  $as_echo_n "(cached) " >&6
12700else
12701  ac_cv_prog_cc_c89=no
12702ac_save_CC=$CC
12703cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12704/* end confdefs.h.  */
12705#include <stdarg.h>
12706#include <stdio.h>
12707struct stat;
12708/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12709struct buf { int x; };
12710FILE * (*rcsopen) (struct buf *, struct stat *, int);
12711static char *e (p, i)
12712     char **p;
12713     int i;
12714{
12715  return p[i];
12716}
12717static char *f (char * (*g) (char **, int), char **p, ...)
12718{
12719  char *s;
12720  va_list v;
12721  va_start (v,p);
12722  s = g (p, va_arg (v,int));
12723  va_end (v);
12724  return s;
12725}
12726
12727/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12728   function prototypes and stuff, but not '\xHH' hex character constants.
12729   These don't provoke an error unfortunately, instead are silently treated
12730   as 'x'.  The following induces an error, until -std is added to get
12731   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12732   array size at least.  It's necessary to write '\x00'==0 to get something
12733   that's true only with -std.  */
12734int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12735
12736/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12737   inside strings and character constants.  */
12738#define FOO(x) 'x'
12739int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12740
12741int test (int i, double x);
12742struct s1 {int (*f) (int a);};
12743struct s2 {int (*f) (double a);};
12744int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12745int argc;
12746char **argv;
12747int
12748main ()
12749{
12750return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12751  ;
12752  return 0;
12753}
12754_ACEOF
12755for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12756	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12757do
12758  CC="$ac_save_CC $ac_arg"
12759  if ac_fn_c_try_compile "$LINENO"; then :
12760  ac_cv_prog_cc_c89=$ac_arg
12761fi
12762rm -f core conftest.err conftest.$ac_objext
12763  test "x$ac_cv_prog_cc_c89" != "xno" && break
12764done
12765rm -f conftest.$ac_ext
12766CC=$ac_save_CC
12767
12768fi
12769# AC_CACHE_VAL
12770case "x$ac_cv_prog_cc_c89" in
12771  x)
12772    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12773$as_echo "none needed" >&6; } ;;
12774  xno)
12775    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12776$as_echo "unsupported" >&6; } ;;
12777  *)
12778    CC="$CC $ac_cv_prog_cc_c89"
12779    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12780$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12781esac
12782if test "x$ac_cv_prog_cc_c89" != xno; then :
12783
12784fi
12785
12786ac_ext=c
12787ac_cpp='$CPP $CPPFLAGS'
12788ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12789ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12790ac_compiler_gnu=$ac_cv_c_compiler_gnu
12791
12792ac_ext=c
12793ac_cpp='$CPP $CPPFLAGS'
12794ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12795ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12796ac_compiler_gnu=$ac_cv_c_compiler_gnu
12797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
12798$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
12799if ${am_cv_prog_cc_c_o+:} false; then :
12800  $as_echo_n "(cached) " >&6
12801else
12802  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12803/* end confdefs.h.  */
12804
12805int
12806main ()
12807{
12808
12809  ;
12810  return 0;
12811}
12812_ACEOF
12813  # Make sure it works both with $CC and with simple cc.
12814  # Following AC_PROG_CC_C_O, we do the test twice because some
12815  # compilers refuse to overwrite an existing .o file with -o,
12816  # though they will create one.
12817  am_cv_prog_cc_c_o=yes
12818  for am_i in 1 2; do
12819    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
12820   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
12821   ac_status=$?
12822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823   (exit $ac_status); } \
12824         && test -f conftest2.$ac_objext; then
12825      : OK
12826    else
12827      am_cv_prog_cc_c_o=no
12828      break
12829    fi
12830  done
12831  rm -f core conftest*
12832  unset am_i
12833fi
12834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
12835$as_echo "$am_cv_prog_cc_c_o" >&6; }
12836if test "$am_cv_prog_cc_c_o" != yes; then
12837   # Losing compiler, so override with the script.
12838   # FIXME: It is wrong to rewrite CC.
12839   # But if we don't then we get into trouble of one sort or another.
12840   # A longer-term fix would be to have automake use am__CC in this case,
12841   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12842   CC="$am_aux_dir/compile $CC"
12843fi
12844ac_ext=c
12845ac_cpp='$CPP $CPPFLAGS'
12846ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12847ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12848ac_compiler_gnu=$ac_cv_c_compiler_gnu
12849
12850
12851depcc="$CC"   am_compiler_list=
12852
12853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12854$as_echo_n "checking dependency style of $depcc... " >&6; }
12855if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12856  $as_echo_n "(cached) " >&6
12857else
12858  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12859  # We make a subdir and do the tests there.  Otherwise we can end up
12860  # making bogus files that we don't know about and never remove.  For
12861  # instance it was reported that on HP-UX the gcc test will end up
12862  # making a dummy file named 'D' -- because '-MD' means "put the output
12863  # in D".
12864  rm -rf conftest.dir
12865  mkdir conftest.dir
12866  # Copy depcomp to subdir because otherwise we won't find it if we're
12867  # using a relative directory.
12868  cp "$am_depcomp" conftest.dir
12869  cd conftest.dir
12870  # We will build objects and dependencies in a subdirectory because
12871  # it helps to detect inapplicable dependency modes.  For instance
12872  # both Tru64's cc and ICC support -MD to output dependencies as a
12873  # side effect of compilation, but ICC will put the dependencies in
12874  # the current directory while Tru64 will put them in the object
12875  # directory.
12876  mkdir sub
12877
12878  am_cv_CC_dependencies_compiler_type=none
12879  if test "$am_compiler_list" = ""; then
12880     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12881  fi
12882  am__universal=false
12883  case " $depcc " in #(
12884     *\ -arch\ *\ -arch\ *) am__universal=true ;;
12885     esac
12886
12887  for depmode in $am_compiler_list; do
12888    # Setup a source with many dependencies, because some compilers
12889    # like to wrap large dependency lists on column 80 (with \), and
12890    # we should not choose a depcomp mode which is confused by this.
12891    #
12892    # We need to recreate these files for each test, as the compiler may
12893    # overwrite some of them when testing with obscure command lines.
12894    # This happens at least with the AIX C compiler.
12895    : > sub/conftest.c
12896    for i in 1 2 3 4 5 6; do
12897      echo '#include "conftst'$i'.h"' >> sub/conftest.c
12898      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12899      # Solaris 10 /bin/sh.
12900      echo '/* dummy */' > sub/conftst$i.h
12901    done
12902    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12903
12904    # We check with '-c' and '-o' for the sake of the "dashmstdout"
12905    # mode.  It turns out that the SunPro C++ compiler does not properly
12906    # handle '-M -o', and we need to detect this.  Also, some Intel
12907    # versions had trouble with output in subdirs.
12908    am__obj=sub/conftest.${OBJEXT-o}
12909    am__minus_obj="-o $am__obj"
12910    case $depmode in
12911    gcc)
12912      # This depmode causes a compiler race in universal mode.
12913      test "$am__universal" = false || continue
12914      ;;
12915    nosideeffect)
12916      # After this tag, mechanisms are not by side-effect, so they'll
12917      # only be used when explicitly requested.
12918      if test "x$enable_dependency_tracking" = xyes; then
12919	continue
12920      else
12921	break
12922      fi
12923      ;;
12924    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12925      # This compiler won't grok '-c -o', but also, the minuso test has
12926      # not run yet.  These depmodes are late enough in the game, and
12927      # so weak that their functioning should not be impacted.
12928      am__obj=conftest.${OBJEXT-o}
12929      am__minus_obj=
12930      ;;
12931    none) break ;;
12932    esac
12933    if depmode=$depmode \
12934       source=sub/conftest.c object=$am__obj \
12935       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12936       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12937         >/dev/null 2>conftest.err &&
12938       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12939       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12940       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12941       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12942      # icc doesn't choke on unknown options, it will just issue warnings
12943      # or remarks (even with -Werror).  So we grep stderr for any message
12944      # that says an option was ignored or not supported.
12945      # When given -MP, icc 7.0 and 7.1 complain thusly:
12946      #   icc: Command line warning: ignoring option '-M'; no argument required
12947      # The diagnosis changed in icc 8.0:
12948      #   icc: Command line remark: option '-MP' not supported
12949      if (grep 'ignoring option' conftest.err ||
12950          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12951        am_cv_CC_dependencies_compiler_type=$depmode
12952        break
12953      fi
12954    fi
12955  done
12956
12957  cd ..
12958  rm -rf conftest.dir
12959else
12960  am_cv_CC_dependencies_compiler_type=none
12961fi
12962
12963fi
12964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12965$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12966CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12967
12968 if
12969  test "x$enable_dependency_tracking" != xno \
12970  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12971  am__fastdepCC_TRUE=
12972  am__fastdepCC_FALSE='#'
12973else
12974  am__fastdepCC_TRUE='#'
12975  am__fastdepCC_FALSE=
12976fi
12977
12978
12979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
12980$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
12981set x ${MAKE-make}
12982ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
12983if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
12984  $as_echo_n "(cached) " >&6
12985else
12986  cat >conftest.make <<\_ACEOF
12987SHELL = /bin/sh
12988all:
12989	@echo '@@@%%%=$(MAKE)=@@@%%%'
12990_ACEOF
12991# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
12992case `${MAKE-make} -f conftest.make 2>/dev/null` in
12993  *@@@%%%=?*=@@@%%%*)
12994    eval ac_cv_prog_make_${ac_make}_set=yes;;
12995  *)
12996    eval ac_cv_prog_make_${ac_make}_set=no;;
12997esac
12998rm -f conftest.make
12999fi
13000if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
13001  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13002$as_echo "yes" >&6; }
13003  SET_MAKE=
13004else
13005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13006$as_echo "no" >&6; }
13007  SET_MAKE="MAKE=${MAKE-make}"
13008fi
13009
13010
13011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13012$as_echo_n "checking for a sed that does not truncate output... " >&6; }
13013if ${ac_cv_path_SED+:} false; then :
13014  $as_echo_n "(cached) " >&6
13015else
13016            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13017     for ac_i in 1 2 3 4 5 6 7; do
13018       ac_script="$ac_script$as_nl$ac_script"
13019     done
13020     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13021     { ac_script=; unset ac_script;}
13022     if test -z "$SED"; then
13023  ac_path_SED_found=false
13024  # Loop through the user's path and test for each of PROGNAME-LIST
13025  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13026for as_dir in $PATH
13027do
13028  IFS=$as_save_IFS
13029  test -z "$as_dir" && as_dir=.
13030    for ac_prog in sed gsed; do
13031    for ac_exec_ext in '' $ac_executable_extensions; do
13032      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
13033      as_fn_executable_p "$ac_path_SED" || continue
13034# Check for GNU ac_path_SED and select it if it is found.
13035  # Check for GNU $ac_path_SED
13036case `"$ac_path_SED" --version 2>&1` in
13037*GNU*)
13038  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
13039*)
13040  ac_count=0
13041  $as_echo_n 0123456789 >"conftest.in"
13042  while :
13043  do
13044    cat "conftest.in" "conftest.in" >"conftest.tmp"
13045    mv "conftest.tmp" "conftest.in"
13046    cp "conftest.in" "conftest.nl"
13047    $as_echo '' >> "conftest.nl"
13048    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
13049    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13050    as_fn_arith $ac_count + 1 && ac_count=$as_val
13051    if test $ac_count -gt ${ac_path_SED_max-0}; then
13052      # Best one so far, save it but keep looking for a better one
13053      ac_cv_path_SED="$ac_path_SED"
13054      ac_path_SED_max=$ac_count
13055    fi
13056    # 10*(2^10) chars as input seems more than enough
13057    test $ac_count -gt 10 && break
13058  done
13059  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13060esac
13061
13062      $ac_path_SED_found && break 3
13063    done
13064  done
13065  done
13066IFS=$as_save_IFS
13067  if test -z "$ac_cv_path_SED"; then
13068    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
13069  fi
13070else
13071  ac_cv_path_SED=$SED
13072fi
13073
13074fi
13075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13076$as_echo "$ac_cv_path_SED" >&6; }
13077 SED="$ac_cv_path_SED"
13078  rm -f conftest.sed
13079
13080
13081for ac_header in stdlib.h string.h sys/time.h
13082do :
13083  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13084ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13085if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13086  cat >>confdefs.h <<_ACEOF
13087#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13088_ACEOF
13089
13090fi
13091
13092done
13093
13094
13095
13096
13097# HACK: We used to support --with-gap-root, but this got renamed to
13098# --with-gaproot for compatibility with other packages (io, orb, cvec,
13099# ...). But existing build scripts may use the old name, so we translate
13100# it to the new name here.
13101# Note: configure warns if --with-gap-root is used, calling
13102# it an unrecognized option.
13103if test "${with_gaproot+set}" != set; then :
13104  if test "${with_gap_root+set}" = set; then :
13105    with_gaproot=$with_gap_root
13106  fi
13107fi
13108
13109
13110  ac_ext=c
13111ac_cpp='$CPP $CPPFLAGS'
13112ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13113ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13114ac_compiler_gnu=$ac_cv_c_compiler_gnu
13115
13116
13117  # Make sure CDPATH is portably set to a sensible value
13118  CDPATH=${ZSH_VERSION+.}:
13119
13120  GAP_CPPFLAGS=""
13121
13122  ######################################
13123  # Find the GAP root directory by
13124  # checking for the sysinfo.gap file
13125  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GAP root directory" >&5
13126$as_echo_n "checking for GAP root directory... " >&6; }
13127  GAPROOT="../.."
13128
13129  #Allow the user to specify the location of GAP
13130  #
13131
13132# Check whether --with-gaproot was given.
13133if test "${with_gaproot+set}" = set; then :
13134  withval=$with_gaproot; GAPROOT="$withval"
13135fi
13136
13137
13138  # Convert the path to absolute
13139  GAPROOT=`cd $GAPROOT > /dev/null 2>&1 && pwd`
13140
13141  if test -e ${GAPROOT}/sysinfo.gap; then
13142    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${GAPROOT}" >&5
13143$as_echo "${GAPROOT}" >&6; }
13144  else
13145    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
13146$as_echo "Not found" >&6; }
13147
13148    echo ""
13149    echo "********************************************************************"
13150    echo "  ERROR"
13151    echo ""
13152    echo "  Cannot find your GAP installation. Please specify the location of"
13153    echo "  GAP's root directory using --with-gaproot=<path>"
13154    echo ""
13155    echo "  The GAP root directory (as far as this package is concerned) is"
13156    echo "  the one containing the file sysinfo.gap"
13157    echo "********************************************************************"
13158    echo ""
13159
13160    as_fn_error $? "Unable to find GAP root directory" "$LINENO" 5
13161  fi
13162
13163  #####################################
13164  # Now find the architecture
13165
13166  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GAP architecture" >&5
13167$as_echo_n "checking for GAP architecture... " >&6; }
13168  GAPARCH="Unknown"
13169  . $GAPROOT/sysinfo.gap
13170  if test "x$GAParch" != "x"; then
13171    GAPARCH=$GAParch
13172  fi
13173
13174  if test "x$GAPARCH" = "xUnknown" ; then
13175    echo ""
13176    echo "********************************************************************"
13177    echo "  ERROR"
13178    echo ""
13179    echo "  Found a GAP installation at $GAPROOT but could not find"
13180    echo "  information about GAP's architecture in the file"
13181    echo "    ${GAPROOT}/sysinfo.gap ."
13182    echo "  This file should be present: please check your GAP installation."
13183    echo "********************************************************************"
13184    echo ""
13185
13186    as_fn_error $? "Unable to find plausible GAParch information." "$LINENO" 5
13187  fi
13188
13189
13190  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GAP >= 4.9" >&5
13191$as_echo_n "checking for GAP >= 4.9... " >&6; }
13192  # test if this GAP >= 4.9
13193  if test "x$GAP_CPPFLAGS" != x; then
13194    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13195$as_echo "yes" >&6; }
13196  else
13197    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13198$as_echo "no" >&6; }
13199    #####################################
13200    # Now check for the GAP header files
13201
13202    bad=0
13203    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GAP include files" >&5
13204$as_echo_n "checking for GAP include files... " >&6; }
13205    if test -r $GAPROOT/src/compiled.h; then
13206      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GAPROOT/src/compiled.h" >&5
13207$as_echo "$GAPROOT/src/compiled.h" >&6; }
13208    else
13209      { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
13210$as_echo "Not found" >&6; }
13211      bad=1
13212    fi
13213    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GAP config.h" >&5
13214$as_echo_n "checking for GAP config.h... " >&6; }
13215    if test -r $GAPROOT/bin/$GAPARCH/config.h; then
13216      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GAPROOT/bin/$GAPARCH/config.h" >&5
13217$as_echo "$GAPROOT/bin/$GAPARCH/config.h" >&6; }
13218    else
13219      { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
13220$as_echo "Not found" >&6; }
13221      bad=1
13222    fi
13223
13224    if test "x$bad" = "x1"; then
13225      echo ""
13226      echo "********************************************************************"
13227      echo "  ERROR"
13228      echo ""
13229      echo "  Failed to find the GAP source header files in src/ and"
13230      echo "  GAP's config.h in the architecture dependend directory"
13231      echo ""
13232      echo "  The kernel build process expects to find the normal GAP "
13233      echo "  root directory structure as it is after building GAP itself, and"
13234      echo "  in particular the files"
13235      echo "      <gaproot>/sysinfo.gap"
13236      echo "      <gaproot>/src/<includes>"
13237      echo "  and <gaproot>/bin/<architecture>/bin/config.h."
13238      echo "  Please make sure that your GAP root directory structure"
13239      echo "  conforms to this layout, or give the correct GAP root using"
13240      echo "  --with-gaproot=<path>"
13241      echo "********************************************************************"
13242      echo ""
13243      as_fn_error $? "Unable to find GAP include files in /src subdirectory" "$LINENO" 5
13244    fi
13245
13246    ARCHPATH=$GAPROOT/bin/$GAPARCH
13247    GAP_CPPFLAGS="-I$GAPROOT -iquote $GAPROOT/src -I$ARCHPATH"
13248
13249    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GAP's gmp.h location" >&5
13250$as_echo_n "checking for GAP's gmp.h location... " >&6; }
13251    if test -r "$ARCHPATH/extern/gmp/include/gmp.h"; then
13252      GAP_CPPFLAGS="$GAP_CPPFLAGS -I$ARCHPATH/extern/gmp/include"
13253      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARCHPATH/extern/gmp/include/gmp.h" >&5
13254$as_echo "$ARCHPATH/extern/gmp/include/gmp.h" >&6; }
13255    else
13256      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, GAP was compiled without its own GMP" >&5
13257$as_echo "not found, GAP was compiled without its own GMP" >&6; }
13258    fi
13259  fi
13260
13261
13262
13263
13264
13265
13266
13267
13268  ac_ext=c
13269ac_cpp='$CPP $CPPFLAGS'
13270ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13271ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13272ac_compiler_gnu=$ac_cv_c_compiler_gnu
13273
13274
13275
13276
13277# The cast to long int works around a bug in the HP C Compiler
13278# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13279# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13280# This bug is HP SR number 8606223364.
13281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
13282$as_echo_n "checking size of void *... " >&6; }
13283if ${ac_cv_sizeof_void_p+:} false; then :
13284  $as_echo_n "(cached) " >&6
13285else
13286  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
13287
13288else
13289  if test "$ac_cv_type_void_p" = yes; then
13290     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13291$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13292as_fn_error 77 "cannot compute sizeof (void *)
13293See \`config.log' for more details" "$LINENO" 5; }
13294   else
13295     ac_cv_sizeof_void_p=0
13296   fi
13297fi
13298
13299fi
13300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
13301$as_echo "$ac_cv_sizeof_void_p" >&6; }
13302
13303
13304
13305cat >>confdefs.h <<_ACEOF
13306#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13307_ACEOF
13308
13309
13310
13311
13312
13313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ABI bit size" >&5
13314$as_echo_n "checking ABI bit size... " >&6; }
13315if test "x$ABI" = "x" ;  then
13316  if test $ac_cv_sizeof_void_p = 8; then
13317    ABI="64"
13318  else
13319    ABI="32"
13320  fi
13321  ABI_CFLAGS=""
13322elif test "$ABI" = "64"; then
13323  if test $ac_cv_sizeof_void_p = 4; then
13324    as_fn_error $? " ABI=64 cannot be used on a 32-bit system.
13325                   Please replace this value with 32 and retry configure.
13326                   If you think this error is wrong, email
13327                   support@gap-system.org with full details." "$LINENO" 5
13328  else
13329    ABI_CFLAGS="-m64"
13330  fi
13331elif test "$ABI" = "32"; then
13332  ABI_CFLAGS="-m32"
13333else
13334  as_fn_error $? " $ABI is not a supported value for ABI. Please use ABI=64
13335                 or 32, or leave it unset." "$LINENO" 5
13336fi
13337
13338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ABI" >&5
13339$as_echo "$ABI" >&6; }
13340
13341
13342
13343
13344
13345  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
13346$as_echo_n "checking for unsigned long long int... " >&6; }
13347if ${ac_cv_type_unsigned_long_long_int+:} false; then :
13348  $as_echo_n "(cached) " >&6
13349else
13350  ac_cv_type_unsigned_long_long_int=yes
13351     if test "x${ac_cv_prog_cc_c99-no}" = xno; then
13352       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13353/* end confdefs.h.  */
13354
13355  /* For now, do not test the preprocessor; as of 2007 there are too many
13356         implementations with broken preprocessors.  Perhaps this can
13357         be revisited in 2012.  In the meantime, code should not expect
13358         #if to work with literals wider than 32 bits.  */
13359      /* Test literals.  */
13360      long long int ll = 9223372036854775807ll;
13361      long long int nll = -9223372036854775807LL;
13362      unsigned long long int ull = 18446744073709551615ULL;
13363      /* Test constant expressions.   */
13364      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
13365                     ? 1 : -1)];
13366      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
13367                     ? 1 : -1)];
13368      int i = 63;
13369int
13370main ()
13371{
13372/* Test availability of runtime routines for shift and division.  */
13373      long long int llmax = 9223372036854775807ll;
13374      unsigned long long int ullmax = 18446744073709551615ull;
13375      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
13376              | (llmax / ll) | (llmax % ll)
13377              | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
13378              | (ullmax / ull) | (ullmax % ull));
13379  ;
13380  return 0;
13381}
13382
13383_ACEOF
13384if ac_fn_c_try_link "$LINENO"; then :
13385
13386else
13387  ac_cv_type_unsigned_long_long_int=no
13388fi
13389rm -f core conftest.err conftest.$ac_objext \
13390    conftest$ac_exeext conftest.$ac_ext
13391     fi
13392fi
13393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
13394$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
13395  if test $ac_cv_type_unsigned_long_long_int = yes; then
13396
13397$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
13398
13399  fi
13400
13401
13402
13403  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
13404$as_echo_n "checking for long long int... " >&6; }
13405if ${ac_cv_type_long_long_int+:} false; then :
13406  $as_echo_n "(cached) " >&6
13407else
13408  ac_cv_type_long_long_int=yes
13409      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
13410        ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
13411        if test $ac_cv_type_long_long_int = yes; then
13412                                        if test "$cross_compiling" = yes; then :
13413  :
13414else
13415  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13416/* end confdefs.h.  */
13417#include <limits.h>
13418                 #ifndef LLONG_MAX
13419                 # define HALF \
13420                          (1LL << (sizeof (long long int) * CHAR_BIT - 2))
13421                 # define LLONG_MAX (HALF - 1 + HALF)
13422                 #endif
13423int
13424main ()
13425{
13426long long int n = 1;
13427                 int i;
13428                 for (i = 0; ; i++)
13429                   {
13430                     long long int m = n << i;
13431                     if (m >> i != n)
13432                       return 1;
13433                     if (LLONG_MAX / 2 < m)
13434                       break;
13435                   }
13436                 return 0;
13437  ;
13438  return 0;
13439}
13440_ACEOF
13441if ac_fn_c_try_run "$LINENO"; then :
13442
13443else
13444  ac_cv_type_long_long_int=no
13445fi
13446rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13447  conftest.$ac_objext conftest.beam conftest.$ac_ext
13448fi
13449
13450        fi
13451      fi
13452fi
13453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
13454$as_echo "$ac_cv_type_long_long_int" >&6; }
13455  if test $ac_cv_type_long_long_int = yes; then
13456
13457$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
13458
13459  fi
13460
13461
13462for ac_header in stdlib.h
13463do :
13464  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
13465if test "x$ac_cv_header_stdlib_h" = xyes; then :
13466  cat >>confdefs.h <<_ACEOF
13467#define HAVE_STDLIB_H 1
13468_ACEOF
13469
13470fi
13471
13472done
13473
13474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
13475$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
13476if ${ac_cv_func_malloc_0_nonnull+:} false; then :
13477  $as_echo_n "(cached) " >&6
13478else
13479  if test "$cross_compiling" = yes; then :
13480  ac_cv_func_malloc_0_nonnull=no
13481else
13482  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13483/* end confdefs.h.  */
13484#if defined STDC_HEADERS || defined HAVE_STDLIB_H
13485# include <stdlib.h>
13486#else
13487char *malloc ();
13488#endif
13489
13490int
13491main ()
13492{
13493return ! malloc (0);
13494  ;
13495  return 0;
13496}
13497_ACEOF
13498if ac_fn_c_try_run "$LINENO"; then :
13499  ac_cv_func_malloc_0_nonnull=yes
13500else
13501  ac_cv_func_malloc_0_nonnull=no
13502fi
13503rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13504  conftest.$ac_objext conftest.beam conftest.$ac_ext
13505fi
13506
13507fi
13508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
13509$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
13510if test $ac_cv_func_malloc_0_nonnull = yes; then :
13511
13512$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
13513
13514else
13515  $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
13516
13517   case " $LIBOBJS " in
13518  *" malloc.$ac_objext "* ) ;;
13519  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
13520 ;;
13521esac
13522
13523
13524$as_echo "#define malloc rpl_malloc" >>confdefs.h
13525
13526fi
13527
13528
13529for ac_header in stdlib.h
13530do :
13531  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
13532if test "x$ac_cv_header_stdlib_h" = xyes; then :
13533  cat >>confdefs.h <<_ACEOF
13534#define HAVE_STDLIB_H 1
13535_ACEOF
13536
13537fi
13538
13539done
13540
13541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
13542$as_echo_n "checking for GNU libc compatible realloc... " >&6; }
13543if ${ac_cv_func_realloc_0_nonnull+:} false; then :
13544  $as_echo_n "(cached) " >&6
13545else
13546  if test "$cross_compiling" = yes; then :
13547  ac_cv_func_realloc_0_nonnull=no
13548else
13549  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13550/* end confdefs.h.  */
13551#if defined STDC_HEADERS || defined HAVE_STDLIB_H
13552# include <stdlib.h>
13553#else
13554char *realloc ();
13555#endif
13556
13557int
13558main ()
13559{
13560return ! realloc (0, 0);
13561  ;
13562  return 0;
13563}
13564_ACEOF
13565if ac_fn_c_try_run "$LINENO"; then :
13566  ac_cv_func_realloc_0_nonnull=yes
13567else
13568  ac_cv_func_realloc_0_nonnull=no
13569fi
13570rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13571  conftest.$ac_objext conftest.beam conftest.$ac_ext
13572fi
13573
13574fi
13575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
13576$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
13577if test $ac_cv_func_realloc_0_nonnull = yes; then :
13578
13579$as_echo "#define HAVE_REALLOC 1" >>confdefs.h
13580
13581else
13582  $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
13583
13584   case " $LIBOBJS " in
13585  *" realloc.$ac_objext "* ) ;;
13586  *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
13587 ;;
13588esac
13589
13590
13591$as_echo "#define realloc rpl_realloc" >>confdefs.h
13592
13593fi
13594
13595
13596for ac_func in sbrk getrusage
13597do :
13598  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13599ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13600if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13601  cat >>confdefs.h <<_ACEOF
13602#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13603_ACEOF
13604
13605fi
13606done
13607
13608
13609ac_config_files="$ac_config_files Makefile examples/Makefile"
13610
13611cat >confcache <<\_ACEOF
13612# This file is a shell script that caches the results of configure
13613# tests run on this system so they can be shared between configure
13614# scripts and configure runs, see configure's option --config-cache.
13615# It is not useful on other systems.  If it contains results you don't
13616# want to keep, you may remove or edit it.
13617#
13618# config.status only pays attention to the cache file if you give it
13619# the --recheck option to rerun configure.
13620#
13621# `ac_cv_env_foo' variables (set or unset) will be overridden when
13622# loading this file, other *unset* `ac_cv_foo' will be assigned the
13623# following values.
13624
13625_ACEOF
13626
13627# The following way of writing the cache mishandles newlines in values,
13628# but we know of no workaround that is simple, portable, and efficient.
13629# So, we kill variables containing newlines.
13630# Ultrix sh set writes to stderr and can't be redirected directly,
13631# and sets the high bit in the cache file unless we assign to the vars.
13632(
13633  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13634    eval ac_val=\$$ac_var
13635    case $ac_val in #(
13636    *${as_nl}*)
13637      case $ac_var in #(
13638      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13639$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13640      esac
13641      case $ac_var in #(
13642      _ | IFS | as_nl) ;; #(
13643      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13644      *) { eval $ac_var=; unset $ac_var;} ;;
13645      esac ;;
13646    esac
13647  done
13648
13649  (set) 2>&1 |
13650    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13651    *${as_nl}ac_space=\ *)
13652      # `set' does not quote correctly, so add quotes: double-quote
13653      # substitution turns \\\\ into \\, and sed turns \\ into \.
13654      sed -n \
13655	"s/'/'\\\\''/g;
13656	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13657      ;; #(
13658    *)
13659      # `set' quotes correctly as required by POSIX, so do not add quotes.
13660      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13661      ;;
13662    esac |
13663    sort
13664) |
13665  sed '
13666     /^ac_cv_env_/b end
13667     t clear
13668     :clear
13669     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13670     t end
13671     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13672     :end' >>confcache
13673if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13674  if test -w "$cache_file"; then
13675    if test "x$cache_file" != "x/dev/null"; then
13676      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13677$as_echo "$as_me: updating cache $cache_file" >&6;}
13678      if test ! -f "$cache_file" || test -h "$cache_file"; then
13679	cat confcache >"$cache_file"
13680      else
13681        case $cache_file in #(
13682        */* | ?:*)
13683	  mv -f confcache "$cache_file"$$ &&
13684	  mv -f "$cache_file"$$ "$cache_file" ;; #(
13685        *)
13686	  mv -f confcache "$cache_file" ;;
13687	esac
13688      fi
13689    fi
13690  else
13691    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13692$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13693  fi
13694fi
13695rm -f confcache
13696
13697test "x$prefix" = xNONE && prefix=$ac_default_prefix
13698# Let make expand exec_prefix.
13699test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13700
13701DEFS=-DHAVE_CONFIG_H
13702
13703ac_libobjs=
13704ac_ltlibobjs=
13705U=
13706for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13707  # 1. Remove the extension, and $U if already installed.
13708  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13709  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13710  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13711  #    will be set to the directory where LIBOBJS objects are built.
13712  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13713  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13714done
13715LIBOBJS=$ac_libobjs
13716
13717LTLIBOBJS=$ac_ltlibobjs
13718
13719
13720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13721$as_echo_n "checking that generated files are newer than configure... " >&6; }
13722   if test -n "$am_sleep_pid"; then
13723     # Hide warnings about reused PIDs.
13724     wait $am_sleep_pid 2>/dev/null
13725   fi
13726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13727$as_echo "done" >&6; }
13728 if test -n "$EXEEXT"; then
13729  am__EXEEXT_TRUE=
13730  am__EXEEXT_FALSE='#'
13731else
13732  am__EXEEXT_TRUE='#'
13733  am__EXEEXT_FALSE=
13734fi
13735
13736if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13737  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13738Usually this means the macro was only invoked conditionally." "$LINENO" 5
13739fi
13740if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13741  as_fn_error $? "conditional \"AMDEP\" was never defined.
13742Usually this means the macro was only invoked conditionally." "$LINENO" 5
13743fi
13744if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13745  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13746Usually this means the macro was only invoked conditionally." "$LINENO" 5
13747fi
13748if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13749  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13750Usually this means the macro was only invoked conditionally." "$LINENO" 5
13751fi
13752
13753: "${CONFIG_STATUS=./config.status}"
13754ac_write_fail=0
13755ac_clean_files_save=$ac_clean_files
13756ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13757{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13758$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13759as_write_fail=0
13760cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13761#! $SHELL
13762# Generated by $as_me.
13763# Run this file to recreate the current configuration.
13764# Compiler output produced by configure, useful for debugging
13765# configure, is in config.log if it exists.
13766
13767debug=false
13768ac_cs_recheck=false
13769ac_cs_silent=false
13770
13771SHELL=\${CONFIG_SHELL-$SHELL}
13772export SHELL
13773_ASEOF
13774cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13775## -------------------- ##
13776## M4sh Initialization. ##
13777## -------------------- ##
13778
13779# Be more Bourne compatible
13780DUALCASE=1; export DUALCASE # for MKS sh
13781if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13782  emulate sh
13783  NULLCMD=:
13784  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13785  # is contrary to our usage.  Disable this feature.
13786  alias -g '${1+"$@"}'='"$@"'
13787  setopt NO_GLOB_SUBST
13788else
13789  case `(set -o) 2>/dev/null` in #(
13790  *posix*) :
13791    set -o posix ;; #(
13792  *) :
13793     ;;
13794esac
13795fi
13796
13797
13798as_nl='
13799'
13800export as_nl
13801# Printing a long string crashes Solaris 7 /usr/bin/printf.
13802as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13803as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13804as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13805# Prefer a ksh shell builtin over an external printf program on Solaris,
13806# but without wasting forks for bash or zsh.
13807if test -z "$BASH_VERSION$ZSH_VERSION" \
13808    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13809  as_echo='print -r --'
13810  as_echo_n='print -rn --'
13811elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13812  as_echo='printf %s\n'
13813  as_echo_n='printf %s'
13814else
13815  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13816    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13817    as_echo_n='/usr/ucb/echo -n'
13818  else
13819    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13820    as_echo_n_body='eval
13821      arg=$1;
13822      case $arg in #(
13823      *"$as_nl"*)
13824	expr "X$arg" : "X\\(.*\\)$as_nl";
13825	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13826      esac;
13827      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13828    '
13829    export as_echo_n_body
13830    as_echo_n='sh -c $as_echo_n_body as_echo'
13831  fi
13832  export as_echo_body
13833  as_echo='sh -c $as_echo_body as_echo'
13834fi
13835
13836# The user is always right.
13837if test "${PATH_SEPARATOR+set}" != set; then
13838  PATH_SEPARATOR=:
13839  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13840    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13841      PATH_SEPARATOR=';'
13842  }
13843fi
13844
13845
13846# IFS
13847# We need space, tab and new line, in precisely that order.  Quoting is
13848# there to prevent editors from complaining about space-tab.
13849# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13850# splitting by setting IFS to empty value.)
13851IFS=" ""	$as_nl"
13852
13853# Find who we are.  Look in the path if we contain no directory separator.
13854as_myself=
13855case $0 in #((
13856  *[\\/]* ) as_myself=$0 ;;
13857  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13858for as_dir in $PATH
13859do
13860  IFS=$as_save_IFS
13861  test -z "$as_dir" && as_dir=.
13862    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13863  done
13864IFS=$as_save_IFS
13865
13866     ;;
13867esac
13868# We did not find ourselves, most probably we were run as `sh COMMAND'
13869# in which case we are not to be found in the path.
13870if test "x$as_myself" = x; then
13871  as_myself=$0
13872fi
13873if test ! -f "$as_myself"; then
13874  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13875  exit 1
13876fi
13877
13878# Unset variables that we do not need and which cause bugs (e.g. in
13879# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13880# suppresses any "Segmentation fault" message there.  '((' could
13881# trigger a bug in pdksh 5.2.14.
13882for as_var in BASH_ENV ENV MAIL MAILPATH
13883do eval test x\${$as_var+set} = xset \
13884  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13885done
13886PS1='$ '
13887PS2='> '
13888PS4='+ '
13889
13890# NLS nuisances.
13891LC_ALL=C
13892export LC_ALL
13893LANGUAGE=C
13894export LANGUAGE
13895
13896# CDPATH.
13897(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13898
13899
13900# as_fn_error STATUS ERROR [LINENO LOG_FD]
13901# ----------------------------------------
13902# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13903# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13904# script with STATUS, using 1 if that was 0.
13905as_fn_error ()
13906{
13907  as_status=$1; test $as_status -eq 0 && as_status=1
13908  if test "$4"; then
13909    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13910    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13911  fi
13912  $as_echo "$as_me: error: $2" >&2
13913  as_fn_exit $as_status
13914} # as_fn_error
13915
13916
13917# as_fn_set_status STATUS
13918# -----------------------
13919# Set $? to STATUS, without forking.
13920as_fn_set_status ()
13921{
13922  return $1
13923} # as_fn_set_status
13924
13925# as_fn_exit STATUS
13926# -----------------
13927# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13928as_fn_exit ()
13929{
13930  set +e
13931  as_fn_set_status $1
13932  exit $1
13933} # as_fn_exit
13934
13935# as_fn_unset VAR
13936# ---------------
13937# Portably unset VAR.
13938as_fn_unset ()
13939{
13940  { eval $1=; unset $1;}
13941}
13942as_unset=as_fn_unset
13943# as_fn_append VAR VALUE
13944# ----------------------
13945# Append the text in VALUE to the end of the definition contained in VAR. Take
13946# advantage of any shell optimizations that allow amortized linear growth over
13947# repeated appends, instead of the typical quadratic growth present in naive
13948# implementations.
13949if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13950  eval 'as_fn_append ()
13951  {
13952    eval $1+=\$2
13953  }'
13954else
13955  as_fn_append ()
13956  {
13957    eval $1=\$$1\$2
13958  }
13959fi # as_fn_append
13960
13961# as_fn_arith ARG...
13962# ------------------
13963# Perform arithmetic evaluation on the ARGs, and store the result in the
13964# global $as_val. Take advantage of shells that can avoid forks. The arguments
13965# must be portable across $(()) and expr.
13966if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13967  eval 'as_fn_arith ()
13968  {
13969    as_val=$(( $* ))
13970  }'
13971else
13972  as_fn_arith ()
13973  {
13974    as_val=`expr "$@" || test $? -eq 1`
13975  }
13976fi # as_fn_arith
13977
13978
13979if expr a : '\(a\)' >/dev/null 2>&1 &&
13980   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13981  as_expr=expr
13982else
13983  as_expr=false
13984fi
13985
13986if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13987  as_basename=basename
13988else
13989  as_basename=false
13990fi
13991
13992if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13993  as_dirname=dirname
13994else
13995  as_dirname=false
13996fi
13997
13998as_me=`$as_basename -- "$0" ||
13999$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14000	 X"$0" : 'X\(//\)$' \| \
14001	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14002$as_echo X/"$0" |
14003    sed '/^.*\/\([^/][^/]*\)\/*$/{
14004	    s//\1/
14005	    q
14006	  }
14007	  /^X\/\(\/\/\)$/{
14008	    s//\1/
14009	    q
14010	  }
14011	  /^X\/\(\/\).*/{
14012	    s//\1/
14013	    q
14014	  }
14015	  s/.*/./; q'`
14016
14017# Avoid depending upon Character Ranges.
14018as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14019as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14020as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14021as_cr_digits='0123456789'
14022as_cr_alnum=$as_cr_Letters$as_cr_digits
14023
14024ECHO_C= ECHO_N= ECHO_T=
14025case `echo -n x` in #(((((
14026-n*)
14027  case `echo 'xy\c'` in
14028  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
14029  xy)  ECHO_C='\c';;
14030  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14031       ECHO_T='	';;
14032  esac;;
14033*)
14034  ECHO_N='-n';;
14035esac
14036
14037rm -f conf$$ conf$$.exe conf$$.file
14038if test -d conf$$.dir; then
14039  rm -f conf$$.dir/conf$$.file
14040else
14041  rm -f conf$$.dir
14042  mkdir conf$$.dir 2>/dev/null
14043fi
14044if (echo >conf$$.file) 2>/dev/null; then
14045  if ln -s conf$$.file conf$$ 2>/dev/null; then
14046    as_ln_s='ln -s'
14047    # ... but there are two gotchas:
14048    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14049    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14050    # In both cases, we have to default to `cp -pR'.
14051    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14052      as_ln_s='cp -pR'
14053  elif ln conf$$.file conf$$ 2>/dev/null; then
14054    as_ln_s=ln
14055  else
14056    as_ln_s='cp -pR'
14057  fi
14058else
14059  as_ln_s='cp -pR'
14060fi
14061rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14062rmdir conf$$.dir 2>/dev/null
14063
14064
14065# as_fn_mkdir_p
14066# -------------
14067# Create "$as_dir" as a directory, including parents if necessary.
14068as_fn_mkdir_p ()
14069{
14070
14071  case $as_dir in #(
14072  -*) as_dir=./$as_dir;;
14073  esac
14074  test -d "$as_dir" || eval $as_mkdir_p || {
14075    as_dirs=
14076    while :; do
14077      case $as_dir in #(
14078      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14079      *) as_qdir=$as_dir;;
14080      esac
14081      as_dirs="'$as_qdir' $as_dirs"
14082      as_dir=`$as_dirname -- "$as_dir" ||
14083$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14084	 X"$as_dir" : 'X\(//\)[^/]' \| \
14085	 X"$as_dir" : 'X\(//\)$' \| \
14086	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14087$as_echo X"$as_dir" |
14088    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14089	    s//\1/
14090	    q
14091	  }
14092	  /^X\(\/\/\)[^/].*/{
14093	    s//\1/
14094	    q
14095	  }
14096	  /^X\(\/\/\)$/{
14097	    s//\1/
14098	    q
14099	  }
14100	  /^X\(\/\).*/{
14101	    s//\1/
14102	    q
14103	  }
14104	  s/.*/./; q'`
14105      test -d "$as_dir" && break
14106    done
14107    test -z "$as_dirs" || eval "mkdir $as_dirs"
14108  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14109
14110
14111} # as_fn_mkdir_p
14112if mkdir -p . 2>/dev/null; then
14113  as_mkdir_p='mkdir -p "$as_dir"'
14114else
14115  test -d ./-p && rmdir ./-p
14116  as_mkdir_p=false
14117fi
14118
14119
14120# as_fn_executable_p FILE
14121# -----------------------
14122# Test if FILE is an executable regular file.
14123as_fn_executable_p ()
14124{
14125  test -f "$1" && test -x "$1"
14126} # as_fn_executable_p
14127as_test_x='test -x'
14128as_executable_p=as_fn_executable_p
14129
14130# Sed expression to map a string onto a valid CPP name.
14131as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14132
14133# Sed expression to map a string onto a valid variable name.
14134as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14135
14136
14137exec 6>&1
14138## ----------------------------------- ##
14139## Main body of $CONFIG_STATUS script. ##
14140## ----------------------------------- ##
14141_ASEOF
14142test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14143
14144cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14145# Save the log message, to keep $0 and so on meaningful, and to
14146# report actual input values of CONFIG_FILES etc. instead of their
14147# values after options handling.
14148ac_log="
14149This file was extended by ANU Nilpotent Quotient Program $as_me 2.5.4, which was
14150generated by GNU Autoconf 2.69.  Invocation command line was
14151
14152  CONFIG_FILES    = $CONFIG_FILES
14153  CONFIG_HEADERS  = $CONFIG_HEADERS
14154  CONFIG_LINKS    = $CONFIG_LINKS
14155  CONFIG_COMMANDS = $CONFIG_COMMANDS
14156  $ $0 $@
14157
14158on `(hostname || uname -n) 2>/dev/null | sed 1q`
14159"
14160
14161_ACEOF
14162
14163case $ac_config_files in *"
14164"*) set x $ac_config_files; shift; ac_config_files=$*;;
14165esac
14166
14167case $ac_config_headers in *"
14168"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14169esac
14170
14171
14172cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14173# Files that config.status was made for.
14174config_files="$ac_config_files"
14175config_headers="$ac_config_headers"
14176config_commands="$ac_config_commands"
14177
14178_ACEOF
14179
14180cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14181ac_cs_usage="\
14182\`$as_me' instantiates files and other configuration actions
14183from templates according to the current configuration.  Unless the files
14184and actions are specified as TAGs, all are instantiated by default.
14185
14186Usage: $0 [OPTION]... [TAG]...
14187
14188  -h, --help       print this help, then exit
14189  -V, --version    print version number and configuration settings, then exit
14190      --config     print configuration, then exit
14191  -q, --quiet, --silent
14192                   do not print progress messages
14193  -d, --debug      don't remove temporary files
14194      --recheck    update $as_me by reconfiguring in the same conditions
14195      --file=FILE[:TEMPLATE]
14196                   instantiate the configuration file FILE
14197      --header=FILE[:TEMPLATE]
14198                   instantiate the configuration header FILE
14199
14200Configuration files:
14201$config_files
14202
14203Configuration headers:
14204$config_headers
14205
14206Configuration commands:
14207$config_commands
14208
14209Report bugs to <https://github.com/gap-packages/nq/issues>.
14210ANU Nilpotent Quotient Program home page: <http://gap-packages.github.io/nq/>."
14211
14212_ACEOF
14213cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14214ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14215ac_cs_version="\\
14216ANU Nilpotent Quotient Program config.status 2.5.4
14217configured by $0, generated by GNU Autoconf 2.69,
14218  with options \\"\$ac_cs_config\\"
14219
14220Copyright (C) 2012 Free Software Foundation, Inc.
14221This config.status script is free software; the Free Software Foundation
14222gives unlimited permission to copy, distribute and modify it."
14223
14224ac_pwd='$ac_pwd'
14225srcdir='$srcdir'
14226INSTALL='$INSTALL'
14227MKDIR_P='$MKDIR_P'
14228AWK='$AWK'
14229test -n "\$AWK" || AWK=awk
14230_ACEOF
14231
14232cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14233# The default lists apply if the user does not specify any file.
14234ac_need_defaults=:
14235while test $# != 0
14236do
14237  case $1 in
14238  --*=?*)
14239    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14240    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14241    ac_shift=:
14242    ;;
14243  --*=)
14244    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14245    ac_optarg=
14246    ac_shift=:
14247    ;;
14248  *)
14249    ac_option=$1
14250    ac_optarg=$2
14251    ac_shift=shift
14252    ;;
14253  esac
14254
14255  case $ac_option in
14256  # Handling of the options.
14257  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14258    ac_cs_recheck=: ;;
14259  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14260    $as_echo "$ac_cs_version"; exit ;;
14261  --config | --confi | --conf | --con | --co | --c )
14262    $as_echo "$ac_cs_config"; exit ;;
14263  --debug | --debu | --deb | --de | --d | -d )
14264    debug=: ;;
14265  --file | --fil | --fi | --f )
14266    $ac_shift
14267    case $ac_optarg in
14268    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14269    '') as_fn_error $? "missing file argument" ;;
14270    esac
14271    as_fn_append CONFIG_FILES " '$ac_optarg'"
14272    ac_need_defaults=false;;
14273  --header | --heade | --head | --hea )
14274    $ac_shift
14275    case $ac_optarg in
14276    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14277    esac
14278    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14279    ac_need_defaults=false;;
14280  --he | --h)
14281    # Conflict between --help and --header
14282    as_fn_error $? "ambiguous option: \`$1'
14283Try \`$0 --help' for more information.";;
14284  --help | --hel | -h )
14285    $as_echo "$ac_cs_usage"; exit ;;
14286  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14287  | -silent | --silent | --silen | --sile | --sil | --si | --s)
14288    ac_cs_silent=: ;;
14289
14290  # This is an error.
14291  -*) as_fn_error $? "unrecognized option: \`$1'
14292Try \`$0 --help' for more information." ;;
14293
14294  *) as_fn_append ac_config_targets " $1"
14295     ac_need_defaults=false ;;
14296
14297  esac
14298  shift
14299done
14300
14301ac_configure_extra_args=
14302
14303if $ac_cs_silent; then
14304  exec 6>/dev/null
14305  ac_configure_extra_args="$ac_configure_extra_args --silent"
14306fi
14307
14308_ACEOF
14309cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14310if \$ac_cs_recheck; then
14311  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14312  shift
14313  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14314  CONFIG_SHELL='$SHELL'
14315  export CONFIG_SHELL
14316  exec "\$@"
14317fi
14318
14319_ACEOF
14320cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14321exec 5>>config.log
14322{
14323  echo
14324  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14325## Running $as_me. ##
14326_ASBOX
14327  $as_echo "$ac_log"
14328} >&5
14329
14330_ACEOF
14331cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14332#
14333# INIT-COMMANDS
14334#
14335AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14336
14337
14338# The HP-UX ksh and POSIX shell print the target directory to stdout
14339# if CDPATH is set.
14340(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14341
14342sed_quote_subst='$sed_quote_subst'
14343double_quote_subst='$double_quote_subst'
14344delay_variable_subst='$delay_variable_subst'
14345macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14346macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14347enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14348enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14349pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14350enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14351shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14352SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14353ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14354PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14355host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14356host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14357host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14358build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14359build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14360build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14361SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14362Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14363GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14364EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14365FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14366LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14367NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14368LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14369max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14370ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14371exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14372lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14373lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14374lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14375lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14376lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14377reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14378reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14379OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14380deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14381file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14382file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14383want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14384DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14385sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14386AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14387AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14388archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14389STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14390RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14391old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14392old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14393old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14394lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14395CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14396CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14397compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14398GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14399lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14400lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14401lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14402lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14403lt_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"`'
14404lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14405nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14406lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14407lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14408objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14409MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14410lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14411lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14412lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14413lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14414lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14415need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14416MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14417DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14418NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14419LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14420OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14421OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14422libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14423shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14424extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14425archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14426enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14427export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14428whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14429compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14430old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14431old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14432archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14433archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14434module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14435module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14436with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14437allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14438no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14439hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14440hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14441hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14442hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14443hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14444hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14445hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14446inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14447link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14448always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14449export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14450exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14451include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14452prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14453postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14454file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14455variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14456need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14457need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14458version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14459runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14460shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14461shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14462libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14463library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14464soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14465install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14466postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14467postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14468finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14469finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14470hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14471sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14472configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14473configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14474hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14475enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14476enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14477enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14478old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14479striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14480
14481LTCC='$LTCC'
14482LTCFLAGS='$LTCFLAGS'
14483compiler='$compiler_DEFAULT'
14484
14485# A function that is used when there is no print builtin or printf.
14486func_fallback_echo ()
14487{
14488  eval 'cat <<_LTECHO_EOF
14489\$1
14490_LTECHO_EOF'
14491}
14492
14493# Quote evaled strings.
14494for var in SHELL \
14495ECHO \
14496PATH_SEPARATOR \
14497SED \
14498GREP \
14499EGREP \
14500FGREP \
14501LD \
14502NM \
14503LN_S \
14504lt_SP2NL \
14505lt_NL2SP \
14506reload_flag \
14507OBJDUMP \
14508deplibs_check_method \
14509file_magic_cmd \
14510file_magic_glob \
14511want_nocaseglob \
14512DLLTOOL \
14513sharedlib_from_linklib_cmd \
14514AR \
14515AR_FLAGS \
14516archiver_list_spec \
14517STRIP \
14518RANLIB \
14519CC \
14520CFLAGS \
14521compiler \
14522lt_cv_sys_global_symbol_pipe \
14523lt_cv_sys_global_symbol_to_cdecl \
14524lt_cv_sys_global_symbol_to_import \
14525lt_cv_sys_global_symbol_to_c_name_address \
14526lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14527lt_cv_nm_interface \
14528nm_file_list_spec \
14529lt_cv_truncate_bin \
14530lt_prog_compiler_no_builtin_flag \
14531lt_prog_compiler_pic \
14532lt_prog_compiler_wl \
14533lt_prog_compiler_static \
14534lt_cv_prog_compiler_c_o \
14535need_locks \
14536MANIFEST_TOOL \
14537DSYMUTIL \
14538NMEDIT \
14539LIPO \
14540OTOOL \
14541OTOOL64 \
14542shrext_cmds \
14543export_dynamic_flag_spec \
14544whole_archive_flag_spec \
14545compiler_needs_object \
14546with_gnu_ld \
14547allow_undefined_flag \
14548no_undefined_flag \
14549hardcode_libdir_flag_spec \
14550hardcode_libdir_separator \
14551exclude_expsyms \
14552include_expsyms \
14553file_list_spec \
14554variables_saved_for_relink \
14555libname_spec \
14556library_names_spec \
14557soname_spec \
14558install_override_mode \
14559finish_eval \
14560old_striplib \
14561striplib; do
14562    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14563    *[\\\\\\\`\\"\\\$]*)
14564      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14565      ;;
14566    *)
14567      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14568      ;;
14569    esac
14570done
14571
14572# Double-quote double-evaled strings.
14573for var in reload_cmds \
14574old_postinstall_cmds \
14575old_postuninstall_cmds \
14576old_archive_cmds \
14577extract_expsyms_cmds \
14578old_archive_from_new_cmds \
14579old_archive_from_expsyms_cmds \
14580archive_cmds \
14581archive_expsym_cmds \
14582module_cmds \
14583module_expsym_cmds \
14584export_symbols_cmds \
14585prelink_cmds \
14586postlink_cmds \
14587postinstall_cmds \
14588postuninstall_cmds \
14589finish_cmds \
14590sys_lib_search_path_spec \
14591configure_time_dlsearch_path \
14592configure_time_lt_sys_library_path; do
14593    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14594    *[\\\\\\\`\\"\\\$]*)
14595      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14596      ;;
14597    *)
14598      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14599      ;;
14600    esac
14601done
14602
14603ac_aux_dir='$ac_aux_dir'
14604
14605# See if we are running on zsh, and set the options that allow our
14606# commands through without removal of \ escapes INIT.
14607if test -n "\${ZSH_VERSION+set}"; then
14608   setopt NO_GLOB_SUBST
14609fi
14610
14611
14612    PACKAGE='$PACKAGE'
14613    VERSION='$VERSION'
14614    RM='$RM'
14615    ofile='$ofile'
14616
14617
14618
14619
14620_ACEOF
14621
14622cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14623
14624# Handling of arguments.
14625for ac_config_target in $ac_config_targets
14626do
14627  case $ac_config_target in
14628    "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.hin" ;;
14629    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14630    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14631    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14632    "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
14633
14634  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14635  esac
14636done
14637
14638
14639# If the user did not use the arguments to specify the items to instantiate,
14640# then the envvar interface is used.  Set only those that are not.
14641# We use the long form for the default assignment because of an extremely
14642# bizarre bug on SunOS 4.1.3.
14643if $ac_need_defaults; then
14644  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14645  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14646  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14647fi
14648
14649# Have a temporary directory for convenience.  Make it in the build tree
14650# simply because there is no reason against having it here, and in addition,
14651# creating and moving files from /tmp can sometimes cause problems.
14652# Hook for its removal unless debugging.
14653# Note that there is a small window in which the directory will not be cleaned:
14654# after its creation but before its name has been assigned to `$tmp'.
14655$debug ||
14656{
14657  tmp= ac_tmp=
14658  trap 'exit_status=$?
14659  : "${ac_tmp:=$tmp}"
14660  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14661' 0
14662  trap 'as_fn_exit 1' 1 2 13 15
14663}
14664# Create a (secure) tmp directory for tmp files.
14665
14666{
14667  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14668  test -d "$tmp"
14669}  ||
14670{
14671  tmp=./conf$$-$RANDOM
14672  (umask 077 && mkdir "$tmp")
14673} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14674ac_tmp=$tmp
14675
14676# Set up the scripts for CONFIG_FILES section.
14677# No need to generate them if there are no CONFIG_FILES.
14678# This happens for instance with `./config.status config.h'.
14679if test -n "$CONFIG_FILES"; then
14680
14681
14682ac_cr=`echo X | tr X '\015'`
14683# On cygwin, bash can eat \r inside `` if the user requested igncr.
14684# But we know of no other shell where ac_cr would be empty at this
14685# point, so we can use a bashism as a fallback.
14686if test "x$ac_cr" = x; then
14687  eval ac_cr=\$\'\\r\'
14688fi
14689ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14690if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14691  ac_cs_awk_cr='\\r'
14692else
14693  ac_cs_awk_cr=$ac_cr
14694fi
14695
14696echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14697_ACEOF
14698
14699
14700{
14701  echo "cat >conf$$subs.awk <<_ACEOF" &&
14702  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14703  echo "_ACEOF"
14704} >conf$$subs.sh ||
14705  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14706ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14707ac_delim='%!_!# '
14708for ac_last_try in false false false false false :; do
14709  . ./conf$$subs.sh ||
14710    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14711
14712  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14713  if test $ac_delim_n = $ac_delim_num; then
14714    break
14715  elif $ac_last_try; then
14716    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14717  else
14718    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14719  fi
14720done
14721rm -f conf$$subs.sh
14722
14723cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14724cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14725_ACEOF
14726sed -n '
14727h
14728s/^/S["/; s/!.*/"]=/
14729p
14730g
14731s/^[^!]*!//
14732:repl
14733t repl
14734s/'"$ac_delim"'$//
14735t delim
14736:nl
14737h
14738s/\(.\{148\}\)..*/\1/
14739t more1
14740s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14741p
14742n
14743b repl
14744:more1
14745s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14746p
14747g
14748s/.\{148\}//
14749t nl
14750:delim
14751h
14752s/\(.\{148\}\)..*/\1/
14753t more2
14754s/["\\]/\\&/g; s/^/"/; s/$/"/
14755p
14756b
14757:more2
14758s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14759p
14760g
14761s/.\{148\}//
14762t delim
14763' <conf$$subs.awk | sed '
14764/^[^""]/{
14765  N
14766  s/\n//
14767}
14768' >>$CONFIG_STATUS || ac_write_fail=1
14769rm -f conf$$subs.awk
14770cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14771_ACAWK
14772cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14773  for (key in S) S_is_set[key] = 1
14774  FS = ""
14775
14776}
14777{
14778  line = $ 0
14779  nfields = split(line, field, "@")
14780  substed = 0
14781  len = length(field[1])
14782  for (i = 2; i < nfields; i++) {
14783    key = field[i]
14784    keylen = length(key)
14785    if (S_is_set[key]) {
14786      value = S[key]
14787      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14788      len += length(value) + length(field[++i])
14789      substed = 1
14790    } else
14791      len += 1 + keylen
14792  }
14793
14794  print line
14795}
14796
14797_ACAWK
14798_ACEOF
14799cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14800if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14801  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14802else
14803  cat
14804fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14805  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14806_ACEOF
14807
14808# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14809# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14810# trailing colons and then remove the whole line if VPATH becomes empty
14811# (actually we leave an empty line to preserve line numbers).
14812if test "x$srcdir" = x.; then
14813  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
14814h
14815s///
14816s/^/:/
14817s/[	 ]*$/:/
14818s/:\$(srcdir):/:/g
14819s/:\${srcdir}:/:/g
14820s/:@srcdir@:/:/g
14821s/^:*//
14822s/:*$//
14823x
14824s/\(=[	 ]*\).*/\1/
14825G
14826s/\n//
14827s/^[^=]*=[	 ]*$//
14828}'
14829fi
14830
14831cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14832fi # test -n "$CONFIG_FILES"
14833
14834# Set up the scripts for CONFIG_HEADERS section.
14835# No need to generate them if there are no CONFIG_HEADERS.
14836# This happens for instance with `./config.status Makefile'.
14837if test -n "$CONFIG_HEADERS"; then
14838cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14839BEGIN {
14840_ACEOF
14841
14842# Transform confdefs.h into an awk script `defines.awk', embedded as
14843# here-document in config.status, that substitutes the proper values into
14844# config.h.in to produce config.h.
14845
14846# Create a delimiter string that does not exist in confdefs.h, to ease
14847# handling of long lines.
14848ac_delim='%!_!# '
14849for ac_last_try in false false :; do
14850  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14851  if test -z "$ac_tt"; then
14852    break
14853  elif $ac_last_try; then
14854    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14855  else
14856    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14857  fi
14858done
14859
14860# For the awk script, D is an array of macro values keyed by name,
14861# likewise P contains macro parameters if any.  Preserve backslash
14862# newline sequences.
14863
14864ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14865sed -n '
14866s/.\{148\}/&'"$ac_delim"'/g
14867t rset
14868:rset
14869s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
14870t def
14871d
14872:def
14873s/\\$//
14874t bsnl
14875s/["\\]/\\&/g
14876s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14877D["\1"]=" \3"/p
14878s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
14879d
14880:bsnl
14881s/["\\]/\\&/g
14882s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14883D["\1"]=" \3\\\\\\n"\\/p
14884t cont
14885s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14886t cont
14887d
14888:cont
14889n
14890s/.\{148\}/&'"$ac_delim"'/g
14891t clear
14892:clear
14893s/\\$//
14894t bsnlc
14895s/["\\]/\\&/g; s/^/"/; s/$/"/p
14896d
14897:bsnlc
14898s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14899b cont
14900' <confdefs.h | sed '
14901s/'"$ac_delim"'/"\\\
14902"/g' >>$CONFIG_STATUS || ac_write_fail=1
14903
14904cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14905  for (key in D) D_is_set[key] = 1
14906  FS = ""
14907}
14908/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14909  line = \$ 0
14910  split(line, arg, " ")
14911  if (arg[1] == "#") {
14912    defundef = arg[2]
14913    mac1 = arg[3]
14914  } else {
14915    defundef = substr(arg[1], 2)
14916    mac1 = arg[2]
14917  }
14918  split(mac1, mac2, "(") #)
14919  macro = mac2[1]
14920  prefix = substr(line, 1, index(line, defundef) - 1)
14921  if (D_is_set[macro]) {
14922    # Preserve the white space surrounding the "#".
14923    print prefix "define", macro P[macro] D[macro]
14924    next
14925  } else {
14926    # Replace #undef with comments.  This is necessary, for example,
14927    # in the case of _POSIX_SOURCE, which is predefined and required
14928    # on some systems where configure will not decide to define it.
14929    if (defundef == "undef") {
14930      print "/*", prefix defundef, macro, "*/"
14931      next
14932    }
14933  }
14934}
14935{ print }
14936_ACAWK
14937_ACEOF
14938cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14939  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14940fi # test -n "$CONFIG_HEADERS"
14941
14942
14943eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14944shift
14945for ac_tag
14946do
14947  case $ac_tag in
14948  :[FHLC]) ac_mode=$ac_tag; continue;;
14949  esac
14950  case $ac_mode$ac_tag in
14951  :[FHL]*:*);;
14952  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14953  :[FH]-) ac_tag=-:-;;
14954  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14955  esac
14956  ac_save_IFS=$IFS
14957  IFS=:
14958  set x $ac_tag
14959  IFS=$ac_save_IFS
14960  shift
14961  ac_file=$1
14962  shift
14963
14964  case $ac_mode in
14965  :L) ac_source=$1;;
14966  :[FH])
14967    ac_file_inputs=
14968    for ac_f
14969    do
14970      case $ac_f in
14971      -) ac_f="$ac_tmp/stdin";;
14972      *) # Look for the file first in the build tree, then in the source tree
14973	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
14974	 # because $ac_f cannot contain `:'.
14975	 test -f "$ac_f" ||
14976	   case $ac_f in
14977	   [\\/$]*) false;;
14978	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14979	   esac ||
14980	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14981      esac
14982      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14983      as_fn_append ac_file_inputs " '$ac_f'"
14984    done
14985
14986    # Let's still pretend it is `configure' which instantiates (i.e., don't
14987    # use $as_me), people would be surprised to read:
14988    #    /* config.h.  Generated by config.status.  */
14989    configure_input='Generated from '`
14990	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14991	`' by configure.'
14992    if test x"$ac_file" != x-; then
14993      configure_input="$ac_file.  $configure_input"
14994      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14995$as_echo "$as_me: creating $ac_file" >&6;}
14996    fi
14997    # Neutralize special characters interpreted by sed in replacement strings.
14998    case $configure_input in #(
14999    *\&* | *\|* | *\\* )
15000       ac_sed_conf_input=`$as_echo "$configure_input" |
15001       sed 's/[\\\\&|]/\\\\&/g'`;; #(
15002    *) ac_sed_conf_input=$configure_input;;
15003    esac
15004
15005    case $ac_tag in
15006    *:-:* | *:-) cat >"$ac_tmp/stdin" \
15007      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15008    esac
15009    ;;
15010  esac
15011
15012  ac_dir=`$as_dirname -- "$ac_file" ||
15013$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15014	 X"$ac_file" : 'X\(//\)[^/]' \| \
15015	 X"$ac_file" : 'X\(//\)$' \| \
15016	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15017$as_echo X"$ac_file" |
15018    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15019	    s//\1/
15020	    q
15021	  }
15022	  /^X\(\/\/\)[^/].*/{
15023	    s//\1/
15024	    q
15025	  }
15026	  /^X\(\/\/\)$/{
15027	    s//\1/
15028	    q
15029	  }
15030	  /^X\(\/\).*/{
15031	    s//\1/
15032	    q
15033	  }
15034	  s/.*/./; q'`
15035  as_dir="$ac_dir"; as_fn_mkdir_p
15036  ac_builddir=.
15037
15038case "$ac_dir" in
15039.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15040*)
15041  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15042  # A ".." for each directory in $ac_dir_suffix.
15043  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15044  case $ac_top_builddir_sub in
15045  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15046  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15047  esac ;;
15048esac
15049ac_abs_top_builddir=$ac_pwd
15050ac_abs_builddir=$ac_pwd$ac_dir_suffix
15051# for backward compatibility:
15052ac_top_builddir=$ac_top_build_prefix
15053
15054case $srcdir in
15055  .)  # We are building in place.
15056    ac_srcdir=.
15057    ac_top_srcdir=$ac_top_builddir_sub
15058    ac_abs_top_srcdir=$ac_pwd ;;
15059  [\\/]* | ?:[\\/]* )  # Absolute name.
15060    ac_srcdir=$srcdir$ac_dir_suffix;
15061    ac_top_srcdir=$srcdir
15062    ac_abs_top_srcdir=$srcdir ;;
15063  *) # Relative name.
15064    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15065    ac_top_srcdir=$ac_top_build_prefix$srcdir
15066    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15067esac
15068ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15069
15070
15071  case $ac_mode in
15072  :F)
15073  #
15074  # CONFIG_FILE
15075  #
15076
15077  case $INSTALL in
15078  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15079  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15080  esac
15081  ac_MKDIR_P=$MKDIR_P
15082  case $MKDIR_P in
15083  [\\/$]* | ?:[\\/]* ) ;;
15084  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15085  esac
15086_ACEOF
15087
15088cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15089# If the template does not know about datarootdir, expand it.
15090# FIXME: This hack should be removed a few years after 2.60.
15091ac_datarootdir_hack=; ac_datarootdir_seen=
15092ac_sed_dataroot='
15093/datarootdir/ {
15094  p
15095  q
15096}
15097/@datadir@/p
15098/@docdir@/p
15099/@infodir@/p
15100/@localedir@/p
15101/@mandir@/p'
15102case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15103*datarootdir*) ac_datarootdir_seen=yes;;
15104*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15105  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15106$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15107_ACEOF
15108cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15109  ac_datarootdir_hack='
15110  s&@datadir@&$datadir&g
15111  s&@docdir@&$docdir&g
15112  s&@infodir@&$infodir&g
15113  s&@localedir@&$localedir&g
15114  s&@mandir@&$mandir&g
15115  s&\\\${datarootdir}&$datarootdir&g' ;;
15116esac
15117_ACEOF
15118
15119# Neutralize VPATH when `$srcdir' = `.'.
15120# Shell code in configure.ac might set extrasub.
15121# FIXME: do we really want to maintain this feature?
15122cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15123ac_sed_extra="$ac_vpsub
15124$extrasub
15125_ACEOF
15126cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15127:t
15128/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15129s|@configure_input@|$ac_sed_conf_input|;t t
15130s&@top_builddir@&$ac_top_builddir_sub&;t t
15131s&@top_build_prefix@&$ac_top_build_prefix&;t t
15132s&@srcdir@&$ac_srcdir&;t t
15133s&@abs_srcdir@&$ac_abs_srcdir&;t t
15134s&@top_srcdir@&$ac_top_srcdir&;t t
15135s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15136s&@builddir@&$ac_builddir&;t t
15137s&@abs_builddir@&$ac_abs_builddir&;t t
15138s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15139s&@INSTALL@&$ac_INSTALL&;t t
15140s&@MKDIR_P@&$ac_MKDIR_P&;t t
15141$ac_datarootdir_hack
15142"
15143eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15144  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15145
15146test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15147  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15148  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
15149      "$ac_tmp/out"`; test -z "$ac_out"; } &&
15150  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15151which seems to be undefined.  Please make sure it is defined" >&5
15152$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15153which seems to be undefined.  Please make sure it is defined" >&2;}
15154
15155  rm -f "$ac_tmp/stdin"
15156  case $ac_file in
15157  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15158  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15159  esac \
15160  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15161 ;;
15162  :H)
15163  #
15164  # CONFIG_HEADER
15165  #
15166  if test x"$ac_file" != x-; then
15167    {
15168      $as_echo "/* $configure_input  */" \
15169      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15170    } >"$ac_tmp/config.h" \
15171      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15172    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15173      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15174$as_echo "$as_me: $ac_file is unchanged" >&6;}
15175    else
15176      rm -f "$ac_file"
15177      mv "$ac_tmp/config.h" "$ac_file" \
15178	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
15179    fi
15180  else
15181    $as_echo "/* $configure_input  */" \
15182      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15183      || as_fn_error $? "could not create -" "$LINENO" 5
15184  fi
15185# Compute "$ac_file"'s index in $config_headers.
15186_am_arg="$ac_file"
15187_am_stamp_count=1
15188for _am_header in $config_headers :; do
15189  case $_am_header in
15190    $_am_arg | $_am_arg:* )
15191      break ;;
15192    * )
15193      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15194  esac
15195done
15196echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15197$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15198	 X"$_am_arg" : 'X\(//\)[^/]' \| \
15199	 X"$_am_arg" : 'X\(//\)$' \| \
15200	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15201$as_echo X"$_am_arg" |
15202    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15203	    s//\1/
15204	    q
15205	  }
15206	  /^X\(\/\/\)[^/].*/{
15207	    s//\1/
15208	    q
15209	  }
15210	  /^X\(\/\/\)$/{
15211	    s//\1/
15212	    q
15213	  }
15214	  /^X\(\/\).*/{
15215	    s//\1/
15216	    q
15217	  }
15218	  s/.*/./; q'`/stamp-h$_am_stamp_count
15219 ;;
15220
15221  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15222$as_echo "$as_me: executing $ac_file commands" >&6;}
15223 ;;
15224  esac
15225
15226
15227  case $ac_file$ac_mode in
15228    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15229  # Older Autoconf quotes --file arguments for eval, but not when files
15230  # are listed without --file.  Let's play safe and only enable the eval
15231  # if we detect the quoting.
15232  case $CONFIG_FILES in
15233  *\'*) eval set x "$CONFIG_FILES" ;;
15234  *)   set x $CONFIG_FILES ;;
15235  esac
15236  shift
15237  for mf
15238  do
15239    # Strip MF so we end up with the name of the file.
15240    mf=`echo "$mf" | sed -e 's/:.*$//'`
15241    # Check whether this is an Automake generated Makefile or not.
15242    # We used to match only the files named 'Makefile.in', but
15243    # some people rename them; so instead we look at the file content.
15244    # Grep'ing the first line is not enough: some people post-process
15245    # each Makefile.in and add a new line on top of each file to say so.
15246    # Grep'ing the whole file is not good either: AIX grep has a line
15247    # limit of 2048, but all sed's we know have understand at least 4000.
15248    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15249      dirpart=`$as_dirname -- "$mf" ||
15250$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15251	 X"$mf" : 'X\(//\)[^/]' \| \
15252	 X"$mf" : 'X\(//\)$' \| \
15253	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15254$as_echo X"$mf" |
15255    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15256	    s//\1/
15257	    q
15258	  }
15259	  /^X\(\/\/\)[^/].*/{
15260	    s//\1/
15261	    q
15262	  }
15263	  /^X\(\/\/\)$/{
15264	    s//\1/
15265	    q
15266	  }
15267	  /^X\(\/\).*/{
15268	    s//\1/
15269	    q
15270	  }
15271	  s/.*/./; q'`
15272    else
15273      continue
15274    fi
15275    # Extract the definition of DEPDIR, am__include, and am__quote
15276    # from the Makefile without running 'make'.
15277    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15278    test -z "$DEPDIR" && continue
15279    am__include=`sed -n 's/^am__include = //p' < "$mf"`
15280    test -z "$am__include" && continue
15281    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15282    # Find all dependency output files, they are included files with
15283    # $(DEPDIR) in their names.  We invoke sed twice because it is the
15284    # simplest approach to changing $(DEPDIR) to its actual value in the
15285    # expansion.
15286    for file in `sed -n "
15287      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15288	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
15289      # Make sure the directory exists.
15290      test -f "$dirpart/$file" && continue
15291      fdir=`$as_dirname -- "$file" ||
15292$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15293	 X"$file" : 'X\(//\)[^/]' \| \
15294	 X"$file" : 'X\(//\)$' \| \
15295	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15296$as_echo X"$file" |
15297    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15298	    s//\1/
15299	    q
15300	  }
15301	  /^X\(\/\/\)[^/].*/{
15302	    s//\1/
15303	    q
15304	  }
15305	  /^X\(\/\/\)$/{
15306	    s//\1/
15307	    q
15308	  }
15309	  /^X\(\/\).*/{
15310	    s//\1/
15311	    q
15312	  }
15313	  s/.*/./; q'`
15314      as_dir=$dirpart/$fdir; as_fn_mkdir_p
15315      # echo "creating $dirpart/$file"
15316      echo '# dummy' > "$dirpart/$file"
15317    done
15318  done
15319}
15320 ;;
15321    "libtool":C)
15322
15323    # See if we are running on zsh, and set the options that allow our
15324    # commands through without removal of \ escapes.
15325    if test -n "${ZSH_VERSION+set}"; then
15326      setopt NO_GLOB_SUBST
15327    fi
15328
15329    cfgfile=${ofile}T
15330    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15331    $RM "$cfgfile"
15332
15333    cat <<_LT_EOF >> "$cfgfile"
15334#! $SHELL
15335# Generated automatically by $as_me ($PACKAGE) $VERSION
15336# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15337# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15338
15339# Provide generalized library-building support services.
15340# Written by Gordon Matzigkeit, 1996
15341
15342# Copyright (C) 2014 Free Software Foundation, Inc.
15343# This is free software; see the source for copying conditions.  There is NO
15344# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15345
15346# GNU Libtool is free software; you can redistribute it and/or modify
15347# it under the terms of the GNU General Public License as published by
15348# the Free Software Foundation; either version 2 of of the License, or
15349# (at your option) any later version.
15350#
15351# As a special exception to the GNU General Public License, if you
15352# distribute this file as part of a program or library that is built
15353# using GNU Libtool, you may include this file under the  same
15354# distribution terms that you use for the rest of that program.
15355#
15356# GNU Libtool is distributed in the hope that it will be useful, but
15357# WITHOUT ANY WARRANTY; without even the implied warranty of
15358# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15359# GNU General Public License for more details.
15360#
15361# You should have received a copy of the GNU General Public License
15362# along with this program.  If not, see <http://www.gnu.org/licenses/>.
15363
15364
15365# The names of the tagged configurations supported by this script.
15366available_tags=''
15367
15368# Configured defaults for sys_lib_dlsearch_path munging.
15369: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15370
15371# ### BEGIN LIBTOOL CONFIG
15372
15373# Which release of libtool.m4 was used?
15374macro_version=$macro_version
15375macro_revision=$macro_revision
15376
15377# Whether or not to build shared libraries.
15378build_libtool_libs=$enable_shared
15379
15380# Whether or not to build static libraries.
15381build_old_libs=$enable_static
15382
15383# What type of objects to build.
15384pic_mode=$pic_mode
15385
15386# Whether or not to optimize for fast installation.
15387fast_install=$enable_fast_install
15388
15389# Shared archive member basename,for filename based shared library versioning on AIX.
15390shared_archive_member_spec=$shared_archive_member_spec
15391
15392# Shell to use when invoking shell scripts.
15393SHELL=$lt_SHELL
15394
15395# An echo program that protects backslashes.
15396ECHO=$lt_ECHO
15397
15398# The PATH separator for the build system.
15399PATH_SEPARATOR=$lt_PATH_SEPARATOR
15400
15401# The host system.
15402host_alias=$host_alias
15403host=$host
15404host_os=$host_os
15405
15406# The build system.
15407build_alias=$build_alias
15408build=$build
15409build_os=$build_os
15410
15411# A sed program that does not truncate output.
15412SED=$lt_SED
15413
15414# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15415Xsed="\$SED -e 1s/^X//"
15416
15417# A grep program that handles long lines.
15418GREP=$lt_GREP
15419
15420# An ERE matcher.
15421EGREP=$lt_EGREP
15422
15423# A literal string matcher.
15424FGREP=$lt_FGREP
15425
15426# A BSD- or MS-compatible name lister.
15427NM=$lt_NM
15428
15429# Whether we need soft or hard links.
15430LN_S=$lt_LN_S
15431
15432# What is the maximum length of a command?
15433max_cmd_len=$max_cmd_len
15434
15435# Object file suffix (normally "o").
15436objext=$ac_objext
15437
15438# Executable file suffix (normally "").
15439exeext=$exeext
15440
15441# whether the shell understands "unset".
15442lt_unset=$lt_unset
15443
15444# turn spaces into newlines.
15445SP2NL=$lt_lt_SP2NL
15446
15447# turn newlines into spaces.
15448NL2SP=$lt_lt_NL2SP
15449
15450# convert \$build file names to \$host format.
15451to_host_file_cmd=$lt_cv_to_host_file_cmd
15452
15453# convert \$build files to toolchain format.
15454to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15455
15456# An object symbol dumper.
15457OBJDUMP=$lt_OBJDUMP
15458
15459# Method to check whether dependent libraries are shared objects.
15460deplibs_check_method=$lt_deplibs_check_method
15461
15462# Command to use when deplibs_check_method = "file_magic".
15463file_magic_cmd=$lt_file_magic_cmd
15464
15465# How to find potential files when deplibs_check_method = "file_magic".
15466file_magic_glob=$lt_file_magic_glob
15467
15468# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15469want_nocaseglob=$lt_want_nocaseglob
15470
15471# DLL creation program.
15472DLLTOOL=$lt_DLLTOOL
15473
15474# Command to associate shared and link libraries.
15475sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15476
15477# The archiver.
15478AR=$lt_AR
15479
15480# Flags to create an archive.
15481AR_FLAGS=$lt_AR_FLAGS
15482
15483# How to feed a file listing to the archiver.
15484archiver_list_spec=$lt_archiver_list_spec
15485
15486# A symbol stripping program.
15487STRIP=$lt_STRIP
15488
15489# Commands used to install an old-style archive.
15490RANLIB=$lt_RANLIB
15491old_postinstall_cmds=$lt_old_postinstall_cmds
15492old_postuninstall_cmds=$lt_old_postuninstall_cmds
15493
15494# Whether to use a lock for old archive extraction.
15495lock_old_archive_extraction=$lock_old_archive_extraction
15496
15497# A C compiler.
15498LTCC=$lt_CC
15499
15500# LTCC compiler flags.
15501LTCFLAGS=$lt_CFLAGS
15502
15503# Take the output of nm and produce a listing of raw symbols and C names.
15504global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15505
15506# Transform the output of nm in a proper C declaration.
15507global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15508
15509# Transform the output of nm into a list of symbols to manually relocate.
15510global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15511
15512# Transform the output of nm in a C name address pair.
15513global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15514
15515# Transform the output of nm in a C name address pair when lib prefix is needed.
15516global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15517
15518# The name lister interface.
15519nm_interface=$lt_lt_cv_nm_interface
15520
15521# Specify filename containing input files for \$NM.
15522nm_file_list_spec=$lt_nm_file_list_spec
15523
15524# The root where to search for dependent libraries,and where our libraries should be installed.
15525lt_sysroot=$lt_sysroot
15526
15527# Command to truncate a binary pipe.
15528lt_truncate_bin=$lt_lt_cv_truncate_bin
15529
15530# The name of the directory that contains temporary libtool files.
15531objdir=$objdir
15532
15533# Used to examine libraries when file_magic_cmd begins with "file".
15534MAGIC_CMD=$MAGIC_CMD
15535
15536# Must we lock files when doing compilation?
15537need_locks=$lt_need_locks
15538
15539# Manifest tool.
15540MANIFEST_TOOL=$lt_MANIFEST_TOOL
15541
15542# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15543DSYMUTIL=$lt_DSYMUTIL
15544
15545# Tool to change global to local symbols on Mac OS X.
15546NMEDIT=$lt_NMEDIT
15547
15548# Tool to manipulate fat objects and archives on Mac OS X.
15549LIPO=$lt_LIPO
15550
15551# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15552OTOOL=$lt_OTOOL
15553
15554# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15555OTOOL64=$lt_OTOOL64
15556
15557# Old archive suffix (normally "a").
15558libext=$libext
15559
15560# Shared library suffix (normally ".so").
15561shrext_cmds=$lt_shrext_cmds
15562
15563# The commands to extract the exported symbol list from a shared archive.
15564extract_expsyms_cmds=$lt_extract_expsyms_cmds
15565
15566# Variables whose values should be saved in libtool wrapper scripts and
15567# restored at link time.
15568variables_saved_for_relink=$lt_variables_saved_for_relink
15569
15570# Do we need the "lib" prefix for modules?
15571need_lib_prefix=$need_lib_prefix
15572
15573# Do we need a version for libraries?
15574need_version=$need_version
15575
15576# Library versioning type.
15577version_type=$version_type
15578
15579# Shared library runtime path variable.
15580runpath_var=$runpath_var
15581
15582# Shared library path variable.
15583shlibpath_var=$shlibpath_var
15584
15585# Is shlibpath searched before the hard-coded library search path?
15586shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15587
15588# Format of library name prefix.
15589libname_spec=$lt_libname_spec
15590
15591# List of archive names.  First name is the real one, the rest are links.
15592# The last name is the one that the linker finds with -lNAME
15593library_names_spec=$lt_library_names_spec
15594
15595# The coded name of the library, if different from the real name.
15596soname_spec=$lt_soname_spec
15597
15598# Permission mode override for installation of shared libraries.
15599install_override_mode=$lt_install_override_mode
15600
15601# Command to use after installation of a shared archive.
15602postinstall_cmds=$lt_postinstall_cmds
15603
15604# Command to use after uninstallation of a shared archive.
15605postuninstall_cmds=$lt_postuninstall_cmds
15606
15607# Commands used to finish a libtool library installation in a directory.
15608finish_cmds=$lt_finish_cmds
15609
15610# As "finish_cmds", except a single script fragment to be evaled but
15611# not shown.
15612finish_eval=$lt_finish_eval
15613
15614# Whether we should hardcode library paths into libraries.
15615hardcode_into_libs=$hardcode_into_libs
15616
15617# Compile-time system search path for libraries.
15618sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15619
15620# Detected run-time system search path for libraries.
15621sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15622
15623# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15624configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15625
15626# Whether dlopen is supported.
15627dlopen_support=$enable_dlopen
15628
15629# Whether dlopen of programs is supported.
15630dlopen_self=$enable_dlopen_self
15631
15632# Whether dlopen of statically linked programs is supported.
15633dlopen_self_static=$enable_dlopen_self_static
15634
15635# Commands to strip libraries.
15636old_striplib=$lt_old_striplib
15637striplib=$lt_striplib
15638
15639
15640# The linker used to build libraries.
15641LD=$lt_LD
15642
15643# How to create reloadable object files.
15644reload_flag=$lt_reload_flag
15645reload_cmds=$lt_reload_cmds
15646
15647# Commands used to build an old-style archive.
15648old_archive_cmds=$lt_old_archive_cmds
15649
15650# A language specific compiler.
15651CC=$lt_compiler
15652
15653# Is the compiler the GNU compiler?
15654with_gcc=$GCC
15655
15656# Compiler flag to turn off builtin functions.
15657no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15658
15659# Additional compiler flags for building library objects.
15660pic_flag=$lt_lt_prog_compiler_pic
15661
15662# How to pass a linker flag through the compiler.
15663wl=$lt_lt_prog_compiler_wl
15664
15665# Compiler flag to prevent dynamic linking.
15666link_static_flag=$lt_lt_prog_compiler_static
15667
15668# Does compiler simultaneously support -c and -o options?
15669compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15670
15671# Whether or not to add -lc for building shared libraries.
15672build_libtool_need_lc=$archive_cmds_need_lc
15673
15674# Whether or not to disallow shared libs when runtime libs are static.
15675allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15676
15677# Compiler flag to allow reflexive dlopens.
15678export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15679
15680# Compiler flag to generate shared objects directly from archives.
15681whole_archive_flag_spec=$lt_whole_archive_flag_spec
15682
15683# Whether the compiler copes with passing no objects directly.
15684compiler_needs_object=$lt_compiler_needs_object
15685
15686# Create an old-style archive from a shared archive.
15687old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15688
15689# Create a temporary old-style archive to link instead of a shared archive.
15690old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15691
15692# Commands used to build a shared archive.
15693archive_cmds=$lt_archive_cmds
15694archive_expsym_cmds=$lt_archive_expsym_cmds
15695
15696# Commands used to build a loadable module if different from building
15697# a shared archive.
15698module_cmds=$lt_module_cmds
15699module_expsym_cmds=$lt_module_expsym_cmds
15700
15701# Whether we are building with GNU ld or not.
15702with_gnu_ld=$lt_with_gnu_ld
15703
15704# Flag that allows shared libraries with undefined symbols to be built.
15705allow_undefined_flag=$lt_allow_undefined_flag
15706
15707# Flag that enforces no undefined symbols.
15708no_undefined_flag=$lt_no_undefined_flag
15709
15710# Flag to hardcode \$libdir into a binary during linking.
15711# This must work even if \$libdir does not exist
15712hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15713
15714# Whether we need a single "-rpath" flag with a separated argument.
15715hardcode_libdir_separator=$lt_hardcode_libdir_separator
15716
15717# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15718# DIR into the resulting binary.
15719hardcode_direct=$hardcode_direct
15720
15721# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15722# DIR into the resulting binary and the resulting library dependency is
15723# "absolute",i.e impossible to change by setting \$shlibpath_var if the
15724# library is relocated.
15725hardcode_direct_absolute=$hardcode_direct_absolute
15726
15727# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15728# into the resulting binary.
15729hardcode_minus_L=$hardcode_minus_L
15730
15731# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15732# into the resulting binary.
15733hardcode_shlibpath_var=$hardcode_shlibpath_var
15734
15735# Set to "yes" if building a shared library automatically hardcodes DIR
15736# into the library and all subsequent libraries and executables linked
15737# against it.
15738hardcode_automatic=$hardcode_automatic
15739
15740# Set to yes if linker adds runtime paths of dependent libraries
15741# to runtime path list.
15742inherit_rpath=$inherit_rpath
15743
15744# Whether libtool must link a program against all its dependency libraries.
15745link_all_deplibs=$link_all_deplibs
15746
15747# Set to "yes" if exported symbols are required.
15748always_export_symbols=$always_export_symbols
15749
15750# The commands to list exported symbols.
15751export_symbols_cmds=$lt_export_symbols_cmds
15752
15753# Symbols that should not be listed in the preloaded symbols.
15754exclude_expsyms=$lt_exclude_expsyms
15755
15756# Symbols that must always be exported.
15757include_expsyms=$lt_include_expsyms
15758
15759# Commands necessary for linking programs (against libraries) with templates.
15760prelink_cmds=$lt_prelink_cmds
15761
15762# Commands necessary for finishing linking programs.
15763postlink_cmds=$lt_postlink_cmds
15764
15765# Specify filename containing input files.
15766file_list_spec=$lt_file_list_spec
15767
15768# How to hardcode a shared library path into an executable.
15769hardcode_action=$hardcode_action
15770
15771# ### END LIBTOOL CONFIG
15772
15773_LT_EOF
15774
15775    cat <<'_LT_EOF' >> "$cfgfile"
15776
15777# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15778
15779# func_munge_path_list VARIABLE PATH
15780# -----------------------------------
15781# VARIABLE is name of variable containing _space_ separated list of
15782# directories to be munged by the contents of PATH, which is string
15783# having a format:
15784# "DIR[:DIR]:"
15785#       string "DIR[ DIR]" will be prepended to VARIABLE
15786# ":DIR[:DIR]"
15787#       string "DIR[ DIR]" will be appended to VARIABLE
15788# "DIRP[:DIRP]::[DIRA:]DIRA"
15789#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15790#       "DIRA[ DIRA]" will be appended to VARIABLE
15791# "DIR[:DIR]"
15792#       VARIABLE will be replaced by "DIR[ DIR]"
15793func_munge_path_list ()
15794{
15795    case x$2 in
15796    x)
15797        ;;
15798    *:)
15799        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15800        ;;
15801    x:*)
15802        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15803        ;;
15804    *::*)
15805        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15806        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15807        ;;
15808    *)
15809        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15810        ;;
15811    esac
15812}
15813
15814
15815# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
15816func_cc_basename ()
15817{
15818    for cc_temp in $*""; do
15819      case $cc_temp in
15820        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15821        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15822        \-*) ;;
15823        *) break;;
15824      esac
15825    done
15826    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15827}
15828
15829
15830# ### END FUNCTIONS SHARED WITH CONFIGURE
15831
15832_LT_EOF
15833
15834  case $host_os in
15835  aix3*)
15836    cat <<\_LT_EOF >> "$cfgfile"
15837# AIX sometimes has problems with the GCC collect2 program.  For some
15838# reason, if we set the COLLECT_NAMES environment variable, the problems
15839# vanish in a puff of smoke.
15840if test set != "${COLLECT_NAMES+set}"; then
15841  COLLECT_NAMES=
15842  export COLLECT_NAMES
15843fi
15844_LT_EOF
15845    ;;
15846  esac
15847
15848
15849ltmain=$ac_aux_dir/ltmain.sh
15850
15851
15852  # We use sed instead of cat because bash on DJGPP gets confused if
15853  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15854  # text mode, it properly converts lines to CR/LF.  This bash problem
15855  # is reportedly fixed, but why not run on old versions too?
15856  sed '$q' "$ltmain" >> "$cfgfile" \
15857     || (rm -f "$cfgfile"; exit 1)
15858
15859   mv -f "$cfgfile" "$ofile" ||
15860    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15861  chmod +x "$ofile"
15862
15863 ;;
15864
15865  esac
15866done # for ac_tag
15867
15868
15869as_fn_exit 0
15870_ACEOF
15871ac_clean_files=$ac_clean_files_save
15872
15873test $ac_write_fail = 0 ||
15874  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15875
15876
15877# configure is writing to config.log, and then calls config.status.
15878# config.status does its own redirection, appending to config.log.
15879# Unfortunately, on DOS this fails, as config.log is still kept open
15880# by configure, so config.status won't be able to write to it; its
15881# output is simply discarded.  So we exec the FD to /dev/null,
15882# effectively closing config.log, so it can be properly (re)opened and
15883# appended to by config.status.  When coming back to configure, we
15884# need to make the FD available again.
15885if test "$no_create" != yes; then
15886  ac_cs_success=:
15887  ac_config_status_args=
15888  test "$silent" = yes &&
15889    ac_config_status_args="$ac_config_status_args --quiet"
15890  exec 5>/dev/null
15891  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15892  exec 5>>config.log
15893  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15894  # would make configure fail if this is the last instruction.
15895  $ac_cs_success || as_fn_exit 1
15896fi
15897if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15898  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15899$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15900fi
15901
15902