1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for numlib 0.10.
4#
5# Report bugs to <courier-users@lists.sourceforge.net>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    PATH=/empty FPATH=/empty; export PATH FPATH
207    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: courier-users@lists.sourceforge.net about your system,
279$0: including any error possibly output before this
280$0: message. Then install a modern shell, or manually run
281$0: the script under such a shell if you do have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='numlib'
592PACKAGE_TARNAME='numlib'
593PACKAGE_VERSION='0.10'
594PACKAGE_STRING='numlib 0.10'
595PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
596PACKAGE_URL=''
597
598ac_unique_file="atotimet.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
639CPP
640LT_SYS_LIBRARY_PATH
641OTOOL64
642OTOOL
643LIPO
644NMEDIT
645DSYMUTIL
646MANIFEST_TOOL
647RANLIB
648ac_ct_AR
649AR
650DLLTOOL
651OBJDUMP
652NM
653ac_ct_DUMPBIN
654DUMPBIN
655LD
656FGREP
657EGREP
658GREP
659SED
660host_os
661host_vendor
662host_cpu
663host
664build_os
665build_vendor
666build_cpu
667build
668LIBTOOL
669LN_S
670am__fastdepCC_FALSE
671am__fastdepCC_TRUE
672CCDEPMODE
673am__nodep
674AMDEPBACKSLASH
675AMDEP_FALSE
676AMDEP_TRUE
677am__include
678DEPDIR
679OBJEXT
680EXEEXT
681ac_ct_CC
682CPPFLAGS
683LDFLAGS
684CFLAGS
685CC
686AM_BACKSLASH
687AM_DEFAULT_VERBOSITY
688AM_DEFAULT_V
689AM_V
690am__untar
691am__tar
692AMTAR
693am__leading_dot
694SET_MAKE
695AWK
696mkdir_p
697MKDIR_P
698INSTALL_STRIP_PROGRAM
699STRIP
700install_sh
701MAKEINFO
702AUTOHEADER
703AUTOMAKE
704AUTOCONF
705ACLOCAL
706VERSION
707PACKAGE
708CYGPATH_W
709am__isrc
710INSTALL_DATA
711INSTALL_SCRIPT
712INSTALL_PROGRAM
713target_alias
714host_alias
715build_alias
716LIBS
717ECHO_T
718ECHO_N
719ECHO_C
720DEFS
721mandir
722localedir
723libdir
724psdir
725pdfdir
726dvidir
727htmldir
728infodir
729docdir
730oldincludedir
731includedir
732localstatedir
733sharedstatedir
734sysconfdir
735datadir
736datarootdir
737libexecdir
738sbindir
739bindir
740program_transform_name
741prefix
742exec_prefix
743PACKAGE_URL
744PACKAGE_BUGREPORT
745PACKAGE_STRING
746PACKAGE_VERSION
747PACKAGE_TARNAME
748PACKAGE_NAME
749PATH_SEPARATOR
750SHELL
751am__quote'
752ac_subst_files=''
753ac_user_opts='
754enable_option_checking
755enable_silent_rules
756enable_dependency_tracking
757enable_shared
758enable_static
759with_pic
760enable_fast_install
761with_aix_soname
762with_gnu_ld
763with_sysroot
764enable_libtool_lock
765enable_largefile
766'
767      ac_precious_vars='build_alias
768host_alias
769target_alias
770CC
771CFLAGS
772LDFLAGS
773LIBS
774CPPFLAGS
775LT_SYS_LIBRARY_PATH
776CPP'
777
778
779# Initialize some variables set by options.
780ac_init_help=
781ac_init_version=false
782ac_unrecognized_opts=
783ac_unrecognized_sep=
784# The variables have the same names as the options, with
785# dashes changed to underlines.
786cache_file=/dev/null
787exec_prefix=NONE
788no_create=
789no_recursion=
790prefix=NONE
791program_prefix=NONE
792program_suffix=NONE
793program_transform_name=s,x,x,
794silent=
795site=
796srcdir=
797verbose=
798x_includes=NONE
799x_libraries=NONE
800
801# Installation directory options.
802# These are left unexpanded so users can "make install exec_prefix=/foo"
803# and all the variables that are supposed to be based on exec_prefix
804# by default will actually change.
805# Use braces instead of parens because sh, perl, etc. also accept them.
806# (The list follows the same order as the GNU Coding Standards.)
807bindir='${exec_prefix}/bin'
808sbindir='${exec_prefix}/sbin'
809libexecdir='${exec_prefix}/libexec'
810datarootdir='${prefix}/share'
811datadir='${datarootdir}'
812sysconfdir='${prefix}/etc'
813sharedstatedir='${prefix}/com'
814localstatedir='${prefix}/var'
815includedir='${prefix}/include'
816oldincludedir='/usr/include'
817docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
818infodir='${datarootdir}/info'
819htmldir='${docdir}'
820dvidir='${docdir}'
821pdfdir='${docdir}'
822psdir='${docdir}'
823libdir='${exec_prefix}/lib'
824localedir='${datarootdir}/locale'
825mandir='${datarootdir}/man'
826
827ac_prev=
828ac_dashdash=
829for ac_option
830do
831  # If the previous option needs an argument, assign it.
832  if test -n "$ac_prev"; then
833    eval $ac_prev=\$ac_option
834    ac_prev=
835    continue
836  fi
837
838  case $ac_option in
839  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
840  *=)   ac_optarg= ;;
841  *)    ac_optarg=yes ;;
842  esac
843
844  # Accept the important Cygnus configure options, so we can diagnose typos.
845
846  case $ac_dashdash$ac_option in
847  --)
848    ac_dashdash=yes ;;
849
850  -bindir | --bindir | --bindi | --bind | --bin | --bi)
851    ac_prev=bindir ;;
852  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
853    bindir=$ac_optarg ;;
854
855  -build | --build | --buil | --bui | --bu)
856    ac_prev=build_alias ;;
857  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
858    build_alias=$ac_optarg ;;
859
860  -cache-file | --cache-file | --cache-fil | --cache-fi \
861  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
862    ac_prev=cache_file ;;
863  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
864  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
865    cache_file=$ac_optarg ;;
866
867  --config-cache | -C)
868    cache_file=config.cache ;;
869
870  -datadir | --datadir | --datadi | --datad)
871    ac_prev=datadir ;;
872  -datadir=* | --datadir=* | --datadi=* | --datad=*)
873    datadir=$ac_optarg ;;
874
875  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
876  | --dataroo | --dataro | --datar)
877    ac_prev=datarootdir ;;
878  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
879  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
880    datarootdir=$ac_optarg ;;
881
882  -disable-* | --disable-*)
883    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
884    # Reject names that are not valid shell variable names.
885    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
886      as_fn_error $? "invalid feature name: $ac_useropt"
887    ac_useropt_orig=$ac_useropt
888    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
889    case $ac_user_opts in
890      *"
891"enable_$ac_useropt"
892"*) ;;
893      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
894	 ac_unrecognized_sep=', ';;
895    esac
896    eval enable_$ac_useropt=no ;;
897
898  -docdir | --docdir | --docdi | --doc | --do)
899    ac_prev=docdir ;;
900  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
901    docdir=$ac_optarg ;;
902
903  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
904    ac_prev=dvidir ;;
905  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
906    dvidir=$ac_optarg ;;
907
908  -enable-* | --enable-*)
909    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
910    # Reject names that are not valid shell variable names.
911    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
912      as_fn_error $? "invalid feature name: $ac_useropt"
913    ac_useropt_orig=$ac_useropt
914    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
915    case $ac_user_opts in
916      *"
917"enable_$ac_useropt"
918"*) ;;
919      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
920	 ac_unrecognized_sep=', ';;
921    esac
922    eval enable_$ac_useropt=\$ac_optarg ;;
923
924  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
925  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
926  | --exec | --exe | --ex)
927    ac_prev=exec_prefix ;;
928  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
929  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
930  | --exec=* | --exe=* | --ex=*)
931    exec_prefix=$ac_optarg ;;
932
933  -gas | --gas | --ga | --g)
934    # Obsolete; use --with-gas.
935    with_gas=yes ;;
936
937  -help | --help | --hel | --he | -h)
938    ac_init_help=long ;;
939  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
940    ac_init_help=recursive ;;
941  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
942    ac_init_help=short ;;
943
944  -host | --host | --hos | --ho)
945    ac_prev=host_alias ;;
946  -host=* | --host=* | --hos=* | --ho=*)
947    host_alias=$ac_optarg ;;
948
949  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
950    ac_prev=htmldir ;;
951  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
952  | --ht=*)
953    htmldir=$ac_optarg ;;
954
955  -includedir | --includedir | --includedi | --included | --include \
956  | --includ | --inclu | --incl | --inc)
957    ac_prev=includedir ;;
958  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
959  | --includ=* | --inclu=* | --incl=* | --inc=*)
960    includedir=$ac_optarg ;;
961
962  -infodir | --infodir | --infodi | --infod | --info | --inf)
963    ac_prev=infodir ;;
964  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
965    infodir=$ac_optarg ;;
966
967  -libdir | --libdir | --libdi | --libd)
968    ac_prev=libdir ;;
969  -libdir=* | --libdir=* | --libdi=* | --libd=*)
970    libdir=$ac_optarg ;;
971
972  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
973  | --libexe | --libex | --libe)
974    ac_prev=libexecdir ;;
975  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
976  | --libexe=* | --libex=* | --libe=*)
977    libexecdir=$ac_optarg ;;
978
979  -localedir | --localedir | --localedi | --localed | --locale)
980    ac_prev=localedir ;;
981  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
982    localedir=$ac_optarg ;;
983
984  -localstatedir | --localstatedir | --localstatedi | --localstated \
985  | --localstate | --localstat | --localsta | --localst | --locals)
986    ac_prev=localstatedir ;;
987  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
988  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
989    localstatedir=$ac_optarg ;;
990
991  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
992    ac_prev=mandir ;;
993  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
994    mandir=$ac_optarg ;;
995
996  -nfp | --nfp | --nf)
997    # Obsolete; use --without-fp.
998    with_fp=no ;;
999
1000  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1001  | --no-cr | --no-c | -n)
1002    no_create=yes ;;
1003
1004  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1005  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1006    no_recursion=yes ;;
1007
1008  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1009  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1010  | --oldin | --oldi | --old | --ol | --o)
1011    ac_prev=oldincludedir ;;
1012  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1013  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1014  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1015    oldincludedir=$ac_optarg ;;
1016
1017  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1018    ac_prev=prefix ;;
1019  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1020    prefix=$ac_optarg ;;
1021
1022  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1023  | --program-pre | --program-pr | --program-p)
1024    ac_prev=program_prefix ;;
1025  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1026  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1027    program_prefix=$ac_optarg ;;
1028
1029  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1030  | --program-suf | --program-su | --program-s)
1031    ac_prev=program_suffix ;;
1032  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1033  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1034    program_suffix=$ac_optarg ;;
1035
1036  -program-transform-name | --program-transform-name \
1037  | --program-transform-nam | --program-transform-na \
1038  | --program-transform-n | --program-transform- \
1039  | --program-transform | --program-transfor \
1040  | --program-transfo | --program-transf \
1041  | --program-trans | --program-tran \
1042  | --progr-tra | --program-tr | --program-t)
1043    ac_prev=program_transform_name ;;
1044  -program-transform-name=* | --program-transform-name=* \
1045  | --program-transform-nam=* | --program-transform-na=* \
1046  | --program-transform-n=* | --program-transform-=* \
1047  | --program-transform=* | --program-transfor=* \
1048  | --program-transfo=* | --program-transf=* \
1049  | --program-trans=* | --program-tran=* \
1050  | --progr-tra=* | --program-tr=* | --program-t=*)
1051    program_transform_name=$ac_optarg ;;
1052
1053  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1054    ac_prev=pdfdir ;;
1055  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1056    pdfdir=$ac_optarg ;;
1057
1058  -psdir | --psdir | --psdi | --psd | --ps)
1059    ac_prev=psdir ;;
1060  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1061    psdir=$ac_optarg ;;
1062
1063  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1064  | -silent | --silent | --silen | --sile | --sil)
1065    silent=yes ;;
1066
1067  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1068    ac_prev=sbindir ;;
1069  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1070  | --sbi=* | --sb=*)
1071    sbindir=$ac_optarg ;;
1072
1073  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1074  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1075  | --sharedst | --shareds | --shared | --share | --shar \
1076  | --sha | --sh)
1077    ac_prev=sharedstatedir ;;
1078  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1079  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1080  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1081  | --sha=* | --sh=*)
1082    sharedstatedir=$ac_optarg ;;
1083
1084  -site | --site | --sit)
1085    ac_prev=site ;;
1086  -site=* | --site=* | --sit=*)
1087    site=$ac_optarg ;;
1088
1089  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1090    ac_prev=srcdir ;;
1091  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1092    srcdir=$ac_optarg ;;
1093
1094  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1095  | --syscon | --sysco | --sysc | --sys | --sy)
1096    ac_prev=sysconfdir ;;
1097  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1098  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1099    sysconfdir=$ac_optarg ;;
1100
1101  -target | --target | --targe | --targ | --tar | --ta | --t)
1102    ac_prev=target_alias ;;
1103  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1104    target_alias=$ac_optarg ;;
1105
1106  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1107    verbose=yes ;;
1108
1109  -version | --version | --versio | --versi | --vers | -V)
1110    ac_init_version=: ;;
1111
1112  -with-* | --with-*)
1113    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1114    # Reject names that are not valid shell variable names.
1115    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1116      as_fn_error $? "invalid package name: $ac_useropt"
1117    ac_useropt_orig=$ac_useropt
1118    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1119    case $ac_user_opts in
1120      *"
1121"with_$ac_useropt"
1122"*) ;;
1123      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1124	 ac_unrecognized_sep=', ';;
1125    esac
1126    eval with_$ac_useropt=\$ac_optarg ;;
1127
1128  -without-* | --without-*)
1129    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1130    # Reject names that are not valid shell variable names.
1131    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1132      as_fn_error $? "invalid package name: $ac_useropt"
1133    ac_useropt_orig=$ac_useropt
1134    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1135    case $ac_user_opts in
1136      *"
1137"with_$ac_useropt"
1138"*) ;;
1139      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1140	 ac_unrecognized_sep=', ';;
1141    esac
1142    eval with_$ac_useropt=no ;;
1143
1144  --x)
1145    # Obsolete; use --with-x.
1146    with_x=yes ;;
1147
1148  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1149  | --x-incl | --x-inc | --x-in | --x-i)
1150    ac_prev=x_includes ;;
1151  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1152  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1153    x_includes=$ac_optarg ;;
1154
1155  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1156  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1157    ac_prev=x_libraries ;;
1158  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1159  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1160    x_libraries=$ac_optarg ;;
1161
1162  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1163Try \`$0 --help' for more information"
1164    ;;
1165
1166  *=*)
1167    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1168    # Reject names that are not valid shell variable names.
1169    case $ac_envvar in #(
1170      '' | [0-9]* | *[!_$as_cr_alnum]* )
1171      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1172    esac
1173    eval $ac_envvar=\$ac_optarg
1174    export $ac_envvar ;;
1175
1176  *)
1177    # FIXME: should be removed in autoconf 3.0.
1178    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1179    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1180      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1181    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1182    ;;
1183
1184  esac
1185done
1186
1187if test -n "$ac_prev"; then
1188  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1189  as_fn_error $? "missing argument to $ac_option"
1190fi
1191
1192if test -n "$ac_unrecognized_opts"; then
1193  case $enable_option_checking in
1194    no) ;;
1195    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1196    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1197  esac
1198fi
1199
1200# Check all directory arguments for consistency.
1201for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1202		datadir sysconfdir sharedstatedir localstatedir includedir \
1203		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1204		libdir localedir mandir
1205do
1206  eval ac_val=\$$ac_var
1207  # Remove trailing slashes.
1208  case $ac_val in
1209    */ )
1210      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1211      eval $ac_var=\$ac_val;;
1212  esac
1213  # Be sure to have absolute directory names.
1214  case $ac_val in
1215    [\\/$]* | ?:[\\/]* )  continue;;
1216    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1217  esac
1218  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1219done
1220
1221# There might be people who depend on the old broken behavior: `$host'
1222# used to hold the argument of --host etc.
1223# FIXME: To remove some day.
1224build=$build_alias
1225host=$host_alias
1226target=$target_alias
1227
1228# FIXME: To remove some day.
1229if test "x$host_alias" != x; then
1230  if test "x$build_alias" = x; then
1231    cross_compiling=maybe
1232  elif test "x$build_alias" != "x$host_alias"; then
1233    cross_compiling=yes
1234  fi
1235fi
1236
1237ac_tool_prefix=
1238test -n "$host_alias" && ac_tool_prefix=$host_alias-
1239
1240test "$silent" = yes && exec 6>/dev/null
1241
1242
1243ac_pwd=`pwd` && test -n "$ac_pwd" &&
1244ac_ls_di=`ls -di .` &&
1245ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1246  as_fn_error $? "working directory cannot be determined"
1247test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1248  as_fn_error $? "pwd does not report name of working directory"
1249
1250
1251# Find the source files, if location was not specified.
1252if test -z "$srcdir"; then
1253  ac_srcdir_defaulted=yes
1254  # Try the directory containing this script, then the parent directory.
1255  ac_confdir=`$as_dirname -- "$as_myself" ||
1256$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1257	 X"$as_myself" : 'X\(//\)[^/]' \| \
1258	 X"$as_myself" : 'X\(//\)$' \| \
1259	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1260$as_echo X"$as_myself" |
1261    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1262	    s//\1/
1263	    q
1264	  }
1265	  /^X\(\/\/\)[^/].*/{
1266	    s//\1/
1267	    q
1268	  }
1269	  /^X\(\/\/\)$/{
1270	    s//\1/
1271	    q
1272	  }
1273	  /^X\(\/\).*/{
1274	    s//\1/
1275	    q
1276	  }
1277	  s/.*/./; q'`
1278  srcdir=$ac_confdir
1279  if test ! -r "$srcdir/$ac_unique_file"; then
1280    srcdir=..
1281  fi
1282else
1283  ac_srcdir_defaulted=no
1284fi
1285if test ! -r "$srcdir/$ac_unique_file"; then
1286  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1287  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1288fi
1289ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1290ac_abs_confdir=`(
1291	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1292	pwd)`
1293# When building in place, set srcdir=.
1294if test "$ac_abs_confdir" = "$ac_pwd"; then
1295  srcdir=.
1296fi
1297# Remove unnecessary trailing slashes from srcdir.
1298# Double slashes in file names in object file debugging info
1299# mess up M-x gdb in Emacs.
1300case $srcdir in
1301*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1302esac
1303for ac_var in $ac_precious_vars; do
1304  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1305  eval ac_env_${ac_var}_value=\$${ac_var}
1306  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1307  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1308done
1309
1310#
1311# Report the --help message.
1312#
1313if test "$ac_init_help" = "long"; then
1314  # Omit some internal or obsolete options to make the list less imposing.
1315  # This message is too long to be a string in the A/UX 3.1 sh.
1316  cat <<_ACEOF
1317\`configure' configures numlib 0.10 to adapt to many kinds of systems.
1318
1319Usage: $0 [OPTION]... [VAR=VALUE]...
1320
1321To assign environment variables (e.g., CC, CFLAGS...), specify them as
1322VAR=VALUE.  See below for descriptions of some of the useful variables.
1323
1324Defaults for the options are specified in brackets.
1325
1326Configuration:
1327  -h, --help              display this help and exit
1328      --help=short        display options specific to this package
1329      --help=recursive    display the short help of all the included packages
1330  -V, --version           display version information and exit
1331  -q, --quiet, --silent   do not print \`checking ...' messages
1332      --cache-file=FILE   cache test results in FILE [disabled]
1333  -C, --config-cache      alias for \`--cache-file=config.cache'
1334  -n, --no-create         do not create output files
1335      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1336
1337Installation directories:
1338  --prefix=PREFIX         install architecture-independent files in PREFIX
1339                          [$ac_default_prefix]
1340  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1341                          [PREFIX]
1342
1343By default, \`make install' will install all the files in
1344\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1345an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1346for instance \`--prefix=\$HOME'.
1347
1348For better control, use the options below.
1349
1350Fine tuning of the installation directories:
1351  --bindir=DIR            user executables [EPREFIX/bin]
1352  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1353  --libexecdir=DIR        program executables [EPREFIX/libexec]
1354  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1355  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1356  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1357  --libdir=DIR            object code libraries [EPREFIX/lib]
1358  --includedir=DIR        C header files [PREFIX/include]
1359  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1360  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1361  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1362  --infodir=DIR           info documentation [DATAROOTDIR/info]
1363  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1364  --mandir=DIR            man documentation [DATAROOTDIR/man]
1365  --docdir=DIR            documentation root [DATAROOTDIR/doc/numlib]
1366  --htmldir=DIR           html documentation [DOCDIR]
1367  --dvidir=DIR            dvi documentation [DOCDIR]
1368  --pdfdir=DIR            pdf documentation [DOCDIR]
1369  --psdir=DIR             ps documentation [DOCDIR]
1370_ACEOF
1371
1372  cat <<\_ACEOF
1373
1374Program names:
1375  --program-prefix=PREFIX            prepend PREFIX to installed program names
1376  --program-suffix=SUFFIX            append SUFFIX to installed program names
1377  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1378
1379System types:
1380  --build=BUILD     configure for building on BUILD [guessed]
1381  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1382_ACEOF
1383fi
1384
1385if test -n "$ac_init_help"; then
1386  case $ac_init_help in
1387     short | recursive ) echo "Configuration of numlib 0.10:";;
1388   esac
1389  cat <<\_ACEOF
1390
1391Optional Features:
1392  --disable-option-checking  ignore unrecognized --enable/--with options
1393  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1394  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1395  --enable-silent-rules   less verbose build output (undo: "make V=1")
1396  --disable-silent-rules  verbose build output (undo: "make V=0")
1397  --enable-dependency-tracking
1398                          do not reject slow dependency extractors
1399  --disable-dependency-tracking
1400                          speeds up one-time build
1401  --enable-shared[=PKGS]  build shared libraries [default=yes]
1402  --enable-static[=PKGS]  build static libraries [default=yes]
1403  --enable-fast-install[=PKGS]
1404                          optimize for fast installation [default=yes]
1405  --disable-libtool-lock  avoid locking (might break parallel builds)
1406  --disable-largefile     omit support for large files
1407
1408Optional Packages:
1409  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1410  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1411  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1412                          both]
1413  --with-aix-soname=aix|svr4|both
1414                          shared library versioning (aka "SONAME") variant to
1415                          provide on AIX, [default=aix].
1416  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1417  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1418                          compiler's sysroot if not specified).
1419
1420Some influential environment variables:
1421  CC          C compiler command
1422  CFLAGS      C compiler flags
1423  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1424              nonstandard directory <lib dir>
1425  LIBS        libraries to pass to the linker, e.g. -l<library>
1426  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1427              you have headers in a nonstandard directory <include dir>
1428  LT_SYS_LIBRARY_PATH
1429              User-defined run-time library search path.
1430  CPP         C preprocessor
1431
1432Use these variables to override the choices made by `configure' or to help
1433it to find libraries and programs with nonstandard names/locations.
1434
1435Report bugs to <courier-users@lists.sourceforge.net>.
1436_ACEOF
1437ac_status=$?
1438fi
1439
1440if test "$ac_init_help" = "recursive"; then
1441  # If there are subdirs, report their specific --help.
1442  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1443    test -d "$ac_dir" ||
1444      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1445      continue
1446    ac_builddir=.
1447
1448case "$ac_dir" in
1449.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1450*)
1451  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1452  # A ".." for each directory in $ac_dir_suffix.
1453  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1454  case $ac_top_builddir_sub in
1455  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1456  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1457  esac ;;
1458esac
1459ac_abs_top_builddir=$ac_pwd
1460ac_abs_builddir=$ac_pwd$ac_dir_suffix
1461# for backward compatibility:
1462ac_top_builddir=$ac_top_build_prefix
1463
1464case $srcdir in
1465  .)  # We are building in place.
1466    ac_srcdir=.
1467    ac_top_srcdir=$ac_top_builddir_sub
1468    ac_abs_top_srcdir=$ac_pwd ;;
1469  [\\/]* | ?:[\\/]* )  # Absolute name.
1470    ac_srcdir=$srcdir$ac_dir_suffix;
1471    ac_top_srcdir=$srcdir
1472    ac_abs_top_srcdir=$srcdir ;;
1473  *) # Relative name.
1474    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1475    ac_top_srcdir=$ac_top_build_prefix$srcdir
1476    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1477esac
1478ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1479
1480    cd "$ac_dir" || { ac_status=$?; continue; }
1481    # Check for guested configure.
1482    if test -f "$ac_srcdir/configure.gnu"; then
1483      echo &&
1484      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1485    elif test -f "$ac_srcdir/configure"; then
1486      echo &&
1487      $SHELL "$ac_srcdir/configure" --help=recursive
1488    else
1489      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1490    fi || ac_status=$?
1491    cd "$ac_pwd" || { ac_status=$?; break; }
1492  done
1493fi
1494
1495test -n "$ac_init_help" && exit $ac_status
1496if $ac_init_version; then
1497  cat <<\_ACEOF
1498numlib configure 0.10
1499generated by GNU Autoconf 2.69
1500
1501Copyright (C) 2012 Free Software Foundation, Inc.
1502This configure script is free software; the Free Software Foundation
1503gives unlimited permission to copy, distribute and modify it.
1504_ACEOF
1505  exit
1506fi
1507
1508## ------------------------ ##
1509## Autoconf initialization. ##
1510## ------------------------ ##
1511
1512# ac_fn_c_try_compile LINENO
1513# --------------------------
1514# Try to compile conftest.$ac_ext, and return whether this succeeded.
1515ac_fn_c_try_compile ()
1516{
1517  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1518  rm -f conftest.$ac_objext
1519  if { { ac_try="$ac_compile"
1520case "(($ac_try" in
1521  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1522  *) ac_try_echo=$ac_try;;
1523esac
1524eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1525$as_echo "$ac_try_echo"; } >&5
1526  (eval "$ac_compile") 2>conftest.err
1527  ac_status=$?
1528  if test -s conftest.err; then
1529    grep -v '^ *+' conftest.err >conftest.er1
1530    cat conftest.er1 >&5
1531    mv -f conftest.er1 conftest.err
1532  fi
1533  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1534  test $ac_status = 0; } && {
1535	 test -z "$ac_c_werror_flag" ||
1536	 test ! -s conftest.err
1537       } && test -s conftest.$ac_objext; then :
1538  ac_retval=0
1539else
1540  $as_echo "$as_me: failed program was:" >&5
1541sed 's/^/| /' conftest.$ac_ext >&5
1542
1543	ac_retval=1
1544fi
1545  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1546  as_fn_set_status $ac_retval
1547
1548} # ac_fn_c_try_compile
1549
1550# ac_fn_c_try_link LINENO
1551# -----------------------
1552# Try to link conftest.$ac_ext, and return whether this succeeded.
1553ac_fn_c_try_link ()
1554{
1555  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1556  rm -f conftest.$ac_objext conftest$ac_exeext
1557  if { { ac_try="$ac_link"
1558case "(($ac_try" in
1559  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1560  *) ac_try_echo=$ac_try;;
1561esac
1562eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1563$as_echo "$ac_try_echo"; } >&5
1564  (eval "$ac_link") 2>conftest.err
1565  ac_status=$?
1566  if test -s conftest.err; then
1567    grep -v '^ *+' conftest.err >conftest.er1
1568    cat conftest.er1 >&5
1569    mv -f conftest.er1 conftest.err
1570  fi
1571  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1572  test $ac_status = 0; } && {
1573	 test -z "$ac_c_werror_flag" ||
1574	 test ! -s conftest.err
1575       } && test -s conftest$ac_exeext && {
1576	 test "$cross_compiling" = yes ||
1577	 test -x conftest$ac_exeext
1578       }; then :
1579  ac_retval=0
1580else
1581  $as_echo "$as_me: failed program was:" >&5
1582sed 's/^/| /' conftest.$ac_ext >&5
1583
1584	ac_retval=1
1585fi
1586  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1587  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1588  # interfere with the next link command; also delete a directory that is
1589  # left behind by Apple's compiler.  We do this before executing the actions.
1590  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1591  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1592  as_fn_set_status $ac_retval
1593
1594} # ac_fn_c_try_link
1595
1596# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1597# -------------------------------------------------------
1598# Tests whether HEADER exists and can be compiled using the include files in
1599# INCLUDES, setting the cache variable VAR accordingly.
1600ac_fn_c_check_header_compile ()
1601{
1602  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1603  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1604$as_echo_n "checking for $2... " >&6; }
1605if eval \${$3+:} false; then :
1606  $as_echo_n "(cached) " >&6
1607else
1608  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1609/* end confdefs.h.  */
1610$4
1611#include <$2>
1612_ACEOF
1613if ac_fn_c_try_compile "$LINENO"; then :
1614  eval "$3=yes"
1615else
1616  eval "$3=no"
1617fi
1618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1619fi
1620eval ac_res=\$$3
1621	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1622$as_echo "$ac_res" >&6; }
1623  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624
1625} # ac_fn_c_check_header_compile
1626
1627# ac_fn_c_try_cpp LINENO
1628# ----------------------
1629# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1630ac_fn_c_try_cpp ()
1631{
1632  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1633  if { { ac_try="$ac_cpp conftest.$ac_ext"
1634case "(($ac_try" in
1635  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1636  *) ac_try_echo=$ac_try;;
1637esac
1638eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639$as_echo "$ac_try_echo"; } >&5
1640  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1641  ac_status=$?
1642  if test -s conftest.err; then
1643    grep -v '^ *+' conftest.err >conftest.er1
1644    cat conftest.er1 >&5
1645    mv -f conftest.er1 conftest.err
1646  fi
1647  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648  test $ac_status = 0; } > conftest.i && {
1649	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1650	 test ! -s conftest.err
1651       }; then :
1652  ac_retval=0
1653else
1654  $as_echo "$as_me: failed program was:" >&5
1655sed 's/^/| /' conftest.$ac_ext >&5
1656
1657    ac_retval=1
1658fi
1659  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1660  as_fn_set_status $ac_retval
1661
1662} # ac_fn_c_try_cpp
1663
1664# ac_fn_c_try_run LINENO
1665# ----------------------
1666# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1667# that executables *can* be run.
1668ac_fn_c_try_run ()
1669{
1670  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671  if { { ac_try="$ac_link"
1672case "(($ac_try" in
1673  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674  *) ac_try_echo=$ac_try;;
1675esac
1676eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677$as_echo "$ac_try_echo"; } >&5
1678  (eval "$ac_link") 2>&5
1679  ac_status=$?
1680  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1681  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1682  { { case "(($ac_try" in
1683  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684  *) ac_try_echo=$ac_try;;
1685esac
1686eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687$as_echo "$ac_try_echo"; } >&5
1688  (eval "$ac_try") 2>&5
1689  ac_status=$?
1690  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691  test $ac_status = 0; }; }; then :
1692  ac_retval=0
1693else
1694  $as_echo "$as_me: program exited with status $ac_status" >&5
1695       $as_echo "$as_me: failed program was:" >&5
1696sed 's/^/| /' conftest.$ac_ext >&5
1697
1698       ac_retval=$ac_status
1699fi
1700  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1701  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1702  as_fn_set_status $ac_retval
1703
1704} # ac_fn_c_try_run
1705
1706# ac_fn_c_check_func LINENO FUNC VAR
1707# ----------------------------------
1708# Tests whether FUNC exists, setting the cache variable VAR accordingly
1709ac_fn_c_check_func ()
1710{
1711  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1713$as_echo_n "checking for $2... " >&6; }
1714if eval \${$3+:} false; then :
1715  $as_echo_n "(cached) " >&6
1716else
1717  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1718/* end confdefs.h.  */
1719/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1720   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1721#define $2 innocuous_$2
1722
1723/* System header to define __stub macros and hopefully few prototypes,
1724    which can conflict with char $2 (); below.
1725    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1726    <limits.h> exists even on freestanding compilers.  */
1727
1728#ifdef __STDC__
1729# include <limits.h>
1730#else
1731# include <assert.h>
1732#endif
1733
1734#undef $2
1735
1736/* Override any GCC internal prototype to avoid an error.
1737   Use char because int might match the return type of a GCC
1738   builtin and then its argument prototype would still apply.  */
1739#ifdef __cplusplus
1740extern "C"
1741#endif
1742char $2 ();
1743/* The GNU C library defines this for functions which it implements
1744    to always fail with ENOSYS.  Some functions are actually named
1745    something starting with __ and the normal name is an alias.  */
1746#if defined __stub_$2 || defined __stub___$2
1747choke me
1748#endif
1749
1750int
1751main ()
1752{
1753return $2 ();
1754  ;
1755  return 0;
1756}
1757_ACEOF
1758if ac_fn_c_try_link "$LINENO"; then :
1759  eval "$3=yes"
1760else
1761  eval "$3=no"
1762fi
1763rm -f core conftest.err conftest.$ac_objext \
1764    conftest$ac_exeext conftest.$ac_ext
1765fi
1766eval ac_res=\$$3
1767	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1768$as_echo "$ac_res" >&6; }
1769  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1770
1771} # ac_fn_c_check_func
1772
1773# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1774# -------------------------------------------------------
1775# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1776# the include files in INCLUDES and setting the cache variable VAR
1777# accordingly.
1778ac_fn_c_check_header_mongrel ()
1779{
1780  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781  if eval \${$3+:} false; then :
1782  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1783$as_echo_n "checking for $2... " >&6; }
1784if eval \${$3+:} false; then :
1785  $as_echo_n "(cached) " >&6
1786fi
1787eval ac_res=\$$3
1788	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1789$as_echo "$ac_res" >&6; }
1790else
1791  # Is the header compilable?
1792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1793$as_echo_n "checking $2 usability... " >&6; }
1794cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1795/* end confdefs.h.  */
1796$4
1797#include <$2>
1798_ACEOF
1799if ac_fn_c_try_compile "$LINENO"; then :
1800  ac_header_compiler=yes
1801else
1802  ac_header_compiler=no
1803fi
1804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1806$as_echo "$ac_header_compiler" >&6; }
1807
1808# Is the header present?
1809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1810$as_echo_n "checking $2 presence... " >&6; }
1811cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1812/* end confdefs.h.  */
1813#include <$2>
1814_ACEOF
1815if ac_fn_c_try_cpp "$LINENO"; then :
1816  ac_header_preproc=yes
1817else
1818  ac_header_preproc=no
1819fi
1820rm -f conftest.err conftest.i conftest.$ac_ext
1821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1822$as_echo "$ac_header_preproc" >&6; }
1823
1824# So?  What about this header?
1825case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1826  yes:no: )
1827    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1828$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1829    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1830$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1831    ;;
1832  no:yes:* )
1833    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1834$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1835    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1836$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1837    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1838$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1839    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1840$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1841    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1842$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1843( $as_echo "## -------------------------------------------------- ##
1844## Report this to courier-users@lists.sourceforge.net ##
1845## -------------------------------------------------- ##"
1846     ) | sed "s/^/$as_me: WARNING:     /" >&2
1847    ;;
1848esac
1849  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1850$as_echo_n "checking for $2... " >&6; }
1851if eval \${$3+:} false; then :
1852  $as_echo_n "(cached) " >&6
1853else
1854  eval "$3=\$ac_header_compiler"
1855fi
1856eval ac_res=\$$3
1857	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1858$as_echo "$ac_res" >&6; }
1859fi
1860  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1861
1862} # ac_fn_c_check_header_mongrel
1863
1864# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1865# -------------------------------------------
1866# Tests whether TYPE exists after having included INCLUDES, setting cache
1867# variable VAR accordingly.
1868ac_fn_c_check_type ()
1869{
1870  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1872$as_echo_n "checking for $2... " >&6; }
1873if eval \${$3+:} false; then :
1874  $as_echo_n "(cached) " >&6
1875else
1876  eval "$3=no"
1877  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1878/* end confdefs.h.  */
1879$4
1880int
1881main ()
1882{
1883if (sizeof ($2))
1884	 return 0;
1885  ;
1886  return 0;
1887}
1888_ACEOF
1889if ac_fn_c_try_compile "$LINENO"; then :
1890  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1891/* end confdefs.h.  */
1892$4
1893int
1894main ()
1895{
1896if (sizeof (($2)))
1897	    return 0;
1898  ;
1899  return 0;
1900}
1901_ACEOF
1902if ac_fn_c_try_compile "$LINENO"; then :
1903
1904else
1905  eval "$3=yes"
1906fi
1907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1908fi
1909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1910fi
1911eval ac_res=\$$3
1912	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1913$as_echo "$ac_res" >&6; }
1914  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1915
1916} # ac_fn_c_check_type
1917cat >config.log <<_ACEOF
1918This file contains any messages produced by compilers while
1919running configure, to aid debugging if configure makes a mistake.
1920
1921It was created by numlib $as_me 0.10, which was
1922generated by GNU Autoconf 2.69.  Invocation command line was
1923
1924  $ $0 $@
1925
1926_ACEOF
1927exec 5>>config.log
1928{
1929cat <<_ASUNAME
1930## --------- ##
1931## Platform. ##
1932## --------- ##
1933
1934hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1935uname -m = `(uname -m) 2>/dev/null || echo unknown`
1936uname -r = `(uname -r) 2>/dev/null || echo unknown`
1937uname -s = `(uname -s) 2>/dev/null || echo unknown`
1938uname -v = `(uname -v) 2>/dev/null || echo unknown`
1939
1940/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1941/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1942
1943/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1944/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1945/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1946/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1947/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1948/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1949/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1950
1951_ASUNAME
1952
1953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1954for as_dir in $PATH
1955do
1956  IFS=$as_save_IFS
1957  test -z "$as_dir" && as_dir=.
1958    $as_echo "PATH: $as_dir"
1959  done
1960IFS=$as_save_IFS
1961
1962} >&5
1963
1964cat >&5 <<_ACEOF
1965
1966
1967## ----------- ##
1968## Core tests. ##
1969## ----------- ##
1970
1971_ACEOF
1972
1973
1974# Keep a trace of the command line.
1975# Strip out --no-create and --no-recursion so they do not pile up.
1976# Strip out --silent because we don't want to record it for future runs.
1977# Also quote any args containing shell meta-characters.
1978# Make two passes to allow for proper duplicate-argument suppression.
1979ac_configure_args=
1980ac_configure_args0=
1981ac_configure_args1=
1982ac_must_keep_next=false
1983for ac_pass in 1 2
1984do
1985  for ac_arg
1986  do
1987    case $ac_arg in
1988    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1989    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1990    | -silent | --silent | --silen | --sile | --sil)
1991      continue ;;
1992    *\'*)
1993      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1994    esac
1995    case $ac_pass in
1996    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1997    2)
1998      as_fn_append ac_configure_args1 " '$ac_arg'"
1999      if test $ac_must_keep_next = true; then
2000	ac_must_keep_next=false # Got value, back to normal.
2001      else
2002	case $ac_arg in
2003	  *=* | --config-cache | -C | -disable-* | --disable-* \
2004	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2005	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2006	  | -with-* | --with-* | -without-* | --without-* | --x)
2007	    case "$ac_configure_args0 " in
2008	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2009	    esac
2010	    ;;
2011	  -* ) ac_must_keep_next=true ;;
2012	esac
2013      fi
2014      as_fn_append ac_configure_args " '$ac_arg'"
2015      ;;
2016    esac
2017  done
2018done
2019{ ac_configure_args0=; unset ac_configure_args0;}
2020{ ac_configure_args1=; unset ac_configure_args1;}
2021
2022# When interrupted or exit'd, cleanup temporary files, and complete
2023# config.log.  We remove comments because anyway the quotes in there
2024# would cause problems or look ugly.
2025# WARNING: Use '\'' to represent an apostrophe within the trap.
2026# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2027trap 'exit_status=$?
2028  # Save into config.log some information that might help in debugging.
2029  {
2030    echo
2031
2032    $as_echo "## ---------------- ##
2033## Cache variables. ##
2034## ---------------- ##"
2035    echo
2036    # The following way of writing the cache mishandles newlines in values,
2037(
2038  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2039    eval ac_val=\$$ac_var
2040    case $ac_val in #(
2041    *${as_nl}*)
2042      case $ac_var in #(
2043      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2044$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2045      esac
2046      case $ac_var in #(
2047      _ | IFS | as_nl) ;; #(
2048      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2049      *) { eval $ac_var=; unset $ac_var;} ;;
2050      esac ;;
2051    esac
2052  done
2053  (set) 2>&1 |
2054    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2055    *${as_nl}ac_space=\ *)
2056      sed -n \
2057	"s/'\''/'\''\\\\'\'''\''/g;
2058	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2059      ;; #(
2060    *)
2061      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2062      ;;
2063    esac |
2064    sort
2065)
2066    echo
2067
2068    $as_echo "## ----------------- ##
2069## Output variables. ##
2070## ----------------- ##"
2071    echo
2072    for ac_var in $ac_subst_vars
2073    do
2074      eval ac_val=\$$ac_var
2075      case $ac_val in
2076      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2077      esac
2078      $as_echo "$ac_var='\''$ac_val'\''"
2079    done | sort
2080    echo
2081
2082    if test -n "$ac_subst_files"; then
2083      $as_echo "## ------------------- ##
2084## File substitutions. ##
2085## ------------------- ##"
2086      echo
2087      for ac_var in $ac_subst_files
2088      do
2089	eval ac_val=\$$ac_var
2090	case $ac_val in
2091	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2092	esac
2093	$as_echo "$ac_var='\''$ac_val'\''"
2094      done | sort
2095      echo
2096    fi
2097
2098    if test -s confdefs.h; then
2099      $as_echo "## ----------- ##
2100## confdefs.h. ##
2101## ----------- ##"
2102      echo
2103      cat confdefs.h
2104      echo
2105    fi
2106    test "$ac_signal" != 0 &&
2107      $as_echo "$as_me: caught signal $ac_signal"
2108    $as_echo "$as_me: exit $exit_status"
2109  } >&5
2110  rm -f core *.core core.conftest.* &&
2111    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2112    exit $exit_status
2113' 0
2114for ac_signal in 1 2 13 15; do
2115  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2116done
2117ac_signal=0
2118
2119# confdefs.h avoids OS command line length limits that DEFS can exceed.
2120rm -f -r conftest* confdefs.h
2121
2122$as_echo "/* confdefs.h */" > confdefs.h
2123
2124# Predefined preprocessor variables.
2125
2126cat >>confdefs.h <<_ACEOF
2127#define PACKAGE_NAME "$PACKAGE_NAME"
2128_ACEOF
2129
2130cat >>confdefs.h <<_ACEOF
2131#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2132_ACEOF
2133
2134cat >>confdefs.h <<_ACEOF
2135#define PACKAGE_VERSION "$PACKAGE_VERSION"
2136_ACEOF
2137
2138cat >>confdefs.h <<_ACEOF
2139#define PACKAGE_STRING "$PACKAGE_STRING"
2140_ACEOF
2141
2142cat >>confdefs.h <<_ACEOF
2143#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2144_ACEOF
2145
2146cat >>confdefs.h <<_ACEOF
2147#define PACKAGE_URL "$PACKAGE_URL"
2148_ACEOF
2149
2150
2151# Let the site file select an alternate cache file if it wants to.
2152# Prefer an explicitly selected file to automatically selected ones.
2153ac_site_file1=NONE
2154ac_site_file2=NONE
2155if test -n "$CONFIG_SITE"; then
2156  # We do not want a PATH search for config.site.
2157  case $CONFIG_SITE in #((
2158    -*)  ac_site_file1=./$CONFIG_SITE;;
2159    */*) ac_site_file1=$CONFIG_SITE;;
2160    *)   ac_site_file1=./$CONFIG_SITE;;
2161  esac
2162elif test "x$prefix" != xNONE; then
2163  ac_site_file1=$prefix/share/config.site
2164  ac_site_file2=$prefix/etc/config.site
2165else
2166  ac_site_file1=$ac_default_prefix/share/config.site
2167  ac_site_file2=$ac_default_prefix/etc/config.site
2168fi
2169for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2170do
2171  test "x$ac_site_file" = xNONE && continue
2172  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2173    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2174$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2175    sed 's/^/| /' "$ac_site_file" >&5
2176    . "$ac_site_file" \
2177      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2178$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2179as_fn_error $? "failed to load site script $ac_site_file
2180See \`config.log' for more details" "$LINENO" 5; }
2181  fi
2182done
2183
2184if test -r "$cache_file"; then
2185  # Some versions of bash will fail to source /dev/null (special files
2186  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2187  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2188    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2189$as_echo "$as_me: loading cache $cache_file" >&6;}
2190    case $cache_file in
2191      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2192      *)                      . "./$cache_file";;
2193    esac
2194  fi
2195else
2196  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2197$as_echo "$as_me: creating cache $cache_file" >&6;}
2198  >$cache_file
2199fi
2200
2201# Check that the precious variables saved in the cache have kept the same
2202# value.
2203ac_cache_corrupted=false
2204for ac_var in $ac_precious_vars; do
2205  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2206  eval ac_new_set=\$ac_env_${ac_var}_set
2207  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2208  eval ac_new_val=\$ac_env_${ac_var}_value
2209  case $ac_old_set,$ac_new_set in
2210    set,)
2211      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2212$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2213      ac_cache_corrupted=: ;;
2214    ,set)
2215      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2216$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2217      ac_cache_corrupted=: ;;
2218    ,);;
2219    *)
2220      if test "x$ac_old_val" != "x$ac_new_val"; then
2221	# differences in whitespace do not lead to failure.
2222	ac_old_val_w=`echo x $ac_old_val`
2223	ac_new_val_w=`echo x $ac_new_val`
2224	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2225	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2226$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2227	  ac_cache_corrupted=:
2228	else
2229	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2230$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2231	  eval $ac_var=\$ac_old_val
2232	fi
2233	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2234$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2235	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2236$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2237      fi;;
2238  esac
2239  # Pass precious variables to config.status.
2240  if test "$ac_new_set" = set; then
2241    case $ac_new_val in
2242    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2243    *) ac_arg=$ac_var=$ac_new_val ;;
2244    esac
2245    case " $ac_configure_args " in
2246      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2247      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2248    esac
2249  fi
2250done
2251if $ac_cache_corrupted; then
2252  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2253$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2254  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2255$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2256  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2257fi
2258## -------------------- ##
2259## Main body of script. ##
2260## -------------------- ##
2261
2262ac_ext=c
2263ac_cpp='$CPP $CPPFLAGS'
2264ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2265ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2266ac_compiler_gnu=$ac_cv_c_compiler_gnu
2267
2268
2269
2270>confdefs.h  # Kill PACKAGE_ macros
2271
2272
2273ac_aux_dir=
2274for ac_dir in ../.. "$srcdir"/../..; do
2275  if test -f "$ac_dir/install-sh"; then
2276    ac_aux_dir=$ac_dir
2277    ac_install_sh="$ac_aux_dir/install-sh -c"
2278    break
2279  elif test -f "$ac_dir/install.sh"; then
2280    ac_aux_dir=$ac_dir
2281    ac_install_sh="$ac_aux_dir/install.sh -c"
2282    break
2283  elif test -f "$ac_dir/shtool"; then
2284    ac_aux_dir=$ac_dir
2285    ac_install_sh="$ac_aux_dir/shtool install -c"
2286    break
2287  fi
2288done
2289if test -z "$ac_aux_dir"; then
2290  as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
2291fi
2292
2293# These three variables are undocumented and unsupported,
2294# and are intended to be withdrawn in a future Autoconf release.
2295# They can cause serious problems if a builder's source tree is in a directory
2296# whose full name contains unusual characters.
2297ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2298ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2299ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2300
2301
2302ac_config_headers="$ac_config_headers config.h"
2303
2304am__api_version='1.16'
2305
2306# Find a good install program.  We prefer a C program (faster),
2307# so one script is as good as another.  But avoid the broken or
2308# incompatible versions:
2309# SysV /etc/install, /usr/sbin/install
2310# SunOS /usr/etc/install
2311# IRIX /sbin/install
2312# AIX /bin/install
2313# AmigaOS /C/install, which installs bootblocks on floppy discs
2314# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2315# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2316# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2317# OS/2's system install, which has a completely different semantic
2318# ./install, which can be erroneously created by make from ./install.sh.
2319# Reject install programs that cannot install multiple files.
2320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2321$as_echo_n "checking for a BSD-compatible install... " >&6; }
2322if test -z "$INSTALL"; then
2323if ${ac_cv_path_install+:} false; then :
2324  $as_echo_n "(cached) " >&6
2325else
2326  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2327for as_dir in $PATH
2328do
2329  IFS=$as_save_IFS
2330  test -z "$as_dir" && as_dir=.
2331    # Account for people who put trailing slashes in PATH elements.
2332case $as_dir/ in #((
2333  ./ | .// | /[cC]/* | \
2334  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2335  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2336  /usr/ucb/* ) ;;
2337  *)
2338    # OSF1 and SCO ODT 3.0 have their own names for install.
2339    # Don't use installbsd from OSF since it installs stuff as root
2340    # by default.
2341    for ac_prog in ginstall scoinst install; do
2342      for ac_exec_ext in '' $ac_executable_extensions; do
2343	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2344	  if test $ac_prog = install &&
2345	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2346	    # AIX install.  It has an incompatible calling convention.
2347	    :
2348	  elif test $ac_prog = install &&
2349	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2350	    # program-specific install script used by HP pwplus--don't use.
2351	    :
2352	  else
2353	    rm -rf conftest.one conftest.two conftest.dir
2354	    echo one > conftest.one
2355	    echo two > conftest.two
2356	    mkdir conftest.dir
2357	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2358	      test -s conftest.one && test -s conftest.two &&
2359	      test -s conftest.dir/conftest.one &&
2360	      test -s conftest.dir/conftest.two
2361	    then
2362	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2363	      break 3
2364	    fi
2365	  fi
2366	fi
2367      done
2368    done
2369    ;;
2370esac
2371
2372  done
2373IFS=$as_save_IFS
2374
2375rm -rf conftest.one conftest.two conftest.dir
2376
2377fi
2378  if test "${ac_cv_path_install+set}" = set; then
2379    INSTALL=$ac_cv_path_install
2380  else
2381    # As a last resort, use the slow shell script.  Don't cache a
2382    # value for INSTALL within a source directory, because that will
2383    # break other packages using the cache if that directory is
2384    # removed, or if the value is a relative name.
2385    INSTALL=$ac_install_sh
2386  fi
2387fi
2388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2389$as_echo "$INSTALL" >&6; }
2390
2391# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2392# It thinks the first close brace ends the variable substitution.
2393test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2394
2395test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2396
2397test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2398
2399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2400$as_echo_n "checking whether build environment is sane... " >&6; }
2401# Reject unsafe characters in $srcdir or the absolute working directory
2402# name.  Accept space and tab only in the latter.
2403am_lf='
2404'
2405case `pwd` in
2406  *[\\\"\#\$\&\'\`$am_lf]*)
2407    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2408esac
2409case $srcdir in
2410  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2411    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2412esac
2413
2414# Do 'set' in a subshell so we don't clobber the current shell's
2415# arguments.  Must try -L first in case configure is actually a
2416# symlink; some systems play weird games with the mod time of symlinks
2417# (eg FreeBSD returns the mod time of the symlink's containing
2418# directory).
2419if (
2420   am_has_slept=no
2421   for am_try in 1 2; do
2422     echo "timestamp, slept: $am_has_slept" > conftest.file
2423     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2424     if test "$*" = "X"; then
2425	# -L didn't work.
2426	set X `ls -t "$srcdir/configure" conftest.file`
2427     fi
2428     if test "$*" != "X $srcdir/configure conftest.file" \
2429	&& test "$*" != "X conftest.file $srcdir/configure"; then
2430
2431	# If neither matched, then we have a broken ls.  This can happen
2432	# if, for instance, CONFIG_SHELL is bash and it inherits a
2433	# broken ls alias from the environment.  This has actually
2434	# happened.  Such a system could not be considered "sane".
2435	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2436  alias in your environment" "$LINENO" 5
2437     fi
2438     if test "$2" = conftest.file || test $am_try -eq 2; then
2439       break
2440     fi
2441     # Just in case.
2442     sleep 1
2443     am_has_slept=yes
2444   done
2445   test "$2" = conftest.file
2446   )
2447then
2448   # Ok.
2449   :
2450else
2451   as_fn_error $? "newly created file is older than distributed files!
2452Check your system clock" "$LINENO" 5
2453fi
2454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2455$as_echo "yes" >&6; }
2456# If we didn't sleep, we still need to ensure time stamps of config.status and
2457# generated files are strictly newer.
2458am_sleep_pid=
2459if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2460  ( sleep 1 ) &
2461  am_sleep_pid=$!
2462fi
2463
2464rm -f conftest.file
2465
2466test "$program_prefix" != NONE &&
2467  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2468# Use a double $ so make ignores it.
2469test "$program_suffix" != NONE &&
2470  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2471# Double any \ or $.
2472# By default was `s,x,x', remove it if useless.
2473ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2474program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2475
2476# Expand $ac_aux_dir to an absolute path.
2477am_aux_dir=`cd "$ac_aux_dir" && pwd`
2478
2479if test x"${MISSING+set}" != xset; then
2480  case $am_aux_dir in
2481  *\ * | *\	*)
2482    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2483  *)
2484    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2485  esac
2486fi
2487# Use eval to expand $SHELL
2488if eval "$MISSING --is-lightweight"; then
2489  am_missing_run="$MISSING "
2490else
2491  am_missing_run=
2492  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2493$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2494fi
2495
2496if test x"${install_sh+set}" != xset; then
2497  case $am_aux_dir in
2498  *\ * | *\	*)
2499    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2500  *)
2501    install_sh="\${SHELL} $am_aux_dir/install-sh"
2502  esac
2503fi
2504
2505# Installed binaries are usually stripped using 'strip' when the user
2506# run "make install-strip".  However 'strip' might not be the right
2507# tool to use in cross-compilation environments, therefore Automake
2508# will honor the 'STRIP' environment variable to overrule this program.
2509if test "$cross_compiling" != no; then
2510  if test -n "$ac_tool_prefix"; then
2511  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2512set dummy ${ac_tool_prefix}strip; ac_word=$2
2513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2514$as_echo_n "checking for $ac_word... " >&6; }
2515if ${ac_cv_prog_STRIP+:} false; then :
2516  $as_echo_n "(cached) " >&6
2517else
2518  if test -n "$STRIP"; then
2519  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2520else
2521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2522for as_dir in $PATH
2523do
2524  IFS=$as_save_IFS
2525  test -z "$as_dir" && as_dir=.
2526    for ac_exec_ext in '' $ac_executable_extensions; do
2527  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2528    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2529    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2530    break 2
2531  fi
2532done
2533  done
2534IFS=$as_save_IFS
2535
2536fi
2537fi
2538STRIP=$ac_cv_prog_STRIP
2539if test -n "$STRIP"; then
2540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2541$as_echo "$STRIP" >&6; }
2542else
2543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2544$as_echo "no" >&6; }
2545fi
2546
2547
2548fi
2549if test -z "$ac_cv_prog_STRIP"; then
2550  ac_ct_STRIP=$STRIP
2551  # Extract the first word of "strip", so it can be a program name with args.
2552set dummy strip; ac_word=$2
2553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2554$as_echo_n "checking for $ac_word... " >&6; }
2555if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2556  $as_echo_n "(cached) " >&6
2557else
2558  if test -n "$ac_ct_STRIP"; then
2559  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2560else
2561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2562for as_dir in $PATH
2563do
2564  IFS=$as_save_IFS
2565  test -z "$as_dir" && as_dir=.
2566    for ac_exec_ext in '' $ac_executable_extensions; do
2567  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2568    ac_cv_prog_ac_ct_STRIP="strip"
2569    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2570    break 2
2571  fi
2572done
2573  done
2574IFS=$as_save_IFS
2575
2576fi
2577fi
2578ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2579if test -n "$ac_ct_STRIP"; then
2580  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2581$as_echo "$ac_ct_STRIP" >&6; }
2582else
2583  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2584$as_echo "no" >&6; }
2585fi
2586
2587  if test "x$ac_ct_STRIP" = x; then
2588    STRIP=":"
2589  else
2590    case $cross_compiling:$ac_tool_warned in
2591yes:)
2592{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2593$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2594ac_tool_warned=yes ;;
2595esac
2596    STRIP=$ac_ct_STRIP
2597  fi
2598else
2599  STRIP="$ac_cv_prog_STRIP"
2600fi
2601
2602fi
2603INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2604
2605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2606$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2607if test -z "$MKDIR_P"; then
2608  if ${ac_cv_path_mkdir+:} false; then :
2609  $as_echo_n "(cached) " >&6
2610else
2611  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2613do
2614  IFS=$as_save_IFS
2615  test -z "$as_dir" && as_dir=.
2616    for ac_prog in mkdir gmkdir; do
2617	 for ac_exec_ext in '' $ac_executable_extensions; do
2618	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2619	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2620	     'mkdir (GNU coreutils) '* | \
2621	     'mkdir (coreutils) '* | \
2622	     'mkdir (fileutils) '4.1*)
2623	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2624	       break 3;;
2625	   esac
2626	 done
2627       done
2628  done
2629IFS=$as_save_IFS
2630
2631fi
2632
2633  test -d ./--version && rmdir ./--version
2634  if test "${ac_cv_path_mkdir+set}" = set; then
2635    MKDIR_P="$ac_cv_path_mkdir -p"
2636  else
2637    # As a last resort, use the slow shell script.  Don't cache a
2638    # value for MKDIR_P within a source directory, because that will
2639    # break other packages using the cache if that directory is
2640    # removed, or if the value is a relative name.
2641    MKDIR_P="$ac_install_sh -d"
2642  fi
2643fi
2644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2645$as_echo "$MKDIR_P" >&6; }
2646
2647for ac_prog in gawk mawk nawk awk
2648do
2649  # Extract the first word of "$ac_prog", so it can be a program name with args.
2650set dummy $ac_prog; ac_word=$2
2651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2652$as_echo_n "checking for $ac_word... " >&6; }
2653if ${ac_cv_prog_AWK+:} false; then :
2654  $as_echo_n "(cached) " >&6
2655else
2656  if test -n "$AWK"; then
2657  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2658else
2659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2660for as_dir in $PATH
2661do
2662  IFS=$as_save_IFS
2663  test -z "$as_dir" && as_dir=.
2664    for ac_exec_ext in '' $ac_executable_extensions; do
2665  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2666    ac_cv_prog_AWK="$ac_prog"
2667    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2668    break 2
2669  fi
2670done
2671  done
2672IFS=$as_save_IFS
2673
2674fi
2675fi
2676AWK=$ac_cv_prog_AWK
2677if test -n "$AWK"; then
2678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2679$as_echo "$AWK" >&6; }
2680else
2681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2682$as_echo "no" >&6; }
2683fi
2684
2685
2686  test -n "$AWK" && break
2687done
2688
2689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2690$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2691set x ${MAKE-make}
2692ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2693if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2694  $as_echo_n "(cached) " >&6
2695else
2696  cat >conftest.make <<\_ACEOF
2697SHELL = /bin/sh
2698all:
2699	@echo '@@@%%%=$(MAKE)=@@@%%%'
2700_ACEOF
2701# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2702case `${MAKE-make} -f conftest.make 2>/dev/null` in
2703  *@@@%%%=?*=@@@%%%*)
2704    eval ac_cv_prog_make_${ac_make}_set=yes;;
2705  *)
2706    eval ac_cv_prog_make_${ac_make}_set=no;;
2707esac
2708rm -f conftest.make
2709fi
2710if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2712$as_echo "yes" >&6; }
2713  SET_MAKE=
2714else
2715  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2716$as_echo "no" >&6; }
2717  SET_MAKE="MAKE=${MAKE-make}"
2718fi
2719
2720rm -rf .tst 2>/dev/null
2721mkdir .tst 2>/dev/null
2722if test -d .tst; then
2723  am__leading_dot=.
2724else
2725  am__leading_dot=_
2726fi
2727rmdir .tst 2>/dev/null
2728
2729# Check whether --enable-silent-rules was given.
2730if test "${enable_silent_rules+set}" = set; then :
2731  enableval=$enable_silent_rules;
2732fi
2733
2734case $enable_silent_rules in # (((
2735  yes) AM_DEFAULT_VERBOSITY=0;;
2736   no) AM_DEFAULT_VERBOSITY=1;;
2737    *) AM_DEFAULT_VERBOSITY=1;;
2738esac
2739am_make=${MAKE-make}
2740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2741$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2742if ${am_cv_make_support_nested_variables+:} false; then :
2743  $as_echo_n "(cached) " >&6
2744else
2745  if $as_echo 'TRUE=$(BAR$(V))
2746BAR0=false
2747BAR1=true
2748V=1
2749am__doit:
2750	@$(TRUE)
2751.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2752  am_cv_make_support_nested_variables=yes
2753else
2754  am_cv_make_support_nested_variables=no
2755fi
2756fi
2757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2758$as_echo "$am_cv_make_support_nested_variables" >&6; }
2759if test $am_cv_make_support_nested_variables = yes; then
2760    AM_V='$(V)'
2761  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2762else
2763  AM_V=$AM_DEFAULT_VERBOSITY
2764  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2765fi
2766AM_BACKSLASH='\'
2767
2768if test "`cd $srcdir && pwd`" != "`pwd`"; then
2769  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2770  # is not polluted with repeated "-I."
2771  am__isrc=' -I$(srcdir)'
2772  # test to see if srcdir already configured
2773  if test -f $srcdir/config.status; then
2774    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2775  fi
2776fi
2777
2778# test whether we have cygpath
2779if test -z "$CYGPATH_W"; then
2780  if (cygpath --version) >/dev/null 2>/dev/null; then
2781    CYGPATH_W='cygpath -w'
2782  else
2783    CYGPATH_W=echo
2784  fi
2785fi
2786
2787
2788# Define the identity of the package.
2789 PACKAGE='numlib'
2790 VERSION='0.10'
2791
2792
2793# Some tools Automake needs.
2794
2795ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2796
2797
2798AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2799
2800
2801AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2802
2803
2804AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2805
2806
2807MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2808
2809# For better backward compatibility.  To be removed once Automake 1.9.x
2810# dies out for good.  For more background, see:
2811# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2812# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2813mkdir_p='$(MKDIR_P)'
2814
2815# We need awk for the "check" target (and possibly the TAP driver).  The
2816# system "awk" is bad on some platforms.
2817# Always define AMTAR for backward compatibility.  Yes, it's still used
2818# in the wild :-(  We should find a proper way to deprecate it ...
2819AMTAR='$${TAR-tar}'
2820
2821
2822# We'll loop over all known methods to create a tar archive until one works.
2823_am_tools='gnutar  pax cpio none'
2824
2825am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2826
2827
2828
2829
2830
2831
2832# POSIX will say in a future version that running "rm -f" with no argument
2833# is OK; and we want to be able to make that assumption in our Makefile
2834# recipes.  So use an aggressive probe to check that the usage we want is
2835# actually supported "in the wild" to an acceptable degree.
2836# See automake bug#10828.
2837# To make any issue more visible, cause the running configure to be aborted
2838# by default if the 'rm' program in use doesn't match our expectations; the
2839# user can still override this though.
2840if rm -f && rm -fr && rm -rf; then : OK; else
2841  cat >&2 <<'END'
2842Oops!
2843
2844Your 'rm' program seems unable to run without file operands specified
2845on the command line, even when the '-f' option is present.  This is contrary
2846to the behaviour of most rm programs out there, and not conforming with
2847the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2848
2849Please tell bug-automake@gnu.org about your system, including the value
2850of your $PATH and any error possibly output before this message.  This
2851can help us improve future automake versions.
2852
2853END
2854  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2855    echo 'Configuration will proceed anyway, since you have set the' >&2
2856    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2857    echo >&2
2858  else
2859    cat >&2 <<'END'
2860Aborting the configuration process, to ensure you take notice of the issue.
2861
2862You can download and install GNU coreutils to get an 'rm' implementation
2863that behaves properly: <https://www.gnu.org/software/coreutils/>.
2864
2865If you want to complete the configuration process using your problematic
2866'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2867to "yes", and re-run configure.
2868
2869END
2870    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2871  fi
2872fi
2873
2874
2875for ac_prog in gawk mawk nawk awk
2876do
2877  # Extract the first word of "$ac_prog", so it can be a program name with args.
2878set dummy $ac_prog; ac_word=$2
2879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2880$as_echo_n "checking for $ac_word... " >&6; }
2881if ${ac_cv_prog_AWK+:} false; then :
2882  $as_echo_n "(cached) " >&6
2883else
2884  if test -n "$AWK"; then
2885  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2886else
2887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888for as_dir in $PATH
2889do
2890  IFS=$as_save_IFS
2891  test -z "$as_dir" && as_dir=.
2892    for ac_exec_ext in '' $ac_executable_extensions; do
2893  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2894    ac_cv_prog_AWK="$ac_prog"
2895    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2896    break 2
2897  fi
2898done
2899  done
2900IFS=$as_save_IFS
2901
2902fi
2903fi
2904AWK=$ac_cv_prog_AWK
2905if test -n "$AWK"; then
2906  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2907$as_echo "$AWK" >&6; }
2908else
2909  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2910$as_echo "no" >&6; }
2911fi
2912
2913
2914  test -n "$AWK" && break
2915done
2916
2917ac_ext=c
2918ac_cpp='$CPP $CPPFLAGS'
2919ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2920ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2921ac_compiler_gnu=$ac_cv_c_compiler_gnu
2922if test -n "$ac_tool_prefix"; then
2923  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2924set dummy ${ac_tool_prefix}gcc; ac_word=$2
2925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2926$as_echo_n "checking for $ac_word... " >&6; }
2927if ${ac_cv_prog_CC+:} false; then :
2928  $as_echo_n "(cached) " >&6
2929else
2930  if test -n "$CC"; then
2931  ac_cv_prog_CC="$CC" # Let the user override the test.
2932else
2933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2934for as_dir in $PATH
2935do
2936  IFS=$as_save_IFS
2937  test -z "$as_dir" && as_dir=.
2938    for ac_exec_ext in '' $ac_executable_extensions; do
2939  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2940    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2941    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2942    break 2
2943  fi
2944done
2945  done
2946IFS=$as_save_IFS
2947
2948fi
2949fi
2950CC=$ac_cv_prog_CC
2951if test -n "$CC"; then
2952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2953$as_echo "$CC" >&6; }
2954else
2955  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2956$as_echo "no" >&6; }
2957fi
2958
2959
2960fi
2961if test -z "$ac_cv_prog_CC"; then
2962  ac_ct_CC=$CC
2963  # Extract the first word of "gcc", so it can be a program name with args.
2964set dummy gcc; ac_word=$2
2965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2966$as_echo_n "checking for $ac_word... " >&6; }
2967if ${ac_cv_prog_ac_ct_CC+:} false; then :
2968  $as_echo_n "(cached) " >&6
2969else
2970  if test -n "$ac_ct_CC"; then
2971  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2972else
2973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2974for as_dir in $PATH
2975do
2976  IFS=$as_save_IFS
2977  test -z "$as_dir" && as_dir=.
2978    for ac_exec_ext in '' $ac_executable_extensions; do
2979  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2980    ac_cv_prog_ac_ct_CC="gcc"
2981    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2982    break 2
2983  fi
2984done
2985  done
2986IFS=$as_save_IFS
2987
2988fi
2989fi
2990ac_ct_CC=$ac_cv_prog_ac_ct_CC
2991if test -n "$ac_ct_CC"; then
2992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2993$as_echo "$ac_ct_CC" >&6; }
2994else
2995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2996$as_echo "no" >&6; }
2997fi
2998
2999  if test "x$ac_ct_CC" = x; then
3000    CC=""
3001  else
3002    case $cross_compiling:$ac_tool_warned in
3003yes:)
3004{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3005$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3006ac_tool_warned=yes ;;
3007esac
3008    CC=$ac_ct_CC
3009  fi
3010else
3011  CC="$ac_cv_prog_CC"
3012fi
3013
3014if test -z "$CC"; then
3015          if test -n "$ac_tool_prefix"; then
3016    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3017set dummy ${ac_tool_prefix}cc; ac_word=$2
3018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3019$as_echo_n "checking for $ac_word... " >&6; }
3020if ${ac_cv_prog_CC+:} false; then :
3021  $as_echo_n "(cached) " >&6
3022else
3023  if test -n "$CC"; then
3024  ac_cv_prog_CC="$CC" # Let the user override the test.
3025else
3026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3027for as_dir in $PATH
3028do
3029  IFS=$as_save_IFS
3030  test -z "$as_dir" && as_dir=.
3031    for ac_exec_ext in '' $ac_executable_extensions; do
3032  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3033    ac_cv_prog_CC="${ac_tool_prefix}cc"
3034    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3035    break 2
3036  fi
3037done
3038  done
3039IFS=$as_save_IFS
3040
3041fi
3042fi
3043CC=$ac_cv_prog_CC
3044if test -n "$CC"; then
3045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3046$as_echo "$CC" >&6; }
3047else
3048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3049$as_echo "no" >&6; }
3050fi
3051
3052
3053  fi
3054fi
3055if test -z "$CC"; then
3056  # Extract the first word of "cc", so it can be a program name with args.
3057set dummy cc; ac_word=$2
3058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3059$as_echo_n "checking for $ac_word... " >&6; }
3060if ${ac_cv_prog_CC+:} false; then :
3061  $as_echo_n "(cached) " >&6
3062else
3063  if test -n "$CC"; then
3064  ac_cv_prog_CC="$CC" # Let the user override the test.
3065else
3066  ac_prog_rejected=no
3067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3068for as_dir in $PATH
3069do
3070  IFS=$as_save_IFS
3071  test -z "$as_dir" && as_dir=.
3072    for ac_exec_ext in '' $ac_executable_extensions; do
3073  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3074    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3075       ac_prog_rejected=yes
3076       continue
3077     fi
3078    ac_cv_prog_CC="cc"
3079    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3080    break 2
3081  fi
3082done
3083  done
3084IFS=$as_save_IFS
3085
3086if test $ac_prog_rejected = yes; then
3087  # We found a bogon in the path, so make sure we never use it.
3088  set dummy $ac_cv_prog_CC
3089  shift
3090  if test $# != 0; then
3091    # We chose a different compiler from the bogus one.
3092    # However, it has the same basename, so the bogon will be chosen
3093    # first if we set CC to just the basename; use the full file name.
3094    shift
3095    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3096  fi
3097fi
3098fi
3099fi
3100CC=$ac_cv_prog_CC
3101if test -n "$CC"; then
3102  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3103$as_echo "$CC" >&6; }
3104else
3105  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3106$as_echo "no" >&6; }
3107fi
3108
3109
3110fi
3111if test -z "$CC"; then
3112  if test -n "$ac_tool_prefix"; then
3113  for ac_prog in cl.exe
3114  do
3115    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3116set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3118$as_echo_n "checking for $ac_word... " >&6; }
3119if ${ac_cv_prog_CC+:} false; then :
3120  $as_echo_n "(cached) " >&6
3121else
3122  if test -n "$CC"; then
3123  ac_cv_prog_CC="$CC" # Let the user override the test.
3124else
3125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3126for as_dir in $PATH
3127do
3128  IFS=$as_save_IFS
3129  test -z "$as_dir" && as_dir=.
3130    for ac_exec_ext in '' $ac_executable_extensions; do
3131  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3132    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3133    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3134    break 2
3135  fi
3136done
3137  done
3138IFS=$as_save_IFS
3139
3140fi
3141fi
3142CC=$ac_cv_prog_CC
3143if test -n "$CC"; then
3144  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3145$as_echo "$CC" >&6; }
3146else
3147  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3148$as_echo "no" >&6; }
3149fi
3150
3151
3152    test -n "$CC" && break
3153  done
3154fi
3155if test -z "$CC"; then
3156  ac_ct_CC=$CC
3157  for ac_prog in cl.exe
3158do
3159  # Extract the first word of "$ac_prog", so it can be a program name with args.
3160set dummy $ac_prog; ac_word=$2
3161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3162$as_echo_n "checking for $ac_word... " >&6; }
3163if ${ac_cv_prog_ac_ct_CC+:} false; then :
3164  $as_echo_n "(cached) " >&6
3165else
3166  if test -n "$ac_ct_CC"; then
3167  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3168else
3169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3170for as_dir in $PATH
3171do
3172  IFS=$as_save_IFS
3173  test -z "$as_dir" && as_dir=.
3174    for ac_exec_ext in '' $ac_executable_extensions; do
3175  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3176    ac_cv_prog_ac_ct_CC="$ac_prog"
3177    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3178    break 2
3179  fi
3180done
3181  done
3182IFS=$as_save_IFS
3183
3184fi
3185fi
3186ac_ct_CC=$ac_cv_prog_ac_ct_CC
3187if test -n "$ac_ct_CC"; then
3188  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3189$as_echo "$ac_ct_CC" >&6; }
3190else
3191  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3192$as_echo "no" >&6; }
3193fi
3194
3195
3196  test -n "$ac_ct_CC" && break
3197done
3198
3199  if test "x$ac_ct_CC" = x; then
3200    CC=""
3201  else
3202    case $cross_compiling:$ac_tool_warned in
3203yes:)
3204{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3205$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3206ac_tool_warned=yes ;;
3207esac
3208    CC=$ac_ct_CC
3209  fi
3210fi
3211
3212fi
3213
3214
3215test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3216$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3217as_fn_error $? "no acceptable C compiler found in \$PATH
3218See \`config.log' for more details" "$LINENO" 5; }
3219
3220# Provide some information about the compiler.
3221$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3222set X $ac_compile
3223ac_compiler=$2
3224for ac_option in --version -v -V -qversion; do
3225  { { ac_try="$ac_compiler $ac_option >&5"
3226case "(($ac_try" in
3227  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3228  *) ac_try_echo=$ac_try;;
3229esac
3230eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3231$as_echo "$ac_try_echo"; } >&5
3232  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3233  ac_status=$?
3234  if test -s conftest.err; then
3235    sed '10a\
3236... rest of stderr output deleted ...
3237         10q' conftest.err >conftest.er1
3238    cat conftest.er1 >&5
3239  fi
3240  rm -f conftest.er1 conftest.err
3241  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3242  test $ac_status = 0; }
3243done
3244
3245cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3246/* end confdefs.h.  */
3247
3248int
3249main ()
3250{
3251
3252  ;
3253  return 0;
3254}
3255_ACEOF
3256ac_clean_files_save=$ac_clean_files
3257ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3258# Try to create an executable without -o first, disregard a.out.
3259# It will help us diagnose broken compilers, and finding out an intuition
3260# of exeext.
3261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3262$as_echo_n "checking whether the C compiler works... " >&6; }
3263ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3264
3265# The possible output files:
3266ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3267
3268ac_rmfiles=
3269for ac_file in $ac_files
3270do
3271  case $ac_file in
3272    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3273    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3274  esac
3275done
3276rm -f $ac_rmfiles
3277
3278if { { ac_try="$ac_link_default"
3279case "(($ac_try" in
3280  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3281  *) ac_try_echo=$ac_try;;
3282esac
3283eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3284$as_echo "$ac_try_echo"; } >&5
3285  (eval "$ac_link_default") 2>&5
3286  ac_status=$?
3287  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3288  test $ac_status = 0; }; then :
3289  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3290# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3291# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3292# so that the user can short-circuit this test for compilers unknown to
3293# Autoconf.
3294for ac_file in $ac_files ''
3295do
3296  test -f "$ac_file" || continue
3297  case $ac_file in
3298    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3299	;;
3300    [ab].out )
3301	# We found the default executable, but exeext='' is most
3302	# certainly right.
3303	break;;
3304    *.* )
3305	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3306	then :; else
3307	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3308	fi
3309	# We set ac_cv_exeext here because the later test for it is not
3310	# safe: cross compilers may not add the suffix if given an `-o'
3311	# argument, so we may need to know it at that point already.
3312	# Even if this section looks crufty: it has the advantage of
3313	# actually working.
3314	break;;
3315    * )
3316	break;;
3317  esac
3318done
3319test "$ac_cv_exeext" = no && ac_cv_exeext=
3320
3321else
3322  ac_file=''
3323fi
3324if test -z "$ac_file"; then :
3325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3326$as_echo "no" >&6; }
3327$as_echo "$as_me: failed program was:" >&5
3328sed 's/^/| /' conftest.$ac_ext >&5
3329
3330{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3331$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3332as_fn_error 77 "C compiler cannot create executables
3333See \`config.log' for more details" "$LINENO" 5; }
3334else
3335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3336$as_echo "yes" >&6; }
3337fi
3338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3339$as_echo_n "checking for C compiler default output file name... " >&6; }
3340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3341$as_echo "$ac_file" >&6; }
3342ac_exeext=$ac_cv_exeext
3343
3344rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3345ac_clean_files=$ac_clean_files_save
3346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3347$as_echo_n "checking for suffix of executables... " >&6; }
3348if { { ac_try="$ac_link"
3349case "(($ac_try" in
3350  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3351  *) ac_try_echo=$ac_try;;
3352esac
3353eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3354$as_echo "$ac_try_echo"; } >&5
3355  (eval "$ac_link") 2>&5
3356  ac_status=$?
3357  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3358  test $ac_status = 0; }; then :
3359  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3360# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3361# work properly (i.e., refer to `conftest.exe'), while it won't with
3362# `rm'.
3363for ac_file in conftest.exe conftest conftest.*; do
3364  test -f "$ac_file" || continue
3365  case $ac_file in
3366    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3367    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3368	  break;;
3369    * ) break;;
3370  esac
3371done
3372else
3373  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3374$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3375as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3376See \`config.log' for more details" "$LINENO" 5; }
3377fi
3378rm -f conftest conftest$ac_cv_exeext
3379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3380$as_echo "$ac_cv_exeext" >&6; }
3381
3382rm -f conftest.$ac_ext
3383EXEEXT=$ac_cv_exeext
3384ac_exeext=$EXEEXT
3385cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3386/* end confdefs.h.  */
3387#include <stdio.h>
3388int
3389main ()
3390{
3391FILE *f = fopen ("conftest.out", "w");
3392 return ferror (f) || fclose (f) != 0;
3393
3394  ;
3395  return 0;
3396}
3397_ACEOF
3398ac_clean_files="$ac_clean_files conftest.out"
3399# Check that the compiler produces executables we can run.  If not, either
3400# the compiler is broken, or we cross compile.
3401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3402$as_echo_n "checking whether we are cross compiling... " >&6; }
3403if test "$cross_compiling" != yes; then
3404  { { ac_try="$ac_link"
3405case "(($ac_try" in
3406  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3407  *) ac_try_echo=$ac_try;;
3408esac
3409eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3410$as_echo "$ac_try_echo"; } >&5
3411  (eval "$ac_link") 2>&5
3412  ac_status=$?
3413  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3414  test $ac_status = 0; }
3415  if { ac_try='./conftest$ac_cv_exeext'
3416  { { case "(($ac_try" in
3417  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3418  *) ac_try_echo=$ac_try;;
3419esac
3420eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3421$as_echo "$ac_try_echo"; } >&5
3422  (eval "$ac_try") 2>&5
3423  ac_status=$?
3424  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3425  test $ac_status = 0; }; }; then
3426    cross_compiling=no
3427  else
3428    if test "$cross_compiling" = maybe; then
3429	cross_compiling=yes
3430    else
3431	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3432$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3433as_fn_error $? "cannot run C compiled programs.
3434If you meant to cross compile, use \`--host'.
3435See \`config.log' for more details" "$LINENO" 5; }
3436    fi
3437  fi
3438fi
3439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3440$as_echo "$cross_compiling" >&6; }
3441
3442rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3443ac_clean_files=$ac_clean_files_save
3444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3445$as_echo_n "checking for suffix of object files... " >&6; }
3446if ${ac_cv_objext+:} false; then :
3447  $as_echo_n "(cached) " >&6
3448else
3449  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3450/* end confdefs.h.  */
3451
3452int
3453main ()
3454{
3455
3456  ;
3457  return 0;
3458}
3459_ACEOF
3460rm -f conftest.o conftest.obj
3461if { { ac_try="$ac_compile"
3462case "(($ac_try" in
3463  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3464  *) ac_try_echo=$ac_try;;
3465esac
3466eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3467$as_echo "$ac_try_echo"; } >&5
3468  (eval "$ac_compile") 2>&5
3469  ac_status=$?
3470  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3471  test $ac_status = 0; }; then :
3472  for ac_file in conftest.o conftest.obj conftest.*; do
3473  test -f "$ac_file" || continue;
3474  case $ac_file in
3475    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3476    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3477       break;;
3478  esac
3479done
3480else
3481  $as_echo "$as_me: failed program was:" >&5
3482sed 's/^/| /' conftest.$ac_ext >&5
3483
3484{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3485$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3486as_fn_error $? "cannot compute suffix of object files: cannot compile
3487See \`config.log' for more details" "$LINENO" 5; }
3488fi
3489rm -f conftest.$ac_cv_objext conftest.$ac_ext
3490fi
3491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3492$as_echo "$ac_cv_objext" >&6; }
3493OBJEXT=$ac_cv_objext
3494ac_objext=$OBJEXT
3495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3496$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3497if ${ac_cv_c_compiler_gnu+:} false; then :
3498  $as_echo_n "(cached) " >&6
3499else
3500  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3501/* end confdefs.h.  */
3502
3503int
3504main ()
3505{
3506#ifndef __GNUC__
3507       choke me
3508#endif
3509
3510  ;
3511  return 0;
3512}
3513_ACEOF
3514if ac_fn_c_try_compile "$LINENO"; then :
3515  ac_compiler_gnu=yes
3516else
3517  ac_compiler_gnu=no
3518fi
3519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3520ac_cv_c_compiler_gnu=$ac_compiler_gnu
3521
3522fi
3523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3524$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3525if test $ac_compiler_gnu = yes; then
3526  GCC=yes
3527else
3528  GCC=
3529fi
3530ac_test_CFLAGS=${CFLAGS+set}
3531ac_save_CFLAGS=$CFLAGS
3532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3533$as_echo_n "checking whether $CC accepts -g... " >&6; }
3534if ${ac_cv_prog_cc_g+:} false; then :
3535  $as_echo_n "(cached) " >&6
3536else
3537  ac_save_c_werror_flag=$ac_c_werror_flag
3538   ac_c_werror_flag=yes
3539   ac_cv_prog_cc_g=no
3540   CFLAGS="-g"
3541   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3542/* end confdefs.h.  */
3543
3544int
3545main ()
3546{
3547
3548  ;
3549  return 0;
3550}
3551_ACEOF
3552if ac_fn_c_try_compile "$LINENO"; then :
3553  ac_cv_prog_cc_g=yes
3554else
3555  CFLAGS=""
3556      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3557/* end confdefs.h.  */
3558
3559int
3560main ()
3561{
3562
3563  ;
3564  return 0;
3565}
3566_ACEOF
3567if ac_fn_c_try_compile "$LINENO"; then :
3568
3569else
3570  ac_c_werror_flag=$ac_save_c_werror_flag
3571	 CFLAGS="-g"
3572	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3573/* end confdefs.h.  */
3574
3575int
3576main ()
3577{
3578
3579  ;
3580  return 0;
3581}
3582_ACEOF
3583if ac_fn_c_try_compile "$LINENO"; then :
3584  ac_cv_prog_cc_g=yes
3585fi
3586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3587fi
3588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3589fi
3590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3591   ac_c_werror_flag=$ac_save_c_werror_flag
3592fi
3593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3594$as_echo "$ac_cv_prog_cc_g" >&6; }
3595if test "$ac_test_CFLAGS" = set; then
3596  CFLAGS=$ac_save_CFLAGS
3597elif test $ac_cv_prog_cc_g = yes; then
3598  if test "$GCC" = yes; then
3599    CFLAGS="-g -O2"
3600  else
3601    CFLAGS="-g"
3602  fi
3603else
3604  if test "$GCC" = yes; then
3605    CFLAGS="-O2"
3606  else
3607    CFLAGS=
3608  fi
3609fi
3610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3611$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3612if ${ac_cv_prog_cc_c89+:} false; then :
3613  $as_echo_n "(cached) " >&6
3614else
3615  ac_cv_prog_cc_c89=no
3616ac_save_CC=$CC
3617cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3618/* end confdefs.h.  */
3619#include <stdarg.h>
3620#include <stdio.h>
3621struct stat;
3622/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3623struct buf { int x; };
3624FILE * (*rcsopen) (struct buf *, struct stat *, int);
3625static char *e (p, i)
3626     char **p;
3627     int i;
3628{
3629  return p[i];
3630}
3631static char *f (char * (*g) (char **, int), char **p, ...)
3632{
3633  char *s;
3634  va_list v;
3635  va_start (v,p);
3636  s = g (p, va_arg (v,int));
3637  va_end (v);
3638  return s;
3639}
3640
3641/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3642   function prototypes and stuff, but not '\xHH' hex character constants.
3643   These don't provoke an error unfortunately, instead are silently treated
3644   as 'x'.  The following induces an error, until -std is added to get
3645   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3646   array size at least.  It's necessary to write '\x00'==0 to get something
3647   that's true only with -std.  */
3648int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3649
3650/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3651   inside strings and character constants.  */
3652#define FOO(x) 'x'
3653int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3654
3655int test (int i, double x);
3656struct s1 {int (*f) (int a);};
3657struct s2 {int (*f) (double a);};
3658int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3659int argc;
3660char **argv;
3661int
3662main ()
3663{
3664return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3665  ;
3666  return 0;
3667}
3668_ACEOF
3669for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3670	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3671do
3672  CC="$ac_save_CC $ac_arg"
3673  if ac_fn_c_try_compile "$LINENO"; then :
3674  ac_cv_prog_cc_c89=$ac_arg
3675fi
3676rm -f core conftest.err conftest.$ac_objext
3677  test "x$ac_cv_prog_cc_c89" != "xno" && break
3678done
3679rm -f conftest.$ac_ext
3680CC=$ac_save_CC
3681
3682fi
3683# AC_CACHE_VAL
3684case "x$ac_cv_prog_cc_c89" in
3685  x)
3686    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3687$as_echo "none needed" >&6; } ;;
3688  xno)
3689    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3690$as_echo "unsupported" >&6; } ;;
3691  *)
3692    CC="$CC $ac_cv_prog_cc_c89"
3693    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3694$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3695esac
3696if test "x$ac_cv_prog_cc_c89" != xno; then :
3697
3698fi
3699
3700ac_ext=c
3701ac_cpp='$CPP $CPPFLAGS'
3702ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3703ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3704ac_compiler_gnu=$ac_cv_c_compiler_gnu
3705
3706ac_ext=c
3707ac_cpp='$CPP $CPPFLAGS'
3708ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3709ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3710ac_compiler_gnu=$ac_cv_c_compiler_gnu
3711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3712$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3713if ${am_cv_prog_cc_c_o+:} false; then :
3714  $as_echo_n "(cached) " >&6
3715else
3716  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3717/* end confdefs.h.  */
3718
3719int
3720main ()
3721{
3722
3723  ;
3724  return 0;
3725}
3726_ACEOF
3727  # Make sure it works both with $CC and with simple cc.
3728  # Following AC_PROG_CC_C_O, we do the test twice because some
3729  # compilers refuse to overwrite an existing .o file with -o,
3730  # though they will create one.
3731  am_cv_prog_cc_c_o=yes
3732  for am_i in 1 2; do
3733    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3734   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3735   ac_status=$?
3736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3737   (exit $ac_status); } \
3738         && test -f conftest2.$ac_objext; then
3739      : OK
3740    else
3741      am_cv_prog_cc_c_o=no
3742      break
3743    fi
3744  done
3745  rm -f core conftest*
3746  unset am_i
3747fi
3748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3749$as_echo "$am_cv_prog_cc_c_o" >&6; }
3750if test "$am_cv_prog_cc_c_o" != yes; then
3751   # Losing compiler, so override with the script.
3752   # FIXME: It is wrong to rewrite CC.
3753   # But if we don't then we get into trouble of one sort or another.
3754   # A longer-term fix would be to have automake use am__CC in this case,
3755   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3756   CC="$am_aux_dir/compile $CC"
3757fi
3758ac_ext=c
3759ac_cpp='$CPP $CPPFLAGS'
3760ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3761ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3762ac_compiler_gnu=$ac_cv_c_compiler_gnu
3763
3764DEPDIR="${am__leading_dot}deps"
3765
3766ac_config_commands="$ac_config_commands depfiles"
3767
3768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3769$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3770cat > confinc.mk << 'END'
3771am__doit:
3772	@echo this is the am__doit target >confinc.out
3773.PHONY: am__doit
3774END
3775am__include="#"
3776am__quote=
3777# BSD make does it like this.
3778echo '.include "confinc.mk" # ignored' > confmf.BSD
3779# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3780echo 'include confinc.mk # ignored' > confmf.GNU
3781_am_result=no
3782for s in GNU BSD; do
3783  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3784   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3785   ac_status=$?
3786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787   (exit $ac_status); }
3788  case $?:`cat confinc.out 2>/dev/null` in #(
3789  '0:this is the am__doit target') :
3790    case $s in #(
3791  BSD) :
3792    am__include='.include' am__quote='"' ;; #(
3793  *) :
3794    am__include='include' am__quote='' ;;
3795esac ;; #(
3796  *) :
3797     ;;
3798esac
3799  if test "$am__include" != "#"; then
3800    _am_result="yes ($s style)"
3801    break
3802  fi
3803done
3804rm -f confinc.* confmf.*
3805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3806$as_echo "${_am_result}" >&6; }
3807
3808# Check whether --enable-dependency-tracking was given.
3809if test "${enable_dependency_tracking+set}" = set; then :
3810  enableval=$enable_dependency_tracking;
3811fi
3812
3813if test "x$enable_dependency_tracking" != xno; then
3814  am_depcomp="$ac_aux_dir/depcomp"
3815  AMDEPBACKSLASH='\'
3816  am__nodep='_no'
3817fi
3818 if test "x$enable_dependency_tracking" != xno; then
3819  AMDEP_TRUE=
3820  AMDEP_FALSE='#'
3821else
3822  AMDEP_TRUE='#'
3823  AMDEP_FALSE=
3824fi
3825
3826
3827
3828depcc="$CC"   am_compiler_list=
3829
3830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3831$as_echo_n "checking dependency style of $depcc... " >&6; }
3832if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3833  $as_echo_n "(cached) " >&6
3834else
3835  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3836  # We make a subdir and do the tests there.  Otherwise we can end up
3837  # making bogus files that we don't know about and never remove.  For
3838  # instance it was reported that on HP-UX the gcc test will end up
3839  # making a dummy file named 'D' -- because '-MD' means "put the output
3840  # in D".
3841  rm -rf conftest.dir
3842  mkdir conftest.dir
3843  # Copy depcomp to subdir because otherwise we won't find it if we're
3844  # using a relative directory.
3845  cp "$am_depcomp" conftest.dir
3846  cd conftest.dir
3847  # We will build objects and dependencies in a subdirectory because
3848  # it helps to detect inapplicable dependency modes.  For instance
3849  # both Tru64's cc and ICC support -MD to output dependencies as a
3850  # side effect of compilation, but ICC will put the dependencies in
3851  # the current directory while Tru64 will put them in the object
3852  # directory.
3853  mkdir sub
3854
3855  am_cv_CC_dependencies_compiler_type=none
3856  if test "$am_compiler_list" = ""; then
3857     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3858  fi
3859  am__universal=false
3860  case " $depcc " in #(
3861     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3862     esac
3863
3864  for depmode in $am_compiler_list; do
3865    # Setup a source with many dependencies, because some compilers
3866    # like to wrap large dependency lists on column 80 (with \), and
3867    # we should not choose a depcomp mode which is confused by this.
3868    #
3869    # We need to recreate these files for each test, as the compiler may
3870    # overwrite some of them when testing with obscure command lines.
3871    # This happens at least with the AIX C compiler.
3872    : > sub/conftest.c
3873    for i in 1 2 3 4 5 6; do
3874      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3875      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3876      # Solaris 10 /bin/sh.
3877      echo '/* dummy */' > sub/conftst$i.h
3878    done
3879    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3880
3881    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3882    # mode.  It turns out that the SunPro C++ compiler does not properly
3883    # handle '-M -o', and we need to detect this.  Also, some Intel
3884    # versions had trouble with output in subdirs.
3885    am__obj=sub/conftest.${OBJEXT-o}
3886    am__minus_obj="-o $am__obj"
3887    case $depmode in
3888    gcc)
3889      # This depmode causes a compiler race in universal mode.
3890      test "$am__universal" = false || continue
3891      ;;
3892    nosideeffect)
3893      # After this tag, mechanisms are not by side-effect, so they'll
3894      # only be used when explicitly requested.
3895      if test "x$enable_dependency_tracking" = xyes; then
3896	continue
3897      else
3898	break
3899      fi
3900      ;;
3901    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3902      # This compiler won't grok '-c -o', but also, the minuso test has
3903      # not run yet.  These depmodes are late enough in the game, and
3904      # so weak that their functioning should not be impacted.
3905      am__obj=conftest.${OBJEXT-o}
3906      am__minus_obj=
3907      ;;
3908    none) break ;;
3909    esac
3910    if depmode=$depmode \
3911       source=sub/conftest.c object=$am__obj \
3912       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3913       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3914         >/dev/null 2>conftest.err &&
3915       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3916       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3917       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3918       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3919      # icc doesn't choke on unknown options, it will just issue warnings
3920      # or remarks (even with -Werror).  So we grep stderr for any message
3921      # that says an option was ignored or not supported.
3922      # When given -MP, icc 7.0 and 7.1 complain thusly:
3923      #   icc: Command line warning: ignoring option '-M'; no argument required
3924      # The diagnosis changed in icc 8.0:
3925      #   icc: Command line remark: option '-MP' not supported
3926      if (grep 'ignoring option' conftest.err ||
3927          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3928        am_cv_CC_dependencies_compiler_type=$depmode
3929        break
3930      fi
3931    fi
3932  done
3933
3934  cd ..
3935  rm -rf conftest.dir
3936else
3937  am_cv_CC_dependencies_compiler_type=none
3938fi
3939
3940fi
3941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3942$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3943CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3944
3945 if
3946  test "x$enable_dependency_tracking" != xno \
3947  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3948  am__fastdepCC_TRUE=
3949  am__fastdepCC_FALSE='#'
3950else
3951  am__fastdepCC_TRUE='#'
3952  am__fastdepCC_FALSE=
3953fi
3954
3955
3956   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3957$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3958if ${ac_cv_prog_cc_c99+:} false; then :
3959  $as_echo_n "(cached) " >&6
3960else
3961  ac_cv_prog_cc_c99=no
3962ac_save_CC=$CC
3963cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3964/* end confdefs.h.  */
3965#include <stdarg.h>
3966#include <stdbool.h>
3967#include <stdlib.h>
3968#include <wchar.h>
3969#include <stdio.h>
3970
3971// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3972#define debug(...) fprintf (stderr, __VA_ARGS__)
3973#define showlist(...) puts (#__VA_ARGS__)
3974#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3975static void
3976test_varargs_macros (void)
3977{
3978  int x = 1234;
3979  int y = 5678;
3980  debug ("Flag");
3981  debug ("X = %d\n", x);
3982  showlist (The first, second, and third items.);
3983  report (x>y, "x is %d but y is %d", x, y);
3984}
3985
3986// Check long long types.
3987#define BIG64 18446744073709551615ull
3988#define BIG32 4294967295ul
3989#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3990#if !BIG_OK
3991  your preprocessor is broken;
3992#endif
3993#if BIG_OK
3994#else
3995  your preprocessor is broken;
3996#endif
3997static long long int bignum = -9223372036854775807LL;
3998static unsigned long long int ubignum = BIG64;
3999
4000struct incomplete_array
4001{
4002  int datasize;
4003  double data[];
4004};
4005
4006struct named_init {
4007  int number;
4008  const wchar_t *name;
4009  double average;
4010};
4011
4012typedef const char *ccp;
4013
4014static inline int
4015test_restrict (ccp restrict text)
4016{
4017  // See if C++-style comments work.
4018  // Iterate through items via the restricted pointer.
4019  // Also check for declarations in for loops.
4020  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4021    continue;
4022  return 0;
4023}
4024
4025// Check varargs and va_copy.
4026static void
4027test_varargs (const char *format, ...)
4028{
4029  va_list args;
4030  va_start (args, format);
4031  va_list args_copy;
4032  va_copy (args_copy, args);
4033
4034  const char *str;
4035  int number;
4036  float fnumber;
4037
4038  while (*format)
4039    {
4040      switch (*format++)
4041	{
4042	case 's': // string
4043	  str = va_arg (args_copy, const char *);
4044	  break;
4045	case 'd': // int
4046	  number = va_arg (args_copy, int);
4047	  break;
4048	case 'f': // float
4049	  fnumber = va_arg (args_copy, double);
4050	  break;
4051	default:
4052	  break;
4053	}
4054    }
4055  va_end (args_copy);
4056  va_end (args);
4057}
4058
4059int
4060main ()
4061{
4062
4063  // Check bool.
4064  _Bool success = false;
4065
4066  // Check restrict.
4067  if (test_restrict ("String literal") == 0)
4068    success = true;
4069  char *restrict newvar = "Another string";
4070
4071  // Check varargs.
4072  test_varargs ("s, d' f .", "string", 65, 34.234);
4073  test_varargs_macros ();
4074
4075  // Check flexible array members.
4076  struct incomplete_array *ia =
4077    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4078  ia->datasize = 10;
4079  for (int i = 0; i < ia->datasize; ++i)
4080    ia->data[i] = i * 1.234;
4081
4082  // Check named initializers.
4083  struct named_init ni = {
4084    .number = 34,
4085    .name = L"Test wide string",
4086    .average = 543.34343,
4087  };
4088
4089  ni.number = 58;
4090
4091  int dynamic_array[ni.number];
4092  dynamic_array[ni.number - 1] = 543;
4093
4094  // work around unused variable warnings
4095  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4096	  || dynamic_array[ni.number - 1] != 543);
4097
4098  ;
4099  return 0;
4100}
4101_ACEOF
4102for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4103do
4104  CC="$ac_save_CC $ac_arg"
4105  if ac_fn_c_try_compile "$LINENO"; then :
4106  ac_cv_prog_cc_c99=$ac_arg
4107fi
4108rm -f core conftest.err conftest.$ac_objext
4109  test "x$ac_cv_prog_cc_c99" != "xno" && break
4110done
4111rm -f conftest.$ac_ext
4112CC=$ac_save_CC
4113
4114fi
4115# AC_CACHE_VAL
4116case "x$ac_cv_prog_cc_c99" in
4117  x)
4118    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4119$as_echo "none needed" >&6; } ;;
4120  xno)
4121    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4122$as_echo "unsupported" >&6; } ;;
4123  *)
4124    CC="$CC $ac_cv_prog_cc_c99"
4125    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4126$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4127esac
4128if test "x$ac_cv_prog_cc_c99" != xno; then :
4129
4130fi
4131
4132
4133
4134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4135$as_echo_n "checking whether ln -s works... " >&6; }
4136LN_S=$as_ln_s
4137if test "$LN_S" = "ln -s"; then
4138  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4139$as_echo "yes" >&6; }
4140else
4141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4142$as_echo "no, using $LN_S" >&6; }
4143fi
4144
4145case `pwd` in
4146  *\ * | *\	*)
4147    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4148$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4149esac
4150
4151
4152
4153macro_version='2.4.6'
4154macro_revision='2.4.6'
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168ltmain=$ac_aux_dir/ltmain.sh
4169
4170# Make sure we can run config.sub.
4171$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4172  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4173
4174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4175$as_echo_n "checking build system type... " >&6; }
4176if ${ac_cv_build+:} false; then :
4177  $as_echo_n "(cached) " >&6
4178else
4179  ac_build_alias=$build_alias
4180test "x$ac_build_alias" = x &&
4181  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4182test "x$ac_build_alias" = x &&
4183  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4184ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4185  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4186
4187fi
4188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4189$as_echo "$ac_cv_build" >&6; }
4190case $ac_cv_build in
4191*-*-*) ;;
4192*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4193esac
4194build=$ac_cv_build
4195ac_save_IFS=$IFS; IFS='-'
4196set x $ac_cv_build
4197shift
4198build_cpu=$1
4199build_vendor=$2
4200shift; shift
4201# Remember, the first character of IFS is used to create $*,
4202# except with old shells:
4203build_os=$*
4204IFS=$ac_save_IFS
4205case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4206
4207
4208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4209$as_echo_n "checking host system type... " >&6; }
4210if ${ac_cv_host+:} false; then :
4211  $as_echo_n "(cached) " >&6
4212else
4213  if test "x$host_alias" = x; then
4214  ac_cv_host=$ac_cv_build
4215else
4216  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4217    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4218fi
4219
4220fi
4221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4222$as_echo "$ac_cv_host" >&6; }
4223case $ac_cv_host in
4224*-*-*) ;;
4225*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4226esac
4227host=$ac_cv_host
4228ac_save_IFS=$IFS; IFS='-'
4229set x $ac_cv_host
4230shift
4231host_cpu=$1
4232host_vendor=$2
4233shift; shift
4234# Remember, the first character of IFS is used to create $*,
4235# except with old shells:
4236host_os=$*
4237IFS=$ac_save_IFS
4238case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4239
4240
4241# Backslashify metacharacters that are still active within
4242# double-quoted strings.
4243sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4244
4245# Same as above, but do not quote variable references.
4246double_quote_subst='s/\(["`\\]\)/\\\1/g'
4247
4248# Sed substitution to delay expansion of an escaped shell variable in a
4249# double_quote_subst'ed string.
4250delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4251
4252# Sed substitution to delay expansion of an escaped single quote.
4253delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4254
4255# Sed substitution to avoid accidental globbing in evaled expressions
4256no_glob_subst='s/\*/\\\*/g'
4257
4258ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4259ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4260ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4261
4262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4263$as_echo_n "checking how to print strings... " >&6; }
4264# Test print first, because it will be a builtin if present.
4265if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4266   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4267  ECHO='print -r --'
4268elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4269  ECHO='printf %s\n'
4270else
4271  # Use this function as a fallback that always works.
4272  func_fallback_echo ()
4273  {
4274    eval 'cat <<_LTECHO_EOF
4275$1
4276_LTECHO_EOF'
4277  }
4278  ECHO='func_fallback_echo'
4279fi
4280
4281# func_echo_all arg...
4282# Invoke $ECHO with all args, space-separated.
4283func_echo_all ()
4284{
4285    $ECHO ""
4286}
4287
4288case $ECHO in
4289  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4290$as_echo "printf" >&6; } ;;
4291  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4292$as_echo "print -r" >&6; } ;;
4293  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4294$as_echo "cat" >&6; } ;;
4295esac
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4311$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4312if ${ac_cv_path_SED+:} false; then :
4313  $as_echo_n "(cached) " >&6
4314else
4315            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4316     for ac_i in 1 2 3 4 5 6 7; do
4317       ac_script="$ac_script$as_nl$ac_script"
4318     done
4319     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4320     { ac_script=; unset ac_script;}
4321     if test -z "$SED"; then
4322  ac_path_SED_found=false
4323  # Loop through the user's path and test for each of PROGNAME-LIST
4324  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4325for as_dir in $PATH
4326do
4327  IFS=$as_save_IFS
4328  test -z "$as_dir" && as_dir=.
4329    for ac_prog in sed gsed; do
4330    for ac_exec_ext in '' $ac_executable_extensions; do
4331      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4332      as_fn_executable_p "$ac_path_SED" || continue
4333# Check for GNU ac_path_SED and select it if it is found.
4334  # Check for GNU $ac_path_SED
4335case `"$ac_path_SED" --version 2>&1` in
4336*GNU*)
4337  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4338*)
4339  ac_count=0
4340  $as_echo_n 0123456789 >"conftest.in"
4341  while :
4342  do
4343    cat "conftest.in" "conftest.in" >"conftest.tmp"
4344    mv "conftest.tmp" "conftest.in"
4345    cp "conftest.in" "conftest.nl"
4346    $as_echo '' >> "conftest.nl"
4347    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4348    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4349    as_fn_arith $ac_count + 1 && ac_count=$as_val
4350    if test $ac_count -gt ${ac_path_SED_max-0}; then
4351      # Best one so far, save it but keep looking for a better one
4352      ac_cv_path_SED="$ac_path_SED"
4353      ac_path_SED_max=$ac_count
4354    fi
4355    # 10*(2^10) chars as input seems more than enough
4356    test $ac_count -gt 10 && break
4357  done
4358  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4359esac
4360
4361      $ac_path_SED_found && break 3
4362    done
4363  done
4364  done
4365IFS=$as_save_IFS
4366  if test -z "$ac_cv_path_SED"; then
4367    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4368  fi
4369else
4370  ac_cv_path_SED=$SED
4371fi
4372
4373fi
4374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4375$as_echo "$ac_cv_path_SED" >&6; }
4376 SED="$ac_cv_path_SED"
4377  rm -f conftest.sed
4378
4379test -z "$SED" && SED=sed
4380Xsed="$SED -e 1s/^X//"
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4393$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4394if ${ac_cv_path_GREP+:} false; then :
4395  $as_echo_n "(cached) " >&6
4396else
4397  if test -z "$GREP"; then
4398  ac_path_GREP_found=false
4399  # Loop through the user's path and test for each of PROGNAME-LIST
4400  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4401for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4402do
4403  IFS=$as_save_IFS
4404  test -z "$as_dir" && as_dir=.
4405    for ac_prog in grep ggrep; do
4406    for ac_exec_ext in '' $ac_executable_extensions; do
4407      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4408      as_fn_executable_p "$ac_path_GREP" || continue
4409# Check for GNU ac_path_GREP and select it if it is found.
4410  # Check for GNU $ac_path_GREP
4411case `"$ac_path_GREP" --version 2>&1` in
4412*GNU*)
4413  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4414*)
4415  ac_count=0
4416  $as_echo_n 0123456789 >"conftest.in"
4417  while :
4418  do
4419    cat "conftest.in" "conftest.in" >"conftest.tmp"
4420    mv "conftest.tmp" "conftest.in"
4421    cp "conftest.in" "conftest.nl"
4422    $as_echo 'GREP' >> "conftest.nl"
4423    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4424    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4425    as_fn_arith $ac_count + 1 && ac_count=$as_val
4426    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4427      # Best one so far, save it but keep looking for a better one
4428      ac_cv_path_GREP="$ac_path_GREP"
4429      ac_path_GREP_max=$ac_count
4430    fi
4431    # 10*(2^10) chars as input seems more than enough
4432    test $ac_count -gt 10 && break
4433  done
4434  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4435esac
4436
4437      $ac_path_GREP_found && break 3
4438    done
4439  done
4440  done
4441IFS=$as_save_IFS
4442  if test -z "$ac_cv_path_GREP"; then
4443    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4444  fi
4445else
4446  ac_cv_path_GREP=$GREP
4447fi
4448
4449fi
4450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4451$as_echo "$ac_cv_path_GREP" >&6; }
4452 GREP="$ac_cv_path_GREP"
4453
4454
4455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4456$as_echo_n "checking for egrep... " >&6; }
4457if ${ac_cv_path_EGREP+:} false; then :
4458  $as_echo_n "(cached) " >&6
4459else
4460  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4461   then ac_cv_path_EGREP="$GREP -E"
4462   else
4463     if test -z "$EGREP"; then
4464  ac_path_EGREP_found=false
4465  # Loop through the user's path and test for each of PROGNAME-LIST
4466  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4467for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4468do
4469  IFS=$as_save_IFS
4470  test -z "$as_dir" && as_dir=.
4471    for ac_prog in egrep; do
4472    for ac_exec_ext in '' $ac_executable_extensions; do
4473      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4474      as_fn_executable_p "$ac_path_EGREP" || continue
4475# Check for GNU ac_path_EGREP and select it if it is found.
4476  # Check for GNU $ac_path_EGREP
4477case `"$ac_path_EGREP" --version 2>&1` in
4478*GNU*)
4479  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4480*)
4481  ac_count=0
4482  $as_echo_n 0123456789 >"conftest.in"
4483  while :
4484  do
4485    cat "conftest.in" "conftest.in" >"conftest.tmp"
4486    mv "conftest.tmp" "conftest.in"
4487    cp "conftest.in" "conftest.nl"
4488    $as_echo 'EGREP' >> "conftest.nl"
4489    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4490    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4491    as_fn_arith $ac_count + 1 && ac_count=$as_val
4492    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4493      # Best one so far, save it but keep looking for a better one
4494      ac_cv_path_EGREP="$ac_path_EGREP"
4495      ac_path_EGREP_max=$ac_count
4496    fi
4497    # 10*(2^10) chars as input seems more than enough
4498    test $ac_count -gt 10 && break
4499  done
4500  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4501esac
4502
4503      $ac_path_EGREP_found && break 3
4504    done
4505  done
4506  done
4507IFS=$as_save_IFS
4508  if test -z "$ac_cv_path_EGREP"; then
4509    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4510  fi
4511else
4512  ac_cv_path_EGREP=$EGREP
4513fi
4514
4515   fi
4516fi
4517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4518$as_echo "$ac_cv_path_EGREP" >&6; }
4519 EGREP="$ac_cv_path_EGREP"
4520
4521
4522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4523$as_echo_n "checking for fgrep... " >&6; }
4524if ${ac_cv_path_FGREP+:} false; then :
4525  $as_echo_n "(cached) " >&6
4526else
4527  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4528   then ac_cv_path_FGREP="$GREP -F"
4529   else
4530     if test -z "$FGREP"; then
4531  ac_path_FGREP_found=false
4532  # Loop through the user's path and test for each of PROGNAME-LIST
4533  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4534for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4535do
4536  IFS=$as_save_IFS
4537  test -z "$as_dir" && as_dir=.
4538    for ac_prog in fgrep; do
4539    for ac_exec_ext in '' $ac_executable_extensions; do
4540      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4541      as_fn_executable_p "$ac_path_FGREP" || continue
4542# Check for GNU ac_path_FGREP and select it if it is found.
4543  # Check for GNU $ac_path_FGREP
4544case `"$ac_path_FGREP" --version 2>&1` in
4545*GNU*)
4546  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4547*)
4548  ac_count=0
4549  $as_echo_n 0123456789 >"conftest.in"
4550  while :
4551  do
4552    cat "conftest.in" "conftest.in" >"conftest.tmp"
4553    mv "conftest.tmp" "conftest.in"
4554    cp "conftest.in" "conftest.nl"
4555    $as_echo 'FGREP' >> "conftest.nl"
4556    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4557    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4558    as_fn_arith $ac_count + 1 && ac_count=$as_val
4559    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4560      # Best one so far, save it but keep looking for a better one
4561      ac_cv_path_FGREP="$ac_path_FGREP"
4562      ac_path_FGREP_max=$ac_count
4563    fi
4564    # 10*(2^10) chars as input seems more than enough
4565    test $ac_count -gt 10 && break
4566  done
4567  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4568esac
4569
4570      $ac_path_FGREP_found && break 3
4571    done
4572  done
4573  done
4574IFS=$as_save_IFS
4575  if test -z "$ac_cv_path_FGREP"; then
4576    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4577  fi
4578else
4579  ac_cv_path_FGREP=$FGREP
4580fi
4581
4582   fi
4583fi
4584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4585$as_echo "$ac_cv_path_FGREP" >&6; }
4586 FGREP="$ac_cv_path_FGREP"
4587
4588
4589test -z "$GREP" && GREP=grep
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609# Check whether --with-gnu-ld was given.
4610if test "${with_gnu_ld+set}" = set; then :
4611  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4612else
4613  with_gnu_ld=no
4614fi
4615
4616ac_prog=ld
4617if test yes = "$GCC"; then
4618  # Check if gcc -print-prog-name=ld gives a path.
4619  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4620$as_echo_n "checking for ld used by $CC... " >&6; }
4621  case $host in
4622  *-*-mingw*)
4623    # gcc leaves a trailing carriage return, which upsets mingw
4624    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4625  *)
4626    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4627  esac
4628  case $ac_prog in
4629    # Accept absolute paths.
4630    [\\/]* | ?:[\\/]*)
4631      re_direlt='/[^/][^/]*/\.\./'
4632      # Canonicalize the pathname of ld
4633      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4634      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4635	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4636      done
4637      test -z "$LD" && LD=$ac_prog
4638      ;;
4639  "")
4640    # If it fails, then pretend we aren't using GCC.
4641    ac_prog=ld
4642    ;;
4643  *)
4644    # If it is relative, then search for the first ld in PATH.
4645    with_gnu_ld=unknown
4646    ;;
4647  esac
4648elif test yes = "$with_gnu_ld"; then
4649  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4650$as_echo_n "checking for GNU ld... " >&6; }
4651else
4652  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4653$as_echo_n "checking for non-GNU ld... " >&6; }
4654fi
4655if ${lt_cv_path_LD+:} false; then :
4656  $as_echo_n "(cached) " >&6
4657else
4658  if test -z "$LD"; then
4659  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4660  for ac_dir in $PATH; do
4661    IFS=$lt_save_ifs
4662    test -z "$ac_dir" && ac_dir=.
4663    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4664      lt_cv_path_LD=$ac_dir/$ac_prog
4665      # Check to see if the program is GNU ld.  I'd rather use --version,
4666      # but apparently some variants of GNU ld only accept -v.
4667      # Break only if it was the GNU/non-GNU ld that we prefer.
4668      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4669      *GNU* | *'with BFD'*)
4670	test no != "$with_gnu_ld" && break
4671	;;
4672      *)
4673	test yes != "$with_gnu_ld" && break
4674	;;
4675      esac
4676    fi
4677  done
4678  IFS=$lt_save_ifs
4679else
4680  lt_cv_path_LD=$LD # Let the user override the test with a path.
4681fi
4682fi
4683
4684LD=$lt_cv_path_LD
4685if test -n "$LD"; then
4686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4687$as_echo "$LD" >&6; }
4688else
4689  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4690$as_echo "no" >&6; }
4691fi
4692test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4694$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4695if ${lt_cv_prog_gnu_ld+:} false; then :
4696  $as_echo_n "(cached) " >&6
4697else
4698  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4699case `$LD -v 2>&1 </dev/null` in
4700*GNU* | *'with BFD'*)
4701  lt_cv_prog_gnu_ld=yes
4702  ;;
4703*)
4704  lt_cv_prog_gnu_ld=no
4705  ;;
4706esac
4707fi
4708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4709$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4710with_gnu_ld=$lt_cv_prog_gnu_ld
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4721$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4722if ${lt_cv_path_NM+:} false; then :
4723  $as_echo_n "(cached) " >&6
4724else
4725  if test -n "$NM"; then
4726  # Let the user override the test.
4727  lt_cv_path_NM=$NM
4728else
4729  lt_nm_to_check=${ac_tool_prefix}nm
4730  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4731    lt_nm_to_check="$lt_nm_to_check nm"
4732  fi
4733  for lt_tmp_nm in $lt_nm_to_check; do
4734    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4735    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4736      IFS=$lt_save_ifs
4737      test -z "$ac_dir" && ac_dir=.
4738      tmp_nm=$ac_dir/$lt_tmp_nm
4739      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4740	# Check to see if the nm accepts a BSD-compat flag.
4741	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4742	#   nm: unknown option "B" ignored
4743	# Tru64's nm complains that /dev/null is an invalid object file
4744	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4745	case $build_os in
4746	mingw*) lt_bad_file=conftest.nm/nofile ;;
4747	*) lt_bad_file=/dev/null ;;
4748	esac
4749	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4750	*$lt_bad_file* | *'Invalid file or object type'*)
4751	  lt_cv_path_NM="$tmp_nm -B"
4752	  break 2
4753	  ;;
4754	*)
4755	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4756	  */dev/null*)
4757	    lt_cv_path_NM="$tmp_nm -p"
4758	    break 2
4759	    ;;
4760	  *)
4761	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4762	    continue # so that we can try to find one that supports BSD flags
4763	    ;;
4764	  esac
4765	  ;;
4766	esac
4767      fi
4768    done
4769    IFS=$lt_save_ifs
4770  done
4771  : ${lt_cv_path_NM=no}
4772fi
4773fi
4774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4775$as_echo "$lt_cv_path_NM" >&6; }
4776if test no != "$lt_cv_path_NM"; then
4777  NM=$lt_cv_path_NM
4778else
4779  # Didn't find any BSD compatible name lister, look for dumpbin.
4780  if test -n "$DUMPBIN"; then :
4781    # Let the user override the test.
4782  else
4783    if test -n "$ac_tool_prefix"; then
4784  for ac_prog in dumpbin "link -dump"
4785  do
4786    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4787set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4789$as_echo_n "checking for $ac_word... " >&6; }
4790if ${ac_cv_prog_DUMPBIN+:} false; then :
4791  $as_echo_n "(cached) " >&6
4792else
4793  if test -n "$DUMPBIN"; then
4794  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4795else
4796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4797for as_dir in $PATH
4798do
4799  IFS=$as_save_IFS
4800  test -z "$as_dir" && as_dir=.
4801    for ac_exec_ext in '' $ac_executable_extensions; do
4802  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4803    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4804    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4805    break 2
4806  fi
4807done
4808  done
4809IFS=$as_save_IFS
4810
4811fi
4812fi
4813DUMPBIN=$ac_cv_prog_DUMPBIN
4814if test -n "$DUMPBIN"; then
4815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4816$as_echo "$DUMPBIN" >&6; }
4817else
4818  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4819$as_echo "no" >&6; }
4820fi
4821
4822
4823    test -n "$DUMPBIN" && break
4824  done
4825fi
4826if test -z "$DUMPBIN"; then
4827  ac_ct_DUMPBIN=$DUMPBIN
4828  for ac_prog in dumpbin "link -dump"
4829do
4830  # Extract the first word of "$ac_prog", so it can be a program name with args.
4831set dummy $ac_prog; ac_word=$2
4832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4833$as_echo_n "checking for $ac_word... " >&6; }
4834if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4835  $as_echo_n "(cached) " >&6
4836else
4837  if test -n "$ac_ct_DUMPBIN"; then
4838  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4839else
4840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4841for as_dir in $PATH
4842do
4843  IFS=$as_save_IFS
4844  test -z "$as_dir" && as_dir=.
4845    for ac_exec_ext in '' $ac_executable_extensions; do
4846  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4847    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4848    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4849    break 2
4850  fi
4851done
4852  done
4853IFS=$as_save_IFS
4854
4855fi
4856fi
4857ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4858if test -n "$ac_ct_DUMPBIN"; then
4859  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4860$as_echo "$ac_ct_DUMPBIN" >&6; }
4861else
4862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4863$as_echo "no" >&6; }
4864fi
4865
4866
4867  test -n "$ac_ct_DUMPBIN" && break
4868done
4869
4870  if test "x$ac_ct_DUMPBIN" = x; then
4871    DUMPBIN=":"
4872  else
4873    case $cross_compiling:$ac_tool_warned in
4874yes:)
4875{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4876$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4877ac_tool_warned=yes ;;
4878esac
4879    DUMPBIN=$ac_ct_DUMPBIN
4880  fi
4881fi
4882
4883    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4884    *COFF*)
4885      DUMPBIN="$DUMPBIN -symbols -headers"
4886      ;;
4887    *)
4888      DUMPBIN=:
4889      ;;
4890    esac
4891  fi
4892
4893  if test : != "$DUMPBIN"; then
4894    NM=$DUMPBIN
4895  fi
4896fi
4897test -z "$NM" && NM=nm
4898
4899
4900
4901
4902
4903
4904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4905$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4906if ${lt_cv_nm_interface+:} false; then :
4907  $as_echo_n "(cached) " >&6
4908else
4909  lt_cv_nm_interface="BSD nm"
4910  echo "int some_variable = 0;" > conftest.$ac_ext
4911  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4912  (eval "$ac_compile" 2>conftest.err)
4913  cat conftest.err >&5
4914  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4915  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4916  cat conftest.err >&5
4917  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4918  cat conftest.out >&5
4919  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4920    lt_cv_nm_interface="MS dumpbin"
4921  fi
4922  rm -f conftest*
4923fi
4924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4925$as_echo "$lt_cv_nm_interface" >&6; }
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 -f 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 -f 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 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
8411if test -n "$compiler"; then
8412
8413lt_prog_compiler_no_builtin_flag=
8414
8415if test yes = "$GCC"; then
8416  case $cc_basename in
8417  nvcc*)
8418    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8419  *)
8420    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8421  esac
8422
8423  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8424$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8425if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8426  $as_echo_n "(cached) " >&6
8427else
8428  lt_cv_prog_compiler_rtti_exceptions=no
8429   ac_outfile=conftest.$ac_objext
8430   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8431   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8432   # Insert the option either (1) after the last *FLAGS variable, or
8433   # (2) before a word containing "conftest.", or (3) at the end.
8434   # Note that $ac_compile itself does not contain backslashes and begins
8435   # with a dollar sign (not a hyphen), so the echo should work correctly.
8436   # The option is referenced via a variable to avoid confusing sed.
8437   lt_compile=`echo "$ac_compile" | $SED \
8438   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8439   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8440   -e 's:$: $lt_compiler_flag:'`
8441   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8442   (eval "$lt_compile" 2>conftest.err)
8443   ac_status=$?
8444   cat conftest.err >&5
8445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446   if (exit $ac_status) && test -s "$ac_outfile"; then
8447     # The compiler can only warn and ignore the option if not recognized
8448     # So say no if there are warnings other than the usual output.
8449     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8450     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8451     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8452       lt_cv_prog_compiler_rtti_exceptions=yes
8453     fi
8454   fi
8455   $RM conftest*
8456
8457fi
8458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8459$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8460
8461if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8462    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8463else
8464    :
8465fi
8466
8467fi
8468
8469
8470
8471
8472
8473
8474  lt_prog_compiler_wl=
8475lt_prog_compiler_pic=
8476lt_prog_compiler_static=
8477
8478
8479  if test yes = "$GCC"; then
8480    lt_prog_compiler_wl='-Wl,'
8481    lt_prog_compiler_static='-static'
8482
8483    case $host_os in
8484      aix*)
8485      # All AIX code is PIC.
8486      if test ia64 = "$host_cpu"; then
8487	# AIX 5 now supports IA64 processor
8488	lt_prog_compiler_static='-Bstatic'
8489      fi
8490      lt_prog_compiler_pic='-fPIC'
8491      ;;
8492
8493    amigaos*)
8494      case $host_cpu in
8495      powerpc)
8496            # see comment about AmigaOS4 .so support
8497            lt_prog_compiler_pic='-fPIC'
8498        ;;
8499      m68k)
8500            # FIXME: we need at least 68020 code to build shared libraries, but
8501            # adding the '-m68020' flag to GCC prevents building anything better,
8502            # like '-m68040'.
8503            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8504        ;;
8505      esac
8506      ;;
8507
8508    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8509      # PIC is the default for these OSes.
8510      ;;
8511
8512    mingw* | cygwin* | pw32* | os2* | cegcc*)
8513      # This hack is so that the source file can tell whether it is being
8514      # built for inclusion in a dll (and should export symbols for example).
8515      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8516      # (--disable-auto-import) libraries
8517      lt_prog_compiler_pic='-DDLL_EXPORT'
8518      case $host_os in
8519      os2*)
8520	lt_prog_compiler_static='$wl-static'
8521	;;
8522      esac
8523      ;;
8524
8525    darwin* | rhapsody*)
8526      # PIC is the default on this platform
8527      # Common symbols not allowed in MH_DYLIB files
8528      lt_prog_compiler_pic='-fno-common'
8529      ;;
8530
8531    haiku*)
8532      # PIC is the default for Haiku.
8533      # The "-static" flag exists, but is broken.
8534      lt_prog_compiler_static=
8535      ;;
8536
8537    hpux*)
8538      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8539      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8540      # sets the default TLS model and affects inlining.
8541      case $host_cpu in
8542      hppa*64*)
8543	# +Z the default
8544	;;
8545      *)
8546	lt_prog_compiler_pic='-fPIC'
8547	;;
8548      esac
8549      ;;
8550
8551    interix[3-9]*)
8552      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8553      # Instead, we relocate shared libraries at runtime.
8554      ;;
8555
8556    msdosdjgpp*)
8557      # Just because we use GCC doesn't mean we suddenly get shared libraries
8558      # on systems that don't support them.
8559      lt_prog_compiler_can_build_shared=no
8560      enable_shared=no
8561      ;;
8562
8563    *nto* | *qnx*)
8564      # QNX uses GNU C++, but need to define -shared option too, otherwise
8565      # it will coredump.
8566      lt_prog_compiler_pic='-fPIC -shared'
8567      ;;
8568
8569    sysv4*MP*)
8570      if test -d /usr/nec; then
8571	lt_prog_compiler_pic=-Kconform_pic
8572      fi
8573      ;;
8574
8575    *)
8576      lt_prog_compiler_pic='-fPIC'
8577      ;;
8578    esac
8579
8580    case $cc_basename in
8581    nvcc*) # Cuda Compiler Driver 2.2
8582      lt_prog_compiler_wl='-Xlinker '
8583      if test -n "$lt_prog_compiler_pic"; then
8584        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8585      fi
8586      ;;
8587    esac
8588  else
8589    # PORTME Check for flag to pass linker flags through the system compiler.
8590    case $host_os in
8591    aix*)
8592      lt_prog_compiler_wl='-Wl,'
8593      if test ia64 = "$host_cpu"; then
8594	# AIX 5 now supports IA64 processor
8595	lt_prog_compiler_static='-Bstatic'
8596      else
8597	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8598      fi
8599      ;;
8600
8601    darwin* | rhapsody*)
8602      # PIC is the default on this platform
8603      # Common symbols not allowed in MH_DYLIB files
8604      lt_prog_compiler_pic='-fno-common'
8605      case $cc_basename in
8606      nagfor*)
8607        # NAG Fortran compiler
8608        lt_prog_compiler_wl='-Wl,-Wl,,'
8609        lt_prog_compiler_pic='-PIC'
8610        lt_prog_compiler_static='-Bstatic'
8611        ;;
8612      esac
8613      ;;
8614
8615    mingw* | cygwin* | pw32* | os2* | cegcc*)
8616      # This hack is so that the source file can tell whether it is being
8617      # built for inclusion in a dll (and should export symbols for example).
8618      lt_prog_compiler_pic='-DDLL_EXPORT'
8619      case $host_os in
8620      os2*)
8621	lt_prog_compiler_static='$wl-static'
8622	;;
8623      esac
8624      ;;
8625
8626    hpux9* | hpux10* | hpux11*)
8627      lt_prog_compiler_wl='-Wl,'
8628      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8629      # not for PA HP-UX.
8630      case $host_cpu in
8631      hppa*64*|ia64*)
8632	# +Z the default
8633	;;
8634      *)
8635	lt_prog_compiler_pic='+Z'
8636	;;
8637      esac
8638      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8639      lt_prog_compiler_static='$wl-a ${wl}archive'
8640      ;;
8641
8642    irix5* | irix6* | nonstopux*)
8643      lt_prog_compiler_wl='-Wl,'
8644      # PIC (with -KPIC) is the default.
8645      lt_prog_compiler_static='-non_shared'
8646      ;;
8647
8648    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8649      case $cc_basename in
8650      # old Intel for x86_64, which still supported -KPIC.
8651      ecc*)
8652	lt_prog_compiler_wl='-Wl,'
8653	lt_prog_compiler_pic='-KPIC'
8654	lt_prog_compiler_static='-static'
8655        ;;
8656      # icc used to be incompatible with GCC.
8657      # ICC 10 doesn't accept -KPIC any more.
8658      icc* | ifort*)
8659	lt_prog_compiler_wl='-Wl,'
8660	lt_prog_compiler_pic='-fPIC'
8661	lt_prog_compiler_static='-static'
8662        ;;
8663      # Lahey Fortran 8.1.
8664      lf95*)
8665	lt_prog_compiler_wl='-Wl,'
8666	lt_prog_compiler_pic='--shared'
8667	lt_prog_compiler_static='--static'
8668	;;
8669      nagfor*)
8670	# NAG Fortran compiler
8671	lt_prog_compiler_wl='-Wl,-Wl,,'
8672	lt_prog_compiler_pic='-PIC'
8673	lt_prog_compiler_static='-Bstatic'
8674	;;
8675      tcc*)
8676	# Fabrice Bellard et al's Tiny C Compiler
8677	lt_prog_compiler_wl='-Wl,'
8678	lt_prog_compiler_pic='-fPIC'
8679	lt_prog_compiler_static='-static'
8680	;;
8681      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8682        # Portland Group compilers (*not* the Pentium gcc compiler,
8683	# which looks to be a dead project)
8684	lt_prog_compiler_wl='-Wl,'
8685	lt_prog_compiler_pic='-fpic'
8686	lt_prog_compiler_static='-Bstatic'
8687        ;;
8688      ccc*)
8689        lt_prog_compiler_wl='-Wl,'
8690        # All Alpha code is PIC.
8691        lt_prog_compiler_static='-non_shared'
8692        ;;
8693      xl* | bgxl* | bgf* | mpixl*)
8694	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8695	lt_prog_compiler_wl='-Wl,'
8696	lt_prog_compiler_pic='-qpic'
8697	lt_prog_compiler_static='-qstaticlink'
8698	;;
8699      *)
8700	case `$CC -V 2>&1 | sed 5q` in
8701	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8702	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8703	  lt_prog_compiler_pic='-KPIC'
8704	  lt_prog_compiler_static='-Bstatic'
8705	  lt_prog_compiler_wl=''
8706	  ;;
8707	*Sun\ F* | *Sun*Fortran*)
8708	  lt_prog_compiler_pic='-KPIC'
8709	  lt_prog_compiler_static='-Bstatic'
8710	  lt_prog_compiler_wl='-Qoption ld '
8711	  ;;
8712	*Sun\ C*)
8713	  # Sun C 5.9
8714	  lt_prog_compiler_pic='-KPIC'
8715	  lt_prog_compiler_static='-Bstatic'
8716	  lt_prog_compiler_wl='-Wl,'
8717	  ;;
8718        *Intel*\ [CF]*Compiler*)
8719	  lt_prog_compiler_wl='-Wl,'
8720	  lt_prog_compiler_pic='-fPIC'
8721	  lt_prog_compiler_static='-static'
8722	  ;;
8723	*Portland\ Group*)
8724	  lt_prog_compiler_wl='-Wl,'
8725	  lt_prog_compiler_pic='-fpic'
8726	  lt_prog_compiler_static='-Bstatic'
8727	  ;;
8728	esac
8729	;;
8730      esac
8731      ;;
8732
8733    newsos6)
8734      lt_prog_compiler_pic='-KPIC'
8735      lt_prog_compiler_static='-Bstatic'
8736      ;;
8737
8738    *nto* | *qnx*)
8739      # QNX uses GNU C++, but need to define -shared option too, otherwise
8740      # it will coredump.
8741      lt_prog_compiler_pic='-fPIC -shared'
8742      ;;
8743
8744    osf3* | osf4* | osf5*)
8745      lt_prog_compiler_wl='-Wl,'
8746      # All OSF/1 code is PIC.
8747      lt_prog_compiler_static='-non_shared'
8748      ;;
8749
8750    rdos*)
8751      lt_prog_compiler_static='-non_shared'
8752      ;;
8753
8754    solaris*)
8755      lt_prog_compiler_pic='-KPIC'
8756      lt_prog_compiler_static='-Bstatic'
8757      case $cc_basename in
8758      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8759	lt_prog_compiler_wl='-Qoption ld ';;
8760      *)
8761	lt_prog_compiler_wl='-Wl,';;
8762      esac
8763      ;;
8764
8765    sunos4*)
8766      lt_prog_compiler_wl='-Qoption ld '
8767      lt_prog_compiler_pic='-PIC'
8768      lt_prog_compiler_static='-Bstatic'
8769      ;;
8770
8771    sysv4 | sysv4.2uw2* | sysv4.3*)
8772      lt_prog_compiler_wl='-Wl,'
8773      lt_prog_compiler_pic='-KPIC'
8774      lt_prog_compiler_static='-Bstatic'
8775      ;;
8776
8777    sysv4*MP*)
8778      if test -d /usr/nec; then
8779	lt_prog_compiler_pic='-Kconform_pic'
8780	lt_prog_compiler_static='-Bstatic'
8781      fi
8782      ;;
8783
8784    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8785      lt_prog_compiler_wl='-Wl,'
8786      lt_prog_compiler_pic='-KPIC'
8787      lt_prog_compiler_static='-Bstatic'
8788      ;;
8789
8790    unicos*)
8791      lt_prog_compiler_wl='-Wl,'
8792      lt_prog_compiler_can_build_shared=no
8793      ;;
8794
8795    uts4*)
8796      lt_prog_compiler_pic='-pic'
8797      lt_prog_compiler_static='-Bstatic'
8798      ;;
8799
8800    *)
8801      lt_prog_compiler_can_build_shared=no
8802      ;;
8803    esac
8804  fi
8805
8806case $host_os in
8807  # For platforms that do not support PIC, -DPIC is meaningless:
8808  *djgpp*)
8809    lt_prog_compiler_pic=
8810    ;;
8811  *)
8812    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8813    ;;
8814esac
8815
8816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8817$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8818if ${lt_cv_prog_compiler_pic+:} false; then :
8819  $as_echo_n "(cached) " >&6
8820else
8821  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8822fi
8823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8824$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8825lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8826
8827#
8828# Check to make sure the PIC flag actually works.
8829#
8830if test -n "$lt_prog_compiler_pic"; then
8831  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8832$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8833if ${lt_cv_prog_compiler_pic_works+:} false; then :
8834  $as_echo_n "(cached) " >&6
8835else
8836  lt_cv_prog_compiler_pic_works=no
8837   ac_outfile=conftest.$ac_objext
8838   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8839   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
8840   # Insert the option either (1) after the last *FLAGS variable, or
8841   # (2) before a word containing "conftest.", or (3) at the end.
8842   # Note that $ac_compile itself does not contain backslashes and begins
8843   # with a dollar sign (not a hyphen), so the echo should work correctly.
8844   # The option is referenced via a variable to avoid confusing sed.
8845   lt_compile=`echo "$ac_compile" | $SED \
8846   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8847   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8848   -e 's:$: $lt_compiler_flag:'`
8849   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8850   (eval "$lt_compile" 2>conftest.err)
8851   ac_status=$?
8852   cat conftest.err >&5
8853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854   if (exit $ac_status) && test -s "$ac_outfile"; then
8855     # The compiler can only warn and ignore the option if not recognized
8856     # So say no if there are warnings other than the usual output.
8857     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8858     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8859     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8860       lt_cv_prog_compiler_pic_works=yes
8861     fi
8862   fi
8863   $RM conftest*
8864
8865fi
8866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8867$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8868
8869if test yes = "$lt_cv_prog_compiler_pic_works"; then
8870    case $lt_prog_compiler_pic in
8871     "" | " "*) ;;
8872     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8873     esac
8874else
8875    lt_prog_compiler_pic=
8876     lt_prog_compiler_can_build_shared=no
8877fi
8878
8879fi
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891#
8892# Check to make sure the static flag actually works.
8893#
8894wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8896$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8897if ${lt_cv_prog_compiler_static_works+:} false; then :
8898  $as_echo_n "(cached) " >&6
8899else
8900  lt_cv_prog_compiler_static_works=no
8901   save_LDFLAGS=$LDFLAGS
8902   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8903   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8904   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8905     # The linker can only warn and ignore the option if not recognized
8906     # So say no if there are warnings
8907     if test -s conftest.err; then
8908       # Append any errors to the config.log.
8909       cat conftest.err 1>&5
8910       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8911       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8912       if diff conftest.exp conftest.er2 >/dev/null; then
8913         lt_cv_prog_compiler_static_works=yes
8914       fi
8915     else
8916       lt_cv_prog_compiler_static_works=yes
8917     fi
8918   fi
8919   $RM -r conftest*
8920   LDFLAGS=$save_LDFLAGS
8921
8922fi
8923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8924$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8925
8926if test yes = "$lt_cv_prog_compiler_static_works"; then
8927    :
8928else
8929    lt_prog_compiler_static=
8930fi
8931
8932
8933
8934
8935
8936
8937
8938  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8939$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8940if ${lt_cv_prog_compiler_c_o+:} false; then :
8941  $as_echo_n "(cached) " >&6
8942else
8943  lt_cv_prog_compiler_c_o=no
8944   $RM -r conftest 2>/dev/null
8945   mkdir conftest
8946   cd conftest
8947   mkdir out
8948   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8949
8950   lt_compiler_flag="-o out/conftest2.$ac_objext"
8951   # Insert the option either (1) after the last *FLAGS variable, or
8952   # (2) before a word containing "conftest.", or (3) at the end.
8953   # Note that $ac_compile itself does not contain backslashes and begins
8954   # with a dollar sign (not a hyphen), so the echo should work correctly.
8955   lt_compile=`echo "$ac_compile" | $SED \
8956   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8957   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8958   -e 's:$: $lt_compiler_flag:'`
8959   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8960   (eval "$lt_compile" 2>out/conftest.err)
8961   ac_status=$?
8962   cat out/conftest.err >&5
8963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8964   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8965   then
8966     # The compiler can only warn and ignore the option if not recognized
8967     # So say no if there are warnings
8968     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8969     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8970     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8971       lt_cv_prog_compiler_c_o=yes
8972     fi
8973   fi
8974   chmod u+w . 2>&5
8975   $RM conftest*
8976   # SGI C++ compiler will create directory out/ii_files/ for
8977   # template instantiation
8978   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8979   $RM out/* && rmdir out
8980   cd ..
8981   $RM -r conftest
8982   $RM conftest*
8983
8984fi
8985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8986$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8987
8988
8989
8990
8991
8992
8993  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8994$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8995if ${lt_cv_prog_compiler_c_o+:} false; then :
8996  $as_echo_n "(cached) " >&6
8997else
8998  lt_cv_prog_compiler_c_o=no
8999   $RM -r conftest 2>/dev/null
9000   mkdir conftest
9001   cd conftest
9002   mkdir out
9003   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9004
9005   lt_compiler_flag="-o out/conftest2.$ac_objext"
9006   # Insert the option either (1) after the last *FLAGS variable, or
9007   # (2) before a word containing "conftest.", or (3) at the end.
9008   # Note that $ac_compile itself does not contain backslashes and begins
9009   # with a dollar sign (not a hyphen), so the echo should work correctly.
9010   lt_compile=`echo "$ac_compile" | $SED \
9011   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9012   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9013   -e 's:$: $lt_compiler_flag:'`
9014   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9015   (eval "$lt_compile" 2>out/conftest.err)
9016   ac_status=$?
9017   cat out/conftest.err >&5
9018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9020   then
9021     # The compiler can only warn and ignore the option if not recognized
9022     # So say no if there are warnings
9023     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9024     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9025     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9026       lt_cv_prog_compiler_c_o=yes
9027     fi
9028   fi
9029   chmod u+w . 2>&5
9030   $RM conftest*
9031   # SGI C++ compiler will create directory out/ii_files/ for
9032   # template instantiation
9033   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9034   $RM out/* && rmdir out
9035   cd ..
9036   $RM -r conftest
9037   $RM conftest*
9038
9039fi
9040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9041$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9042
9043
9044
9045
9046hard_links=nottested
9047if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9048  # do not overwrite the value of need_locks provided by the user
9049  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9050$as_echo_n "checking if we can lock with hard links... " >&6; }
9051  hard_links=yes
9052  $RM conftest*
9053  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9054  touch conftest.a
9055  ln conftest.a conftest.b 2>&5 || hard_links=no
9056  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9057  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9058$as_echo "$hard_links" >&6; }
9059  if test no = "$hard_links"; then
9060    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9061$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9062    need_locks=warn
9063  fi
9064else
9065  need_locks=no
9066fi
9067
9068
9069
9070
9071
9072
9073  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9074$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9075
9076  runpath_var=
9077  allow_undefined_flag=
9078  always_export_symbols=no
9079  archive_cmds=
9080  archive_expsym_cmds=
9081  compiler_needs_object=no
9082  enable_shared_with_static_runtimes=no
9083  export_dynamic_flag_spec=
9084  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9085  hardcode_automatic=no
9086  hardcode_direct=no
9087  hardcode_direct_absolute=no
9088  hardcode_libdir_flag_spec=
9089  hardcode_libdir_separator=
9090  hardcode_minus_L=no
9091  hardcode_shlibpath_var=unsupported
9092  inherit_rpath=no
9093  link_all_deplibs=unknown
9094  module_cmds=
9095  module_expsym_cmds=
9096  old_archive_from_new_cmds=
9097  old_archive_from_expsyms_cmds=
9098  thread_safe_flag_spec=
9099  whole_archive_flag_spec=
9100  # include_expsyms should be a list of space-separated symbols to be *always*
9101  # included in the symbol list
9102  include_expsyms=
9103  # exclude_expsyms can be an extended regexp of symbols to exclude
9104  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9105  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9106  # as well as any symbol that contains 'd'.
9107  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9108  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9109  # platforms (ab)use it in PIC code, but their linkers get confused if
9110  # the symbol is explicitly referenced.  Since portable code cannot
9111  # rely on this symbol name, it's probably fine to never include it in
9112  # preloaded symbol tables.
9113  # Exclude shared library initialization/finalization symbols.
9114  extract_expsyms_cmds=
9115
9116  case $host_os in
9117  cygwin* | mingw* | pw32* | cegcc*)
9118    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9119    # When not using gcc, we currently assume that we are using
9120    # Microsoft Visual C++.
9121    if test yes != "$GCC"; then
9122      with_gnu_ld=no
9123    fi
9124    ;;
9125  interix*)
9126    # we just hope/assume this is gcc and not c89 (= MSVC++)
9127    with_gnu_ld=yes
9128    ;;
9129  openbsd* | bitrig*)
9130    with_gnu_ld=no
9131    ;;
9132  esac
9133
9134  ld_shlibs=yes
9135
9136  # On some targets, GNU ld is compatible enough with the native linker
9137  # that we're better off using the native interface for both.
9138  lt_use_gnu_ld_interface=no
9139  if test yes = "$with_gnu_ld"; then
9140    case $host_os in
9141      aix*)
9142	# The AIX port of GNU ld has always aspired to compatibility
9143	# with the native linker.  However, as the warning in the GNU ld
9144	# block says, versions before 2.19.5* couldn't really create working
9145	# shared libraries, regardless of the interface used.
9146	case `$LD -v 2>&1` in
9147	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9148	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9149	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9150	  *)
9151	    lt_use_gnu_ld_interface=yes
9152	    ;;
9153	esac
9154	;;
9155      *)
9156	lt_use_gnu_ld_interface=yes
9157	;;
9158    esac
9159  fi
9160
9161  if test yes = "$lt_use_gnu_ld_interface"; then
9162    # If archive_cmds runs LD, not CC, wlarc should be empty
9163    wlarc='$wl'
9164
9165    # Set some defaults for GNU ld with shared library support. These
9166    # are reset later if shared libraries are not supported. Putting them
9167    # here allows them to be overridden if necessary.
9168    runpath_var=LD_RUN_PATH
9169    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9170    export_dynamic_flag_spec='$wl--export-dynamic'
9171    # ancient GNU ld didn't support --whole-archive et. al.
9172    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9173      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9174    else
9175      whole_archive_flag_spec=
9176    fi
9177    supports_anon_versioning=no
9178    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9179      *GNU\ gold*) supports_anon_versioning=yes ;;
9180      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9181      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9182      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9183      *\ 2.11.*) ;; # other 2.11 versions
9184      *) supports_anon_versioning=yes ;;
9185    esac
9186
9187    # See if GNU ld supports shared libraries.
9188    case $host_os in
9189    aix[3-9]*)
9190      # On AIX/PPC, the GNU linker is very broken
9191      if test ia64 != "$host_cpu"; then
9192	ld_shlibs=no
9193	cat <<_LT_EOF 1>&2
9194
9195*** Warning: the GNU linker, at least up to release 2.19, is reported
9196*** to be unable to reliably create shared libraries on AIX.
9197*** Therefore, libtool is disabling shared libraries support.  If you
9198*** really care for shared libraries, you may want to install binutils
9199*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9200*** You will then need to restart the configuration process.
9201
9202_LT_EOF
9203      fi
9204      ;;
9205
9206    amigaos*)
9207      case $host_cpu in
9208      powerpc)
9209            # see comment about AmigaOS4 .so support
9210            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9211            archive_expsym_cmds=''
9212        ;;
9213      m68k)
9214            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)'
9215            hardcode_libdir_flag_spec='-L$libdir'
9216            hardcode_minus_L=yes
9217        ;;
9218      esac
9219      ;;
9220
9221    beos*)
9222      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9223	allow_undefined_flag=unsupported
9224	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9225	# support --undefined.  This deserves some investigation.  FIXME
9226	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9227      else
9228	ld_shlibs=no
9229      fi
9230      ;;
9231
9232    cygwin* | mingw* | pw32* | cegcc*)
9233      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9234      # as there is no search path for DLLs.
9235      hardcode_libdir_flag_spec='-L$libdir'
9236      export_dynamic_flag_spec='$wl--export-all-symbols'
9237      allow_undefined_flag=unsupported
9238      always_export_symbols=no
9239      enable_shared_with_static_runtimes=yes
9240      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'
9241      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9242
9243      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9244        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9245	# If the export-symbols file already is a .def file, use it as
9246	# is; otherwise, prepend EXPORTS...
9247	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9248          cp $export_symbols $output_objdir/$soname.def;
9249        else
9250          echo EXPORTS > $output_objdir/$soname.def;
9251          cat $export_symbols >> $output_objdir/$soname.def;
9252        fi~
9253        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9254      else
9255	ld_shlibs=no
9256      fi
9257      ;;
9258
9259    haiku*)
9260      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9261      link_all_deplibs=yes
9262      ;;
9263
9264    os2*)
9265      hardcode_libdir_flag_spec='-L$libdir'
9266      hardcode_minus_L=yes
9267      allow_undefined_flag=unsupported
9268      shrext_cmds=.dll
9269      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9270	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9271	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9272	$ECHO EXPORTS >> $output_objdir/$libname.def~
9273	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9274	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9275	emximp -o $lib $output_objdir/$libname.def'
9276      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9277	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9278	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9279	$ECHO EXPORTS >> $output_objdir/$libname.def~
9280	prefix_cmds="$SED"~
9281	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9282	  prefix_cmds="$prefix_cmds -e 1d";
9283	fi~
9284	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9285	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9286	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9287	emximp -o $lib $output_objdir/$libname.def'
9288      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9289      enable_shared_with_static_runtimes=yes
9290      ;;
9291
9292    interix[3-9]*)
9293      hardcode_direct=no
9294      hardcode_shlibpath_var=no
9295      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9296      export_dynamic_flag_spec='$wl-E'
9297      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9298      # Instead, shared libraries are loaded at an image base (0x10000000 by
9299      # default) and relocated if they conflict, which is a slow very memory
9300      # consuming and fragmenting process.  To avoid this, we pick a random,
9301      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9302      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9303      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9304      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'
9305      ;;
9306
9307    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9308      tmp_diet=no
9309      if test linux-dietlibc = "$host_os"; then
9310	case $cc_basename in
9311	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9312	esac
9313      fi
9314      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9315	 && test no = "$tmp_diet"
9316      then
9317	tmp_addflag=' $pic_flag'
9318	tmp_sharedflag='-shared'
9319	case $cc_basename,$host_cpu in
9320        pgcc*)				# Portland Group C compiler
9321	  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'
9322	  tmp_addflag=' $pic_flag'
9323	  ;;
9324	pgf77* | pgf90* | pgf95* | pgfortran*)
9325					# Portland Group f77 and f90 compilers
9326	  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'
9327	  tmp_addflag=' $pic_flag -Mnomain' ;;
9328	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9329	  tmp_addflag=' -i_dynamic' ;;
9330	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9331	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9332	ifc* | ifort*)			# Intel Fortran compiler
9333	  tmp_addflag=' -nofor_main' ;;
9334	lf95*)				# Lahey Fortran 8.1
9335	  whole_archive_flag_spec=
9336	  tmp_sharedflag='--shared' ;;
9337        nagfor*)                        # NAGFOR 5.3
9338          tmp_sharedflag='-Wl,-shared' ;;
9339	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9340	  tmp_sharedflag='-qmkshrobj'
9341	  tmp_addflag= ;;
9342	nvcc*)	# Cuda Compiler Driver 2.2
9343	  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'
9344	  compiler_needs_object=yes
9345	  ;;
9346	esac
9347	case `$CC -V 2>&1 | sed 5q` in
9348	*Sun\ C*)			# Sun C 5.9
9349	  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'
9350	  compiler_needs_object=yes
9351	  tmp_sharedflag='-G' ;;
9352	*Sun\ F*)			# Sun Fortran 8.3
9353	  tmp_sharedflag='-G' ;;
9354	esac
9355	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9356
9357        if test yes = "$supports_anon_versioning"; then
9358          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9359            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9360            echo "local: *; };" >> $output_objdir/$libname.ver~
9361            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9362        fi
9363
9364	case $cc_basename in
9365	tcc*)
9366	  export_dynamic_flag_spec='-rdynamic'
9367	  ;;
9368	xlf* | bgf* | bgxlf* | mpixlf*)
9369	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9370	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9371	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9372	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9373	  if test yes = "$supports_anon_versioning"; then
9374	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9375              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9376              echo "local: *; };" >> $output_objdir/$libname.ver~
9377              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9378	  fi
9379	  ;;
9380	esac
9381      else
9382        ld_shlibs=no
9383      fi
9384      ;;
9385
9386    netbsd*)
9387      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9388	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9389	wlarc=
9390      else
9391	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9392	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9393      fi
9394      ;;
9395
9396    solaris*)
9397      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9398	ld_shlibs=no
9399	cat <<_LT_EOF 1>&2
9400
9401*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9402*** create shared libraries on Solaris systems.  Therefore, libtool
9403*** is disabling shared libraries support.  We urge you to upgrade GNU
9404*** binutils to release 2.9.1 or newer.  Another option is to modify
9405*** your PATH or compiler configuration so that the native linker is
9406*** used, and then restart.
9407
9408_LT_EOF
9409      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9410	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9411	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9412      else
9413	ld_shlibs=no
9414      fi
9415      ;;
9416
9417    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9418      case `$LD -v 2>&1` in
9419        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9420	ld_shlibs=no
9421	cat <<_LT_EOF 1>&2
9422
9423*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9424*** reliably create shared libraries on SCO systems.  Therefore, libtool
9425*** is disabling shared libraries support.  We urge you to upgrade GNU
9426*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9427*** your PATH or compiler configuration so that the native linker is
9428*** used, and then restart.
9429
9430_LT_EOF
9431	;;
9432	*)
9433	  # For security reasons, it is highly recommended that you always
9434	  # use absolute paths for naming shared libraries, and exclude the
9435	  # DT_RUNPATH tag from executables and libraries.  But doing so
9436	  # requires that you compile everything twice, which is a pain.
9437	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9438	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9439	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9440	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9441	  else
9442	    ld_shlibs=no
9443	  fi
9444	;;
9445      esac
9446      ;;
9447
9448    sunos4*)
9449      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9450      wlarc=
9451      hardcode_direct=yes
9452      hardcode_shlibpath_var=no
9453      ;;
9454
9455    *)
9456      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9457	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9458	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9459      else
9460	ld_shlibs=no
9461      fi
9462      ;;
9463    esac
9464
9465    if test no = "$ld_shlibs"; then
9466      runpath_var=
9467      hardcode_libdir_flag_spec=
9468      export_dynamic_flag_spec=
9469      whole_archive_flag_spec=
9470    fi
9471  else
9472    # PORTME fill in a description of your system's linker (not GNU ld)
9473    case $host_os in
9474    aix3*)
9475      allow_undefined_flag=unsupported
9476      always_export_symbols=yes
9477      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'
9478      # Note: this linker hardcodes the directories in LIBPATH if there
9479      # are no directories specified by -L.
9480      hardcode_minus_L=yes
9481      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9482	# Neither direct hardcoding nor static linking is supported with a
9483	# broken collect2.
9484	hardcode_direct=unsupported
9485      fi
9486      ;;
9487
9488    aix[4-9]*)
9489      if test ia64 = "$host_cpu"; then
9490	# On IA64, the linker does run time linking by default, so we don't
9491	# have to do anything special.
9492	aix_use_runtimelinking=no
9493	exp_sym_flag='-Bexport'
9494	no_entry_flag=
9495      else
9496	# If we're using GNU nm, then we don't want the "-C" option.
9497	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9498	# Without the "-l" option, or with the "-B" option, AIX nm treats
9499	# weak defined symbols like other global defined symbols, whereas
9500	# GNU nm marks them as "W".
9501	# While the 'weak' keyword is ignored in the Export File, we need
9502	# it in the Import File for the 'aix-soname' feature, so we have
9503	# to replace the "-B" option with "-P" for AIX nm.
9504	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9505	  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'
9506	else
9507	  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'
9508	fi
9509	aix_use_runtimelinking=no
9510
9511	# Test if we are trying to use run time linking or normal
9512	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9513	# have runtime linking enabled, and use it for executables.
9514	# For shared libraries, we enable/disable runtime linking
9515	# depending on the kind of the shared library created -
9516	# when "with_aix_soname,aix_use_runtimelinking" is:
9517	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9518	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9519	#            lib.a           static archive
9520	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9521	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9522	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9523	#            lib.a(lib.so.V) shared, rtl:no
9524	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9525	#            lib.a           static archive
9526	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9527	  for ld_flag in $LDFLAGS; do
9528	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9529	    aix_use_runtimelinking=yes
9530	    break
9531	  fi
9532	  done
9533	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9534	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9535	    # so we don't have lib.a shared libs to link our executables.
9536	    # We have to force runtime linking in this case.
9537	    aix_use_runtimelinking=yes
9538	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9539	  fi
9540	  ;;
9541	esac
9542
9543	exp_sym_flag='-bexport'
9544	no_entry_flag='-bnoentry'
9545      fi
9546
9547      # When large executables or shared objects are built, AIX ld can
9548      # have problems creating the table of contents.  If linking a library
9549      # or program results in "error TOC overflow" add -mminimal-toc to
9550      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9551      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9552
9553      archive_cmds=''
9554      hardcode_direct=yes
9555      hardcode_direct_absolute=yes
9556      hardcode_libdir_separator=':'
9557      link_all_deplibs=yes
9558      file_list_spec='$wl-f,'
9559      case $with_aix_soname,$aix_use_runtimelinking in
9560      aix,*) ;; # traditional, no import file
9561      svr4,* | *,yes) # use import file
9562	# The Import File defines what to hardcode.
9563	hardcode_direct=no
9564	hardcode_direct_absolute=no
9565	;;
9566      esac
9567
9568      if test yes = "$GCC"; then
9569	case $host_os in aix4.[012]|aix4.[012].*)
9570	# We only want to do this on AIX 4.2 and lower, the check
9571	# below for broken collect2 doesn't work under 4.3+
9572	  collect2name=`$CC -print-prog-name=collect2`
9573	  if test -f "$collect2name" &&
9574	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9575	  then
9576	  # We have reworked collect2
9577	  :
9578	  else
9579	  # We have old collect2
9580	  hardcode_direct=unsupported
9581	  # It fails to find uninstalled libraries when the uninstalled
9582	  # path is not listed in the libpath.  Setting hardcode_minus_L
9583	  # to unsupported forces relinking
9584	  hardcode_minus_L=yes
9585	  hardcode_libdir_flag_spec='-L$libdir'
9586	  hardcode_libdir_separator=
9587	  fi
9588	  ;;
9589	esac
9590	shared_flag='-shared'
9591	if test yes = "$aix_use_runtimelinking"; then
9592	  shared_flag="$shared_flag "'$wl-G'
9593	fi
9594	# Need to ensure runtime linking is disabled for the traditional
9595	# shared library, or the linker may eventually find shared libraries
9596	# /with/ Import File - we do not want to mix them.
9597	shared_flag_aix='-shared'
9598	shared_flag_svr4='-shared $wl-G'
9599      else
9600	# not using gcc
9601	if test ia64 = "$host_cpu"; then
9602	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9603	# chokes on -Wl,-G. The following line is correct:
9604	  shared_flag='-G'
9605	else
9606	  if test yes = "$aix_use_runtimelinking"; then
9607	    shared_flag='$wl-G'
9608	  else
9609	    shared_flag='$wl-bM:SRE'
9610	  fi
9611	  shared_flag_aix='$wl-bM:SRE'
9612	  shared_flag_svr4='$wl-G'
9613	fi
9614      fi
9615
9616      export_dynamic_flag_spec='$wl-bexpall'
9617      # It seems that -bexpall does not export symbols beginning with
9618      # underscore (_), so it is better to generate a list of symbols to export.
9619      always_export_symbols=yes
9620      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9621	# Warning - without using the other runtime loading flags (-brtl),
9622	# -berok will link without error, but may produce a broken library.
9623	allow_undefined_flag='-berok'
9624        # Determine the default libpath from the value encoded in an
9625        # empty executable.
9626        if test set = "${lt_cv_aix_libpath+set}"; then
9627  aix_libpath=$lt_cv_aix_libpath
9628else
9629  if ${lt_cv_aix_libpath_+:} false; then :
9630  $as_echo_n "(cached) " >&6
9631else
9632  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9633/* end confdefs.h.  */
9634
9635int
9636main ()
9637{
9638
9639  ;
9640  return 0;
9641}
9642_ACEOF
9643if ac_fn_c_try_link "$LINENO"; then :
9644
9645  lt_aix_libpath_sed='
9646      /Import File Strings/,/^$/ {
9647	  /^0/ {
9648	      s/^0  *\([^ ]*\) *$/\1/
9649	      p
9650	  }
9651      }'
9652  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9653  # Check for a 64-bit object if we didn't find anything.
9654  if test -z "$lt_cv_aix_libpath_"; then
9655    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9656  fi
9657fi
9658rm -f core conftest.err conftest.$ac_objext \
9659    conftest$ac_exeext conftest.$ac_ext
9660  if test -z "$lt_cv_aix_libpath_"; then
9661    lt_cv_aix_libpath_=/usr/lib:/lib
9662  fi
9663
9664fi
9665
9666  aix_libpath=$lt_cv_aix_libpath_
9667fi
9668
9669        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9670        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
9671      else
9672	if test ia64 = "$host_cpu"; then
9673	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9674	  allow_undefined_flag="-z nodefs"
9675	  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"
9676	else
9677	 # Determine the default libpath from the value encoded in an
9678	 # empty executable.
9679	 if test set = "${lt_cv_aix_libpath+set}"; then
9680  aix_libpath=$lt_cv_aix_libpath
9681else
9682  if ${lt_cv_aix_libpath_+:} false; then :
9683  $as_echo_n "(cached) " >&6
9684else
9685  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9686/* end confdefs.h.  */
9687
9688int
9689main ()
9690{
9691
9692  ;
9693  return 0;
9694}
9695_ACEOF
9696if ac_fn_c_try_link "$LINENO"; then :
9697
9698  lt_aix_libpath_sed='
9699      /Import File Strings/,/^$/ {
9700	  /^0/ {
9701	      s/^0  *\([^ ]*\) *$/\1/
9702	      p
9703	  }
9704      }'
9705  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9706  # Check for a 64-bit object if we didn't find anything.
9707  if test -z "$lt_cv_aix_libpath_"; then
9708    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9709  fi
9710fi
9711rm -f core conftest.err conftest.$ac_objext \
9712    conftest$ac_exeext conftest.$ac_ext
9713  if test -z "$lt_cv_aix_libpath_"; then
9714    lt_cv_aix_libpath_=/usr/lib:/lib
9715  fi
9716
9717fi
9718
9719  aix_libpath=$lt_cv_aix_libpath_
9720fi
9721
9722	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9723	  # Warning - without using the other run time loading flags,
9724	  # -berok will link without error, but may produce a broken library.
9725	  no_undefined_flag=' $wl-bernotok'
9726	  allow_undefined_flag=' $wl-berok'
9727	  if test yes = "$with_gnu_ld"; then
9728	    # We only use this code for GNU lds that support --whole-archive.
9729	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9730	  else
9731	    # Exported symbols can be pulled into shared objects from archives
9732	    whole_archive_flag_spec='$convenience'
9733	  fi
9734	  archive_cmds_need_lc=yes
9735	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9736	  # -brtl affects multiple linker settings, -berok does not and is overridden later
9737	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9738	  if test svr4 != "$with_aix_soname"; then
9739	    # This is similar to how AIX traditionally builds its shared libraries.
9740	    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'
9741	  fi
9742	  if test aix != "$with_aix_soname"; then
9743	    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'
9744	  else
9745	    # used by -dlpreopen to get the symbols
9746	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9747	  fi
9748	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9749	fi
9750      fi
9751      ;;
9752
9753    amigaos*)
9754      case $host_cpu in
9755      powerpc)
9756            # see comment about AmigaOS4 .so support
9757            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9758            archive_expsym_cmds=''
9759        ;;
9760      m68k)
9761            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)'
9762            hardcode_libdir_flag_spec='-L$libdir'
9763            hardcode_minus_L=yes
9764        ;;
9765      esac
9766      ;;
9767
9768    bsdi[45]*)
9769      export_dynamic_flag_spec=-rdynamic
9770      ;;
9771
9772    cygwin* | mingw* | pw32* | cegcc*)
9773      # When not using gcc, we currently assume that we are using
9774      # Microsoft Visual C++.
9775      # hardcode_libdir_flag_spec is actually meaningless, as there is
9776      # no search path for DLLs.
9777      case $cc_basename in
9778      cl*)
9779	# Native MSVC
9780	hardcode_libdir_flag_spec=' '
9781	allow_undefined_flag=unsupported
9782	always_export_symbols=yes
9783	file_list_spec='@'
9784	# Tell ltmain to make .lib files, not .a files.
9785	libext=lib
9786	# Tell ltmain to make .dll files, not .so files.
9787	shrext_cmds=.dll
9788	# FIXME: Setting linknames here is a bad hack.
9789	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9790	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9791            cp "$export_symbols" "$output_objdir/$soname.def";
9792            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9793          else
9794            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9795          fi~
9796          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9797          linknames='
9798	# The linker will not automatically build a static lib if we build a DLL.
9799	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9800	enable_shared_with_static_runtimes=yes
9801	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9802	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9803	# Don't use ranlib
9804	old_postinstall_cmds='chmod 644 $oldlib'
9805	postlink_cmds='lt_outputfile="@OUTPUT@"~
9806          lt_tool_outputfile="@TOOL_OUTPUT@"~
9807          case $lt_outputfile in
9808            *.exe|*.EXE) ;;
9809            *)
9810              lt_outputfile=$lt_outputfile.exe
9811              lt_tool_outputfile=$lt_tool_outputfile.exe
9812              ;;
9813          esac~
9814          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9815            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9816            $RM "$lt_outputfile.manifest";
9817          fi'
9818	;;
9819      *)
9820	# Assume MSVC wrapper
9821	hardcode_libdir_flag_spec=' '
9822	allow_undefined_flag=unsupported
9823	# Tell ltmain to make .lib files, not .a files.
9824	libext=lib
9825	# Tell ltmain to make .dll files, not .so files.
9826	shrext_cmds=.dll
9827	# FIXME: Setting linknames here is a bad hack.
9828	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9829	# The linker will automatically build a .lib file if we build a DLL.
9830	old_archive_from_new_cmds='true'
9831	# FIXME: Should let the user specify the lib program.
9832	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9833	enable_shared_with_static_runtimes=yes
9834	;;
9835      esac
9836      ;;
9837
9838    darwin* | rhapsody*)
9839
9840
9841  archive_cmds_need_lc=no
9842  hardcode_direct=no
9843  hardcode_automatic=yes
9844  hardcode_shlibpath_var=unsupported
9845  if test yes = "$lt_cv_ld_force_load"; then
9846    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\"`'
9847
9848  else
9849    whole_archive_flag_spec=''
9850  fi
9851  link_all_deplibs=yes
9852  allow_undefined_flag=$_lt_dar_allow_undefined
9853  case $cc_basename in
9854     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9855     *) _lt_dar_can_shared=$GCC ;;
9856  esac
9857  if test yes = "$_lt_dar_can_shared"; then
9858    output_verbose_link_cmd=func_echo_all
9859    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9860    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9861    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"
9862    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"
9863
9864  else
9865  ld_shlibs=no
9866  fi
9867
9868      ;;
9869
9870    dgux*)
9871      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9872      hardcode_libdir_flag_spec='-L$libdir'
9873      hardcode_shlibpath_var=no
9874      ;;
9875
9876    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9877    # support.  Future versions do this automatically, but an explicit c++rt0.o
9878    # does not break anything, and helps significantly (at the cost of a little
9879    # extra space).
9880    freebsd2.2*)
9881      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9882      hardcode_libdir_flag_spec='-R$libdir'
9883      hardcode_direct=yes
9884      hardcode_shlibpath_var=no
9885      ;;
9886
9887    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9888    freebsd2.*)
9889      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9890      hardcode_direct=yes
9891      hardcode_minus_L=yes
9892      hardcode_shlibpath_var=no
9893      ;;
9894
9895    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9896    freebsd* | dragonfly*)
9897      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9898      hardcode_libdir_flag_spec='-R$libdir'
9899      hardcode_direct=yes
9900      hardcode_shlibpath_var=no
9901      ;;
9902
9903    hpux9*)
9904      if test yes = "$GCC"; then
9905	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'
9906      else
9907	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'
9908      fi
9909      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9910      hardcode_libdir_separator=:
9911      hardcode_direct=yes
9912
9913      # hardcode_minus_L: Not really in the search PATH,
9914      # but as the default location of the library.
9915      hardcode_minus_L=yes
9916      export_dynamic_flag_spec='$wl-E'
9917      ;;
9918
9919    hpux10*)
9920      if test yes,no = "$GCC,$with_gnu_ld"; then
9921	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9922      else
9923	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9924      fi
9925      if test no = "$with_gnu_ld"; then
9926	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9927	hardcode_libdir_separator=:
9928	hardcode_direct=yes
9929	hardcode_direct_absolute=yes
9930	export_dynamic_flag_spec='$wl-E'
9931	# hardcode_minus_L: Not really in the search PATH,
9932	# but as the default location of the library.
9933	hardcode_minus_L=yes
9934      fi
9935      ;;
9936
9937    hpux11*)
9938      if test yes,no = "$GCC,$with_gnu_ld"; then
9939	case $host_cpu in
9940	hppa*64*)
9941	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9942	  ;;
9943	ia64*)
9944	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9945	  ;;
9946	*)
9947	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9948	  ;;
9949	esac
9950      else
9951	case $host_cpu in
9952	hppa*64*)
9953	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9954	  ;;
9955	ia64*)
9956	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9957	  ;;
9958	*)
9959
9960	  # Older versions of the 11.00 compiler do not understand -b yet
9961	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9962	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9963$as_echo_n "checking if $CC understands -b... " >&6; }
9964if ${lt_cv_prog_compiler__b+:} false; then :
9965  $as_echo_n "(cached) " >&6
9966else
9967  lt_cv_prog_compiler__b=no
9968   save_LDFLAGS=$LDFLAGS
9969   LDFLAGS="$LDFLAGS -b"
9970   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9971   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9972     # The linker can only warn and ignore the option if not recognized
9973     # So say no if there are warnings
9974     if test -s conftest.err; then
9975       # Append any errors to the config.log.
9976       cat conftest.err 1>&5
9977       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9978       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9979       if diff conftest.exp conftest.er2 >/dev/null; then
9980         lt_cv_prog_compiler__b=yes
9981       fi
9982     else
9983       lt_cv_prog_compiler__b=yes
9984     fi
9985   fi
9986   $RM -r conftest*
9987   LDFLAGS=$save_LDFLAGS
9988
9989fi
9990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9991$as_echo "$lt_cv_prog_compiler__b" >&6; }
9992
9993if test yes = "$lt_cv_prog_compiler__b"; then
9994    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9995else
9996    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9997fi
9998
9999	  ;;
10000	esac
10001      fi
10002      if test no = "$with_gnu_ld"; then
10003	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10004	hardcode_libdir_separator=:
10005
10006	case $host_cpu in
10007	hppa*64*|ia64*)
10008	  hardcode_direct=no
10009	  hardcode_shlibpath_var=no
10010	  ;;
10011	*)
10012	  hardcode_direct=yes
10013	  hardcode_direct_absolute=yes
10014	  export_dynamic_flag_spec='$wl-E'
10015
10016	  # hardcode_minus_L: Not really in the search PATH,
10017	  # but as the default location of the library.
10018	  hardcode_minus_L=yes
10019	  ;;
10020	esac
10021      fi
10022      ;;
10023
10024    irix5* | irix6* | nonstopux*)
10025      if test yes = "$GCC"; then
10026	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'
10027	# Try to use the -exported_symbol ld option, if it does not
10028	# work, assume that -exports_file does not work either and
10029	# implicitly export all symbols.
10030	# This should be the same for all languages, so no per-tag cache variable.
10031	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10032$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10033if ${lt_cv_irix_exported_symbol+:} false; then :
10034  $as_echo_n "(cached) " >&6
10035else
10036  save_LDFLAGS=$LDFLAGS
10037	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10038	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10039/* end confdefs.h.  */
10040int foo (void) { return 0; }
10041_ACEOF
10042if ac_fn_c_try_link "$LINENO"; then :
10043  lt_cv_irix_exported_symbol=yes
10044else
10045  lt_cv_irix_exported_symbol=no
10046fi
10047rm -f core conftest.err conftest.$ac_objext \
10048    conftest$ac_exeext conftest.$ac_ext
10049           LDFLAGS=$save_LDFLAGS
10050fi
10051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10052$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10053	if test yes = "$lt_cv_irix_exported_symbol"; then
10054          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'
10055	fi
10056      else
10057	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'
10058	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'
10059      fi
10060      archive_cmds_need_lc='no'
10061      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10062      hardcode_libdir_separator=:
10063      inherit_rpath=yes
10064      link_all_deplibs=yes
10065      ;;
10066
10067    linux*)
10068      case $cc_basename in
10069      tcc*)
10070	# Fabrice Bellard et al's Tiny C Compiler
10071	ld_shlibs=yes
10072	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10073	;;
10074      esac
10075      ;;
10076
10077    netbsd*)
10078      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10079	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10080      else
10081	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10082      fi
10083      hardcode_libdir_flag_spec='-R$libdir'
10084      hardcode_direct=yes
10085      hardcode_shlibpath_var=no
10086      ;;
10087
10088    newsos6)
10089      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10090      hardcode_direct=yes
10091      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10092      hardcode_libdir_separator=:
10093      hardcode_shlibpath_var=no
10094      ;;
10095
10096    *nto* | *qnx*)
10097      ;;
10098
10099    openbsd* | bitrig*)
10100      if test -f /usr/libexec/ld.so; then
10101	hardcode_direct=yes
10102	hardcode_shlibpath_var=no
10103	hardcode_direct_absolute=yes
10104	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10105	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10106	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10107	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10108	  export_dynamic_flag_spec='$wl-E'
10109	else
10110	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10111	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10112	fi
10113      else
10114	ld_shlibs=no
10115      fi
10116      ;;
10117
10118    os2*)
10119      hardcode_libdir_flag_spec='-L$libdir'
10120      hardcode_minus_L=yes
10121      allow_undefined_flag=unsupported
10122      shrext_cmds=.dll
10123      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10124	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10125	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10126	$ECHO EXPORTS >> $output_objdir/$libname.def~
10127	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10128	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10129	emximp -o $lib $output_objdir/$libname.def'
10130      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10131	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10132	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10133	$ECHO EXPORTS >> $output_objdir/$libname.def~
10134	prefix_cmds="$SED"~
10135	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10136	  prefix_cmds="$prefix_cmds -e 1d";
10137	fi~
10138	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10139	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10140	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10141	emximp -o $lib $output_objdir/$libname.def'
10142      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10143      enable_shared_with_static_runtimes=yes
10144      ;;
10145
10146    osf3*)
10147      if test yes = "$GCC"; then
10148	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10149	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'
10150      else
10151	allow_undefined_flag=' -expect_unresolved \*'
10152	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'
10153      fi
10154      archive_cmds_need_lc='no'
10155      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10156      hardcode_libdir_separator=:
10157      ;;
10158
10159    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10160      if test yes = "$GCC"; then
10161	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10162	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'
10163	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10164      else
10165	allow_undefined_flag=' -expect_unresolved \*'
10166	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'
10167	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~
10168          $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'
10169
10170	# Both c and cxx compiler support -rpath directly
10171	hardcode_libdir_flag_spec='-rpath $libdir'
10172      fi
10173      archive_cmds_need_lc='no'
10174      hardcode_libdir_separator=:
10175      ;;
10176
10177    solaris*)
10178      no_undefined_flag=' -z defs'
10179      if test yes = "$GCC"; then
10180	wlarc='$wl'
10181	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10182	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10183          $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'
10184      else
10185	case `$CC -V 2>&1` in
10186	*"Compilers 5.0"*)
10187	  wlarc=''
10188	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10189	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10190            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10191	  ;;
10192	*)
10193	  wlarc='$wl'
10194	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10195	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10196            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10197	  ;;
10198	esac
10199      fi
10200      hardcode_libdir_flag_spec='-R$libdir'
10201      hardcode_shlibpath_var=no
10202      case $host_os in
10203      solaris2.[0-5] | solaris2.[0-5].*) ;;
10204      *)
10205	# The compiler driver will combine and reorder linker options,
10206	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10207	# but is careful enough not to reorder.
10208	# Supported since Solaris 2.6 (maybe 2.5.1?)
10209	if test yes = "$GCC"; then
10210	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10211	else
10212	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10213	fi
10214	;;
10215      esac
10216      link_all_deplibs=yes
10217      ;;
10218
10219    sunos4*)
10220      if test sequent = "$host_vendor"; then
10221	# Use $CC to link under sequent, because it throws in some extra .o
10222	# files that make .init and .fini sections work.
10223	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10224      else
10225	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10226      fi
10227      hardcode_libdir_flag_spec='-L$libdir'
10228      hardcode_direct=yes
10229      hardcode_minus_L=yes
10230      hardcode_shlibpath_var=no
10231      ;;
10232
10233    sysv4)
10234      case $host_vendor in
10235	sni)
10236	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10237	  hardcode_direct=yes # is this really true???
10238	;;
10239	siemens)
10240	  ## LD is ld it makes a PLAMLIB
10241	  ## CC just makes a GrossModule.
10242	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10243	  reload_cmds='$CC -r -o $output$reload_objs'
10244	  hardcode_direct=no
10245        ;;
10246	motorola)
10247	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10248	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10249	;;
10250      esac
10251      runpath_var='LD_RUN_PATH'
10252      hardcode_shlibpath_var=no
10253      ;;
10254
10255    sysv4.3*)
10256      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10257      hardcode_shlibpath_var=no
10258      export_dynamic_flag_spec='-Bexport'
10259      ;;
10260
10261    sysv4*MP*)
10262      if test -d /usr/nec; then
10263	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10264	hardcode_shlibpath_var=no
10265	runpath_var=LD_RUN_PATH
10266	hardcode_runpath_var=yes
10267	ld_shlibs=yes
10268      fi
10269      ;;
10270
10271    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10272      no_undefined_flag='$wl-z,text'
10273      archive_cmds_need_lc=no
10274      hardcode_shlibpath_var=no
10275      runpath_var='LD_RUN_PATH'
10276
10277      if test yes = "$GCC"; then
10278	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10279	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10280      else
10281	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10282	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10283      fi
10284      ;;
10285
10286    sysv5* | sco3.2v5* | sco5v6*)
10287      # Note: We CANNOT use -z defs as we might desire, because we do not
10288      # link with -lc, and that would cause any symbols used from libc to
10289      # always be unresolved, which means just about no library would
10290      # ever link correctly.  If we're not using GNU ld we use -z text
10291      # though, which does catch some bad symbols but isn't as heavy-handed
10292      # as -z defs.
10293      no_undefined_flag='$wl-z,text'
10294      allow_undefined_flag='$wl-z,nodefs'
10295      archive_cmds_need_lc=no
10296      hardcode_shlibpath_var=no
10297      hardcode_libdir_flag_spec='$wl-R,$libdir'
10298      hardcode_libdir_separator=':'
10299      link_all_deplibs=yes
10300      export_dynamic_flag_spec='$wl-Bexport'
10301      runpath_var='LD_RUN_PATH'
10302
10303      if test yes = "$GCC"; then
10304	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10305	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10306      else
10307	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10308	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10309      fi
10310      ;;
10311
10312    uts4*)
10313      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10314      hardcode_libdir_flag_spec='-L$libdir'
10315      hardcode_shlibpath_var=no
10316      ;;
10317
10318    *)
10319      ld_shlibs=no
10320      ;;
10321    esac
10322
10323    if test sni = "$host_vendor"; then
10324      case $host in
10325      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10326	export_dynamic_flag_spec='$wl-Blargedynsym'
10327	;;
10328      esac
10329    fi
10330  fi
10331
10332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10333$as_echo "$ld_shlibs" >&6; }
10334test no = "$ld_shlibs" && can_build_shared=no
10335
10336with_gnu_ld=$with_gnu_ld
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352#
10353# Do we need to explicitly link libc?
10354#
10355case "x$archive_cmds_need_lc" in
10356x|xyes)
10357  # Assume -lc should be added
10358  archive_cmds_need_lc=yes
10359
10360  if test yes,yes = "$GCC,$enable_shared"; then
10361    case $archive_cmds in
10362    *'~'*)
10363      # FIXME: we may have to deal with multi-command sequences.
10364      ;;
10365    '$CC '*)
10366      # Test whether the compiler implicitly links with -lc since on some
10367      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10368      # to ld, don't add -lc before -lgcc.
10369      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10370$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10371if ${lt_cv_archive_cmds_need_lc+:} false; then :
10372  $as_echo_n "(cached) " >&6
10373else
10374  $RM conftest*
10375	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10376
10377	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10378  (eval $ac_compile) 2>&5
10379  ac_status=$?
10380  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10381  test $ac_status = 0; } 2>conftest.err; then
10382	  soname=conftest
10383	  lib=conftest
10384	  libobjs=conftest.$ac_objext
10385	  deplibs=
10386	  wl=$lt_prog_compiler_wl
10387	  pic_flag=$lt_prog_compiler_pic
10388	  compiler_flags=-v
10389	  linker_flags=-v
10390	  verstring=
10391	  output_objdir=.
10392	  libname=conftest
10393	  lt_save_allow_undefined_flag=$allow_undefined_flag
10394	  allow_undefined_flag=
10395	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10396  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10397  ac_status=$?
10398  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10399  test $ac_status = 0; }
10400	  then
10401	    lt_cv_archive_cmds_need_lc=no
10402	  else
10403	    lt_cv_archive_cmds_need_lc=yes
10404	  fi
10405	  allow_undefined_flag=$lt_save_allow_undefined_flag
10406	else
10407	  cat conftest.err 1>&5
10408	fi
10409	$RM conftest*
10410
10411fi
10412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10413$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10414      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10415      ;;
10416    esac
10417  fi
10418  ;;
10419esac
10420
10421
10422
10423
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  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10573$as_echo_n "checking dynamic linker characteristics... " >&6; }
10574
10575if test yes = "$GCC"; then
10576  case $host_os in
10577    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10578    *) lt_awk_arg='/^libraries:/' ;;
10579  esac
10580  case $host_os in
10581    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10582    *) lt_sed_strip_eq='s|=/|/|g' ;;
10583  esac
10584  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10585  case $lt_search_path_spec in
10586  *\;*)
10587    # if the path contains ";" then we assume it to be the separator
10588    # otherwise default to the standard path separator (i.e. ":") - it is
10589    # assumed that no part of a normal pathname contains ";" but that should
10590    # okay in the real world where ";" in dirpaths is itself problematic.
10591    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10592    ;;
10593  *)
10594    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10595    ;;
10596  esac
10597  # Ok, now we have the path, separated by spaces, we can step through it
10598  # and add multilib dir if necessary...
10599  lt_tmp_lt_search_path_spec=
10600  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10601  # ...but if some path component already ends with the multilib dir we assume
10602  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10603  case "$lt_multi_os_dir; $lt_search_path_spec " in
10604  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10605    lt_multi_os_dir=
10606    ;;
10607  esac
10608  for lt_sys_path in $lt_search_path_spec; do
10609    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10610      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10611    elif test -n "$lt_multi_os_dir"; then
10612      test -d "$lt_sys_path" && \
10613	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10614    fi
10615  done
10616  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10617BEGIN {RS = " "; FS = "/|\n";} {
10618  lt_foo = "";
10619  lt_count = 0;
10620  for (lt_i = NF; lt_i > 0; lt_i--) {
10621    if ($lt_i != "" && $lt_i != ".") {
10622      if ($lt_i == "..") {
10623        lt_count++;
10624      } else {
10625        if (lt_count == 0) {
10626          lt_foo = "/" $lt_i lt_foo;
10627        } else {
10628          lt_count--;
10629        }
10630      }
10631    }
10632  }
10633  if (lt_foo != "") { lt_freq[lt_foo]++; }
10634  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10635}'`
10636  # AWK program above erroneously prepends '/' to C:/dos/paths
10637  # for these hosts.
10638  case $host_os in
10639    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10640      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10641  esac
10642  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10643else
10644  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10645fi
10646library_names_spec=
10647libname_spec='lib$name'
10648soname_spec=
10649shrext_cmds=.so
10650postinstall_cmds=
10651postuninstall_cmds=
10652finish_cmds=
10653finish_eval=
10654shlibpath_var=
10655shlibpath_overrides_runpath=unknown
10656version_type=none
10657dynamic_linker="$host_os ld.so"
10658sys_lib_dlsearch_path_spec="/lib /usr/lib"
10659need_lib_prefix=unknown
10660hardcode_into_libs=no
10661
10662# when you set need_version to no, make sure it does not cause -set_version
10663# flags to be left without arguments
10664need_version=unknown
10665
10666
10667
10668case $host_os in
10669aix3*)
10670  version_type=linux # correct to gnu/linux during the next big refactor
10671  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10672  shlibpath_var=LIBPATH
10673
10674  # AIX 3 has no versioning support, so we append a major version to the name.
10675  soname_spec='$libname$release$shared_ext$major'
10676  ;;
10677
10678aix[4-9]*)
10679  version_type=linux # correct to gnu/linux during the next big refactor
10680  need_lib_prefix=no
10681  need_version=no
10682  hardcode_into_libs=yes
10683  if test ia64 = "$host_cpu"; then
10684    # AIX 5 supports IA64
10685    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10686    shlibpath_var=LD_LIBRARY_PATH
10687  else
10688    # With GCC up to 2.95.x, collect2 would create an import file
10689    # for dependence libraries.  The import file would start with
10690    # the line '#! .'.  This would cause the generated library to
10691    # depend on '.', always an invalid library.  This was fixed in
10692    # development snapshots of GCC prior to 3.0.
10693    case $host_os in
10694      aix4 | aix4.[01] | aix4.[01].*)
10695      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10696	   echo ' yes '
10697	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10698	:
10699      else
10700	can_build_shared=no
10701      fi
10702      ;;
10703    esac
10704    # Using Import Files as archive members, it is possible to support
10705    # filename-based versioning of shared library archives on AIX. While
10706    # this would work for both with and without runtime linking, it will
10707    # prevent static linking of such archives. So we do filename-based
10708    # shared library versioning with .so extension only, which is used
10709    # when both runtime linking and shared linking is enabled.
10710    # Unfortunately, runtime linking may impact performance, so we do
10711    # not want this to be the default eventually. Also, we use the
10712    # versioned .so libs for executables only if there is the -brtl
10713    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10714    # To allow for filename-based versioning support, we need to create
10715    # libNAME.so.V as an archive file, containing:
10716    # *) an Import File, referring to the versioned filename of the
10717    #    archive as well as the shared archive member, telling the
10718    #    bitwidth (32 or 64) of that shared object, and providing the
10719    #    list of exported symbols of that shared object, eventually
10720    #    decorated with the 'weak' keyword
10721    # *) the shared object with the F_LOADONLY flag set, to really avoid
10722    #    it being seen by the linker.
10723    # At run time we better use the real file rather than another symlink,
10724    # but for link time we create the symlink libNAME.so -> libNAME.so.V
10725
10726    case $with_aix_soname,$aix_use_runtimelinking in
10727    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10728    # soname into executable. Probably we can add versioning support to
10729    # collect2, so additional links can be useful in future.
10730    aix,yes) # traditional libtool
10731      dynamic_linker='AIX unversionable lib.so'
10732      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10733      # instead of lib<name>.a to let people know that these are not
10734      # typical AIX shared libraries.
10735      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10736      ;;
10737    aix,no) # traditional AIX only
10738      dynamic_linker='AIX lib.a(lib.so.V)'
10739      # We preserve .a as extension for shared libraries through AIX4.2
10740      # and later when we are not doing run time linking.
10741      library_names_spec='$libname$release.a $libname.a'
10742      soname_spec='$libname$release$shared_ext$major'
10743      ;;
10744    svr4,*) # full svr4 only
10745      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10746      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10747      # We do not specify a path in Import Files, so LIBPATH fires.
10748      shlibpath_overrides_runpath=yes
10749      ;;
10750    *,yes) # both, prefer svr4
10751      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10752      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10753      # unpreferred sharedlib libNAME.a needs extra handling
10754      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"'
10755      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"'
10756      # We do not specify a path in Import Files, so LIBPATH fires.
10757      shlibpath_overrides_runpath=yes
10758      ;;
10759    *,no) # both, prefer aix
10760      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10761      library_names_spec='$libname$release.a $libname.a'
10762      soname_spec='$libname$release$shared_ext$major'
10763      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10764      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)'
10765      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"'
10766      ;;
10767    esac
10768    shlibpath_var=LIBPATH
10769  fi
10770  ;;
10771
10772amigaos*)
10773  case $host_cpu in
10774  powerpc)
10775    # Since July 2007 AmigaOS4 officially supports .so libraries.
10776    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10777    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10778    ;;
10779  m68k)
10780    library_names_spec='$libname.ixlibrary $libname.a'
10781    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10782    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'
10783    ;;
10784  esac
10785  ;;
10786
10787beos*)
10788  library_names_spec='$libname$shared_ext'
10789  dynamic_linker="$host_os ld.so"
10790  shlibpath_var=LIBRARY_PATH
10791  ;;
10792
10793bsdi[45]*)
10794  version_type=linux # correct to gnu/linux during the next big refactor
10795  need_version=no
10796  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10797  soname_spec='$libname$release$shared_ext$major'
10798  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10799  shlibpath_var=LD_LIBRARY_PATH
10800  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10801  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10802  # the default ld.so.conf also contains /usr/contrib/lib and
10803  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10804  # libtool to hard-code these into programs
10805  ;;
10806
10807cygwin* | mingw* | pw32* | cegcc*)
10808  version_type=windows
10809  shrext_cmds=.dll
10810  need_version=no
10811  need_lib_prefix=no
10812
10813  case $GCC,$cc_basename in
10814  yes,*)
10815    # gcc
10816    library_names_spec='$libname.dll.a'
10817    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10818    postinstall_cmds='base_file=`basename \$file`~
10819      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10820      dldir=$destdir/`dirname \$dlpath`~
10821      test -d \$dldir || mkdir -p \$dldir~
10822      $install_prog $dir/$dlname \$dldir/$dlname~
10823      chmod a+x \$dldir/$dlname~
10824      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10825        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10826      fi'
10827    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10828      dlpath=$dir/\$dldll~
10829       $RM \$dlpath'
10830    shlibpath_overrides_runpath=yes
10831
10832    case $host_os in
10833    cygwin*)
10834      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10835      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10836
10837      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10838      ;;
10839    mingw* | cegcc*)
10840      # MinGW DLLs use traditional 'lib' prefix
10841      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10842      ;;
10843    pw32*)
10844      # pw32 DLLs use 'pw' prefix rather than 'lib'
10845      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10846      ;;
10847    esac
10848    dynamic_linker='Win32 ld.exe'
10849    ;;
10850
10851  *,cl*)
10852    # Native MSVC
10853    libname_spec='$name'
10854    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10855    library_names_spec='$libname.dll.lib'
10856
10857    case $build_os in
10858    mingw*)
10859      sys_lib_search_path_spec=
10860      lt_save_ifs=$IFS
10861      IFS=';'
10862      for lt_path in $LIB
10863      do
10864        IFS=$lt_save_ifs
10865        # Let DOS variable expansion print the short 8.3 style file name.
10866        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10867        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10868      done
10869      IFS=$lt_save_ifs
10870      # Convert to MSYS style.
10871      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10872      ;;
10873    cygwin*)
10874      # Convert to unix form, then to dos form, then back to unix form
10875      # but this time dos style (no spaces!) so that the unix form looks
10876      # like /cygdrive/c/PROGRA~1:/cygdr...
10877      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10878      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10879      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10880      ;;
10881    *)
10882      sys_lib_search_path_spec=$LIB
10883      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10884        # It is most probably a Windows format PATH.
10885        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10886      else
10887        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10888      fi
10889      # FIXME: find the short name or the path components, as spaces are
10890      # common. (e.g. "Program Files" -> "PROGRA~1")
10891      ;;
10892    esac
10893
10894    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10895    postinstall_cmds='base_file=`basename \$file`~
10896      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10897      dldir=$destdir/`dirname \$dlpath`~
10898      test -d \$dldir || mkdir -p \$dldir~
10899      $install_prog $dir/$dlname \$dldir/$dlname'
10900    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10901      dlpath=$dir/\$dldll~
10902       $RM \$dlpath'
10903    shlibpath_overrides_runpath=yes
10904    dynamic_linker='Win32 link.exe'
10905    ;;
10906
10907  *)
10908    # Assume MSVC wrapper
10909    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10910    dynamic_linker='Win32 ld.exe'
10911    ;;
10912  esac
10913  # FIXME: first we should search . and the directory the executable is in
10914  shlibpath_var=PATH
10915  ;;
10916
10917darwin* | rhapsody*)
10918  dynamic_linker="$host_os dyld"
10919  version_type=darwin
10920  need_lib_prefix=no
10921  need_version=no
10922  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10923  soname_spec='$libname$release$major$shared_ext'
10924  shlibpath_overrides_runpath=yes
10925  shlibpath_var=DYLD_LIBRARY_PATH
10926  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10927
10928  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10929  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10930  ;;
10931
10932dgux*)
10933  version_type=linux # correct to gnu/linux during the next big refactor
10934  need_lib_prefix=no
10935  need_version=no
10936  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10937  soname_spec='$libname$release$shared_ext$major'
10938  shlibpath_var=LD_LIBRARY_PATH
10939  ;;
10940
10941freebsd* | dragonfly*)
10942  # DragonFly does not have aout.  When/if they implement a new
10943  # versioning mechanism, adjust this.
10944  if test -x /usr/bin/objformat; then
10945    objformat=`/usr/bin/objformat`
10946  else
10947    case $host_os in
10948    freebsd[23].*) objformat=aout ;;
10949    *) objformat=elf ;;
10950    esac
10951  fi
10952  version_type=freebsd-$objformat
10953  case $version_type in
10954    freebsd-elf*)
10955      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10956      soname_spec='$libname$release$shared_ext$major'
10957      need_version=no
10958      need_lib_prefix=no
10959      ;;
10960    freebsd-*)
10961      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10962      need_version=yes
10963      ;;
10964  esac
10965  shlibpath_var=LD_LIBRARY_PATH
10966  case $host_os in
10967  freebsd2.*)
10968    shlibpath_overrides_runpath=yes
10969    ;;
10970  freebsd3.[01]* | freebsdelf3.[01]*)
10971    shlibpath_overrides_runpath=yes
10972    hardcode_into_libs=yes
10973    ;;
10974  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10975  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10976    shlibpath_overrides_runpath=no
10977    hardcode_into_libs=yes
10978    ;;
10979  *) # from 4.6 on, and DragonFly
10980    shlibpath_overrides_runpath=yes
10981    hardcode_into_libs=yes
10982    ;;
10983  esac
10984  ;;
10985
10986haiku*)
10987  version_type=linux # correct to gnu/linux during the next big refactor
10988  need_lib_prefix=no
10989  need_version=no
10990  dynamic_linker="$host_os runtime_loader"
10991  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10992  soname_spec='$libname$release$shared_ext$major'
10993  shlibpath_var=LIBRARY_PATH
10994  shlibpath_overrides_runpath=no
10995  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10996  hardcode_into_libs=yes
10997  ;;
10998
10999hpux9* | hpux10* | hpux11*)
11000  # Give a soname corresponding to the major version so that dld.sl refuses to
11001  # link against other versions.
11002  version_type=sunos
11003  need_lib_prefix=no
11004  need_version=no
11005  case $host_cpu in
11006  ia64*)
11007    shrext_cmds='.so'
11008    hardcode_into_libs=yes
11009    dynamic_linker="$host_os dld.so"
11010    shlibpath_var=LD_LIBRARY_PATH
11011    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11012    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11013    soname_spec='$libname$release$shared_ext$major'
11014    if test 32 = "$HPUX_IA64_MODE"; then
11015      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11016      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11017    else
11018      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11019      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11020    fi
11021    ;;
11022  hppa*64*)
11023    shrext_cmds='.sl'
11024    hardcode_into_libs=yes
11025    dynamic_linker="$host_os dld.sl"
11026    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11027    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11028    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11029    soname_spec='$libname$release$shared_ext$major'
11030    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11031    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11032    ;;
11033  *)
11034    shrext_cmds='.sl'
11035    dynamic_linker="$host_os dld.sl"
11036    shlibpath_var=SHLIB_PATH
11037    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11038    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11039    soname_spec='$libname$release$shared_ext$major'
11040    ;;
11041  esac
11042  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11043  postinstall_cmds='chmod 555 $lib'
11044  # or fails outright, so override atomically:
11045  install_override_mode=555
11046  ;;
11047
11048interix[3-9]*)
11049  version_type=linux # correct to gnu/linux during the next big refactor
11050  need_lib_prefix=no
11051  need_version=no
11052  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11053  soname_spec='$libname$release$shared_ext$major'
11054  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11055  shlibpath_var=LD_LIBRARY_PATH
11056  shlibpath_overrides_runpath=no
11057  hardcode_into_libs=yes
11058  ;;
11059
11060irix5* | irix6* | nonstopux*)
11061  case $host_os in
11062    nonstopux*) version_type=nonstopux ;;
11063    *)
11064	if test yes = "$lt_cv_prog_gnu_ld"; then
11065		version_type=linux # correct to gnu/linux during the next big refactor
11066	else
11067		version_type=irix
11068	fi ;;
11069  esac
11070  need_lib_prefix=no
11071  need_version=no
11072  soname_spec='$libname$release$shared_ext$major'
11073  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11074  case $host_os in
11075  irix5* | nonstopux*)
11076    libsuff= shlibsuff=
11077    ;;
11078  *)
11079    case $LD in # libtool.m4 will add one of these switches to LD
11080    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11081      libsuff= shlibsuff= libmagic=32-bit;;
11082    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11083      libsuff=32 shlibsuff=N32 libmagic=N32;;
11084    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11085      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11086    *) libsuff= shlibsuff= libmagic=never-match;;
11087    esac
11088    ;;
11089  esac
11090  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11091  shlibpath_overrides_runpath=no
11092  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11093  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11094  hardcode_into_libs=yes
11095  ;;
11096
11097# No shared lib support for Linux oldld, aout, or coff.
11098linux*oldld* | linux*aout* | linux*coff*)
11099  dynamic_linker=no
11100  ;;
11101
11102linux*android*)
11103  version_type=none # Android doesn't support versioned libraries.
11104  need_lib_prefix=no
11105  need_version=no
11106  library_names_spec='$libname$release$shared_ext'
11107  soname_spec='$libname$release$shared_ext'
11108  finish_cmds=
11109  shlibpath_var=LD_LIBRARY_PATH
11110  shlibpath_overrides_runpath=yes
11111
11112  # This implies no fast_install, which is unacceptable.
11113  # Some rework will be needed to allow for fast_install
11114  # before this can be enabled.
11115  hardcode_into_libs=yes
11116
11117  dynamic_linker='Android linker'
11118  # Don't embed -rpath directories since the linker doesn't support them.
11119  hardcode_libdir_flag_spec='-L$libdir'
11120  ;;
11121
11122# This must be glibc/ELF.
11123linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11124  version_type=linux # correct to gnu/linux during the next big refactor
11125  need_lib_prefix=no
11126  need_version=no
11127  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11128  soname_spec='$libname$release$shared_ext$major'
11129  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11130  shlibpath_var=LD_LIBRARY_PATH
11131  shlibpath_overrides_runpath=no
11132
11133  # Some binutils ld are patched to set DT_RUNPATH
11134  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11135  $as_echo_n "(cached) " >&6
11136else
11137  lt_cv_shlibpath_overrides_runpath=no
11138    save_LDFLAGS=$LDFLAGS
11139    save_libdir=$libdir
11140    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11141	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11142    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11143/* end confdefs.h.  */
11144
11145int
11146main ()
11147{
11148
11149  ;
11150  return 0;
11151}
11152_ACEOF
11153if ac_fn_c_try_link "$LINENO"; then :
11154  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11155  lt_cv_shlibpath_overrides_runpath=yes
11156fi
11157fi
11158rm -f core conftest.err conftest.$ac_objext \
11159    conftest$ac_exeext conftest.$ac_ext
11160    LDFLAGS=$save_LDFLAGS
11161    libdir=$save_libdir
11162
11163fi
11164
11165  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11166
11167  # This implies no fast_install, which is unacceptable.
11168  # Some rework will be needed to allow for fast_install
11169  # before this can be enabled.
11170  hardcode_into_libs=yes
11171
11172  # Add ABI-specific directories to the system library path.
11173  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11174
11175  # Ideally, we could use ldconfig to report *all* directores which are
11176  # searched for libraries, however this is still not possible.  Aside from not
11177  # being certain /sbin/ldconfig is available, command
11178  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11179  # even though it is searched at run-time.  Try to do the best guess by
11180  # appending ld.so.conf contents (and includes) to the search path.
11181  if test -f /etc/ld.so.conf; then
11182    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' ' '`
11183    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11184  fi
11185
11186  # We used to test for /lib/ld.so.1 and disable shared libraries on
11187  # powerpc, because MkLinux only supported shared libraries with the
11188  # GNU dynamic linker.  Since this was broken with cross compilers,
11189  # most powerpc-linux boxes support dynamic linking these days and
11190  # people can always --disable-shared, the test was removed, and we
11191  # assume the GNU/Linux dynamic linker is in use.
11192  dynamic_linker='GNU/Linux ld.so'
11193  ;;
11194
11195netbsd*)
11196  version_type=sunos
11197  need_lib_prefix=no
11198  need_version=no
11199  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11200    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11201    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11202    dynamic_linker='NetBSD (a.out) ld.so'
11203  else
11204    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11205    soname_spec='$libname$release$shared_ext$major'
11206    dynamic_linker='NetBSD ld.elf_so'
11207  fi
11208  shlibpath_var=LD_LIBRARY_PATH
11209  shlibpath_overrides_runpath=yes
11210  hardcode_into_libs=yes
11211  ;;
11212
11213newsos6)
11214  version_type=linux # correct to gnu/linux during the next big refactor
11215  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11216  shlibpath_var=LD_LIBRARY_PATH
11217  shlibpath_overrides_runpath=yes
11218  ;;
11219
11220*nto* | *qnx*)
11221  version_type=qnx
11222  need_lib_prefix=no
11223  need_version=no
11224  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11225  soname_spec='$libname$release$shared_ext$major'
11226  shlibpath_var=LD_LIBRARY_PATH
11227  shlibpath_overrides_runpath=no
11228  hardcode_into_libs=yes
11229  dynamic_linker='ldqnx.so'
11230  ;;
11231
11232openbsd* | bitrig*)
11233  version_type=sunos
11234  sys_lib_dlsearch_path_spec=/usr/lib
11235  need_lib_prefix=no
11236  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11237    need_version=no
11238  else
11239    need_version=yes
11240  fi
11241  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11242  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11243  shlibpath_var=LD_LIBRARY_PATH
11244  shlibpath_overrides_runpath=yes
11245  ;;
11246
11247os2*)
11248  libname_spec='$name'
11249  version_type=windows
11250  shrext_cmds=.dll
11251  need_version=no
11252  need_lib_prefix=no
11253  # OS/2 can only load a DLL with a base name of 8 characters or less.
11254  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11255    v=$($ECHO $release$versuffix | tr -d .-);
11256    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11257    $ECHO $n$v`$shared_ext'
11258  library_names_spec='${libname}_dll.$libext'
11259  dynamic_linker='OS/2 ld.exe'
11260  shlibpath_var=BEGINLIBPATH
11261  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11262  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11263  postinstall_cmds='base_file=`basename \$file`~
11264    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11265    dldir=$destdir/`dirname \$dlpath`~
11266    test -d \$dldir || mkdir -p \$dldir~
11267    $install_prog $dir/$dlname \$dldir/$dlname~
11268    chmod a+x \$dldir/$dlname~
11269    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11270      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11271    fi'
11272  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11273    dlpath=$dir/\$dldll~
11274    $RM \$dlpath'
11275  ;;
11276
11277osf3* | osf4* | osf5*)
11278  version_type=osf
11279  need_lib_prefix=no
11280  need_version=no
11281  soname_spec='$libname$release$shared_ext$major'
11282  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11283  shlibpath_var=LD_LIBRARY_PATH
11284  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11285  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11286  ;;
11287
11288rdos*)
11289  dynamic_linker=no
11290  ;;
11291
11292solaris*)
11293  version_type=linux # correct to gnu/linux during the next big refactor
11294  need_lib_prefix=no
11295  need_version=no
11296  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11297  soname_spec='$libname$release$shared_ext$major'
11298  shlibpath_var=LD_LIBRARY_PATH
11299  shlibpath_overrides_runpath=yes
11300  hardcode_into_libs=yes
11301  # ldd complains unless libraries are executable
11302  postinstall_cmds='chmod +x $lib'
11303  ;;
11304
11305sunos4*)
11306  version_type=sunos
11307  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11308  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11309  shlibpath_var=LD_LIBRARY_PATH
11310  shlibpath_overrides_runpath=yes
11311  if test yes = "$with_gnu_ld"; then
11312    need_lib_prefix=no
11313  fi
11314  need_version=yes
11315  ;;
11316
11317sysv4 | sysv4.3*)
11318  version_type=linux # correct to gnu/linux during the next big refactor
11319  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11320  soname_spec='$libname$release$shared_ext$major'
11321  shlibpath_var=LD_LIBRARY_PATH
11322  case $host_vendor in
11323    sni)
11324      shlibpath_overrides_runpath=no
11325      need_lib_prefix=no
11326      runpath_var=LD_RUN_PATH
11327      ;;
11328    siemens)
11329      need_lib_prefix=no
11330      ;;
11331    motorola)
11332      need_lib_prefix=no
11333      need_version=no
11334      shlibpath_overrides_runpath=no
11335      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11336      ;;
11337  esac
11338  ;;
11339
11340sysv4*MP*)
11341  if test -d /usr/nec; then
11342    version_type=linux # correct to gnu/linux during the next big refactor
11343    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11344    soname_spec='$libname$shared_ext.$major'
11345    shlibpath_var=LD_LIBRARY_PATH
11346  fi
11347  ;;
11348
11349sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11350  version_type=sco
11351  need_lib_prefix=no
11352  need_version=no
11353  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11354  soname_spec='$libname$release$shared_ext$major'
11355  shlibpath_var=LD_LIBRARY_PATH
11356  shlibpath_overrides_runpath=yes
11357  hardcode_into_libs=yes
11358  if test yes = "$with_gnu_ld"; then
11359    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11360  else
11361    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11362    case $host_os in
11363      sco3.2v5*)
11364        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11365	;;
11366    esac
11367  fi
11368  sys_lib_dlsearch_path_spec='/usr/lib'
11369  ;;
11370
11371tpf*)
11372  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11373  version_type=linux # correct to gnu/linux during the next big refactor
11374  need_lib_prefix=no
11375  need_version=no
11376  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11377  shlibpath_var=LD_LIBRARY_PATH
11378  shlibpath_overrides_runpath=no
11379  hardcode_into_libs=yes
11380  ;;
11381
11382uts4*)
11383  version_type=linux # correct to gnu/linux during the next big refactor
11384  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11385  soname_spec='$libname$release$shared_ext$major'
11386  shlibpath_var=LD_LIBRARY_PATH
11387  ;;
11388
11389*)
11390  dynamic_linker=no
11391  ;;
11392esac
11393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11394$as_echo "$dynamic_linker" >&6; }
11395test no = "$dynamic_linker" && can_build_shared=no
11396
11397variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11398if test yes = "$GCC"; then
11399  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11400fi
11401
11402if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11403  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11404fi
11405
11406if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11407  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11408fi
11409
11410# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11411configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11412
11413# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11414func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11415
11416# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11417configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11418
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  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11516$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11517hardcode_action=
11518if test -n "$hardcode_libdir_flag_spec" ||
11519   test -n "$runpath_var" ||
11520   test yes = "$hardcode_automatic"; then
11521
11522  # We can hardcode non-existent directories.
11523  if test no != "$hardcode_direct" &&
11524     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11525     # have to relink, otherwise we might link with an installed library
11526     # when we should be linking with a yet-to-be-installed one
11527     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11528     test no != "$hardcode_minus_L"; then
11529    # Linking always hardcodes the temporary library directory.
11530    hardcode_action=relink
11531  else
11532    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11533    hardcode_action=immediate
11534  fi
11535else
11536  # We cannot hardcode anything, or else we can only hardcode existing
11537  # directories.
11538  hardcode_action=unsupported
11539fi
11540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11541$as_echo "$hardcode_action" >&6; }
11542
11543if test relink = "$hardcode_action" ||
11544   test yes = "$inherit_rpath"; then
11545  # Fast installation is not supported
11546  enable_fast_install=no
11547elif test yes = "$shlibpath_overrides_runpath" ||
11548     test no = "$enable_shared"; then
11549  # Fast installation is not necessary
11550  enable_fast_install=needless
11551fi
11552
11553
11554
11555
11556
11557
11558  if test yes != "$enable_dlopen"; then
11559  enable_dlopen=unknown
11560  enable_dlopen_self=unknown
11561  enable_dlopen_self_static=unknown
11562else
11563  lt_cv_dlopen=no
11564  lt_cv_dlopen_libs=
11565
11566  case $host_os in
11567  beos*)
11568    lt_cv_dlopen=load_add_on
11569    lt_cv_dlopen_libs=
11570    lt_cv_dlopen_self=yes
11571    ;;
11572
11573  mingw* | pw32* | cegcc*)
11574    lt_cv_dlopen=LoadLibrary
11575    lt_cv_dlopen_libs=
11576    ;;
11577
11578  cygwin*)
11579    lt_cv_dlopen=dlopen
11580    lt_cv_dlopen_libs=
11581    ;;
11582
11583  darwin*)
11584    # if libdl is installed we need to link against it
11585    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11586$as_echo_n "checking for dlopen in -ldl... " >&6; }
11587if ${ac_cv_lib_dl_dlopen+:} false; then :
11588  $as_echo_n "(cached) " >&6
11589else
11590  ac_check_lib_save_LIBS=$LIBS
11591LIBS="-ldl  $LIBS"
11592cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11593/* end confdefs.h.  */
11594
11595/* Override any GCC internal prototype to avoid an error.
11596   Use char because int might match the return type of a GCC
11597   builtin and then its argument prototype would still apply.  */
11598#ifdef __cplusplus
11599extern "C"
11600#endif
11601char dlopen ();
11602int
11603main ()
11604{
11605return dlopen ();
11606  ;
11607  return 0;
11608}
11609_ACEOF
11610if ac_fn_c_try_link "$LINENO"; then :
11611  ac_cv_lib_dl_dlopen=yes
11612else
11613  ac_cv_lib_dl_dlopen=no
11614fi
11615rm -f core conftest.err conftest.$ac_objext \
11616    conftest$ac_exeext conftest.$ac_ext
11617LIBS=$ac_check_lib_save_LIBS
11618fi
11619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11620$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11621if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11622  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11623else
11624
11625    lt_cv_dlopen=dyld
11626    lt_cv_dlopen_libs=
11627    lt_cv_dlopen_self=yes
11628
11629fi
11630
11631    ;;
11632
11633  tpf*)
11634    # Don't try to run any link tests for TPF.  We know it's impossible
11635    # because TPF is a cross-compiler, and we know how we open DSOs.
11636    lt_cv_dlopen=dlopen
11637    lt_cv_dlopen_libs=
11638    lt_cv_dlopen_self=no
11639    ;;
11640
11641  *)
11642    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11643if test "x$ac_cv_func_shl_load" = xyes; then :
11644  lt_cv_dlopen=shl_load
11645else
11646  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11647$as_echo_n "checking for shl_load in -ldld... " >&6; }
11648if ${ac_cv_lib_dld_shl_load+:} false; then :
11649  $as_echo_n "(cached) " >&6
11650else
11651  ac_check_lib_save_LIBS=$LIBS
11652LIBS="-ldld  $LIBS"
11653cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11654/* end confdefs.h.  */
11655
11656/* Override any GCC internal prototype to avoid an error.
11657   Use char because int might match the return type of a GCC
11658   builtin and then its argument prototype would still apply.  */
11659#ifdef __cplusplus
11660extern "C"
11661#endif
11662char shl_load ();
11663int
11664main ()
11665{
11666return shl_load ();
11667  ;
11668  return 0;
11669}
11670_ACEOF
11671if ac_fn_c_try_link "$LINENO"; then :
11672  ac_cv_lib_dld_shl_load=yes
11673else
11674  ac_cv_lib_dld_shl_load=no
11675fi
11676rm -f core conftest.err conftest.$ac_objext \
11677    conftest$ac_exeext conftest.$ac_ext
11678LIBS=$ac_check_lib_save_LIBS
11679fi
11680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11681$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11682if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11683  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11684else
11685  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11686if test "x$ac_cv_func_dlopen" = xyes; then :
11687  lt_cv_dlopen=dlopen
11688else
11689  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11690$as_echo_n "checking for dlopen in -ldl... " >&6; }
11691if ${ac_cv_lib_dl_dlopen+:} false; then :
11692  $as_echo_n "(cached) " >&6
11693else
11694  ac_check_lib_save_LIBS=$LIBS
11695LIBS="-ldl  $LIBS"
11696cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11697/* end confdefs.h.  */
11698
11699/* Override any GCC internal prototype to avoid an error.
11700   Use char because int might match the return type of a GCC
11701   builtin and then its argument prototype would still apply.  */
11702#ifdef __cplusplus
11703extern "C"
11704#endif
11705char dlopen ();
11706int
11707main ()
11708{
11709return dlopen ();
11710  ;
11711  return 0;
11712}
11713_ACEOF
11714if ac_fn_c_try_link "$LINENO"; then :
11715  ac_cv_lib_dl_dlopen=yes
11716else
11717  ac_cv_lib_dl_dlopen=no
11718fi
11719rm -f core conftest.err conftest.$ac_objext \
11720    conftest$ac_exeext conftest.$ac_ext
11721LIBS=$ac_check_lib_save_LIBS
11722fi
11723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11724$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11725if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11726  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11727else
11728  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11729$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11730if ${ac_cv_lib_svld_dlopen+:} false; then :
11731  $as_echo_n "(cached) " >&6
11732else
11733  ac_check_lib_save_LIBS=$LIBS
11734LIBS="-lsvld  $LIBS"
11735cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11736/* end confdefs.h.  */
11737
11738/* Override any GCC internal prototype to avoid an error.
11739   Use char because int might match the return type of a GCC
11740   builtin and then its argument prototype would still apply.  */
11741#ifdef __cplusplus
11742extern "C"
11743#endif
11744char dlopen ();
11745int
11746main ()
11747{
11748return dlopen ();
11749  ;
11750  return 0;
11751}
11752_ACEOF
11753if ac_fn_c_try_link "$LINENO"; then :
11754  ac_cv_lib_svld_dlopen=yes
11755else
11756  ac_cv_lib_svld_dlopen=no
11757fi
11758rm -f core conftest.err conftest.$ac_objext \
11759    conftest$ac_exeext conftest.$ac_ext
11760LIBS=$ac_check_lib_save_LIBS
11761fi
11762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11763$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11764if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11765  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11766else
11767  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11768$as_echo_n "checking for dld_link in -ldld... " >&6; }
11769if ${ac_cv_lib_dld_dld_link+:} false; then :
11770  $as_echo_n "(cached) " >&6
11771else
11772  ac_check_lib_save_LIBS=$LIBS
11773LIBS="-ldld  $LIBS"
11774cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11775/* end confdefs.h.  */
11776
11777/* Override any GCC internal prototype to avoid an error.
11778   Use char because int might match the return type of a GCC
11779   builtin and then its argument prototype would still apply.  */
11780#ifdef __cplusplus
11781extern "C"
11782#endif
11783char dld_link ();
11784int
11785main ()
11786{
11787return dld_link ();
11788  ;
11789  return 0;
11790}
11791_ACEOF
11792if ac_fn_c_try_link "$LINENO"; then :
11793  ac_cv_lib_dld_dld_link=yes
11794else
11795  ac_cv_lib_dld_dld_link=no
11796fi
11797rm -f core conftest.err conftest.$ac_objext \
11798    conftest$ac_exeext conftest.$ac_ext
11799LIBS=$ac_check_lib_save_LIBS
11800fi
11801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11802$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11803if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11804  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11805fi
11806
11807
11808fi
11809
11810
11811fi
11812
11813
11814fi
11815
11816
11817fi
11818
11819
11820fi
11821
11822    ;;
11823  esac
11824
11825  if test no = "$lt_cv_dlopen"; then
11826    enable_dlopen=no
11827  else
11828    enable_dlopen=yes
11829  fi
11830
11831  case $lt_cv_dlopen in
11832  dlopen)
11833    save_CPPFLAGS=$CPPFLAGS
11834    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11835
11836    save_LDFLAGS=$LDFLAGS
11837    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11838
11839    save_LIBS=$LIBS
11840    LIBS="$lt_cv_dlopen_libs $LIBS"
11841
11842    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11843$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11844if ${lt_cv_dlopen_self+:} false; then :
11845  $as_echo_n "(cached) " >&6
11846else
11847  	  if test yes = "$cross_compiling"; then :
11848  lt_cv_dlopen_self=cross
11849else
11850  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11851  lt_status=$lt_dlunknown
11852  cat > conftest.$ac_ext <<_LT_EOF
11853#line $LINENO "configure"
11854#include "confdefs.h"
11855
11856#if HAVE_DLFCN_H
11857#include <dlfcn.h>
11858#endif
11859
11860#include <stdio.h>
11861
11862#ifdef RTLD_GLOBAL
11863#  define LT_DLGLOBAL		RTLD_GLOBAL
11864#else
11865#  ifdef DL_GLOBAL
11866#    define LT_DLGLOBAL		DL_GLOBAL
11867#  else
11868#    define LT_DLGLOBAL		0
11869#  endif
11870#endif
11871
11872/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11873   find out it does not work in some platform. */
11874#ifndef LT_DLLAZY_OR_NOW
11875#  ifdef RTLD_LAZY
11876#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11877#  else
11878#    ifdef DL_LAZY
11879#      define LT_DLLAZY_OR_NOW		DL_LAZY
11880#    else
11881#      ifdef RTLD_NOW
11882#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11883#      else
11884#        ifdef DL_NOW
11885#          define LT_DLLAZY_OR_NOW	DL_NOW
11886#        else
11887#          define LT_DLLAZY_OR_NOW	0
11888#        endif
11889#      endif
11890#    endif
11891#  endif
11892#endif
11893
11894/* When -fvisibility=hidden is used, assume the code has been annotated
11895   correspondingly for the symbols needed.  */
11896#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11897int fnord () __attribute__((visibility("default")));
11898#endif
11899
11900int fnord () { return 42; }
11901int main ()
11902{
11903  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11904  int status = $lt_dlunknown;
11905
11906  if (self)
11907    {
11908      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11909      else
11910        {
11911	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11912          else puts (dlerror ());
11913	}
11914      /* dlclose (self); */
11915    }
11916  else
11917    puts (dlerror ());
11918
11919  return status;
11920}
11921_LT_EOF
11922  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11923  (eval $ac_link) 2>&5
11924  ac_status=$?
11925  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11926  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11927    (./conftest; exit; ) >&5 2>/dev/null
11928    lt_status=$?
11929    case x$lt_status in
11930      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11931      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11932      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11933    esac
11934  else :
11935    # compilation failed
11936    lt_cv_dlopen_self=no
11937  fi
11938fi
11939rm -fr conftest*
11940
11941
11942fi
11943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11944$as_echo "$lt_cv_dlopen_self" >&6; }
11945
11946    if test yes = "$lt_cv_dlopen_self"; then
11947      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11948      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11949$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11950if ${lt_cv_dlopen_self_static+:} false; then :
11951  $as_echo_n "(cached) " >&6
11952else
11953  	  if test yes = "$cross_compiling"; then :
11954  lt_cv_dlopen_self_static=cross
11955else
11956  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11957  lt_status=$lt_dlunknown
11958  cat > conftest.$ac_ext <<_LT_EOF
11959#line $LINENO "configure"
11960#include "confdefs.h"
11961
11962#if HAVE_DLFCN_H
11963#include <dlfcn.h>
11964#endif
11965
11966#include <stdio.h>
11967
11968#ifdef RTLD_GLOBAL
11969#  define LT_DLGLOBAL		RTLD_GLOBAL
11970#else
11971#  ifdef DL_GLOBAL
11972#    define LT_DLGLOBAL		DL_GLOBAL
11973#  else
11974#    define LT_DLGLOBAL		0
11975#  endif
11976#endif
11977
11978/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11979   find out it does not work in some platform. */
11980#ifndef LT_DLLAZY_OR_NOW
11981#  ifdef RTLD_LAZY
11982#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11983#  else
11984#    ifdef DL_LAZY
11985#      define LT_DLLAZY_OR_NOW		DL_LAZY
11986#    else
11987#      ifdef RTLD_NOW
11988#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11989#      else
11990#        ifdef DL_NOW
11991#          define LT_DLLAZY_OR_NOW	DL_NOW
11992#        else
11993#          define LT_DLLAZY_OR_NOW	0
11994#        endif
11995#      endif
11996#    endif
11997#  endif
11998#endif
11999
12000/* When -fvisibility=hidden is used, assume the code has been annotated
12001   correspondingly for the symbols needed.  */
12002#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12003int fnord () __attribute__((visibility("default")));
12004#endif
12005
12006int fnord () { return 42; }
12007int main ()
12008{
12009  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12010  int status = $lt_dlunknown;
12011
12012  if (self)
12013    {
12014      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12015      else
12016        {
12017	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12018          else puts (dlerror ());
12019	}
12020      /* dlclose (self); */
12021    }
12022  else
12023    puts (dlerror ());
12024
12025  return status;
12026}
12027_LT_EOF
12028  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12029  (eval $ac_link) 2>&5
12030  ac_status=$?
12031  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12032  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12033    (./conftest; exit; ) >&5 2>/dev/null
12034    lt_status=$?
12035    case x$lt_status in
12036      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12037      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12038      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12039    esac
12040  else :
12041    # compilation failed
12042    lt_cv_dlopen_self_static=no
12043  fi
12044fi
12045rm -fr conftest*
12046
12047
12048fi
12049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12050$as_echo "$lt_cv_dlopen_self_static" >&6; }
12051    fi
12052
12053    CPPFLAGS=$save_CPPFLAGS
12054    LDFLAGS=$save_LDFLAGS
12055    LIBS=$save_LIBS
12056    ;;
12057  esac
12058
12059  case $lt_cv_dlopen_self in
12060  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12061  *) enable_dlopen_self=unknown ;;
12062  esac
12063
12064  case $lt_cv_dlopen_self_static in
12065  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12066  *) enable_dlopen_self_static=unknown ;;
12067  esac
12068fi
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086striplib=
12087old_striplib=
12088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12089$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12090if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12091  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12092  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12094$as_echo "yes" >&6; }
12095else
12096# FIXME - insert some real tests, host_os isn't really good enough
12097  case $host_os in
12098  darwin*)
12099    if test -n "$STRIP"; then
12100      striplib="$STRIP -x"
12101      old_striplib="$STRIP -S"
12102      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12103$as_echo "yes" >&6; }
12104    else
12105      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12106$as_echo "no" >&6; }
12107    fi
12108    ;;
12109  *)
12110    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12111$as_echo "no" >&6; }
12112    ;;
12113  esac
12114fi
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127  # Report what library types will actually be built
12128  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12129$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12130  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12131$as_echo "$can_build_shared" >&6; }
12132
12133  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12134$as_echo_n "checking whether to build shared libraries... " >&6; }
12135  test no = "$can_build_shared" && enable_shared=no
12136
12137  # On AIX, shared libraries and static libraries use the same namespace, and
12138  # are all built from PIC.
12139  case $host_os in
12140  aix3*)
12141    test yes = "$enable_shared" && enable_static=no
12142    if test -n "$RANLIB"; then
12143      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12144      postinstall_cmds='$RANLIB $lib'
12145    fi
12146    ;;
12147
12148  aix[4-9]*)
12149    if test ia64 != "$host_cpu"; then
12150      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12151      yes,aix,yes) ;;			# shared object as lib.so file only
12152      yes,svr4,*) ;;			# shared object as lib.so archive member only
12153      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12154      esac
12155    fi
12156    ;;
12157  esac
12158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12159$as_echo "$enable_shared" >&6; }
12160
12161  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12162$as_echo_n "checking whether to build static libraries... " >&6; }
12163  # Make sure either enable_shared or enable_static is yes.
12164  test yes = "$enable_shared" || enable_static=yes
12165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12166$as_echo "$enable_static" >&6; }
12167
12168
12169
12170
12171fi
12172ac_ext=c
12173ac_cpp='$CPP $CPPFLAGS'
12174ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12175ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12176ac_compiler_gnu=$ac_cv_c_compiler_gnu
12177
12178CC=$lt_save_CC
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194        ac_config_commands="$ac_config_commands libtool"
12195
12196
12197
12198
12199# Only expand once:
12200
12201
12202
12203if test "$GCC" = "yes"
12204then
12205	CFLAGS="$CFLAGS -Wall"
12206fi
12207
12208CFLAGS="-I.. -I${srcdir}/.. $CFLAGS"
12209
12210
12211
12212for ac_header in unistd.h stdint.h
12213do :
12214  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12215ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12216if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12217  cat >>confdefs.h <<_ACEOF
12218#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12219_ACEOF
12220
12221fi
12222
12223done
12224
12225
12226ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
12227if test "x$ac_cv_type_int64_t" = xyes; then :
12228   :
12229else
12230
12231
12232cat >>confdefs.h <<_ACEOF
12233#define int64_t long long
12234_ACEOF
12235
12236
12237fi
12238
12239
12240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
12241$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
12242if ${ac_cv_type_uid_t+:} false; then :
12243  $as_echo_n "(cached) " >&6
12244else
12245  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12246/* end confdefs.h.  */
12247#include <sys/types.h>
12248
12249_ACEOF
12250if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12251  $EGREP "uid_t" >/dev/null 2>&1; then :
12252  ac_cv_type_uid_t=yes
12253else
12254  ac_cv_type_uid_t=no
12255fi
12256rm -f conftest*
12257
12258fi
12259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
12260$as_echo "$ac_cv_type_uid_t" >&6; }
12261if test $ac_cv_type_uid_t = no; then
12262
12263$as_echo "#define uid_t int" >>confdefs.h
12264
12265
12266$as_echo "#define gid_t int" >>confdefs.h
12267
12268fi
12269
12270ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12271if test "x$ac_cv_type_pid_t" = xyes; then :
12272
12273else
12274
12275cat >>confdefs.h <<_ACEOF
12276#define pid_t int
12277_ACEOF
12278
12279fi
12280
12281# Check whether --enable-largefile was given.
12282if test "${enable_largefile+set}" = set; then :
12283  enableval=$enable_largefile;
12284fi
12285
12286if test "$enable_largefile" != no; then
12287
12288  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12289$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12290if ${ac_cv_sys_largefile_CC+:} false; then :
12291  $as_echo_n "(cached) " >&6
12292else
12293  ac_cv_sys_largefile_CC=no
12294     if test "$GCC" != yes; then
12295       ac_save_CC=$CC
12296       while :; do
12297	 # IRIX 6.2 and later do not support large files by default,
12298	 # so use the C compiler's -n32 option if that helps.
12299	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12300/* end confdefs.h.  */
12301#include <sys/types.h>
12302 /* Check that off_t can represent 2**63 - 1 correctly.
12303    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12304    since some C++ compilers masquerading as C compilers
12305    incorrectly reject 9223372036854775807.  */
12306#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12307  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12308		       && LARGE_OFF_T % 2147483647 == 1)
12309		      ? 1 : -1];
12310int
12311main ()
12312{
12313
12314  ;
12315  return 0;
12316}
12317_ACEOF
12318	 if ac_fn_c_try_compile "$LINENO"; then :
12319  break
12320fi
12321rm -f core conftest.err conftest.$ac_objext
12322	 CC="$CC -n32"
12323	 if ac_fn_c_try_compile "$LINENO"; then :
12324  ac_cv_sys_largefile_CC=' -n32'; break
12325fi
12326rm -f core conftest.err conftest.$ac_objext
12327	 break
12328       done
12329       CC=$ac_save_CC
12330       rm -f conftest.$ac_ext
12331    fi
12332fi
12333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12334$as_echo "$ac_cv_sys_largefile_CC" >&6; }
12335  if test "$ac_cv_sys_largefile_CC" != no; then
12336    CC=$CC$ac_cv_sys_largefile_CC
12337  fi
12338
12339  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12340$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12341if ${ac_cv_sys_file_offset_bits+:} false; then :
12342  $as_echo_n "(cached) " >&6
12343else
12344  while :; do
12345  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12346/* end confdefs.h.  */
12347#include <sys/types.h>
12348 /* Check that off_t can represent 2**63 - 1 correctly.
12349    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12350    since some C++ compilers masquerading as C compilers
12351    incorrectly reject 9223372036854775807.  */
12352#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12353  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12354		       && LARGE_OFF_T % 2147483647 == 1)
12355		      ? 1 : -1];
12356int
12357main ()
12358{
12359
12360  ;
12361  return 0;
12362}
12363_ACEOF
12364if ac_fn_c_try_compile "$LINENO"; then :
12365  ac_cv_sys_file_offset_bits=no; break
12366fi
12367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12368  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12369/* end confdefs.h.  */
12370#define _FILE_OFFSET_BITS 64
12371#include <sys/types.h>
12372 /* Check that off_t can represent 2**63 - 1 correctly.
12373    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12374    since some C++ compilers masquerading as C compilers
12375    incorrectly reject 9223372036854775807.  */
12376#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12377  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12378		       && LARGE_OFF_T % 2147483647 == 1)
12379		      ? 1 : -1];
12380int
12381main ()
12382{
12383
12384  ;
12385  return 0;
12386}
12387_ACEOF
12388if ac_fn_c_try_compile "$LINENO"; then :
12389  ac_cv_sys_file_offset_bits=64; break
12390fi
12391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12392  ac_cv_sys_file_offset_bits=unknown
12393  break
12394done
12395fi
12396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12397$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12398case $ac_cv_sys_file_offset_bits in #(
12399  no | unknown) ;;
12400  *)
12401cat >>confdefs.h <<_ACEOF
12402#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12403_ACEOF
12404;;
12405esac
12406rm -rf conftest*
12407  if test $ac_cv_sys_file_offset_bits = unknown; then
12408    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12409$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12410if ${ac_cv_sys_large_files+:} false; then :
12411  $as_echo_n "(cached) " >&6
12412else
12413  while :; do
12414  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12415/* end confdefs.h.  */
12416#include <sys/types.h>
12417 /* Check that off_t can represent 2**63 - 1 correctly.
12418    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12419    since some C++ compilers masquerading as C compilers
12420    incorrectly reject 9223372036854775807.  */
12421#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12422  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12423		       && LARGE_OFF_T % 2147483647 == 1)
12424		      ? 1 : -1];
12425int
12426main ()
12427{
12428
12429  ;
12430  return 0;
12431}
12432_ACEOF
12433if ac_fn_c_try_compile "$LINENO"; then :
12434  ac_cv_sys_large_files=no; break
12435fi
12436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12437  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12438/* end confdefs.h.  */
12439#define _LARGE_FILES 1
12440#include <sys/types.h>
12441 /* Check that off_t can represent 2**63 - 1 correctly.
12442    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12443    since some C++ compilers masquerading as C compilers
12444    incorrectly reject 9223372036854775807.  */
12445#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12446  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12447		       && LARGE_OFF_T % 2147483647 == 1)
12448		      ? 1 : -1];
12449int
12450main ()
12451{
12452
12453  ;
12454  return 0;
12455}
12456_ACEOF
12457if ac_fn_c_try_compile "$LINENO"; then :
12458  ac_cv_sys_large_files=1; break
12459fi
12460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12461  ac_cv_sys_large_files=unknown
12462  break
12463done
12464fi
12465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12466$as_echo "$ac_cv_sys_large_files" >&6; }
12467case $ac_cv_sys_large_files in #(
12468  no | unknown) ;;
12469  *)
12470cat >>confdefs.h <<_ACEOF
12471#define _LARGE_FILES $ac_cv_sys_large_files
12472_ACEOF
12473;;
12474esac
12475rm -rf conftest*
12476  fi
12477
12478
12479fi
12480
12481
12482
12483for ac_func in setgroups initgroups
12484do :
12485  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12486ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12487if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12488  cat >>confdefs.h <<_ACEOF
12489#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12490_ACEOF
12491
12492fi
12493done
12494
12495ac_config_files="$ac_config_files Makefile"
12496
12497cat >confcache <<\_ACEOF
12498# This file is a shell script that caches the results of configure
12499# tests run on this system so they can be shared between configure
12500# scripts and configure runs, see configure's option --config-cache.
12501# It is not useful on other systems.  If it contains results you don't
12502# want to keep, you may remove or edit it.
12503#
12504# config.status only pays attention to the cache file if you give it
12505# the --recheck option to rerun configure.
12506#
12507# `ac_cv_env_foo' variables (set or unset) will be overridden when
12508# loading this file, other *unset* `ac_cv_foo' will be assigned the
12509# following values.
12510
12511_ACEOF
12512
12513# The following way of writing the cache mishandles newlines in values,
12514# but we know of no workaround that is simple, portable, and efficient.
12515# So, we kill variables containing newlines.
12516# Ultrix sh set writes to stderr and can't be redirected directly,
12517# and sets the high bit in the cache file unless we assign to the vars.
12518(
12519  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12520    eval ac_val=\$$ac_var
12521    case $ac_val in #(
12522    *${as_nl}*)
12523      case $ac_var in #(
12524      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12525$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12526      esac
12527      case $ac_var in #(
12528      _ | IFS | as_nl) ;; #(
12529      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12530      *) { eval $ac_var=; unset $ac_var;} ;;
12531      esac ;;
12532    esac
12533  done
12534
12535  (set) 2>&1 |
12536    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12537    *${as_nl}ac_space=\ *)
12538      # `set' does not quote correctly, so add quotes: double-quote
12539      # substitution turns \\\\ into \\, and sed turns \\ into \.
12540      sed -n \
12541	"s/'/'\\\\''/g;
12542	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12543      ;; #(
12544    *)
12545      # `set' quotes correctly as required by POSIX, so do not add quotes.
12546      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12547      ;;
12548    esac |
12549    sort
12550) |
12551  sed '
12552     /^ac_cv_env_/b end
12553     t clear
12554     :clear
12555     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12556     t end
12557     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12558     :end' >>confcache
12559if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12560  if test -w "$cache_file"; then
12561    if test "x$cache_file" != "x/dev/null"; then
12562      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12563$as_echo "$as_me: updating cache $cache_file" >&6;}
12564      if test ! -f "$cache_file" || test -h "$cache_file"; then
12565	cat confcache >"$cache_file"
12566      else
12567        case $cache_file in #(
12568        */* | ?:*)
12569	  mv -f confcache "$cache_file"$$ &&
12570	  mv -f "$cache_file"$$ "$cache_file" ;; #(
12571        *)
12572	  mv -f confcache "$cache_file" ;;
12573	esac
12574      fi
12575    fi
12576  else
12577    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12578$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12579  fi
12580fi
12581rm -f confcache
12582
12583test "x$prefix" = xNONE && prefix=$ac_default_prefix
12584# Let make expand exec_prefix.
12585test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12586
12587DEFS=-DHAVE_CONFIG_H
12588
12589ac_libobjs=
12590ac_ltlibobjs=
12591U=
12592for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12593  # 1. Remove the extension, and $U if already installed.
12594  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12595  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12596  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12597  #    will be set to the directory where LIBOBJS objects are built.
12598  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12599  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12600done
12601LIBOBJS=$ac_libobjs
12602
12603LTLIBOBJS=$ac_ltlibobjs
12604
12605
12606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12607$as_echo_n "checking that generated files are newer than configure... " >&6; }
12608   if test -n "$am_sleep_pid"; then
12609     # Hide warnings about reused PIDs.
12610     wait $am_sleep_pid 2>/dev/null
12611   fi
12612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12613$as_echo "done" >&6; }
12614 if test -n "$EXEEXT"; then
12615  am__EXEEXT_TRUE=
12616  am__EXEEXT_FALSE='#'
12617else
12618  am__EXEEXT_TRUE='#'
12619  am__EXEEXT_FALSE=
12620fi
12621
12622if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12623  as_fn_error $? "conditional \"AMDEP\" was never defined.
12624Usually this means the macro was only invoked conditionally." "$LINENO" 5
12625fi
12626if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12627  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12628Usually this means the macro was only invoked conditionally." "$LINENO" 5
12629fi
12630
12631: "${CONFIG_STATUS=./config.status}"
12632ac_write_fail=0
12633ac_clean_files_save=$ac_clean_files
12634ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12635{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12636$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12637as_write_fail=0
12638cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12639#! $SHELL
12640# Generated by $as_me.
12641# Run this file to recreate the current configuration.
12642# Compiler output produced by configure, useful for debugging
12643# configure, is in config.log if it exists.
12644
12645debug=false
12646ac_cs_recheck=false
12647ac_cs_silent=false
12648
12649SHELL=\${CONFIG_SHELL-$SHELL}
12650export SHELL
12651_ASEOF
12652cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12653## -------------------- ##
12654## M4sh Initialization. ##
12655## -------------------- ##
12656
12657# Be more Bourne compatible
12658DUALCASE=1; export DUALCASE # for MKS sh
12659if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12660  emulate sh
12661  NULLCMD=:
12662  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12663  # is contrary to our usage.  Disable this feature.
12664  alias -g '${1+"$@"}'='"$@"'
12665  setopt NO_GLOB_SUBST
12666else
12667  case `(set -o) 2>/dev/null` in #(
12668  *posix*) :
12669    set -o posix ;; #(
12670  *) :
12671     ;;
12672esac
12673fi
12674
12675
12676as_nl='
12677'
12678export as_nl
12679# Printing a long string crashes Solaris 7 /usr/bin/printf.
12680as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12681as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12682as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12683# Prefer a ksh shell builtin over an external printf program on Solaris,
12684# but without wasting forks for bash or zsh.
12685if test -z "$BASH_VERSION$ZSH_VERSION" \
12686    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12687  as_echo='print -r --'
12688  as_echo_n='print -rn --'
12689elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12690  as_echo='printf %s\n'
12691  as_echo_n='printf %s'
12692else
12693  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12694    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12695    as_echo_n='/usr/ucb/echo -n'
12696  else
12697    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12698    as_echo_n_body='eval
12699      arg=$1;
12700      case $arg in #(
12701      *"$as_nl"*)
12702	expr "X$arg" : "X\\(.*\\)$as_nl";
12703	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12704      esac;
12705      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12706    '
12707    export as_echo_n_body
12708    as_echo_n='sh -c $as_echo_n_body as_echo'
12709  fi
12710  export as_echo_body
12711  as_echo='sh -c $as_echo_body as_echo'
12712fi
12713
12714# The user is always right.
12715if test "${PATH_SEPARATOR+set}" != set; then
12716  PATH_SEPARATOR=:
12717  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12718    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12719      PATH_SEPARATOR=';'
12720  }
12721fi
12722
12723
12724# IFS
12725# We need space, tab and new line, in precisely that order.  Quoting is
12726# there to prevent editors from complaining about space-tab.
12727# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12728# splitting by setting IFS to empty value.)
12729IFS=" ""	$as_nl"
12730
12731# Find who we are.  Look in the path if we contain no directory separator.
12732as_myself=
12733case $0 in #((
12734  *[\\/]* ) as_myself=$0 ;;
12735  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12736for as_dir in $PATH
12737do
12738  IFS=$as_save_IFS
12739  test -z "$as_dir" && as_dir=.
12740    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12741  done
12742IFS=$as_save_IFS
12743
12744     ;;
12745esac
12746# We did not find ourselves, most probably we were run as `sh COMMAND'
12747# in which case we are not to be found in the path.
12748if test "x$as_myself" = x; then
12749  as_myself=$0
12750fi
12751if test ! -f "$as_myself"; then
12752  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12753  exit 1
12754fi
12755
12756# Unset variables that we do not need and which cause bugs (e.g. in
12757# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12758# suppresses any "Segmentation fault" message there.  '((' could
12759# trigger a bug in pdksh 5.2.14.
12760for as_var in BASH_ENV ENV MAIL MAILPATH
12761do eval test x\${$as_var+set} = xset \
12762  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12763done
12764PS1='$ '
12765PS2='> '
12766PS4='+ '
12767
12768# NLS nuisances.
12769LC_ALL=C
12770export LC_ALL
12771LANGUAGE=C
12772export LANGUAGE
12773
12774# CDPATH.
12775(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12776
12777
12778# as_fn_error STATUS ERROR [LINENO LOG_FD]
12779# ----------------------------------------
12780# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12781# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12782# script with STATUS, using 1 if that was 0.
12783as_fn_error ()
12784{
12785  as_status=$1; test $as_status -eq 0 && as_status=1
12786  if test "$4"; then
12787    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12788    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12789  fi
12790  $as_echo "$as_me: error: $2" >&2
12791  as_fn_exit $as_status
12792} # as_fn_error
12793
12794
12795# as_fn_set_status STATUS
12796# -----------------------
12797# Set $? to STATUS, without forking.
12798as_fn_set_status ()
12799{
12800  return $1
12801} # as_fn_set_status
12802
12803# as_fn_exit STATUS
12804# -----------------
12805# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12806as_fn_exit ()
12807{
12808  set +e
12809  as_fn_set_status $1
12810  exit $1
12811} # as_fn_exit
12812
12813# as_fn_unset VAR
12814# ---------------
12815# Portably unset VAR.
12816as_fn_unset ()
12817{
12818  { eval $1=; unset $1;}
12819}
12820as_unset=as_fn_unset
12821# as_fn_append VAR VALUE
12822# ----------------------
12823# Append the text in VALUE to the end of the definition contained in VAR. Take
12824# advantage of any shell optimizations that allow amortized linear growth over
12825# repeated appends, instead of the typical quadratic growth present in naive
12826# implementations.
12827if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12828  eval 'as_fn_append ()
12829  {
12830    eval $1+=\$2
12831  }'
12832else
12833  as_fn_append ()
12834  {
12835    eval $1=\$$1\$2
12836  }
12837fi # as_fn_append
12838
12839# as_fn_arith ARG...
12840# ------------------
12841# Perform arithmetic evaluation on the ARGs, and store the result in the
12842# global $as_val. Take advantage of shells that can avoid forks. The arguments
12843# must be portable across $(()) and expr.
12844if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12845  eval 'as_fn_arith ()
12846  {
12847    as_val=$(( $* ))
12848  }'
12849else
12850  as_fn_arith ()
12851  {
12852    as_val=`expr "$@" || test $? -eq 1`
12853  }
12854fi # as_fn_arith
12855
12856
12857if expr a : '\(a\)' >/dev/null 2>&1 &&
12858   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12859  as_expr=expr
12860else
12861  as_expr=false
12862fi
12863
12864if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12865  as_basename=basename
12866else
12867  as_basename=false
12868fi
12869
12870if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12871  as_dirname=dirname
12872else
12873  as_dirname=false
12874fi
12875
12876as_me=`$as_basename -- "$0" ||
12877$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12878	 X"$0" : 'X\(//\)$' \| \
12879	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12880$as_echo X/"$0" |
12881    sed '/^.*\/\([^/][^/]*\)\/*$/{
12882	    s//\1/
12883	    q
12884	  }
12885	  /^X\/\(\/\/\)$/{
12886	    s//\1/
12887	    q
12888	  }
12889	  /^X\/\(\/\).*/{
12890	    s//\1/
12891	    q
12892	  }
12893	  s/.*/./; q'`
12894
12895# Avoid depending upon Character Ranges.
12896as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12897as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12898as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12899as_cr_digits='0123456789'
12900as_cr_alnum=$as_cr_Letters$as_cr_digits
12901
12902ECHO_C= ECHO_N= ECHO_T=
12903case `echo -n x` in #(((((
12904-n*)
12905  case `echo 'xy\c'` in
12906  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12907  xy)  ECHO_C='\c';;
12908  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12909       ECHO_T='	';;
12910  esac;;
12911*)
12912  ECHO_N='-n';;
12913esac
12914
12915rm -f conf$$ conf$$.exe conf$$.file
12916if test -d conf$$.dir; then
12917  rm -f conf$$.dir/conf$$.file
12918else
12919  rm -f conf$$.dir
12920  mkdir conf$$.dir 2>/dev/null
12921fi
12922if (echo >conf$$.file) 2>/dev/null; then
12923  if ln -s conf$$.file conf$$ 2>/dev/null; then
12924    as_ln_s='ln -s'
12925    # ... but there are two gotchas:
12926    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12927    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12928    # In both cases, we have to default to `cp -pR'.
12929    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12930      as_ln_s='cp -pR'
12931  elif ln conf$$.file conf$$ 2>/dev/null; then
12932    as_ln_s=ln
12933  else
12934    as_ln_s='cp -pR'
12935  fi
12936else
12937  as_ln_s='cp -pR'
12938fi
12939rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12940rmdir conf$$.dir 2>/dev/null
12941
12942
12943# as_fn_mkdir_p
12944# -------------
12945# Create "$as_dir" as a directory, including parents if necessary.
12946as_fn_mkdir_p ()
12947{
12948
12949  case $as_dir in #(
12950  -*) as_dir=./$as_dir;;
12951  esac
12952  test -d "$as_dir" || eval $as_mkdir_p || {
12953    as_dirs=
12954    while :; do
12955      case $as_dir in #(
12956      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12957      *) as_qdir=$as_dir;;
12958      esac
12959      as_dirs="'$as_qdir' $as_dirs"
12960      as_dir=`$as_dirname -- "$as_dir" ||
12961$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12962	 X"$as_dir" : 'X\(//\)[^/]' \| \
12963	 X"$as_dir" : 'X\(//\)$' \| \
12964	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12965$as_echo X"$as_dir" |
12966    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12967	    s//\1/
12968	    q
12969	  }
12970	  /^X\(\/\/\)[^/].*/{
12971	    s//\1/
12972	    q
12973	  }
12974	  /^X\(\/\/\)$/{
12975	    s//\1/
12976	    q
12977	  }
12978	  /^X\(\/\).*/{
12979	    s//\1/
12980	    q
12981	  }
12982	  s/.*/./; q'`
12983      test -d "$as_dir" && break
12984    done
12985    test -z "$as_dirs" || eval "mkdir $as_dirs"
12986  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12987
12988
12989} # as_fn_mkdir_p
12990if mkdir -p . 2>/dev/null; then
12991  as_mkdir_p='mkdir -p "$as_dir"'
12992else
12993  test -d ./-p && rmdir ./-p
12994  as_mkdir_p=false
12995fi
12996
12997
12998# as_fn_executable_p FILE
12999# -----------------------
13000# Test if FILE is an executable regular file.
13001as_fn_executable_p ()
13002{
13003  test -f "$1" && test -x "$1"
13004} # as_fn_executable_p
13005as_test_x='test -x'
13006as_executable_p=as_fn_executable_p
13007
13008# Sed expression to map a string onto a valid CPP name.
13009as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13010
13011# Sed expression to map a string onto a valid variable name.
13012as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13013
13014
13015exec 6>&1
13016## ----------------------------------- ##
13017## Main body of $CONFIG_STATUS script. ##
13018## ----------------------------------- ##
13019_ASEOF
13020test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13021
13022cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13023# Save the log message, to keep $0 and so on meaningful, and to
13024# report actual input values of CONFIG_FILES etc. instead of their
13025# values after options handling.
13026ac_log="
13027This file was extended by numlib $as_me 0.10, which was
13028generated by GNU Autoconf 2.69.  Invocation command line was
13029
13030  CONFIG_FILES    = $CONFIG_FILES
13031  CONFIG_HEADERS  = $CONFIG_HEADERS
13032  CONFIG_LINKS    = $CONFIG_LINKS
13033  CONFIG_COMMANDS = $CONFIG_COMMANDS
13034  $ $0 $@
13035
13036on `(hostname || uname -n) 2>/dev/null | sed 1q`
13037"
13038
13039_ACEOF
13040
13041case $ac_config_files in *"
13042"*) set x $ac_config_files; shift; ac_config_files=$*;;
13043esac
13044
13045case $ac_config_headers in *"
13046"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13047esac
13048
13049
13050cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13051# Files that config.status was made for.
13052config_files="$ac_config_files"
13053config_headers="$ac_config_headers"
13054config_commands="$ac_config_commands"
13055
13056_ACEOF
13057
13058cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13059ac_cs_usage="\
13060\`$as_me' instantiates files and other configuration actions
13061from templates according to the current configuration.  Unless the files
13062and actions are specified as TAGs, all are instantiated by default.
13063
13064Usage: $0 [OPTION]... [TAG]...
13065
13066  -h, --help       print this help, then exit
13067  -V, --version    print version number and configuration settings, then exit
13068      --config     print configuration, then exit
13069  -q, --quiet, --silent
13070                   do not print progress messages
13071  -d, --debug      don't remove temporary files
13072      --recheck    update $as_me by reconfiguring in the same conditions
13073      --file=FILE[:TEMPLATE]
13074                   instantiate the configuration file FILE
13075      --header=FILE[:TEMPLATE]
13076                   instantiate the configuration header FILE
13077
13078Configuration files:
13079$config_files
13080
13081Configuration headers:
13082$config_headers
13083
13084Configuration commands:
13085$config_commands
13086
13087Report bugs to <courier-users@lists.sourceforge.net>."
13088
13089_ACEOF
13090cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13091ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13092ac_cs_version="\\
13093numlib config.status 0.10
13094configured by $0, generated by GNU Autoconf 2.69,
13095  with options \\"\$ac_cs_config\\"
13096
13097Copyright (C) 2012 Free Software Foundation, Inc.
13098This config.status script is free software; the Free Software Foundation
13099gives unlimited permission to copy, distribute and modify it."
13100
13101ac_pwd='$ac_pwd'
13102srcdir='$srcdir'
13103INSTALL='$INSTALL'
13104MKDIR_P='$MKDIR_P'
13105AWK='$AWK'
13106test -n "\$AWK" || AWK=awk
13107_ACEOF
13108
13109cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13110# The default lists apply if the user does not specify any file.
13111ac_need_defaults=:
13112while test $# != 0
13113do
13114  case $1 in
13115  --*=?*)
13116    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13117    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13118    ac_shift=:
13119    ;;
13120  --*=)
13121    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13122    ac_optarg=
13123    ac_shift=:
13124    ;;
13125  *)
13126    ac_option=$1
13127    ac_optarg=$2
13128    ac_shift=shift
13129    ;;
13130  esac
13131
13132  case $ac_option in
13133  # Handling of the options.
13134  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13135    ac_cs_recheck=: ;;
13136  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13137    $as_echo "$ac_cs_version"; exit ;;
13138  --config | --confi | --conf | --con | --co | --c )
13139    $as_echo "$ac_cs_config"; exit ;;
13140  --debug | --debu | --deb | --de | --d | -d )
13141    debug=: ;;
13142  --file | --fil | --fi | --f )
13143    $ac_shift
13144    case $ac_optarg in
13145    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13146    '') as_fn_error $? "missing file argument" ;;
13147    esac
13148    as_fn_append CONFIG_FILES " '$ac_optarg'"
13149    ac_need_defaults=false;;
13150  --header | --heade | --head | --hea )
13151    $ac_shift
13152    case $ac_optarg in
13153    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13154    esac
13155    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13156    ac_need_defaults=false;;
13157  --he | --h)
13158    # Conflict between --help and --header
13159    as_fn_error $? "ambiguous option: \`$1'
13160Try \`$0 --help' for more information.";;
13161  --help | --hel | -h )
13162    $as_echo "$ac_cs_usage"; exit ;;
13163  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13164  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13165    ac_cs_silent=: ;;
13166
13167  # This is an error.
13168  -*) as_fn_error $? "unrecognized option: \`$1'
13169Try \`$0 --help' for more information." ;;
13170
13171  *) as_fn_append ac_config_targets " $1"
13172     ac_need_defaults=false ;;
13173
13174  esac
13175  shift
13176done
13177
13178ac_configure_extra_args=
13179
13180if $ac_cs_silent; then
13181  exec 6>/dev/null
13182  ac_configure_extra_args="$ac_configure_extra_args --silent"
13183fi
13184
13185_ACEOF
13186cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13187if \$ac_cs_recheck; then
13188  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13189  shift
13190  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13191  CONFIG_SHELL='$SHELL'
13192  export CONFIG_SHELL
13193  exec "\$@"
13194fi
13195
13196_ACEOF
13197cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13198exec 5>>config.log
13199{
13200  echo
13201  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13202## Running $as_me. ##
13203_ASBOX
13204  $as_echo "$ac_log"
13205} >&5
13206
13207_ACEOF
13208cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13209#
13210# INIT-COMMANDS
13211#
13212AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
13213
13214
13215# The HP-UX ksh and POSIX shell print the target directory to stdout
13216# if CDPATH is set.
13217(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13218
13219sed_quote_subst='$sed_quote_subst'
13220double_quote_subst='$double_quote_subst'
13221delay_variable_subst='$delay_variable_subst'
13222macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13223macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13224enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13225enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13226pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13227enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13228shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
13229SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13230ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13231PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13232host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13233host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13234host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13235build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13236build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13237build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13238SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13239Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13240GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13241EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13242FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13243LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13244NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13245LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13246max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13247ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13248exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13249lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13250lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13251lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13252lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13253lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13254reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13255reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13256OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13257deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13258file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13259file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13260want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13261DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13262sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13263AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13264AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13265archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13266STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13267RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13268old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13269old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13270old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13271lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13272CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13273CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13274compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13275GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13276lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13277lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13278lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
13279lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13280lt_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"`'
13281lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
13282nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13283lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13284lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
13285objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13286MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13287lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13288lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13289lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13290lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13291lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13292need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13293MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13294DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13295NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13296LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13297OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13298OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13299libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13300shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13301extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13302archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13303enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13304export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13305whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13306compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13307old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13308old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13309archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13310archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13311module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13312module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13313with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13314allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13315no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13316hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13317hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13318hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13319hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13320hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13321hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13322hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13323inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13324link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13325always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13326export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13327exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13328include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13329prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13330postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13331file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13332variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13333need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13334need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13335version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13336runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13337shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13338shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13339libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13340library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13341soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13342install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13343postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13344postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13345finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13346finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13347hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13348sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13349configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
13350configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
13351hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13352enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13353enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13354enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13355old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13356striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13357
13358LTCC='$LTCC'
13359LTCFLAGS='$LTCFLAGS'
13360compiler='$compiler_DEFAULT'
13361
13362# A function that is used when there is no print builtin or printf.
13363func_fallback_echo ()
13364{
13365  eval 'cat <<_LTECHO_EOF
13366\$1
13367_LTECHO_EOF'
13368}
13369
13370# Quote evaled strings.
13371for var in SHELL \
13372ECHO \
13373PATH_SEPARATOR \
13374SED \
13375GREP \
13376EGREP \
13377FGREP \
13378LD \
13379NM \
13380LN_S \
13381lt_SP2NL \
13382lt_NL2SP \
13383reload_flag \
13384OBJDUMP \
13385deplibs_check_method \
13386file_magic_cmd \
13387file_magic_glob \
13388want_nocaseglob \
13389DLLTOOL \
13390sharedlib_from_linklib_cmd \
13391AR \
13392AR_FLAGS \
13393archiver_list_spec \
13394STRIP \
13395RANLIB \
13396CC \
13397CFLAGS \
13398compiler \
13399lt_cv_sys_global_symbol_pipe \
13400lt_cv_sys_global_symbol_to_cdecl \
13401lt_cv_sys_global_symbol_to_import \
13402lt_cv_sys_global_symbol_to_c_name_address \
13403lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13404lt_cv_nm_interface \
13405nm_file_list_spec \
13406lt_cv_truncate_bin \
13407lt_prog_compiler_no_builtin_flag \
13408lt_prog_compiler_pic \
13409lt_prog_compiler_wl \
13410lt_prog_compiler_static \
13411lt_cv_prog_compiler_c_o \
13412need_locks \
13413MANIFEST_TOOL \
13414DSYMUTIL \
13415NMEDIT \
13416LIPO \
13417OTOOL \
13418OTOOL64 \
13419shrext_cmds \
13420export_dynamic_flag_spec \
13421whole_archive_flag_spec \
13422compiler_needs_object \
13423with_gnu_ld \
13424allow_undefined_flag \
13425no_undefined_flag \
13426hardcode_libdir_flag_spec \
13427hardcode_libdir_separator \
13428exclude_expsyms \
13429include_expsyms \
13430file_list_spec \
13431variables_saved_for_relink \
13432libname_spec \
13433library_names_spec \
13434soname_spec \
13435install_override_mode \
13436finish_eval \
13437old_striplib \
13438striplib; do
13439    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13440    *[\\\\\\\`\\"\\\$]*)
13441      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13442      ;;
13443    *)
13444      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13445      ;;
13446    esac
13447done
13448
13449# Double-quote double-evaled strings.
13450for var in reload_cmds \
13451old_postinstall_cmds \
13452old_postuninstall_cmds \
13453old_archive_cmds \
13454extract_expsyms_cmds \
13455old_archive_from_new_cmds \
13456old_archive_from_expsyms_cmds \
13457archive_cmds \
13458archive_expsym_cmds \
13459module_cmds \
13460module_expsym_cmds \
13461export_symbols_cmds \
13462prelink_cmds \
13463postlink_cmds \
13464postinstall_cmds \
13465postuninstall_cmds \
13466finish_cmds \
13467sys_lib_search_path_spec \
13468configure_time_dlsearch_path \
13469configure_time_lt_sys_library_path; do
13470    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13471    *[\\\\\\\`\\"\\\$]*)
13472      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13473      ;;
13474    *)
13475      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13476      ;;
13477    esac
13478done
13479
13480ac_aux_dir='$ac_aux_dir'
13481
13482# See if we are running on zsh, and set the options that allow our
13483# commands through without removal of \ escapes INIT.
13484if test -n "\${ZSH_VERSION+set}"; then
13485   setopt NO_GLOB_SUBST
13486fi
13487
13488
13489    PACKAGE='$PACKAGE'
13490    VERSION='$VERSION'
13491    RM='$RM'
13492    ofile='$ofile'
13493
13494
13495
13496
13497_ACEOF
13498
13499cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13500
13501# Handling of arguments.
13502for ac_config_target in $ac_config_targets
13503do
13504  case $ac_config_target in
13505    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13506    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13507    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13508    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13509
13510  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13511  esac
13512done
13513
13514
13515# If the user did not use the arguments to specify the items to instantiate,
13516# then the envvar interface is used.  Set only those that are not.
13517# We use the long form for the default assignment because of an extremely
13518# bizarre bug on SunOS 4.1.3.
13519if $ac_need_defaults; then
13520  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13521  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13522  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13523fi
13524
13525# Have a temporary directory for convenience.  Make it in the build tree
13526# simply because there is no reason against having it here, and in addition,
13527# creating and moving files from /tmp can sometimes cause problems.
13528# Hook for its removal unless debugging.
13529# Note that there is a small window in which the directory will not be cleaned:
13530# after its creation but before its name has been assigned to `$tmp'.
13531$debug ||
13532{
13533  tmp= ac_tmp=
13534  trap 'exit_status=$?
13535  : "${ac_tmp:=$tmp}"
13536  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13537' 0
13538  trap 'as_fn_exit 1' 1 2 13 15
13539}
13540# Create a (secure) tmp directory for tmp files.
13541
13542{
13543  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13544  test -d "$tmp"
13545}  ||
13546{
13547  tmp=./conf$$-$RANDOM
13548  (umask 077 && mkdir "$tmp")
13549} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13550ac_tmp=$tmp
13551
13552# Set up the scripts for CONFIG_FILES section.
13553# No need to generate them if there are no CONFIG_FILES.
13554# This happens for instance with `./config.status config.h'.
13555if test -n "$CONFIG_FILES"; then
13556
13557
13558ac_cr=`echo X | tr X '\015'`
13559# On cygwin, bash can eat \r inside `` if the user requested igncr.
13560# But we know of no other shell where ac_cr would be empty at this
13561# point, so we can use a bashism as a fallback.
13562if test "x$ac_cr" = x; then
13563  eval ac_cr=\$\'\\r\'
13564fi
13565ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13566if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13567  ac_cs_awk_cr='\\r'
13568else
13569  ac_cs_awk_cr=$ac_cr
13570fi
13571
13572echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13573_ACEOF
13574
13575
13576{
13577  echo "cat >conf$$subs.awk <<_ACEOF" &&
13578  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13579  echo "_ACEOF"
13580} >conf$$subs.sh ||
13581  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13582ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13583ac_delim='%!_!# '
13584for ac_last_try in false false false false false :; do
13585  . ./conf$$subs.sh ||
13586    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13587
13588  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13589  if test $ac_delim_n = $ac_delim_num; then
13590    break
13591  elif $ac_last_try; then
13592    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13593  else
13594    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13595  fi
13596done
13597rm -f conf$$subs.sh
13598
13599cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13600cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13601_ACEOF
13602sed -n '
13603h
13604s/^/S["/; s/!.*/"]=/
13605p
13606g
13607s/^[^!]*!//
13608:repl
13609t repl
13610s/'"$ac_delim"'$//
13611t delim
13612:nl
13613h
13614s/\(.\{148\}\)..*/\1/
13615t more1
13616s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13617p
13618n
13619b repl
13620:more1
13621s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13622p
13623g
13624s/.\{148\}//
13625t nl
13626:delim
13627h
13628s/\(.\{148\}\)..*/\1/
13629t more2
13630s/["\\]/\\&/g; s/^/"/; s/$/"/
13631p
13632b
13633:more2
13634s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13635p
13636g
13637s/.\{148\}//
13638t delim
13639' <conf$$subs.awk | sed '
13640/^[^""]/{
13641  N
13642  s/\n//
13643}
13644' >>$CONFIG_STATUS || ac_write_fail=1
13645rm -f conf$$subs.awk
13646cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13647_ACAWK
13648cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13649  for (key in S) S_is_set[key] = 1
13650  FS = ""
13651
13652}
13653{
13654  line = $ 0
13655  nfields = split(line, field, "@")
13656  substed = 0
13657  len = length(field[1])
13658  for (i = 2; i < nfields; i++) {
13659    key = field[i]
13660    keylen = length(key)
13661    if (S_is_set[key]) {
13662      value = S[key]
13663      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13664      len += length(value) + length(field[++i])
13665      substed = 1
13666    } else
13667      len += 1 + keylen
13668  }
13669
13670  print line
13671}
13672
13673_ACAWK
13674_ACEOF
13675cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13676if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13677  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13678else
13679  cat
13680fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13681  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13682_ACEOF
13683
13684# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13685# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13686# trailing colons and then remove the whole line if VPATH becomes empty
13687# (actually we leave an empty line to preserve line numbers).
13688if test "x$srcdir" = x.; then
13689  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
13690h
13691s///
13692s/^/:/
13693s/[	 ]*$/:/
13694s/:\$(srcdir):/:/g
13695s/:\${srcdir}:/:/g
13696s/:@srcdir@:/:/g
13697s/^:*//
13698s/:*$//
13699x
13700s/\(=[	 ]*\).*/\1/
13701G
13702s/\n//
13703s/^[^=]*=[	 ]*$//
13704}'
13705fi
13706
13707cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13708fi # test -n "$CONFIG_FILES"
13709
13710# Set up the scripts for CONFIG_HEADERS section.
13711# No need to generate them if there are no CONFIG_HEADERS.
13712# This happens for instance with `./config.status Makefile'.
13713if test -n "$CONFIG_HEADERS"; then
13714cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13715BEGIN {
13716_ACEOF
13717
13718# Transform confdefs.h into an awk script `defines.awk', embedded as
13719# here-document in config.status, that substitutes the proper values into
13720# config.h.in to produce config.h.
13721
13722# Create a delimiter string that does not exist in confdefs.h, to ease
13723# handling of long lines.
13724ac_delim='%!_!# '
13725for ac_last_try in false false :; do
13726  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13727  if test -z "$ac_tt"; then
13728    break
13729  elif $ac_last_try; then
13730    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13731  else
13732    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13733  fi
13734done
13735
13736# For the awk script, D is an array of macro values keyed by name,
13737# likewise P contains macro parameters if any.  Preserve backslash
13738# newline sequences.
13739
13740ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13741sed -n '
13742s/.\{148\}/&'"$ac_delim"'/g
13743t rset
13744:rset
13745s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
13746t def
13747d
13748:def
13749s/\\$//
13750t bsnl
13751s/["\\]/\\&/g
13752s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13753D["\1"]=" \3"/p
13754s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
13755d
13756:bsnl
13757s/["\\]/\\&/g
13758s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13759D["\1"]=" \3\\\\\\n"\\/p
13760t cont
13761s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13762t cont
13763d
13764:cont
13765n
13766s/.\{148\}/&'"$ac_delim"'/g
13767t clear
13768:clear
13769s/\\$//
13770t bsnlc
13771s/["\\]/\\&/g; s/^/"/; s/$/"/p
13772d
13773:bsnlc
13774s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13775b cont
13776' <confdefs.h | sed '
13777s/'"$ac_delim"'/"\\\
13778"/g' >>$CONFIG_STATUS || ac_write_fail=1
13779
13780cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13781  for (key in D) D_is_set[key] = 1
13782  FS = ""
13783}
13784/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13785  line = \$ 0
13786  split(line, arg, " ")
13787  if (arg[1] == "#") {
13788    defundef = arg[2]
13789    mac1 = arg[3]
13790  } else {
13791    defundef = substr(arg[1], 2)
13792    mac1 = arg[2]
13793  }
13794  split(mac1, mac2, "(") #)
13795  macro = mac2[1]
13796  prefix = substr(line, 1, index(line, defundef) - 1)
13797  if (D_is_set[macro]) {
13798    # Preserve the white space surrounding the "#".
13799    print prefix "define", macro P[macro] D[macro]
13800    next
13801  } else {
13802    # Replace #undef with comments.  This is necessary, for example,
13803    # in the case of _POSIX_SOURCE, which is predefined and required
13804    # on some systems where configure will not decide to define it.
13805    if (defundef == "undef") {
13806      print "/*", prefix defundef, macro, "*/"
13807      next
13808    }
13809  }
13810}
13811{ print }
13812_ACAWK
13813_ACEOF
13814cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13815  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13816fi # test -n "$CONFIG_HEADERS"
13817
13818
13819eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13820shift
13821for ac_tag
13822do
13823  case $ac_tag in
13824  :[FHLC]) ac_mode=$ac_tag; continue;;
13825  esac
13826  case $ac_mode$ac_tag in
13827  :[FHL]*:*);;
13828  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13829  :[FH]-) ac_tag=-:-;;
13830  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13831  esac
13832  ac_save_IFS=$IFS
13833  IFS=:
13834  set x $ac_tag
13835  IFS=$ac_save_IFS
13836  shift
13837  ac_file=$1
13838  shift
13839
13840  case $ac_mode in
13841  :L) ac_source=$1;;
13842  :[FH])
13843    ac_file_inputs=
13844    for ac_f
13845    do
13846      case $ac_f in
13847      -) ac_f="$ac_tmp/stdin";;
13848      *) # Look for the file first in the build tree, then in the source tree
13849	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13850	 # because $ac_f cannot contain `:'.
13851	 test -f "$ac_f" ||
13852	   case $ac_f in
13853	   [\\/$]*) false;;
13854	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13855	   esac ||
13856	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13857      esac
13858      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13859      as_fn_append ac_file_inputs " '$ac_f'"
13860    done
13861
13862    # Let's still pretend it is `configure' which instantiates (i.e., don't
13863    # use $as_me), people would be surprised to read:
13864    #    /* config.h.  Generated by config.status.  */
13865    configure_input='Generated from '`
13866	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13867	`' by configure.'
13868    if test x"$ac_file" != x-; then
13869      configure_input="$ac_file.  $configure_input"
13870      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13871$as_echo "$as_me: creating $ac_file" >&6;}
13872    fi
13873    # Neutralize special characters interpreted by sed in replacement strings.
13874    case $configure_input in #(
13875    *\&* | *\|* | *\\* )
13876       ac_sed_conf_input=`$as_echo "$configure_input" |
13877       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13878    *) ac_sed_conf_input=$configure_input;;
13879    esac
13880
13881    case $ac_tag in
13882    *:-:* | *:-) cat >"$ac_tmp/stdin" \
13883      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13884    esac
13885    ;;
13886  esac
13887
13888  ac_dir=`$as_dirname -- "$ac_file" ||
13889$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13890	 X"$ac_file" : 'X\(//\)[^/]' \| \
13891	 X"$ac_file" : 'X\(//\)$' \| \
13892	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13893$as_echo X"$ac_file" |
13894    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13895	    s//\1/
13896	    q
13897	  }
13898	  /^X\(\/\/\)[^/].*/{
13899	    s//\1/
13900	    q
13901	  }
13902	  /^X\(\/\/\)$/{
13903	    s//\1/
13904	    q
13905	  }
13906	  /^X\(\/\).*/{
13907	    s//\1/
13908	    q
13909	  }
13910	  s/.*/./; q'`
13911  as_dir="$ac_dir"; as_fn_mkdir_p
13912  ac_builddir=.
13913
13914case "$ac_dir" in
13915.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13916*)
13917  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13918  # A ".." for each directory in $ac_dir_suffix.
13919  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13920  case $ac_top_builddir_sub in
13921  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13922  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13923  esac ;;
13924esac
13925ac_abs_top_builddir=$ac_pwd
13926ac_abs_builddir=$ac_pwd$ac_dir_suffix
13927# for backward compatibility:
13928ac_top_builddir=$ac_top_build_prefix
13929
13930case $srcdir in
13931  .)  # We are building in place.
13932    ac_srcdir=.
13933    ac_top_srcdir=$ac_top_builddir_sub
13934    ac_abs_top_srcdir=$ac_pwd ;;
13935  [\\/]* | ?:[\\/]* )  # Absolute name.
13936    ac_srcdir=$srcdir$ac_dir_suffix;
13937    ac_top_srcdir=$srcdir
13938    ac_abs_top_srcdir=$srcdir ;;
13939  *) # Relative name.
13940    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13941    ac_top_srcdir=$ac_top_build_prefix$srcdir
13942    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13943esac
13944ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13945
13946
13947  case $ac_mode in
13948  :F)
13949  #
13950  # CONFIG_FILE
13951  #
13952
13953  case $INSTALL in
13954  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13955  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13956  esac
13957  ac_MKDIR_P=$MKDIR_P
13958  case $MKDIR_P in
13959  [\\/$]* | ?:[\\/]* ) ;;
13960  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13961  esac
13962_ACEOF
13963
13964cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13965# If the template does not know about datarootdir, expand it.
13966# FIXME: This hack should be removed a few years after 2.60.
13967ac_datarootdir_hack=; ac_datarootdir_seen=
13968ac_sed_dataroot='
13969/datarootdir/ {
13970  p
13971  q
13972}
13973/@datadir@/p
13974/@docdir@/p
13975/@infodir@/p
13976/@localedir@/p
13977/@mandir@/p'
13978case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13979*datarootdir*) ac_datarootdir_seen=yes;;
13980*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13981  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13982$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13983_ACEOF
13984cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13985  ac_datarootdir_hack='
13986  s&@datadir@&$datadir&g
13987  s&@docdir@&$docdir&g
13988  s&@infodir@&$infodir&g
13989  s&@localedir@&$localedir&g
13990  s&@mandir@&$mandir&g
13991  s&\\\${datarootdir}&$datarootdir&g' ;;
13992esac
13993_ACEOF
13994
13995# Neutralize VPATH when `$srcdir' = `.'.
13996# Shell code in configure.ac might set extrasub.
13997# FIXME: do we really want to maintain this feature?
13998cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13999ac_sed_extra="$ac_vpsub
14000$extrasub
14001_ACEOF
14002cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14003:t
14004/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14005s|@configure_input@|$ac_sed_conf_input|;t t
14006s&@top_builddir@&$ac_top_builddir_sub&;t t
14007s&@top_build_prefix@&$ac_top_build_prefix&;t t
14008s&@srcdir@&$ac_srcdir&;t t
14009s&@abs_srcdir@&$ac_abs_srcdir&;t t
14010s&@top_srcdir@&$ac_top_srcdir&;t t
14011s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14012s&@builddir@&$ac_builddir&;t t
14013s&@abs_builddir@&$ac_abs_builddir&;t t
14014s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14015s&@INSTALL@&$ac_INSTALL&;t t
14016s&@MKDIR_P@&$ac_MKDIR_P&;t t
14017$ac_datarootdir_hack
14018"
14019eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14020  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14021
14022test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14023  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14024  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
14025      "$ac_tmp/out"`; test -z "$ac_out"; } &&
14026  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14027which seems to be undefined.  Please make sure it is defined" >&5
14028$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14029which seems to be undefined.  Please make sure it is defined" >&2;}
14030
14031  rm -f "$ac_tmp/stdin"
14032  case $ac_file in
14033  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14034  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14035  esac \
14036  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14037 ;;
14038  :H)
14039  #
14040  # CONFIG_HEADER
14041  #
14042  if test x"$ac_file" != x-; then
14043    {
14044      $as_echo "/* $configure_input  */" \
14045      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14046    } >"$ac_tmp/config.h" \
14047      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14048    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14049      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14050$as_echo "$as_me: $ac_file is unchanged" >&6;}
14051    else
14052      rm -f "$ac_file"
14053      mv "$ac_tmp/config.h" "$ac_file" \
14054	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
14055    fi
14056  else
14057    $as_echo "/* $configure_input  */" \
14058      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14059      || as_fn_error $? "could not create -" "$LINENO" 5
14060  fi
14061# Compute "$ac_file"'s index in $config_headers.
14062_am_arg="$ac_file"
14063_am_stamp_count=1
14064for _am_header in $config_headers :; do
14065  case $_am_header in
14066    $_am_arg | $_am_arg:* )
14067      break ;;
14068    * )
14069      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14070  esac
14071done
14072echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14073$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14074	 X"$_am_arg" : 'X\(//\)[^/]' \| \
14075	 X"$_am_arg" : 'X\(//\)$' \| \
14076	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14077$as_echo X"$_am_arg" |
14078    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14079	    s//\1/
14080	    q
14081	  }
14082	  /^X\(\/\/\)[^/].*/{
14083	    s//\1/
14084	    q
14085	  }
14086	  /^X\(\/\/\)$/{
14087	    s//\1/
14088	    q
14089	  }
14090	  /^X\(\/\).*/{
14091	    s//\1/
14092	    q
14093	  }
14094	  s/.*/./; q'`/stamp-h$_am_stamp_count
14095 ;;
14096
14097  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14098$as_echo "$as_me: executing $ac_file commands" >&6;}
14099 ;;
14100  esac
14101
14102
14103  case $ac_file$ac_mode in
14104    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14105  # Older Autoconf quotes --file arguments for eval, but not when files
14106  # are listed without --file.  Let's play safe and only enable the eval
14107  # if we detect the quoting.
14108  # TODO: see whether this extra hack can be removed once we start
14109  # requiring Autoconf 2.70 or later.
14110  case $CONFIG_FILES in #(
14111  *\'*) :
14112    eval set x "$CONFIG_FILES" ;; #(
14113  *) :
14114    set x $CONFIG_FILES ;; #(
14115  *) :
14116     ;;
14117esac
14118  shift
14119  # Used to flag and report bootstrapping failures.
14120  am_rc=0
14121  for am_mf
14122  do
14123    # Strip MF so we end up with the name of the file.
14124    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
14125    # Check whether this is an Automake generated Makefile which includes
14126    # dependency-tracking related rules and includes.
14127    # Grep'ing the whole file directly is not great: AIX grep has a line
14128    # limit of 2048, but all sed's we know have understand at least 4000.
14129    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
14130      || continue
14131    am_dirpart=`$as_dirname -- "$am_mf" ||
14132$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14133	 X"$am_mf" : 'X\(//\)[^/]' \| \
14134	 X"$am_mf" : 'X\(//\)$' \| \
14135	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14136$as_echo X"$am_mf" |
14137    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14138	    s//\1/
14139	    q
14140	  }
14141	  /^X\(\/\/\)[^/].*/{
14142	    s//\1/
14143	    q
14144	  }
14145	  /^X\(\/\/\)$/{
14146	    s//\1/
14147	    q
14148	  }
14149	  /^X\(\/\).*/{
14150	    s//\1/
14151	    q
14152	  }
14153	  s/.*/./; q'`
14154    am_filepart=`$as_basename -- "$am_mf" ||
14155$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
14156	 X"$am_mf" : 'X\(//\)$' \| \
14157	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14158$as_echo X/"$am_mf" |
14159    sed '/^.*\/\([^/][^/]*\)\/*$/{
14160	    s//\1/
14161	    q
14162	  }
14163	  /^X\/\(\/\/\)$/{
14164	    s//\1/
14165	    q
14166	  }
14167	  /^X\/\(\/\).*/{
14168	    s//\1/
14169	    q
14170	  }
14171	  s/.*/./; q'`
14172    { echo "$as_me:$LINENO: cd "$am_dirpart" \
14173      && sed -e '/# am--include-marker/d' "$am_filepart" \
14174        | $MAKE -f - am--depfiles" >&5
14175   (cd "$am_dirpart" \
14176      && sed -e '/# am--include-marker/d' "$am_filepart" \
14177        | $MAKE -f - am--depfiles) >&5 2>&5
14178   ac_status=$?
14179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14180   (exit $ac_status); } || am_rc=$?
14181  done
14182  if test $am_rc -ne 0; then
14183    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14184$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14185as_fn_error $? "Something went wrong bootstrapping makefile fragments
14186    for automatic dependency tracking.  If GNU make was not used, consider
14187    re-running the configure script with MAKE=\"gmake\" (or whatever is
14188    necessary).  You can also try re-running configure with the
14189    '--disable-dependency-tracking' option to at least be able to build
14190    the package (albeit without support for automatic dependency tracking).
14191See \`config.log' for more details" "$LINENO" 5; }
14192  fi
14193  { am_dirpart=; unset am_dirpart;}
14194  { am_filepart=; unset am_filepart;}
14195  { am_mf=; unset am_mf;}
14196  { am_rc=; unset am_rc;}
14197  rm -f conftest-deps.mk
14198}
14199 ;;
14200    "libtool":C)
14201
14202    # See if we are running on zsh, and set the options that allow our
14203    # commands through without removal of \ escapes.
14204    if test -n "${ZSH_VERSION+set}"; then
14205      setopt NO_GLOB_SUBST
14206    fi
14207
14208    cfgfile=${ofile}T
14209    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14210    $RM "$cfgfile"
14211
14212    cat <<_LT_EOF >> "$cfgfile"
14213#! $SHELL
14214# Generated automatically by $as_me ($PACKAGE) $VERSION
14215# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14216# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14217
14218# Provide generalized library-building support services.
14219# Written by Gordon Matzigkeit, 1996
14220
14221# Copyright (C) 2014 Free Software Foundation, Inc.
14222# This is free software; see the source for copying conditions.  There is NO
14223# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14224
14225# GNU Libtool is free software; you can redistribute it and/or modify
14226# it under the terms of the GNU General Public License as published by
14227# the Free Software Foundation; either version 2 of of the License, or
14228# (at your option) any later version.
14229#
14230# As a special exception to the GNU General Public License, if you
14231# distribute this file as part of a program or library that is built
14232# using GNU Libtool, you may include this file under the  same
14233# distribution terms that you use for the rest of that program.
14234#
14235# GNU Libtool is distributed in the hope that it will be useful, but
14236# WITHOUT ANY WARRANTY; without even the implied warranty of
14237# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14238# GNU General Public License for more details.
14239#
14240# You should have received a copy of the GNU General Public License
14241# along with this program.  If not, see <http://www.gnu.org/licenses/>.
14242
14243
14244# The names of the tagged configurations supported by this script.
14245available_tags=''
14246
14247# Configured defaults for sys_lib_dlsearch_path munging.
14248: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
14249
14250# ### BEGIN LIBTOOL CONFIG
14251
14252# Which release of libtool.m4 was used?
14253macro_version=$macro_version
14254macro_revision=$macro_revision
14255
14256# Whether or not to build shared libraries.
14257build_libtool_libs=$enable_shared
14258
14259# Whether or not to build static libraries.
14260build_old_libs=$enable_static
14261
14262# What type of objects to build.
14263pic_mode=$pic_mode
14264
14265# Whether or not to optimize for fast installation.
14266fast_install=$enable_fast_install
14267
14268# Shared archive member basename,for filename based shared library versioning on AIX.
14269shared_archive_member_spec=$shared_archive_member_spec
14270
14271# Shell to use when invoking shell scripts.
14272SHELL=$lt_SHELL
14273
14274# An echo program that protects backslashes.
14275ECHO=$lt_ECHO
14276
14277# The PATH separator for the build system.
14278PATH_SEPARATOR=$lt_PATH_SEPARATOR
14279
14280# The host system.
14281host_alias=$host_alias
14282host=$host
14283host_os=$host_os
14284
14285# The build system.
14286build_alias=$build_alias
14287build=$build
14288build_os=$build_os
14289
14290# A sed program that does not truncate output.
14291SED=$lt_SED
14292
14293# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14294Xsed="\$SED -e 1s/^X//"
14295
14296# A grep program that handles long lines.
14297GREP=$lt_GREP
14298
14299# An ERE matcher.
14300EGREP=$lt_EGREP
14301
14302# A literal string matcher.
14303FGREP=$lt_FGREP
14304
14305# A BSD- or MS-compatible name lister.
14306NM=$lt_NM
14307
14308# Whether we need soft or hard links.
14309LN_S=$lt_LN_S
14310
14311# What is the maximum length of a command?
14312max_cmd_len=$max_cmd_len
14313
14314# Object file suffix (normally "o").
14315objext=$ac_objext
14316
14317# Executable file suffix (normally "").
14318exeext=$exeext
14319
14320# whether the shell understands "unset".
14321lt_unset=$lt_unset
14322
14323# turn spaces into newlines.
14324SP2NL=$lt_lt_SP2NL
14325
14326# turn newlines into spaces.
14327NL2SP=$lt_lt_NL2SP
14328
14329# convert \$build file names to \$host format.
14330to_host_file_cmd=$lt_cv_to_host_file_cmd
14331
14332# convert \$build files to toolchain format.
14333to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14334
14335# An object symbol dumper.
14336OBJDUMP=$lt_OBJDUMP
14337
14338# Method to check whether dependent libraries are shared objects.
14339deplibs_check_method=$lt_deplibs_check_method
14340
14341# Command to use when deplibs_check_method = "file_magic".
14342file_magic_cmd=$lt_file_magic_cmd
14343
14344# How to find potential files when deplibs_check_method = "file_magic".
14345file_magic_glob=$lt_file_magic_glob
14346
14347# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14348want_nocaseglob=$lt_want_nocaseglob
14349
14350# DLL creation program.
14351DLLTOOL=$lt_DLLTOOL
14352
14353# Command to associate shared and link libraries.
14354sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14355
14356# The archiver.
14357AR=$lt_AR
14358
14359# Flags to create an archive.
14360AR_FLAGS=$lt_AR_FLAGS
14361
14362# How to feed a file listing to the archiver.
14363archiver_list_spec=$lt_archiver_list_spec
14364
14365# A symbol stripping program.
14366STRIP=$lt_STRIP
14367
14368# Commands used to install an old-style archive.
14369RANLIB=$lt_RANLIB
14370old_postinstall_cmds=$lt_old_postinstall_cmds
14371old_postuninstall_cmds=$lt_old_postuninstall_cmds
14372
14373# Whether to use a lock for old archive extraction.
14374lock_old_archive_extraction=$lock_old_archive_extraction
14375
14376# A C compiler.
14377LTCC=$lt_CC
14378
14379# LTCC compiler flags.
14380LTCFLAGS=$lt_CFLAGS
14381
14382# Take the output of nm and produce a listing of raw symbols and C names.
14383global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14384
14385# Transform the output of nm in a proper C declaration.
14386global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14387
14388# Transform the output of nm into a list of symbols to manually relocate.
14389global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
14390
14391# Transform the output of nm in a C name address pair.
14392global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14393
14394# Transform the output of nm in a C name address pair when lib prefix is needed.
14395global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14396
14397# The name lister interface.
14398nm_interface=$lt_lt_cv_nm_interface
14399
14400# Specify filename containing input files for \$NM.
14401nm_file_list_spec=$lt_nm_file_list_spec
14402
14403# The root where to search for dependent libraries,and where our libraries should be installed.
14404lt_sysroot=$lt_sysroot
14405
14406# Command to truncate a binary pipe.
14407lt_truncate_bin=$lt_lt_cv_truncate_bin
14408
14409# The name of the directory that contains temporary libtool files.
14410objdir=$objdir
14411
14412# Used to examine libraries when file_magic_cmd begins with "file".
14413MAGIC_CMD=$MAGIC_CMD
14414
14415# Must we lock files when doing compilation?
14416need_locks=$lt_need_locks
14417
14418# Manifest tool.
14419MANIFEST_TOOL=$lt_MANIFEST_TOOL
14420
14421# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14422DSYMUTIL=$lt_DSYMUTIL
14423
14424# Tool to change global to local symbols on Mac OS X.
14425NMEDIT=$lt_NMEDIT
14426
14427# Tool to manipulate fat objects and archives on Mac OS X.
14428LIPO=$lt_LIPO
14429
14430# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14431OTOOL=$lt_OTOOL
14432
14433# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14434OTOOL64=$lt_OTOOL64
14435
14436# Old archive suffix (normally "a").
14437libext=$libext
14438
14439# Shared library suffix (normally ".so").
14440shrext_cmds=$lt_shrext_cmds
14441
14442# The commands to extract the exported symbol list from a shared archive.
14443extract_expsyms_cmds=$lt_extract_expsyms_cmds
14444
14445# Variables whose values should be saved in libtool wrapper scripts and
14446# restored at link time.
14447variables_saved_for_relink=$lt_variables_saved_for_relink
14448
14449# Do we need the "lib" prefix for modules?
14450need_lib_prefix=$need_lib_prefix
14451
14452# Do we need a version for libraries?
14453need_version=$need_version
14454
14455# Library versioning type.
14456version_type=$version_type
14457
14458# Shared library runtime path variable.
14459runpath_var=$runpath_var
14460
14461# Shared library path variable.
14462shlibpath_var=$shlibpath_var
14463
14464# Is shlibpath searched before the hard-coded library search path?
14465shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14466
14467# Format of library name prefix.
14468libname_spec=$lt_libname_spec
14469
14470# List of archive names.  First name is the real one, the rest are links.
14471# The last name is the one that the linker finds with -lNAME
14472library_names_spec=$lt_library_names_spec
14473
14474# The coded name of the library, if different from the real name.
14475soname_spec=$lt_soname_spec
14476
14477# Permission mode override for installation of shared libraries.
14478install_override_mode=$lt_install_override_mode
14479
14480# Command to use after installation of a shared archive.
14481postinstall_cmds=$lt_postinstall_cmds
14482
14483# Command to use after uninstallation of a shared archive.
14484postuninstall_cmds=$lt_postuninstall_cmds
14485
14486# Commands used to finish a libtool library installation in a directory.
14487finish_cmds=$lt_finish_cmds
14488
14489# As "finish_cmds", except a single script fragment to be evaled but
14490# not shown.
14491finish_eval=$lt_finish_eval
14492
14493# Whether we should hardcode library paths into libraries.
14494hardcode_into_libs=$hardcode_into_libs
14495
14496# Compile-time system search path for libraries.
14497sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14498
14499# Detected run-time system search path for libraries.
14500sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
14501
14502# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
14503configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
14504
14505# Whether dlopen is supported.
14506dlopen_support=$enable_dlopen
14507
14508# Whether dlopen of programs is supported.
14509dlopen_self=$enable_dlopen_self
14510
14511# Whether dlopen of statically linked programs is supported.
14512dlopen_self_static=$enable_dlopen_self_static
14513
14514# Commands to strip libraries.
14515old_striplib=$lt_old_striplib
14516striplib=$lt_striplib
14517
14518
14519# The linker used to build libraries.
14520LD=$lt_LD
14521
14522# How to create reloadable object files.
14523reload_flag=$lt_reload_flag
14524reload_cmds=$lt_reload_cmds
14525
14526# Commands used to build an old-style archive.
14527old_archive_cmds=$lt_old_archive_cmds
14528
14529# A language specific compiler.
14530CC=$lt_compiler
14531
14532# Is the compiler the GNU compiler?
14533with_gcc=$GCC
14534
14535# Compiler flag to turn off builtin functions.
14536no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14537
14538# Additional compiler flags for building library objects.
14539pic_flag=$lt_lt_prog_compiler_pic
14540
14541# How to pass a linker flag through the compiler.
14542wl=$lt_lt_prog_compiler_wl
14543
14544# Compiler flag to prevent dynamic linking.
14545link_static_flag=$lt_lt_prog_compiler_static
14546
14547# Does compiler simultaneously support -c and -o options?
14548compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14549
14550# Whether or not to add -lc for building shared libraries.
14551build_libtool_need_lc=$archive_cmds_need_lc
14552
14553# Whether or not to disallow shared libs when runtime libs are static.
14554allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14555
14556# Compiler flag to allow reflexive dlopens.
14557export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14558
14559# Compiler flag to generate shared objects directly from archives.
14560whole_archive_flag_spec=$lt_whole_archive_flag_spec
14561
14562# Whether the compiler copes with passing no objects directly.
14563compiler_needs_object=$lt_compiler_needs_object
14564
14565# Create an old-style archive from a shared archive.
14566old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14567
14568# Create a temporary old-style archive to link instead of a shared archive.
14569old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14570
14571# Commands used to build a shared archive.
14572archive_cmds=$lt_archive_cmds
14573archive_expsym_cmds=$lt_archive_expsym_cmds
14574
14575# Commands used to build a loadable module if different from building
14576# a shared archive.
14577module_cmds=$lt_module_cmds
14578module_expsym_cmds=$lt_module_expsym_cmds
14579
14580# Whether we are building with GNU ld or not.
14581with_gnu_ld=$lt_with_gnu_ld
14582
14583# Flag that allows shared libraries with undefined symbols to be built.
14584allow_undefined_flag=$lt_allow_undefined_flag
14585
14586# Flag that enforces no undefined symbols.
14587no_undefined_flag=$lt_no_undefined_flag
14588
14589# Flag to hardcode \$libdir into a binary during linking.
14590# This must work even if \$libdir does not exist
14591hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14592
14593# Whether we need a single "-rpath" flag with a separated argument.
14594hardcode_libdir_separator=$lt_hardcode_libdir_separator
14595
14596# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14597# DIR into the resulting binary.
14598hardcode_direct=$hardcode_direct
14599
14600# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14601# DIR into the resulting binary and the resulting library dependency is
14602# "absolute",i.e impossible to change by setting \$shlibpath_var if the
14603# library is relocated.
14604hardcode_direct_absolute=$hardcode_direct_absolute
14605
14606# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14607# into the resulting binary.
14608hardcode_minus_L=$hardcode_minus_L
14609
14610# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14611# into the resulting binary.
14612hardcode_shlibpath_var=$hardcode_shlibpath_var
14613
14614# Set to "yes" if building a shared library automatically hardcodes DIR
14615# into the library and all subsequent libraries and executables linked
14616# against it.
14617hardcode_automatic=$hardcode_automatic
14618
14619# Set to yes if linker adds runtime paths of dependent libraries
14620# to runtime path list.
14621inherit_rpath=$inherit_rpath
14622
14623# Whether libtool must link a program against all its dependency libraries.
14624link_all_deplibs=$link_all_deplibs
14625
14626# Set to "yes" if exported symbols are required.
14627always_export_symbols=$always_export_symbols
14628
14629# The commands to list exported symbols.
14630export_symbols_cmds=$lt_export_symbols_cmds
14631
14632# Symbols that should not be listed in the preloaded symbols.
14633exclude_expsyms=$lt_exclude_expsyms
14634
14635# Symbols that must always be exported.
14636include_expsyms=$lt_include_expsyms
14637
14638# Commands necessary for linking programs (against libraries) with templates.
14639prelink_cmds=$lt_prelink_cmds
14640
14641# Commands necessary for finishing linking programs.
14642postlink_cmds=$lt_postlink_cmds
14643
14644# Specify filename containing input files.
14645file_list_spec=$lt_file_list_spec
14646
14647# How to hardcode a shared library path into an executable.
14648hardcode_action=$hardcode_action
14649
14650# ### END LIBTOOL CONFIG
14651
14652_LT_EOF
14653
14654    cat <<'_LT_EOF' >> "$cfgfile"
14655
14656# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
14657
14658# func_munge_path_list VARIABLE PATH
14659# -----------------------------------
14660# VARIABLE is name of variable containing _space_ separated list of
14661# directories to be munged by the contents of PATH, which is string
14662# having a format:
14663# "DIR[:DIR]:"
14664#       string "DIR[ DIR]" will be prepended to VARIABLE
14665# ":DIR[:DIR]"
14666#       string "DIR[ DIR]" will be appended to VARIABLE
14667# "DIRP[:DIRP]::[DIRA:]DIRA"
14668#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14669#       "DIRA[ DIRA]" will be appended to VARIABLE
14670# "DIR[:DIR]"
14671#       VARIABLE will be replaced by "DIR[ DIR]"
14672func_munge_path_list ()
14673{
14674    case x$2 in
14675    x)
14676        ;;
14677    *:)
14678        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14679        ;;
14680    x:*)
14681        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14682        ;;
14683    *::*)
14684        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14685        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14686        ;;
14687    *)
14688        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14689        ;;
14690    esac
14691}
14692
14693
14694# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
14695func_cc_basename ()
14696{
14697    for cc_temp in $*""; do
14698      case $cc_temp in
14699        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14700        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14701        \-*) ;;
14702        *) break;;
14703      esac
14704    done
14705    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14706}
14707
14708
14709# ### END FUNCTIONS SHARED WITH CONFIGURE
14710
14711_LT_EOF
14712
14713  case $host_os in
14714  aix3*)
14715    cat <<\_LT_EOF >> "$cfgfile"
14716# AIX sometimes has problems with the GCC collect2 program.  For some
14717# reason, if we set the COLLECT_NAMES environment variable, the problems
14718# vanish in a puff of smoke.
14719if test set != "${COLLECT_NAMES+set}"; then
14720  COLLECT_NAMES=
14721  export COLLECT_NAMES
14722fi
14723_LT_EOF
14724    ;;
14725  esac
14726
14727
14728ltmain=$ac_aux_dir/ltmain.sh
14729
14730
14731  # We use sed instead of cat because bash on DJGPP gets confused if
14732  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14733  # text mode, it properly converts lines to CR/LF.  This bash problem
14734  # is reportedly fixed, but why not run on old versions too?
14735  sed '$q' "$ltmain" >> "$cfgfile" \
14736     || (rm -f "$cfgfile"; exit 1)
14737
14738   mv -f "$cfgfile" "$ofile" ||
14739    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14740  chmod +x "$ofile"
14741
14742 ;;
14743
14744  esac
14745done # for ac_tag
14746
14747
14748as_fn_exit 0
14749_ACEOF
14750ac_clean_files=$ac_clean_files_save
14751
14752test $ac_write_fail = 0 ||
14753  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14754
14755
14756# configure is writing to config.log, and then calls config.status.
14757# config.status does its own redirection, appending to config.log.
14758# Unfortunately, on DOS this fails, as config.log is still kept open
14759# by configure, so config.status won't be able to write to it; its
14760# output is simply discarded.  So we exec the FD to /dev/null,
14761# effectively closing config.log, so it can be properly (re)opened and
14762# appended to by config.status.  When coming back to configure, we
14763# need to make the FD available again.
14764if test "$no_create" != yes; then
14765  ac_cs_success=:
14766  ac_config_status_args=
14767  test "$silent" = yes &&
14768    ac_config_status_args="$ac_config_status_args --quiet"
14769  exec 5>/dev/null
14770  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14771  exec 5>>config.log
14772  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14773  # would make configure fail if this is the last instruction.
14774  $ac_cs_success || as_fn_exit 1
14775fi
14776if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14777  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14778$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14779fi
14780
14781