1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for libxode 1.2-jggtrans.
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='libxode'
589PACKAGE_TARNAME='libxode'
590PACKAGE_VERSION='1.2-jggtrans'
591PACKAGE_STRING='libxode 1.2-jggtrans'
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
594
595ac_unique_file="src/xmlnode.c"
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
636EXPAT_LIBS
637EXPAT_CFLAGS
638CPP
639OTOOL64
640OTOOL
641LIPO
642NMEDIT
643DSYMUTIL
644MANIFEST_TOOL
645RANLIB
646ac_ct_AR
647AR
648DLLTOOL
649OBJDUMP
650LN_S
651NM
652ac_ct_DUMPBIN
653DUMPBIN
654LD
655FGREP
656EGREP
657GREP
658SED
659host_os
660host_vendor
661host_cpu
662host
663build_os
664build_vendor
665build_cpu
666build
667LIBTOOL
668am__fastdepCC_FALSE
669am__fastdepCC_TRUE
670CCDEPMODE
671am__nodep
672AMDEPBACKSLASH
673AMDEP_FALSE
674AMDEP_TRUE
675am__quote
676am__include
677DEPDIR
678OBJEXT
679EXEEXT
680ac_ct_CC
681CPPFLAGS
682LDFLAGS
683CFLAGS
684CC
685am__untar
686am__tar
687AMTAR
688am__leading_dot
689SET_MAKE
690AWK
691mkdir_p
692MKDIR_P
693INSTALL_STRIP_PROGRAM
694STRIP
695install_sh
696MAKEINFO
697AUTOHEADER
698AUTOMAKE
699AUTOCONF
700ACLOCAL
701VERSION
702PACKAGE
703CYGPATH_W
704am__isrc
705INSTALL_DATA
706INSTALL_SCRIPT
707INSTALL_PROGRAM
708target_alias
709host_alias
710build_alias
711LIBS
712ECHO_T
713ECHO_N
714ECHO_C
715DEFS
716mandir
717localedir
718libdir
719psdir
720pdfdir
721dvidir
722htmldir
723infodir
724docdir
725oldincludedir
726includedir
727localstatedir
728sharedstatedir
729sysconfdir
730datadir
731datarootdir
732libexecdir
733sbindir
734bindir
735program_transform_name
736prefix
737exec_prefix
738PACKAGE_URL
739PACKAGE_BUGREPORT
740PACKAGE_STRING
741PACKAGE_VERSION
742PACKAGE_TARNAME
743PACKAGE_NAME
744PATH_SEPARATOR
745SHELL'
746ac_subst_files=''
747ac_user_opts='
748enable_option_checking
749enable_shared
750enable_static
751enable_dependency_tracking
752with_pic
753enable_fast_install
754with_gnu_ld
755with_sysroot
756enable_libtool_lock
757with_expat_prefix
758enable_expattest
759'
760      ac_precious_vars='build_alias
761host_alias
762target_alias
763CC
764CFLAGS
765LDFLAGS
766LIBS
767CPPFLAGS
768CPP'
769
770
771# Initialize some variables set by options.
772ac_init_help=
773ac_init_version=false
774ac_unrecognized_opts=
775ac_unrecognized_sep=
776# The variables have the same names as the options, with
777# dashes changed to underlines.
778cache_file=/dev/null
779exec_prefix=NONE
780no_create=
781no_recursion=
782prefix=NONE
783program_prefix=NONE
784program_suffix=NONE
785program_transform_name=s,x,x,
786silent=
787site=
788srcdir=
789verbose=
790x_includes=NONE
791x_libraries=NONE
792
793# Installation directory options.
794# These are left unexpanded so users can "make install exec_prefix=/foo"
795# and all the variables that are supposed to be based on exec_prefix
796# by default will actually change.
797# Use braces instead of parens because sh, perl, etc. also accept them.
798# (The list follows the same order as the GNU Coding Standards.)
799bindir='${exec_prefix}/bin'
800sbindir='${exec_prefix}/sbin'
801libexecdir='${exec_prefix}/libexec'
802datarootdir='${prefix}/share'
803datadir='${datarootdir}'
804sysconfdir='${prefix}/etc'
805sharedstatedir='${prefix}/com'
806localstatedir='${prefix}/var'
807includedir='${prefix}/include'
808oldincludedir='/usr/include'
809docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
810infodir='${datarootdir}/info'
811htmldir='${docdir}'
812dvidir='${docdir}'
813pdfdir='${docdir}'
814psdir='${docdir}'
815libdir='${exec_prefix}/lib'
816localedir='${datarootdir}/locale'
817mandir='${datarootdir}/man'
818
819ac_prev=
820ac_dashdash=
821for ac_option
822do
823  # If the previous option needs an argument, assign it.
824  if test -n "$ac_prev"; then
825    eval $ac_prev=\$ac_option
826    ac_prev=
827    continue
828  fi
829
830  case $ac_option in
831  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
832  *=)   ac_optarg= ;;
833  *)    ac_optarg=yes ;;
834  esac
835
836  # Accept the important Cygnus configure options, so we can diagnose typos.
837
838  case $ac_dashdash$ac_option in
839  --)
840    ac_dashdash=yes ;;
841
842  -bindir | --bindir | --bindi | --bind | --bin | --bi)
843    ac_prev=bindir ;;
844  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
845    bindir=$ac_optarg ;;
846
847  -build | --build | --buil | --bui | --bu)
848    ac_prev=build_alias ;;
849  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
850    build_alias=$ac_optarg ;;
851
852  -cache-file | --cache-file | --cache-fil | --cache-fi \
853  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
854    ac_prev=cache_file ;;
855  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
856  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
857    cache_file=$ac_optarg ;;
858
859  --config-cache | -C)
860    cache_file=config.cache ;;
861
862  -datadir | --datadir | --datadi | --datad)
863    ac_prev=datadir ;;
864  -datadir=* | --datadir=* | --datadi=* | --datad=*)
865    datadir=$ac_optarg ;;
866
867  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
868  | --dataroo | --dataro | --datar)
869    ac_prev=datarootdir ;;
870  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
871  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
872    datarootdir=$ac_optarg ;;
873
874  -disable-* | --disable-*)
875    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
876    # Reject names that are not valid shell variable names.
877    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
878      as_fn_error $? "invalid feature name: $ac_useropt"
879    ac_useropt_orig=$ac_useropt
880    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
881    case $ac_user_opts in
882      *"
883"enable_$ac_useropt"
884"*) ;;
885      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
886	 ac_unrecognized_sep=', ';;
887    esac
888    eval enable_$ac_useropt=no ;;
889
890  -docdir | --docdir | --docdi | --doc | --do)
891    ac_prev=docdir ;;
892  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
893    docdir=$ac_optarg ;;
894
895  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
896    ac_prev=dvidir ;;
897  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
898    dvidir=$ac_optarg ;;
899
900  -enable-* | --enable-*)
901    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
902    # Reject names that are not valid shell variable names.
903    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
904      as_fn_error $? "invalid feature name: $ac_useropt"
905    ac_useropt_orig=$ac_useropt
906    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
907    case $ac_user_opts in
908      *"
909"enable_$ac_useropt"
910"*) ;;
911      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
912	 ac_unrecognized_sep=', ';;
913    esac
914    eval enable_$ac_useropt=\$ac_optarg ;;
915
916  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
917  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
918  | --exec | --exe | --ex)
919    ac_prev=exec_prefix ;;
920  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
921  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
922  | --exec=* | --exe=* | --ex=*)
923    exec_prefix=$ac_optarg ;;
924
925  -gas | --gas | --ga | --g)
926    # Obsolete; use --with-gas.
927    with_gas=yes ;;
928
929  -help | --help | --hel | --he | -h)
930    ac_init_help=long ;;
931  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
932    ac_init_help=recursive ;;
933  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
934    ac_init_help=short ;;
935
936  -host | --host | --hos | --ho)
937    ac_prev=host_alias ;;
938  -host=* | --host=* | --hos=* | --ho=*)
939    host_alias=$ac_optarg ;;
940
941  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
942    ac_prev=htmldir ;;
943  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
944  | --ht=*)
945    htmldir=$ac_optarg ;;
946
947  -includedir | --includedir | --includedi | --included | --include \
948  | --includ | --inclu | --incl | --inc)
949    ac_prev=includedir ;;
950  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
951  | --includ=* | --inclu=* | --incl=* | --inc=*)
952    includedir=$ac_optarg ;;
953
954  -infodir | --infodir | --infodi | --infod | --info | --inf)
955    ac_prev=infodir ;;
956  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
957    infodir=$ac_optarg ;;
958
959  -libdir | --libdir | --libdi | --libd)
960    ac_prev=libdir ;;
961  -libdir=* | --libdir=* | --libdi=* | --libd=*)
962    libdir=$ac_optarg ;;
963
964  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
965  | --libexe | --libex | --libe)
966    ac_prev=libexecdir ;;
967  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
968  | --libexe=* | --libex=* | --libe=*)
969    libexecdir=$ac_optarg ;;
970
971  -localedir | --localedir | --localedi | --localed | --locale)
972    ac_prev=localedir ;;
973  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
974    localedir=$ac_optarg ;;
975
976  -localstatedir | --localstatedir | --localstatedi | --localstated \
977  | --localstate | --localstat | --localsta | --localst | --locals)
978    ac_prev=localstatedir ;;
979  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
980  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
981    localstatedir=$ac_optarg ;;
982
983  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
984    ac_prev=mandir ;;
985  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
986    mandir=$ac_optarg ;;
987
988  -nfp | --nfp | --nf)
989    # Obsolete; use --without-fp.
990    with_fp=no ;;
991
992  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
993  | --no-cr | --no-c | -n)
994    no_create=yes ;;
995
996  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
997  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
998    no_recursion=yes ;;
999
1000  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1001  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1002  | --oldin | --oldi | --old | --ol | --o)
1003    ac_prev=oldincludedir ;;
1004  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1005  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1006  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1007    oldincludedir=$ac_optarg ;;
1008
1009  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1010    ac_prev=prefix ;;
1011  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1012    prefix=$ac_optarg ;;
1013
1014  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1015  | --program-pre | --program-pr | --program-p)
1016    ac_prev=program_prefix ;;
1017  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1018  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1019    program_prefix=$ac_optarg ;;
1020
1021  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1022  | --program-suf | --program-su | --program-s)
1023    ac_prev=program_suffix ;;
1024  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1025  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1026    program_suffix=$ac_optarg ;;
1027
1028  -program-transform-name | --program-transform-name \
1029  | --program-transform-nam | --program-transform-na \
1030  | --program-transform-n | --program-transform- \
1031  | --program-transform | --program-transfor \
1032  | --program-transfo | --program-transf \
1033  | --program-trans | --program-tran \
1034  | --progr-tra | --program-tr | --program-t)
1035    ac_prev=program_transform_name ;;
1036  -program-transform-name=* | --program-transform-name=* \
1037  | --program-transform-nam=* | --program-transform-na=* \
1038  | --program-transform-n=* | --program-transform-=* \
1039  | --program-transform=* | --program-transfor=* \
1040  | --program-transfo=* | --program-transf=* \
1041  | --program-trans=* | --program-tran=* \
1042  | --progr-tra=* | --program-tr=* | --program-t=*)
1043    program_transform_name=$ac_optarg ;;
1044
1045  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1046    ac_prev=pdfdir ;;
1047  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1048    pdfdir=$ac_optarg ;;
1049
1050  -psdir | --psdir | --psdi | --psd | --ps)
1051    ac_prev=psdir ;;
1052  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1053    psdir=$ac_optarg ;;
1054
1055  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1056  | -silent | --silent | --silen | --sile | --sil)
1057    silent=yes ;;
1058
1059  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1060    ac_prev=sbindir ;;
1061  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1062  | --sbi=* | --sb=*)
1063    sbindir=$ac_optarg ;;
1064
1065  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1066  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1067  | --sharedst | --shareds | --shared | --share | --shar \
1068  | --sha | --sh)
1069    ac_prev=sharedstatedir ;;
1070  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1071  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1072  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1073  | --sha=* | --sh=*)
1074    sharedstatedir=$ac_optarg ;;
1075
1076  -site | --site | --sit)
1077    ac_prev=site ;;
1078  -site=* | --site=* | --sit=*)
1079    site=$ac_optarg ;;
1080
1081  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1082    ac_prev=srcdir ;;
1083  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1084    srcdir=$ac_optarg ;;
1085
1086  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1087  | --syscon | --sysco | --sysc | --sys | --sy)
1088    ac_prev=sysconfdir ;;
1089  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1090  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1091    sysconfdir=$ac_optarg ;;
1092
1093  -target | --target | --targe | --targ | --tar | --ta | --t)
1094    ac_prev=target_alias ;;
1095  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1096    target_alias=$ac_optarg ;;
1097
1098  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1099    verbose=yes ;;
1100
1101  -version | --version | --versio | --versi | --vers | -V)
1102    ac_init_version=: ;;
1103
1104  -with-* | --with-*)
1105    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1106    # Reject names that are not valid shell variable names.
1107    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1108      as_fn_error $? "invalid package name: $ac_useropt"
1109    ac_useropt_orig=$ac_useropt
1110    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1111    case $ac_user_opts in
1112      *"
1113"with_$ac_useropt"
1114"*) ;;
1115      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1116	 ac_unrecognized_sep=', ';;
1117    esac
1118    eval with_$ac_useropt=\$ac_optarg ;;
1119
1120  -without-* | --without-*)
1121    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1122    # Reject names that are not valid shell variable names.
1123    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1124      as_fn_error $? "invalid package name: $ac_useropt"
1125    ac_useropt_orig=$ac_useropt
1126    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1127    case $ac_user_opts in
1128      *"
1129"with_$ac_useropt"
1130"*) ;;
1131      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1132	 ac_unrecognized_sep=', ';;
1133    esac
1134    eval with_$ac_useropt=no ;;
1135
1136  --x)
1137    # Obsolete; use --with-x.
1138    with_x=yes ;;
1139
1140  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1141  | --x-incl | --x-inc | --x-in | --x-i)
1142    ac_prev=x_includes ;;
1143  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1144  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1145    x_includes=$ac_optarg ;;
1146
1147  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1148  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1149    ac_prev=x_libraries ;;
1150  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1151  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1152    x_libraries=$ac_optarg ;;
1153
1154  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1155Try \`$0 --help' for more information"
1156    ;;
1157
1158  *=*)
1159    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1160    # Reject names that are not valid shell variable names.
1161    case $ac_envvar in #(
1162      '' | [0-9]* | *[!_$as_cr_alnum]* )
1163      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1164    esac
1165    eval $ac_envvar=\$ac_optarg
1166    export $ac_envvar ;;
1167
1168  *)
1169    # FIXME: should be removed in autoconf 3.0.
1170    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1171    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1172      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1173    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1174    ;;
1175
1176  esac
1177done
1178
1179if test -n "$ac_prev"; then
1180  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1181  as_fn_error $? "missing argument to $ac_option"
1182fi
1183
1184if test -n "$ac_unrecognized_opts"; then
1185  case $enable_option_checking in
1186    no) ;;
1187    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1188    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1189  esac
1190fi
1191
1192# Check all directory arguments for consistency.
1193for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1194		datadir sysconfdir sharedstatedir localstatedir includedir \
1195		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1196		libdir localedir mandir
1197do
1198  eval ac_val=\$$ac_var
1199  # Remove trailing slashes.
1200  case $ac_val in
1201    */ )
1202      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1203      eval $ac_var=\$ac_val;;
1204  esac
1205  # Be sure to have absolute directory names.
1206  case $ac_val in
1207    [\\/$]* | ?:[\\/]* )  continue;;
1208    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1209  esac
1210  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1211done
1212
1213# There might be people who depend on the old broken behavior: `$host'
1214# used to hold the argument of --host etc.
1215# FIXME: To remove some day.
1216build=$build_alias
1217host=$host_alias
1218target=$target_alias
1219
1220# FIXME: To remove some day.
1221if test "x$host_alias" != x; then
1222  if test "x$build_alias" = x; then
1223    cross_compiling=maybe
1224  elif test "x$build_alias" != "x$host_alias"; then
1225    cross_compiling=yes
1226  fi
1227fi
1228
1229ac_tool_prefix=
1230test -n "$host_alias" && ac_tool_prefix=$host_alias-
1231
1232test "$silent" = yes && exec 6>/dev/null
1233
1234
1235ac_pwd=`pwd` && test -n "$ac_pwd" &&
1236ac_ls_di=`ls -di .` &&
1237ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1238  as_fn_error $? "working directory cannot be determined"
1239test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1240  as_fn_error $? "pwd does not report name of working directory"
1241
1242
1243# Find the source files, if location was not specified.
1244if test -z "$srcdir"; then
1245  ac_srcdir_defaulted=yes
1246  # Try the directory containing this script, then the parent directory.
1247  ac_confdir=`$as_dirname -- "$as_myself" ||
1248$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1249	 X"$as_myself" : 'X\(//\)[^/]' \| \
1250	 X"$as_myself" : 'X\(//\)$' \| \
1251	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1252$as_echo X"$as_myself" |
1253    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1254	    s//\1/
1255	    q
1256	  }
1257	  /^X\(\/\/\)[^/].*/{
1258	    s//\1/
1259	    q
1260	  }
1261	  /^X\(\/\/\)$/{
1262	    s//\1/
1263	    q
1264	  }
1265	  /^X\(\/\).*/{
1266	    s//\1/
1267	    q
1268	  }
1269	  s/.*/./; q'`
1270  srcdir=$ac_confdir
1271  if test ! -r "$srcdir/$ac_unique_file"; then
1272    srcdir=..
1273  fi
1274else
1275  ac_srcdir_defaulted=no
1276fi
1277if test ! -r "$srcdir/$ac_unique_file"; then
1278  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1279  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1280fi
1281ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1282ac_abs_confdir=`(
1283	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1284	pwd)`
1285# When building in place, set srcdir=.
1286if test "$ac_abs_confdir" = "$ac_pwd"; then
1287  srcdir=.
1288fi
1289# Remove unnecessary trailing slashes from srcdir.
1290# Double slashes in file names in object file debugging info
1291# mess up M-x gdb in Emacs.
1292case $srcdir in
1293*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1294esac
1295for ac_var in $ac_precious_vars; do
1296  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1297  eval ac_env_${ac_var}_value=\$${ac_var}
1298  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1299  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1300done
1301
1302#
1303# Report the --help message.
1304#
1305if test "$ac_init_help" = "long"; then
1306  # Omit some internal or obsolete options to make the list less imposing.
1307  # This message is too long to be a string in the A/UX 3.1 sh.
1308  cat <<_ACEOF
1309\`configure' configures libxode 1.2-jggtrans to adapt to many kinds of systems.
1310
1311Usage: $0 [OPTION]... [VAR=VALUE]...
1312
1313To assign environment variables (e.g., CC, CFLAGS...), specify them as
1314VAR=VALUE.  See below for descriptions of some of the useful variables.
1315
1316Defaults for the options are specified in brackets.
1317
1318Configuration:
1319  -h, --help              display this help and exit
1320      --help=short        display options specific to this package
1321      --help=recursive    display the short help of all the included packages
1322  -V, --version           display version information and exit
1323  -q, --quiet, --silent   do not print \`checking ...' messages
1324      --cache-file=FILE   cache test results in FILE [disabled]
1325  -C, --config-cache      alias for \`--cache-file=config.cache'
1326  -n, --no-create         do not create output files
1327      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1328
1329Installation directories:
1330  --prefix=PREFIX         install architecture-independent files in PREFIX
1331                          [$ac_default_prefix]
1332  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1333                          [PREFIX]
1334
1335By default, \`make install' will install all the files in
1336\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1337an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1338for instance \`--prefix=\$HOME'.
1339
1340For better control, use the options below.
1341
1342Fine tuning of the installation directories:
1343  --bindir=DIR            user executables [EPREFIX/bin]
1344  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1345  --libexecdir=DIR        program executables [EPREFIX/libexec]
1346  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1347  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1348  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1349  --libdir=DIR            object code libraries [EPREFIX/lib]
1350  --includedir=DIR        C header files [PREFIX/include]
1351  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1352  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1353  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1354  --infodir=DIR           info documentation [DATAROOTDIR/info]
1355  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1356  --mandir=DIR            man documentation [DATAROOTDIR/man]
1357  --docdir=DIR            documentation root [DATAROOTDIR/doc/libxode]
1358  --htmldir=DIR           html documentation [DOCDIR]
1359  --dvidir=DIR            dvi documentation [DOCDIR]
1360  --pdfdir=DIR            pdf documentation [DOCDIR]
1361  --psdir=DIR             ps documentation [DOCDIR]
1362_ACEOF
1363
1364  cat <<\_ACEOF
1365
1366Program names:
1367  --program-prefix=PREFIX            prepend PREFIX to installed program names
1368  --program-suffix=SUFFIX            append SUFFIX to installed program names
1369  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1370
1371System types:
1372  --build=BUILD     configure for building on BUILD [guessed]
1373  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1374_ACEOF
1375fi
1376
1377if test -n "$ac_init_help"; then
1378  case $ac_init_help in
1379     short | recursive ) echo "Configuration of libxode 1.2-jggtrans:";;
1380   esac
1381  cat <<\_ACEOF
1382
1383Optional Features:
1384  --disable-option-checking  ignore unrecognized --enable/--with options
1385  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1386  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1387  --enable-shared[=PKGS]  build shared libraries [default=no]
1388  --enable-static[=PKGS]  build static libraries [default=yes]
1389  --enable-dependency-tracking
1390                          do not reject slow dependency extractors
1391  --disable-dependency-tracking
1392                          speeds up one-time build
1393  --enable-fast-install[=PKGS]
1394                          optimize for fast installation [default=yes]
1395  --disable-libtool-lock  avoid locking (might break parallel builds)
1396  --disable-expattest       Do not try to compile and run a test EXPAT program
1397
1398Optional Packages:
1399  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1400  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1401  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1402                          both]
1403  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1404  --with-sysroot=DIR Search for dependent libraries within DIR
1405                        (or the compiler's sysroot if not specified).
1406  --with-expat=PFX   Prefix where EXPAT is installed (optional)
1407
1408Some influential environment variables:
1409  CC          C compiler command
1410  CFLAGS      C compiler flags
1411  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1412              nonstandard directory <lib dir>
1413  LIBS        libraries to pass to the linker, e.g. -l<library>
1414  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1415              you have headers in a nonstandard directory <include dir>
1416  CPP         C preprocessor
1417
1418Use these variables to override the choices made by `configure' or to help
1419it to find libraries and programs with nonstandard names/locations.
1420
1421Report bugs to the package provider.
1422_ACEOF
1423ac_status=$?
1424fi
1425
1426if test "$ac_init_help" = "recursive"; then
1427  # If there are subdirs, report their specific --help.
1428  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1429    test -d "$ac_dir" ||
1430      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1431      continue
1432    ac_builddir=.
1433
1434case "$ac_dir" in
1435.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1436*)
1437  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1438  # A ".." for each directory in $ac_dir_suffix.
1439  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1440  case $ac_top_builddir_sub in
1441  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1442  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1443  esac ;;
1444esac
1445ac_abs_top_builddir=$ac_pwd
1446ac_abs_builddir=$ac_pwd$ac_dir_suffix
1447# for backward compatibility:
1448ac_top_builddir=$ac_top_build_prefix
1449
1450case $srcdir in
1451  .)  # We are building in place.
1452    ac_srcdir=.
1453    ac_top_srcdir=$ac_top_builddir_sub
1454    ac_abs_top_srcdir=$ac_pwd ;;
1455  [\\/]* | ?:[\\/]* )  # Absolute name.
1456    ac_srcdir=$srcdir$ac_dir_suffix;
1457    ac_top_srcdir=$srcdir
1458    ac_abs_top_srcdir=$srcdir ;;
1459  *) # Relative name.
1460    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1461    ac_top_srcdir=$ac_top_build_prefix$srcdir
1462    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1463esac
1464ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1465
1466    cd "$ac_dir" || { ac_status=$?; continue; }
1467    # Check for guested configure.
1468    if test -f "$ac_srcdir/configure.gnu"; then
1469      echo &&
1470      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1471    elif test -f "$ac_srcdir/configure"; then
1472      echo &&
1473      $SHELL "$ac_srcdir/configure" --help=recursive
1474    else
1475      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1476    fi || ac_status=$?
1477    cd "$ac_pwd" || { ac_status=$?; break; }
1478  done
1479fi
1480
1481test -n "$ac_init_help" && exit $ac_status
1482if $ac_init_version; then
1483  cat <<\_ACEOF
1484libxode configure 1.2-jggtrans
1485generated by GNU Autoconf 2.69
1486
1487Copyright (C) 2012 Free Software Foundation, Inc.
1488This configure script is free software; the Free Software Foundation
1489gives unlimited permission to copy, distribute and modify it.
1490_ACEOF
1491  exit
1492fi
1493
1494## ------------------------ ##
1495## Autoconf initialization. ##
1496## ------------------------ ##
1497
1498# ac_fn_c_try_compile LINENO
1499# --------------------------
1500# Try to compile conftest.$ac_ext, and return whether this succeeded.
1501ac_fn_c_try_compile ()
1502{
1503  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1504  rm -f conftest.$ac_objext
1505  if { { ac_try="$ac_compile"
1506case "(($ac_try" in
1507  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1508  *) ac_try_echo=$ac_try;;
1509esac
1510eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1511$as_echo "$ac_try_echo"; } >&5
1512  (eval "$ac_compile") 2>conftest.err
1513  ac_status=$?
1514  if test -s conftest.err; then
1515    grep -v '^ *+' conftest.err >conftest.er1
1516    cat conftest.er1 >&5
1517    mv -f conftest.er1 conftest.err
1518  fi
1519  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1520  test $ac_status = 0; } && {
1521	 test -z "$ac_c_werror_flag" ||
1522	 test ! -s conftest.err
1523       } && test -s conftest.$ac_objext; then :
1524  ac_retval=0
1525else
1526  $as_echo "$as_me: failed program was:" >&5
1527sed 's/^/| /' conftest.$ac_ext >&5
1528
1529	ac_retval=1
1530fi
1531  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1532  as_fn_set_status $ac_retval
1533
1534} # ac_fn_c_try_compile
1535
1536# ac_fn_c_try_link LINENO
1537# -----------------------
1538# Try to link conftest.$ac_ext, and return whether this succeeded.
1539ac_fn_c_try_link ()
1540{
1541  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1542  rm -f conftest.$ac_objext conftest$ac_exeext
1543  if { { ac_try="$ac_link"
1544case "(($ac_try" in
1545  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1546  *) ac_try_echo=$ac_try;;
1547esac
1548eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1549$as_echo "$ac_try_echo"; } >&5
1550  (eval "$ac_link") 2>conftest.err
1551  ac_status=$?
1552  if test -s conftest.err; then
1553    grep -v '^ *+' conftest.err >conftest.er1
1554    cat conftest.er1 >&5
1555    mv -f conftest.er1 conftest.err
1556  fi
1557  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1558  test $ac_status = 0; } && {
1559	 test -z "$ac_c_werror_flag" ||
1560	 test ! -s conftest.err
1561       } && test -s conftest$ac_exeext && {
1562	 test "$cross_compiling" = yes ||
1563	 test -x conftest$ac_exeext
1564       }; then :
1565  ac_retval=0
1566else
1567  $as_echo "$as_me: failed program was:" >&5
1568sed 's/^/| /' conftest.$ac_ext >&5
1569
1570	ac_retval=1
1571fi
1572  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1573  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1574  # interfere with the next link command; also delete a directory that is
1575  # left behind by Apple's compiler.  We do this before executing the actions.
1576  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1577  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1578  as_fn_set_status $ac_retval
1579
1580} # ac_fn_c_try_link
1581
1582# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1583# -------------------------------------------------------
1584# Tests whether HEADER exists and can be compiled using the include files in
1585# INCLUDES, setting the cache variable VAR accordingly.
1586ac_fn_c_check_header_compile ()
1587{
1588  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1589  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1590$as_echo_n "checking for $2... " >&6; }
1591if eval \${$3+:} false; then :
1592  $as_echo_n "(cached) " >&6
1593else
1594  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1595/* end confdefs.h.  */
1596$4
1597#include <$2>
1598_ACEOF
1599if ac_fn_c_try_compile "$LINENO"; then :
1600  eval "$3=yes"
1601else
1602  eval "$3=no"
1603fi
1604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1605fi
1606eval ac_res=\$$3
1607	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1608$as_echo "$ac_res" >&6; }
1609  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1610
1611} # ac_fn_c_check_header_compile
1612
1613# ac_fn_c_try_cpp LINENO
1614# ----------------------
1615# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1616ac_fn_c_try_cpp ()
1617{
1618  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619  if { { ac_try="$ac_cpp conftest.$ac_ext"
1620case "(($ac_try" in
1621  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1622  *) ac_try_echo=$ac_try;;
1623esac
1624eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1625$as_echo "$ac_try_echo"; } >&5
1626  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1627  ac_status=$?
1628  if test -s conftest.err; then
1629    grep -v '^ *+' conftest.err >conftest.er1
1630    cat conftest.er1 >&5
1631    mv -f conftest.er1 conftest.err
1632  fi
1633  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1634  test $ac_status = 0; } > conftest.i && {
1635	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1636	 test ! -s conftest.err
1637       }; then :
1638  ac_retval=0
1639else
1640  $as_echo "$as_me: failed program was:" >&5
1641sed 's/^/| /' conftest.$ac_ext >&5
1642
1643    ac_retval=1
1644fi
1645  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1646  as_fn_set_status $ac_retval
1647
1648} # ac_fn_c_try_cpp
1649
1650# ac_fn_c_try_run LINENO
1651# ----------------------
1652# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1653# that executables *can* be run.
1654ac_fn_c_try_run ()
1655{
1656  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657  if { { ac_try="$ac_link"
1658case "(($ac_try" in
1659  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1660  *) ac_try_echo=$ac_try;;
1661esac
1662eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1663$as_echo "$ac_try_echo"; } >&5
1664  (eval "$ac_link") 2>&5
1665  ac_status=$?
1666  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1667  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1668  { { case "(($ac_try" in
1669  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1670  *) ac_try_echo=$ac_try;;
1671esac
1672eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1673$as_echo "$ac_try_echo"; } >&5
1674  (eval "$ac_try") 2>&5
1675  ac_status=$?
1676  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1677  test $ac_status = 0; }; }; then :
1678  ac_retval=0
1679else
1680  $as_echo "$as_me: program exited with status $ac_status" >&5
1681       $as_echo "$as_me: failed program was:" >&5
1682sed 's/^/| /' conftest.$ac_ext >&5
1683
1684       ac_retval=$ac_status
1685fi
1686  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1687  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1688  as_fn_set_status $ac_retval
1689
1690} # ac_fn_c_try_run
1691
1692# ac_fn_c_check_func LINENO FUNC VAR
1693# ----------------------------------
1694# Tests whether FUNC exists, setting the cache variable VAR accordingly
1695ac_fn_c_check_func ()
1696{
1697  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1699$as_echo_n "checking for $2... " >&6; }
1700if eval \${$3+:} false; then :
1701  $as_echo_n "(cached) " >&6
1702else
1703  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1704/* end confdefs.h.  */
1705/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1706   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1707#define $2 innocuous_$2
1708
1709/* System header to define __stub macros and hopefully few prototypes,
1710    which can conflict with char $2 (); below.
1711    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1712    <limits.h> exists even on freestanding compilers.  */
1713
1714#ifdef __STDC__
1715# include <limits.h>
1716#else
1717# include <assert.h>
1718#endif
1719
1720#undef $2
1721
1722/* Override any GCC internal prototype to avoid an error.
1723   Use char because int might match the return type of a GCC
1724   builtin and then its argument prototype would still apply.  */
1725#ifdef __cplusplus
1726extern "C"
1727#endif
1728char $2 ();
1729/* The GNU C library defines this for functions which it implements
1730    to always fail with ENOSYS.  Some functions are actually named
1731    something starting with __ and the normal name is an alias.  */
1732#if defined __stub_$2 || defined __stub___$2
1733choke me
1734#endif
1735
1736int
1737main ()
1738{
1739return $2 ();
1740  ;
1741  return 0;
1742}
1743_ACEOF
1744if ac_fn_c_try_link "$LINENO"; then :
1745  eval "$3=yes"
1746else
1747  eval "$3=no"
1748fi
1749rm -f core conftest.err conftest.$ac_objext \
1750    conftest$ac_exeext conftest.$ac_ext
1751fi
1752eval ac_res=\$$3
1753	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1754$as_echo "$ac_res" >&6; }
1755  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1756
1757} # ac_fn_c_check_func
1758
1759# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1760# --------------------------------------------
1761# Tries to find the compile-time value of EXPR in a program that includes
1762# INCLUDES, setting VAR accordingly. Returns whether the value could be
1763# computed
1764ac_fn_c_compute_int ()
1765{
1766  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1767  if test "$cross_compiling" = yes; then
1768    # Depending upon the size, compute the lo and hi bounds.
1769cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1770/* end confdefs.h.  */
1771$4
1772int
1773main ()
1774{
1775static int test_array [1 - 2 * !(($2) >= 0)];
1776test_array [0] = 0;
1777return test_array [0];
1778
1779  ;
1780  return 0;
1781}
1782_ACEOF
1783if ac_fn_c_try_compile "$LINENO"; then :
1784  ac_lo=0 ac_mid=0
1785  while :; do
1786    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1787/* end confdefs.h.  */
1788$4
1789int
1790main ()
1791{
1792static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1793test_array [0] = 0;
1794return test_array [0];
1795
1796  ;
1797  return 0;
1798}
1799_ACEOF
1800if ac_fn_c_try_compile "$LINENO"; then :
1801  ac_hi=$ac_mid; break
1802else
1803  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1804			if test $ac_lo -le $ac_mid; then
1805			  ac_lo= ac_hi=
1806			  break
1807			fi
1808			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1809fi
1810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1811  done
1812else
1813  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1814/* end confdefs.h.  */
1815$4
1816int
1817main ()
1818{
1819static int test_array [1 - 2 * !(($2) < 0)];
1820test_array [0] = 0;
1821return test_array [0];
1822
1823  ;
1824  return 0;
1825}
1826_ACEOF
1827if ac_fn_c_try_compile "$LINENO"; then :
1828  ac_hi=-1 ac_mid=-1
1829  while :; do
1830    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1831/* end confdefs.h.  */
1832$4
1833int
1834main ()
1835{
1836static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1837test_array [0] = 0;
1838return test_array [0];
1839
1840  ;
1841  return 0;
1842}
1843_ACEOF
1844if ac_fn_c_try_compile "$LINENO"; then :
1845  ac_lo=$ac_mid; break
1846else
1847  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1848			if test $ac_mid -le $ac_hi; then
1849			  ac_lo= ac_hi=
1850			  break
1851			fi
1852			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1853fi
1854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1855  done
1856else
1857  ac_lo= ac_hi=
1858fi
1859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1860fi
1861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1862# Binary search between lo and hi bounds.
1863while test "x$ac_lo" != "x$ac_hi"; do
1864  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1866/* end confdefs.h.  */
1867$4
1868int
1869main ()
1870{
1871static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1872test_array [0] = 0;
1873return test_array [0];
1874
1875  ;
1876  return 0;
1877}
1878_ACEOF
1879if ac_fn_c_try_compile "$LINENO"; then :
1880  ac_hi=$ac_mid
1881else
1882  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1883fi
1884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1885done
1886case $ac_lo in #((
1887?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1888'') ac_retval=1 ;;
1889esac
1890  else
1891    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1892/* end confdefs.h.  */
1893$4
1894static long int longval () { return $2; }
1895static unsigned long int ulongval () { return $2; }
1896#include <stdio.h>
1897#include <stdlib.h>
1898int
1899main ()
1900{
1901
1902  FILE *f = fopen ("conftest.val", "w");
1903  if (! f)
1904    return 1;
1905  if (($2) < 0)
1906    {
1907      long int i = longval ();
1908      if (i != ($2))
1909	return 1;
1910      fprintf (f, "%ld", i);
1911    }
1912  else
1913    {
1914      unsigned long int i = ulongval ();
1915      if (i != ($2))
1916	return 1;
1917      fprintf (f, "%lu", i);
1918    }
1919  /* Do not output a trailing newline, as this causes \r\n confusion
1920     on some platforms.  */
1921  return ferror (f) || fclose (f) != 0;
1922
1923  ;
1924  return 0;
1925}
1926_ACEOF
1927if ac_fn_c_try_run "$LINENO"; then :
1928  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1929else
1930  ac_retval=1
1931fi
1932rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1933  conftest.$ac_objext conftest.beam conftest.$ac_ext
1934rm -f conftest.val
1935
1936  fi
1937  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1938  as_fn_set_status $ac_retval
1939
1940} # ac_fn_c_compute_int
1941cat >config.log <<_ACEOF
1942This file contains any messages produced by compilers while
1943running configure, to aid debugging if configure makes a mistake.
1944
1945It was created by libxode $as_me 1.2-jggtrans, which was
1946generated by GNU Autoconf 2.69.  Invocation command line was
1947
1948  $ $0 $@
1949
1950_ACEOF
1951exec 5>>config.log
1952{
1953cat <<_ASUNAME
1954## --------- ##
1955## Platform. ##
1956## --------- ##
1957
1958hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1959uname -m = `(uname -m) 2>/dev/null || echo unknown`
1960uname -r = `(uname -r) 2>/dev/null || echo unknown`
1961uname -s = `(uname -s) 2>/dev/null || echo unknown`
1962uname -v = `(uname -v) 2>/dev/null || echo unknown`
1963
1964/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1965/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1966
1967/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1968/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1969/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1970/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1971/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1972/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1973/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1974
1975_ASUNAME
1976
1977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1978for as_dir in $PATH
1979do
1980  IFS=$as_save_IFS
1981  test -z "$as_dir" && as_dir=.
1982    $as_echo "PATH: $as_dir"
1983  done
1984IFS=$as_save_IFS
1985
1986} >&5
1987
1988cat >&5 <<_ACEOF
1989
1990
1991## ----------- ##
1992## Core tests. ##
1993## ----------- ##
1994
1995_ACEOF
1996
1997
1998# Keep a trace of the command line.
1999# Strip out --no-create and --no-recursion so they do not pile up.
2000# Strip out --silent because we don't want to record it for future runs.
2001# Also quote any args containing shell meta-characters.
2002# Make two passes to allow for proper duplicate-argument suppression.
2003ac_configure_args=
2004ac_configure_args0=
2005ac_configure_args1=
2006ac_must_keep_next=false
2007for ac_pass in 1 2
2008do
2009  for ac_arg
2010  do
2011    case $ac_arg in
2012    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2013    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2014    | -silent | --silent | --silen | --sile | --sil)
2015      continue ;;
2016    *\'*)
2017      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2018    esac
2019    case $ac_pass in
2020    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2021    2)
2022      as_fn_append ac_configure_args1 " '$ac_arg'"
2023      if test $ac_must_keep_next = true; then
2024	ac_must_keep_next=false # Got value, back to normal.
2025      else
2026	case $ac_arg in
2027	  *=* | --config-cache | -C | -disable-* | --disable-* \
2028	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2029	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2030	  | -with-* | --with-* | -without-* | --without-* | --x)
2031	    case "$ac_configure_args0 " in
2032	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2033	    esac
2034	    ;;
2035	  -* ) ac_must_keep_next=true ;;
2036	esac
2037      fi
2038      as_fn_append ac_configure_args " '$ac_arg'"
2039      ;;
2040    esac
2041  done
2042done
2043{ ac_configure_args0=; unset ac_configure_args0;}
2044{ ac_configure_args1=; unset ac_configure_args1;}
2045
2046# When interrupted or exit'd, cleanup temporary files, and complete
2047# config.log.  We remove comments because anyway the quotes in there
2048# would cause problems or look ugly.
2049# WARNING: Use '\'' to represent an apostrophe within the trap.
2050# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2051trap 'exit_status=$?
2052  # Save into config.log some information that might help in debugging.
2053  {
2054    echo
2055
2056    $as_echo "## ---------------- ##
2057## Cache variables. ##
2058## ---------------- ##"
2059    echo
2060    # The following way of writing the cache mishandles newlines in values,
2061(
2062  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2063    eval ac_val=\$$ac_var
2064    case $ac_val in #(
2065    *${as_nl}*)
2066      case $ac_var in #(
2067      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2068$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2069      esac
2070      case $ac_var in #(
2071      _ | IFS | as_nl) ;; #(
2072      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2073      *) { eval $ac_var=; unset $ac_var;} ;;
2074      esac ;;
2075    esac
2076  done
2077  (set) 2>&1 |
2078    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2079    *${as_nl}ac_space=\ *)
2080      sed -n \
2081	"s/'\''/'\''\\\\'\'''\''/g;
2082	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2083      ;; #(
2084    *)
2085      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2086      ;;
2087    esac |
2088    sort
2089)
2090    echo
2091
2092    $as_echo "## ----------------- ##
2093## Output variables. ##
2094## ----------------- ##"
2095    echo
2096    for ac_var in $ac_subst_vars
2097    do
2098      eval ac_val=\$$ac_var
2099      case $ac_val in
2100      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2101      esac
2102      $as_echo "$ac_var='\''$ac_val'\''"
2103    done | sort
2104    echo
2105
2106    if test -n "$ac_subst_files"; then
2107      $as_echo "## ------------------- ##
2108## File substitutions. ##
2109## ------------------- ##"
2110      echo
2111      for ac_var in $ac_subst_files
2112      do
2113	eval ac_val=\$$ac_var
2114	case $ac_val in
2115	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2116	esac
2117	$as_echo "$ac_var='\''$ac_val'\''"
2118      done | sort
2119      echo
2120    fi
2121
2122    if test -s confdefs.h; then
2123      $as_echo "## ----------- ##
2124## confdefs.h. ##
2125## ----------- ##"
2126      echo
2127      cat confdefs.h
2128      echo
2129    fi
2130    test "$ac_signal" != 0 &&
2131      $as_echo "$as_me: caught signal $ac_signal"
2132    $as_echo "$as_me: exit $exit_status"
2133  } >&5
2134  rm -f core *.core core.conftest.* &&
2135    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2136    exit $exit_status
2137' 0
2138for ac_signal in 1 2 13 15; do
2139  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2140done
2141ac_signal=0
2142
2143# confdefs.h avoids OS command line length limits that DEFS can exceed.
2144rm -f -r conftest* confdefs.h
2145
2146$as_echo "/* confdefs.h */" > confdefs.h
2147
2148# Predefined preprocessor variables.
2149
2150cat >>confdefs.h <<_ACEOF
2151#define PACKAGE_NAME "$PACKAGE_NAME"
2152_ACEOF
2153
2154cat >>confdefs.h <<_ACEOF
2155#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2156_ACEOF
2157
2158cat >>confdefs.h <<_ACEOF
2159#define PACKAGE_VERSION "$PACKAGE_VERSION"
2160_ACEOF
2161
2162cat >>confdefs.h <<_ACEOF
2163#define PACKAGE_STRING "$PACKAGE_STRING"
2164_ACEOF
2165
2166cat >>confdefs.h <<_ACEOF
2167#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2168_ACEOF
2169
2170cat >>confdefs.h <<_ACEOF
2171#define PACKAGE_URL "$PACKAGE_URL"
2172_ACEOF
2173
2174
2175# Let the site file select an alternate cache file if it wants to.
2176# Prefer an explicitly selected file to automatically selected ones.
2177ac_site_file1=NONE
2178ac_site_file2=NONE
2179if test -n "$CONFIG_SITE"; then
2180  # We do not want a PATH search for config.site.
2181  case $CONFIG_SITE in #((
2182    -*)  ac_site_file1=./$CONFIG_SITE;;
2183    */*) ac_site_file1=$CONFIG_SITE;;
2184    *)   ac_site_file1=./$CONFIG_SITE;;
2185  esac
2186elif test "x$prefix" != xNONE; then
2187  ac_site_file1=$prefix/share/config.site
2188  ac_site_file2=$prefix/etc/config.site
2189else
2190  ac_site_file1=$ac_default_prefix/share/config.site
2191  ac_site_file2=$ac_default_prefix/etc/config.site
2192fi
2193for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2194do
2195  test "x$ac_site_file" = xNONE && continue
2196  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2197    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2198$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2199    sed 's/^/| /' "$ac_site_file" >&5
2200    . "$ac_site_file" \
2201      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2202$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2203as_fn_error $? "failed to load site script $ac_site_file
2204See \`config.log' for more details" "$LINENO" 5; }
2205  fi
2206done
2207
2208if test -r "$cache_file"; then
2209  # Some versions of bash will fail to source /dev/null (special files
2210  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2211  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2212    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2213$as_echo "$as_me: loading cache $cache_file" >&6;}
2214    case $cache_file in
2215      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2216      *)                      . "./$cache_file";;
2217    esac
2218  fi
2219else
2220  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2221$as_echo "$as_me: creating cache $cache_file" >&6;}
2222  >$cache_file
2223fi
2224
2225# Check that the precious variables saved in the cache have kept the same
2226# value.
2227ac_cache_corrupted=false
2228for ac_var in $ac_precious_vars; do
2229  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2230  eval ac_new_set=\$ac_env_${ac_var}_set
2231  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2232  eval ac_new_val=\$ac_env_${ac_var}_value
2233  case $ac_old_set,$ac_new_set in
2234    set,)
2235      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2236$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2237      ac_cache_corrupted=: ;;
2238    ,set)
2239      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2240$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2241      ac_cache_corrupted=: ;;
2242    ,);;
2243    *)
2244      if test "x$ac_old_val" != "x$ac_new_val"; then
2245	# differences in whitespace do not lead to failure.
2246	ac_old_val_w=`echo x $ac_old_val`
2247	ac_new_val_w=`echo x $ac_new_val`
2248	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2249	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2250$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2251	  ac_cache_corrupted=:
2252	else
2253	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2254$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2255	  eval $ac_var=\$ac_old_val
2256	fi
2257	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2258$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2259	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2260$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2261      fi;;
2262  esac
2263  # Pass precious variables to config.status.
2264  if test "$ac_new_set" = set; then
2265    case $ac_new_val in
2266    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2267    *) ac_arg=$ac_var=$ac_new_val ;;
2268    esac
2269    case " $ac_configure_args " in
2270      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2271      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2272    esac
2273  fi
2274done
2275if $ac_cache_corrupted; then
2276  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2277$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2278  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2279$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2280  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2281fi
2282## -------------------- ##
2283## Main body of script. ##
2284## -------------------- ##
2285
2286ac_ext=c
2287ac_cpp='$CPP $CPPFLAGS'
2288ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2289ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2290ac_compiler_gnu=$ac_cv_c_compiler_gnu
2291
2292
2293
2294
2295am__api_version='1.12'
2296
2297ac_aux_dir=
2298for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2299  if test -f "$ac_dir/install-sh"; then
2300    ac_aux_dir=$ac_dir
2301    ac_install_sh="$ac_aux_dir/install-sh -c"
2302    break
2303  elif test -f "$ac_dir/install.sh"; then
2304    ac_aux_dir=$ac_dir
2305    ac_install_sh="$ac_aux_dir/install.sh -c"
2306    break
2307  elif test -f "$ac_dir/shtool"; then
2308    ac_aux_dir=$ac_dir
2309    ac_install_sh="$ac_aux_dir/shtool install -c"
2310    break
2311  fi
2312done
2313if test -z "$ac_aux_dir"; then
2314  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2315fi
2316
2317# These three variables are undocumented and unsupported,
2318# and are intended to be withdrawn in a future Autoconf release.
2319# They can cause serious problems if a builder's source tree is in a directory
2320# whose full name contains unusual characters.
2321ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2322ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2323ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2324
2325
2326# Find a good install program.  We prefer a C program (faster),
2327# so one script is as good as another.  But avoid the broken or
2328# incompatible versions:
2329# SysV /etc/install, /usr/sbin/install
2330# SunOS /usr/etc/install
2331# IRIX /sbin/install
2332# AIX /bin/install
2333# AmigaOS /C/install, which installs bootblocks on floppy discs
2334# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2335# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2336# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2337# OS/2's system install, which has a completely different semantic
2338# ./install, which can be erroneously created by make from ./install.sh.
2339# Reject install programs that cannot install multiple files.
2340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2341$as_echo_n "checking for a BSD-compatible install... " >&6; }
2342if test -z "$INSTALL"; then
2343if ${ac_cv_path_install+:} false; then :
2344  $as_echo_n "(cached) " >&6
2345else
2346  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2347for as_dir in $PATH
2348do
2349  IFS=$as_save_IFS
2350  test -z "$as_dir" && as_dir=.
2351    # Account for people who put trailing slashes in PATH elements.
2352case $as_dir/ in #((
2353  ./ | .// | /[cC]/* | \
2354  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2355  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2356  /usr/ucb/* ) ;;
2357  *)
2358    # OSF1 and SCO ODT 3.0 have their own names for install.
2359    # Don't use installbsd from OSF since it installs stuff as root
2360    # by default.
2361    for ac_prog in ginstall scoinst install; do
2362      for ac_exec_ext in '' $ac_executable_extensions; do
2363	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2364	  if test $ac_prog = install &&
2365	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2366	    # AIX install.  It has an incompatible calling convention.
2367	    :
2368	  elif test $ac_prog = install &&
2369	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2370	    # program-specific install script used by HP pwplus--don't use.
2371	    :
2372	  else
2373	    rm -rf conftest.one conftest.two conftest.dir
2374	    echo one > conftest.one
2375	    echo two > conftest.two
2376	    mkdir conftest.dir
2377	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2378	      test -s conftest.one && test -s conftest.two &&
2379	      test -s conftest.dir/conftest.one &&
2380	      test -s conftest.dir/conftest.two
2381	    then
2382	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2383	      break 3
2384	    fi
2385	  fi
2386	fi
2387      done
2388    done
2389    ;;
2390esac
2391
2392  done
2393IFS=$as_save_IFS
2394
2395rm -rf conftest.one conftest.two conftest.dir
2396
2397fi
2398  if test "${ac_cv_path_install+set}" = set; then
2399    INSTALL=$ac_cv_path_install
2400  else
2401    # As a last resort, use the slow shell script.  Don't cache a
2402    # value for INSTALL within a source directory, because that will
2403    # break other packages using the cache if that directory is
2404    # removed, or if the value is a relative name.
2405    INSTALL=$ac_install_sh
2406  fi
2407fi
2408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2409$as_echo "$INSTALL" >&6; }
2410
2411# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2412# It thinks the first close brace ends the variable substitution.
2413test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2414
2415test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2416
2417test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2418
2419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2420$as_echo_n "checking whether build environment is sane... " >&6; }
2421# Reject unsafe characters in $srcdir or the absolute working directory
2422# name.  Accept space and tab only in the latter.
2423am_lf='
2424'
2425case `pwd` in
2426  *[\\\"\#\$\&\'\`$am_lf]*)
2427    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2428esac
2429case $srcdir in
2430  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2431    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2432esac
2433
2434# Do 'set' in a subshell so we don't clobber the current shell's
2435# arguments.  Must try -L first in case configure is actually a
2436# symlink; some systems play weird games with the mod time of symlinks
2437# (eg FreeBSD returns the mod time of the symlink's containing
2438# directory).
2439if (
2440   am_has_slept=no
2441   for am_try in 1 2; do
2442     echo "timestamp, slept: $am_has_slept" > conftest.file
2443     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2444     if test "$*" = "X"; then
2445	# -L didn't work.
2446	set X `ls -t "$srcdir/configure" conftest.file`
2447     fi
2448     if test "$*" != "X $srcdir/configure conftest.file" \
2449	&& test "$*" != "X conftest.file $srcdir/configure"; then
2450
2451	# If neither matched, then we have a broken ls.  This can happen
2452	# if, for instance, CONFIG_SHELL is bash and it inherits a
2453	# broken ls alias from the environment.  This has actually
2454	# happened.  Such a system could not be considered "sane".
2455	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2456  alias in your environment" "$LINENO" 5
2457     fi
2458     if test "$2" = conftest.file || test $am_try -eq 2; then
2459       break
2460     fi
2461     # Just in case.
2462     sleep 1
2463     am_has_slept=yes
2464   done
2465   test "$2" = conftest.file
2466   )
2467then
2468   # Ok.
2469   :
2470else
2471   as_fn_error $? "newly created file is older than distributed files!
2472Check your system clock" "$LINENO" 5
2473fi
2474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2475$as_echo "yes" >&6; }
2476# If we didn't sleep, we still need to ensure time stamps of config.status and
2477# generated files are strictly newer.
2478am_sleep_pid=
2479if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2480  ( sleep 1 ) &
2481  am_sleep_pid=$!
2482fi
2483
2484rm -f conftest.file
2485
2486test "$program_prefix" != NONE &&
2487  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2488# Use a double $ so make ignores it.
2489test "$program_suffix" != NONE &&
2490  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2491# Double any \ or $.
2492# By default was `s,x,x', remove it if useless.
2493ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2494program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2495
2496# expand $ac_aux_dir to an absolute path
2497am_aux_dir=`cd $ac_aux_dir && pwd`
2498
2499if test x"${MISSING+set}" != xset; then
2500  case $am_aux_dir in
2501  *\ * | *\	*)
2502    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2503  *)
2504    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2505  esac
2506fi
2507# Use eval to expand $SHELL
2508if eval "$MISSING --run true"; then
2509  am_missing_run="$MISSING --run "
2510else
2511  am_missing_run=
2512  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2513$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2514fi
2515
2516if test x"${install_sh}" != xset; then
2517  case $am_aux_dir in
2518  *\ * | *\	*)
2519    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2520  *)
2521    install_sh="\${SHELL} $am_aux_dir/install-sh"
2522  esac
2523fi
2524
2525# Installed binaries are usually stripped using 'strip' when the user
2526# run "make install-strip".  However 'strip' might not be the right
2527# tool to use in cross-compilation environments, therefore Automake
2528# will honor the 'STRIP' environment variable to overrule this program.
2529if test "$cross_compiling" != no; then
2530  if test -n "$ac_tool_prefix"; then
2531  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2532set dummy ${ac_tool_prefix}strip; ac_word=$2
2533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2534$as_echo_n "checking for $ac_word... " >&6; }
2535if ${ac_cv_prog_STRIP+:} false; then :
2536  $as_echo_n "(cached) " >&6
2537else
2538  if test -n "$STRIP"; then
2539  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2540else
2541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2542for as_dir in $PATH
2543do
2544  IFS=$as_save_IFS
2545  test -z "$as_dir" && as_dir=.
2546    for ac_exec_ext in '' $ac_executable_extensions; do
2547  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2548    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2549    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2550    break 2
2551  fi
2552done
2553  done
2554IFS=$as_save_IFS
2555
2556fi
2557fi
2558STRIP=$ac_cv_prog_STRIP
2559if test -n "$STRIP"; then
2560  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2561$as_echo "$STRIP" >&6; }
2562else
2563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2564$as_echo "no" >&6; }
2565fi
2566
2567
2568fi
2569if test -z "$ac_cv_prog_STRIP"; then
2570  ac_ct_STRIP=$STRIP
2571  # Extract the first word of "strip", so it can be a program name with args.
2572set dummy strip; ac_word=$2
2573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2574$as_echo_n "checking for $ac_word... " >&6; }
2575if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2576  $as_echo_n "(cached) " >&6
2577else
2578  if test -n "$ac_ct_STRIP"; then
2579  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2580else
2581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2582for as_dir in $PATH
2583do
2584  IFS=$as_save_IFS
2585  test -z "$as_dir" && as_dir=.
2586    for ac_exec_ext in '' $ac_executable_extensions; do
2587  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2588    ac_cv_prog_ac_ct_STRIP="strip"
2589    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2590    break 2
2591  fi
2592done
2593  done
2594IFS=$as_save_IFS
2595
2596fi
2597fi
2598ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2599if test -n "$ac_ct_STRIP"; then
2600  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2601$as_echo "$ac_ct_STRIP" >&6; }
2602else
2603  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2604$as_echo "no" >&6; }
2605fi
2606
2607  if test "x$ac_ct_STRIP" = x; then
2608    STRIP=":"
2609  else
2610    case $cross_compiling:$ac_tool_warned in
2611yes:)
2612{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2613$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2614ac_tool_warned=yes ;;
2615esac
2616    STRIP=$ac_ct_STRIP
2617  fi
2618else
2619  STRIP="$ac_cv_prog_STRIP"
2620fi
2621
2622fi
2623INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2624
2625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2626$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2627if test -z "$MKDIR_P"; then
2628  if ${ac_cv_path_mkdir+:} false; then :
2629  $as_echo_n "(cached) " >&6
2630else
2631  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2632for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2633do
2634  IFS=$as_save_IFS
2635  test -z "$as_dir" && as_dir=.
2636    for ac_prog in mkdir gmkdir; do
2637	 for ac_exec_ext in '' $ac_executable_extensions; do
2638	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2639	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2640	     'mkdir (GNU coreutils) '* | \
2641	     'mkdir (coreutils) '* | \
2642	     'mkdir (fileutils) '4.1*)
2643	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2644	       break 3;;
2645	   esac
2646	 done
2647       done
2648  done
2649IFS=$as_save_IFS
2650
2651fi
2652
2653  test -d ./--version && rmdir ./--version
2654  if test "${ac_cv_path_mkdir+set}" = set; then
2655    MKDIR_P="$ac_cv_path_mkdir -p"
2656  else
2657    # As a last resort, use the slow shell script.  Don't cache a
2658    # value for MKDIR_P within a source directory, because that will
2659    # break other packages using the cache if that directory is
2660    # removed, or if the value is a relative name.
2661    MKDIR_P="$ac_install_sh -d"
2662  fi
2663fi
2664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2665$as_echo "$MKDIR_P" >&6; }
2666
2667for ac_prog in mawk gawk nawk awk
2668do
2669  # Extract the first word of "$ac_prog", so it can be a program name with args.
2670set dummy $ac_prog; ac_word=$2
2671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2672$as_echo_n "checking for $ac_word... " >&6; }
2673if ${ac_cv_prog_AWK+:} false; then :
2674  $as_echo_n "(cached) " >&6
2675else
2676  if test -n "$AWK"; then
2677  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2678else
2679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2680for as_dir in $PATH
2681do
2682  IFS=$as_save_IFS
2683  test -z "$as_dir" && as_dir=.
2684    for ac_exec_ext in '' $ac_executable_extensions; do
2685  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2686    ac_cv_prog_AWK="$ac_prog"
2687    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2688    break 2
2689  fi
2690done
2691  done
2692IFS=$as_save_IFS
2693
2694fi
2695fi
2696AWK=$ac_cv_prog_AWK
2697if test -n "$AWK"; then
2698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2699$as_echo "$AWK" >&6; }
2700else
2701  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2702$as_echo "no" >&6; }
2703fi
2704
2705
2706  test -n "$AWK" && break
2707done
2708
2709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2710$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2711set x ${MAKE-make}
2712ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2713if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2714  $as_echo_n "(cached) " >&6
2715else
2716  cat >conftest.make <<\_ACEOF
2717SHELL = /bin/sh
2718all:
2719	@echo '@@@%%%=$(MAKE)=@@@%%%'
2720_ACEOF
2721# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2722case `${MAKE-make} -f conftest.make 2>/dev/null` in
2723  *@@@%%%=?*=@@@%%%*)
2724    eval ac_cv_prog_make_${ac_make}_set=yes;;
2725  *)
2726    eval ac_cv_prog_make_${ac_make}_set=no;;
2727esac
2728rm -f conftest.make
2729fi
2730if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2731  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2732$as_echo "yes" >&6; }
2733  SET_MAKE=
2734else
2735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2736$as_echo "no" >&6; }
2737  SET_MAKE="MAKE=${MAKE-make}"
2738fi
2739
2740rm -rf .tst 2>/dev/null
2741mkdir .tst 2>/dev/null
2742if test -d .tst; then
2743  am__leading_dot=.
2744else
2745  am__leading_dot=_
2746fi
2747rmdir .tst 2>/dev/null
2748
2749if test "`cd $srcdir && pwd`" != "`pwd`"; then
2750  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2751  # is not polluted with repeated "-I."
2752  am__isrc=' -I$(srcdir)'
2753  # test to see if srcdir already configured
2754  if test -f $srcdir/config.status; then
2755    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2756  fi
2757fi
2758
2759# test whether we have cygpath
2760if test -z "$CYGPATH_W"; then
2761  if (cygpath --version) >/dev/null 2>/dev/null; then
2762    CYGPATH_W='cygpath -w'
2763  else
2764    CYGPATH_W=echo
2765  fi
2766fi
2767
2768
2769# Define the identity of the package.
2770 PACKAGE='libxode'
2771 VERSION='1.2-jggtrans'
2772
2773
2774cat >>confdefs.h <<_ACEOF
2775#define PACKAGE "$PACKAGE"
2776_ACEOF
2777
2778
2779cat >>confdefs.h <<_ACEOF
2780#define VERSION "$VERSION"
2781_ACEOF
2782
2783# Some tools Automake needs.
2784
2785ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2786
2787
2788AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2789
2790
2791AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2792
2793
2794AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2795
2796
2797MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2798
2799# For better backward compatibility.  To be removed once Automake 1.9.x
2800# dies out for good.  For more background, see:
2801# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2802# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2803mkdir_p='$(MKDIR_P)'
2804
2805# We need awk for the "check" target.  The system "awk" is bad on
2806# some platforms.
2807# Always define AMTAR for backward compatibility.  Yes, it's still used
2808# in the wild :-(  We should find a proper way to deprecate it ...
2809AMTAR='$${TAR-tar}'
2810
2811am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2812
2813
2814
2815
2816
2817ac_config_headers="$ac_config_headers include/config.h"
2818
2819
2820# Check whether --enable-shared was given.
2821if test "${enable_shared+set}" = set; then :
2822  enableval=$enable_shared; p=${PACKAGE-default}
2823    case $enableval in
2824    yes) enable_shared=yes ;;
2825    no) enable_shared=no ;;
2826    *)
2827      enable_shared=no
2828      # Look at the argument we got.  We use all the common list separators.
2829      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2830      for pkg in $enableval; do
2831	IFS="$lt_save_ifs"
2832	if test "X$pkg" = "X$p"; then
2833	  enable_shared=yes
2834	fi
2835      done
2836      IFS="$lt_save_ifs"
2837      ;;
2838    esac
2839else
2840  enable_shared=no
2841fi
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851# Check whether --enable-static was given.
2852if test "${enable_static+set}" = set; then :
2853  enableval=$enable_static; p=${PACKAGE-default}
2854    case $enableval in
2855    yes) enable_static=yes ;;
2856    no) enable_static=no ;;
2857    *)
2858     enable_static=no
2859      # Look at the argument we got.  We use all the common list separators.
2860      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2861      for pkg in $enableval; do
2862	IFS="$lt_save_ifs"
2863	if test "X$pkg" = "X$p"; then
2864	  enable_static=yes
2865	fi
2866      done
2867      IFS="$lt_save_ifs"
2868      ;;
2869    esac
2870else
2871  enable_static=yes
2872fi
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883ac_ext=c
2884ac_cpp='$CPP $CPPFLAGS'
2885ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2886ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2887ac_compiler_gnu=$ac_cv_c_compiler_gnu
2888if test -n "$ac_tool_prefix"; then
2889  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2890set dummy ${ac_tool_prefix}gcc; ac_word=$2
2891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2892$as_echo_n "checking for $ac_word... " >&6; }
2893if ${ac_cv_prog_CC+:} false; then :
2894  $as_echo_n "(cached) " >&6
2895else
2896  if test -n "$CC"; then
2897  ac_cv_prog_CC="$CC" # Let the user override the test.
2898else
2899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2900for as_dir in $PATH
2901do
2902  IFS=$as_save_IFS
2903  test -z "$as_dir" && as_dir=.
2904    for ac_exec_ext in '' $ac_executable_extensions; do
2905  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2906    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2907    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2908    break 2
2909  fi
2910done
2911  done
2912IFS=$as_save_IFS
2913
2914fi
2915fi
2916CC=$ac_cv_prog_CC
2917if test -n "$CC"; then
2918  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2919$as_echo "$CC" >&6; }
2920else
2921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2922$as_echo "no" >&6; }
2923fi
2924
2925
2926fi
2927if test -z "$ac_cv_prog_CC"; then
2928  ac_ct_CC=$CC
2929  # Extract the first word of "gcc", so it can be a program name with args.
2930set dummy gcc; ac_word=$2
2931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2932$as_echo_n "checking for $ac_word... " >&6; }
2933if ${ac_cv_prog_ac_ct_CC+:} false; then :
2934  $as_echo_n "(cached) " >&6
2935else
2936  if test -n "$ac_ct_CC"; then
2937  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2938else
2939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2940for as_dir in $PATH
2941do
2942  IFS=$as_save_IFS
2943  test -z "$as_dir" && as_dir=.
2944    for ac_exec_ext in '' $ac_executable_extensions; do
2945  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2946    ac_cv_prog_ac_ct_CC="gcc"
2947    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2948    break 2
2949  fi
2950done
2951  done
2952IFS=$as_save_IFS
2953
2954fi
2955fi
2956ac_ct_CC=$ac_cv_prog_ac_ct_CC
2957if test -n "$ac_ct_CC"; then
2958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2959$as_echo "$ac_ct_CC" >&6; }
2960else
2961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2962$as_echo "no" >&6; }
2963fi
2964
2965  if test "x$ac_ct_CC" = x; then
2966    CC=""
2967  else
2968    case $cross_compiling:$ac_tool_warned in
2969yes:)
2970{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2971$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2972ac_tool_warned=yes ;;
2973esac
2974    CC=$ac_ct_CC
2975  fi
2976else
2977  CC="$ac_cv_prog_CC"
2978fi
2979
2980if test -z "$CC"; then
2981          if test -n "$ac_tool_prefix"; then
2982    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2983set dummy ${ac_tool_prefix}cc; ac_word=$2
2984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2985$as_echo_n "checking for $ac_word... " >&6; }
2986if ${ac_cv_prog_CC+:} false; then :
2987  $as_echo_n "(cached) " >&6
2988else
2989  if test -n "$CC"; then
2990  ac_cv_prog_CC="$CC" # Let the user override the test.
2991else
2992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993for as_dir in $PATH
2994do
2995  IFS=$as_save_IFS
2996  test -z "$as_dir" && as_dir=.
2997    for ac_exec_ext in '' $ac_executable_extensions; do
2998  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2999    ac_cv_prog_CC="${ac_tool_prefix}cc"
3000    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3001    break 2
3002  fi
3003done
3004  done
3005IFS=$as_save_IFS
3006
3007fi
3008fi
3009CC=$ac_cv_prog_CC
3010if test -n "$CC"; then
3011  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3012$as_echo "$CC" >&6; }
3013else
3014  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3015$as_echo "no" >&6; }
3016fi
3017
3018
3019  fi
3020fi
3021if test -z "$CC"; then
3022  # Extract the first word of "cc", so it can be a program name with args.
3023set dummy cc; ac_word=$2
3024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3025$as_echo_n "checking for $ac_word... " >&6; }
3026if ${ac_cv_prog_CC+:} false; then :
3027  $as_echo_n "(cached) " >&6
3028else
3029  if test -n "$CC"; then
3030  ac_cv_prog_CC="$CC" # Let the user override the test.
3031else
3032  ac_prog_rejected=no
3033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3034for as_dir in $PATH
3035do
3036  IFS=$as_save_IFS
3037  test -z "$as_dir" && as_dir=.
3038    for ac_exec_ext in '' $ac_executable_extensions; do
3039  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3040    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3041       ac_prog_rejected=yes
3042       continue
3043     fi
3044    ac_cv_prog_CC="cc"
3045    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3046    break 2
3047  fi
3048done
3049  done
3050IFS=$as_save_IFS
3051
3052if test $ac_prog_rejected = yes; then
3053  # We found a bogon in the path, so make sure we never use it.
3054  set dummy $ac_cv_prog_CC
3055  shift
3056  if test $# != 0; then
3057    # We chose a different compiler from the bogus one.
3058    # However, it has the same basename, so the bogon will be chosen
3059    # first if we set CC to just the basename; use the full file name.
3060    shift
3061    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3062  fi
3063fi
3064fi
3065fi
3066CC=$ac_cv_prog_CC
3067if test -n "$CC"; then
3068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3069$as_echo "$CC" >&6; }
3070else
3071  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3072$as_echo "no" >&6; }
3073fi
3074
3075
3076fi
3077if test -z "$CC"; then
3078  if test -n "$ac_tool_prefix"; then
3079  for ac_prog in cl.exe
3080  do
3081    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3082set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3084$as_echo_n "checking for $ac_word... " >&6; }
3085if ${ac_cv_prog_CC+:} false; then :
3086  $as_echo_n "(cached) " >&6
3087else
3088  if test -n "$CC"; then
3089  ac_cv_prog_CC="$CC" # Let the user override the test.
3090else
3091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092for as_dir in $PATH
3093do
3094  IFS=$as_save_IFS
3095  test -z "$as_dir" && as_dir=.
3096    for ac_exec_ext in '' $ac_executable_extensions; do
3097  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3098    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3099    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3100    break 2
3101  fi
3102done
3103  done
3104IFS=$as_save_IFS
3105
3106fi
3107fi
3108CC=$ac_cv_prog_CC
3109if test -n "$CC"; then
3110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3111$as_echo "$CC" >&6; }
3112else
3113  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3114$as_echo "no" >&6; }
3115fi
3116
3117
3118    test -n "$CC" && break
3119  done
3120fi
3121if test -z "$CC"; then
3122  ac_ct_CC=$CC
3123  for ac_prog in cl.exe
3124do
3125  # Extract the first word of "$ac_prog", so it can be a program name with args.
3126set dummy $ac_prog; ac_word=$2
3127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3128$as_echo_n "checking for $ac_word... " >&6; }
3129if ${ac_cv_prog_ac_ct_CC+:} false; then :
3130  $as_echo_n "(cached) " >&6
3131else
3132  if test -n "$ac_ct_CC"; then
3133  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3134else
3135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3136for as_dir in $PATH
3137do
3138  IFS=$as_save_IFS
3139  test -z "$as_dir" && as_dir=.
3140    for ac_exec_ext in '' $ac_executable_extensions; do
3141  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3142    ac_cv_prog_ac_ct_CC="$ac_prog"
3143    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3144    break 2
3145  fi
3146done
3147  done
3148IFS=$as_save_IFS
3149
3150fi
3151fi
3152ac_ct_CC=$ac_cv_prog_ac_ct_CC
3153if test -n "$ac_ct_CC"; then
3154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3155$as_echo "$ac_ct_CC" >&6; }
3156else
3157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3158$as_echo "no" >&6; }
3159fi
3160
3161
3162  test -n "$ac_ct_CC" && break
3163done
3164
3165  if test "x$ac_ct_CC" = x; then
3166    CC=""
3167  else
3168    case $cross_compiling:$ac_tool_warned in
3169yes:)
3170{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3171$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3172ac_tool_warned=yes ;;
3173esac
3174    CC=$ac_ct_CC
3175  fi
3176fi
3177
3178fi
3179
3180
3181test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3182$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3183as_fn_error $? "no acceptable C compiler found in \$PATH
3184See \`config.log' for more details" "$LINENO" 5; }
3185
3186# Provide some information about the compiler.
3187$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3188set X $ac_compile
3189ac_compiler=$2
3190for ac_option in --version -v -V -qversion; do
3191  { { ac_try="$ac_compiler $ac_option >&5"
3192case "(($ac_try" in
3193  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194  *) ac_try_echo=$ac_try;;
3195esac
3196eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3197$as_echo "$ac_try_echo"; } >&5
3198  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3199  ac_status=$?
3200  if test -s conftest.err; then
3201    sed '10a\
3202... rest of stderr output deleted ...
3203         10q' conftest.err >conftest.er1
3204    cat conftest.er1 >&5
3205  fi
3206  rm -f conftest.er1 conftest.err
3207  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3208  test $ac_status = 0; }
3209done
3210
3211cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3212/* end confdefs.h.  */
3213
3214int
3215main ()
3216{
3217
3218  ;
3219  return 0;
3220}
3221_ACEOF
3222ac_clean_files_save=$ac_clean_files
3223ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3224# Try to create an executable without -o first, disregard a.out.
3225# It will help us diagnose broken compilers, and finding out an intuition
3226# of exeext.
3227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3228$as_echo_n "checking whether the C compiler works... " >&6; }
3229ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3230
3231# The possible output files:
3232ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3233
3234ac_rmfiles=
3235for ac_file in $ac_files
3236do
3237  case $ac_file in
3238    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3239    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3240  esac
3241done
3242rm -f $ac_rmfiles
3243
3244if { { ac_try="$ac_link_default"
3245case "(($ac_try" in
3246  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3247  *) ac_try_echo=$ac_try;;
3248esac
3249eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3250$as_echo "$ac_try_echo"; } >&5
3251  (eval "$ac_link_default") 2>&5
3252  ac_status=$?
3253  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3254  test $ac_status = 0; }; then :
3255  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3256# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3257# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3258# so that the user can short-circuit this test for compilers unknown to
3259# Autoconf.
3260for ac_file in $ac_files ''
3261do
3262  test -f "$ac_file" || continue
3263  case $ac_file in
3264    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3265	;;
3266    [ab].out )
3267	# We found the default executable, but exeext='' is most
3268	# certainly right.
3269	break;;
3270    *.* )
3271	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3272	then :; else
3273	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3274	fi
3275	# We set ac_cv_exeext here because the later test for it is not
3276	# safe: cross compilers may not add the suffix if given an `-o'
3277	# argument, so we may need to know it at that point already.
3278	# Even if this section looks crufty: it has the advantage of
3279	# actually working.
3280	break;;
3281    * )
3282	break;;
3283  esac
3284done
3285test "$ac_cv_exeext" = no && ac_cv_exeext=
3286
3287else
3288  ac_file=''
3289fi
3290if test -z "$ac_file"; then :
3291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3292$as_echo "no" >&6; }
3293$as_echo "$as_me: failed program was:" >&5
3294sed 's/^/| /' conftest.$ac_ext >&5
3295
3296{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3297$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3298as_fn_error 77 "C compiler cannot create executables
3299See \`config.log' for more details" "$LINENO" 5; }
3300else
3301  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3302$as_echo "yes" >&6; }
3303fi
3304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3305$as_echo_n "checking for C compiler default output file name... " >&6; }
3306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3307$as_echo "$ac_file" >&6; }
3308ac_exeext=$ac_cv_exeext
3309
3310rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3311ac_clean_files=$ac_clean_files_save
3312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3313$as_echo_n "checking for suffix of executables... " >&6; }
3314if { { ac_try="$ac_link"
3315case "(($ac_try" in
3316  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317  *) ac_try_echo=$ac_try;;
3318esac
3319eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3320$as_echo "$ac_try_echo"; } >&5
3321  (eval "$ac_link") 2>&5
3322  ac_status=$?
3323  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3324  test $ac_status = 0; }; then :
3325  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3326# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3327# work properly (i.e., refer to `conftest.exe'), while it won't with
3328# `rm'.
3329for ac_file in conftest.exe conftest conftest.*; do
3330  test -f "$ac_file" || continue
3331  case $ac_file in
3332    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3333    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3334	  break;;
3335    * ) break;;
3336  esac
3337done
3338else
3339  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3340$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3341as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3342See \`config.log' for more details" "$LINENO" 5; }
3343fi
3344rm -f conftest conftest$ac_cv_exeext
3345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3346$as_echo "$ac_cv_exeext" >&6; }
3347
3348rm -f conftest.$ac_ext
3349EXEEXT=$ac_cv_exeext
3350ac_exeext=$EXEEXT
3351cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3352/* end confdefs.h.  */
3353#include <stdio.h>
3354int
3355main ()
3356{
3357FILE *f = fopen ("conftest.out", "w");
3358 return ferror (f) || fclose (f) != 0;
3359
3360  ;
3361  return 0;
3362}
3363_ACEOF
3364ac_clean_files="$ac_clean_files conftest.out"
3365# Check that the compiler produces executables we can run.  If not, either
3366# the compiler is broken, or we cross compile.
3367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3368$as_echo_n "checking whether we are cross compiling... " >&6; }
3369if test "$cross_compiling" != yes; then
3370  { { ac_try="$ac_link"
3371case "(($ac_try" in
3372  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3373  *) ac_try_echo=$ac_try;;
3374esac
3375eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3376$as_echo "$ac_try_echo"; } >&5
3377  (eval "$ac_link") 2>&5
3378  ac_status=$?
3379  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3380  test $ac_status = 0; }
3381  if { ac_try='./conftest$ac_cv_exeext'
3382  { { case "(($ac_try" in
3383  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384  *) ac_try_echo=$ac_try;;
3385esac
3386eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3387$as_echo "$ac_try_echo"; } >&5
3388  (eval "$ac_try") 2>&5
3389  ac_status=$?
3390  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3391  test $ac_status = 0; }; }; then
3392    cross_compiling=no
3393  else
3394    if test "$cross_compiling" = maybe; then
3395	cross_compiling=yes
3396    else
3397	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3398$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3399as_fn_error $? "cannot run C compiled programs.
3400If you meant to cross compile, use \`--host'.
3401See \`config.log' for more details" "$LINENO" 5; }
3402    fi
3403  fi
3404fi
3405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3406$as_echo "$cross_compiling" >&6; }
3407
3408rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3409ac_clean_files=$ac_clean_files_save
3410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3411$as_echo_n "checking for suffix of object files... " >&6; }
3412if ${ac_cv_objext+:} false; then :
3413  $as_echo_n "(cached) " >&6
3414else
3415  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3416/* end confdefs.h.  */
3417
3418int
3419main ()
3420{
3421
3422  ;
3423  return 0;
3424}
3425_ACEOF
3426rm -f conftest.o conftest.obj
3427if { { ac_try="$ac_compile"
3428case "(($ac_try" in
3429  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430  *) ac_try_echo=$ac_try;;
3431esac
3432eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3433$as_echo "$ac_try_echo"; } >&5
3434  (eval "$ac_compile") 2>&5
3435  ac_status=$?
3436  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3437  test $ac_status = 0; }; then :
3438  for ac_file in conftest.o conftest.obj conftest.*; do
3439  test -f "$ac_file" || continue;
3440  case $ac_file in
3441    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3442    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3443       break;;
3444  esac
3445done
3446else
3447  $as_echo "$as_me: failed program was:" >&5
3448sed 's/^/| /' conftest.$ac_ext >&5
3449
3450{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3451$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3452as_fn_error $? "cannot compute suffix of object files: cannot compile
3453See \`config.log' for more details" "$LINENO" 5; }
3454fi
3455rm -f conftest.$ac_cv_objext conftest.$ac_ext
3456fi
3457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3458$as_echo "$ac_cv_objext" >&6; }
3459OBJEXT=$ac_cv_objext
3460ac_objext=$OBJEXT
3461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3462$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3463if ${ac_cv_c_compiler_gnu+:} false; then :
3464  $as_echo_n "(cached) " >&6
3465else
3466  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3467/* end confdefs.h.  */
3468
3469int
3470main ()
3471{
3472#ifndef __GNUC__
3473       choke me
3474#endif
3475
3476  ;
3477  return 0;
3478}
3479_ACEOF
3480if ac_fn_c_try_compile "$LINENO"; then :
3481  ac_compiler_gnu=yes
3482else
3483  ac_compiler_gnu=no
3484fi
3485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3486ac_cv_c_compiler_gnu=$ac_compiler_gnu
3487
3488fi
3489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3490$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3491if test $ac_compiler_gnu = yes; then
3492  GCC=yes
3493else
3494  GCC=
3495fi
3496ac_test_CFLAGS=${CFLAGS+set}
3497ac_save_CFLAGS=$CFLAGS
3498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3499$as_echo_n "checking whether $CC accepts -g... " >&6; }
3500if ${ac_cv_prog_cc_g+:} false; then :
3501  $as_echo_n "(cached) " >&6
3502else
3503  ac_save_c_werror_flag=$ac_c_werror_flag
3504   ac_c_werror_flag=yes
3505   ac_cv_prog_cc_g=no
3506   CFLAGS="-g"
3507   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3508/* end confdefs.h.  */
3509
3510int
3511main ()
3512{
3513
3514  ;
3515  return 0;
3516}
3517_ACEOF
3518if ac_fn_c_try_compile "$LINENO"; then :
3519  ac_cv_prog_cc_g=yes
3520else
3521  CFLAGS=""
3522      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3523/* end confdefs.h.  */
3524
3525int
3526main ()
3527{
3528
3529  ;
3530  return 0;
3531}
3532_ACEOF
3533if ac_fn_c_try_compile "$LINENO"; then :
3534
3535else
3536  ac_c_werror_flag=$ac_save_c_werror_flag
3537	 CFLAGS="-g"
3538	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3539/* end confdefs.h.  */
3540
3541int
3542main ()
3543{
3544
3545  ;
3546  return 0;
3547}
3548_ACEOF
3549if ac_fn_c_try_compile "$LINENO"; then :
3550  ac_cv_prog_cc_g=yes
3551fi
3552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3553fi
3554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3555fi
3556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3557   ac_c_werror_flag=$ac_save_c_werror_flag
3558fi
3559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3560$as_echo "$ac_cv_prog_cc_g" >&6; }
3561if test "$ac_test_CFLAGS" = set; then
3562  CFLAGS=$ac_save_CFLAGS
3563elif test $ac_cv_prog_cc_g = yes; then
3564  if test "$GCC" = yes; then
3565    CFLAGS="-g -O2"
3566  else
3567    CFLAGS="-g"
3568  fi
3569else
3570  if test "$GCC" = yes; then
3571    CFLAGS="-O2"
3572  else
3573    CFLAGS=
3574  fi
3575fi
3576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3577$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3578if ${ac_cv_prog_cc_c89+:} false; then :
3579  $as_echo_n "(cached) " >&6
3580else
3581  ac_cv_prog_cc_c89=no
3582ac_save_CC=$CC
3583cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3584/* end confdefs.h.  */
3585#include <stdarg.h>
3586#include <stdio.h>
3587struct stat;
3588/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3589struct buf { int x; };
3590FILE * (*rcsopen) (struct buf *, struct stat *, int);
3591static char *e (p, i)
3592     char **p;
3593     int i;
3594{
3595  return p[i];
3596}
3597static char *f (char * (*g) (char **, int), char **p, ...)
3598{
3599  char *s;
3600  va_list v;
3601  va_start (v,p);
3602  s = g (p, va_arg (v,int));
3603  va_end (v);
3604  return s;
3605}
3606
3607/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3608   function prototypes and stuff, but not '\xHH' hex character constants.
3609   These don't provoke an error unfortunately, instead are silently treated
3610   as 'x'.  The following induces an error, until -std is added to get
3611   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3612   array size at least.  It's necessary to write '\x00'==0 to get something
3613   that's true only with -std.  */
3614int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3615
3616/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3617   inside strings and character constants.  */
3618#define FOO(x) 'x'
3619int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3620
3621int test (int i, double x);
3622struct s1 {int (*f) (int a);};
3623struct s2 {int (*f) (double a);};
3624int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3625int argc;
3626char **argv;
3627int
3628main ()
3629{
3630return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3631  ;
3632  return 0;
3633}
3634_ACEOF
3635for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3636	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3637do
3638  CC="$ac_save_CC $ac_arg"
3639  if ac_fn_c_try_compile "$LINENO"; then :
3640  ac_cv_prog_cc_c89=$ac_arg
3641fi
3642rm -f core conftest.err conftest.$ac_objext
3643  test "x$ac_cv_prog_cc_c89" != "xno" && break
3644done
3645rm -f conftest.$ac_ext
3646CC=$ac_save_CC
3647
3648fi
3649# AC_CACHE_VAL
3650case "x$ac_cv_prog_cc_c89" in
3651  x)
3652    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3653$as_echo "none needed" >&6; } ;;
3654  xno)
3655    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3656$as_echo "unsupported" >&6; } ;;
3657  *)
3658    CC="$CC $ac_cv_prog_cc_c89"
3659    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3660$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3661esac
3662if test "x$ac_cv_prog_cc_c89" != xno; then :
3663
3664fi
3665
3666ac_ext=c
3667ac_cpp='$CPP $CPPFLAGS'
3668ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3669ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3670ac_compiler_gnu=$ac_cv_c_compiler_gnu
3671DEPDIR="${am__leading_dot}deps"
3672
3673ac_config_commands="$ac_config_commands depfiles"
3674
3675
3676am_make=${MAKE-make}
3677cat > confinc << 'END'
3678am__doit:
3679	@echo this is the am__doit target
3680.PHONY: am__doit
3681END
3682# If we don't find an include directive, just comment out the code.
3683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3684$as_echo_n "checking for style of include used by $am_make... " >&6; }
3685am__include="#"
3686am__quote=
3687_am_result=none
3688# First try GNU make style include.
3689echo "include confinc" > confmf
3690# Ignore all kinds of additional output from 'make'.
3691case `$am_make -s -f confmf 2> /dev/null` in #(
3692*the\ am__doit\ target*)
3693  am__include=include
3694  am__quote=
3695  _am_result=GNU
3696  ;;
3697esac
3698# Now try BSD make style include.
3699if test "$am__include" = "#"; then
3700   echo '.include "confinc"' > confmf
3701   case `$am_make -s -f confmf 2> /dev/null` in #(
3702   *the\ am__doit\ target*)
3703     am__include=.include
3704     am__quote="\""
3705     _am_result=BSD
3706     ;;
3707   esac
3708fi
3709
3710
3711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3712$as_echo "$_am_result" >&6; }
3713rm -f confinc confmf
3714
3715# Check whether --enable-dependency-tracking was given.
3716if test "${enable_dependency_tracking+set}" = set; then :
3717  enableval=$enable_dependency_tracking;
3718fi
3719
3720if test "x$enable_dependency_tracking" != xno; then
3721  am_depcomp="$ac_aux_dir/depcomp"
3722  AMDEPBACKSLASH='\'
3723  am__nodep='_no'
3724fi
3725 if test "x$enable_dependency_tracking" != xno; then
3726  AMDEP_TRUE=
3727  AMDEP_FALSE='#'
3728else
3729  AMDEP_TRUE='#'
3730  AMDEP_FALSE=
3731fi
3732
3733
3734
3735depcc="$CC"   am_compiler_list=
3736
3737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3738$as_echo_n "checking dependency style of $depcc... " >&6; }
3739if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3740  $as_echo_n "(cached) " >&6
3741else
3742  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3743  # We make a subdir and do the tests there.  Otherwise we can end up
3744  # making bogus files that we don't know about and never remove.  For
3745  # instance it was reported that on HP-UX the gcc test will end up
3746  # making a dummy file named 'D' -- because '-MD' means "put the output
3747  # in D".
3748  rm -rf conftest.dir
3749  mkdir conftest.dir
3750  # Copy depcomp to subdir because otherwise we won't find it if we're
3751  # using a relative directory.
3752  cp "$am_depcomp" conftest.dir
3753  cd conftest.dir
3754  # We will build objects and dependencies in a subdirectory because
3755  # it helps to detect inapplicable dependency modes.  For instance
3756  # both Tru64's cc and ICC support -MD to output dependencies as a
3757  # side effect of compilation, but ICC will put the dependencies in
3758  # the current directory while Tru64 will put them in the object
3759  # directory.
3760  mkdir sub
3761
3762  am_cv_CC_dependencies_compiler_type=none
3763  if test "$am_compiler_list" = ""; then
3764     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3765  fi
3766  am__universal=false
3767  case " $depcc " in #(
3768     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3769     esac
3770
3771  for depmode in $am_compiler_list; do
3772    # Setup a source with many dependencies, because some compilers
3773    # like to wrap large dependency lists on column 80 (with \), and
3774    # we should not choose a depcomp mode which is confused by this.
3775    #
3776    # We need to recreate these files for each test, as the compiler may
3777    # overwrite some of them when testing with obscure command lines.
3778    # This happens at least with the AIX C compiler.
3779    : > sub/conftest.c
3780    for i in 1 2 3 4 5 6; do
3781      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3782      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3783      # Solaris 10 /bin/sh.
3784      echo '/* dummy */' > sub/conftst$i.h
3785    done
3786    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3787
3788    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3789    # mode.  It turns out that the SunPro C++ compiler does not properly
3790    # handle '-M -o', and we need to detect this.  Also, some Intel
3791    # versions had trouble with output in subdirs.
3792    am__obj=sub/conftest.${OBJEXT-o}
3793    am__minus_obj="-o $am__obj"
3794    case $depmode in
3795    gcc)
3796      # This depmode causes a compiler race in universal mode.
3797      test "$am__universal" = false || continue
3798      ;;
3799    nosideeffect)
3800      # After this tag, mechanisms are not by side-effect, so they'll
3801      # only be used when explicitly requested.
3802      if test "x$enable_dependency_tracking" = xyes; then
3803	continue
3804      else
3805	break
3806      fi
3807      ;;
3808    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3809      # This compiler won't grok '-c -o', but also, the minuso test has
3810      # not run yet.  These depmodes are late enough in the game, and
3811      # so weak that their functioning should not be impacted.
3812      am__obj=conftest.${OBJEXT-o}
3813      am__minus_obj=
3814      ;;
3815    none) break ;;
3816    esac
3817    if depmode=$depmode \
3818       source=sub/conftest.c object=$am__obj \
3819       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3820       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3821         >/dev/null 2>conftest.err &&
3822       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3823       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3824       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3825       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3826      # icc doesn't choke on unknown options, it will just issue warnings
3827      # or remarks (even with -Werror).  So we grep stderr for any message
3828      # that says an option was ignored or not supported.
3829      # When given -MP, icc 7.0 and 7.1 complain thusly:
3830      #   icc: Command line warning: ignoring option '-M'; no argument required
3831      # The diagnosis changed in icc 8.0:
3832      #   icc: Command line remark: option '-MP' not supported
3833      if (grep 'ignoring option' conftest.err ||
3834          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3835        am_cv_CC_dependencies_compiler_type=$depmode
3836        break
3837      fi
3838    fi
3839  done
3840
3841  cd ..
3842  rm -rf conftest.dir
3843else
3844  am_cv_CC_dependencies_compiler_type=none
3845fi
3846
3847fi
3848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3849$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3850CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3851
3852 if
3853  test "x$enable_dependency_tracking" != xno \
3854  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3855  am__fastdepCC_TRUE=
3856  am__fastdepCC_FALSE='#'
3857else
3858  am__fastdepCC_TRUE='#'
3859  am__fastdepCC_FALSE=
3860fi
3861
3862
3863case `pwd` in
3864  *\ * | *\	*)
3865    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3866$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3867esac
3868
3869
3870
3871macro_version='2.4.2'
3872macro_revision='1.3337'
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886ltmain="$ac_aux_dir/ltmain.sh"
3887
3888# Make sure we can run config.sub.
3889$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3890  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3891
3892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3893$as_echo_n "checking build system type... " >&6; }
3894if ${ac_cv_build+:} false; then :
3895  $as_echo_n "(cached) " >&6
3896else
3897  ac_build_alias=$build_alias
3898test "x$ac_build_alias" = x &&
3899  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3900test "x$ac_build_alias" = x &&
3901  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3902ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3903  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3904
3905fi
3906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3907$as_echo "$ac_cv_build" >&6; }
3908case $ac_cv_build in
3909*-*-*) ;;
3910*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3911esac
3912build=$ac_cv_build
3913ac_save_IFS=$IFS; IFS='-'
3914set x $ac_cv_build
3915shift
3916build_cpu=$1
3917build_vendor=$2
3918shift; shift
3919# Remember, the first character of IFS is used to create $*,
3920# except with old shells:
3921build_os=$*
3922IFS=$ac_save_IFS
3923case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3924
3925
3926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3927$as_echo_n "checking host system type... " >&6; }
3928if ${ac_cv_host+:} false; then :
3929  $as_echo_n "(cached) " >&6
3930else
3931  if test "x$host_alias" = x; then
3932  ac_cv_host=$ac_cv_build
3933else
3934  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3935    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3936fi
3937
3938fi
3939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3940$as_echo "$ac_cv_host" >&6; }
3941case $ac_cv_host in
3942*-*-*) ;;
3943*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3944esac
3945host=$ac_cv_host
3946ac_save_IFS=$IFS; IFS='-'
3947set x $ac_cv_host
3948shift
3949host_cpu=$1
3950host_vendor=$2
3951shift; shift
3952# Remember, the first character of IFS is used to create $*,
3953# except with old shells:
3954host_os=$*
3955IFS=$ac_save_IFS
3956case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3957
3958
3959# Backslashify metacharacters that are still active within
3960# double-quoted strings.
3961sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3962
3963# Same as above, but do not quote variable references.
3964double_quote_subst='s/\(["`\\]\)/\\\1/g'
3965
3966# Sed substitution to delay expansion of an escaped shell variable in a
3967# double_quote_subst'ed string.
3968delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3969
3970# Sed substitution to delay expansion of an escaped single quote.
3971delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3972
3973# Sed substitution to avoid accidental globbing in evaled expressions
3974no_glob_subst='s/\*/\\\*/g'
3975
3976ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3977ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3978ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3979
3980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3981$as_echo_n "checking how to print strings... " >&6; }
3982# Test print first, because it will be a builtin if present.
3983if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3984   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3985  ECHO='print -r --'
3986elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3987  ECHO='printf %s\n'
3988else
3989  # Use this function as a fallback that always works.
3990  func_fallback_echo ()
3991  {
3992    eval 'cat <<_LTECHO_EOF
3993$1
3994_LTECHO_EOF'
3995  }
3996  ECHO='func_fallback_echo'
3997fi
3998
3999# func_echo_all arg...
4000# Invoke $ECHO with all args, space-separated.
4001func_echo_all ()
4002{
4003    $ECHO ""
4004}
4005
4006case "$ECHO" in
4007  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4008$as_echo "printf" >&6; } ;;
4009  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4010$as_echo "print -r" >&6; } ;;
4011  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4012$as_echo "cat" >&6; } ;;
4013esac
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4029$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4030if ${ac_cv_path_SED+:} false; then :
4031  $as_echo_n "(cached) " >&6
4032else
4033            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4034     for ac_i in 1 2 3 4 5 6 7; do
4035       ac_script="$ac_script$as_nl$ac_script"
4036     done
4037     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4038     { ac_script=; unset ac_script;}
4039     if test -z "$SED"; then
4040  ac_path_SED_found=false
4041  # Loop through the user's path and test for each of PROGNAME-LIST
4042  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4043for as_dir in $PATH
4044do
4045  IFS=$as_save_IFS
4046  test -z "$as_dir" && as_dir=.
4047    for ac_prog in sed gsed; do
4048    for ac_exec_ext in '' $ac_executable_extensions; do
4049      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4050      as_fn_executable_p "$ac_path_SED" || continue
4051# Check for GNU ac_path_SED and select it if it is found.
4052  # Check for GNU $ac_path_SED
4053case `"$ac_path_SED" --version 2>&1` in
4054*GNU*)
4055  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4056*)
4057  ac_count=0
4058  $as_echo_n 0123456789 >"conftest.in"
4059  while :
4060  do
4061    cat "conftest.in" "conftest.in" >"conftest.tmp"
4062    mv "conftest.tmp" "conftest.in"
4063    cp "conftest.in" "conftest.nl"
4064    $as_echo '' >> "conftest.nl"
4065    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4066    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4067    as_fn_arith $ac_count + 1 && ac_count=$as_val
4068    if test $ac_count -gt ${ac_path_SED_max-0}; then
4069      # Best one so far, save it but keep looking for a better one
4070      ac_cv_path_SED="$ac_path_SED"
4071      ac_path_SED_max=$ac_count
4072    fi
4073    # 10*(2^10) chars as input seems more than enough
4074    test $ac_count -gt 10 && break
4075  done
4076  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4077esac
4078
4079      $ac_path_SED_found && break 3
4080    done
4081  done
4082  done
4083IFS=$as_save_IFS
4084  if test -z "$ac_cv_path_SED"; then
4085    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4086  fi
4087else
4088  ac_cv_path_SED=$SED
4089fi
4090
4091fi
4092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4093$as_echo "$ac_cv_path_SED" >&6; }
4094 SED="$ac_cv_path_SED"
4095  rm -f conftest.sed
4096
4097test -z "$SED" && SED=sed
4098Xsed="$SED -e 1s/^X//"
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4111$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4112if ${ac_cv_path_GREP+:} false; then :
4113  $as_echo_n "(cached) " >&6
4114else
4115  if test -z "$GREP"; then
4116  ac_path_GREP_found=false
4117  # Loop through the user's path and test for each of PROGNAME-LIST
4118  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4119for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4120do
4121  IFS=$as_save_IFS
4122  test -z "$as_dir" && as_dir=.
4123    for ac_prog in grep ggrep; do
4124    for ac_exec_ext in '' $ac_executable_extensions; do
4125      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4126      as_fn_executable_p "$ac_path_GREP" || continue
4127# Check for GNU ac_path_GREP and select it if it is found.
4128  # Check for GNU $ac_path_GREP
4129case `"$ac_path_GREP" --version 2>&1` in
4130*GNU*)
4131  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4132*)
4133  ac_count=0
4134  $as_echo_n 0123456789 >"conftest.in"
4135  while :
4136  do
4137    cat "conftest.in" "conftest.in" >"conftest.tmp"
4138    mv "conftest.tmp" "conftest.in"
4139    cp "conftest.in" "conftest.nl"
4140    $as_echo 'GREP' >> "conftest.nl"
4141    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4142    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4143    as_fn_arith $ac_count + 1 && ac_count=$as_val
4144    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4145      # Best one so far, save it but keep looking for a better one
4146      ac_cv_path_GREP="$ac_path_GREP"
4147      ac_path_GREP_max=$ac_count
4148    fi
4149    # 10*(2^10) chars as input seems more than enough
4150    test $ac_count -gt 10 && break
4151  done
4152  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4153esac
4154
4155      $ac_path_GREP_found && break 3
4156    done
4157  done
4158  done
4159IFS=$as_save_IFS
4160  if test -z "$ac_cv_path_GREP"; then
4161    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4162  fi
4163else
4164  ac_cv_path_GREP=$GREP
4165fi
4166
4167fi
4168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4169$as_echo "$ac_cv_path_GREP" >&6; }
4170 GREP="$ac_cv_path_GREP"
4171
4172
4173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4174$as_echo_n "checking for egrep... " >&6; }
4175if ${ac_cv_path_EGREP+:} false; then :
4176  $as_echo_n "(cached) " >&6
4177else
4178  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4179   then ac_cv_path_EGREP="$GREP -E"
4180   else
4181     if test -z "$EGREP"; then
4182  ac_path_EGREP_found=false
4183  # Loop through the user's path and test for each of PROGNAME-LIST
4184  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4185for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4186do
4187  IFS=$as_save_IFS
4188  test -z "$as_dir" && as_dir=.
4189    for ac_prog in egrep; do
4190    for ac_exec_ext in '' $ac_executable_extensions; do
4191      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4192      as_fn_executable_p "$ac_path_EGREP" || continue
4193# Check for GNU ac_path_EGREP and select it if it is found.
4194  # Check for GNU $ac_path_EGREP
4195case `"$ac_path_EGREP" --version 2>&1` in
4196*GNU*)
4197  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4198*)
4199  ac_count=0
4200  $as_echo_n 0123456789 >"conftest.in"
4201  while :
4202  do
4203    cat "conftest.in" "conftest.in" >"conftest.tmp"
4204    mv "conftest.tmp" "conftest.in"
4205    cp "conftest.in" "conftest.nl"
4206    $as_echo 'EGREP' >> "conftest.nl"
4207    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4208    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4209    as_fn_arith $ac_count + 1 && ac_count=$as_val
4210    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4211      # Best one so far, save it but keep looking for a better one
4212      ac_cv_path_EGREP="$ac_path_EGREP"
4213      ac_path_EGREP_max=$ac_count
4214    fi
4215    # 10*(2^10) chars as input seems more than enough
4216    test $ac_count -gt 10 && break
4217  done
4218  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4219esac
4220
4221      $ac_path_EGREP_found && break 3
4222    done
4223  done
4224  done
4225IFS=$as_save_IFS
4226  if test -z "$ac_cv_path_EGREP"; then
4227    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4228  fi
4229else
4230  ac_cv_path_EGREP=$EGREP
4231fi
4232
4233   fi
4234fi
4235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4236$as_echo "$ac_cv_path_EGREP" >&6; }
4237 EGREP="$ac_cv_path_EGREP"
4238
4239
4240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4241$as_echo_n "checking for fgrep... " >&6; }
4242if ${ac_cv_path_FGREP+:} false; then :
4243  $as_echo_n "(cached) " >&6
4244else
4245  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4246   then ac_cv_path_FGREP="$GREP -F"
4247   else
4248     if test -z "$FGREP"; then
4249  ac_path_FGREP_found=false
4250  # Loop through the user's path and test for each of PROGNAME-LIST
4251  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4252for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4253do
4254  IFS=$as_save_IFS
4255  test -z "$as_dir" && as_dir=.
4256    for ac_prog in fgrep; do
4257    for ac_exec_ext in '' $ac_executable_extensions; do
4258      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4259      as_fn_executable_p "$ac_path_FGREP" || continue
4260# Check for GNU ac_path_FGREP and select it if it is found.
4261  # Check for GNU $ac_path_FGREP
4262case `"$ac_path_FGREP" --version 2>&1` in
4263*GNU*)
4264  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4265*)
4266  ac_count=0
4267  $as_echo_n 0123456789 >"conftest.in"
4268  while :
4269  do
4270    cat "conftest.in" "conftest.in" >"conftest.tmp"
4271    mv "conftest.tmp" "conftest.in"
4272    cp "conftest.in" "conftest.nl"
4273    $as_echo 'FGREP' >> "conftest.nl"
4274    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4275    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4276    as_fn_arith $ac_count + 1 && ac_count=$as_val
4277    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4278      # Best one so far, save it but keep looking for a better one
4279      ac_cv_path_FGREP="$ac_path_FGREP"
4280      ac_path_FGREP_max=$ac_count
4281    fi
4282    # 10*(2^10) chars as input seems more than enough
4283    test $ac_count -gt 10 && break
4284  done
4285  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4286esac
4287
4288      $ac_path_FGREP_found && break 3
4289    done
4290  done
4291  done
4292IFS=$as_save_IFS
4293  if test -z "$ac_cv_path_FGREP"; then
4294    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4295  fi
4296else
4297  ac_cv_path_FGREP=$FGREP
4298fi
4299
4300   fi
4301fi
4302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4303$as_echo "$ac_cv_path_FGREP" >&6; }
4304 FGREP="$ac_cv_path_FGREP"
4305
4306
4307test -z "$GREP" && GREP=grep
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327# Check whether --with-gnu-ld was given.
4328if test "${with_gnu_ld+set}" = set; then :
4329  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4330else
4331  with_gnu_ld=no
4332fi
4333
4334ac_prog=ld
4335if test "$GCC" = yes; then
4336  # Check if gcc -print-prog-name=ld gives a path.
4337  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4338$as_echo_n "checking for ld used by $CC... " >&6; }
4339  case $host in
4340  *-*-mingw*)
4341    # gcc leaves a trailing carriage return which upsets mingw
4342    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4343  *)
4344    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4345  esac
4346  case $ac_prog in
4347    # Accept absolute paths.
4348    [\\/]* | ?:[\\/]*)
4349      re_direlt='/[^/][^/]*/\.\./'
4350      # Canonicalize the pathname of ld
4351      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4352      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4353	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4354      done
4355      test -z "$LD" && LD="$ac_prog"
4356      ;;
4357  "")
4358    # If it fails, then pretend we aren't using GCC.
4359    ac_prog=ld
4360    ;;
4361  *)
4362    # If it is relative, then search for the first ld in PATH.
4363    with_gnu_ld=unknown
4364    ;;
4365  esac
4366elif test "$with_gnu_ld" = yes; then
4367  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4368$as_echo_n "checking for GNU ld... " >&6; }
4369else
4370  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4371$as_echo_n "checking for non-GNU ld... " >&6; }
4372fi
4373if ${lt_cv_path_LD+:} false; then :
4374  $as_echo_n "(cached) " >&6
4375else
4376  if test -z "$LD"; then
4377  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4378  for ac_dir in $PATH; do
4379    IFS="$lt_save_ifs"
4380    test -z "$ac_dir" && ac_dir=.
4381    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4382      lt_cv_path_LD="$ac_dir/$ac_prog"
4383      # Check to see if the program is GNU ld.  I'd rather use --version,
4384      # but apparently some variants of GNU ld only accept -v.
4385      # Break only if it was the GNU/non-GNU ld that we prefer.
4386      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4387      *GNU* | *'with BFD'*)
4388	test "$with_gnu_ld" != no && break
4389	;;
4390      *)
4391	test "$with_gnu_ld" != yes && break
4392	;;
4393      esac
4394    fi
4395  done
4396  IFS="$lt_save_ifs"
4397else
4398  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4399fi
4400fi
4401
4402LD="$lt_cv_path_LD"
4403if test -n "$LD"; then
4404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4405$as_echo "$LD" >&6; }
4406else
4407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4408$as_echo "no" >&6; }
4409fi
4410test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4412$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4413if ${lt_cv_prog_gnu_ld+:} false; then :
4414  $as_echo_n "(cached) " >&6
4415else
4416  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4417case `$LD -v 2>&1 </dev/null` in
4418*GNU* | *'with BFD'*)
4419  lt_cv_prog_gnu_ld=yes
4420  ;;
4421*)
4422  lt_cv_prog_gnu_ld=no
4423  ;;
4424esac
4425fi
4426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4427$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4428with_gnu_ld=$lt_cv_prog_gnu_ld
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4439$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4440if ${lt_cv_path_NM+:} false; then :
4441  $as_echo_n "(cached) " >&6
4442else
4443  if test -n "$NM"; then
4444  # Let the user override the test.
4445  lt_cv_path_NM="$NM"
4446else
4447  lt_nm_to_check="${ac_tool_prefix}nm"
4448  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4449    lt_nm_to_check="$lt_nm_to_check nm"
4450  fi
4451  for lt_tmp_nm in $lt_nm_to_check; do
4452    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4453    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4454      IFS="$lt_save_ifs"
4455      test -z "$ac_dir" && ac_dir=.
4456      tmp_nm="$ac_dir/$lt_tmp_nm"
4457      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4458	# Check to see if the nm accepts a BSD-compat flag.
4459	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4460	#   nm: unknown option "B" ignored
4461	# Tru64's nm complains that /dev/null is an invalid object file
4462	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4463	*/dev/null* | *'Invalid file or object type'*)
4464	  lt_cv_path_NM="$tmp_nm -B"
4465	  break
4466	  ;;
4467	*)
4468	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4469	  */dev/null*)
4470	    lt_cv_path_NM="$tmp_nm -p"
4471	    break
4472	    ;;
4473	  *)
4474	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4475	    continue # so that we can try to find one that supports BSD flags
4476	    ;;
4477	  esac
4478	  ;;
4479	esac
4480      fi
4481    done
4482    IFS="$lt_save_ifs"
4483  done
4484  : ${lt_cv_path_NM=no}
4485fi
4486fi
4487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4488$as_echo "$lt_cv_path_NM" >&6; }
4489if test "$lt_cv_path_NM" != "no"; then
4490  NM="$lt_cv_path_NM"
4491else
4492  # Didn't find any BSD compatible name lister, look for dumpbin.
4493  if test -n "$DUMPBIN"; then :
4494    # Let the user override the test.
4495  else
4496    if test -n "$ac_tool_prefix"; then
4497  for ac_prog in dumpbin "link -dump"
4498  do
4499    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4500set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4502$as_echo_n "checking for $ac_word... " >&6; }
4503if ${ac_cv_prog_DUMPBIN+:} false; then :
4504  $as_echo_n "(cached) " >&6
4505else
4506  if test -n "$DUMPBIN"; then
4507  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4508else
4509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510for as_dir in $PATH
4511do
4512  IFS=$as_save_IFS
4513  test -z "$as_dir" && as_dir=.
4514    for ac_exec_ext in '' $ac_executable_extensions; do
4515  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4516    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4517    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4518    break 2
4519  fi
4520done
4521  done
4522IFS=$as_save_IFS
4523
4524fi
4525fi
4526DUMPBIN=$ac_cv_prog_DUMPBIN
4527if test -n "$DUMPBIN"; then
4528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4529$as_echo "$DUMPBIN" >&6; }
4530else
4531  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4532$as_echo "no" >&6; }
4533fi
4534
4535
4536    test -n "$DUMPBIN" && break
4537  done
4538fi
4539if test -z "$DUMPBIN"; then
4540  ac_ct_DUMPBIN=$DUMPBIN
4541  for ac_prog in dumpbin "link -dump"
4542do
4543  # Extract the first word of "$ac_prog", so it can be a program name with args.
4544set dummy $ac_prog; ac_word=$2
4545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4546$as_echo_n "checking for $ac_word... " >&6; }
4547if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4548  $as_echo_n "(cached) " >&6
4549else
4550  if test -n "$ac_ct_DUMPBIN"; then
4551  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4552else
4553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4554for as_dir in $PATH
4555do
4556  IFS=$as_save_IFS
4557  test -z "$as_dir" && as_dir=.
4558    for ac_exec_ext in '' $ac_executable_extensions; do
4559  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4560    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4561    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4562    break 2
4563  fi
4564done
4565  done
4566IFS=$as_save_IFS
4567
4568fi
4569fi
4570ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4571if test -n "$ac_ct_DUMPBIN"; then
4572  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4573$as_echo "$ac_ct_DUMPBIN" >&6; }
4574else
4575  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4576$as_echo "no" >&6; }
4577fi
4578
4579
4580  test -n "$ac_ct_DUMPBIN" && break
4581done
4582
4583  if test "x$ac_ct_DUMPBIN" = x; then
4584    DUMPBIN=":"
4585  else
4586    case $cross_compiling:$ac_tool_warned in
4587yes:)
4588{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4589$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4590ac_tool_warned=yes ;;
4591esac
4592    DUMPBIN=$ac_ct_DUMPBIN
4593  fi
4594fi
4595
4596    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4597    *COFF*)
4598      DUMPBIN="$DUMPBIN -symbols"
4599      ;;
4600    *)
4601      DUMPBIN=:
4602      ;;
4603    esac
4604  fi
4605
4606  if test "$DUMPBIN" != ":"; then
4607    NM="$DUMPBIN"
4608  fi
4609fi
4610test -z "$NM" && NM=nm
4611
4612
4613
4614
4615
4616
4617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4618$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4619if ${lt_cv_nm_interface+:} false; then :
4620  $as_echo_n "(cached) " >&6
4621else
4622  lt_cv_nm_interface="BSD nm"
4623  echo "int some_variable = 0;" > conftest.$ac_ext
4624  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4625  (eval "$ac_compile" 2>conftest.err)
4626  cat conftest.err >&5
4627  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4628  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4629  cat conftest.err >&5
4630  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4631  cat conftest.out >&5
4632  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4633    lt_cv_nm_interface="MS dumpbin"
4634  fi
4635  rm -f conftest*
4636fi
4637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4638$as_echo "$lt_cv_nm_interface" >&6; }
4639
4640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4641$as_echo_n "checking whether ln -s works... " >&6; }
4642LN_S=$as_ln_s
4643if test "$LN_S" = "ln -s"; then
4644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4645$as_echo "yes" >&6; }
4646else
4647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4648$as_echo "no, using $LN_S" >&6; }
4649fi
4650
4651# find the maximum length of command line arguments
4652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4653$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4654if ${lt_cv_sys_max_cmd_len+:} false; then :
4655  $as_echo_n "(cached) " >&6
4656else
4657    i=0
4658  teststring="ABCD"
4659
4660  case $build_os in
4661  msdosdjgpp*)
4662    # On DJGPP, this test can blow up pretty badly due to problems in libc
4663    # (any single argument exceeding 2000 bytes causes a buffer overrun
4664    # during glob expansion).  Even if it were fixed, the result of this
4665    # check would be larger than it should be.
4666    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4667    ;;
4668
4669  gnu*)
4670    # Under GNU Hurd, this test is not required because there is
4671    # no limit to the length of command line arguments.
4672    # Libtool will interpret -1 as no limit whatsoever
4673    lt_cv_sys_max_cmd_len=-1;
4674    ;;
4675
4676  cygwin* | mingw* | cegcc*)
4677    # On Win9x/ME, this test blows up -- it succeeds, but takes
4678    # about 5 minutes as the teststring grows exponentially.
4679    # Worse, since 9x/ME are not pre-emptively multitasking,
4680    # you end up with a "frozen" computer, even though with patience
4681    # the test eventually succeeds (with a max line length of 256k).
4682    # Instead, let's just punt: use the minimum linelength reported by
4683    # all of the supported platforms: 8192 (on NT/2K/XP).
4684    lt_cv_sys_max_cmd_len=8192;
4685    ;;
4686
4687  mint*)
4688    # On MiNT this can take a long time and run out of memory.
4689    lt_cv_sys_max_cmd_len=8192;
4690    ;;
4691
4692  amigaos*)
4693    # On AmigaOS with pdksh, this test takes hours, literally.
4694    # So we just punt and use a minimum line length of 8192.
4695    lt_cv_sys_max_cmd_len=8192;
4696    ;;
4697
4698  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4699    # This has been around since 386BSD, at least.  Likely further.
4700    if test -x /sbin/sysctl; then
4701      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4702    elif test -x /usr/sbin/sysctl; then
4703      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4704    else
4705      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4706    fi
4707    # And add a safety zone
4708    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4709    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4710    ;;
4711
4712  interix*)
4713    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4714    lt_cv_sys_max_cmd_len=196608
4715    ;;
4716
4717  os2*)
4718    # The test takes a long time on OS/2.
4719    lt_cv_sys_max_cmd_len=8192
4720    ;;
4721
4722  osf*)
4723    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4724    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4725    # nice to cause kernel panics so lets avoid the loop below.
4726    # First set a reasonable default.
4727    lt_cv_sys_max_cmd_len=16384
4728    #
4729    if test -x /sbin/sysconfig; then
4730      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4731        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4732      esac
4733    fi
4734    ;;
4735  sco3.2v5*)
4736    lt_cv_sys_max_cmd_len=102400
4737    ;;
4738  sysv5* | sco5v6* | sysv4.2uw2*)
4739    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4740    if test -n "$kargmax"; then
4741      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4742    else
4743      lt_cv_sys_max_cmd_len=32768
4744    fi
4745    ;;
4746  *)
4747    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4748    if test -n "$lt_cv_sys_max_cmd_len"; then
4749      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4750      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4751    else
4752      # Make teststring a little bigger before we do anything with it.
4753      # a 1K string should be a reasonable start.
4754      for i in 1 2 3 4 5 6 7 8 ; do
4755        teststring=$teststring$teststring
4756      done
4757      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4758      # If test is not a shell built-in, we'll probably end up computing a
4759      # maximum length that is only half of the actual maximum length, but
4760      # we can't tell.
4761      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4762	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4763	      test $i != 17 # 1/2 MB should be enough
4764      do
4765        i=`expr $i + 1`
4766        teststring=$teststring$teststring
4767      done
4768      # Only check the string length outside the loop.
4769      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4770      teststring=
4771      # Add a significant safety factor because C++ compilers can tack on
4772      # massive amounts of additional arguments before passing them to the
4773      # linker.  It appears as though 1/2 is a usable value.
4774      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4775    fi
4776    ;;
4777  esac
4778
4779fi
4780
4781if test -n $lt_cv_sys_max_cmd_len ; then
4782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4783$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4784else
4785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4786$as_echo "none" >&6; }
4787fi
4788max_cmd_len=$lt_cv_sys_max_cmd_len
4789
4790
4791
4792
4793
4794
4795: ${CP="cp -f"}
4796: ${MV="mv -f"}
4797: ${RM="rm -f"}
4798
4799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4800$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4801# Try some XSI features
4802xsi_shell=no
4803( _lt_dummy="a/b/c"
4804  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4805      = c,a/b,b/c, \
4806    && eval 'test $(( 1 + 1 )) -eq 2 \
4807    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4808  && xsi_shell=yes
4809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4810$as_echo "$xsi_shell" >&6; }
4811
4812
4813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4814$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4815lt_shell_append=no
4816( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4817    >/dev/null 2>&1 \
4818  && lt_shell_append=yes
4819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4820$as_echo "$lt_shell_append" >&6; }
4821
4822
4823if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4824  lt_unset=unset
4825else
4826  lt_unset=false
4827fi
4828
4829
4830
4831
4832
4833# test EBCDIC or ASCII
4834case `echo X|tr X '\101'` in
4835 A) # ASCII based system
4836    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4837  lt_SP2NL='tr \040 \012'
4838  lt_NL2SP='tr \015\012 \040\040'
4839  ;;
4840 *) # EBCDIC based system
4841  lt_SP2NL='tr \100 \n'
4842  lt_NL2SP='tr \r\n \100\100'
4843  ;;
4844esac
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4855$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4856if ${lt_cv_to_host_file_cmd+:} false; then :
4857  $as_echo_n "(cached) " >&6
4858else
4859  case $host in
4860  *-*-mingw* )
4861    case $build in
4862      *-*-mingw* ) # actually msys
4863        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4864        ;;
4865      *-*-cygwin* )
4866        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4867        ;;
4868      * ) # otherwise, assume *nix
4869        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4870        ;;
4871    esac
4872    ;;
4873  *-*-cygwin* )
4874    case $build in
4875      *-*-mingw* ) # actually msys
4876        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4877        ;;
4878      *-*-cygwin* )
4879        lt_cv_to_host_file_cmd=func_convert_file_noop
4880        ;;
4881      * ) # otherwise, assume *nix
4882        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4883        ;;
4884    esac
4885    ;;
4886  * ) # unhandled hosts (and "normal" native builds)
4887    lt_cv_to_host_file_cmd=func_convert_file_noop
4888    ;;
4889esac
4890
4891fi
4892
4893to_host_file_cmd=$lt_cv_to_host_file_cmd
4894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4895$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4896
4897
4898
4899
4900
4901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4902$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4903if ${lt_cv_to_tool_file_cmd+:} false; then :
4904  $as_echo_n "(cached) " >&6
4905else
4906  #assume ordinary cross tools, or native build.
4907lt_cv_to_tool_file_cmd=func_convert_file_noop
4908case $host in
4909  *-*-mingw* )
4910    case $build in
4911      *-*-mingw* ) # actually msys
4912        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4913        ;;
4914    esac
4915    ;;
4916esac
4917
4918fi
4919
4920to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4922$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4923
4924
4925
4926
4927
4928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4929$as_echo_n "checking for $LD option to reload object files... " >&6; }
4930if ${lt_cv_ld_reload_flag+:} false; then :
4931  $as_echo_n "(cached) " >&6
4932else
4933  lt_cv_ld_reload_flag='-r'
4934fi
4935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4936$as_echo "$lt_cv_ld_reload_flag" >&6; }
4937reload_flag=$lt_cv_ld_reload_flag
4938case $reload_flag in
4939"" | " "*) ;;
4940*) reload_flag=" $reload_flag" ;;
4941esac
4942reload_cmds='$LD$reload_flag -o $output$reload_objs'
4943case $host_os in
4944  cygwin* | mingw* | pw32* | cegcc*)
4945    if test "$GCC" != yes; then
4946      reload_cmds=false
4947    fi
4948    ;;
4949  darwin*)
4950    if test "$GCC" = yes; then
4951      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4952    else
4953      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4954    fi
4955    ;;
4956esac
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966if test -n "$ac_tool_prefix"; then
4967  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4968set dummy ${ac_tool_prefix}objdump; ac_word=$2
4969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4970$as_echo_n "checking for $ac_word... " >&6; }
4971if ${ac_cv_prog_OBJDUMP+:} false; then :
4972  $as_echo_n "(cached) " >&6
4973else
4974  if test -n "$OBJDUMP"; then
4975  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4976else
4977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4978for as_dir in $PATH
4979do
4980  IFS=$as_save_IFS
4981  test -z "$as_dir" && as_dir=.
4982    for ac_exec_ext in '' $ac_executable_extensions; do
4983  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4984    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4985    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4986    break 2
4987  fi
4988done
4989  done
4990IFS=$as_save_IFS
4991
4992fi
4993fi
4994OBJDUMP=$ac_cv_prog_OBJDUMP
4995if test -n "$OBJDUMP"; then
4996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4997$as_echo "$OBJDUMP" >&6; }
4998else
4999  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5000$as_echo "no" >&6; }
5001fi
5002
5003
5004fi
5005if test -z "$ac_cv_prog_OBJDUMP"; then
5006  ac_ct_OBJDUMP=$OBJDUMP
5007  # Extract the first word of "objdump", so it can be a program name with args.
5008set dummy objdump; ac_word=$2
5009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5010$as_echo_n "checking for $ac_word... " >&6; }
5011if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5012  $as_echo_n "(cached) " >&6
5013else
5014  if test -n "$ac_ct_OBJDUMP"; then
5015  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5016else
5017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5018for as_dir in $PATH
5019do
5020  IFS=$as_save_IFS
5021  test -z "$as_dir" && as_dir=.
5022    for ac_exec_ext in '' $ac_executable_extensions; do
5023  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5024    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5025    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5026    break 2
5027  fi
5028done
5029  done
5030IFS=$as_save_IFS
5031
5032fi
5033fi
5034ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5035if test -n "$ac_ct_OBJDUMP"; then
5036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5037$as_echo "$ac_ct_OBJDUMP" >&6; }
5038else
5039  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5040$as_echo "no" >&6; }
5041fi
5042
5043  if test "x$ac_ct_OBJDUMP" = x; then
5044    OBJDUMP="false"
5045  else
5046    case $cross_compiling:$ac_tool_warned in
5047yes:)
5048{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5049$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5050ac_tool_warned=yes ;;
5051esac
5052    OBJDUMP=$ac_ct_OBJDUMP
5053  fi
5054else
5055  OBJDUMP="$ac_cv_prog_OBJDUMP"
5056fi
5057
5058test -z "$OBJDUMP" && OBJDUMP=objdump
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5069$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5070if ${lt_cv_deplibs_check_method+:} false; then :
5071  $as_echo_n "(cached) " >&6
5072else
5073  lt_cv_file_magic_cmd='$MAGIC_CMD'
5074lt_cv_file_magic_test_file=
5075lt_cv_deplibs_check_method='unknown'
5076# Need to set the preceding variable on all platforms that support
5077# interlibrary dependencies.
5078# 'none' -- dependencies not supported.
5079# `unknown' -- same as none, but documents that we really don't know.
5080# 'pass_all' -- all dependencies passed with no checks.
5081# 'test_compile' -- check by making test program.
5082# 'file_magic [[regex]]' -- check by looking for files in library path
5083# which responds to the $file_magic_cmd with a given extended regex.
5084# If you have `file' or equivalent on your system and you're not sure
5085# whether `pass_all' will *always* work, you probably want this one.
5086
5087case $host_os in
5088aix[4-9]*)
5089  lt_cv_deplibs_check_method=pass_all
5090  ;;
5091
5092beos*)
5093  lt_cv_deplibs_check_method=pass_all
5094  ;;
5095
5096bsdi[45]*)
5097  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5098  lt_cv_file_magic_cmd='/usr/bin/file -L'
5099  lt_cv_file_magic_test_file=/shlib/libc.so
5100  ;;
5101
5102cygwin*)
5103  # func_win32_libid is a shell function defined in ltmain.sh
5104  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5105  lt_cv_file_magic_cmd='func_win32_libid'
5106  ;;
5107
5108mingw* | pw32*)
5109  # Base MSYS/MinGW do not provide the 'file' command needed by
5110  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5111  # unless we find 'file', for example because we are cross-compiling.
5112  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5113  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5114    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5115    lt_cv_file_magic_cmd='func_win32_libid'
5116  else
5117    # Keep this pattern in sync with the one in func_win32_libid.
5118    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5119    lt_cv_file_magic_cmd='$OBJDUMP -f'
5120  fi
5121  ;;
5122
5123cegcc*)
5124  # use the weaker test based on 'objdump'. See mingw*.
5125  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5126  lt_cv_file_magic_cmd='$OBJDUMP -f'
5127  ;;
5128
5129darwin* | rhapsody*)
5130  lt_cv_deplibs_check_method=pass_all
5131  ;;
5132
5133freebsd* | dragonfly*)
5134  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5135    case $host_cpu in
5136    i*86 )
5137      # Not sure whether the presence of OpenBSD here was a mistake.
5138      # Let's accept both of them until this is cleared up.
5139      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5140      lt_cv_file_magic_cmd=/usr/bin/file
5141      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5142      ;;
5143    esac
5144  else
5145    lt_cv_deplibs_check_method=pass_all
5146  fi
5147  ;;
5148
5149gnu*)
5150  lt_cv_deplibs_check_method=pass_all
5151  ;;
5152
5153haiku*)
5154  lt_cv_deplibs_check_method=pass_all
5155  ;;
5156
5157hpux10.20* | hpux11*)
5158  lt_cv_file_magic_cmd=/usr/bin/file
5159  case $host_cpu in
5160  ia64*)
5161    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5162    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5163    ;;
5164  hppa*64*)
5165    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]'
5166    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5167    ;;
5168  *)
5169    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5170    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5171    ;;
5172  esac
5173  ;;
5174
5175interix[3-9]*)
5176  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5177  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5178  ;;
5179
5180irix5* | irix6* | nonstopux*)
5181  case $LD in
5182  *-32|*"-32 ") libmagic=32-bit;;
5183  *-n32|*"-n32 ") libmagic=N32;;
5184  *-64|*"-64 ") libmagic=64-bit;;
5185  *) libmagic=never-match;;
5186  esac
5187  lt_cv_deplibs_check_method=pass_all
5188  ;;
5189
5190# This must be glibc/ELF.
5191linux* | k*bsd*-gnu | kopensolaris*-gnu)
5192  lt_cv_deplibs_check_method=pass_all
5193  ;;
5194
5195netbsd*)
5196  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5197    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5198  else
5199    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5200  fi
5201  ;;
5202
5203newos6*)
5204  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5205  lt_cv_file_magic_cmd=/usr/bin/file
5206  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5207  ;;
5208
5209*nto* | *qnx*)
5210  lt_cv_deplibs_check_method=pass_all
5211  ;;
5212
5213openbsd*)
5214  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5215    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5216  else
5217    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5218  fi
5219  ;;
5220
5221osf3* | osf4* | osf5*)
5222  lt_cv_deplibs_check_method=pass_all
5223  ;;
5224
5225rdos*)
5226  lt_cv_deplibs_check_method=pass_all
5227  ;;
5228
5229solaris*)
5230  lt_cv_deplibs_check_method=pass_all
5231  ;;
5232
5233sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5234  lt_cv_deplibs_check_method=pass_all
5235  ;;
5236
5237sysv4 | sysv4.3*)
5238  case $host_vendor in
5239  motorola)
5240    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]'
5241    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5242    ;;
5243  ncr)
5244    lt_cv_deplibs_check_method=pass_all
5245    ;;
5246  sequent)
5247    lt_cv_file_magic_cmd='/bin/file'
5248    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5249    ;;
5250  sni)
5251    lt_cv_file_magic_cmd='/bin/file'
5252    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5253    lt_cv_file_magic_test_file=/lib/libc.so
5254    ;;
5255  siemens)
5256    lt_cv_deplibs_check_method=pass_all
5257    ;;
5258  pc)
5259    lt_cv_deplibs_check_method=pass_all
5260    ;;
5261  esac
5262  ;;
5263
5264tpf*)
5265  lt_cv_deplibs_check_method=pass_all
5266  ;;
5267esac
5268
5269fi
5270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5271$as_echo "$lt_cv_deplibs_check_method" >&6; }
5272
5273file_magic_glob=
5274want_nocaseglob=no
5275if test "$build" = "$host"; then
5276  case $host_os in
5277  mingw* | pw32*)
5278    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5279      want_nocaseglob=yes
5280    else
5281      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5282    fi
5283    ;;
5284  esac
5285fi
5286
5287file_magic_cmd=$lt_cv_file_magic_cmd
5288deplibs_check_method=$lt_cv_deplibs_check_method
5289test -z "$deplibs_check_method" && deplibs_check_method=unknown
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312if test -n "$ac_tool_prefix"; then
5313  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5314set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5316$as_echo_n "checking for $ac_word... " >&6; }
5317if ${ac_cv_prog_DLLTOOL+:} false; then :
5318  $as_echo_n "(cached) " >&6
5319else
5320  if test -n "$DLLTOOL"; then
5321  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5322else
5323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5324for as_dir in $PATH
5325do
5326  IFS=$as_save_IFS
5327  test -z "$as_dir" && as_dir=.
5328    for ac_exec_ext in '' $ac_executable_extensions; do
5329  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5330    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5331    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5332    break 2
5333  fi
5334done
5335  done
5336IFS=$as_save_IFS
5337
5338fi
5339fi
5340DLLTOOL=$ac_cv_prog_DLLTOOL
5341if test -n "$DLLTOOL"; then
5342  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5343$as_echo "$DLLTOOL" >&6; }
5344else
5345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5346$as_echo "no" >&6; }
5347fi
5348
5349
5350fi
5351if test -z "$ac_cv_prog_DLLTOOL"; then
5352  ac_ct_DLLTOOL=$DLLTOOL
5353  # Extract the first word of "dlltool", so it can be a program name with args.
5354set dummy dlltool; ac_word=$2
5355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5356$as_echo_n "checking for $ac_word... " >&6; }
5357if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5358  $as_echo_n "(cached) " >&6
5359else
5360  if test -n "$ac_ct_DLLTOOL"; then
5361  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5362else
5363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5364for as_dir in $PATH
5365do
5366  IFS=$as_save_IFS
5367  test -z "$as_dir" && as_dir=.
5368    for ac_exec_ext in '' $ac_executable_extensions; do
5369  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5370    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5371    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5372    break 2
5373  fi
5374done
5375  done
5376IFS=$as_save_IFS
5377
5378fi
5379fi
5380ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5381if test -n "$ac_ct_DLLTOOL"; then
5382  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5383$as_echo "$ac_ct_DLLTOOL" >&6; }
5384else
5385  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5386$as_echo "no" >&6; }
5387fi
5388
5389  if test "x$ac_ct_DLLTOOL" = x; then
5390    DLLTOOL="false"
5391  else
5392    case $cross_compiling:$ac_tool_warned in
5393yes:)
5394{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5395$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5396ac_tool_warned=yes ;;
5397esac
5398    DLLTOOL=$ac_ct_DLLTOOL
5399  fi
5400else
5401  DLLTOOL="$ac_cv_prog_DLLTOOL"
5402fi
5403
5404test -z "$DLLTOOL" && DLLTOOL=dlltool
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5416$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5417if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5418  $as_echo_n "(cached) " >&6
5419else
5420  lt_cv_sharedlib_from_linklib_cmd='unknown'
5421
5422case $host_os in
5423cygwin* | mingw* | pw32* | cegcc*)
5424  # two different shell functions defined in ltmain.sh
5425  # decide which to use based on capabilities of $DLLTOOL
5426  case `$DLLTOOL --help 2>&1` in
5427  *--identify-strict*)
5428    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5429    ;;
5430  *)
5431    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5432    ;;
5433  esac
5434  ;;
5435*)
5436  # fallback: assume linklib IS sharedlib
5437  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5438  ;;
5439esac
5440
5441fi
5442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5443$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5444sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5445test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5446
5447
5448
5449
5450
5451
5452
5453
5454if test -n "$ac_tool_prefix"; then
5455  for ac_prog in ar
5456  do
5457    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5458set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5460$as_echo_n "checking for $ac_word... " >&6; }
5461if ${ac_cv_prog_AR+:} false; then :
5462  $as_echo_n "(cached) " >&6
5463else
5464  if test -n "$AR"; then
5465  ac_cv_prog_AR="$AR" # Let the user override the test.
5466else
5467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5468for as_dir in $PATH
5469do
5470  IFS=$as_save_IFS
5471  test -z "$as_dir" && as_dir=.
5472    for ac_exec_ext in '' $ac_executable_extensions; do
5473  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5474    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5475    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5476    break 2
5477  fi
5478done
5479  done
5480IFS=$as_save_IFS
5481
5482fi
5483fi
5484AR=$ac_cv_prog_AR
5485if test -n "$AR"; then
5486  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5487$as_echo "$AR" >&6; }
5488else
5489  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5490$as_echo "no" >&6; }
5491fi
5492
5493
5494    test -n "$AR" && break
5495  done
5496fi
5497if test -z "$AR"; then
5498  ac_ct_AR=$AR
5499  for ac_prog in ar
5500do
5501  # Extract the first word of "$ac_prog", so it can be a program name with args.
5502set dummy $ac_prog; ac_word=$2
5503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5504$as_echo_n "checking for $ac_word... " >&6; }
5505if ${ac_cv_prog_ac_ct_AR+:} false; then :
5506  $as_echo_n "(cached) " >&6
5507else
5508  if test -n "$ac_ct_AR"; then
5509  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5510else
5511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5512for as_dir in $PATH
5513do
5514  IFS=$as_save_IFS
5515  test -z "$as_dir" && as_dir=.
5516    for ac_exec_ext in '' $ac_executable_extensions; do
5517  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5518    ac_cv_prog_ac_ct_AR="$ac_prog"
5519    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5520    break 2
5521  fi
5522done
5523  done
5524IFS=$as_save_IFS
5525
5526fi
5527fi
5528ac_ct_AR=$ac_cv_prog_ac_ct_AR
5529if test -n "$ac_ct_AR"; then
5530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5531$as_echo "$ac_ct_AR" >&6; }
5532else
5533  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5534$as_echo "no" >&6; }
5535fi
5536
5537
5538  test -n "$ac_ct_AR" && break
5539done
5540
5541  if test "x$ac_ct_AR" = x; then
5542    AR="false"
5543  else
5544    case $cross_compiling:$ac_tool_warned in
5545yes:)
5546{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5547$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5548ac_tool_warned=yes ;;
5549esac
5550    AR=$ac_ct_AR
5551  fi
5552fi
5553
5554: ${AR=ar}
5555: ${AR_FLAGS=cru}
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5568$as_echo_n "checking for archiver @FILE support... " >&6; }
5569if ${lt_cv_ar_at_file+:} false; then :
5570  $as_echo_n "(cached) " >&6
5571else
5572  lt_cv_ar_at_file=no
5573   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5574/* end confdefs.h.  */
5575
5576int
5577main ()
5578{
5579
5580  ;
5581  return 0;
5582}
5583_ACEOF
5584if ac_fn_c_try_compile "$LINENO"; then :
5585  echo conftest.$ac_objext > conftest.lst
5586      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5587      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5588  (eval $lt_ar_try) 2>&5
5589  ac_status=$?
5590  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5591  test $ac_status = 0; }
5592      if test "$ac_status" -eq 0; then
5593	# Ensure the archiver fails upon bogus file names.
5594	rm -f conftest.$ac_objext libconftest.a
5595	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5596  (eval $lt_ar_try) 2>&5
5597  ac_status=$?
5598  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5599  test $ac_status = 0; }
5600	if test "$ac_status" -ne 0; then
5601          lt_cv_ar_at_file=@
5602        fi
5603      fi
5604      rm -f conftest.* libconftest.a
5605
5606fi
5607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5608
5609fi
5610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5611$as_echo "$lt_cv_ar_at_file" >&6; }
5612
5613if test "x$lt_cv_ar_at_file" = xno; then
5614  archiver_list_spec=
5615else
5616  archiver_list_spec=$lt_cv_ar_at_file
5617fi
5618
5619
5620
5621
5622
5623
5624
5625if test -n "$ac_tool_prefix"; then
5626  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5627set dummy ${ac_tool_prefix}strip; ac_word=$2
5628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5629$as_echo_n "checking for $ac_word... " >&6; }
5630if ${ac_cv_prog_STRIP+:} false; then :
5631  $as_echo_n "(cached) " >&6
5632else
5633  if test -n "$STRIP"; then
5634  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5635else
5636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5637for as_dir in $PATH
5638do
5639  IFS=$as_save_IFS
5640  test -z "$as_dir" && as_dir=.
5641    for ac_exec_ext in '' $ac_executable_extensions; do
5642  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5643    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5644    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5645    break 2
5646  fi
5647done
5648  done
5649IFS=$as_save_IFS
5650
5651fi
5652fi
5653STRIP=$ac_cv_prog_STRIP
5654if test -n "$STRIP"; then
5655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5656$as_echo "$STRIP" >&6; }
5657else
5658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5659$as_echo "no" >&6; }
5660fi
5661
5662
5663fi
5664if test -z "$ac_cv_prog_STRIP"; then
5665  ac_ct_STRIP=$STRIP
5666  # Extract the first word of "strip", so it can be a program name with args.
5667set dummy strip; ac_word=$2
5668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5669$as_echo_n "checking for $ac_word... " >&6; }
5670if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5671  $as_echo_n "(cached) " >&6
5672else
5673  if test -n "$ac_ct_STRIP"; then
5674  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5675else
5676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5677for as_dir in $PATH
5678do
5679  IFS=$as_save_IFS
5680  test -z "$as_dir" && as_dir=.
5681    for ac_exec_ext in '' $ac_executable_extensions; do
5682  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5683    ac_cv_prog_ac_ct_STRIP="strip"
5684    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5685    break 2
5686  fi
5687done
5688  done
5689IFS=$as_save_IFS
5690
5691fi
5692fi
5693ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5694if test -n "$ac_ct_STRIP"; then
5695  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5696$as_echo "$ac_ct_STRIP" >&6; }
5697else
5698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5699$as_echo "no" >&6; }
5700fi
5701
5702  if test "x$ac_ct_STRIP" = x; then
5703    STRIP=":"
5704  else
5705    case $cross_compiling:$ac_tool_warned in
5706yes:)
5707{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5708$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5709ac_tool_warned=yes ;;
5710esac
5711    STRIP=$ac_ct_STRIP
5712  fi
5713else
5714  STRIP="$ac_cv_prog_STRIP"
5715fi
5716
5717test -z "$STRIP" && STRIP=:
5718
5719
5720
5721
5722
5723
5724if test -n "$ac_tool_prefix"; then
5725  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5726set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5728$as_echo_n "checking for $ac_word... " >&6; }
5729if ${ac_cv_prog_RANLIB+:} false; then :
5730  $as_echo_n "(cached) " >&6
5731else
5732  if test -n "$RANLIB"; then
5733  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5734else
5735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5736for as_dir in $PATH
5737do
5738  IFS=$as_save_IFS
5739  test -z "$as_dir" && as_dir=.
5740    for ac_exec_ext in '' $ac_executable_extensions; do
5741  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5742    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5743    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5744    break 2
5745  fi
5746done
5747  done
5748IFS=$as_save_IFS
5749
5750fi
5751fi
5752RANLIB=$ac_cv_prog_RANLIB
5753if test -n "$RANLIB"; then
5754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5755$as_echo "$RANLIB" >&6; }
5756else
5757  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5758$as_echo "no" >&6; }
5759fi
5760
5761
5762fi
5763if test -z "$ac_cv_prog_RANLIB"; then
5764  ac_ct_RANLIB=$RANLIB
5765  # Extract the first word of "ranlib", so it can be a program name with args.
5766set dummy ranlib; ac_word=$2
5767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5768$as_echo_n "checking for $ac_word... " >&6; }
5769if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5770  $as_echo_n "(cached) " >&6
5771else
5772  if test -n "$ac_ct_RANLIB"; then
5773  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5774else
5775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5776for as_dir in $PATH
5777do
5778  IFS=$as_save_IFS
5779  test -z "$as_dir" && as_dir=.
5780    for ac_exec_ext in '' $ac_executable_extensions; do
5781  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5782    ac_cv_prog_ac_ct_RANLIB="ranlib"
5783    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5784    break 2
5785  fi
5786done
5787  done
5788IFS=$as_save_IFS
5789
5790fi
5791fi
5792ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5793if test -n "$ac_ct_RANLIB"; then
5794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5795$as_echo "$ac_ct_RANLIB" >&6; }
5796else
5797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5798$as_echo "no" >&6; }
5799fi
5800
5801  if test "x$ac_ct_RANLIB" = x; then
5802    RANLIB=":"
5803  else
5804    case $cross_compiling:$ac_tool_warned in
5805yes:)
5806{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5807$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5808ac_tool_warned=yes ;;
5809esac
5810    RANLIB=$ac_ct_RANLIB
5811  fi
5812else
5813  RANLIB="$ac_cv_prog_RANLIB"
5814fi
5815
5816test -z "$RANLIB" && RANLIB=:
5817
5818
5819
5820
5821
5822
5823# Determine commands to create old-style static archives.
5824old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5825old_postinstall_cmds='chmod 644 $oldlib'
5826old_postuninstall_cmds=
5827
5828if test -n "$RANLIB"; then
5829  case $host_os in
5830  openbsd*)
5831    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5832    ;;
5833  *)
5834    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5835    ;;
5836  esac
5837  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5838fi
5839
5840case $host_os in
5841  darwin*)
5842    lock_old_archive_extraction=yes ;;
5843  *)
5844    lock_old_archive_extraction=no ;;
5845esac
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885# If no C compiler was specified, use CC.
5886LTCC=${LTCC-"$CC"}
5887
5888# If no C compiler flags were specified, use CFLAGS.
5889LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5890
5891# Allow CC to be a program name with arguments.
5892compiler=$CC
5893
5894
5895# Check for command to grab the raw symbol name followed by C symbol from nm.
5896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5897$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5898if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5899  $as_echo_n "(cached) " >&6
5900else
5901
5902# These are sane defaults that work on at least a few old systems.
5903# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5904
5905# Character class describing NM global symbol codes.
5906symcode='[BCDEGRST]'
5907
5908# Regexp to match symbols that can be accessed directly from C.
5909sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5910
5911# Define system-specific variables.
5912case $host_os in
5913aix*)
5914  symcode='[BCDT]'
5915  ;;
5916cygwin* | mingw* | pw32* | cegcc*)
5917  symcode='[ABCDGISTW]'
5918  ;;
5919hpux*)
5920  if test "$host_cpu" = ia64; then
5921    symcode='[ABCDEGRST]'
5922  fi
5923  ;;
5924irix* | nonstopux*)
5925  symcode='[BCDEGRST]'
5926  ;;
5927osf*)
5928  symcode='[BCDEGQRST]'
5929  ;;
5930solaris*)
5931  symcode='[BDRT]'
5932  ;;
5933sco3.2v5*)
5934  symcode='[DT]'
5935  ;;
5936sysv4.2uw2*)
5937  symcode='[DT]'
5938  ;;
5939sysv5* | sco5v6* | unixware* | OpenUNIX*)
5940  symcode='[ABDT]'
5941  ;;
5942sysv4)
5943  symcode='[DFNSTU]'
5944  ;;
5945esac
5946
5947# If we're using GNU nm, then use its standard symbol codes.
5948case `$NM -V 2>&1` in
5949*GNU* | *'with BFD'*)
5950  symcode='[ABCDGIRSTW]' ;;
5951esac
5952
5953# Transform an extracted symbol line into a proper C declaration.
5954# Some systems (esp. on ia64) link data and code symbols differently,
5955# so use this general approach.
5956lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5957
5958# Transform an extracted symbol line into symbol name and symbol address
5959lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5960lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
5961
5962# Handle CRLF in mingw tool chain
5963opt_cr=
5964case $build_os in
5965mingw*)
5966  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5967  ;;
5968esac
5969
5970# Try without a prefix underscore, then with it.
5971for ac_symprfx in "" "_"; do
5972
5973  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5974  symxfrm="\\1 $ac_symprfx\\2 \\2"
5975
5976  # Write the raw and C identifiers.
5977  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5978    # Fake it for dumpbin and say T for any non-static function
5979    # and D for any global variable.
5980    # Also find C++ and __fastcall symbols from MSVC++,
5981    # which start with @ or ?.
5982    lt_cv_sys_global_symbol_pipe="$AWK '"\
5983"     {last_section=section; section=\$ 3};"\
5984"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5985"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5986"     \$ 0!~/External *\|/{next};"\
5987"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5988"     {if(hide[section]) next};"\
5989"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5990"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5991"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5992"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5993"     ' prfx=^$ac_symprfx"
5994  else
5995    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5996  fi
5997  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5998
5999  # Check to see that the pipe works correctly.
6000  pipe_works=no
6001
6002  rm -f conftest*
6003  cat > conftest.$ac_ext <<_LT_EOF
6004#ifdef __cplusplus
6005extern "C" {
6006#endif
6007char nm_test_var;
6008void nm_test_func(void);
6009void nm_test_func(void){}
6010#ifdef __cplusplus
6011}
6012#endif
6013int main(){nm_test_var='a';nm_test_func();return(0);}
6014_LT_EOF
6015
6016  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6017  (eval $ac_compile) 2>&5
6018  ac_status=$?
6019  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6020  test $ac_status = 0; }; then
6021    # Now try to grab the symbols.
6022    nlist=conftest.nm
6023    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6024  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6025  ac_status=$?
6026  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6027  test $ac_status = 0; } && test -s "$nlist"; then
6028      # Try sorting and uniquifying the output.
6029      if sort "$nlist" | uniq > "$nlist"T; then
6030	mv -f "$nlist"T "$nlist"
6031      else
6032	rm -f "$nlist"T
6033      fi
6034
6035      # Make sure that we snagged all the symbols we need.
6036      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6037	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6038	  cat <<_LT_EOF > conftest.$ac_ext
6039/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6040#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6041/* DATA imports from DLLs on WIN32 con't be const, because runtime
6042   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6043# define LT_DLSYM_CONST
6044#elif defined(__osf__)
6045/* This system does not cope well with relocations in const data.  */
6046# define LT_DLSYM_CONST
6047#else
6048# define LT_DLSYM_CONST const
6049#endif
6050
6051#ifdef __cplusplus
6052extern "C" {
6053#endif
6054
6055_LT_EOF
6056	  # Now generate the symbol file.
6057	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6058
6059	  cat <<_LT_EOF >> conftest.$ac_ext
6060
6061/* The mapping between symbol names and symbols.  */
6062LT_DLSYM_CONST struct {
6063  const char *name;
6064  void       *address;
6065}
6066lt__PROGRAM__LTX_preloaded_symbols[] =
6067{
6068  { "@PROGRAM@", (void *) 0 },
6069_LT_EOF
6070	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6071	  cat <<\_LT_EOF >> conftest.$ac_ext
6072  {0, (void *) 0}
6073};
6074
6075/* This works around a problem in FreeBSD linker */
6076#ifdef FREEBSD_WORKAROUND
6077static const void *lt_preloaded_setup() {
6078  return lt__PROGRAM__LTX_preloaded_symbols;
6079}
6080#endif
6081
6082#ifdef __cplusplus
6083}
6084#endif
6085_LT_EOF
6086	  # Now try linking the two files.
6087	  mv conftest.$ac_objext conftstm.$ac_objext
6088	  lt_globsym_save_LIBS=$LIBS
6089	  lt_globsym_save_CFLAGS=$CFLAGS
6090	  LIBS="conftstm.$ac_objext"
6091	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6092	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6093  (eval $ac_link) 2>&5
6094  ac_status=$?
6095  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6096  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6097	    pipe_works=yes
6098	  fi
6099	  LIBS=$lt_globsym_save_LIBS
6100	  CFLAGS=$lt_globsym_save_CFLAGS
6101	else
6102	  echo "cannot find nm_test_func in $nlist" >&5
6103	fi
6104      else
6105	echo "cannot find nm_test_var in $nlist" >&5
6106      fi
6107    else
6108      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6109    fi
6110  else
6111    echo "$progname: failed program was:" >&5
6112    cat conftest.$ac_ext >&5
6113  fi
6114  rm -rf conftest* conftst*
6115
6116  # Do not use the global_symbol_pipe unless it works.
6117  if test "$pipe_works" = yes; then
6118    break
6119  else
6120    lt_cv_sys_global_symbol_pipe=
6121  fi
6122done
6123
6124fi
6125
6126if test -z "$lt_cv_sys_global_symbol_pipe"; then
6127  lt_cv_sys_global_symbol_to_cdecl=
6128fi
6129if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6130  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6131$as_echo "failed" >&6; }
6132else
6133  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6134$as_echo "ok" >&6; }
6135fi
6136
6137# Response file support.
6138if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6139  nm_file_list_spec='@'
6140elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6141  nm_file_list_spec='@'
6142fi
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6171$as_echo_n "checking for sysroot... " >&6; }
6172
6173# Check whether --with-sysroot was given.
6174if test "${with_sysroot+set}" = set; then :
6175  withval=$with_sysroot;
6176else
6177  with_sysroot=no
6178fi
6179
6180
6181lt_sysroot=
6182case ${with_sysroot} in #(
6183 yes)
6184   if test "$GCC" = yes; then
6185     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6186   fi
6187   ;; #(
6188 /*)
6189   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6190   ;; #(
6191 no|'')
6192   ;; #(
6193 *)
6194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6195$as_echo "${with_sysroot}" >&6; }
6196   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6197   ;;
6198esac
6199
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6201$as_echo "${lt_sysroot:-no}" >&6; }
6202
6203
6204
6205
6206
6207# Check whether --enable-libtool-lock was given.
6208if test "${enable_libtool_lock+set}" = set; then :
6209  enableval=$enable_libtool_lock;
6210fi
6211
6212test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6213
6214# Some flags need to be propagated to the compiler or linker for good
6215# libtool support.
6216case $host in
6217ia64-*-hpux*)
6218  # Find out which ABI we are using.
6219  echo 'int i;' > conftest.$ac_ext
6220  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6221  (eval $ac_compile) 2>&5
6222  ac_status=$?
6223  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6224  test $ac_status = 0; }; then
6225    case `/usr/bin/file conftest.$ac_objext` in
6226      *ELF-32*)
6227	HPUX_IA64_MODE="32"
6228	;;
6229      *ELF-64*)
6230	HPUX_IA64_MODE="64"
6231	;;
6232    esac
6233  fi
6234  rm -rf conftest*
6235  ;;
6236*-*-irix6*)
6237  # Find out which ABI we are using.
6238  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6239  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6240  (eval $ac_compile) 2>&5
6241  ac_status=$?
6242  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6243  test $ac_status = 0; }; then
6244    if test "$lt_cv_prog_gnu_ld" = yes; then
6245      case `/usr/bin/file conftest.$ac_objext` in
6246	*32-bit*)
6247	  LD="${LD-ld} -melf32bsmip"
6248	  ;;
6249	*N32*)
6250	  LD="${LD-ld} -melf32bmipn32"
6251	  ;;
6252	*64-bit*)
6253	  LD="${LD-ld} -melf64bmip"
6254	;;
6255      esac
6256    else
6257      case `/usr/bin/file conftest.$ac_objext` in
6258	*32-bit*)
6259	  LD="${LD-ld} -32"
6260	  ;;
6261	*N32*)
6262	  LD="${LD-ld} -n32"
6263	  ;;
6264	*64-bit*)
6265	  LD="${LD-ld} -64"
6266	  ;;
6267      esac
6268    fi
6269  fi
6270  rm -rf conftest*
6271  ;;
6272
6273x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6274s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6275  # Find out which ABI we are using.
6276  echo 'int i;' > conftest.$ac_ext
6277  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6278  (eval $ac_compile) 2>&5
6279  ac_status=$?
6280  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6281  test $ac_status = 0; }; then
6282    case `/usr/bin/file conftest.o` in
6283      *32-bit*)
6284	case $host in
6285	  x86_64-*kfreebsd*-gnu)
6286	    LD="${LD-ld} -m elf_i386_fbsd"
6287	    ;;
6288	  x86_64-*linux*)
6289	    LD="${LD-ld} -m elf_i386"
6290	    ;;
6291	  ppc64-*linux*|powerpc64-*linux*)
6292	    LD="${LD-ld} -m elf32ppclinux"
6293	    ;;
6294	  s390x-*linux*)
6295	    LD="${LD-ld} -m elf_s390"
6296	    ;;
6297	  sparc64-*linux*)
6298	    LD="${LD-ld} -m elf32_sparc"
6299	    ;;
6300	esac
6301	;;
6302      *64-bit*)
6303	case $host in
6304	  x86_64-*kfreebsd*-gnu)
6305	    LD="${LD-ld} -m elf_x86_64_fbsd"
6306	    ;;
6307	  x86_64-*linux*)
6308	    LD="${LD-ld} -m elf_x86_64"
6309	    ;;
6310	  ppc*-*linux*|powerpc*-*linux*)
6311	    LD="${LD-ld} -m elf64ppc"
6312	    ;;
6313	  s390*-*linux*|s390*-*tpf*)
6314	    LD="${LD-ld} -m elf64_s390"
6315	    ;;
6316	  sparc*-*linux*)
6317	    LD="${LD-ld} -m elf64_sparc"
6318	    ;;
6319	esac
6320	;;
6321    esac
6322  fi
6323  rm -rf conftest*
6324  ;;
6325
6326*-*-sco3.2v5*)
6327  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6328  SAVE_CFLAGS="$CFLAGS"
6329  CFLAGS="$CFLAGS -belf"
6330  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6331$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6332if ${lt_cv_cc_needs_belf+:} false; then :
6333  $as_echo_n "(cached) " >&6
6334else
6335  ac_ext=c
6336ac_cpp='$CPP $CPPFLAGS'
6337ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6338ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6339ac_compiler_gnu=$ac_cv_c_compiler_gnu
6340
6341     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6342/* end confdefs.h.  */
6343
6344int
6345main ()
6346{
6347
6348  ;
6349  return 0;
6350}
6351_ACEOF
6352if ac_fn_c_try_link "$LINENO"; then :
6353  lt_cv_cc_needs_belf=yes
6354else
6355  lt_cv_cc_needs_belf=no
6356fi
6357rm -f core conftest.err conftest.$ac_objext \
6358    conftest$ac_exeext conftest.$ac_ext
6359     ac_ext=c
6360ac_cpp='$CPP $CPPFLAGS'
6361ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6362ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6363ac_compiler_gnu=$ac_cv_c_compiler_gnu
6364
6365fi
6366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6367$as_echo "$lt_cv_cc_needs_belf" >&6; }
6368  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6369    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6370    CFLAGS="$SAVE_CFLAGS"
6371  fi
6372  ;;
6373*-*solaris*)
6374  # Find out which ABI we are using.
6375  echo 'int i;' > conftest.$ac_ext
6376  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6377  (eval $ac_compile) 2>&5
6378  ac_status=$?
6379  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6380  test $ac_status = 0; }; then
6381    case `/usr/bin/file conftest.o` in
6382    *64-bit*)
6383      case $lt_cv_prog_gnu_ld in
6384      yes*)
6385        case $host in
6386        i?86-*-solaris*)
6387          LD="${LD-ld} -m elf_x86_64"
6388          ;;
6389        sparc*-*-solaris*)
6390          LD="${LD-ld} -m elf64_sparc"
6391          ;;
6392        esac
6393        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6394        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6395          LD="${LD-ld}_sol2"
6396        fi
6397        ;;
6398      *)
6399	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6400	  LD="${LD-ld} -64"
6401	fi
6402	;;
6403      esac
6404      ;;
6405    esac
6406  fi
6407  rm -rf conftest*
6408  ;;
6409esac
6410
6411need_locks="$enable_libtool_lock"
6412
6413if test -n "$ac_tool_prefix"; then
6414  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6415set dummy ${ac_tool_prefix}mt; ac_word=$2
6416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6417$as_echo_n "checking for $ac_word... " >&6; }
6418if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6419  $as_echo_n "(cached) " >&6
6420else
6421  if test -n "$MANIFEST_TOOL"; then
6422  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6423else
6424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6425for as_dir in $PATH
6426do
6427  IFS=$as_save_IFS
6428  test -z "$as_dir" && as_dir=.
6429    for ac_exec_ext in '' $ac_executable_extensions; do
6430  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6431    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6432    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6433    break 2
6434  fi
6435done
6436  done
6437IFS=$as_save_IFS
6438
6439fi
6440fi
6441MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6442if test -n "$MANIFEST_TOOL"; then
6443  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6444$as_echo "$MANIFEST_TOOL" >&6; }
6445else
6446  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6447$as_echo "no" >&6; }
6448fi
6449
6450
6451fi
6452if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6453  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6454  # Extract the first word of "mt", so it can be a program name with args.
6455set dummy mt; ac_word=$2
6456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6457$as_echo_n "checking for $ac_word... " >&6; }
6458if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6459  $as_echo_n "(cached) " >&6
6460else
6461  if test -n "$ac_ct_MANIFEST_TOOL"; then
6462  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6463else
6464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6465for as_dir in $PATH
6466do
6467  IFS=$as_save_IFS
6468  test -z "$as_dir" && as_dir=.
6469    for ac_exec_ext in '' $ac_executable_extensions; do
6470  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6471    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6472    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6473    break 2
6474  fi
6475done
6476  done
6477IFS=$as_save_IFS
6478
6479fi
6480fi
6481ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6482if test -n "$ac_ct_MANIFEST_TOOL"; then
6483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6484$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6485else
6486  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6487$as_echo "no" >&6; }
6488fi
6489
6490  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6491    MANIFEST_TOOL=":"
6492  else
6493    case $cross_compiling:$ac_tool_warned in
6494yes:)
6495{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6496$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6497ac_tool_warned=yes ;;
6498esac
6499    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6500  fi
6501else
6502  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6503fi
6504
6505test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6507$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6508if ${lt_cv_path_mainfest_tool+:} false; then :
6509  $as_echo_n "(cached) " >&6
6510else
6511  lt_cv_path_mainfest_tool=no
6512  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6513  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6514  cat conftest.err >&5
6515  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6516    lt_cv_path_mainfest_tool=yes
6517  fi
6518  rm -f conftest*
6519fi
6520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6521$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6522if test "x$lt_cv_path_mainfest_tool" != xyes; then
6523  MANIFEST_TOOL=:
6524fi
6525
6526
6527
6528
6529
6530
6531  case $host_os in
6532    rhapsody* | darwin*)
6533    if test -n "$ac_tool_prefix"; then
6534  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6535set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6537$as_echo_n "checking for $ac_word... " >&6; }
6538if ${ac_cv_prog_DSYMUTIL+:} false; then :
6539  $as_echo_n "(cached) " >&6
6540else
6541  if test -n "$DSYMUTIL"; then
6542  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6543else
6544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6545for as_dir in $PATH
6546do
6547  IFS=$as_save_IFS
6548  test -z "$as_dir" && as_dir=.
6549    for ac_exec_ext in '' $ac_executable_extensions; do
6550  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6551    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6552    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6553    break 2
6554  fi
6555done
6556  done
6557IFS=$as_save_IFS
6558
6559fi
6560fi
6561DSYMUTIL=$ac_cv_prog_DSYMUTIL
6562if test -n "$DSYMUTIL"; then
6563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6564$as_echo "$DSYMUTIL" >&6; }
6565else
6566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6567$as_echo "no" >&6; }
6568fi
6569
6570
6571fi
6572if test -z "$ac_cv_prog_DSYMUTIL"; then
6573  ac_ct_DSYMUTIL=$DSYMUTIL
6574  # Extract the first word of "dsymutil", so it can be a program name with args.
6575set dummy dsymutil; ac_word=$2
6576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6577$as_echo_n "checking for $ac_word... " >&6; }
6578if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6579  $as_echo_n "(cached) " >&6
6580else
6581  if test -n "$ac_ct_DSYMUTIL"; then
6582  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6583else
6584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6585for as_dir in $PATH
6586do
6587  IFS=$as_save_IFS
6588  test -z "$as_dir" && as_dir=.
6589    for ac_exec_ext in '' $ac_executable_extensions; do
6590  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6591    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6592    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6593    break 2
6594  fi
6595done
6596  done
6597IFS=$as_save_IFS
6598
6599fi
6600fi
6601ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6602if test -n "$ac_ct_DSYMUTIL"; then
6603  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6604$as_echo "$ac_ct_DSYMUTIL" >&6; }
6605else
6606  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6607$as_echo "no" >&6; }
6608fi
6609
6610  if test "x$ac_ct_DSYMUTIL" = x; then
6611    DSYMUTIL=":"
6612  else
6613    case $cross_compiling:$ac_tool_warned in
6614yes:)
6615{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6616$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6617ac_tool_warned=yes ;;
6618esac
6619    DSYMUTIL=$ac_ct_DSYMUTIL
6620  fi
6621else
6622  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6623fi
6624
6625    if test -n "$ac_tool_prefix"; then
6626  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6627set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6629$as_echo_n "checking for $ac_word... " >&6; }
6630if ${ac_cv_prog_NMEDIT+:} false; then :
6631  $as_echo_n "(cached) " >&6
6632else
6633  if test -n "$NMEDIT"; then
6634  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6635else
6636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6637for as_dir in $PATH
6638do
6639  IFS=$as_save_IFS
6640  test -z "$as_dir" && as_dir=.
6641    for ac_exec_ext in '' $ac_executable_extensions; do
6642  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6643    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6644    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6645    break 2
6646  fi
6647done
6648  done
6649IFS=$as_save_IFS
6650
6651fi
6652fi
6653NMEDIT=$ac_cv_prog_NMEDIT
6654if test -n "$NMEDIT"; then
6655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6656$as_echo "$NMEDIT" >&6; }
6657else
6658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6659$as_echo "no" >&6; }
6660fi
6661
6662
6663fi
6664if test -z "$ac_cv_prog_NMEDIT"; then
6665  ac_ct_NMEDIT=$NMEDIT
6666  # Extract the first word of "nmedit", so it can be a program name with args.
6667set dummy nmedit; ac_word=$2
6668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6669$as_echo_n "checking for $ac_word... " >&6; }
6670if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6671  $as_echo_n "(cached) " >&6
6672else
6673  if test -n "$ac_ct_NMEDIT"; then
6674  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6675else
6676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6677for as_dir in $PATH
6678do
6679  IFS=$as_save_IFS
6680  test -z "$as_dir" && as_dir=.
6681    for ac_exec_ext in '' $ac_executable_extensions; do
6682  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6683    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6684    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6685    break 2
6686  fi
6687done
6688  done
6689IFS=$as_save_IFS
6690
6691fi
6692fi
6693ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6694if test -n "$ac_ct_NMEDIT"; then
6695  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6696$as_echo "$ac_ct_NMEDIT" >&6; }
6697else
6698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6699$as_echo "no" >&6; }
6700fi
6701
6702  if test "x$ac_ct_NMEDIT" = x; then
6703    NMEDIT=":"
6704  else
6705    case $cross_compiling:$ac_tool_warned in
6706yes:)
6707{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6708$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6709ac_tool_warned=yes ;;
6710esac
6711    NMEDIT=$ac_ct_NMEDIT
6712  fi
6713else
6714  NMEDIT="$ac_cv_prog_NMEDIT"
6715fi
6716
6717    if test -n "$ac_tool_prefix"; then
6718  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6719set dummy ${ac_tool_prefix}lipo; ac_word=$2
6720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6721$as_echo_n "checking for $ac_word... " >&6; }
6722if ${ac_cv_prog_LIPO+:} false; then :
6723  $as_echo_n "(cached) " >&6
6724else
6725  if test -n "$LIPO"; then
6726  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6727else
6728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6729for as_dir in $PATH
6730do
6731  IFS=$as_save_IFS
6732  test -z "$as_dir" && as_dir=.
6733    for ac_exec_ext in '' $ac_executable_extensions; do
6734  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6735    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6736    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6737    break 2
6738  fi
6739done
6740  done
6741IFS=$as_save_IFS
6742
6743fi
6744fi
6745LIPO=$ac_cv_prog_LIPO
6746if test -n "$LIPO"; then
6747  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6748$as_echo "$LIPO" >&6; }
6749else
6750  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6751$as_echo "no" >&6; }
6752fi
6753
6754
6755fi
6756if test -z "$ac_cv_prog_LIPO"; then
6757  ac_ct_LIPO=$LIPO
6758  # Extract the first word of "lipo", so it can be a program name with args.
6759set dummy lipo; ac_word=$2
6760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6761$as_echo_n "checking for $ac_word... " >&6; }
6762if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6763  $as_echo_n "(cached) " >&6
6764else
6765  if test -n "$ac_ct_LIPO"; then
6766  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6767else
6768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6769for as_dir in $PATH
6770do
6771  IFS=$as_save_IFS
6772  test -z "$as_dir" && as_dir=.
6773    for ac_exec_ext in '' $ac_executable_extensions; do
6774  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6775    ac_cv_prog_ac_ct_LIPO="lipo"
6776    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6777    break 2
6778  fi
6779done
6780  done
6781IFS=$as_save_IFS
6782
6783fi
6784fi
6785ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6786if test -n "$ac_ct_LIPO"; then
6787  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6788$as_echo "$ac_ct_LIPO" >&6; }
6789else
6790  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6791$as_echo "no" >&6; }
6792fi
6793
6794  if test "x$ac_ct_LIPO" = x; then
6795    LIPO=":"
6796  else
6797    case $cross_compiling:$ac_tool_warned in
6798yes:)
6799{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6800$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6801ac_tool_warned=yes ;;
6802esac
6803    LIPO=$ac_ct_LIPO
6804  fi
6805else
6806  LIPO="$ac_cv_prog_LIPO"
6807fi
6808
6809    if test -n "$ac_tool_prefix"; then
6810  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6811set dummy ${ac_tool_prefix}otool; ac_word=$2
6812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6813$as_echo_n "checking for $ac_word... " >&6; }
6814if ${ac_cv_prog_OTOOL+:} false; then :
6815  $as_echo_n "(cached) " >&6
6816else
6817  if test -n "$OTOOL"; then
6818  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6819else
6820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6821for as_dir in $PATH
6822do
6823  IFS=$as_save_IFS
6824  test -z "$as_dir" && as_dir=.
6825    for ac_exec_ext in '' $ac_executable_extensions; do
6826  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6827    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6828    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6829    break 2
6830  fi
6831done
6832  done
6833IFS=$as_save_IFS
6834
6835fi
6836fi
6837OTOOL=$ac_cv_prog_OTOOL
6838if test -n "$OTOOL"; then
6839  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6840$as_echo "$OTOOL" >&6; }
6841else
6842  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6843$as_echo "no" >&6; }
6844fi
6845
6846
6847fi
6848if test -z "$ac_cv_prog_OTOOL"; then
6849  ac_ct_OTOOL=$OTOOL
6850  # Extract the first word of "otool", so it can be a program name with args.
6851set dummy otool; ac_word=$2
6852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6853$as_echo_n "checking for $ac_word... " >&6; }
6854if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6855  $as_echo_n "(cached) " >&6
6856else
6857  if test -n "$ac_ct_OTOOL"; then
6858  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6859else
6860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6861for as_dir in $PATH
6862do
6863  IFS=$as_save_IFS
6864  test -z "$as_dir" && as_dir=.
6865    for ac_exec_ext in '' $ac_executable_extensions; do
6866  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6867    ac_cv_prog_ac_ct_OTOOL="otool"
6868    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6869    break 2
6870  fi
6871done
6872  done
6873IFS=$as_save_IFS
6874
6875fi
6876fi
6877ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6878if test -n "$ac_ct_OTOOL"; then
6879  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6880$as_echo "$ac_ct_OTOOL" >&6; }
6881else
6882  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6883$as_echo "no" >&6; }
6884fi
6885
6886  if test "x$ac_ct_OTOOL" = x; then
6887    OTOOL=":"
6888  else
6889    case $cross_compiling:$ac_tool_warned in
6890yes:)
6891{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6892$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6893ac_tool_warned=yes ;;
6894esac
6895    OTOOL=$ac_ct_OTOOL
6896  fi
6897else
6898  OTOOL="$ac_cv_prog_OTOOL"
6899fi
6900
6901    if test -n "$ac_tool_prefix"; then
6902  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6903set dummy ${ac_tool_prefix}otool64; ac_word=$2
6904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6905$as_echo_n "checking for $ac_word... " >&6; }
6906if ${ac_cv_prog_OTOOL64+:} false; then :
6907  $as_echo_n "(cached) " >&6
6908else
6909  if test -n "$OTOOL64"; then
6910  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6911else
6912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6913for as_dir in $PATH
6914do
6915  IFS=$as_save_IFS
6916  test -z "$as_dir" && as_dir=.
6917    for ac_exec_ext in '' $ac_executable_extensions; do
6918  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6919    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6920    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6921    break 2
6922  fi
6923done
6924  done
6925IFS=$as_save_IFS
6926
6927fi
6928fi
6929OTOOL64=$ac_cv_prog_OTOOL64
6930if test -n "$OTOOL64"; then
6931  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6932$as_echo "$OTOOL64" >&6; }
6933else
6934  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6935$as_echo "no" >&6; }
6936fi
6937
6938
6939fi
6940if test -z "$ac_cv_prog_OTOOL64"; then
6941  ac_ct_OTOOL64=$OTOOL64
6942  # Extract the first word of "otool64", so it can be a program name with args.
6943set dummy otool64; ac_word=$2
6944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6945$as_echo_n "checking for $ac_word... " >&6; }
6946if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6947  $as_echo_n "(cached) " >&6
6948else
6949  if test -n "$ac_ct_OTOOL64"; then
6950  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6951else
6952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6953for as_dir in $PATH
6954do
6955  IFS=$as_save_IFS
6956  test -z "$as_dir" && as_dir=.
6957    for ac_exec_ext in '' $ac_executable_extensions; do
6958  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6959    ac_cv_prog_ac_ct_OTOOL64="otool64"
6960    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6961    break 2
6962  fi
6963done
6964  done
6965IFS=$as_save_IFS
6966
6967fi
6968fi
6969ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6970if test -n "$ac_ct_OTOOL64"; then
6971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6972$as_echo "$ac_ct_OTOOL64" >&6; }
6973else
6974  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6975$as_echo "no" >&6; }
6976fi
6977
6978  if test "x$ac_ct_OTOOL64" = x; then
6979    OTOOL64=":"
6980  else
6981    case $cross_compiling:$ac_tool_warned in
6982yes:)
6983{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6984$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6985ac_tool_warned=yes ;;
6986esac
6987    OTOOL64=$ac_ct_OTOOL64
6988  fi
6989else
6990  OTOOL64="$ac_cv_prog_OTOOL64"
6991fi
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7020$as_echo_n "checking for -single_module linker flag... " >&6; }
7021if ${lt_cv_apple_cc_single_mod+:} false; then :
7022  $as_echo_n "(cached) " >&6
7023else
7024  lt_cv_apple_cc_single_mod=no
7025      if test -z "${LT_MULTI_MODULE}"; then
7026	# By default we will add the -single_module flag. You can override
7027	# by either setting the environment variable LT_MULTI_MODULE
7028	# non-empty at configure time, or by adding -multi_module to the
7029	# link flags.
7030	rm -rf libconftest.dylib*
7031	echo "int foo(void){return 1;}" > conftest.c
7032	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7033-dynamiclib -Wl,-single_module conftest.c" >&5
7034	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7035	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7036        _lt_result=$?
7037	# If there is a non-empty error log, and "single_module"
7038	# appears in it, assume the flag caused a linker warning
7039        if test -s conftest.err && $GREP single_module conftest.err; then
7040	  cat conftest.err >&5
7041	# Otherwise, if the output was created with a 0 exit code from
7042	# the compiler, it worked.
7043	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7044	  lt_cv_apple_cc_single_mod=yes
7045	else
7046	  cat conftest.err >&5
7047	fi
7048	rm -rf libconftest.dylib*
7049	rm -f conftest.*
7050      fi
7051fi
7052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7053$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7054
7055    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7056$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7057if ${lt_cv_ld_exported_symbols_list+:} false; then :
7058  $as_echo_n "(cached) " >&6
7059else
7060  lt_cv_ld_exported_symbols_list=no
7061      save_LDFLAGS=$LDFLAGS
7062      echo "_main" > conftest.sym
7063      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7064      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7065/* end confdefs.h.  */
7066
7067int
7068main ()
7069{
7070
7071  ;
7072  return 0;
7073}
7074_ACEOF
7075if ac_fn_c_try_link "$LINENO"; then :
7076  lt_cv_ld_exported_symbols_list=yes
7077else
7078  lt_cv_ld_exported_symbols_list=no
7079fi
7080rm -f core conftest.err conftest.$ac_objext \
7081    conftest$ac_exeext conftest.$ac_ext
7082	LDFLAGS="$save_LDFLAGS"
7083
7084fi
7085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7086$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7087
7088    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7089$as_echo_n "checking for -force_load linker flag... " >&6; }
7090if ${lt_cv_ld_force_load+:} false; then :
7091  $as_echo_n "(cached) " >&6
7092else
7093  lt_cv_ld_force_load=no
7094      cat > conftest.c << _LT_EOF
7095int forced_loaded() { return 2;}
7096_LT_EOF
7097      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7098      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7099      echo "$AR cru libconftest.a conftest.o" >&5
7100      $AR cru libconftest.a conftest.o 2>&5
7101      echo "$RANLIB libconftest.a" >&5
7102      $RANLIB libconftest.a 2>&5
7103      cat > conftest.c << _LT_EOF
7104int main() { return 0;}
7105_LT_EOF
7106      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7107      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7108      _lt_result=$?
7109      if test -s conftest.err && $GREP force_load conftest.err; then
7110	cat conftest.err >&5
7111      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7112	lt_cv_ld_force_load=yes
7113      else
7114	cat conftest.err >&5
7115      fi
7116        rm -f conftest.err libconftest.a conftest conftest.c
7117        rm -rf conftest.dSYM
7118
7119fi
7120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7121$as_echo "$lt_cv_ld_force_load" >&6; }
7122    case $host_os in
7123    rhapsody* | darwin1.[012])
7124      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7125    darwin1.*)
7126      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7127    darwin*) # darwin 5.x on
7128      # if running on 10.5 or later, the deployment target defaults
7129      # to the OS version, if on x86, and 10.4, the deployment
7130      # target defaults to 10.4. Don't you love it?
7131      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7132	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7133	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7134	10.[012]*)
7135	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7136	10.*)
7137	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7138      esac
7139    ;;
7140  esac
7141    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7142      _lt_dar_single_mod='$single_module'
7143    fi
7144    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7145      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7146    else
7147      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7148    fi
7149    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7150      _lt_dsymutil='~$DSYMUTIL $lib || :'
7151    else
7152      _lt_dsymutil=
7153    fi
7154    ;;
7155  esac
7156
7157ac_ext=c
7158ac_cpp='$CPP $CPPFLAGS'
7159ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7160ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7161ac_compiler_gnu=$ac_cv_c_compiler_gnu
7162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7163$as_echo_n "checking how to run the C preprocessor... " >&6; }
7164# On Suns, sometimes $CPP names a directory.
7165if test -n "$CPP" && test -d "$CPP"; then
7166  CPP=
7167fi
7168if test -z "$CPP"; then
7169  if ${ac_cv_prog_CPP+:} false; then :
7170  $as_echo_n "(cached) " >&6
7171else
7172      # Double quotes because CPP needs to be expanded
7173    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7174    do
7175      ac_preproc_ok=false
7176for ac_c_preproc_warn_flag in '' yes
7177do
7178  # Use a header file that comes with gcc, so configuring glibc
7179  # with a fresh cross-compiler works.
7180  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7181  # <limits.h> exists even on freestanding compilers.
7182  # On the NeXT, cc -E runs the code through the compiler's parser,
7183  # not just through cpp. "Syntax error" is here to catch this case.
7184  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7185/* end confdefs.h.  */
7186#ifdef __STDC__
7187# include <limits.h>
7188#else
7189# include <assert.h>
7190#endif
7191		     Syntax error
7192_ACEOF
7193if ac_fn_c_try_cpp "$LINENO"; then :
7194
7195else
7196  # Broken: fails on valid input.
7197continue
7198fi
7199rm -f conftest.err conftest.i conftest.$ac_ext
7200
7201  # OK, works on sane cases.  Now check whether nonexistent headers
7202  # can be detected and how.
7203  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7204/* end confdefs.h.  */
7205#include <ac_nonexistent.h>
7206_ACEOF
7207if ac_fn_c_try_cpp "$LINENO"; then :
7208  # Broken: success on invalid input.
7209continue
7210else
7211  # Passes both tests.
7212ac_preproc_ok=:
7213break
7214fi
7215rm -f conftest.err conftest.i conftest.$ac_ext
7216
7217done
7218# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7219rm -f conftest.i conftest.err conftest.$ac_ext
7220if $ac_preproc_ok; then :
7221  break
7222fi
7223
7224    done
7225    ac_cv_prog_CPP=$CPP
7226
7227fi
7228  CPP=$ac_cv_prog_CPP
7229else
7230  ac_cv_prog_CPP=$CPP
7231fi
7232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7233$as_echo "$CPP" >&6; }
7234ac_preproc_ok=false
7235for ac_c_preproc_warn_flag in '' yes
7236do
7237  # Use a header file that comes with gcc, so configuring glibc
7238  # with a fresh cross-compiler works.
7239  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7240  # <limits.h> exists even on freestanding compilers.
7241  # On the NeXT, cc -E runs the code through the compiler's parser,
7242  # not just through cpp. "Syntax error" is here to catch this case.
7243  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7244/* end confdefs.h.  */
7245#ifdef __STDC__
7246# include <limits.h>
7247#else
7248# include <assert.h>
7249#endif
7250		     Syntax error
7251_ACEOF
7252if ac_fn_c_try_cpp "$LINENO"; then :
7253
7254else
7255  # Broken: fails on valid input.
7256continue
7257fi
7258rm -f conftest.err conftest.i conftest.$ac_ext
7259
7260  # OK, works on sane cases.  Now check whether nonexistent headers
7261  # can be detected and how.
7262  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7263/* end confdefs.h.  */
7264#include <ac_nonexistent.h>
7265_ACEOF
7266if ac_fn_c_try_cpp "$LINENO"; then :
7267  # Broken: success on invalid input.
7268continue
7269else
7270  # Passes both tests.
7271ac_preproc_ok=:
7272break
7273fi
7274rm -f conftest.err conftest.i conftest.$ac_ext
7275
7276done
7277# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7278rm -f conftest.i conftest.err conftest.$ac_ext
7279if $ac_preproc_ok; then :
7280
7281else
7282  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7283$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7284as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7285See \`config.log' for more details" "$LINENO" 5; }
7286fi
7287
7288ac_ext=c
7289ac_cpp='$CPP $CPPFLAGS'
7290ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7291ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7292ac_compiler_gnu=$ac_cv_c_compiler_gnu
7293
7294
7295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7296$as_echo_n "checking for ANSI C header files... " >&6; }
7297if ${ac_cv_header_stdc+:} false; then :
7298  $as_echo_n "(cached) " >&6
7299else
7300  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7301/* end confdefs.h.  */
7302#include <stdlib.h>
7303#include <stdarg.h>
7304#include <string.h>
7305#include <float.h>
7306
7307int
7308main ()
7309{
7310
7311  ;
7312  return 0;
7313}
7314_ACEOF
7315if ac_fn_c_try_compile "$LINENO"; then :
7316  ac_cv_header_stdc=yes
7317else
7318  ac_cv_header_stdc=no
7319fi
7320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7321
7322if test $ac_cv_header_stdc = yes; then
7323  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7324  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7325/* end confdefs.h.  */
7326#include <string.h>
7327
7328_ACEOF
7329if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7330  $EGREP "memchr" >/dev/null 2>&1; then :
7331
7332else
7333  ac_cv_header_stdc=no
7334fi
7335rm -f conftest*
7336
7337fi
7338
7339if test $ac_cv_header_stdc = yes; then
7340  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7341  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7342/* end confdefs.h.  */
7343#include <stdlib.h>
7344
7345_ACEOF
7346if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7347  $EGREP "free" >/dev/null 2>&1; then :
7348
7349else
7350  ac_cv_header_stdc=no
7351fi
7352rm -f conftest*
7353
7354fi
7355
7356if test $ac_cv_header_stdc = yes; then
7357  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7358  if test "$cross_compiling" = yes; then :
7359  :
7360else
7361  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7362/* end confdefs.h.  */
7363#include <ctype.h>
7364#include <stdlib.h>
7365#if ((' ' & 0x0FF) == 0x020)
7366# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7367# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7368#else
7369# define ISLOWER(c) \
7370		   (('a' <= (c) && (c) <= 'i') \
7371		     || ('j' <= (c) && (c) <= 'r') \
7372		     || ('s' <= (c) && (c) <= 'z'))
7373# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7374#endif
7375
7376#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7377int
7378main ()
7379{
7380  int i;
7381  for (i = 0; i < 256; i++)
7382    if (XOR (islower (i), ISLOWER (i))
7383	|| toupper (i) != TOUPPER (i))
7384      return 2;
7385  return 0;
7386}
7387_ACEOF
7388if ac_fn_c_try_run "$LINENO"; then :
7389
7390else
7391  ac_cv_header_stdc=no
7392fi
7393rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7394  conftest.$ac_objext conftest.beam conftest.$ac_ext
7395fi
7396
7397fi
7398fi
7399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7400$as_echo "$ac_cv_header_stdc" >&6; }
7401if test $ac_cv_header_stdc = yes; then
7402
7403$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7404
7405fi
7406
7407# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7408for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7409		  inttypes.h stdint.h unistd.h
7410do :
7411  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7412ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7413"
7414if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7415  cat >>confdefs.h <<_ACEOF
7416#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7417_ACEOF
7418
7419fi
7420
7421done
7422
7423
7424for ac_header in dlfcn.h
7425do :
7426  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7427"
7428if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7429  cat >>confdefs.h <<_ACEOF
7430#define HAVE_DLFCN_H 1
7431_ACEOF
7432
7433fi
7434
7435done
7436
7437
7438
7439
7440
7441# Set options
7442
7443
7444
7445        enable_dlopen=no
7446
7447
7448  enable_win32_dll=no
7449
7450
7451
7452
7453
7454# Check whether --with-pic was given.
7455if test "${with_pic+set}" = set; then :
7456  withval=$with_pic; lt_p=${PACKAGE-default}
7457    case $withval in
7458    yes|no) pic_mode=$withval ;;
7459    *)
7460      pic_mode=default
7461      # Look at the argument we got.  We use all the common list separators.
7462      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7463      for lt_pkg in $withval; do
7464	IFS="$lt_save_ifs"
7465	if test "X$lt_pkg" = "X$lt_p"; then
7466	  pic_mode=yes
7467	fi
7468      done
7469      IFS="$lt_save_ifs"
7470      ;;
7471    esac
7472else
7473  pic_mode=default
7474fi
7475
7476
7477test -z "$pic_mode" && pic_mode=default
7478
7479
7480
7481
7482
7483
7484
7485  # Check whether --enable-fast-install was given.
7486if test "${enable_fast_install+set}" = set; then :
7487  enableval=$enable_fast_install; p=${PACKAGE-default}
7488    case $enableval in
7489    yes) enable_fast_install=yes ;;
7490    no) enable_fast_install=no ;;
7491    *)
7492      enable_fast_install=no
7493      # Look at the argument we got.  We use all the common list separators.
7494      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7495      for pkg in $enableval; do
7496	IFS="$lt_save_ifs"
7497	if test "X$pkg" = "X$p"; then
7498	  enable_fast_install=yes
7499	fi
7500      done
7501      IFS="$lt_save_ifs"
7502      ;;
7503    esac
7504else
7505  enable_fast_install=yes
7506fi
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518# This can be used to rebuild libtool when needed
7519LIBTOOL_DEPS="$ltmain"
7520
7521# Always use our own libtool.
7522LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553test -z "$LN_S" && LN_S="ln -s"
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568if test -n "${ZSH_VERSION+set}" ; then
7569   setopt NO_GLOB_SUBST
7570fi
7571
7572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7573$as_echo_n "checking for objdir... " >&6; }
7574if ${lt_cv_objdir+:} false; then :
7575  $as_echo_n "(cached) " >&6
7576else
7577  rm -f .libs 2>/dev/null
7578mkdir .libs 2>/dev/null
7579if test -d .libs; then
7580  lt_cv_objdir=.libs
7581else
7582  # MS-DOS does not allow filenames that begin with a dot.
7583  lt_cv_objdir=_libs
7584fi
7585rmdir .libs 2>/dev/null
7586fi
7587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7588$as_echo "$lt_cv_objdir" >&6; }
7589objdir=$lt_cv_objdir
7590
7591
7592
7593
7594
7595cat >>confdefs.h <<_ACEOF
7596#define LT_OBJDIR "$lt_cv_objdir/"
7597_ACEOF
7598
7599
7600
7601
7602case $host_os in
7603aix3*)
7604  # AIX sometimes has problems with the GCC collect2 program.  For some
7605  # reason, if we set the COLLECT_NAMES environment variable, the problems
7606  # vanish in a puff of smoke.
7607  if test "X${COLLECT_NAMES+set}" != Xset; then
7608    COLLECT_NAMES=
7609    export COLLECT_NAMES
7610  fi
7611  ;;
7612esac
7613
7614# Global variables:
7615ofile=libtool
7616can_build_shared=yes
7617
7618# All known linkers require a `.a' archive for static linking (except MSVC,
7619# which needs '.lib').
7620libext=a
7621
7622with_gnu_ld="$lt_cv_prog_gnu_ld"
7623
7624old_CC="$CC"
7625old_CFLAGS="$CFLAGS"
7626
7627# Set sane defaults for various variables
7628test -z "$CC" && CC=cc
7629test -z "$LTCC" && LTCC=$CC
7630test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7631test -z "$LD" && LD=ld
7632test -z "$ac_objext" && ac_objext=o
7633
7634for cc_temp in $compiler""; do
7635  case $cc_temp in
7636    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7637    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7638    \-*) ;;
7639    *) break;;
7640  esac
7641done
7642cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7643
7644
7645# Only perform the check for file, if the check method requires it
7646test -z "$MAGIC_CMD" && MAGIC_CMD=file
7647case $deplibs_check_method in
7648file_magic*)
7649  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7650    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7651$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7652if ${lt_cv_path_MAGIC_CMD+:} false; then :
7653  $as_echo_n "(cached) " >&6
7654else
7655  case $MAGIC_CMD in
7656[\\/*] |  ?:[\\/]*)
7657  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7658  ;;
7659*)
7660  lt_save_MAGIC_CMD="$MAGIC_CMD"
7661  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7662  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7663  for ac_dir in $ac_dummy; do
7664    IFS="$lt_save_ifs"
7665    test -z "$ac_dir" && ac_dir=.
7666    if test -f $ac_dir/${ac_tool_prefix}file; then
7667      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7668      if test -n "$file_magic_test_file"; then
7669	case $deplibs_check_method in
7670	"file_magic "*)
7671	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7672	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7673	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7674	    $EGREP "$file_magic_regex" > /dev/null; then
7675	    :
7676	  else
7677	    cat <<_LT_EOF 1>&2
7678
7679*** Warning: the command libtool uses to detect shared libraries,
7680*** $file_magic_cmd, produces output that libtool cannot recognize.
7681*** The result is that libtool may fail to recognize shared libraries
7682*** as such.  This will affect the creation of libtool libraries that
7683*** depend on shared libraries, but programs linked with such libtool
7684*** libraries will work regardless of this problem.  Nevertheless, you
7685*** may want to report the problem to your system manager and/or to
7686*** bug-libtool@gnu.org
7687
7688_LT_EOF
7689	  fi ;;
7690	esac
7691      fi
7692      break
7693    fi
7694  done
7695  IFS="$lt_save_ifs"
7696  MAGIC_CMD="$lt_save_MAGIC_CMD"
7697  ;;
7698esac
7699fi
7700
7701MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7702if test -n "$MAGIC_CMD"; then
7703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7704$as_echo "$MAGIC_CMD" >&6; }
7705else
7706  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7707$as_echo "no" >&6; }
7708fi
7709
7710
7711
7712
7713
7714if test -z "$lt_cv_path_MAGIC_CMD"; then
7715  if test -n "$ac_tool_prefix"; then
7716    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7717$as_echo_n "checking for file... " >&6; }
7718if ${lt_cv_path_MAGIC_CMD+:} false; then :
7719  $as_echo_n "(cached) " >&6
7720else
7721  case $MAGIC_CMD in
7722[\\/*] |  ?:[\\/]*)
7723  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7724  ;;
7725*)
7726  lt_save_MAGIC_CMD="$MAGIC_CMD"
7727  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7728  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7729  for ac_dir in $ac_dummy; do
7730    IFS="$lt_save_ifs"
7731    test -z "$ac_dir" && ac_dir=.
7732    if test -f $ac_dir/file; then
7733      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7734      if test -n "$file_magic_test_file"; then
7735	case $deplibs_check_method in
7736	"file_magic "*)
7737	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7738	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7739	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7740	    $EGREP "$file_magic_regex" > /dev/null; then
7741	    :
7742	  else
7743	    cat <<_LT_EOF 1>&2
7744
7745*** Warning: the command libtool uses to detect shared libraries,
7746*** $file_magic_cmd, produces output that libtool cannot recognize.
7747*** The result is that libtool may fail to recognize shared libraries
7748*** as such.  This will affect the creation of libtool libraries that
7749*** depend on shared libraries, but programs linked with such libtool
7750*** libraries will work regardless of this problem.  Nevertheless, you
7751*** may want to report the problem to your system manager and/or to
7752*** bug-libtool@gnu.org
7753
7754_LT_EOF
7755	  fi ;;
7756	esac
7757      fi
7758      break
7759    fi
7760  done
7761  IFS="$lt_save_ifs"
7762  MAGIC_CMD="$lt_save_MAGIC_CMD"
7763  ;;
7764esac
7765fi
7766
7767MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7768if test -n "$MAGIC_CMD"; then
7769  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7770$as_echo "$MAGIC_CMD" >&6; }
7771else
7772  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7773$as_echo "no" >&6; }
7774fi
7775
7776
7777  else
7778    MAGIC_CMD=:
7779  fi
7780fi
7781
7782  fi
7783  ;;
7784esac
7785
7786# Use C for the default configuration in the libtool script
7787
7788lt_save_CC="$CC"
7789ac_ext=c
7790ac_cpp='$CPP $CPPFLAGS'
7791ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7792ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7793ac_compiler_gnu=$ac_cv_c_compiler_gnu
7794
7795
7796# Source file extension for C test sources.
7797ac_ext=c
7798
7799# Object file extension for compiled C test sources.
7800objext=o
7801objext=$objext
7802
7803# Code to be used in simple compile tests
7804lt_simple_compile_test_code="int some_variable = 0;"
7805
7806# Code to be used in simple link tests
7807lt_simple_link_test_code='int main(){return(0);}'
7808
7809
7810
7811
7812
7813
7814
7815# If no C compiler was specified, use CC.
7816LTCC=${LTCC-"$CC"}
7817
7818# If no C compiler flags were specified, use CFLAGS.
7819LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7820
7821# Allow CC to be a program name with arguments.
7822compiler=$CC
7823
7824# Save the default compiler, since it gets overwritten when the other
7825# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7826compiler_DEFAULT=$CC
7827
7828# save warnings/boilerplate of simple test code
7829ac_outfile=conftest.$ac_objext
7830echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7831eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7832_lt_compiler_boilerplate=`cat conftest.err`
7833$RM conftest*
7834
7835ac_outfile=conftest.$ac_objext
7836echo "$lt_simple_link_test_code" >conftest.$ac_ext
7837eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7838_lt_linker_boilerplate=`cat conftest.err`
7839$RM -r conftest*
7840
7841
7842## CAVEAT EMPTOR:
7843## There is no encapsulation within the following macros, do not change
7844## the running order or otherwise move them around unless you know exactly
7845## what you are doing...
7846if test -n "$compiler"; then
7847
7848lt_prog_compiler_no_builtin_flag=
7849
7850if test "$GCC" = yes; then
7851  case $cc_basename in
7852  nvcc*)
7853    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7854  *)
7855    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7856  esac
7857
7858  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7859$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7860if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7861  $as_echo_n "(cached) " >&6
7862else
7863  lt_cv_prog_compiler_rtti_exceptions=no
7864   ac_outfile=conftest.$ac_objext
7865   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7866   lt_compiler_flag="-fno-rtti -fno-exceptions"
7867   # Insert the option either (1) after the last *FLAGS variable, or
7868   # (2) before a word containing "conftest.", or (3) at the end.
7869   # Note that $ac_compile itself does not contain backslashes and begins
7870   # with a dollar sign (not a hyphen), so the echo should work correctly.
7871   # The option is referenced via a variable to avoid confusing sed.
7872   lt_compile=`echo "$ac_compile" | $SED \
7873   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7874   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7875   -e 's:$: $lt_compiler_flag:'`
7876   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7877   (eval "$lt_compile" 2>conftest.err)
7878   ac_status=$?
7879   cat conftest.err >&5
7880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881   if (exit $ac_status) && test -s "$ac_outfile"; then
7882     # The compiler can only warn and ignore the option if not recognized
7883     # So say no if there are warnings other than the usual output.
7884     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7885     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7886     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7887       lt_cv_prog_compiler_rtti_exceptions=yes
7888     fi
7889   fi
7890   $RM conftest*
7891
7892fi
7893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7894$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7895
7896if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7897    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7898else
7899    :
7900fi
7901
7902fi
7903
7904
7905
7906
7907
7908
7909  lt_prog_compiler_wl=
7910lt_prog_compiler_pic=
7911lt_prog_compiler_static=
7912
7913
7914  if test "$GCC" = yes; then
7915    lt_prog_compiler_wl='-Wl,'
7916    lt_prog_compiler_static='-static'
7917
7918    case $host_os in
7919      aix*)
7920      # All AIX code is PIC.
7921      if test "$host_cpu" = ia64; then
7922	# AIX 5 now supports IA64 processor
7923	lt_prog_compiler_static='-Bstatic'
7924      fi
7925      ;;
7926
7927    amigaos*)
7928      case $host_cpu in
7929      powerpc)
7930            # see comment about AmigaOS4 .so support
7931            lt_prog_compiler_pic='-fPIC'
7932        ;;
7933      m68k)
7934            # FIXME: we need at least 68020 code to build shared libraries, but
7935            # adding the `-m68020' flag to GCC prevents building anything better,
7936            # like `-m68040'.
7937            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7938        ;;
7939      esac
7940      ;;
7941
7942    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7943      # PIC is the default for these OSes.
7944      ;;
7945
7946    mingw* | cygwin* | pw32* | os2* | cegcc*)
7947      # This hack is so that the source file can tell whether it is being
7948      # built for inclusion in a dll (and should export symbols for example).
7949      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7950      # (--disable-auto-import) libraries
7951      lt_prog_compiler_pic='-DDLL_EXPORT'
7952      ;;
7953
7954    darwin* | rhapsody*)
7955      # PIC is the default on this platform
7956      # Common symbols not allowed in MH_DYLIB files
7957      lt_prog_compiler_pic='-fno-common'
7958      ;;
7959
7960    haiku*)
7961      # PIC is the default for Haiku.
7962      # The "-static" flag exists, but is broken.
7963      lt_prog_compiler_static=
7964      ;;
7965
7966    hpux*)
7967      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7968      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7969      # sets the default TLS model and affects inlining.
7970      case $host_cpu in
7971      hppa*64*)
7972	# +Z the default
7973	;;
7974      *)
7975	lt_prog_compiler_pic='-fPIC'
7976	;;
7977      esac
7978      ;;
7979
7980    interix[3-9]*)
7981      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7982      # Instead, we relocate shared libraries at runtime.
7983      ;;
7984
7985    msdosdjgpp*)
7986      # Just because we use GCC doesn't mean we suddenly get shared libraries
7987      # on systems that don't support them.
7988      lt_prog_compiler_can_build_shared=no
7989      enable_shared=no
7990      ;;
7991
7992    *nto* | *qnx*)
7993      # QNX uses GNU C++, but need to define -shared option too, otherwise
7994      # it will coredump.
7995      lt_prog_compiler_pic='-fPIC -shared'
7996      ;;
7997
7998    sysv4*MP*)
7999      if test -d /usr/nec; then
8000	lt_prog_compiler_pic=-Kconform_pic
8001      fi
8002      ;;
8003
8004    *)
8005      lt_prog_compiler_pic='-fPIC'
8006      ;;
8007    esac
8008
8009    case $cc_basename in
8010    nvcc*) # Cuda Compiler Driver 2.2
8011      lt_prog_compiler_wl='-Xlinker '
8012      if test -n "$lt_prog_compiler_pic"; then
8013        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8014      fi
8015      ;;
8016    esac
8017  else
8018    # PORTME Check for flag to pass linker flags through the system compiler.
8019    case $host_os in
8020    aix*)
8021      lt_prog_compiler_wl='-Wl,'
8022      if test "$host_cpu" = ia64; then
8023	# AIX 5 now supports IA64 processor
8024	lt_prog_compiler_static='-Bstatic'
8025      else
8026	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8027      fi
8028      ;;
8029
8030    mingw* | cygwin* | pw32* | os2* | cegcc*)
8031      # This hack is so that the source file can tell whether it is being
8032      # built for inclusion in a dll (and should export symbols for example).
8033      lt_prog_compiler_pic='-DDLL_EXPORT'
8034      ;;
8035
8036    hpux9* | hpux10* | hpux11*)
8037      lt_prog_compiler_wl='-Wl,'
8038      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8039      # not for PA HP-UX.
8040      case $host_cpu in
8041      hppa*64*|ia64*)
8042	# +Z the default
8043	;;
8044      *)
8045	lt_prog_compiler_pic='+Z'
8046	;;
8047      esac
8048      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8049      lt_prog_compiler_static='${wl}-a ${wl}archive'
8050      ;;
8051
8052    irix5* | irix6* | nonstopux*)
8053      lt_prog_compiler_wl='-Wl,'
8054      # PIC (with -KPIC) is the default.
8055      lt_prog_compiler_static='-non_shared'
8056      ;;
8057
8058    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8059      case $cc_basename in
8060      # old Intel for x86_64 which still supported -KPIC.
8061      ecc*)
8062	lt_prog_compiler_wl='-Wl,'
8063	lt_prog_compiler_pic='-KPIC'
8064	lt_prog_compiler_static='-static'
8065        ;;
8066      # icc used to be incompatible with GCC.
8067      # ICC 10 doesn't accept -KPIC any more.
8068      icc* | ifort*)
8069	lt_prog_compiler_wl='-Wl,'
8070	lt_prog_compiler_pic='-fPIC'
8071	lt_prog_compiler_static='-static'
8072        ;;
8073      # Lahey Fortran 8.1.
8074      lf95*)
8075	lt_prog_compiler_wl='-Wl,'
8076	lt_prog_compiler_pic='--shared'
8077	lt_prog_compiler_static='--static'
8078	;;
8079      nagfor*)
8080	# NAG Fortran compiler
8081	lt_prog_compiler_wl='-Wl,-Wl,,'
8082	lt_prog_compiler_pic='-PIC'
8083	lt_prog_compiler_static='-Bstatic'
8084	;;
8085      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8086        # Portland Group compilers (*not* the Pentium gcc compiler,
8087	# which looks to be a dead project)
8088	lt_prog_compiler_wl='-Wl,'
8089	lt_prog_compiler_pic='-fpic'
8090	lt_prog_compiler_static='-Bstatic'
8091        ;;
8092      ccc*)
8093        lt_prog_compiler_wl='-Wl,'
8094        # All Alpha code is PIC.
8095        lt_prog_compiler_static='-non_shared'
8096        ;;
8097      xl* | bgxl* | bgf* | mpixl*)
8098	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8099	lt_prog_compiler_wl='-Wl,'
8100	lt_prog_compiler_pic='-qpic'
8101	lt_prog_compiler_static='-qstaticlink'
8102	;;
8103      *)
8104	case `$CC -V 2>&1 | sed 5q` in
8105	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8106	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8107	  lt_prog_compiler_pic='-KPIC'
8108	  lt_prog_compiler_static='-Bstatic'
8109	  lt_prog_compiler_wl=''
8110	  ;;
8111	*Sun\ F* | *Sun*Fortran*)
8112	  lt_prog_compiler_pic='-KPIC'
8113	  lt_prog_compiler_static='-Bstatic'
8114	  lt_prog_compiler_wl='-Qoption ld '
8115	  ;;
8116	*Sun\ C*)
8117	  # Sun C 5.9
8118	  lt_prog_compiler_pic='-KPIC'
8119	  lt_prog_compiler_static='-Bstatic'
8120	  lt_prog_compiler_wl='-Wl,'
8121	  ;;
8122        *Intel*\ [CF]*Compiler*)
8123	  lt_prog_compiler_wl='-Wl,'
8124	  lt_prog_compiler_pic='-fPIC'
8125	  lt_prog_compiler_static='-static'
8126	  ;;
8127	*Portland\ Group*)
8128	  lt_prog_compiler_wl='-Wl,'
8129	  lt_prog_compiler_pic='-fpic'
8130	  lt_prog_compiler_static='-Bstatic'
8131	  ;;
8132	esac
8133	;;
8134      esac
8135      ;;
8136
8137    newsos6)
8138      lt_prog_compiler_pic='-KPIC'
8139      lt_prog_compiler_static='-Bstatic'
8140      ;;
8141
8142    *nto* | *qnx*)
8143      # QNX uses GNU C++, but need to define -shared option too, otherwise
8144      # it will coredump.
8145      lt_prog_compiler_pic='-fPIC -shared'
8146      ;;
8147
8148    osf3* | osf4* | osf5*)
8149      lt_prog_compiler_wl='-Wl,'
8150      # All OSF/1 code is PIC.
8151      lt_prog_compiler_static='-non_shared'
8152      ;;
8153
8154    rdos*)
8155      lt_prog_compiler_static='-non_shared'
8156      ;;
8157
8158    solaris*)
8159      lt_prog_compiler_pic='-KPIC'
8160      lt_prog_compiler_static='-Bstatic'
8161      case $cc_basename in
8162      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8163	lt_prog_compiler_wl='-Qoption ld ';;
8164      *)
8165	lt_prog_compiler_wl='-Wl,';;
8166      esac
8167      ;;
8168
8169    sunos4*)
8170      lt_prog_compiler_wl='-Qoption ld '
8171      lt_prog_compiler_pic='-PIC'
8172      lt_prog_compiler_static='-Bstatic'
8173      ;;
8174
8175    sysv4 | sysv4.2uw2* | sysv4.3*)
8176      lt_prog_compiler_wl='-Wl,'
8177      lt_prog_compiler_pic='-KPIC'
8178      lt_prog_compiler_static='-Bstatic'
8179      ;;
8180
8181    sysv4*MP*)
8182      if test -d /usr/nec ;then
8183	lt_prog_compiler_pic='-Kconform_pic'
8184	lt_prog_compiler_static='-Bstatic'
8185      fi
8186      ;;
8187
8188    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8189      lt_prog_compiler_wl='-Wl,'
8190      lt_prog_compiler_pic='-KPIC'
8191      lt_prog_compiler_static='-Bstatic'
8192      ;;
8193
8194    unicos*)
8195      lt_prog_compiler_wl='-Wl,'
8196      lt_prog_compiler_can_build_shared=no
8197      ;;
8198
8199    uts4*)
8200      lt_prog_compiler_pic='-pic'
8201      lt_prog_compiler_static='-Bstatic'
8202      ;;
8203
8204    *)
8205      lt_prog_compiler_can_build_shared=no
8206      ;;
8207    esac
8208  fi
8209
8210case $host_os in
8211  # For platforms which do not support PIC, -DPIC is meaningless:
8212  *djgpp*)
8213    lt_prog_compiler_pic=
8214    ;;
8215  *)
8216    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8217    ;;
8218esac
8219
8220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8221$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8222if ${lt_cv_prog_compiler_pic+:} false; then :
8223  $as_echo_n "(cached) " >&6
8224else
8225  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8226fi
8227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8228$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8229lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8230
8231#
8232# Check to make sure the PIC flag actually works.
8233#
8234if test -n "$lt_prog_compiler_pic"; then
8235  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8236$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8237if ${lt_cv_prog_compiler_pic_works+:} false; then :
8238  $as_echo_n "(cached) " >&6
8239else
8240  lt_cv_prog_compiler_pic_works=no
8241   ac_outfile=conftest.$ac_objext
8242   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8243   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8244   # Insert the option either (1) after the last *FLAGS variable, or
8245   # (2) before a word containing "conftest.", or (3) at the end.
8246   # Note that $ac_compile itself does not contain backslashes and begins
8247   # with a dollar sign (not a hyphen), so the echo should work correctly.
8248   # The option is referenced via a variable to avoid confusing sed.
8249   lt_compile=`echo "$ac_compile" | $SED \
8250   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8251   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8252   -e 's:$: $lt_compiler_flag:'`
8253   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8254   (eval "$lt_compile" 2>conftest.err)
8255   ac_status=$?
8256   cat conftest.err >&5
8257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258   if (exit $ac_status) && test -s "$ac_outfile"; then
8259     # The compiler can only warn and ignore the option if not recognized
8260     # So say no if there are warnings other than the usual output.
8261     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8262     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8263     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8264       lt_cv_prog_compiler_pic_works=yes
8265     fi
8266   fi
8267   $RM conftest*
8268
8269fi
8270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8271$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8272
8273if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8274    case $lt_prog_compiler_pic in
8275     "" | " "*) ;;
8276     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8277     esac
8278else
8279    lt_prog_compiler_pic=
8280     lt_prog_compiler_can_build_shared=no
8281fi
8282
8283fi
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295#
8296# Check to make sure the static flag actually works.
8297#
8298wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8300$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8301if ${lt_cv_prog_compiler_static_works+:} false; then :
8302  $as_echo_n "(cached) " >&6
8303else
8304  lt_cv_prog_compiler_static_works=no
8305   save_LDFLAGS="$LDFLAGS"
8306   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8307   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8308   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8309     # The linker can only warn and ignore the option if not recognized
8310     # So say no if there are warnings
8311     if test -s conftest.err; then
8312       # Append any errors to the config.log.
8313       cat conftest.err 1>&5
8314       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8315       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8316       if diff conftest.exp conftest.er2 >/dev/null; then
8317         lt_cv_prog_compiler_static_works=yes
8318       fi
8319     else
8320       lt_cv_prog_compiler_static_works=yes
8321     fi
8322   fi
8323   $RM -r conftest*
8324   LDFLAGS="$save_LDFLAGS"
8325
8326fi
8327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8328$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8329
8330if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8331    :
8332else
8333    lt_prog_compiler_static=
8334fi
8335
8336
8337
8338
8339
8340
8341
8342  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8343$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8344if ${lt_cv_prog_compiler_c_o+:} false; then :
8345  $as_echo_n "(cached) " >&6
8346else
8347  lt_cv_prog_compiler_c_o=no
8348   $RM -r conftest 2>/dev/null
8349   mkdir conftest
8350   cd conftest
8351   mkdir out
8352   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8353
8354   lt_compiler_flag="-o out/conftest2.$ac_objext"
8355   # Insert the option either (1) after the last *FLAGS variable, or
8356   # (2) before a word containing "conftest.", or (3) at the end.
8357   # Note that $ac_compile itself does not contain backslashes and begins
8358   # with a dollar sign (not a hyphen), so the echo should work correctly.
8359   lt_compile=`echo "$ac_compile" | $SED \
8360   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8361   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8362   -e 's:$: $lt_compiler_flag:'`
8363   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8364   (eval "$lt_compile" 2>out/conftest.err)
8365   ac_status=$?
8366   cat out/conftest.err >&5
8367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8369   then
8370     # The compiler can only warn and ignore the option if not recognized
8371     # So say no if there are warnings
8372     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8373     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8374     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8375       lt_cv_prog_compiler_c_o=yes
8376     fi
8377   fi
8378   chmod u+w . 2>&5
8379   $RM conftest*
8380   # SGI C++ compiler will create directory out/ii_files/ for
8381   # template instantiation
8382   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8383   $RM out/* && rmdir out
8384   cd ..
8385   $RM -r conftest
8386   $RM conftest*
8387
8388fi
8389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8390$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8391
8392
8393
8394
8395
8396
8397  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8398$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8399if ${lt_cv_prog_compiler_c_o+:} false; then :
8400  $as_echo_n "(cached) " >&6
8401else
8402  lt_cv_prog_compiler_c_o=no
8403   $RM -r conftest 2>/dev/null
8404   mkdir conftest
8405   cd conftest
8406   mkdir out
8407   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8408
8409   lt_compiler_flag="-o out/conftest2.$ac_objext"
8410   # Insert the option either (1) after the last *FLAGS variable, or
8411   # (2) before a word containing "conftest.", or (3) at the end.
8412   # Note that $ac_compile itself does not contain backslashes and begins
8413   # with a dollar sign (not a hyphen), so the echo should work correctly.
8414   lt_compile=`echo "$ac_compile" | $SED \
8415   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8416   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8417   -e 's:$: $lt_compiler_flag:'`
8418   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8419   (eval "$lt_compile" 2>out/conftest.err)
8420   ac_status=$?
8421   cat out/conftest.err >&5
8422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8424   then
8425     # The compiler can only warn and ignore the option if not recognized
8426     # So say no if there are warnings
8427     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8428     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8429     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8430       lt_cv_prog_compiler_c_o=yes
8431     fi
8432   fi
8433   chmod u+w . 2>&5
8434   $RM conftest*
8435   # SGI C++ compiler will create directory out/ii_files/ for
8436   # template instantiation
8437   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8438   $RM out/* && rmdir out
8439   cd ..
8440   $RM -r conftest
8441   $RM conftest*
8442
8443fi
8444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8445$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8446
8447
8448
8449
8450hard_links="nottested"
8451if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8452  # do not overwrite the value of need_locks provided by the user
8453  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8454$as_echo_n "checking if we can lock with hard links... " >&6; }
8455  hard_links=yes
8456  $RM conftest*
8457  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8458  touch conftest.a
8459  ln conftest.a conftest.b 2>&5 || hard_links=no
8460  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8461  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8462$as_echo "$hard_links" >&6; }
8463  if test "$hard_links" = no; then
8464    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8465$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8466    need_locks=warn
8467  fi
8468  # sanitize
8469  new_sys_lib_search_path_spec=
8470  for d in $sys_lib_search_path_spec ; do
8471    # check if exists
8472    if test -d $d -a -x $d ; then
8473      # normalize
8474      new_d=$(cd $d ; pwd)
8475      # uniq
8476      if ! echo "$new_sys_lib_search_path_spec" | grep -q -F -e " $new_d " ; then
8477        new_sys_lib_search_path_spec="$new_sys_lib_search_path_spec $new_d "
8478      fi
8479    fi
8480  done
8481  # compress spaces
8482  sys_lib_search_path_spec=`echo "$new_sys_lib_search_path_spec" | $SED -e 's/^ *//g;s/ \+/ /g;s/ $//g'`
8483else
8484  need_locks=no
8485fi
8486
8487
8488
8489
8490
8491
8492  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8493$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8494
8495  runpath_var=
8496  allow_undefined_flag=
8497  always_export_symbols=no
8498  archive_cmds=
8499  archive_expsym_cmds=
8500  compiler_needs_object=no
8501  enable_shared_with_static_runtimes=no
8502  export_dynamic_flag_spec=
8503  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8504  hardcode_automatic=no
8505  hardcode_direct=no
8506  hardcode_direct_absolute=no
8507  hardcode_libdir_flag_spec=
8508  hardcode_libdir_separator=
8509  hardcode_minus_L=no
8510  hardcode_shlibpath_var=unsupported
8511  inherit_rpath=no
8512  link_all_deplibs=unknown
8513  module_cmds=
8514  module_expsym_cmds=
8515  old_archive_from_new_cmds=
8516  old_archive_from_expsyms_cmds=
8517  thread_safe_flag_spec=
8518  whole_archive_flag_spec=
8519  # include_expsyms should be a list of space-separated symbols to be *always*
8520  # included in the symbol list
8521  include_expsyms=
8522  # exclude_expsyms can be an extended regexp of symbols to exclude
8523  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8524  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8525  # as well as any symbol that contains `d'.
8526  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8527  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8528  # platforms (ab)use it in PIC code, but their linkers get confused if
8529  # the symbol is explicitly referenced.  Since portable code cannot
8530  # rely on this symbol name, it's probably fine to never include it in
8531  # preloaded symbol tables.
8532  # Exclude shared library initialization/finalization symbols.
8533  extract_expsyms_cmds=
8534
8535  case $host_os in
8536  cygwin* | mingw* | pw32* | cegcc*)
8537    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8538    # When not using gcc, we currently assume that we are using
8539    # Microsoft Visual C++.
8540    if test "$GCC" != yes; then
8541      with_gnu_ld=no
8542    fi
8543    ;;
8544  interix*)
8545    # we just hope/assume this is gcc and not c89 (= MSVC++)
8546    with_gnu_ld=yes
8547    ;;
8548  openbsd*)
8549    with_gnu_ld=no
8550    ;;
8551  esac
8552
8553  ld_shlibs=yes
8554
8555  # On some targets, GNU ld is compatible enough with the native linker
8556  # that we're better off using the native interface for both.
8557  lt_use_gnu_ld_interface=no
8558  if test "$with_gnu_ld" = yes; then
8559    case $host_os in
8560      aix*)
8561	# The AIX port of GNU ld has always aspired to compatibility
8562	# with the native linker.  However, as the warning in the GNU ld
8563	# block says, versions before 2.19.5* couldn't really create working
8564	# shared libraries, regardless of the interface used.
8565	case `$LD -v 2>&1` in
8566	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8567	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8568	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8569	  *)
8570	    lt_use_gnu_ld_interface=yes
8571	    ;;
8572	esac
8573	;;
8574      *)
8575	lt_use_gnu_ld_interface=yes
8576	;;
8577    esac
8578  fi
8579
8580  if test "$lt_use_gnu_ld_interface" = yes; then
8581    # If archive_cmds runs LD, not CC, wlarc should be empty
8582    wlarc='${wl}'
8583
8584    # Set some defaults for GNU ld with shared library support. These
8585    # are reset later if shared libraries are not supported. Putting them
8586    # here allows them to be overridden if necessary.
8587    runpath_var=LD_RUN_PATH
8588    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8589    export_dynamic_flag_spec='${wl}--export-dynamic'
8590    # ancient GNU ld didn't support --whole-archive et. al.
8591    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8592      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8593    else
8594      whole_archive_flag_spec=
8595    fi
8596    supports_anon_versioning=no
8597    case `$LD -v 2>&1` in
8598      *GNU\ gold*) supports_anon_versioning=yes ;;
8599      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8600      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8601      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8602      *\ 2.11.*) ;; # other 2.11 versions
8603      *) supports_anon_versioning=yes ;;
8604    esac
8605
8606    # See if GNU ld supports shared libraries.
8607    case $host_os in
8608    aix[3-9]*)
8609      # On AIX/PPC, the GNU linker is very broken
8610      if test "$host_cpu" != ia64; then
8611	ld_shlibs=no
8612	cat <<_LT_EOF 1>&2
8613
8614*** Warning: the GNU linker, at least up to release 2.19, is reported
8615*** to be unable to reliably create shared libraries on AIX.
8616*** Therefore, libtool is disabling shared libraries support.  If you
8617*** really care for shared libraries, you may want to install binutils
8618*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8619*** You will then need to restart the configuration process.
8620
8621_LT_EOF
8622      fi
8623      ;;
8624
8625    amigaos*)
8626      case $host_cpu in
8627      powerpc)
8628            # see comment about AmigaOS4 .so support
8629            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8630            archive_expsym_cmds=''
8631        ;;
8632      m68k)
8633            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)'
8634            hardcode_libdir_flag_spec='-L$libdir'
8635            hardcode_minus_L=yes
8636        ;;
8637      esac
8638      ;;
8639
8640    beos*)
8641      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8642	allow_undefined_flag=unsupported
8643	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8644	# support --undefined.  This deserves some investigation.  FIXME
8645	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8646      else
8647	ld_shlibs=no
8648      fi
8649      ;;
8650
8651    cygwin* | mingw* | pw32* | cegcc*)
8652      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8653      # as there is no search path for DLLs.
8654      hardcode_libdir_flag_spec='-L$libdir'
8655      export_dynamic_flag_spec='${wl}--export-all-symbols'
8656      allow_undefined_flag=unsupported
8657      always_export_symbols=no
8658      enable_shared_with_static_runtimes=yes
8659      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'
8660      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8661
8662      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8663        archive_cmds='$CC -shared $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8664	# If the export-symbols file already is a .def file (1st line
8665	# is EXPORTS), use it as is; otherwise, prepend...
8666	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8667	  cp $export_symbols $output_objdir/$soname.def;
8668	else
8669	  echo EXPORTS > $output_objdir/$soname.def;
8670	  cat $export_symbols >> $output_objdir/$soname.def;
8671	fi~
8672	$CC -shared $output_objdir/$soname.def $libobjs $compiler_flags $deplibs -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8673      else
8674	ld_shlibs=no
8675      fi
8676      ;;
8677
8678    haiku*)
8679      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8680      link_all_deplibs=yes
8681      ;;
8682
8683    interix[3-9]*)
8684      hardcode_direct=no
8685      hardcode_shlibpath_var=no
8686      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8687      export_dynamic_flag_spec='${wl}-E'
8688      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8689      # Instead, shared libraries are loaded at an image base (0x10000000 by
8690      # default) and relocated if they conflict, which is a slow very memory
8691      # consuming and fragmenting process.  To avoid this, we pick a random,
8692      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8693      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8694      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8695      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'
8696      ;;
8697
8698    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8699      tmp_diet=no
8700      if test "$host_os" = linux-dietlibc; then
8701	case $cc_basename in
8702	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8703	esac
8704      fi
8705      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8706	 && test "$tmp_diet" = no
8707      then
8708	tmp_addflag=' $pic_flag'
8709	tmp_sharedflag='-shared'
8710	case $cc_basename,$host_cpu in
8711        pgcc*)				# Portland Group C compiler
8712	  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'
8713	  tmp_addflag=' $pic_flag'
8714	  ;;
8715	pgf77* | pgf90* | pgf95* | pgfortran*)
8716					# Portland Group f77 and f90 compilers
8717	  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'
8718	  tmp_addflag=' $pic_flag -Mnomain' ;;
8719	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8720	  tmp_addflag=' -i_dynamic' ;;
8721	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8722	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8723	ifc* | ifort*)			# Intel Fortran compiler
8724	  tmp_addflag=' -nofor_main' ;;
8725	lf95*)				# Lahey Fortran 8.1
8726	  whole_archive_flag_spec=
8727	  tmp_sharedflag='--shared' ;;
8728	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8729	  tmp_sharedflag='-qmkshrobj'
8730	  tmp_addflag= ;;
8731	nvcc*)	# Cuda Compiler Driver 2.2
8732	  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'
8733	  compiler_needs_object=yes
8734	  ;;
8735	esac
8736	case `$CC -V 2>&1 | sed 5q` in
8737	*Sun\ C*)			# Sun C 5.9
8738	  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'
8739	  compiler_needs_object=yes
8740	  tmp_sharedflag='-G' ;;
8741	*Sun\ F*)			# Sun Fortran 8.3
8742	  tmp_sharedflag='-G' ;;
8743	esac
8744	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
8745
8746        if test "x$supports_anon_versioning" = xyes; then
8747          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8748	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8749	    echo "local: *; };" >> $output_objdir/$libname.ver~
8750	    $CC '"$tmp_sharedflag""$tmp_addflag"' $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8751        fi
8752
8753	case $cc_basename in
8754	xlf* | bgf* | bgxlf* | mpixlf*)
8755	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8756	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8757	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8758	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8759	  if test "x$supports_anon_versioning" = xyes; then
8760	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8761	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8762	      echo "local: *; };" >> $output_objdir/$libname.ver~
8763	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8764	  fi
8765	  ;;
8766	esac
8767      else
8768        ld_shlibs=no
8769      fi
8770      ;;
8771
8772    netbsd*)
8773      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8774	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8775	wlarc=
8776      else
8777	archive_cmds='$CC -shared $pic_flag $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
8778	archive_expsym_cmds='$CC -shared $pic_flag $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8779      fi
8780      ;;
8781
8782    solaris*)
8783      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8784	ld_shlibs=no
8785	cat <<_LT_EOF 1>&2
8786
8787*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8788*** create shared libraries on Solaris systems.  Therefore, libtool
8789*** is disabling shared libraries support.  We urge you to upgrade GNU
8790*** binutils to release 2.9.1 or newer.  Another option is to modify
8791*** your PATH or compiler configuration so that the native linker is
8792*** used, and then restart.
8793
8794_LT_EOF
8795      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8796	archive_cmds='$CC -shared $pic_flag $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
8797	archive_expsym_cmds='$CC -shared $pic_flag $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8798      else
8799	ld_shlibs=no
8800      fi
8801      ;;
8802
8803    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8804      case `$LD -v 2>&1` in
8805        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8806	ld_shlibs=no
8807	cat <<_LT_EOF 1>&2
8808
8809*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8810*** reliably create shared libraries on SCO systems.  Therefore, libtool
8811*** is disabling shared libraries support.  We urge you to upgrade GNU
8812*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8813*** your PATH or compiler configuration so that the native linker is
8814*** used, and then restart.
8815
8816_LT_EOF
8817	;;
8818	*)
8819	  # For security reasons, it is highly recommended that you always
8820	  # use absolute paths for naming shared libraries, and exclude the
8821	  # DT_RUNPATH tag from executables and libraries.  But doing so
8822	  # requires that you compile everything twice, which is a pain.
8823	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8824	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8825	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8826	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8827	  else
8828	    ld_shlibs=no
8829	  fi
8830	;;
8831      esac
8832      ;;
8833
8834    sunos4*)
8835      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8836      wlarc=
8837      hardcode_direct=yes
8838      hardcode_shlibpath_var=no
8839      ;;
8840
8841    *)
8842      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8843	archive_cmds='$CC -shared $pic_flag $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
8844	archive_expsym_cmds='$CC -shared $pic_flag $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8845      else
8846	ld_shlibs=no
8847      fi
8848      ;;
8849    esac
8850
8851    if test "$ld_shlibs" = no; then
8852      runpath_var=
8853      hardcode_libdir_flag_spec=
8854      export_dynamic_flag_spec=
8855      whole_archive_flag_spec=
8856    fi
8857  else
8858    # PORTME fill in a description of your system's linker (not GNU ld)
8859    case $host_os in
8860    aix3*)
8861      allow_undefined_flag=unsupported
8862      always_export_symbols=yes
8863      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'
8864      # Note: this linker hardcodes the directories in LIBPATH if there
8865      # are no directories specified by -L.
8866      hardcode_minus_L=yes
8867      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8868	# Neither direct hardcoding nor static linking is supported with a
8869	# broken collect2.
8870	hardcode_direct=unsupported
8871      fi
8872      ;;
8873
8874    aix[4-9]*)
8875      if test "$host_cpu" = ia64; then
8876	# On IA64, the linker does run time linking by default, so we don't
8877	# have to do anything special.
8878	aix_use_runtimelinking=no
8879	exp_sym_flag='-Bexport'
8880	no_entry_flag=""
8881      else
8882	# If we're using GNU nm, then we don't want the "-C" option.
8883	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8884	# Also, AIX nm treats weak defined symbols like other global
8885	# defined symbols, whereas GNU nm marks them as "W".
8886	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8887	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8888	else
8889	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8890	fi
8891	aix_use_runtimelinking=no
8892
8893	# Test if we are trying to use run time linking or normal
8894	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8895	# need to do runtime linking.
8896	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8897	  for ld_flag in $LDFLAGS; do
8898	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8899	    aix_use_runtimelinking=yes
8900	    break
8901	  fi
8902	  done
8903	  ;;
8904	esac
8905
8906	exp_sym_flag='-bexport'
8907	no_entry_flag='-bnoentry'
8908      fi
8909
8910      # When large executables or shared objects are built, AIX ld can
8911      # have problems creating the table of contents.  If linking a library
8912      # or program results in "error TOC overflow" add -mminimal-toc to
8913      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8914      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8915
8916      archive_cmds=''
8917      hardcode_direct=yes
8918      hardcode_direct_absolute=yes
8919      hardcode_libdir_separator=':'
8920      link_all_deplibs=yes
8921      file_list_spec='${wl}-f,'
8922
8923      if test "$GCC" = yes; then
8924	case $host_os in aix4.[012]|aix4.[012].*)
8925	# We only want to do this on AIX 4.2 and lower, the check
8926	# below for broken collect2 doesn't work under 4.3+
8927	  collect2name=`${CC} -print-prog-name=collect2`
8928	  if test -f "$collect2name" &&
8929	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8930	  then
8931	  # We have reworked collect2
8932	  :
8933	  else
8934	  # We have old collect2
8935	  hardcode_direct=unsupported
8936	  # It fails to find uninstalled libraries when the uninstalled
8937	  # path is not listed in the libpath.  Setting hardcode_minus_L
8938	  # to unsupported forces relinking
8939	  hardcode_minus_L=yes
8940	  hardcode_libdir_flag_spec='-L$libdir'
8941	  hardcode_libdir_separator=
8942	  fi
8943	  ;;
8944	esac
8945	shared_flag='-shared'
8946	if test "$aix_use_runtimelinking" = yes; then
8947	  shared_flag="$shared_flag "'${wl}-G'
8948	fi
8949      else
8950	# not using gcc
8951	if test "$host_cpu" = ia64; then
8952	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8953	# chokes on -Wl,-G. The following line is correct:
8954	  shared_flag='-G'
8955	else
8956	  if test "$aix_use_runtimelinking" = yes; then
8957	    shared_flag='${wl}-G'
8958	  else
8959	    shared_flag='${wl}-bM:SRE'
8960	  fi
8961	fi
8962      fi
8963
8964      export_dynamic_flag_spec='${wl}-bexpall'
8965      # It seems that -bexpall does not export symbols beginning with
8966      # underscore (_), so it is better to generate a list of symbols to export.
8967      always_export_symbols=yes
8968      if test "$aix_use_runtimelinking" = yes; then
8969	# Warning - without using the other runtime loading flags (-brtl),
8970	# -berok will link without error, but may produce a broken library.
8971	allow_undefined_flag='-berok'
8972        # Determine the default libpath from the value encoded in an
8973        # empty executable.
8974        if test "${lt_cv_aix_libpath+set}" = set; then
8975  aix_libpath=$lt_cv_aix_libpath
8976else
8977  if ${lt_cv_aix_libpath_+:} false; then :
8978  $as_echo_n "(cached) " >&6
8979else
8980  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8981/* end confdefs.h.  */
8982
8983int
8984main ()
8985{
8986
8987  ;
8988  return 0;
8989}
8990_ACEOF
8991if ac_fn_c_try_link "$LINENO"; then :
8992
8993  lt_aix_libpath_sed='
8994      /Import File Strings/,/^$/ {
8995	  /^0/ {
8996	      s/^0  *\([^ ]*\) *$/\1/
8997	      p
8998	  }
8999      }'
9000  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9001  # Check for a 64-bit object if we didn't find anything.
9002  if test -z "$lt_cv_aix_libpath_"; then
9003    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9004  fi
9005fi
9006rm -f core conftest.err conftest.$ac_objext \
9007    conftest$ac_exeext conftest.$ac_ext
9008  if test -z "$lt_cv_aix_libpath_"; then
9009    lt_cv_aix_libpath_="/usr/lib:/lib"
9010  fi
9011
9012fi
9013
9014  aix_libpath=$lt_cv_aix_libpath_
9015fi
9016
9017        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9018        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9019      else
9020	if test "$host_cpu" = ia64; then
9021	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9022	  allow_undefined_flag="-z nodefs"
9023	  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"
9024	else
9025	 # Determine the default libpath from the value encoded in an
9026	 # empty executable.
9027	 if test "${lt_cv_aix_libpath+set}" = set; then
9028  aix_libpath=$lt_cv_aix_libpath
9029else
9030  if ${lt_cv_aix_libpath_+:} false; then :
9031  $as_echo_n "(cached) " >&6
9032else
9033  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9034/* end confdefs.h.  */
9035
9036int
9037main ()
9038{
9039
9040  ;
9041  return 0;
9042}
9043_ACEOF
9044if ac_fn_c_try_link "$LINENO"; then :
9045
9046  lt_aix_libpath_sed='
9047      /Import File Strings/,/^$/ {
9048	  /^0/ {
9049	      s/^0  *\([^ ]*\) *$/\1/
9050	      p
9051	  }
9052      }'
9053  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9054  # Check for a 64-bit object if we didn't find anything.
9055  if test -z "$lt_cv_aix_libpath_"; then
9056    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9057  fi
9058fi
9059rm -f core conftest.err conftest.$ac_objext \
9060    conftest$ac_exeext conftest.$ac_ext
9061  if test -z "$lt_cv_aix_libpath_"; then
9062    lt_cv_aix_libpath_="/usr/lib:/lib"
9063  fi
9064
9065fi
9066
9067  aix_libpath=$lt_cv_aix_libpath_
9068fi
9069
9070	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9071	  # Warning - without using the other run time loading flags,
9072	  # -berok will link without error, but may produce a broken library.
9073	  no_undefined_flag=' ${wl}-bernotok'
9074	  allow_undefined_flag=' ${wl}-berok'
9075	  if test "$with_gnu_ld" = yes; then
9076	    # We only use this code for GNU lds that support --whole-archive.
9077	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9078	  else
9079	    # Exported symbols can be pulled into shared objects from archives
9080	    whole_archive_flag_spec='$convenience'
9081	  fi
9082	  archive_cmds_need_lc=yes
9083	  # This is similar to how AIX traditionally builds its shared libraries.
9084	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9085	fi
9086      fi
9087      ;;
9088
9089    amigaos*)
9090      case $host_cpu in
9091      powerpc)
9092            # see comment about AmigaOS4 .so support
9093            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9094            archive_expsym_cmds=''
9095        ;;
9096      m68k)
9097            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)'
9098            hardcode_libdir_flag_spec='-L$libdir'
9099            hardcode_minus_L=yes
9100        ;;
9101      esac
9102      ;;
9103
9104    bsdi[45]*)
9105      export_dynamic_flag_spec=-rdynamic
9106      ;;
9107
9108    cygwin* | mingw* | pw32* | cegcc*)
9109      # When not using gcc, we currently assume that we are using
9110      # Microsoft Visual C++.
9111      # hardcode_libdir_flag_spec is actually meaningless, as there is
9112      # no search path for DLLs.
9113      case $cc_basename in
9114      cl*)
9115	# Native MSVC
9116	hardcode_libdir_flag_spec=' '
9117	allow_undefined_flag=unsupported
9118	always_export_symbols=yes
9119	file_list_spec='@'
9120	# Tell ltmain to make .lib files, not .a files.
9121	libext=lib
9122	# Tell ltmain to make .dll files, not .so files.
9123	shrext_cmds=".dll"
9124	# FIXME: Setting linknames here is a bad hack.
9125	archive_cmds='$CC -o $output_objdir/$soname $compiler_flags $libobjs $deplibs -Wl,-dll~linknames='
9126	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9127	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9128	  else
9129	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9130	  fi~
9131	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9132	  linknames='
9133	# The linker will not automatically build a static lib if we build a DLL.
9134	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9135	enable_shared_with_static_runtimes=yes
9136	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9137	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9138	# Don't use ranlib
9139	old_postinstall_cmds='chmod 644 $oldlib'
9140	postlink_cmds='lt_outputfile="@OUTPUT@"~
9141	  lt_tool_outputfile="@TOOL_OUTPUT@"~
9142	  case $lt_outputfile in
9143	    *.exe|*.EXE) ;;
9144	    *)
9145	      lt_outputfile="$lt_outputfile.exe"
9146	      lt_tool_outputfile="$lt_tool_outputfile.exe"
9147	      ;;
9148	  esac~
9149	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9150	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9151	    $RM "$lt_outputfile.manifest";
9152	  fi'
9153	;;
9154      *)
9155	# Assume MSVC wrapper
9156	hardcode_libdir_flag_spec=' '
9157	allow_undefined_flag=unsupported
9158	# Tell ltmain to make .lib files, not .a files.
9159	libext=lib
9160	# Tell ltmain to make .dll files, not .so files.
9161	shrext_cmds=".dll"
9162	# FIXME: Setting linknames here is a bad hack.
9163	archive_cmds='$CC -o $lib $compiler_flags $libobjs `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9164	# The linker will automatically build a .lib file if we build a DLL.
9165	old_archive_from_new_cmds='true'
9166	# FIXME: Should let the user specify the lib program.
9167	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9168	enable_shared_with_static_runtimes=yes
9169	;;
9170      esac
9171      ;;
9172
9173    darwin* | rhapsody*)
9174
9175
9176  archive_cmds_need_lc=no
9177  hardcode_direct=no
9178  hardcode_automatic=yes
9179  hardcode_shlibpath_var=unsupported
9180  if test "$lt_cv_ld_force_load" = "yes"; then
9181    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\"`'
9182
9183  else
9184    whole_archive_flag_spec=''
9185  fi
9186  link_all_deplibs=yes
9187  allow_undefined_flag="$_lt_dar_allow_undefined"
9188  case $cc_basename in
9189     ifort*) _lt_dar_can_shared=yes ;;
9190     *) _lt_dar_can_shared=$GCC ;;
9191  esac
9192  if test "$_lt_dar_can_shared" = "yes"; then
9193    output_verbose_link_cmd=func_echo_all
9194    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9195    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9196    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}"
9197    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}"
9198
9199  else
9200  ld_shlibs=no
9201  fi
9202
9203      ;;
9204
9205    dgux*)
9206      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9207      hardcode_libdir_flag_spec='-L$libdir'
9208      hardcode_shlibpath_var=no
9209      ;;
9210
9211    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9212    # support.  Future versions do this automatically, but an explicit c++rt0.o
9213    # does not break anything, and helps significantly (at the cost of a little
9214    # extra space).
9215    freebsd2.2*)
9216      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9217      hardcode_libdir_flag_spec='-R$libdir'
9218      hardcode_direct=yes
9219      hardcode_shlibpath_var=no
9220      ;;
9221
9222    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9223    freebsd2.*)
9224      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9225      hardcode_direct=yes
9226      hardcode_minus_L=yes
9227      hardcode_shlibpath_var=no
9228      ;;
9229
9230    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9231    freebsd* | dragonfly*)
9232      archive_cmds='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
9233      hardcode_libdir_flag_spec='-R$libdir'
9234      hardcode_direct=yes
9235      hardcode_shlibpath_var=no
9236      ;;
9237
9238    hpux9*)
9239      if test "$GCC" = yes; then
9240	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9241      else
9242	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9243      fi
9244      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9245      hardcode_libdir_separator=:
9246      hardcode_direct=yes
9247
9248      # hardcode_minus_L: Not really in the search PATH,
9249      # but as the default location of the library.
9250      hardcode_minus_L=yes
9251      export_dynamic_flag_spec='${wl}-E'
9252      ;;
9253
9254    hpux10*)
9255      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9256	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9257      else
9258	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9259      fi
9260      if test "$with_gnu_ld" = no; then
9261	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9262	hardcode_libdir_separator=:
9263	hardcode_direct=yes
9264	hardcode_direct_absolute=yes
9265	export_dynamic_flag_spec='${wl}-E'
9266	# hardcode_minus_L: Not really in the search PATH,
9267	# but as the default location of the library.
9268	hardcode_minus_L=yes
9269      fi
9270      ;;
9271
9272    hpux11*)
9273      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9274	case $host_cpu in
9275	hppa*64*)
9276	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9277	  ;;
9278	ia64*)
9279	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9280	  ;;
9281	*)
9282	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9283	  ;;
9284	esac
9285      else
9286	case $host_cpu in
9287	hppa*64*)
9288	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9289	  ;;
9290	ia64*)
9291	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9292	  ;;
9293	*)
9294
9295	  # Older versions of the 11.00 compiler do not understand -b yet
9296	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9297	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9298$as_echo_n "checking if $CC understands -b... " >&6; }
9299if ${lt_cv_prog_compiler__b+:} false; then :
9300  $as_echo_n "(cached) " >&6
9301else
9302  lt_cv_prog_compiler__b=no
9303   save_LDFLAGS="$LDFLAGS"
9304   LDFLAGS="$LDFLAGS -b"
9305   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9306   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9307     # The linker can only warn and ignore the option if not recognized
9308     # So say no if there are warnings
9309     if test -s conftest.err; then
9310       # Append any errors to the config.log.
9311       cat conftest.err 1>&5
9312       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9313       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9314       if diff conftest.exp conftest.er2 >/dev/null; then
9315         lt_cv_prog_compiler__b=yes
9316       fi
9317     else
9318       lt_cv_prog_compiler__b=yes
9319     fi
9320   fi
9321   $RM -r conftest*
9322   LDFLAGS="$save_LDFLAGS"
9323
9324fi
9325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9326$as_echo "$lt_cv_prog_compiler__b" >&6; }
9327
9328if test x"$lt_cv_prog_compiler__b" = xyes; then
9329    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9330else
9331    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9332fi
9333
9334	  ;;
9335	esac
9336      fi
9337      if test "$with_gnu_ld" = no; then
9338	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9339	hardcode_libdir_separator=:
9340
9341	case $host_cpu in
9342	hppa*64*|ia64*)
9343	  hardcode_direct=no
9344	  hardcode_shlibpath_var=no
9345	  ;;
9346	*)
9347	  hardcode_direct=yes
9348	  hardcode_direct_absolute=yes
9349	  export_dynamic_flag_spec='${wl}-E'
9350
9351	  # hardcode_minus_L: Not really in the search PATH,
9352	  # but as the default location of the library.
9353	  hardcode_minus_L=yes
9354	  ;;
9355	esac
9356      fi
9357      ;;
9358
9359    irix5* | irix6* | nonstopux*)
9360      if test "$GCC" = yes; then
9361	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'
9362	# Try to use the -exported_symbol ld option, if it does not
9363	# work, assume that -exports_file does not work either and
9364	# implicitly export all symbols.
9365	# This should be the same for all languages, so no per-tag cache variable.
9366	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9367$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9368if ${lt_cv_irix_exported_symbol+:} false; then :
9369  $as_echo_n "(cached) " >&6
9370else
9371  save_LDFLAGS="$LDFLAGS"
9372	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9373	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9374/* end confdefs.h.  */
9375int foo (void) { return 0; }
9376_ACEOF
9377if ac_fn_c_try_link "$LINENO"; then :
9378  lt_cv_irix_exported_symbol=yes
9379else
9380  lt_cv_irix_exported_symbol=no
9381fi
9382rm -f core conftest.err conftest.$ac_objext \
9383    conftest$ac_exeext conftest.$ac_ext
9384           LDFLAGS="$save_LDFLAGS"
9385fi
9386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9387$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9388	if test "$lt_cv_irix_exported_symbol" = yes; then
9389          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'
9390	fi
9391      else
9392	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'
9393	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'
9394      fi
9395      archive_cmds_need_lc='no'
9396      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9397      hardcode_libdir_separator=:
9398      inherit_rpath=yes
9399      link_all_deplibs=yes
9400      ;;
9401
9402    netbsd*)
9403      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9404	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9405      else
9406	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9407      fi
9408      hardcode_libdir_flag_spec='-R$libdir'
9409      hardcode_direct=yes
9410      hardcode_shlibpath_var=no
9411      ;;
9412
9413    newsos6)
9414      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9415      hardcode_direct=yes
9416      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9417      hardcode_libdir_separator=:
9418      hardcode_shlibpath_var=no
9419      ;;
9420
9421    *nto* | *qnx*)
9422      ;;
9423
9424    openbsd*)
9425      if test -f /usr/libexec/ld.so; then
9426	hardcode_direct=yes
9427	hardcode_shlibpath_var=no
9428	hardcode_direct_absolute=yes
9429	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9430	  archive_cmds='$CC -shared $pic_flag $compiler_flags -o $lib $libobjs $deplibs'
9431	  archive_expsym_cmds='$CC -shared $pic_flag $compiler_flags -o $lib $libobjs $deplibs ${wl}-retain-symbols-file,$export_symbols'
9432	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9433	  export_dynamic_flag_spec='${wl}-E'
9434	else
9435	  case $host_os in
9436	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9437	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9438	     hardcode_libdir_flag_spec='-R$libdir'
9439	     ;;
9440	   *)
9441	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9442	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9443	     ;;
9444	  esac
9445	fi
9446      else
9447	ld_shlibs=no
9448      fi
9449      ;;
9450
9451    os2*)
9452      hardcode_libdir_flag_spec='-L$libdir'
9453      hardcode_minus_L=yes
9454      allow_undefined_flag=unsupported
9455      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9456      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9457      ;;
9458
9459    osf3*)
9460      if test "$GCC" = yes; then
9461	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9462	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'
9463      else
9464	allow_undefined_flag=' -expect_unresolved \*'
9465	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'
9466      fi
9467      archive_cmds_need_lc='no'
9468      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9469      hardcode_libdir_separator=:
9470      ;;
9471
9472    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9473      if test "$GCC" = yes; then
9474	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9475	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'
9476	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9477      else
9478	allow_undefined_flag=' -expect_unresolved \*'
9479	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'
9480	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~
9481	$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'
9482
9483	# Both c and cxx compiler support -rpath directly
9484	hardcode_libdir_flag_spec='-rpath $libdir'
9485      fi
9486      archive_cmds_need_lc='no'
9487      hardcode_libdir_separator=:
9488      ;;
9489
9490    solaris*)
9491      no_undefined_flag=' -z defs'
9492      if test "$GCC" = yes; then
9493	wlarc='${wl}'
9494	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9495	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9496	  $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'
9497      else
9498	case `$CC -V 2>&1` in
9499	*"Compilers 5.0"*)
9500	  wlarc=''
9501	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9502	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9503	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9504	  ;;
9505	*)
9506	  wlarc='${wl}'
9507	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9508	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9509	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9510	  ;;
9511	esac
9512      fi
9513      hardcode_libdir_flag_spec='-R$libdir'
9514      hardcode_shlibpath_var=no
9515      case $host_os in
9516      solaris2.[0-5] | solaris2.[0-5].*) ;;
9517      *)
9518	# The compiler driver will combine and reorder linker options,
9519	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9520	# but is careful enough not to reorder.
9521	# Supported since Solaris 2.6 (maybe 2.5.1?)
9522	if test "$GCC" = yes; then
9523	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9524	else
9525	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9526	fi
9527	;;
9528      esac
9529      link_all_deplibs=yes
9530      ;;
9531
9532    sunos4*)
9533      if test "x$host_vendor" = xsequent; then
9534	# Use $CC to link under sequent, because it throws in some extra .o
9535	# files that make .init and .fini sections work.
9536	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9537      else
9538	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9539      fi
9540      hardcode_libdir_flag_spec='-L$libdir'
9541      hardcode_direct=yes
9542      hardcode_minus_L=yes
9543      hardcode_shlibpath_var=no
9544      ;;
9545
9546    sysv4)
9547      case $host_vendor in
9548	sni)
9549	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9550	  hardcode_direct=yes # is this really true???
9551	;;
9552	siemens)
9553	  ## LD is ld it makes a PLAMLIB
9554	  ## CC just makes a GrossModule.
9555	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9556	  reload_cmds='$CC -r -o $output$reload_objs'
9557	  hardcode_direct=no
9558        ;;
9559	motorola)
9560	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9561	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9562	;;
9563      esac
9564      runpath_var='LD_RUN_PATH'
9565      hardcode_shlibpath_var=no
9566      ;;
9567
9568    sysv4.3*)
9569      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9570      hardcode_shlibpath_var=no
9571      export_dynamic_flag_spec='-Bexport'
9572      ;;
9573
9574    sysv4*MP*)
9575      if test -d /usr/nec; then
9576	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9577	hardcode_shlibpath_var=no
9578	runpath_var=LD_RUN_PATH
9579	hardcode_runpath_var=yes
9580	ld_shlibs=yes
9581      fi
9582      ;;
9583
9584    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9585      no_undefined_flag='${wl}-z,text'
9586      archive_cmds_need_lc=no
9587      hardcode_shlibpath_var=no
9588      runpath_var='LD_RUN_PATH'
9589
9590      if test "$GCC" = yes; then
9591	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9592	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9593      else
9594	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9595	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9596      fi
9597      ;;
9598
9599    sysv5* | sco3.2v5* | sco5v6*)
9600      # Note: We can NOT use -z defs as we might desire, because we do not
9601      # link with -lc, and that would cause any symbols used from libc to
9602      # always be unresolved, which means just about no library would
9603      # ever link correctly.  If we're not using GNU ld we use -z text
9604      # though, which does catch some bad symbols but isn't as heavy-handed
9605      # as -z defs.
9606      no_undefined_flag='${wl}-z,text'
9607      allow_undefined_flag='${wl}-z,nodefs'
9608      archive_cmds_need_lc=no
9609      hardcode_shlibpath_var=no
9610      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9611      hardcode_libdir_separator=':'
9612      link_all_deplibs=yes
9613      export_dynamic_flag_spec='${wl}-Bexport'
9614      runpath_var='LD_RUN_PATH'
9615
9616      if test "$GCC" = yes; then
9617	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9618	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9619      else
9620	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9621	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9622      fi
9623      ;;
9624
9625    uts4*)
9626      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9627      hardcode_libdir_flag_spec='-L$libdir'
9628      hardcode_shlibpath_var=no
9629      ;;
9630
9631    *)
9632      ld_shlibs=no
9633      ;;
9634    esac
9635
9636    if test x$host_vendor = xsni; then
9637      case $host in
9638      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9639	export_dynamic_flag_spec='${wl}-Blargedynsym'
9640	;;
9641      esac
9642    fi
9643  fi
9644
9645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9646$as_echo "$ld_shlibs" >&6; }
9647test "$ld_shlibs" = no && can_build_shared=no
9648
9649with_gnu_ld=$with_gnu_ld
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665#
9666# Do we need to explicitly link libc?
9667#
9668case "x$archive_cmds_need_lc" in
9669x|xyes)
9670  # Assume -lc should be added
9671  archive_cmds_need_lc=yes
9672
9673  if test "$enable_shared" = yes && test "$GCC" = yes; then
9674    case $archive_cmds in
9675    *'~'*)
9676      # FIXME: we may have to deal with multi-command sequences.
9677      ;;
9678    '$CC '*)
9679      # Test whether the compiler implicitly links with -lc since on some
9680      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9681      # to ld, don't add -lc before -lgcc.
9682      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9683$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9684if ${lt_cv_archive_cmds_need_lc+:} false; then :
9685  $as_echo_n "(cached) " >&6
9686else
9687  $RM conftest*
9688	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9689
9690	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9691  (eval $ac_compile) 2>&5
9692  ac_status=$?
9693  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9694  test $ac_status = 0; } 2>conftest.err; then
9695	  soname=conftest
9696	  lib=conftest
9697	  libobjs=conftest.$ac_objext
9698	  deplibs=
9699	  wl=$lt_prog_compiler_wl
9700	  pic_flag=$lt_prog_compiler_pic
9701	  compiler_flags=-v
9702	  linker_flags=-v
9703	  verstring=
9704	  output_objdir=.
9705	  libname=conftest
9706	  lt_save_allow_undefined_flag=$allow_undefined_flag
9707	  allow_undefined_flag=
9708	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9709  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9710  ac_status=$?
9711  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9712  test $ac_status = 0; }
9713	  then
9714	    lt_cv_archive_cmds_need_lc=no
9715	  else
9716	    lt_cv_archive_cmds_need_lc=yes
9717	  fi
9718	  allow_undefined_flag=$lt_save_allow_undefined_flag
9719	else
9720	  cat conftest.err 1>&5
9721	fi
9722	$RM conftest*
9723
9724fi
9725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9726$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9727      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9728      ;;
9729    esac
9730  fi
9731  ;;
9732esac
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9886$as_echo_n "checking dynamic linker characteristics... " >&6; }
9887
9888if test "$GCC" = yes; then
9889  case $host_os in
9890    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9891    *) lt_awk_arg="/^libraries:/" ;;
9892  esac
9893  case $host_os in
9894    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9895    *) lt_sed_strip_eq="s,=/,/,g" ;;
9896  esac
9897  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9898  case $lt_search_path_spec in
9899  *\;*)
9900    # if the path contains ";" then we assume it to be the separator
9901    # otherwise default to the standard path separator (i.e. ":") - it is
9902    # assumed that no part of a normal pathname contains ";" but that should
9903    # okay in the real world where ";" in dirpaths is itself problematic.
9904    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9905    ;;
9906  *)
9907    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9908    ;;
9909  esac
9910  # Ok, now we have the path, separated by spaces, we can step through it
9911  # and add multilib dir if necessary.
9912  lt_tmp_lt_search_path_spec=
9913  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9914  for lt_sys_path in $lt_search_path_spec; do
9915    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9916      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9917    else
9918      test -d "$lt_sys_path" && \
9919	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9920    fi
9921  done
9922  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9923BEGIN {RS=" "; FS="/|\n";} {
9924  lt_foo="";
9925  lt_count=0;
9926  for (lt_i = NF; lt_i > 0; lt_i--) {
9927    if ($lt_i != "" && $lt_i != ".") {
9928      if ($lt_i == "..") {
9929        lt_count++;
9930      } else {
9931        if (lt_count == 0) {
9932          lt_foo="/" $lt_i lt_foo;
9933        } else {
9934          lt_count--;
9935        }
9936      }
9937    }
9938  }
9939  if (lt_foo != "") { lt_freq[lt_foo]++; }
9940  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9941}'`
9942  # AWK program above erroneously prepends '/' to C:/dos/paths
9943  # for these hosts.
9944  case $host_os in
9945    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9946      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9947  esac
9948  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9949else
9950  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9951fi
9952library_names_spec=
9953libname_spec='lib$name'
9954soname_spec=
9955shrext_cmds=".so"
9956postinstall_cmds=
9957postuninstall_cmds=
9958finish_cmds=
9959finish_eval=
9960shlibpath_var=
9961shlibpath_overrides_runpath=unknown
9962version_type=none
9963dynamic_linker="$host_os ld.so"
9964sys_lib_dlsearch_path_spec="/lib /usr/lib"
9965need_lib_prefix=unknown
9966hardcode_into_libs=no
9967
9968# when you set need_version to no, make sure it does not cause -set_version
9969# flags to be left without arguments
9970need_version=unknown
9971
9972case $host_os in
9973aix3*)
9974  version_type=linux # correct to gnu/linux during the next big refactor
9975  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9976  shlibpath_var=LIBPATH
9977
9978  # AIX 3 has no versioning support, so we append a major version to the name.
9979  soname_spec='${libname}${release}${shared_ext}$major'
9980  ;;
9981
9982aix[4-9]*)
9983  version_type=linux # correct to gnu/linux during the next big refactor
9984  need_lib_prefix=no
9985  need_version=no
9986  hardcode_into_libs=yes
9987  if test "$host_cpu" = ia64; then
9988    # AIX 5 supports IA64
9989    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9990    shlibpath_var=LD_LIBRARY_PATH
9991  else
9992    # With GCC up to 2.95.x, collect2 would create an import file
9993    # for dependence libraries.  The import file would start with
9994    # the line `#! .'.  This would cause the generated library to
9995    # depend on `.', always an invalid library.  This was fixed in
9996    # development snapshots of GCC prior to 3.0.
9997    case $host_os in
9998      aix4 | aix4.[01] | aix4.[01].*)
9999      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10000	   echo ' yes '
10001	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10002	:
10003      else
10004	can_build_shared=no
10005      fi
10006      ;;
10007    esac
10008    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10009    # soname into executable. Probably we can add versioning support to
10010    # collect2, so additional links can be useful in future.
10011    if test "$aix_use_runtimelinking" = yes; then
10012      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10013      # instead of lib<name>.a to let people know that these are not
10014      # typical AIX shared libraries.
10015      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10016    else
10017      # We preserve .a as extension for shared libraries through AIX4.2
10018      # and later when we are not doing run time linking.
10019      library_names_spec='${libname}${release}.a $libname.a'
10020      soname_spec='${libname}${release}${shared_ext}$major'
10021    fi
10022    shlibpath_var=LIBPATH
10023  fi
10024  ;;
10025
10026amigaos*)
10027  case $host_cpu in
10028  powerpc)
10029    # Since July 2007 AmigaOS4 officially supports .so libraries.
10030    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10031    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10032    ;;
10033  m68k)
10034    library_names_spec='$libname.ixlibrary $libname.a'
10035    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10036    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
10037    ;;
10038  esac
10039  ;;
10040
10041beos*)
10042  library_names_spec='${libname}${shared_ext}'
10043  dynamic_linker="$host_os ld.so"
10044  shlibpath_var=LIBRARY_PATH
10045  ;;
10046
10047bsdi[45]*)
10048  version_type=linux # correct to gnu/linux during the next big refactor
10049  need_version=no
10050  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10051  soname_spec='${libname}${release}${shared_ext}$major'
10052  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10053  shlibpath_var=LD_LIBRARY_PATH
10054  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10055  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10056  # the default ld.so.conf also contains /usr/contrib/lib and
10057  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10058  # libtool to hard-code these into programs
10059  ;;
10060
10061cygwin* | mingw* | pw32* | cegcc*)
10062  version_type=windows
10063  shrext_cmds=".dll"
10064  need_version=no
10065  need_lib_prefix=no
10066
10067  case $GCC,$cc_basename in
10068  yes,*)
10069    # gcc
10070    library_names_spec='$libname.dll.a'
10071    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10072    postinstall_cmds='base_file=`basename \${file}`~
10073      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10074      dldir=$destdir/`dirname \$dlpath`~
10075      test -d \$dldir || mkdir -p \$dldir~
10076      $install_prog $dir/$dlname \$dldir/$dlname~
10077      chmod a+x \$dldir/$dlname~
10078      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10079        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10080      fi'
10081    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10082      dlpath=$dir/\$dldll~
10083       $RM \$dlpath'
10084    shlibpath_overrides_runpath=yes
10085
10086    case $host_os in
10087    cygwin*)
10088      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10089      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10090
10091      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10092      ;;
10093    mingw* | cegcc*)
10094      # MinGW DLLs use traditional 'lib' prefix
10095      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10096      ;;
10097    pw32*)
10098      # pw32 DLLs use 'pw' prefix rather than 'lib'
10099      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10100      ;;
10101    esac
10102    dynamic_linker='Win32 ld.exe'
10103    ;;
10104
10105  *,cl*)
10106    # Native MSVC
10107    libname_spec='$name'
10108    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10109    library_names_spec='${libname}.dll.lib'
10110
10111    case $build_os in
10112    mingw*)
10113      sys_lib_search_path_spec=
10114      lt_save_ifs=$IFS
10115      IFS=';'
10116      for lt_path in $LIB
10117      do
10118        IFS=$lt_save_ifs
10119        # Let DOS variable expansion print the short 8.3 style file name.
10120        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10121        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10122      done
10123      IFS=$lt_save_ifs
10124      # Convert to MSYS style.
10125      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10126      ;;
10127    cygwin*)
10128      # Convert to unix form, then to dos form, then back to unix form
10129      # but this time dos style (no spaces!) so that the unix form looks
10130      # like /cygdrive/c/PROGRA~1:/cygdr...
10131      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10132      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10133      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10134      ;;
10135    *)
10136      sys_lib_search_path_spec="$LIB"
10137      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10138        # It is most probably a Windows format PATH.
10139        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10140      else
10141        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10142      fi
10143      # FIXME: find the short name or the path components, as spaces are
10144      # common. (e.g. "Program Files" -> "PROGRA~1")
10145      ;;
10146    esac
10147
10148    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10149    postinstall_cmds='base_file=`basename \${file}`~
10150      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10151      dldir=$destdir/`dirname \$dlpath`~
10152      test -d \$dldir || mkdir -p \$dldir~
10153      $install_prog $dir/$dlname \$dldir/$dlname'
10154    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10155      dlpath=$dir/\$dldll~
10156       $RM \$dlpath'
10157    shlibpath_overrides_runpath=yes
10158    dynamic_linker='Win32 link.exe'
10159    ;;
10160
10161  *)
10162    # Assume MSVC wrapper
10163    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10164    dynamic_linker='Win32 ld.exe'
10165    ;;
10166  esac
10167  # FIXME: first we should search . and the directory the executable is in
10168  shlibpath_var=PATH
10169  ;;
10170
10171darwin* | rhapsody*)
10172  dynamic_linker="$host_os dyld"
10173  version_type=darwin
10174  need_lib_prefix=no
10175  need_version=no
10176  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10177  soname_spec='${libname}${release}${major}$shared_ext'
10178  shlibpath_overrides_runpath=yes
10179  shlibpath_var=DYLD_LIBRARY_PATH
10180  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10181
10182  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10183  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10184  ;;
10185
10186dgux*)
10187  version_type=linux # correct to gnu/linux during the next big refactor
10188  need_lib_prefix=no
10189  need_version=no
10190  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10191  soname_spec='${libname}${release}${shared_ext}$major'
10192  shlibpath_var=LD_LIBRARY_PATH
10193  ;;
10194
10195freebsd* | dragonfly*)
10196  # DragonFly does not have aout.  When/if they implement a new
10197  # versioning mechanism, adjust this.
10198  if test -x /usr/bin/objformat; then
10199    objformat=`/usr/bin/objformat`
10200  else
10201    case $host_os in
10202    freebsd[23].*) objformat=aout ;;
10203    *) objformat=elf ;;
10204    esac
10205  fi
10206  version_type=freebsd-$objformat
10207  case $version_type in
10208    freebsd-elf*)
10209      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10210      need_version=no
10211      need_lib_prefix=no
10212      ;;
10213    freebsd-*)
10214      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10215      need_version=yes
10216      ;;
10217  esac
10218  shlibpath_var=LD_LIBRARY_PATH
10219  case $host_os in
10220  freebsd2.*)
10221    shlibpath_overrides_runpath=yes
10222    ;;
10223  freebsd3.[01]* | freebsdelf3.[01]*)
10224    shlibpath_overrides_runpath=yes
10225    hardcode_into_libs=yes
10226    ;;
10227  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10228  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10229    shlibpath_overrides_runpath=no
10230    hardcode_into_libs=yes
10231    ;;
10232  *) # from 4.6 on, and DragonFly
10233    shlibpath_overrides_runpath=yes
10234    hardcode_into_libs=yes
10235    ;;
10236  esac
10237  ;;
10238
10239gnu*)
10240  version_type=linux # correct to gnu/linux during the next big refactor
10241  need_lib_prefix=no
10242  need_version=no
10243  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10244  soname_spec='${libname}${release}${shared_ext}$major'
10245  shlibpath_var=LD_LIBRARY_PATH
10246  shlibpath_overrides_runpath=no
10247  hardcode_into_libs=yes
10248  ;;
10249
10250haiku*)
10251  version_type=linux # correct to gnu/linux during the next big refactor
10252  need_lib_prefix=no
10253  need_version=no
10254  dynamic_linker="$host_os runtime_loader"
10255  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10256  soname_spec='${libname}${release}${shared_ext}$major'
10257  shlibpath_var=LIBRARY_PATH
10258  shlibpath_overrides_runpath=yes
10259  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10260  hardcode_into_libs=yes
10261  ;;
10262
10263hpux9* | hpux10* | hpux11*)
10264  # Give a soname corresponding to the major version so that dld.sl refuses to
10265  # link against other versions.
10266  version_type=sunos
10267  need_lib_prefix=no
10268  need_version=no
10269  case $host_cpu in
10270  ia64*)
10271    shrext_cmds='.so'
10272    hardcode_into_libs=yes
10273    dynamic_linker="$host_os dld.so"
10274    shlibpath_var=LD_LIBRARY_PATH
10275    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10276    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10277    soname_spec='${libname}${release}${shared_ext}$major'
10278    if test "X$HPUX_IA64_MODE" = X32; then
10279      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10280    else
10281      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10282    fi
10283    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10284    ;;
10285  hppa*64*)
10286    shrext_cmds='.sl'
10287    hardcode_into_libs=yes
10288    dynamic_linker="$host_os dld.sl"
10289    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10290    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10291    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10292    soname_spec='${libname}${release}${shared_ext}$major'
10293    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10294    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10295    ;;
10296  *)
10297    shrext_cmds='.sl'
10298    dynamic_linker="$host_os dld.sl"
10299    shlibpath_var=SHLIB_PATH
10300    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10301    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10302    soname_spec='${libname}${release}${shared_ext}$major'
10303    ;;
10304  esac
10305  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10306  postinstall_cmds='chmod 555 $lib'
10307  # or fails outright, so override atomically:
10308  install_override_mode=555
10309  ;;
10310
10311interix[3-9]*)
10312  version_type=linux # correct to gnu/linux during the next big refactor
10313  need_lib_prefix=no
10314  need_version=no
10315  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10316  soname_spec='${libname}${release}${shared_ext}$major'
10317  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10318  shlibpath_var=LD_LIBRARY_PATH
10319  shlibpath_overrides_runpath=no
10320  hardcode_into_libs=yes
10321  ;;
10322
10323irix5* | irix6* | nonstopux*)
10324  case $host_os in
10325    nonstopux*) version_type=nonstopux ;;
10326    *)
10327	if test "$lt_cv_prog_gnu_ld" = yes; then
10328		version_type=linux # correct to gnu/linux during the next big refactor
10329	else
10330		version_type=irix
10331	fi ;;
10332  esac
10333  need_lib_prefix=no
10334  need_version=no
10335  soname_spec='${libname}${release}${shared_ext}$major'
10336  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10337  case $host_os in
10338  irix5* | nonstopux*)
10339    libsuff= shlibsuff=
10340    ;;
10341  *)
10342    case $LD in # libtool.m4 will add one of these switches to LD
10343    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10344      libsuff= shlibsuff= libmagic=32-bit;;
10345    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10346      libsuff=32 shlibsuff=N32 libmagic=N32;;
10347    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10348      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10349    *) libsuff= shlibsuff= libmagic=never-match;;
10350    esac
10351    ;;
10352  esac
10353  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10354  shlibpath_overrides_runpath=no
10355  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10356  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10357  hardcode_into_libs=yes
10358  ;;
10359
10360# No shared lib support for Linux oldld, aout, or coff.
10361linux*oldld* | linux*aout* | linux*coff*)
10362  dynamic_linker=no
10363  ;;
10364
10365# This must be glibc/ELF.
10366linux* | k*bsd*-gnu | kopensolaris*-gnu)
10367  version_type=linux # correct to gnu/linux during the next big refactor
10368  need_lib_prefix=no
10369  need_version=no
10370  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10371  soname_spec='${libname}${release}${shared_ext}$major'
10372  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10373  shlibpath_var=LD_LIBRARY_PATH
10374  shlibpath_overrides_runpath=no
10375
10376  # Some binutils ld are patched to set DT_RUNPATH
10377  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10378  $as_echo_n "(cached) " >&6
10379else
10380  lt_cv_shlibpath_overrides_runpath=no
10381    save_LDFLAGS=$LDFLAGS
10382    save_libdir=$libdir
10383    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10384	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10385    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10386/* end confdefs.h.  */
10387
10388int
10389main ()
10390{
10391
10392  ;
10393  return 0;
10394}
10395_ACEOF
10396if ac_fn_c_try_link "$LINENO"; then :
10397  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10398  lt_cv_shlibpath_overrides_runpath=yes
10399fi
10400fi
10401rm -f core conftest.err conftest.$ac_objext \
10402    conftest$ac_exeext conftest.$ac_ext
10403    LDFLAGS=$save_LDFLAGS
10404    libdir=$save_libdir
10405
10406fi
10407
10408  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10409
10410  # This implies no fast_install, which is unacceptable.
10411  # Some rework will be needed to allow for fast_install
10412  # before this can be enabled.
10413  hardcode_into_libs=yes
10414
10415  # Append ld.so.conf contents to the search path
10416  if test -f /etc/ld.so.conf; then
10417    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' ' '`
10418    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10419  fi
10420
10421  # We used to test for /lib/ld.so.1 and disable shared libraries on
10422  # powerpc, because MkLinux only supported shared libraries with the
10423  # GNU dynamic linker.  Since this was broken with cross compilers,
10424  # most powerpc-linux boxes support dynamic linking these days and
10425  # people can always --disable-shared, the test was removed, and we
10426  # assume the GNU/Linux dynamic linker is in use.
10427  dynamic_linker='GNU/Linux ld.so'
10428
10429  # Find out which ABI we are using (multilib Linux x86_64 hack).
10430  libsuff=
10431  case "$host_cpu" in
10432  x86_64*|s390x*|powerpc64*|sparc64*)
10433    echo '#line 10433 "configure"' > conftest.$ac_ext
10434    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10435  (eval $ac_compile) 2>&5
10436  ac_status=$?
10437  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10438  test $ac_status = 0; }; then
10439      case `/usr/bin/file conftest.$ac_objext` in
10440      *64-bit*)
10441        libsuff=64
10442        ;;
10443      esac
10444    fi
10445    rm -rf conftest*
10446    ;;
10447  *)
10448    ;;
10449  esac
10450  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
10451  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
10452  ;;
10453
10454netbsd*)
10455  version_type=sunos
10456  need_lib_prefix=no
10457  need_version=no
10458  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10459    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10460    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10461    dynamic_linker='NetBSD (a.out) ld.so'
10462  else
10463    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10464    soname_spec='${libname}${release}${shared_ext}$major'
10465    dynamic_linker='NetBSD ld.elf_so'
10466  fi
10467  shlibpath_var=LD_LIBRARY_PATH
10468  shlibpath_overrides_runpath=yes
10469  hardcode_into_libs=yes
10470  ;;
10471
10472newsos6)
10473  version_type=linux # correct to gnu/linux during the next big refactor
10474  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10475  shlibpath_var=LD_LIBRARY_PATH
10476  shlibpath_overrides_runpath=yes
10477  ;;
10478
10479*nto* | *qnx*)
10480  version_type=qnx
10481  need_lib_prefix=no
10482  need_version=no
10483  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10484  soname_spec='${libname}${release}${shared_ext}$major'
10485  shlibpath_var=LD_LIBRARY_PATH
10486  shlibpath_overrides_runpath=no
10487  hardcode_into_libs=yes
10488  dynamic_linker='ldqnx.so'
10489  ;;
10490
10491openbsd*)
10492  version_type=sunos
10493  sys_lib_dlsearch_path_spec="/usr/lib"
10494  need_lib_prefix=no
10495  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10496  case $host_os in
10497    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10498    *)				need_version=no  ;;
10499  esac
10500  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10501  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10502  shlibpath_var=LD_LIBRARY_PATH
10503  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10504    case $host_os in
10505      openbsd2.[89] | openbsd2.[89].*)
10506	shlibpath_overrides_runpath=no
10507	;;
10508      *)
10509	shlibpath_overrides_runpath=yes
10510	;;
10511      esac
10512  else
10513    shlibpath_overrides_runpath=yes
10514  fi
10515  ;;
10516
10517os2*)
10518  libname_spec='$name'
10519  shrext_cmds=".dll"
10520  need_lib_prefix=no
10521  library_names_spec='$libname${shared_ext} $libname.a'
10522  dynamic_linker='OS/2 ld.exe'
10523  shlibpath_var=LIBPATH
10524  ;;
10525
10526osf3* | osf4* | osf5*)
10527  version_type=osf
10528  need_lib_prefix=no
10529  need_version=no
10530  soname_spec='${libname}${release}${shared_ext}$major'
10531  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10532  shlibpath_var=LD_LIBRARY_PATH
10533  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10534  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10535  ;;
10536
10537rdos*)
10538  dynamic_linker=no
10539  ;;
10540
10541solaris*)
10542  version_type=linux # correct to gnu/linux during the next big refactor
10543  need_lib_prefix=no
10544  need_version=no
10545  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10546  soname_spec='${libname}${release}${shared_ext}$major'
10547  shlibpath_var=LD_LIBRARY_PATH
10548  shlibpath_overrides_runpath=yes
10549  hardcode_into_libs=yes
10550  # ldd complains unless libraries are executable
10551  postinstall_cmds='chmod +x $lib'
10552  ;;
10553
10554sunos4*)
10555  version_type=sunos
10556  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10557  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10558  shlibpath_var=LD_LIBRARY_PATH
10559  shlibpath_overrides_runpath=yes
10560  if test "$with_gnu_ld" = yes; then
10561    need_lib_prefix=no
10562  fi
10563  need_version=yes
10564  ;;
10565
10566sysv4 | sysv4.3*)
10567  version_type=linux # correct to gnu/linux during the next big refactor
10568  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10569  soname_spec='${libname}${release}${shared_ext}$major'
10570  shlibpath_var=LD_LIBRARY_PATH
10571  case $host_vendor in
10572    sni)
10573      shlibpath_overrides_runpath=no
10574      need_lib_prefix=no
10575      runpath_var=LD_RUN_PATH
10576      ;;
10577    siemens)
10578      need_lib_prefix=no
10579      ;;
10580    motorola)
10581      need_lib_prefix=no
10582      need_version=no
10583      shlibpath_overrides_runpath=no
10584      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10585      ;;
10586  esac
10587  ;;
10588
10589sysv4*MP*)
10590  if test -d /usr/nec ;then
10591    version_type=linux # correct to gnu/linux during the next big refactor
10592    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10593    soname_spec='$libname${shared_ext}.$major'
10594    shlibpath_var=LD_LIBRARY_PATH
10595  fi
10596  ;;
10597
10598sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10599  version_type=freebsd-elf
10600  need_lib_prefix=no
10601  need_version=no
10602  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10603  soname_spec='${libname}${release}${shared_ext}$major'
10604  shlibpath_var=LD_LIBRARY_PATH
10605  shlibpath_overrides_runpath=yes
10606  hardcode_into_libs=yes
10607  if test "$with_gnu_ld" = yes; then
10608    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10609  else
10610    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10611    case $host_os in
10612      sco3.2v5*)
10613        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10614	;;
10615    esac
10616  fi
10617  sys_lib_dlsearch_path_spec='/usr/lib'
10618  ;;
10619
10620tpf*)
10621  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10622  version_type=linux # correct to gnu/linux during the next big refactor
10623  need_lib_prefix=no
10624  need_version=no
10625  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10626  shlibpath_var=LD_LIBRARY_PATH
10627  shlibpath_overrides_runpath=no
10628  hardcode_into_libs=yes
10629  ;;
10630
10631uts4*)
10632  version_type=linux # correct to gnu/linux during the next big refactor
10633  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10634  soname_spec='${libname}${release}${shared_ext}$major'
10635  shlibpath_var=LD_LIBRARY_PATH
10636  ;;
10637
10638*)
10639  dynamic_linker=no
10640  ;;
10641esac
10642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10643$as_echo "$dynamic_linker" >&6; }
10644test "$dynamic_linker" = no && can_build_shared=no
10645
10646variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10647if test "$GCC" = yes; then
10648  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10649fi
10650
10651if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10652  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10653fi
10654if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10655  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10656fi
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10750$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10751hardcode_action=
10752if test -n "$hardcode_libdir_flag_spec" ||
10753   test -n "$runpath_var" ||
10754   test "X$hardcode_automatic" = "Xyes" ; then
10755
10756  # We can hardcode non-existent directories.
10757  if test "$hardcode_direct" != no &&
10758     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10759     # have to relink, otherwise we might link with an installed library
10760     # when we should be linking with a yet-to-be-installed one
10761     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10762     test "$hardcode_minus_L" != no; then
10763    # Linking always hardcodes the temporary library directory.
10764    hardcode_action=relink
10765  else
10766    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10767    hardcode_action=immediate
10768  fi
10769else
10770  # We cannot hardcode anything, or else we can only hardcode existing
10771  # directories.
10772  hardcode_action=unsupported
10773fi
10774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10775$as_echo "$hardcode_action" >&6; }
10776
10777if test "$hardcode_action" = relink ||
10778   test "$inherit_rpath" = yes; then
10779  # Fast installation is not supported
10780  enable_fast_install=no
10781elif test "$shlibpath_overrides_runpath" = yes ||
10782     test "$enable_shared" = no; then
10783  # Fast installation is not necessary
10784  enable_fast_install=needless
10785fi
10786
10787
10788
10789
10790
10791
10792  if test "x$enable_dlopen" != xyes; then
10793  enable_dlopen=unknown
10794  enable_dlopen_self=unknown
10795  enable_dlopen_self_static=unknown
10796else
10797  lt_cv_dlopen=no
10798  lt_cv_dlopen_libs=
10799
10800  case $host_os in
10801  beos*)
10802    lt_cv_dlopen="load_add_on"
10803    lt_cv_dlopen_libs=
10804    lt_cv_dlopen_self=yes
10805    ;;
10806
10807  mingw* | pw32* | cegcc*)
10808    lt_cv_dlopen="LoadLibrary"
10809    lt_cv_dlopen_libs=
10810    ;;
10811
10812  cygwin*)
10813    lt_cv_dlopen="dlopen"
10814    lt_cv_dlopen_libs=
10815    ;;
10816
10817  darwin*)
10818  # if libdl is installed we need to link against it
10819    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10820$as_echo_n "checking for dlopen in -ldl... " >&6; }
10821if ${ac_cv_lib_dl_dlopen+:} false; then :
10822  $as_echo_n "(cached) " >&6
10823else
10824  ac_check_lib_save_LIBS=$LIBS
10825LIBS="-ldl  $LIBS"
10826cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10827/* end confdefs.h.  */
10828
10829/* Override any GCC internal prototype to avoid an error.
10830   Use char because int might match the return type of a GCC
10831   builtin and then its argument prototype would still apply.  */
10832#ifdef __cplusplus
10833extern "C"
10834#endif
10835char dlopen ();
10836int
10837main ()
10838{
10839return dlopen ();
10840  ;
10841  return 0;
10842}
10843_ACEOF
10844if ac_fn_c_try_link "$LINENO"; then :
10845  ac_cv_lib_dl_dlopen=yes
10846else
10847  ac_cv_lib_dl_dlopen=no
10848fi
10849rm -f core conftest.err conftest.$ac_objext \
10850    conftest$ac_exeext conftest.$ac_ext
10851LIBS=$ac_check_lib_save_LIBS
10852fi
10853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10854$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10855if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10856  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10857else
10858
10859    lt_cv_dlopen="dyld"
10860    lt_cv_dlopen_libs=
10861    lt_cv_dlopen_self=yes
10862
10863fi
10864
10865    ;;
10866
10867  *)
10868    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10869if test "x$ac_cv_func_shl_load" = xyes; then :
10870  lt_cv_dlopen="shl_load"
10871else
10872  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10873$as_echo_n "checking for shl_load in -ldld... " >&6; }
10874if ${ac_cv_lib_dld_shl_load+:} false; then :
10875  $as_echo_n "(cached) " >&6
10876else
10877  ac_check_lib_save_LIBS=$LIBS
10878LIBS="-ldld  $LIBS"
10879cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10880/* end confdefs.h.  */
10881
10882/* Override any GCC internal prototype to avoid an error.
10883   Use char because int might match the return type of a GCC
10884   builtin and then its argument prototype would still apply.  */
10885#ifdef __cplusplus
10886extern "C"
10887#endif
10888char shl_load ();
10889int
10890main ()
10891{
10892return shl_load ();
10893  ;
10894  return 0;
10895}
10896_ACEOF
10897if ac_fn_c_try_link "$LINENO"; then :
10898  ac_cv_lib_dld_shl_load=yes
10899else
10900  ac_cv_lib_dld_shl_load=no
10901fi
10902rm -f core conftest.err conftest.$ac_objext \
10903    conftest$ac_exeext conftest.$ac_ext
10904LIBS=$ac_check_lib_save_LIBS
10905fi
10906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10907$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10908if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10909  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10910else
10911  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10912if test "x$ac_cv_func_dlopen" = xyes; then :
10913  lt_cv_dlopen="dlopen"
10914else
10915  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10916$as_echo_n "checking for dlopen in -ldl... " >&6; }
10917if ${ac_cv_lib_dl_dlopen+:} false; then :
10918  $as_echo_n "(cached) " >&6
10919else
10920  ac_check_lib_save_LIBS=$LIBS
10921LIBS="-ldl  $LIBS"
10922cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10923/* end confdefs.h.  */
10924
10925/* Override any GCC internal prototype to avoid an error.
10926   Use char because int might match the return type of a GCC
10927   builtin and then its argument prototype would still apply.  */
10928#ifdef __cplusplus
10929extern "C"
10930#endif
10931char dlopen ();
10932int
10933main ()
10934{
10935return dlopen ();
10936  ;
10937  return 0;
10938}
10939_ACEOF
10940if ac_fn_c_try_link "$LINENO"; then :
10941  ac_cv_lib_dl_dlopen=yes
10942else
10943  ac_cv_lib_dl_dlopen=no
10944fi
10945rm -f core conftest.err conftest.$ac_objext \
10946    conftest$ac_exeext conftest.$ac_ext
10947LIBS=$ac_check_lib_save_LIBS
10948fi
10949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10950$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10951if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10952  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10953else
10954  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10955$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10956if ${ac_cv_lib_svld_dlopen+:} false; then :
10957  $as_echo_n "(cached) " >&6
10958else
10959  ac_check_lib_save_LIBS=$LIBS
10960LIBS="-lsvld  $LIBS"
10961cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10962/* end confdefs.h.  */
10963
10964/* Override any GCC internal prototype to avoid an error.
10965   Use char because int might match the return type of a GCC
10966   builtin and then its argument prototype would still apply.  */
10967#ifdef __cplusplus
10968extern "C"
10969#endif
10970char dlopen ();
10971int
10972main ()
10973{
10974return dlopen ();
10975  ;
10976  return 0;
10977}
10978_ACEOF
10979if ac_fn_c_try_link "$LINENO"; then :
10980  ac_cv_lib_svld_dlopen=yes
10981else
10982  ac_cv_lib_svld_dlopen=no
10983fi
10984rm -f core conftest.err conftest.$ac_objext \
10985    conftest$ac_exeext conftest.$ac_ext
10986LIBS=$ac_check_lib_save_LIBS
10987fi
10988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10989$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10990if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10991  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10992else
10993  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10994$as_echo_n "checking for dld_link in -ldld... " >&6; }
10995if ${ac_cv_lib_dld_dld_link+:} false; then :
10996  $as_echo_n "(cached) " >&6
10997else
10998  ac_check_lib_save_LIBS=$LIBS
10999LIBS="-ldld  $LIBS"
11000cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11001/* end confdefs.h.  */
11002
11003/* Override any GCC internal prototype to avoid an error.
11004   Use char because int might match the return type of a GCC
11005   builtin and then its argument prototype would still apply.  */
11006#ifdef __cplusplus
11007extern "C"
11008#endif
11009char dld_link ();
11010int
11011main ()
11012{
11013return dld_link ();
11014  ;
11015  return 0;
11016}
11017_ACEOF
11018if ac_fn_c_try_link "$LINENO"; then :
11019  ac_cv_lib_dld_dld_link=yes
11020else
11021  ac_cv_lib_dld_dld_link=no
11022fi
11023rm -f core conftest.err conftest.$ac_objext \
11024    conftest$ac_exeext conftest.$ac_ext
11025LIBS=$ac_check_lib_save_LIBS
11026fi
11027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11028$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11029if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11030  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11031fi
11032
11033
11034fi
11035
11036
11037fi
11038
11039
11040fi
11041
11042
11043fi
11044
11045
11046fi
11047
11048    ;;
11049  esac
11050
11051  if test "x$lt_cv_dlopen" != xno; then
11052    enable_dlopen=yes
11053  else
11054    enable_dlopen=no
11055  fi
11056
11057  case $lt_cv_dlopen in
11058  dlopen)
11059    save_CPPFLAGS="$CPPFLAGS"
11060    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11061
11062    save_LDFLAGS="$LDFLAGS"
11063    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11064
11065    save_LIBS="$LIBS"
11066    LIBS="$lt_cv_dlopen_libs $LIBS"
11067
11068    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11069$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11070if ${lt_cv_dlopen_self+:} false; then :
11071  $as_echo_n "(cached) " >&6
11072else
11073  	  if test "$cross_compiling" = yes; then :
11074  lt_cv_dlopen_self=cross
11075else
11076  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11077  lt_status=$lt_dlunknown
11078  cat > conftest.$ac_ext <<_LT_EOF
11079#line $LINENO "configure"
11080#include "confdefs.h"
11081
11082#if HAVE_DLFCN_H
11083#include <dlfcn.h>
11084#endif
11085
11086#include <stdio.h>
11087
11088#ifdef RTLD_GLOBAL
11089#  define LT_DLGLOBAL		RTLD_GLOBAL
11090#else
11091#  ifdef DL_GLOBAL
11092#    define LT_DLGLOBAL		DL_GLOBAL
11093#  else
11094#    define LT_DLGLOBAL		0
11095#  endif
11096#endif
11097
11098/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11099   find out it does not work in some platform. */
11100#ifndef LT_DLLAZY_OR_NOW
11101#  ifdef RTLD_LAZY
11102#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11103#  else
11104#    ifdef DL_LAZY
11105#      define LT_DLLAZY_OR_NOW		DL_LAZY
11106#    else
11107#      ifdef RTLD_NOW
11108#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11109#      else
11110#        ifdef DL_NOW
11111#          define LT_DLLAZY_OR_NOW	DL_NOW
11112#        else
11113#          define LT_DLLAZY_OR_NOW	0
11114#        endif
11115#      endif
11116#    endif
11117#  endif
11118#endif
11119
11120/* When -fvisbility=hidden is used, assume the code has been annotated
11121   correspondingly for the symbols needed.  */
11122#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11123int fnord () __attribute__((visibility("default")));
11124#endif
11125
11126int fnord () { return 42; }
11127int main ()
11128{
11129  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11130  int status = $lt_dlunknown;
11131
11132  if (self)
11133    {
11134      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11135      else
11136        {
11137	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11138          else puts (dlerror ());
11139	}
11140      /* dlclose (self); */
11141    }
11142  else
11143    puts (dlerror ());
11144
11145  return status;
11146}
11147_LT_EOF
11148  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11149  (eval $ac_link) 2>&5
11150  ac_status=$?
11151  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11152  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11153    (./conftest; exit; ) >&5 2>/dev/null
11154    lt_status=$?
11155    case x$lt_status in
11156      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11157      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11158      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11159    esac
11160  else :
11161    # compilation failed
11162    lt_cv_dlopen_self=no
11163  fi
11164fi
11165rm -fr conftest*
11166
11167
11168fi
11169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11170$as_echo "$lt_cv_dlopen_self" >&6; }
11171
11172    if test "x$lt_cv_dlopen_self" = xyes; then
11173      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11174      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11175$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11176if ${lt_cv_dlopen_self_static+:} false; then :
11177  $as_echo_n "(cached) " >&6
11178else
11179  	  if test "$cross_compiling" = yes; then :
11180  lt_cv_dlopen_self_static=cross
11181else
11182  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11183  lt_status=$lt_dlunknown
11184  cat > conftest.$ac_ext <<_LT_EOF
11185#line $LINENO "configure"
11186#include "confdefs.h"
11187
11188#if HAVE_DLFCN_H
11189#include <dlfcn.h>
11190#endif
11191
11192#include <stdio.h>
11193
11194#ifdef RTLD_GLOBAL
11195#  define LT_DLGLOBAL		RTLD_GLOBAL
11196#else
11197#  ifdef DL_GLOBAL
11198#    define LT_DLGLOBAL		DL_GLOBAL
11199#  else
11200#    define LT_DLGLOBAL		0
11201#  endif
11202#endif
11203
11204/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11205   find out it does not work in some platform. */
11206#ifndef LT_DLLAZY_OR_NOW
11207#  ifdef RTLD_LAZY
11208#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11209#  else
11210#    ifdef DL_LAZY
11211#      define LT_DLLAZY_OR_NOW		DL_LAZY
11212#    else
11213#      ifdef RTLD_NOW
11214#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11215#      else
11216#        ifdef DL_NOW
11217#          define LT_DLLAZY_OR_NOW	DL_NOW
11218#        else
11219#          define LT_DLLAZY_OR_NOW	0
11220#        endif
11221#      endif
11222#    endif
11223#  endif
11224#endif
11225
11226/* When -fvisbility=hidden is used, assume the code has been annotated
11227   correspondingly for the symbols needed.  */
11228#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11229int fnord () __attribute__((visibility("default")));
11230#endif
11231
11232int fnord () { return 42; }
11233int main ()
11234{
11235  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11236  int status = $lt_dlunknown;
11237
11238  if (self)
11239    {
11240      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11241      else
11242        {
11243	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11244          else puts (dlerror ());
11245	}
11246      /* dlclose (self); */
11247    }
11248  else
11249    puts (dlerror ());
11250
11251  return status;
11252}
11253_LT_EOF
11254  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11255  (eval $ac_link) 2>&5
11256  ac_status=$?
11257  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11258  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11259    (./conftest; exit; ) >&5 2>/dev/null
11260    lt_status=$?
11261    case x$lt_status in
11262      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11263      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11264      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11265    esac
11266  else :
11267    # compilation failed
11268    lt_cv_dlopen_self_static=no
11269  fi
11270fi
11271rm -fr conftest*
11272
11273
11274fi
11275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11276$as_echo "$lt_cv_dlopen_self_static" >&6; }
11277    fi
11278
11279    CPPFLAGS="$save_CPPFLAGS"
11280    LDFLAGS="$save_LDFLAGS"
11281    LIBS="$save_LIBS"
11282    ;;
11283  esac
11284
11285  case $lt_cv_dlopen_self in
11286  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11287  *) enable_dlopen_self=unknown ;;
11288  esac
11289
11290  case $lt_cv_dlopen_self_static in
11291  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11292  *) enable_dlopen_self_static=unknown ;;
11293  esac
11294fi
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312striplib=
11313old_striplib=
11314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11315$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11316if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11317  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11318  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11319  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11320$as_echo "yes" >&6; }
11321else
11322# FIXME - insert some real tests, host_os isn't really good enough
11323  case $host_os in
11324  darwin*)
11325    if test -n "$STRIP" ; then
11326      striplib="$STRIP -x"
11327      old_striplib="$STRIP -S"
11328      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11329$as_echo "yes" >&6; }
11330    else
11331      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11332$as_echo "no" >&6; }
11333    fi
11334    ;;
11335  *)
11336    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11337$as_echo "no" >&6; }
11338    ;;
11339  esac
11340fi
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353  # Report which library types will actually be built
11354  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11355$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11356  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11357$as_echo "$can_build_shared" >&6; }
11358
11359  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11360$as_echo_n "checking whether to build shared libraries... " >&6; }
11361  test "$can_build_shared" = "no" && enable_shared=no
11362
11363  # On AIX, shared libraries and static libraries use the same namespace, and
11364  # are all built from PIC.
11365  case $host_os in
11366  aix3*)
11367    test "$enable_shared" = yes && enable_static=no
11368    if test -n "$RANLIB"; then
11369      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11370      postinstall_cmds='$RANLIB $lib'
11371    fi
11372    ;;
11373
11374  aix[4-9]*)
11375    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11376      test "$enable_shared" = yes && enable_static=no
11377    fi
11378    ;;
11379  esac
11380  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11381$as_echo "$enable_shared" >&6; }
11382
11383  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11384$as_echo_n "checking whether to build static libraries... " >&6; }
11385  # Make sure either enable_shared or enable_static is yes.
11386  test "$enable_shared" = yes || enable_static=yes
11387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11388$as_echo "$enable_static" >&6; }
11389
11390
11391
11392
11393fi
11394ac_ext=c
11395ac_cpp='$CPP $CPPFLAGS'
11396ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11397ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11398ac_compiler_gnu=$ac_cv_c_compiler_gnu
11399
11400CC="$lt_save_CC"
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416        ac_config_commands="$ac_config_commands libtool"
11417
11418
11419
11420
11421# Only expand once:
11422
11423
11424
11425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11426$as_echo_n "checking for ANSI C header files... " >&6; }
11427if ${ac_cv_header_stdc+:} false; then :
11428  $as_echo_n "(cached) " >&6
11429else
11430  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11431/* end confdefs.h.  */
11432#include <stdlib.h>
11433#include <stdarg.h>
11434#include <string.h>
11435#include <float.h>
11436
11437int
11438main ()
11439{
11440
11441  ;
11442  return 0;
11443}
11444_ACEOF
11445if ac_fn_c_try_compile "$LINENO"; then :
11446  ac_cv_header_stdc=yes
11447else
11448  ac_cv_header_stdc=no
11449fi
11450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11451
11452if test $ac_cv_header_stdc = yes; then
11453  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11454  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11455/* end confdefs.h.  */
11456#include <string.h>
11457
11458_ACEOF
11459if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11460  $EGREP "memchr" >/dev/null 2>&1; then :
11461
11462else
11463  ac_cv_header_stdc=no
11464fi
11465rm -f conftest*
11466
11467fi
11468
11469if test $ac_cv_header_stdc = yes; then
11470  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11471  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11472/* end confdefs.h.  */
11473#include <stdlib.h>
11474
11475_ACEOF
11476if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11477  $EGREP "free" >/dev/null 2>&1; then :
11478
11479else
11480  ac_cv_header_stdc=no
11481fi
11482rm -f conftest*
11483
11484fi
11485
11486if test $ac_cv_header_stdc = yes; then
11487  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11488  if test "$cross_compiling" = yes; then :
11489  :
11490else
11491  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11492/* end confdefs.h.  */
11493#include <ctype.h>
11494#include <stdlib.h>
11495#if ((' ' & 0x0FF) == 0x020)
11496# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11497# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11498#else
11499# define ISLOWER(c) \
11500		   (('a' <= (c) && (c) <= 'i') \
11501		     || ('j' <= (c) && (c) <= 'r') \
11502		     || ('s' <= (c) && (c) <= 'z'))
11503# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11504#endif
11505
11506#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11507int
11508main ()
11509{
11510  int i;
11511  for (i = 0; i < 256; i++)
11512    if (XOR (islower (i), ISLOWER (i))
11513	|| toupper (i) != TOUPPER (i))
11514      return 2;
11515  return 0;
11516}
11517_ACEOF
11518if ac_fn_c_try_run "$LINENO"; then :
11519
11520else
11521  ac_cv_header_stdc=no
11522fi
11523rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11524  conftest.$ac_objext conftest.beam conftest.$ac_ext
11525fi
11526
11527fi
11528fi
11529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11530$as_echo "$ac_cv_header_stdc" >&6; }
11531if test $ac_cv_header_stdc = yes; then
11532
11533$as_echo "#define STDC_HEADERS 1" >>confdefs.h
11534
11535fi
11536
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11538$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11539if ${ac_cv_c_bigendian+:} false; then :
11540  $as_echo_n "(cached) " >&6
11541else
11542  ac_cv_c_bigendian=unknown
11543    # See if we're dealing with a universal compiler.
11544    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11545/* end confdefs.h.  */
11546#ifndef __APPLE_CC__
11547	       not a universal capable compiler
11548	     #endif
11549	     typedef int dummy;
11550
11551_ACEOF
11552if ac_fn_c_try_compile "$LINENO"; then :
11553
11554	# Check for potential -arch flags.  It is not universal unless
11555	# there are at least two -arch flags with different values.
11556	ac_arch=
11557	ac_prev=
11558	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11559	 if test -n "$ac_prev"; then
11560	   case $ac_word in
11561	     i?86 | x86_64 | ppc | ppc64)
11562	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11563		 ac_arch=$ac_word
11564	       else
11565		 ac_cv_c_bigendian=universal
11566		 break
11567	       fi
11568	       ;;
11569	   esac
11570	   ac_prev=
11571	 elif test "x$ac_word" = "x-arch"; then
11572	   ac_prev=arch
11573	 fi
11574       done
11575fi
11576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11577    if test $ac_cv_c_bigendian = unknown; then
11578      # See if sys/param.h defines the BYTE_ORDER macro.
11579      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11580/* end confdefs.h.  */
11581#include <sys/types.h>
11582	     #include <sys/param.h>
11583
11584int
11585main ()
11586{
11587#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11588		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11589		     && LITTLE_ENDIAN)
11590	      bogus endian macros
11591	     #endif
11592
11593  ;
11594  return 0;
11595}
11596_ACEOF
11597if ac_fn_c_try_compile "$LINENO"; then :
11598  # It does; now see whether it defined to BIG_ENDIAN or not.
11599	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11600/* end confdefs.h.  */
11601#include <sys/types.h>
11602		#include <sys/param.h>
11603
11604int
11605main ()
11606{
11607#if BYTE_ORDER != BIG_ENDIAN
11608		 not big endian
11609		#endif
11610
11611  ;
11612  return 0;
11613}
11614_ACEOF
11615if ac_fn_c_try_compile "$LINENO"; then :
11616  ac_cv_c_bigendian=yes
11617else
11618  ac_cv_c_bigendian=no
11619fi
11620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11621fi
11622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11623    fi
11624    if test $ac_cv_c_bigendian = unknown; then
11625      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11626      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11627/* end confdefs.h.  */
11628#include <limits.h>
11629
11630int
11631main ()
11632{
11633#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11634	      bogus endian macros
11635	     #endif
11636
11637  ;
11638  return 0;
11639}
11640_ACEOF
11641if ac_fn_c_try_compile "$LINENO"; then :
11642  # It does; now see whether it defined to _BIG_ENDIAN or not.
11643	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11644/* end confdefs.h.  */
11645#include <limits.h>
11646
11647int
11648main ()
11649{
11650#ifndef _BIG_ENDIAN
11651		 not big endian
11652		#endif
11653
11654  ;
11655  return 0;
11656}
11657_ACEOF
11658if ac_fn_c_try_compile "$LINENO"; then :
11659  ac_cv_c_bigendian=yes
11660else
11661  ac_cv_c_bigendian=no
11662fi
11663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11664fi
11665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11666    fi
11667    if test $ac_cv_c_bigendian = unknown; then
11668      # Compile a test program.
11669      if test "$cross_compiling" = yes; then :
11670  # Try to guess by grepping values from an object file.
11671	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11672/* end confdefs.h.  */
11673short int ascii_mm[] =
11674		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11675		short int ascii_ii[] =
11676		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11677		int use_ascii (int i) {
11678		  return ascii_mm[i] + ascii_ii[i];
11679		}
11680		short int ebcdic_ii[] =
11681		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11682		short int ebcdic_mm[] =
11683		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11684		int use_ebcdic (int i) {
11685		  return ebcdic_mm[i] + ebcdic_ii[i];
11686		}
11687		extern int foo;
11688
11689int
11690main ()
11691{
11692return use_ascii (foo) == use_ebcdic (foo);
11693  ;
11694  return 0;
11695}
11696_ACEOF
11697if ac_fn_c_try_compile "$LINENO"; then :
11698  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11699	      ac_cv_c_bigendian=yes
11700	    fi
11701	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11702	      if test "$ac_cv_c_bigendian" = unknown; then
11703		ac_cv_c_bigendian=no
11704	      else
11705		# finding both strings is unlikely to happen, but who knows?
11706		ac_cv_c_bigendian=unknown
11707	      fi
11708	    fi
11709fi
11710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11711else
11712  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11713/* end confdefs.h.  */
11714$ac_includes_default
11715int
11716main ()
11717{
11718
11719	     /* Are we little or big endian?  From Harbison&Steele.  */
11720	     union
11721	     {
11722	       long int l;
11723	       char c[sizeof (long int)];
11724	     } u;
11725	     u.l = 1;
11726	     return u.c[sizeof (long int) - 1] == 1;
11727
11728  ;
11729  return 0;
11730}
11731_ACEOF
11732if ac_fn_c_try_run "$LINENO"; then :
11733  ac_cv_c_bigendian=no
11734else
11735  ac_cv_c_bigendian=yes
11736fi
11737rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11738  conftest.$ac_objext conftest.beam conftest.$ac_ext
11739fi
11740
11741    fi
11742fi
11743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
11744$as_echo "$ac_cv_c_bigendian" >&6; }
11745 case $ac_cv_c_bigendian in #(
11746   yes)
11747     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
11748;; #(
11749   no)
11750      ;; #(
11751   universal)
11752
11753$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11754
11755     ;; #(
11756   *)
11757     as_fn_error $? "unknown endianness
11758 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
11759 esac
11760
11761
11762
11763# Check whether --with-expat-prefix was given.
11764if test "${with_expat_prefix+set}" = set; then :
11765  withval=$with_expat_prefix;
11766fi
11767
11768# Check whether --enable-expattest was given.
11769if test "${enable_expattest+set}" = set; then :
11770  enableval=$enable_expattest;
11771else
11772  enable_expattest=yes
11773fi
11774
11775
11776  if test x$with_expat != x ; then
11777    EXPAT_CFLAGS="-I$with_expat/include"
11778    EXPAT_LIBS="-L$with_expat/lib"
11779  fi
11780
11781  min_expat_version=1.95.1
11782  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPAT - version >= $min_expat_version" >&5
11783$as_echo_n "checking for EXPAT - version >= $min_expat_version... " >&6; }
11784
11785  EXPAT_CFLAGS="$EXPAT_CFLAGS"
11786  EXPAT_LIBS="$EXPAT_LIBS -lexpat"
11787
11788  if test "x$enable_expattest" = "xyes" ; then
11789    ac_save_CFLAGS="$CFLAGS"
11790    ac_save_LIBS="$LIBS"
11791    CFLAGS="$CFLAGS $EXPAT_CFLAGS"
11792    LIBS="$EXPAT_LIBS $LIBS"
11793    rm -f conf.expattest
11794    if test "$cross_compiling" = yes; then :
11795  echo $ac_n "cross compiling; assumed OK... $ac_c"
11796else
11797  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11798/* end confdefs.h.  */
11799
11800#include <expat.h>
11801#include <stdio.h>
11802#include <stdlib.h>
11803#include <string.h>
11804
11805int
11806main ()
11807{
11808   int expat_major, expat_minor, expat_micro;
11809   int major, minor, micro;
11810   char *tmp_expat_version;
11811   char *tmp_version;
11812
11813   system ("touch conf.expattest");
11814
11815   /* HP/UX 9 (%@#!) writes to sscanf strings */
11816   tmp_expat_version = strdup(XML_ExpatVersion());
11817   if (sscanf(tmp_expat_version, "expat_%d.%d.%d", &expat_major, &expat_minor, &expat_micro) != 3) {
11818     printf("%s, bad expat version string\n", XML_ExpatVersion());
11819     exit(1);
11820   }
11821
11822   /* HP/UX 9 (%@#!) writes to sscanf strings */
11823   tmp_version = strdup("$min_expat_version");
11824   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
11825     printf("%s, bad version string\n", "$min_expat_version");
11826     exit(1);
11827   }
11828
11829   if ((expat_major > major) ||
11830      ((expat_major == major) && (expat_minor > minor)) ||
11831      ((expat_major == major) && (expat_minor == minor) && (expat_micro >= micro)))
11832   {
11833        return 0;
11834   }
11835   else
11836   {
11837        printf("\n*** An old version of EXPAT (%d.%d.%d) was found.\n",
11838               expat_major, expat_minor, expat_micro);
11839        printf("*** You need a version of EXPAT newer than %d.%d.%d. The latest version of\n",
11840	       major, minor, micro);
11841        printf("***\n");
11842        printf("*** If you have already installed a sufficiently new version, this error\n");
11843        printf("*** probably means that the wrong copy of the expat-config shell script is\n");
11844        printf("*** being found. The easiest way to fix this is to remove the old version\n");
11845        printf("*** of EXPAT, but you can also set the EXPAT_CONFIG environment to point to the\n");
11846        printf("*** correct copy of expat-config. (In this case, you will have to\n");
11847        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
11848        printf("*** so that the correct libraries are found at run-time))\n");
11849   }
11850   return 1;
11851}
11852
11853_ACEOF
11854if ac_fn_c_try_run "$LINENO"; then :
11855
11856else
11857  no_expat=yes
11858fi
11859rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11860  conftest.$ac_objext conftest.beam conftest.$ac_ext
11861fi
11862
11863       CFLAGS="$ac_save_CFLAGS"
11864       LIBS="$ac_save_LIBS"
11865  fi
11866
11867  if test "x$no_expat" = x ; then
11868     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11869$as_echo "yes" >&6; }
11870     :
11871  else
11872     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11873$as_echo "no" >&6; }
11874     if test -f conf.expattest ; then
11875        :
11876     else
11877          echo "*** Could not run EXPAT test program, checking why..."
11878          CFLAGS="$CFLAGS $EXPAT_CFLAGS"
11879          LIBS="$LIBS $EXPAT_LIBS"
11880          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11881/* end confdefs.h.  */
11882
11883#include <expat.h>
11884#include <stdio.h>
11885
11886int
11887main ()
11888{
11889 return (XML_ExpatVersion());
11890  ;
11891  return 0;
11892}
11893_ACEOF
11894if ac_fn_c_try_link "$LINENO"; then :
11895   echo "*** The test program compiled, but did not run. This usually means"
11896          echo "*** that the run-time linker is not finding EXPAT or finding the wrong"
11897          echo "*** version of EXPAT. If it is not finding EXPAT, you'll need to set your"
11898          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
11899          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
11900          echo "*** is required on your system"
11901	  echo "***"
11902          echo "*** If you have an old version installed, it is best to remove it, although"
11903          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
11904          echo "***"
11905else
11906   echo "*** The test program failed to compile or link. See the file config.log for the"
11907          echo "*** exact error that occured. This usually means EXPAT was incorrectly installed"
11908          echo "*** or that you have moved EXPAT since it was installed. In the latter case, you"
11909          echo "*** may want to edit the expat-config script: $EXPAT_CONFIG"
11910fi
11911rm -f core conftest.err conftest.$ac_objext \
11912    conftest$ac_exeext conftest.$ac_ext
11913          CFLAGS="$ac_save_CFLAGS"
11914          LIBS="$ac_save_LIBS"
11915     fi
11916     EXPAT_CFLAGS=""
11917     EXPAT_LIBS=""
11918     as_fn_error $? "Expat is required, but not found" "$LINENO" 5
11919  fi
11920
11921
11922  rm -f conf.expattest
11923
11924ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
11925if test "x$ac_cv_func_snprintf" = xyes; then :
11926
11927$as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
11928
11929fi
11930
11931
11932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostent in -lnsl" >&5
11933$as_echo_n "checking for gethostent in -lnsl... " >&6; }
11934if ${ac_cv_lib_nsl_gethostent+:} false; then :
11935  $as_echo_n "(cached) " >&6
11936else
11937  ac_check_lib_save_LIBS=$LIBS
11938LIBS="-lnsl  $LIBS"
11939cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11940/* end confdefs.h.  */
11941
11942/* Override any GCC internal prototype to avoid an error.
11943   Use char because int might match the return type of a GCC
11944   builtin and then its argument prototype would still apply.  */
11945#ifdef __cplusplus
11946extern "C"
11947#endif
11948char gethostent ();
11949int
11950main ()
11951{
11952return gethostent ();
11953  ;
11954  return 0;
11955}
11956_ACEOF
11957if ac_fn_c_try_link "$LINENO"; then :
11958  ac_cv_lib_nsl_gethostent=yes
11959else
11960  ac_cv_lib_nsl_gethostent=no
11961fi
11962rm -f core conftest.err conftest.$ac_objext \
11963    conftest$ac_exeext conftest.$ac_ext
11964LIBS=$ac_check_lib_save_LIBS
11965fi
11966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostent" >&5
11967$as_echo "$ac_cv_lib_nsl_gethostent" >&6; }
11968if test "x$ac_cv_lib_nsl_gethostent" = xyes; then :
11969  cat >>confdefs.h <<_ACEOF
11970#define HAVE_LIBNSL 1
11971_ACEOF
11972
11973  LIBS="-lnsl $LIBS"
11974
11975fi
11976
11977ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
11978if test "x$ac_cv_func_connect" = xyes; then :
11979
11980$as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h
11981
11982else
11983
11984	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
11985$as_echo_n "checking for connect in -lsocket... " >&6; }
11986if ${ac_cv_lib_socket_connect+:} false; then :
11987  $as_echo_n "(cached) " >&6
11988else
11989  ac_check_lib_save_LIBS=$LIBS
11990LIBS="-lsocket  $LIBS"
11991cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11992/* end confdefs.h.  */
11993
11994/* Override any GCC internal prototype to avoid an error.
11995   Use char because int might match the return type of a GCC
11996   builtin and then its argument prototype would still apply.  */
11997#ifdef __cplusplus
11998extern "C"
11999#endif
12000char connect ();
12001int
12002main ()
12003{
12004return connect ();
12005  ;
12006  return 0;
12007}
12008_ACEOF
12009if ac_fn_c_try_link "$LINENO"; then :
12010  ac_cv_lib_socket_connect=yes
12011else
12012  ac_cv_lib_socket_connect=no
12013fi
12014rm -f core conftest.err conftest.$ac_objext \
12015    conftest$ac_exeext conftest.$ac_ext
12016LIBS=$ac_check_lib_save_LIBS
12017fi
12018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
12019$as_echo "$ac_cv_lib_socket_connect" >&6; }
12020if test "x$ac_cv_lib_socket_connect" = xyes; then :
12021  use_lib_socket=yes
12022else
12023  as_fn_error $? "
12024*************************************************************
12025*  You do not seem to have the socket call available as a   *
12026*  function or in the socket library.  This problem must be *
12027*  fixed before you can continue.                           *
12028*************************************************************" "$LINENO" 5
12029fi
12030
12031fi
12032
12033
12034# The cast to long int works around a bug in the HP C Compiler
12035# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12036# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12037# This bug is HP SR number 8606223364.
12038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12039$as_echo_n "checking size of int... " >&6; }
12040if ${ac_cv_sizeof_int+:} false; then :
12041  $as_echo_n "(cached) " >&6
12042else
12043  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
12044
12045else
12046  if test "$ac_cv_type_int" = yes; then
12047     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12048$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12049as_fn_error 77 "cannot compute sizeof (int)
12050See \`config.log' for more details" "$LINENO" 5; }
12051   else
12052     ac_cv_sizeof_int=0
12053   fi
12054fi
12055
12056fi
12057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12058$as_echo "$ac_cv_sizeof_int" >&6; }
12059
12060
12061
12062cat >>confdefs.h <<_ACEOF
12063#define SIZEOF_INT $ac_cv_sizeof_int
12064_ACEOF
12065
12066
12067# The cast to long int works around a bug in the HP C Compiler
12068# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12069# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12070# This bug is HP SR number 8606223364.
12071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12072$as_echo_n "checking size of short... " >&6; }
12073if ${ac_cv_sizeof_short+:} false; then :
12074  $as_echo_n "(cached) " >&6
12075else
12076  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
12077
12078else
12079  if test "$ac_cv_type_short" = yes; then
12080     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12081$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12082as_fn_error 77 "cannot compute sizeof (short)
12083See \`config.log' for more details" "$LINENO" 5; }
12084   else
12085     ac_cv_sizeof_short=0
12086   fi
12087fi
12088
12089fi
12090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12091$as_echo "$ac_cv_sizeof_short" >&6; }
12092
12093
12094
12095cat >>confdefs.h <<_ACEOF
12096#define SIZEOF_SHORT $ac_cv_sizeof_short
12097_ACEOF
12098
12099
12100
12101ac_config_files="$ac_config_files Makefile libxode-config src/Makefile include/Makefile"
12102
12103cat >confcache <<\_ACEOF
12104# This file is a shell script that caches the results of configure
12105# tests run on this system so they can be shared between configure
12106# scripts and configure runs, see configure's option --config-cache.
12107# It is not useful on other systems.  If it contains results you don't
12108# want to keep, you may remove or edit it.
12109#
12110# config.status only pays attention to the cache file if you give it
12111# the --recheck option to rerun configure.
12112#
12113# `ac_cv_env_foo' variables (set or unset) will be overridden when
12114# loading this file, other *unset* `ac_cv_foo' will be assigned the
12115# following values.
12116
12117_ACEOF
12118
12119# The following way of writing the cache mishandles newlines in values,
12120# but we know of no workaround that is simple, portable, and efficient.
12121# So, we kill variables containing newlines.
12122# Ultrix sh set writes to stderr and can't be redirected directly,
12123# and sets the high bit in the cache file unless we assign to the vars.
12124(
12125  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12126    eval ac_val=\$$ac_var
12127    case $ac_val in #(
12128    *${as_nl}*)
12129      case $ac_var in #(
12130      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12131$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12132      esac
12133      case $ac_var in #(
12134      _ | IFS | as_nl) ;; #(
12135      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12136      *) { eval $ac_var=; unset $ac_var;} ;;
12137      esac ;;
12138    esac
12139  done
12140
12141  (set) 2>&1 |
12142    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12143    *${as_nl}ac_space=\ *)
12144      # `set' does not quote correctly, so add quotes: double-quote
12145      # substitution turns \\\\ into \\, and sed turns \\ into \.
12146      sed -n \
12147	"s/'/'\\\\''/g;
12148	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12149      ;; #(
12150    *)
12151      # `set' quotes correctly as required by POSIX, so do not add quotes.
12152      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12153      ;;
12154    esac |
12155    sort
12156) |
12157  sed '
12158     /^ac_cv_env_/b end
12159     t clear
12160     :clear
12161     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12162     t end
12163     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12164     :end' >>confcache
12165if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12166  if test -w "$cache_file"; then
12167    if test "x$cache_file" != "x/dev/null"; then
12168      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12169$as_echo "$as_me: updating cache $cache_file" >&6;}
12170      if test ! -f "$cache_file" || test -h "$cache_file"; then
12171	cat confcache >"$cache_file"
12172      else
12173        case $cache_file in #(
12174        */* | ?:*)
12175	  mv -f confcache "$cache_file"$$ &&
12176	  mv -f "$cache_file"$$ "$cache_file" ;; #(
12177        *)
12178	  mv -f confcache "$cache_file" ;;
12179	esac
12180      fi
12181    fi
12182  else
12183    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12184$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12185  fi
12186fi
12187rm -f confcache
12188
12189test "x$prefix" = xNONE && prefix=$ac_default_prefix
12190# Let make expand exec_prefix.
12191test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12192
12193DEFS=-DHAVE_CONFIG_H
12194
12195ac_libobjs=
12196ac_ltlibobjs=
12197U=
12198for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12199  # 1. Remove the extension, and $U if already installed.
12200  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12201  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12202  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12203  #    will be set to the directory where LIBOBJS objects are built.
12204  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12205  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12206done
12207LIBOBJS=$ac_libobjs
12208
12209LTLIBOBJS=$ac_ltlibobjs
12210
12211
12212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12213$as_echo_n "checking that generated files are newer than configure... " >&6; }
12214   if test -n "$am_sleep_pid"; then
12215     # Hide warnings about reused PIDs.
12216     wait $am_sleep_pid 2>/dev/null
12217   fi
12218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12219$as_echo "done" >&6; }
12220 if test -n "$EXEEXT"; then
12221  am__EXEEXT_TRUE=
12222  am__EXEEXT_FALSE='#'
12223else
12224  am__EXEEXT_TRUE='#'
12225  am__EXEEXT_FALSE=
12226fi
12227
12228if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12229  as_fn_error $? "conditional \"AMDEP\" was never defined.
12230Usually this means the macro was only invoked conditionally." "$LINENO" 5
12231fi
12232if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12233  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12234Usually this means the macro was only invoked conditionally." "$LINENO" 5
12235fi
12236
12237
12238: "${CONFIG_STATUS=./config.status}"
12239ac_write_fail=0
12240ac_clean_files_save=$ac_clean_files
12241ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12242{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12243$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12244as_write_fail=0
12245cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12246#! $SHELL
12247# Generated by $as_me.
12248# Run this file to recreate the current configuration.
12249# Compiler output produced by configure, useful for debugging
12250# configure, is in config.log if it exists.
12251
12252debug=false
12253ac_cs_recheck=false
12254ac_cs_silent=false
12255
12256SHELL=\${CONFIG_SHELL-$SHELL}
12257export SHELL
12258_ASEOF
12259cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12260## -------------------- ##
12261## M4sh Initialization. ##
12262## -------------------- ##
12263
12264# Be more Bourne compatible
12265DUALCASE=1; export DUALCASE # for MKS sh
12266if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12267  emulate sh
12268  NULLCMD=:
12269  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12270  # is contrary to our usage.  Disable this feature.
12271  alias -g '${1+"$@"}'='"$@"'
12272  setopt NO_GLOB_SUBST
12273else
12274  case `(set -o) 2>/dev/null` in #(
12275  *posix*) :
12276    set -o posix ;; #(
12277  *) :
12278     ;;
12279esac
12280fi
12281
12282
12283as_nl='
12284'
12285export as_nl
12286# Printing a long string crashes Solaris 7 /usr/bin/printf.
12287as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12288as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12289as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12290# Prefer a ksh shell builtin over an external printf program on Solaris,
12291# but without wasting forks for bash or zsh.
12292if test -z "$BASH_VERSION$ZSH_VERSION" \
12293    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12294  as_echo='print -r --'
12295  as_echo_n='print -rn --'
12296elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12297  as_echo='printf %s\n'
12298  as_echo_n='printf %s'
12299else
12300  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12301    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12302    as_echo_n='/usr/ucb/echo -n'
12303  else
12304    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12305    as_echo_n_body='eval
12306      arg=$1;
12307      case $arg in #(
12308      *"$as_nl"*)
12309	expr "X$arg" : "X\\(.*\\)$as_nl";
12310	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12311      esac;
12312      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12313    '
12314    export as_echo_n_body
12315    as_echo_n='sh -c $as_echo_n_body as_echo'
12316  fi
12317  export as_echo_body
12318  as_echo='sh -c $as_echo_body as_echo'
12319fi
12320
12321# The user is always right.
12322if test "${PATH_SEPARATOR+set}" != set; then
12323  PATH_SEPARATOR=:
12324  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12325    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12326      PATH_SEPARATOR=';'
12327  }
12328fi
12329
12330
12331# IFS
12332# We need space, tab and new line, in precisely that order.  Quoting is
12333# there to prevent editors from complaining about space-tab.
12334# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12335# splitting by setting IFS to empty value.)
12336IFS=" ""	$as_nl"
12337
12338# Find who we are.  Look in the path if we contain no directory separator.
12339as_myself=
12340case $0 in #((
12341  *[\\/]* ) as_myself=$0 ;;
12342  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12343for as_dir in $PATH
12344do
12345  IFS=$as_save_IFS
12346  test -z "$as_dir" && as_dir=.
12347    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12348  done
12349IFS=$as_save_IFS
12350
12351     ;;
12352esac
12353# We did not find ourselves, most probably we were run as `sh COMMAND'
12354# in which case we are not to be found in the path.
12355if test "x$as_myself" = x; then
12356  as_myself=$0
12357fi
12358if test ! -f "$as_myself"; then
12359  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12360  exit 1
12361fi
12362
12363# Unset variables that we do not need and which cause bugs (e.g. in
12364# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12365# suppresses any "Segmentation fault" message there.  '((' could
12366# trigger a bug in pdksh 5.2.14.
12367for as_var in BASH_ENV ENV MAIL MAILPATH
12368do eval test x\${$as_var+set} = xset \
12369  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12370done
12371PS1='$ '
12372PS2='> '
12373PS4='+ '
12374
12375# NLS nuisances.
12376LC_ALL=C
12377export LC_ALL
12378LANGUAGE=C
12379export LANGUAGE
12380
12381# CDPATH.
12382(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12383
12384
12385# as_fn_error STATUS ERROR [LINENO LOG_FD]
12386# ----------------------------------------
12387# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12388# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12389# script with STATUS, using 1 if that was 0.
12390as_fn_error ()
12391{
12392  as_status=$1; test $as_status -eq 0 && as_status=1
12393  if test "$4"; then
12394    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12395    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12396  fi
12397  $as_echo "$as_me: error: $2" >&2
12398  as_fn_exit $as_status
12399} # as_fn_error
12400
12401
12402# as_fn_set_status STATUS
12403# -----------------------
12404# Set $? to STATUS, without forking.
12405as_fn_set_status ()
12406{
12407  return $1
12408} # as_fn_set_status
12409
12410# as_fn_exit STATUS
12411# -----------------
12412# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12413as_fn_exit ()
12414{
12415  set +e
12416  as_fn_set_status $1
12417  exit $1
12418} # as_fn_exit
12419
12420# as_fn_unset VAR
12421# ---------------
12422# Portably unset VAR.
12423as_fn_unset ()
12424{
12425  { eval $1=; unset $1;}
12426}
12427as_unset=as_fn_unset
12428# as_fn_append VAR VALUE
12429# ----------------------
12430# Append the text in VALUE to the end of the definition contained in VAR. Take
12431# advantage of any shell optimizations that allow amortized linear growth over
12432# repeated appends, instead of the typical quadratic growth present in naive
12433# implementations.
12434if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12435  eval 'as_fn_append ()
12436  {
12437    eval $1+=\$2
12438  }'
12439else
12440  as_fn_append ()
12441  {
12442    eval $1=\$$1\$2
12443  }
12444fi # as_fn_append
12445
12446# as_fn_arith ARG...
12447# ------------------
12448# Perform arithmetic evaluation on the ARGs, and store the result in the
12449# global $as_val. Take advantage of shells that can avoid forks. The arguments
12450# must be portable across $(()) and expr.
12451if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12452  eval 'as_fn_arith ()
12453  {
12454    as_val=$(( $* ))
12455  }'
12456else
12457  as_fn_arith ()
12458  {
12459    as_val=`expr "$@" || test $? -eq 1`
12460  }
12461fi # as_fn_arith
12462
12463
12464if expr a : '\(a\)' >/dev/null 2>&1 &&
12465   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12466  as_expr=expr
12467else
12468  as_expr=false
12469fi
12470
12471if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12472  as_basename=basename
12473else
12474  as_basename=false
12475fi
12476
12477if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12478  as_dirname=dirname
12479else
12480  as_dirname=false
12481fi
12482
12483as_me=`$as_basename -- "$0" ||
12484$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12485	 X"$0" : 'X\(//\)$' \| \
12486	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12487$as_echo X/"$0" |
12488    sed '/^.*\/\([^/][^/]*\)\/*$/{
12489	    s//\1/
12490	    q
12491	  }
12492	  /^X\/\(\/\/\)$/{
12493	    s//\1/
12494	    q
12495	  }
12496	  /^X\/\(\/\).*/{
12497	    s//\1/
12498	    q
12499	  }
12500	  s/.*/./; q'`
12501
12502# Avoid depending upon Character Ranges.
12503as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12504as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12505as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12506as_cr_digits='0123456789'
12507as_cr_alnum=$as_cr_Letters$as_cr_digits
12508
12509ECHO_C= ECHO_N= ECHO_T=
12510case `echo -n x` in #(((((
12511-n*)
12512  case `echo 'xy\c'` in
12513  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12514  xy)  ECHO_C='\c';;
12515  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12516       ECHO_T='	';;
12517  esac;;
12518*)
12519  ECHO_N='-n';;
12520esac
12521
12522rm -f conf$$ conf$$.exe conf$$.file
12523if test -d conf$$.dir; then
12524  rm -f conf$$.dir/conf$$.file
12525else
12526  rm -f conf$$.dir
12527  mkdir conf$$.dir 2>/dev/null
12528fi
12529if (echo >conf$$.file) 2>/dev/null; then
12530  if ln -s conf$$.file conf$$ 2>/dev/null; then
12531    as_ln_s='ln -s'
12532    # ... but there are two gotchas:
12533    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12534    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12535    # In both cases, we have to default to `cp -pR'.
12536    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12537      as_ln_s='cp -pR'
12538  elif ln conf$$.file conf$$ 2>/dev/null; then
12539    as_ln_s=ln
12540  else
12541    as_ln_s='cp -pR'
12542  fi
12543else
12544  as_ln_s='cp -pR'
12545fi
12546rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12547rmdir conf$$.dir 2>/dev/null
12548
12549
12550# as_fn_mkdir_p
12551# -------------
12552# Create "$as_dir" as a directory, including parents if necessary.
12553as_fn_mkdir_p ()
12554{
12555
12556  case $as_dir in #(
12557  -*) as_dir=./$as_dir;;
12558  esac
12559  test -d "$as_dir" || eval $as_mkdir_p || {
12560    as_dirs=
12561    while :; do
12562      case $as_dir in #(
12563      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12564      *) as_qdir=$as_dir;;
12565      esac
12566      as_dirs="'$as_qdir' $as_dirs"
12567      as_dir=`$as_dirname -- "$as_dir" ||
12568$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12569	 X"$as_dir" : 'X\(//\)[^/]' \| \
12570	 X"$as_dir" : 'X\(//\)$' \| \
12571	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12572$as_echo X"$as_dir" |
12573    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12574	    s//\1/
12575	    q
12576	  }
12577	  /^X\(\/\/\)[^/].*/{
12578	    s//\1/
12579	    q
12580	  }
12581	  /^X\(\/\/\)$/{
12582	    s//\1/
12583	    q
12584	  }
12585	  /^X\(\/\).*/{
12586	    s//\1/
12587	    q
12588	  }
12589	  s/.*/./; q'`
12590      test -d "$as_dir" && break
12591    done
12592    test -z "$as_dirs" || eval "mkdir $as_dirs"
12593  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12594
12595
12596} # as_fn_mkdir_p
12597if mkdir -p . 2>/dev/null; then
12598  as_mkdir_p='mkdir -p "$as_dir"'
12599else
12600  test -d ./-p && rmdir ./-p
12601  as_mkdir_p=false
12602fi
12603
12604
12605# as_fn_executable_p FILE
12606# -----------------------
12607# Test if FILE is an executable regular file.
12608as_fn_executable_p ()
12609{
12610  test -f "$1" && test -x "$1"
12611} # as_fn_executable_p
12612as_test_x='test -x'
12613as_executable_p=as_fn_executable_p
12614
12615# Sed expression to map a string onto a valid CPP name.
12616as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12617
12618# Sed expression to map a string onto a valid variable name.
12619as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12620
12621
12622exec 6>&1
12623## ----------------------------------- ##
12624## Main body of $CONFIG_STATUS script. ##
12625## ----------------------------------- ##
12626_ASEOF
12627test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12628
12629cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12630# Save the log message, to keep $0 and so on meaningful, and to
12631# report actual input values of CONFIG_FILES etc. instead of their
12632# values after options handling.
12633ac_log="
12634This file was extended by libxode $as_me 1.2-jggtrans, which was
12635generated by GNU Autoconf 2.69.  Invocation command line was
12636
12637  CONFIG_FILES    = $CONFIG_FILES
12638  CONFIG_HEADERS  = $CONFIG_HEADERS
12639  CONFIG_LINKS    = $CONFIG_LINKS
12640  CONFIG_COMMANDS = $CONFIG_COMMANDS
12641  $ $0 $@
12642
12643on `(hostname || uname -n) 2>/dev/null | sed 1q`
12644"
12645
12646_ACEOF
12647
12648case $ac_config_files in *"
12649"*) set x $ac_config_files; shift; ac_config_files=$*;;
12650esac
12651
12652case $ac_config_headers in *"
12653"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12654esac
12655
12656
12657cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12658# Files that config.status was made for.
12659config_files="$ac_config_files"
12660config_headers="$ac_config_headers"
12661config_commands="$ac_config_commands"
12662
12663_ACEOF
12664
12665cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12666ac_cs_usage="\
12667\`$as_me' instantiates files and other configuration actions
12668from templates according to the current configuration.  Unless the files
12669and actions are specified as TAGs, all are instantiated by default.
12670
12671Usage: $0 [OPTION]... [TAG]...
12672
12673  -h, --help       print this help, then exit
12674  -V, --version    print version number and configuration settings, then exit
12675      --config     print configuration, then exit
12676  -q, --quiet, --silent
12677                   do not print progress messages
12678  -d, --debug      don't remove temporary files
12679      --recheck    update $as_me by reconfiguring in the same conditions
12680      --file=FILE[:TEMPLATE]
12681                   instantiate the configuration file FILE
12682      --header=FILE[:TEMPLATE]
12683                   instantiate the configuration header FILE
12684
12685Configuration files:
12686$config_files
12687
12688Configuration headers:
12689$config_headers
12690
12691Configuration commands:
12692$config_commands
12693
12694Report bugs to the package provider."
12695
12696_ACEOF
12697cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12698ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12699ac_cs_version="\\
12700libxode config.status 1.2-jggtrans
12701configured by $0, generated by GNU Autoconf 2.69,
12702  with options \\"\$ac_cs_config\\"
12703
12704Copyright (C) 2012 Free Software Foundation, Inc.
12705This config.status script is free software; the Free Software Foundation
12706gives unlimited permission to copy, distribute and modify it."
12707
12708ac_pwd='$ac_pwd'
12709srcdir='$srcdir'
12710INSTALL='$INSTALL'
12711MKDIR_P='$MKDIR_P'
12712AWK='$AWK'
12713test -n "\$AWK" || AWK=awk
12714_ACEOF
12715
12716cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12717# The default lists apply if the user does not specify any file.
12718ac_need_defaults=:
12719while test $# != 0
12720do
12721  case $1 in
12722  --*=?*)
12723    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12724    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12725    ac_shift=:
12726    ;;
12727  --*=)
12728    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12729    ac_optarg=
12730    ac_shift=:
12731    ;;
12732  *)
12733    ac_option=$1
12734    ac_optarg=$2
12735    ac_shift=shift
12736    ;;
12737  esac
12738
12739  case $ac_option in
12740  # Handling of the options.
12741  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12742    ac_cs_recheck=: ;;
12743  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12744    $as_echo "$ac_cs_version"; exit ;;
12745  --config | --confi | --conf | --con | --co | --c )
12746    $as_echo "$ac_cs_config"; exit ;;
12747  --debug | --debu | --deb | --de | --d | -d )
12748    debug=: ;;
12749  --file | --fil | --fi | --f )
12750    $ac_shift
12751    case $ac_optarg in
12752    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12753    '') as_fn_error $? "missing file argument" ;;
12754    esac
12755    as_fn_append CONFIG_FILES " '$ac_optarg'"
12756    ac_need_defaults=false;;
12757  --header | --heade | --head | --hea )
12758    $ac_shift
12759    case $ac_optarg in
12760    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12761    esac
12762    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12763    ac_need_defaults=false;;
12764  --he | --h)
12765    # Conflict between --help and --header
12766    as_fn_error $? "ambiguous option: \`$1'
12767Try \`$0 --help' for more information.";;
12768  --help | --hel | -h )
12769    $as_echo "$ac_cs_usage"; exit ;;
12770  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12771  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12772    ac_cs_silent=: ;;
12773
12774  # This is an error.
12775  -*) as_fn_error $? "unrecognized option: \`$1'
12776Try \`$0 --help' for more information." ;;
12777
12778  *) as_fn_append ac_config_targets " $1"
12779     ac_need_defaults=false ;;
12780
12781  esac
12782  shift
12783done
12784
12785ac_configure_extra_args=
12786
12787if $ac_cs_silent; then
12788  exec 6>/dev/null
12789  ac_configure_extra_args="$ac_configure_extra_args --silent"
12790fi
12791
12792_ACEOF
12793cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12794if \$ac_cs_recheck; then
12795  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12796  shift
12797  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12798  CONFIG_SHELL='$SHELL'
12799  export CONFIG_SHELL
12800  exec "\$@"
12801fi
12802
12803_ACEOF
12804cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12805exec 5>>config.log
12806{
12807  echo
12808  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12809## Running $as_me. ##
12810_ASBOX
12811  $as_echo "$ac_log"
12812} >&5
12813
12814_ACEOF
12815cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12816#
12817# INIT-COMMANDS
12818#
12819AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12820
12821
12822# The HP-UX ksh and POSIX shell print the target directory to stdout
12823# if CDPATH is set.
12824(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12825
12826sed_quote_subst='$sed_quote_subst'
12827double_quote_subst='$double_quote_subst'
12828delay_variable_subst='$delay_variable_subst'
12829enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12830enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12831macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12832macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12833pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12834enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12835SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12836ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12837PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
12838host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12839host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12840host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12841build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12842build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12843build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12844SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12845Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12846GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12847EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12848FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12849LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12850NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12851LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12852max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12853ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12854exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12855lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12856lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12857lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12858lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
12859lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
12860reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12861reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12862OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12863deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12864file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12865file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
12866want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
12867DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12868sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
12869AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12870AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12871archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
12872STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12873RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12874old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12875old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12876old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12877lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12878CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12879CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12880compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12881GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12882lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12883lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12884lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12885lt_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"`'
12886nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
12887lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
12888objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12889MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12890lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12891lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12892lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12893lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12894lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12895need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12896MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
12897DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12898NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12899LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12900OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12901OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12902libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12903shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12904extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12905archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12906enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12907export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12908whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12909compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12910old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12911old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12912archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12913archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12914module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12915module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12916with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12917allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12918no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12919hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12920hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12921hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12922hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12923hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12924hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12925hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12926inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12927link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12928always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12929export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12930exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12931include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12932prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12933postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
12934file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12935variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12936need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12937need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12938version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12939runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12940shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12941shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12942libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12943library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12944soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12945install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12946postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12947postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12948finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12949finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12950hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12951sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12952sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12953hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12954enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12955enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12956enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12957old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12958striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12959
12960LTCC='$LTCC'
12961LTCFLAGS='$LTCFLAGS'
12962compiler='$compiler_DEFAULT'
12963
12964# A function that is used when there is no print builtin or printf.
12965func_fallback_echo ()
12966{
12967  eval 'cat <<_LTECHO_EOF
12968\$1
12969_LTECHO_EOF'
12970}
12971
12972# Quote evaled strings.
12973for var in SHELL \
12974ECHO \
12975PATH_SEPARATOR \
12976SED \
12977GREP \
12978EGREP \
12979FGREP \
12980LD \
12981NM \
12982LN_S \
12983lt_SP2NL \
12984lt_NL2SP \
12985reload_flag \
12986OBJDUMP \
12987deplibs_check_method \
12988file_magic_cmd \
12989file_magic_glob \
12990want_nocaseglob \
12991DLLTOOL \
12992sharedlib_from_linklib_cmd \
12993AR \
12994AR_FLAGS \
12995archiver_list_spec \
12996STRIP \
12997RANLIB \
12998CC \
12999CFLAGS \
13000compiler \
13001lt_cv_sys_global_symbol_pipe \
13002lt_cv_sys_global_symbol_to_cdecl \
13003lt_cv_sys_global_symbol_to_c_name_address \
13004lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13005nm_file_list_spec \
13006lt_prog_compiler_no_builtin_flag \
13007lt_prog_compiler_pic \
13008lt_prog_compiler_wl \
13009lt_prog_compiler_static \
13010lt_cv_prog_compiler_c_o \
13011need_locks \
13012MANIFEST_TOOL \
13013DSYMUTIL \
13014NMEDIT \
13015LIPO \
13016OTOOL \
13017OTOOL64 \
13018shrext_cmds \
13019export_dynamic_flag_spec \
13020whole_archive_flag_spec \
13021compiler_needs_object \
13022with_gnu_ld \
13023allow_undefined_flag \
13024no_undefined_flag \
13025hardcode_libdir_flag_spec \
13026hardcode_libdir_separator \
13027exclude_expsyms \
13028include_expsyms \
13029file_list_spec \
13030variables_saved_for_relink \
13031libname_spec \
13032library_names_spec \
13033soname_spec \
13034install_override_mode \
13035finish_eval \
13036old_striplib \
13037striplib; do
13038    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13039    *[\\\\\\\`\\"\\\$]*)
13040      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13041      ;;
13042    *)
13043      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13044      ;;
13045    esac
13046done
13047
13048# Double-quote double-evaled strings.
13049for var in reload_cmds \
13050old_postinstall_cmds \
13051old_postuninstall_cmds \
13052old_archive_cmds \
13053extract_expsyms_cmds \
13054old_archive_from_new_cmds \
13055old_archive_from_expsyms_cmds \
13056archive_cmds \
13057archive_expsym_cmds \
13058module_cmds \
13059module_expsym_cmds \
13060export_symbols_cmds \
13061prelink_cmds \
13062postlink_cmds \
13063postinstall_cmds \
13064postuninstall_cmds \
13065finish_cmds \
13066sys_lib_search_path_spec \
13067sys_lib_dlsearch_path_spec; do
13068    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13069    *[\\\\\\\`\\"\\\$]*)
13070      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13071      ;;
13072    *)
13073      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13074      ;;
13075    esac
13076done
13077
13078ac_aux_dir='$ac_aux_dir'
13079xsi_shell='$xsi_shell'
13080lt_shell_append='$lt_shell_append'
13081
13082# See if we are running on zsh, and set the options which allow our
13083# commands through without removal of \ escapes INIT.
13084if test -n "\${ZSH_VERSION+set}" ; then
13085   setopt NO_GLOB_SUBST
13086fi
13087
13088
13089    PACKAGE='$PACKAGE'
13090    VERSION='$VERSION'
13091    TIMESTAMP='$TIMESTAMP'
13092    RM='$RM'
13093    ofile='$ofile'
13094
13095
13096
13097
13098_ACEOF
13099
13100cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13101
13102# Handling of arguments.
13103for ac_config_target in $ac_config_targets
13104do
13105  case $ac_config_target in
13106    "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
13107    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13108    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13109    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13110    "libxode-config") CONFIG_FILES="$CONFIG_FILES libxode-config" ;;
13111    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13112    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
13113
13114  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13115  esac
13116done
13117
13118
13119# If the user did not use the arguments to specify the items to instantiate,
13120# then the envvar interface is used.  Set only those that are not.
13121# We use the long form for the default assignment because of an extremely
13122# bizarre bug on SunOS 4.1.3.
13123if $ac_need_defaults; then
13124  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13125  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13126  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13127fi
13128
13129# Have a temporary directory for convenience.  Make it in the build tree
13130# simply because there is no reason against having it here, and in addition,
13131# creating and moving files from /tmp can sometimes cause problems.
13132# Hook for its removal unless debugging.
13133# Note that there is a small window in which the directory will not be cleaned:
13134# after its creation but before its name has been assigned to `$tmp'.
13135$debug ||
13136{
13137  tmp= ac_tmp=
13138  trap 'exit_status=$?
13139  : "${ac_tmp:=$tmp}"
13140  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13141' 0
13142  trap 'as_fn_exit 1' 1 2 13 15
13143}
13144# Create a (secure) tmp directory for tmp files.
13145
13146{
13147  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13148  test -d "$tmp"
13149}  ||
13150{
13151  tmp=./conf$$-$RANDOM
13152  (umask 077 && mkdir "$tmp")
13153} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13154ac_tmp=$tmp
13155
13156# Set up the scripts for CONFIG_FILES section.
13157# No need to generate them if there are no CONFIG_FILES.
13158# This happens for instance with `./config.status config.h'.
13159if test -n "$CONFIG_FILES"; then
13160
13161
13162ac_cr=`echo X | tr X '\015'`
13163# On cygwin, bash can eat \r inside `` if the user requested igncr.
13164# But we know of no other shell where ac_cr would be empty at this
13165# point, so we can use a bashism as a fallback.
13166if test "x$ac_cr" = x; then
13167  eval ac_cr=\$\'\\r\'
13168fi
13169ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13170if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13171  ac_cs_awk_cr='\\r'
13172else
13173  ac_cs_awk_cr=$ac_cr
13174fi
13175
13176echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13177_ACEOF
13178
13179
13180{
13181  echo "cat >conf$$subs.awk <<_ACEOF" &&
13182  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13183  echo "_ACEOF"
13184} >conf$$subs.sh ||
13185  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13186ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13187ac_delim='%!_!# '
13188for ac_last_try in false false false false false :; do
13189  . ./conf$$subs.sh ||
13190    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13191
13192  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13193  if test $ac_delim_n = $ac_delim_num; then
13194    break
13195  elif $ac_last_try; then
13196    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13197  else
13198    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13199  fi
13200done
13201rm -f conf$$subs.sh
13202
13203cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13204cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13205_ACEOF
13206sed -n '
13207h
13208s/^/S["/; s/!.*/"]=/
13209p
13210g
13211s/^[^!]*!//
13212:repl
13213t repl
13214s/'"$ac_delim"'$//
13215t delim
13216:nl
13217h
13218s/\(.\{148\}\)..*/\1/
13219t more1
13220s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13221p
13222n
13223b repl
13224:more1
13225s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13226p
13227g
13228s/.\{148\}//
13229t nl
13230:delim
13231h
13232s/\(.\{148\}\)..*/\1/
13233t more2
13234s/["\\]/\\&/g; s/^/"/; s/$/"/
13235p
13236b
13237:more2
13238s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13239p
13240g
13241s/.\{148\}//
13242t delim
13243' <conf$$subs.awk | sed '
13244/^[^""]/{
13245  N
13246  s/\n//
13247}
13248' >>$CONFIG_STATUS || ac_write_fail=1
13249rm -f conf$$subs.awk
13250cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13251_ACAWK
13252cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13253  for (key in S) S_is_set[key] = 1
13254  FS = ""
13255
13256}
13257{
13258  line = $ 0
13259  nfields = split(line, field, "@")
13260  substed = 0
13261  len = length(field[1])
13262  for (i = 2; i < nfields; i++) {
13263    key = field[i]
13264    keylen = length(key)
13265    if (S_is_set[key]) {
13266      value = S[key]
13267      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13268      len += length(value) + length(field[++i])
13269      substed = 1
13270    } else
13271      len += 1 + keylen
13272  }
13273
13274  print line
13275}
13276
13277_ACAWK
13278_ACEOF
13279cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13280if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13281  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13282else
13283  cat
13284fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13285  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13286_ACEOF
13287
13288# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13289# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13290# trailing colons and then remove the whole line if VPATH becomes empty
13291# (actually we leave an empty line to preserve line numbers).
13292if test "x$srcdir" = x.; then
13293  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
13294h
13295s///
13296s/^/:/
13297s/[	 ]*$/:/
13298s/:\$(srcdir):/:/g
13299s/:\${srcdir}:/:/g
13300s/:@srcdir@:/:/g
13301s/^:*//
13302s/:*$//
13303x
13304s/\(=[	 ]*\).*/\1/
13305G
13306s/\n//
13307s/^[^=]*=[	 ]*$//
13308}'
13309fi
13310
13311cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13312fi # test -n "$CONFIG_FILES"
13313
13314# Set up the scripts for CONFIG_HEADERS section.
13315# No need to generate them if there are no CONFIG_HEADERS.
13316# This happens for instance with `./config.status Makefile'.
13317if test -n "$CONFIG_HEADERS"; then
13318cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13319BEGIN {
13320_ACEOF
13321
13322# Transform confdefs.h into an awk script `defines.awk', embedded as
13323# here-document in config.status, that substitutes the proper values into
13324# config.h.in to produce config.h.
13325
13326# Create a delimiter string that does not exist in confdefs.h, to ease
13327# handling of long lines.
13328ac_delim='%!_!# '
13329for ac_last_try in false false :; do
13330  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13331  if test -z "$ac_tt"; then
13332    break
13333  elif $ac_last_try; then
13334    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13335  else
13336    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13337  fi
13338done
13339
13340# For the awk script, D is an array of macro values keyed by name,
13341# likewise P contains macro parameters if any.  Preserve backslash
13342# newline sequences.
13343
13344ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13345sed -n '
13346s/.\{148\}/&'"$ac_delim"'/g
13347t rset
13348:rset
13349s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
13350t def
13351d
13352:def
13353s/\\$//
13354t bsnl
13355s/["\\]/\\&/g
13356s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13357D["\1"]=" \3"/p
13358s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
13359d
13360:bsnl
13361s/["\\]/\\&/g
13362s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13363D["\1"]=" \3\\\\\\n"\\/p
13364t cont
13365s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13366t cont
13367d
13368:cont
13369n
13370s/.\{148\}/&'"$ac_delim"'/g
13371t clear
13372:clear
13373s/\\$//
13374t bsnlc
13375s/["\\]/\\&/g; s/^/"/; s/$/"/p
13376d
13377:bsnlc
13378s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13379b cont
13380' <confdefs.h | sed '
13381s/'"$ac_delim"'/"\\\
13382"/g' >>$CONFIG_STATUS || ac_write_fail=1
13383
13384cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13385  for (key in D) D_is_set[key] = 1
13386  FS = ""
13387}
13388/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13389  line = \$ 0
13390  split(line, arg, " ")
13391  if (arg[1] == "#") {
13392    defundef = arg[2]
13393    mac1 = arg[3]
13394  } else {
13395    defundef = substr(arg[1], 2)
13396    mac1 = arg[2]
13397  }
13398  split(mac1, mac2, "(") #)
13399  macro = mac2[1]
13400  prefix = substr(line, 1, index(line, defundef) - 1)
13401  if (D_is_set[macro]) {
13402    # Preserve the white space surrounding the "#".
13403    print prefix "define", macro P[macro] D[macro]
13404    next
13405  } else {
13406    # Replace #undef with comments.  This is necessary, for example,
13407    # in the case of _POSIX_SOURCE, which is predefined and required
13408    # on some systems where configure will not decide to define it.
13409    if (defundef == "undef") {
13410      print "/*", prefix defundef, macro, "*/"
13411      next
13412    }
13413  }
13414}
13415{ print }
13416_ACAWK
13417_ACEOF
13418cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13419  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13420fi # test -n "$CONFIG_HEADERS"
13421
13422
13423eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13424shift
13425for ac_tag
13426do
13427  case $ac_tag in
13428  :[FHLC]) ac_mode=$ac_tag; continue;;
13429  esac
13430  case $ac_mode$ac_tag in
13431  :[FHL]*:*);;
13432  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13433  :[FH]-) ac_tag=-:-;;
13434  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13435  esac
13436  ac_save_IFS=$IFS
13437  IFS=:
13438  set x $ac_tag
13439  IFS=$ac_save_IFS
13440  shift
13441  ac_file=$1
13442  shift
13443
13444  case $ac_mode in
13445  :L) ac_source=$1;;
13446  :[FH])
13447    ac_file_inputs=
13448    for ac_f
13449    do
13450      case $ac_f in
13451      -) ac_f="$ac_tmp/stdin";;
13452      *) # Look for the file first in the build tree, then in the source tree
13453	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13454	 # because $ac_f cannot contain `:'.
13455	 test -f "$ac_f" ||
13456	   case $ac_f in
13457	   [\\/$]*) false;;
13458	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13459	   esac ||
13460	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13461      esac
13462      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13463      as_fn_append ac_file_inputs " '$ac_f'"
13464    done
13465
13466    # Let's still pretend it is `configure' which instantiates (i.e., don't
13467    # use $as_me), people would be surprised to read:
13468    #    /* config.h.  Generated by config.status.  */
13469    configure_input='Generated from '`
13470	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13471	`' by configure.'
13472    if test x"$ac_file" != x-; then
13473      configure_input="$ac_file.  $configure_input"
13474      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13475$as_echo "$as_me: creating $ac_file" >&6;}
13476    fi
13477    # Neutralize special characters interpreted by sed in replacement strings.
13478    case $configure_input in #(
13479    *\&* | *\|* | *\\* )
13480       ac_sed_conf_input=`$as_echo "$configure_input" |
13481       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13482    *) ac_sed_conf_input=$configure_input;;
13483    esac
13484
13485    case $ac_tag in
13486    *:-:* | *:-) cat >"$ac_tmp/stdin" \
13487      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13488    esac
13489    ;;
13490  esac
13491
13492  ac_dir=`$as_dirname -- "$ac_file" ||
13493$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13494	 X"$ac_file" : 'X\(//\)[^/]' \| \
13495	 X"$ac_file" : 'X\(//\)$' \| \
13496	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13497$as_echo X"$ac_file" |
13498    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13499	    s//\1/
13500	    q
13501	  }
13502	  /^X\(\/\/\)[^/].*/{
13503	    s//\1/
13504	    q
13505	  }
13506	  /^X\(\/\/\)$/{
13507	    s//\1/
13508	    q
13509	  }
13510	  /^X\(\/\).*/{
13511	    s//\1/
13512	    q
13513	  }
13514	  s/.*/./; q'`
13515  as_dir="$ac_dir"; as_fn_mkdir_p
13516  ac_builddir=.
13517
13518case "$ac_dir" in
13519.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13520*)
13521  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13522  # A ".." for each directory in $ac_dir_suffix.
13523  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13524  case $ac_top_builddir_sub in
13525  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13526  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13527  esac ;;
13528esac
13529ac_abs_top_builddir=$ac_pwd
13530ac_abs_builddir=$ac_pwd$ac_dir_suffix
13531# for backward compatibility:
13532ac_top_builddir=$ac_top_build_prefix
13533
13534case $srcdir in
13535  .)  # We are building in place.
13536    ac_srcdir=.
13537    ac_top_srcdir=$ac_top_builddir_sub
13538    ac_abs_top_srcdir=$ac_pwd ;;
13539  [\\/]* | ?:[\\/]* )  # Absolute name.
13540    ac_srcdir=$srcdir$ac_dir_suffix;
13541    ac_top_srcdir=$srcdir
13542    ac_abs_top_srcdir=$srcdir ;;
13543  *) # Relative name.
13544    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13545    ac_top_srcdir=$ac_top_build_prefix$srcdir
13546    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13547esac
13548ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13549
13550
13551  case $ac_mode in
13552  :F)
13553  #
13554  # CONFIG_FILE
13555  #
13556
13557  case $INSTALL in
13558  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13559  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13560  esac
13561  ac_MKDIR_P=$MKDIR_P
13562  case $MKDIR_P in
13563  [\\/$]* | ?:[\\/]* ) ;;
13564  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13565  esac
13566_ACEOF
13567
13568cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13569# If the template does not know about datarootdir, expand it.
13570# FIXME: This hack should be removed a few years after 2.60.
13571ac_datarootdir_hack=; ac_datarootdir_seen=
13572ac_sed_dataroot='
13573/datarootdir/ {
13574  p
13575  q
13576}
13577/@datadir@/p
13578/@docdir@/p
13579/@infodir@/p
13580/@localedir@/p
13581/@mandir@/p'
13582case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13583*datarootdir*) ac_datarootdir_seen=yes;;
13584*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13585  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13586$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13587_ACEOF
13588cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13589  ac_datarootdir_hack='
13590  s&@datadir@&$datadir&g
13591  s&@docdir@&$docdir&g
13592  s&@infodir@&$infodir&g
13593  s&@localedir@&$localedir&g
13594  s&@mandir@&$mandir&g
13595  s&\\\${datarootdir}&$datarootdir&g' ;;
13596esac
13597_ACEOF
13598
13599# Neutralize VPATH when `$srcdir' = `.'.
13600# Shell code in configure.ac might set extrasub.
13601# FIXME: do we really want to maintain this feature?
13602cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13603ac_sed_extra="$ac_vpsub
13604$extrasub
13605_ACEOF
13606cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13607:t
13608/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13609s|@configure_input@|$ac_sed_conf_input|;t t
13610s&@top_builddir@&$ac_top_builddir_sub&;t t
13611s&@top_build_prefix@&$ac_top_build_prefix&;t t
13612s&@srcdir@&$ac_srcdir&;t t
13613s&@abs_srcdir@&$ac_abs_srcdir&;t t
13614s&@top_srcdir@&$ac_top_srcdir&;t t
13615s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13616s&@builddir@&$ac_builddir&;t t
13617s&@abs_builddir@&$ac_abs_builddir&;t t
13618s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13619s&@INSTALL@&$ac_INSTALL&;t t
13620s&@MKDIR_P@&$ac_MKDIR_P&;t t
13621$ac_datarootdir_hack
13622"
13623eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13624  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13625
13626test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13627  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13628  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
13629      "$ac_tmp/out"`; test -z "$ac_out"; } &&
13630  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13631which seems to be undefined.  Please make sure it is defined" >&5
13632$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13633which seems to be undefined.  Please make sure it is defined" >&2;}
13634
13635  rm -f "$ac_tmp/stdin"
13636  case $ac_file in
13637  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13638  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13639  esac \
13640  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13641 ;;
13642  :H)
13643  #
13644  # CONFIG_HEADER
13645  #
13646  if test x"$ac_file" != x-; then
13647    {
13648      $as_echo "/* $configure_input  */" \
13649      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13650    } >"$ac_tmp/config.h" \
13651      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13652    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13653      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13654$as_echo "$as_me: $ac_file is unchanged" >&6;}
13655    else
13656      rm -f "$ac_file"
13657      mv "$ac_tmp/config.h" "$ac_file" \
13658	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
13659    fi
13660  else
13661    $as_echo "/* $configure_input  */" \
13662      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13663      || as_fn_error $? "could not create -" "$LINENO" 5
13664  fi
13665# Compute "$ac_file"'s index in $config_headers.
13666_am_arg="$ac_file"
13667_am_stamp_count=1
13668for _am_header in $config_headers :; do
13669  case $_am_header in
13670    $_am_arg | $_am_arg:* )
13671      break ;;
13672    * )
13673      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13674  esac
13675done
13676echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13677$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13678	 X"$_am_arg" : 'X\(//\)[^/]' \| \
13679	 X"$_am_arg" : 'X\(//\)$' \| \
13680	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13681$as_echo X"$_am_arg" |
13682    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13683	    s//\1/
13684	    q
13685	  }
13686	  /^X\(\/\/\)[^/].*/{
13687	    s//\1/
13688	    q
13689	  }
13690	  /^X\(\/\/\)$/{
13691	    s//\1/
13692	    q
13693	  }
13694	  /^X\(\/\).*/{
13695	    s//\1/
13696	    q
13697	  }
13698	  s/.*/./; q'`/stamp-h$_am_stamp_count
13699 ;;
13700
13701  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13702$as_echo "$as_me: executing $ac_file commands" >&6;}
13703 ;;
13704  esac
13705
13706
13707  case $ac_file$ac_mode in
13708    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13709  # Autoconf 2.62 quotes --file arguments for eval, but not when files
13710  # are listed without --file.  Let's play safe and only enable the eval
13711  # if we detect the quoting.
13712  case $CONFIG_FILES in
13713  *\'*) eval set x "$CONFIG_FILES" ;;
13714  *)   set x $CONFIG_FILES ;;
13715  esac
13716  shift
13717  for mf
13718  do
13719    # Strip MF so we end up with the name of the file.
13720    mf=`echo "$mf" | sed -e 's/:.*$//'`
13721    # Check whether this is an Automake generated Makefile or not.
13722    # We used to match only the files named 'Makefile.in', but
13723    # some people rename them; so instead we look at the file content.
13724    # Grep'ing the first line is not enough: some people post-process
13725    # each Makefile.in and add a new line on top of each file to say so.
13726    # Grep'ing the whole file is not good either: AIX grep has a line
13727    # limit of 2048, but all sed's we know have understand at least 4000.
13728    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13729      dirpart=`$as_dirname -- "$mf" ||
13730$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13731	 X"$mf" : 'X\(//\)[^/]' \| \
13732	 X"$mf" : 'X\(//\)$' \| \
13733	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13734$as_echo X"$mf" |
13735    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13736	    s//\1/
13737	    q
13738	  }
13739	  /^X\(\/\/\)[^/].*/{
13740	    s//\1/
13741	    q
13742	  }
13743	  /^X\(\/\/\)$/{
13744	    s//\1/
13745	    q
13746	  }
13747	  /^X\(\/\).*/{
13748	    s//\1/
13749	    q
13750	  }
13751	  s/.*/./; q'`
13752    else
13753      continue
13754    fi
13755    # Extract the definition of DEPDIR, am__include, and am__quote
13756    # from the Makefile without running 'make'.
13757    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13758    test -z "$DEPDIR" && continue
13759    am__include=`sed -n 's/^am__include = //p' < "$mf"`
13760    test -z "am__include" && continue
13761    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13762    # Find all dependency output files, they are included files with
13763    # $(DEPDIR) in their names.  We invoke sed twice because it is the
13764    # simplest approach to changing $(DEPDIR) to its actual value in the
13765    # expansion.
13766    for file in `sed -n "
13767      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13768	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
13769      # Make sure the directory exists.
13770      test -f "$dirpart/$file" && continue
13771      fdir=`$as_dirname -- "$file" ||
13772$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13773	 X"$file" : 'X\(//\)[^/]' \| \
13774	 X"$file" : 'X\(//\)$' \| \
13775	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13776$as_echo X"$file" |
13777    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13778	    s//\1/
13779	    q
13780	  }
13781	  /^X\(\/\/\)[^/].*/{
13782	    s//\1/
13783	    q
13784	  }
13785	  /^X\(\/\/\)$/{
13786	    s//\1/
13787	    q
13788	  }
13789	  /^X\(\/\).*/{
13790	    s//\1/
13791	    q
13792	  }
13793	  s/.*/./; q'`
13794      as_dir=$dirpart/$fdir; as_fn_mkdir_p
13795      # echo "creating $dirpart/$file"
13796      echo '# dummy' > "$dirpart/$file"
13797    done
13798  done
13799}
13800 ;;
13801    "libtool":C)
13802
13803    # See if we are running on zsh, and set the options which allow our
13804    # commands through without removal of \ escapes.
13805    if test -n "${ZSH_VERSION+set}" ; then
13806      setopt NO_GLOB_SUBST
13807    fi
13808
13809    cfgfile="${ofile}T"
13810    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13811    $RM "$cfgfile"
13812
13813    cat <<_LT_EOF >> "$cfgfile"
13814#! $SHELL
13815
13816# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13817# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13818# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13819# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13820#
13821#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13822#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
13823#                 Foundation, Inc.
13824#   Written by Gordon Matzigkeit, 1996
13825#
13826#   This file is part of GNU Libtool.
13827#
13828# GNU Libtool is free software; you can redistribute it and/or
13829# modify it under the terms of the GNU General Public License as
13830# published by the Free Software Foundation; either version 2 of
13831# the License, or (at your option) any later version.
13832#
13833# As a special exception to the GNU General Public License,
13834# if you distribute this file as part of a program or library that
13835# is built using GNU Libtool, you may include this file under the
13836# same distribution terms that you use for the rest of that program.
13837#
13838# GNU Libtool is distributed in the hope that it will be useful,
13839# but WITHOUT ANY WARRANTY; without even the implied warranty of
13840# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13841# GNU General Public License for more details.
13842#
13843# You should have received a copy of the GNU General Public License
13844# along with GNU Libtool; see the file COPYING.  If not, a copy
13845# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13846# obtained by writing to the Free Software Foundation, Inc.,
13847# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13848
13849
13850# The names of the tagged configurations supported by this script.
13851available_tags=""
13852
13853# ### BEGIN LIBTOOL CONFIG
13854
13855# Whether or not to build shared libraries.
13856build_libtool_libs=$enable_shared
13857
13858# Whether or not to build static libraries.
13859build_old_libs=$enable_static
13860
13861# Which release of libtool.m4 was used?
13862macro_version=$macro_version
13863macro_revision=$macro_revision
13864
13865# What type of objects to build.
13866pic_mode=$pic_mode
13867
13868# Whether or not to optimize for fast installation.
13869fast_install=$enable_fast_install
13870
13871# Shell to use when invoking shell scripts.
13872SHELL=$lt_SHELL
13873
13874# An echo program that protects backslashes.
13875ECHO=$lt_ECHO
13876
13877# The PATH separator for the build system.
13878PATH_SEPARATOR=$lt_PATH_SEPARATOR
13879
13880# The host system.
13881host_alias=$host_alias
13882host=$host
13883host_os=$host_os
13884
13885# The build system.
13886build_alias=$build_alias
13887build=$build
13888build_os=$build_os
13889
13890# A sed program that does not truncate output.
13891SED=$lt_SED
13892
13893# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13894Xsed="\$SED -e 1s/^X//"
13895
13896# A grep program that handles long lines.
13897GREP=$lt_GREP
13898
13899# An ERE matcher.
13900EGREP=$lt_EGREP
13901
13902# A literal string matcher.
13903FGREP=$lt_FGREP
13904
13905# A BSD- or MS-compatible name lister.
13906NM=$lt_NM
13907
13908# Whether we need soft or hard links.
13909LN_S=$lt_LN_S
13910
13911# What is the maximum length of a command?
13912max_cmd_len=$max_cmd_len
13913
13914# Object file suffix (normally "o").
13915objext=$ac_objext
13916
13917# Executable file suffix (normally "").
13918exeext=$exeext
13919
13920# whether the shell understands "unset".
13921lt_unset=$lt_unset
13922
13923# turn spaces into newlines.
13924SP2NL=$lt_lt_SP2NL
13925
13926# turn newlines into spaces.
13927NL2SP=$lt_lt_NL2SP
13928
13929# convert \$build file names to \$host format.
13930to_host_file_cmd=$lt_cv_to_host_file_cmd
13931
13932# convert \$build files to toolchain format.
13933to_tool_file_cmd=$lt_cv_to_tool_file_cmd
13934
13935# An object symbol dumper.
13936OBJDUMP=$lt_OBJDUMP
13937
13938# Method to check whether dependent libraries are shared objects.
13939deplibs_check_method=$lt_deplibs_check_method
13940
13941# Command to use when deplibs_check_method = "file_magic".
13942file_magic_cmd=$lt_file_magic_cmd
13943
13944# How to find potential files when deplibs_check_method = "file_magic".
13945file_magic_glob=$lt_file_magic_glob
13946
13947# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
13948want_nocaseglob=$lt_want_nocaseglob
13949
13950# DLL creation program.
13951DLLTOOL=$lt_DLLTOOL
13952
13953# Command to associate shared and link libraries.
13954sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
13955
13956# The archiver.
13957AR=$lt_AR
13958
13959# Flags to create an archive.
13960AR_FLAGS=$lt_AR_FLAGS
13961
13962# How to feed a file listing to the archiver.
13963archiver_list_spec=$lt_archiver_list_spec
13964
13965# A symbol stripping program.
13966STRIP=$lt_STRIP
13967
13968# Commands used to install an old-style archive.
13969RANLIB=$lt_RANLIB
13970old_postinstall_cmds=$lt_old_postinstall_cmds
13971old_postuninstall_cmds=$lt_old_postuninstall_cmds
13972
13973# Whether to use a lock for old archive extraction.
13974lock_old_archive_extraction=$lock_old_archive_extraction
13975
13976# A C compiler.
13977LTCC=$lt_CC
13978
13979# LTCC compiler flags.
13980LTCFLAGS=$lt_CFLAGS
13981
13982# Take the output of nm and produce a listing of raw symbols and C names.
13983global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13984
13985# Transform the output of nm in a proper C declaration.
13986global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13987
13988# Transform the output of nm in a C name address pair.
13989global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13990
13991# Transform the output of nm in a C name address pair when lib prefix is needed.
13992global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13993
13994# Specify filename containing input files for \$NM.
13995nm_file_list_spec=$lt_nm_file_list_spec
13996
13997# The root where to search for dependent libraries,and in which our libraries should be installed.
13998lt_sysroot=$lt_sysroot
13999
14000# The name of the directory that contains temporary libtool files.
14001objdir=$objdir
14002
14003# Used to examine libraries when file_magic_cmd begins with "file".
14004MAGIC_CMD=$MAGIC_CMD
14005
14006# Must we lock files when doing compilation?
14007need_locks=$lt_need_locks
14008
14009# Manifest tool.
14010MANIFEST_TOOL=$lt_MANIFEST_TOOL
14011
14012# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14013DSYMUTIL=$lt_DSYMUTIL
14014
14015# Tool to change global to local symbols on Mac OS X.
14016NMEDIT=$lt_NMEDIT
14017
14018# Tool to manipulate fat objects and archives on Mac OS X.
14019LIPO=$lt_LIPO
14020
14021# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14022OTOOL=$lt_OTOOL
14023
14024# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14025OTOOL64=$lt_OTOOL64
14026
14027# Old archive suffix (normally "a").
14028libext=$libext
14029
14030# Shared library suffix (normally ".so").
14031shrext_cmds=$lt_shrext_cmds
14032
14033# The commands to extract the exported symbol list from a shared archive.
14034extract_expsyms_cmds=$lt_extract_expsyms_cmds
14035
14036# Variables whose values should be saved in libtool wrapper scripts and
14037# restored at link time.
14038variables_saved_for_relink=$lt_variables_saved_for_relink
14039
14040# Do we need the "lib" prefix for modules?
14041need_lib_prefix=$need_lib_prefix
14042
14043# Do we need a version for libraries?
14044need_version=$need_version
14045
14046# Library versioning type.
14047version_type=$version_type
14048
14049# Shared library runtime path variable.
14050runpath_var=$runpath_var
14051
14052# Shared library path variable.
14053shlibpath_var=$shlibpath_var
14054
14055# Is shlibpath searched before the hard-coded library search path?
14056shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14057
14058# Format of library name prefix.
14059libname_spec=$lt_libname_spec
14060
14061# List of archive names.  First name is the real one, the rest are links.
14062# The last name is the one that the linker finds with -lNAME
14063library_names_spec=$lt_library_names_spec
14064
14065# The coded name of the library, if different from the real name.
14066soname_spec=$lt_soname_spec
14067
14068# Permission mode override for installation of shared libraries.
14069install_override_mode=$lt_install_override_mode
14070
14071# Command to use after installation of a shared archive.
14072postinstall_cmds=$lt_postinstall_cmds
14073
14074# Command to use after uninstallation of a shared archive.
14075postuninstall_cmds=$lt_postuninstall_cmds
14076
14077# Commands used to finish a libtool library installation in a directory.
14078finish_cmds=$lt_finish_cmds
14079
14080# As "finish_cmds", except a single script fragment to be evaled but
14081# not shown.
14082finish_eval=$lt_finish_eval
14083
14084# Whether we should hardcode library paths into libraries.
14085hardcode_into_libs=$hardcode_into_libs
14086
14087# Compile-time system search path for libraries.
14088sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14089
14090# Run-time system search path for libraries.
14091sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14092
14093# Whether dlopen is supported.
14094dlopen_support=$enable_dlopen
14095
14096# Whether dlopen of programs is supported.
14097dlopen_self=$enable_dlopen_self
14098
14099# Whether dlopen of statically linked programs is supported.
14100dlopen_self_static=$enable_dlopen_self_static
14101
14102# Commands to strip libraries.
14103old_striplib=$lt_old_striplib
14104striplib=$lt_striplib
14105
14106
14107# The linker used to build libraries.
14108LD=$lt_LD
14109
14110# How to create reloadable object files.
14111reload_flag=$lt_reload_flag
14112reload_cmds=$lt_reload_cmds
14113
14114# Commands used to build an old-style archive.
14115old_archive_cmds=$lt_old_archive_cmds
14116
14117# A language specific compiler.
14118CC=$lt_compiler
14119
14120# Is the compiler the GNU compiler?
14121with_gcc=$GCC
14122
14123# Compiler flag to turn off builtin functions.
14124no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14125
14126# Additional compiler flags for building library objects.
14127pic_flag=$lt_lt_prog_compiler_pic
14128
14129# How to pass a linker flag through the compiler.
14130wl=$lt_lt_prog_compiler_wl
14131
14132# Compiler flag to prevent dynamic linking.
14133link_static_flag=$lt_lt_prog_compiler_static
14134
14135# Does compiler simultaneously support -c and -o options?
14136compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14137
14138# Whether or not to add -lc for building shared libraries.
14139build_libtool_need_lc=$archive_cmds_need_lc
14140
14141# Whether or not to disallow shared libs when runtime libs are static.
14142allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14143
14144# Compiler flag to allow reflexive dlopens.
14145export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14146
14147# Compiler flag to generate shared objects directly from archives.
14148whole_archive_flag_spec=$lt_whole_archive_flag_spec
14149
14150# Whether the compiler copes with passing no objects directly.
14151compiler_needs_object=$lt_compiler_needs_object
14152
14153# Create an old-style archive from a shared archive.
14154old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14155
14156# Create a temporary old-style archive to link instead of a shared archive.
14157old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14158
14159# Commands used to build a shared archive.
14160archive_cmds=$lt_archive_cmds
14161archive_expsym_cmds=$lt_archive_expsym_cmds
14162
14163# Commands used to build a loadable module if different from building
14164# a shared archive.
14165module_cmds=$lt_module_cmds
14166module_expsym_cmds=$lt_module_expsym_cmds
14167
14168# Whether we are building with GNU ld or not.
14169with_gnu_ld=$lt_with_gnu_ld
14170
14171# Flag that allows shared libraries with undefined symbols to be built.
14172allow_undefined_flag=$lt_allow_undefined_flag
14173
14174# Flag that enforces no undefined symbols.
14175no_undefined_flag=$lt_no_undefined_flag
14176
14177# Flag to hardcode \$libdir into a binary during linking.
14178# This must work even if \$libdir does not exist
14179hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14180
14181# Whether we need a single "-rpath" flag with a separated argument.
14182hardcode_libdir_separator=$lt_hardcode_libdir_separator
14183
14184# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14185# DIR into the resulting binary.
14186hardcode_direct=$hardcode_direct
14187
14188# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14189# DIR into the resulting binary and the resulting library dependency is
14190# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14191# library is relocated.
14192hardcode_direct_absolute=$hardcode_direct_absolute
14193
14194# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14195# into the resulting binary.
14196hardcode_minus_L=$hardcode_minus_L
14197
14198# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14199# into the resulting binary.
14200hardcode_shlibpath_var=$hardcode_shlibpath_var
14201
14202# Set to "yes" if building a shared library automatically hardcodes DIR
14203# into the library and all subsequent libraries and executables linked
14204# against it.
14205hardcode_automatic=$hardcode_automatic
14206
14207# Set to yes if linker adds runtime paths of dependent libraries
14208# to runtime path list.
14209inherit_rpath=$inherit_rpath
14210
14211# Whether libtool must link a program against all its dependency libraries.
14212link_all_deplibs=$link_all_deplibs
14213
14214# Set to "yes" if exported symbols are required.
14215always_export_symbols=$always_export_symbols
14216
14217# The commands to list exported symbols.
14218export_symbols_cmds=$lt_export_symbols_cmds
14219
14220# Symbols that should not be listed in the preloaded symbols.
14221exclude_expsyms=$lt_exclude_expsyms
14222
14223# Symbols that must always be exported.
14224include_expsyms=$lt_include_expsyms
14225
14226# Commands necessary for linking programs (against libraries) with templates.
14227prelink_cmds=$lt_prelink_cmds
14228
14229# Commands necessary for finishing linking programs.
14230postlink_cmds=$lt_postlink_cmds
14231
14232# Specify filename containing input files.
14233file_list_spec=$lt_file_list_spec
14234
14235# How to hardcode a shared library path into an executable.
14236hardcode_action=$hardcode_action
14237
14238# ### END LIBTOOL CONFIG
14239
14240_LT_EOF
14241
14242  case $host_os in
14243  aix3*)
14244    cat <<\_LT_EOF >> "$cfgfile"
14245# AIX sometimes has problems with the GCC collect2 program.  For some
14246# reason, if we set the COLLECT_NAMES environment variable, the problems
14247# vanish in a puff of smoke.
14248if test "X${COLLECT_NAMES+set}" != Xset; then
14249  COLLECT_NAMES=
14250  export COLLECT_NAMES
14251fi
14252_LT_EOF
14253    ;;
14254  esac
14255
14256
14257ltmain="$ac_aux_dir/ltmain.sh"
14258
14259
14260  # We use sed instead of cat because bash on DJGPP gets confused if
14261  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14262  # text mode, it properly converts lines to CR/LF.  This bash problem
14263  # is reportedly fixed, but why not run on old versions too?
14264  sed '$q' "$ltmain" >> "$cfgfile" \
14265     || (rm -f "$cfgfile"; exit 1)
14266
14267  if test x"$xsi_shell" = xyes; then
14268  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14269func_dirname ()\
14270{\
14271\    case ${1} in\
14272\      */*) func_dirname_result="${1%/*}${2}" ;;\
14273\      *  ) func_dirname_result="${3}" ;;\
14274\    esac\
14275} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14276  && mv -f "$cfgfile.tmp" "$cfgfile" \
14277    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14278test 0 -eq $? || _lt_function_replace_fail=:
14279
14280
14281  sed -e '/^func_basename ()$/,/^} # func_basename /c\
14282func_basename ()\
14283{\
14284\    func_basename_result="${1##*/}"\
14285} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14286  && mv -f "$cfgfile.tmp" "$cfgfile" \
14287    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14288test 0 -eq $? || _lt_function_replace_fail=:
14289
14290
14291  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14292func_dirname_and_basename ()\
14293{\
14294\    case ${1} in\
14295\      */*) func_dirname_result="${1%/*}${2}" ;;\
14296\      *  ) func_dirname_result="${3}" ;;\
14297\    esac\
14298\    func_basename_result="${1##*/}"\
14299} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14300  && mv -f "$cfgfile.tmp" "$cfgfile" \
14301    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14302test 0 -eq $? || _lt_function_replace_fail=:
14303
14304
14305  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14306func_stripname ()\
14307{\
14308\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14309\    # positional parameters, so assign one to ordinary parameter first.\
14310\    func_stripname_result=${3}\
14311\    func_stripname_result=${func_stripname_result#"${1}"}\
14312\    func_stripname_result=${func_stripname_result%"${2}"}\
14313} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14314  && mv -f "$cfgfile.tmp" "$cfgfile" \
14315    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14316test 0 -eq $? || _lt_function_replace_fail=:
14317
14318
14319  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14320func_split_long_opt ()\
14321{\
14322\    func_split_long_opt_name=${1%%=*}\
14323\    func_split_long_opt_arg=${1#*=}\
14324} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14325  && mv -f "$cfgfile.tmp" "$cfgfile" \
14326    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14327test 0 -eq $? || _lt_function_replace_fail=:
14328
14329
14330  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14331func_split_short_opt ()\
14332{\
14333\    func_split_short_opt_arg=${1#??}\
14334\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14335} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14336  && mv -f "$cfgfile.tmp" "$cfgfile" \
14337    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14338test 0 -eq $? || _lt_function_replace_fail=:
14339
14340
14341  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14342func_lo2o ()\
14343{\
14344\    case ${1} in\
14345\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14346\      *)    func_lo2o_result=${1} ;;\
14347\    esac\
14348} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14349  && mv -f "$cfgfile.tmp" "$cfgfile" \
14350    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14351test 0 -eq $? || _lt_function_replace_fail=:
14352
14353
14354  sed -e '/^func_xform ()$/,/^} # func_xform /c\
14355func_xform ()\
14356{\
14357    func_xform_result=${1%.*}.lo\
14358} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14359  && mv -f "$cfgfile.tmp" "$cfgfile" \
14360    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14361test 0 -eq $? || _lt_function_replace_fail=:
14362
14363
14364  sed -e '/^func_arith ()$/,/^} # func_arith /c\
14365func_arith ()\
14366{\
14367    func_arith_result=$(( $* ))\
14368} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14369  && mv -f "$cfgfile.tmp" "$cfgfile" \
14370    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14371test 0 -eq $? || _lt_function_replace_fail=:
14372
14373
14374  sed -e '/^func_len ()$/,/^} # func_len /c\
14375func_len ()\
14376{\
14377    func_len_result=${#1}\
14378} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14379  && mv -f "$cfgfile.tmp" "$cfgfile" \
14380    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14381test 0 -eq $? || _lt_function_replace_fail=:
14382
14383fi
14384
14385if test x"$lt_shell_append" = xyes; then
14386  sed -e '/^func_append ()$/,/^} # func_append /c\
14387func_append ()\
14388{\
14389    eval "${1}+=\\${2}"\
14390} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14391  && mv -f "$cfgfile.tmp" "$cfgfile" \
14392    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14393test 0 -eq $? || _lt_function_replace_fail=:
14394
14395
14396  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14397func_append_quoted ()\
14398{\
14399\    func_quote_for_eval "${2}"\
14400\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14401} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14402  && mv -f "$cfgfile.tmp" "$cfgfile" \
14403    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14404test 0 -eq $? || _lt_function_replace_fail=:
14405
14406
14407  # Save a `func_append' function call where possible by direct use of '+='
14408  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14409    && mv -f "$cfgfile.tmp" "$cfgfile" \
14410      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14411  test 0 -eq $? || _lt_function_replace_fail=:
14412else
14413  # Save a `func_append' function call even when '+=' is not available
14414  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14415    && mv -f "$cfgfile.tmp" "$cfgfile" \
14416      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14417  test 0 -eq $? || _lt_function_replace_fail=:
14418fi
14419
14420if test x"$_lt_function_replace_fail" = x":"; then
14421  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14422$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14423fi
14424
14425
14426   mv -f "$cfgfile" "$ofile" ||
14427    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14428  chmod +x "$ofile"
14429
14430 ;;
14431
14432  esac
14433done # for ac_tag
14434
14435
14436as_fn_exit 0
14437_ACEOF
14438ac_clean_files=$ac_clean_files_save
14439
14440test $ac_write_fail = 0 ||
14441  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14442
14443
14444# configure is writing to config.log, and then calls config.status.
14445# config.status does its own redirection, appending to config.log.
14446# Unfortunately, on DOS this fails, as config.log is still kept open
14447# by configure, so config.status won't be able to write to it; its
14448# output is simply discarded.  So we exec the FD to /dev/null,
14449# effectively closing config.log, so it can be properly (re)opened and
14450# appended to by config.status.  When coming back to configure, we
14451# need to make the FD available again.
14452if test "$no_create" != yes; then
14453  ac_cs_success=:
14454  ac_config_status_args=
14455  test "$silent" = yes &&
14456    ac_config_status_args="$ac_config_status_args --quiet"
14457  exec 5>/dev/null
14458  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14459  exec 5>>config.log
14460  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14461  # would make configure fail if this is the last instruction.
14462  $ac_cs_success || as_fn_exit 1
14463fi
14464if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14465  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14466$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14467fi
14468
14469