1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for adasockets 1.12.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96  IFS=$as_save_IFS
97  test -z "$as_dir" && as_dir=.
98    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99  done
100IFS=$as_save_IFS
101
102     ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there.  '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136  # into an infinite loop, continuously re-executing ourselves.
137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138    _as_can_reexec=no; export _as_can_reexec;
139    # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162  emulate sh
163  NULLCMD=:
164  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165  # is contrary to our usage.  Disable this feature.
166  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167  setopt NO_GLOB_SUBST
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204    PATH=/empty FPATH=/empty; export PATH FPATH
205    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207test \$(( 1 + 1 )) = 2 || exit 1"
208  if (eval "$as_required") 2>/dev/null; then :
209  as_have_required=yes
210else
211  as_have_required=no
212fi
213  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220  IFS=$as_save_IFS
221  test -z "$as_dir" && as_dir=.
222  as_found=:
223  case $as_dir in #(
224	 /*)
225	   for as_base in sh bash ksh sh5; do
226	     # Try only shells that exist, to save several forks.
227	     as_shell=$as_dir/$as_base
228	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230  CONFIG_SHELL=$as_shell as_have_required=yes
231		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  break 2
233fi
234fi
235	   done;;
236       esac
237  as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241  CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246      if test "x$CONFIG_SHELL" != x; then :
247  export CONFIG_SHELL
248             # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256  *v*x* | *x*v* ) as_opts=-vx ;;
257  *v* ) as_opts=-v ;;
258  *x* ) as_opts=-x ;;
259  * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
266fi
267
268    if test x$as_have_required = xno; then :
269  $as_echo "$0: This script requires a shell more modern than all"
270  $as_echo "$0: the shells that I found on your system."
271  if test x${ZSH_VERSION+set} = xset ; then
272    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274  else
275    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
279  fi
280  exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298  { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307  return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315  set +e
316  as_fn_set_status $1
317  exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326  case $as_dir in #(
327  -*) as_dir=./$as_dir;;
328  esac
329  test -d "$as_dir" || eval $as_mkdir_p || {
330    as_dirs=
331    while :; do
332      case $as_dir in #(
333      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334      *) as_qdir=$as_dir;;
335      esac
336      as_dirs="'$as_qdir' $as_dirs"
337      as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339	 X"$as_dir" : 'X\(//\)[^/]' \| \
340	 X"$as_dir" : 'X\(//\)$' \| \
341	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\/\)[^/].*/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)$/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\).*/{
356	    s//\1/
357	    q
358	  }
359	  s/.*/./; q'`
360      test -d "$as_dir" && break
361    done
362    test -z "$as_dirs" || eval "mkdir $as_dirs"
363  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366} # as_fn_mkdir_p
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373  test -f "$1" && test -x "$1"
374} # as_fn_executable_p
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382  eval 'as_fn_append ()
383  {
384    eval $1+=\$2
385  }'
386else
387  as_fn_append ()
388  {
389    eval $1=\$$1\$2
390  }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399  eval 'as_fn_arith ()
400  {
401    as_val=$(( $* ))
402  }'
403else
404  as_fn_arith ()
405  {
406    as_val=`expr "$@" || test $? -eq 1`
407  }
408fi # as_fn_arith
409
410
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415# script with STATUS, using 1 if that was 0.
416as_fn_error ()
417{
418  as_status=$1; test $as_status -eq 0 && as_status=1
419  if test "$4"; then
420    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422  fi
423  $as_echo "$as_me: error: $2" >&2
424  as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428   test "X`expr 00001 : '.*\(...\)'`" = X001; then
429  as_expr=expr
430else
431  as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435  as_basename=basename
436else
437  as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441  as_dirname=dirname
442else
443  as_dirname=false
444fi
445
446as_me=`$as_basename -- "$0" ||
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448	 X"$0" : 'X\(//\)$' \| \
449	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451    sed '/^.*\/\([^/][^/]*\)\/*$/{
452	    s//\1/
453	    q
454	  }
455	  /^X\/\(\/\/\)$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\).*/{
460	    s//\1/
461	    q
462	  }
463	  s/.*/./; q'`
464
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473  as_lineno_1=$LINENO as_lineno_1a=$LINENO
474  as_lineno_2=$LINENO as_lineno_2a=$LINENO
475  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478  sed -n '
479    p
480    /[$]LINENO/=
481  ' <$as_myself |
482    sed '
483      s/[$]LINENO.*/&-/
484      t lineno
485      b
486      :lineno
487      N
488      :loop
489      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490      t loop
491      s/-\n.*//
492    ' >$as_me.lineno &&
493  chmod +x "$as_me.lineno" ||
494    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497  # already done that, so ensure we don't try to do so again and fall
498  # in an infinite loop.  This has already happened in practice.
499  _as_can_reexec=no; export _as_can_reexec
500  # Don't try to exec as it changes $[0], causing all sort of problems
501  # (the dirname of $[0] is not the place where we might find the
502  # original and so on.  Autoconf is especially sensitive to this).
503  . "./$as_me.lineno"
504  # Exit status is that of the last command.
505  exit
506}
507
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511  case `echo 'xy\c'` in
512  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
513  xy)  ECHO_C='\c';;
514  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515       ECHO_T='	';;
516  esac;;
517*)
518  ECHO_N='-n';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523  rm -f conf$$.dir/conf$$.file
524else
525  rm -f conf$$.dir
526  mkdir conf$$.dir 2>/dev/null
527fi
528if (echo >conf$$.file) 2>/dev/null; then
529  if ln -s conf$$.file conf$$ 2>/dev/null; then
530    as_ln_s='ln -s'
531    # ... but there are two gotchas:
532    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534    # In both cases, we have to default to `cp -pR'.
535    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536      as_ln_s='cp -pR'
537  elif ln conf$$.file conf$$ 2>/dev/null; then
538    as_ln_s=ln
539  else
540    as_ln_s='cp -pR'
541  fi
542else
543  as_ln_s='cp -pR'
544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549  as_mkdir_p='mkdir -p "$as_dir"'
550else
551  test -d ./-p && rmdir ./-p
552  as_mkdir_p=false
553fi
554
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
569
570# Name of the host.
571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME='adasockets'
589PACKAGE_TARNAME='adasockets'
590PACKAGE_VERSION='1.12'
591PACKAGE_STRING='adasockets 1.12'
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
594
595ac_unique_file="src/sockets.ads"
596# Factoring default headers for most tests.
597ac_includes_default="\
598#include <stdio.h>
599#ifdef HAVE_SYS_TYPES_H
600# include <sys/types.h>
601#endif
602#ifdef HAVE_SYS_STAT_H
603# include <sys/stat.h>
604#endif
605#ifdef STDC_HEADERS
606# include <stdlib.h>
607# include <stddef.h>
608#else
609# ifdef HAVE_STDLIB_H
610#  include <stdlib.h>
611# endif
612#endif
613#ifdef HAVE_STRING_H
614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615#  include <memory.h>
616# endif
617# include <string.h>
618#endif
619#ifdef HAVE_STRINGS_H
620# include <strings.h>
621#endif
622#ifdef HAVE_INTTYPES_H
623# include <inttypes.h>
624#endif
625#ifdef HAVE_STDINT_H
626# include <stdint.h>
627#endif
628#ifdef HAVE_UNISTD_H
629# include <unistd.h>
630#endif"
631
632ac_subst_vars='am__EXEEXT_FALSE
633am__EXEEXT_TRUE
634LTLIBOBJS
635LIBOBJS
636WINNEEDED
637WIN32_FALSE
638WIN32_TRUE
639NO_SA_LEN
640SA_LEN
641EXTRA_LIBS
642RESOLVNEEDED
643SOCKETNEEDED
644NSLNEEDED
645GNATMAKE
646TEXI2DVI
647GETDEFS
648BUILD_EXAMPLES_FALSE
649BUILD_EXAMPLES_TRUE
650BUILD_DOC_FALSE
651BUILD_DOC_TRUE
652ADAFLAGS
653CPP
654LT_SYS_LIBRARY_PATH
655OTOOL64
656OTOOL
657LIPO
658NMEDIT
659DSYMUTIL
660MANIFEST_TOOL
661RANLIB
662ac_ct_AR
663AR
664DLLTOOL
665OBJDUMP
666LN_S
667NM
668ac_ct_DUMPBIN
669DUMPBIN
670LD
671FGREP
672EGREP
673GREP
674SED
675am__fastdepCC_FALSE
676am__fastdepCC_TRUE
677CCDEPMODE
678am__nodep
679AMDEPBACKSLASH
680AMDEP_FALSE
681AMDEP_TRUE
682am__include
683DEPDIR
684OBJEXT
685EXEEXT
686ac_ct_CC
687CPPFLAGS
688LDFLAGS
689CFLAGS
690CC
691host_os
692host_vendor
693host_cpu
694host
695build_os
696build_vendor
697build_cpu
698build
699LIBTOOL
700gpr_install_dir
701ali_install_dir
702ada_src_install_dir
703LIBVERSIONINFO
704AM_BACKSLASH
705AM_DEFAULT_VERBOSITY
706AM_DEFAULT_V
707AM_V
708am__untar
709am__tar
710AMTAR
711am__leading_dot
712SET_MAKE
713AWK
714mkdir_p
715MKDIR_P
716INSTALL_STRIP_PROGRAM
717STRIP
718install_sh
719MAKEINFO
720AUTOHEADER
721AUTOMAKE
722AUTOCONF
723ACLOCAL
724VERSION
725PACKAGE
726CYGPATH_W
727am__isrc
728INSTALL_DATA
729INSTALL_SCRIPT
730INSTALL_PROGRAM
731target_alias
732host_alias
733build_alias
734LIBS
735ECHO_T
736ECHO_N
737ECHO_C
738DEFS
739mandir
740localedir
741libdir
742psdir
743pdfdir
744dvidir
745htmldir
746infodir
747docdir
748oldincludedir
749includedir
750localstatedir
751sharedstatedir
752sysconfdir
753datadir
754datarootdir
755libexecdir
756sbindir
757bindir
758program_transform_name
759prefix
760exec_prefix
761PACKAGE_URL
762PACKAGE_BUGREPORT
763PACKAGE_STRING
764PACKAGE_VERSION
765PACKAGE_TARNAME
766PACKAGE_NAME
767PATH_SEPARATOR
768SHELL
769am__quote'
770ac_subst_files=''
771ac_user_opts='
772enable_option_checking
773enable_silent_rules
774with_libversioninfo
775with_adasrcinstalldir
776with_aliinstalldir
777with_gprinstalldir
778enable_shared
779enable_static
780with_pic
781enable_fast_install
782with_aix_soname
783enable_dependency_tracking
784with_gnu_ld
785with_sysroot
786enable_libtool_lock
787enable_maintainer_mode
788enable_doc
789enable_examples
790with_extra_libs
791'
792      ac_precious_vars='build_alias
793host_alias
794target_alias
795CC
796CFLAGS
797LDFLAGS
798LIBS
799CPPFLAGS
800LT_SYS_LIBRARY_PATH
801CPP
802ADAFLAGS'
803
804
805# Initialize some variables set by options.
806ac_init_help=
807ac_init_version=false
808ac_unrecognized_opts=
809ac_unrecognized_sep=
810# The variables have the same names as the options, with
811# dashes changed to underlines.
812cache_file=/dev/null
813exec_prefix=NONE
814no_create=
815no_recursion=
816prefix=NONE
817program_prefix=NONE
818program_suffix=NONE
819program_transform_name=s,x,x,
820silent=
821site=
822srcdir=
823verbose=
824x_includes=NONE
825x_libraries=NONE
826
827# Installation directory options.
828# These are left unexpanded so users can "make install exec_prefix=/foo"
829# and all the variables that are supposed to be based on exec_prefix
830# by default will actually change.
831# Use braces instead of parens because sh, perl, etc. also accept them.
832# (The list follows the same order as the GNU Coding Standards.)
833bindir='${exec_prefix}/bin'
834sbindir='${exec_prefix}/sbin'
835libexecdir='${exec_prefix}/libexec'
836datarootdir='${prefix}/share'
837datadir='${datarootdir}'
838sysconfdir='${prefix}/etc'
839sharedstatedir='${prefix}/com'
840localstatedir='${prefix}/var'
841includedir='${prefix}/include'
842oldincludedir='/usr/include'
843docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
844infodir='${datarootdir}/info'
845htmldir='${docdir}'
846dvidir='${docdir}'
847pdfdir='${docdir}'
848psdir='${docdir}'
849libdir='${exec_prefix}/lib'
850localedir='${datarootdir}/locale'
851mandir='${datarootdir}/man'
852
853ac_prev=
854ac_dashdash=
855for ac_option
856do
857  # If the previous option needs an argument, assign it.
858  if test -n "$ac_prev"; then
859    eval $ac_prev=\$ac_option
860    ac_prev=
861    continue
862  fi
863
864  case $ac_option in
865  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
866  *=)   ac_optarg= ;;
867  *)    ac_optarg=yes ;;
868  esac
869
870  # Accept the important Cygnus configure options, so we can diagnose typos.
871
872  case $ac_dashdash$ac_option in
873  --)
874    ac_dashdash=yes ;;
875
876  -bindir | --bindir | --bindi | --bind | --bin | --bi)
877    ac_prev=bindir ;;
878  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
879    bindir=$ac_optarg ;;
880
881  -build | --build | --buil | --bui | --bu)
882    ac_prev=build_alias ;;
883  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
884    build_alias=$ac_optarg ;;
885
886  -cache-file | --cache-file | --cache-fil | --cache-fi \
887  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
888    ac_prev=cache_file ;;
889  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
890  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
891    cache_file=$ac_optarg ;;
892
893  --config-cache | -C)
894    cache_file=config.cache ;;
895
896  -datadir | --datadir | --datadi | --datad)
897    ac_prev=datadir ;;
898  -datadir=* | --datadir=* | --datadi=* | --datad=*)
899    datadir=$ac_optarg ;;
900
901  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
902  | --dataroo | --dataro | --datar)
903    ac_prev=datarootdir ;;
904  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
905  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
906    datarootdir=$ac_optarg ;;
907
908  -disable-* | --disable-*)
909    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
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--disable-$ac_useropt_orig"
920	 ac_unrecognized_sep=', ';;
921    esac
922    eval enable_$ac_useropt=no ;;
923
924  -docdir | --docdir | --docdi | --doc | --do)
925    ac_prev=docdir ;;
926  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
927    docdir=$ac_optarg ;;
928
929  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
930    ac_prev=dvidir ;;
931  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
932    dvidir=$ac_optarg ;;
933
934  -enable-* | --enable-*)
935    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
936    # Reject names that are not valid shell variable names.
937    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
938      as_fn_error $? "invalid feature name: $ac_useropt"
939    ac_useropt_orig=$ac_useropt
940    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
941    case $ac_user_opts in
942      *"
943"enable_$ac_useropt"
944"*) ;;
945      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
946	 ac_unrecognized_sep=', ';;
947    esac
948    eval enable_$ac_useropt=\$ac_optarg ;;
949
950  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
951  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
952  | --exec | --exe | --ex)
953    ac_prev=exec_prefix ;;
954  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
955  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
956  | --exec=* | --exe=* | --ex=*)
957    exec_prefix=$ac_optarg ;;
958
959  -gas | --gas | --ga | --g)
960    # Obsolete; use --with-gas.
961    with_gas=yes ;;
962
963  -help | --help | --hel | --he | -h)
964    ac_init_help=long ;;
965  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
966    ac_init_help=recursive ;;
967  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
968    ac_init_help=short ;;
969
970  -host | --host | --hos | --ho)
971    ac_prev=host_alias ;;
972  -host=* | --host=* | --hos=* | --ho=*)
973    host_alias=$ac_optarg ;;
974
975  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
976    ac_prev=htmldir ;;
977  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
978  | --ht=*)
979    htmldir=$ac_optarg ;;
980
981  -includedir | --includedir | --includedi | --included | --include \
982  | --includ | --inclu | --incl | --inc)
983    ac_prev=includedir ;;
984  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
985  | --includ=* | --inclu=* | --incl=* | --inc=*)
986    includedir=$ac_optarg ;;
987
988  -infodir | --infodir | --infodi | --infod | --info | --inf)
989    ac_prev=infodir ;;
990  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
991    infodir=$ac_optarg ;;
992
993  -libdir | --libdir | --libdi | --libd)
994    ac_prev=libdir ;;
995  -libdir=* | --libdir=* | --libdi=* | --libd=*)
996    libdir=$ac_optarg ;;
997
998  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
999  | --libexe | --libex | --libe)
1000    ac_prev=libexecdir ;;
1001  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1002  | --libexe=* | --libex=* | --libe=*)
1003    libexecdir=$ac_optarg ;;
1004
1005  -localedir | --localedir | --localedi | --localed | --locale)
1006    ac_prev=localedir ;;
1007  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1008    localedir=$ac_optarg ;;
1009
1010  -localstatedir | --localstatedir | --localstatedi | --localstated \
1011  | --localstate | --localstat | --localsta | --localst | --locals)
1012    ac_prev=localstatedir ;;
1013  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1014  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1015    localstatedir=$ac_optarg ;;
1016
1017  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1018    ac_prev=mandir ;;
1019  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1020    mandir=$ac_optarg ;;
1021
1022  -nfp | --nfp | --nf)
1023    # Obsolete; use --without-fp.
1024    with_fp=no ;;
1025
1026  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1027  | --no-cr | --no-c | -n)
1028    no_create=yes ;;
1029
1030  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1032    no_recursion=yes ;;
1033
1034  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1035  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1036  | --oldin | --oldi | --old | --ol | --o)
1037    ac_prev=oldincludedir ;;
1038  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1039  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1040  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1041    oldincludedir=$ac_optarg ;;
1042
1043  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1044    ac_prev=prefix ;;
1045  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1046    prefix=$ac_optarg ;;
1047
1048  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1049  | --program-pre | --program-pr | --program-p)
1050    ac_prev=program_prefix ;;
1051  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1052  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1053    program_prefix=$ac_optarg ;;
1054
1055  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1056  | --program-suf | --program-su | --program-s)
1057    ac_prev=program_suffix ;;
1058  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1059  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1060    program_suffix=$ac_optarg ;;
1061
1062  -program-transform-name | --program-transform-name \
1063  | --program-transform-nam | --program-transform-na \
1064  | --program-transform-n | --program-transform- \
1065  | --program-transform | --program-transfor \
1066  | --program-transfo | --program-transf \
1067  | --program-trans | --program-tran \
1068  | --progr-tra | --program-tr | --program-t)
1069    ac_prev=program_transform_name ;;
1070  -program-transform-name=* | --program-transform-name=* \
1071  | --program-transform-nam=* | --program-transform-na=* \
1072  | --program-transform-n=* | --program-transform-=* \
1073  | --program-transform=* | --program-transfor=* \
1074  | --program-transfo=* | --program-transf=* \
1075  | --program-trans=* | --program-tran=* \
1076  | --progr-tra=* | --program-tr=* | --program-t=*)
1077    program_transform_name=$ac_optarg ;;
1078
1079  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1080    ac_prev=pdfdir ;;
1081  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1082    pdfdir=$ac_optarg ;;
1083
1084  -psdir | --psdir | --psdi | --psd | --ps)
1085    ac_prev=psdir ;;
1086  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1087    psdir=$ac_optarg ;;
1088
1089  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090  | -silent | --silent | --silen | --sile | --sil)
1091    silent=yes ;;
1092
1093  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1094    ac_prev=sbindir ;;
1095  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1096  | --sbi=* | --sb=*)
1097    sbindir=$ac_optarg ;;
1098
1099  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1100  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1101  | --sharedst | --shareds | --shared | --share | --shar \
1102  | --sha | --sh)
1103    ac_prev=sharedstatedir ;;
1104  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1105  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1106  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1107  | --sha=* | --sh=*)
1108    sharedstatedir=$ac_optarg ;;
1109
1110  -site | --site | --sit)
1111    ac_prev=site ;;
1112  -site=* | --site=* | --sit=*)
1113    site=$ac_optarg ;;
1114
1115  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1116    ac_prev=srcdir ;;
1117  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1118    srcdir=$ac_optarg ;;
1119
1120  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1121  | --syscon | --sysco | --sysc | --sys | --sy)
1122    ac_prev=sysconfdir ;;
1123  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1124  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1125    sysconfdir=$ac_optarg ;;
1126
1127  -target | --target | --targe | --targ | --tar | --ta | --t)
1128    ac_prev=target_alias ;;
1129  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1130    target_alias=$ac_optarg ;;
1131
1132  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1133    verbose=yes ;;
1134
1135  -version | --version | --versio | --versi | --vers | -V)
1136    ac_init_version=: ;;
1137
1138  -with-* | --with-*)
1139    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1140    # Reject names that are not valid shell variable names.
1141    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1142      as_fn_error $? "invalid package name: $ac_useropt"
1143    ac_useropt_orig=$ac_useropt
1144    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1145    case $ac_user_opts in
1146      *"
1147"with_$ac_useropt"
1148"*) ;;
1149      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1150	 ac_unrecognized_sep=', ';;
1151    esac
1152    eval with_$ac_useropt=\$ac_optarg ;;
1153
1154  -without-* | --without-*)
1155    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1156    # Reject names that are not valid shell variable names.
1157    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1158      as_fn_error $? "invalid package name: $ac_useropt"
1159    ac_useropt_orig=$ac_useropt
1160    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1161    case $ac_user_opts in
1162      *"
1163"with_$ac_useropt"
1164"*) ;;
1165      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1166	 ac_unrecognized_sep=', ';;
1167    esac
1168    eval with_$ac_useropt=no ;;
1169
1170  --x)
1171    # Obsolete; use --with-x.
1172    with_x=yes ;;
1173
1174  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1175  | --x-incl | --x-inc | --x-in | --x-i)
1176    ac_prev=x_includes ;;
1177  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1178  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1179    x_includes=$ac_optarg ;;
1180
1181  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1182  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1183    ac_prev=x_libraries ;;
1184  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1185  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1186    x_libraries=$ac_optarg ;;
1187
1188  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1189Try \`$0 --help' for more information"
1190    ;;
1191
1192  *=*)
1193    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1194    # Reject names that are not valid shell variable names.
1195    case $ac_envvar in #(
1196      '' | [0-9]* | *[!_$as_cr_alnum]* )
1197      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1198    esac
1199    eval $ac_envvar=\$ac_optarg
1200    export $ac_envvar ;;
1201
1202  *)
1203    # FIXME: should be removed in autoconf 3.0.
1204    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1205    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1206      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1207    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1208    ;;
1209
1210  esac
1211done
1212
1213if test -n "$ac_prev"; then
1214  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1215  as_fn_error $? "missing argument to $ac_option"
1216fi
1217
1218if test -n "$ac_unrecognized_opts"; then
1219  case $enable_option_checking in
1220    no) ;;
1221    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1222    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1223  esac
1224fi
1225
1226# Check all directory arguments for consistency.
1227for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1228		datadir sysconfdir sharedstatedir localstatedir includedir \
1229		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1230		libdir localedir mandir
1231do
1232  eval ac_val=\$$ac_var
1233  # Remove trailing slashes.
1234  case $ac_val in
1235    */ )
1236      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1237      eval $ac_var=\$ac_val;;
1238  esac
1239  # Be sure to have absolute directory names.
1240  case $ac_val in
1241    [\\/$]* | ?:[\\/]* )  continue;;
1242    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1243  esac
1244  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1245done
1246
1247# There might be people who depend on the old broken behavior: `$host'
1248# used to hold the argument of --host etc.
1249# FIXME: To remove some day.
1250build=$build_alias
1251host=$host_alias
1252target=$target_alias
1253
1254# FIXME: To remove some day.
1255if test "x$host_alias" != x; then
1256  if test "x$build_alias" = x; then
1257    cross_compiling=maybe
1258  elif test "x$build_alias" != "x$host_alias"; then
1259    cross_compiling=yes
1260  fi
1261fi
1262
1263ac_tool_prefix=
1264test -n "$host_alias" && ac_tool_prefix=$host_alias-
1265
1266test "$silent" = yes && exec 6>/dev/null
1267
1268
1269ac_pwd=`pwd` && test -n "$ac_pwd" &&
1270ac_ls_di=`ls -di .` &&
1271ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1272  as_fn_error $? "working directory cannot be determined"
1273test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1274  as_fn_error $? "pwd does not report name of working directory"
1275
1276
1277# Find the source files, if location was not specified.
1278if test -z "$srcdir"; then
1279  ac_srcdir_defaulted=yes
1280  # Try the directory containing this script, then the parent directory.
1281  ac_confdir=`$as_dirname -- "$as_myself" ||
1282$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1283	 X"$as_myself" : 'X\(//\)[^/]' \| \
1284	 X"$as_myself" : 'X\(//\)$' \| \
1285	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1286$as_echo X"$as_myself" |
1287    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1288	    s//\1/
1289	    q
1290	  }
1291	  /^X\(\/\/\)[^/].*/{
1292	    s//\1/
1293	    q
1294	  }
1295	  /^X\(\/\/\)$/{
1296	    s//\1/
1297	    q
1298	  }
1299	  /^X\(\/\).*/{
1300	    s//\1/
1301	    q
1302	  }
1303	  s/.*/./; q'`
1304  srcdir=$ac_confdir
1305  if test ! -r "$srcdir/$ac_unique_file"; then
1306    srcdir=..
1307  fi
1308else
1309  ac_srcdir_defaulted=no
1310fi
1311if test ! -r "$srcdir/$ac_unique_file"; then
1312  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1313  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1314fi
1315ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1316ac_abs_confdir=`(
1317	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1318	pwd)`
1319# When building in place, set srcdir=.
1320if test "$ac_abs_confdir" = "$ac_pwd"; then
1321  srcdir=.
1322fi
1323# Remove unnecessary trailing slashes from srcdir.
1324# Double slashes in file names in object file debugging info
1325# mess up M-x gdb in Emacs.
1326case $srcdir in
1327*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1328esac
1329for ac_var in $ac_precious_vars; do
1330  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1331  eval ac_env_${ac_var}_value=\$${ac_var}
1332  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1333  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1334done
1335
1336#
1337# Report the --help message.
1338#
1339if test "$ac_init_help" = "long"; then
1340  # Omit some internal or obsolete options to make the list less imposing.
1341  # This message is too long to be a string in the A/UX 3.1 sh.
1342  cat <<_ACEOF
1343\`configure' configures adasockets 1.12 to adapt to many kinds of systems.
1344
1345Usage: $0 [OPTION]... [VAR=VALUE]...
1346
1347To assign environment variables (e.g., CC, CFLAGS...), specify them as
1348VAR=VALUE.  See below for descriptions of some of the useful variables.
1349
1350Defaults for the options are specified in brackets.
1351
1352Configuration:
1353  -h, --help              display this help and exit
1354      --help=short        display options specific to this package
1355      --help=recursive    display the short help of all the included packages
1356  -V, --version           display version information and exit
1357  -q, --quiet, --silent   do not print \`checking ...' messages
1358      --cache-file=FILE   cache test results in FILE [disabled]
1359  -C, --config-cache      alias for \`--cache-file=config.cache'
1360  -n, --no-create         do not create output files
1361      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1362
1363Installation directories:
1364  --prefix=PREFIX         install architecture-independent files in PREFIX
1365                          [$ac_default_prefix]
1366  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1367                          [PREFIX]
1368
1369By default, \`make install' will install all the files in
1370\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1371an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1372for instance \`--prefix=\$HOME'.
1373
1374For better control, use the options below.
1375
1376Fine tuning of the installation directories:
1377  --bindir=DIR            user executables [EPREFIX/bin]
1378  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1379  --libexecdir=DIR        program executables [EPREFIX/libexec]
1380  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1381  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1382  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1383  --libdir=DIR            object code libraries [EPREFIX/lib]
1384  --includedir=DIR        C header files [PREFIX/include]
1385  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1386  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1387  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1388  --infodir=DIR           info documentation [DATAROOTDIR/info]
1389  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1390  --mandir=DIR            man documentation [DATAROOTDIR/man]
1391  --docdir=DIR            documentation root [DATAROOTDIR/doc/adasockets]
1392  --htmldir=DIR           html documentation [DOCDIR]
1393  --dvidir=DIR            dvi documentation [DOCDIR]
1394  --pdfdir=DIR            pdf documentation [DOCDIR]
1395  --psdir=DIR             ps documentation [DOCDIR]
1396_ACEOF
1397
1398  cat <<\_ACEOF
1399
1400Program names:
1401  --program-prefix=PREFIX            prepend PREFIX to installed program names
1402  --program-suffix=SUFFIX            append SUFFIX to installed program names
1403  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1404
1405System types:
1406  --build=BUILD     configure for building on BUILD [guessed]
1407  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1408_ACEOF
1409fi
1410
1411if test -n "$ac_init_help"; then
1412  case $ac_init_help in
1413     short | recursive ) echo "Configuration of adasockets 1.12:";;
1414   esac
1415  cat <<\_ACEOF
1416
1417Optional Features:
1418  --disable-option-checking  ignore unrecognized --enable/--with options
1419  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1420  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1421  --enable-silent-rules   less verbose build output (undo: "make V=1")
1422  --disable-silent-rules  verbose build output (undo: "make V=0")
1423  --enable-shared[=PKGS]  build shared libraries [default=yes]
1424  --enable-static[=PKGS]  build static libraries [default=yes]
1425  --enable-fast-install[=PKGS]
1426                          optimize for fast installation [default=yes]
1427  --enable-dependency-tracking
1428                          do not reject slow dependency extractors
1429  --disable-dependency-tracking
1430                          speeds up one-time build
1431  --disable-libtool-lock  avoid locking (might break parallel builds)
1432  --enable-maintainer-mode
1433                          turn on debugging options
1434  --disable-doc           do not build and install documentation
1435  --disable-examples      do not build and install examples
1436
1437Optional Packages:
1438  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1439  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1440  --with-libversion=VSN   Shared Object version for relocatable library
1441                          [1:0:0]
1442  --with-adasrcinstalldir=DIR
1443                          Ada sources go under DIR/adasockets [LIBDIR]
1444  --with-aliinstalldir=DIR
1445                          Ada Lib Info go under DIR/adasockets [LIBDIR]
1446  --with-gprinstalldir=DIR
1447                          GPRBuild project goes under DIR [DATADIR/gpr]
1448  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1449                          both]
1450  --with-aix-soname=aix|svr4|both
1451                          shared library versioning (aka "SONAME") variant to
1452                          provide on AIX, [default=aix].
1453  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1454  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1455                          compiler's sysroot if not specified).
1456  --with-extra-libs=libs  Add extra libraries when building a program
1457
1458Some influential environment variables:
1459  CC          C compiler command
1460  CFLAGS      C compiler flags
1461  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1462              nonstandard directory <lib dir>
1463  LIBS        libraries to pass to the linker, e.g. -l<library>
1464  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1465              you have headers in a nonstandard directory <include dir>
1466  LT_SYS_LIBRARY_PATH
1467              User-defined run-time library search path.
1468  CPP         C preprocessor
1469  ADAFLAGS    Ada compiler flags
1470
1471Use these variables to override the choices made by `configure' or to help
1472it to find libraries and programs with nonstandard names/locations.
1473
1474Report bugs to the package provider.
1475_ACEOF
1476ac_status=$?
1477fi
1478
1479if test "$ac_init_help" = "recursive"; then
1480  # If there are subdirs, report their specific --help.
1481  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1482    test -d "$ac_dir" ||
1483      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1484      continue
1485    ac_builddir=.
1486
1487case "$ac_dir" in
1488.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1489*)
1490  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1491  # A ".." for each directory in $ac_dir_suffix.
1492  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1493  case $ac_top_builddir_sub in
1494  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1496  esac ;;
1497esac
1498ac_abs_top_builddir=$ac_pwd
1499ac_abs_builddir=$ac_pwd$ac_dir_suffix
1500# for backward compatibility:
1501ac_top_builddir=$ac_top_build_prefix
1502
1503case $srcdir in
1504  .)  # We are building in place.
1505    ac_srcdir=.
1506    ac_top_srcdir=$ac_top_builddir_sub
1507    ac_abs_top_srcdir=$ac_pwd ;;
1508  [\\/]* | ?:[\\/]* )  # Absolute name.
1509    ac_srcdir=$srcdir$ac_dir_suffix;
1510    ac_top_srcdir=$srcdir
1511    ac_abs_top_srcdir=$srcdir ;;
1512  *) # Relative name.
1513    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1514    ac_top_srcdir=$ac_top_build_prefix$srcdir
1515    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1516esac
1517ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1518
1519    cd "$ac_dir" || { ac_status=$?; continue; }
1520    # Check for guested configure.
1521    if test -f "$ac_srcdir/configure.gnu"; then
1522      echo &&
1523      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1524    elif test -f "$ac_srcdir/configure"; then
1525      echo &&
1526      $SHELL "$ac_srcdir/configure" --help=recursive
1527    else
1528      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1529    fi || ac_status=$?
1530    cd "$ac_pwd" || { ac_status=$?; break; }
1531  done
1532fi
1533
1534test -n "$ac_init_help" && exit $ac_status
1535if $ac_init_version; then
1536  cat <<\_ACEOF
1537adasockets configure 1.12
1538generated by GNU Autoconf 2.69
1539
1540Copyright (C) 2012 Free Software Foundation, Inc.
1541This configure script is free software; the Free Software Foundation
1542gives unlimited permission to copy, distribute and modify it.
1543_ACEOF
1544  exit
1545fi
1546
1547## ------------------------ ##
1548## Autoconf initialization. ##
1549## ------------------------ ##
1550
1551# ac_fn_c_try_compile LINENO
1552# --------------------------
1553# Try to compile conftest.$ac_ext, and return whether this succeeded.
1554ac_fn_c_try_compile ()
1555{
1556  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1557  rm -f conftest.$ac_objext
1558  if { { ac_try="$ac_compile"
1559case "(($ac_try" in
1560  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1561  *) ac_try_echo=$ac_try;;
1562esac
1563eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1564$as_echo "$ac_try_echo"; } >&5
1565  (eval "$ac_compile") 2>conftest.err
1566  ac_status=$?
1567  if test -s conftest.err; then
1568    grep -v '^ *+' conftest.err >conftest.er1
1569    cat conftest.er1 >&5
1570    mv -f conftest.er1 conftest.err
1571  fi
1572  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1573  test $ac_status = 0; } && {
1574	 test -z "$ac_c_werror_flag" ||
1575	 test ! -s conftest.err
1576       } && test -s conftest.$ac_objext; then :
1577  ac_retval=0
1578else
1579  $as_echo "$as_me: failed program was:" >&5
1580sed 's/^/| /' conftest.$ac_ext >&5
1581
1582	ac_retval=1
1583fi
1584  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1585  as_fn_set_status $ac_retval
1586
1587} # ac_fn_c_try_compile
1588
1589# ac_fn_c_try_link LINENO
1590# -----------------------
1591# Try to link conftest.$ac_ext, and return whether this succeeded.
1592ac_fn_c_try_link ()
1593{
1594  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1595  rm -f conftest.$ac_objext conftest$ac_exeext
1596  if { { ac_try="$ac_link"
1597case "(($ac_try" in
1598  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1599  *) ac_try_echo=$ac_try;;
1600esac
1601eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1602$as_echo "$ac_try_echo"; } >&5
1603  (eval "$ac_link") 2>conftest.err
1604  ac_status=$?
1605  if test -s conftest.err; then
1606    grep -v '^ *+' conftest.err >conftest.er1
1607    cat conftest.er1 >&5
1608    mv -f conftest.er1 conftest.err
1609  fi
1610  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1611  test $ac_status = 0; } && {
1612	 test -z "$ac_c_werror_flag" ||
1613	 test ! -s conftest.err
1614       } && test -s conftest$ac_exeext && {
1615	 test "$cross_compiling" = yes ||
1616	 test -x conftest$ac_exeext
1617       }; then :
1618  ac_retval=0
1619else
1620  $as_echo "$as_me: failed program was:" >&5
1621sed 's/^/| /' conftest.$ac_ext >&5
1622
1623	ac_retval=1
1624fi
1625  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1626  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1627  # interfere with the next link command; also delete a directory that is
1628  # left behind by Apple's compiler.  We do this before executing the actions.
1629  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1630  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1631  as_fn_set_status $ac_retval
1632
1633} # ac_fn_c_try_link
1634
1635# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1636# -------------------------------------------------------
1637# Tests whether HEADER exists and can be compiled using the include files in
1638# INCLUDES, setting the cache variable VAR accordingly.
1639ac_fn_c_check_header_compile ()
1640{
1641  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1643$as_echo_n "checking for $2... " >&6; }
1644if eval \${$3+:} false; then :
1645  $as_echo_n "(cached) " >&6
1646else
1647  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1648/* end confdefs.h.  */
1649$4
1650#include <$2>
1651_ACEOF
1652if ac_fn_c_try_compile "$LINENO"; then :
1653  eval "$3=yes"
1654else
1655  eval "$3=no"
1656fi
1657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1658fi
1659eval ac_res=\$$3
1660	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1661$as_echo "$ac_res" >&6; }
1662  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1663
1664} # ac_fn_c_check_header_compile
1665
1666# ac_fn_c_try_cpp LINENO
1667# ----------------------
1668# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1669ac_fn_c_try_cpp ()
1670{
1671  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1672  if { { ac_try="$ac_cpp conftest.$ac_ext"
1673case "(($ac_try" in
1674  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1675  *) ac_try_echo=$ac_try;;
1676esac
1677eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1678$as_echo "$ac_try_echo"; } >&5
1679  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1680  ac_status=$?
1681  if test -s conftest.err; then
1682    grep -v '^ *+' conftest.err >conftest.er1
1683    cat conftest.er1 >&5
1684    mv -f conftest.er1 conftest.err
1685  fi
1686  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1687  test $ac_status = 0; } > conftest.i && {
1688	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1689	 test ! -s conftest.err
1690       }; then :
1691  ac_retval=0
1692else
1693  $as_echo "$as_me: failed program was:" >&5
1694sed 's/^/| /' conftest.$ac_ext >&5
1695
1696    ac_retval=1
1697fi
1698  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1699  as_fn_set_status $ac_retval
1700
1701} # ac_fn_c_try_cpp
1702
1703# ac_fn_c_try_run LINENO
1704# ----------------------
1705# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1706# that executables *can* be run.
1707ac_fn_c_try_run ()
1708{
1709  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710  if { { ac_try="$ac_link"
1711case "(($ac_try" in
1712  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1713  *) ac_try_echo=$ac_try;;
1714esac
1715eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1716$as_echo "$ac_try_echo"; } >&5
1717  (eval "$ac_link") 2>&5
1718  ac_status=$?
1719  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1720  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1721  { { case "(($ac_try" in
1722  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723  *) ac_try_echo=$ac_try;;
1724esac
1725eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726$as_echo "$ac_try_echo"; } >&5
1727  (eval "$ac_try") 2>&5
1728  ac_status=$?
1729  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730  test $ac_status = 0; }; }; then :
1731  ac_retval=0
1732else
1733  $as_echo "$as_me: program exited with status $ac_status" >&5
1734       $as_echo "$as_me: failed program was:" >&5
1735sed 's/^/| /' conftest.$ac_ext >&5
1736
1737       ac_retval=$ac_status
1738fi
1739  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1740  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1741  as_fn_set_status $ac_retval
1742
1743} # ac_fn_c_try_run
1744
1745# ac_fn_c_check_func LINENO FUNC VAR
1746# ----------------------------------
1747# Tests whether FUNC exists, setting the cache variable VAR accordingly
1748ac_fn_c_check_func ()
1749{
1750  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1752$as_echo_n "checking for $2... " >&6; }
1753if eval \${$3+:} false; then :
1754  $as_echo_n "(cached) " >&6
1755else
1756  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1757/* end confdefs.h.  */
1758/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1759   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1760#define $2 innocuous_$2
1761
1762/* System header to define __stub macros and hopefully few prototypes,
1763    which can conflict with char $2 (); below.
1764    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1765    <limits.h> exists even on freestanding compilers.  */
1766
1767#ifdef __STDC__
1768# include <limits.h>
1769#else
1770# include <assert.h>
1771#endif
1772
1773#undef $2
1774
1775/* Override any GCC internal prototype to avoid an error.
1776   Use char because int might match the return type of a GCC
1777   builtin and then its argument prototype would still apply.  */
1778#ifdef __cplusplus
1779extern "C"
1780#endif
1781char $2 ();
1782/* The GNU C library defines this for functions which it implements
1783    to always fail with ENOSYS.  Some functions are actually named
1784    something starting with __ and the normal name is an alias.  */
1785#if defined __stub_$2 || defined __stub___$2
1786choke me
1787#endif
1788
1789int
1790main ()
1791{
1792return $2 ();
1793  ;
1794  return 0;
1795}
1796_ACEOF
1797if ac_fn_c_try_link "$LINENO"; then :
1798  eval "$3=yes"
1799else
1800  eval "$3=no"
1801fi
1802rm -f core conftest.err conftest.$ac_objext \
1803    conftest$ac_exeext conftest.$ac_ext
1804fi
1805eval ac_res=\$$3
1806	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1807$as_echo "$ac_res" >&6; }
1808  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1809
1810} # ac_fn_c_check_func
1811
1812# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1813# -------------------------------------------------------
1814# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1815# the include files in INCLUDES and setting the cache variable VAR
1816# accordingly.
1817ac_fn_c_check_header_mongrel ()
1818{
1819  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820  if eval \${$3+:} false; then :
1821  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1822$as_echo_n "checking for $2... " >&6; }
1823if eval \${$3+:} false; then :
1824  $as_echo_n "(cached) " >&6
1825fi
1826eval ac_res=\$$3
1827	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1828$as_echo "$ac_res" >&6; }
1829else
1830  # Is the header compilable?
1831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1832$as_echo_n "checking $2 usability... " >&6; }
1833cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1834/* end confdefs.h.  */
1835$4
1836#include <$2>
1837_ACEOF
1838if ac_fn_c_try_compile "$LINENO"; then :
1839  ac_header_compiler=yes
1840else
1841  ac_header_compiler=no
1842fi
1843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1845$as_echo "$ac_header_compiler" >&6; }
1846
1847# Is the header present?
1848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1849$as_echo_n "checking $2 presence... " >&6; }
1850cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1851/* end confdefs.h.  */
1852#include <$2>
1853_ACEOF
1854if ac_fn_c_try_cpp "$LINENO"; then :
1855  ac_header_preproc=yes
1856else
1857  ac_header_preproc=no
1858fi
1859rm -f conftest.err conftest.i conftest.$ac_ext
1860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1861$as_echo "$ac_header_preproc" >&6; }
1862
1863# So?  What about this header?
1864case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1865  yes:no: )
1866    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1867$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1868    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1869$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1870    ;;
1871  no:yes:* )
1872    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1873$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1874    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1875$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1876    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1877$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1878    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1879$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1880    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1881$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1882    ;;
1883esac
1884  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1885$as_echo_n "checking for $2... " >&6; }
1886if eval \${$3+:} false; then :
1887  $as_echo_n "(cached) " >&6
1888else
1889  eval "$3=\$ac_header_compiler"
1890fi
1891eval ac_res=\$$3
1892	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1893$as_echo "$ac_res" >&6; }
1894fi
1895  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1896
1897} # ac_fn_c_check_header_mongrel
1898
1899# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1900# ----------------------------------------------------
1901# Tries to find if the field MEMBER exists in type AGGR, after including
1902# INCLUDES, setting cache variable VAR accordingly.
1903ac_fn_c_check_member ()
1904{
1905  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1906  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1907$as_echo_n "checking for $2.$3... " >&6; }
1908if eval \${$4+:} false; then :
1909  $as_echo_n "(cached) " >&6
1910else
1911  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1912/* end confdefs.h.  */
1913$5
1914int
1915main ()
1916{
1917static $2 ac_aggr;
1918if (ac_aggr.$3)
1919return 0;
1920  ;
1921  return 0;
1922}
1923_ACEOF
1924if ac_fn_c_try_compile "$LINENO"; then :
1925  eval "$4=yes"
1926else
1927  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1928/* end confdefs.h.  */
1929$5
1930int
1931main ()
1932{
1933static $2 ac_aggr;
1934if (sizeof ac_aggr.$3)
1935return 0;
1936  ;
1937  return 0;
1938}
1939_ACEOF
1940if ac_fn_c_try_compile "$LINENO"; then :
1941  eval "$4=yes"
1942else
1943  eval "$4=no"
1944fi
1945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1946fi
1947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1948fi
1949eval ac_res=\$$4
1950	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1951$as_echo "$ac_res" >&6; }
1952  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1953
1954} # ac_fn_c_check_member
1955cat >config.log <<_ACEOF
1956This file contains any messages produced by compilers while
1957running configure, to aid debugging if configure makes a mistake.
1958
1959It was created by adasockets $as_me 1.12, which was
1960generated by GNU Autoconf 2.69.  Invocation command line was
1961
1962  $ $0 $@
1963
1964_ACEOF
1965exec 5>>config.log
1966{
1967cat <<_ASUNAME
1968## --------- ##
1969## Platform. ##
1970## --------- ##
1971
1972hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1973uname -m = `(uname -m) 2>/dev/null || echo unknown`
1974uname -r = `(uname -r) 2>/dev/null || echo unknown`
1975uname -s = `(uname -s) 2>/dev/null || echo unknown`
1976uname -v = `(uname -v) 2>/dev/null || echo unknown`
1977
1978/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1979/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1980
1981/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1982/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1983/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1984/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1985/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1986/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1987/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1988
1989_ASUNAME
1990
1991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1992for as_dir in $PATH
1993do
1994  IFS=$as_save_IFS
1995  test -z "$as_dir" && as_dir=.
1996    $as_echo "PATH: $as_dir"
1997  done
1998IFS=$as_save_IFS
1999
2000} >&5
2001
2002cat >&5 <<_ACEOF
2003
2004
2005## ----------- ##
2006## Core tests. ##
2007## ----------- ##
2008
2009_ACEOF
2010
2011
2012# Keep a trace of the command line.
2013# Strip out --no-create and --no-recursion so they do not pile up.
2014# Strip out --silent because we don't want to record it for future runs.
2015# Also quote any args containing shell meta-characters.
2016# Make two passes to allow for proper duplicate-argument suppression.
2017ac_configure_args=
2018ac_configure_args0=
2019ac_configure_args1=
2020ac_must_keep_next=false
2021for ac_pass in 1 2
2022do
2023  for ac_arg
2024  do
2025    case $ac_arg in
2026    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2027    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2028    | -silent | --silent | --silen | --sile | --sil)
2029      continue ;;
2030    *\'*)
2031      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2032    esac
2033    case $ac_pass in
2034    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2035    2)
2036      as_fn_append ac_configure_args1 " '$ac_arg'"
2037      if test $ac_must_keep_next = true; then
2038	ac_must_keep_next=false # Got value, back to normal.
2039      else
2040	case $ac_arg in
2041	  *=* | --config-cache | -C | -disable-* | --disable-* \
2042	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2043	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2044	  | -with-* | --with-* | -without-* | --without-* | --x)
2045	    case "$ac_configure_args0 " in
2046	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2047	    esac
2048	    ;;
2049	  -* ) ac_must_keep_next=true ;;
2050	esac
2051      fi
2052      as_fn_append ac_configure_args " '$ac_arg'"
2053      ;;
2054    esac
2055  done
2056done
2057{ ac_configure_args0=; unset ac_configure_args0;}
2058{ ac_configure_args1=; unset ac_configure_args1;}
2059
2060# When interrupted or exit'd, cleanup temporary files, and complete
2061# config.log.  We remove comments because anyway the quotes in there
2062# would cause problems or look ugly.
2063# WARNING: Use '\'' to represent an apostrophe within the trap.
2064# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2065trap 'exit_status=$?
2066  # Save into config.log some information that might help in debugging.
2067  {
2068    echo
2069
2070    $as_echo "## ---------------- ##
2071## Cache variables. ##
2072## ---------------- ##"
2073    echo
2074    # The following way of writing the cache mishandles newlines in values,
2075(
2076  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2077    eval ac_val=\$$ac_var
2078    case $ac_val in #(
2079    *${as_nl}*)
2080      case $ac_var in #(
2081      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2082$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2083      esac
2084      case $ac_var in #(
2085      _ | IFS | as_nl) ;; #(
2086      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2087      *) { eval $ac_var=; unset $ac_var;} ;;
2088      esac ;;
2089    esac
2090  done
2091  (set) 2>&1 |
2092    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2093    *${as_nl}ac_space=\ *)
2094      sed -n \
2095	"s/'\''/'\''\\\\'\'''\''/g;
2096	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2097      ;; #(
2098    *)
2099      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2100      ;;
2101    esac |
2102    sort
2103)
2104    echo
2105
2106    $as_echo "## ----------------- ##
2107## Output variables. ##
2108## ----------------- ##"
2109    echo
2110    for ac_var in $ac_subst_vars
2111    do
2112      eval ac_val=\$$ac_var
2113      case $ac_val in
2114      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2115      esac
2116      $as_echo "$ac_var='\''$ac_val'\''"
2117    done | sort
2118    echo
2119
2120    if test -n "$ac_subst_files"; then
2121      $as_echo "## ------------------- ##
2122## File substitutions. ##
2123## ------------------- ##"
2124      echo
2125      for ac_var in $ac_subst_files
2126      do
2127	eval ac_val=\$$ac_var
2128	case $ac_val in
2129	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2130	esac
2131	$as_echo "$ac_var='\''$ac_val'\''"
2132      done | sort
2133      echo
2134    fi
2135
2136    if test -s confdefs.h; then
2137      $as_echo "## ----------- ##
2138## confdefs.h. ##
2139## ----------- ##"
2140      echo
2141      cat confdefs.h
2142      echo
2143    fi
2144    test "$ac_signal" != 0 &&
2145      $as_echo "$as_me: caught signal $ac_signal"
2146    $as_echo "$as_me: exit $exit_status"
2147  } >&5
2148  rm -f core *.core core.conftest.* &&
2149    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2150    exit $exit_status
2151' 0
2152for ac_signal in 1 2 13 15; do
2153  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2154done
2155ac_signal=0
2156
2157# confdefs.h avoids OS command line length limits that DEFS can exceed.
2158rm -f -r conftest* confdefs.h
2159
2160$as_echo "/* confdefs.h */" > confdefs.h
2161
2162# Predefined preprocessor variables.
2163
2164cat >>confdefs.h <<_ACEOF
2165#define PACKAGE_NAME "$PACKAGE_NAME"
2166_ACEOF
2167
2168cat >>confdefs.h <<_ACEOF
2169#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2170_ACEOF
2171
2172cat >>confdefs.h <<_ACEOF
2173#define PACKAGE_VERSION "$PACKAGE_VERSION"
2174_ACEOF
2175
2176cat >>confdefs.h <<_ACEOF
2177#define PACKAGE_STRING "$PACKAGE_STRING"
2178_ACEOF
2179
2180cat >>confdefs.h <<_ACEOF
2181#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2182_ACEOF
2183
2184cat >>confdefs.h <<_ACEOF
2185#define PACKAGE_URL "$PACKAGE_URL"
2186_ACEOF
2187
2188
2189# Let the site file select an alternate cache file if it wants to.
2190# Prefer an explicitly selected file to automatically selected ones.
2191ac_site_file1=NONE
2192ac_site_file2=NONE
2193if test -n "$CONFIG_SITE"; then
2194  # We do not want a PATH search for config.site.
2195  case $CONFIG_SITE in #((
2196    -*)  ac_site_file1=./$CONFIG_SITE;;
2197    */*) ac_site_file1=$CONFIG_SITE;;
2198    *)   ac_site_file1=./$CONFIG_SITE;;
2199  esac
2200elif test "x$prefix" != xNONE; then
2201  ac_site_file1=$prefix/share/config.site
2202  ac_site_file2=$prefix/etc/config.site
2203else
2204  ac_site_file1=$ac_default_prefix/share/config.site
2205  ac_site_file2=$ac_default_prefix/etc/config.site
2206fi
2207for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2208do
2209  test "x$ac_site_file" = xNONE && continue
2210  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2211    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2212$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2213    sed 's/^/| /' "$ac_site_file" >&5
2214    . "$ac_site_file" \
2215      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2216$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2217as_fn_error $? "failed to load site script $ac_site_file
2218See \`config.log' for more details" "$LINENO" 5; }
2219  fi
2220done
2221
2222if test -r "$cache_file"; then
2223  # Some versions of bash will fail to source /dev/null (special files
2224  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2225  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2226    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2227$as_echo "$as_me: loading cache $cache_file" >&6;}
2228    case $cache_file in
2229      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2230      *)                      . "./$cache_file";;
2231    esac
2232  fi
2233else
2234  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2235$as_echo "$as_me: creating cache $cache_file" >&6;}
2236  >$cache_file
2237fi
2238
2239# Check that the precious variables saved in the cache have kept the same
2240# value.
2241ac_cache_corrupted=false
2242for ac_var in $ac_precious_vars; do
2243  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2244  eval ac_new_set=\$ac_env_${ac_var}_set
2245  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2246  eval ac_new_val=\$ac_env_${ac_var}_value
2247  case $ac_old_set,$ac_new_set in
2248    set,)
2249      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2250$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2251      ac_cache_corrupted=: ;;
2252    ,set)
2253      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2254$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2255      ac_cache_corrupted=: ;;
2256    ,);;
2257    *)
2258      if test "x$ac_old_val" != "x$ac_new_val"; then
2259	# differences in whitespace do not lead to failure.
2260	ac_old_val_w=`echo x $ac_old_val`
2261	ac_new_val_w=`echo x $ac_new_val`
2262	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2263	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2264$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2265	  ac_cache_corrupted=:
2266	else
2267	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2268$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2269	  eval $ac_var=\$ac_old_val
2270	fi
2271	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2272$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2273	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2274$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2275      fi;;
2276  esac
2277  # Pass precious variables to config.status.
2278  if test "$ac_new_set" = set; then
2279    case $ac_new_val in
2280    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2281    *) ac_arg=$ac_var=$ac_new_val ;;
2282    esac
2283    case " $ac_configure_args " in
2284      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2285      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2286    esac
2287  fi
2288done
2289if $ac_cache_corrupted; then
2290  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2291$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2292  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2293$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2294  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2295fi
2296## -------------------- ##
2297## Main body of script. ##
2298## -------------------- ##
2299
2300ac_ext=c
2301ac_cpp='$CPP $CPPFLAGS'
2302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2304ac_compiler_gnu=$ac_cv_c_compiler_gnu
2305
2306
2307
2308ac_aux_dir=
2309for ac_dir in support "$srcdir"/support; do
2310  if test -f "$ac_dir/install-sh"; then
2311    ac_aux_dir=$ac_dir
2312    ac_install_sh="$ac_aux_dir/install-sh -c"
2313    break
2314  elif test -f "$ac_dir/install.sh"; then
2315    ac_aux_dir=$ac_dir
2316    ac_install_sh="$ac_aux_dir/install.sh -c"
2317    break
2318  elif test -f "$ac_dir/shtool"; then
2319    ac_aux_dir=$ac_dir
2320    ac_install_sh="$ac_aux_dir/shtool install -c"
2321    break
2322  fi
2323done
2324if test -z "$ac_aux_dir"; then
2325  as_fn_error $? "cannot find install-sh, install.sh, or shtool in support \"$srcdir\"/support" "$LINENO" 5
2326fi
2327
2328# These three variables are undocumented and unsupported,
2329# and are intended to be withdrawn in a future Autoconf release.
2330# They can cause serious problems if a builder's source tree is in a directory
2331# whose full name contains unusual characters.
2332ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2333ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2334ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2335
2336
2337
2338am__api_version='1.16'
2339
2340# Find a good install program.  We prefer a C program (faster),
2341# so one script is as good as another.  But avoid the broken or
2342# incompatible versions:
2343# SysV /etc/install, /usr/sbin/install
2344# SunOS /usr/etc/install
2345# IRIX /sbin/install
2346# AIX /bin/install
2347# AmigaOS /C/install, which installs bootblocks on floppy discs
2348# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2349# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2350# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2351# OS/2's system install, which has a completely different semantic
2352# ./install, which can be erroneously created by make from ./install.sh.
2353# Reject install programs that cannot install multiple files.
2354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2355$as_echo_n "checking for a BSD-compatible install... " >&6; }
2356if test -z "$INSTALL"; then
2357if ${ac_cv_path_install+:} false; then :
2358  $as_echo_n "(cached) " >&6
2359else
2360  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2361for as_dir in $PATH
2362do
2363  IFS=$as_save_IFS
2364  test -z "$as_dir" && as_dir=.
2365    # Account for people who put trailing slashes in PATH elements.
2366case $as_dir/ in #((
2367  ./ | .// | /[cC]/* | \
2368  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2369  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2370  /usr/ucb/* ) ;;
2371  *)
2372    # OSF1 and SCO ODT 3.0 have their own names for install.
2373    # Don't use installbsd from OSF since it installs stuff as root
2374    # by default.
2375    for ac_prog in ginstall scoinst install; do
2376      for ac_exec_ext in '' $ac_executable_extensions; do
2377	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2378	  if test $ac_prog = install &&
2379	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2380	    # AIX install.  It has an incompatible calling convention.
2381	    :
2382	  elif test $ac_prog = install &&
2383	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2384	    # program-specific install script used by HP pwplus--don't use.
2385	    :
2386	  else
2387	    rm -rf conftest.one conftest.two conftest.dir
2388	    echo one > conftest.one
2389	    echo two > conftest.two
2390	    mkdir conftest.dir
2391	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2392	      test -s conftest.one && test -s conftest.two &&
2393	      test -s conftest.dir/conftest.one &&
2394	      test -s conftest.dir/conftest.two
2395	    then
2396	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2397	      break 3
2398	    fi
2399	  fi
2400	fi
2401      done
2402    done
2403    ;;
2404esac
2405
2406  done
2407IFS=$as_save_IFS
2408
2409rm -rf conftest.one conftest.two conftest.dir
2410
2411fi
2412  if test "${ac_cv_path_install+set}" = set; then
2413    INSTALL=$ac_cv_path_install
2414  else
2415    # As a last resort, use the slow shell script.  Don't cache a
2416    # value for INSTALL within a source directory, because that will
2417    # break other packages using the cache if that directory is
2418    # removed, or if the value is a relative name.
2419    INSTALL=$ac_install_sh
2420  fi
2421fi
2422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2423$as_echo "$INSTALL" >&6; }
2424
2425# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2426# It thinks the first close brace ends the variable substitution.
2427test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2428
2429test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2430
2431test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2432
2433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2434$as_echo_n "checking whether build environment is sane... " >&6; }
2435# Reject unsafe characters in $srcdir or the absolute working directory
2436# name.  Accept space and tab only in the latter.
2437am_lf='
2438'
2439case `pwd` in
2440  *[\\\"\#\$\&\'\`$am_lf]*)
2441    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2442esac
2443case $srcdir in
2444  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2445    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2446esac
2447
2448# Do 'set' in a subshell so we don't clobber the current shell's
2449# arguments.  Must try -L first in case configure is actually a
2450# symlink; some systems play weird games with the mod time of symlinks
2451# (eg FreeBSD returns the mod time of the symlink's containing
2452# directory).
2453if (
2454   am_has_slept=no
2455   for am_try in 1 2; do
2456     echo "timestamp, slept: $am_has_slept" > conftest.file
2457     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2458     if test "$*" = "X"; then
2459	# -L didn't work.
2460	set X `ls -t "$srcdir/configure" conftest.file`
2461     fi
2462     if test "$*" != "X $srcdir/configure conftest.file" \
2463	&& test "$*" != "X conftest.file $srcdir/configure"; then
2464
2465	# If neither matched, then we have a broken ls.  This can happen
2466	# if, for instance, CONFIG_SHELL is bash and it inherits a
2467	# broken ls alias from the environment.  This has actually
2468	# happened.  Such a system could not be considered "sane".
2469	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2470  alias in your environment" "$LINENO" 5
2471     fi
2472     if test "$2" = conftest.file || test $am_try -eq 2; then
2473       break
2474     fi
2475     # Just in case.
2476     sleep 1
2477     am_has_slept=yes
2478   done
2479   test "$2" = conftest.file
2480   )
2481then
2482   # Ok.
2483   :
2484else
2485   as_fn_error $? "newly created file is older than distributed files!
2486Check your system clock" "$LINENO" 5
2487fi
2488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2489$as_echo "yes" >&6; }
2490# If we didn't sleep, we still need to ensure time stamps of config.status and
2491# generated files are strictly newer.
2492am_sleep_pid=
2493if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2494  ( sleep 1 ) &
2495  am_sleep_pid=$!
2496fi
2497
2498rm -f conftest.file
2499
2500test "$program_prefix" != NONE &&
2501  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2502# Use a double $ so make ignores it.
2503test "$program_suffix" != NONE &&
2504  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2505# Double any \ or $.
2506# By default was `s,x,x', remove it if useless.
2507ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2508program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2509
2510# Expand $ac_aux_dir to an absolute path.
2511am_aux_dir=`cd "$ac_aux_dir" && pwd`
2512
2513if test x"${MISSING+set}" != xset; then
2514  case $am_aux_dir in
2515  *\ * | *\	*)
2516    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2517  *)
2518    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2519  esac
2520fi
2521# Use eval to expand $SHELL
2522if eval "$MISSING --is-lightweight"; then
2523  am_missing_run="$MISSING "
2524else
2525  am_missing_run=
2526  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2527$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2528fi
2529
2530if test x"${install_sh+set}" != xset; then
2531  case $am_aux_dir in
2532  *\ * | *\	*)
2533    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2534  *)
2535    install_sh="\${SHELL} $am_aux_dir/install-sh"
2536  esac
2537fi
2538
2539# Installed binaries are usually stripped using 'strip' when the user
2540# run "make install-strip".  However 'strip' might not be the right
2541# tool to use in cross-compilation environments, therefore Automake
2542# will honor the 'STRIP' environment variable to overrule this program.
2543if test "$cross_compiling" != no; then
2544  if test -n "$ac_tool_prefix"; then
2545  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2546set dummy ${ac_tool_prefix}strip; ac_word=$2
2547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2548$as_echo_n "checking for $ac_word... " >&6; }
2549if ${ac_cv_prog_STRIP+:} false; then :
2550  $as_echo_n "(cached) " >&6
2551else
2552  if test -n "$STRIP"; then
2553  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2554else
2555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2556for as_dir in $PATH
2557do
2558  IFS=$as_save_IFS
2559  test -z "$as_dir" && as_dir=.
2560    for ac_exec_ext in '' $ac_executable_extensions; do
2561  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2562    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2563    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2564    break 2
2565  fi
2566done
2567  done
2568IFS=$as_save_IFS
2569
2570fi
2571fi
2572STRIP=$ac_cv_prog_STRIP
2573if test -n "$STRIP"; then
2574  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2575$as_echo "$STRIP" >&6; }
2576else
2577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2578$as_echo "no" >&6; }
2579fi
2580
2581
2582fi
2583if test -z "$ac_cv_prog_STRIP"; then
2584  ac_ct_STRIP=$STRIP
2585  # Extract the first word of "strip", so it can be a program name with args.
2586set dummy strip; ac_word=$2
2587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2588$as_echo_n "checking for $ac_word... " >&6; }
2589if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2590  $as_echo_n "(cached) " >&6
2591else
2592  if test -n "$ac_ct_STRIP"; then
2593  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2594else
2595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2596for as_dir in $PATH
2597do
2598  IFS=$as_save_IFS
2599  test -z "$as_dir" && as_dir=.
2600    for ac_exec_ext in '' $ac_executable_extensions; do
2601  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2602    ac_cv_prog_ac_ct_STRIP="strip"
2603    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2604    break 2
2605  fi
2606done
2607  done
2608IFS=$as_save_IFS
2609
2610fi
2611fi
2612ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2613if test -n "$ac_ct_STRIP"; then
2614  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2615$as_echo "$ac_ct_STRIP" >&6; }
2616else
2617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2618$as_echo "no" >&6; }
2619fi
2620
2621  if test "x$ac_ct_STRIP" = x; then
2622    STRIP=":"
2623  else
2624    case $cross_compiling:$ac_tool_warned in
2625yes:)
2626{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2627$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2628ac_tool_warned=yes ;;
2629esac
2630    STRIP=$ac_ct_STRIP
2631  fi
2632else
2633  STRIP="$ac_cv_prog_STRIP"
2634fi
2635
2636fi
2637INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2638
2639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2640$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2641if test -z "$MKDIR_P"; then
2642  if ${ac_cv_path_mkdir+:} false; then :
2643  $as_echo_n "(cached) " >&6
2644else
2645  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2646for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2647do
2648  IFS=$as_save_IFS
2649  test -z "$as_dir" && as_dir=.
2650    for ac_prog in mkdir gmkdir; do
2651	 for ac_exec_ext in '' $ac_executable_extensions; do
2652	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2653	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2654	     'mkdir (GNU coreutils) '* | \
2655	     'mkdir (coreutils) '* | \
2656	     'mkdir (fileutils) '4.1*)
2657	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2658	       break 3;;
2659	   esac
2660	 done
2661       done
2662  done
2663IFS=$as_save_IFS
2664
2665fi
2666
2667  test -d ./--version && rmdir ./--version
2668  if test "${ac_cv_path_mkdir+set}" = set; then
2669    MKDIR_P="$ac_cv_path_mkdir -p"
2670  else
2671    # As a last resort, use the slow shell script.  Don't cache a
2672    # value for MKDIR_P within a source directory, because that will
2673    # break other packages using the cache if that directory is
2674    # removed, or if the value is a relative name.
2675    MKDIR_P="$ac_install_sh -d"
2676  fi
2677fi
2678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2679$as_echo "$MKDIR_P" >&6; }
2680
2681for ac_prog in gawk mawk nawk awk
2682do
2683  # Extract the first word of "$ac_prog", so it can be a program name with args.
2684set dummy $ac_prog; ac_word=$2
2685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2686$as_echo_n "checking for $ac_word... " >&6; }
2687if ${ac_cv_prog_AWK+:} false; then :
2688  $as_echo_n "(cached) " >&6
2689else
2690  if test -n "$AWK"; then
2691  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2692else
2693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2694for as_dir in $PATH
2695do
2696  IFS=$as_save_IFS
2697  test -z "$as_dir" && as_dir=.
2698    for ac_exec_ext in '' $ac_executable_extensions; do
2699  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2700    ac_cv_prog_AWK="$ac_prog"
2701    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2702    break 2
2703  fi
2704done
2705  done
2706IFS=$as_save_IFS
2707
2708fi
2709fi
2710AWK=$ac_cv_prog_AWK
2711if test -n "$AWK"; then
2712  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2713$as_echo "$AWK" >&6; }
2714else
2715  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2716$as_echo "no" >&6; }
2717fi
2718
2719
2720  test -n "$AWK" && break
2721done
2722
2723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2724$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2725set x ${MAKE-make}
2726ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2727if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2728  $as_echo_n "(cached) " >&6
2729else
2730  cat >conftest.make <<\_ACEOF
2731SHELL = /bin/sh
2732all:
2733	@echo '@@@%%%=$(MAKE)=@@@%%%'
2734_ACEOF
2735# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2736case `${MAKE-make} -f conftest.make 2>/dev/null` in
2737  *@@@%%%=?*=@@@%%%*)
2738    eval ac_cv_prog_make_${ac_make}_set=yes;;
2739  *)
2740    eval ac_cv_prog_make_${ac_make}_set=no;;
2741esac
2742rm -f conftest.make
2743fi
2744if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2745  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2746$as_echo "yes" >&6; }
2747  SET_MAKE=
2748else
2749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2750$as_echo "no" >&6; }
2751  SET_MAKE="MAKE=${MAKE-make}"
2752fi
2753
2754rm -rf .tst 2>/dev/null
2755mkdir .tst 2>/dev/null
2756if test -d .tst; then
2757  am__leading_dot=.
2758else
2759  am__leading_dot=_
2760fi
2761rmdir .tst 2>/dev/null
2762
2763# Check whether --enable-silent-rules was given.
2764if test "${enable_silent_rules+set}" = set; then :
2765  enableval=$enable_silent_rules;
2766fi
2767
2768case $enable_silent_rules in # (((
2769  yes) AM_DEFAULT_VERBOSITY=0;;
2770   no) AM_DEFAULT_VERBOSITY=1;;
2771    *) AM_DEFAULT_VERBOSITY=1;;
2772esac
2773am_make=${MAKE-make}
2774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2775$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2776if ${am_cv_make_support_nested_variables+:} false; then :
2777  $as_echo_n "(cached) " >&6
2778else
2779  if $as_echo 'TRUE=$(BAR$(V))
2780BAR0=false
2781BAR1=true
2782V=1
2783am__doit:
2784	@$(TRUE)
2785.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2786  am_cv_make_support_nested_variables=yes
2787else
2788  am_cv_make_support_nested_variables=no
2789fi
2790fi
2791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2792$as_echo "$am_cv_make_support_nested_variables" >&6; }
2793if test $am_cv_make_support_nested_variables = yes; then
2794    AM_V='$(V)'
2795  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2796else
2797  AM_V=$AM_DEFAULT_VERBOSITY
2798  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2799fi
2800AM_BACKSLASH='\'
2801
2802if test "`cd $srcdir && pwd`" != "`pwd`"; then
2803  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2804  # is not polluted with repeated "-I."
2805  am__isrc=' -I$(srcdir)'
2806  # test to see if srcdir already configured
2807  if test -f $srcdir/config.status; then
2808    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2809  fi
2810fi
2811
2812# test whether we have cygpath
2813if test -z "$CYGPATH_W"; then
2814  if (cygpath --version) >/dev/null 2>/dev/null; then
2815    CYGPATH_W='cygpath -w'
2816  else
2817    CYGPATH_W=echo
2818  fi
2819fi
2820
2821
2822# Define the identity of the package.
2823 PACKAGE='adasockets'
2824 VERSION='1.12'
2825
2826
2827cat >>confdefs.h <<_ACEOF
2828#define PACKAGE "$PACKAGE"
2829_ACEOF
2830
2831
2832cat >>confdefs.h <<_ACEOF
2833#define VERSION "$VERSION"
2834_ACEOF
2835
2836# Some tools Automake needs.
2837
2838ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2839
2840
2841AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2842
2843
2844AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2845
2846
2847AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2848
2849
2850MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2851
2852# For better backward compatibility.  To be removed once Automake 1.9.x
2853# dies out for good.  For more background, see:
2854# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2855# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2856mkdir_p='$(MKDIR_P)'
2857
2858# We need awk for the "check" target (and possibly the TAP driver).  The
2859# system "awk" is bad on some platforms.
2860# Always define AMTAR for backward compatibility.  Yes, it's still used
2861# in the wild :-(  We should find a proper way to deprecate it ...
2862AMTAR='$${TAR-tar}'
2863
2864
2865# We'll loop over all known methods to create a tar archive until one works.
2866_am_tools='gnutar  pax cpio none'
2867
2868am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2869
2870
2871
2872
2873
2874
2875# POSIX will say in a future version that running "rm -f" with no argument
2876# is OK; and we want to be able to make that assumption in our Makefile
2877# recipes.  So use an aggressive probe to check that the usage we want is
2878# actually supported "in the wild" to an acceptable degree.
2879# See automake bug#10828.
2880# To make any issue more visible, cause the running configure to be aborted
2881# by default if the 'rm' program in use doesn't match our expectations; the
2882# user can still override this though.
2883if rm -f && rm -fr && rm -rf; then : OK; else
2884  cat >&2 <<'END'
2885Oops!
2886
2887Your 'rm' program seems unable to run without file operands specified
2888on the command line, even when the '-f' option is present.  This is contrary
2889to the behaviour of most rm programs out there, and not conforming with
2890the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2891
2892Please tell bug-automake@gnu.org about your system, including the value
2893of your $PATH and any error possibly output before this message.  This
2894can help us improve future automake versions.
2895
2896END
2897  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2898    echo 'Configuration will proceed anyway, since you have set the' >&2
2899    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2900    echo >&2
2901  else
2902    cat >&2 <<'END'
2903Aborting the configuration process, to ensure you take notice of the issue.
2904
2905You can download and install GNU coreutils to get an 'rm' implementation
2906that behaves properly: <https://www.gnu.org/software/coreutils/>.
2907
2908If you want to complete the configuration process using your problematic
2909'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2910to "yes", and re-run configure.
2911
2912END
2913    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2914  fi
2915fi
2916
2917ac_config_headers="$ac_config_headers src/config.h"
2918
2919#
2920# Package description
2921#
2922
2923# Check whether --with-libversioninfo was given.
2924if test "${with_libversioninfo+set}" = set; then :
2925  withval=$with_libversioninfo; LIBVERSIONINFO=$withval
2926else
2927  LIBVERSIONINFO=1:0:0
2928fi
2929
2930
2931#
2932
2933# Check whether --with-adasrcinstalldir was given.
2934if test "${with_adasrcinstalldir+set}" = set; then :
2935  withval=$with_adasrcinstalldir; ada_src_install_dir=$withval
2936else
2937  ada_src_install_dir='${libdir}'
2938fi
2939
2940
2941#
2942
2943# Check whether --with-aliinstalldir was given.
2944if test "${with_aliinstalldir+set}" = set; then :
2945  withval=$with_aliinstalldir; ali_install_dir=$withval
2946else
2947  ali_install_dir='${libdir}'
2948fi
2949
2950
2951#
2952
2953# Check whether --with-gprinstalldir was given.
2954if test "${with_gprinstalldir+set}" = set; then :
2955  withval=$with_gprinstalldir; gpr_install_dir=$withval
2956else
2957  gpr_install_dir='${datadir}/gpr'
2958fi
2959
2960
2961#
2962case `pwd` in
2963  *\ * | *\	*)
2964    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2965$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2966esac
2967
2968
2969
2970macro_version='2.4.6.42-b88ce-dirty'
2971macro_revision='2.4.6.42'
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985ltmain=$ac_aux_dir/ltmain.sh
2986
2987# Make sure we can run config.sub.
2988$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2989  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2990
2991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2992$as_echo_n "checking build system type... " >&6; }
2993if ${ac_cv_build+:} false; then :
2994  $as_echo_n "(cached) " >&6
2995else
2996  ac_build_alias=$build_alias
2997test "x$ac_build_alias" = x &&
2998  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2999test "x$ac_build_alias" = x &&
3000  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3001ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3002  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3003
3004fi
3005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3006$as_echo "$ac_cv_build" >&6; }
3007case $ac_cv_build in
3008*-*-*) ;;
3009*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3010esac
3011build=$ac_cv_build
3012ac_save_IFS=$IFS; IFS='-'
3013set x $ac_cv_build
3014shift
3015build_cpu=$1
3016build_vendor=$2
3017shift; shift
3018# Remember, the first character of IFS is used to create $*,
3019# except with old shells:
3020build_os=$*
3021IFS=$ac_save_IFS
3022case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3023
3024
3025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3026$as_echo_n "checking host system type... " >&6; }
3027if ${ac_cv_host+:} false; then :
3028  $as_echo_n "(cached) " >&6
3029else
3030  if test "x$host_alias" = x; then
3031  ac_cv_host=$ac_cv_build
3032else
3033  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3034    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3035fi
3036
3037fi
3038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3039$as_echo "$ac_cv_host" >&6; }
3040case $ac_cv_host in
3041*-*-*) ;;
3042*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3043esac
3044host=$ac_cv_host
3045ac_save_IFS=$IFS; IFS='-'
3046set x $ac_cv_host
3047shift
3048host_cpu=$1
3049host_vendor=$2
3050shift; shift
3051# Remember, the first character of IFS is used to create $*,
3052# except with old shells:
3053host_os=$*
3054IFS=$ac_save_IFS
3055case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3056
3057
3058# Backslashify metacharacters that are still active within
3059# double-quoted strings.
3060sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3061
3062# Same as above, but do not quote variable references.
3063double_quote_subst='s/\(["`\\]\)/\\\1/g'
3064
3065# Sed substitution to delay expansion of an escaped shell variable in a
3066# double_quote_subst'ed string.
3067delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3068
3069# Sed substitution to delay expansion of an escaped single quote.
3070delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3071
3072# Sed substitution to avoid accidental globbing in evaled expressions
3073no_glob_subst='s/\*/\\\*/g'
3074
3075ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3076ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3077ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3078
3079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3080$as_echo_n "checking how to print strings... " >&6; }
3081# Test print first, because it will be a builtin if present.
3082if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3083   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3084  ECHO='print -r --'
3085elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3086  ECHO='printf %s\n'
3087else
3088  # Use this function as a fallback that always works.
3089  func_fallback_echo ()
3090  {
3091    eval 'cat <<_LTECHO_EOF
3092$1
3093_LTECHO_EOF'
3094  }
3095  ECHO='func_fallback_echo'
3096fi
3097
3098# func_echo_all arg...
3099# Invoke $ECHO with all args, space-separated.
3100func_echo_all ()
3101{
3102    $ECHO ""
3103}
3104
3105case $ECHO in
3106  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3107$as_echo "printf" >&6; } ;;
3108  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3109$as_echo "print -r" >&6; } ;;
3110  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3111$as_echo "cat" >&6; } ;;
3112esac
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127DEPDIR="${am__leading_dot}deps"
3128
3129ac_config_commands="$ac_config_commands depfiles"
3130
3131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3132$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3133cat > confinc.mk << 'END'
3134am__doit:
3135	@echo this is the am__doit target >confinc.out
3136.PHONY: am__doit
3137END
3138am__include="#"
3139am__quote=
3140# BSD make does it like this.
3141echo '.include "confinc.mk" # ignored' > confmf.BSD
3142# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3143echo 'include confinc.mk # ignored' > confmf.GNU
3144_am_result=no
3145for s in GNU BSD; do
3146  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3147   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3148   ac_status=$?
3149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150   (exit $ac_status); }
3151  case $?:`cat confinc.out 2>/dev/null` in #(
3152  '0:this is the am__doit target') :
3153    case $s in #(
3154  BSD) :
3155    am__include='.include' am__quote='"' ;; #(
3156  *) :
3157    am__include='include' am__quote='' ;;
3158esac ;; #(
3159  *) :
3160     ;;
3161esac
3162  if test "$am__include" != "#"; then
3163    _am_result="yes ($s style)"
3164    break
3165  fi
3166done
3167rm -f confinc.* confmf.*
3168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3169$as_echo "${_am_result}" >&6; }
3170
3171# Check whether --enable-dependency-tracking was given.
3172if test "${enable_dependency_tracking+set}" = set; then :
3173  enableval=$enable_dependency_tracking;
3174fi
3175
3176if test "x$enable_dependency_tracking" != xno; then
3177  am_depcomp="$ac_aux_dir/depcomp"
3178  AMDEPBACKSLASH='\'
3179  am__nodep='_no'
3180fi
3181 if test "x$enable_dependency_tracking" != xno; then
3182  AMDEP_TRUE=
3183  AMDEP_FALSE='#'
3184else
3185  AMDEP_TRUE='#'
3186  AMDEP_FALSE=
3187fi
3188
3189
3190ac_ext=c
3191ac_cpp='$CPP $CPPFLAGS'
3192ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3193ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3194ac_compiler_gnu=$ac_cv_c_compiler_gnu
3195if test -n "$ac_tool_prefix"; then
3196  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3197set dummy ${ac_tool_prefix}gcc; ac_word=$2
3198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3199$as_echo_n "checking for $ac_word... " >&6; }
3200if ${ac_cv_prog_CC+:} false; then :
3201  $as_echo_n "(cached) " >&6
3202else
3203  if test -n "$CC"; then
3204  ac_cv_prog_CC="$CC" # Let the user override the test.
3205else
3206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207for as_dir in $PATH
3208do
3209  IFS=$as_save_IFS
3210  test -z "$as_dir" && as_dir=.
3211    for ac_exec_ext in '' $ac_executable_extensions; do
3212  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3213    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3214    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3215    break 2
3216  fi
3217done
3218  done
3219IFS=$as_save_IFS
3220
3221fi
3222fi
3223CC=$ac_cv_prog_CC
3224if test -n "$CC"; then
3225  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3226$as_echo "$CC" >&6; }
3227else
3228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3229$as_echo "no" >&6; }
3230fi
3231
3232
3233fi
3234if test -z "$ac_cv_prog_CC"; then
3235  ac_ct_CC=$CC
3236  # Extract the first word of "gcc", so it can be a program name with args.
3237set dummy gcc; ac_word=$2
3238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3239$as_echo_n "checking for $ac_word... " >&6; }
3240if ${ac_cv_prog_ac_ct_CC+:} false; then :
3241  $as_echo_n "(cached) " >&6
3242else
3243  if test -n "$ac_ct_CC"; then
3244  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3245else
3246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3247for as_dir in $PATH
3248do
3249  IFS=$as_save_IFS
3250  test -z "$as_dir" && as_dir=.
3251    for ac_exec_ext in '' $ac_executable_extensions; do
3252  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3253    ac_cv_prog_ac_ct_CC="gcc"
3254    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3255    break 2
3256  fi
3257done
3258  done
3259IFS=$as_save_IFS
3260
3261fi
3262fi
3263ac_ct_CC=$ac_cv_prog_ac_ct_CC
3264if test -n "$ac_ct_CC"; then
3265  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3266$as_echo "$ac_ct_CC" >&6; }
3267else
3268  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3269$as_echo "no" >&6; }
3270fi
3271
3272  if test "x$ac_ct_CC" = x; then
3273    CC=""
3274  else
3275    case $cross_compiling:$ac_tool_warned in
3276yes:)
3277{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3278$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3279ac_tool_warned=yes ;;
3280esac
3281    CC=$ac_ct_CC
3282  fi
3283else
3284  CC="$ac_cv_prog_CC"
3285fi
3286
3287if test -z "$CC"; then
3288          if test -n "$ac_tool_prefix"; then
3289    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3290set dummy ${ac_tool_prefix}cc; ac_word=$2
3291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3292$as_echo_n "checking for $ac_word... " >&6; }
3293if ${ac_cv_prog_CC+:} false; then :
3294  $as_echo_n "(cached) " >&6
3295else
3296  if test -n "$CC"; then
3297  ac_cv_prog_CC="$CC" # Let the user override the test.
3298else
3299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3300for as_dir in $PATH
3301do
3302  IFS=$as_save_IFS
3303  test -z "$as_dir" && as_dir=.
3304    for ac_exec_ext in '' $ac_executable_extensions; do
3305  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3306    ac_cv_prog_CC="${ac_tool_prefix}cc"
3307    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3308    break 2
3309  fi
3310done
3311  done
3312IFS=$as_save_IFS
3313
3314fi
3315fi
3316CC=$ac_cv_prog_CC
3317if test -n "$CC"; then
3318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3319$as_echo "$CC" >&6; }
3320else
3321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3322$as_echo "no" >&6; }
3323fi
3324
3325
3326  fi
3327fi
3328if test -z "$CC"; then
3329  # Extract the first word of "cc", so it can be a program name with args.
3330set dummy cc; ac_word=$2
3331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3332$as_echo_n "checking for $ac_word... " >&6; }
3333if ${ac_cv_prog_CC+:} false; then :
3334  $as_echo_n "(cached) " >&6
3335else
3336  if test -n "$CC"; then
3337  ac_cv_prog_CC="$CC" # Let the user override the test.
3338else
3339  ac_prog_rejected=no
3340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3341for as_dir in $PATH
3342do
3343  IFS=$as_save_IFS
3344  test -z "$as_dir" && as_dir=.
3345    for ac_exec_ext in '' $ac_executable_extensions; do
3346  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3347    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3348       ac_prog_rejected=yes
3349       continue
3350     fi
3351    ac_cv_prog_CC="cc"
3352    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3353    break 2
3354  fi
3355done
3356  done
3357IFS=$as_save_IFS
3358
3359if test $ac_prog_rejected = yes; then
3360  # We found a bogon in the path, so make sure we never use it.
3361  set dummy $ac_cv_prog_CC
3362  shift
3363  if test $# != 0; then
3364    # We chose a different compiler from the bogus one.
3365    # However, it has the same basename, so the bogon will be chosen
3366    # first if we set CC to just the basename; use the full file name.
3367    shift
3368    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3369  fi
3370fi
3371fi
3372fi
3373CC=$ac_cv_prog_CC
3374if test -n "$CC"; then
3375  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3376$as_echo "$CC" >&6; }
3377else
3378  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3379$as_echo "no" >&6; }
3380fi
3381
3382
3383fi
3384if test -z "$CC"; then
3385  if test -n "$ac_tool_prefix"; then
3386  for ac_prog in cl.exe
3387  do
3388    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3389set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3391$as_echo_n "checking for $ac_word... " >&6; }
3392if ${ac_cv_prog_CC+:} false; then :
3393  $as_echo_n "(cached) " >&6
3394else
3395  if test -n "$CC"; then
3396  ac_cv_prog_CC="$CC" # Let the user override the test.
3397else
3398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3399for as_dir in $PATH
3400do
3401  IFS=$as_save_IFS
3402  test -z "$as_dir" && as_dir=.
3403    for ac_exec_ext in '' $ac_executable_extensions; do
3404  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3405    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3406    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3407    break 2
3408  fi
3409done
3410  done
3411IFS=$as_save_IFS
3412
3413fi
3414fi
3415CC=$ac_cv_prog_CC
3416if test -n "$CC"; then
3417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3418$as_echo "$CC" >&6; }
3419else
3420  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3421$as_echo "no" >&6; }
3422fi
3423
3424
3425    test -n "$CC" && break
3426  done
3427fi
3428if test -z "$CC"; then
3429  ac_ct_CC=$CC
3430  for ac_prog in cl.exe
3431do
3432  # Extract the first word of "$ac_prog", so it can be a program name with args.
3433set dummy $ac_prog; ac_word=$2
3434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3435$as_echo_n "checking for $ac_word... " >&6; }
3436if ${ac_cv_prog_ac_ct_CC+:} false; then :
3437  $as_echo_n "(cached) " >&6
3438else
3439  if test -n "$ac_ct_CC"; then
3440  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3441else
3442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3443for as_dir in $PATH
3444do
3445  IFS=$as_save_IFS
3446  test -z "$as_dir" && as_dir=.
3447    for ac_exec_ext in '' $ac_executable_extensions; do
3448  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3449    ac_cv_prog_ac_ct_CC="$ac_prog"
3450    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3451    break 2
3452  fi
3453done
3454  done
3455IFS=$as_save_IFS
3456
3457fi
3458fi
3459ac_ct_CC=$ac_cv_prog_ac_ct_CC
3460if test -n "$ac_ct_CC"; then
3461  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3462$as_echo "$ac_ct_CC" >&6; }
3463else
3464  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3465$as_echo "no" >&6; }
3466fi
3467
3468
3469  test -n "$ac_ct_CC" && break
3470done
3471
3472  if test "x$ac_ct_CC" = x; then
3473    CC=""
3474  else
3475    case $cross_compiling:$ac_tool_warned in
3476yes:)
3477{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3478$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3479ac_tool_warned=yes ;;
3480esac
3481    CC=$ac_ct_CC
3482  fi
3483fi
3484
3485fi
3486
3487
3488test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3489$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3490as_fn_error $? "no acceptable C compiler found in \$PATH
3491See \`config.log' for more details" "$LINENO" 5; }
3492
3493# Provide some information about the compiler.
3494$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3495set X $ac_compile
3496ac_compiler=$2
3497for ac_option in --version -v -V -qversion; do
3498  { { ac_try="$ac_compiler $ac_option >&5"
3499case "(($ac_try" in
3500  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3501  *) ac_try_echo=$ac_try;;
3502esac
3503eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3504$as_echo "$ac_try_echo"; } >&5
3505  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3506  ac_status=$?
3507  if test -s conftest.err; then
3508    sed '10a\
3509... rest of stderr output deleted ...
3510         10q' conftest.err >conftest.er1
3511    cat conftest.er1 >&5
3512  fi
3513  rm -f conftest.er1 conftest.err
3514  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3515  test $ac_status = 0; }
3516done
3517
3518cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3519/* end confdefs.h.  */
3520
3521int
3522main ()
3523{
3524
3525  ;
3526  return 0;
3527}
3528_ACEOF
3529ac_clean_files_save=$ac_clean_files
3530ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3531# Try to create an executable without -o first, disregard a.out.
3532# It will help us diagnose broken compilers, and finding out an intuition
3533# of exeext.
3534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3535$as_echo_n "checking whether the C compiler works... " >&6; }
3536ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3537
3538# The possible output files:
3539ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3540
3541ac_rmfiles=
3542for ac_file in $ac_files
3543do
3544  case $ac_file in
3545    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3546    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3547  esac
3548done
3549rm -f $ac_rmfiles
3550
3551if { { ac_try="$ac_link_default"
3552case "(($ac_try" in
3553  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554  *) ac_try_echo=$ac_try;;
3555esac
3556eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3557$as_echo "$ac_try_echo"; } >&5
3558  (eval "$ac_link_default") 2>&5
3559  ac_status=$?
3560  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3561  test $ac_status = 0; }; then :
3562  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3563# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3564# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3565# so that the user can short-circuit this test for compilers unknown to
3566# Autoconf.
3567for ac_file in $ac_files ''
3568do
3569  test -f "$ac_file" || continue
3570  case $ac_file in
3571    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3572	;;
3573    [ab].out )
3574	# We found the default executable, but exeext='' is most
3575	# certainly right.
3576	break;;
3577    *.* )
3578	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3579	then :; else
3580	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3581	fi
3582	# We set ac_cv_exeext here because the later test for it is not
3583	# safe: cross compilers may not add the suffix if given an `-o'
3584	# argument, so we may need to know it at that point already.
3585	# Even if this section looks crufty: it has the advantage of
3586	# actually working.
3587	break;;
3588    * )
3589	break;;
3590  esac
3591done
3592test "$ac_cv_exeext" = no && ac_cv_exeext=
3593
3594else
3595  ac_file=''
3596fi
3597if test -z "$ac_file"; then :
3598  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3599$as_echo "no" >&6; }
3600$as_echo "$as_me: failed program was:" >&5
3601sed 's/^/| /' conftest.$ac_ext >&5
3602
3603{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3604$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3605as_fn_error 77 "C compiler cannot create executables
3606See \`config.log' for more details" "$LINENO" 5; }
3607else
3608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3609$as_echo "yes" >&6; }
3610fi
3611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3612$as_echo_n "checking for C compiler default output file name... " >&6; }
3613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3614$as_echo "$ac_file" >&6; }
3615ac_exeext=$ac_cv_exeext
3616
3617rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3618ac_clean_files=$ac_clean_files_save
3619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3620$as_echo_n "checking for suffix of executables... " >&6; }
3621if { { ac_try="$ac_link"
3622case "(($ac_try" in
3623  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3624  *) ac_try_echo=$ac_try;;
3625esac
3626eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3627$as_echo "$ac_try_echo"; } >&5
3628  (eval "$ac_link") 2>&5
3629  ac_status=$?
3630  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3631  test $ac_status = 0; }; then :
3632  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3633# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3634# work properly (i.e., refer to `conftest.exe'), while it won't with
3635# `rm'.
3636for ac_file in conftest.exe conftest conftest.*; do
3637  test -f "$ac_file" || continue
3638  case $ac_file in
3639    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3640    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3641	  break;;
3642    * ) break;;
3643  esac
3644done
3645else
3646  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3647$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3648as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3649See \`config.log' for more details" "$LINENO" 5; }
3650fi
3651rm -f conftest conftest$ac_cv_exeext
3652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3653$as_echo "$ac_cv_exeext" >&6; }
3654
3655rm -f conftest.$ac_ext
3656EXEEXT=$ac_cv_exeext
3657ac_exeext=$EXEEXT
3658cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3659/* end confdefs.h.  */
3660#include <stdio.h>
3661int
3662main ()
3663{
3664FILE *f = fopen ("conftest.out", "w");
3665 return ferror (f) || fclose (f) != 0;
3666
3667  ;
3668  return 0;
3669}
3670_ACEOF
3671ac_clean_files="$ac_clean_files conftest.out"
3672# Check that the compiler produces executables we can run.  If not, either
3673# the compiler is broken, or we cross compile.
3674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3675$as_echo_n "checking whether we are cross compiling... " >&6; }
3676if test "$cross_compiling" != yes; then
3677  { { ac_try="$ac_link"
3678case "(($ac_try" in
3679  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3680  *) ac_try_echo=$ac_try;;
3681esac
3682eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3683$as_echo "$ac_try_echo"; } >&5
3684  (eval "$ac_link") 2>&5
3685  ac_status=$?
3686  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3687  test $ac_status = 0; }
3688  if { ac_try='./conftest$ac_cv_exeext'
3689  { { case "(($ac_try" in
3690  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3691  *) ac_try_echo=$ac_try;;
3692esac
3693eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3694$as_echo "$ac_try_echo"; } >&5
3695  (eval "$ac_try") 2>&5
3696  ac_status=$?
3697  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3698  test $ac_status = 0; }; }; then
3699    cross_compiling=no
3700  else
3701    if test "$cross_compiling" = maybe; then
3702	cross_compiling=yes
3703    else
3704	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3705$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3706as_fn_error $? "cannot run C compiled programs.
3707If you meant to cross compile, use \`--host'.
3708See \`config.log' for more details" "$LINENO" 5; }
3709    fi
3710  fi
3711fi
3712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3713$as_echo "$cross_compiling" >&6; }
3714
3715rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3716ac_clean_files=$ac_clean_files_save
3717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3718$as_echo_n "checking for suffix of object files... " >&6; }
3719if ${ac_cv_objext+:} false; then :
3720  $as_echo_n "(cached) " >&6
3721else
3722  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3723/* end confdefs.h.  */
3724
3725int
3726main ()
3727{
3728
3729  ;
3730  return 0;
3731}
3732_ACEOF
3733rm -f conftest.o conftest.obj
3734if { { ac_try="$ac_compile"
3735case "(($ac_try" in
3736  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3737  *) ac_try_echo=$ac_try;;
3738esac
3739eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3740$as_echo "$ac_try_echo"; } >&5
3741  (eval "$ac_compile") 2>&5
3742  ac_status=$?
3743  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3744  test $ac_status = 0; }; then :
3745  for ac_file in conftest.o conftest.obj conftest.*; do
3746  test -f "$ac_file" || continue;
3747  case $ac_file in
3748    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3749    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3750       break;;
3751  esac
3752done
3753else
3754  $as_echo "$as_me: failed program was:" >&5
3755sed 's/^/| /' conftest.$ac_ext >&5
3756
3757{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3758$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3759as_fn_error $? "cannot compute suffix of object files: cannot compile
3760See \`config.log' for more details" "$LINENO" 5; }
3761fi
3762rm -f conftest.$ac_cv_objext conftest.$ac_ext
3763fi
3764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3765$as_echo "$ac_cv_objext" >&6; }
3766OBJEXT=$ac_cv_objext
3767ac_objext=$OBJEXT
3768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3769$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3770if ${ac_cv_c_compiler_gnu+:} false; then :
3771  $as_echo_n "(cached) " >&6
3772else
3773  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3774/* end confdefs.h.  */
3775
3776int
3777main ()
3778{
3779#ifndef __GNUC__
3780       choke me
3781#endif
3782
3783  ;
3784  return 0;
3785}
3786_ACEOF
3787if ac_fn_c_try_compile "$LINENO"; then :
3788  ac_compiler_gnu=yes
3789else
3790  ac_compiler_gnu=no
3791fi
3792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3793ac_cv_c_compiler_gnu=$ac_compiler_gnu
3794
3795fi
3796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3797$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3798if test $ac_compiler_gnu = yes; then
3799  GCC=yes
3800else
3801  GCC=
3802fi
3803ac_test_CFLAGS=${CFLAGS+set}
3804ac_save_CFLAGS=$CFLAGS
3805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3806$as_echo_n "checking whether $CC accepts -g... " >&6; }
3807if ${ac_cv_prog_cc_g+:} false; then :
3808  $as_echo_n "(cached) " >&6
3809else
3810  ac_save_c_werror_flag=$ac_c_werror_flag
3811   ac_c_werror_flag=yes
3812   ac_cv_prog_cc_g=no
3813   CFLAGS="-g"
3814   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3815/* end confdefs.h.  */
3816
3817int
3818main ()
3819{
3820
3821  ;
3822  return 0;
3823}
3824_ACEOF
3825if ac_fn_c_try_compile "$LINENO"; then :
3826  ac_cv_prog_cc_g=yes
3827else
3828  CFLAGS=""
3829      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3830/* end confdefs.h.  */
3831
3832int
3833main ()
3834{
3835
3836  ;
3837  return 0;
3838}
3839_ACEOF
3840if ac_fn_c_try_compile "$LINENO"; then :
3841
3842else
3843  ac_c_werror_flag=$ac_save_c_werror_flag
3844	 CFLAGS="-g"
3845	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3846/* end confdefs.h.  */
3847
3848int
3849main ()
3850{
3851
3852  ;
3853  return 0;
3854}
3855_ACEOF
3856if ac_fn_c_try_compile "$LINENO"; then :
3857  ac_cv_prog_cc_g=yes
3858fi
3859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3860fi
3861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3862fi
3863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3864   ac_c_werror_flag=$ac_save_c_werror_flag
3865fi
3866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3867$as_echo "$ac_cv_prog_cc_g" >&6; }
3868if test "$ac_test_CFLAGS" = set; then
3869  CFLAGS=$ac_save_CFLAGS
3870elif test $ac_cv_prog_cc_g = yes; then
3871  if test "$GCC" = yes; then
3872    CFLAGS="-g -O2"
3873  else
3874    CFLAGS="-g"
3875  fi
3876else
3877  if test "$GCC" = yes; then
3878    CFLAGS="-O2"
3879  else
3880    CFLAGS=
3881  fi
3882fi
3883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3884$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3885if ${ac_cv_prog_cc_c89+:} false; then :
3886  $as_echo_n "(cached) " >&6
3887else
3888  ac_cv_prog_cc_c89=no
3889ac_save_CC=$CC
3890cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3891/* end confdefs.h.  */
3892#include <stdarg.h>
3893#include <stdio.h>
3894struct stat;
3895/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3896struct buf { int x; };
3897FILE * (*rcsopen) (struct buf *, struct stat *, int);
3898static char *e (p, i)
3899     char **p;
3900     int i;
3901{
3902  return p[i];
3903}
3904static char *f (char * (*g) (char **, int), char **p, ...)
3905{
3906  char *s;
3907  va_list v;
3908  va_start (v,p);
3909  s = g (p, va_arg (v,int));
3910  va_end (v);
3911  return s;
3912}
3913
3914/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3915   function prototypes and stuff, but not '\xHH' hex character constants.
3916   These don't provoke an error unfortunately, instead are silently treated
3917   as 'x'.  The following induces an error, until -std is added to get
3918   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3919   array size at least.  It's necessary to write '\x00'==0 to get something
3920   that's true only with -std.  */
3921int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3922
3923/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3924   inside strings and character constants.  */
3925#define FOO(x) 'x'
3926int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3927
3928int test (int i, double x);
3929struct s1 {int (*f) (int a);};
3930struct s2 {int (*f) (double a);};
3931int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3932int argc;
3933char **argv;
3934int
3935main ()
3936{
3937return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3938  ;
3939  return 0;
3940}
3941_ACEOF
3942for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3943	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3944do
3945  CC="$ac_save_CC $ac_arg"
3946  if ac_fn_c_try_compile "$LINENO"; then :
3947  ac_cv_prog_cc_c89=$ac_arg
3948fi
3949rm -f core conftest.err conftest.$ac_objext
3950  test "x$ac_cv_prog_cc_c89" != "xno" && break
3951done
3952rm -f conftest.$ac_ext
3953CC=$ac_save_CC
3954
3955fi
3956# AC_CACHE_VAL
3957case "x$ac_cv_prog_cc_c89" in
3958  x)
3959    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3960$as_echo "none needed" >&6; } ;;
3961  xno)
3962    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3963$as_echo "unsupported" >&6; } ;;
3964  *)
3965    CC="$CC $ac_cv_prog_cc_c89"
3966    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3967$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3968esac
3969if test "x$ac_cv_prog_cc_c89" != xno; then :
3970
3971fi
3972
3973ac_ext=c
3974ac_cpp='$CPP $CPPFLAGS'
3975ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3976ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3977ac_compiler_gnu=$ac_cv_c_compiler_gnu
3978
3979ac_ext=c
3980ac_cpp='$CPP $CPPFLAGS'
3981ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3982ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3983ac_compiler_gnu=$ac_cv_c_compiler_gnu
3984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3985$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3986if ${am_cv_prog_cc_c_o+:} false; then :
3987  $as_echo_n "(cached) " >&6
3988else
3989  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3990/* end confdefs.h.  */
3991
3992int
3993main ()
3994{
3995
3996  ;
3997  return 0;
3998}
3999_ACEOF
4000  # Make sure it works both with $CC and with simple cc.
4001  # Following AC_PROG_CC_C_O, we do the test twice because some
4002  # compilers refuse to overwrite an existing .o file with -o,
4003  # though they will create one.
4004  am_cv_prog_cc_c_o=yes
4005  for am_i in 1 2; do
4006    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4007   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4008   ac_status=$?
4009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010   (exit $ac_status); } \
4011         && test -f conftest2.$ac_objext; then
4012      : OK
4013    else
4014      am_cv_prog_cc_c_o=no
4015      break
4016    fi
4017  done
4018  rm -f core conftest*
4019  unset am_i
4020fi
4021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4022$as_echo "$am_cv_prog_cc_c_o" >&6; }
4023if test "$am_cv_prog_cc_c_o" != yes; then
4024   # Losing compiler, so override with the script.
4025   # FIXME: It is wrong to rewrite CC.
4026   # But if we don't then we get into trouble of one sort or another.
4027   # A longer-term fix would be to have automake use am__CC in this case,
4028   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4029   CC="$am_aux_dir/compile $CC"
4030fi
4031ac_ext=c
4032ac_cpp='$CPP $CPPFLAGS'
4033ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4034ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4035ac_compiler_gnu=$ac_cv_c_compiler_gnu
4036
4037
4038depcc="$CC"   am_compiler_list=
4039
4040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4041$as_echo_n "checking dependency style of $depcc... " >&6; }
4042if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4043  $as_echo_n "(cached) " >&6
4044else
4045  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4046  # We make a subdir and do the tests there.  Otherwise we can end up
4047  # making bogus files that we don't know about and never remove.  For
4048  # instance it was reported that on HP-UX the gcc test will end up
4049  # making a dummy file named 'D' -- because '-MD' means "put the output
4050  # in D".
4051  rm -rf conftest.dir
4052  mkdir conftest.dir
4053  # Copy depcomp to subdir because otherwise we won't find it if we're
4054  # using a relative directory.
4055  cp "$am_depcomp" conftest.dir
4056  cd conftest.dir
4057  # We will build objects and dependencies in a subdirectory because
4058  # it helps to detect inapplicable dependency modes.  For instance
4059  # both Tru64's cc and ICC support -MD to output dependencies as a
4060  # side effect of compilation, but ICC will put the dependencies in
4061  # the current directory while Tru64 will put them in the object
4062  # directory.
4063  mkdir sub
4064
4065  am_cv_CC_dependencies_compiler_type=none
4066  if test "$am_compiler_list" = ""; then
4067     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4068  fi
4069  am__universal=false
4070  case " $depcc " in #(
4071     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4072     esac
4073
4074  for depmode in $am_compiler_list; do
4075    # Setup a source with many dependencies, because some compilers
4076    # like to wrap large dependency lists on column 80 (with \), and
4077    # we should not choose a depcomp mode which is confused by this.
4078    #
4079    # We need to recreate these files for each test, as the compiler may
4080    # overwrite some of them when testing with obscure command lines.
4081    # This happens at least with the AIX C compiler.
4082    : > sub/conftest.c
4083    for i in 1 2 3 4 5 6; do
4084      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4085      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4086      # Solaris 10 /bin/sh.
4087      echo '/* dummy */' > sub/conftst$i.h
4088    done
4089    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4090
4091    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4092    # mode.  It turns out that the SunPro C++ compiler does not properly
4093    # handle '-M -o', and we need to detect this.  Also, some Intel
4094    # versions had trouble with output in subdirs.
4095    am__obj=sub/conftest.${OBJEXT-o}
4096    am__minus_obj="-o $am__obj"
4097    case $depmode in
4098    gcc)
4099      # This depmode causes a compiler race in universal mode.
4100      test "$am__universal" = false || continue
4101      ;;
4102    nosideeffect)
4103      # After this tag, mechanisms are not by side-effect, so they'll
4104      # only be used when explicitly requested.
4105      if test "x$enable_dependency_tracking" = xyes; then
4106	continue
4107      else
4108	break
4109      fi
4110      ;;
4111    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4112      # This compiler won't grok '-c -o', but also, the minuso test has
4113      # not run yet.  These depmodes are late enough in the game, and
4114      # so weak that their functioning should not be impacted.
4115      am__obj=conftest.${OBJEXT-o}
4116      am__minus_obj=
4117      ;;
4118    none) break ;;
4119    esac
4120    if depmode=$depmode \
4121       source=sub/conftest.c object=$am__obj \
4122       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4123       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4124         >/dev/null 2>conftest.err &&
4125       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4126       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4127       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4128       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4129      # icc doesn't choke on unknown options, it will just issue warnings
4130      # or remarks (even with -Werror).  So we grep stderr for any message
4131      # that says an option was ignored or not supported.
4132      # When given -MP, icc 7.0 and 7.1 complain thusly:
4133      #   icc: Command line warning: ignoring option '-M'; no argument required
4134      # The diagnosis changed in icc 8.0:
4135      #   icc: Command line remark: option '-MP' not supported
4136      if (grep 'ignoring option' conftest.err ||
4137          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4138        am_cv_CC_dependencies_compiler_type=$depmode
4139        break
4140      fi
4141    fi
4142  done
4143
4144  cd ..
4145  rm -rf conftest.dir
4146else
4147  am_cv_CC_dependencies_compiler_type=none
4148fi
4149
4150fi
4151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4152$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4153CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4154
4155 if
4156  test "x$enable_dependency_tracking" != xno \
4157  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4158  am__fastdepCC_TRUE=
4159  am__fastdepCC_FALSE='#'
4160else
4161  am__fastdepCC_TRUE='#'
4162  am__fastdepCC_FALSE=
4163fi
4164
4165
4166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4167$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4168if ${ac_cv_path_SED+:} false; then :
4169  $as_echo_n "(cached) " >&6
4170else
4171            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4172     for ac_i in 1 2 3 4 5 6 7; do
4173       ac_script="$ac_script$as_nl$ac_script"
4174     done
4175     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4176     { ac_script=; unset ac_script;}
4177     if test -z "$SED"; then
4178  ac_path_SED_found=false
4179  # Loop through the user's path and test for each of PROGNAME-LIST
4180  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4181for as_dir in $PATH
4182do
4183  IFS=$as_save_IFS
4184  test -z "$as_dir" && as_dir=.
4185    for ac_prog in sed gsed; do
4186    for ac_exec_ext in '' $ac_executable_extensions; do
4187      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4188      as_fn_executable_p "$ac_path_SED" || continue
4189# Check for GNU ac_path_SED and select it if it is found.
4190  # Check for GNU $ac_path_SED
4191case `"$ac_path_SED" --version 2>&1` in
4192*GNU*)
4193  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4194*)
4195  ac_count=0
4196  $as_echo_n 0123456789 >"conftest.in"
4197  while :
4198  do
4199    cat "conftest.in" "conftest.in" >"conftest.tmp"
4200    mv "conftest.tmp" "conftest.in"
4201    cp "conftest.in" "conftest.nl"
4202    $as_echo '' >> "conftest.nl"
4203    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4204    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4205    as_fn_arith $ac_count + 1 && ac_count=$as_val
4206    if test $ac_count -gt ${ac_path_SED_max-0}; then
4207      # Best one so far, save it but keep looking for a better one
4208      ac_cv_path_SED="$ac_path_SED"
4209      ac_path_SED_max=$ac_count
4210    fi
4211    # 10*(2^10) chars as input seems more than enough
4212    test $ac_count -gt 10 && break
4213  done
4214  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4215esac
4216
4217      $ac_path_SED_found && break 3
4218    done
4219  done
4220  done
4221IFS=$as_save_IFS
4222  if test -z "$ac_cv_path_SED"; then
4223    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4224  fi
4225else
4226  ac_cv_path_SED=$SED
4227fi
4228
4229fi
4230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4231$as_echo "$ac_cv_path_SED" >&6; }
4232 SED="$ac_cv_path_SED"
4233  rm -f conftest.sed
4234
4235test -z "$SED" && SED=sed
4236Xsed="$SED -e 1s/^X//"
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4249$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4250if ${ac_cv_path_GREP+:} false; then :
4251  $as_echo_n "(cached) " >&6
4252else
4253  if test -z "$GREP"; then
4254  ac_path_GREP_found=false
4255  # Loop through the user's path and test for each of PROGNAME-LIST
4256  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4257for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4258do
4259  IFS=$as_save_IFS
4260  test -z "$as_dir" && as_dir=.
4261    for ac_prog in grep ggrep; do
4262    for ac_exec_ext in '' $ac_executable_extensions; do
4263      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4264      as_fn_executable_p "$ac_path_GREP" || continue
4265# Check for GNU ac_path_GREP and select it if it is found.
4266  # Check for GNU $ac_path_GREP
4267case `"$ac_path_GREP" --version 2>&1` in
4268*GNU*)
4269  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4270*)
4271  ac_count=0
4272  $as_echo_n 0123456789 >"conftest.in"
4273  while :
4274  do
4275    cat "conftest.in" "conftest.in" >"conftest.tmp"
4276    mv "conftest.tmp" "conftest.in"
4277    cp "conftest.in" "conftest.nl"
4278    $as_echo 'GREP' >> "conftest.nl"
4279    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4280    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4281    as_fn_arith $ac_count + 1 && ac_count=$as_val
4282    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4283      # Best one so far, save it but keep looking for a better one
4284      ac_cv_path_GREP="$ac_path_GREP"
4285      ac_path_GREP_max=$ac_count
4286    fi
4287    # 10*(2^10) chars as input seems more than enough
4288    test $ac_count -gt 10 && break
4289  done
4290  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4291esac
4292
4293      $ac_path_GREP_found && break 3
4294    done
4295  done
4296  done
4297IFS=$as_save_IFS
4298  if test -z "$ac_cv_path_GREP"; then
4299    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4300  fi
4301else
4302  ac_cv_path_GREP=$GREP
4303fi
4304
4305fi
4306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4307$as_echo "$ac_cv_path_GREP" >&6; }
4308 GREP="$ac_cv_path_GREP"
4309
4310
4311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4312$as_echo_n "checking for egrep... " >&6; }
4313if ${ac_cv_path_EGREP+:} false; then :
4314  $as_echo_n "(cached) " >&6
4315else
4316  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4317   then ac_cv_path_EGREP="$GREP -E"
4318   else
4319     if test -z "$EGREP"; then
4320  ac_path_EGREP_found=false
4321  # Loop through the user's path and test for each of PROGNAME-LIST
4322  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4323for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4324do
4325  IFS=$as_save_IFS
4326  test -z "$as_dir" && as_dir=.
4327    for ac_prog in egrep; do
4328    for ac_exec_ext in '' $ac_executable_extensions; do
4329      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4330      as_fn_executable_p "$ac_path_EGREP" || continue
4331# Check for GNU ac_path_EGREP and select it if it is found.
4332  # Check for GNU $ac_path_EGREP
4333case `"$ac_path_EGREP" --version 2>&1` in
4334*GNU*)
4335  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4336*)
4337  ac_count=0
4338  $as_echo_n 0123456789 >"conftest.in"
4339  while :
4340  do
4341    cat "conftest.in" "conftest.in" >"conftest.tmp"
4342    mv "conftest.tmp" "conftest.in"
4343    cp "conftest.in" "conftest.nl"
4344    $as_echo 'EGREP' >> "conftest.nl"
4345    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4346    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4347    as_fn_arith $ac_count + 1 && ac_count=$as_val
4348    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4349      # Best one so far, save it but keep looking for a better one
4350      ac_cv_path_EGREP="$ac_path_EGREP"
4351      ac_path_EGREP_max=$ac_count
4352    fi
4353    # 10*(2^10) chars as input seems more than enough
4354    test $ac_count -gt 10 && break
4355  done
4356  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4357esac
4358
4359      $ac_path_EGREP_found && break 3
4360    done
4361  done
4362  done
4363IFS=$as_save_IFS
4364  if test -z "$ac_cv_path_EGREP"; then
4365    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4366  fi
4367else
4368  ac_cv_path_EGREP=$EGREP
4369fi
4370
4371   fi
4372fi
4373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4374$as_echo "$ac_cv_path_EGREP" >&6; }
4375 EGREP="$ac_cv_path_EGREP"
4376
4377
4378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4379$as_echo_n "checking for fgrep... " >&6; }
4380if ${ac_cv_path_FGREP+:} false; then :
4381  $as_echo_n "(cached) " >&6
4382else
4383  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4384   then ac_cv_path_FGREP="$GREP -F"
4385   else
4386     if test -z "$FGREP"; then
4387  ac_path_FGREP_found=false
4388  # Loop through the user's path and test for each of PROGNAME-LIST
4389  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4390for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4391do
4392  IFS=$as_save_IFS
4393  test -z "$as_dir" && as_dir=.
4394    for ac_prog in fgrep; do
4395    for ac_exec_ext in '' $ac_executable_extensions; do
4396      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4397      as_fn_executable_p "$ac_path_FGREP" || continue
4398# Check for GNU ac_path_FGREP and select it if it is found.
4399  # Check for GNU $ac_path_FGREP
4400case `"$ac_path_FGREP" --version 2>&1` in
4401*GNU*)
4402  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4403*)
4404  ac_count=0
4405  $as_echo_n 0123456789 >"conftest.in"
4406  while :
4407  do
4408    cat "conftest.in" "conftest.in" >"conftest.tmp"
4409    mv "conftest.tmp" "conftest.in"
4410    cp "conftest.in" "conftest.nl"
4411    $as_echo 'FGREP' >> "conftest.nl"
4412    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4413    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4414    as_fn_arith $ac_count + 1 && ac_count=$as_val
4415    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4416      # Best one so far, save it but keep looking for a better one
4417      ac_cv_path_FGREP="$ac_path_FGREP"
4418      ac_path_FGREP_max=$ac_count
4419    fi
4420    # 10*(2^10) chars as input seems more than enough
4421    test $ac_count -gt 10 && break
4422  done
4423  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4424esac
4425
4426      $ac_path_FGREP_found && break 3
4427    done
4428  done
4429  done
4430IFS=$as_save_IFS
4431  if test -z "$ac_cv_path_FGREP"; then
4432    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4433  fi
4434else
4435  ac_cv_path_FGREP=$FGREP
4436fi
4437
4438   fi
4439fi
4440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4441$as_echo "$ac_cv_path_FGREP" >&6; }
4442 FGREP="$ac_cv_path_FGREP"
4443
4444
4445test -z "$GREP" && GREP=grep
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465# Check whether --with-gnu-ld was given.
4466if test "${with_gnu_ld+set}" = set; then :
4467  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4468else
4469  with_gnu_ld=no
4470fi
4471
4472ac_prog=ld
4473if test yes = "$GCC"; then
4474  # Check if gcc -print-prog-name=ld gives a path.
4475  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4476$as_echo_n "checking for ld used by $CC... " >&6; }
4477  case $host in
4478  *-*-mingw*)
4479    # gcc leaves a trailing carriage return, which upsets mingw
4480    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4481  *)
4482    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4483  esac
4484  case $ac_prog in
4485    # Accept absolute paths.
4486    [\\/]* | ?:[\\/]*)
4487      re_direlt='/[^/][^/]*/\.\./'
4488      # Canonicalize the pathname of ld
4489      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4490      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4491	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4492      done
4493      test -z "$LD" && LD=$ac_prog
4494      ;;
4495  "")
4496    # If it fails, then pretend we aren't using GCC.
4497    ac_prog=ld
4498    ;;
4499  *)
4500    # If it is relative, then search for the first ld in PATH.
4501    with_gnu_ld=unknown
4502    ;;
4503  esac
4504elif test yes = "$with_gnu_ld"; then
4505  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4506$as_echo_n "checking for GNU ld... " >&6; }
4507else
4508  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4509$as_echo_n "checking for non-GNU ld... " >&6; }
4510fi
4511if ${lt_cv_path_LD+:} false; then :
4512  $as_echo_n "(cached) " >&6
4513else
4514  if test -z "$LD"; then
4515  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4516  for ac_dir in $PATH; do
4517    IFS=$lt_save_ifs
4518    test -z "$ac_dir" && ac_dir=.
4519    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4520      lt_cv_path_LD=$ac_dir/$ac_prog
4521      # Check to see if the program is GNU ld.  I'd rather use --version,
4522      # but apparently some variants of GNU ld only accept -v.
4523      # Break only if it was the GNU/non-GNU ld that we prefer.
4524      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4525      *GNU* | *'with BFD'*)
4526	test no != "$with_gnu_ld" && break
4527	;;
4528      *)
4529	test yes != "$with_gnu_ld" && break
4530	;;
4531      esac
4532    fi
4533  done
4534  IFS=$lt_save_ifs
4535else
4536  lt_cv_path_LD=$LD # Let the user override the test with a path.
4537fi
4538fi
4539
4540LD=$lt_cv_path_LD
4541if test -n "$LD"; then
4542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4543$as_echo "$LD" >&6; }
4544else
4545  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4546$as_echo "no" >&6; }
4547fi
4548test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4550$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4551if ${lt_cv_prog_gnu_ld+:} false; then :
4552  $as_echo_n "(cached) " >&6
4553else
4554  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4555case `$LD -v 2>&1 </dev/null` in
4556*GNU* | *'with BFD'*)
4557  lt_cv_prog_gnu_ld=yes
4558  ;;
4559*)
4560  lt_cv_prog_gnu_ld=no
4561  ;;
4562esac
4563fi
4564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4565$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4566with_gnu_ld=$lt_cv_prog_gnu_ld
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4577$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4578if ${lt_cv_path_NM+:} false; then :
4579  $as_echo_n "(cached) " >&6
4580else
4581  if test -n "$NM"; then
4582  # Let the user override the test.
4583  lt_cv_path_NM=$NM
4584else
4585  lt_nm_to_check=${ac_tool_prefix}nm
4586  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4587    lt_nm_to_check="$lt_nm_to_check nm"
4588  fi
4589  for lt_tmp_nm in $lt_nm_to_check; do
4590    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4591    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4592      IFS=$lt_save_ifs
4593      test -z "$ac_dir" && ac_dir=.
4594      tmp_nm=$ac_dir/$lt_tmp_nm
4595      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4596	# Check to see if the nm accepts a BSD-compat flag.
4597	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4598	#   nm: unknown option "B" ignored
4599	# Tru64's nm complains that /dev/null is an invalid object file
4600	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4601	case $build_os in
4602	mingw*) lt_bad_file=conftest.nm/nofile ;;
4603	*) lt_bad_file=/dev/null ;;
4604	esac
4605	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4606	*$lt_bad_file* | *'Invalid file or object type'*)
4607	  lt_cv_path_NM="$tmp_nm -B"
4608	  break 2
4609	  ;;
4610	*)
4611	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4612	  */dev/null*)
4613	    lt_cv_path_NM="$tmp_nm -p"
4614	    break 2
4615	    ;;
4616	  *)
4617	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4618	    continue # so that we can try to find one that supports BSD flags
4619	    ;;
4620	  esac
4621	  ;;
4622	esac
4623      fi
4624    done
4625    IFS=$lt_save_ifs
4626  done
4627  : ${lt_cv_path_NM=no}
4628fi
4629fi
4630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4631$as_echo "$lt_cv_path_NM" >&6; }
4632if test no != "$lt_cv_path_NM"; then
4633  NM=$lt_cv_path_NM
4634else
4635  # Didn't find any BSD compatible name lister, look for dumpbin.
4636  if test -n "$DUMPBIN"; then :
4637    # Let the user override the test.
4638  else
4639    if test -n "$ac_tool_prefix"; then
4640  for ac_prog in dumpbin "link -dump"
4641  do
4642    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4643set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4645$as_echo_n "checking for $ac_word... " >&6; }
4646if ${ac_cv_prog_DUMPBIN+:} false; then :
4647  $as_echo_n "(cached) " >&6
4648else
4649  if test -n "$DUMPBIN"; then
4650  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4651else
4652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653for as_dir in $PATH
4654do
4655  IFS=$as_save_IFS
4656  test -z "$as_dir" && as_dir=.
4657    for ac_exec_ext in '' $ac_executable_extensions; do
4658  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4659    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4660    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4661    break 2
4662  fi
4663done
4664  done
4665IFS=$as_save_IFS
4666
4667fi
4668fi
4669DUMPBIN=$ac_cv_prog_DUMPBIN
4670if test -n "$DUMPBIN"; then
4671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4672$as_echo "$DUMPBIN" >&6; }
4673else
4674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4675$as_echo "no" >&6; }
4676fi
4677
4678
4679    test -n "$DUMPBIN" && break
4680  done
4681fi
4682if test -z "$DUMPBIN"; then
4683  ac_ct_DUMPBIN=$DUMPBIN
4684  for ac_prog in dumpbin "link -dump"
4685do
4686  # Extract the first word of "$ac_prog", so it can be a program name with args.
4687set dummy $ac_prog; ac_word=$2
4688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4689$as_echo_n "checking for $ac_word... " >&6; }
4690if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4691  $as_echo_n "(cached) " >&6
4692else
4693  if test -n "$ac_ct_DUMPBIN"; then
4694  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4695else
4696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4697for as_dir in $PATH
4698do
4699  IFS=$as_save_IFS
4700  test -z "$as_dir" && as_dir=.
4701    for ac_exec_ext in '' $ac_executable_extensions; do
4702  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4703    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4704    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4705    break 2
4706  fi
4707done
4708  done
4709IFS=$as_save_IFS
4710
4711fi
4712fi
4713ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4714if test -n "$ac_ct_DUMPBIN"; then
4715  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4716$as_echo "$ac_ct_DUMPBIN" >&6; }
4717else
4718  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4719$as_echo "no" >&6; }
4720fi
4721
4722
4723  test -n "$ac_ct_DUMPBIN" && break
4724done
4725
4726  if test "x$ac_ct_DUMPBIN" = x; then
4727    DUMPBIN=":"
4728  else
4729    case $cross_compiling:$ac_tool_warned in
4730yes:)
4731{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4732$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4733ac_tool_warned=yes ;;
4734esac
4735    DUMPBIN=$ac_ct_DUMPBIN
4736  fi
4737fi
4738
4739    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4740    *COFF*)
4741      DUMPBIN="$DUMPBIN -symbols -headers"
4742      ;;
4743    *)
4744      DUMPBIN=:
4745      ;;
4746    esac
4747  fi
4748
4749  if test : != "$DUMPBIN"; then
4750    NM=$DUMPBIN
4751  fi
4752fi
4753test -z "$NM" && NM=nm
4754
4755
4756
4757
4758
4759
4760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4761$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4762if ${lt_cv_nm_interface+:} false; then :
4763  $as_echo_n "(cached) " >&6
4764else
4765  lt_cv_nm_interface="BSD nm"
4766  echo "int some_variable = 0;" > conftest.$ac_ext
4767  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4768  (eval "$ac_compile" 2>conftest.err)
4769  cat conftest.err >&5
4770  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4771  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4772  cat conftest.err >&5
4773  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4774  cat conftest.out >&5
4775  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4776    lt_cv_nm_interface="MS dumpbin"
4777  fi
4778  rm -f conftest*
4779fi
4780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4781$as_echo "$lt_cv_nm_interface" >&6; }
4782
4783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4784$as_echo_n "checking whether ln -s works... " >&6; }
4785LN_S=$as_ln_s
4786if test "$LN_S" = "ln -s"; then
4787  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4788$as_echo "yes" >&6; }
4789else
4790  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4791$as_echo "no, using $LN_S" >&6; }
4792fi
4793
4794# find the maximum length of command line arguments
4795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4796$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4797if ${lt_cv_sys_max_cmd_len+:} false; then :
4798  $as_echo_n "(cached) " >&6
4799else
4800    i=0
4801  teststring=ABCD
4802
4803  case $build_os in
4804  msdosdjgpp*)
4805    # On DJGPP, this test can blow up pretty badly due to problems in libc
4806    # (any single argument exceeding 2000 bytes causes a buffer overrun
4807    # during glob expansion).  Even if it were fixed, the result of this
4808    # check would be larger than it should be.
4809    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4810    ;;
4811
4812  gnu*)
4813    # Under GNU Hurd, this test is not required because there is
4814    # no limit to the length of command line arguments.
4815    # Libtool will interpret -1 as no limit whatsoever
4816    lt_cv_sys_max_cmd_len=-1;
4817    ;;
4818
4819  cygwin* | mingw* | cegcc*)
4820    # On Win9x/ME, this test blows up -- it succeeds, but takes
4821    # about 5 minutes as the teststring grows exponentially.
4822    # Worse, since 9x/ME are not pre-emptively multitasking,
4823    # you end up with a "frozen" computer, even though with patience
4824    # the test eventually succeeds (with a max line length of 256k).
4825    # Instead, let's just punt: use the minimum linelength reported by
4826    # all of the supported platforms: 8192 (on NT/2K/XP).
4827    lt_cv_sys_max_cmd_len=8192;
4828    ;;
4829
4830  mint*)
4831    # On MiNT this can take a long time and run out of memory.
4832    lt_cv_sys_max_cmd_len=8192;
4833    ;;
4834
4835  amigaos*)
4836    # On AmigaOS with pdksh, this test takes hours, literally.
4837    # So we just punt and use a minimum line length of 8192.
4838    lt_cv_sys_max_cmd_len=8192;
4839    ;;
4840
4841  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4842    # This has been around since 386BSD, at least.  Likely further.
4843    if test -x /sbin/sysctl; then
4844      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4845    elif test -x /usr/sbin/sysctl; then
4846      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4847    else
4848      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4849    fi
4850    # And add a safety zone
4851    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4852    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4853    ;;
4854
4855  interix*)
4856    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4857    lt_cv_sys_max_cmd_len=196608
4858    ;;
4859
4860  os2*)
4861    # The test takes a long time on OS/2.
4862    lt_cv_sys_max_cmd_len=8192
4863    ;;
4864
4865  osf*)
4866    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4867    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4868    # nice to cause kernel panics so lets avoid the loop below.
4869    # First set a reasonable default.
4870    lt_cv_sys_max_cmd_len=16384
4871    #
4872    if test -x /sbin/sysconfig; then
4873      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4874        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4875      esac
4876    fi
4877    ;;
4878  sco3.2v5*)
4879    lt_cv_sys_max_cmd_len=102400
4880    ;;
4881  sysv5* | sco5v6* | sysv4.2uw2*)
4882    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4883    if test -n "$kargmax"; then
4884      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4885    else
4886      lt_cv_sys_max_cmd_len=32768
4887    fi
4888    ;;
4889  *)
4890    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4891    if test -n "$lt_cv_sys_max_cmd_len" && \
4892       test undefined != "$lt_cv_sys_max_cmd_len"; then
4893      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4894      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4895    else
4896      # Make teststring a little bigger before we do anything with it.
4897      # a 1K string should be a reasonable start.
4898      for i in 1 2 3 4 5 6 7 8; do
4899        teststring=$teststring$teststring
4900      done
4901      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4902      # If test is not a shell built-in, we'll probably end up computing a
4903      # maximum length that is only half of the actual maximum length, but
4904      # we can't tell.
4905      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4906	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4907	      test 17 != "$i" # 1/2 MB should be enough
4908      do
4909        i=`expr $i + 1`
4910        teststring=$teststring$teststring
4911      done
4912      # Only check the string length outside the loop.
4913      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4914      teststring=
4915      # Add a significant safety factor because C++ compilers can tack on
4916      # massive amounts of additional arguments before passing them to the
4917      # linker.  It appears as though 1/2 is a usable value.
4918      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4919    fi
4920    ;;
4921  esac
4922
4923fi
4924
4925if test -n "$lt_cv_sys_max_cmd_len"; then
4926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4927$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4928else
4929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4930$as_echo "none" >&6; }
4931fi
4932max_cmd_len=$lt_cv_sys_max_cmd_len
4933
4934
4935
4936
4937
4938
4939: ${CP="cp -f"}
4940: ${MV="mv -f"}
4941: ${RM="rm -f"}
4942
4943if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4944  lt_unset=unset
4945else
4946  lt_unset=false
4947fi
4948
4949
4950
4951
4952
4953# test EBCDIC or ASCII
4954case `echo X|tr X '\101'` in
4955 A) # ASCII based system
4956    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4957  lt_SP2NL='tr \040 \012'
4958  lt_NL2SP='tr \015\012 \040\040'
4959  ;;
4960 *) # EBCDIC based system
4961  lt_SP2NL='tr \100 \n'
4962  lt_NL2SP='tr \r\n \100\100'
4963  ;;
4964esac
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4975$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4976if ${lt_cv_to_host_file_cmd+:} false; then :
4977  $as_echo_n "(cached) " >&6
4978else
4979  case $host in
4980  *-*-mingw* )
4981    case $build in
4982      *-*-mingw* ) # actually msys
4983        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4984        ;;
4985      *-*-cygwin* )
4986        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4987        ;;
4988      * ) # otherwise, assume *nix
4989        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4990        ;;
4991    esac
4992    ;;
4993  *-*-cygwin* )
4994    case $build in
4995      *-*-mingw* ) # actually msys
4996        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4997        ;;
4998      *-*-cygwin* )
4999        lt_cv_to_host_file_cmd=func_convert_file_noop
5000        ;;
5001      * ) # otherwise, assume *nix
5002        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5003        ;;
5004    esac
5005    ;;
5006  * ) # unhandled hosts (and "normal" native builds)
5007    lt_cv_to_host_file_cmd=func_convert_file_noop
5008    ;;
5009esac
5010
5011fi
5012
5013to_host_file_cmd=$lt_cv_to_host_file_cmd
5014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5015$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5016
5017
5018
5019
5020
5021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5022$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5023if ${lt_cv_to_tool_file_cmd+:} false; then :
5024  $as_echo_n "(cached) " >&6
5025else
5026  #assume ordinary cross tools, or native build.
5027lt_cv_to_tool_file_cmd=func_convert_file_noop
5028case $host in
5029  *-*-mingw* )
5030    case $build in
5031      *-*-mingw* ) # actually msys
5032        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5033        ;;
5034    esac
5035    ;;
5036esac
5037
5038fi
5039
5040to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5042$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5043
5044
5045
5046
5047
5048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5049$as_echo_n "checking for $LD option to reload object files... " >&6; }
5050if ${lt_cv_ld_reload_flag+:} false; then :
5051  $as_echo_n "(cached) " >&6
5052else
5053  lt_cv_ld_reload_flag='-r'
5054fi
5055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5056$as_echo "$lt_cv_ld_reload_flag" >&6; }
5057reload_flag=$lt_cv_ld_reload_flag
5058case $reload_flag in
5059"" | " "*) ;;
5060*) reload_flag=" $reload_flag" ;;
5061esac
5062reload_cmds='$LD$reload_flag -o $output$reload_objs'
5063case $host_os in
5064  cygwin* | mingw* | pw32* | cegcc*)
5065    if test yes != "$GCC"; then
5066      reload_cmds=false
5067    fi
5068    ;;
5069  darwin*)
5070    if test yes = "$GCC"; then
5071      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5072    else
5073      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5074    fi
5075    ;;
5076esac
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086if test -n "$ac_tool_prefix"; then
5087  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5088set dummy ${ac_tool_prefix}objdump; ac_word=$2
5089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5090$as_echo_n "checking for $ac_word... " >&6; }
5091if ${ac_cv_prog_OBJDUMP+:} false; then :
5092  $as_echo_n "(cached) " >&6
5093else
5094  if test -n "$OBJDUMP"; then
5095  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5096else
5097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5098for as_dir in $PATH
5099do
5100  IFS=$as_save_IFS
5101  test -z "$as_dir" && as_dir=.
5102    for ac_exec_ext in '' $ac_executable_extensions; do
5103  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5104    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5105    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5106    break 2
5107  fi
5108done
5109  done
5110IFS=$as_save_IFS
5111
5112fi
5113fi
5114OBJDUMP=$ac_cv_prog_OBJDUMP
5115if test -n "$OBJDUMP"; then
5116  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5117$as_echo "$OBJDUMP" >&6; }
5118else
5119  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5120$as_echo "no" >&6; }
5121fi
5122
5123
5124fi
5125if test -z "$ac_cv_prog_OBJDUMP"; then
5126  ac_ct_OBJDUMP=$OBJDUMP
5127  # Extract the first word of "objdump", so it can be a program name with args.
5128set dummy objdump; ac_word=$2
5129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5130$as_echo_n "checking for $ac_word... " >&6; }
5131if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5132  $as_echo_n "(cached) " >&6
5133else
5134  if test -n "$ac_ct_OBJDUMP"; then
5135  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5136else
5137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5138for as_dir in $PATH
5139do
5140  IFS=$as_save_IFS
5141  test -z "$as_dir" && as_dir=.
5142    for ac_exec_ext in '' $ac_executable_extensions; do
5143  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5144    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5145    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5146    break 2
5147  fi
5148done
5149  done
5150IFS=$as_save_IFS
5151
5152fi
5153fi
5154ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5155if test -n "$ac_ct_OBJDUMP"; then
5156  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5157$as_echo "$ac_ct_OBJDUMP" >&6; }
5158else
5159  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5160$as_echo "no" >&6; }
5161fi
5162
5163  if test "x$ac_ct_OBJDUMP" = x; then
5164    OBJDUMP="false"
5165  else
5166    case $cross_compiling:$ac_tool_warned in
5167yes:)
5168{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5169$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5170ac_tool_warned=yes ;;
5171esac
5172    OBJDUMP=$ac_ct_OBJDUMP
5173  fi
5174else
5175  OBJDUMP="$ac_cv_prog_OBJDUMP"
5176fi
5177
5178test -z "$OBJDUMP" && OBJDUMP=objdump
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5189$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5190if ${lt_cv_deplibs_check_method+:} false; then :
5191  $as_echo_n "(cached) " >&6
5192else
5193  lt_cv_file_magic_cmd='$MAGIC_CMD'
5194lt_cv_file_magic_test_file=
5195lt_cv_deplibs_check_method='unknown'
5196# Need to set the preceding variable on all platforms that support
5197# interlibrary dependencies.
5198# 'none' -- dependencies not supported.
5199# 'unknown' -- same as none, but documents that we really don't know.
5200# 'pass_all' -- all dependencies passed with no checks.
5201# 'test_compile' -- check by making test program.
5202# 'file_magic [[regex]]' -- check by looking for files in library path
5203# that responds to the $file_magic_cmd with a given extended regex.
5204# If you have 'file' or equivalent on your system and you're not sure
5205# whether 'pass_all' will *always* work, you probably want this one.
5206
5207case $host_os in
5208aix[4-9]*)
5209  lt_cv_deplibs_check_method=pass_all
5210  ;;
5211
5212beos*)
5213  lt_cv_deplibs_check_method=pass_all
5214  ;;
5215
5216bsdi[45]*)
5217  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5218  lt_cv_file_magic_cmd='/usr/bin/file -L'
5219  lt_cv_file_magic_test_file=/shlib/libc.so
5220  ;;
5221
5222cygwin*)
5223  # func_win32_libid is a shell function defined in ltmain.sh
5224  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5225  lt_cv_file_magic_cmd='func_win32_libid'
5226  ;;
5227
5228mingw* | pw32*)
5229  # Base MSYS/MinGW do not provide the 'file' command needed by
5230  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5231  # unless we find 'file', for example because we are cross-compiling.
5232  if ( file / ) >/dev/null 2>&1; then
5233    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5234    lt_cv_file_magic_cmd='func_win32_libid'
5235  else
5236    # Keep this pattern in sync with the one in func_win32_libid.
5237    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5238    lt_cv_file_magic_cmd='$OBJDUMP -f'
5239  fi
5240  ;;
5241
5242cegcc*)
5243  # use the weaker test based on 'objdump'. See mingw*.
5244  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5245  lt_cv_file_magic_cmd='$OBJDUMP -f'
5246  ;;
5247
5248darwin* | rhapsody*)
5249  lt_cv_deplibs_check_method=pass_all
5250  ;;
5251
5252freebsd* | dragonfly*)
5253  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5254    case $host_cpu in
5255    i*86 )
5256      # Not sure whether the presence of OpenBSD here was a mistake.
5257      # Let's accept both of them until this is cleared up.
5258      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5259      lt_cv_file_magic_cmd=/usr/bin/file
5260      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5261      ;;
5262    esac
5263  else
5264    lt_cv_deplibs_check_method=pass_all
5265  fi
5266  ;;
5267
5268haiku*)
5269  lt_cv_deplibs_check_method=pass_all
5270  ;;
5271
5272hpux10.20* | hpux11*)
5273  lt_cv_file_magic_cmd=/usr/bin/file
5274  case $host_cpu in
5275  ia64*)
5276    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5277    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5278    ;;
5279  hppa*64*)
5280    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]'
5281    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5282    ;;
5283  *)
5284    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5285    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5286    ;;
5287  esac
5288  ;;
5289
5290interix[3-9]*)
5291  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5292  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5293  ;;
5294
5295irix5* | irix6* | nonstopux*)
5296  case $LD in
5297  *-32|*"-32 ") libmagic=32-bit;;
5298  *-n32|*"-n32 ") libmagic=N32;;
5299  *-64|*"-64 ") libmagic=64-bit;;
5300  *) libmagic=never-match;;
5301  esac
5302  lt_cv_deplibs_check_method=pass_all
5303  ;;
5304
5305# This must be glibc/ELF.
5306linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5307  lt_cv_deplibs_check_method=pass_all
5308  ;;
5309
5310netbsd*)
5311  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5312    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5313  else
5314    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5315  fi
5316  ;;
5317
5318newos6*)
5319  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5320  lt_cv_file_magic_cmd=/usr/bin/file
5321  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5322  ;;
5323
5324*nto* | *qnx*)
5325  lt_cv_deplibs_check_method=pass_all
5326  ;;
5327
5328openbsd* | bitrig*)
5329  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5330    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5331  else
5332    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5333  fi
5334  ;;
5335
5336osf3* | osf4* | osf5*)
5337  lt_cv_deplibs_check_method=pass_all
5338  ;;
5339
5340rdos*)
5341  lt_cv_deplibs_check_method=pass_all
5342  ;;
5343
5344solaris*)
5345  lt_cv_deplibs_check_method=pass_all
5346  ;;
5347
5348sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5349  lt_cv_deplibs_check_method=pass_all
5350  ;;
5351
5352sysv4 | sysv4.3*)
5353  case $host_vendor in
5354  motorola)
5355    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]'
5356    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5357    ;;
5358  ncr)
5359    lt_cv_deplibs_check_method=pass_all
5360    ;;
5361  sequent)
5362    lt_cv_file_magic_cmd='/bin/file'
5363    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5364    ;;
5365  sni)
5366    lt_cv_file_magic_cmd='/bin/file'
5367    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5368    lt_cv_file_magic_test_file=/lib/libc.so
5369    ;;
5370  siemens)
5371    lt_cv_deplibs_check_method=pass_all
5372    ;;
5373  pc)
5374    lt_cv_deplibs_check_method=pass_all
5375    ;;
5376  esac
5377  ;;
5378
5379tpf*)
5380  lt_cv_deplibs_check_method=pass_all
5381  ;;
5382os2*)
5383  lt_cv_deplibs_check_method=pass_all
5384  ;;
5385esac
5386
5387fi
5388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5389$as_echo "$lt_cv_deplibs_check_method" >&6; }
5390
5391file_magic_glob=
5392want_nocaseglob=no
5393if test "$build" = "$host"; then
5394  case $host_os in
5395  mingw* | pw32*)
5396    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5397      want_nocaseglob=yes
5398    else
5399      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5400    fi
5401    ;;
5402  esac
5403fi
5404
5405file_magic_cmd=$lt_cv_file_magic_cmd
5406deplibs_check_method=$lt_cv_deplibs_check_method
5407test -z "$deplibs_check_method" && deplibs_check_method=unknown
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430if test -n "$ac_tool_prefix"; then
5431  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5432set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5434$as_echo_n "checking for $ac_word... " >&6; }
5435if ${ac_cv_prog_DLLTOOL+:} false; then :
5436  $as_echo_n "(cached) " >&6
5437else
5438  if test -n "$DLLTOOL"; then
5439  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5440else
5441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5442for as_dir in $PATH
5443do
5444  IFS=$as_save_IFS
5445  test -z "$as_dir" && as_dir=.
5446    for ac_exec_ext in '' $ac_executable_extensions; do
5447  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5448    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5449    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5450    break 2
5451  fi
5452done
5453  done
5454IFS=$as_save_IFS
5455
5456fi
5457fi
5458DLLTOOL=$ac_cv_prog_DLLTOOL
5459if test -n "$DLLTOOL"; then
5460  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5461$as_echo "$DLLTOOL" >&6; }
5462else
5463  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5464$as_echo "no" >&6; }
5465fi
5466
5467
5468fi
5469if test -z "$ac_cv_prog_DLLTOOL"; then
5470  ac_ct_DLLTOOL=$DLLTOOL
5471  # Extract the first word of "dlltool", so it can be a program name with args.
5472set dummy dlltool; ac_word=$2
5473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5474$as_echo_n "checking for $ac_word... " >&6; }
5475if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5476  $as_echo_n "(cached) " >&6
5477else
5478  if test -n "$ac_ct_DLLTOOL"; then
5479  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5480else
5481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5482for as_dir in $PATH
5483do
5484  IFS=$as_save_IFS
5485  test -z "$as_dir" && as_dir=.
5486    for ac_exec_ext in '' $ac_executable_extensions; do
5487  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5488    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5489    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5490    break 2
5491  fi
5492done
5493  done
5494IFS=$as_save_IFS
5495
5496fi
5497fi
5498ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5499if test -n "$ac_ct_DLLTOOL"; then
5500  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5501$as_echo "$ac_ct_DLLTOOL" >&6; }
5502else
5503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5504$as_echo "no" >&6; }
5505fi
5506
5507  if test "x$ac_ct_DLLTOOL" = x; then
5508    DLLTOOL="false"
5509  else
5510    case $cross_compiling:$ac_tool_warned in
5511yes:)
5512{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5513$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5514ac_tool_warned=yes ;;
5515esac
5516    DLLTOOL=$ac_ct_DLLTOOL
5517  fi
5518else
5519  DLLTOOL="$ac_cv_prog_DLLTOOL"
5520fi
5521
5522test -z "$DLLTOOL" && DLLTOOL=dlltool
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5534$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5535if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5536  $as_echo_n "(cached) " >&6
5537else
5538  lt_cv_sharedlib_from_linklib_cmd='unknown'
5539
5540case $host_os in
5541cygwin* | mingw* | pw32* | cegcc*)
5542  # two different shell functions defined in ltmain.sh;
5543  # decide which one to use based on capabilities of $DLLTOOL
5544  case `$DLLTOOL --help 2>&1` in
5545  *--identify-strict*)
5546    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5547    ;;
5548  *)
5549    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5550    ;;
5551  esac
5552  ;;
5553*)
5554  # fallback: assume linklib IS sharedlib
5555  lt_cv_sharedlib_from_linklib_cmd=$ECHO
5556  ;;
5557esac
5558
5559fi
5560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5561$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5562sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5563test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5564
5565
5566
5567
5568
5569
5570
5571
5572if test -n "$ac_tool_prefix"; then
5573  for ac_prog in ar
5574  do
5575    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5576set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5578$as_echo_n "checking for $ac_word... " >&6; }
5579if ${ac_cv_prog_AR+:} false; then :
5580  $as_echo_n "(cached) " >&6
5581else
5582  if test -n "$AR"; then
5583  ac_cv_prog_AR="$AR" # Let the user override the test.
5584else
5585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5586for as_dir in $PATH
5587do
5588  IFS=$as_save_IFS
5589  test -z "$as_dir" && as_dir=.
5590    for ac_exec_ext in '' $ac_executable_extensions; do
5591  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5592    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5593    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5594    break 2
5595  fi
5596done
5597  done
5598IFS=$as_save_IFS
5599
5600fi
5601fi
5602AR=$ac_cv_prog_AR
5603if test -n "$AR"; then
5604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5605$as_echo "$AR" >&6; }
5606else
5607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5608$as_echo "no" >&6; }
5609fi
5610
5611
5612    test -n "$AR" && break
5613  done
5614fi
5615if test -z "$AR"; then
5616  ac_ct_AR=$AR
5617  for ac_prog in ar
5618do
5619  # Extract the first word of "$ac_prog", so it can be a program name with args.
5620set dummy $ac_prog; ac_word=$2
5621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5622$as_echo_n "checking for $ac_word... " >&6; }
5623if ${ac_cv_prog_ac_ct_AR+:} false; then :
5624  $as_echo_n "(cached) " >&6
5625else
5626  if test -n "$ac_ct_AR"; then
5627  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5628else
5629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5630for as_dir in $PATH
5631do
5632  IFS=$as_save_IFS
5633  test -z "$as_dir" && as_dir=.
5634    for ac_exec_ext in '' $ac_executable_extensions; do
5635  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5636    ac_cv_prog_ac_ct_AR="$ac_prog"
5637    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5638    break 2
5639  fi
5640done
5641  done
5642IFS=$as_save_IFS
5643
5644fi
5645fi
5646ac_ct_AR=$ac_cv_prog_ac_ct_AR
5647if test -n "$ac_ct_AR"; then
5648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5649$as_echo "$ac_ct_AR" >&6; }
5650else
5651  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5652$as_echo "no" >&6; }
5653fi
5654
5655
5656  test -n "$ac_ct_AR" && break
5657done
5658
5659  if test "x$ac_ct_AR" = x; then
5660    AR="false"
5661  else
5662    case $cross_compiling:$ac_tool_warned in
5663yes:)
5664{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5665$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5666ac_tool_warned=yes ;;
5667esac
5668    AR=$ac_ct_AR
5669  fi
5670fi
5671
5672: ${AR=ar}
5673
5674
5675
5676
5677
5678
5679# Use ARFLAGS variable as AR's operation code to sync the variable naming with
5680# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
5681# higher priority because thats what people were doing historically (setting
5682# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
5683# variable obsoleted/removed.
5684
5685test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
5686lt_ar_flags=$AR_FLAGS
5687
5688
5689
5690
5691
5692
5693# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
5694# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
5695
5696
5697
5698
5699
5700
5701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5702$as_echo_n "checking for archiver @FILE support... " >&6; }
5703if ${lt_cv_ar_at_file+:} false; then :
5704  $as_echo_n "(cached) " >&6
5705else
5706  lt_cv_ar_at_file=no
5707   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5708/* end confdefs.h.  */
5709
5710int
5711main ()
5712{
5713
5714  ;
5715  return 0;
5716}
5717_ACEOF
5718if ac_fn_c_try_compile "$LINENO"; then :
5719  echo conftest.$ac_objext > conftest.lst
5720      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5721      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5722  (eval $lt_ar_try) 2>&5
5723  ac_status=$?
5724  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5725  test $ac_status = 0; }
5726      if test 0 -eq "$ac_status"; then
5727	# Ensure the archiver fails upon bogus file names.
5728	rm -f conftest.$ac_objext libconftest.a
5729	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5730  (eval $lt_ar_try) 2>&5
5731  ac_status=$?
5732  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5733  test $ac_status = 0; }
5734	if test 0 -ne "$ac_status"; then
5735          lt_cv_ar_at_file=@
5736        fi
5737      fi
5738      rm -f conftest.* libconftest.a
5739
5740fi
5741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5742
5743fi
5744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5745$as_echo "$lt_cv_ar_at_file" >&6; }
5746
5747if test no = "$lt_cv_ar_at_file"; then
5748  archiver_list_spec=
5749else
5750  archiver_list_spec=$lt_cv_ar_at_file
5751fi
5752
5753
5754
5755
5756
5757
5758
5759if test -n "$ac_tool_prefix"; then
5760  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5761set dummy ${ac_tool_prefix}strip; ac_word=$2
5762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5763$as_echo_n "checking for $ac_word... " >&6; }
5764if ${ac_cv_prog_STRIP+:} false; then :
5765  $as_echo_n "(cached) " >&6
5766else
5767  if test -n "$STRIP"; then
5768  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5769else
5770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5771for as_dir in $PATH
5772do
5773  IFS=$as_save_IFS
5774  test -z "$as_dir" && as_dir=.
5775    for ac_exec_ext in '' $ac_executable_extensions; do
5776  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5777    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5778    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5779    break 2
5780  fi
5781done
5782  done
5783IFS=$as_save_IFS
5784
5785fi
5786fi
5787STRIP=$ac_cv_prog_STRIP
5788if test -n "$STRIP"; then
5789  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5790$as_echo "$STRIP" >&6; }
5791else
5792  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5793$as_echo "no" >&6; }
5794fi
5795
5796
5797fi
5798if test -z "$ac_cv_prog_STRIP"; then
5799  ac_ct_STRIP=$STRIP
5800  # Extract the first word of "strip", so it can be a program name with args.
5801set dummy strip; ac_word=$2
5802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5803$as_echo_n "checking for $ac_word... " >&6; }
5804if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5805  $as_echo_n "(cached) " >&6
5806else
5807  if test -n "$ac_ct_STRIP"; then
5808  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5809else
5810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5811for as_dir in $PATH
5812do
5813  IFS=$as_save_IFS
5814  test -z "$as_dir" && as_dir=.
5815    for ac_exec_ext in '' $ac_executable_extensions; do
5816  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5817    ac_cv_prog_ac_ct_STRIP="strip"
5818    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5819    break 2
5820  fi
5821done
5822  done
5823IFS=$as_save_IFS
5824
5825fi
5826fi
5827ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5828if test -n "$ac_ct_STRIP"; then
5829  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5830$as_echo "$ac_ct_STRIP" >&6; }
5831else
5832  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5833$as_echo "no" >&6; }
5834fi
5835
5836  if test "x$ac_ct_STRIP" = x; then
5837    STRIP=":"
5838  else
5839    case $cross_compiling:$ac_tool_warned in
5840yes:)
5841{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5842$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5843ac_tool_warned=yes ;;
5844esac
5845    STRIP=$ac_ct_STRIP
5846  fi
5847else
5848  STRIP="$ac_cv_prog_STRIP"
5849fi
5850
5851test -z "$STRIP" && STRIP=:
5852
5853
5854
5855
5856
5857
5858if test -n "$ac_tool_prefix"; then
5859  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5860set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5862$as_echo_n "checking for $ac_word... " >&6; }
5863if ${ac_cv_prog_RANLIB+:} false; then :
5864  $as_echo_n "(cached) " >&6
5865else
5866  if test -n "$RANLIB"; then
5867  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5868else
5869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5870for as_dir in $PATH
5871do
5872  IFS=$as_save_IFS
5873  test -z "$as_dir" && as_dir=.
5874    for ac_exec_ext in '' $ac_executable_extensions; do
5875  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5876    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5877    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5878    break 2
5879  fi
5880done
5881  done
5882IFS=$as_save_IFS
5883
5884fi
5885fi
5886RANLIB=$ac_cv_prog_RANLIB
5887if test -n "$RANLIB"; then
5888  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5889$as_echo "$RANLIB" >&6; }
5890else
5891  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5892$as_echo "no" >&6; }
5893fi
5894
5895
5896fi
5897if test -z "$ac_cv_prog_RANLIB"; then
5898  ac_ct_RANLIB=$RANLIB
5899  # Extract the first word of "ranlib", so it can be a program name with args.
5900set dummy ranlib; ac_word=$2
5901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5902$as_echo_n "checking for $ac_word... " >&6; }
5903if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5904  $as_echo_n "(cached) " >&6
5905else
5906  if test -n "$ac_ct_RANLIB"; then
5907  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5908else
5909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5910for as_dir in $PATH
5911do
5912  IFS=$as_save_IFS
5913  test -z "$as_dir" && as_dir=.
5914    for ac_exec_ext in '' $ac_executable_extensions; do
5915  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5916    ac_cv_prog_ac_ct_RANLIB="ranlib"
5917    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5918    break 2
5919  fi
5920done
5921  done
5922IFS=$as_save_IFS
5923
5924fi
5925fi
5926ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5927if test -n "$ac_ct_RANLIB"; then
5928  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5929$as_echo "$ac_ct_RANLIB" >&6; }
5930else
5931  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5932$as_echo "no" >&6; }
5933fi
5934
5935  if test "x$ac_ct_RANLIB" = x; then
5936    RANLIB=":"
5937  else
5938    case $cross_compiling:$ac_tool_warned in
5939yes:)
5940{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5941$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5942ac_tool_warned=yes ;;
5943esac
5944    RANLIB=$ac_ct_RANLIB
5945  fi
5946else
5947  RANLIB="$ac_cv_prog_RANLIB"
5948fi
5949
5950test -z "$RANLIB" && RANLIB=:
5951
5952
5953
5954
5955
5956
5957# Determine commands to create old-style static archives.
5958old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5959old_postinstall_cmds='chmod 644 $oldlib'
5960old_postuninstall_cmds=
5961
5962if test -n "$RANLIB"; then
5963  case $host_os in
5964  bitrig* | openbsd*)
5965    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5966    ;;
5967  *)
5968    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5969    ;;
5970  esac
5971  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5972fi
5973
5974case $host_os in
5975  darwin*)
5976    lock_old_archive_extraction=yes ;;
5977  *)
5978    lock_old_archive_extraction=no ;;
5979esac
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019# If no C compiler was specified, use CC.
6020LTCC=${LTCC-"$CC"}
6021
6022# If no C compiler flags were specified, use CFLAGS.
6023LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6024
6025# Allow CC to be a program name with arguments.
6026compiler=$CC
6027
6028
6029# Check for command to grab the raw symbol name followed by C symbol from nm.
6030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6031$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6032if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6033  $as_echo_n "(cached) " >&6
6034else
6035
6036# These are sane defaults that work on at least a few old systems.
6037# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6038
6039# Character class describing NM global symbol codes.
6040symcode='[BCDEGRST]'
6041
6042# Regexp to match symbols that can be accessed directly from C.
6043sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6044
6045# Define system-specific variables.
6046case $host_os in
6047aix*)
6048  symcode='[BCDT]'
6049  ;;
6050cygwin* | mingw* | pw32* | cegcc*)
6051  symcode='[ABCDGISTW]'
6052  ;;
6053hpux*)
6054  if test ia64 = "$host_cpu"; then
6055    symcode='[ABCDEGRST]'
6056  fi
6057  ;;
6058irix* | nonstopux*)
6059  symcode='[BCDEGRST]'
6060  ;;
6061osf*)
6062  symcode='[BCDEGQRST]'
6063  ;;
6064solaris*)
6065  symcode='[BDRT]'
6066  ;;
6067sco3.2v5*)
6068  symcode='[DT]'
6069  ;;
6070sysv4.2uw2*)
6071  symcode='[DT]'
6072  ;;
6073sysv5* | sco5v6* | unixware* | OpenUNIX*)
6074  symcode='[ABDT]'
6075  ;;
6076sysv4)
6077  symcode='[DFNSTU]'
6078  ;;
6079esac
6080
6081# If we're using GNU nm, then use its standard symbol codes.
6082case `$NM -V 2>&1` in
6083*GNU* | *'with BFD'*)
6084  symcode='[ABCDGIRSTW]' ;;
6085esac
6086
6087if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6088  # Gets list of data symbols to import.
6089  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6090  # Adjust the below global symbol transforms to fixup imported variables.
6091  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6092  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6093  lt_c_name_lib_hook="\
6094  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6095  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6096else
6097  # Disable hooks by default.
6098  lt_cv_sys_global_symbol_to_import=
6099  lt_cdecl_hook=
6100  lt_c_name_hook=
6101  lt_c_name_lib_hook=
6102fi
6103
6104# Transform an extracted symbol line into a proper C declaration.
6105# Some systems (esp. on ia64) link data and code symbols differently,
6106# so use this general approach.
6107lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6108$lt_cdecl_hook\
6109" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6110" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6111
6112# Transform an extracted symbol line into symbol name and symbol address
6113lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6114$lt_c_name_hook\
6115" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6116" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6117
6118# Transform an extracted symbol line into symbol name with lib prefix and
6119# symbol address.
6120lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6121$lt_c_name_lib_hook\
6122" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6123" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6124" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6125
6126# Handle CRLF in mingw tool chain
6127opt_cr=
6128case $build_os in
6129mingw*)
6130  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6131  ;;
6132esac
6133
6134# Try without a prefix underscore, then with it.
6135for ac_symprfx in "" "_"; do
6136
6137  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6138  symxfrm="\\1 $ac_symprfx\\2 \\2"
6139
6140  # Write the raw and C identifiers.
6141  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6142    # Fake it for dumpbin and say T for any non-static function,
6143    # D for any global variable and I for any imported variable.
6144    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
6145    # which start with @ or ?.
6146    lt_cv_sys_global_symbol_pipe="$AWK '"\
6147"     {last_section=section; section=\$ 3};"\
6148"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6149"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6150"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6151"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6152"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6153"     \$ 0!~/External *\|/{next};"\
6154"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6155"     {if(hide[section]) next};"\
6156"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6157"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6158"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6159"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6160"     ' prfx=^$ac_symprfx"
6161  else
6162    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6163  fi
6164  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6165
6166  # Check to see that the pipe works correctly.
6167  pipe_works=no
6168
6169  rm -f conftest*
6170  cat > conftest.$ac_ext <<_LT_EOF
6171#ifdef __cplusplus
6172extern "C" {
6173#endif
6174char nm_test_var;
6175void nm_test_func(void);
6176void nm_test_func(void){}
6177#ifdef __cplusplus
6178}
6179#endif
6180int main(){nm_test_var='a';nm_test_func();return(0);}
6181_LT_EOF
6182
6183  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6184  (eval $ac_compile) 2>&5
6185  ac_status=$?
6186  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6187  test $ac_status = 0; }; then
6188    # Now try to grab the symbols.
6189    nlist=conftest.nm
6190    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6191  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6192  ac_status=$?
6193  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6194  test $ac_status = 0; } && test -s "$nlist"; then
6195      # Try sorting and uniquifying the output.
6196      if sort "$nlist" | uniq > "$nlist"T; then
6197	mv -f "$nlist"T "$nlist"
6198      else
6199	rm -f "$nlist"T
6200      fi
6201
6202      # Make sure that we snagged all the symbols we need.
6203      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6204	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6205	  cat <<_LT_EOF > conftest.$ac_ext
6206/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6207#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6208/* DATA imports from DLLs on WIN32 can't be const, because runtime
6209   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6210# define LT_DLSYM_CONST
6211#elif defined __osf__
6212/* This system does not cope well with relocations in const data.  */
6213# define LT_DLSYM_CONST
6214#else
6215# define LT_DLSYM_CONST const
6216#endif
6217
6218#ifdef __cplusplus
6219extern "C" {
6220#endif
6221
6222_LT_EOF
6223	  # Now generate the symbol file.
6224	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6225
6226	  cat <<_LT_EOF >> conftest.$ac_ext
6227
6228/* The mapping between symbol names and symbols.  */
6229LT_DLSYM_CONST struct {
6230  const char *name;
6231  void       *address;
6232}
6233lt__PROGRAM__LTX_preloaded_symbols[] =
6234{
6235  { "@PROGRAM@", (void *) 0 },
6236_LT_EOF
6237	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6238	  cat <<\_LT_EOF >> conftest.$ac_ext
6239  {0, (void *) 0}
6240};
6241
6242/* This works around a problem in FreeBSD linker */
6243#ifdef FREEBSD_WORKAROUND
6244static const void *lt_preloaded_setup() {
6245  return lt__PROGRAM__LTX_preloaded_symbols;
6246}
6247#endif
6248
6249#ifdef __cplusplus
6250}
6251#endif
6252_LT_EOF
6253	  # Now try linking the two files.
6254	  mv conftest.$ac_objext conftstm.$ac_objext
6255	  lt_globsym_save_LIBS=$LIBS
6256	  lt_globsym_save_CFLAGS=$CFLAGS
6257	  LIBS=conftstm.$ac_objext
6258	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6259	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6260  (eval $ac_link) 2>&5
6261  ac_status=$?
6262  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6263  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6264	    pipe_works=yes
6265	  fi
6266	  LIBS=$lt_globsym_save_LIBS
6267	  CFLAGS=$lt_globsym_save_CFLAGS
6268	else
6269	  echo "cannot find nm_test_func in $nlist" >&5
6270	fi
6271      else
6272	echo "cannot find nm_test_var in $nlist" >&5
6273      fi
6274    else
6275      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6276    fi
6277  else
6278    echo "$progname: failed program was:" >&5
6279    cat conftest.$ac_ext >&5
6280  fi
6281  rm -rf conftest* conftst*
6282
6283  # Do not use the global_symbol_pipe unless it works.
6284  if test yes = "$pipe_works"; then
6285    break
6286  else
6287    lt_cv_sys_global_symbol_pipe=
6288  fi
6289done
6290
6291fi
6292
6293if test -z "$lt_cv_sys_global_symbol_pipe"; then
6294  lt_cv_sys_global_symbol_to_cdecl=
6295fi
6296if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6297  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6298$as_echo "failed" >&6; }
6299else
6300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6301$as_echo "ok" >&6; }
6302fi
6303
6304# Response file support.
6305if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6306  nm_file_list_spec='@'
6307elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6308  nm_file_list_spec='@'
6309fi
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6348$as_echo_n "checking for sysroot... " >&6; }
6349
6350# Check whether --with-sysroot was given.
6351if test "${with_sysroot+set}" = set; then :
6352  withval=$with_sysroot;
6353else
6354  with_sysroot=no
6355fi
6356
6357
6358lt_sysroot=
6359case $with_sysroot in #(
6360 yes)
6361   if test yes = "$GCC"; then
6362     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6363   fi
6364   ;; #(
6365 /*)
6366   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6367   ;; #(
6368 no|'')
6369   ;; #(
6370 *)
6371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6372$as_echo "$with_sysroot" >&6; }
6373   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6374   ;;
6375esac
6376
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6378$as_echo "${lt_sysroot:-no}" >&6; }
6379
6380
6381
6382
6383
6384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6385$as_echo_n "checking for a working dd... " >&6; }
6386if ${ac_cv_path_lt_DD+:} false; then :
6387  $as_echo_n "(cached) " >&6
6388else
6389  printf 0123456789abcdef0123456789abcdef >conftest.i
6390cat conftest.i conftest.i >conftest2.i
6391: ${lt_DD:=$DD}
6392if test -z "$lt_DD"; then
6393  ac_path_lt_DD_found=false
6394  # Loop through the user's path and test for each of PROGNAME-LIST
6395  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6396for as_dir in $PATH
6397do
6398  IFS=$as_save_IFS
6399  test -z "$as_dir" && as_dir=.
6400    for ac_prog in dd; do
6401    for ac_exec_ext in '' $ac_executable_extensions; do
6402      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6403      as_fn_executable_p "$ac_path_lt_DD" || continue
6404if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6405  cmp -s conftest.i conftest.out \
6406  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6407fi
6408      $ac_path_lt_DD_found && break 3
6409    done
6410  done
6411  done
6412IFS=$as_save_IFS
6413  if test -z "$ac_cv_path_lt_DD"; then
6414    :
6415  fi
6416else
6417  ac_cv_path_lt_DD=$lt_DD
6418fi
6419
6420rm -f conftest.i conftest2.i conftest.out
6421fi
6422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6423$as_echo "$ac_cv_path_lt_DD" >&6; }
6424
6425
6426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6427$as_echo_n "checking how to truncate binary pipes... " >&6; }
6428if ${lt_cv_truncate_bin+:} false; then :
6429  $as_echo_n "(cached) " >&6
6430else
6431  printf 0123456789abcdef0123456789abcdef >conftest.i
6432cat conftest.i conftest.i >conftest2.i
6433lt_cv_truncate_bin=
6434if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6435  cmp -s conftest.i conftest.out \
6436  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6437fi
6438rm -f conftest.i conftest2.i conftest.out
6439test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6440fi
6441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6442$as_echo "$lt_cv_truncate_bin" >&6; }
6443
6444
6445
6446
6447
6448
6449
6450# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6451func_cc_basename ()
6452{
6453    for cc_temp in $*""; do
6454      case $cc_temp in
6455        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6456        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6457        \-*) ;;
6458        *) break;;
6459      esac
6460    done
6461    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6462}
6463
6464# Check whether --enable-libtool-lock was given.
6465if test "${enable_libtool_lock+set}" = set; then :
6466  enableval=$enable_libtool_lock;
6467fi
6468
6469test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6470
6471# Some flags need to be propagated to the compiler or linker for good
6472# libtool support.
6473case $host in
6474ia64-*-hpux*)
6475  # Find out what ABI is being produced by ac_compile, and set mode
6476  # options accordingly.
6477  echo 'int i;' > conftest.$ac_ext
6478  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6479  (eval $ac_compile) 2>&5
6480  ac_status=$?
6481  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6482  test $ac_status = 0; }; then
6483    case `/usr/bin/file conftest.$ac_objext` in
6484      *ELF-32*)
6485	HPUX_IA64_MODE=32
6486	;;
6487      *ELF-64*)
6488	HPUX_IA64_MODE=64
6489	;;
6490    esac
6491  fi
6492  rm -rf conftest*
6493  ;;
6494*-*-irix6*)
6495  # Find out what ABI is being produced by ac_compile, and set linker
6496  # options accordingly.
6497  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6498  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6499  (eval $ac_compile) 2>&5
6500  ac_status=$?
6501  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6502  test $ac_status = 0; }; then
6503    if test yes = "$lt_cv_prog_gnu_ld"; then
6504      case `/usr/bin/file conftest.$ac_objext` in
6505	*32-bit*)
6506	  LD="${LD-ld} -melf32bsmip"
6507	  ;;
6508	*N32*)
6509	  LD="${LD-ld} -melf32bmipn32"
6510	  ;;
6511	*64-bit*)
6512	  LD="${LD-ld} -melf64bmip"
6513	;;
6514      esac
6515    else
6516      case `/usr/bin/file conftest.$ac_objext` in
6517	*32-bit*)
6518	  LD="${LD-ld} -32"
6519	  ;;
6520	*N32*)
6521	  LD="${LD-ld} -n32"
6522	  ;;
6523	*64-bit*)
6524	  LD="${LD-ld} -64"
6525	  ;;
6526      esac
6527    fi
6528  fi
6529  rm -rf conftest*
6530  ;;
6531
6532mips64*-*linux*)
6533  # Find out what ABI is being produced by ac_compile, and set linker
6534  # options accordingly.
6535  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6536  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6537  (eval $ac_compile) 2>&5
6538  ac_status=$?
6539  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6540  test $ac_status = 0; }; then
6541    emul=elf
6542    case `/usr/bin/file conftest.$ac_objext` in
6543      *32-bit*)
6544	emul="${emul}32"
6545	;;
6546      *64-bit*)
6547	emul="${emul}64"
6548	;;
6549    esac
6550    case `/usr/bin/file conftest.$ac_objext` in
6551      *MSB*)
6552	emul="${emul}btsmip"
6553	;;
6554      *LSB*)
6555	emul="${emul}ltsmip"
6556	;;
6557    esac
6558    case `/usr/bin/file conftest.$ac_objext` in
6559      *N32*)
6560	emul="${emul}n32"
6561	;;
6562    esac
6563    LD="${LD-ld} -m $emul"
6564  fi
6565  rm -rf conftest*
6566  ;;
6567
6568x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6569s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6570  # Find out what ABI is being produced by ac_compile, and set linker
6571  # options accordingly.  Note that the listed cases only cover the
6572  # situations where additional linker options are needed (such as when
6573  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6574  # vice versa); the common cases where no linker options are needed do
6575  # not appear in the list.
6576  echo 'int i;' > conftest.$ac_ext
6577  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6578  (eval $ac_compile) 2>&5
6579  ac_status=$?
6580  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6581  test $ac_status = 0; }; then
6582    case `/usr/bin/file conftest.o` in
6583      *32-bit*)
6584	case $host in
6585	  x86_64-*kfreebsd*-gnu)
6586	    LD="${LD-ld} -m elf_i386_fbsd"
6587	    ;;
6588	  x86_64-*linux*)
6589	    case `/usr/bin/file conftest.o` in
6590	      *x86-64*)
6591		LD="${LD-ld} -m elf32_x86_64"
6592		;;
6593	      *)
6594		LD="${LD-ld} -m elf_i386"
6595		;;
6596	    esac
6597	    ;;
6598	  powerpc64le-*linux*)
6599	    LD="${LD-ld} -m elf32lppclinux"
6600	    ;;
6601	  powerpc64-*linux*)
6602	    LD="${LD-ld} -m elf32ppclinux"
6603	    ;;
6604	  s390x-*linux*)
6605	    LD="${LD-ld} -m elf_s390"
6606	    ;;
6607	  sparc64-*linux*)
6608	    LD="${LD-ld} -m elf32_sparc"
6609	    ;;
6610	esac
6611	;;
6612      *64-bit*)
6613	case $host in
6614	  x86_64-*kfreebsd*-gnu)
6615	    LD="${LD-ld} -m elf_x86_64_fbsd"
6616	    ;;
6617	  x86_64-*linux*)
6618	    LD="${LD-ld} -m elf_x86_64"
6619	    ;;
6620	  powerpcle-*linux*)
6621	    LD="${LD-ld} -m elf64lppc"
6622	    ;;
6623	  powerpc-*linux*)
6624	    LD="${LD-ld} -m elf64ppc"
6625	    ;;
6626	  s390*-*linux*|s390*-*tpf*)
6627	    LD="${LD-ld} -m elf64_s390"
6628	    ;;
6629	  sparc*-*linux*)
6630	    LD="${LD-ld} -m elf64_sparc"
6631	    ;;
6632	esac
6633	;;
6634    esac
6635  fi
6636  rm -rf conftest*
6637  ;;
6638
6639*-*-sco3.2v5*)
6640  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6641  SAVE_CFLAGS=$CFLAGS
6642  CFLAGS="$CFLAGS -belf"
6643  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6644$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6645if ${lt_cv_cc_needs_belf+:} false; then :
6646  $as_echo_n "(cached) " >&6
6647else
6648  ac_ext=c
6649ac_cpp='$CPP $CPPFLAGS'
6650ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6651ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6652ac_compiler_gnu=$ac_cv_c_compiler_gnu
6653
6654     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6655/* end confdefs.h.  */
6656
6657int
6658main ()
6659{
6660
6661  ;
6662  return 0;
6663}
6664_ACEOF
6665if ac_fn_c_try_link "$LINENO"; then :
6666  lt_cv_cc_needs_belf=yes
6667else
6668  lt_cv_cc_needs_belf=no
6669fi
6670rm -f core conftest.err conftest.$ac_objext \
6671    conftest$ac_exeext conftest.$ac_ext
6672     ac_ext=c
6673ac_cpp='$CPP $CPPFLAGS'
6674ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6675ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6676ac_compiler_gnu=$ac_cv_c_compiler_gnu
6677
6678fi
6679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6680$as_echo "$lt_cv_cc_needs_belf" >&6; }
6681  if test yes != "$lt_cv_cc_needs_belf"; then
6682    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6683    CFLAGS=$SAVE_CFLAGS
6684  fi
6685  ;;
6686*-*solaris*)
6687  # Find out what ABI is being produced by ac_compile, and set linker
6688  # options accordingly.
6689  echo 'int i;' > conftest.$ac_ext
6690  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6691  (eval $ac_compile) 2>&5
6692  ac_status=$?
6693  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6694  test $ac_status = 0; }; then
6695    case `/usr/bin/file conftest.o` in
6696    *64-bit*)
6697      case $lt_cv_prog_gnu_ld in
6698      yes*)
6699        case $host in
6700        i?86-*-solaris*|x86_64-*-solaris*)
6701          LD="${LD-ld} -m elf_x86_64"
6702          ;;
6703        sparc*-*-solaris*)
6704          LD="${LD-ld} -m elf64_sparc"
6705          ;;
6706        esac
6707        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6708        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6709          LD=${LD-ld}_sol2
6710        fi
6711        ;;
6712      *)
6713	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6714	  LD="${LD-ld} -64"
6715	fi
6716	;;
6717      esac
6718      ;;
6719    esac
6720  fi
6721  rm -rf conftest*
6722  ;;
6723esac
6724
6725need_locks=$enable_libtool_lock
6726
6727if test -n "$ac_tool_prefix"; then
6728  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6729set dummy ${ac_tool_prefix}mt; ac_word=$2
6730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6731$as_echo_n "checking for $ac_word... " >&6; }
6732if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6733  $as_echo_n "(cached) " >&6
6734else
6735  if test -n "$MANIFEST_TOOL"; then
6736  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6737else
6738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6739for as_dir in $PATH
6740do
6741  IFS=$as_save_IFS
6742  test -z "$as_dir" && as_dir=.
6743    for ac_exec_ext in '' $ac_executable_extensions; do
6744  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6745    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6746    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6747    break 2
6748  fi
6749done
6750  done
6751IFS=$as_save_IFS
6752
6753fi
6754fi
6755MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6756if test -n "$MANIFEST_TOOL"; then
6757  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6758$as_echo "$MANIFEST_TOOL" >&6; }
6759else
6760  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6761$as_echo "no" >&6; }
6762fi
6763
6764
6765fi
6766if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6767  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6768  # Extract the first word of "mt", so it can be a program name with args.
6769set dummy mt; ac_word=$2
6770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6771$as_echo_n "checking for $ac_word... " >&6; }
6772if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6773  $as_echo_n "(cached) " >&6
6774else
6775  if test -n "$ac_ct_MANIFEST_TOOL"; then
6776  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6777else
6778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6779for as_dir in $PATH
6780do
6781  IFS=$as_save_IFS
6782  test -z "$as_dir" && as_dir=.
6783    for ac_exec_ext in '' $ac_executable_extensions; do
6784  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6785    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6786    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6787    break 2
6788  fi
6789done
6790  done
6791IFS=$as_save_IFS
6792
6793fi
6794fi
6795ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6796if test -n "$ac_ct_MANIFEST_TOOL"; then
6797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6798$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6799else
6800  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6801$as_echo "no" >&6; }
6802fi
6803
6804  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6805    MANIFEST_TOOL=":"
6806  else
6807    case $cross_compiling:$ac_tool_warned in
6808yes:)
6809{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6810$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6811ac_tool_warned=yes ;;
6812esac
6813    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6814  fi
6815else
6816  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6817fi
6818
6819test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6821$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6822if ${lt_cv_path_mainfest_tool+:} false; then :
6823  $as_echo_n "(cached) " >&6
6824else
6825  lt_cv_path_mainfest_tool=no
6826  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6827  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6828  cat conftest.err >&5
6829  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6830    lt_cv_path_mainfest_tool=yes
6831  fi
6832  rm -f conftest*
6833fi
6834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6835$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6836if test yes != "$lt_cv_path_mainfest_tool"; then
6837  MANIFEST_TOOL=:
6838fi
6839
6840
6841
6842
6843
6844
6845  case $host_os in
6846    rhapsody* | darwin*)
6847    if test -n "$ac_tool_prefix"; then
6848  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6849set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6851$as_echo_n "checking for $ac_word... " >&6; }
6852if ${ac_cv_prog_DSYMUTIL+:} false; then :
6853  $as_echo_n "(cached) " >&6
6854else
6855  if test -n "$DSYMUTIL"; then
6856  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6857else
6858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6859for as_dir in $PATH
6860do
6861  IFS=$as_save_IFS
6862  test -z "$as_dir" && as_dir=.
6863    for ac_exec_ext in '' $ac_executable_extensions; do
6864  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6865    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6866    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6867    break 2
6868  fi
6869done
6870  done
6871IFS=$as_save_IFS
6872
6873fi
6874fi
6875DSYMUTIL=$ac_cv_prog_DSYMUTIL
6876if test -n "$DSYMUTIL"; then
6877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6878$as_echo "$DSYMUTIL" >&6; }
6879else
6880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6881$as_echo "no" >&6; }
6882fi
6883
6884
6885fi
6886if test -z "$ac_cv_prog_DSYMUTIL"; then
6887  ac_ct_DSYMUTIL=$DSYMUTIL
6888  # Extract the first word of "dsymutil", so it can be a program name with args.
6889set dummy dsymutil; ac_word=$2
6890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6891$as_echo_n "checking for $ac_word... " >&6; }
6892if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6893  $as_echo_n "(cached) " >&6
6894else
6895  if test -n "$ac_ct_DSYMUTIL"; then
6896  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6897else
6898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6899for as_dir in $PATH
6900do
6901  IFS=$as_save_IFS
6902  test -z "$as_dir" && as_dir=.
6903    for ac_exec_ext in '' $ac_executable_extensions; do
6904  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6905    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6906    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6907    break 2
6908  fi
6909done
6910  done
6911IFS=$as_save_IFS
6912
6913fi
6914fi
6915ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6916if test -n "$ac_ct_DSYMUTIL"; then
6917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6918$as_echo "$ac_ct_DSYMUTIL" >&6; }
6919else
6920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6921$as_echo "no" >&6; }
6922fi
6923
6924  if test "x$ac_ct_DSYMUTIL" = x; then
6925    DSYMUTIL=":"
6926  else
6927    case $cross_compiling:$ac_tool_warned in
6928yes:)
6929{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6930$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6931ac_tool_warned=yes ;;
6932esac
6933    DSYMUTIL=$ac_ct_DSYMUTIL
6934  fi
6935else
6936  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6937fi
6938
6939    if test -n "$ac_tool_prefix"; then
6940  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6941set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6943$as_echo_n "checking for $ac_word... " >&6; }
6944if ${ac_cv_prog_NMEDIT+:} false; then :
6945  $as_echo_n "(cached) " >&6
6946else
6947  if test -n "$NMEDIT"; then
6948  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6949else
6950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6951for as_dir in $PATH
6952do
6953  IFS=$as_save_IFS
6954  test -z "$as_dir" && as_dir=.
6955    for ac_exec_ext in '' $ac_executable_extensions; do
6956  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6957    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6958    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6959    break 2
6960  fi
6961done
6962  done
6963IFS=$as_save_IFS
6964
6965fi
6966fi
6967NMEDIT=$ac_cv_prog_NMEDIT
6968if test -n "$NMEDIT"; then
6969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6970$as_echo "$NMEDIT" >&6; }
6971else
6972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6973$as_echo "no" >&6; }
6974fi
6975
6976
6977fi
6978if test -z "$ac_cv_prog_NMEDIT"; then
6979  ac_ct_NMEDIT=$NMEDIT
6980  # Extract the first word of "nmedit", so it can be a program name with args.
6981set dummy nmedit; ac_word=$2
6982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6983$as_echo_n "checking for $ac_word... " >&6; }
6984if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6985  $as_echo_n "(cached) " >&6
6986else
6987  if test -n "$ac_ct_NMEDIT"; then
6988  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6989else
6990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6991for as_dir in $PATH
6992do
6993  IFS=$as_save_IFS
6994  test -z "$as_dir" && as_dir=.
6995    for ac_exec_ext in '' $ac_executable_extensions; do
6996  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6997    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6998    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6999    break 2
7000  fi
7001done
7002  done
7003IFS=$as_save_IFS
7004
7005fi
7006fi
7007ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7008if test -n "$ac_ct_NMEDIT"; then
7009  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7010$as_echo "$ac_ct_NMEDIT" >&6; }
7011else
7012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7013$as_echo "no" >&6; }
7014fi
7015
7016  if test "x$ac_ct_NMEDIT" = x; then
7017    NMEDIT=":"
7018  else
7019    case $cross_compiling:$ac_tool_warned in
7020yes:)
7021{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7022$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7023ac_tool_warned=yes ;;
7024esac
7025    NMEDIT=$ac_ct_NMEDIT
7026  fi
7027else
7028  NMEDIT="$ac_cv_prog_NMEDIT"
7029fi
7030
7031    if test -n "$ac_tool_prefix"; then
7032  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7033set dummy ${ac_tool_prefix}lipo; ac_word=$2
7034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7035$as_echo_n "checking for $ac_word... " >&6; }
7036if ${ac_cv_prog_LIPO+:} false; then :
7037  $as_echo_n "(cached) " >&6
7038else
7039  if test -n "$LIPO"; then
7040  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7041else
7042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7043for as_dir in $PATH
7044do
7045  IFS=$as_save_IFS
7046  test -z "$as_dir" && as_dir=.
7047    for ac_exec_ext in '' $ac_executable_extensions; do
7048  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7049    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7050    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7051    break 2
7052  fi
7053done
7054  done
7055IFS=$as_save_IFS
7056
7057fi
7058fi
7059LIPO=$ac_cv_prog_LIPO
7060if test -n "$LIPO"; then
7061  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7062$as_echo "$LIPO" >&6; }
7063else
7064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7065$as_echo "no" >&6; }
7066fi
7067
7068
7069fi
7070if test -z "$ac_cv_prog_LIPO"; then
7071  ac_ct_LIPO=$LIPO
7072  # Extract the first word of "lipo", so it can be a program name with args.
7073set dummy lipo; ac_word=$2
7074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7075$as_echo_n "checking for $ac_word... " >&6; }
7076if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7077  $as_echo_n "(cached) " >&6
7078else
7079  if test -n "$ac_ct_LIPO"; then
7080  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7081else
7082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7083for as_dir in $PATH
7084do
7085  IFS=$as_save_IFS
7086  test -z "$as_dir" && as_dir=.
7087    for ac_exec_ext in '' $ac_executable_extensions; do
7088  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7089    ac_cv_prog_ac_ct_LIPO="lipo"
7090    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7091    break 2
7092  fi
7093done
7094  done
7095IFS=$as_save_IFS
7096
7097fi
7098fi
7099ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7100if test -n "$ac_ct_LIPO"; then
7101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7102$as_echo "$ac_ct_LIPO" >&6; }
7103else
7104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7105$as_echo "no" >&6; }
7106fi
7107
7108  if test "x$ac_ct_LIPO" = x; then
7109    LIPO=":"
7110  else
7111    case $cross_compiling:$ac_tool_warned in
7112yes:)
7113{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7114$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7115ac_tool_warned=yes ;;
7116esac
7117    LIPO=$ac_ct_LIPO
7118  fi
7119else
7120  LIPO="$ac_cv_prog_LIPO"
7121fi
7122
7123    if test -n "$ac_tool_prefix"; then
7124  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7125set dummy ${ac_tool_prefix}otool; ac_word=$2
7126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7127$as_echo_n "checking for $ac_word... " >&6; }
7128if ${ac_cv_prog_OTOOL+:} false; then :
7129  $as_echo_n "(cached) " >&6
7130else
7131  if test -n "$OTOOL"; then
7132  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7133else
7134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7135for as_dir in $PATH
7136do
7137  IFS=$as_save_IFS
7138  test -z "$as_dir" && as_dir=.
7139    for ac_exec_ext in '' $ac_executable_extensions; do
7140  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7141    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7142    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7143    break 2
7144  fi
7145done
7146  done
7147IFS=$as_save_IFS
7148
7149fi
7150fi
7151OTOOL=$ac_cv_prog_OTOOL
7152if test -n "$OTOOL"; then
7153  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7154$as_echo "$OTOOL" >&6; }
7155else
7156  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7157$as_echo "no" >&6; }
7158fi
7159
7160
7161fi
7162if test -z "$ac_cv_prog_OTOOL"; then
7163  ac_ct_OTOOL=$OTOOL
7164  # Extract the first word of "otool", so it can be a program name with args.
7165set dummy otool; ac_word=$2
7166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7167$as_echo_n "checking for $ac_word... " >&6; }
7168if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7169  $as_echo_n "(cached) " >&6
7170else
7171  if test -n "$ac_ct_OTOOL"; then
7172  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7173else
7174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7175for as_dir in $PATH
7176do
7177  IFS=$as_save_IFS
7178  test -z "$as_dir" && as_dir=.
7179    for ac_exec_ext in '' $ac_executable_extensions; do
7180  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7181    ac_cv_prog_ac_ct_OTOOL="otool"
7182    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7183    break 2
7184  fi
7185done
7186  done
7187IFS=$as_save_IFS
7188
7189fi
7190fi
7191ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7192if test -n "$ac_ct_OTOOL"; then
7193  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7194$as_echo "$ac_ct_OTOOL" >&6; }
7195else
7196  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7197$as_echo "no" >&6; }
7198fi
7199
7200  if test "x$ac_ct_OTOOL" = x; then
7201    OTOOL=":"
7202  else
7203    case $cross_compiling:$ac_tool_warned in
7204yes:)
7205{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7206$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7207ac_tool_warned=yes ;;
7208esac
7209    OTOOL=$ac_ct_OTOOL
7210  fi
7211else
7212  OTOOL="$ac_cv_prog_OTOOL"
7213fi
7214
7215    if test -n "$ac_tool_prefix"; then
7216  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7217set dummy ${ac_tool_prefix}otool64; ac_word=$2
7218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7219$as_echo_n "checking for $ac_word... " >&6; }
7220if ${ac_cv_prog_OTOOL64+:} false; then :
7221  $as_echo_n "(cached) " >&6
7222else
7223  if test -n "$OTOOL64"; then
7224  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7225else
7226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7227for as_dir in $PATH
7228do
7229  IFS=$as_save_IFS
7230  test -z "$as_dir" && as_dir=.
7231    for ac_exec_ext in '' $ac_executable_extensions; do
7232  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7233    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7234    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7235    break 2
7236  fi
7237done
7238  done
7239IFS=$as_save_IFS
7240
7241fi
7242fi
7243OTOOL64=$ac_cv_prog_OTOOL64
7244if test -n "$OTOOL64"; then
7245  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7246$as_echo "$OTOOL64" >&6; }
7247else
7248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7249$as_echo "no" >&6; }
7250fi
7251
7252
7253fi
7254if test -z "$ac_cv_prog_OTOOL64"; then
7255  ac_ct_OTOOL64=$OTOOL64
7256  # Extract the first word of "otool64", so it can be a program name with args.
7257set dummy otool64; ac_word=$2
7258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7259$as_echo_n "checking for $ac_word... " >&6; }
7260if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7261  $as_echo_n "(cached) " >&6
7262else
7263  if test -n "$ac_ct_OTOOL64"; then
7264  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7265else
7266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7267for as_dir in $PATH
7268do
7269  IFS=$as_save_IFS
7270  test -z "$as_dir" && as_dir=.
7271    for ac_exec_ext in '' $ac_executable_extensions; do
7272  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7273    ac_cv_prog_ac_ct_OTOOL64="otool64"
7274    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7275    break 2
7276  fi
7277done
7278  done
7279IFS=$as_save_IFS
7280
7281fi
7282fi
7283ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7284if test -n "$ac_ct_OTOOL64"; then
7285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7286$as_echo "$ac_ct_OTOOL64" >&6; }
7287else
7288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7289$as_echo "no" >&6; }
7290fi
7291
7292  if test "x$ac_ct_OTOOL64" = x; then
7293    OTOOL64=":"
7294  else
7295    case $cross_compiling:$ac_tool_warned in
7296yes:)
7297{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7298$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7299ac_tool_warned=yes ;;
7300esac
7301    OTOOL64=$ac_ct_OTOOL64
7302  fi
7303else
7304  OTOOL64="$ac_cv_prog_OTOOL64"
7305fi
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7334$as_echo_n "checking for -single_module linker flag... " >&6; }
7335if ${lt_cv_apple_cc_single_mod+:} false; then :
7336  $as_echo_n "(cached) " >&6
7337else
7338  lt_cv_apple_cc_single_mod=no
7339      if test -z "$LT_MULTI_MODULE"; then
7340	# By default we will add the -single_module flag. You can override
7341	# by either setting the environment variable LT_MULTI_MODULE
7342	# non-empty at configure time, or by adding -multi_module to the
7343	# link flags.
7344	rm -rf libconftest.dylib*
7345	echo "int foo(void){return 1;}" > conftest.c
7346	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7347-dynamiclib -Wl,-single_module conftest.c" >&5
7348	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7349	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7350        _lt_result=$?
7351	# If there is a non-empty error log, and "single_module"
7352	# appears in it, assume the flag caused a linker warning
7353        if test -s conftest.err && $GREP single_module conftest.err; then
7354	  cat conftest.err >&5
7355	# Otherwise, if the output was created with a 0 exit code from
7356	# the compiler, it worked.
7357	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7358	  lt_cv_apple_cc_single_mod=yes
7359	else
7360	  cat conftest.err >&5
7361	fi
7362	rm -rf libconftest.dylib*
7363	rm -f conftest.*
7364      fi
7365fi
7366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7367$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7368
7369    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7370$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7371if ${lt_cv_ld_exported_symbols_list+:} false; then :
7372  $as_echo_n "(cached) " >&6
7373else
7374  lt_cv_ld_exported_symbols_list=no
7375      save_LDFLAGS=$LDFLAGS
7376      echo "_main" > conftest.sym
7377      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7378      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7379/* end confdefs.h.  */
7380
7381int
7382main ()
7383{
7384
7385  ;
7386  return 0;
7387}
7388_ACEOF
7389if ac_fn_c_try_link "$LINENO"; then :
7390  lt_cv_ld_exported_symbols_list=yes
7391else
7392  lt_cv_ld_exported_symbols_list=no
7393fi
7394rm -f core conftest.err conftest.$ac_objext \
7395    conftest$ac_exeext conftest.$ac_ext
7396	LDFLAGS=$save_LDFLAGS
7397
7398fi
7399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7400$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7401
7402    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7403$as_echo_n "checking for -force_load linker flag... " >&6; }
7404if ${lt_cv_ld_force_load+:} false; then :
7405  $as_echo_n "(cached) " >&6
7406else
7407  lt_cv_ld_force_load=no
7408      cat > conftest.c << _LT_EOF
7409int forced_loaded() { return 2;}
7410_LT_EOF
7411      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7412      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7413      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
7414      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
7415      echo "$RANLIB libconftest.a" >&5
7416      $RANLIB libconftest.a 2>&5
7417      cat > conftest.c << _LT_EOF
7418int main() { return 0;}
7419_LT_EOF
7420      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7421      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7422      _lt_result=$?
7423      if test -s conftest.err && $GREP force_load conftest.err; then
7424	cat conftest.err >&5
7425      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7426	lt_cv_ld_force_load=yes
7427      else
7428	cat conftest.err >&5
7429      fi
7430        rm -f conftest.err libconftest.a conftest conftest.c
7431        rm -rf conftest.dSYM
7432
7433fi
7434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7435$as_echo "$lt_cv_ld_force_load" >&6; }
7436    case $host_os in
7437    rhapsody* | darwin1.[012])
7438      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7439    darwin1.*)
7440      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7441    darwin*) # darwin 5.x on
7442      # if running on 10.5 or later, the deployment target defaults
7443      # to the OS version, if on x86, and 10.4, the deployment
7444      # target defaults to 10.4. Don't you love it?
7445      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7446	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7447	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7448	10.[012][,.]*)
7449	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7450	10.*)
7451	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7452      esac
7453    ;;
7454  esac
7455    if test yes = "$lt_cv_apple_cc_single_mod"; then
7456      _lt_dar_single_mod='$single_module'
7457    fi
7458    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7459      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7460    else
7461      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7462    fi
7463    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7464      _lt_dsymutil='~$DSYMUTIL $lib || :'
7465    else
7466      _lt_dsymutil=
7467    fi
7468    ;;
7469  esac
7470
7471# func_munge_path_list VARIABLE PATH
7472# -----------------------------------
7473# VARIABLE is name of variable containing _space_ separated list of
7474# directories to be munged by the contents of PATH, which is string
7475# having a format:
7476# "DIR[:DIR]:"
7477#       string "DIR[ DIR]" will be prepended to VARIABLE
7478# ":DIR[:DIR]"
7479#       string "DIR[ DIR]" will be appended to VARIABLE
7480# "DIRP[:DIRP]::[DIRA:]DIRA"
7481#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7482#       "DIRA[ DIRA]" will be appended to VARIABLE
7483# "DIR[:DIR]"
7484#       VARIABLE will be replaced by "DIR[ DIR]"
7485func_munge_path_list ()
7486{
7487    case x$2 in
7488    x)
7489        ;;
7490    *:)
7491        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7492        ;;
7493    x:*)
7494        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7495        ;;
7496    *::*)
7497        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7498        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7499        ;;
7500    *)
7501        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7502        ;;
7503    esac
7504}
7505
7506ac_ext=c
7507ac_cpp='$CPP $CPPFLAGS'
7508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7510ac_compiler_gnu=$ac_cv_c_compiler_gnu
7511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7512$as_echo_n "checking how to run the C preprocessor... " >&6; }
7513# On Suns, sometimes $CPP names a directory.
7514if test -n "$CPP" && test -d "$CPP"; then
7515  CPP=
7516fi
7517if test -z "$CPP"; then
7518  if ${ac_cv_prog_CPP+:} false; then :
7519  $as_echo_n "(cached) " >&6
7520else
7521      # Double quotes because CPP needs to be expanded
7522    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7523    do
7524      ac_preproc_ok=false
7525for ac_c_preproc_warn_flag in '' yes
7526do
7527  # Use a header file that comes with gcc, so configuring glibc
7528  # with a fresh cross-compiler works.
7529  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7530  # <limits.h> exists even on freestanding compilers.
7531  # On the NeXT, cc -E runs the code through the compiler's parser,
7532  # not just through cpp. "Syntax error" is here to catch this case.
7533  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7534/* end confdefs.h.  */
7535#ifdef __STDC__
7536# include <limits.h>
7537#else
7538# include <assert.h>
7539#endif
7540		     Syntax error
7541_ACEOF
7542if ac_fn_c_try_cpp "$LINENO"; then :
7543
7544else
7545  # Broken: fails on valid input.
7546continue
7547fi
7548rm -f conftest.err conftest.i conftest.$ac_ext
7549
7550  # OK, works on sane cases.  Now check whether nonexistent headers
7551  # can be detected and how.
7552  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7553/* end confdefs.h.  */
7554#include <ac_nonexistent.h>
7555_ACEOF
7556if ac_fn_c_try_cpp "$LINENO"; then :
7557  # Broken: success on invalid input.
7558continue
7559else
7560  # Passes both tests.
7561ac_preproc_ok=:
7562break
7563fi
7564rm -f conftest.err conftest.i conftest.$ac_ext
7565
7566done
7567# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7568rm -f conftest.i conftest.err conftest.$ac_ext
7569if $ac_preproc_ok; then :
7570  break
7571fi
7572
7573    done
7574    ac_cv_prog_CPP=$CPP
7575
7576fi
7577  CPP=$ac_cv_prog_CPP
7578else
7579  ac_cv_prog_CPP=$CPP
7580fi
7581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7582$as_echo "$CPP" >&6; }
7583ac_preproc_ok=false
7584for ac_c_preproc_warn_flag in '' yes
7585do
7586  # Use a header file that comes with gcc, so configuring glibc
7587  # with a fresh cross-compiler works.
7588  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7589  # <limits.h> exists even on freestanding compilers.
7590  # On the NeXT, cc -E runs the code through the compiler's parser,
7591  # not just through cpp. "Syntax error" is here to catch this case.
7592  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7593/* end confdefs.h.  */
7594#ifdef __STDC__
7595# include <limits.h>
7596#else
7597# include <assert.h>
7598#endif
7599		     Syntax error
7600_ACEOF
7601if ac_fn_c_try_cpp "$LINENO"; then :
7602
7603else
7604  # Broken: fails on valid input.
7605continue
7606fi
7607rm -f conftest.err conftest.i conftest.$ac_ext
7608
7609  # OK, works on sane cases.  Now check whether nonexistent headers
7610  # can be detected and how.
7611  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7612/* end confdefs.h.  */
7613#include <ac_nonexistent.h>
7614_ACEOF
7615if ac_fn_c_try_cpp "$LINENO"; then :
7616  # Broken: success on invalid input.
7617continue
7618else
7619  # Passes both tests.
7620ac_preproc_ok=:
7621break
7622fi
7623rm -f conftest.err conftest.i conftest.$ac_ext
7624
7625done
7626# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7627rm -f conftest.i conftest.err conftest.$ac_ext
7628if $ac_preproc_ok; then :
7629
7630else
7631  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7632$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7633as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7634See \`config.log' for more details" "$LINENO" 5; }
7635fi
7636
7637ac_ext=c
7638ac_cpp='$CPP $CPPFLAGS'
7639ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7640ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7641ac_compiler_gnu=$ac_cv_c_compiler_gnu
7642
7643
7644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7645$as_echo_n "checking for ANSI C header files... " >&6; }
7646if ${ac_cv_header_stdc+:} false; then :
7647  $as_echo_n "(cached) " >&6
7648else
7649  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7650/* end confdefs.h.  */
7651#include <stdlib.h>
7652#include <stdarg.h>
7653#include <string.h>
7654#include <float.h>
7655
7656int
7657main ()
7658{
7659
7660  ;
7661  return 0;
7662}
7663_ACEOF
7664if ac_fn_c_try_compile "$LINENO"; then :
7665  ac_cv_header_stdc=yes
7666else
7667  ac_cv_header_stdc=no
7668fi
7669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7670
7671if test $ac_cv_header_stdc = yes; then
7672  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7673  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7674/* end confdefs.h.  */
7675#include <string.h>
7676
7677_ACEOF
7678if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7679  $EGREP "memchr" >/dev/null 2>&1; then :
7680
7681else
7682  ac_cv_header_stdc=no
7683fi
7684rm -f conftest*
7685
7686fi
7687
7688if test $ac_cv_header_stdc = yes; then
7689  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7690  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7691/* end confdefs.h.  */
7692#include <stdlib.h>
7693
7694_ACEOF
7695if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7696  $EGREP "free" >/dev/null 2>&1; then :
7697
7698else
7699  ac_cv_header_stdc=no
7700fi
7701rm -f conftest*
7702
7703fi
7704
7705if test $ac_cv_header_stdc = yes; then
7706  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7707  if test "$cross_compiling" = yes; then :
7708  :
7709else
7710  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7711/* end confdefs.h.  */
7712#include <ctype.h>
7713#include <stdlib.h>
7714#if ((' ' & 0x0FF) == 0x020)
7715# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7716# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7717#else
7718# define ISLOWER(c) \
7719		   (('a' <= (c) && (c) <= 'i') \
7720		     || ('j' <= (c) && (c) <= 'r') \
7721		     || ('s' <= (c) && (c) <= 'z'))
7722# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7723#endif
7724
7725#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7726int
7727main ()
7728{
7729  int i;
7730  for (i = 0; i < 256; i++)
7731    if (XOR (islower (i), ISLOWER (i))
7732	|| toupper (i) != TOUPPER (i))
7733      return 2;
7734  return 0;
7735}
7736_ACEOF
7737if ac_fn_c_try_run "$LINENO"; then :
7738
7739else
7740  ac_cv_header_stdc=no
7741fi
7742rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7743  conftest.$ac_objext conftest.beam conftest.$ac_ext
7744fi
7745
7746fi
7747fi
7748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7749$as_echo "$ac_cv_header_stdc" >&6; }
7750if test $ac_cv_header_stdc = yes; then
7751
7752$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7753
7754fi
7755
7756# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7757for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7758		  inttypes.h stdint.h unistd.h
7759do :
7760  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7761ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7762"
7763if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7764  cat >>confdefs.h <<_ACEOF
7765#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7766_ACEOF
7767
7768fi
7769
7770done
7771
7772
7773for ac_header in dlfcn.h
7774do :
7775  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7776"
7777if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7778  cat >>confdefs.h <<_ACEOF
7779#define HAVE_DLFCN_H 1
7780_ACEOF
7781
7782fi
7783
7784done
7785
7786
7787
7788
7789
7790# Set options
7791
7792
7793
7794        enable_dlopen=no
7795
7796
7797  enable_win32_dll=no
7798
7799
7800            # Check whether --enable-shared was given.
7801if test "${enable_shared+set}" = set; then :
7802  enableval=$enable_shared; p=${PACKAGE-default}
7803    case $enableval in
7804    yes) enable_shared=yes ;;
7805    no) enable_shared=no ;;
7806    *)
7807      enable_shared=no
7808      # Look at the argument we got.  We use all the common list separators.
7809      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7810      for pkg in $enableval; do
7811	IFS=$lt_save_ifs
7812	if test "X$pkg" = "X$p"; then
7813	  enable_shared=yes
7814	fi
7815      done
7816      IFS=$lt_save_ifs
7817      ;;
7818    esac
7819else
7820  enable_shared=yes
7821fi
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831  # Check whether --enable-static was given.
7832if test "${enable_static+set}" = set; then :
7833  enableval=$enable_static; p=${PACKAGE-default}
7834    case $enableval in
7835    yes) enable_static=yes ;;
7836    no) enable_static=no ;;
7837    *)
7838     enable_static=no
7839      # Look at the argument we got.  We use all the common list separators.
7840      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7841      for pkg in $enableval; do
7842	IFS=$lt_save_ifs
7843	if test "X$pkg" = "X$p"; then
7844	  enable_static=yes
7845	fi
7846      done
7847      IFS=$lt_save_ifs
7848      ;;
7849    esac
7850else
7851  enable_static=yes
7852fi
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863# Check whether --with-pic was given.
7864if test "${with_pic+set}" = set; then :
7865  withval=$with_pic; lt_p=${PACKAGE-default}
7866    case $withval in
7867    yes|no) pic_mode=$withval ;;
7868    *)
7869      pic_mode=default
7870      # Look at the argument we got.  We use all the common list separators.
7871      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7872      for lt_pkg in $withval; do
7873	IFS=$lt_save_ifs
7874	if test "X$lt_pkg" = "X$lt_p"; then
7875	  pic_mode=yes
7876	fi
7877      done
7878      IFS=$lt_save_ifs
7879      ;;
7880    esac
7881else
7882  pic_mode=default
7883fi
7884
7885
7886
7887
7888
7889
7890
7891
7892  # Check whether --enable-fast-install was given.
7893if test "${enable_fast_install+set}" = set; then :
7894  enableval=$enable_fast_install; p=${PACKAGE-default}
7895    case $enableval in
7896    yes) enable_fast_install=yes ;;
7897    no) enable_fast_install=no ;;
7898    *)
7899      enable_fast_install=no
7900      # Look at the argument we got.  We use all the common list separators.
7901      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7902      for pkg in $enableval; do
7903	IFS=$lt_save_ifs
7904	if test "X$pkg" = "X$p"; then
7905	  enable_fast_install=yes
7906	fi
7907      done
7908      IFS=$lt_save_ifs
7909      ;;
7910    esac
7911else
7912  enable_fast_install=yes
7913fi
7914
7915
7916
7917
7918
7919
7920
7921
7922  shared_archive_member_spec=
7923case $host,$enable_shared in
7924power*-*-aix[5-9]*,yes)
7925  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7926$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7927
7928# Check whether --with-aix-soname was given.
7929if test "${with_aix_soname+set}" = set; then :
7930  withval=$with_aix_soname; case $withval in
7931    aix|svr4|both)
7932      ;;
7933    *)
7934      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7935      ;;
7936    esac
7937    lt_cv_with_aix_soname=$with_aix_soname
7938else
7939  if ${lt_cv_with_aix_soname+:} false; then :
7940  $as_echo_n "(cached) " >&6
7941else
7942  lt_cv_with_aix_soname=aix
7943fi
7944
7945    with_aix_soname=$lt_cv_with_aix_soname
7946fi
7947
7948  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7949$as_echo "$with_aix_soname" >&6; }
7950  if test aix != "$with_aix_soname"; then
7951    # For the AIX way of multilib, we name the shared archive member
7952    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7953    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7954    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7955    # the AIX toolchain works better with OBJECT_MODE set (default 32).
7956    if test 64 = "${OBJECT_MODE-32}"; then
7957      shared_archive_member_spec=shr_64
7958    else
7959      shared_archive_member_spec=shr
7960    fi
7961  fi
7962  ;;
7963*)
7964  with_aix_soname=aix
7965  ;;
7966esac
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977# This can be used to rebuild libtool when needed
7978LIBTOOL_DEPS=$ltmain
7979
7980# Always use our own libtool.
7981LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012test -z "$LN_S" && LN_S="ln -s"
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027if test -n "${ZSH_VERSION+set}"; then
8028   setopt NO_GLOB_SUBST
8029fi
8030
8031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8032$as_echo_n "checking for objdir... " >&6; }
8033if ${lt_cv_objdir+:} false; then :
8034  $as_echo_n "(cached) " >&6
8035else
8036  rm -f .libs 2>/dev/null
8037mkdir .libs 2>/dev/null
8038if test -d .libs; then
8039  lt_cv_objdir=.libs
8040else
8041  # MS-DOS does not allow filenames that begin with a dot.
8042  lt_cv_objdir=_libs
8043fi
8044rmdir .libs 2>/dev/null
8045fi
8046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8047$as_echo "$lt_cv_objdir" >&6; }
8048objdir=$lt_cv_objdir
8049
8050
8051
8052
8053
8054cat >>confdefs.h <<_ACEOF
8055#define LT_OBJDIR "$lt_cv_objdir/"
8056_ACEOF
8057
8058
8059
8060
8061case $host_os in
8062aix3*)
8063  # AIX sometimes has problems with the GCC collect2 program.  For some
8064  # reason, if we set the COLLECT_NAMES environment variable, the problems
8065  # vanish in a puff of smoke.
8066  if test set != "${COLLECT_NAMES+set}"; then
8067    COLLECT_NAMES=
8068    export COLLECT_NAMES
8069  fi
8070  ;;
8071esac
8072
8073# Global variables:
8074ofile=libtool
8075can_build_shared=yes
8076
8077# All known linkers require a '.a' archive for static linking (except MSVC and
8078# ICC, which need '.lib').
8079libext=a
8080
8081with_gnu_ld=$lt_cv_prog_gnu_ld
8082
8083old_CC=$CC
8084old_CFLAGS=$CFLAGS
8085
8086# Set sane defaults for various variables
8087test -z "$CC" && CC=cc
8088test -z "$LTCC" && LTCC=$CC
8089test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8090test -z "$LD" && LD=ld
8091test -z "$ac_objext" && ac_objext=o
8092
8093func_cc_basename $compiler
8094cc_basename=$func_cc_basename_result
8095
8096
8097# Only perform the check for file, if the check method requires it
8098test -z "$MAGIC_CMD" && MAGIC_CMD=file
8099case $deplibs_check_method in
8100file_magic*)
8101  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8102    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8103$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8104if ${lt_cv_path_MAGIC_CMD+:} false; then :
8105  $as_echo_n "(cached) " >&6
8106else
8107  case $MAGIC_CMD in
8108[\\/*] |  ?:[\\/]*)
8109  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8110  ;;
8111*)
8112  lt_save_MAGIC_CMD=$MAGIC_CMD
8113  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8114  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8115  for ac_dir in $ac_dummy; do
8116    IFS=$lt_save_ifs
8117    test -z "$ac_dir" && ac_dir=.
8118    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8119      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8120      if test -n "$file_magic_test_file"; then
8121	case $deplibs_check_method in
8122	"file_magic "*)
8123	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8124	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8125	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8126	    $EGREP "$file_magic_regex" > /dev/null; then
8127	    :
8128	  else
8129	    cat <<_LT_EOF 1>&2
8130
8131*** Warning: the command libtool uses to detect shared libraries,
8132*** $file_magic_cmd, produces output that libtool cannot recognize.
8133*** The result is that libtool may fail to recognize shared libraries
8134*** as such.  This will affect the creation of libtool libraries that
8135*** depend on shared libraries, but programs linked with such libtool
8136*** libraries will work regardless of this problem.  Nevertheless, you
8137*** may want to report the problem to your system manager and/or to
8138*** bug-libtool@gnu.org
8139
8140_LT_EOF
8141	  fi ;;
8142	esac
8143      fi
8144      break
8145    fi
8146  done
8147  IFS=$lt_save_ifs
8148  MAGIC_CMD=$lt_save_MAGIC_CMD
8149  ;;
8150esac
8151fi
8152
8153MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8154if test -n "$MAGIC_CMD"; then
8155  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8156$as_echo "$MAGIC_CMD" >&6; }
8157else
8158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8159$as_echo "no" >&6; }
8160fi
8161
8162
8163
8164
8165
8166if test -z "$lt_cv_path_MAGIC_CMD"; then
8167  if test -n "$ac_tool_prefix"; then
8168    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8169$as_echo_n "checking for file... " >&6; }
8170if ${lt_cv_path_MAGIC_CMD+:} false; then :
8171  $as_echo_n "(cached) " >&6
8172else
8173  case $MAGIC_CMD in
8174[\\/*] |  ?:[\\/]*)
8175  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8176  ;;
8177*)
8178  lt_save_MAGIC_CMD=$MAGIC_CMD
8179  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8180  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8181  for ac_dir in $ac_dummy; do
8182    IFS=$lt_save_ifs
8183    test -z "$ac_dir" && ac_dir=.
8184    if test -f "$ac_dir/file"; then
8185      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8186      if test -n "$file_magic_test_file"; then
8187	case $deplibs_check_method in
8188	"file_magic "*)
8189	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8190	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8191	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8192	    $EGREP "$file_magic_regex" > /dev/null; then
8193	    :
8194	  else
8195	    cat <<_LT_EOF 1>&2
8196
8197*** Warning: the command libtool uses to detect shared libraries,
8198*** $file_magic_cmd, produces output that libtool cannot recognize.
8199*** The result is that libtool may fail to recognize shared libraries
8200*** as such.  This will affect the creation of libtool libraries that
8201*** depend on shared libraries, but programs linked with such libtool
8202*** libraries will work regardless of this problem.  Nevertheless, you
8203*** may want to report the problem to your system manager and/or to
8204*** bug-libtool@gnu.org
8205
8206_LT_EOF
8207	  fi ;;
8208	esac
8209      fi
8210      break
8211    fi
8212  done
8213  IFS=$lt_save_ifs
8214  MAGIC_CMD=$lt_save_MAGIC_CMD
8215  ;;
8216esac
8217fi
8218
8219MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8220if test -n "$MAGIC_CMD"; then
8221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8222$as_echo "$MAGIC_CMD" >&6; }
8223else
8224  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8225$as_echo "no" >&6; }
8226fi
8227
8228
8229  else
8230    MAGIC_CMD=:
8231  fi
8232fi
8233
8234  fi
8235  ;;
8236esac
8237
8238# Use C for the default configuration in the libtool script
8239
8240lt_save_CC=$CC
8241ac_ext=c
8242ac_cpp='$CPP $CPPFLAGS'
8243ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8244ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8245ac_compiler_gnu=$ac_cv_c_compiler_gnu
8246
8247
8248# Source file extension for C test sources.
8249ac_ext=c
8250
8251# Object file extension for compiled C test sources.
8252objext=o
8253objext=$objext
8254
8255# Code to be used in simple compile tests
8256lt_simple_compile_test_code="int some_variable = 0;"
8257
8258# Code to be used in simple link tests
8259lt_simple_link_test_code='int main(){return(0);}'
8260
8261
8262
8263
8264
8265
8266
8267# If no C compiler was specified, use CC.
8268LTCC=${LTCC-"$CC"}
8269
8270# If no C compiler flags were specified, use CFLAGS.
8271LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8272
8273# Allow CC to be a program name with arguments.
8274compiler=$CC
8275
8276# Save the default compiler, since it gets overwritten when the other
8277# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8278compiler_DEFAULT=$CC
8279
8280# save warnings/boilerplate of simple test code
8281ac_outfile=conftest.$ac_objext
8282echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8283eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8284_lt_compiler_boilerplate=`cat conftest.err`
8285$RM conftest*
8286
8287ac_outfile=conftest.$ac_objext
8288echo "$lt_simple_link_test_code" >conftest.$ac_ext
8289eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8290_lt_linker_boilerplate=`cat conftest.err`
8291$RM -r conftest*
8292
8293
8294## CAVEAT EMPTOR:
8295## There is no encapsulation within the following macros, do not change
8296## the running order or otherwise move them around unless you know exactly
8297## what you are doing...
8298if test -n "$compiler"; then
8299
8300lt_prog_compiler_no_builtin_flag=
8301
8302if test yes = "$GCC"; then
8303  case $cc_basename in
8304  nvcc*)
8305    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8306  *)
8307    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8308  esac
8309
8310  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8311$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8312if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8313  $as_echo_n "(cached) " >&6
8314else
8315  lt_cv_prog_compiler_rtti_exceptions=no
8316   ac_outfile=conftest.$ac_objext
8317   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8318   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8319   # Insert the option either (1) after the last *FLAGS variable, or
8320   # (2) before a word containing "conftest.", or (3) at the end.
8321   # Note that $ac_compile itself does not contain backslashes and begins
8322   # with a dollar sign (not a hyphen), so the echo should work correctly.
8323   # The option is referenced via a variable to avoid confusing sed.
8324   lt_compile=`echo "$ac_compile" | $SED \
8325   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8326   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8327   -e 's:$: $lt_compiler_flag:'`
8328   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8329   (eval "$lt_compile" 2>conftest.err)
8330   ac_status=$?
8331   cat conftest.err >&5
8332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333   if (exit $ac_status) && test -s "$ac_outfile"; then
8334     # The compiler can only warn and ignore the option if not recognized
8335     # So say no if there are warnings other than the usual output.
8336     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8337     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8338     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8339       lt_cv_prog_compiler_rtti_exceptions=yes
8340     fi
8341   fi
8342   $RM conftest*
8343
8344fi
8345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8346$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8347
8348if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8349    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8350else
8351    :
8352fi
8353
8354fi
8355
8356
8357
8358
8359
8360
8361  lt_prog_compiler_wl=
8362lt_prog_compiler_pic=
8363lt_prog_compiler_static=
8364
8365
8366  if test yes = "$GCC"; then
8367    lt_prog_compiler_wl='-Wl,'
8368    lt_prog_compiler_static='-static'
8369
8370    case $host_os in
8371      aix*)
8372      # All AIX code is PIC.
8373      if test ia64 = "$host_cpu"; then
8374	# AIX 5 now supports IA64 processor
8375	lt_prog_compiler_static='-Bstatic'
8376      fi
8377      lt_prog_compiler_pic='-fPIC'
8378      ;;
8379
8380    amigaos*)
8381      case $host_cpu in
8382      powerpc)
8383            # see comment about AmigaOS4 .so support
8384            lt_prog_compiler_pic='-fPIC'
8385        ;;
8386      m68k)
8387            # FIXME: we need at least 68020 code to build shared libraries, but
8388            # adding the '-m68020' flag to GCC prevents building anything better,
8389            # like '-m68040'.
8390            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8391        ;;
8392      esac
8393      ;;
8394
8395    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8396      # PIC is the default for these OSes.
8397      ;;
8398
8399    mingw* | cygwin* | pw32* | os2* | cegcc*)
8400      # This hack is so that the source file can tell whether it is being
8401      # built for inclusion in a dll (and should export symbols for example).
8402      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8403      # (--disable-auto-import) libraries
8404      lt_prog_compiler_pic='-DDLL_EXPORT'
8405      case $host_os in
8406      os2*)
8407	lt_prog_compiler_static='$wl-static'
8408	;;
8409      esac
8410      ;;
8411
8412    darwin* | rhapsody*)
8413      # PIC is the default on this platform
8414      # Common symbols not allowed in MH_DYLIB files
8415      lt_prog_compiler_pic='-fno-common'
8416      ;;
8417
8418    haiku*)
8419      # PIC is the default for Haiku.
8420      # The "-static" flag exists, but is broken.
8421      lt_prog_compiler_static=
8422      ;;
8423
8424    hpux*)
8425      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8426      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8427      # sets the default TLS model and affects inlining.
8428      case $host_cpu in
8429      hppa*64*)
8430	# +Z the default
8431	;;
8432      *)
8433	lt_prog_compiler_pic='-fPIC'
8434	;;
8435      esac
8436      ;;
8437
8438    interix[3-9]*)
8439      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8440      # Instead, we relocate shared libraries at runtime.
8441      ;;
8442
8443    msdosdjgpp*)
8444      # Just because we use GCC doesn't mean we suddenly get shared libraries
8445      # on systems that don't support them.
8446      lt_prog_compiler_can_build_shared=no
8447      enable_shared=no
8448      ;;
8449
8450    *nto* | *qnx*)
8451      # QNX uses GNU C++, but need to define -shared option too, otherwise
8452      # it will coredump.
8453      lt_prog_compiler_pic='-fPIC -shared'
8454      ;;
8455
8456    sysv4*MP*)
8457      if test -d /usr/nec; then
8458	lt_prog_compiler_pic=-Kconform_pic
8459      fi
8460      ;;
8461
8462    *)
8463      lt_prog_compiler_pic='-fPIC'
8464      ;;
8465    esac
8466
8467    case $cc_basename in
8468    nvcc*) # Cuda Compiler Driver 2.2
8469      lt_prog_compiler_wl='-Xlinker '
8470      if test -n "$lt_prog_compiler_pic"; then
8471        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8472      fi
8473      ;;
8474    esac
8475  else
8476    # PORTME Check for flag to pass linker flags through the system compiler.
8477    case $host_os in
8478    aix*)
8479      lt_prog_compiler_wl='-Wl,'
8480      if test ia64 = "$host_cpu"; then
8481	# AIX 5 now supports IA64 processor
8482	lt_prog_compiler_static='-Bstatic'
8483      else
8484	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8485      fi
8486      ;;
8487
8488    darwin* | rhapsody*)
8489      # PIC is the default on this platform
8490      # Common symbols not allowed in MH_DYLIB files
8491      lt_prog_compiler_pic='-fno-common'
8492      case $cc_basename in
8493      nagfor*)
8494        # NAG Fortran compiler
8495        lt_prog_compiler_wl='-Wl,-Wl,,'
8496        lt_prog_compiler_pic='-PIC'
8497        lt_prog_compiler_static='-Bstatic'
8498        ;;
8499      esac
8500      ;;
8501
8502    mingw* | cygwin* | pw32* | os2* | cegcc*)
8503      # This hack is so that the source file can tell whether it is being
8504      # built for inclusion in a dll (and should export symbols for example).
8505      lt_prog_compiler_pic='-DDLL_EXPORT'
8506      case $host_os in
8507      os2*)
8508	lt_prog_compiler_static='$wl-static'
8509	;;
8510      esac
8511      ;;
8512
8513    hpux9* | hpux10* | hpux11*)
8514      lt_prog_compiler_wl='-Wl,'
8515      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8516      # not for PA HP-UX.
8517      case $host_cpu in
8518      hppa*64*|ia64*)
8519	# +Z the default
8520	;;
8521      *)
8522	lt_prog_compiler_pic='+Z'
8523	;;
8524      esac
8525      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8526      lt_prog_compiler_static='$wl-a ${wl}archive'
8527      ;;
8528
8529    irix5* | irix6* | nonstopux*)
8530      lt_prog_compiler_wl='-Wl,'
8531      # PIC (with -KPIC) is the default.
8532      lt_prog_compiler_static='-non_shared'
8533      ;;
8534
8535    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8536      case $cc_basename in
8537      # old Intel for x86_64, which still supported -KPIC.
8538      ecc*)
8539	lt_prog_compiler_wl='-Wl,'
8540	lt_prog_compiler_pic='-KPIC'
8541	lt_prog_compiler_static='-static'
8542        ;;
8543      # icc used to be incompatible with GCC.
8544      # ICC 10 doesn't accept -KPIC any more.
8545      icc* | ifort*)
8546	lt_prog_compiler_wl='-Wl,'
8547	lt_prog_compiler_pic='-fPIC'
8548	lt_prog_compiler_static='-static'
8549        ;;
8550      # Lahey Fortran 8.1.
8551      lf95*)
8552	lt_prog_compiler_wl='-Wl,'
8553	lt_prog_compiler_pic='--shared'
8554	lt_prog_compiler_static='--static'
8555	;;
8556      nagfor*)
8557	# NAG Fortran compiler
8558	lt_prog_compiler_wl='-Wl,-Wl,,'
8559	lt_prog_compiler_pic='-PIC'
8560	lt_prog_compiler_static='-Bstatic'
8561	;;
8562      tcc*)
8563	# Fabrice Bellard et al's Tiny C Compiler
8564	lt_prog_compiler_wl='-Wl,'
8565	lt_prog_compiler_pic='-fPIC'
8566	lt_prog_compiler_static='-static'
8567	;;
8568      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8569        # Portland Group compilers (*not* the Pentium gcc compiler,
8570	# which looks to be a dead project)
8571	lt_prog_compiler_wl='-Wl,'
8572	lt_prog_compiler_pic='-fpic'
8573	lt_prog_compiler_static='-Bstatic'
8574        ;;
8575      ccc*)
8576        lt_prog_compiler_wl='-Wl,'
8577        # All Alpha code is PIC.
8578        lt_prog_compiler_static='-non_shared'
8579        ;;
8580      xl* | bgxl* | bgf* | mpixl*)
8581	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8582	lt_prog_compiler_wl='-Wl,'
8583	lt_prog_compiler_pic='-qpic'
8584	lt_prog_compiler_static='-qstaticlink'
8585	;;
8586      *)
8587	case `$CC -V 2>&1 | sed 5q` in
8588	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8589	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8590	  lt_prog_compiler_pic='-KPIC'
8591	  lt_prog_compiler_static='-Bstatic'
8592	  lt_prog_compiler_wl=''
8593	  ;;
8594	*Sun\ F* | *Sun*Fortran*)
8595	  lt_prog_compiler_pic='-KPIC'
8596	  lt_prog_compiler_static='-Bstatic'
8597	  lt_prog_compiler_wl='-Qoption ld '
8598	  ;;
8599	*Sun\ C*)
8600	  # Sun C 5.9
8601	  lt_prog_compiler_pic='-KPIC'
8602	  lt_prog_compiler_static='-Bstatic'
8603	  lt_prog_compiler_wl='-Wl,'
8604	  ;;
8605        *Intel*\ [CF]*Compiler*)
8606	  lt_prog_compiler_wl='-Wl,'
8607	  lt_prog_compiler_pic='-fPIC'
8608	  lt_prog_compiler_static='-static'
8609	  ;;
8610	*Portland\ Group*)
8611	  lt_prog_compiler_wl='-Wl,'
8612	  lt_prog_compiler_pic='-fpic'
8613	  lt_prog_compiler_static='-Bstatic'
8614	  ;;
8615	esac
8616	;;
8617      esac
8618      ;;
8619
8620    newsos6)
8621      lt_prog_compiler_pic='-KPIC'
8622      lt_prog_compiler_static='-Bstatic'
8623      ;;
8624
8625    *nto* | *qnx*)
8626      # QNX uses GNU C++, but need to define -shared option too, otherwise
8627      # it will coredump.
8628      lt_prog_compiler_pic='-fPIC -shared'
8629      ;;
8630
8631    osf3* | osf4* | osf5*)
8632      lt_prog_compiler_wl='-Wl,'
8633      # All OSF/1 code is PIC.
8634      lt_prog_compiler_static='-non_shared'
8635      ;;
8636
8637    rdos*)
8638      lt_prog_compiler_static='-non_shared'
8639      ;;
8640
8641    solaris*)
8642      lt_prog_compiler_pic='-KPIC'
8643      lt_prog_compiler_static='-Bstatic'
8644      case $cc_basename in
8645      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8646	lt_prog_compiler_wl='-Qoption ld ';;
8647      *)
8648	lt_prog_compiler_wl='-Wl,';;
8649      esac
8650      ;;
8651
8652    sunos4*)
8653      lt_prog_compiler_wl='-Qoption ld '
8654      lt_prog_compiler_pic='-PIC'
8655      lt_prog_compiler_static='-Bstatic'
8656      ;;
8657
8658    sysv4 | sysv4.2uw2* | sysv4.3*)
8659      lt_prog_compiler_wl='-Wl,'
8660      lt_prog_compiler_pic='-KPIC'
8661      lt_prog_compiler_static='-Bstatic'
8662      ;;
8663
8664    sysv4*MP*)
8665      if test -d /usr/nec; then
8666	lt_prog_compiler_pic='-Kconform_pic'
8667	lt_prog_compiler_static='-Bstatic'
8668      fi
8669      ;;
8670
8671    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8672      lt_prog_compiler_wl='-Wl,'
8673      lt_prog_compiler_pic='-KPIC'
8674      lt_prog_compiler_static='-Bstatic'
8675      ;;
8676
8677    unicos*)
8678      lt_prog_compiler_wl='-Wl,'
8679      lt_prog_compiler_can_build_shared=no
8680      ;;
8681
8682    uts4*)
8683      lt_prog_compiler_pic='-pic'
8684      lt_prog_compiler_static='-Bstatic'
8685      ;;
8686
8687    *)
8688      lt_prog_compiler_can_build_shared=no
8689      ;;
8690    esac
8691  fi
8692
8693case $host_os in
8694  # For platforms that do not support PIC, -DPIC is meaningless:
8695  *djgpp*)
8696    lt_prog_compiler_pic=
8697    ;;
8698  *)
8699    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8700    ;;
8701esac
8702
8703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8704$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8705if ${lt_cv_prog_compiler_pic+:} false; then :
8706  $as_echo_n "(cached) " >&6
8707else
8708  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8709fi
8710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8711$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8712lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8713
8714#
8715# Check to make sure the PIC flag actually works.
8716#
8717if test -n "$lt_prog_compiler_pic"; then
8718  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8719$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8720if ${lt_cv_prog_compiler_pic_works+:} false; then :
8721  $as_echo_n "(cached) " >&6
8722else
8723  lt_cv_prog_compiler_pic_works=no
8724   ac_outfile=conftest.$ac_objext
8725   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8726   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
8727   # Insert the option either (1) after the last *FLAGS variable, or
8728   # (2) before a word containing "conftest.", or (3) at the end.
8729   # Note that $ac_compile itself does not contain backslashes and begins
8730   # with a dollar sign (not a hyphen), so the echo should work correctly.
8731   # The option is referenced via a variable to avoid confusing sed.
8732   lt_compile=`echo "$ac_compile" | $SED \
8733   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8734   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8735   -e 's:$: $lt_compiler_flag:'`
8736   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8737   (eval "$lt_compile" 2>conftest.err)
8738   ac_status=$?
8739   cat conftest.err >&5
8740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741   if (exit $ac_status) && test -s "$ac_outfile"; then
8742     # The compiler can only warn and ignore the option if not recognized
8743     # So say no if there are warnings other than the usual output.
8744     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8745     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8746     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8747       lt_cv_prog_compiler_pic_works=yes
8748     fi
8749   fi
8750   $RM conftest*
8751
8752fi
8753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8754$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8755
8756if test yes = "$lt_cv_prog_compiler_pic_works"; then
8757    case $lt_prog_compiler_pic in
8758     "" | " "*) ;;
8759     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8760     esac
8761else
8762    lt_prog_compiler_pic=
8763     lt_prog_compiler_can_build_shared=no
8764fi
8765
8766fi
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778#
8779# Check to make sure the static flag actually works.
8780#
8781wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8783$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8784if ${lt_cv_prog_compiler_static_works+:} false; then :
8785  $as_echo_n "(cached) " >&6
8786else
8787  lt_cv_prog_compiler_static_works=no
8788   save_LDFLAGS=$LDFLAGS
8789   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8790   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8791   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8792     # The linker can only warn and ignore the option if not recognized
8793     # So say no if there are warnings
8794     if test -s conftest.err; then
8795       # Append any errors to the config.log.
8796       cat conftest.err 1>&5
8797       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8798       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8799       if diff conftest.exp conftest.er2 >/dev/null; then
8800         lt_cv_prog_compiler_static_works=yes
8801       fi
8802     else
8803       lt_cv_prog_compiler_static_works=yes
8804     fi
8805   fi
8806   $RM -r conftest*
8807   LDFLAGS=$save_LDFLAGS
8808
8809fi
8810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8811$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8812
8813if test yes = "$lt_cv_prog_compiler_static_works"; then
8814    :
8815else
8816    lt_prog_compiler_static=
8817fi
8818
8819
8820
8821
8822
8823
8824
8825  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8826$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8827if ${lt_cv_prog_compiler_c_o+:} false; then :
8828  $as_echo_n "(cached) " >&6
8829else
8830  lt_cv_prog_compiler_c_o=no
8831   $RM -r conftest 2>/dev/null
8832   mkdir conftest
8833   cd conftest
8834   mkdir out
8835   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8836
8837   lt_compiler_flag="-o out/conftest2.$ac_objext"
8838   # Insert the option either (1) after the last *FLAGS variable, or
8839   # (2) before a word containing "conftest.", or (3) at the end.
8840   # Note that $ac_compile itself does not contain backslashes and begins
8841   # with a dollar sign (not a hyphen), so the echo should work correctly.
8842   lt_compile=`echo "$ac_compile" | $SED \
8843   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8844   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8845   -e 's:$: $lt_compiler_flag:'`
8846   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8847   (eval "$lt_compile" 2>out/conftest.err)
8848   ac_status=$?
8849   cat out/conftest.err >&5
8850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8852   then
8853     # The compiler can only warn and ignore the option if not recognized
8854     # So say no if there are warnings
8855     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8856     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8857     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8858       lt_cv_prog_compiler_c_o=yes
8859     fi
8860   fi
8861   chmod u+w . 2>&5
8862   $RM conftest*
8863   # SGI C++ compiler will create directory out/ii_files/ for
8864   # template instantiation
8865   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8866   $RM out/* && rmdir out
8867   cd ..
8868   $RM -r conftest
8869   $RM conftest*
8870
8871fi
8872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8873$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8874
8875
8876
8877
8878
8879
8880  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8881$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8882if ${lt_cv_prog_compiler_c_o+:} false; then :
8883  $as_echo_n "(cached) " >&6
8884else
8885  lt_cv_prog_compiler_c_o=no
8886   $RM -r conftest 2>/dev/null
8887   mkdir conftest
8888   cd conftest
8889   mkdir out
8890   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8891
8892   lt_compiler_flag="-o out/conftest2.$ac_objext"
8893   # Insert the option either (1) after the last *FLAGS variable, or
8894   # (2) before a word containing "conftest.", or (3) at the end.
8895   # Note that $ac_compile itself does not contain backslashes and begins
8896   # with a dollar sign (not a hyphen), so the echo should work correctly.
8897   lt_compile=`echo "$ac_compile" | $SED \
8898   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8899   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8900   -e 's:$: $lt_compiler_flag:'`
8901   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8902   (eval "$lt_compile" 2>out/conftest.err)
8903   ac_status=$?
8904   cat out/conftest.err >&5
8905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8907   then
8908     # The compiler can only warn and ignore the option if not recognized
8909     # So say no if there are warnings
8910     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8911     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8912     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8913       lt_cv_prog_compiler_c_o=yes
8914     fi
8915   fi
8916   chmod u+w . 2>&5
8917   $RM conftest*
8918   # SGI C++ compiler will create directory out/ii_files/ for
8919   # template instantiation
8920   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8921   $RM out/* && rmdir out
8922   cd ..
8923   $RM -r conftest
8924   $RM conftest*
8925
8926fi
8927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8928$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8929
8930
8931
8932
8933hard_links=nottested
8934if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8935  # do not overwrite the value of need_locks provided by the user
8936  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8937$as_echo_n "checking if we can lock with hard links... " >&6; }
8938  hard_links=yes
8939  $RM conftest*
8940  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8941  touch conftest.a
8942  ln conftest.a conftest.b 2>&5 || hard_links=no
8943  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8944  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8945$as_echo "$hard_links" >&6; }
8946  if test no = "$hard_links"; then
8947    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8948$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8949    need_locks=warn
8950  fi
8951else
8952  need_locks=no
8953fi
8954
8955
8956
8957
8958
8959
8960  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8961$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8962
8963  runpath_var=
8964  allow_undefined_flag=
8965  always_export_symbols=no
8966  archive_cmds=
8967  archive_expsym_cmds=
8968  compiler_needs_object=no
8969  enable_shared_with_static_runtimes=no
8970  export_dynamic_flag_spec=
8971  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8972  hardcode_automatic=no
8973  hardcode_direct=no
8974  hardcode_direct_absolute=no
8975  hardcode_libdir_flag_spec=
8976  hardcode_libdir_separator=
8977  hardcode_minus_L=no
8978  hardcode_shlibpath_var=unsupported
8979  inherit_rpath=no
8980  link_all_deplibs=unknown
8981  module_cmds=
8982  module_expsym_cmds=
8983  old_archive_from_new_cmds=
8984  old_archive_from_expsyms_cmds=
8985  thread_safe_flag_spec=
8986  whole_archive_flag_spec=
8987  # include_expsyms should be a list of space-separated symbols to be *always*
8988  # included in the symbol list
8989  include_expsyms=
8990  # exclude_expsyms can be an extended regexp of symbols to exclude
8991  # it will be wrapped by ' (' and ')$', so one must not match beginning or
8992  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8993  # as well as any symbol that contains 'd'.
8994  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8995  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8996  # platforms (ab)use it in PIC code, but their linkers get confused if
8997  # the symbol is explicitly referenced.  Since portable code cannot
8998  # rely on this symbol name, it's probably fine to never include it in
8999  # preloaded symbol tables.
9000  # Exclude shared library initialization/finalization symbols.
9001  extract_expsyms_cmds=
9002
9003  case $host_os in
9004  cygwin* | mingw* | pw32* | cegcc*)
9005    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9006    # When not using gcc, we currently assume that we are using
9007    # Microsoft Visual C++ or Intel C++ Compiler.
9008    if test yes != "$GCC"; then
9009      with_gnu_ld=no
9010    fi
9011    ;;
9012  interix*)
9013    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9014    with_gnu_ld=yes
9015    ;;
9016  openbsd* | bitrig*)
9017    with_gnu_ld=no
9018    ;;
9019  esac
9020
9021  ld_shlibs=yes
9022
9023  # On some targets, GNU ld is compatible enough with the native linker
9024  # that we're better off using the native interface for both.
9025  lt_use_gnu_ld_interface=no
9026  if test yes = "$with_gnu_ld"; then
9027    case $host_os in
9028      aix*)
9029	# The AIX port of GNU ld has always aspired to compatibility
9030	# with the native linker.  However, as the warning in the GNU ld
9031	# block says, versions before 2.19.5* couldn't really create working
9032	# shared libraries, regardless of the interface used.
9033	case `$LD -v 2>&1` in
9034	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9035	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9036	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9037	  *)
9038	    lt_use_gnu_ld_interface=yes
9039	    ;;
9040	esac
9041	;;
9042      *)
9043	lt_use_gnu_ld_interface=yes
9044	;;
9045    esac
9046  fi
9047
9048  if test yes = "$lt_use_gnu_ld_interface"; then
9049    # If archive_cmds runs LD, not CC, wlarc should be empty
9050    wlarc='$wl'
9051
9052    # Set some defaults for GNU ld with shared library support. These
9053    # are reset later if shared libraries are not supported. Putting them
9054    # here allows them to be overridden if necessary.
9055    runpath_var=LD_RUN_PATH
9056    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9057    export_dynamic_flag_spec='$wl--export-dynamic'
9058    # ancient GNU ld didn't support --whole-archive et. al.
9059    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9060      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9061    else
9062      whole_archive_flag_spec=
9063    fi
9064    supports_anon_versioning=no
9065    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9066      *GNU\ gold*) supports_anon_versioning=yes ;;
9067      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9068      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9069      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9070      *\ 2.11.*) ;; # other 2.11 versions
9071      *) supports_anon_versioning=yes ;;
9072    esac
9073
9074    # See if GNU ld supports shared libraries.
9075    case $host_os in
9076    aix[3-9]*)
9077      # On AIX/PPC, the GNU linker is very broken
9078      if test ia64 != "$host_cpu"; then
9079	ld_shlibs=no
9080	cat <<_LT_EOF 1>&2
9081
9082*** Warning: the GNU linker, at least up to release 2.19, is reported
9083*** to be unable to reliably create shared libraries on AIX.
9084*** Therefore, libtool is disabling shared libraries support.  If you
9085*** really care for shared libraries, you may want to install binutils
9086*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9087*** You will then need to restart the configuration process.
9088
9089_LT_EOF
9090      fi
9091      ;;
9092
9093    amigaos*)
9094      case $host_cpu in
9095      powerpc)
9096            # see comment about AmigaOS4 .so support
9097            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9098            archive_expsym_cmds=''
9099        ;;
9100      m68k)
9101            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)'
9102            hardcode_libdir_flag_spec='-L$libdir'
9103            hardcode_minus_L=yes
9104        ;;
9105      esac
9106      ;;
9107
9108    beos*)
9109      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9110	allow_undefined_flag=unsupported
9111	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9112	# support --undefined.  This deserves some investigation.  FIXME
9113	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9114      else
9115	ld_shlibs=no
9116      fi
9117      ;;
9118
9119    cygwin* | mingw* | pw32* | cegcc*)
9120      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9121      # as there is no search path for DLLs.
9122      hardcode_libdir_flag_spec='-L$libdir'
9123      export_dynamic_flag_spec='$wl--export-all-symbols'
9124      allow_undefined_flag=unsupported
9125      always_export_symbols=no
9126      enable_shared_with_static_runtimes=yes
9127      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'
9128      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9129
9130      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9131        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9132	# If the export-symbols file already is a .def file, use it as
9133	# is; otherwise, prepend EXPORTS...
9134	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9135          cp $export_symbols $output_objdir/$soname.def;
9136        else
9137          echo EXPORTS > $output_objdir/$soname.def;
9138          cat $export_symbols >> $output_objdir/$soname.def;
9139        fi~
9140        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9141      else
9142	ld_shlibs=no
9143      fi
9144      ;;
9145
9146    haiku*)
9147      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9148      link_all_deplibs=yes
9149      ;;
9150
9151    os2*)
9152      hardcode_libdir_flag_spec='-L$libdir'
9153      hardcode_minus_L=yes
9154      allow_undefined_flag=unsupported
9155      shrext_cmds=.dll
9156      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9157	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9158	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9159	$ECHO EXPORTS >> $output_objdir/$libname.def~
9160	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9161	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9162	emximp -o $lib $output_objdir/$libname.def'
9163      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9164	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9165	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9166	$ECHO EXPORTS >> $output_objdir/$libname.def~
9167	prefix_cmds="$SED"~
9168	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9169	  prefix_cmds="$prefix_cmds -e 1d";
9170	fi~
9171	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9172	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9173	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9174	emximp -o $lib $output_objdir/$libname.def'
9175      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9176      enable_shared_with_static_runtimes=yes
9177      file_list_spec='@'
9178      ;;
9179
9180    interix[3-9]*)
9181      hardcode_direct=no
9182      hardcode_shlibpath_var=no
9183      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9184      export_dynamic_flag_spec='$wl-E'
9185      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9186      # Instead, shared libraries are loaded at an image base (0x10000000 by
9187      # default) and relocated if they conflict, which is a slow very memory
9188      # consuming and fragmenting process.  To avoid this, we pick a random,
9189      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9190      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9191      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9192      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'
9193      ;;
9194
9195    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9196      tmp_diet=no
9197      if test linux-dietlibc = "$host_os"; then
9198	case $cc_basename in
9199	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9200	esac
9201      fi
9202      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9203	 && test no = "$tmp_diet"
9204      then
9205	tmp_addflag=' $pic_flag'
9206	tmp_sharedflag='-shared'
9207	case $cc_basename,$host_cpu in
9208        pgcc*)				# Portland Group C compiler
9209	  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'
9210	  tmp_addflag=' $pic_flag'
9211	  ;;
9212	pgf77* | pgf90* | pgf95* | pgfortran*)
9213					# Portland Group f77 and f90 compilers
9214	  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'
9215	  tmp_addflag=' $pic_flag -Mnomain' ;;
9216	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9217	  tmp_addflag=' -i_dynamic' ;;
9218	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9219	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9220	ifc* | ifort*)			# Intel Fortran compiler
9221	  tmp_addflag=' -nofor_main' ;;
9222	lf95*)				# Lahey Fortran 8.1
9223	  whole_archive_flag_spec=
9224	  tmp_sharedflag='--shared' ;;
9225        nagfor*)                        # NAGFOR 5.3
9226          tmp_sharedflag='-Wl,-shared' ;;
9227	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9228	  tmp_sharedflag='-qmkshrobj'
9229	  tmp_addflag= ;;
9230	nvcc*)	# Cuda Compiler Driver 2.2
9231	  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'
9232	  compiler_needs_object=yes
9233	  ;;
9234	esac
9235	case `$CC -V 2>&1 | sed 5q` in
9236	*Sun\ C*)			# Sun C 5.9
9237	  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'
9238	  compiler_needs_object=yes
9239	  tmp_sharedflag='-G' ;;
9240	*Sun\ F*)			# Sun Fortran 8.3
9241	  tmp_sharedflag='-G' ;;
9242	esac
9243	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9244
9245        if test yes = "$supports_anon_versioning"; then
9246          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9247            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9248            echo "local: *; };" >> $output_objdir/$libname.ver~
9249            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9250        fi
9251
9252	case $cc_basename in
9253	tcc*)
9254	  export_dynamic_flag_spec='-rdynamic'
9255	  ;;
9256	xlf* | bgf* | bgxlf* | mpixlf*)
9257	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9258	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9259	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9260	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9261	  if test yes = "$supports_anon_versioning"; then
9262	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9263              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9264              echo "local: *; };" >> $output_objdir/$libname.ver~
9265              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9266	  fi
9267	  ;;
9268	esac
9269      else
9270        ld_shlibs=no
9271      fi
9272      ;;
9273
9274    netbsd*)
9275      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9276	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9277	wlarc=
9278      else
9279	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9280	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9281      fi
9282      ;;
9283
9284    solaris*)
9285      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9286	ld_shlibs=no
9287	cat <<_LT_EOF 1>&2
9288
9289*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9290*** create shared libraries on Solaris systems.  Therefore, libtool
9291*** is disabling shared libraries support.  We urge you to upgrade GNU
9292*** binutils to release 2.9.1 or newer.  Another option is to modify
9293*** your PATH or compiler configuration so that the native linker is
9294*** used, and then restart.
9295
9296_LT_EOF
9297      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9298	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9299	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9300      else
9301	ld_shlibs=no
9302      fi
9303      ;;
9304
9305    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9306      case `$LD -v 2>&1` in
9307        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9308	ld_shlibs=no
9309	cat <<_LT_EOF 1>&2
9310
9311*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9312*** reliably create shared libraries on SCO systems.  Therefore, libtool
9313*** is disabling shared libraries support.  We urge you to upgrade GNU
9314*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9315*** your PATH or compiler configuration so that the native linker is
9316*** used, and then restart.
9317
9318_LT_EOF
9319	;;
9320	*)
9321	  # For security reasons, it is highly recommended that you always
9322	  # use absolute paths for naming shared libraries, and exclude the
9323	  # DT_RUNPATH tag from executables and libraries.  But doing so
9324	  # requires that you compile everything twice, which is a pain.
9325	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9326	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9327	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9328	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9329	  else
9330	    ld_shlibs=no
9331	  fi
9332	;;
9333      esac
9334      ;;
9335
9336    sunos4*)
9337      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9338      wlarc=
9339      hardcode_direct=yes
9340      hardcode_shlibpath_var=no
9341      ;;
9342
9343    *)
9344      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9345	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9346	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9347      else
9348	ld_shlibs=no
9349      fi
9350      ;;
9351    esac
9352
9353    if test no = "$ld_shlibs"; then
9354      runpath_var=
9355      hardcode_libdir_flag_spec=
9356      export_dynamic_flag_spec=
9357      whole_archive_flag_spec=
9358    fi
9359  else
9360    # PORTME fill in a description of your system's linker (not GNU ld)
9361    case $host_os in
9362    aix3*)
9363      allow_undefined_flag=unsupported
9364      always_export_symbols=yes
9365      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'
9366      # Note: this linker hardcodes the directories in LIBPATH if there
9367      # are no directories specified by -L.
9368      hardcode_minus_L=yes
9369      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9370	# Neither direct hardcoding nor static linking is supported with a
9371	# broken collect2.
9372	hardcode_direct=unsupported
9373      fi
9374      ;;
9375
9376    aix[4-9]*)
9377      if test ia64 = "$host_cpu"; then
9378	# On IA64, the linker does run time linking by default, so we don't
9379	# have to do anything special.
9380	aix_use_runtimelinking=no
9381	exp_sym_flag='-Bexport'
9382	no_entry_flag=
9383      else
9384	# If we're using GNU nm, then we don't want the "-C" option.
9385	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9386	# Without the "-l" option, or with the "-B" option, AIX nm treats
9387	# weak defined symbols like other global defined symbols, whereas
9388	# GNU nm marks them as "W".
9389	# While the 'weak' keyword is ignored in the Export File, we need
9390	# it in the Import File for the 'aix-soname' feature, so we have
9391	# to replace the "-B" option with "-P" for AIX nm.
9392	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9393	  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'
9394	else
9395	  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 == "L") || (\$ 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'
9396	fi
9397	aix_use_runtimelinking=no
9398
9399	# Test if we are trying to use run time linking or normal
9400	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9401	# have runtime linking enabled, and use it for executables.
9402	# For shared libraries, we enable/disable runtime linking
9403	# depending on the kind of the shared library created -
9404	# when "with_aix_soname,aix_use_runtimelinking" is:
9405	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9406	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9407	#            lib.a           static archive
9408	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9409	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9410	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9411	#            lib.a(lib.so.V) shared, rtl:no
9412	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9413	#            lib.a           static archive
9414	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9415	  for ld_flag in $LDFLAGS; do
9416	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9417	    aix_use_runtimelinking=yes
9418	    break
9419	  fi
9420	  done
9421	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9422	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9423	    # so we don't have lib.a shared libs to link our executables.
9424	    # We have to force runtime linking in this case.
9425	    aix_use_runtimelinking=yes
9426	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9427	  fi
9428	  ;;
9429	esac
9430
9431	exp_sym_flag='-bexport'
9432	no_entry_flag='-bnoentry'
9433      fi
9434
9435      # When large executables or shared objects are built, AIX ld can
9436      # have problems creating the table of contents.  If linking a library
9437      # or program results in "error TOC overflow" add -mminimal-toc to
9438      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9439      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9440
9441      archive_cmds=''
9442      hardcode_direct=yes
9443      hardcode_direct_absolute=yes
9444      hardcode_libdir_separator=':'
9445      link_all_deplibs=yes
9446      file_list_spec='$wl-f,'
9447      case $with_aix_soname,$aix_use_runtimelinking in
9448      aix,*) ;; # traditional, no import file
9449      svr4,* | *,yes) # use import file
9450	# The Import File defines what to hardcode.
9451	hardcode_direct=no
9452	hardcode_direct_absolute=no
9453	;;
9454      esac
9455
9456      if test yes = "$GCC"; then
9457	case $host_os in aix4.[012]|aix4.[012].*)
9458	# We only want to do this on AIX 4.2 and lower, the check
9459	# below for broken collect2 doesn't work under 4.3+
9460	  collect2name=`$CC -print-prog-name=collect2`
9461	  if test -f "$collect2name" &&
9462	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9463	  then
9464	  # We have reworked collect2
9465	  :
9466	  else
9467	  # We have old collect2
9468	  hardcode_direct=unsupported
9469	  # It fails to find uninstalled libraries when the uninstalled
9470	  # path is not listed in the libpath.  Setting hardcode_minus_L
9471	  # to unsupported forces relinking
9472	  hardcode_minus_L=yes
9473	  hardcode_libdir_flag_spec='-L$libdir'
9474	  hardcode_libdir_separator=
9475	  fi
9476	  ;;
9477	esac
9478	shared_flag='-shared'
9479	if test yes = "$aix_use_runtimelinking"; then
9480	  shared_flag="$shared_flag "'$wl-G'
9481	fi
9482	# Need to ensure runtime linking is disabled for the traditional
9483	# shared library, or the linker may eventually find shared libraries
9484	# /with/ Import File - we do not want to mix them.
9485	shared_flag_aix='-shared'
9486	shared_flag_svr4='-shared $wl-G'
9487      else
9488	# not using gcc
9489	if test ia64 = "$host_cpu"; then
9490	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9491	# chokes on -Wl,-G. The following line is correct:
9492	  shared_flag='-G'
9493	else
9494	  if test yes = "$aix_use_runtimelinking"; then
9495	    shared_flag='$wl-G'
9496	  else
9497	    shared_flag='$wl-bM:SRE'
9498	  fi
9499	  shared_flag_aix='$wl-bM:SRE'
9500	  shared_flag_svr4='$wl-G'
9501	fi
9502      fi
9503
9504      export_dynamic_flag_spec='$wl-bexpall'
9505      # It seems that -bexpall does not export symbols beginning with
9506      # underscore (_), so it is better to generate a list of symbols to export.
9507      always_export_symbols=yes
9508      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9509	# Warning - without using the other runtime loading flags (-brtl),
9510	# -berok will link without error, but may produce a broken library.
9511	allow_undefined_flag='-berok'
9512        # Determine the default libpath from the value encoded in an
9513        # empty executable.
9514        if test set = "${lt_cv_aix_libpath+set}"; then
9515  aix_libpath=$lt_cv_aix_libpath
9516else
9517  if ${lt_cv_aix_libpath_+:} false; then :
9518  $as_echo_n "(cached) " >&6
9519else
9520  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9521/* end confdefs.h.  */
9522
9523int
9524main ()
9525{
9526
9527  ;
9528  return 0;
9529}
9530_ACEOF
9531if ac_fn_c_try_link "$LINENO"; then :
9532
9533  lt_aix_libpath_sed='
9534      /Import File Strings/,/^$/ {
9535	  /^0/ {
9536	      s/^0  *\([^ ]*\) *$/\1/
9537	      p
9538	  }
9539      }'
9540  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9541  # Check for a 64-bit object if we didn't find anything.
9542  if test -z "$lt_cv_aix_libpath_"; then
9543    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9544  fi
9545fi
9546rm -f core conftest.err conftest.$ac_objext \
9547    conftest$ac_exeext conftest.$ac_ext
9548  if test -z "$lt_cv_aix_libpath_"; then
9549    lt_cv_aix_libpath_=/usr/lib:/lib
9550  fi
9551
9552fi
9553
9554  aix_libpath=$lt_cv_aix_libpath_
9555fi
9556
9557        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9558        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
9559      else
9560	if test ia64 = "$host_cpu"; then
9561	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9562	  allow_undefined_flag="-z nodefs"
9563	  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"
9564	else
9565	 # Determine the default libpath from the value encoded in an
9566	 # empty executable.
9567	 if test set = "${lt_cv_aix_libpath+set}"; then
9568  aix_libpath=$lt_cv_aix_libpath
9569else
9570  if ${lt_cv_aix_libpath_+:} false; then :
9571  $as_echo_n "(cached) " >&6
9572else
9573  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9574/* end confdefs.h.  */
9575
9576int
9577main ()
9578{
9579
9580  ;
9581  return 0;
9582}
9583_ACEOF
9584if ac_fn_c_try_link "$LINENO"; then :
9585
9586  lt_aix_libpath_sed='
9587      /Import File Strings/,/^$/ {
9588	  /^0/ {
9589	      s/^0  *\([^ ]*\) *$/\1/
9590	      p
9591	  }
9592      }'
9593  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9594  # Check for a 64-bit object if we didn't find anything.
9595  if test -z "$lt_cv_aix_libpath_"; then
9596    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9597  fi
9598fi
9599rm -f core conftest.err conftest.$ac_objext \
9600    conftest$ac_exeext conftest.$ac_ext
9601  if test -z "$lt_cv_aix_libpath_"; then
9602    lt_cv_aix_libpath_=/usr/lib:/lib
9603  fi
9604
9605fi
9606
9607  aix_libpath=$lt_cv_aix_libpath_
9608fi
9609
9610	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9611	  # Warning - without using the other run time loading flags,
9612	  # -berok will link without error, but may produce a broken library.
9613	  no_undefined_flag=' $wl-bernotok'
9614	  allow_undefined_flag=' $wl-berok'
9615	  if test yes = "$with_gnu_ld"; then
9616	    # We only use this code for GNU lds that support --whole-archive.
9617	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9618	  else
9619	    # Exported symbols can be pulled into shared objects from archives
9620	    whole_archive_flag_spec='$convenience'
9621	  fi
9622	  archive_cmds_need_lc=yes
9623	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9624	  # -brtl affects multiple linker settings, -berok does not and is overridden later
9625	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9626	  if test svr4 != "$with_aix_soname"; then
9627	    # This is similar to how AIX traditionally builds its shared libraries.
9628	    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'
9629	  fi
9630	  if test aix != "$with_aix_soname"; then
9631	    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'
9632	  else
9633	    # used by -dlpreopen to get the symbols
9634	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9635	  fi
9636	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9637	fi
9638      fi
9639      ;;
9640
9641    amigaos*)
9642      case $host_cpu in
9643      powerpc)
9644            # see comment about AmigaOS4 .so support
9645            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9646            archive_expsym_cmds=''
9647        ;;
9648      m68k)
9649            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)'
9650            hardcode_libdir_flag_spec='-L$libdir'
9651            hardcode_minus_L=yes
9652        ;;
9653      esac
9654      ;;
9655
9656    bsdi[45]*)
9657      export_dynamic_flag_spec=-rdynamic
9658      ;;
9659
9660    cygwin* | mingw* | pw32* | cegcc*)
9661      # When not using gcc, we currently assume that we are using
9662      # Microsoft Visual C++ or Intel C++ Compiler.
9663      # hardcode_libdir_flag_spec is actually meaningless, as there is
9664      # no search path for DLLs.
9665      case $cc_basename in
9666      cl* | icl*)
9667	# Native MSVC or ICC
9668	hardcode_libdir_flag_spec=' '
9669	allow_undefined_flag=unsupported
9670	always_export_symbols=yes
9671	file_list_spec='@'
9672	# Tell ltmain to make .lib files, not .a files.
9673	libext=lib
9674	# Tell ltmain to make .dll files, not .so files.
9675	shrext_cmds=.dll
9676	# FIXME: Setting linknames here is a bad hack.
9677	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9678	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9679            cp "$export_symbols" "$output_objdir/$soname.def";
9680            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9681          else
9682            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9683          fi~
9684          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9685          linknames='
9686	# The linker will not automatically build a static lib if we build a DLL.
9687	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9688	enable_shared_with_static_runtimes=yes
9689	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9690	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9691	# Don't use ranlib
9692	old_postinstall_cmds='chmod 644 $oldlib'
9693	postlink_cmds='lt_outputfile="@OUTPUT@"~
9694          lt_tool_outputfile="@TOOL_OUTPUT@"~
9695          case $lt_outputfile in
9696            *.exe|*.EXE) ;;
9697            *)
9698              lt_outputfile=$lt_outputfile.exe
9699              lt_tool_outputfile=$lt_tool_outputfile.exe
9700              ;;
9701          esac~
9702          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9703            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9704            $RM "$lt_outputfile.manifest";
9705          fi'
9706	;;
9707      *)
9708	# Assume MSVC and ICC wrapper
9709	hardcode_libdir_flag_spec=' '
9710	allow_undefined_flag=unsupported
9711	# Tell ltmain to make .lib files, not .a files.
9712	libext=lib
9713	# Tell ltmain to make .dll files, not .so files.
9714	shrext_cmds=.dll
9715	# FIXME: Setting linknames here is a bad hack.
9716	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9717	# The linker will automatically build a .lib file if we build a DLL.
9718	old_archive_from_new_cmds='true'
9719	# FIXME: Should let the user specify the lib program.
9720	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9721	enable_shared_with_static_runtimes=yes
9722	;;
9723      esac
9724      ;;
9725
9726    darwin* | rhapsody*)
9727
9728
9729  archive_cmds_need_lc=no
9730  hardcode_direct=no
9731  hardcode_automatic=yes
9732  hardcode_shlibpath_var=unsupported
9733  if test yes = "$lt_cv_ld_force_load"; then
9734    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\"`'
9735
9736  else
9737    whole_archive_flag_spec=''
9738  fi
9739  link_all_deplibs=yes
9740  allow_undefined_flag=$_lt_dar_allow_undefined
9741  case $cc_basename in
9742     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9743     *) _lt_dar_can_shared=$GCC ;;
9744  esac
9745  if test yes = "$_lt_dar_can_shared"; then
9746    output_verbose_link_cmd=func_echo_all
9747    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9748    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9749    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"
9750    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"
9751
9752  else
9753  ld_shlibs=no
9754  fi
9755
9756      ;;
9757
9758    dgux*)
9759      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9760      hardcode_libdir_flag_spec='-L$libdir'
9761      hardcode_shlibpath_var=no
9762      ;;
9763
9764    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9765    # support.  Future versions do this automatically, but an explicit c++rt0.o
9766    # does not break anything, and helps significantly (at the cost of a little
9767    # extra space).
9768    freebsd2.2*)
9769      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9770      hardcode_libdir_flag_spec='-R$libdir'
9771      hardcode_direct=yes
9772      hardcode_shlibpath_var=no
9773      ;;
9774
9775    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9776    freebsd2.*)
9777      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9778      hardcode_direct=yes
9779      hardcode_minus_L=yes
9780      hardcode_shlibpath_var=no
9781      ;;
9782
9783    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9784    freebsd* | dragonfly*)
9785      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9786      hardcode_libdir_flag_spec='-R$libdir'
9787      hardcode_direct=yes
9788      hardcode_shlibpath_var=no
9789      ;;
9790
9791    hpux9*)
9792      if test yes = "$GCC"; then
9793	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'
9794      else
9795	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'
9796      fi
9797      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9798      hardcode_libdir_separator=:
9799      hardcode_direct=yes
9800
9801      # hardcode_minus_L: Not really in the search PATH,
9802      # but as the default location of the library.
9803      hardcode_minus_L=yes
9804      export_dynamic_flag_spec='$wl-E'
9805      ;;
9806
9807    hpux10*)
9808      if test yes,no = "$GCC,$with_gnu_ld"; then
9809	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9810      else
9811	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9812      fi
9813      if test no = "$with_gnu_ld"; then
9814	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9815	hardcode_libdir_separator=:
9816	hardcode_direct=yes
9817	hardcode_direct_absolute=yes
9818	export_dynamic_flag_spec='$wl-E'
9819	# hardcode_minus_L: Not really in the search PATH,
9820	# but as the default location of the library.
9821	hardcode_minus_L=yes
9822      fi
9823      ;;
9824
9825    hpux11*)
9826      if test yes,no = "$GCC,$with_gnu_ld"; then
9827	case $host_cpu in
9828	hppa*64*)
9829	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9830	  ;;
9831	ia64*)
9832	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9833	  ;;
9834	*)
9835	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9836	  ;;
9837	esac
9838      else
9839	case $host_cpu in
9840	hppa*64*)
9841	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9842	  ;;
9843	ia64*)
9844	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9845	  ;;
9846	*)
9847
9848	  # Older versions of the 11.00 compiler do not understand -b yet
9849	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9850	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9851$as_echo_n "checking if $CC understands -b... " >&6; }
9852if ${lt_cv_prog_compiler__b+:} false; then :
9853  $as_echo_n "(cached) " >&6
9854else
9855  lt_cv_prog_compiler__b=no
9856   save_LDFLAGS=$LDFLAGS
9857   LDFLAGS="$LDFLAGS -b"
9858   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9859   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9860     # The linker can only warn and ignore the option if not recognized
9861     # So say no if there are warnings
9862     if test -s conftest.err; then
9863       # Append any errors to the config.log.
9864       cat conftest.err 1>&5
9865       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9866       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9867       if diff conftest.exp conftest.er2 >/dev/null; then
9868         lt_cv_prog_compiler__b=yes
9869       fi
9870     else
9871       lt_cv_prog_compiler__b=yes
9872     fi
9873   fi
9874   $RM -r conftest*
9875   LDFLAGS=$save_LDFLAGS
9876
9877fi
9878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9879$as_echo "$lt_cv_prog_compiler__b" >&6; }
9880
9881if test yes = "$lt_cv_prog_compiler__b"; then
9882    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9883else
9884    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9885fi
9886
9887	  ;;
9888	esac
9889      fi
9890      if test no = "$with_gnu_ld"; then
9891	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9892	hardcode_libdir_separator=:
9893
9894	case $host_cpu in
9895	hppa*64*|ia64*)
9896	  hardcode_direct=no
9897	  hardcode_shlibpath_var=no
9898	  ;;
9899	*)
9900	  hardcode_direct=yes
9901	  hardcode_direct_absolute=yes
9902	  export_dynamic_flag_spec='$wl-E'
9903
9904	  # hardcode_minus_L: Not really in the search PATH,
9905	  # but as the default location of the library.
9906	  hardcode_minus_L=yes
9907	  ;;
9908	esac
9909      fi
9910      ;;
9911
9912    irix5* | irix6* | nonstopux*)
9913      if test yes = "$GCC"; then
9914	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'
9915	# Try to use the -exported_symbol ld option, if it does not
9916	# work, assume that -exports_file does not work either and
9917	# implicitly export all symbols.
9918	# This should be the same for all languages, so no per-tag cache variable.
9919	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9920$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9921if ${lt_cv_irix_exported_symbol+:} false; then :
9922  $as_echo_n "(cached) " >&6
9923else
9924  save_LDFLAGS=$LDFLAGS
9925	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9926	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9927/* end confdefs.h.  */
9928int foo (void) { return 0; }
9929_ACEOF
9930if ac_fn_c_try_link "$LINENO"; then :
9931  lt_cv_irix_exported_symbol=yes
9932else
9933  lt_cv_irix_exported_symbol=no
9934fi
9935rm -f core conftest.err conftest.$ac_objext \
9936    conftest$ac_exeext conftest.$ac_ext
9937           LDFLAGS=$save_LDFLAGS
9938fi
9939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9940$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9941	if test yes = "$lt_cv_irix_exported_symbol"; then
9942          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'
9943	fi
9944      else
9945	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'
9946	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'
9947      fi
9948      archive_cmds_need_lc='no'
9949      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9950      hardcode_libdir_separator=:
9951      inherit_rpath=yes
9952      link_all_deplibs=yes
9953      ;;
9954
9955    linux*)
9956      case $cc_basename in
9957      tcc*)
9958	# Fabrice Bellard et al's Tiny C Compiler
9959	ld_shlibs=yes
9960	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9961	;;
9962      esac
9963      ;;
9964
9965    netbsd*)
9966      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9967	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9968      else
9969	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9970      fi
9971      hardcode_libdir_flag_spec='-R$libdir'
9972      hardcode_direct=yes
9973      hardcode_shlibpath_var=no
9974      ;;
9975
9976    newsos6)
9977      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9978      hardcode_direct=yes
9979      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9980      hardcode_libdir_separator=:
9981      hardcode_shlibpath_var=no
9982      ;;
9983
9984    *nto* | *qnx*)
9985      ;;
9986
9987    openbsd* | bitrig*)
9988      if test -f /usr/libexec/ld.so; then
9989	hardcode_direct=yes
9990	hardcode_shlibpath_var=no
9991	hardcode_direct_absolute=yes
9992	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9993	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9994	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9995	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9996	  export_dynamic_flag_spec='$wl-E'
9997	else
9998	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9999	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10000	fi
10001      else
10002	ld_shlibs=no
10003      fi
10004      ;;
10005
10006    os2*)
10007      hardcode_libdir_flag_spec='-L$libdir'
10008      hardcode_minus_L=yes
10009      allow_undefined_flag=unsupported
10010      shrext_cmds=.dll
10011      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10012	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10013	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10014	$ECHO EXPORTS >> $output_objdir/$libname.def~
10015	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10016	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10017	emximp -o $lib $output_objdir/$libname.def'
10018      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10019	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10020	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10021	$ECHO EXPORTS >> $output_objdir/$libname.def~
10022	prefix_cmds="$SED"~
10023	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10024	  prefix_cmds="$prefix_cmds -e 1d";
10025	fi~
10026	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10027	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10028	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10029	emximp -o $lib $output_objdir/$libname.def'
10030      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10031      enable_shared_with_static_runtimes=yes
10032      file_list_spec='@'
10033      ;;
10034
10035    osf3*)
10036      if test yes = "$GCC"; then
10037	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10038	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'
10039      else
10040	allow_undefined_flag=' -expect_unresolved \*'
10041	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'
10042      fi
10043      archive_cmds_need_lc='no'
10044      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10045      hardcode_libdir_separator=:
10046      ;;
10047
10048    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10049      if test yes = "$GCC"; then
10050	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10051	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'
10052	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10053      else
10054	allow_undefined_flag=' -expect_unresolved \*'
10055	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'
10056	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~
10057          $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'
10058
10059	# Both c and cxx compiler support -rpath directly
10060	hardcode_libdir_flag_spec='-rpath $libdir'
10061      fi
10062      archive_cmds_need_lc='no'
10063      hardcode_libdir_separator=:
10064      ;;
10065
10066    solaris*)
10067      no_undefined_flag=' -z defs'
10068      if test yes = "$GCC"; then
10069	wlarc='$wl'
10070	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10071	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10072          $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'
10073      else
10074	case `$CC -V 2>&1` in
10075	*"Compilers 5.0"*)
10076	  wlarc=''
10077	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10078	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10079            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10080	  ;;
10081	*)
10082	  wlarc='$wl'
10083	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10084	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10085            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10086	  ;;
10087	esac
10088      fi
10089      hardcode_libdir_flag_spec='-R$libdir'
10090      hardcode_shlibpath_var=no
10091      case $host_os in
10092      solaris2.[0-5] | solaris2.[0-5].*) ;;
10093      *)
10094	# The compiler driver will combine and reorder linker options,
10095	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10096	# but is careful enough not to reorder.
10097	# Supported since Solaris 2.6 (maybe 2.5.1?)
10098	if test yes = "$GCC"; then
10099	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10100	else
10101	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10102	fi
10103	;;
10104      esac
10105      link_all_deplibs=yes
10106      ;;
10107
10108    sunos4*)
10109      if test sequent = "$host_vendor"; then
10110	# Use $CC to link under sequent, because it throws in some extra .o
10111	# files that make .init and .fini sections work.
10112	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10113      else
10114	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10115      fi
10116      hardcode_libdir_flag_spec='-L$libdir'
10117      hardcode_direct=yes
10118      hardcode_minus_L=yes
10119      hardcode_shlibpath_var=no
10120      ;;
10121
10122    sysv4)
10123      case $host_vendor in
10124	sni)
10125	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10126	  hardcode_direct=yes # is this really true???
10127	;;
10128	siemens)
10129	  ## LD is ld it makes a PLAMLIB
10130	  ## CC just makes a GrossModule.
10131	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10132	  reload_cmds='$CC -r -o $output$reload_objs'
10133	  hardcode_direct=no
10134        ;;
10135	motorola)
10136	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10137	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10138	;;
10139      esac
10140      runpath_var='LD_RUN_PATH'
10141      hardcode_shlibpath_var=no
10142      ;;
10143
10144    sysv4.3*)
10145      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10146      hardcode_shlibpath_var=no
10147      export_dynamic_flag_spec='-Bexport'
10148      ;;
10149
10150    sysv4*MP*)
10151      if test -d /usr/nec; then
10152	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10153	hardcode_shlibpath_var=no
10154	runpath_var=LD_RUN_PATH
10155	hardcode_runpath_var=yes
10156	ld_shlibs=yes
10157      fi
10158      ;;
10159
10160    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10161      no_undefined_flag='$wl-z,text'
10162      archive_cmds_need_lc=no
10163      hardcode_shlibpath_var=no
10164      runpath_var='LD_RUN_PATH'
10165
10166      if test yes = "$GCC"; then
10167	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10168	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10169      else
10170	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10171	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10172      fi
10173      ;;
10174
10175    sysv5* | sco3.2v5* | sco5v6*)
10176      # Note: We CANNOT use -z defs as we might desire, because we do not
10177      # link with -lc, and that would cause any symbols used from libc to
10178      # always be unresolved, which means just about no library would
10179      # ever link correctly.  If we're not using GNU ld we use -z text
10180      # though, which does catch some bad symbols but isn't as heavy-handed
10181      # as -z defs.
10182      no_undefined_flag='$wl-z,text'
10183      allow_undefined_flag='$wl-z,nodefs'
10184      archive_cmds_need_lc=no
10185      hardcode_shlibpath_var=no
10186      hardcode_libdir_flag_spec='$wl-R,$libdir'
10187      hardcode_libdir_separator=':'
10188      link_all_deplibs=yes
10189      export_dynamic_flag_spec='$wl-Bexport'
10190      runpath_var='LD_RUN_PATH'
10191
10192      if test yes = "$GCC"; then
10193	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10194	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10195      else
10196	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10197	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10198      fi
10199      ;;
10200
10201    uts4*)
10202      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10203      hardcode_libdir_flag_spec='-L$libdir'
10204      hardcode_shlibpath_var=no
10205      ;;
10206
10207    *)
10208      ld_shlibs=no
10209      ;;
10210    esac
10211
10212    if test sni = "$host_vendor"; then
10213      case $host in
10214      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10215	export_dynamic_flag_spec='$wl-Blargedynsym'
10216	;;
10217      esac
10218    fi
10219  fi
10220
10221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10222$as_echo "$ld_shlibs" >&6; }
10223test no = "$ld_shlibs" && can_build_shared=no
10224
10225with_gnu_ld=$with_gnu_ld
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241#
10242# Do we need to explicitly link libc?
10243#
10244case "x$archive_cmds_need_lc" in
10245x|xyes)
10246  # Assume -lc should be added
10247  archive_cmds_need_lc=yes
10248
10249  if test yes,yes = "$GCC,$enable_shared"; then
10250    case $archive_cmds in
10251    *'~'*)
10252      # FIXME: we may have to deal with multi-command sequences.
10253      ;;
10254    '$CC '*)
10255      # Test whether the compiler implicitly links with -lc since on some
10256      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10257      # to ld, don't add -lc before -lgcc.
10258      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10259$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10260if ${lt_cv_archive_cmds_need_lc+:} false; then :
10261  $as_echo_n "(cached) " >&6
10262else
10263  $RM conftest*
10264	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10265
10266	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10267  (eval $ac_compile) 2>&5
10268  ac_status=$?
10269  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10270  test $ac_status = 0; } 2>conftest.err; then
10271	  soname=conftest
10272	  lib=conftest
10273	  libobjs=conftest.$ac_objext
10274	  deplibs=
10275	  wl=$lt_prog_compiler_wl
10276	  pic_flag=$lt_prog_compiler_pic
10277	  compiler_flags=-v
10278	  linker_flags=-v
10279	  verstring=
10280	  output_objdir=.
10281	  libname=conftest
10282	  lt_save_allow_undefined_flag=$allow_undefined_flag
10283	  allow_undefined_flag=
10284	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10285  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10286  ac_status=$?
10287  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10288  test $ac_status = 0; }
10289	  then
10290	    lt_cv_archive_cmds_need_lc=no
10291	  else
10292	    lt_cv_archive_cmds_need_lc=yes
10293	  fi
10294	  allow_undefined_flag=$lt_save_allow_undefined_flag
10295	else
10296	  cat conftest.err 1>&5
10297	fi
10298	$RM conftest*
10299
10300fi
10301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10302$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10303      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10304      ;;
10305    esac
10306  fi
10307  ;;
10308esac
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
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  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10462$as_echo_n "checking dynamic linker characteristics... " >&6; }
10463
10464if test yes = "$GCC"; then
10465  case $host_os in
10466    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10467    *) lt_awk_arg='/^libraries:/' ;;
10468  esac
10469  case $host_os in
10470    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10471    *) lt_sed_strip_eq='s|=/|/|g' ;;
10472  esac
10473  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10474  case $lt_search_path_spec in
10475  *\;*)
10476    # if the path contains ";" then we assume it to be the separator
10477    # otherwise default to the standard path separator (i.e. ":") - it is
10478    # assumed that no part of a normal pathname contains ";" but that should
10479    # okay in the real world where ";" in dirpaths is itself problematic.
10480    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10481    ;;
10482  *)
10483    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10484    ;;
10485  esac
10486  # Ok, now we have the path, separated by spaces, we can step through it
10487  # and add multilib dir if necessary...
10488  lt_tmp_lt_search_path_spec=
10489  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10490  # ...but if some path component already ends with the multilib dir we assume
10491  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10492  case "$lt_multi_os_dir; $lt_search_path_spec " in
10493  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10494    lt_multi_os_dir=
10495    ;;
10496  esac
10497  for lt_sys_path in $lt_search_path_spec; do
10498    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10499      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10500    elif test -n "$lt_multi_os_dir"; then
10501      test -d "$lt_sys_path" && \
10502	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10503    fi
10504  done
10505  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10506BEGIN {RS = " "; FS = "/|\n";} {
10507  lt_foo = "";
10508  lt_count = 0;
10509  for (lt_i = NF; lt_i > 0; lt_i--) {
10510    if ($lt_i != "" && $lt_i != ".") {
10511      if ($lt_i == "..") {
10512        lt_count++;
10513      } else {
10514        if (lt_count == 0) {
10515          lt_foo = "/" $lt_i lt_foo;
10516        } else {
10517          lt_count--;
10518        }
10519      }
10520    }
10521  }
10522  if (lt_foo != "") { lt_freq[lt_foo]++; }
10523  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10524}'`
10525  # AWK program above erroneously prepends '/' to C:/dos/paths
10526  # for these hosts.
10527  case $host_os in
10528    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10529      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10530  esac
10531  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10532else
10533  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10534fi
10535library_names_spec=
10536libname_spec='lib$name'
10537soname_spec=
10538shrext_cmds=.so
10539postinstall_cmds=
10540postuninstall_cmds=
10541finish_cmds=
10542finish_eval=
10543shlibpath_var=
10544shlibpath_overrides_runpath=unknown
10545version_type=none
10546dynamic_linker="$host_os ld.so"
10547sys_lib_dlsearch_path_spec="/lib /usr/lib"
10548need_lib_prefix=unknown
10549hardcode_into_libs=no
10550
10551# when you set need_version to no, make sure it does not cause -set_version
10552# flags to be left without arguments
10553need_version=unknown
10554
10555
10556
10557case $host_os in
10558aix3*)
10559  version_type=linux # correct to gnu/linux during the next big refactor
10560  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10561  shlibpath_var=LIBPATH
10562
10563  # AIX 3 has no versioning support, so we append a major version to the name.
10564  soname_spec='$libname$release$shared_ext$major'
10565  ;;
10566
10567aix[4-9]*)
10568  version_type=linux # correct to gnu/linux during the next big refactor
10569  need_lib_prefix=no
10570  need_version=no
10571  hardcode_into_libs=yes
10572  if test ia64 = "$host_cpu"; then
10573    # AIX 5 supports IA64
10574    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10575    shlibpath_var=LD_LIBRARY_PATH
10576  else
10577    # With GCC up to 2.95.x, collect2 would create an import file
10578    # for dependence libraries.  The import file would start with
10579    # the line '#! .'.  This would cause the generated library to
10580    # depend on '.', always an invalid library.  This was fixed in
10581    # development snapshots of GCC prior to 3.0.
10582    case $host_os in
10583      aix4 | aix4.[01] | aix4.[01].*)
10584      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10585	   echo ' yes '
10586	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10587	:
10588      else
10589	can_build_shared=no
10590      fi
10591      ;;
10592    esac
10593    # Using Import Files as archive members, it is possible to support
10594    # filename-based versioning of shared library archives on AIX. While
10595    # this would work for both with and without runtime linking, it will
10596    # prevent static linking of such archives. So we do filename-based
10597    # shared library versioning with .so extension only, which is used
10598    # when both runtime linking and shared linking is enabled.
10599    # Unfortunately, runtime linking may impact performance, so we do
10600    # not want this to be the default eventually. Also, we use the
10601    # versioned .so libs for executables only if there is the -brtl
10602    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10603    # To allow for filename-based versioning support, we need to create
10604    # libNAME.so.V as an archive file, containing:
10605    # *) an Import File, referring to the versioned filename of the
10606    #    archive as well as the shared archive member, telling the
10607    #    bitwidth (32 or 64) of that shared object, and providing the
10608    #    list of exported symbols of that shared object, eventually
10609    #    decorated with the 'weak' keyword
10610    # *) the shared object with the F_LOADONLY flag set, to really avoid
10611    #    it being seen by the linker.
10612    # At run time we better use the real file rather than another symlink,
10613    # but for link time we create the symlink libNAME.so -> libNAME.so.V
10614
10615    case $with_aix_soname,$aix_use_runtimelinking in
10616    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10617    # soname into executable. Probably we can add versioning support to
10618    # collect2, so additional links can be useful in future.
10619    aix,yes) # traditional libtool
10620      dynamic_linker='AIX unversionable lib.so'
10621      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10622      # instead of lib<name>.a to let people know that these are not
10623      # typical AIX shared libraries.
10624      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10625      ;;
10626    aix,no) # traditional AIX only
10627      dynamic_linker='AIX lib.a(lib.so.V)'
10628      # We preserve .a as extension for shared libraries through AIX4.2
10629      # and later when we are not doing run time linking.
10630      library_names_spec='$libname$release.a $libname.a'
10631      soname_spec='$libname$release$shared_ext$major'
10632      ;;
10633    svr4,*) # full svr4 only
10634      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10635      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10636      # We do not specify a path in Import Files, so LIBPATH fires.
10637      shlibpath_overrides_runpath=yes
10638      ;;
10639    *,yes) # both, prefer svr4
10640      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10641      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10642      # unpreferred sharedlib libNAME.a needs extra handling
10643      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"'
10644      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"'
10645      # We do not specify a path in Import Files, so LIBPATH fires.
10646      shlibpath_overrides_runpath=yes
10647      ;;
10648    *,no) # both, prefer aix
10649      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10650      library_names_spec='$libname$release.a $libname.a'
10651      soname_spec='$libname$release$shared_ext$major'
10652      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10653      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)'
10654      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"'
10655      ;;
10656    esac
10657    shlibpath_var=LIBPATH
10658  fi
10659  ;;
10660
10661amigaos*)
10662  case $host_cpu in
10663  powerpc)
10664    # Since July 2007 AmigaOS4 officially supports .so libraries.
10665    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10666    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10667    ;;
10668  m68k)
10669    library_names_spec='$libname.ixlibrary $libname.a'
10670    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10671    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'
10672    ;;
10673  esac
10674  ;;
10675
10676beos*)
10677  library_names_spec='$libname$shared_ext'
10678  dynamic_linker="$host_os ld.so"
10679  shlibpath_var=LIBRARY_PATH
10680  ;;
10681
10682bsdi[45]*)
10683  version_type=linux # correct to gnu/linux during the next big refactor
10684  need_version=no
10685  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10686  soname_spec='$libname$release$shared_ext$major'
10687  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10688  shlibpath_var=LD_LIBRARY_PATH
10689  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10690  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10691  # the default ld.so.conf also contains /usr/contrib/lib and
10692  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10693  # libtool to hard-code these into programs
10694  ;;
10695
10696cygwin* | mingw* | pw32* | cegcc*)
10697  version_type=windows
10698  shrext_cmds=.dll
10699  need_version=no
10700  need_lib_prefix=no
10701
10702  case $GCC,$cc_basename in
10703  yes,*)
10704    # gcc
10705    library_names_spec='$libname.dll.a'
10706    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10707    postinstall_cmds='base_file=`basename \$file`~
10708      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10709      dldir=$destdir/`dirname \$dlpath`~
10710      test -d \$dldir || mkdir -p \$dldir~
10711      $install_prog $dir/$dlname \$dldir/$dlname~
10712      chmod a+x \$dldir/$dlname~
10713      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10714        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10715      fi'
10716    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10717      dlpath=$dir/\$dldll~
10718       $RM \$dlpath'
10719    shlibpath_overrides_runpath=yes
10720
10721    case $host_os in
10722    cygwin*)
10723      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10724      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10725
10726      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10727      ;;
10728    mingw* | cegcc*)
10729      # MinGW DLLs use traditional 'lib' prefix
10730      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10731      ;;
10732    pw32*)
10733      # pw32 DLLs use 'pw' prefix rather than 'lib'
10734      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10735      ;;
10736    esac
10737    dynamic_linker='Win32 ld.exe'
10738    ;;
10739
10740  *,cl* | *,icl*)
10741    # Native MSVC or ICC
10742    libname_spec='$name'
10743    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10744    library_names_spec='$libname.dll.lib'
10745
10746    case $build_os in
10747    mingw*)
10748      sys_lib_search_path_spec=
10749      lt_save_ifs=$IFS
10750      IFS=';'
10751      for lt_path in $LIB
10752      do
10753        IFS=$lt_save_ifs
10754        # Let DOS variable expansion print the short 8.3 style file name.
10755        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10756        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10757      done
10758      IFS=$lt_save_ifs
10759      # Convert to MSYS style.
10760      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10761      ;;
10762    cygwin*)
10763      # Convert to unix form, then to dos form, then back to unix form
10764      # but this time dos style (no spaces!) so that the unix form looks
10765      # like /cygdrive/c/PROGRA~1:/cygdr...
10766      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10767      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10768      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10769      ;;
10770    *)
10771      sys_lib_search_path_spec=$LIB
10772      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10773        # It is most probably a Windows format PATH.
10774        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10775      else
10776        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10777      fi
10778      # FIXME: find the short name or the path components, as spaces are
10779      # common. (e.g. "Program Files" -> "PROGRA~1")
10780      ;;
10781    esac
10782
10783    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10784    postinstall_cmds='base_file=`basename \$file`~
10785      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10786      dldir=$destdir/`dirname \$dlpath`~
10787      test -d \$dldir || mkdir -p \$dldir~
10788      $install_prog $dir/$dlname \$dldir/$dlname'
10789    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10790      dlpath=$dir/\$dldll~
10791       $RM \$dlpath'
10792    shlibpath_overrides_runpath=yes
10793    dynamic_linker='Win32 link.exe'
10794    ;;
10795
10796  *)
10797    # Assume MSVC and ICC wrapper
10798    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10799    dynamic_linker='Win32 ld.exe'
10800    ;;
10801  esac
10802  # FIXME: first we should search . and the directory the executable is in
10803  shlibpath_var=PATH
10804  ;;
10805
10806darwin* | rhapsody*)
10807  dynamic_linker="$host_os dyld"
10808  version_type=darwin
10809  need_lib_prefix=no
10810  need_version=no
10811  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10812  soname_spec='$libname$release$major$shared_ext'
10813  shlibpath_overrides_runpath=yes
10814  shlibpath_var=DYLD_LIBRARY_PATH
10815  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10816
10817  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10818  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10819  ;;
10820
10821dgux*)
10822  version_type=linux # correct to gnu/linux during the next big refactor
10823  need_lib_prefix=no
10824  need_version=no
10825  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10826  soname_spec='$libname$release$shared_ext$major'
10827  shlibpath_var=LD_LIBRARY_PATH
10828  ;;
10829
10830freebsd* | dragonfly*)
10831  # DragonFly does not have aout.  When/if they implement a new
10832  # versioning mechanism, adjust this.
10833  if test -x /usr/bin/objformat; then
10834    objformat=`/usr/bin/objformat`
10835  else
10836    case $host_os in
10837    freebsd[23].*) objformat=aout ;;
10838    *) objformat=elf ;;
10839    esac
10840  fi
10841  version_type=freebsd-$objformat
10842  case $version_type in
10843    freebsd-elf*)
10844      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10845      soname_spec='$libname$release$shared_ext$major'
10846      need_version=no
10847      need_lib_prefix=no
10848      ;;
10849    freebsd-*)
10850      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10851      need_version=yes
10852      ;;
10853  esac
10854  shlibpath_var=LD_LIBRARY_PATH
10855  case $host_os in
10856  freebsd2.*)
10857    shlibpath_overrides_runpath=yes
10858    ;;
10859  freebsd3.[01]* | freebsdelf3.[01]*)
10860    shlibpath_overrides_runpath=yes
10861    hardcode_into_libs=yes
10862    ;;
10863  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10864  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10865    shlibpath_overrides_runpath=no
10866    hardcode_into_libs=yes
10867    ;;
10868  *) # from 4.6 on, and DragonFly
10869    shlibpath_overrides_runpath=yes
10870    hardcode_into_libs=yes
10871    ;;
10872  esac
10873  ;;
10874
10875haiku*)
10876  version_type=linux # correct to gnu/linux during the next big refactor
10877  need_lib_prefix=no
10878  need_version=no
10879  dynamic_linker="$host_os runtime_loader"
10880  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10881  soname_spec='$libname$release$shared_ext$major'
10882  shlibpath_var=LIBRARY_PATH
10883  shlibpath_overrides_runpath=no
10884  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10885  hardcode_into_libs=yes
10886  ;;
10887
10888hpux9* | hpux10* | hpux11*)
10889  # Give a soname corresponding to the major version so that dld.sl refuses to
10890  # link against other versions.
10891  version_type=sunos
10892  need_lib_prefix=no
10893  need_version=no
10894  case $host_cpu in
10895  ia64*)
10896    shrext_cmds='.so'
10897    hardcode_into_libs=yes
10898    dynamic_linker="$host_os dld.so"
10899    shlibpath_var=LD_LIBRARY_PATH
10900    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10901    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10902    soname_spec='$libname$release$shared_ext$major'
10903    if test 32 = "$HPUX_IA64_MODE"; then
10904      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10905      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10906    else
10907      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10908      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10909    fi
10910    ;;
10911  hppa*64*)
10912    shrext_cmds='.sl'
10913    hardcode_into_libs=yes
10914    dynamic_linker="$host_os dld.sl"
10915    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10916    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10917    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10918    soname_spec='$libname$release$shared_ext$major'
10919    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10920    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10921    ;;
10922  *)
10923    shrext_cmds='.sl'
10924    dynamic_linker="$host_os dld.sl"
10925    shlibpath_var=SHLIB_PATH
10926    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10927    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10928    soname_spec='$libname$release$shared_ext$major'
10929    ;;
10930  esac
10931  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10932  postinstall_cmds='chmod 555 $lib'
10933  # or fails outright, so override atomically:
10934  install_override_mode=555
10935  ;;
10936
10937interix[3-9]*)
10938  version_type=linux # correct to gnu/linux during the next big refactor
10939  need_lib_prefix=no
10940  need_version=no
10941  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10942  soname_spec='$libname$release$shared_ext$major'
10943  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10944  shlibpath_var=LD_LIBRARY_PATH
10945  shlibpath_overrides_runpath=no
10946  hardcode_into_libs=yes
10947  ;;
10948
10949irix5* | irix6* | nonstopux*)
10950  case $host_os in
10951    nonstopux*) version_type=nonstopux ;;
10952    *)
10953	if test yes = "$lt_cv_prog_gnu_ld"; then
10954		version_type=linux # correct to gnu/linux during the next big refactor
10955	else
10956		version_type=irix
10957	fi ;;
10958  esac
10959  need_lib_prefix=no
10960  need_version=no
10961  soname_spec='$libname$release$shared_ext$major'
10962  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10963  case $host_os in
10964  irix5* | nonstopux*)
10965    libsuff= shlibsuff=
10966    ;;
10967  *)
10968    case $LD in # libtool.m4 will add one of these switches to LD
10969    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10970      libsuff= shlibsuff= libmagic=32-bit;;
10971    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10972      libsuff=32 shlibsuff=N32 libmagic=N32;;
10973    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10974      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10975    *) libsuff= shlibsuff= libmagic=never-match;;
10976    esac
10977    ;;
10978  esac
10979  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10980  shlibpath_overrides_runpath=no
10981  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10982  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10983  hardcode_into_libs=yes
10984  ;;
10985
10986# No shared lib support for Linux oldld, aout, or coff.
10987linux*oldld* | linux*aout* | linux*coff*)
10988  dynamic_linker=no
10989  ;;
10990
10991linux*android*)
10992  version_type=none # Android doesn't support versioned libraries.
10993  need_lib_prefix=no
10994  need_version=no
10995  library_names_spec='$libname$release$shared_ext'
10996  soname_spec='$libname$release$shared_ext'
10997  finish_cmds=
10998  shlibpath_var=LD_LIBRARY_PATH
10999  shlibpath_overrides_runpath=yes
11000
11001  # This implies no fast_install, which is unacceptable.
11002  # Some rework will be needed to allow for fast_install
11003  # before this can be enabled.
11004  hardcode_into_libs=yes
11005
11006  dynamic_linker='Android linker'
11007  # Don't embed -rpath directories since the linker doesn't support them.
11008  hardcode_libdir_flag_spec='-L$libdir'
11009  ;;
11010
11011# This must be glibc/ELF.
11012linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11013  version_type=linux # correct to gnu/linux during the next big refactor
11014  need_lib_prefix=no
11015  need_version=no
11016  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11017  soname_spec='$libname$release$shared_ext$major'
11018  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11019  shlibpath_var=LD_LIBRARY_PATH
11020  shlibpath_overrides_runpath=no
11021
11022  # Some binutils ld are patched to set DT_RUNPATH
11023  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11024  $as_echo_n "(cached) " >&6
11025else
11026  lt_cv_shlibpath_overrides_runpath=no
11027    save_LDFLAGS=$LDFLAGS
11028    save_libdir=$libdir
11029    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11030	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11031    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11032/* end confdefs.h.  */
11033
11034int
11035main ()
11036{
11037
11038  ;
11039  return 0;
11040}
11041_ACEOF
11042if ac_fn_c_try_link "$LINENO"; then :
11043  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11044  lt_cv_shlibpath_overrides_runpath=yes
11045fi
11046fi
11047rm -f core conftest.err conftest.$ac_objext \
11048    conftest$ac_exeext conftest.$ac_ext
11049    LDFLAGS=$save_LDFLAGS
11050    libdir=$save_libdir
11051
11052fi
11053
11054  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11055
11056  # This implies no fast_install, which is unacceptable.
11057  # Some rework will be needed to allow for fast_install
11058  # before this can be enabled.
11059  hardcode_into_libs=yes
11060
11061  # Ideally, we could use ldconfig to report *all* directores which are
11062  # searched for libraries, however this is still not possible.  Aside from not
11063  # being certain /sbin/ldconfig is available, command
11064  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11065  # even though it is searched at run-time.  Try to do the best guess by
11066  # appending ld.so.conf contents (and includes) to the search path.
11067  if test -f /etc/ld.so.conf; then
11068    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' ' '`
11069    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11070  fi
11071
11072  # We used to test for /lib/ld.so.1 and disable shared libraries on
11073  # powerpc, because MkLinux only supported shared libraries with the
11074  # GNU dynamic linker.  Since this was broken with cross compilers,
11075  # most powerpc-linux boxes support dynamic linking these days and
11076  # people can always --disable-shared, the test was removed, and we
11077  # assume the GNU/Linux dynamic linker is in use.
11078  dynamic_linker='GNU/Linux ld.so'
11079  ;;
11080
11081netbsd*)
11082  version_type=sunos
11083  need_lib_prefix=no
11084  need_version=no
11085  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11086    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11087    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11088    dynamic_linker='NetBSD (a.out) ld.so'
11089  else
11090    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11091    soname_spec='$libname$release$shared_ext$major'
11092    dynamic_linker='NetBSD ld.elf_so'
11093  fi
11094  shlibpath_var=LD_LIBRARY_PATH
11095  shlibpath_overrides_runpath=yes
11096  hardcode_into_libs=yes
11097  ;;
11098
11099newsos6)
11100  version_type=linux # correct to gnu/linux during the next big refactor
11101  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11102  shlibpath_var=LD_LIBRARY_PATH
11103  shlibpath_overrides_runpath=yes
11104  ;;
11105
11106*nto* | *qnx*)
11107  version_type=qnx
11108  need_lib_prefix=no
11109  need_version=no
11110  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11111  soname_spec='$libname$release$shared_ext$major'
11112  shlibpath_var=LD_LIBRARY_PATH
11113  shlibpath_overrides_runpath=no
11114  hardcode_into_libs=yes
11115  dynamic_linker='ldqnx.so'
11116  ;;
11117
11118openbsd* | bitrig*)
11119  version_type=sunos
11120  sys_lib_dlsearch_path_spec=/usr/lib
11121  need_lib_prefix=no
11122  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11123    need_version=no
11124  else
11125    need_version=yes
11126  fi
11127  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11128  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11129  shlibpath_var=LD_LIBRARY_PATH
11130  shlibpath_overrides_runpath=yes
11131  ;;
11132
11133os2*)
11134  libname_spec='$name'
11135  version_type=windows
11136  shrext_cmds=.dll
11137  need_version=no
11138  need_lib_prefix=no
11139  # OS/2 can only load a DLL with a base name of 8 characters or less.
11140  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11141    v=$($ECHO $release$versuffix | tr -d .-);
11142    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11143    $ECHO $n$v`$shared_ext'
11144  library_names_spec='${libname}_dll.$libext'
11145  dynamic_linker='OS/2 ld.exe'
11146  shlibpath_var=BEGINLIBPATH
11147  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11148  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11149  postinstall_cmds='base_file=`basename \$file`~
11150    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11151    dldir=$destdir/`dirname \$dlpath`~
11152    test -d \$dldir || mkdir -p \$dldir~
11153    $install_prog $dir/$dlname \$dldir/$dlname~
11154    chmod a+x \$dldir/$dlname~
11155    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11156      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11157    fi'
11158  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11159    dlpath=$dir/\$dldll~
11160    $RM \$dlpath'
11161  ;;
11162
11163osf3* | osf4* | osf5*)
11164  version_type=osf
11165  need_lib_prefix=no
11166  need_version=no
11167  soname_spec='$libname$release$shared_ext$major'
11168  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11169  shlibpath_var=LD_LIBRARY_PATH
11170  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11171  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11172  ;;
11173
11174rdos*)
11175  dynamic_linker=no
11176  ;;
11177
11178solaris*)
11179  version_type=linux # correct to gnu/linux during the next big refactor
11180  need_lib_prefix=no
11181  need_version=no
11182  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11183  soname_spec='$libname$release$shared_ext$major'
11184  shlibpath_var=LD_LIBRARY_PATH
11185  shlibpath_overrides_runpath=yes
11186  hardcode_into_libs=yes
11187  # ldd complains unless libraries are executable
11188  postinstall_cmds='chmod +x $lib'
11189  ;;
11190
11191sunos4*)
11192  version_type=sunos
11193  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11194  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11195  shlibpath_var=LD_LIBRARY_PATH
11196  shlibpath_overrides_runpath=yes
11197  if test yes = "$with_gnu_ld"; then
11198    need_lib_prefix=no
11199  fi
11200  need_version=yes
11201  ;;
11202
11203sysv4 | sysv4.3*)
11204  version_type=linux # correct to gnu/linux during the next big refactor
11205  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11206  soname_spec='$libname$release$shared_ext$major'
11207  shlibpath_var=LD_LIBRARY_PATH
11208  case $host_vendor in
11209    sni)
11210      shlibpath_overrides_runpath=no
11211      need_lib_prefix=no
11212      runpath_var=LD_RUN_PATH
11213      ;;
11214    siemens)
11215      need_lib_prefix=no
11216      ;;
11217    motorola)
11218      need_lib_prefix=no
11219      need_version=no
11220      shlibpath_overrides_runpath=no
11221      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11222      ;;
11223  esac
11224  ;;
11225
11226sysv4*MP*)
11227  if test -d /usr/nec; then
11228    version_type=linux # correct to gnu/linux during the next big refactor
11229    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11230    soname_spec='$libname$shared_ext.$major'
11231    shlibpath_var=LD_LIBRARY_PATH
11232  fi
11233  ;;
11234
11235sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11236  version_type=sco
11237  need_lib_prefix=no
11238  need_version=no
11239  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11240  soname_spec='$libname$release$shared_ext$major'
11241  shlibpath_var=LD_LIBRARY_PATH
11242  shlibpath_overrides_runpath=yes
11243  hardcode_into_libs=yes
11244  if test yes = "$with_gnu_ld"; then
11245    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11246  else
11247    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11248    case $host_os in
11249      sco3.2v5*)
11250        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11251	;;
11252    esac
11253  fi
11254  sys_lib_dlsearch_path_spec='/usr/lib'
11255  ;;
11256
11257tpf*)
11258  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11259  version_type=linux # correct to gnu/linux during the next big refactor
11260  need_lib_prefix=no
11261  need_version=no
11262  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11263  shlibpath_var=LD_LIBRARY_PATH
11264  shlibpath_overrides_runpath=no
11265  hardcode_into_libs=yes
11266  ;;
11267
11268uts4*)
11269  version_type=linux # correct to gnu/linux during the next big refactor
11270  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11271  soname_spec='$libname$release$shared_ext$major'
11272  shlibpath_var=LD_LIBRARY_PATH
11273  ;;
11274
11275*)
11276  dynamic_linker=no
11277  ;;
11278esac
11279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11280$as_echo "$dynamic_linker" >&6; }
11281test no = "$dynamic_linker" && can_build_shared=no
11282
11283variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11284if test yes = "$GCC"; then
11285  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11286fi
11287
11288if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11289  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11290fi
11291
11292if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11293  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11294fi
11295
11296# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11297configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11298
11299# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11300func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11301
11302# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11303configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11402$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11403hardcode_action=
11404if test -n "$hardcode_libdir_flag_spec" ||
11405   test -n "$runpath_var" ||
11406   test yes = "$hardcode_automatic"; then
11407
11408  # We can hardcode non-existent directories.
11409  if test no != "$hardcode_direct" &&
11410     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11411     # have to relink, otherwise we might link with an installed library
11412     # when we should be linking with a yet-to-be-installed one
11413     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11414     test no != "$hardcode_minus_L"; then
11415    # Linking always hardcodes the temporary library directory.
11416    hardcode_action=relink
11417  else
11418    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11419    hardcode_action=immediate
11420  fi
11421else
11422  # We cannot hardcode anything, or else we can only hardcode existing
11423  # directories.
11424  hardcode_action=unsupported
11425fi
11426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11427$as_echo "$hardcode_action" >&6; }
11428
11429if test relink = "$hardcode_action" ||
11430   test yes = "$inherit_rpath"; then
11431  # Fast installation is not supported
11432  enable_fast_install=no
11433elif test yes = "$shlibpath_overrides_runpath" ||
11434     test no = "$enable_shared"; then
11435  # Fast installation is not necessary
11436  enable_fast_install=needless
11437fi
11438
11439
11440
11441
11442
11443
11444  if test yes != "$enable_dlopen"; then
11445  enable_dlopen=unknown
11446  enable_dlopen_self=unknown
11447  enable_dlopen_self_static=unknown
11448else
11449  lt_cv_dlopen=no
11450  lt_cv_dlopen_libs=
11451
11452  case $host_os in
11453  beos*)
11454    lt_cv_dlopen=load_add_on
11455    lt_cv_dlopen_libs=
11456    lt_cv_dlopen_self=yes
11457    ;;
11458
11459  mingw* | pw32* | cegcc*)
11460    lt_cv_dlopen=LoadLibrary
11461    lt_cv_dlopen_libs=
11462    ;;
11463
11464  cygwin*)
11465    lt_cv_dlopen=dlopen
11466    lt_cv_dlopen_libs=
11467    ;;
11468
11469  darwin*)
11470    # if libdl is installed we need to link against it
11471    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11472$as_echo_n "checking for dlopen in -ldl... " >&6; }
11473if ${ac_cv_lib_dl_dlopen+:} false; then :
11474  $as_echo_n "(cached) " >&6
11475else
11476  ac_check_lib_save_LIBS=$LIBS
11477LIBS="-ldl  $LIBS"
11478cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11479/* end confdefs.h.  */
11480
11481/* Override any GCC internal prototype to avoid an error.
11482   Use char because int might match the return type of a GCC
11483   builtin and then its argument prototype would still apply.  */
11484#ifdef __cplusplus
11485extern "C"
11486#endif
11487char dlopen ();
11488int
11489main ()
11490{
11491return dlopen ();
11492  ;
11493  return 0;
11494}
11495_ACEOF
11496if ac_fn_c_try_link "$LINENO"; then :
11497  ac_cv_lib_dl_dlopen=yes
11498else
11499  ac_cv_lib_dl_dlopen=no
11500fi
11501rm -f core conftest.err conftest.$ac_objext \
11502    conftest$ac_exeext conftest.$ac_ext
11503LIBS=$ac_check_lib_save_LIBS
11504fi
11505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11506$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11507if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11508  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11509else
11510
11511    lt_cv_dlopen=dyld
11512    lt_cv_dlopen_libs=
11513    lt_cv_dlopen_self=yes
11514
11515fi
11516
11517    ;;
11518
11519  tpf*)
11520    # Don't try to run any link tests for TPF.  We know it's impossible
11521    # because TPF is a cross-compiler, and we know how we open DSOs.
11522    lt_cv_dlopen=dlopen
11523    lt_cv_dlopen_libs=
11524    lt_cv_dlopen_self=no
11525    ;;
11526
11527  *)
11528    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11529if test "x$ac_cv_func_shl_load" = xyes; then :
11530  lt_cv_dlopen=shl_load
11531else
11532  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11533$as_echo_n "checking for shl_load in -ldld... " >&6; }
11534if ${ac_cv_lib_dld_shl_load+:} false; then :
11535  $as_echo_n "(cached) " >&6
11536else
11537  ac_check_lib_save_LIBS=$LIBS
11538LIBS="-ldld  $LIBS"
11539cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11540/* end confdefs.h.  */
11541
11542/* Override any GCC internal prototype to avoid an error.
11543   Use char because int might match the return type of a GCC
11544   builtin and then its argument prototype would still apply.  */
11545#ifdef __cplusplus
11546extern "C"
11547#endif
11548char shl_load ();
11549int
11550main ()
11551{
11552return shl_load ();
11553  ;
11554  return 0;
11555}
11556_ACEOF
11557if ac_fn_c_try_link "$LINENO"; then :
11558  ac_cv_lib_dld_shl_load=yes
11559else
11560  ac_cv_lib_dld_shl_load=no
11561fi
11562rm -f core conftest.err conftest.$ac_objext \
11563    conftest$ac_exeext conftest.$ac_ext
11564LIBS=$ac_check_lib_save_LIBS
11565fi
11566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11567$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11568if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11569  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11570else
11571  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11572if test "x$ac_cv_func_dlopen" = xyes; then :
11573  lt_cv_dlopen=dlopen
11574else
11575  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11576$as_echo_n "checking for dlopen in -ldl... " >&6; }
11577if ${ac_cv_lib_dl_dlopen+:} false; then :
11578  $as_echo_n "(cached) " >&6
11579else
11580  ac_check_lib_save_LIBS=$LIBS
11581LIBS="-ldl  $LIBS"
11582cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11583/* end confdefs.h.  */
11584
11585/* Override any GCC internal prototype to avoid an error.
11586   Use char because int might match the return type of a GCC
11587   builtin and then its argument prototype would still apply.  */
11588#ifdef __cplusplus
11589extern "C"
11590#endif
11591char dlopen ();
11592int
11593main ()
11594{
11595return dlopen ();
11596  ;
11597  return 0;
11598}
11599_ACEOF
11600if ac_fn_c_try_link "$LINENO"; then :
11601  ac_cv_lib_dl_dlopen=yes
11602else
11603  ac_cv_lib_dl_dlopen=no
11604fi
11605rm -f core conftest.err conftest.$ac_objext \
11606    conftest$ac_exeext conftest.$ac_ext
11607LIBS=$ac_check_lib_save_LIBS
11608fi
11609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11610$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11611if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11612  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11613else
11614  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11615$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11616if ${ac_cv_lib_svld_dlopen+:} false; then :
11617  $as_echo_n "(cached) " >&6
11618else
11619  ac_check_lib_save_LIBS=$LIBS
11620LIBS="-lsvld  $LIBS"
11621cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11622/* end confdefs.h.  */
11623
11624/* Override any GCC internal prototype to avoid an error.
11625   Use char because int might match the return type of a GCC
11626   builtin and then its argument prototype would still apply.  */
11627#ifdef __cplusplus
11628extern "C"
11629#endif
11630char dlopen ();
11631int
11632main ()
11633{
11634return dlopen ();
11635  ;
11636  return 0;
11637}
11638_ACEOF
11639if ac_fn_c_try_link "$LINENO"; then :
11640  ac_cv_lib_svld_dlopen=yes
11641else
11642  ac_cv_lib_svld_dlopen=no
11643fi
11644rm -f core conftest.err conftest.$ac_objext \
11645    conftest$ac_exeext conftest.$ac_ext
11646LIBS=$ac_check_lib_save_LIBS
11647fi
11648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11649$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11650if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11651  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11652else
11653  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11654$as_echo_n "checking for dld_link in -ldld... " >&6; }
11655if ${ac_cv_lib_dld_dld_link+:} false; then :
11656  $as_echo_n "(cached) " >&6
11657else
11658  ac_check_lib_save_LIBS=$LIBS
11659LIBS="-ldld  $LIBS"
11660cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11661/* end confdefs.h.  */
11662
11663/* Override any GCC internal prototype to avoid an error.
11664   Use char because int might match the return type of a GCC
11665   builtin and then its argument prototype would still apply.  */
11666#ifdef __cplusplus
11667extern "C"
11668#endif
11669char dld_link ();
11670int
11671main ()
11672{
11673return dld_link ();
11674  ;
11675  return 0;
11676}
11677_ACEOF
11678if ac_fn_c_try_link "$LINENO"; then :
11679  ac_cv_lib_dld_dld_link=yes
11680else
11681  ac_cv_lib_dld_dld_link=no
11682fi
11683rm -f core conftest.err conftest.$ac_objext \
11684    conftest$ac_exeext conftest.$ac_ext
11685LIBS=$ac_check_lib_save_LIBS
11686fi
11687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11688$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11689if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11690  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11691fi
11692
11693
11694fi
11695
11696
11697fi
11698
11699
11700fi
11701
11702
11703fi
11704
11705
11706fi
11707
11708    ;;
11709  esac
11710
11711  if test no = "$lt_cv_dlopen"; then
11712    enable_dlopen=no
11713  else
11714    enable_dlopen=yes
11715  fi
11716
11717  case $lt_cv_dlopen in
11718  dlopen)
11719    save_CPPFLAGS=$CPPFLAGS
11720    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11721
11722    save_LDFLAGS=$LDFLAGS
11723    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11724
11725    save_LIBS=$LIBS
11726    LIBS="$lt_cv_dlopen_libs $LIBS"
11727
11728    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11729$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11730if ${lt_cv_dlopen_self+:} false; then :
11731  $as_echo_n "(cached) " >&6
11732else
11733  	  if test yes = "$cross_compiling"; then :
11734  lt_cv_dlopen_self=cross
11735else
11736  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11737  lt_status=$lt_dlunknown
11738  cat > conftest.$ac_ext <<_LT_EOF
11739#line $LINENO "configure"
11740#include "confdefs.h"
11741
11742#if HAVE_DLFCN_H
11743#include <dlfcn.h>
11744#endif
11745
11746#include <stdio.h>
11747
11748#ifdef RTLD_GLOBAL
11749#  define LT_DLGLOBAL		RTLD_GLOBAL
11750#else
11751#  ifdef DL_GLOBAL
11752#    define LT_DLGLOBAL		DL_GLOBAL
11753#  else
11754#    define LT_DLGLOBAL		0
11755#  endif
11756#endif
11757
11758/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11759   find out it does not work in some platform. */
11760#ifndef LT_DLLAZY_OR_NOW
11761#  ifdef RTLD_LAZY
11762#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11763#  else
11764#    ifdef DL_LAZY
11765#      define LT_DLLAZY_OR_NOW		DL_LAZY
11766#    else
11767#      ifdef RTLD_NOW
11768#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11769#      else
11770#        ifdef DL_NOW
11771#          define LT_DLLAZY_OR_NOW	DL_NOW
11772#        else
11773#          define LT_DLLAZY_OR_NOW	0
11774#        endif
11775#      endif
11776#    endif
11777#  endif
11778#endif
11779
11780/* When -fvisibility=hidden is used, assume the code has been annotated
11781   correspondingly for the symbols needed.  */
11782#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11783int fnord () __attribute__((visibility("default")));
11784#endif
11785
11786int fnord () { return 42; }
11787int main ()
11788{
11789  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11790  int status = $lt_dlunknown;
11791
11792  if (self)
11793    {
11794      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11795      else
11796        {
11797	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11798          else puts (dlerror ());
11799	}
11800      /* dlclose (self); */
11801    }
11802  else
11803    puts (dlerror ());
11804
11805  return status;
11806}
11807_LT_EOF
11808  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11809  (eval $ac_link) 2>&5
11810  ac_status=$?
11811  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11812  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11813    (./conftest; exit; ) >&5 2>/dev/null
11814    lt_status=$?
11815    case x$lt_status in
11816      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11817      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11818      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11819    esac
11820  else :
11821    # compilation failed
11822    lt_cv_dlopen_self=no
11823  fi
11824fi
11825rm -fr conftest*
11826
11827
11828fi
11829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11830$as_echo "$lt_cv_dlopen_self" >&6; }
11831
11832    if test yes = "$lt_cv_dlopen_self"; then
11833      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11834      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11835$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11836if ${lt_cv_dlopen_self_static+:} false; then :
11837  $as_echo_n "(cached) " >&6
11838else
11839  	  if test yes = "$cross_compiling"; then :
11840  lt_cv_dlopen_self_static=cross
11841else
11842  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11843  lt_status=$lt_dlunknown
11844  cat > conftest.$ac_ext <<_LT_EOF
11845#line $LINENO "configure"
11846#include "confdefs.h"
11847
11848#if HAVE_DLFCN_H
11849#include <dlfcn.h>
11850#endif
11851
11852#include <stdio.h>
11853
11854#ifdef RTLD_GLOBAL
11855#  define LT_DLGLOBAL		RTLD_GLOBAL
11856#else
11857#  ifdef DL_GLOBAL
11858#    define LT_DLGLOBAL		DL_GLOBAL
11859#  else
11860#    define LT_DLGLOBAL		0
11861#  endif
11862#endif
11863
11864/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11865   find out it does not work in some platform. */
11866#ifndef LT_DLLAZY_OR_NOW
11867#  ifdef RTLD_LAZY
11868#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11869#  else
11870#    ifdef DL_LAZY
11871#      define LT_DLLAZY_OR_NOW		DL_LAZY
11872#    else
11873#      ifdef RTLD_NOW
11874#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11875#      else
11876#        ifdef DL_NOW
11877#          define LT_DLLAZY_OR_NOW	DL_NOW
11878#        else
11879#          define LT_DLLAZY_OR_NOW	0
11880#        endif
11881#      endif
11882#    endif
11883#  endif
11884#endif
11885
11886/* When -fvisibility=hidden is used, assume the code has been annotated
11887   correspondingly for the symbols needed.  */
11888#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11889int fnord () __attribute__((visibility("default")));
11890#endif
11891
11892int fnord () { return 42; }
11893int main ()
11894{
11895  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11896  int status = $lt_dlunknown;
11897
11898  if (self)
11899    {
11900      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11901      else
11902        {
11903	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11904          else puts (dlerror ());
11905	}
11906      /* dlclose (self); */
11907    }
11908  else
11909    puts (dlerror ());
11910
11911  return status;
11912}
11913_LT_EOF
11914  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11915  (eval $ac_link) 2>&5
11916  ac_status=$?
11917  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11918  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11919    (./conftest; exit; ) >&5 2>/dev/null
11920    lt_status=$?
11921    case x$lt_status in
11922      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11923      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11924      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11925    esac
11926  else :
11927    # compilation failed
11928    lt_cv_dlopen_self_static=no
11929  fi
11930fi
11931rm -fr conftest*
11932
11933
11934fi
11935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11936$as_echo "$lt_cv_dlopen_self_static" >&6; }
11937    fi
11938
11939    CPPFLAGS=$save_CPPFLAGS
11940    LDFLAGS=$save_LDFLAGS
11941    LIBS=$save_LIBS
11942    ;;
11943  esac
11944
11945  case $lt_cv_dlopen_self in
11946  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11947  *) enable_dlopen_self=unknown ;;
11948  esac
11949
11950  case $lt_cv_dlopen_self_static in
11951  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11952  *) enable_dlopen_self_static=unknown ;;
11953  esac
11954fi
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972striplib=
11973old_striplib=
11974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11975$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11976if test -z "$STRIP"; then
11977  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11978$as_echo "no" >&6; }
11979else
11980  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11981    old_striplib="$STRIP --strip-debug"
11982    striplib="$STRIP --strip-unneeded"
11983    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11984$as_echo "yes" >&6; }
11985  else
11986    case $host_os in
11987    darwin*)
11988      # FIXME - insert some real tests, host_os isn't really good enough
11989      striplib="$STRIP -x"
11990      old_striplib="$STRIP -S"
11991      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11992$as_echo "yes" >&6; }
11993      ;;
11994    freebsd*)
11995      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
11996        old_striplib="$STRIP --strip-debug"
11997        striplib="$STRIP --strip-unneeded"
11998        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11999$as_echo "yes" >&6; }
12000      else
12001        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12002$as_echo "no" >&6; }
12003      fi
12004      ;;
12005    *)
12006      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12007$as_echo "no" >&6; }
12008      ;;
12009    esac
12010  fi
12011fi
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024  # Report what library types will actually be built
12025  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12026$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12027  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12028$as_echo "$can_build_shared" >&6; }
12029
12030  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12031$as_echo_n "checking whether to build shared libraries... " >&6; }
12032  test no = "$can_build_shared" && enable_shared=no
12033
12034  # On AIX, shared libraries and static libraries use the same namespace, and
12035  # are all built from PIC.
12036  case $host_os in
12037  aix3*)
12038    test yes = "$enable_shared" && enable_static=no
12039    if test -n "$RANLIB"; then
12040      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12041      postinstall_cmds='$RANLIB $lib'
12042    fi
12043    ;;
12044
12045  aix[4-9]*)
12046    if test ia64 != "$host_cpu"; then
12047      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12048      yes,aix,yes) ;;			# shared object as lib.so file only
12049      yes,svr4,*) ;;			# shared object as lib.so archive member only
12050      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12051      esac
12052    fi
12053    ;;
12054  esac
12055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12056$as_echo "$enable_shared" >&6; }
12057
12058  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12059$as_echo_n "checking whether to build static libraries... " >&6; }
12060  # Make sure either enable_shared or enable_static is yes.
12061  test yes = "$enable_shared" || enable_static=yes
12062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12063$as_echo "$enable_static" >&6; }
12064
12065
12066
12067
12068fi
12069ac_ext=c
12070ac_cpp='$CPP $CPPFLAGS'
12071ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12072ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12073ac_compiler_gnu=$ac_cv_c_compiler_gnu
12074
12075CC=$lt_save_CC
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091        ac_config_commands="$ac_config_commands libtool"
12092
12093
12094
12095
12096# Only expand once:
12097
12098
12099#
12100for ac_prog in gnuawk gawk awk
12101do
12102  # Extract the first word of "$ac_prog", so it can be a program name with args.
12103set dummy $ac_prog; ac_word=$2
12104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12105$as_echo_n "checking for $ac_word... " >&6; }
12106if ${ac_cv_prog_AWK+:} false; then :
12107  $as_echo_n "(cached) " >&6
12108else
12109  if test -n "$AWK"; then
12110  ac_cv_prog_AWK="$AWK" # Let the user override the test.
12111else
12112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12113for as_dir in $PATH
12114do
12115  IFS=$as_save_IFS
12116  test -z "$as_dir" && as_dir=.
12117    for ac_exec_ext in '' $ac_executable_extensions; do
12118  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12119    ac_cv_prog_AWK="$ac_prog"
12120    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12121    break 2
12122  fi
12123done
12124  done
12125IFS=$as_save_IFS
12126
12127fi
12128fi
12129AWK=$ac_cv_prog_AWK
12130if test -n "$AWK"; then
12131  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
12132$as_echo "$AWK" >&6; }
12133else
12134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12135$as_echo "no" >&6; }
12136fi
12137
12138
12139  test -n "$AWK" && break
12140done
12141
12142#
12143# Check for maintainer mode
12144#
12145
12146# Check whether --enable-maintainer-mode was given.
12147if test "${enable_maintainer_mode+set}" = set; then :
12148  enableval=$enable_maintainer_mode; ADAFLAGS="-g -O2 -Wall -Werror -gnatag -gnatwa -gnatwe -gnatg $ADAFLAGS"
12149else
12150  ADAFLAGS="-O2 -gnatpng $ADAFLAGS"
12151fi
12152
12153#
12154# Check for documentation build and installation
12155#
12156# Check whether --enable-doc was given.
12157if test "${enable_doc+set}" = set; then :
12158  enableval=$enable_doc; case "${enableval}" in
12159  yes) doc=true ;;
12160  no)  doc=false ;;
12161  *) as_fn_error $? "bad value ${enableval} for --enable-doc" "$LINENO" 5 ;;
12162esac
12163else
12164  doc=true
12165fi
12166
12167 if test x$doc = xtrue; then
12168  BUILD_DOC_TRUE=
12169  BUILD_DOC_FALSE='#'
12170else
12171  BUILD_DOC_TRUE='#'
12172  BUILD_DOC_FALSE=
12173fi
12174
12175#
12176# Check for examples build and installation
12177#
12178# Check whether --enable-examples was given.
12179if test "${enable_examples+set}" = set; then :
12180  enableval=$enable_examples; case "${enableval}" in
12181  yes) examples=true ;;
12182  no)  examples=false ;;
12183  *) as_fn_error $? "bad value ${enableval} for --enable-examples" "$LINENO" 5 ;;
12184esac
12185else
12186  examples=true
12187fi
12188
12189 if test x$examples = xtrue; then
12190  BUILD_EXAMPLES_TRUE=
12191  BUILD_EXAMPLES_FALSE='#'
12192else
12193  BUILD_EXAMPLES_TRUE='#'
12194  BUILD_EXAMPLES_FALSE=
12195fi
12196
12197#
12198# Check for documentation software
12199#
12200# Extract the first word of "getdefs", so it can be a program name with args.
12201set dummy getdefs; ac_word=$2
12202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12203$as_echo_n "checking for $ac_word... " >&6; }
12204if ${ac_cv_prog_GETDEFS+:} false; then :
12205  $as_echo_n "(cached) " >&6
12206else
12207  if test -n "$GETDEFS"; then
12208  ac_cv_prog_GETDEFS="$GETDEFS" # Let the user override the test.
12209else
12210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12211for as_dir in $PATH
12212do
12213  IFS=$as_save_IFS
12214  test -z "$as_dir" && as_dir=.
12215    for ac_exec_ext in '' $ac_executable_extensions; do
12216  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12217    ac_cv_prog_GETDEFS="getdefs"
12218    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12219    break 2
12220  fi
12221done
12222  done
12223IFS=$as_save_IFS
12224
12225fi
12226fi
12227GETDEFS=$ac_cv_prog_GETDEFS
12228if test -n "$GETDEFS"; then
12229  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETDEFS" >&5
12230$as_echo "$GETDEFS" >&6; }
12231else
12232  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12233$as_echo "no" >&6; }
12234fi
12235
12236
12237# Extract the first word of "makeinfo", so it can be a program name with args.
12238set dummy makeinfo; ac_word=$2
12239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12240$as_echo_n "checking for $ac_word... " >&6; }
12241if ${ac_cv_prog_MAKEINFO+:} false; then :
12242  $as_echo_n "(cached) " >&6
12243else
12244  if test -n "$MAKEINFO"; then
12245  ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
12246else
12247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12248for as_dir in $PATH
12249do
12250  IFS=$as_save_IFS
12251  test -z "$as_dir" && as_dir=.
12252    for ac_exec_ext in '' $ac_executable_extensions; do
12253  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12254    ac_cv_prog_MAKEINFO="makeinfo"
12255    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12256    break 2
12257  fi
12258done
12259  done
12260IFS=$as_save_IFS
12261
12262fi
12263fi
12264MAKEINFO=$ac_cv_prog_MAKEINFO
12265if test -n "$MAKEINFO"; then
12266  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
12267$as_echo "$MAKEINFO" >&6; }
12268else
12269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12270$as_echo "no" >&6; }
12271fi
12272
12273
12274# Extract the first word of "texi2dvi", so it can be a program name with args.
12275set dummy texi2dvi; ac_word=$2
12276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12277$as_echo_n "checking for $ac_word... " >&6; }
12278if ${ac_cv_prog_TEXI2DVI+:} false; then :
12279  $as_echo_n "(cached) " >&6
12280else
12281  if test -n "$TEXI2DVI"; then
12282  ac_cv_prog_TEXI2DVI="$TEXI2DVI" # Let the user override the test.
12283else
12284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12285for as_dir in $PATH
12286do
12287  IFS=$as_save_IFS
12288  test -z "$as_dir" && as_dir=.
12289    for ac_exec_ext in '' $ac_executable_extensions; do
12290  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12291    ac_cv_prog_TEXI2DVI="texi2dvi"
12292    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12293    break 2
12294  fi
12295done
12296  done
12297IFS=$as_save_IFS
12298
12299fi
12300fi
12301TEXI2DVI=$ac_cv_prog_TEXI2DVI
12302if test -n "$TEXI2DVI"; then
12303  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEXI2DVI" >&5
12304$as_echo "$TEXI2DVI" >&6; }
12305else
12306  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12307$as_echo "no" >&6; }
12308fi
12309
12310
12311#
12312# Look for the C compiler
12313#
12314ac_ext=c
12315ac_cpp='$CPP $CPPFLAGS'
12316ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12317ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12318ac_compiler_gnu=$ac_cv_c_compiler_gnu
12319if test -n "$ac_tool_prefix"; then
12320  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12321set dummy ${ac_tool_prefix}gcc; ac_word=$2
12322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12323$as_echo_n "checking for $ac_word... " >&6; }
12324if ${ac_cv_prog_CC+:} false; then :
12325  $as_echo_n "(cached) " >&6
12326else
12327  if test -n "$CC"; then
12328  ac_cv_prog_CC="$CC" # Let the user override the test.
12329else
12330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12331for as_dir in $PATH
12332do
12333  IFS=$as_save_IFS
12334  test -z "$as_dir" && as_dir=.
12335    for ac_exec_ext in '' $ac_executable_extensions; do
12336  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12337    ac_cv_prog_CC="${ac_tool_prefix}gcc"
12338    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12339    break 2
12340  fi
12341done
12342  done
12343IFS=$as_save_IFS
12344
12345fi
12346fi
12347CC=$ac_cv_prog_CC
12348if test -n "$CC"; then
12349  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12350$as_echo "$CC" >&6; }
12351else
12352  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12353$as_echo "no" >&6; }
12354fi
12355
12356
12357fi
12358if test -z "$ac_cv_prog_CC"; then
12359  ac_ct_CC=$CC
12360  # Extract the first word of "gcc", so it can be a program name with args.
12361set dummy gcc; ac_word=$2
12362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12363$as_echo_n "checking for $ac_word... " >&6; }
12364if ${ac_cv_prog_ac_ct_CC+:} false; then :
12365  $as_echo_n "(cached) " >&6
12366else
12367  if test -n "$ac_ct_CC"; then
12368  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12369else
12370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12371for as_dir in $PATH
12372do
12373  IFS=$as_save_IFS
12374  test -z "$as_dir" && as_dir=.
12375    for ac_exec_ext in '' $ac_executable_extensions; do
12376  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12377    ac_cv_prog_ac_ct_CC="gcc"
12378    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12379    break 2
12380  fi
12381done
12382  done
12383IFS=$as_save_IFS
12384
12385fi
12386fi
12387ac_ct_CC=$ac_cv_prog_ac_ct_CC
12388if test -n "$ac_ct_CC"; then
12389  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12390$as_echo "$ac_ct_CC" >&6; }
12391else
12392  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12393$as_echo "no" >&6; }
12394fi
12395
12396  if test "x$ac_ct_CC" = x; then
12397    CC=""
12398  else
12399    case $cross_compiling:$ac_tool_warned in
12400yes:)
12401{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12402$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12403ac_tool_warned=yes ;;
12404esac
12405    CC=$ac_ct_CC
12406  fi
12407else
12408  CC="$ac_cv_prog_CC"
12409fi
12410
12411if test -z "$CC"; then
12412          if test -n "$ac_tool_prefix"; then
12413    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12414set dummy ${ac_tool_prefix}cc; ac_word=$2
12415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12416$as_echo_n "checking for $ac_word... " >&6; }
12417if ${ac_cv_prog_CC+:} false; then :
12418  $as_echo_n "(cached) " >&6
12419else
12420  if test -n "$CC"; then
12421  ac_cv_prog_CC="$CC" # Let the user override the test.
12422else
12423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12424for as_dir in $PATH
12425do
12426  IFS=$as_save_IFS
12427  test -z "$as_dir" && as_dir=.
12428    for ac_exec_ext in '' $ac_executable_extensions; do
12429  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12430    ac_cv_prog_CC="${ac_tool_prefix}cc"
12431    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12432    break 2
12433  fi
12434done
12435  done
12436IFS=$as_save_IFS
12437
12438fi
12439fi
12440CC=$ac_cv_prog_CC
12441if test -n "$CC"; then
12442  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12443$as_echo "$CC" >&6; }
12444else
12445  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12446$as_echo "no" >&6; }
12447fi
12448
12449
12450  fi
12451fi
12452if test -z "$CC"; then
12453  # Extract the first word of "cc", so it can be a program name with args.
12454set dummy cc; ac_word=$2
12455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12456$as_echo_n "checking for $ac_word... " >&6; }
12457if ${ac_cv_prog_CC+:} false; then :
12458  $as_echo_n "(cached) " >&6
12459else
12460  if test -n "$CC"; then
12461  ac_cv_prog_CC="$CC" # Let the user override the test.
12462else
12463  ac_prog_rejected=no
12464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12465for as_dir in $PATH
12466do
12467  IFS=$as_save_IFS
12468  test -z "$as_dir" && as_dir=.
12469    for ac_exec_ext in '' $ac_executable_extensions; do
12470  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12471    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12472       ac_prog_rejected=yes
12473       continue
12474     fi
12475    ac_cv_prog_CC="cc"
12476    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12477    break 2
12478  fi
12479done
12480  done
12481IFS=$as_save_IFS
12482
12483if test $ac_prog_rejected = yes; then
12484  # We found a bogon in the path, so make sure we never use it.
12485  set dummy $ac_cv_prog_CC
12486  shift
12487  if test $# != 0; then
12488    # We chose a different compiler from the bogus one.
12489    # However, it has the same basename, so the bogon will be chosen
12490    # first if we set CC to just the basename; use the full file name.
12491    shift
12492    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12493  fi
12494fi
12495fi
12496fi
12497CC=$ac_cv_prog_CC
12498if test -n "$CC"; then
12499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12500$as_echo "$CC" >&6; }
12501else
12502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12503$as_echo "no" >&6; }
12504fi
12505
12506
12507fi
12508if test -z "$CC"; then
12509  if test -n "$ac_tool_prefix"; then
12510  for ac_prog in cl.exe
12511  do
12512    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12513set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12515$as_echo_n "checking for $ac_word... " >&6; }
12516if ${ac_cv_prog_CC+:} false; then :
12517  $as_echo_n "(cached) " >&6
12518else
12519  if test -n "$CC"; then
12520  ac_cv_prog_CC="$CC" # Let the user override the test.
12521else
12522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12523for as_dir in $PATH
12524do
12525  IFS=$as_save_IFS
12526  test -z "$as_dir" && as_dir=.
12527    for ac_exec_ext in '' $ac_executable_extensions; do
12528  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12529    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12530    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12531    break 2
12532  fi
12533done
12534  done
12535IFS=$as_save_IFS
12536
12537fi
12538fi
12539CC=$ac_cv_prog_CC
12540if test -n "$CC"; then
12541  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12542$as_echo "$CC" >&6; }
12543else
12544  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12545$as_echo "no" >&6; }
12546fi
12547
12548
12549    test -n "$CC" && break
12550  done
12551fi
12552if test -z "$CC"; then
12553  ac_ct_CC=$CC
12554  for ac_prog in cl.exe
12555do
12556  # Extract the first word of "$ac_prog", so it can be a program name with args.
12557set dummy $ac_prog; ac_word=$2
12558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12559$as_echo_n "checking for $ac_word... " >&6; }
12560if ${ac_cv_prog_ac_ct_CC+:} false; then :
12561  $as_echo_n "(cached) " >&6
12562else
12563  if test -n "$ac_ct_CC"; then
12564  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12565else
12566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12567for as_dir in $PATH
12568do
12569  IFS=$as_save_IFS
12570  test -z "$as_dir" && as_dir=.
12571    for ac_exec_ext in '' $ac_executable_extensions; do
12572  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12573    ac_cv_prog_ac_ct_CC="$ac_prog"
12574    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12575    break 2
12576  fi
12577done
12578  done
12579IFS=$as_save_IFS
12580
12581fi
12582fi
12583ac_ct_CC=$ac_cv_prog_ac_ct_CC
12584if test -n "$ac_ct_CC"; then
12585  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12586$as_echo "$ac_ct_CC" >&6; }
12587else
12588  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12589$as_echo "no" >&6; }
12590fi
12591
12592
12593  test -n "$ac_ct_CC" && break
12594done
12595
12596  if test "x$ac_ct_CC" = x; then
12597    CC=""
12598  else
12599    case $cross_compiling:$ac_tool_warned in
12600yes:)
12601{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12602$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12603ac_tool_warned=yes ;;
12604esac
12605    CC=$ac_ct_CC
12606  fi
12607fi
12608
12609fi
12610
12611
12612test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12613$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12614as_fn_error $? "no acceptable C compiler found in \$PATH
12615See \`config.log' for more details" "$LINENO" 5; }
12616
12617# Provide some information about the compiler.
12618$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12619set X $ac_compile
12620ac_compiler=$2
12621for ac_option in --version -v -V -qversion; do
12622  { { ac_try="$ac_compiler $ac_option >&5"
12623case "(($ac_try" in
12624  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12625  *) ac_try_echo=$ac_try;;
12626esac
12627eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12628$as_echo "$ac_try_echo"; } >&5
12629  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12630  ac_status=$?
12631  if test -s conftest.err; then
12632    sed '10a\
12633... rest of stderr output deleted ...
12634         10q' conftest.err >conftest.er1
12635    cat conftest.er1 >&5
12636  fi
12637  rm -f conftest.er1 conftest.err
12638  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12639  test $ac_status = 0; }
12640done
12641
12642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12643$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12644if ${ac_cv_c_compiler_gnu+:} false; then :
12645  $as_echo_n "(cached) " >&6
12646else
12647  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12648/* end confdefs.h.  */
12649
12650int
12651main ()
12652{
12653#ifndef __GNUC__
12654       choke me
12655#endif
12656
12657  ;
12658  return 0;
12659}
12660_ACEOF
12661if ac_fn_c_try_compile "$LINENO"; then :
12662  ac_compiler_gnu=yes
12663else
12664  ac_compiler_gnu=no
12665fi
12666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12667ac_cv_c_compiler_gnu=$ac_compiler_gnu
12668
12669fi
12670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12671$as_echo "$ac_cv_c_compiler_gnu" >&6; }
12672if test $ac_compiler_gnu = yes; then
12673  GCC=yes
12674else
12675  GCC=
12676fi
12677ac_test_CFLAGS=${CFLAGS+set}
12678ac_save_CFLAGS=$CFLAGS
12679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12680$as_echo_n "checking whether $CC accepts -g... " >&6; }
12681if ${ac_cv_prog_cc_g+:} false; then :
12682  $as_echo_n "(cached) " >&6
12683else
12684  ac_save_c_werror_flag=$ac_c_werror_flag
12685   ac_c_werror_flag=yes
12686   ac_cv_prog_cc_g=no
12687   CFLAGS="-g"
12688   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12689/* end confdefs.h.  */
12690
12691int
12692main ()
12693{
12694
12695  ;
12696  return 0;
12697}
12698_ACEOF
12699if ac_fn_c_try_compile "$LINENO"; then :
12700  ac_cv_prog_cc_g=yes
12701else
12702  CFLAGS=""
12703      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12704/* end confdefs.h.  */
12705
12706int
12707main ()
12708{
12709
12710  ;
12711  return 0;
12712}
12713_ACEOF
12714if ac_fn_c_try_compile "$LINENO"; then :
12715
12716else
12717  ac_c_werror_flag=$ac_save_c_werror_flag
12718	 CFLAGS="-g"
12719	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12720/* end confdefs.h.  */
12721
12722int
12723main ()
12724{
12725
12726  ;
12727  return 0;
12728}
12729_ACEOF
12730if ac_fn_c_try_compile "$LINENO"; then :
12731  ac_cv_prog_cc_g=yes
12732fi
12733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12734fi
12735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12736fi
12737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12738   ac_c_werror_flag=$ac_save_c_werror_flag
12739fi
12740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12741$as_echo "$ac_cv_prog_cc_g" >&6; }
12742if test "$ac_test_CFLAGS" = set; then
12743  CFLAGS=$ac_save_CFLAGS
12744elif test $ac_cv_prog_cc_g = yes; then
12745  if test "$GCC" = yes; then
12746    CFLAGS="-g -O2"
12747  else
12748    CFLAGS="-g"
12749  fi
12750else
12751  if test "$GCC" = yes; then
12752    CFLAGS="-O2"
12753  else
12754    CFLAGS=
12755  fi
12756fi
12757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12758$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12759if ${ac_cv_prog_cc_c89+:} false; then :
12760  $as_echo_n "(cached) " >&6
12761else
12762  ac_cv_prog_cc_c89=no
12763ac_save_CC=$CC
12764cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12765/* end confdefs.h.  */
12766#include <stdarg.h>
12767#include <stdio.h>
12768struct stat;
12769/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12770struct buf { int x; };
12771FILE * (*rcsopen) (struct buf *, struct stat *, int);
12772static char *e (p, i)
12773     char **p;
12774     int i;
12775{
12776  return p[i];
12777}
12778static char *f (char * (*g) (char **, int), char **p, ...)
12779{
12780  char *s;
12781  va_list v;
12782  va_start (v,p);
12783  s = g (p, va_arg (v,int));
12784  va_end (v);
12785  return s;
12786}
12787
12788/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12789   function prototypes and stuff, but not '\xHH' hex character constants.
12790   These don't provoke an error unfortunately, instead are silently treated
12791   as 'x'.  The following induces an error, until -std is added to get
12792   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12793   array size at least.  It's necessary to write '\x00'==0 to get something
12794   that's true only with -std.  */
12795int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12796
12797/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12798   inside strings and character constants.  */
12799#define FOO(x) 'x'
12800int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12801
12802int test (int i, double x);
12803struct s1 {int (*f) (int a);};
12804struct s2 {int (*f) (double a);};
12805int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12806int argc;
12807char **argv;
12808int
12809main ()
12810{
12811return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12812  ;
12813  return 0;
12814}
12815_ACEOF
12816for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12817	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12818do
12819  CC="$ac_save_CC $ac_arg"
12820  if ac_fn_c_try_compile "$LINENO"; then :
12821  ac_cv_prog_cc_c89=$ac_arg
12822fi
12823rm -f core conftest.err conftest.$ac_objext
12824  test "x$ac_cv_prog_cc_c89" != "xno" && break
12825done
12826rm -f conftest.$ac_ext
12827CC=$ac_save_CC
12828
12829fi
12830# AC_CACHE_VAL
12831case "x$ac_cv_prog_cc_c89" in
12832  x)
12833    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12834$as_echo "none needed" >&6; } ;;
12835  xno)
12836    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12837$as_echo "unsupported" >&6; } ;;
12838  *)
12839    CC="$CC $ac_cv_prog_cc_c89"
12840    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12841$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12842esac
12843if test "x$ac_cv_prog_cc_c89" != xno; then :
12844
12845fi
12846
12847ac_ext=c
12848ac_cpp='$CPP $CPPFLAGS'
12849ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12850ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12851ac_compiler_gnu=$ac_cv_c_compiler_gnu
12852
12853ac_ext=c
12854ac_cpp='$CPP $CPPFLAGS'
12855ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12856ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12857ac_compiler_gnu=$ac_cv_c_compiler_gnu
12858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
12859$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
12860if ${am_cv_prog_cc_c_o+:} false; then :
12861  $as_echo_n "(cached) " >&6
12862else
12863  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12864/* end confdefs.h.  */
12865
12866int
12867main ()
12868{
12869
12870  ;
12871  return 0;
12872}
12873_ACEOF
12874  # Make sure it works both with $CC and with simple cc.
12875  # Following AC_PROG_CC_C_O, we do the test twice because some
12876  # compilers refuse to overwrite an existing .o file with -o,
12877  # though they will create one.
12878  am_cv_prog_cc_c_o=yes
12879  for am_i in 1 2; do
12880    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
12881   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
12882   ac_status=$?
12883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12884   (exit $ac_status); } \
12885         && test -f conftest2.$ac_objext; then
12886      : OK
12887    else
12888      am_cv_prog_cc_c_o=no
12889      break
12890    fi
12891  done
12892  rm -f core conftest*
12893  unset am_i
12894fi
12895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
12896$as_echo "$am_cv_prog_cc_c_o" >&6; }
12897if test "$am_cv_prog_cc_c_o" != yes; then
12898   # Losing compiler, so override with the script.
12899   # FIXME: It is wrong to rewrite CC.
12900   # But if we don't then we get into trouble of one sort or another.
12901   # A longer-term fix would be to have automake use am__CC in this case,
12902   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12903   CC="$am_aux_dir/compile $CC"
12904fi
12905ac_ext=c
12906ac_cpp='$CPP $CPPFLAGS'
12907ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12908ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12909ac_compiler_gnu=$ac_cv_c_compiler_gnu
12910
12911
12912depcc="$CC"   am_compiler_list=
12913
12914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12915$as_echo_n "checking dependency style of $depcc... " >&6; }
12916if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12917  $as_echo_n "(cached) " >&6
12918else
12919  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12920  # We make a subdir and do the tests there.  Otherwise we can end up
12921  # making bogus files that we don't know about and never remove.  For
12922  # instance it was reported that on HP-UX the gcc test will end up
12923  # making a dummy file named 'D' -- because '-MD' means "put the output
12924  # in D".
12925  rm -rf conftest.dir
12926  mkdir conftest.dir
12927  # Copy depcomp to subdir because otherwise we won't find it if we're
12928  # using a relative directory.
12929  cp "$am_depcomp" conftest.dir
12930  cd conftest.dir
12931  # We will build objects and dependencies in a subdirectory because
12932  # it helps to detect inapplicable dependency modes.  For instance
12933  # both Tru64's cc and ICC support -MD to output dependencies as a
12934  # side effect of compilation, but ICC will put the dependencies in
12935  # the current directory while Tru64 will put them in the object
12936  # directory.
12937  mkdir sub
12938
12939  am_cv_CC_dependencies_compiler_type=none
12940  if test "$am_compiler_list" = ""; then
12941     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12942  fi
12943  am__universal=false
12944  case " $depcc " in #(
12945     *\ -arch\ *\ -arch\ *) am__universal=true ;;
12946     esac
12947
12948  for depmode in $am_compiler_list; do
12949    # Setup a source with many dependencies, because some compilers
12950    # like to wrap large dependency lists on column 80 (with \), and
12951    # we should not choose a depcomp mode which is confused by this.
12952    #
12953    # We need to recreate these files for each test, as the compiler may
12954    # overwrite some of them when testing with obscure command lines.
12955    # This happens at least with the AIX C compiler.
12956    : > sub/conftest.c
12957    for i in 1 2 3 4 5 6; do
12958      echo '#include "conftst'$i'.h"' >> sub/conftest.c
12959      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12960      # Solaris 10 /bin/sh.
12961      echo '/* dummy */' > sub/conftst$i.h
12962    done
12963    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12964
12965    # We check with '-c' and '-o' for the sake of the "dashmstdout"
12966    # mode.  It turns out that the SunPro C++ compiler does not properly
12967    # handle '-M -o', and we need to detect this.  Also, some Intel
12968    # versions had trouble with output in subdirs.
12969    am__obj=sub/conftest.${OBJEXT-o}
12970    am__minus_obj="-o $am__obj"
12971    case $depmode in
12972    gcc)
12973      # This depmode causes a compiler race in universal mode.
12974      test "$am__universal" = false || continue
12975      ;;
12976    nosideeffect)
12977      # After this tag, mechanisms are not by side-effect, so they'll
12978      # only be used when explicitly requested.
12979      if test "x$enable_dependency_tracking" = xyes; then
12980	continue
12981      else
12982	break
12983      fi
12984      ;;
12985    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12986      # This compiler won't grok '-c -o', but also, the minuso test has
12987      # not run yet.  These depmodes are late enough in the game, and
12988      # so weak that their functioning should not be impacted.
12989      am__obj=conftest.${OBJEXT-o}
12990      am__minus_obj=
12991      ;;
12992    none) break ;;
12993    esac
12994    if depmode=$depmode \
12995       source=sub/conftest.c object=$am__obj \
12996       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12997       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12998         >/dev/null 2>conftest.err &&
12999       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13000       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13001       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13002       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13003      # icc doesn't choke on unknown options, it will just issue warnings
13004      # or remarks (even with -Werror).  So we grep stderr for any message
13005      # that says an option was ignored or not supported.
13006      # When given -MP, icc 7.0 and 7.1 complain thusly:
13007      #   icc: Command line warning: ignoring option '-M'; no argument required
13008      # The diagnosis changed in icc 8.0:
13009      #   icc: Command line remark: option '-MP' not supported
13010      if (grep 'ignoring option' conftest.err ||
13011          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13012        am_cv_CC_dependencies_compiler_type=$depmode
13013        break
13014      fi
13015    fi
13016  done
13017
13018  cd ..
13019  rm -rf conftest.dir
13020else
13021  am_cv_CC_dependencies_compiler_type=none
13022fi
13023
13024fi
13025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13026$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13027CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13028
13029 if
13030  test "x$enable_dependency_tracking" != xno \
13031  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13032  am__fastdepCC_TRUE=
13033  am__fastdepCC_FALSE='#'
13034else
13035  am__fastdepCC_TRUE='#'
13036  am__fastdepCC_FALSE=
13037fi
13038
13039
13040#
13041# Look for the Ada compiler
13042#
13043# Extract the first word of "gnatmake", so it can be a program name with args.
13044set dummy gnatmake; ac_word=$2
13045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13046$as_echo_n "checking for $ac_word... " >&6; }
13047if ${ac_cv_prog_GNATMAKE+:} false; then :
13048  $as_echo_n "(cached) " >&6
13049else
13050  if test -n "$GNATMAKE"; then
13051  ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
13052else
13053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13054for as_dir in $PATH
13055do
13056  IFS=$as_save_IFS
13057  test -z "$as_dir" && as_dir=.
13058    for ac_exec_ext in '' $ac_executable_extensions; do
13059  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13060    ac_cv_prog_GNATMAKE="gnatmake"
13061    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13062    break 2
13063  fi
13064done
13065  done
13066IFS=$as_save_IFS
13067
13068fi
13069fi
13070GNATMAKE=$ac_cv_prog_GNATMAKE
13071if test -n "$GNATMAKE"; then
13072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
13073$as_echo "$GNATMAKE" >&6; }
13074else
13075  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13076$as_echo "no" >&6; }
13077fi
13078
13079
13080if test -z "$GNATMAKE"; then
13081  as_fn_error $? "unable to find gnatmake" "$LINENO" 5
13082fi
13083#
13084# Libtool checks
13085#
13086
13087#
13088# Test for -lnsl, -lsocket and -lresolv
13089#
13090ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
13091if test "x$ac_cv_func_gethostbyname" = xyes; then :
13092  NSLNEEDED="--  "
13093else
13094  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
13095$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
13096if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
13097  $as_echo_n "(cached) " >&6
13098else
13099  ac_check_lib_save_LIBS=$LIBS
13100LIBS="-lnsl  $LIBS"
13101cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13102/* end confdefs.h.  */
13103
13104/* Override any GCC internal prototype to avoid an error.
13105   Use char because int might match the return type of a GCC
13106   builtin and then its argument prototype would still apply.  */
13107#ifdef __cplusplus
13108extern "C"
13109#endif
13110char gethostbyname ();
13111int
13112main ()
13113{
13114return gethostbyname ();
13115  ;
13116  return 0;
13117}
13118_ACEOF
13119if ac_fn_c_try_link "$LINENO"; then :
13120  ac_cv_lib_nsl_gethostbyname=yes
13121else
13122  ac_cv_lib_nsl_gethostbyname=no
13123fi
13124rm -f core conftest.err conftest.$ac_objext \
13125    conftest$ac_exeext conftest.$ac_ext
13126LIBS=$ac_check_lib_save_LIBS
13127fi
13128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
13129$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
13130if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
13131  cat >>confdefs.h <<_ACEOF
13132#define HAVE_LIBNSL 1
13133_ACEOF
13134
13135  LIBS="-lnsl $LIBS"
13136
13137else
13138  NSLNEEDED="--  "
13139fi
13140
13141fi
13142
13143
13144ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
13145if test "x$ac_cv_func_connect" = xyes; then :
13146  SOCKETNEEDED="--  "
13147else
13148  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
13149$as_echo_n "checking for connect in -lsocket... " >&6; }
13150if ${ac_cv_lib_socket_connect+:} false; then :
13151  $as_echo_n "(cached) " >&6
13152else
13153  ac_check_lib_save_LIBS=$LIBS
13154LIBS="-lsocket  $LIBS"
13155cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13156/* end confdefs.h.  */
13157
13158/* Override any GCC internal prototype to avoid an error.
13159   Use char because int might match the return type of a GCC
13160   builtin and then its argument prototype would still apply.  */
13161#ifdef __cplusplus
13162extern "C"
13163#endif
13164char connect ();
13165int
13166main ()
13167{
13168return connect ();
13169  ;
13170  return 0;
13171}
13172_ACEOF
13173if ac_fn_c_try_link "$LINENO"; then :
13174  ac_cv_lib_socket_connect=yes
13175else
13176  ac_cv_lib_socket_connect=no
13177fi
13178rm -f core conftest.err conftest.$ac_objext \
13179    conftest$ac_exeext conftest.$ac_ext
13180LIBS=$ac_check_lib_save_LIBS
13181fi
13182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
13183$as_echo "$ac_cv_lib_socket_connect" >&6; }
13184if test "x$ac_cv_lib_socket_connect" = xyes; then :
13185  cat >>confdefs.h <<_ACEOF
13186#define HAVE_LIBSOCKET 1
13187_ACEOF
13188
13189  LIBS="-lsocket $LIBS"
13190
13191else
13192  SOCKETNEEDED="--  "
13193fi
13194
13195fi
13196
13197
13198ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
13199if test "x$ac_cv_func_inet_aton" = xyes; then :
13200  RESOLVNEEDED="--  "
13201else
13202  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
13203$as_echo_n "checking for inet_aton in -lresolv... " >&6; }
13204if ${ac_cv_lib_resolv_inet_aton+:} false; then :
13205  $as_echo_n "(cached) " >&6
13206else
13207  ac_check_lib_save_LIBS=$LIBS
13208LIBS="-lresolv  $LIBS"
13209cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13210/* end confdefs.h.  */
13211
13212/* Override any GCC internal prototype to avoid an error.
13213   Use char because int might match the return type of a GCC
13214   builtin and then its argument prototype would still apply.  */
13215#ifdef __cplusplus
13216extern "C"
13217#endif
13218char inet_aton ();
13219int
13220main ()
13221{
13222return inet_aton ();
13223  ;
13224  return 0;
13225}
13226_ACEOF
13227if ac_fn_c_try_link "$LINENO"; then :
13228  ac_cv_lib_resolv_inet_aton=yes
13229else
13230  ac_cv_lib_resolv_inet_aton=no
13231fi
13232rm -f core conftest.err conftest.$ac_objext \
13233    conftest$ac_exeext conftest.$ac_ext
13234LIBS=$ac_check_lib_save_LIBS
13235fi
13236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
13237$as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
13238if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
13239  cat >>confdefs.h <<_ACEOF
13240#define HAVE_LIBRESOLV 1
13241_ACEOF
13242
13243  LIBS="-lresolv $LIBS"
13244
13245else
13246  RESOLVNEEDED="--  "
13247fi
13248
13249fi
13250
13251
13252#
13253# Extra libraries
13254#
13255
13256# Check whether --with-extra-libs was given.
13257if test "${with_extra_libs+set}" = set; then :
13258  withval=$with_extra_libs; EXTRA_LIBS="${withval}"
13259fi
13260
13261
13262#
13263# Header files
13264#
13265for ac_header in stdio.h sys/types.h sys/socket.h errno.h netdb.h stdlib.h
13266do :
13267  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13268ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13269if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13270  cat >>confdefs.h <<_ACEOF
13271#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13272_ACEOF
13273
13274fi
13275
13276done
13277
13278for ac_header in netinet/in.h signal.h fcntl.h termio.h termios.h sys/file.h
13279do :
13280  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13281ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13282if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13283  cat >>confdefs.h <<_ACEOF
13284#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13285_ACEOF
13286
13287fi
13288
13289done
13290
13291for ac_header in sys/ioctl.h netinet/tcp.h sys/systeminfo.h poll.h stropts.h
13292do :
13293  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13294ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13295if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13296  cat >>confdefs.h <<_ACEOF
13297#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13298_ACEOF
13299
13300fi
13301
13302done
13303
13304for ac_header in sys/conf.h sys/param.h time.h windows.h string.h linux/sockios.h
13305do :
13306  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13307ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13308if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13309  cat >>confdefs.h <<_ACEOF
13310#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13311_ACEOF
13312
13313fi
13314
13315done
13316
13317for ac_header in windows.h
13318do :
13319  ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
13320if test "x$ac_cv_header_windows_h" = xyes; then :
13321  cat >>confdefs.h <<_ACEOF
13322#define HAVE_WINDOWS_H 1
13323_ACEOF
13324 usewin32=true useunix=false
13325else
13326  usewin32=false useunix=true
13327fi
13328
13329done
13330
13331#
13332# sa_len field ?
13333#
13334ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13335
13336
13337#include <sys/socket.h>
13338"
13339if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
13340  SA_LEN="" NO_SA_LEN="--  "
13341else
13342  SA_LEN="--  " NO_SA_LEN=""
13343fi
13344
13345#
13346# Conditional import for Win32 and substitution
13347#
13348 if $usewin32; then
13349  WIN32_TRUE=
13350  WIN32_FALSE='#'
13351else
13352  WIN32_TRUE='#'
13353  WIN32_FALSE=
13354fi
13355
13356if $useunix; then
13357  WINNEEDED="--  "
13358fi
13359
13360#
13361# Output
13362#
13363ac_config_files="$ac_config_files Makefile src/Makefile src/sockets-link.ads src/sockets-types.ads src/adasockets.pc man/Makefile examples/Makefile doc/Makefile tests/Makefile"
13364
13365cat >confcache <<\_ACEOF
13366# This file is a shell script that caches the results of configure
13367# tests run on this system so they can be shared between configure
13368# scripts and configure runs, see configure's option --config-cache.
13369# It is not useful on other systems.  If it contains results you don't
13370# want to keep, you may remove or edit it.
13371#
13372# config.status only pays attention to the cache file if you give it
13373# the --recheck option to rerun configure.
13374#
13375# `ac_cv_env_foo' variables (set or unset) will be overridden when
13376# loading this file, other *unset* `ac_cv_foo' will be assigned the
13377# following values.
13378
13379_ACEOF
13380
13381# The following way of writing the cache mishandles newlines in values,
13382# but we know of no workaround that is simple, portable, and efficient.
13383# So, we kill variables containing newlines.
13384# Ultrix sh set writes to stderr and can't be redirected directly,
13385# and sets the high bit in the cache file unless we assign to the vars.
13386(
13387  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13388    eval ac_val=\$$ac_var
13389    case $ac_val in #(
13390    *${as_nl}*)
13391      case $ac_var in #(
13392      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13393$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13394      esac
13395      case $ac_var in #(
13396      _ | IFS | as_nl) ;; #(
13397      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13398      *) { eval $ac_var=; unset $ac_var;} ;;
13399      esac ;;
13400    esac
13401  done
13402
13403  (set) 2>&1 |
13404    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13405    *${as_nl}ac_space=\ *)
13406      # `set' does not quote correctly, so add quotes: double-quote
13407      # substitution turns \\\\ into \\, and sed turns \\ into \.
13408      sed -n \
13409	"s/'/'\\\\''/g;
13410	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13411      ;; #(
13412    *)
13413      # `set' quotes correctly as required by POSIX, so do not add quotes.
13414      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13415      ;;
13416    esac |
13417    sort
13418) |
13419  sed '
13420     /^ac_cv_env_/b end
13421     t clear
13422     :clear
13423     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13424     t end
13425     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13426     :end' >>confcache
13427if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13428  if test -w "$cache_file"; then
13429    if test "x$cache_file" != "x/dev/null"; then
13430      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13431$as_echo "$as_me: updating cache $cache_file" >&6;}
13432      if test ! -f "$cache_file" || test -h "$cache_file"; then
13433	cat confcache >"$cache_file"
13434      else
13435        case $cache_file in #(
13436        */* | ?:*)
13437	  mv -f confcache "$cache_file"$$ &&
13438	  mv -f "$cache_file"$$ "$cache_file" ;; #(
13439        *)
13440	  mv -f confcache "$cache_file" ;;
13441	esac
13442      fi
13443    fi
13444  else
13445    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13446$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13447  fi
13448fi
13449rm -f confcache
13450
13451test "x$prefix" = xNONE && prefix=$ac_default_prefix
13452# Let make expand exec_prefix.
13453test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13454
13455DEFS=-DHAVE_CONFIG_H
13456
13457ac_libobjs=
13458ac_ltlibobjs=
13459for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13460  # 1. Remove the extension, and $U if already installed.
13461  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13462  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13463  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13464  #    will be set to the directory where LIBOBJS objects are built.
13465  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13466  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13467done
13468LIBOBJS=$ac_libobjs
13469
13470LTLIBOBJS=$ac_ltlibobjs
13471
13472
13473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13474$as_echo_n "checking that generated files are newer than configure... " >&6; }
13475   if test -n "$am_sleep_pid"; then
13476     # Hide warnings about reused PIDs.
13477     wait $am_sleep_pid 2>/dev/null
13478   fi
13479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13480$as_echo "done" >&6; }
13481 if test -n "$EXEEXT"; then
13482  am__EXEEXT_TRUE=
13483  am__EXEEXT_FALSE='#'
13484else
13485  am__EXEEXT_TRUE='#'
13486  am__EXEEXT_FALSE=
13487fi
13488
13489if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13490  as_fn_error $? "conditional \"AMDEP\" was never defined.
13491Usually this means the macro was only invoked conditionally." "$LINENO" 5
13492fi
13493if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13494  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13495Usually this means the macro was only invoked conditionally." "$LINENO" 5
13496fi
13497if test -z "${BUILD_DOC_TRUE}" && test -z "${BUILD_DOC_FALSE}"; then
13498  as_fn_error $? "conditional \"BUILD_DOC\" was never defined.
13499Usually this means the macro was only invoked conditionally." "$LINENO" 5
13500fi
13501if test -z "${BUILD_EXAMPLES_TRUE}" && test -z "${BUILD_EXAMPLES_FALSE}"; then
13502  as_fn_error $? "conditional \"BUILD_EXAMPLES\" was never defined.
13503Usually this means the macro was only invoked conditionally." "$LINENO" 5
13504fi
13505if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13506  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13507Usually this means the macro was only invoked conditionally." "$LINENO" 5
13508fi
13509if test -z "${WIN32_TRUE}" && test -z "${WIN32_FALSE}"; then
13510  as_fn_error $? "conditional \"WIN32\" was never defined.
13511Usually this means the macro was only invoked conditionally." "$LINENO" 5
13512fi
13513
13514: "${CONFIG_STATUS=./config.status}"
13515ac_write_fail=0
13516ac_clean_files_save=$ac_clean_files
13517ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13518{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13519$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13520as_write_fail=0
13521cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13522#! $SHELL
13523# Generated by $as_me.
13524# Run this file to recreate the current configuration.
13525# Compiler output produced by configure, useful for debugging
13526# configure, is in config.log if it exists.
13527
13528debug=false
13529ac_cs_recheck=false
13530ac_cs_silent=false
13531
13532SHELL=\${CONFIG_SHELL-$SHELL}
13533export SHELL
13534_ASEOF
13535cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13536## -------------------- ##
13537## M4sh Initialization. ##
13538## -------------------- ##
13539
13540# Be more Bourne compatible
13541DUALCASE=1; export DUALCASE # for MKS sh
13542if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13543  emulate sh
13544  NULLCMD=:
13545  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13546  # is contrary to our usage.  Disable this feature.
13547  alias -g '${1+"$@"}'='"$@"'
13548  setopt NO_GLOB_SUBST
13549else
13550  case `(set -o) 2>/dev/null` in #(
13551  *posix*) :
13552    set -o posix ;; #(
13553  *) :
13554     ;;
13555esac
13556fi
13557
13558
13559as_nl='
13560'
13561export as_nl
13562# Printing a long string crashes Solaris 7 /usr/bin/printf.
13563as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13564as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13565as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13566# Prefer a ksh shell builtin over an external printf program on Solaris,
13567# but without wasting forks for bash or zsh.
13568if test -z "$BASH_VERSION$ZSH_VERSION" \
13569    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13570  as_echo='print -r --'
13571  as_echo_n='print -rn --'
13572elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13573  as_echo='printf %s\n'
13574  as_echo_n='printf %s'
13575else
13576  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13577    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13578    as_echo_n='/usr/ucb/echo -n'
13579  else
13580    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13581    as_echo_n_body='eval
13582      arg=$1;
13583      case $arg in #(
13584      *"$as_nl"*)
13585	expr "X$arg" : "X\\(.*\\)$as_nl";
13586	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13587      esac;
13588      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13589    '
13590    export as_echo_n_body
13591    as_echo_n='sh -c $as_echo_n_body as_echo'
13592  fi
13593  export as_echo_body
13594  as_echo='sh -c $as_echo_body as_echo'
13595fi
13596
13597# The user is always right.
13598if test "${PATH_SEPARATOR+set}" != set; then
13599  PATH_SEPARATOR=:
13600  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13601    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13602      PATH_SEPARATOR=';'
13603  }
13604fi
13605
13606
13607# IFS
13608# We need space, tab and new line, in precisely that order.  Quoting is
13609# there to prevent editors from complaining about space-tab.
13610# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13611# splitting by setting IFS to empty value.)
13612IFS=" ""	$as_nl"
13613
13614# Find who we are.  Look in the path if we contain no directory separator.
13615as_myself=
13616case $0 in #((
13617  *[\\/]* ) as_myself=$0 ;;
13618  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13619for as_dir in $PATH
13620do
13621  IFS=$as_save_IFS
13622  test -z "$as_dir" && as_dir=.
13623    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13624  done
13625IFS=$as_save_IFS
13626
13627     ;;
13628esac
13629# We did not find ourselves, most probably we were run as `sh COMMAND'
13630# in which case we are not to be found in the path.
13631if test "x$as_myself" = x; then
13632  as_myself=$0
13633fi
13634if test ! -f "$as_myself"; then
13635  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13636  exit 1
13637fi
13638
13639# Unset variables that we do not need and which cause bugs (e.g. in
13640# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13641# suppresses any "Segmentation fault" message there.  '((' could
13642# trigger a bug in pdksh 5.2.14.
13643for as_var in BASH_ENV ENV MAIL MAILPATH
13644do eval test x\${$as_var+set} = xset \
13645  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13646done
13647PS1='$ '
13648PS2='> '
13649PS4='+ '
13650
13651# NLS nuisances.
13652LC_ALL=C
13653export LC_ALL
13654LANGUAGE=C
13655export LANGUAGE
13656
13657# CDPATH.
13658(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13659
13660
13661# as_fn_error STATUS ERROR [LINENO LOG_FD]
13662# ----------------------------------------
13663# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13664# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13665# script with STATUS, using 1 if that was 0.
13666as_fn_error ()
13667{
13668  as_status=$1; test $as_status -eq 0 && as_status=1
13669  if test "$4"; then
13670    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13671    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13672  fi
13673  $as_echo "$as_me: error: $2" >&2
13674  as_fn_exit $as_status
13675} # as_fn_error
13676
13677
13678# as_fn_set_status STATUS
13679# -----------------------
13680# Set $? to STATUS, without forking.
13681as_fn_set_status ()
13682{
13683  return $1
13684} # as_fn_set_status
13685
13686# as_fn_exit STATUS
13687# -----------------
13688# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13689as_fn_exit ()
13690{
13691  set +e
13692  as_fn_set_status $1
13693  exit $1
13694} # as_fn_exit
13695
13696# as_fn_unset VAR
13697# ---------------
13698# Portably unset VAR.
13699as_fn_unset ()
13700{
13701  { eval $1=; unset $1;}
13702}
13703as_unset=as_fn_unset
13704# as_fn_append VAR VALUE
13705# ----------------------
13706# Append the text in VALUE to the end of the definition contained in VAR. Take
13707# advantage of any shell optimizations that allow amortized linear growth over
13708# repeated appends, instead of the typical quadratic growth present in naive
13709# implementations.
13710if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13711  eval 'as_fn_append ()
13712  {
13713    eval $1+=\$2
13714  }'
13715else
13716  as_fn_append ()
13717  {
13718    eval $1=\$$1\$2
13719  }
13720fi # as_fn_append
13721
13722# as_fn_arith ARG...
13723# ------------------
13724# Perform arithmetic evaluation on the ARGs, and store the result in the
13725# global $as_val. Take advantage of shells that can avoid forks. The arguments
13726# must be portable across $(()) and expr.
13727if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13728  eval 'as_fn_arith ()
13729  {
13730    as_val=$(( $* ))
13731  }'
13732else
13733  as_fn_arith ()
13734  {
13735    as_val=`expr "$@" || test $? -eq 1`
13736  }
13737fi # as_fn_arith
13738
13739
13740if expr a : '\(a\)' >/dev/null 2>&1 &&
13741   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13742  as_expr=expr
13743else
13744  as_expr=false
13745fi
13746
13747if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13748  as_basename=basename
13749else
13750  as_basename=false
13751fi
13752
13753if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13754  as_dirname=dirname
13755else
13756  as_dirname=false
13757fi
13758
13759as_me=`$as_basename -- "$0" ||
13760$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13761	 X"$0" : 'X\(//\)$' \| \
13762	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13763$as_echo X/"$0" |
13764    sed '/^.*\/\([^/][^/]*\)\/*$/{
13765	    s//\1/
13766	    q
13767	  }
13768	  /^X\/\(\/\/\)$/{
13769	    s//\1/
13770	    q
13771	  }
13772	  /^X\/\(\/\).*/{
13773	    s//\1/
13774	    q
13775	  }
13776	  s/.*/./; q'`
13777
13778# Avoid depending upon Character Ranges.
13779as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13780as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13781as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13782as_cr_digits='0123456789'
13783as_cr_alnum=$as_cr_Letters$as_cr_digits
13784
13785ECHO_C= ECHO_N= ECHO_T=
13786case `echo -n x` in #(((((
13787-n*)
13788  case `echo 'xy\c'` in
13789  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
13790  xy)  ECHO_C='\c';;
13791  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13792       ECHO_T='	';;
13793  esac;;
13794*)
13795  ECHO_N='-n';;
13796esac
13797
13798rm -f conf$$ conf$$.exe conf$$.file
13799if test -d conf$$.dir; then
13800  rm -f conf$$.dir/conf$$.file
13801else
13802  rm -f conf$$.dir
13803  mkdir conf$$.dir 2>/dev/null
13804fi
13805if (echo >conf$$.file) 2>/dev/null; then
13806  if ln -s conf$$.file conf$$ 2>/dev/null; then
13807    as_ln_s='ln -s'
13808    # ... but there are two gotchas:
13809    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13810    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13811    # In both cases, we have to default to `cp -pR'.
13812    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13813      as_ln_s='cp -pR'
13814  elif ln conf$$.file conf$$ 2>/dev/null; then
13815    as_ln_s=ln
13816  else
13817    as_ln_s='cp -pR'
13818  fi
13819else
13820  as_ln_s='cp -pR'
13821fi
13822rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13823rmdir conf$$.dir 2>/dev/null
13824
13825
13826# as_fn_mkdir_p
13827# -------------
13828# Create "$as_dir" as a directory, including parents if necessary.
13829as_fn_mkdir_p ()
13830{
13831
13832  case $as_dir in #(
13833  -*) as_dir=./$as_dir;;
13834  esac
13835  test -d "$as_dir" || eval $as_mkdir_p || {
13836    as_dirs=
13837    while :; do
13838      case $as_dir in #(
13839      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13840      *) as_qdir=$as_dir;;
13841      esac
13842      as_dirs="'$as_qdir' $as_dirs"
13843      as_dir=`$as_dirname -- "$as_dir" ||
13844$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13845	 X"$as_dir" : 'X\(//\)[^/]' \| \
13846	 X"$as_dir" : 'X\(//\)$' \| \
13847	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13848$as_echo X"$as_dir" |
13849    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13850	    s//\1/
13851	    q
13852	  }
13853	  /^X\(\/\/\)[^/].*/{
13854	    s//\1/
13855	    q
13856	  }
13857	  /^X\(\/\/\)$/{
13858	    s//\1/
13859	    q
13860	  }
13861	  /^X\(\/\).*/{
13862	    s//\1/
13863	    q
13864	  }
13865	  s/.*/./; q'`
13866      test -d "$as_dir" && break
13867    done
13868    test -z "$as_dirs" || eval "mkdir $as_dirs"
13869  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13870
13871
13872} # as_fn_mkdir_p
13873if mkdir -p . 2>/dev/null; then
13874  as_mkdir_p='mkdir -p "$as_dir"'
13875else
13876  test -d ./-p && rmdir ./-p
13877  as_mkdir_p=false
13878fi
13879
13880
13881# as_fn_executable_p FILE
13882# -----------------------
13883# Test if FILE is an executable regular file.
13884as_fn_executable_p ()
13885{
13886  test -f "$1" && test -x "$1"
13887} # as_fn_executable_p
13888as_test_x='test -x'
13889as_executable_p=as_fn_executable_p
13890
13891# Sed expression to map a string onto a valid CPP name.
13892as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13893
13894# Sed expression to map a string onto a valid variable name.
13895as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13896
13897
13898exec 6>&1
13899## ----------------------------------- ##
13900## Main body of $CONFIG_STATUS script. ##
13901## ----------------------------------- ##
13902_ASEOF
13903test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13904
13905cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13906# Save the log message, to keep $0 and so on meaningful, and to
13907# report actual input values of CONFIG_FILES etc. instead of their
13908# values after options handling.
13909ac_log="
13910This file was extended by adasockets $as_me 1.12, which was
13911generated by GNU Autoconf 2.69.  Invocation command line was
13912
13913  CONFIG_FILES    = $CONFIG_FILES
13914  CONFIG_HEADERS  = $CONFIG_HEADERS
13915  CONFIG_LINKS    = $CONFIG_LINKS
13916  CONFIG_COMMANDS = $CONFIG_COMMANDS
13917  $ $0 $@
13918
13919on `(hostname || uname -n) 2>/dev/null | sed 1q`
13920"
13921
13922_ACEOF
13923
13924case $ac_config_files in *"
13925"*) set x $ac_config_files; shift; ac_config_files=$*;;
13926esac
13927
13928case $ac_config_headers in *"
13929"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13930esac
13931
13932
13933cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13934# Files that config.status was made for.
13935config_files="$ac_config_files"
13936config_headers="$ac_config_headers"
13937config_commands="$ac_config_commands"
13938
13939_ACEOF
13940
13941cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13942ac_cs_usage="\
13943\`$as_me' instantiates files and other configuration actions
13944from templates according to the current configuration.  Unless the files
13945and actions are specified as TAGs, all are instantiated by default.
13946
13947Usage: $0 [OPTION]... [TAG]...
13948
13949  -h, --help       print this help, then exit
13950  -V, --version    print version number and configuration settings, then exit
13951      --config     print configuration, then exit
13952  -q, --quiet, --silent
13953                   do not print progress messages
13954  -d, --debug      don't remove temporary files
13955      --recheck    update $as_me by reconfiguring in the same conditions
13956      --file=FILE[:TEMPLATE]
13957                   instantiate the configuration file FILE
13958      --header=FILE[:TEMPLATE]
13959                   instantiate the configuration header FILE
13960
13961Configuration files:
13962$config_files
13963
13964Configuration headers:
13965$config_headers
13966
13967Configuration commands:
13968$config_commands
13969
13970Report bugs to the package provider."
13971
13972_ACEOF
13973cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13974ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13975ac_cs_version="\\
13976adasockets config.status 1.12
13977configured by $0, generated by GNU Autoconf 2.69,
13978  with options \\"\$ac_cs_config\\"
13979
13980Copyright (C) 2012 Free Software Foundation, Inc.
13981This config.status script is free software; the Free Software Foundation
13982gives unlimited permission to copy, distribute and modify it."
13983
13984ac_pwd='$ac_pwd'
13985srcdir='$srcdir'
13986INSTALL='$INSTALL'
13987MKDIR_P='$MKDIR_P'
13988AWK='$AWK'
13989test -n "\$AWK" || AWK=awk
13990_ACEOF
13991
13992cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13993# The default lists apply if the user does not specify any file.
13994ac_need_defaults=:
13995while test $# != 0
13996do
13997  case $1 in
13998  --*=?*)
13999    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14000    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14001    ac_shift=:
14002    ;;
14003  --*=)
14004    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14005    ac_optarg=
14006    ac_shift=:
14007    ;;
14008  *)
14009    ac_option=$1
14010    ac_optarg=$2
14011    ac_shift=shift
14012    ;;
14013  esac
14014
14015  case $ac_option in
14016  # Handling of the options.
14017  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14018    ac_cs_recheck=: ;;
14019  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14020    $as_echo "$ac_cs_version"; exit ;;
14021  --config | --confi | --conf | --con | --co | --c )
14022    $as_echo "$ac_cs_config"; exit ;;
14023  --debug | --debu | --deb | --de | --d | -d )
14024    debug=: ;;
14025  --file | --fil | --fi | --f )
14026    $ac_shift
14027    case $ac_optarg in
14028    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14029    '') as_fn_error $? "missing file argument" ;;
14030    esac
14031    as_fn_append CONFIG_FILES " '$ac_optarg'"
14032    ac_need_defaults=false;;
14033  --header | --heade | --head | --hea )
14034    $ac_shift
14035    case $ac_optarg in
14036    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14037    esac
14038    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14039    ac_need_defaults=false;;
14040  --he | --h)
14041    # Conflict between --help and --header
14042    as_fn_error $? "ambiguous option: \`$1'
14043Try \`$0 --help' for more information.";;
14044  --help | --hel | -h )
14045    $as_echo "$ac_cs_usage"; exit ;;
14046  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14047  | -silent | --silent | --silen | --sile | --sil | --si | --s)
14048    ac_cs_silent=: ;;
14049
14050  # This is an error.
14051  -*) as_fn_error $? "unrecognized option: \`$1'
14052Try \`$0 --help' for more information." ;;
14053
14054  *) as_fn_append ac_config_targets " $1"
14055     ac_need_defaults=false ;;
14056
14057  esac
14058  shift
14059done
14060
14061ac_configure_extra_args=
14062
14063if $ac_cs_silent; then
14064  exec 6>/dev/null
14065  ac_configure_extra_args="$ac_configure_extra_args --silent"
14066fi
14067
14068_ACEOF
14069cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14070if \$ac_cs_recheck; then
14071  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14072  shift
14073  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14074  CONFIG_SHELL='$SHELL'
14075  export CONFIG_SHELL
14076  exec "\$@"
14077fi
14078
14079_ACEOF
14080cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14081exec 5>>config.log
14082{
14083  echo
14084  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14085## Running $as_me. ##
14086_ASBOX
14087  $as_echo "$ac_log"
14088} >&5
14089
14090_ACEOF
14091cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14092#
14093# INIT-COMMANDS
14094#
14095AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
14096
14097
14098# The HP-UX ksh and POSIX shell print the target directory to stdout
14099# if CDPATH is set.
14100(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14101
14102sed_quote_subst='$sed_quote_subst'
14103double_quote_subst='$double_quote_subst'
14104delay_variable_subst='$delay_variable_subst'
14105macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14106macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14107enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14108enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14109pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14110enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14111shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14112SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14113ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14114PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14115host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14116host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14117host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14118build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14119build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14120build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14121SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14122Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14123GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14124EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14125FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14126LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14127NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14128LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14129max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14130ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14131exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14132lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14133lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14134lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14135lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14136lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14137reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14138reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14139OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14140deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14141file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14142file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14143want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14144DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14145sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14146AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14147lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
14148AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14149archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14150STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14151RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14152old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14153old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14154old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14155lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14156CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14157CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14158compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14159GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14160lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14161lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14162lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14163lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14164lt_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"`'
14165lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14166nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14167lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14168lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14169objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14170MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14171lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14172lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14173lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14174lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14175lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14176need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14177MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14178DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14179NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14180LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14181OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14182OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14183libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14184shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14185extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14186archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14187enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14188export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14189whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14190compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14191old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14192old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14193archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14194archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14195module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14196module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14197with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14198allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14199no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14200hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14201hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14202hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14203hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14204hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14205hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14206hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14207inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14208link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14209always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14210export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14211exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14212include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14213prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14214postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14215file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14216variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14217need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14218need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14219version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14220runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14221shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14222shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14223libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14224library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14225soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14226install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14227postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14228postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14229finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14230finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14231hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14232sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14233configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14234configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14235hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14236enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14237enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14238enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14239old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14240striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14241
14242LTCC='$LTCC'
14243LTCFLAGS='$LTCFLAGS'
14244compiler='$compiler_DEFAULT'
14245
14246# A function that is used when there is no print builtin or printf.
14247func_fallback_echo ()
14248{
14249  eval 'cat <<_LTECHO_EOF
14250\$1
14251_LTECHO_EOF'
14252}
14253
14254# Quote evaled strings.
14255for var in SHELL \
14256ECHO \
14257PATH_SEPARATOR \
14258SED \
14259GREP \
14260EGREP \
14261FGREP \
14262LD \
14263NM \
14264LN_S \
14265lt_SP2NL \
14266lt_NL2SP \
14267reload_flag \
14268OBJDUMP \
14269deplibs_check_method \
14270file_magic_cmd \
14271file_magic_glob \
14272want_nocaseglob \
14273DLLTOOL \
14274sharedlib_from_linklib_cmd \
14275AR \
14276archiver_list_spec \
14277STRIP \
14278RANLIB \
14279CC \
14280CFLAGS \
14281compiler \
14282lt_cv_sys_global_symbol_pipe \
14283lt_cv_sys_global_symbol_to_cdecl \
14284lt_cv_sys_global_symbol_to_import \
14285lt_cv_sys_global_symbol_to_c_name_address \
14286lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14287lt_cv_nm_interface \
14288nm_file_list_spec \
14289lt_cv_truncate_bin \
14290lt_prog_compiler_no_builtin_flag \
14291lt_prog_compiler_pic \
14292lt_prog_compiler_wl \
14293lt_prog_compiler_static \
14294lt_cv_prog_compiler_c_o \
14295need_locks \
14296MANIFEST_TOOL \
14297DSYMUTIL \
14298NMEDIT \
14299LIPO \
14300OTOOL \
14301OTOOL64 \
14302shrext_cmds \
14303export_dynamic_flag_spec \
14304whole_archive_flag_spec \
14305compiler_needs_object \
14306with_gnu_ld \
14307allow_undefined_flag \
14308no_undefined_flag \
14309hardcode_libdir_flag_spec \
14310hardcode_libdir_separator \
14311exclude_expsyms \
14312include_expsyms \
14313file_list_spec \
14314variables_saved_for_relink \
14315libname_spec \
14316library_names_spec \
14317soname_spec \
14318install_override_mode \
14319finish_eval \
14320old_striplib \
14321striplib; do
14322    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14323    *[\\\\\\\`\\"\\\$]*)
14324      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14325      ;;
14326    *)
14327      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14328      ;;
14329    esac
14330done
14331
14332# Double-quote double-evaled strings.
14333for var in reload_cmds \
14334old_postinstall_cmds \
14335old_postuninstall_cmds \
14336old_archive_cmds \
14337extract_expsyms_cmds \
14338old_archive_from_new_cmds \
14339old_archive_from_expsyms_cmds \
14340archive_cmds \
14341archive_expsym_cmds \
14342module_cmds \
14343module_expsym_cmds \
14344export_symbols_cmds \
14345prelink_cmds \
14346postlink_cmds \
14347postinstall_cmds \
14348postuninstall_cmds \
14349finish_cmds \
14350sys_lib_search_path_spec \
14351configure_time_dlsearch_path \
14352configure_time_lt_sys_library_path; do
14353    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14354    *[\\\\\\\`\\"\\\$]*)
14355      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14356      ;;
14357    *)
14358      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14359      ;;
14360    esac
14361done
14362
14363ac_aux_dir='$ac_aux_dir'
14364
14365# See if we are running on zsh, and set the options that allow our
14366# commands through without removal of \ escapes INIT.
14367if test -n "\${ZSH_VERSION+set}"; then
14368   setopt NO_GLOB_SUBST
14369fi
14370
14371
14372    PACKAGE='$PACKAGE'
14373    VERSION='$VERSION'
14374    RM='$RM'
14375    ofile='$ofile'
14376
14377
14378
14379
14380_ACEOF
14381
14382cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14383
14384# Handling of arguments.
14385for ac_config_target in $ac_config_targets
14386do
14387  case $ac_config_target in
14388    "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
14389    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14390    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14391    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14392    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14393    "src/sockets-link.ads") CONFIG_FILES="$CONFIG_FILES src/sockets-link.ads" ;;
14394    "src/sockets-types.ads") CONFIG_FILES="$CONFIG_FILES src/sockets-types.ads" ;;
14395    "src/adasockets.pc") CONFIG_FILES="$CONFIG_FILES src/adasockets.pc" ;;
14396    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
14397    "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
14398    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14399    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
14400
14401  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14402  esac
14403done
14404
14405
14406# If the user did not use the arguments to specify the items to instantiate,
14407# then the envvar interface is used.  Set only those that are not.
14408# We use the long form for the default assignment because of an extremely
14409# bizarre bug on SunOS 4.1.3.
14410if $ac_need_defaults; then
14411  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14412  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14413  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14414fi
14415
14416# Have a temporary directory for convenience.  Make it in the build tree
14417# simply because there is no reason against having it here, and in addition,
14418# creating and moving files from /tmp can sometimes cause problems.
14419# Hook for its removal unless debugging.
14420# Note that there is a small window in which the directory will not be cleaned:
14421# after its creation but before its name has been assigned to `$tmp'.
14422$debug ||
14423{
14424  tmp= ac_tmp=
14425  trap 'exit_status=$?
14426  : "${ac_tmp:=$tmp}"
14427  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14428' 0
14429  trap 'as_fn_exit 1' 1 2 13 15
14430}
14431# Create a (secure) tmp directory for tmp files.
14432
14433{
14434  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14435  test -d "$tmp"
14436}  ||
14437{
14438  tmp=./conf$$-$RANDOM
14439  (umask 077 && mkdir "$tmp")
14440} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14441ac_tmp=$tmp
14442
14443# Set up the scripts for CONFIG_FILES section.
14444# No need to generate them if there are no CONFIG_FILES.
14445# This happens for instance with `./config.status config.h'.
14446if test -n "$CONFIG_FILES"; then
14447
14448
14449ac_cr=`echo X | tr X '\015'`
14450# On cygwin, bash can eat \r inside `` if the user requested igncr.
14451# But we know of no other shell where ac_cr would be empty at this
14452# point, so we can use a bashism as a fallback.
14453if test "x$ac_cr" = x; then
14454  eval ac_cr=\$\'\\r\'
14455fi
14456ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14457if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14458  ac_cs_awk_cr='\\r'
14459else
14460  ac_cs_awk_cr=$ac_cr
14461fi
14462
14463echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14464_ACEOF
14465
14466
14467{
14468  echo "cat >conf$$subs.awk <<_ACEOF" &&
14469  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14470  echo "_ACEOF"
14471} >conf$$subs.sh ||
14472  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14473ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14474ac_delim='%!_!# '
14475for ac_last_try in false false false false false :; do
14476  . ./conf$$subs.sh ||
14477    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14478
14479  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14480  if test $ac_delim_n = $ac_delim_num; then
14481    break
14482  elif $ac_last_try; then
14483    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14484  else
14485    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14486  fi
14487done
14488rm -f conf$$subs.sh
14489
14490cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14491cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14492_ACEOF
14493sed -n '
14494h
14495s/^/S["/; s/!.*/"]=/
14496p
14497g
14498s/^[^!]*!//
14499:repl
14500t repl
14501s/'"$ac_delim"'$//
14502t delim
14503:nl
14504h
14505s/\(.\{148\}\)..*/\1/
14506t more1
14507s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14508p
14509n
14510b repl
14511:more1
14512s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14513p
14514g
14515s/.\{148\}//
14516t nl
14517:delim
14518h
14519s/\(.\{148\}\)..*/\1/
14520t more2
14521s/["\\]/\\&/g; s/^/"/; s/$/"/
14522p
14523b
14524:more2
14525s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14526p
14527g
14528s/.\{148\}//
14529t delim
14530' <conf$$subs.awk | sed '
14531/^[^""]/{
14532  N
14533  s/\n//
14534}
14535' >>$CONFIG_STATUS || ac_write_fail=1
14536rm -f conf$$subs.awk
14537cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14538_ACAWK
14539cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14540  for (key in S) S_is_set[key] = 1
14541  FS = ""
14542
14543}
14544{
14545  line = $ 0
14546  nfields = split(line, field, "@")
14547  substed = 0
14548  len = length(field[1])
14549  for (i = 2; i < nfields; i++) {
14550    key = field[i]
14551    keylen = length(key)
14552    if (S_is_set[key]) {
14553      value = S[key]
14554      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14555      len += length(value) + length(field[++i])
14556      substed = 1
14557    } else
14558      len += 1 + keylen
14559  }
14560
14561  print line
14562}
14563
14564_ACAWK
14565_ACEOF
14566cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14567if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14568  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14569else
14570  cat
14571fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14572  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14573_ACEOF
14574
14575# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14576# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14577# trailing colons and then remove the whole line if VPATH becomes empty
14578# (actually we leave an empty line to preserve line numbers).
14579if test "x$srcdir" = x.; then
14580  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
14581h
14582s///
14583s/^/:/
14584s/[	 ]*$/:/
14585s/:\$(srcdir):/:/g
14586s/:\${srcdir}:/:/g
14587s/:@srcdir@:/:/g
14588s/^:*//
14589s/:*$//
14590x
14591s/\(=[	 ]*\).*/\1/
14592G
14593s/\n//
14594s/^[^=]*=[	 ]*$//
14595}'
14596fi
14597
14598cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14599fi # test -n "$CONFIG_FILES"
14600
14601# Set up the scripts for CONFIG_HEADERS section.
14602# No need to generate them if there are no CONFIG_HEADERS.
14603# This happens for instance with `./config.status Makefile'.
14604if test -n "$CONFIG_HEADERS"; then
14605cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14606BEGIN {
14607_ACEOF
14608
14609# Transform confdefs.h into an awk script `defines.awk', embedded as
14610# here-document in config.status, that substitutes the proper values into
14611# config.h.in to produce config.h.
14612
14613# Create a delimiter string that does not exist in confdefs.h, to ease
14614# handling of long lines.
14615ac_delim='%!_!# '
14616for ac_last_try in false false :; do
14617  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14618  if test -z "$ac_tt"; then
14619    break
14620  elif $ac_last_try; then
14621    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14622  else
14623    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14624  fi
14625done
14626
14627# For the awk script, D is an array of macro values keyed by name,
14628# likewise P contains macro parameters if any.  Preserve backslash
14629# newline sequences.
14630
14631ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14632sed -n '
14633s/.\{148\}/&'"$ac_delim"'/g
14634t rset
14635:rset
14636s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
14637t def
14638d
14639:def
14640s/\\$//
14641t bsnl
14642s/["\\]/\\&/g
14643s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14644D["\1"]=" \3"/p
14645s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
14646d
14647:bsnl
14648s/["\\]/\\&/g
14649s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14650D["\1"]=" \3\\\\\\n"\\/p
14651t cont
14652s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14653t cont
14654d
14655:cont
14656n
14657s/.\{148\}/&'"$ac_delim"'/g
14658t clear
14659:clear
14660s/\\$//
14661t bsnlc
14662s/["\\]/\\&/g; s/^/"/; s/$/"/p
14663d
14664:bsnlc
14665s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14666b cont
14667' <confdefs.h | sed '
14668s/'"$ac_delim"'/"\\\
14669"/g' >>$CONFIG_STATUS || ac_write_fail=1
14670
14671cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14672  for (key in D) D_is_set[key] = 1
14673  FS = ""
14674}
14675/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14676  line = \$ 0
14677  split(line, arg, " ")
14678  if (arg[1] == "#") {
14679    defundef = arg[2]
14680    mac1 = arg[3]
14681  } else {
14682    defundef = substr(arg[1], 2)
14683    mac1 = arg[2]
14684  }
14685  split(mac1, mac2, "(") #)
14686  macro = mac2[1]
14687  prefix = substr(line, 1, index(line, defundef) - 1)
14688  if (D_is_set[macro]) {
14689    # Preserve the white space surrounding the "#".
14690    print prefix "define", macro P[macro] D[macro]
14691    next
14692  } else {
14693    # Replace #undef with comments.  This is necessary, for example,
14694    # in the case of _POSIX_SOURCE, which is predefined and required
14695    # on some systems where configure will not decide to define it.
14696    if (defundef == "undef") {
14697      print "/*", prefix defundef, macro, "*/"
14698      next
14699    }
14700  }
14701}
14702{ print }
14703_ACAWK
14704_ACEOF
14705cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14706  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14707fi # test -n "$CONFIG_HEADERS"
14708
14709
14710eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14711shift
14712for ac_tag
14713do
14714  case $ac_tag in
14715  :[FHLC]) ac_mode=$ac_tag; continue;;
14716  esac
14717  case $ac_mode$ac_tag in
14718  :[FHL]*:*);;
14719  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14720  :[FH]-) ac_tag=-:-;;
14721  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14722  esac
14723  ac_save_IFS=$IFS
14724  IFS=:
14725  set x $ac_tag
14726  IFS=$ac_save_IFS
14727  shift
14728  ac_file=$1
14729  shift
14730
14731  case $ac_mode in
14732  :L) ac_source=$1;;
14733  :[FH])
14734    ac_file_inputs=
14735    for ac_f
14736    do
14737      case $ac_f in
14738      -) ac_f="$ac_tmp/stdin";;
14739      *) # Look for the file first in the build tree, then in the source tree
14740	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
14741	 # because $ac_f cannot contain `:'.
14742	 test -f "$ac_f" ||
14743	   case $ac_f in
14744	   [\\/$]*) false;;
14745	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14746	   esac ||
14747	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14748      esac
14749      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14750      as_fn_append ac_file_inputs " '$ac_f'"
14751    done
14752
14753    # Let's still pretend it is `configure' which instantiates (i.e., don't
14754    # use $as_me), people would be surprised to read:
14755    #    /* config.h.  Generated by config.status.  */
14756    configure_input='Generated from '`
14757	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14758	`' by configure.'
14759    if test x"$ac_file" != x-; then
14760      configure_input="$ac_file.  $configure_input"
14761      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14762$as_echo "$as_me: creating $ac_file" >&6;}
14763    fi
14764    # Neutralize special characters interpreted by sed in replacement strings.
14765    case $configure_input in #(
14766    *\&* | *\|* | *\\* )
14767       ac_sed_conf_input=`$as_echo "$configure_input" |
14768       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14769    *) ac_sed_conf_input=$configure_input;;
14770    esac
14771
14772    case $ac_tag in
14773    *:-:* | *:-) cat >"$ac_tmp/stdin" \
14774      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14775    esac
14776    ;;
14777  esac
14778
14779  ac_dir=`$as_dirname -- "$ac_file" ||
14780$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14781	 X"$ac_file" : 'X\(//\)[^/]' \| \
14782	 X"$ac_file" : 'X\(//\)$' \| \
14783	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14784$as_echo X"$ac_file" |
14785    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14786	    s//\1/
14787	    q
14788	  }
14789	  /^X\(\/\/\)[^/].*/{
14790	    s//\1/
14791	    q
14792	  }
14793	  /^X\(\/\/\)$/{
14794	    s//\1/
14795	    q
14796	  }
14797	  /^X\(\/\).*/{
14798	    s//\1/
14799	    q
14800	  }
14801	  s/.*/./; q'`
14802  as_dir="$ac_dir"; as_fn_mkdir_p
14803  ac_builddir=.
14804
14805case "$ac_dir" in
14806.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14807*)
14808  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14809  # A ".." for each directory in $ac_dir_suffix.
14810  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14811  case $ac_top_builddir_sub in
14812  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14813  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14814  esac ;;
14815esac
14816ac_abs_top_builddir=$ac_pwd
14817ac_abs_builddir=$ac_pwd$ac_dir_suffix
14818# for backward compatibility:
14819ac_top_builddir=$ac_top_build_prefix
14820
14821case $srcdir in
14822  .)  # We are building in place.
14823    ac_srcdir=.
14824    ac_top_srcdir=$ac_top_builddir_sub
14825    ac_abs_top_srcdir=$ac_pwd ;;
14826  [\\/]* | ?:[\\/]* )  # Absolute name.
14827    ac_srcdir=$srcdir$ac_dir_suffix;
14828    ac_top_srcdir=$srcdir
14829    ac_abs_top_srcdir=$srcdir ;;
14830  *) # Relative name.
14831    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14832    ac_top_srcdir=$ac_top_build_prefix$srcdir
14833    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14834esac
14835ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14836
14837
14838  case $ac_mode in
14839  :F)
14840  #
14841  # CONFIG_FILE
14842  #
14843
14844  case $INSTALL in
14845  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14846  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14847  esac
14848  ac_MKDIR_P=$MKDIR_P
14849  case $MKDIR_P in
14850  [\\/$]* | ?:[\\/]* ) ;;
14851  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14852  esac
14853_ACEOF
14854
14855cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14856# If the template does not know about datarootdir, expand it.
14857# FIXME: This hack should be removed a few years after 2.60.
14858ac_datarootdir_hack=; ac_datarootdir_seen=
14859ac_sed_dataroot='
14860/datarootdir/ {
14861  p
14862  q
14863}
14864/@datadir@/p
14865/@docdir@/p
14866/@infodir@/p
14867/@localedir@/p
14868/@mandir@/p'
14869case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14870*datarootdir*) ac_datarootdir_seen=yes;;
14871*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14872  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14873$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14874_ACEOF
14875cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14876  ac_datarootdir_hack='
14877  s&@datadir@&$datadir&g
14878  s&@docdir@&$docdir&g
14879  s&@infodir@&$infodir&g
14880  s&@localedir@&$localedir&g
14881  s&@mandir@&$mandir&g
14882  s&\\\${datarootdir}&$datarootdir&g' ;;
14883esac
14884_ACEOF
14885
14886# Neutralize VPATH when `$srcdir' = `.'.
14887# Shell code in configure.ac might set extrasub.
14888# FIXME: do we really want to maintain this feature?
14889cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14890ac_sed_extra="$ac_vpsub
14891$extrasub
14892_ACEOF
14893cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14894:t
14895/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14896s|@configure_input@|$ac_sed_conf_input|;t t
14897s&@top_builddir@&$ac_top_builddir_sub&;t t
14898s&@top_build_prefix@&$ac_top_build_prefix&;t t
14899s&@srcdir@&$ac_srcdir&;t t
14900s&@abs_srcdir@&$ac_abs_srcdir&;t t
14901s&@top_srcdir@&$ac_top_srcdir&;t t
14902s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14903s&@builddir@&$ac_builddir&;t t
14904s&@abs_builddir@&$ac_abs_builddir&;t t
14905s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14906s&@INSTALL@&$ac_INSTALL&;t t
14907s&@MKDIR_P@&$ac_MKDIR_P&;t t
14908$ac_datarootdir_hack
14909"
14910eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14911  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14912
14913test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14914  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14915  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
14916      "$ac_tmp/out"`; test -z "$ac_out"; } &&
14917  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14918which seems to be undefined.  Please make sure it is defined" >&5
14919$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14920which seems to be undefined.  Please make sure it is defined" >&2;}
14921
14922  rm -f "$ac_tmp/stdin"
14923  case $ac_file in
14924  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14925  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14926  esac \
14927  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14928 ;;
14929  :H)
14930  #
14931  # CONFIG_HEADER
14932  #
14933  if test x"$ac_file" != x-; then
14934    {
14935      $as_echo "/* $configure_input  */" \
14936      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14937    } >"$ac_tmp/config.h" \
14938      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14939    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14940      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14941$as_echo "$as_me: $ac_file is unchanged" >&6;}
14942    else
14943      rm -f "$ac_file"
14944      mv "$ac_tmp/config.h" "$ac_file" \
14945	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
14946    fi
14947  else
14948    $as_echo "/* $configure_input  */" \
14949      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14950      || as_fn_error $? "could not create -" "$LINENO" 5
14951  fi
14952# Compute "$ac_file"'s index in $config_headers.
14953_am_arg="$ac_file"
14954_am_stamp_count=1
14955for _am_header in $config_headers :; do
14956  case $_am_header in
14957    $_am_arg | $_am_arg:* )
14958      break ;;
14959    * )
14960      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14961  esac
14962done
14963echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14964$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14965	 X"$_am_arg" : 'X\(//\)[^/]' \| \
14966	 X"$_am_arg" : 'X\(//\)$' \| \
14967	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14968$as_echo X"$_am_arg" |
14969    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14970	    s//\1/
14971	    q
14972	  }
14973	  /^X\(\/\/\)[^/].*/{
14974	    s//\1/
14975	    q
14976	  }
14977	  /^X\(\/\/\)$/{
14978	    s//\1/
14979	    q
14980	  }
14981	  /^X\(\/\).*/{
14982	    s//\1/
14983	    q
14984	  }
14985	  s/.*/./; q'`/stamp-h$_am_stamp_count
14986 ;;
14987
14988  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14989$as_echo "$as_me: executing $ac_file commands" >&6;}
14990 ;;
14991  esac
14992
14993
14994  case $ac_file$ac_mode in
14995    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14996  # Older Autoconf quotes --file arguments for eval, but not when files
14997  # are listed without --file.  Let's play safe and only enable the eval
14998  # if we detect the quoting.
14999  # TODO: see whether this extra hack can be removed once we start
15000  # requiring Autoconf 2.70 or later.
15001  case $CONFIG_FILES in #(
15002  *\'*) :
15003    eval set x "$CONFIG_FILES" ;; #(
15004  *) :
15005    set x $CONFIG_FILES ;; #(
15006  *) :
15007     ;;
15008esac
15009  shift
15010  # Used to flag and report bootstrapping failures.
15011  am_rc=0
15012  for am_mf
15013  do
15014    # Strip MF so we end up with the name of the file.
15015    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
15016    # Check whether this is an Automake generated Makefile which includes
15017    # dependency-tracking related rules and includes.
15018    # Grep'ing the whole file directly is not great: AIX grep has a line
15019    # limit of 2048, but all sed's we know have understand at least 4000.
15020    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
15021      || continue
15022    am_dirpart=`$as_dirname -- "$am_mf" ||
15023$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15024	 X"$am_mf" : 'X\(//\)[^/]' \| \
15025	 X"$am_mf" : 'X\(//\)$' \| \
15026	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15027$as_echo X"$am_mf" |
15028    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15029	    s//\1/
15030	    q
15031	  }
15032	  /^X\(\/\/\)[^/].*/{
15033	    s//\1/
15034	    q
15035	  }
15036	  /^X\(\/\/\)$/{
15037	    s//\1/
15038	    q
15039	  }
15040	  /^X\(\/\).*/{
15041	    s//\1/
15042	    q
15043	  }
15044	  s/.*/./; q'`
15045    am_filepart=`$as_basename -- "$am_mf" ||
15046$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
15047	 X"$am_mf" : 'X\(//\)$' \| \
15048	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15049$as_echo X/"$am_mf" |
15050    sed '/^.*\/\([^/][^/]*\)\/*$/{
15051	    s//\1/
15052	    q
15053	  }
15054	  /^X\/\(\/\/\)$/{
15055	    s//\1/
15056	    q
15057	  }
15058	  /^X\/\(\/\).*/{
15059	    s//\1/
15060	    q
15061	  }
15062	  s/.*/./; q'`
15063    { echo "$as_me:$LINENO: cd "$am_dirpart" \
15064      && sed -e '/# am--include-marker/d' "$am_filepart" \
15065        | $MAKE -f - am--depfiles" >&5
15066   (cd "$am_dirpart" \
15067      && sed -e '/# am--include-marker/d' "$am_filepart" \
15068        | $MAKE -f - am--depfiles) >&5 2>&5
15069   ac_status=$?
15070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15071   (exit $ac_status); } || am_rc=$?
15072  done
15073  if test $am_rc -ne 0; then
15074    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15075$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15076as_fn_error $? "Something went wrong bootstrapping makefile fragments
15077    for automatic dependency tracking.  If GNU make was not used, consider
15078    re-running the configure script with MAKE=\"gmake\" (or whatever is
15079    necessary).  You can also try re-running configure with the
15080    '--disable-dependency-tracking' option to at least be able to build
15081    the package (albeit without support for automatic dependency tracking).
15082See \`config.log' for more details" "$LINENO" 5; }
15083  fi
15084  { am_dirpart=; unset am_dirpart;}
15085  { am_filepart=; unset am_filepart;}
15086  { am_mf=; unset am_mf;}
15087  { am_rc=; unset am_rc;}
15088  rm -f conftest-deps.mk
15089}
15090 ;;
15091    "libtool":C)
15092
15093    # See if we are running on zsh, and set the options that allow our
15094    # commands through without removal of \ escapes.
15095    if test -n "${ZSH_VERSION+set}"; then
15096      setopt NO_GLOB_SUBST
15097    fi
15098
15099    cfgfile=${ofile}T
15100    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15101    $RM "$cfgfile"
15102
15103    cat <<_LT_EOF >> "$cfgfile"
15104#! $SHELL
15105# Generated automatically by $as_me ($PACKAGE) $VERSION
15106# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15107
15108# Provide generalized library-building support services.
15109# Written by Gordon Matzigkeit, 1996
15110
15111# Copyright (C) 2014 Free Software Foundation, Inc.
15112# This is free software; see the source for copying conditions.  There is NO
15113# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15114
15115# GNU Libtool is free software; you can redistribute it and/or modify
15116# it under the terms of the GNU General Public License as published by
15117# the Free Software Foundation; either version 2 of of the License, or
15118# (at your option) any later version.
15119#
15120# As a special exception to the GNU General Public License, if you
15121# distribute this file as part of a program or library that is built
15122# using GNU Libtool, you may include this file under the  same
15123# distribution terms that you use for the rest of that program.
15124#
15125# GNU Libtool is distributed in the hope that it will be useful, but
15126# WITHOUT ANY WARRANTY; without even the implied warranty of
15127# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15128# GNU General Public License for more details.
15129#
15130# You should have received a copy of the GNU General Public License
15131# along with this program.  If not, see <http://www.gnu.org/licenses/>.
15132
15133
15134# The names of the tagged configurations supported by this script.
15135available_tags=''
15136
15137# Configured defaults for sys_lib_dlsearch_path munging.
15138: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15139
15140# ### BEGIN LIBTOOL CONFIG
15141
15142# Which release of libtool.m4 was used?
15143macro_version=$macro_version
15144macro_revision=$macro_revision
15145
15146# Whether or not to build shared libraries.
15147build_libtool_libs=$enable_shared
15148
15149# Whether or not to build static libraries.
15150build_old_libs=$enable_static
15151
15152# What type of objects to build.
15153pic_mode=$pic_mode
15154
15155# Whether or not to optimize for fast installation.
15156fast_install=$enable_fast_install
15157
15158# Shared archive member basename,for filename based shared library versioning on AIX.
15159shared_archive_member_spec=$shared_archive_member_spec
15160
15161# Shell to use when invoking shell scripts.
15162SHELL=$lt_SHELL
15163
15164# An echo program that protects backslashes.
15165ECHO=$lt_ECHO
15166
15167# The PATH separator for the build system.
15168PATH_SEPARATOR=$lt_PATH_SEPARATOR
15169
15170# The host system.
15171host_alias=$host_alias
15172host=$host
15173host_os=$host_os
15174
15175# The build system.
15176build_alias=$build_alias
15177build=$build
15178build_os=$build_os
15179
15180# A sed program that does not truncate output.
15181SED=$lt_SED
15182
15183# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15184Xsed="\$SED -e 1s/^X//"
15185
15186# A grep program that handles long lines.
15187GREP=$lt_GREP
15188
15189# An ERE matcher.
15190EGREP=$lt_EGREP
15191
15192# A literal string matcher.
15193FGREP=$lt_FGREP
15194
15195# A BSD- or MS-compatible name lister.
15196NM=$lt_NM
15197
15198# Whether we need soft or hard links.
15199LN_S=$lt_LN_S
15200
15201# What is the maximum length of a command?
15202max_cmd_len=$max_cmd_len
15203
15204# Object file suffix (normally "o").
15205objext=$ac_objext
15206
15207# Executable file suffix (normally "").
15208exeext=$exeext
15209
15210# whether the shell understands "unset".
15211lt_unset=$lt_unset
15212
15213# turn spaces into newlines.
15214SP2NL=$lt_lt_SP2NL
15215
15216# turn newlines into spaces.
15217NL2SP=$lt_lt_NL2SP
15218
15219# convert \$build file names to \$host format.
15220to_host_file_cmd=$lt_cv_to_host_file_cmd
15221
15222# convert \$build files to toolchain format.
15223to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15224
15225# An object symbol dumper.
15226OBJDUMP=$lt_OBJDUMP
15227
15228# Method to check whether dependent libraries are shared objects.
15229deplibs_check_method=$lt_deplibs_check_method
15230
15231# Command to use when deplibs_check_method = "file_magic".
15232file_magic_cmd=$lt_file_magic_cmd
15233
15234# How to find potential files when deplibs_check_method = "file_magic".
15235file_magic_glob=$lt_file_magic_glob
15236
15237# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15238want_nocaseglob=$lt_want_nocaseglob
15239
15240# DLL creation program.
15241DLLTOOL=$lt_DLLTOOL
15242
15243# Command to associate shared and link libraries.
15244sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15245
15246# The archiver.
15247AR=$lt_AR
15248
15249# Flags to create an archive (by configure).
15250lt_ar_flags=$lt_ar_flags
15251
15252# Flags to create an archive.
15253AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
15254
15255# How to feed a file listing to the archiver.
15256archiver_list_spec=$lt_archiver_list_spec
15257
15258# A symbol stripping program.
15259STRIP=$lt_STRIP
15260
15261# Commands used to install an old-style archive.
15262RANLIB=$lt_RANLIB
15263old_postinstall_cmds=$lt_old_postinstall_cmds
15264old_postuninstall_cmds=$lt_old_postuninstall_cmds
15265
15266# Whether to use a lock for old archive extraction.
15267lock_old_archive_extraction=$lock_old_archive_extraction
15268
15269# A C compiler.
15270LTCC=$lt_CC
15271
15272# LTCC compiler flags.
15273LTCFLAGS=$lt_CFLAGS
15274
15275# Take the output of nm and produce a listing of raw symbols and C names.
15276global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15277
15278# Transform the output of nm in a proper C declaration.
15279global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15280
15281# Transform the output of nm into a list of symbols to manually relocate.
15282global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15283
15284# Transform the output of nm in a C name address pair.
15285global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15286
15287# Transform the output of nm in a C name address pair when lib prefix is needed.
15288global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15289
15290# The name lister interface.
15291nm_interface=$lt_lt_cv_nm_interface
15292
15293# Specify filename containing input files for \$NM.
15294nm_file_list_spec=$lt_nm_file_list_spec
15295
15296# The root where to search for dependent libraries,and where our libraries should be installed.
15297lt_sysroot=$lt_sysroot
15298
15299# Command to truncate a binary pipe.
15300lt_truncate_bin=$lt_lt_cv_truncate_bin
15301
15302# The name of the directory that contains temporary libtool files.
15303objdir=$objdir
15304
15305# Used to examine libraries when file_magic_cmd begins with "file".
15306MAGIC_CMD=$MAGIC_CMD
15307
15308# Must we lock files when doing compilation?
15309need_locks=$lt_need_locks
15310
15311# Manifest tool.
15312MANIFEST_TOOL=$lt_MANIFEST_TOOL
15313
15314# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15315DSYMUTIL=$lt_DSYMUTIL
15316
15317# Tool to change global to local symbols on Mac OS X.
15318NMEDIT=$lt_NMEDIT
15319
15320# Tool to manipulate fat objects and archives on Mac OS X.
15321LIPO=$lt_LIPO
15322
15323# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15324OTOOL=$lt_OTOOL
15325
15326# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15327OTOOL64=$lt_OTOOL64
15328
15329# Old archive suffix (normally "a").
15330libext=$libext
15331
15332# Shared library suffix (normally ".so").
15333shrext_cmds=$lt_shrext_cmds
15334
15335# The commands to extract the exported symbol list from a shared archive.
15336extract_expsyms_cmds=$lt_extract_expsyms_cmds
15337
15338# Variables whose values should be saved in libtool wrapper scripts and
15339# restored at link time.
15340variables_saved_for_relink=$lt_variables_saved_for_relink
15341
15342# Do we need the "lib" prefix for modules?
15343need_lib_prefix=$need_lib_prefix
15344
15345# Do we need a version for libraries?
15346need_version=$need_version
15347
15348# Library versioning type.
15349version_type=$version_type
15350
15351# Shared library runtime path variable.
15352runpath_var=$runpath_var
15353
15354# Shared library path variable.
15355shlibpath_var=$shlibpath_var
15356
15357# Is shlibpath searched before the hard-coded library search path?
15358shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15359
15360# Format of library name prefix.
15361libname_spec=$lt_libname_spec
15362
15363# List of archive names.  First name is the real one, the rest are links.
15364# The last name is the one that the linker finds with -lNAME
15365library_names_spec=$lt_library_names_spec
15366
15367# The coded name of the library, if different from the real name.
15368soname_spec=$lt_soname_spec
15369
15370# Permission mode override for installation of shared libraries.
15371install_override_mode=$lt_install_override_mode
15372
15373# Command to use after installation of a shared archive.
15374postinstall_cmds=$lt_postinstall_cmds
15375
15376# Command to use after uninstallation of a shared archive.
15377postuninstall_cmds=$lt_postuninstall_cmds
15378
15379# Commands used to finish a libtool library installation in a directory.
15380finish_cmds=$lt_finish_cmds
15381
15382# As "finish_cmds", except a single script fragment to be evaled but
15383# not shown.
15384finish_eval=$lt_finish_eval
15385
15386# Whether we should hardcode library paths into libraries.
15387hardcode_into_libs=$hardcode_into_libs
15388
15389# Compile-time system search path for libraries.
15390sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15391
15392# Detected run-time system search path for libraries.
15393sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15394
15395# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15396configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15397
15398# Whether dlopen is supported.
15399dlopen_support=$enable_dlopen
15400
15401# Whether dlopen of programs is supported.
15402dlopen_self=$enable_dlopen_self
15403
15404# Whether dlopen of statically linked programs is supported.
15405dlopen_self_static=$enable_dlopen_self_static
15406
15407# Commands to strip libraries.
15408old_striplib=$lt_old_striplib
15409striplib=$lt_striplib
15410
15411
15412# The linker used to build libraries.
15413LD=$lt_LD
15414
15415# How to create reloadable object files.
15416reload_flag=$lt_reload_flag
15417reload_cmds=$lt_reload_cmds
15418
15419# Commands used to build an old-style archive.
15420old_archive_cmds=$lt_old_archive_cmds
15421
15422# A language specific compiler.
15423CC=$lt_compiler
15424
15425# Is the compiler the GNU compiler?
15426with_gcc=$GCC
15427
15428# Compiler flag to turn off builtin functions.
15429no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15430
15431# Additional compiler flags for building library objects.
15432pic_flag=$lt_lt_prog_compiler_pic
15433
15434# How to pass a linker flag through the compiler.
15435wl=$lt_lt_prog_compiler_wl
15436
15437# Compiler flag to prevent dynamic linking.
15438link_static_flag=$lt_lt_prog_compiler_static
15439
15440# Does compiler simultaneously support -c and -o options?
15441compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15442
15443# Whether or not to add -lc for building shared libraries.
15444build_libtool_need_lc=$archive_cmds_need_lc
15445
15446# Whether or not to disallow shared libs when runtime libs are static.
15447allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15448
15449# Compiler flag to allow reflexive dlopens.
15450export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15451
15452# Compiler flag to generate shared objects directly from archives.
15453whole_archive_flag_spec=$lt_whole_archive_flag_spec
15454
15455# Whether the compiler copes with passing no objects directly.
15456compiler_needs_object=$lt_compiler_needs_object
15457
15458# Create an old-style archive from a shared archive.
15459old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15460
15461# Create a temporary old-style archive to link instead of a shared archive.
15462old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15463
15464# Commands used to build a shared archive.
15465archive_cmds=$lt_archive_cmds
15466archive_expsym_cmds=$lt_archive_expsym_cmds
15467
15468# Commands used to build a loadable module if different from building
15469# a shared archive.
15470module_cmds=$lt_module_cmds
15471module_expsym_cmds=$lt_module_expsym_cmds
15472
15473# Whether we are building with GNU ld or not.
15474with_gnu_ld=$lt_with_gnu_ld
15475
15476# Flag that allows shared libraries with undefined symbols to be built.
15477allow_undefined_flag=$lt_allow_undefined_flag
15478
15479# Flag that enforces no undefined symbols.
15480no_undefined_flag=$lt_no_undefined_flag
15481
15482# Flag to hardcode \$libdir into a binary during linking.
15483# This must work even if \$libdir does not exist
15484hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15485
15486# Whether we need a single "-rpath" flag with a separated argument.
15487hardcode_libdir_separator=$lt_hardcode_libdir_separator
15488
15489# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15490# DIR into the resulting binary.
15491hardcode_direct=$hardcode_direct
15492
15493# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15494# DIR into the resulting binary and the resulting library dependency is
15495# "absolute",i.e impossible to change by setting \$shlibpath_var if the
15496# library is relocated.
15497hardcode_direct_absolute=$hardcode_direct_absolute
15498
15499# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15500# into the resulting binary.
15501hardcode_minus_L=$hardcode_minus_L
15502
15503# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15504# into the resulting binary.
15505hardcode_shlibpath_var=$hardcode_shlibpath_var
15506
15507# Set to "yes" if building a shared library automatically hardcodes DIR
15508# into the library and all subsequent libraries and executables linked
15509# against it.
15510hardcode_automatic=$hardcode_automatic
15511
15512# Set to yes if linker adds runtime paths of dependent libraries
15513# to runtime path list.
15514inherit_rpath=$inherit_rpath
15515
15516# Whether libtool must link a program against all its dependency libraries.
15517link_all_deplibs=$link_all_deplibs
15518
15519# Set to "yes" if exported symbols are required.
15520always_export_symbols=$always_export_symbols
15521
15522# The commands to list exported symbols.
15523export_symbols_cmds=$lt_export_symbols_cmds
15524
15525# Symbols that should not be listed in the preloaded symbols.
15526exclude_expsyms=$lt_exclude_expsyms
15527
15528# Symbols that must always be exported.
15529include_expsyms=$lt_include_expsyms
15530
15531# Commands necessary for linking programs (against libraries) with templates.
15532prelink_cmds=$lt_prelink_cmds
15533
15534# Commands necessary for finishing linking programs.
15535postlink_cmds=$lt_postlink_cmds
15536
15537# Specify filename containing input files.
15538file_list_spec=$lt_file_list_spec
15539
15540# How to hardcode a shared library path into an executable.
15541hardcode_action=$hardcode_action
15542
15543# ### END LIBTOOL CONFIG
15544
15545_LT_EOF
15546
15547    cat <<'_LT_EOF' >> "$cfgfile"
15548
15549# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15550
15551# func_munge_path_list VARIABLE PATH
15552# -----------------------------------
15553# VARIABLE is name of variable containing _space_ separated list of
15554# directories to be munged by the contents of PATH, which is string
15555# having a format:
15556# "DIR[:DIR]:"
15557#       string "DIR[ DIR]" will be prepended to VARIABLE
15558# ":DIR[:DIR]"
15559#       string "DIR[ DIR]" will be appended to VARIABLE
15560# "DIRP[:DIRP]::[DIRA:]DIRA"
15561#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15562#       "DIRA[ DIRA]" will be appended to VARIABLE
15563# "DIR[:DIR]"
15564#       VARIABLE will be replaced by "DIR[ DIR]"
15565func_munge_path_list ()
15566{
15567    case x$2 in
15568    x)
15569        ;;
15570    *:)
15571        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15572        ;;
15573    x:*)
15574        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15575        ;;
15576    *::*)
15577        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15578        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15579        ;;
15580    *)
15581        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15582        ;;
15583    esac
15584}
15585
15586
15587# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
15588func_cc_basename ()
15589{
15590    for cc_temp in $*""; do
15591      case $cc_temp in
15592        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15593        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15594        \-*) ;;
15595        *) break;;
15596      esac
15597    done
15598    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15599}
15600
15601
15602# ### END FUNCTIONS SHARED WITH CONFIGURE
15603
15604_LT_EOF
15605
15606  case $host_os in
15607  aix3*)
15608    cat <<\_LT_EOF >> "$cfgfile"
15609# AIX sometimes has problems with the GCC collect2 program.  For some
15610# reason, if we set the COLLECT_NAMES environment variable, the problems
15611# vanish in a puff of smoke.
15612if test set != "${COLLECT_NAMES+set}"; then
15613  COLLECT_NAMES=
15614  export COLLECT_NAMES
15615fi
15616_LT_EOF
15617    ;;
15618  esac
15619
15620
15621ltmain=$ac_aux_dir/ltmain.sh
15622
15623
15624  # We use sed instead of cat because bash on DJGPP gets confused if
15625  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15626  # text mode, it properly converts lines to CR/LF.  This bash problem
15627  # is reportedly fixed, but why not run on old versions too?
15628  sed '$q' "$ltmain" >> "$cfgfile" \
15629     || (rm -f "$cfgfile"; exit 1)
15630
15631   mv -f "$cfgfile" "$ofile" ||
15632    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15633  chmod +x "$ofile"
15634
15635 ;;
15636
15637  esac
15638done # for ac_tag
15639
15640
15641as_fn_exit 0
15642_ACEOF
15643ac_clean_files=$ac_clean_files_save
15644
15645test $ac_write_fail = 0 ||
15646  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15647
15648
15649# configure is writing to config.log, and then calls config.status.
15650# config.status does its own redirection, appending to config.log.
15651# Unfortunately, on DOS this fails, as config.log is still kept open
15652# by configure, so config.status won't be able to write to it; its
15653# output is simply discarded.  So we exec the FD to /dev/null,
15654# effectively closing config.log, so it can be properly (re)opened and
15655# appended to by config.status.  When coming back to configure, we
15656# need to make the FD available again.
15657if test "$no_create" != yes; then
15658  ac_cs_success=:
15659  ac_config_status_args=
15660  test "$silent" = yes &&
15661    ac_config_status_args="$ac_config_status_args --quiet"
15662  exec 5>/dev/null
15663  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15664  exec 5>>config.log
15665  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15666  # would make configure fail if this is the last instruction.
15667  $ac_cs_success || as_fn_exit 1
15668fi
15669if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15670  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15671$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15672fi
15673
15674