1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for imageworsener 1.3.4.
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='imageworsener'
589PACKAGE_TARNAME='imageworsener'
590PACKAGE_VERSION='1.3.4'
591PACKAGE_STRING='imageworsener 1.3.4'
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
594
595ac_unique_file="src/imagew.h"
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
636AM_BACKSLASH
637AM_DEFAULT_VERBOSITY
638AM_DEFAULT_V
639AM_V
640am__fastdepCC_FALSE
641am__fastdepCC_TRUE
642CCDEPMODE
643am__nodep
644AMDEPBACKSLASH
645AMDEP_FALSE
646AMDEP_TRUE
647am__include
648DEPDIR
649am__untar
650am__tar
651AMTAR
652am__leading_dot
653SET_MAKE
654mkdir_p
655MKDIR_P
656INSTALL_STRIP_PROGRAM
657install_sh
658MAKEINFO
659AUTOHEADER
660AUTOMAKE
661AUTOCONF
662ACLOCAL
663VERSION
664PACKAGE
665CYGPATH_W
666am__isrc
667INSTALL_DATA
668INSTALL_SCRIPT
669INSTALL_PROGRAM
670CPP
671LT_SYS_LIBRARY_PATH
672OTOOL64
673OTOOL
674LIPO
675NMEDIT
676DSYMUTIL
677MANIFEST_TOOL
678AWK
679RANLIB
680STRIP
681ac_ct_AR
682AR
683DLLTOOL
684OBJDUMP
685LN_S
686NM
687ac_ct_DUMPBIN
688DUMPBIN
689LD
690FGREP
691EGREP
692GREP
693SED
694OBJEXT
695EXEEXT
696ac_ct_CC
697CPPFLAGS
698LDFLAGS
699CFLAGS
700CC
701host_os
702host_vendor
703host_cpu
704host
705build_os
706build_vendor
707build_cpu
708build
709LIBTOOL
710target_alias
711host_alias
712build_alias
713LIBS
714ECHO_T
715ECHO_N
716ECHO_C
717DEFS
718mandir
719localedir
720libdir
721psdir
722pdfdir
723dvidir
724htmldir
725infodir
726docdir
727oldincludedir
728includedir
729runstatedir
730localstatedir
731sharedstatedir
732sysconfdir
733datadir
734datarootdir
735libexecdir
736sbindir
737bindir
738program_transform_name
739prefix
740exec_prefix
741PACKAGE_URL
742PACKAGE_BUGREPORT
743PACKAGE_STRING
744PACKAGE_VERSION
745PACKAGE_TARNAME
746PACKAGE_NAME
747PATH_SEPARATOR
748SHELL
749am__quote'
750ac_subst_files=''
751ac_user_opts='
752enable_option_checking
753enable_shared
754enable_static
755with_pic
756enable_fast_install
757with_aix_soname
758with_gnu_ld
759with_sysroot
760enable_libtool_lock
761enable_dependency_tracking
762enable_silent_rules
763with_zlib
764with_zlib_include_dir
765with_zlib_lib_dir
766with_png
767with_png_include_dir
768with_png_lib_dir
769with_jpeg
770with_jpeg_include_dir
771with_jpeg_lib_dir
772with_webp
773with_webp_include_dir
774with_webp_lib_dir
775'
776      ac_precious_vars='build_alias
777host_alias
778target_alias
779CC
780CFLAGS
781LDFLAGS
782LIBS
783CPPFLAGS
784LT_SYS_LIBRARY_PATH
785CPP'
786
787
788# Initialize some variables set by options.
789ac_init_help=
790ac_init_version=false
791ac_unrecognized_opts=
792ac_unrecognized_sep=
793# The variables have the same names as the options, with
794# dashes changed to underlines.
795cache_file=/dev/null
796exec_prefix=NONE
797no_create=
798no_recursion=
799prefix=NONE
800program_prefix=NONE
801program_suffix=NONE
802program_transform_name=s,x,x,
803silent=
804site=
805srcdir=
806verbose=
807x_includes=NONE
808x_libraries=NONE
809
810# Installation directory options.
811# These are left unexpanded so users can "make install exec_prefix=/foo"
812# and all the variables that are supposed to be based on exec_prefix
813# by default will actually change.
814# Use braces instead of parens because sh, perl, etc. also accept them.
815# (The list follows the same order as the GNU Coding Standards.)
816bindir='${exec_prefix}/bin'
817sbindir='${exec_prefix}/sbin'
818libexecdir='${exec_prefix}/libexec'
819datarootdir='${prefix}/share'
820datadir='${datarootdir}'
821sysconfdir='${prefix}/etc'
822sharedstatedir='${prefix}/com'
823localstatedir='${prefix}/var'
824runstatedir='${localstatedir}/run'
825includedir='${prefix}/include'
826oldincludedir='/usr/include'
827docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
828infodir='${datarootdir}/info'
829htmldir='${docdir}'
830dvidir='${docdir}'
831pdfdir='${docdir}'
832psdir='${docdir}'
833libdir='${exec_prefix}/lib'
834localedir='${datarootdir}/locale'
835mandir='${datarootdir}/man'
836
837ac_prev=
838ac_dashdash=
839for ac_option
840do
841  # If the previous option needs an argument, assign it.
842  if test -n "$ac_prev"; then
843    eval $ac_prev=\$ac_option
844    ac_prev=
845    continue
846  fi
847
848  case $ac_option in
849  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
850  *=)   ac_optarg= ;;
851  *)    ac_optarg=yes ;;
852  esac
853
854  # Accept the important Cygnus configure options, so we can diagnose typos.
855
856  case $ac_dashdash$ac_option in
857  --)
858    ac_dashdash=yes ;;
859
860  -bindir | --bindir | --bindi | --bind | --bin | --bi)
861    ac_prev=bindir ;;
862  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
863    bindir=$ac_optarg ;;
864
865  -build | --build | --buil | --bui | --bu)
866    ac_prev=build_alias ;;
867  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
868    build_alias=$ac_optarg ;;
869
870  -cache-file | --cache-file | --cache-fil | --cache-fi \
871  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
872    ac_prev=cache_file ;;
873  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
874  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
875    cache_file=$ac_optarg ;;
876
877  --config-cache | -C)
878    cache_file=config.cache ;;
879
880  -datadir | --datadir | --datadi | --datad)
881    ac_prev=datadir ;;
882  -datadir=* | --datadir=* | --datadi=* | --datad=*)
883    datadir=$ac_optarg ;;
884
885  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
886  | --dataroo | --dataro | --datar)
887    ac_prev=datarootdir ;;
888  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
889  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
890    datarootdir=$ac_optarg ;;
891
892  -disable-* | --disable-*)
893    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
894    # Reject names that are not valid shell variable names.
895    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
896      as_fn_error $? "invalid feature name: $ac_useropt"
897    ac_useropt_orig=$ac_useropt
898    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
899    case $ac_user_opts in
900      *"
901"enable_$ac_useropt"
902"*) ;;
903      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
904	 ac_unrecognized_sep=', ';;
905    esac
906    eval enable_$ac_useropt=no ;;
907
908  -docdir | --docdir | --docdi | --doc | --do)
909    ac_prev=docdir ;;
910  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
911    docdir=$ac_optarg ;;
912
913  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
914    ac_prev=dvidir ;;
915  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
916    dvidir=$ac_optarg ;;
917
918  -enable-* | --enable-*)
919    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
920    # Reject names that are not valid shell variable names.
921    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
922      as_fn_error $? "invalid feature name: $ac_useropt"
923    ac_useropt_orig=$ac_useropt
924    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
925    case $ac_user_opts in
926      *"
927"enable_$ac_useropt"
928"*) ;;
929      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
930	 ac_unrecognized_sep=', ';;
931    esac
932    eval enable_$ac_useropt=\$ac_optarg ;;
933
934  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
935  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
936  | --exec | --exe | --ex)
937    ac_prev=exec_prefix ;;
938  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
939  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
940  | --exec=* | --exe=* | --ex=*)
941    exec_prefix=$ac_optarg ;;
942
943  -gas | --gas | --ga | --g)
944    # Obsolete; use --with-gas.
945    with_gas=yes ;;
946
947  -help | --help | --hel | --he | -h)
948    ac_init_help=long ;;
949  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
950    ac_init_help=recursive ;;
951  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
952    ac_init_help=short ;;
953
954  -host | --host | --hos | --ho)
955    ac_prev=host_alias ;;
956  -host=* | --host=* | --hos=* | --ho=*)
957    host_alias=$ac_optarg ;;
958
959  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
960    ac_prev=htmldir ;;
961  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
962  | --ht=*)
963    htmldir=$ac_optarg ;;
964
965  -includedir | --includedir | --includedi | --included | --include \
966  | --includ | --inclu | --incl | --inc)
967    ac_prev=includedir ;;
968  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
969  | --includ=* | --inclu=* | --incl=* | --inc=*)
970    includedir=$ac_optarg ;;
971
972  -infodir | --infodir | --infodi | --infod | --info | --inf)
973    ac_prev=infodir ;;
974  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
975    infodir=$ac_optarg ;;
976
977  -libdir | --libdir | --libdi | --libd)
978    ac_prev=libdir ;;
979  -libdir=* | --libdir=* | --libdi=* | --libd=*)
980    libdir=$ac_optarg ;;
981
982  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
983  | --libexe | --libex | --libe)
984    ac_prev=libexecdir ;;
985  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
986  | --libexe=* | --libex=* | --libe=*)
987    libexecdir=$ac_optarg ;;
988
989  -localedir | --localedir | --localedi | --localed | --locale)
990    ac_prev=localedir ;;
991  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
992    localedir=$ac_optarg ;;
993
994  -localstatedir | --localstatedir | --localstatedi | --localstated \
995  | --localstate | --localstat | --localsta | --localst | --locals)
996    ac_prev=localstatedir ;;
997  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
998  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
999    localstatedir=$ac_optarg ;;
1000
1001  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1002    ac_prev=mandir ;;
1003  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1004    mandir=$ac_optarg ;;
1005
1006  -nfp | --nfp | --nf)
1007    # Obsolete; use --without-fp.
1008    with_fp=no ;;
1009
1010  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1011  | --no-cr | --no-c | -n)
1012    no_create=yes ;;
1013
1014  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1015  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1016    no_recursion=yes ;;
1017
1018  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1019  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1020  | --oldin | --oldi | --old | --ol | --o)
1021    ac_prev=oldincludedir ;;
1022  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1023  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1024  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1025    oldincludedir=$ac_optarg ;;
1026
1027  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1028    ac_prev=prefix ;;
1029  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1030    prefix=$ac_optarg ;;
1031
1032  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1033  | --program-pre | --program-pr | --program-p)
1034    ac_prev=program_prefix ;;
1035  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1036  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1037    program_prefix=$ac_optarg ;;
1038
1039  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1040  | --program-suf | --program-su | --program-s)
1041    ac_prev=program_suffix ;;
1042  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1043  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1044    program_suffix=$ac_optarg ;;
1045
1046  -program-transform-name | --program-transform-name \
1047  | --program-transform-nam | --program-transform-na \
1048  | --program-transform-n | --program-transform- \
1049  | --program-transform | --program-transfor \
1050  | --program-transfo | --program-transf \
1051  | --program-trans | --program-tran \
1052  | --progr-tra | --program-tr | --program-t)
1053    ac_prev=program_transform_name ;;
1054  -program-transform-name=* | --program-transform-name=* \
1055  | --program-transform-nam=* | --program-transform-na=* \
1056  | --program-transform-n=* | --program-transform-=* \
1057  | --program-transform=* | --program-transfor=* \
1058  | --program-transfo=* | --program-transf=* \
1059  | --program-trans=* | --program-tran=* \
1060  | --progr-tra=* | --program-tr=* | --program-t=*)
1061    program_transform_name=$ac_optarg ;;
1062
1063  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1064    ac_prev=pdfdir ;;
1065  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1066    pdfdir=$ac_optarg ;;
1067
1068  -psdir | --psdir | --psdi | --psd | --ps)
1069    ac_prev=psdir ;;
1070  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1071    psdir=$ac_optarg ;;
1072
1073  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1074  | -silent | --silent | --silen | --sile | --sil)
1075    silent=yes ;;
1076
1077  -runstatedir | --runstatedir | --runstatedi | --runstated \
1078  | --runstate | --runstat | --runsta | --runst | --runs \
1079  | --run | --ru | --r)
1080    ac_prev=runstatedir ;;
1081  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1082  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1083  | --run=* | --ru=* | --r=*)
1084    runstatedir=$ac_optarg ;;
1085
1086  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1087    ac_prev=sbindir ;;
1088  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1089  | --sbi=* | --sb=*)
1090    sbindir=$ac_optarg ;;
1091
1092  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1093  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1094  | --sharedst | --shareds | --shared | --share | --shar \
1095  | --sha | --sh)
1096    ac_prev=sharedstatedir ;;
1097  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1098  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1099  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1100  | --sha=* | --sh=*)
1101    sharedstatedir=$ac_optarg ;;
1102
1103  -site | --site | --sit)
1104    ac_prev=site ;;
1105  -site=* | --site=* | --sit=*)
1106    site=$ac_optarg ;;
1107
1108  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1109    ac_prev=srcdir ;;
1110  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1111    srcdir=$ac_optarg ;;
1112
1113  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1114  | --syscon | --sysco | --sysc | --sys | --sy)
1115    ac_prev=sysconfdir ;;
1116  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1117  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1118    sysconfdir=$ac_optarg ;;
1119
1120  -target | --target | --targe | --targ | --tar | --ta | --t)
1121    ac_prev=target_alias ;;
1122  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1123    target_alias=$ac_optarg ;;
1124
1125  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1126    verbose=yes ;;
1127
1128  -version | --version | --versio | --versi | --vers | -V)
1129    ac_init_version=: ;;
1130
1131  -with-* | --with-*)
1132    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1133    # Reject names that are not valid shell variable names.
1134    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1135      as_fn_error $? "invalid package name: $ac_useropt"
1136    ac_useropt_orig=$ac_useropt
1137    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1138    case $ac_user_opts in
1139      *"
1140"with_$ac_useropt"
1141"*) ;;
1142      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1143	 ac_unrecognized_sep=', ';;
1144    esac
1145    eval with_$ac_useropt=\$ac_optarg ;;
1146
1147  -without-* | --without-*)
1148    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1149    # Reject names that are not valid shell variable names.
1150    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1151      as_fn_error $? "invalid package name: $ac_useropt"
1152    ac_useropt_orig=$ac_useropt
1153    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1154    case $ac_user_opts in
1155      *"
1156"with_$ac_useropt"
1157"*) ;;
1158      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1159	 ac_unrecognized_sep=', ';;
1160    esac
1161    eval with_$ac_useropt=no ;;
1162
1163  --x)
1164    # Obsolete; use --with-x.
1165    with_x=yes ;;
1166
1167  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1168  | --x-incl | --x-inc | --x-in | --x-i)
1169    ac_prev=x_includes ;;
1170  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1171  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1172    x_includes=$ac_optarg ;;
1173
1174  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1175  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1176    ac_prev=x_libraries ;;
1177  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1178  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1179    x_libraries=$ac_optarg ;;
1180
1181  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1182Try \`$0 --help' for more information"
1183    ;;
1184
1185  *=*)
1186    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1187    # Reject names that are not valid shell variable names.
1188    case $ac_envvar in #(
1189      '' | [0-9]* | *[!_$as_cr_alnum]* )
1190      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1191    esac
1192    eval $ac_envvar=\$ac_optarg
1193    export $ac_envvar ;;
1194
1195  *)
1196    # FIXME: should be removed in autoconf 3.0.
1197    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1198    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1199      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1200    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1201    ;;
1202
1203  esac
1204done
1205
1206if test -n "$ac_prev"; then
1207  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1208  as_fn_error $? "missing argument to $ac_option"
1209fi
1210
1211if test -n "$ac_unrecognized_opts"; then
1212  case $enable_option_checking in
1213    no) ;;
1214    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1215    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1216  esac
1217fi
1218
1219# Check all directory arguments for consistency.
1220for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1221		datadir sysconfdir sharedstatedir localstatedir includedir \
1222		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1223		libdir localedir mandir runstatedir
1224do
1225  eval ac_val=\$$ac_var
1226  # Remove trailing slashes.
1227  case $ac_val in
1228    */ )
1229      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1230      eval $ac_var=\$ac_val;;
1231  esac
1232  # Be sure to have absolute directory names.
1233  case $ac_val in
1234    [\\/$]* | ?:[\\/]* )  continue;;
1235    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1236  esac
1237  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1238done
1239
1240# There might be people who depend on the old broken behavior: `$host'
1241# used to hold the argument of --host etc.
1242# FIXME: To remove some day.
1243build=$build_alias
1244host=$host_alias
1245target=$target_alias
1246
1247# FIXME: To remove some day.
1248if test "x$host_alias" != x; then
1249  if test "x$build_alias" = x; then
1250    cross_compiling=maybe
1251  elif test "x$build_alias" != "x$host_alias"; then
1252    cross_compiling=yes
1253  fi
1254fi
1255
1256ac_tool_prefix=
1257test -n "$host_alias" && ac_tool_prefix=$host_alias-
1258
1259test "$silent" = yes && exec 6>/dev/null
1260
1261
1262ac_pwd=`pwd` && test -n "$ac_pwd" &&
1263ac_ls_di=`ls -di .` &&
1264ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1265  as_fn_error $? "working directory cannot be determined"
1266test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1267  as_fn_error $? "pwd does not report name of working directory"
1268
1269
1270# Find the source files, if location was not specified.
1271if test -z "$srcdir"; then
1272  ac_srcdir_defaulted=yes
1273  # Try the directory containing this script, then the parent directory.
1274  ac_confdir=`$as_dirname -- "$as_myself" ||
1275$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1276	 X"$as_myself" : 'X\(//\)[^/]' \| \
1277	 X"$as_myself" : 'X\(//\)$' \| \
1278	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1279$as_echo X"$as_myself" |
1280    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1281	    s//\1/
1282	    q
1283	  }
1284	  /^X\(\/\/\)[^/].*/{
1285	    s//\1/
1286	    q
1287	  }
1288	  /^X\(\/\/\)$/{
1289	    s//\1/
1290	    q
1291	  }
1292	  /^X\(\/\).*/{
1293	    s//\1/
1294	    q
1295	  }
1296	  s/.*/./; q'`
1297  srcdir=$ac_confdir
1298  if test ! -r "$srcdir/$ac_unique_file"; then
1299    srcdir=..
1300  fi
1301else
1302  ac_srcdir_defaulted=no
1303fi
1304if test ! -r "$srcdir/$ac_unique_file"; then
1305  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1306  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1307fi
1308ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1309ac_abs_confdir=`(
1310	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1311	pwd)`
1312# When building in place, set srcdir=.
1313if test "$ac_abs_confdir" = "$ac_pwd"; then
1314  srcdir=.
1315fi
1316# Remove unnecessary trailing slashes from srcdir.
1317# Double slashes in file names in object file debugging info
1318# mess up M-x gdb in Emacs.
1319case $srcdir in
1320*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1321esac
1322for ac_var in $ac_precious_vars; do
1323  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1324  eval ac_env_${ac_var}_value=\$${ac_var}
1325  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1326  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1327done
1328
1329#
1330# Report the --help message.
1331#
1332if test "$ac_init_help" = "long"; then
1333  # Omit some internal or obsolete options to make the list less imposing.
1334  # This message is too long to be a string in the A/UX 3.1 sh.
1335  cat <<_ACEOF
1336\`configure' configures imageworsener 1.3.4 to adapt to many kinds of systems.
1337
1338Usage: $0 [OPTION]... [VAR=VALUE]...
1339
1340To assign environment variables (e.g., CC, CFLAGS...), specify them as
1341VAR=VALUE.  See below for descriptions of some of the useful variables.
1342
1343Defaults for the options are specified in brackets.
1344
1345Configuration:
1346  -h, --help              display this help and exit
1347      --help=short        display options specific to this package
1348      --help=recursive    display the short help of all the included packages
1349  -V, --version           display version information and exit
1350  -q, --quiet, --silent   do not print \`checking ...' messages
1351      --cache-file=FILE   cache test results in FILE [disabled]
1352  -C, --config-cache      alias for \`--cache-file=config.cache'
1353  -n, --no-create         do not create output files
1354      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1355
1356Installation directories:
1357  --prefix=PREFIX         install architecture-independent files in PREFIX
1358                          [$ac_default_prefix]
1359  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1360                          [PREFIX]
1361
1362By default, \`make install' will install all the files in
1363\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1364an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1365for instance \`--prefix=\$HOME'.
1366
1367For better control, use the options below.
1368
1369Fine tuning of the installation directories:
1370  --bindir=DIR            user executables [EPREFIX/bin]
1371  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1372  --libexecdir=DIR        program executables [EPREFIX/libexec]
1373  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1374  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1375  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1376  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1377  --libdir=DIR            object code libraries [EPREFIX/lib]
1378  --includedir=DIR        C header files [PREFIX/include]
1379  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1380  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1381  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1382  --infodir=DIR           info documentation [DATAROOTDIR/info]
1383  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1384  --mandir=DIR            man documentation [DATAROOTDIR/man]
1385  --docdir=DIR            documentation root [DATAROOTDIR/doc/imageworsener]
1386  --htmldir=DIR           html documentation [DOCDIR]
1387  --dvidir=DIR            dvi documentation [DOCDIR]
1388  --pdfdir=DIR            pdf documentation [DOCDIR]
1389  --psdir=DIR             ps documentation [DOCDIR]
1390_ACEOF
1391
1392  cat <<\_ACEOF
1393
1394Program names:
1395  --program-prefix=PREFIX            prepend PREFIX to installed program names
1396  --program-suffix=SUFFIX            append SUFFIX to installed program names
1397  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1398
1399System types:
1400  --build=BUILD     configure for building on BUILD [guessed]
1401  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1402_ACEOF
1403fi
1404
1405if test -n "$ac_init_help"; then
1406  case $ac_init_help in
1407     short | recursive ) echo "Configuration of imageworsener 1.3.4:";;
1408   esac
1409  cat <<\_ACEOF
1410
1411Optional Features:
1412  --disable-option-checking  ignore unrecognized --enable/--with options
1413  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1414  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1415  --enable-shared[=PKGS]  build shared libraries [default=yes]
1416  --enable-static[=PKGS]  build static libraries [default=yes]
1417  --enable-fast-install[=PKGS]
1418                          optimize for fast installation [default=yes]
1419  --disable-libtool-lock  avoid locking (might break parallel builds)
1420  --enable-dependency-tracking
1421                          do not reject slow dependency extractors
1422  --disable-dependency-tracking
1423                          speeds up one-time build
1424  --enable-silent-rules   less verbose build output (undo: "make V=1")
1425  --disable-silent-rules  verbose build output (undo: "make V=0")
1426
1427Optional Packages:
1428  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1429  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1430  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1431                          both]
1432  --with-aix-soname=aix|svr4|both
1433                          shared library versioning (aka "SONAME") variant to
1434                          provide on AIX, [default=aix].
1435  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1436  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1437                          compiler's sysroot if not specified).
1438  --without-zlib          disable ZLIB support
1439  --with-zlib-include-dir=DIR
1440                          location of zlib headers
1441  --with-zlib-lib-dir=DIR location of zlib library binary
1442  --without-png           disable PNG support
1443  --with-png-include-dir=DIR
1444                          location of libpng headers
1445  --with-png-lib-dir=DIR  location of libpng library binary
1446  --without-jpeg          disable JPEG support
1447  --with-jpeg-include-dir=DIR
1448                          location of JPEG headers
1449  --with-jpeg-lib-dir=DIR location of JPEG library binary
1450  --without-webp          disable WebP support
1451  --with-webp-include-dir=DIR
1452                          location of libwebp headers
1453  --with-webp-lib-dir=DIR location of libwebp library binary
1454
1455Some influential environment variables:
1456  CC          C compiler command
1457  CFLAGS      C compiler flags
1458  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1459              nonstandard directory <lib dir>
1460  LIBS        libraries to pass to the linker, e.g. -l<library>
1461  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1462              you have headers in a nonstandard directory <include dir>
1463  LT_SYS_LIBRARY_PATH
1464              User-defined run-time library search path.
1465  CPP         C preprocessor
1466
1467Use these variables to override the choices made by `configure' or to help
1468it to find libraries and programs with nonstandard names/locations.
1469
1470Report bugs to the package provider.
1471_ACEOF
1472ac_status=$?
1473fi
1474
1475if test "$ac_init_help" = "recursive"; then
1476  # If there are subdirs, report their specific --help.
1477  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1478    test -d "$ac_dir" ||
1479      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1480      continue
1481    ac_builddir=.
1482
1483case "$ac_dir" in
1484.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1485*)
1486  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1487  # A ".." for each directory in $ac_dir_suffix.
1488  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1489  case $ac_top_builddir_sub in
1490  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1491  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1492  esac ;;
1493esac
1494ac_abs_top_builddir=$ac_pwd
1495ac_abs_builddir=$ac_pwd$ac_dir_suffix
1496# for backward compatibility:
1497ac_top_builddir=$ac_top_build_prefix
1498
1499case $srcdir in
1500  .)  # We are building in place.
1501    ac_srcdir=.
1502    ac_top_srcdir=$ac_top_builddir_sub
1503    ac_abs_top_srcdir=$ac_pwd ;;
1504  [\\/]* | ?:[\\/]* )  # Absolute name.
1505    ac_srcdir=$srcdir$ac_dir_suffix;
1506    ac_top_srcdir=$srcdir
1507    ac_abs_top_srcdir=$srcdir ;;
1508  *) # Relative name.
1509    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1510    ac_top_srcdir=$ac_top_build_prefix$srcdir
1511    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1512esac
1513ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1514
1515    cd "$ac_dir" || { ac_status=$?; continue; }
1516    # Check for guested configure.
1517    if test -f "$ac_srcdir/configure.gnu"; then
1518      echo &&
1519      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1520    elif test -f "$ac_srcdir/configure"; then
1521      echo &&
1522      $SHELL "$ac_srcdir/configure" --help=recursive
1523    else
1524      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1525    fi || ac_status=$?
1526    cd "$ac_pwd" || { ac_status=$?; break; }
1527  done
1528fi
1529
1530test -n "$ac_init_help" && exit $ac_status
1531if $ac_init_version; then
1532  cat <<\_ACEOF
1533imageworsener configure 1.3.4
1534generated by GNU Autoconf 2.69
1535
1536Copyright (C) 2012 Free Software Foundation, Inc.
1537This configure script is free software; the Free Software Foundation
1538gives unlimited permission to copy, distribute and modify it.
1539_ACEOF
1540  exit
1541fi
1542
1543## ------------------------ ##
1544## Autoconf initialization. ##
1545## ------------------------ ##
1546
1547# ac_fn_c_try_compile LINENO
1548# --------------------------
1549# Try to compile conftest.$ac_ext, and return whether this succeeded.
1550ac_fn_c_try_compile ()
1551{
1552  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1553  rm -f conftest.$ac_objext
1554  if { { ac_try="$ac_compile"
1555case "(($ac_try" in
1556  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1557  *) ac_try_echo=$ac_try;;
1558esac
1559eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1560$as_echo "$ac_try_echo"; } >&5
1561  (eval "$ac_compile") 2>conftest.err
1562  ac_status=$?
1563  if test -s conftest.err; then
1564    grep -v '^ *+' conftest.err >conftest.er1
1565    cat conftest.er1 >&5
1566    mv -f conftest.er1 conftest.err
1567  fi
1568  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1569  test $ac_status = 0; } && {
1570	 test -z "$ac_c_werror_flag" ||
1571	 test ! -s conftest.err
1572       } && test -s conftest.$ac_objext; then :
1573  ac_retval=0
1574else
1575  $as_echo "$as_me: failed program was:" >&5
1576sed 's/^/| /' conftest.$ac_ext >&5
1577
1578	ac_retval=1
1579fi
1580  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1581  as_fn_set_status $ac_retval
1582
1583} # ac_fn_c_try_compile
1584
1585# ac_fn_c_try_link LINENO
1586# -----------------------
1587# Try to link conftest.$ac_ext, and return whether this succeeded.
1588ac_fn_c_try_link ()
1589{
1590  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1591  rm -f conftest.$ac_objext conftest$ac_exeext
1592  if { { ac_try="$ac_link"
1593case "(($ac_try" in
1594  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1595  *) ac_try_echo=$ac_try;;
1596esac
1597eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1598$as_echo "$ac_try_echo"; } >&5
1599  (eval "$ac_link") 2>conftest.err
1600  ac_status=$?
1601  if test -s conftest.err; then
1602    grep -v '^ *+' conftest.err >conftest.er1
1603    cat conftest.er1 >&5
1604    mv -f conftest.er1 conftest.err
1605  fi
1606  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1607  test $ac_status = 0; } && {
1608	 test -z "$ac_c_werror_flag" ||
1609	 test ! -s conftest.err
1610       } && test -s conftest$ac_exeext && {
1611	 test "$cross_compiling" = yes ||
1612	 test -x conftest$ac_exeext
1613       }; then :
1614  ac_retval=0
1615else
1616  $as_echo "$as_me: failed program was:" >&5
1617sed 's/^/| /' conftest.$ac_ext >&5
1618
1619	ac_retval=1
1620fi
1621  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1622  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1623  # interfere with the next link command; also delete a directory that is
1624  # left behind by Apple's compiler.  We do this before executing the actions.
1625  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1626  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1627  as_fn_set_status $ac_retval
1628
1629} # ac_fn_c_try_link
1630
1631# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1632# -------------------------------------------------------
1633# Tests whether HEADER exists and can be compiled using the include files in
1634# INCLUDES, setting the cache variable VAR accordingly.
1635ac_fn_c_check_header_compile ()
1636{
1637  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1638  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1639$as_echo_n "checking for $2... " >&6; }
1640if eval \${$3+:} false; then :
1641  $as_echo_n "(cached) " >&6
1642else
1643  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1644/* end confdefs.h.  */
1645$4
1646#include <$2>
1647_ACEOF
1648if ac_fn_c_try_compile "$LINENO"; then :
1649  eval "$3=yes"
1650else
1651  eval "$3=no"
1652fi
1653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1654fi
1655eval ac_res=\$$3
1656	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1657$as_echo "$ac_res" >&6; }
1658  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1659
1660} # ac_fn_c_check_header_compile
1661
1662# ac_fn_c_try_cpp LINENO
1663# ----------------------
1664# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1665ac_fn_c_try_cpp ()
1666{
1667  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1668  if { { ac_try="$ac_cpp conftest.$ac_ext"
1669case "(($ac_try" in
1670  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1671  *) ac_try_echo=$ac_try;;
1672esac
1673eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674$as_echo "$ac_try_echo"; } >&5
1675  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1676  ac_status=$?
1677  if test -s conftest.err; then
1678    grep -v '^ *+' conftest.err >conftest.er1
1679    cat conftest.er1 >&5
1680    mv -f conftest.er1 conftest.err
1681  fi
1682  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683  test $ac_status = 0; } > conftest.i && {
1684	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1685	 test ! -s conftest.err
1686       }; then :
1687  ac_retval=0
1688else
1689  $as_echo "$as_me: failed program was:" >&5
1690sed 's/^/| /' conftest.$ac_ext >&5
1691
1692    ac_retval=1
1693fi
1694  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1695  as_fn_set_status $ac_retval
1696
1697} # ac_fn_c_try_cpp
1698
1699# ac_fn_c_try_run LINENO
1700# ----------------------
1701# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1702# that executables *can* be run.
1703ac_fn_c_try_run ()
1704{
1705  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706  if { { ac_try="$ac_link"
1707case "(($ac_try" in
1708  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709  *) ac_try_echo=$ac_try;;
1710esac
1711eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712$as_echo "$ac_try_echo"; } >&5
1713  (eval "$ac_link") 2>&5
1714  ac_status=$?
1715  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1717  { { case "(($ac_try" in
1718  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719  *) ac_try_echo=$ac_try;;
1720esac
1721eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722$as_echo "$ac_try_echo"; } >&5
1723  (eval "$ac_try") 2>&5
1724  ac_status=$?
1725  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1726  test $ac_status = 0; }; }; then :
1727  ac_retval=0
1728else
1729  $as_echo "$as_me: program exited with status $ac_status" >&5
1730       $as_echo "$as_me: failed program was:" >&5
1731sed 's/^/| /' conftest.$ac_ext >&5
1732
1733       ac_retval=$ac_status
1734fi
1735  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1736  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1737  as_fn_set_status $ac_retval
1738
1739} # ac_fn_c_try_run
1740
1741# ac_fn_c_check_func LINENO FUNC VAR
1742# ----------------------------------
1743# Tests whether FUNC exists, setting the cache variable VAR accordingly
1744ac_fn_c_check_func ()
1745{
1746  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1748$as_echo_n "checking for $2... " >&6; }
1749if eval \${$3+:} false; then :
1750  $as_echo_n "(cached) " >&6
1751else
1752  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1753/* end confdefs.h.  */
1754/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1755   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1756#define $2 innocuous_$2
1757
1758/* System header to define __stub macros and hopefully few prototypes,
1759    which can conflict with char $2 (); below.
1760    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1761    <limits.h> exists even on freestanding compilers.  */
1762
1763#ifdef __STDC__
1764# include <limits.h>
1765#else
1766# include <assert.h>
1767#endif
1768
1769#undef $2
1770
1771/* Override any GCC internal prototype to avoid an error.
1772   Use char because int might match the return type of a GCC
1773   builtin and then its argument prototype would still apply.  */
1774#ifdef __cplusplus
1775extern "C"
1776#endif
1777char $2 ();
1778/* The GNU C library defines this for functions which it implements
1779    to always fail with ENOSYS.  Some functions are actually named
1780    something starting with __ and the normal name is an alias.  */
1781#if defined __stub_$2 || defined __stub___$2
1782choke me
1783#endif
1784
1785int
1786main ()
1787{
1788return $2 ();
1789  ;
1790  return 0;
1791}
1792_ACEOF
1793if ac_fn_c_try_link "$LINENO"; then :
1794  eval "$3=yes"
1795else
1796  eval "$3=no"
1797fi
1798rm -f core conftest.err conftest.$ac_objext \
1799    conftest$ac_exeext conftest.$ac_ext
1800fi
1801eval ac_res=\$$3
1802	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1803$as_echo "$ac_res" >&6; }
1804  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805
1806} # ac_fn_c_check_func
1807
1808# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1809# -------------------------------------------------------
1810# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1811# the include files in INCLUDES and setting the cache variable VAR
1812# accordingly.
1813ac_fn_c_check_header_mongrel ()
1814{
1815  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816  if eval \${$3+:} false; then :
1817  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1818$as_echo_n "checking for $2... " >&6; }
1819if eval \${$3+:} false; then :
1820  $as_echo_n "(cached) " >&6
1821fi
1822eval ac_res=\$$3
1823	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1824$as_echo "$ac_res" >&6; }
1825else
1826  # Is the header compilable?
1827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1828$as_echo_n "checking $2 usability... " >&6; }
1829cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1830/* end confdefs.h.  */
1831$4
1832#include <$2>
1833_ACEOF
1834if ac_fn_c_try_compile "$LINENO"; then :
1835  ac_header_compiler=yes
1836else
1837  ac_header_compiler=no
1838fi
1839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1841$as_echo "$ac_header_compiler" >&6; }
1842
1843# Is the header present?
1844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1845$as_echo_n "checking $2 presence... " >&6; }
1846cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1847/* end confdefs.h.  */
1848#include <$2>
1849_ACEOF
1850if ac_fn_c_try_cpp "$LINENO"; then :
1851  ac_header_preproc=yes
1852else
1853  ac_header_preproc=no
1854fi
1855rm -f conftest.err conftest.i conftest.$ac_ext
1856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1857$as_echo "$ac_header_preproc" >&6; }
1858
1859# So?  What about this header?
1860case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1861  yes:no: )
1862    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1863$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1864    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1865$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1866    ;;
1867  no:yes:* )
1868    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1869$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1870    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1871$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1872    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1873$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1874    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1875$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1876    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1877$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1878    ;;
1879esac
1880  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1881$as_echo_n "checking for $2... " >&6; }
1882if eval \${$3+:} false; then :
1883  $as_echo_n "(cached) " >&6
1884else
1885  eval "$3=\$ac_header_compiler"
1886fi
1887eval ac_res=\$$3
1888	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1889$as_echo "$ac_res" >&6; }
1890fi
1891  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1892
1893} # ac_fn_c_check_header_mongrel
1894cat >config.log <<_ACEOF
1895This file contains any messages produced by compilers while
1896running configure, to aid debugging if configure makes a mistake.
1897
1898It was created by imageworsener $as_me 1.3.4, which was
1899generated by GNU Autoconf 2.69.  Invocation command line was
1900
1901  $ $0 $@
1902
1903_ACEOF
1904exec 5>>config.log
1905{
1906cat <<_ASUNAME
1907## --------- ##
1908## Platform. ##
1909## --------- ##
1910
1911hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1912uname -m = `(uname -m) 2>/dev/null || echo unknown`
1913uname -r = `(uname -r) 2>/dev/null || echo unknown`
1914uname -s = `(uname -s) 2>/dev/null || echo unknown`
1915uname -v = `(uname -v) 2>/dev/null || echo unknown`
1916
1917/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1918/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1919
1920/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1921/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1922/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1923/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1924/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1925/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1926/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1927
1928_ASUNAME
1929
1930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1931for as_dir in $PATH
1932do
1933  IFS=$as_save_IFS
1934  test -z "$as_dir" && as_dir=.
1935    $as_echo "PATH: $as_dir"
1936  done
1937IFS=$as_save_IFS
1938
1939} >&5
1940
1941cat >&5 <<_ACEOF
1942
1943
1944## ----------- ##
1945## Core tests. ##
1946## ----------- ##
1947
1948_ACEOF
1949
1950
1951# Keep a trace of the command line.
1952# Strip out --no-create and --no-recursion so they do not pile up.
1953# Strip out --silent because we don't want to record it for future runs.
1954# Also quote any args containing shell meta-characters.
1955# Make two passes to allow for proper duplicate-argument suppression.
1956ac_configure_args=
1957ac_configure_args0=
1958ac_configure_args1=
1959ac_must_keep_next=false
1960for ac_pass in 1 2
1961do
1962  for ac_arg
1963  do
1964    case $ac_arg in
1965    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1966    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1967    | -silent | --silent | --silen | --sile | --sil)
1968      continue ;;
1969    *\'*)
1970      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1971    esac
1972    case $ac_pass in
1973    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1974    2)
1975      as_fn_append ac_configure_args1 " '$ac_arg'"
1976      if test $ac_must_keep_next = true; then
1977	ac_must_keep_next=false # Got value, back to normal.
1978      else
1979	case $ac_arg in
1980	  *=* | --config-cache | -C | -disable-* | --disable-* \
1981	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1982	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1983	  | -with-* | --with-* | -without-* | --without-* | --x)
1984	    case "$ac_configure_args0 " in
1985	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1986	    esac
1987	    ;;
1988	  -* ) ac_must_keep_next=true ;;
1989	esac
1990      fi
1991      as_fn_append ac_configure_args " '$ac_arg'"
1992      ;;
1993    esac
1994  done
1995done
1996{ ac_configure_args0=; unset ac_configure_args0;}
1997{ ac_configure_args1=; unset ac_configure_args1;}
1998
1999# When interrupted or exit'd, cleanup temporary files, and complete
2000# config.log.  We remove comments because anyway the quotes in there
2001# would cause problems or look ugly.
2002# WARNING: Use '\'' to represent an apostrophe within the trap.
2003# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2004trap 'exit_status=$?
2005  # Save into config.log some information that might help in debugging.
2006  {
2007    echo
2008
2009    $as_echo "## ---------------- ##
2010## Cache variables. ##
2011## ---------------- ##"
2012    echo
2013    # The following way of writing the cache mishandles newlines in values,
2014(
2015  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2016    eval ac_val=\$$ac_var
2017    case $ac_val in #(
2018    *${as_nl}*)
2019      case $ac_var in #(
2020      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2021$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2022      esac
2023      case $ac_var in #(
2024      _ | IFS | as_nl) ;; #(
2025      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2026      *) { eval $ac_var=; unset $ac_var;} ;;
2027      esac ;;
2028    esac
2029  done
2030  (set) 2>&1 |
2031    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2032    *${as_nl}ac_space=\ *)
2033      sed -n \
2034	"s/'\''/'\''\\\\'\'''\''/g;
2035	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2036      ;; #(
2037    *)
2038      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2039      ;;
2040    esac |
2041    sort
2042)
2043    echo
2044
2045    $as_echo "## ----------------- ##
2046## Output variables. ##
2047## ----------------- ##"
2048    echo
2049    for ac_var in $ac_subst_vars
2050    do
2051      eval ac_val=\$$ac_var
2052      case $ac_val in
2053      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2054      esac
2055      $as_echo "$ac_var='\''$ac_val'\''"
2056    done | sort
2057    echo
2058
2059    if test -n "$ac_subst_files"; then
2060      $as_echo "## ------------------- ##
2061## File substitutions. ##
2062## ------------------- ##"
2063      echo
2064      for ac_var in $ac_subst_files
2065      do
2066	eval ac_val=\$$ac_var
2067	case $ac_val in
2068	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2069	esac
2070	$as_echo "$ac_var='\''$ac_val'\''"
2071      done | sort
2072      echo
2073    fi
2074
2075    if test -s confdefs.h; then
2076      $as_echo "## ----------- ##
2077## confdefs.h. ##
2078## ----------- ##"
2079      echo
2080      cat confdefs.h
2081      echo
2082    fi
2083    test "$ac_signal" != 0 &&
2084      $as_echo "$as_me: caught signal $ac_signal"
2085    $as_echo "$as_me: exit $exit_status"
2086  } >&5
2087  rm -f core *.core core.conftest.* &&
2088    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2089    exit $exit_status
2090' 0
2091for ac_signal in 1 2 13 15; do
2092  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2093done
2094ac_signal=0
2095
2096# confdefs.h avoids OS command line length limits that DEFS can exceed.
2097rm -f -r conftest* confdefs.h
2098
2099$as_echo "/* confdefs.h */" > confdefs.h
2100
2101# Predefined preprocessor variables.
2102
2103cat >>confdefs.h <<_ACEOF
2104#define PACKAGE_NAME "$PACKAGE_NAME"
2105_ACEOF
2106
2107cat >>confdefs.h <<_ACEOF
2108#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2109_ACEOF
2110
2111cat >>confdefs.h <<_ACEOF
2112#define PACKAGE_VERSION "$PACKAGE_VERSION"
2113_ACEOF
2114
2115cat >>confdefs.h <<_ACEOF
2116#define PACKAGE_STRING "$PACKAGE_STRING"
2117_ACEOF
2118
2119cat >>confdefs.h <<_ACEOF
2120#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2121_ACEOF
2122
2123cat >>confdefs.h <<_ACEOF
2124#define PACKAGE_URL "$PACKAGE_URL"
2125_ACEOF
2126
2127
2128# Let the site file select an alternate cache file if it wants to.
2129# Prefer an explicitly selected file to automatically selected ones.
2130ac_site_file1=NONE
2131ac_site_file2=NONE
2132if test -n "$CONFIG_SITE"; then
2133  # We do not want a PATH search for config.site.
2134  case $CONFIG_SITE in #((
2135    -*)  ac_site_file1=./$CONFIG_SITE;;
2136    */*) ac_site_file1=$CONFIG_SITE;;
2137    *)   ac_site_file1=./$CONFIG_SITE;;
2138  esac
2139elif test "x$prefix" != xNONE; then
2140  ac_site_file1=$prefix/share/config.site
2141  ac_site_file2=$prefix/etc/config.site
2142else
2143  ac_site_file1=$ac_default_prefix/share/config.site
2144  ac_site_file2=$ac_default_prefix/etc/config.site
2145fi
2146for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2147do
2148  test "x$ac_site_file" = xNONE && continue
2149  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2150    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2151$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2152    sed 's/^/| /' "$ac_site_file" >&5
2153    . "$ac_site_file" \
2154      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2155$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2156as_fn_error $? "failed to load site script $ac_site_file
2157See \`config.log' for more details" "$LINENO" 5; }
2158  fi
2159done
2160
2161if test -r "$cache_file"; then
2162  # Some versions of bash will fail to source /dev/null (special files
2163  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2164  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2165    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2166$as_echo "$as_me: loading cache $cache_file" >&6;}
2167    case $cache_file in
2168      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2169      *)                      . "./$cache_file";;
2170    esac
2171  fi
2172else
2173  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2174$as_echo "$as_me: creating cache $cache_file" >&6;}
2175  >$cache_file
2176fi
2177
2178# Check that the precious variables saved in the cache have kept the same
2179# value.
2180ac_cache_corrupted=false
2181for ac_var in $ac_precious_vars; do
2182  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2183  eval ac_new_set=\$ac_env_${ac_var}_set
2184  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2185  eval ac_new_val=\$ac_env_${ac_var}_value
2186  case $ac_old_set,$ac_new_set in
2187    set,)
2188      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2189$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2190      ac_cache_corrupted=: ;;
2191    ,set)
2192      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2193$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2194      ac_cache_corrupted=: ;;
2195    ,);;
2196    *)
2197      if test "x$ac_old_val" != "x$ac_new_val"; then
2198	# differences in whitespace do not lead to failure.
2199	ac_old_val_w=`echo x $ac_old_val`
2200	ac_new_val_w=`echo x $ac_new_val`
2201	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2202	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2203$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2204	  ac_cache_corrupted=:
2205	else
2206	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2207$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2208	  eval $ac_var=\$ac_old_val
2209	fi
2210	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2211$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2212	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2213$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2214      fi;;
2215  esac
2216  # Pass precious variables to config.status.
2217  if test "$ac_new_set" = set; then
2218    case $ac_new_val in
2219    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2220    *) ac_arg=$ac_var=$ac_new_val ;;
2221    esac
2222    case " $ac_configure_args " in
2223      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2224      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2225    esac
2226  fi
2227done
2228if $ac_cache_corrupted; then
2229  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2230$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2231  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2232$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2233  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2234fi
2235## -------------------- ##
2236## Main body of script. ##
2237## -------------------- ##
2238
2239ac_ext=c
2240ac_cpp='$CPP $CPPFLAGS'
2241ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2242ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2243ac_compiler_gnu=$ac_cv_c_compiler_gnu
2244
2245
2246
2247ac_config_headers="$ac_config_headers config.h"
2248
2249
2250
2251ac_aux_dir=
2252for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2253  if test -f "$ac_dir/install-sh"; then
2254    ac_aux_dir=$ac_dir
2255    ac_install_sh="$ac_aux_dir/install-sh -c"
2256    break
2257  elif test -f "$ac_dir/install.sh"; then
2258    ac_aux_dir=$ac_dir
2259    ac_install_sh="$ac_aux_dir/install.sh -c"
2260    break
2261  elif test -f "$ac_dir/shtool"; then
2262    ac_aux_dir=$ac_dir
2263    ac_install_sh="$ac_aux_dir/shtool install -c"
2264    break
2265  fi
2266done
2267if test -z "$ac_aux_dir"; then
2268  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2269fi
2270
2271# These three variables are undocumented and unsupported,
2272# and are intended to be withdrawn in a future Autoconf release.
2273# They can cause serious problems if a builder's source tree is in a directory
2274# whose full name contains unusual characters.
2275ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2276ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2277ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2278
2279
2280case `pwd` in
2281  *\ * | *\	*)
2282    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2283$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2284esac
2285
2286
2287
2288macro_version='2.4.6'
2289macro_revision='2.4.6'
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303ltmain=$ac_aux_dir/ltmain.sh
2304
2305# Make sure we can run config.sub.
2306$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2307  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2308
2309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2310$as_echo_n "checking build system type... " >&6; }
2311if ${ac_cv_build+:} false; then :
2312  $as_echo_n "(cached) " >&6
2313else
2314  ac_build_alias=$build_alias
2315test "x$ac_build_alias" = x &&
2316  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2317test "x$ac_build_alias" = x &&
2318  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2319ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2320  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2321
2322fi
2323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2324$as_echo "$ac_cv_build" >&6; }
2325case $ac_cv_build in
2326*-*-*) ;;
2327*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2328esac
2329build=$ac_cv_build
2330ac_save_IFS=$IFS; IFS='-'
2331set x $ac_cv_build
2332shift
2333build_cpu=$1
2334build_vendor=$2
2335shift; shift
2336# Remember, the first character of IFS is used to create $*,
2337# except with old shells:
2338build_os=$*
2339IFS=$ac_save_IFS
2340case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2341
2342
2343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2344$as_echo_n "checking host system type... " >&6; }
2345if ${ac_cv_host+:} false; then :
2346  $as_echo_n "(cached) " >&6
2347else
2348  if test "x$host_alias" = x; then
2349  ac_cv_host=$ac_cv_build
2350else
2351  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2352    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2353fi
2354
2355fi
2356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2357$as_echo "$ac_cv_host" >&6; }
2358case $ac_cv_host in
2359*-*-*) ;;
2360*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2361esac
2362host=$ac_cv_host
2363ac_save_IFS=$IFS; IFS='-'
2364set x $ac_cv_host
2365shift
2366host_cpu=$1
2367host_vendor=$2
2368shift; shift
2369# Remember, the first character of IFS is used to create $*,
2370# except with old shells:
2371host_os=$*
2372IFS=$ac_save_IFS
2373case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2374
2375
2376# Backslashify metacharacters that are still active within
2377# double-quoted strings.
2378sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2379
2380# Same as above, but do not quote variable references.
2381double_quote_subst='s/\(["`\\]\)/\\\1/g'
2382
2383# Sed substitution to delay expansion of an escaped shell variable in a
2384# double_quote_subst'ed string.
2385delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2386
2387# Sed substitution to delay expansion of an escaped single quote.
2388delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2389
2390# Sed substitution to avoid accidental globbing in evaled expressions
2391no_glob_subst='s/\*/\\\*/g'
2392
2393ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2394ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2395ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2396
2397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2398$as_echo_n "checking how to print strings... " >&6; }
2399# Test print first, because it will be a builtin if present.
2400if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2401   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2402  ECHO='print -r --'
2403elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2404  ECHO='printf %s\n'
2405else
2406  # Use this function as a fallback that always works.
2407  func_fallback_echo ()
2408  {
2409    eval 'cat <<_LTECHO_EOF
2410$1
2411_LTECHO_EOF'
2412  }
2413  ECHO='func_fallback_echo'
2414fi
2415
2416# func_echo_all arg...
2417# Invoke $ECHO with all args, space-separated.
2418func_echo_all ()
2419{
2420    $ECHO ""
2421}
2422
2423case $ECHO in
2424  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2425$as_echo "printf" >&6; } ;;
2426  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2427$as_echo "print -r" >&6; } ;;
2428  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2429$as_echo "cat" >&6; } ;;
2430esac
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445# Expand $ac_aux_dir to an absolute path.
2446am_aux_dir=`cd "$ac_aux_dir" && pwd`
2447
2448ac_ext=c
2449ac_cpp='$CPP $CPPFLAGS'
2450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2452ac_compiler_gnu=$ac_cv_c_compiler_gnu
2453if test -n "$ac_tool_prefix"; then
2454  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2455set dummy ${ac_tool_prefix}gcc; ac_word=$2
2456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2457$as_echo_n "checking for $ac_word... " >&6; }
2458if ${ac_cv_prog_CC+:} false; then :
2459  $as_echo_n "(cached) " >&6
2460else
2461  if test -n "$CC"; then
2462  ac_cv_prog_CC="$CC" # Let the user override the test.
2463else
2464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2465for as_dir in $PATH
2466do
2467  IFS=$as_save_IFS
2468  test -z "$as_dir" && as_dir=.
2469    for ac_exec_ext in '' $ac_executable_extensions; do
2470  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2471    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2472    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2473    break 2
2474  fi
2475done
2476  done
2477IFS=$as_save_IFS
2478
2479fi
2480fi
2481CC=$ac_cv_prog_CC
2482if test -n "$CC"; then
2483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2484$as_echo "$CC" >&6; }
2485else
2486  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2487$as_echo "no" >&6; }
2488fi
2489
2490
2491fi
2492if test -z "$ac_cv_prog_CC"; then
2493  ac_ct_CC=$CC
2494  # Extract the first word of "gcc", so it can be a program name with args.
2495set dummy gcc; ac_word=$2
2496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2497$as_echo_n "checking for $ac_word... " >&6; }
2498if ${ac_cv_prog_ac_ct_CC+:} false; then :
2499  $as_echo_n "(cached) " >&6
2500else
2501  if test -n "$ac_ct_CC"; then
2502  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2503else
2504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2505for as_dir in $PATH
2506do
2507  IFS=$as_save_IFS
2508  test -z "$as_dir" && as_dir=.
2509    for ac_exec_ext in '' $ac_executable_extensions; do
2510  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2511    ac_cv_prog_ac_ct_CC="gcc"
2512    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2513    break 2
2514  fi
2515done
2516  done
2517IFS=$as_save_IFS
2518
2519fi
2520fi
2521ac_ct_CC=$ac_cv_prog_ac_ct_CC
2522if test -n "$ac_ct_CC"; then
2523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2524$as_echo "$ac_ct_CC" >&6; }
2525else
2526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2527$as_echo "no" >&6; }
2528fi
2529
2530  if test "x$ac_ct_CC" = x; then
2531    CC=""
2532  else
2533    case $cross_compiling:$ac_tool_warned in
2534yes:)
2535{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2536$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2537ac_tool_warned=yes ;;
2538esac
2539    CC=$ac_ct_CC
2540  fi
2541else
2542  CC="$ac_cv_prog_CC"
2543fi
2544
2545if test -z "$CC"; then
2546          if test -n "$ac_tool_prefix"; then
2547    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2548set dummy ${ac_tool_prefix}cc; ac_word=$2
2549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2550$as_echo_n "checking for $ac_word... " >&6; }
2551if ${ac_cv_prog_CC+:} false; then :
2552  $as_echo_n "(cached) " >&6
2553else
2554  if test -n "$CC"; then
2555  ac_cv_prog_CC="$CC" # Let the user override the test.
2556else
2557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2558for as_dir in $PATH
2559do
2560  IFS=$as_save_IFS
2561  test -z "$as_dir" && as_dir=.
2562    for ac_exec_ext in '' $ac_executable_extensions; do
2563  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2564    ac_cv_prog_CC="${ac_tool_prefix}cc"
2565    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2566    break 2
2567  fi
2568done
2569  done
2570IFS=$as_save_IFS
2571
2572fi
2573fi
2574CC=$ac_cv_prog_CC
2575if test -n "$CC"; then
2576  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2577$as_echo "$CC" >&6; }
2578else
2579  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2580$as_echo "no" >&6; }
2581fi
2582
2583
2584  fi
2585fi
2586if test -z "$CC"; then
2587  # Extract the first word of "cc", so it can be a program name with args.
2588set dummy cc; ac_word=$2
2589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2590$as_echo_n "checking for $ac_word... " >&6; }
2591if ${ac_cv_prog_CC+:} false; then :
2592  $as_echo_n "(cached) " >&6
2593else
2594  if test -n "$CC"; then
2595  ac_cv_prog_CC="$CC" # Let the user override the test.
2596else
2597  ac_prog_rejected=no
2598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2599for as_dir in $PATH
2600do
2601  IFS=$as_save_IFS
2602  test -z "$as_dir" && as_dir=.
2603    for ac_exec_ext in '' $ac_executable_extensions; do
2604  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2605    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2606       ac_prog_rejected=yes
2607       continue
2608     fi
2609    ac_cv_prog_CC="cc"
2610    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2611    break 2
2612  fi
2613done
2614  done
2615IFS=$as_save_IFS
2616
2617if test $ac_prog_rejected = yes; then
2618  # We found a bogon in the path, so make sure we never use it.
2619  set dummy $ac_cv_prog_CC
2620  shift
2621  if test $# != 0; then
2622    # We chose a different compiler from the bogus one.
2623    # However, it has the same basename, so the bogon will be chosen
2624    # first if we set CC to just the basename; use the full file name.
2625    shift
2626    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2627  fi
2628fi
2629fi
2630fi
2631CC=$ac_cv_prog_CC
2632if test -n "$CC"; then
2633  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2634$as_echo "$CC" >&6; }
2635else
2636  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2637$as_echo "no" >&6; }
2638fi
2639
2640
2641fi
2642if test -z "$CC"; then
2643  if test -n "$ac_tool_prefix"; then
2644  for ac_prog in cl.exe
2645  do
2646    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2647set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2649$as_echo_n "checking for $ac_word... " >&6; }
2650if ${ac_cv_prog_CC+:} false; then :
2651  $as_echo_n "(cached) " >&6
2652else
2653  if test -n "$CC"; then
2654  ac_cv_prog_CC="$CC" # Let the user override the test.
2655else
2656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657for as_dir in $PATH
2658do
2659  IFS=$as_save_IFS
2660  test -z "$as_dir" && as_dir=.
2661    for ac_exec_ext in '' $ac_executable_extensions; do
2662  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2663    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2664    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2665    break 2
2666  fi
2667done
2668  done
2669IFS=$as_save_IFS
2670
2671fi
2672fi
2673CC=$ac_cv_prog_CC
2674if test -n "$CC"; then
2675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2676$as_echo "$CC" >&6; }
2677else
2678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2679$as_echo "no" >&6; }
2680fi
2681
2682
2683    test -n "$CC" && break
2684  done
2685fi
2686if test -z "$CC"; then
2687  ac_ct_CC=$CC
2688  for ac_prog in cl.exe
2689do
2690  # Extract the first word of "$ac_prog", so it can be a program name with args.
2691set dummy $ac_prog; ac_word=$2
2692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2693$as_echo_n "checking for $ac_word... " >&6; }
2694if ${ac_cv_prog_ac_ct_CC+:} false; then :
2695  $as_echo_n "(cached) " >&6
2696else
2697  if test -n "$ac_ct_CC"; then
2698  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2699else
2700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2701for as_dir in $PATH
2702do
2703  IFS=$as_save_IFS
2704  test -z "$as_dir" && as_dir=.
2705    for ac_exec_ext in '' $ac_executable_extensions; do
2706  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2707    ac_cv_prog_ac_ct_CC="$ac_prog"
2708    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2709    break 2
2710  fi
2711done
2712  done
2713IFS=$as_save_IFS
2714
2715fi
2716fi
2717ac_ct_CC=$ac_cv_prog_ac_ct_CC
2718if test -n "$ac_ct_CC"; then
2719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2720$as_echo "$ac_ct_CC" >&6; }
2721else
2722  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2723$as_echo "no" >&6; }
2724fi
2725
2726
2727  test -n "$ac_ct_CC" && break
2728done
2729
2730  if test "x$ac_ct_CC" = x; then
2731    CC=""
2732  else
2733    case $cross_compiling:$ac_tool_warned in
2734yes:)
2735{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2736$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2737ac_tool_warned=yes ;;
2738esac
2739    CC=$ac_ct_CC
2740  fi
2741fi
2742
2743fi
2744
2745
2746test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2747$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2748as_fn_error $? "no acceptable C compiler found in \$PATH
2749See \`config.log' for more details" "$LINENO" 5; }
2750
2751# Provide some information about the compiler.
2752$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2753set X $ac_compile
2754ac_compiler=$2
2755for ac_option in --version -v -V -qversion; do
2756  { { ac_try="$ac_compiler $ac_option >&5"
2757case "(($ac_try" in
2758  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2759  *) ac_try_echo=$ac_try;;
2760esac
2761eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2762$as_echo "$ac_try_echo"; } >&5
2763  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2764  ac_status=$?
2765  if test -s conftest.err; then
2766    sed '10a\
2767... rest of stderr output deleted ...
2768         10q' conftest.err >conftest.er1
2769    cat conftest.er1 >&5
2770  fi
2771  rm -f conftest.er1 conftest.err
2772  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2773  test $ac_status = 0; }
2774done
2775
2776cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2777/* end confdefs.h.  */
2778
2779int
2780main ()
2781{
2782
2783  ;
2784  return 0;
2785}
2786_ACEOF
2787ac_clean_files_save=$ac_clean_files
2788ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2789# Try to create an executable without -o first, disregard a.out.
2790# It will help us diagnose broken compilers, and finding out an intuition
2791# of exeext.
2792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2793$as_echo_n "checking whether the C compiler works... " >&6; }
2794ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2795
2796# The possible output files:
2797ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2798
2799ac_rmfiles=
2800for ac_file in $ac_files
2801do
2802  case $ac_file in
2803    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2804    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2805  esac
2806done
2807rm -f $ac_rmfiles
2808
2809if { { ac_try="$ac_link_default"
2810case "(($ac_try" in
2811  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2812  *) ac_try_echo=$ac_try;;
2813esac
2814eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2815$as_echo "$ac_try_echo"; } >&5
2816  (eval "$ac_link_default") 2>&5
2817  ac_status=$?
2818  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2819  test $ac_status = 0; }; then :
2820  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2821# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2822# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2823# so that the user can short-circuit this test for compilers unknown to
2824# Autoconf.
2825for ac_file in $ac_files ''
2826do
2827  test -f "$ac_file" || continue
2828  case $ac_file in
2829    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2830	;;
2831    [ab].out )
2832	# We found the default executable, but exeext='' is most
2833	# certainly right.
2834	break;;
2835    *.* )
2836	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2837	then :; else
2838	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2839	fi
2840	# We set ac_cv_exeext here because the later test for it is not
2841	# safe: cross compilers may not add the suffix if given an `-o'
2842	# argument, so we may need to know it at that point already.
2843	# Even if this section looks crufty: it has the advantage of
2844	# actually working.
2845	break;;
2846    * )
2847	break;;
2848  esac
2849done
2850test "$ac_cv_exeext" = no && ac_cv_exeext=
2851
2852else
2853  ac_file=''
2854fi
2855if test -z "$ac_file"; then :
2856  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2857$as_echo "no" >&6; }
2858$as_echo "$as_me: failed program was:" >&5
2859sed 's/^/| /' conftest.$ac_ext >&5
2860
2861{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2862$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2863as_fn_error 77 "C compiler cannot create executables
2864See \`config.log' for more details" "$LINENO" 5; }
2865else
2866  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2867$as_echo "yes" >&6; }
2868fi
2869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2870$as_echo_n "checking for C compiler default output file name... " >&6; }
2871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2872$as_echo "$ac_file" >&6; }
2873ac_exeext=$ac_cv_exeext
2874
2875rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2876ac_clean_files=$ac_clean_files_save
2877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2878$as_echo_n "checking for suffix of executables... " >&6; }
2879if { { ac_try="$ac_link"
2880case "(($ac_try" in
2881  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2882  *) ac_try_echo=$ac_try;;
2883esac
2884eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2885$as_echo "$ac_try_echo"; } >&5
2886  (eval "$ac_link") 2>&5
2887  ac_status=$?
2888  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2889  test $ac_status = 0; }; then :
2890  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2891# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2892# work properly (i.e., refer to `conftest.exe'), while it won't with
2893# `rm'.
2894for ac_file in conftest.exe conftest conftest.*; do
2895  test -f "$ac_file" || continue
2896  case $ac_file in
2897    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2898    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2899	  break;;
2900    * ) break;;
2901  esac
2902done
2903else
2904  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2905$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2906as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2907See \`config.log' for more details" "$LINENO" 5; }
2908fi
2909rm -f conftest conftest$ac_cv_exeext
2910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2911$as_echo "$ac_cv_exeext" >&6; }
2912
2913rm -f conftest.$ac_ext
2914EXEEXT=$ac_cv_exeext
2915ac_exeext=$EXEEXT
2916cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2917/* end confdefs.h.  */
2918#include <stdio.h>
2919int
2920main ()
2921{
2922FILE *f = fopen ("conftest.out", "w");
2923 return ferror (f) || fclose (f) != 0;
2924
2925  ;
2926  return 0;
2927}
2928_ACEOF
2929ac_clean_files="$ac_clean_files conftest.out"
2930# Check that the compiler produces executables we can run.  If not, either
2931# the compiler is broken, or we cross compile.
2932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2933$as_echo_n "checking whether we are cross compiling... " >&6; }
2934if test "$cross_compiling" != yes; then
2935  { { ac_try="$ac_link"
2936case "(($ac_try" in
2937  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2938  *) ac_try_echo=$ac_try;;
2939esac
2940eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2941$as_echo "$ac_try_echo"; } >&5
2942  (eval "$ac_link") 2>&5
2943  ac_status=$?
2944  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2945  test $ac_status = 0; }
2946  if { ac_try='./conftest$ac_cv_exeext'
2947  { { case "(($ac_try" in
2948  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2949  *) ac_try_echo=$ac_try;;
2950esac
2951eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2952$as_echo "$ac_try_echo"; } >&5
2953  (eval "$ac_try") 2>&5
2954  ac_status=$?
2955  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2956  test $ac_status = 0; }; }; then
2957    cross_compiling=no
2958  else
2959    if test "$cross_compiling" = maybe; then
2960	cross_compiling=yes
2961    else
2962	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2963$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2964as_fn_error $? "cannot run C compiled programs.
2965If you meant to cross compile, use \`--host'.
2966See \`config.log' for more details" "$LINENO" 5; }
2967    fi
2968  fi
2969fi
2970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2971$as_echo "$cross_compiling" >&6; }
2972
2973rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2974ac_clean_files=$ac_clean_files_save
2975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2976$as_echo_n "checking for suffix of object files... " >&6; }
2977if ${ac_cv_objext+:} false; then :
2978  $as_echo_n "(cached) " >&6
2979else
2980  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2981/* end confdefs.h.  */
2982
2983int
2984main ()
2985{
2986
2987  ;
2988  return 0;
2989}
2990_ACEOF
2991rm -f conftest.o conftest.obj
2992if { { ac_try="$ac_compile"
2993case "(($ac_try" in
2994  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2995  *) ac_try_echo=$ac_try;;
2996esac
2997eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2998$as_echo "$ac_try_echo"; } >&5
2999  (eval "$ac_compile") 2>&5
3000  ac_status=$?
3001  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3002  test $ac_status = 0; }; then :
3003  for ac_file in conftest.o conftest.obj conftest.*; do
3004  test -f "$ac_file" || continue;
3005  case $ac_file in
3006    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3007    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3008       break;;
3009  esac
3010done
3011else
3012  $as_echo "$as_me: failed program was:" >&5
3013sed 's/^/| /' conftest.$ac_ext >&5
3014
3015{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3016$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3017as_fn_error $? "cannot compute suffix of object files: cannot compile
3018See \`config.log' for more details" "$LINENO" 5; }
3019fi
3020rm -f conftest.$ac_cv_objext conftest.$ac_ext
3021fi
3022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3023$as_echo "$ac_cv_objext" >&6; }
3024OBJEXT=$ac_cv_objext
3025ac_objext=$OBJEXT
3026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3027$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3028if ${ac_cv_c_compiler_gnu+:} false; then :
3029  $as_echo_n "(cached) " >&6
3030else
3031  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3032/* end confdefs.h.  */
3033
3034int
3035main ()
3036{
3037#ifndef __GNUC__
3038       choke me
3039#endif
3040
3041  ;
3042  return 0;
3043}
3044_ACEOF
3045if ac_fn_c_try_compile "$LINENO"; then :
3046  ac_compiler_gnu=yes
3047else
3048  ac_compiler_gnu=no
3049fi
3050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3051ac_cv_c_compiler_gnu=$ac_compiler_gnu
3052
3053fi
3054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3055$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3056if test $ac_compiler_gnu = yes; then
3057  GCC=yes
3058else
3059  GCC=
3060fi
3061ac_test_CFLAGS=${CFLAGS+set}
3062ac_save_CFLAGS=$CFLAGS
3063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3064$as_echo_n "checking whether $CC accepts -g... " >&6; }
3065if ${ac_cv_prog_cc_g+:} false; then :
3066  $as_echo_n "(cached) " >&6
3067else
3068  ac_save_c_werror_flag=$ac_c_werror_flag
3069   ac_c_werror_flag=yes
3070   ac_cv_prog_cc_g=no
3071   CFLAGS="-g"
3072   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3073/* end confdefs.h.  */
3074
3075int
3076main ()
3077{
3078
3079  ;
3080  return 0;
3081}
3082_ACEOF
3083if ac_fn_c_try_compile "$LINENO"; then :
3084  ac_cv_prog_cc_g=yes
3085else
3086  CFLAGS=""
3087      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3088/* end confdefs.h.  */
3089
3090int
3091main ()
3092{
3093
3094  ;
3095  return 0;
3096}
3097_ACEOF
3098if ac_fn_c_try_compile "$LINENO"; then :
3099
3100else
3101  ac_c_werror_flag=$ac_save_c_werror_flag
3102	 CFLAGS="-g"
3103	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3104/* end confdefs.h.  */
3105
3106int
3107main ()
3108{
3109
3110  ;
3111  return 0;
3112}
3113_ACEOF
3114if ac_fn_c_try_compile "$LINENO"; then :
3115  ac_cv_prog_cc_g=yes
3116fi
3117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3118fi
3119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3120fi
3121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3122   ac_c_werror_flag=$ac_save_c_werror_flag
3123fi
3124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3125$as_echo "$ac_cv_prog_cc_g" >&6; }
3126if test "$ac_test_CFLAGS" = set; then
3127  CFLAGS=$ac_save_CFLAGS
3128elif test $ac_cv_prog_cc_g = yes; then
3129  if test "$GCC" = yes; then
3130    CFLAGS="-g -O2"
3131  else
3132    CFLAGS="-g"
3133  fi
3134else
3135  if test "$GCC" = yes; then
3136    CFLAGS="-O2"
3137  else
3138    CFLAGS=
3139  fi
3140fi
3141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3142$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3143if ${ac_cv_prog_cc_c89+:} false; then :
3144  $as_echo_n "(cached) " >&6
3145else
3146  ac_cv_prog_cc_c89=no
3147ac_save_CC=$CC
3148cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3149/* end confdefs.h.  */
3150#include <stdarg.h>
3151#include <stdio.h>
3152struct stat;
3153/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3154struct buf { int x; };
3155FILE * (*rcsopen) (struct buf *, struct stat *, int);
3156static char *e (p, i)
3157     char **p;
3158     int i;
3159{
3160  return p[i];
3161}
3162static char *f (char * (*g) (char **, int), char **p, ...)
3163{
3164  char *s;
3165  va_list v;
3166  va_start (v,p);
3167  s = g (p, va_arg (v,int));
3168  va_end (v);
3169  return s;
3170}
3171
3172/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3173   function prototypes and stuff, but not '\xHH' hex character constants.
3174   These don't provoke an error unfortunately, instead are silently treated
3175   as 'x'.  The following induces an error, until -std is added to get
3176   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3177   array size at least.  It's necessary to write '\x00'==0 to get something
3178   that's true only with -std.  */
3179int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3180
3181/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3182   inside strings and character constants.  */
3183#define FOO(x) 'x'
3184int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3185
3186int test (int i, double x);
3187struct s1 {int (*f) (int a);};
3188struct s2 {int (*f) (double a);};
3189int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3190int argc;
3191char **argv;
3192int
3193main ()
3194{
3195return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3196  ;
3197  return 0;
3198}
3199_ACEOF
3200for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3201	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3202do
3203  CC="$ac_save_CC $ac_arg"
3204  if ac_fn_c_try_compile "$LINENO"; then :
3205  ac_cv_prog_cc_c89=$ac_arg
3206fi
3207rm -f core conftest.err conftest.$ac_objext
3208  test "x$ac_cv_prog_cc_c89" != "xno" && break
3209done
3210rm -f conftest.$ac_ext
3211CC=$ac_save_CC
3212
3213fi
3214# AC_CACHE_VAL
3215case "x$ac_cv_prog_cc_c89" in
3216  x)
3217    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3218$as_echo "none needed" >&6; } ;;
3219  xno)
3220    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3221$as_echo "unsupported" >&6; } ;;
3222  *)
3223    CC="$CC $ac_cv_prog_cc_c89"
3224    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3225$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3226esac
3227if test "x$ac_cv_prog_cc_c89" != xno; then :
3228
3229fi
3230
3231ac_ext=c
3232ac_cpp='$CPP $CPPFLAGS'
3233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3235ac_compiler_gnu=$ac_cv_c_compiler_gnu
3236
3237ac_ext=c
3238ac_cpp='$CPP $CPPFLAGS'
3239ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3240ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3241ac_compiler_gnu=$ac_cv_c_compiler_gnu
3242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3243$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3244if ${am_cv_prog_cc_c_o+:} false; then :
3245  $as_echo_n "(cached) " >&6
3246else
3247  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3248/* end confdefs.h.  */
3249
3250int
3251main ()
3252{
3253
3254  ;
3255  return 0;
3256}
3257_ACEOF
3258  # Make sure it works both with $CC and with simple cc.
3259  # Following AC_PROG_CC_C_O, we do the test twice because some
3260  # compilers refuse to overwrite an existing .o file with -o,
3261  # though they will create one.
3262  am_cv_prog_cc_c_o=yes
3263  for am_i in 1 2; do
3264    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3265   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3266   ac_status=$?
3267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268   (exit $ac_status); } \
3269         && test -f conftest2.$ac_objext; then
3270      : OK
3271    else
3272      am_cv_prog_cc_c_o=no
3273      break
3274    fi
3275  done
3276  rm -f core conftest*
3277  unset am_i
3278fi
3279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3280$as_echo "$am_cv_prog_cc_c_o" >&6; }
3281if test "$am_cv_prog_cc_c_o" != yes; then
3282   # Losing compiler, so override with the script.
3283   # FIXME: It is wrong to rewrite CC.
3284   # But if we don't then we get into trouble of one sort or another.
3285   # A longer-term fix would be to have automake use am__CC in this case,
3286   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3287   CC="$am_aux_dir/compile $CC"
3288fi
3289ac_ext=c
3290ac_cpp='$CPP $CPPFLAGS'
3291ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3292ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3293ac_compiler_gnu=$ac_cv_c_compiler_gnu
3294
3295
3296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3297$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3298if ${ac_cv_path_SED+:} false; then :
3299  $as_echo_n "(cached) " >&6
3300else
3301            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3302     for ac_i in 1 2 3 4 5 6 7; do
3303       ac_script="$ac_script$as_nl$ac_script"
3304     done
3305     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3306     { ac_script=; unset ac_script;}
3307     if test -z "$SED"; then
3308  ac_path_SED_found=false
3309  # Loop through the user's path and test for each of PROGNAME-LIST
3310  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3311for as_dir in $PATH
3312do
3313  IFS=$as_save_IFS
3314  test -z "$as_dir" && as_dir=.
3315    for ac_prog in sed gsed; do
3316    for ac_exec_ext in '' $ac_executable_extensions; do
3317      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3318      as_fn_executable_p "$ac_path_SED" || continue
3319# Check for GNU ac_path_SED and select it if it is found.
3320  # Check for GNU $ac_path_SED
3321case `"$ac_path_SED" --version 2>&1` in
3322*GNU*)
3323  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3324*)
3325  ac_count=0
3326  $as_echo_n 0123456789 >"conftest.in"
3327  while :
3328  do
3329    cat "conftest.in" "conftest.in" >"conftest.tmp"
3330    mv "conftest.tmp" "conftest.in"
3331    cp "conftest.in" "conftest.nl"
3332    $as_echo '' >> "conftest.nl"
3333    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3334    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3335    as_fn_arith $ac_count + 1 && ac_count=$as_val
3336    if test $ac_count -gt ${ac_path_SED_max-0}; then
3337      # Best one so far, save it but keep looking for a better one
3338      ac_cv_path_SED="$ac_path_SED"
3339      ac_path_SED_max=$ac_count
3340    fi
3341    # 10*(2^10) chars as input seems more than enough
3342    test $ac_count -gt 10 && break
3343  done
3344  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3345esac
3346
3347      $ac_path_SED_found && break 3
3348    done
3349  done
3350  done
3351IFS=$as_save_IFS
3352  if test -z "$ac_cv_path_SED"; then
3353    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3354  fi
3355else
3356  ac_cv_path_SED=$SED
3357fi
3358
3359fi
3360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3361$as_echo "$ac_cv_path_SED" >&6; }
3362 SED="$ac_cv_path_SED"
3363  rm -f conftest.sed
3364
3365test -z "$SED" && SED=sed
3366Xsed="$SED -e 1s/^X//"
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3379$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3380if ${ac_cv_path_GREP+:} false; then :
3381  $as_echo_n "(cached) " >&6
3382else
3383  if test -z "$GREP"; then
3384  ac_path_GREP_found=false
3385  # Loop through the user's path and test for each of PROGNAME-LIST
3386  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3387for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3388do
3389  IFS=$as_save_IFS
3390  test -z "$as_dir" && as_dir=.
3391    for ac_prog in grep ggrep; do
3392    for ac_exec_ext in '' $ac_executable_extensions; do
3393      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3394      as_fn_executable_p "$ac_path_GREP" || continue
3395# Check for GNU ac_path_GREP and select it if it is found.
3396  # Check for GNU $ac_path_GREP
3397case `"$ac_path_GREP" --version 2>&1` in
3398*GNU*)
3399  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3400*)
3401  ac_count=0
3402  $as_echo_n 0123456789 >"conftest.in"
3403  while :
3404  do
3405    cat "conftest.in" "conftest.in" >"conftest.tmp"
3406    mv "conftest.tmp" "conftest.in"
3407    cp "conftest.in" "conftest.nl"
3408    $as_echo 'GREP' >> "conftest.nl"
3409    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3410    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3411    as_fn_arith $ac_count + 1 && ac_count=$as_val
3412    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3413      # Best one so far, save it but keep looking for a better one
3414      ac_cv_path_GREP="$ac_path_GREP"
3415      ac_path_GREP_max=$ac_count
3416    fi
3417    # 10*(2^10) chars as input seems more than enough
3418    test $ac_count -gt 10 && break
3419  done
3420  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3421esac
3422
3423      $ac_path_GREP_found && break 3
3424    done
3425  done
3426  done
3427IFS=$as_save_IFS
3428  if test -z "$ac_cv_path_GREP"; then
3429    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3430  fi
3431else
3432  ac_cv_path_GREP=$GREP
3433fi
3434
3435fi
3436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3437$as_echo "$ac_cv_path_GREP" >&6; }
3438 GREP="$ac_cv_path_GREP"
3439
3440
3441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3442$as_echo_n "checking for egrep... " >&6; }
3443if ${ac_cv_path_EGREP+:} false; then :
3444  $as_echo_n "(cached) " >&6
3445else
3446  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3447   then ac_cv_path_EGREP="$GREP -E"
3448   else
3449     if test -z "$EGREP"; then
3450  ac_path_EGREP_found=false
3451  # Loop through the user's path and test for each of PROGNAME-LIST
3452  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3453for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3454do
3455  IFS=$as_save_IFS
3456  test -z "$as_dir" && as_dir=.
3457    for ac_prog in egrep; do
3458    for ac_exec_ext in '' $ac_executable_extensions; do
3459      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3460      as_fn_executable_p "$ac_path_EGREP" || continue
3461# Check for GNU ac_path_EGREP and select it if it is found.
3462  # Check for GNU $ac_path_EGREP
3463case `"$ac_path_EGREP" --version 2>&1` in
3464*GNU*)
3465  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3466*)
3467  ac_count=0
3468  $as_echo_n 0123456789 >"conftest.in"
3469  while :
3470  do
3471    cat "conftest.in" "conftest.in" >"conftest.tmp"
3472    mv "conftest.tmp" "conftest.in"
3473    cp "conftest.in" "conftest.nl"
3474    $as_echo 'EGREP' >> "conftest.nl"
3475    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3476    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3477    as_fn_arith $ac_count + 1 && ac_count=$as_val
3478    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3479      # Best one so far, save it but keep looking for a better one
3480      ac_cv_path_EGREP="$ac_path_EGREP"
3481      ac_path_EGREP_max=$ac_count
3482    fi
3483    # 10*(2^10) chars as input seems more than enough
3484    test $ac_count -gt 10 && break
3485  done
3486  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3487esac
3488
3489      $ac_path_EGREP_found && break 3
3490    done
3491  done
3492  done
3493IFS=$as_save_IFS
3494  if test -z "$ac_cv_path_EGREP"; then
3495    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3496  fi
3497else
3498  ac_cv_path_EGREP=$EGREP
3499fi
3500
3501   fi
3502fi
3503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3504$as_echo "$ac_cv_path_EGREP" >&6; }
3505 EGREP="$ac_cv_path_EGREP"
3506
3507
3508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3509$as_echo_n "checking for fgrep... " >&6; }
3510if ${ac_cv_path_FGREP+:} false; then :
3511  $as_echo_n "(cached) " >&6
3512else
3513  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3514   then ac_cv_path_FGREP="$GREP -F"
3515   else
3516     if test -z "$FGREP"; then
3517  ac_path_FGREP_found=false
3518  # Loop through the user's path and test for each of PROGNAME-LIST
3519  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3520for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3521do
3522  IFS=$as_save_IFS
3523  test -z "$as_dir" && as_dir=.
3524    for ac_prog in fgrep; do
3525    for ac_exec_ext in '' $ac_executable_extensions; do
3526      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3527      as_fn_executable_p "$ac_path_FGREP" || continue
3528# Check for GNU ac_path_FGREP and select it if it is found.
3529  # Check for GNU $ac_path_FGREP
3530case `"$ac_path_FGREP" --version 2>&1` in
3531*GNU*)
3532  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3533*)
3534  ac_count=0
3535  $as_echo_n 0123456789 >"conftest.in"
3536  while :
3537  do
3538    cat "conftest.in" "conftest.in" >"conftest.tmp"
3539    mv "conftest.tmp" "conftest.in"
3540    cp "conftest.in" "conftest.nl"
3541    $as_echo 'FGREP' >> "conftest.nl"
3542    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3543    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3544    as_fn_arith $ac_count + 1 && ac_count=$as_val
3545    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3546      # Best one so far, save it but keep looking for a better one
3547      ac_cv_path_FGREP="$ac_path_FGREP"
3548      ac_path_FGREP_max=$ac_count
3549    fi
3550    # 10*(2^10) chars as input seems more than enough
3551    test $ac_count -gt 10 && break
3552  done
3553  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3554esac
3555
3556      $ac_path_FGREP_found && break 3
3557    done
3558  done
3559  done
3560IFS=$as_save_IFS
3561  if test -z "$ac_cv_path_FGREP"; then
3562    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3563  fi
3564else
3565  ac_cv_path_FGREP=$FGREP
3566fi
3567
3568   fi
3569fi
3570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3571$as_echo "$ac_cv_path_FGREP" >&6; }
3572 FGREP="$ac_cv_path_FGREP"
3573
3574
3575test -z "$GREP" && GREP=grep
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595# Check whether --with-gnu-ld was given.
3596if test "${with_gnu_ld+set}" = set; then :
3597  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
3598else
3599  with_gnu_ld=no
3600fi
3601
3602ac_prog=ld
3603if test yes = "$GCC"; then
3604  # Check if gcc -print-prog-name=ld gives a path.
3605  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3606$as_echo_n "checking for ld used by $CC... " >&6; }
3607  case $host in
3608  *-*-mingw*)
3609    # gcc leaves a trailing carriage return, which upsets mingw
3610    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3611  *)
3612    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3613  esac
3614  case $ac_prog in
3615    # Accept absolute paths.
3616    [\\/]* | ?:[\\/]*)
3617      re_direlt='/[^/][^/]*/\.\./'
3618      # Canonicalize the pathname of ld
3619      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3620      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3621	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3622      done
3623      test -z "$LD" && LD=$ac_prog
3624      ;;
3625  "")
3626    # If it fails, then pretend we aren't using GCC.
3627    ac_prog=ld
3628    ;;
3629  *)
3630    # If it is relative, then search for the first ld in PATH.
3631    with_gnu_ld=unknown
3632    ;;
3633  esac
3634elif test yes = "$with_gnu_ld"; then
3635  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3636$as_echo_n "checking for GNU ld... " >&6; }
3637else
3638  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3639$as_echo_n "checking for non-GNU ld... " >&6; }
3640fi
3641if ${lt_cv_path_LD+:} false; then :
3642  $as_echo_n "(cached) " >&6
3643else
3644  if test -z "$LD"; then
3645  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
3646  for ac_dir in $PATH; do
3647    IFS=$lt_save_ifs
3648    test -z "$ac_dir" && ac_dir=.
3649    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3650      lt_cv_path_LD=$ac_dir/$ac_prog
3651      # Check to see if the program is GNU ld.  I'd rather use --version,
3652      # but apparently some variants of GNU ld only accept -v.
3653      # Break only if it was the GNU/non-GNU ld that we prefer.
3654      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3655      *GNU* | *'with BFD'*)
3656	test no != "$with_gnu_ld" && break
3657	;;
3658      *)
3659	test yes != "$with_gnu_ld" && break
3660	;;
3661      esac
3662    fi
3663  done
3664  IFS=$lt_save_ifs
3665else
3666  lt_cv_path_LD=$LD # Let the user override the test with a path.
3667fi
3668fi
3669
3670LD=$lt_cv_path_LD
3671if test -n "$LD"; then
3672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3673$as_echo "$LD" >&6; }
3674else
3675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3676$as_echo "no" >&6; }
3677fi
3678test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3680$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3681if ${lt_cv_prog_gnu_ld+:} false; then :
3682  $as_echo_n "(cached) " >&6
3683else
3684  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3685case `$LD -v 2>&1 </dev/null` in
3686*GNU* | *'with BFD'*)
3687  lt_cv_prog_gnu_ld=yes
3688  ;;
3689*)
3690  lt_cv_prog_gnu_ld=no
3691  ;;
3692esac
3693fi
3694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
3695$as_echo "$lt_cv_prog_gnu_ld" >&6; }
3696with_gnu_ld=$lt_cv_prog_gnu_ld
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
3707$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3708if ${lt_cv_path_NM+:} false; then :
3709  $as_echo_n "(cached) " >&6
3710else
3711  if test -n "$NM"; then
3712  # Let the user override the test.
3713  lt_cv_path_NM=$NM
3714else
3715  lt_nm_to_check=${ac_tool_prefix}nm
3716  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3717    lt_nm_to_check="$lt_nm_to_check nm"
3718  fi
3719  for lt_tmp_nm in $lt_nm_to_check; do
3720    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
3721    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3722      IFS=$lt_save_ifs
3723      test -z "$ac_dir" && ac_dir=.
3724      tmp_nm=$ac_dir/$lt_tmp_nm
3725      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
3726	# Check to see if the nm accepts a BSD-compat flag.
3727	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
3728	#   nm: unknown option "B" ignored
3729	# Tru64's nm complains that /dev/null is an invalid object file
3730	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
3731	case $build_os in
3732	mingw*) lt_bad_file=conftest.nm/nofile ;;
3733	*) lt_bad_file=/dev/null ;;
3734	esac
3735	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
3736	*$lt_bad_file* | *'Invalid file or object type'*)
3737	  lt_cv_path_NM="$tmp_nm -B"
3738	  break 2
3739	  ;;
3740	*)
3741	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3742	  */dev/null*)
3743	    lt_cv_path_NM="$tmp_nm -p"
3744	    break 2
3745	    ;;
3746	  *)
3747	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3748	    continue # so that we can try to find one that supports BSD flags
3749	    ;;
3750	  esac
3751	  ;;
3752	esac
3753      fi
3754    done
3755    IFS=$lt_save_ifs
3756  done
3757  : ${lt_cv_path_NM=no}
3758fi
3759fi
3760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
3761$as_echo "$lt_cv_path_NM" >&6; }
3762if test no != "$lt_cv_path_NM"; then
3763  NM=$lt_cv_path_NM
3764else
3765  # Didn't find any BSD compatible name lister, look for dumpbin.
3766  if test -n "$DUMPBIN"; then :
3767    # Let the user override the test.
3768  else
3769    if test -n "$ac_tool_prefix"; then
3770  for ac_prog in dumpbin "link -dump"
3771  do
3772    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3773set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3775$as_echo_n "checking for $ac_word... " >&6; }
3776if ${ac_cv_prog_DUMPBIN+:} false; then :
3777  $as_echo_n "(cached) " >&6
3778else
3779  if test -n "$DUMPBIN"; then
3780  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3781else
3782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3783for as_dir in $PATH
3784do
3785  IFS=$as_save_IFS
3786  test -z "$as_dir" && as_dir=.
3787    for ac_exec_ext in '' $ac_executable_extensions; do
3788  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3789    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3790    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3791    break 2
3792  fi
3793done
3794  done
3795IFS=$as_save_IFS
3796
3797fi
3798fi
3799DUMPBIN=$ac_cv_prog_DUMPBIN
3800if test -n "$DUMPBIN"; then
3801  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
3802$as_echo "$DUMPBIN" >&6; }
3803else
3804  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3805$as_echo "no" >&6; }
3806fi
3807
3808
3809    test -n "$DUMPBIN" && break
3810  done
3811fi
3812if test -z "$DUMPBIN"; then
3813  ac_ct_DUMPBIN=$DUMPBIN
3814  for ac_prog in dumpbin "link -dump"
3815do
3816  # Extract the first word of "$ac_prog", so it can be a program name with args.
3817set dummy $ac_prog; ac_word=$2
3818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3819$as_echo_n "checking for $ac_word... " >&6; }
3820if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
3821  $as_echo_n "(cached) " >&6
3822else
3823  if test -n "$ac_ct_DUMPBIN"; then
3824  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3825else
3826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3827for as_dir in $PATH
3828do
3829  IFS=$as_save_IFS
3830  test -z "$as_dir" && as_dir=.
3831    for ac_exec_ext in '' $ac_executable_extensions; do
3832  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3833    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3834    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3835    break 2
3836  fi
3837done
3838  done
3839IFS=$as_save_IFS
3840
3841fi
3842fi
3843ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3844if test -n "$ac_ct_DUMPBIN"; then
3845  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
3846$as_echo "$ac_ct_DUMPBIN" >&6; }
3847else
3848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3849$as_echo "no" >&6; }
3850fi
3851
3852
3853  test -n "$ac_ct_DUMPBIN" && break
3854done
3855
3856  if test "x$ac_ct_DUMPBIN" = x; then
3857    DUMPBIN=":"
3858  else
3859    case $cross_compiling:$ac_tool_warned in
3860yes:)
3861{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3862$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3863ac_tool_warned=yes ;;
3864esac
3865    DUMPBIN=$ac_ct_DUMPBIN
3866  fi
3867fi
3868
3869    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
3870    *COFF*)
3871      DUMPBIN="$DUMPBIN -symbols -headers"
3872      ;;
3873    *)
3874      DUMPBIN=:
3875      ;;
3876    esac
3877  fi
3878
3879  if test : != "$DUMPBIN"; then
3880    NM=$DUMPBIN
3881  fi
3882fi
3883test -z "$NM" && NM=nm
3884
3885
3886
3887
3888
3889
3890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
3891$as_echo_n "checking the name lister ($NM) interface... " >&6; }
3892if ${lt_cv_nm_interface+:} false; then :
3893  $as_echo_n "(cached) " >&6
3894else
3895  lt_cv_nm_interface="BSD nm"
3896  echo "int some_variable = 0;" > conftest.$ac_ext
3897  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
3898  (eval "$ac_compile" 2>conftest.err)
3899  cat conftest.err >&5
3900  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3901  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3902  cat conftest.err >&5
3903  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
3904  cat conftest.out >&5
3905  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3906    lt_cv_nm_interface="MS dumpbin"
3907  fi
3908  rm -f conftest*
3909fi
3910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
3911$as_echo "$lt_cv_nm_interface" >&6; }
3912
3913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3914$as_echo_n "checking whether ln -s works... " >&6; }
3915LN_S=$as_ln_s
3916if test "$LN_S" = "ln -s"; then
3917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3918$as_echo "yes" >&6; }
3919else
3920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3921$as_echo "no, using $LN_S" >&6; }
3922fi
3923
3924# find the maximum length of command line arguments
3925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
3926$as_echo_n "checking the maximum length of command line arguments... " >&6; }
3927if ${lt_cv_sys_max_cmd_len+:} false; then :
3928  $as_echo_n "(cached) " >&6
3929else
3930    i=0
3931  teststring=ABCD
3932
3933  case $build_os in
3934  msdosdjgpp*)
3935    # On DJGPP, this test can blow up pretty badly due to problems in libc
3936    # (any single argument exceeding 2000 bytes causes a buffer overrun
3937    # during glob expansion).  Even if it were fixed, the result of this
3938    # check would be larger than it should be.
3939    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
3940    ;;
3941
3942  gnu*)
3943    # Under GNU Hurd, this test is not required because there is
3944    # no limit to the length of command line arguments.
3945    # Libtool will interpret -1 as no limit whatsoever
3946    lt_cv_sys_max_cmd_len=-1;
3947    ;;
3948
3949  cygwin* | mingw* | cegcc*)
3950    # On Win9x/ME, this test blows up -- it succeeds, but takes
3951    # about 5 minutes as the teststring grows exponentially.
3952    # Worse, since 9x/ME are not pre-emptively multitasking,
3953    # you end up with a "frozen" computer, even though with patience
3954    # the test eventually succeeds (with a max line length of 256k).
3955    # Instead, let's just punt: use the minimum linelength reported by
3956    # all of the supported platforms: 8192 (on NT/2K/XP).
3957    lt_cv_sys_max_cmd_len=8192;
3958    ;;
3959
3960  mint*)
3961    # On MiNT this can take a long time and run out of memory.
3962    lt_cv_sys_max_cmd_len=8192;
3963    ;;
3964
3965  amigaos*)
3966    # On AmigaOS with pdksh, this test takes hours, literally.
3967    # So we just punt and use a minimum line length of 8192.
3968    lt_cv_sys_max_cmd_len=8192;
3969    ;;
3970
3971  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
3972    # This has been around since 386BSD, at least.  Likely further.
3973    if test -x /sbin/sysctl; then
3974      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3975    elif test -x /usr/sbin/sysctl; then
3976      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3977    else
3978      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
3979    fi
3980    # And add a safety zone
3981    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3982    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3983    ;;
3984
3985  interix*)
3986    # We know the value 262144 and hardcode it with a safety zone (like BSD)
3987    lt_cv_sys_max_cmd_len=196608
3988    ;;
3989
3990  os2*)
3991    # The test takes a long time on OS/2.
3992    lt_cv_sys_max_cmd_len=8192
3993    ;;
3994
3995  osf*)
3996    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3997    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3998    # nice to cause kernel panics so lets avoid the loop below.
3999    # First set a reasonable default.
4000    lt_cv_sys_max_cmd_len=16384
4001    #
4002    if test -x /sbin/sysconfig; then
4003      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4004        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4005      esac
4006    fi
4007    ;;
4008  sco3.2v5*)
4009    lt_cv_sys_max_cmd_len=102400
4010    ;;
4011  sysv5* | sco5v6* | sysv4.2uw2*)
4012    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4013    if test -n "$kargmax"; then
4014      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4015    else
4016      lt_cv_sys_max_cmd_len=32768
4017    fi
4018    ;;
4019  *)
4020    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4021    if test -n "$lt_cv_sys_max_cmd_len" && \
4022       test undefined != "$lt_cv_sys_max_cmd_len"; then
4023      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4024      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4025    else
4026      # Make teststring a little bigger before we do anything with it.
4027      # a 1K string should be a reasonable start.
4028      for i in 1 2 3 4 5 6 7 8; do
4029        teststring=$teststring$teststring
4030      done
4031      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4032      # If test is not a shell built-in, we'll probably end up computing a
4033      # maximum length that is only half of the actual maximum length, but
4034      # we can't tell.
4035      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4036	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4037	      test 17 != "$i" # 1/2 MB should be enough
4038      do
4039        i=`expr $i + 1`
4040        teststring=$teststring$teststring
4041      done
4042      # Only check the string length outside the loop.
4043      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4044      teststring=
4045      # Add a significant safety factor because C++ compilers can tack on
4046      # massive amounts of additional arguments before passing them to the
4047      # linker.  It appears as though 1/2 is a usable value.
4048      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4049    fi
4050    ;;
4051  esac
4052
4053fi
4054
4055if test -n "$lt_cv_sys_max_cmd_len"; then
4056  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4057$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4058else
4059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4060$as_echo "none" >&6; }
4061fi
4062max_cmd_len=$lt_cv_sys_max_cmd_len
4063
4064
4065
4066
4067
4068
4069: ${CP="cp -f"}
4070: ${MV="mv -f"}
4071: ${RM="rm -f"}
4072
4073if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4074  lt_unset=unset
4075else
4076  lt_unset=false
4077fi
4078
4079
4080
4081
4082
4083# test EBCDIC or ASCII
4084case `echo X|tr X '\101'` in
4085 A) # ASCII based system
4086    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4087  lt_SP2NL='tr \040 \012'
4088  lt_NL2SP='tr \015\012 \040\040'
4089  ;;
4090 *) # EBCDIC based system
4091  lt_SP2NL='tr \100 \n'
4092  lt_NL2SP='tr \r\n \100\100'
4093  ;;
4094esac
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4105$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4106if ${lt_cv_to_host_file_cmd+:} false; then :
4107  $as_echo_n "(cached) " >&6
4108else
4109  case $host in
4110  *-*-mingw* )
4111    case $build in
4112      *-*-mingw* ) # actually msys
4113        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4114        ;;
4115      *-*-cygwin* )
4116        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4117        ;;
4118      * ) # otherwise, assume *nix
4119        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4120        ;;
4121    esac
4122    ;;
4123  *-*-cygwin* )
4124    case $build in
4125      *-*-mingw* ) # actually msys
4126        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4127        ;;
4128      *-*-cygwin* )
4129        lt_cv_to_host_file_cmd=func_convert_file_noop
4130        ;;
4131      * ) # otherwise, assume *nix
4132        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4133        ;;
4134    esac
4135    ;;
4136  * ) # unhandled hosts (and "normal" native builds)
4137    lt_cv_to_host_file_cmd=func_convert_file_noop
4138    ;;
4139esac
4140
4141fi
4142
4143to_host_file_cmd=$lt_cv_to_host_file_cmd
4144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4145$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4146
4147
4148
4149
4150
4151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4152$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4153if ${lt_cv_to_tool_file_cmd+:} false; then :
4154  $as_echo_n "(cached) " >&6
4155else
4156  #assume ordinary cross tools, or native build.
4157lt_cv_to_tool_file_cmd=func_convert_file_noop
4158case $host in
4159  *-*-mingw* )
4160    case $build in
4161      *-*-mingw* ) # actually msys
4162        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4163        ;;
4164    esac
4165    ;;
4166esac
4167
4168fi
4169
4170to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4172$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4173
4174
4175
4176
4177
4178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4179$as_echo_n "checking for $LD option to reload object files... " >&6; }
4180if ${lt_cv_ld_reload_flag+:} false; then :
4181  $as_echo_n "(cached) " >&6
4182else
4183  lt_cv_ld_reload_flag='-r'
4184fi
4185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4186$as_echo "$lt_cv_ld_reload_flag" >&6; }
4187reload_flag=$lt_cv_ld_reload_flag
4188case $reload_flag in
4189"" | " "*) ;;
4190*) reload_flag=" $reload_flag" ;;
4191esac
4192reload_cmds='$LD$reload_flag -o $output$reload_objs'
4193case $host_os in
4194  cygwin* | mingw* | pw32* | cegcc*)
4195    if test yes != "$GCC"; then
4196      reload_cmds=false
4197    fi
4198    ;;
4199  darwin*)
4200    if test yes = "$GCC"; then
4201      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
4202    else
4203      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4204    fi
4205    ;;
4206esac
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216if test -n "$ac_tool_prefix"; then
4217  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4218set dummy ${ac_tool_prefix}objdump; ac_word=$2
4219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4220$as_echo_n "checking for $ac_word... " >&6; }
4221if ${ac_cv_prog_OBJDUMP+:} false; then :
4222  $as_echo_n "(cached) " >&6
4223else
4224  if test -n "$OBJDUMP"; then
4225  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4226else
4227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4228for as_dir in $PATH
4229do
4230  IFS=$as_save_IFS
4231  test -z "$as_dir" && as_dir=.
4232    for ac_exec_ext in '' $ac_executable_extensions; do
4233  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4234    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4235    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4236    break 2
4237  fi
4238done
4239  done
4240IFS=$as_save_IFS
4241
4242fi
4243fi
4244OBJDUMP=$ac_cv_prog_OBJDUMP
4245if test -n "$OBJDUMP"; then
4246  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4247$as_echo "$OBJDUMP" >&6; }
4248else
4249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4250$as_echo "no" >&6; }
4251fi
4252
4253
4254fi
4255if test -z "$ac_cv_prog_OBJDUMP"; then
4256  ac_ct_OBJDUMP=$OBJDUMP
4257  # Extract the first word of "objdump", so it can be a program name with args.
4258set dummy objdump; ac_word=$2
4259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4260$as_echo_n "checking for $ac_word... " >&6; }
4261if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4262  $as_echo_n "(cached) " >&6
4263else
4264  if test -n "$ac_ct_OBJDUMP"; then
4265  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4266else
4267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4268for as_dir in $PATH
4269do
4270  IFS=$as_save_IFS
4271  test -z "$as_dir" && as_dir=.
4272    for ac_exec_ext in '' $ac_executable_extensions; do
4273  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4274    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4275    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4276    break 2
4277  fi
4278done
4279  done
4280IFS=$as_save_IFS
4281
4282fi
4283fi
4284ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4285if test -n "$ac_ct_OBJDUMP"; then
4286  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4287$as_echo "$ac_ct_OBJDUMP" >&6; }
4288else
4289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4290$as_echo "no" >&6; }
4291fi
4292
4293  if test "x$ac_ct_OBJDUMP" = x; then
4294    OBJDUMP="false"
4295  else
4296    case $cross_compiling:$ac_tool_warned in
4297yes:)
4298{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4299$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4300ac_tool_warned=yes ;;
4301esac
4302    OBJDUMP=$ac_ct_OBJDUMP
4303  fi
4304else
4305  OBJDUMP="$ac_cv_prog_OBJDUMP"
4306fi
4307
4308test -z "$OBJDUMP" && OBJDUMP=objdump
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4319$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4320if ${lt_cv_deplibs_check_method+:} false; then :
4321  $as_echo_n "(cached) " >&6
4322else
4323  lt_cv_file_magic_cmd='$MAGIC_CMD'
4324lt_cv_file_magic_test_file=
4325lt_cv_deplibs_check_method='unknown'
4326# Need to set the preceding variable on all platforms that support
4327# interlibrary dependencies.
4328# 'none' -- dependencies not supported.
4329# 'unknown' -- same as none, but documents that we really don't know.
4330# 'pass_all' -- all dependencies passed with no checks.
4331# 'test_compile' -- check by making test program.
4332# 'file_magic [[regex]]' -- check by looking for files in library path
4333# that responds to the $file_magic_cmd with a given extended regex.
4334# If you have 'file' or equivalent on your system and you're not sure
4335# whether 'pass_all' will *always* work, you probably want this one.
4336
4337case $host_os in
4338aix[4-9]*)
4339  lt_cv_deplibs_check_method=pass_all
4340  ;;
4341
4342beos*)
4343  lt_cv_deplibs_check_method=pass_all
4344  ;;
4345
4346bsdi[45]*)
4347  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4348  lt_cv_file_magic_cmd='/usr/bin/file -L'
4349  lt_cv_file_magic_test_file=/shlib/libc.so
4350  ;;
4351
4352cygwin*)
4353  # func_win32_libid is a shell function defined in ltmain.sh
4354  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4355  lt_cv_file_magic_cmd='func_win32_libid'
4356  ;;
4357
4358mingw* | pw32*)
4359  # Base MSYS/MinGW do not provide the 'file' command needed by
4360  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4361  # unless we find 'file', for example because we are cross-compiling.
4362  if ( file / ) >/dev/null 2>&1; then
4363    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4364    lt_cv_file_magic_cmd='func_win32_libid'
4365  else
4366    # Keep this pattern in sync with the one in func_win32_libid.
4367    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4368    lt_cv_file_magic_cmd='$OBJDUMP -f'
4369  fi
4370  ;;
4371
4372cegcc*)
4373  # use the weaker test based on 'objdump'. See mingw*.
4374  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4375  lt_cv_file_magic_cmd='$OBJDUMP -f'
4376  ;;
4377
4378darwin* | rhapsody*)
4379  lt_cv_deplibs_check_method=pass_all
4380  ;;
4381
4382freebsd* | dragonfly*)
4383  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4384    case $host_cpu in
4385    i*86 )
4386      # Not sure whether the presence of OpenBSD here was a mistake.
4387      # Let's accept both of them until this is cleared up.
4388      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4389      lt_cv_file_magic_cmd=/usr/bin/file
4390      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4391      ;;
4392    esac
4393  else
4394    lt_cv_deplibs_check_method=pass_all
4395  fi
4396  ;;
4397
4398haiku*)
4399  lt_cv_deplibs_check_method=pass_all
4400  ;;
4401
4402hpux10.20* | hpux11*)
4403  lt_cv_file_magic_cmd=/usr/bin/file
4404  case $host_cpu in
4405  ia64*)
4406    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4407    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4408    ;;
4409  hppa*64*)
4410    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]'
4411    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4412    ;;
4413  *)
4414    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4415    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4416    ;;
4417  esac
4418  ;;
4419
4420interix[3-9]*)
4421  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4422  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4423  ;;
4424
4425irix5* | irix6* | nonstopux*)
4426  case $LD in
4427  *-32|*"-32 ") libmagic=32-bit;;
4428  *-n32|*"-n32 ") libmagic=N32;;
4429  *-64|*"-64 ") libmagic=64-bit;;
4430  *) libmagic=never-match;;
4431  esac
4432  lt_cv_deplibs_check_method=pass_all
4433  ;;
4434
4435# This must be glibc/ELF.
4436linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4437  lt_cv_deplibs_check_method=pass_all
4438  ;;
4439
4440netbsd*)
4441  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4442    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4443  else
4444    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4445  fi
4446  ;;
4447
4448newos6*)
4449  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4450  lt_cv_file_magic_cmd=/usr/bin/file
4451  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4452  ;;
4453
4454*nto* | *qnx*)
4455  lt_cv_deplibs_check_method=pass_all
4456  ;;
4457
4458openbsd* | bitrig*)
4459  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
4460    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4461  else
4462    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4463  fi
4464  ;;
4465
4466osf3* | osf4* | osf5*)
4467  lt_cv_deplibs_check_method=pass_all
4468  ;;
4469
4470rdos*)
4471  lt_cv_deplibs_check_method=pass_all
4472  ;;
4473
4474solaris*)
4475  lt_cv_deplibs_check_method=pass_all
4476  ;;
4477
4478sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4479  lt_cv_deplibs_check_method=pass_all
4480  ;;
4481
4482sysv4 | sysv4.3*)
4483  case $host_vendor in
4484  motorola)
4485    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]'
4486    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4487    ;;
4488  ncr)
4489    lt_cv_deplibs_check_method=pass_all
4490    ;;
4491  sequent)
4492    lt_cv_file_magic_cmd='/bin/file'
4493    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4494    ;;
4495  sni)
4496    lt_cv_file_magic_cmd='/bin/file'
4497    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4498    lt_cv_file_magic_test_file=/lib/libc.so
4499    ;;
4500  siemens)
4501    lt_cv_deplibs_check_method=pass_all
4502    ;;
4503  pc)
4504    lt_cv_deplibs_check_method=pass_all
4505    ;;
4506  esac
4507  ;;
4508
4509tpf*)
4510  lt_cv_deplibs_check_method=pass_all
4511  ;;
4512os2*)
4513  lt_cv_deplibs_check_method=pass_all
4514  ;;
4515esac
4516
4517fi
4518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4519$as_echo "$lt_cv_deplibs_check_method" >&6; }
4520
4521file_magic_glob=
4522want_nocaseglob=no
4523if test "$build" = "$host"; then
4524  case $host_os in
4525  mingw* | pw32*)
4526    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4527      want_nocaseglob=yes
4528    else
4529      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
4530    fi
4531    ;;
4532  esac
4533fi
4534
4535file_magic_cmd=$lt_cv_file_magic_cmd
4536deplibs_check_method=$lt_cv_deplibs_check_method
4537test -z "$deplibs_check_method" && deplibs_check_method=unknown
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560if test -n "$ac_tool_prefix"; then
4561  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4562set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4564$as_echo_n "checking for $ac_word... " >&6; }
4565if ${ac_cv_prog_DLLTOOL+:} false; then :
4566  $as_echo_n "(cached) " >&6
4567else
4568  if test -n "$DLLTOOL"; then
4569  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4570else
4571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4572for as_dir in $PATH
4573do
4574  IFS=$as_save_IFS
4575  test -z "$as_dir" && as_dir=.
4576    for ac_exec_ext in '' $ac_executable_extensions; do
4577  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4578    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4579    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4580    break 2
4581  fi
4582done
4583  done
4584IFS=$as_save_IFS
4585
4586fi
4587fi
4588DLLTOOL=$ac_cv_prog_DLLTOOL
4589if test -n "$DLLTOOL"; then
4590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4591$as_echo "$DLLTOOL" >&6; }
4592else
4593  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4594$as_echo "no" >&6; }
4595fi
4596
4597
4598fi
4599if test -z "$ac_cv_prog_DLLTOOL"; then
4600  ac_ct_DLLTOOL=$DLLTOOL
4601  # Extract the first word of "dlltool", so it can be a program name with args.
4602set dummy dlltool; ac_word=$2
4603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4604$as_echo_n "checking for $ac_word... " >&6; }
4605if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4606  $as_echo_n "(cached) " >&6
4607else
4608  if test -n "$ac_ct_DLLTOOL"; then
4609  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4610else
4611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4612for as_dir in $PATH
4613do
4614  IFS=$as_save_IFS
4615  test -z "$as_dir" && as_dir=.
4616    for ac_exec_ext in '' $ac_executable_extensions; do
4617  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4618    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4619    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4620    break 2
4621  fi
4622done
4623  done
4624IFS=$as_save_IFS
4625
4626fi
4627fi
4628ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4629if test -n "$ac_ct_DLLTOOL"; then
4630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4631$as_echo "$ac_ct_DLLTOOL" >&6; }
4632else
4633  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4634$as_echo "no" >&6; }
4635fi
4636
4637  if test "x$ac_ct_DLLTOOL" = x; then
4638    DLLTOOL="false"
4639  else
4640    case $cross_compiling:$ac_tool_warned in
4641yes:)
4642{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4643$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4644ac_tool_warned=yes ;;
4645esac
4646    DLLTOOL=$ac_ct_DLLTOOL
4647  fi
4648else
4649  DLLTOOL="$ac_cv_prog_DLLTOOL"
4650fi
4651
4652test -z "$DLLTOOL" && DLLTOOL=dlltool
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
4664$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
4665if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
4666  $as_echo_n "(cached) " >&6
4667else
4668  lt_cv_sharedlib_from_linklib_cmd='unknown'
4669
4670case $host_os in
4671cygwin* | mingw* | pw32* | cegcc*)
4672  # two different shell functions defined in ltmain.sh;
4673  # decide which one to use based on capabilities of $DLLTOOL
4674  case `$DLLTOOL --help 2>&1` in
4675  *--identify-strict*)
4676    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
4677    ;;
4678  *)
4679    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
4680    ;;
4681  esac
4682  ;;
4683*)
4684  # fallback: assume linklib IS sharedlib
4685  lt_cv_sharedlib_from_linklib_cmd=$ECHO
4686  ;;
4687esac
4688
4689fi
4690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
4691$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
4692sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
4693test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
4694
4695
4696
4697
4698
4699
4700
4701
4702if test -n "$ac_tool_prefix"; then
4703  for ac_prog in ar
4704  do
4705    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4706set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4708$as_echo_n "checking for $ac_word... " >&6; }
4709if ${ac_cv_prog_AR+:} false; then :
4710  $as_echo_n "(cached) " >&6
4711else
4712  if test -n "$AR"; then
4713  ac_cv_prog_AR="$AR" # Let the user override the test.
4714else
4715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4716for as_dir in $PATH
4717do
4718  IFS=$as_save_IFS
4719  test -z "$as_dir" && as_dir=.
4720    for ac_exec_ext in '' $ac_executable_extensions; do
4721  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4722    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4723    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4724    break 2
4725  fi
4726done
4727  done
4728IFS=$as_save_IFS
4729
4730fi
4731fi
4732AR=$ac_cv_prog_AR
4733if test -n "$AR"; then
4734  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4735$as_echo "$AR" >&6; }
4736else
4737  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4738$as_echo "no" >&6; }
4739fi
4740
4741
4742    test -n "$AR" && break
4743  done
4744fi
4745if test -z "$AR"; then
4746  ac_ct_AR=$AR
4747  for ac_prog in ar
4748do
4749  # Extract the first word of "$ac_prog", so it can be a program name with args.
4750set dummy $ac_prog; ac_word=$2
4751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4752$as_echo_n "checking for $ac_word... " >&6; }
4753if ${ac_cv_prog_ac_ct_AR+:} false; then :
4754  $as_echo_n "(cached) " >&6
4755else
4756  if test -n "$ac_ct_AR"; then
4757  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4758else
4759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4760for as_dir in $PATH
4761do
4762  IFS=$as_save_IFS
4763  test -z "$as_dir" && as_dir=.
4764    for ac_exec_ext in '' $ac_executable_extensions; do
4765  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4766    ac_cv_prog_ac_ct_AR="$ac_prog"
4767    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4768    break 2
4769  fi
4770done
4771  done
4772IFS=$as_save_IFS
4773
4774fi
4775fi
4776ac_ct_AR=$ac_cv_prog_ac_ct_AR
4777if test -n "$ac_ct_AR"; then
4778  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4779$as_echo "$ac_ct_AR" >&6; }
4780else
4781  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4782$as_echo "no" >&6; }
4783fi
4784
4785
4786  test -n "$ac_ct_AR" && break
4787done
4788
4789  if test "x$ac_ct_AR" = x; then
4790    AR="false"
4791  else
4792    case $cross_compiling:$ac_tool_warned in
4793yes:)
4794{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4795$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4796ac_tool_warned=yes ;;
4797esac
4798    AR=$ac_ct_AR
4799  fi
4800fi
4801
4802: ${AR=ar}
4803: ${AR_FLAGS=cru}
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
4816$as_echo_n "checking for archiver @FILE support... " >&6; }
4817if ${lt_cv_ar_at_file+:} false; then :
4818  $as_echo_n "(cached) " >&6
4819else
4820  lt_cv_ar_at_file=no
4821   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4822/* end confdefs.h.  */
4823
4824int
4825main ()
4826{
4827
4828  ;
4829  return 0;
4830}
4831_ACEOF
4832if ac_fn_c_try_compile "$LINENO"; then :
4833  echo conftest.$ac_objext > conftest.lst
4834      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
4835      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
4836  (eval $lt_ar_try) 2>&5
4837  ac_status=$?
4838  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4839  test $ac_status = 0; }
4840      if test 0 -eq "$ac_status"; then
4841	# Ensure the archiver fails upon bogus file names.
4842	rm -f conftest.$ac_objext libconftest.a
4843	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
4844  (eval $lt_ar_try) 2>&5
4845  ac_status=$?
4846  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4847  test $ac_status = 0; }
4848	if test 0 -ne "$ac_status"; then
4849          lt_cv_ar_at_file=@
4850        fi
4851      fi
4852      rm -f conftest.* libconftest.a
4853
4854fi
4855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4856
4857fi
4858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
4859$as_echo "$lt_cv_ar_at_file" >&6; }
4860
4861if test no = "$lt_cv_ar_at_file"; then
4862  archiver_list_spec=
4863else
4864  archiver_list_spec=$lt_cv_ar_at_file
4865fi
4866
4867
4868
4869
4870
4871
4872
4873if test -n "$ac_tool_prefix"; then
4874  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4875set dummy ${ac_tool_prefix}strip; ac_word=$2
4876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4877$as_echo_n "checking for $ac_word... " >&6; }
4878if ${ac_cv_prog_STRIP+:} false; then :
4879  $as_echo_n "(cached) " >&6
4880else
4881  if test -n "$STRIP"; then
4882  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4883else
4884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4885for as_dir in $PATH
4886do
4887  IFS=$as_save_IFS
4888  test -z "$as_dir" && as_dir=.
4889    for ac_exec_ext in '' $ac_executable_extensions; do
4890  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4891    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4892    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4893    break 2
4894  fi
4895done
4896  done
4897IFS=$as_save_IFS
4898
4899fi
4900fi
4901STRIP=$ac_cv_prog_STRIP
4902if test -n "$STRIP"; then
4903  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4904$as_echo "$STRIP" >&6; }
4905else
4906  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4907$as_echo "no" >&6; }
4908fi
4909
4910
4911fi
4912if test -z "$ac_cv_prog_STRIP"; then
4913  ac_ct_STRIP=$STRIP
4914  # Extract the first word of "strip", so it can be a program name with args.
4915set dummy strip; ac_word=$2
4916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4917$as_echo_n "checking for $ac_word... " >&6; }
4918if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4919  $as_echo_n "(cached) " >&6
4920else
4921  if test -n "$ac_ct_STRIP"; then
4922  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4923else
4924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4925for as_dir in $PATH
4926do
4927  IFS=$as_save_IFS
4928  test -z "$as_dir" && as_dir=.
4929    for ac_exec_ext in '' $ac_executable_extensions; do
4930  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4931    ac_cv_prog_ac_ct_STRIP="strip"
4932    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4933    break 2
4934  fi
4935done
4936  done
4937IFS=$as_save_IFS
4938
4939fi
4940fi
4941ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4942if test -n "$ac_ct_STRIP"; then
4943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4944$as_echo "$ac_ct_STRIP" >&6; }
4945else
4946  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4947$as_echo "no" >&6; }
4948fi
4949
4950  if test "x$ac_ct_STRIP" = x; then
4951    STRIP=":"
4952  else
4953    case $cross_compiling:$ac_tool_warned in
4954yes:)
4955{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4956$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4957ac_tool_warned=yes ;;
4958esac
4959    STRIP=$ac_ct_STRIP
4960  fi
4961else
4962  STRIP="$ac_cv_prog_STRIP"
4963fi
4964
4965test -z "$STRIP" && STRIP=:
4966
4967
4968
4969
4970
4971
4972if test -n "$ac_tool_prefix"; then
4973  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4974set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4976$as_echo_n "checking for $ac_word... " >&6; }
4977if ${ac_cv_prog_RANLIB+:} false; then :
4978  $as_echo_n "(cached) " >&6
4979else
4980  if test -n "$RANLIB"; then
4981  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4982else
4983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4984for as_dir in $PATH
4985do
4986  IFS=$as_save_IFS
4987  test -z "$as_dir" && as_dir=.
4988    for ac_exec_ext in '' $ac_executable_extensions; do
4989  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4990    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4991    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4992    break 2
4993  fi
4994done
4995  done
4996IFS=$as_save_IFS
4997
4998fi
4999fi
5000RANLIB=$ac_cv_prog_RANLIB
5001if test -n "$RANLIB"; then
5002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5003$as_echo "$RANLIB" >&6; }
5004else
5005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5006$as_echo "no" >&6; }
5007fi
5008
5009
5010fi
5011if test -z "$ac_cv_prog_RANLIB"; then
5012  ac_ct_RANLIB=$RANLIB
5013  # Extract the first word of "ranlib", so it can be a program name with args.
5014set dummy ranlib; ac_word=$2
5015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5016$as_echo_n "checking for $ac_word... " >&6; }
5017if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5018  $as_echo_n "(cached) " >&6
5019else
5020  if test -n "$ac_ct_RANLIB"; then
5021  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5022else
5023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5024for as_dir in $PATH
5025do
5026  IFS=$as_save_IFS
5027  test -z "$as_dir" && as_dir=.
5028    for ac_exec_ext in '' $ac_executable_extensions; do
5029  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5030    ac_cv_prog_ac_ct_RANLIB="ranlib"
5031    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5032    break 2
5033  fi
5034done
5035  done
5036IFS=$as_save_IFS
5037
5038fi
5039fi
5040ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5041if test -n "$ac_ct_RANLIB"; then
5042  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5043$as_echo "$ac_ct_RANLIB" >&6; }
5044else
5045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5046$as_echo "no" >&6; }
5047fi
5048
5049  if test "x$ac_ct_RANLIB" = x; then
5050    RANLIB=":"
5051  else
5052    case $cross_compiling:$ac_tool_warned in
5053yes:)
5054{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5055$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5056ac_tool_warned=yes ;;
5057esac
5058    RANLIB=$ac_ct_RANLIB
5059  fi
5060else
5061  RANLIB="$ac_cv_prog_RANLIB"
5062fi
5063
5064test -z "$RANLIB" && RANLIB=:
5065
5066
5067
5068
5069
5070
5071# Determine commands to create old-style static archives.
5072old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5073old_postinstall_cmds='chmod 644 $oldlib'
5074old_postuninstall_cmds=
5075
5076if test -n "$RANLIB"; then
5077  case $host_os in
5078  bitrig* | openbsd*)
5079    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5080    ;;
5081  *)
5082    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5083    ;;
5084  esac
5085  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5086fi
5087
5088case $host_os in
5089  darwin*)
5090    lock_old_archive_extraction=yes ;;
5091  *)
5092    lock_old_archive_extraction=no ;;
5093esac
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115for ac_prog in gawk mawk nawk awk
5116do
5117  # Extract the first word of "$ac_prog", so it can be a program name with args.
5118set dummy $ac_prog; ac_word=$2
5119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5120$as_echo_n "checking for $ac_word... " >&6; }
5121if ${ac_cv_prog_AWK+:} false; then :
5122  $as_echo_n "(cached) " >&6
5123else
5124  if test -n "$AWK"; then
5125  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5126else
5127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5128for as_dir in $PATH
5129do
5130  IFS=$as_save_IFS
5131  test -z "$as_dir" && as_dir=.
5132    for ac_exec_ext in '' $ac_executable_extensions; do
5133  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5134    ac_cv_prog_AWK="$ac_prog"
5135    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5136    break 2
5137  fi
5138done
5139  done
5140IFS=$as_save_IFS
5141
5142fi
5143fi
5144AWK=$ac_cv_prog_AWK
5145if test -n "$AWK"; then
5146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5147$as_echo "$AWK" >&6; }
5148else
5149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5150$as_echo "no" >&6; }
5151fi
5152
5153
5154  test -n "$AWK" && break
5155done
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175# If no C compiler was specified, use CC.
5176LTCC=${LTCC-"$CC"}
5177
5178# If no C compiler flags were specified, use CFLAGS.
5179LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5180
5181# Allow CC to be a program name with arguments.
5182compiler=$CC
5183
5184
5185# Check for command to grab the raw symbol name followed by C symbol from nm.
5186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5187$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5188if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5189  $as_echo_n "(cached) " >&6
5190else
5191
5192# These are sane defaults that work on at least a few old systems.
5193# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5194
5195# Character class describing NM global symbol codes.
5196symcode='[BCDEGRST]'
5197
5198# Regexp to match symbols that can be accessed directly from C.
5199sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5200
5201# Define system-specific variables.
5202case $host_os in
5203aix*)
5204  symcode='[BCDT]'
5205  ;;
5206cygwin* | mingw* | pw32* | cegcc*)
5207  symcode='[ABCDGISTW]'
5208  ;;
5209hpux*)
5210  if test ia64 = "$host_cpu"; then
5211    symcode='[ABCDEGRST]'
5212  fi
5213  ;;
5214irix* | nonstopux*)
5215  symcode='[BCDEGRST]'
5216  ;;
5217osf*)
5218  symcode='[BCDEGQRST]'
5219  ;;
5220solaris*)
5221  symcode='[BDRT]'
5222  ;;
5223sco3.2v5*)
5224  symcode='[DT]'
5225  ;;
5226sysv4.2uw2*)
5227  symcode='[DT]'
5228  ;;
5229sysv5* | sco5v6* | unixware* | OpenUNIX*)
5230  symcode='[ABDT]'
5231  ;;
5232sysv4)
5233  symcode='[DFNSTU]'
5234  ;;
5235esac
5236
5237# If we're using GNU nm, then use its standard symbol codes.
5238case `$NM -V 2>&1` in
5239*GNU* | *'with BFD'*)
5240  symcode='[ABCDGIRSTW]' ;;
5241esac
5242
5243if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5244  # Gets list of data symbols to import.
5245  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
5246  # Adjust the below global symbol transforms to fixup imported variables.
5247  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
5248  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
5249  lt_c_name_lib_hook="\
5250  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
5251  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
5252else
5253  # Disable hooks by default.
5254  lt_cv_sys_global_symbol_to_import=
5255  lt_cdecl_hook=
5256  lt_c_name_hook=
5257  lt_c_name_lib_hook=
5258fi
5259
5260# Transform an extracted symbol line into a proper C declaration.
5261# Some systems (esp. on ia64) link data and code symbols differently,
5262# so use this general approach.
5263lt_cv_sys_global_symbol_to_cdecl="sed -n"\
5264$lt_cdecl_hook\
5265" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
5266" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
5267
5268# Transform an extracted symbol line into symbol name and symbol address
5269lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
5270$lt_c_name_hook\
5271" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
5272" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
5273
5274# Transform an extracted symbol line into symbol name with lib prefix and
5275# symbol address.
5276lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
5277$lt_c_name_lib_hook\
5278" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
5279" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
5280" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
5281
5282# Handle CRLF in mingw tool chain
5283opt_cr=
5284case $build_os in
5285mingw*)
5286  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5287  ;;
5288esac
5289
5290# Try without a prefix underscore, then with it.
5291for ac_symprfx in "" "_"; do
5292
5293  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5294  symxfrm="\\1 $ac_symprfx\\2 \\2"
5295
5296  # Write the raw and C identifiers.
5297  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5298    # Fake it for dumpbin and say T for any non-static function,
5299    # D for any global variable and I for any imported variable.
5300    # Also find C++ and __fastcall symbols from MSVC++,
5301    # which start with @ or ?.
5302    lt_cv_sys_global_symbol_pipe="$AWK '"\
5303"     {last_section=section; section=\$ 3};"\
5304"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5305"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5306"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
5307"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
5308"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
5309"     \$ 0!~/External *\|/{next};"\
5310"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5311"     {if(hide[section]) next};"\
5312"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
5313"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
5314"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
5315"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
5316"     ' prfx=^$ac_symprfx"
5317  else
5318    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5319  fi
5320  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5321
5322  # Check to see that the pipe works correctly.
5323  pipe_works=no
5324
5325  rm -f conftest*
5326  cat > conftest.$ac_ext <<_LT_EOF
5327#ifdef __cplusplus
5328extern "C" {
5329#endif
5330char nm_test_var;
5331void nm_test_func(void);
5332void nm_test_func(void){}
5333#ifdef __cplusplus
5334}
5335#endif
5336int main(){nm_test_var='a';nm_test_func();return(0);}
5337_LT_EOF
5338
5339  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5340  (eval $ac_compile) 2>&5
5341  ac_status=$?
5342  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5343  test $ac_status = 0; }; then
5344    # Now try to grab the symbols.
5345    nlist=conftest.nm
5346    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5347  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5348  ac_status=$?
5349  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5350  test $ac_status = 0; } && test -s "$nlist"; then
5351      # Try sorting and uniquifying the output.
5352      if sort "$nlist" | uniq > "$nlist"T; then
5353	mv -f "$nlist"T "$nlist"
5354      else
5355	rm -f "$nlist"T
5356      fi
5357
5358      # Make sure that we snagged all the symbols we need.
5359      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5360	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5361	  cat <<_LT_EOF > conftest.$ac_ext
5362/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
5363#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
5364/* DATA imports from DLLs on WIN32 can't be const, because runtime
5365   relocations are performed -- see ld's documentation on pseudo-relocs.  */
5366# define LT_DLSYM_CONST
5367#elif defined __osf__
5368/* This system does not cope well with relocations in const data.  */
5369# define LT_DLSYM_CONST
5370#else
5371# define LT_DLSYM_CONST const
5372#endif
5373
5374#ifdef __cplusplus
5375extern "C" {
5376#endif
5377
5378_LT_EOF
5379	  # Now generate the symbol file.
5380	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5381
5382	  cat <<_LT_EOF >> conftest.$ac_ext
5383
5384/* The mapping between symbol names and symbols.  */
5385LT_DLSYM_CONST struct {
5386  const char *name;
5387  void       *address;
5388}
5389lt__PROGRAM__LTX_preloaded_symbols[] =
5390{
5391  { "@PROGRAM@", (void *) 0 },
5392_LT_EOF
5393	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5394	  cat <<\_LT_EOF >> conftest.$ac_ext
5395  {0, (void *) 0}
5396};
5397
5398/* This works around a problem in FreeBSD linker */
5399#ifdef FREEBSD_WORKAROUND
5400static const void *lt_preloaded_setup() {
5401  return lt__PROGRAM__LTX_preloaded_symbols;
5402}
5403#endif
5404
5405#ifdef __cplusplus
5406}
5407#endif
5408_LT_EOF
5409	  # Now try linking the two files.
5410	  mv conftest.$ac_objext conftstm.$ac_objext
5411	  lt_globsym_save_LIBS=$LIBS
5412	  lt_globsym_save_CFLAGS=$CFLAGS
5413	  LIBS=conftstm.$ac_objext
5414	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5415	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5416  (eval $ac_link) 2>&5
5417  ac_status=$?
5418  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5419  test $ac_status = 0; } && test -s conftest$ac_exeext; then
5420	    pipe_works=yes
5421	  fi
5422	  LIBS=$lt_globsym_save_LIBS
5423	  CFLAGS=$lt_globsym_save_CFLAGS
5424	else
5425	  echo "cannot find nm_test_func in $nlist" >&5
5426	fi
5427      else
5428	echo "cannot find nm_test_var in $nlist" >&5
5429      fi
5430    else
5431      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5432    fi
5433  else
5434    echo "$progname: failed program was:" >&5
5435    cat conftest.$ac_ext >&5
5436  fi
5437  rm -rf conftest* conftst*
5438
5439  # Do not use the global_symbol_pipe unless it works.
5440  if test yes = "$pipe_works"; then
5441    break
5442  else
5443    lt_cv_sys_global_symbol_pipe=
5444  fi
5445done
5446
5447fi
5448
5449if test -z "$lt_cv_sys_global_symbol_pipe"; then
5450  lt_cv_sys_global_symbol_to_cdecl=
5451fi
5452if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5453  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5454$as_echo "failed" >&6; }
5455else
5456  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5457$as_echo "ok" >&6; }
5458fi
5459
5460# Response file support.
5461if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5462  nm_file_list_spec='@'
5463elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5464  nm_file_list_spec='@'
5465fi
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5504$as_echo_n "checking for sysroot... " >&6; }
5505
5506# Check whether --with-sysroot was given.
5507if test "${with_sysroot+set}" = set; then :
5508  withval=$with_sysroot;
5509else
5510  with_sysroot=no
5511fi
5512
5513
5514lt_sysroot=
5515case $with_sysroot in #(
5516 yes)
5517   if test yes = "$GCC"; then
5518     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5519   fi
5520   ;; #(
5521 /*)
5522   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5523   ;; #(
5524 no|'')
5525   ;; #(
5526 *)
5527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
5528$as_echo "$with_sysroot" >&6; }
5529   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5530   ;;
5531esac
5532
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5534$as_echo "${lt_sysroot:-no}" >&6; }
5535
5536
5537
5538
5539
5540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
5541$as_echo_n "checking for a working dd... " >&6; }
5542if ${ac_cv_path_lt_DD+:} false; then :
5543  $as_echo_n "(cached) " >&6
5544else
5545  printf 0123456789abcdef0123456789abcdef >conftest.i
5546cat conftest.i conftest.i >conftest2.i
5547: ${lt_DD:=$DD}
5548if test -z "$lt_DD"; then
5549  ac_path_lt_DD_found=false
5550  # Loop through the user's path and test for each of PROGNAME-LIST
5551  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5552for as_dir in $PATH
5553do
5554  IFS=$as_save_IFS
5555  test -z "$as_dir" && as_dir=.
5556    for ac_prog in dd; do
5557    for ac_exec_ext in '' $ac_executable_extensions; do
5558      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
5559      as_fn_executable_p "$ac_path_lt_DD" || continue
5560if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
5561  cmp -s conftest.i conftest.out \
5562  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
5563fi
5564      $ac_path_lt_DD_found && break 3
5565    done
5566  done
5567  done
5568IFS=$as_save_IFS
5569  if test -z "$ac_cv_path_lt_DD"; then
5570    :
5571  fi
5572else
5573  ac_cv_path_lt_DD=$lt_DD
5574fi
5575
5576rm -f conftest.i conftest2.i conftest.out
5577fi
5578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
5579$as_echo "$ac_cv_path_lt_DD" >&6; }
5580
5581
5582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
5583$as_echo_n "checking how to truncate binary pipes... " >&6; }
5584if ${lt_cv_truncate_bin+:} false; then :
5585  $as_echo_n "(cached) " >&6
5586else
5587  printf 0123456789abcdef0123456789abcdef >conftest.i
5588cat conftest.i conftest.i >conftest2.i
5589lt_cv_truncate_bin=
5590if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
5591  cmp -s conftest.i conftest.out \
5592  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
5593fi
5594rm -f conftest.i conftest2.i conftest.out
5595test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
5596fi
5597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
5598$as_echo "$lt_cv_truncate_bin" >&6; }
5599
5600
5601
5602
5603
5604
5605
5606# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
5607func_cc_basename ()
5608{
5609    for cc_temp in $*""; do
5610      case $cc_temp in
5611        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5612        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5613        \-*) ;;
5614        *) break;;
5615      esac
5616    done
5617    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
5618}
5619
5620# Check whether --enable-libtool-lock was given.
5621if test "${enable_libtool_lock+set}" = set; then :
5622  enableval=$enable_libtool_lock;
5623fi
5624
5625test no = "$enable_libtool_lock" || enable_libtool_lock=yes
5626
5627# Some flags need to be propagated to the compiler or linker for good
5628# libtool support.
5629case $host in
5630ia64-*-hpux*)
5631  # Find out what ABI is being produced by ac_compile, and set mode
5632  # options accordingly.
5633  echo 'int i;' > conftest.$ac_ext
5634  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5635  (eval $ac_compile) 2>&5
5636  ac_status=$?
5637  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5638  test $ac_status = 0; }; then
5639    case `/usr/bin/file conftest.$ac_objext` in
5640      *ELF-32*)
5641	HPUX_IA64_MODE=32
5642	;;
5643      *ELF-64*)
5644	HPUX_IA64_MODE=64
5645	;;
5646    esac
5647  fi
5648  rm -rf conftest*
5649  ;;
5650*-*-irix6*)
5651  # Find out what ABI is being produced by ac_compile, and set linker
5652  # options accordingly.
5653  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5654  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5655  (eval $ac_compile) 2>&5
5656  ac_status=$?
5657  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5658  test $ac_status = 0; }; then
5659    if test yes = "$lt_cv_prog_gnu_ld"; then
5660      case `/usr/bin/file conftest.$ac_objext` in
5661	*32-bit*)
5662	  LD="${LD-ld} -melf32bsmip"
5663	  ;;
5664	*N32*)
5665	  LD="${LD-ld} -melf32bmipn32"
5666	  ;;
5667	*64-bit*)
5668	  LD="${LD-ld} -melf64bmip"
5669	;;
5670      esac
5671    else
5672      case `/usr/bin/file conftest.$ac_objext` in
5673	*32-bit*)
5674	  LD="${LD-ld} -32"
5675	  ;;
5676	*N32*)
5677	  LD="${LD-ld} -n32"
5678	  ;;
5679	*64-bit*)
5680	  LD="${LD-ld} -64"
5681	  ;;
5682      esac
5683    fi
5684  fi
5685  rm -rf conftest*
5686  ;;
5687
5688mips64*-*linux*)
5689  # Find out what ABI is being produced by ac_compile, and set linker
5690  # options accordingly.
5691  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5692  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5693  (eval $ac_compile) 2>&5
5694  ac_status=$?
5695  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5696  test $ac_status = 0; }; then
5697    emul=elf
5698    case `/usr/bin/file conftest.$ac_objext` in
5699      *32-bit*)
5700	emul="${emul}32"
5701	;;
5702      *64-bit*)
5703	emul="${emul}64"
5704	;;
5705    esac
5706    case `/usr/bin/file conftest.$ac_objext` in
5707      *MSB*)
5708	emul="${emul}btsmip"
5709	;;
5710      *LSB*)
5711	emul="${emul}ltsmip"
5712	;;
5713    esac
5714    case `/usr/bin/file conftest.$ac_objext` in
5715      *N32*)
5716	emul="${emul}n32"
5717	;;
5718    esac
5719    LD="${LD-ld} -m $emul"
5720  fi
5721  rm -rf conftest*
5722  ;;
5723
5724x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
5725s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5726  # Find out what ABI is being produced by ac_compile, and set linker
5727  # options accordingly.  Note that the listed cases only cover the
5728  # situations where additional linker options are needed (such as when
5729  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
5730  # vice versa); the common cases where no linker options are needed do
5731  # not appear in the list.
5732  echo 'int i;' > conftest.$ac_ext
5733  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5734  (eval $ac_compile) 2>&5
5735  ac_status=$?
5736  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5737  test $ac_status = 0; }; then
5738    case `/usr/bin/file conftest.o` in
5739      *32-bit*)
5740	case $host in
5741	  x86_64-*kfreebsd*-gnu)
5742	    LD="${LD-ld} -m elf_i386_fbsd"
5743	    ;;
5744	  x86_64-*linux*)
5745	    case `/usr/bin/file conftest.o` in
5746	      *x86-64*)
5747		LD="${LD-ld} -m elf32_x86_64"
5748		;;
5749	      *)
5750		LD="${LD-ld} -m elf_i386"
5751		;;
5752	    esac
5753	    ;;
5754	  powerpc64le-*linux*)
5755	    LD="${LD-ld} -m elf32lppclinux"
5756	    ;;
5757	  powerpc64-*linux*)
5758	    LD="${LD-ld} -m elf32ppclinux"
5759	    ;;
5760	  s390x-*linux*)
5761	    LD="${LD-ld} -m elf_s390"
5762	    ;;
5763	  sparc64-*linux*)
5764	    LD="${LD-ld} -m elf32_sparc"
5765	    ;;
5766	esac
5767	;;
5768      *64-bit*)
5769	case $host in
5770	  x86_64-*kfreebsd*-gnu)
5771	    LD="${LD-ld} -m elf_x86_64_fbsd"
5772	    ;;
5773	  x86_64-*linux*)
5774	    LD="${LD-ld} -m elf_x86_64"
5775	    ;;
5776	  powerpcle-*linux*)
5777	    LD="${LD-ld} -m elf64lppc"
5778	    ;;
5779	  powerpc-*linux*)
5780	    LD="${LD-ld} -m elf64ppc"
5781	    ;;
5782	  s390*-*linux*|s390*-*tpf*)
5783	    LD="${LD-ld} -m elf64_s390"
5784	    ;;
5785	  sparc*-*linux*)
5786	    LD="${LD-ld} -m elf64_sparc"
5787	    ;;
5788	esac
5789	;;
5790    esac
5791  fi
5792  rm -rf conftest*
5793  ;;
5794
5795*-*-sco3.2v5*)
5796  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5797  SAVE_CFLAGS=$CFLAGS
5798  CFLAGS="$CFLAGS -belf"
5799  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5800$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5801if ${lt_cv_cc_needs_belf+:} false; then :
5802  $as_echo_n "(cached) " >&6
5803else
5804  ac_ext=c
5805ac_cpp='$CPP $CPPFLAGS'
5806ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5807ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5808ac_compiler_gnu=$ac_cv_c_compiler_gnu
5809
5810     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5811/* end confdefs.h.  */
5812
5813int
5814main ()
5815{
5816
5817  ;
5818  return 0;
5819}
5820_ACEOF
5821if ac_fn_c_try_link "$LINENO"; then :
5822  lt_cv_cc_needs_belf=yes
5823else
5824  lt_cv_cc_needs_belf=no
5825fi
5826rm -f core conftest.err conftest.$ac_objext \
5827    conftest$ac_exeext conftest.$ac_ext
5828     ac_ext=c
5829ac_cpp='$CPP $CPPFLAGS'
5830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5832ac_compiler_gnu=$ac_cv_c_compiler_gnu
5833
5834fi
5835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5836$as_echo "$lt_cv_cc_needs_belf" >&6; }
5837  if test yes != "$lt_cv_cc_needs_belf"; then
5838    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5839    CFLAGS=$SAVE_CFLAGS
5840  fi
5841  ;;
5842*-*solaris*)
5843  # Find out what ABI is being produced by ac_compile, and set linker
5844  # options accordingly.
5845  echo 'int i;' > conftest.$ac_ext
5846  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5847  (eval $ac_compile) 2>&5
5848  ac_status=$?
5849  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5850  test $ac_status = 0; }; then
5851    case `/usr/bin/file conftest.o` in
5852    *64-bit*)
5853      case $lt_cv_prog_gnu_ld in
5854      yes*)
5855        case $host in
5856        i?86-*-solaris*|x86_64-*-solaris*)
5857          LD="${LD-ld} -m elf_x86_64"
5858          ;;
5859        sparc*-*-solaris*)
5860          LD="${LD-ld} -m elf64_sparc"
5861          ;;
5862        esac
5863        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
5864        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
5865          LD=${LD-ld}_sol2
5866        fi
5867        ;;
5868      *)
5869	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5870	  LD="${LD-ld} -64"
5871	fi
5872	;;
5873      esac
5874      ;;
5875    esac
5876  fi
5877  rm -rf conftest*
5878  ;;
5879esac
5880
5881need_locks=$enable_libtool_lock
5882
5883if test -n "$ac_tool_prefix"; then
5884  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
5885set dummy ${ac_tool_prefix}mt; ac_word=$2
5886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5887$as_echo_n "checking for $ac_word... " >&6; }
5888if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
5889  $as_echo_n "(cached) " >&6
5890else
5891  if test -n "$MANIFEST_TOOL"; then
5892  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
5893else
5894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5895for as_dir in $PATH
5896do
5897  IFS=$as_save_IFS
5898  test -z "$as_dir" && as_dir=.
5899    for ac_exec_ext in '' $ac_executable_extensions; do
5900  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5901    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
5902    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5903    break 2
5904  fi
5905done
5906  done
5907IFS=$as_save_IFS
5908
5909fi
5910fi
5911MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
5912if test -n "$MANIFEST_TOOL"; then
5913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
5914$as_echo "$MANIFEST_TOOL" >&6; }
5915else
5916  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5917$as_echo "no" >&6; }
5918fi
5919
5920
5921fi
5922if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
5923  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
5924  # Extract the first word of "mt", so it can be a program name with args.
5925set dummy mt; ac_word=$2
5926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5927$as_echo_n "checking for $ac_word... " >&6; }
5928if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
5929  $as_echo_n "(cached) " >&6
5930else
5931  if test -n "$ac_ct_MANIFEST_TOOL"; then
5932  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
5933else
5934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5935for as_dir in $PATH
5936do
5937  IFS=$as_save_IFS
5938  test -z "$as_dir" && as_dir=.
5939    for ac_exec_ext in '' $ac_executable_extensions; do
5940  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5941    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
5942    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5943    break 2
5944  fi
5945done
5946  done
5947IFS=$as_save_IFS
5948
5949fi
5950fi
5951ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
5952if test -n "$ac_ct_MANIFEST_TOOL"; then
5953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
5954$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
5955else
5956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5957$as_echo "no" >&6; }
5958fi
5959
5960  if test "x$ac_ct_MANIFEST_TOOL" = x; then
5961    MANIFEST_TOOL=":"
5962  else
5963    case $cross_compiling:$ac_tool_warned in
5964yes:)
5965{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5966$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5967ac_tool_warned=yes ;;
5968esac
5969    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
5970  fi
5971else
5972  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
5973fi
5974
5975test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
5976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
5977$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
5978if ${lt_cv_path_mainfest_tool+:} false; then :
5979  $as_echo_n "(cached) " >&6
5980else
5981  lt_cv_path_mainfest_tool=no
5982  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
5983  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
5984  cat conftest.err >&5
5985  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
5986    lt_cv_path_mainfest_tool=yes
5987  fi
5988  rm -f conftest*
5989fi
5990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
5991$as_echo "$lt_cv_path_mainfest_tool" >&6; }
5992if test yes != "$lt_cv_path_mainfest_tool"; then
5993  MANIFEST_TOOL=:
5994fi
5995
5996
5997
5998
5999
6000
6001  case $host_os in
6002    rhapsody* | darwin*)
6003    if test -n "$ac_tool_prefix"; then
6004  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6005set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6007$as_echo_n "checking for $ac_word... " >&6; }
6008if ${ac_cv_prog_DSYMUTIL+:} false; then :
6009  $as_echo_n "(cached) " >&6
6010else
6011  if test -n "$DSYMUTIL"; then
6012  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6013else
6014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6015for as_dir in $PATH
6016do
6017  IFS=$as_save_IFS
6018  test -z "$as_dir" && as_dir=.
6019    for ac_exec_ext in '' $ac_executable_extensions; do
6020  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6021    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6022    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6023    break 2
6024  fi
6025done
6026  done
6027IFS=$as_save_IFS
6028
6029fi
6030fi
6031DSYMUTIL=$ac_cv_prog_DSYMUTIL
6032if test -n "$DSYMUTIL"; then
6033  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6034$as_echo "$DSYMUTIL" >&6; }
6035else
6036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6037$as_echo "no" >&6; }
6038fi
6039
6040
6041fi
6042if test -z "$ac_cv_prog_DSYMUTIL"; then
6043  ac_ct_DSYMUTIL=$DSYMUTIL
6044  # Extract the first word of "dsymutil", so it can be a program name with args.
6045set dummy dsymutil; ac_word=$2
6046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6047$as_echo_n "checking for $ac_word... " >&6; }
6048if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6049  $as_echo_n "(cached) " >&6
6050else
6051  if test -n "$ac_ct_DSYMUTIL"; then
6052  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6053else
6054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6055for as_dir in $PATH
6056do
6057  IFS=$as_save_IFS
6058  test -z "$as_dir" && as_dir=.
6059    for ac_exec_ext in '' $ac_executable_extensions; do
6060  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6061    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6062    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6063    break 2
6064  fi
6065done
6066  done
6067IFS=$as_save_IFS
6068
6069fi
6070fi
6071ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6072if test -n "$ac_ct_DSYMUTIL"; then
6073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6074$as_echo "$ac_ct_DSYMUTIL" >&6; }
6075else
6076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6077$as_echo "no" >&6; }
6078fi
6079
6080  if test "x$ac_ct_DSYMUTIL" = x; then
6081    DSYMUTIL=":"
6082  else
6083    case $cross_compiling:$ac_tool_warned in
6084yes:)
6085{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6086$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6087ac_tool_warned=yes ;;
6088esac
6089    DSYMUTIL=$ac_ct_DSYMUTIL
6090  fi
6091else
6092  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6093fi
6094
6095    if test -n "$ac_tool_prefix"; then
6096  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6097set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6099$as_echo_n "checking for $ac_word... " >&6; }
6100if ${ac_cv_prog_NMEDIT+:} false; then :
6101  $as_echo_n "(cached) " >&6
6102else
6103  if test -n "$NMEDIT"; then
6104  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6105else
6106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6107for as_dir in $PATH
6108do
6109  IFS=$as_save_IFS
6110  test -z "$as_dir" && as_dir=.
6111    for ac_exec_ext in '' $ac_executable_extensions; do
6112  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6113    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6114    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6115    break 2
6116  fi
6117done
6118  done
6119IFS=$as_save_IFS
6120
6121fi
6122fi
6123NMEDIT=$ac_cv_prog_NMEDIT
6124if test -n "$NMEDIT"; then
6125  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6126$as_echo "$NMEDIT" >&6; }
6127else
6128  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6129$as_echo "no" >&6; }
6130fi
6131
6132
6133fi
6134if test -z "$ac_cv_prog_NMEDIT"; then
6135  ac_ct_NMEDIT=$NMEDIT
6136  # Extract the first word of "nmedit", so it can be a program name with args.
6137set dummy nmedit; ac_word=$2
6138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6139$as_echo_n "checking for $ac_word... " >&6; }
6140if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6141  $as_echo_n "(cached) " >&6
6142else
6143  if test -n "$ac_ct_NMEDIT"; then
6144  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6145else
6146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6147for as_dir in $PATH
6148do
6149  IFS=$as_save_IFS
6150  test -z "$as_dir" && as_dir=.
6151    for ac_exec_ext in '' $ac_executable_extensions; do
6152  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6153    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6154    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6155    break 2
6156  fi
6157done
6158  done
6159IFS=$as_save_IFS
6160
6161fi
6162fi
6163ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6164if test -n "$ac_ct_NMEDIT"; then
6165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6166$as_echo "$ac_ct_NMEDIT" >&6; }
6167else
6168  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6169$as_echo "no" >&6; }
6170fi
6171
6172  if test "x$ac_ct_NMEDIT" = x; then
6173    NMEDIT=":"
6174  else
6175    case $cross_compiling:$ac_tool_warned in
6176yes:)
6177{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6178$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6179ac_tool_warned=yes ;;
6180esac
6181    NMEDIT=$ac_ct_NMEDIT
6182  fi
6183else
6184  NMEDIT="$ac_cv_prog_NMEDIT"
6185fi
6186
6187    if test -n "$ac_tool_prefix"; then
6188  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6189set dummy ${ac_tool_prefix}lipo; ac_word=$2
6190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6191$as_echo_n "checking for $ac_word... " >&6; }
6192if ${ac_cv_prog_LIPO+:} false; then :
6193  $as_echo_n "(cached) " >&6
6194else
6195  if test -n "$LIPO"; then
6196  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6197else
6198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6199for as_dir in $PATH
6200do
6201  IFS=$as_save_IFS
6202  test -z "$as_dir" && as_dir=.
6203    for ac_exec_ext in '' $ac_executable_extensions; do
6204  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6205    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6206    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6207    break 2
6208  fi
6209done
6210  done
6211IFS=$as_save_IFS
6212
6213fi
6214fi
6215LIPO=$ac_cv_prog_LIPO
6216if test -n "$LIPO"; then
6217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6218$as_echo "$LIPO" >&6; }
6219else
6220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6221$as_echo "no" >&6; }
6222fi
6223
6224
6225fi
6226if test -z "$ac_cv_prog_LIPO"; then
6227  ac_ct_LIPO=$LIPO
6228  # Extract the first word of "lipo", so it can be a program name with args.
6229set dummy lipo; ac_word=$2
6230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6231$as_echo_n "checking for $ac_word... " >&6; }
6232if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6233  $as_echo_n "(cached) " >&6
6234else
6235  if test -n "$ac_ct_LIPO"; then
6236  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6237else
6238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6239for as_dir in $PATH
6240do
6241  IFS=$as_save_IFS
6242  test -z "$as_dir" && as_dir=.
6243    for ac_exec_ext in '' $ac_executable_extensions; do
6244  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6245    ac_cv_prog_ac_ct_LIPO="lipo"
6246    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6247    break 2
6248  fi
6249done
6250  done
6251IFS=$as_save_IFS
6252
6253fi
6254fi
6255ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6256if test -n "$ac_ct_LIPO"; then
6257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6258$as_echo "$ac_ct_LIPO" >&6; }
6259else
6260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6261$as_echo "no" >&6; }
6262fi
6263
6264  if test "x$ac_ct_LIPO" = x; then
6265    LIPO=":"
6266  else
6267    case $cross_compiling:$ac_tool_warned in
6268yes:)
6269{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6270$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6271ac_tool_warned=yes ;;
6272esac
6273    LIPO=$ac_ct_LIPO
6274  fi
6275else
6276  LIPO="$ac_cv_prog_LIPO"
6277fi
6278
6279    if test -n "$ac_tool_prefix"; then
6280  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6281set dummy ${ac_tool_prefix}otool; ac_word=$2
6282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6283$as_echo_n "checking for $ac_word... " >&6; }
6284if ${ac_cv_prog_OTOOL+:} false; then :
6285  $as_echo_n "(cached) " >&6
6286else
6287  if test -n "$OTOOL"; then
6288  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6289else
6290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6291for as_dir in $PATH
6292do
6293  IFS=$as_save_IFS
6294  test -z "$as_dir" && as_dir=.
6295    for ac_exec_ext in '' $ac_executable_extensions; do
6296  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6297    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6298    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6299    break 2
6300  fi
6301done
6302  done
6303IFS=$as_save_IFS
6304
6305fi
6306fi
6307OTOOL=$ac_cv_prog_OTOOL
6308if test -n "$OTOOL"; then
6309  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6310$as_echo "$OTOOL" >&6; }
6311else
6312  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6313$as_echo "no" >&6; }
6314fi
6315
6316
6317fi
6318if test -z "$ac_cv_prog_OTOOL"; then
6319  ac_ct_OTOOL=$OTOOL
6320  # Extract the first word of "otool", so it can be a program name with args.
6321set dummy otool; ac_word=$2
6322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6323$as_echo_n "checking for $ac_word... " >&6; }
6324if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6325  $as_echo_n "(cached) " >&6
6326else
6327  if test -n "$ac_ct_OTOOL"; then
6328  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6329else
6330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6331for as_dir in $PATH
6332do
6333  IFS=$as_save_IFS
6334  test -z "$as_dir" && as_dir=.
6335    for ac_exec_ext in '' $ac_executable_extensions; do
6336  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6337    ac_cv_prog_ac_ct_OTOOL="otool"
6338    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6339    break 2
6340  fi
6341done
6342  done
6343IFS=$as_save_IFS
6344
6345fi
6346fi
6347ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6348if test -n "$ac_ct_OTOOL"; then
6349  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6350$as_echo "$ac_ct_OTOOL" >&6; }
6351else
6352  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6353$as_echo "no" >&6; }
6354fi
6355
6356  if test "x$ac_ct_OTOOL" = x; then
6357    OTOOL=":"
6358  else
6359    case $cross_compiling:$ac_tool_warned in
6360yes:)
6361{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6362$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6363ac_tool_warned=yes ;;
6364esac
6365    OTOOL=$ac_ct_OTOOL
6366  fi
6367else
6368  OTOOL="$ac_cv_prog_OTOOL"
6369fi
6370
6371    if test -n "$ac_tool_prefix"; then
6372  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6373set dummy ${ac_tool_prefix}otool64; ac_word=$2
6374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6375$as_echo_n "checking for $ac_word... " >&6; }
6376if ${ac_cv_prog_OTOOL64+:} false; then :
6377  $as_echo_n "(cached) " >&6
6378else
6379  if test -n "$OTOOL64"; then
6380  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6381else
6382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6383for as_dir in $PATH
6384do
6385  IFS=$as_save_IFS
6386  test -z "$as_dir" && as_dir=.
6387    for ac_exec_ext in '' $ac_executable_extensions; do
6388  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6389    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6390    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6391    break 2
6392  fi
6393done
6394  done
6395IFS=$as_save_IFS
6396
6397fi
6398fi
6399OTOOL64=$ac_cv_prog_OTOOL64
6400if test -n "$OTOOL64"; then
6401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6402$as_echo "$OTOOL64" >&6; }
6403else
6404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6405$as_echo "no" >&6; }
6406fi
6407
6408
6409fi
6410if test -z "$ac_cv_prog_OTOOL64"; then
6411  ac_ct_OTOOL64=$OTOOL64
6412  # Extract the first word of "otool64", so it can be a program name with args.
6413set dummy otool64; ac_word=$2
6414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6415$as_echo_n "checking for $ac_word... " >&6; }
6416if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6417  $as_echo_n "(cached) " >&6
6418else
6419  if test -n "$ac_ct_OTOOL64"; then
6420  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6421else
6422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6423for as_dir in $PATH
6424do
6425  IFS=$as_save_IFS
6426  test -z "$as_dir" && as_dir=.
6427    for ac_exec_ext in '' $ac_executable_extensions; do
6428  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6429    ac_cv_prog_ac_ct_OTOOL64="otool64"
6430    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6431    break 2
6432  fi
6433done
6434  done
6435IFS=$as_save_IFS
6436
6437fi
6438fi
6439ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6440if test -n "$ac_ct_OTOOL64"; then
6441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6442$as_echo "$ac_ct_OTOOL64" >&6; }
6443else
6444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6445$as_echo "no" >&6; }
6446fi
6447
6448  if test "x$ac_ct_OTOOL64" = x; then
6449    OTOOL64=":"
6450  else
6451    case $cross_compiling:$ac_tool_warned in
6452yes:)
6453{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6454$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6455ac_tool_warned=yes ;;
6456esac
6457    OTOOL64=$ac_ct_OTOOL64
6458  fi
6459else
6460  OTOOL64="$ac_cv_prog_OTOOL64"
6461fi
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6490$as_echo_n "checking for -single_module linker flag... " >&6; }
6491if ${lt_cv_apple_cc_single_mod+:} false; then :
6492  $as_echo_n "(cached) " >&6
6493else
6494  lt_cv_apple_cc_single_mod=no
6495      if test -z "$LT_MULTI_MODULE"; then
6496	# By default we will add the -single_module flag. You can override
6497	# by either setting the environment variable LT_MULTI_MODULE
6498	# non-empty at configure time, or by adding -multi_module to the
6499	# link flags.
6500	rm -rf libconftest.dylib*
6501	echo "int foo(void){return 1;}" > conftest.c
6502	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6503-dynamiclib -Wl,-single_module conftest.c" >&5
6504	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6505	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6506        _lt_result=$?
6507	# If there is a non-empty error log, and "single_module"
6508	# appears in it, assume the flag caused a linker warning
6509        if test -s conftest.err && $GREP single_module conftest.err; then
6510	  cat conftest.err >&5
6511	# Otherwise, if the output was created with a 0 exit code from
6512	# the compiler, it worked.
6513	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
6514	  lt_cv_apple_cc_single_mod=yes
6515	else
6516	  cat conftest.err >&5
6517	fi
6518	rm -rf libconftest.dylib*
6519	rm -f conftest.*
6520      fi
6521fi
6522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6523$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6524
6525    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6526$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6527if ${lt_cv_ld_exported_symbols_list+:} false; then :
6528  $as_echo_n "(cached) " >&6
6529else
6530  lt_cv_ld_exported_symbols_list=no
6531      save_LDFLAGS=$LDFLAGS
6532      echo "_main" > conftest.sym
6533      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6534      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6535/* end confdefs.h.  */
6536
6537int
6538main ()
6539{
6540
6541  ;
6542  return 0;
6543}
6544_ACEOF
6545if ac_fn_c_try_link "$LINENO"; then :
6546  lt_cv_ld_exported_symbols_list=yes
6547else
6548  lt_cv_ld_exported_symbols_list=no
6549fi
6550rm -f core conftest.err conftest.$ac_objext \
6551    conftest$ac_exeext conftest.$ac_ext
6552	LDFLAGS=$save_LDFLAGS
6553
6554fi
6555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6556$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6557
6558    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6559$as_echo_n "checking for -force_load linker flag... " >&6; }
6560if ${lt_cv_ld_force_load+:} false; then :
6561  $as_echo_n "(cached) " >&6
6562else
6563  lt_cv_ld_force_load=no
6564      cat > conftest.c << _LT_EOF
6565int forced_loaded() { return 2;}
6566_LT_EOF
6567      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6568      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6569      echo "$AR cru libconftest.a conftest.o" >&5
6570      $AR cru libconftest.a conftest.o 2>&5
6571      echo "$RANLIB libconftest.a" >&5
6572      $RANLIB libconftest.a 2>&5
6573      cat > conftest.c << _LT_EOF
6574int main() { return 0;}
6575_LT_EOF
6576      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6577      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6578      _lt_result=$?
6579      if test -s conftest.err && $GREP force_load conftest.err; then
6580	cat conftest.err >&5
6581      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
6582	lt_cv_ld_force_load=yes
6583      else
6584	cat conftest.err >&5
6585      fi
6586        rm -f conftest.err libconftest.a conftest conftest.c
6587        rm -rf conftest.dSYM
6588
6589fi
6590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6591$as_echo "$lt_cv_ld_force_load" >&6; }
6592    case $host_os in
6593    rhapsody* | darwin1.[012])
6594      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
6595    darwin1.*)
6596      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
6597    darwin*) # darwin 5.x on
6598      # if running on 10.5 or later, the deployment target defaults
6599      # to the OS version, if on x86, and 10.4, the deployment
6600      # target defaults to 10.4. Don't you love it?
6601      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6602	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6603	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
6604	10.[012][,.]*)
6605	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
6606	10.*)
6607	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
6608      esac
6609    ;;
6610  esac
6611    if test yes = "$lt_cv_apple_cc_single_mod"; then
6612      _lt_dar_single_mod='$single_module'
6613    fi
6614    if test yes = "$lt_cv_ld_exported_symbols_list"; then
6615      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
6616    else
6617      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
6618    fi
6619    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
6620      _lt_dsymutil='~$DSYMUTIL $lib || :'
6621    else
6622      _lt_dsymutil=
6623    fi
6624    ;;
6625  esac
6626
6627# func_munge_path_list VARIABLE PATH
6628# -----------------------------------
6629# VARIABLE is name of variable containing _space_ separated list of
6630# directories to be munged by the contents of PATH, which is string
6631# having a format:
6632# "DIR[:DIR]:"
6633#       string "DIR[ DIR]" will be prepended to VARIABLE
6634# ":DIR[:DIR]"
6635#       string "DIR[ DIR]" will be appended to VARIABLE
6636# "DIRP[:DIRP]::[DIRA:]DIRA"
6637#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
6638#       "DIRA[ DIRA]" will be appended to VARIABLE
6639# "DIR[:DIR]"
6640#       VARIABLE will be replaced by "DIR[ DIR]"
6641func_munge_path_list ()
6642{
6643    case x$2 in
6644    x)
6645        ;;
6646    *:)
6647        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
6648        ;;
6649    x:*)
6650        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
6651        ;;
6652    *::*)
6653        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
6654        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
6655        ;;
6656    *)
6657        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
6658        ;;
6659    esac
6660}
6661
6662ac_ext=c
6663ac_cpp='$CPP $CPPFLAGS'
6664ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6665ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6666ac_compiler_gnu=$ac_cv_c_compiler_gnu
6667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6668$as_echo_n "checking how to run the C preprocessor... " >&6; }
6669# On Suns, sometimes $CPP names a directory.
6670if test -n "$CPP" && test -d "$CPP"; then
6671  CPP=
6672fi
6673if test -z "$CPP"; then
6674  if ${ac_cv_prog_CPP+:} false; then :
6675  $as_echo_n "(cached) " >&6
6676else
6677      # Double quotes because CPP needs to be expanded
6678    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6679    do
6680      ac_preproc_ok=false
6681for ac_c_preproc_warn_flag in '' yes
6682do
6683  # Use a header file that comes with gcc, so configuring glibc
6684  # with a fresh cross-compiler works.
6685  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6686  # <limits.h> exists even on freestanding compilers.
6687  # On the NeXT, cc -E runs the code through the compiler's parser,
6688  # not just through cpp. "Syntax error" is here to catch this case.
6689  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6690/* end confdefs.h.  */
6691#ifdef __STDC__
6692# include <limits.h>
6693#else
6694# include <assert.h>
6695#endif
6696		     Syntax error
6697_ACEOF
6698if ac_fn_c_try_cpp "$LINENO"; then :
6699
6700else
6701  # Broken: fails on valid input.
6702continue
6703fi
6704rm -f conftest.err conftest.i conftest.$ac_ext
6705
6706  # OK, works on sane cases.  Now check whether nonexistent headers
6707  # can be detected and how.
6708  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6709/* end confdefs.h.  */
6710#include <ac_nonexistent.h>
6711_ACEOF
6712if ac_fn_c_try_cpp "$LINENO"; then :
6713  # Broken: success on invalid input.
6714continue
6715else
6716  # Passes both tests.
6717ac_preproc_ok=:
6718break
6719fi
6720rm -f conftest.err conftest.i conftest.$ac_ext
6721
6722done
6723# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6724rm -f conftest.i conftest.err conftest.$ac_ext
6725if $ac_preproc_ok; then :
6726  break
6727fi
6728
6729    done
6730    ac_cv_prog_CPP=$CPP
6731
6732fi
6733  CPP=$ac_cv_prog_CPP
6734else
6735  ac_cv_prog_CPP=$CPP
6736fi
6737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6738$as_echo "$CPP" >&6; }
6739ac_preproc_ok=false
6740for ac_c_preproc_warn_flag in '' yes
6741do
6742  # Use a header file that comes with gcc, so configuring glibc
6743  # with a fresh cross-compiler works.
6744  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6745  # <limits.h> exists even on freestanding compilers.
6746  # On the NeXT, cc -E runs the code through the compiler's parser,
6747  # not just through cpp. "Syntax error" is here to catch this case.
6748  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6749/* end confdefs.h.  */
6750#ifdef __STDC__
6751# include <limits.h>
6752#else
6753# include <assert.h>
6754#endif
6755		     Syntax error
6756_ACEOF
6757if ac_fn_c_try_cpp "$LINENO"; then :
6758
6759else
6760  # Broken: fails on valid input.
6761continue
6762fi
6763rm -f conftest.err conftest.i conftest.$ac_ext
6764
6765  # OK, works on sane cases.  Now check whether nonexistent headers
6766  # can be detected and how.
6767  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6768/* end confdefs.h.  */
6769#include <ac_nonexistent.h>
6770_ACEOF
6771if ac_fn_c_try_cpp "$LINENO"; then :
6772  # Broken: success on invalid input.
6773continue
6774else
6775  # Passes both tests.
6776ac_preproc_ok=:
6777break
6778fi
6779rm -f conftest.err conftest.i conftest.$ac_ext
6780
6781done
6782# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6783rm -f conftest.i conftest.err conftest.$ac_ext
6784if $ac_preproc_ok; then :
6785
6786else
6787  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6788$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6789as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6790See \`config.log' for more details" "$LINENO" 5; }
6791fi
6792
6793ac_ext=c
6794ac_cpp='$CPP $CPPFLAGS'
6795ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6796ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6797ac_compiler_gnu=$ac_cv_c_compiler_gnu
6798
6799
6800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6801$as_echo_n "checking for ANSI C header files... " >&6; }
6802if ${ac_cv_header_stdc+:} false; then :
6803  $as_echo_n "(cached) " >&6
6804else
6805  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6806/* end confdefs.h.  */
6807#include <stdlib.h>
6808#include <stdarg.h>
6809#include <string.h>
6810#include <float.h>
6811
6812int
6813main ()
6814{
6815
6816  ;
6817  return 0;
6818}
6819_ACEOF
6820if ac_fn_c_try_compile "$LINENO"; then :
6821  ac_cv_header_stdc=yes
6822else
6823  ac_cv_header_stdc=no
6824fi
6825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6826
6827if test $ac_cv_header_stdc = yes; then
6828  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6829  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6830/* end confdefs.h.  */
6831#include <string.h>
6832
6833_ACEOF
6834if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6835  $EGREP "memchr" >/dev/null 2>&1; then :
6836
6837else
6838  ac_cv_header_stdc=no
6839fi
6840rm -f conftest*
6841
6842fi
6843
6844if test $ac_cv_header_stdc = yes; then
6845  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6846  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6847/* end confdefs.h.  */
6848#include <stdlib.h>
6849
6850_ACEOF
6851if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6852  $EGREP "free" >/dev/null 2>&1; then :
6853
6854else
6855  ac_cv_header_stdc=no
6856fi
6857rm -f conftest*
6858
6859fi
6860
6861if test $ac_cv_header_stdc = yes; then
6862  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6863  if test "$cross_compiling" = yes; then :
6864  :
6865else
6866  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6867/* end confdefs.h.  */
6868#include <ctype.h>
6869#include <stdlib.h>
6870#if ((' ' & 0x0FF) == 0x020)
6871# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6872# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6873#else
6874# define ISLOWER(c) \
6875		   (('a' <= (c) && (c) <= 'i') \
6876		     || ('j' <= (c) && (c) <= 'r') \
6877		     || ('s' <= (c) && (c) <= 'z'))
6878# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6879#endif
6880
6881#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6882int
6883main ()
6884{
6885  int i;
6886  for (i = 0; i < 256; i++)
6887    if (XOR (islower (i), ISLOWER (i))
6888	|| toupper (i) != TOUPPER (i))
6889      return 2;
6890  return 0;
6891}
6892_ACEOF
6893if ac_fn_c_try_run "$LINENO"; then :
6894
6895else
6896  ac_cv_header_stdc=no
6897fi
6898rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6899  conftest.$ac_objext conftest.beam conftest.$ac_ext
6900fi
6901
6902fi
6903fi
6904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6905$as_echo "$ac_cv_header_stdc" >&6; }
6906if test $ac_cv_header_stdc = yes; then
6907
6908$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6909
6910fi
6911
6912# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6913for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6914		  inttypes.h stdint.h unistd.h
6915do :
6916  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6917ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6918"
6919if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6920  cat >>confdefs.h <<_ACEOF
6921#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6922_ACEOF
6923
6924fi
6925
6926done
6927
6928
6929for ac_header in dlfcn.h
6930do :
6931  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6932"
6933if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6934  cat >>confdefs.h <<_ACEOF
6935#define HAVE_DLFCN_H 1
6936_ACEOF
6937
6938fi
6939
6940done
6941
6942
6943
6944
6945
6946# Set options
6947
6948
6949
6950        enable_dlopen=no
6951
6952
6953  enable_win32_dll=no
6954
6955
6956            # Check whether --enable-shared was given.
6957if test "${enable_shared+set}" = set; then :
6958  enableval=$enable_shared; p=${PACKAGE-default}
6959    case $enableval in
6960    yes) enable_shared=yes ;;
6961    no) enable_shared=no ;;
6962    *)
6963      enable_shared=no
6964      # Look at the argument we got.  We use all the common list separators.
6965      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
6966      for pkg in $enableval; do
6967	IFS=$lt_save_ifs
6968	if test "X$pkg" = "X$p"; then
6969	  enable_shared=yes
6970	fi
6971      done
6972      IFS=$lt_save_ifs
6973      ;;
6974    esac
6975else
6976  enable_shared=yes
6977fi
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987  # Check whether --enable-static was given.
6988if test "${enable_static+set}" = set; then :
6989  enableval=$enable_static; p=${PACKAGE-default}
6990    case $enableval in
6991    yes) enable_static=yes ;;
6992    no) enable_static=no ;;
6993    *)
6994     enable_static=no
6995      # Look at the argument we got.  We use all the common list separators.
6996      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
6997      for pkg in $enableval; do
6998	IFS=$lt_save_ifs
6999	if test "X$pkg" = "X$p"; then
7000	  enable_static=yes
7001	fi
7002      done
7003      IFS=$lt_save_ifs
7004      ;;
7005    esac
7006else
7007  enable_static=yes
7008fi
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019# Check whether --with-pic was given.
7020if test "${with_pic+set}" = set; then :
7021  withval=$with_pic; lt_p=${PACKAGE-default}
7022    case $withval in
7023    yes|no) pic_mode=$withval ;;
7024    *)
7025      pic_mode=default
7026      # Look at the argument we got.  We use all the common list separators.
7027      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7028      for lt_pkg in $withval; do
7029	IFS=$lt_save_ifs
7030	if test "X$lt_pkg" = "X$lt_p"; then
7031	  pic_mode=yes
7032	fi
7033      done
7034      IFS=$lt_save_ifs
7035      ;;
7036    esac
7037else
7038  pic_mode=default
7039fi
7040
7041
7042
7043
7044
7045
7046
7047
7048  # Check whether --enable-fast-install was given.
7049if test "${enable_fast_install+set}" = set; then :
7050  enableval=$enable_fast_install; p=${PACKAGE-default}
7051    case $enableval in
7052    yes) enable_fast_install=yes ;;
7053    no) enable_fast_install=no ;;
7054    *)
7055      enable_fast_install=no
7056      # Look at the argument we got.  We use all the common list separators.
7057      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7058      for pkg in $enableval; do
7059	IFS=$lt_save_ifs
7060	if test "X$pkg" = "X$p"; then
7061	  enable_fast_install=yes
7062	fi
7063      done
7064      IFS=$lt_save_ifs
7065      ;;
7066    esac
7067else
7068  enable_fast_install=yes
7069fi
7070
7071
7072
7073
7074
7075
7076
7077
7078  shared_archive_member_spec=
7079case $host,$enable_shared in
7080power*-*-aix[5-9]*,yes)
7081  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7082$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7083
7084# Check whether --with-aix-soname was given.
7085if test "${with_aix_soname+set}" = set; then :
7086  withval=$with_aix_soname; case $withval in
7087    aix|svr4|both)
7088      ;;
7089    *)
7090      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7091      ;;
7092    esac
7093    lt_cv_with_aix_soname=$with_aix_soname
7094else
7095  if ${lt_cv_with_aix_soname+:} false; then :
7096  $as_echo_n "(cached) " >&6
7097else
7098  lt_cv_with_aix_soname=aix
7099fi
7100
7101    with_aix_soname=$lt_cv_with_aix_soname
7102fi
7103
7104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7105$as_echo "$with_aix_soname" >&6; }
7106  if test aix != "$with_aix_soname"; then
7107    # For the AIX way of multilib, we name the shared archive member
7108    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7109    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7110    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7111    # the AIX toolchain works better with OBJECT_MODE set (default 32).
7112    if test 64 = "${OBJECT_MODE-32}"; then
7113      shared_archive_member_spec=shr_64
7114    else
7115      shared_archive_member_spec=shr
7116    fi
7117  fi
7118  ;;
7119*)
7120  with_aix_soname=aix
7121  ;;
7122esac
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133# This can be used to rebuild libtool when needed
7134LIBTOOL_DEPS=$ltmain
7135
7136# Always use our own libtool.
7137LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168test -z "$LN_S" && LN_S="ln -s"
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183if test -n "${ZSH_VERSION+set}"; then
7184   setopt NO_GLOB_SUBST
7185fi
7186
7187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7188$as_echo_n "checking for objdir... " >&6; }
7189if ${lt_cv_objdir+:} false; then :
7190  $as_echo_n "(cached) " >&6
7191else
7192  rm -f .libs 2>/dev/null
7193mkdir .libs 2>/dev/null
7194if test -d .libs; then
7195  lt_cv_objdir=.libs
7196else
7197  # MS-DOS does not allow filenames that begin with a dot.
7198  lt_cv_objdir=_libs
7199fi
7200rmdir .libs 2>/dev/null
7201fi
7202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7203$as_echo "$lt_cv_objdir" >&6; }
7204objdir=$lt_cv_objdir
7205
7206
7207
7208
7209
7210cat >>confdefs.h <<_ACEOF
7211#define LT_OBJDIR "$lt_cv_objdir/"
7212_ACEOF
7213
7214
7215
7216
7217case $host_os in
7218aix3*)
7219  # AIX sometimes has problems with the GCC collect2 program.  For some
7220  # reason, if we set the COLLECT_NAMES environment variable, the problems
7221  # vanish in a puff of smoke.
7222  if test set != "${COLLECT_NAMES+set}"; then
7223    COLLECT_NAMES=
7224    export COLLECT_NAMES
7225  fi
7226  ;;
7227esac
7228
7229# Global variables:
7230ofile=libtool
7231can_build_shared=yes
7232
7233# All known linkers require a '.a' archive for static linking (except MSVC,
7234# which needs '.lib').
7235libext=a
7236
7237with_gnu_ld=$lt_cv_prog_gnu_ld
7238
7239old_CC=$CC
7240old_CFLAGS=$CFLAGS
7241
7242# Set sane defaults for various variables
7243test -z "$CC" && CC=cc
7244test -z "$LTCC" && LTCC=$CC
7245test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7246test -z "$LD" && LD=ld
7247test -z "$ac_objext" && ac_objext=o
7248
7249func_cc_basename $compiler
7250cc_basename=$func_cc_basename_result
7251
7252
7253# Only perform the check for file, if the check method requires it
7254test -z "$MAGIC_CMD" && MAGIC_CMD=file
7255case $deplibs_check_method in
7256file_magic*)
7257  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7258    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7259$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7260if ${lt_cv_path_MAGIC_CMD+:} false; then :
7261  $as_echo_n "(cached) " >&6
7262else
7263  case $MAGIC_CMD in
7264[\\/*] |  ?:[\\/]*)
7265  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7266  ;;
7267*)
7268  lt_save_MAGIC_CMD=$MAGIC_CMD
7269  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7270  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7271  for ac_dir in $ac_dummy; do
7272    IFS=$lt_save_ifs
7273    test -z "$ac_dir" && ac_dir=.
7274    if test -f "$ac_dir/${ac_tool_prefix}file"; then
7275      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
7276      if test -n "$file_magic_test_file"; then
7277	case $deplibs_check_method in
7278	"file_magic "*)
7279	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7280	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7281	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7282	    $EGREP "$file_magic_regex" > /dev/null; then
7283	    :
7284	  else
7285	    cat <<_LT_EOF 1>&2
7286
7287*** Warning: the command libtool uses to detect shared libraries,
7288*** $file_magic_cmd, produces output that libtool cannot recognize.
7289*** The result is that libtool may fail to recognize shared libraries
7290*** as such.  This will affect the creation of libtool libraries that
7291*** depend on shared libraries, but programs linked with such libtool
7292*** libraries will work regardless of this problem.  Nevertheless, you
7293*** may want to report the problem to your system manager and/or to
7294*** bug-libtool@gnu.org
7295
7296_LT_EOF
7297	  fi ;;
7298	esac
7299      fi
7300      break
7301    fi
7302  done
7303  IFS=$lt_save_ifs
7304  MAGIC_CMD=$lt_save_MAGIC_CMD
7305  ;;
7306esac
7307fi
7308
7309MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7310if test -n "$MAGIC_CMD"; then
7311  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7312$as_echo "$MAGIC_CMD" >&6; }
7313else
7314  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7315$as_echo "no" >&6; }
7316fi
7317
7318
7319
7320
7321
7322if test -z "$lt_cv_path_MAGIC_CMD"; then
7323  if test -n "$ac_tool_prefix"; then
7324    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7325$as_echo_n "checking for file... " >&6; }
7326if ${lt_cv_path_MAGIC_CMD+:} false; then :
7327  $as_echo_n "(cached) " >&6
7328else
7329  case $MAGIC_CMD in
7330[\\/*] |  ?:[\\/]*)
7331  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7332  ;;
7333*)
7334  lt_save_MAGIC_CMD=$MAGIC_CMD
7335  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7336  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7337  for ac_dir in $ac_dummy; do
7338    IFS=$lt_save_ifs
7339    test -z "$ac_dir" && ac_dir=.
7340    if test -f "$ac_dir/file"; then
7341      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
7342      if test -n "$file_magic_test_file"; then
7343	case $deplibs_check_method in
7344	"file_magic "*)
7345	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7346	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7347	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7348	    $EGREP "$file_magic_regex" > /dev/null; then
7349	    :
7350	  else
7351	    cat <<_LT_EOF 1>&2
7352
7353*** Warning: the command libtool uses to detect shared libraries,
7354*** $file_magic_cmd, produces output that libtool cannot recognize.
7355*** The result is that libtool may fail to recognize shared libraries
7356*** as such.  This will affect the creation of libtool libraries that
7357*** depend on shared libraries, but programs linked with such libtool
7358*** libraries will work regardless of this problem.  Nevertheless, you
7359*** may want to report the problem to your system manager and/or to
7360*** bug-libtool@gnu.org
7361
7362_LT_EOF
7363	  fi ;;
7364	esac
7365      fi
7366      break
7367    fi
7368  done
7369  IFS=$lt_save_ifs
7370  MAGIC_CMD=$lt_save_MAGIC_CMD
7371  ;;
7372esac
7373fi
7374
7375MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7376if test -n "$MAGIC_CMD"; then
7377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7378$as_echo "$MAGIC_CMD" >&6; }
7379else
7380  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7381$as_echo "no" >&6; }
7382fi
7383
7384
7385  else
7386    MAGIC_CMD=:
7387  fi
7388fi
7389
7390  fi
7391  ;;
7392esac
7393
7394# Use C for the default configuration in the libtool script
7395
7396lt_save_CC=$CC
7397ac_ext=c
7398ac_cpp='$CPP $CPPFLAGS'
7399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7401ac_compiler_gnu=$ac_cv_c_compiler_gnu
7402
7403
7404# Source file extension for C test sources.
7405ac_ext=c
7406
7407# Object file extension for compiled C test sources.
7408objext=o
7409objext=$objext
7410
7411# Code to be used in simple compile tests
7412lt_simple_compile_test_code="int some_variable = 0;"
7413
7414# Code to be used in simple link tests
7415lt_simple_link_test_code='int main(){return(0);}'
7416
7417
7418
7419
7420
7421
7422
7423# If no C compiler was specified, use CC.
7424LTCC=${LTCC-"$CC"}
7425
7426# If no C compiler flags were specified, use CFLAGS.
7427LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7428
7429# Allow CC to be a program name with arguments.
7430compiler=$CC
7431
7432# Save the default compiler, since it gets overwritten when the other
7433# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7434compiler_DEFAULT=$CC
7435
7436# save warnings/boilerplate of simple test code
7437ac_outfile=conftest.$ac_objext
7438echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7439eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7440_lt_compiler_boilerplate=`cat conftest.err`
7441$RM conftest*
7442
7443ac_outfile=conftest.$ac_objext
7444echo "$lt_simple_link_test_code" >conftest.$ac_ext
7445eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7446_lt_linker_boilerplate=`cat conftest.err`
7447$RM -r conftest*
7448
7449
7450if test -n "$compiler"; then
7451
7452lt_prog_compiler_no_builtin_flag=
7453
7454if test yes = "$GCC"; then
7455  case $cc_basename in
7456  nvcc*)
7457    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7458  *)
7459    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7460  esac
7461
7462  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7463$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7464if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7465  $as_echo_n "(cached) " >&6
7466else
7467  lt_cv_prog_compiler_rtti_exceptions=no
7468   ac_outfile=conftest.$ac_objext
7469   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7470   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
7471   # Insert the option either (1) after the last *FLAGS variable, or
7472   # (2) before a word containing "conftest.", or (3) at the end.
7473   # Note that $ac_compile itself does not contain backslashes and begins
7474   # with a dollar sign (not a hyphen), so the echo should work correctly.
7475   # The option is referenced via a variable to avoid confusing sed.
7476   lt_compile=`echo "$ac_compile" | $SED \
7477   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7478   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7479   -e 's:$: $lt_compiler_flag:'`
7480   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7481   (eval "$lt_compile" 2>conftest.err)
7482   ac_status=$?
7483   cat conftest.err >&5
7484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7485   if (exit $ac_status) && test -s "$ac_outfile"; then
7486     # The compiler can only warn and ignore the option if not recognized
7487     # So say no if there are warnings other than the usual output.
7488     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7489     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7490     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7491       lt_cv_prog_compiler_rtti_exceptions=yes
7492     fi
7493   fi
7494   $RM conftest*
7495
7496fi
7497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7498$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7499
7500if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
7501    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7502else
7503    :
7504fi
7505
7506fi
7507
7508
7509
7510
7511
7512
7513  lt_prog_compiler_wl=
7514lt_prog_compiler_pic=
7515lt_prog_compiler_static=
7516
7517
7518  if test yes = "$GCC"; then
7519    lt_prog_compiler_wl='-Wl,'
7520    lt_prog_compiler_static='-static'
7521
7522    case $host_os in
7523      aix*)
7524      # All AIX code is PIC.
7525      if test ia64 = "$host_cpu"; then
7526	# AIX 5 now supports IA64 processor
7527	lt_prog_compiler_static='-Bstatic'
7528      fi
7529      lt_prog_compiler_pic='-fPIC'
7530      ;;
7531
7532    amigaos*)
7533      case $host_cpu in
7534      powerpc)
7535            # see comment about AmigaOS4 .so support
7536            lt_prog_compiler_pic='-fPIC'
7537        ;;
7538      m68k)
7539            # FIXME: we need at least 68020 code to build shared libraries, but
7540            # adding the '-m68020' flag to GCC prevents building anything better,
7541            # like '-m68040'.
7542            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7543        ;;
7544      esac
7545      ;;
7546
7547    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7548      # PIC is the default for these OSes.
7549      ;;
7550
7551    mingw* | cygwin* | pw32* | os2* | cegcc*)
7552      # This hack is so that the source file can tell whether it is being
7553      # built for inclusion in a dll (and should export symbols for example).
7554      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7555      # (--disable-auto-import) libraries
7556      lt_prog_compiler_pic='-DDLL_EXPORT'
7557      case $host_os in
7558      os2*)
7559	lt_prog_compiler_static='$wl-static'
7560	;;
7561      esac
7562      ;;
7563
7564    darwin* | rhapsody*)
7565      # PIC is the default on this platform
7566      # Common symbols not allowed in MH_DYLIB files
7567      lt_prog_compiler_pic='-fno-common'
7568      ;;
7569
7570    haiku*)
7571      # PIC is the default for Haiku.
7572      # The "-static" flag exists, but is broken.
7573      lt_prog_compiler_static=
7574      ;;
7575
7576    hpux*)
7577      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7578      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7579      # sets the default TLS model and affects inlining.
7580      case $host_cpu in
7581      hppa*64*)
7582	# +Z the default
7583	;;
7584      *)
7585	lt_prog_compiler_pic='-fPIC'
7586	;;
7587      esac
7588      ;;
7589
7590    interix[3-9]*)
7591      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7592      # Instead, we relocate shared libraries at runtime.
7593      ;;
7594
7595    msdosdjgpp*)
7596      # Just because we use GCC doesn't mean we suddenly get shared libraries
7597      # on systems that don't support them.
7598      lt_prog_compiler_can_build_shared=no
7599      enable_shared=no
7600      ;;
7601
7602    *nto* | *qnx*)
7603      # QNX uses GNU C++, but need to define -shared option too, otherwise
7604      # it will coredump.
7605      lt_prog_compiler_pic='-fPIC -shared'
7606      ;;
7607
7608    sysv4*MP*)
7609      if test -d /usr/nec; then
7610	lt_prog_compiler_pic=-Kconform_pic
7611      fi
7612      ;;
7613
7614    *)
7615      lt_prog_compiler_pic='-fPIC'
7616      ;;
7617    esac
7618
7619    case $cc_basename in
7620    nvcc*) # Cuda Compiler Driver 2.2
7621      lt_prog_compiler_wl='-Xlinker '
7622      if test -n "$lt_prog_compiler_pic"; then
7623        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7624      fi
7625      ;;
7626    esac
7627  else
7628    # PORTME Check for flag to pass linker flags through the system compiler.
7629    case $host_os in
7630    aix*)
7631      lt_prog_compiler_wl='-Wl,'
7632      if test ia64 = "$host_cpu"; then
7633	# AIX 5 now supports IA64 processor
7634	lt_prog_compiler_static='-Bstatic'
7635      else
7636	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7637      fi
7638      ;;
7639
7640    darwin* | rhapsody*)
7641      # PIC is the default on this platform
7642      # Common symbols not allowed in MH_DYLIB files
7643      lt_prog_compiler_pic='-fno-common'
7644      case $cc_basename in
7645      nagfor*)
7646        # NAG Fortran compiler
7647        lt_prog_compiler_wl='-Wl,-Wl,,'
7648        lt_prog_compiler_pic='-PIC'
7649        lt_prog_compiler_static='-Bstatic'
7650        ;;
7651      esac
7652      ;;
7653
7654    mingw* | cygwin* | pw32* | os2* | cegcc*)
7655      # This hack is so that the source file can tell whether it is being
7656      # built for inclusion in a dll (and should export symbols for example).
7657      lt_prog_compiler_pic='-DDLL_EXPORT'
7658      case $host_os in
7659      os2*)
7660	lt_prog_compiler_static='$wl-static'
7661	;;
7662      esac
7663      ;;
7664
7665    hpux9* | hpux10* | hpux11*)
7666      lt_prog_compiler_wl='-Wl,'
7667      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7668      # not for PA HP-UX.
7669      case $host_cpu in
7670      hppa*64*|ia64*)
7671	# +Z the default
7672	;;
7673      *)
7674	lt_prog_compiler_pic='+Z'
7675	;;
7676      esac
7677      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7678      lt_prog_compiler_static='$wl-a ${wl}archive'
7679      ;;
7680
7681    irix5* | irix6* | nonstopux*)
7682      lt_prog_compiler_wl='-Wl,'
7683      # PIC (with -KPIC) is the default.
7684      lt_prog_compiler_static='-non_shared'
7685      ;;
7686
7687    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7688      case $cc_basename in
7689      # old Intel for x86_64, which still supported -KPIC.
7690      ecc*)
7691	lt_prog_compiler_wl='-Wl,'
7692	lt_prog_compiler_pic='-KPIC'
7693	lt_prog_compiler_static='-static'
7694        ;;
7695      # icc used to be incompatible with GCC.
7696      # ICC 10 doesn't accept -KPIC any more.
7697      icc* | ifort*)
7698	lt_prog_compiler_wl='-Wl,'
7699	lt_prog_compiler_pic='-fPIC'
7700	lt_prog_compiler_static='-static'
7701        ;;
7702      # Lahey Fortran 8.1.
7703      lf95*)
7704	lt_prog_compiler_wl='-Wl,'
7705	lt_prog_compiler_pic='--shared'
7706	lt_prog_compiler_static='--static'
7707	;;
7708      nagfor*)
7709	# NAG Fortran compiler
7710	lt_prog_compiler_wl='-Wl,-Wl,,'
7711	lt_prog_compiler_pic='-PIC'
7712	lt_prog_compiler_static='-Bstatic'
7713	;;
7714      tcc*)
7715	# Fabrice Bellard et al's Tiny C Compiler
7716	lt_prog_compiler_wl='-Wl,'
7717	lt_prog_compiler_pic='-fPIC'
7718	lt_prog_compiler_static='-static'
7719	;;
7720      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7721        # Portland Group compilers (*not* the Pentium gcc compiler,
7722	# which looks to be a dead project)
7723	lt_prog_compiler_wl='-Wl,'
7724	lt_prog_compiler_pic='-fpic'
7725	lt_prog_compiler_static='-Bstatic'
7726        ;;
7727      ccc*)
7728        lt_prog_compiler_wl='-Wl,'
7729        # All Alpha code is PIC.
7730        lt_prog_compiler_static='-non_shared'
7731        ;;
7732      xl* | bgxl* | bgf* | mpixl*)
7733	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7734	lt_prog_compiler_wl='-Wl,'
7735	lt_prog_compiler_pic='-qpic'
7736	lt_prog_compiler_static='-qstaticlink'
7737	;;
7738      *)
7739	case `$CC -V 2>&1 | sed 5q` in
7740	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
7741	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7742	  lt_prog_compiler_pic='-KPIC'
7743	  lt_prog_compiler_static='-Bstatic'
7744	  lt_prog_compiler_wl=''
7745	  ;;
7746	*Sun\ F* | *Sun*Fortran*)
7747	  lt_prog_compiler_pic='-KPIC'
7748	  lt_prog_compiler_static='-Bstatic'
7749	  lt_prog_compiler_wl='-Qoption ld '
7750	  ;;
7751	*Sun\ C*)
7752	  # Sun C 5.9
7753	  lt_prog_compiler_pic='-KPIC'
7754	  lt_prog_compiler_static='-Bstatic'
7755	  lt_prog_compiler_wl='-Wl,'
7756	  ;;
7757        *Intel*\ [CF]*Compiler*)
7758	  lt_prog_compiler_wl='-Wl,'
7759	  lt_prog_compiler_pic='-fPIC'
7760	  lt_prog_compiler_static='-static'
7761	  ;;
7762	*Portland\ Group*)
7763	  lt_prog_compiler_wl='-Wl,'
7764	  lt_prog_compiler_pic='-fpic'
7765	  lt_prog_compiler_static='-Bstatic'
7766	  ;;
7767	esac
7768	;;
7769      esac
7770      ;;
7771
7772    newsos6)
7773      lt_prog_compiler_pic='-KPIC'
7774      lt_prog_compiler_static='-Bstatic'
7775      ;;
7776
7777    *nto* | *qnx*)
7778      # QNX uses GNU C++, but need to define -shared option too, otherwise
7779      # it will coredump.
7780      lt_prog_compiler_pic='-fPIC -shared'
7781      ;;
7782
7783    osf3* | osf4* | osf5*)
7784      lt_prog_compiler_wl='-Wl,'
7785      # All OSF/1 code is PIC.
7786      lt_prog_compiler_static='-non_shared'
7787      ;;
7788
7789    rdos*)
7790      lt_prog_compiler_static='-non_shared'
7791      ;;
7792
7793    solaris*)
7794      lt_prog_compiler_pic='-KPIC'
7795      lt_prog_compiler_static='-Bstatic'
7796      case $cc_basename in
7797      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7798	lt_prog_compiler_wl='-Qoption ld ';;
7799      *)
7800	lt_prog_compiler_wl='-Wl,';;
7801      esac
7802      ;;
7803
7804    sunos4*)
7805      lt_prog_compiler_wl='-Qoption ld '
7806      lt_prog_compiler_pic='-PIC'
7807      lt_prog_compiler_static='-Bstatic'
7808      ;;
7809
7810    sysv4 | sysv4.2uw2* | sysv4.3*)
7811      lt_prog_compiler_wl='-Wl,'
7812      lt_prog_compiler_pic='-KPIC'
7813      lt_prog_compiler_static='-Bstatic'
7814      ;;
7815
7816    sysv4*MP*)
7817      if test -d /usr/nec; then
7818	lt_prog_compiler_pic='-Kconform_pic'
7819	lt_prog_compiler_static='-Bstatic'
7820      fi
7821      ;;
7822
7823    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7824      lt_prog_compiler_wl='-Wl,'
7825      lt_prog_compiler_pic='-KPIC'
7826      lt_prog_compiler_static='-Bstatic'
7827      ;;
7828
7829    unicos*)
7830      lt_prog_compiler_wl='-Wl,'
7831      lt_prog_compiler_can_build_shared=no
7832      ;;
7833
7834    uts4*)
7835      lt_prog_compiler_pic='-pic'
7836      lt_prog_compiler_static='-Bstatic'
7837      ;;
7838
7839    *)
7840      lt_prog_compiler_can_build_shared=no
7841      ;;
7842    esac
7843  fi
7844
7845case $host_os in
7846  # For platforms that do not support PIC, -DPIC is meaningless:
7847  *djgpp*)
7848    lt_prog_compiler_pic=
7849    ;;
7850  *)
7851    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7852    ;;
7853esac
7854
7855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7856$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7857if ${lt_cv_prog_compiler_pic+:} false; then :
7858  $as_echo_n "(cached) " >&6
7859else
7860  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
7861fi
7862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
7863$as_echo "$lt_cv_prog_compiler_pic" >&6; }
7864lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
7865
7866#
7867# Check to make sure the PIC flag actually works.
7868#
7869if test -n "$lt_prog_compiler_pic"; then
7870  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7871$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7872if ${lt_cv_prog_compiler_pic_works+:} false; then :
7873  $as_echo_n "(cached) " >&6
7874else
7875  lt_cv_prog_compiler_pic_works=no
7876   ac_outfile=conftest.$ac_objext
7877   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7878   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
7879   # Insert the option either (1) after the last *FLAGS variable, or
7880   # (2) before a word containing "conftest.", or (3) at the end.
7881   # Note that $ac_compile itself does not contain backslashes and begins
7882   # with a dollar sign (not a hyphen), so the echo should work correctly.
7883   # The option is referenced via a variable to avoid confusing sed.
7884   lt_compile=`echo "$ac_compile" | $SED \
7885   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7886   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7887   -e 's:$: $lt_compiler_flag:'`
7888   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7889   (eval "$lt_compile" 2>conftest.err)
7890   ac_status=$?
7891   cat conftest.err >&5
7892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893   if (exit $ac_status) && test -s "$ac_outfile"; then
7894     # The compiler can only warn and ignore the option if not recognized
7895     # So say no if there are warnings other than the usual output.
7896     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7897     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7898     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7899       lt_cv_prog_compiler_pic_works=yes
7900     fi
7901   fi
7902   $RM conftest*
7903
7904fi
7905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7906$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7907
7908if test yes = "$lt_cv_prog_compiler_pic_works"; then
7909    case $lt_prog_compiler_pic in
7910     "" | " "*) ;;
7911     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7912     esac
7913else
7914    lt_prog_compiler_pic=
7915     lt_prog_compiler_can_build_shared=no
7916fi
7917
7918fi
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930#
7931# Check to make sure the static flag actually works.
7932#
7933wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7935$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7936if ${lt_cv_prog_compiler_static_works+:} false; then :
7937  $as_echo_n "(cached) " >&6
7938else
7939  lt_cv_prog_compiler_static_works=no
7940   save_LDFLAGS=$LDFLAGS
7941   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7942   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7943   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7944     # The linker can only warn and ignore the option if not recognized
7945     # So say no if there are warnings
7946     if test -s conftest.err; then
7947       # Append any errors to the config.log.
7948       cat conftest.err 1>&5
7949       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7950       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7951       if diff conftest.exp conftest.er2 >/dev/null; then
7952         lt_cv_prog_compiler_static_works=yes
7953       fi
7954     else
7955       lt_cv_prog_compiler_static_works=yes
7956     fi
7957   fi
7958   $RM -r conftest*
7959   LDFLAGS=$save_LDFLAGS
7960
7961fi
7962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7963$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7964
7965if test yes = "$lt_cv_prog_compiler_static_works"; then
7966    :
7967else
7968    lt_prog_compiler_static=
7969fi
7970
7971
7972
7973
7974
7975
7976
7977  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7978$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7979if ${lt_cv_prog_compiler_c_o+:} false; then :
7980  $as_echo_n "(cached) " >&6
7981else
7982  lt_cv_prog_compiler_c_o=no
7983   $RM -r conftest 2>/dev/null
7984   mkdir conftest
7985   cd conftest
7986   mkdir out
7987   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7988
7989   lt_compiler_flag="-o out/conftest2.$ac_objext"
7990   # Insert the option either (1) after the last *FLAGS variable, or
7991   # (2) before a word containing "conftest.", or (3) at the end.
7992   # Note that $ac_compile itself does not contain backslashes and begins
7993   # with a dollar sign (not a hyphen), so the echo should work correctly.
7994   lt_compile=`echo "$ac_compile" | $SED \
7995   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7996   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7997   -e 's:$: $lt_compiler_flag:'`
7998   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7999   (eval "$lt_compile" 2>out/conftest.err)
8000   ac_status=$?
8001   cat out/conftest.err >&5
8002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8004   then
8005     # The compiler can only warn and ignore the option if not recognized
8006     # So say no if there are warnings
8007     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8008     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8009     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8010       lt_cv_prog_compiler_c_o=yes
8011     fi
8012   fi
8013   chmod u+w . 2>&5
8014   $RM conftest*
8015   # SGI C++ compiler will create directory out/ii_files/ for
8016   # template instantiation
8017   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8018   $RM out/* && rmdir out
8019   cd ..
8020   $RM -r conftest
8021   $RM conftest*
8022
8023fi
8024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8025$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8026
8027
8028
8029
8030
8031
8032  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8033$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8034if ${lt_cv_prog_compiler_c_o+:} false; then :
8035  $as_echo_n "(cached) " >&6
8036else
8037  lt_cv_prog_compiler_c_o=no
8038   $RM -r conftest 2>/dev/null
8039   mkdir conftest
8040   cd conftest
8041   mkdir out
8042   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8043
8044   lt_compiler_flag="-o out/conftest2.$ac_objext"
8045   # Insert the option either (1) after the last *FLAGS variable, or
8046   # (2) before a word containing "conftest.", or (3) at the end.
8047   # Note that $ac_compile itself does not contain backslashes and begins
8048   # with a dollar sign (not a hyphen), so the echo should work correctly.
8049   lt_compile=`echo "$ac_compile" | $SED \
8050   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8051   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8052   -e 's:$: $lt_compiler_flag:'`
8053   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8054   (eval "$lt_compile" 2>out/conftest.err)
8055   ac_status=$?
8056   cat out/conftest.err >&5
8057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8059   then
8060     # The compiler can only warn and ignore the option if not recognized
8061     # So say no if there are warnings
8062     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8063     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8064     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8065       lt_cv_prog_compiler_c_o=yes
8066     fi
8067   fi
8068   chmod u+w . 2>&5
8069   $RM conftest*
8070   # SGI C++ compiler will create directory out/ii_files/ for
8071   # template instantiation
8072   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8073   $RM out/* && rmdir out
8074   cd ..
8075   $RM -r conftest
8076   $RM conftest*
8077
8078fi
8079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8080$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8081
8082
8083
8084
8085hard_links=nottested
8086if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8087  # do not overwrite the value of need_locks provided by the user
8088  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8089$as_echo_n "checking if we can lock with hard links... " >&6; }
8090  hard_links=yes
8091  $RM conftest*
8092  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8093  touch conftest.a
8094  ln conftest.a conftest.b 2>&5 || hard_links=no
8095  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8097$as_echo "$hard_links" >&6; }
8098  if test no = "$hard_links"; then
8099    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8100$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8101    need_locks=warn
8102  fi
8103else
8104  need_locks=no
8105fi
8106
8107
8108
8109
8110
8111
8112  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8113$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8114
8115  runpath_var=
8116  allow_undefined_flag=
8117  always_export_symbols=no
8118  archive_cmds=
8119  archive_expsym_cmds=
8120  compiler_needs_object=no
8121  enable_shared_with_static_runtimes=no
8122  export_dynamic_flag_spec=
8123  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8124  hardcode_automatic=no
8125  hardcode_direct=no
8126  hardcode_direct_absolute=no
8127  hardcode_libdir_flag_spec=
8128  hardcode_libdir_separator=
8129  hardcode_minus_L=no
8130  hardcode_shlibpath_var=unsupported
8131  inherit_rpath=no
8132  link_all_deplibs=unknown
8133  module_cmds=
8134  module_expsym_cmds=
8135  old_archive_from_new_cmds=
8136  old_archive_from_expsyms_cmds=
8137  thread_safe_flag_spec=
8138  whole_archive_flag_spec=
8139  # include_expsyms should be a list of space-separated symbols to be *always*
8140  # included in the symbol list
8141  include_expsyms=
8142  # exclude_expsyms can be an extended regexp of symbols to exclude
8143  # it will be wrapped by ' (' and ')$', so one must not match beginning or
8144  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8145  # as well as any symbol that contains 'd'.
8146  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8147  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8148  # platforms (ab)use it in PIC code, but their linkers get confused if
8149  # the symbol is explicitly referenced.  Since portable code cannot
8150  # rely on this symbol name, it's probably fine to never include it in
8151  # preloaded symbol tables.
8152  # Exclude shared library initialization/finalization symbols.
8153  extract_expsyms_cmds=
8154
8155  case $host_os in
8156  cygwin* | mingw* | pw32* | cegcc*)
8157    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8158    # When not using gcc, we currently assume that we are using
8159    # Microsoft Visual C++.
8160    if test yes != "$GCC"; then
8161      with_gnu_ld=no
8162    fi
8163    ;;
8164  interix*)
8165    # we just hope/assume this is gcc and not c89 (= MSVC++)
8166    with_gnu_ld=yes
8167    ;;
8168  openbsd* | bitrig*)
8169    with_gnu_ld=no
8170    ;;
8171  esac
8172
8173  ld_shlibs=yes
8174
8175  # On some targets, GNU ld is compatible enough with the native linker
8176  # that we're better off using the native interface for both.
8177  lt_use_gnu_ld_interface=no
8178  if test yes = "$with_gnu_ld"; then
8179    case $host_os in
8180      aix*)
8181	# The AIX port of GNU ld has always aspired to compatibility
8182	# with the native linker.  However, as the warning in the GNU ld
8183	# block says, versions before 2.19.5* couldn't really create working
8184	# shared libraries, regardless of the interface used.
8185	case `$LD -v 2>&1` in
8186	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8187	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8188	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8189	  *)
8190	    lt_use_gnu_ld_interface=yes
8191	    ;;
8192	esac
8193	;;
8194      *)
8195	lt_use_gnu_ld_interface=yes
8196	;;
8197    esac
8198  fi
8199
8200  if test yes = "$lt_use_gnu_ld_interface"; then
8201    # If archive_cmds runs LD, not CC, wlarc should be empty
8202    wlarc='$wl'
8203
8204    # Set some defaults for GNU ld with shared library support. These
8205    # are reset later if shared libraries are not supported. Putting them
8206    # here allows them to be overridden if necessary.
8207    runpath_var=LD_RUN_PATH
8208    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8209    export_dynamic_flag_spec='$wl--export-dynamic'
8210    # ancient GNU ld didn't support --whole-archive et. al.
8211    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8212      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8213    else
8214      whole_archive_flag_spec=
8215    fi
8216    supports_anon_versioning=no
8217    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
8218      *GNU\ gold*) supports_anon_versioning=yes ;;
8219      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8220      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8221      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8222      *\ 2.11.*) ;; # other 2.11 versions
8223      *) supports_anon_versioning=yes ;;
8224    esac
8225
8226    # See if GNU ld supports shared libraries.
8227    case $host_os in
8228    aix[3-9]*)
8229      # On AIX/PPC, the GNU linker is very broken
8230      if test ia64 != "$host_cpu"; then
8231	ld_shlibs=no
8232	cat <<_LT_EOF 1>&2
8233
8234*** Warning: the GNU linker, at least up to release 2.19, is reported
8235*** to be unable to reliably create shared libraries on AIX.
8236*** Therefore, libtool is disabling shared libraries support.  If you
8237*** really care for shared libraries, you may want to install binutils
8238*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8239*** You will then need to restart the configuration process.
8240
8241_LT_EOF
8242      fi
8243      ;;
8244
8245    amigaos*)
8246      case $host_cpu in
8247      powerpc)
8248            # see comment about AmigaOS4 .so support
8249            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8250            archive_expsym_cmds=''
8251        ;;
8252      m68k)
8253            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)'
8254            hardcode_libdir_flag_spec='-L$libdir'
8255            hardcode_minus_L=yes
8256        ;;
8257      esac
8258      ;;
8259
8260    beos*)
8261      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8262	allow_undefined_flag=unsupported
8263	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8264	# support --undefined.  This deserves some investigation.  FIXME
8265	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8266      else
8267	ld_shlibs=no
8268      fi
8269      ;;
8270
8271    cygwin* | mingw* | pw32* | cegcc*)
8272      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8273      # as there is no search path for DLLs.
8274      hardcode_libdir_flag_spec='-L$libdir'
8275      export_dynamic_flag_spec='$wl--export-all-symbols'
8276      allow_undefined_flag=unsupported
8277      always_export_symbols=no
8278      enable_shared_with_static_runtimes=yes
8279      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'
8280      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8281
8282      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8283        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8284	# If the export-symbols file already is a .def file, use it as
8285	# is; otherwise, prepend EXPORTS...
8286	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
8287          cp $export_symbols $output_objdir/$soname.def;
8288        else
8289          echo EXPORTS > $output_objdir/$soname.def;
8290          cat $export_symbols >> $output_objdir/$soname.def;
8291        fi~
8292        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8293      else
8294	ld_shlibs=no
8295      fi
8296      ;;
8297
8298    haiku*)
8299      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8300      link_all_deplibs=yes
8301      ;;
8302
8303    os2*)
8304      hardcode_libdir_flag_spec='-L$libdir'
8305      hardcode_minus_L=yes
8306      allow_undefined_flag=unsupported
8307      shrext_cmds=.dll
8308      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8309	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8310	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8311	$ECHO EXPORTS >> $output_objdir/$libname.def~
8312	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
8313	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8314	emximp -o $lib $output_objdir/$libname.def'
8315      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8316	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8317	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8318	$ECHO EXPORTS >> $output_objdir/$libname.def~
8319	prefix_cmds="$SED"~
8320	if test EXPORTS = "`$SED 1q $export_symbols`"; then
8321	  prefix_cmds="$prefix_cmds -e 1d";
8322	fi~
8323	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
8324	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
8325	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8326	emximp -o $lib $output_objdir/$libname.def'
8327      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
8328      enable_shared_with_static_runtimes=yes
8329      ;;
8330
8331    interix[3-9]*)
8332      hardcode_direct=no
8333      hardcode_shlibpath_var=no
8334      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
8335      export_dynamic_flag_spec='$wl-E'
8336      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8337      # Instead, shared libraries are loaded at an image base (0x10000000 by
8338      # default) and relocated if they conflict, which is a slow very memory
8339      # consuming and fragmenting process.  To avoid this, we pick a random,
8340      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8341      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8342      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8343      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'
8344      ;;
8345
8346    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8347      tmp_diet=no
8348      if test linux-dietlibc = "$host_os"; then
8349	case $cc_basename in
8350	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8351	esac
8352      fi
8353      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8354	 && test no = "$tmp_diet"
8355      then
8356	tmp_addflag=' $pic_flag'
8357	tmp_sharedflag='-shared'
8358	case $cc_basename,$host_cpu in
8359        pgcc*)				# Portland Group C compiler
8360	  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'
8361	  tmp_addflag=' $pic_flag'
8362	  ;;
8363	pgf77* | pgf90* | pgf95* | pgfortran*)
8364					# Portland Group f77 and f90 compilers
8365	  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'
8366	  tmp_addflag=' $pic_flag -Mnomain' ;;
8367	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8368	  tmp_addflag=' -i_dynamic' ;;
8369	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8370	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8371	ifc* | ifort*)			# Intel Fortran compiler
8372	  tmp_addflag=' -nofor_main' ;;
8373	lf95*)				# Lahey Fortran 8.1
8374	  whole_archive_flag_spec=
8375	  tmp_sharedflag='--shared' ;;
8376        nagfor*)                        # NAGFOR 5.3
8377          tmp_sharedflag='-Wl,-shared' ;;
8378	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8379	  tmp_sharedflag='-qmkshrobj'
8380	  tmp_addflag= ;;
8381	nvcc*)	# Cuda Compiler Driver 2.2
8382	  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'
8383	  compiler_needs_object=yes
8384	  ;;
8385	esac
8386	case `$CC -V 2>&1 | sed 5q` in
8387	*Sun\ C*)			# Sun C 5.9
8388	  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'
8389	  compiler_needs_object=yes
8390	  tmp_sharedflag='-G' ;;
8391	*Sun\ F*)			# Sun Fortran 8.3
8392	  tmp_sharedflag='-G' ;;
8393	esac
8394	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8395
8396        if test yes = "$supports_anon_versioning"; then
8397          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8398            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8399            echo "local: *; };" >> $output_objdir/$libname.ver~
8400            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
8401        fi
8402
8403	case $cc_basename in
8404	tcc*)
8405	  export_dynamic_flag_spec='-rdynamic'
8406	  ;;
8407	xlf* | bgf* | bgxlf* | mpixlf*)
8408	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8409	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8410	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8411	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8412	  if test yes = "$supports_anon_versioning"; then
8413	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8414              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8415              echo "local: *; };" >> $output_objdir/$libname.ver~
8416              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8417	  fi
8418	  ;;
8419	esac
8420      else
8421        ld_shlibs=no
8422      fi
8423      ;;
8424
8425    netbsd*)
8426      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8427	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8428	wlarc=
8429      else
8430	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8431	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8432      fi
8433      ;;
8434
8435    solaris*)
8436      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8437	ld_shlibs=no
8438	cat <<_LT_EOF 1>&2
8439
8440*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8441*** create shared libraries on Solaris systems.  Therefore, libtool
8442*** is disabling shared libraries support.  We urge you to upgrade GNU
8443*** binutils to release 2.9.1 or newer.  Another option is to modify
8444*** your PATH or compiler configuration so that the native linker is
8445*** used, and then restart.
8446
8447_LT_EOF
8448      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8449	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8450	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8451      else
8452	ld_shlibs=no
8453      fi
8454      ;;
8455
8456    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8457      case `$LD -v 2>&1` in
8458        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8459	ld_shlibs=no
8460	cat <<_LT_EOF 1>&2
8461
8462*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
8463*** reliably create shared libraries on SCO systems.  Therefore, libtool
8464*** is disabling shared libraries support.  We urge you to upgrade GNU
8465*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8466*** your PATH or compiler configuration so that the native linker is
8467*** used, and then restart.
8468
8469_LT_EOF
8470	;;
8471	*)
8472	  # For security reasons, it is highly recommended that you always
8473	  # use absolute paths for naming shared libraries, and exclude the
8474	  # DT_RUNPATH tag from executables and libraries.  But doing so
8475	  # requires that you compile everything twice, which is a pain.
8476	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8477	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8478	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8479	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8480	  else
8481	    ld_shlibs=no
8482	  fi
8483	;;
8484      esac
8485      ;;
8486
8487    sunos4*)
8488      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8489      wlarc=
8490      hardcode_direct=yes
8491      hardcode_shlibpath_var=no
8492      ;;
8493
8494    *)
8495      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8496	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8497	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8498      else
8499	ld_shlibs=no
8500      fi
8501      ;;
8502    esac
8503
8504    if test no = "$ld_shlibs"; then
8505      runpath_var=
8506      hardcode_libdir_flag_spec=
8507      export_dynamic_flag_spec=
8508      whole_archive_flag_spec=
8509    fi
8510  else
8511    # PORTME fill in a description of your system's linker (not GNU ld)
8512    case $host_os in
8513    aix3*)
8514      allow_undefined_flag=unsupported
8515      always_export_symbols=yes
8516      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'
8517      # Note: this linker hardcodes the directories in LIBPATH if there
8518      # are no directories specified by -L.
8519      hardcode_minus_L=yes
8520      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
8521	# Neither direct hardcoding nor static linking is supported with a
8522	# broken collect2.
8523	hardcode_direct=unsupported
8524      fi
8525      ;;
8526
8527    aix[4-9]*)
8528      if test ia64 = "$host_cpu"; then
8529	# On IA64, the linker does run time linking by default, so we don't
8530	# have to do anything special.
8531	aix_use_runtimelinking=no
8532	exp_sym_flag='-Bexport'
8533	no_entry_flag=
8534      else
8535	# If we're using GNU nm, then we don't want the "-C" option.
8536	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
8537	# Without the "-l" option, or with the "-B" option, AIX nm treats
8538	# weak defined symbols like other global defined symbols, whereas
8539	# GNU nm marks them as "W".
8540	# While the 'weak' keyword is ignored in the Export File, we need
8541	# it in the Import File for the 'aix-soname' feature, so we have
8542	# to replace the "-B" option with "-P" for AIX nm.
8543	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8544	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
8545	else
8546	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
8547	fi
8548	aix_use_runtimelinking=no
8549
8550	# Test if we are trying to use run time linking or normal
8551	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8552	# have runtime linking enabled, and use it for executables.
8553	# For shared libraries, we enable/disable runtime linking
8554	# depending on the kind of the shared library created -
8555	# when "with_aix_soname,aix_use_runtimelinking" is:
8556	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
8557	# "aix,yes"  lib.so          shared, rtl:yes, for executables
8558	#            lib.a           static archive
8559	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
8560	#            lib.a(lib.so.V) shared, rtl:no,  for executables
8561	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
8562	#            lib.a(lib.so.V) shared, rtl:no
8563	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
8564	#            lib.a           static archive
8565	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8566	  for ld_flag in $LDFLAGS; do
8567	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
8568	    aix_use_runtimelinking=yes
8569	    break
8570	  fi
8571	  done
8572	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
8573	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
8574	    # so we don't have lib.a shared libs to link our executables.
8575	    # We have to force runtime linking in this case.
8576	    aix_use_runtimelinking=yes
8577	    LDFLAGS="$LDFLAGS -Wl,-brtl"
8578	  fi
8579	  ;;
8580	esac
8581
8582	exp_sym_flag='-bexport'
8583	no_entry_flag='-bnoentry'
8584      fi
8585
8586      # When large executables or shared objects are built, AIX ld can
8587      # have problems creating the table of contents.  If linking a library
8588      # or program results in "error TOC overflow" add -mminimal-toc to
8589      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8590      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8591
8592      archive_cmds=''
8593      hardcode_direct=yes
8594      hardcode_direct_absolute=yes
8595      hardcode_libdir_separator=':'
8596      link_all_deplibs=yes
8597      file_list_spec='$wl-f,'
8598      case $with_aix_soname,$aix_use_runtimelinking in
8599      aix,*) ;; # traditional, no import file
8600      svr4,* | *,yes) # use import file
8601	# The Import File defines what to hardcode.
8602	hardcode_direct=no
8603	hardcode_direct_absolute=no
8604	;;
8605      esac
8606
8607      if test yes = "$GCC"; then
8608	case $host_os in aix4.[012]|aix4.[012].*)
8609	# We only want to do this on AIX 4.2 and lower, the check
8610	# below for broken collect2 doesn't work under 4.3+
8611	  collect2name=`$CC -print-prog-name=collect2`
8612	  if test -f "$collect2name" &&
8613	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8614	  then
8615	  # We have reworked collect2
8616	  :
8617	  else
8618	  # We have old collect2
8619	  hardcode_direct=unsupported
8620	  # It fails to find uninstalled libraries when the uninstalled
8621	  # path is not listed in the libpath.  Setting hardcode_minus_L
8622	  # to unsupported forces relinking
8623	  hardcode_minus_L=yes
8624	  hardcode_libdir_flag_spec='-L$libdir'
8625	  hardcode_libdir_separator=
8626	  fi
8627	  ;;
8628	esac
8629	shared_flag='-shared'
8630	if test yes = "$aix_use_runtimelinking"; then
8631	  shared_flag="$shared_flag "'$wl-G'
8632	fi
8633	# Need to ensure runtime linking is disabled for the traditional
8634	# shared library, or the linker may eventually find shared libraries
8635	# /with/ Import File - we do not want to mix them.
8636	shared_flag_aix='-shared'
8637	shared_flag_svr4='-shared $wl-G'
8638      else
8639	# not using gcc
8640	if test ia64 = "$host_cpu"; then
8641	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8642	# chokes on -Wl,-G. The following line is correct:
8643	  shared_flag='-G'
8644	else
8645	  if test yes = "$aix_use_runtimelinking"; then
8646	    shared_flag='$wl-G'
8647	  else
8648	    shared_flag='$wl-bM:SRE'
8649	  fi
8650	  shared_flag_aix='$wl-bM:SRE'
8651	  shared_flag_svr4='$wl-G'
8652	fi
8653      fi
8654
8655      export_dynamic_flag_spec='$wl-bexpall'
8656      # It seems that -bexpall does not export symbols beginning with
8657      # underscore (_), so it is better to generate a list of symbols to export.
8658      always_export_symbols=yes
8659      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
8660	# Warning - without using the other runtime loading flags (-brtl),
8661	# -berok will link without error, but may produce a broken library.
8662	allow_undefined_flag='-berok'
8663        # Determine the default libpath from the value encoded in an
8664        # empty executable.
8665        if test set = "${lt_cv_aix_libpath+set}"; then
8666  aix_libpath=$lt_cv_aix_libpath
8667else
8668  if ${lt_cv_aix_libpath_+:} false; then :
8669  $as_echo_n "(cached) " >&6
8670else
8671  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8672/* end confdefs.h.  */
8673
8674int
8675main ()
8676{
8677
8678  ;
8679  return 0;
8680}
8681_ACEOF
8682if ac_fn_c_try_link "$LINENO"; then :
8683
8684  lt_aix_libpath_sed='
8685      /Import File Strings/,/^$/ {
8686	  /^0/ {
8687	      s/^0  *\([^ ]*\) *$/\1/
8688	      p
8689	  }
8690      }'
8691  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8692  # Check for a 64-bit object if we didn't find anything.
8693  if test -z "$lt_cv_aix_libpath_"; then
8694    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8695  fi
8696fi
8697rm -f core conftest.err conftest.$ac_objext \
8698    conftest$ac_exeext conftest.$ac_ext
8699  if test -z "$lt_cv_aix_libpath_"; then
8700    lt_cv_aix_libpath_=/usr/lib:/lib
8701  fi
8702
8703fi
8704
8705  aix_libpath=$lt_cv_aix_libpath_
8706fi
8707
8708        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
8709        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
8710      else
8711	if test ia64 = "$host_cpu"; then
8712	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
8713	  allow_undefined_flag="-z nodefs"
8714	  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"
8715	else
8716	 # Determine the default libpath from the value encoded in an
8717	 # empty executable.
8718	 if test set = "${lt_cv_aix_libpath+set}"; then
8719  aix_libpath=$lt_cv_aix_libpath
8720else
8721  if ${lt_cv_aix_libpath_+:} false; then :
8722  $as_echo_n "(cached) " >&6
8723else
8724  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8725/* end confdefs.h.  */
8726
8727int
8728main ()
8729{
8730
8731  ;
8732  return 0;
8733}
8734_ACEOF
8735if ac_fn_c_try_link "$LINENO"; then :
8736
8737  lt_aix_libpath_sed='
8738      /Import File Strings/,/^$/ {
8739	  /^0/ {
8740	      s/^0  *\([^ ]*\) *$/\1/
8741	      p
8742	  }
8743      }'
8744  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8745  # Check for a 64-bit object if we didn't find anything.
8746  if test -z "$lt_cv_aix_libpath_"; then
8747    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8748  fi
8749fi
8750rm -f core conftest.err conftest.$ac_objext \
8751    conftest$ac_exeext conftest.$ac_ext
8752  if test -z "$lt_cv_aix_libpath_"; then
8753    lt_cv_aix_libpath_=/usr/lib:/lib
8754  fi
8755
8756fi
8757
8758  aix_libpath=$lt_cv_aix_libpath_
8759fi
8760
8761	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
8762	  # Warning - without using the other run time loading flags,
8763	  # -berok will link without error, but may produce a broken library.
8764	  no_undefined_flag=' $wl-bernotok'
8765	  allow_undefined_flag=' $wl-berok'
8766	  if test yes = "$with_gnu_ld"; then
8767	    # We only use this code for GNU lds that support --whole-archive.
8768	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
8769	  else
8770	    # Exported symbols can be pulled into shared objects from archives
8771	    whole_archive_flag_spec='$convenience'
8772	  fi
8773	  archive_cmds_need_lc=yes
8774	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
8775	  # -brtl affects multiple linker settings, -berok does not and is overridden later
8776	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
8777	  if test svr4 != "$with_aix_soname"; then
8778	    # This is similar to how AIX traditionally builds its shared libraries.
8779	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
8780	  fi
8781	  if test aix != "$with_aix_soname"; then
8782	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
8783	  else
8784	    # used by -dlpreopen to get the symbols
8785	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
8786	  fi
8787	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
8788	fi
8789      fi
8790      ;;
8791
8792    amigaos*)
8793      case $host_cpu in
8794      powerpc)
8795            # see comment about AmigaOS4 .so support
8796            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8797            archive_expsym_cmds=''
8798        ;;
8799      m68k)
8800            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)'
8801            hardcode_libdir_flag_spec='-L$libdir'
8802            hardcode_minus_L=yes
8803        ;;
8804      esac
8805      ;;
8806
8807    bsdi[45]*)
8808      export_dynamic_flag_spec=-rdynamic
8809      ;;
8810
8811    cygwin* | mingw* | pw32* | cegcc*)
8812      # When not using gcc, we currently assume that we are using
8813      # Microsoft Visual C++.
8814      # hardcode_libdir_flag_spec is actually meaningless, as there is
8815      # no search path for DLLs.
8816      case $cc_basename in
8817      cl*)
8818	# Native MSVC
8819	hardcode_libdir_flag_spec=' '
8820	allow_undefined_flag=unsupported
8821	always_export_symbols=yes
8822	file_list_spec='@'
8823	# Tell ltmain to make .lib files, not .a files.
8824	libext=lib
8825	# Tell ltmain to make .dll files, not .so files.
8826	shrext_cmds=.dll
8827	# FIXME: Setting linknames here is a bad hack.
8828	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
8829	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
8830            cp "$export_symbols" "$output_objdir/$soname.def";
8831            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
8832          else
8833            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
8834          fi~
8835          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8836          linknames='
8837	# The linker will not automatically build a static lib if we build a DLL.
8838	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8839	enable_shared_with_static_runtimes=yes
8840	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
8841	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8842	# Don't use ranlib
8843	old_postinstall_cmds='chmod 644 $oldlib'
8844	postlink_cmds='lt_outputfile="@OUTPUT@"~
8845          lt_tool_outputfile="@TOOL_OUTPUT@"~
8846          case $lt_outputfile in
8847            *.exe|*.EXE) ;;
8848            *)
8849              lt_outputfile=$lt_outputfile.exe
8850              lt_tool_outputfile=$lt_tool_outputfile.exe
8851              ;;
8852          esac~
8853          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
8854            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8855            $RM "$lt_outputfile.manifest";
8856          fi'
8857	;;
8858      *)
8859	# Assume MSVC wrapper
8860	hardcode_libdir_flag_spec=' '
8861	allow_undefined_flag=unsupported
8862	# Tell ltmain to make .lib files, not .a files.
8863	libext=lib
8864	# Tell ltmain to make .dll files, not .so files.
8865	shrext_cmds=.dll
8866	# FIXME: Setting linknames here is a bad hack.
8867	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8868	# The linker will automatically build a .lib file if we build a DLL.
8869	old_archive_from_new_cmds='true'
8870	# FIXME: Should let the user specify the lib program.
8871	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8872	enable_shared_with_static_runtimes=yes
8873	;;
8874      esac
8875      ;;
8876
8877    darwin* | rhapsody*)
8878
8879
8880  archive_cmds_need_lc=no
8881  hardcode_direct=no
8882  hardcode_automatic=yes
8883  hardcode_shlibpath_var=unsupported
8884  if test yes = "$lt_cv_ld_force_load"; then
8885    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\"`'
8886
8887  else
8888    whole_archive_flag_spec=''
8889  fi
8890  link_all_deplibs=yes
8891  allow_undefined_flag=$_lt_dar_allow_undefined
8892  case $cc_basename in
8893     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
8894     *) _lt_dar_can_shared=$GCC ;;
8895  esac
8896  if test yes = "$_lt_dar_can_shared"; then
8897    output_verbose_link_cmd=func_echo_all
8898    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
8899    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
8900    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"
8901    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"
8902
8903  else
8904  ld_shlibs=no
8905  fi
8906
8907      ;;
8908
8909    dgux*)
8910      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8911      hardcode_libdir_flag_spec='-L$libdir'
8912      hardcode_shlibpath_var=no
8913      ;;
8914
8915    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8916    # support.  Future versions do this automatically, but an explicit c++rt0.o
8917    # does not break anything, and helps significantly (at the cost of a little
8918    # extra space).
8919    freebsd2.2*)
8920      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8921      hardcode_libdir_flag_spec='-R$libdir'
8922      hardcode_direct=yes
8923      hardcode_shlibpath_var=no
8924      ;;
8925
8926    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8927    freebsd2.*)
8928      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8929      hardcode_direct=yes
8930      hardcode_minus_L=yes
8931      hardcode_shlibpath_var=no
8932      ;;
8933
8934    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8935    freebsd* | dragonfly*)
8936      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8937      hardcode_libdir_flag_spec='-R$libdir'
8938      hardcode_direct=yes
8939      hardcode_shlibpath_var=no
8940      ;;
8941
8942    hpux9*)
8943      if test yes = "$GCC"; then
8944	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
8945      else
8946	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
8947      fi
8948      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
8949      hardcode_libdir_separator=:
8950      hardcode_direct=yes
8951
8952      # hardcode_minus_L: Not really in the search PATH,
8953      # but as the default location of the library.
8954      hardcode_minus_L=yes
8955      export_dynamic_flag_spec='$wl-E'
8956      ;;
8957
8958    hpux10*)
8959      if test yes,no = "$GCC,$with_gnu_ld"; then
8960	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8961      else
8962	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8963      fi
8964      if test no = "$with_gnu_ld"; then
8965	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
8966	hardcode_libdir_separator=:
8967	hardcode_direct=yes
8968	hardcode_direct_absolute=yes
8969	export_dynamic_flag_spec='$wl-E'
8970	# hardcode_minus_L: Not really in the search PATH,
8971	# but as the default location of the library.
8972	hardcode_minus_L=yes
8973      fi
8974      ;;
8975
8976    hpux11*)
8977      if test yes,no = "$GCC,$with_gnu_ld"; then
8978	case $host_cpu in
8979	hppa*64*)
8980	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
8981	  ;;
8982	ia64*)
8983	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8984	  ;;
8985	*)
8986	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8987	  ;;
8988	esac
8989      else
8990	case $host_cpu in
8991	hppa*64*)
8992	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
8993	  ;;
8994	ia64*)
8995	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8996	  ;;
8997	*)
8998
8999	  # Older versions of the 11.00 compiler do not understand -b yet
9000	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9001	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9002$as_echo_n "checking if $CC understands -b... " >&6; }
9003if ${lt_cv_prog_compiler__b+:} false; then :
9004  $as_echo_n "(cached) " >&6
9005else
9006  lt_cv_prog_compiler__b=no
9007   save_LDFLAGS=$LDFLAGS
9008   LDFLAGS="$LDFLAGS -b"
9009   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9010   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9011     # The linker can only warn and ignore the option if not recognized
9012     # So say no if there are warnings
9013     if test -s conftest.err; then
9014       # Append any errors to the config.log.
9015       cat conftest.err 1>&5
9016       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9017       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9018       if diff conftest.exp conftest.er2 >/dev/null; then
9019         lt_cv_prog_compiler__b=yes
9020       fi
9021     else
9022       lt_cv_prog_compiler__b=yes
9023     fi
9024   fi
9025   $RM -r conftest*
9026   LDFLAGS=$save_LDFLAGS
9027
9028fi
9029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9030$as_echo "$lt_cv_prog_compiler__b" >&6; }
9031
9032if test yes = "$lt_cv_prog_compiler__b"; then
9033    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9034else
9035    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9036fi
9037
9038	  ;;
9039	esac
9040      fi
9041      if test no = "$with_gnu_ld"; then
9042	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9043	hardcode_libdir_separator=:
9044
9045	case $host_cpu in
9046	hppa*64*|ia64*)
9047	  hardcode_direct=no
9048	  hardcode_shlibpath_var=no
9049	  ;;
9050	*)
9051	  hardcode_direct=yes
9052	  hardcode_direct_absolute=yes
9053	  export_dynamic_flag_spec='$wl-E'
9054
9055	  # hardcode_minus_L: Not really in the search PATH,
9056	  # but as the default location of the library.
9057	  hardcode_minus_L=yes
9058	  ;;
9059	esac
9060      fi
9061      ;;
9062
9063    irix5* | irix6* | nonstopux*)
9064      if test yes = "$GCC"; then
9065	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'
9066	# Try to use the -exported_symbol ld option, if it does not
9067	# work, assume that -exports_file does not work either and
9068	# implicitly export all symbols.
9069	# This should be the same for all languages, so no per-tag cache variable.
9070	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9071$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9072if ${lt_cv_irix_exported_symbol+:} false; then :
9073  $as_echo_n "(cached) " >&6
9074else
9075  save_LDFLAGS=$LDFLAGS
9076	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9077	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9078/* end confdefs.h.  */
9079int foo (void) { return 0; }
9080_ACEOF
9081if ac_fn_c_try_link "$LINENO"; then :
9082  lt_cv_irix_exported_symbol=yes
9083else
9084  lt_cv_irix_exported_symbol=no
9085fi
9086rm -f core conftest.err conftest.$ac_objext \
9087    conftest$ac_exeext conftest.$ac_ext
9088           LDFLAGS=$save_LDFLAGS
9089fi
9090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9091$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9092	if test yes = "$lt_cv_irix_exported_symbol"; then
9093          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'
9094	fi
9095      else
9096	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'
9097	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'
9098      fi
9099      archive_cmds_need_lc='no'
9100      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9101      hardcode_libdir_separator=:
9102      inherit_rpath=yes
9103      link_all_deplibs=yes
9104      ;;
9105
9106    linux*)
9107      case $cc_basename in
9108      tcc*)
9109	# Fabrice Bellard et al's Tiny C Compiler
9110	ld_shlibs=yes
9111	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9112	;;
9113      esac
9114      ;;
9115
9116    netbsd*)
9117      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9118	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9119      else
9120	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9121      fi
9122      hardcode_libdir_flag_spec='-R$libdir'
9123      hardcode_direct=yes
9124      hardcode_shlibpath_var=no
9125      ;;
9126
9127    newsos6)
9128      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9129      hardcode_direct=yes
9130      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9131      hardcode_libdir_separator=:
9132      hardcode_shlibpath_var=no
9133      ;;
9134
9135    *nto* | *qnx*)
9136      ;;
9137
9138    openbsd* | bitrig*)
9139      if test -f /usr/libexec/ld.so; then
9140	hardcode_direct=yes
9141	hardcode_shlibpath_var=no
9142	hardcode_direct_absolute=yes
9143	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9144	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9145	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9146	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9147	  export_dynamic_flag_spec='$wl-E'
9148	else
9149	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9150	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9151	fi
9152      else
9153	ld_shlibs=no
9154      fi
9155      ;;
9156
9157    os2*)
9158      hardcode_libdir_flag_spec='-L$libdir'
9159      hardcode_minus_L=yes
9160      allow_undefined_flag=unsupported
9161      shrext_cmds=.dll
9162      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9163	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9164	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9165	$ECHO EXPORTS >> $output_objdir/$libname.def~
9166	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9167	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9168	emximp -o $lib $output_objdir/$libname.def'
9169      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9170	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9171	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9172	$ECHO EXPORTS >> $output_objdir/$libname.def~
9173	prefix_cmds="$SED"~
9174	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9175	  prefix_cmds="$prefix_cmds -e 1d";
9176	fi~
9177	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9178	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9179	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9180	emximp -o $lib $output_objdir/$libname.def'
9181      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9182      enable_shared_with_static_runtimes=yes
9183      ;;
9184
9185    osf3*)
9186      if test yes = "$GCC"; then
9187	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9188	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'
9189      else
9190	allow_undefined_flag=' -expect_unresolved \*'
9191	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'
9192      fi
9193      archive_cmds_need_lc='no'
9194      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9195      hardcode_libdir_separator=:
9196      ;;
9197
9198    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9199      if test yes = "$GCC"; then
9200	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9201	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'
9202	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9203      else
9204	allow_undefined_flag=' -expect_unresolved \*'
9205	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'
9206	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~
9207          $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'
9208
9209	# Both c and cxx compiler support -rpath directly
9210	hardcode_libdir_flag_spec='-rpath $libdir'
9211      fi
9212      archive_cmds_need_lc='no'
9213      hardcode_libdir_separator=:
9214      ;;
9215
9216    solaris*)
9217      no_undefined_flag=' -z defs'
9218      if test yes = "$GCC"; then
9219	wlarc='$wl'
9220	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9221	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9222          $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'
9223      else
9224	case `$CC -V 2>&1` in
9225	*"Compilers 5.0"*)
9226	  wlarc=''
9227	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
9228	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9229            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9230	  ;;
9231	*)
9232	  wlarc='$wl'
9233	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9234	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9235            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9236	  ;;
9237	esac
9238      fi
9239      hardcode_libdir_flag_spec='-R$libdir'
9240      hardcode_shlibpath_var=no
9241      case $host_os in
9242      solaris2.[0-5] | solaris2.[0-5].*) ;;
9243      *)
9244	# The compiler driver will combine and reorder linker options,
9245	# but understands '-z linker_flag'.  GCC discards it without '$wl',
9246	# but is careful enough not to reorder.
9247	# Supported since Solaris 2.6 (maybe 2.5.1?)
9248	if test yes = "$GCC"; then
9249	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
9250	else
9251	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9252	fi
9253	;;
9254      esac
9255      link_all_deplibs=yes
9256      ;;
9257
9258    sunos4*)
9259      if test sequent = "$host_vendor"; then
9260	# Use $CC to link under sequent, because it throws in some extra .o
9261	# files that make .init and .fini sections work.
9262	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9263      else
9264	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9265      fi
9266      hardcode_libdir_flag_spec='-L$libdir'
9267      hardcode_direct=yes
9268      hardcode_minus_L=yes
9269      hardcode_shlibpath_var=no
9270      ;;
9271
9272    sysv4)
9273      case $host_vendor in
9274	sni)
9275	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9276	  hardcode_direct=yes # is this really true???
9277	;;
9278	siemens)
9279	  ## LD is ld it makes a PLAMLIB
9280	  ## CC just makes a GrossModule.
9281	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9282	  reload_cmds='$CC -r -o $output$reload_objs'
9283	  hardcode_direct=no
9284        ;;
9285	motorola)
9286	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9287	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9288	;;
9289      esac
9290      runpath_var='LD_RUN_PATH'
9291      hardcode_shlibpath_var=no
9292      ;;
9293
9294    sysv4.3*)
9295      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9296      hardcode_shlibpath_var=no
9297      export_dynamic_flag_spec='-Bexport'
9298      ;;
9299
9300    sysv4*MP*)
9301      if test -d /usr/nec; then
9302	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9303	hardcode_shlibpath_var=no
9304	runpath_var=LD_RUN_PATH
9305	hardcode_runpath_var=yes
9306	ld_shlibs=yes
9307      fi
9308      ;;
9309
9310    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9311      no_undefined_flag='$wl-z,text'
9312      archive_cmds_need_lc=no
9313      hardcode_shlibpath_var=no
9314      runpath_var='LD_RUN_PATH'
9315
9316      if test yes = "$GCC"; then
9317	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9318	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9319      else
9320	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9321	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9322      fi
9323      ;;
9324
9325    sysv5* | sco3.2v5* | sco5v6*)
9326      # Note: We CANNOT use -z defs as we might desire, because we do not
9327      # link with -lc, and that would cause any symbols used from libc to
9328      # always be unresolved, which means just about no library would
9329      # ever link correctly.  If we're not using GNU ld we use -z text
9330      # though, which does catch some bad symbols but isn't as heavy-handed
9331      # as -z defs.
9332      no_undefined_flag='$wl-z,text'
9333      allow_undefined_flag='$wl-z,nodefs'
9334      archive_cmds_need_lc=no
9335      hardcode_shlibpath_var=no
9336      hardcode_libdir_flag_spec='$wl-R,$libdir'
9337      hardcode_libdir_separator=':'
9338      link_all_deplibs=yes
9339      export_dynamic_flag_spec='$wl-Bexport'
9340      runpath_var='LD_RUN_PATH'
9341
9342      if test yes = "$GCC"; then
9343	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9344	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9345      else
9346	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9347	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9348      fi
9349      ;;
9350
9351    uts4*)
9352      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9353      hardcode_libdir_flag_spec='-L$libdir'
9354      hardcode_shlibpath_var=no
9355      ;;
9356
9357    *)
9358      ld_shlibs=no
9359      ;;
9360    esac
9361
9362    if test sni = "$host_vendor"; then
9363      case $host in
9364      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9365	export_dynamic_flag_spec='$wl-Blargedynsym'
9366	;;
9367      esac
9368    fi
9369  fi
9370
9371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9372$as_echo "$ld_shlibs" >&6; }
9373test no = "$ld_shlibs" && can_build_shared=no
9374
9375with_gnu_ld=$with_gnu_ld
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391#
9392# Do we need to explicitly link libc?
9393#
9394case "x$archive_cmds_need_lc" in
9395x|xyes)
9396  # Assume -lc should be added
9397  archive_cmds_need_lc=yes
9398
9399  if test yes,yes = "$GCC,$enable_shared"; then
9400    case $archive_cmds in
9401    *'~'*)
9402      # FIXME: we may have to deal with multi-command sequences.
9403      ;;
9404    '$CC '*)
9405      # Test whether the compiler implicitly links with -lc since on some
9406      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9407      # to ld, don't add -lc before -lgcc.
9408      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9409$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9410if ${lt_cv_archive_cmds_need_lc+:} false; then :
9411  $as_echo_n "(cached) " >&6
9412else
9413  $RM conftest*
9414	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9415
9416	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9417  (eval $ac_compile) 2>&5
9418  ac_status=$?
9419  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9420  test $ac_status = 0; } 2>conftest.err; then
9421	  soname=conftest
9422	  lib=conftest
9423	  libobjs=conftest.$ac_objext
9424	  deplibs=
9425	  wl=$lt_prog_compiler_wl
9426	  pic_flag=$lt_prog_compiler_pic
9427	  compiler_flags=-v
9428	  linker_flags=-v
9429	  verstring=
9430	  output_objdir=.
9431	  libname=conftest
9432	  lt_save_allow_undefined_flag=$allow_undefined_flag
9433	  allow_undefined_flag=
9434	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9435  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9436  ac_status=$?
9437  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9438  test $ac_status = 0; }
9439	  then
9440	    lt_cv_archive_cmds_need_lc=no
9441	  else
9442	    lt_cv_archive_cmds_need_lc=yes
9443	  fi
9444	  allow_undefined_flag=$lt_save_allow_undefined_flag
9445	else
9446	  cat conftest.err 1>&5
9447	fi
9448	$RM conftest*
9449
9450fi
9451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9452$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9453      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9454      ;;
9455    esac
9456  fi
9457  ;;
9458esac
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9612$as_echo_n "checking dynamic linker characteristics... " >&6; }
9613
9614if test yes = "$GCC"; then
9615  case $host_os in
9616    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
9617    *) lt_awk_arg='/^libraries:/' ;;
9618  esac
9619  case $host_os in
9620    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
9621    *) lt_sed_strip_eq='s|=/|/|g' ;;
9622  esac
9623  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9624  case $lt_search_path_spec in
9625  *\;*)
9626    # if the path contains ";" then we assume it to be the separator
9627    # otherwise default to the standard path separator (i.e. ":") - it is
9628    # assumed that no part of a normal pathname contains ";" but that should
9629    # okay in the real world where ";" in dirpaths is itself problematic.
9630    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9631    ;;
9632  *)
9633    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9634    ;;
9635  esac
9636  # Ok, now we have the path, separated by spaces, we can step through it
9637  # and add multilib dir if necessary...
9638  lt_tmp_lt_search_path_spec=
9639  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9640  # ...but if some path component already ends with the multilib dir we assume
9641  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
9642  case "$lt_multi_os_dir; $lt_search_path_spec " in
9643  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
9644    lt_multi_os_dir=
9645    ;;
9646  esac
9647  for lt_sys_path in $lt_search_path_spec; do
9648    if test -d "$lt_sys_path$lt_multi_os_dir"; then
9649      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
9650    elif test -n "$lt_multi_os_dir"; then
9651      test -d "$lt_sys_path" && \
9652	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9653    fi
9654  done
9655  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9656BEGIN {RS = " "; FS = "/|\n";} {
9657  lt_foo = "";
9658  lt_count = 0;
9659  for (lt_i = NF; lt_i > 0; lt_i--) {
9660    if ($lt_i != "" && $lt_i != ".") {
9661      if ($lt_i == "..") {
9662        lt_count++;
9663      } else {
9664        if (lt_count == 0) {
9665          lt_foo = "/" $lt_i lt_foo;
9666        } else {
9667          lt_count--;
9668        }
9669      }
9670    }
9671  }
9672  if (lt_foo != "") { lt_freq[lt_foo]++; }
9673  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9674}'`
9675  # AWK program above erroneously prepends '/' to C:/dos/paths
9676  # for these hosts.
9677  case $host_os in
9678    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9679      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
9680  esac
9681  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9682else
9683  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9684fi
9685library_names_spec=
9686libname_spec='lib$name'
9687soname_spec=
9688shrext_cmds=.so
9689postinstall_cmds=
9690postuninstall_cmds=
9691finish_cmds=
9692finish_eval=
9693shlibpath_var=
9694shlibpath_overrides_runpath=unknown
9695version_type=none
9696dynamic_linker="$host_os ld.so"
9697sys_lib_dlsearch_path_spec="/lib /usr/lib"
9698need_lib_prefix=unknown
9699hardcode_into_libs=no
9700
9701# when you set need_version to no, make sure it does not cause -set_version
9702# flags to be left without arguments
9703need_version=unknown
9704
9705
9706
9707case $host_os in
9708aix3*)
9709  version_type=linux # correct to gnu/linux during the next big refactor
9710  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
9711  shlibpath_var=LIBPATH
9712
9713  # AIX 3 has no versioning support, so we append a major version to the name.
9714  soname_spec='$libname$release$shared_ext$major'
9715  ;;
9716
9717aix[4-9]*)
9718  version_type=linux # correct to gnu/linux during the next big refactor
9719  need_lib_prefix=no
9720  need_version=no
9721  hardcode_into_libs=yes
9722  if test ia64 = "$host_cpu"; then
9723    # AIX 5 supports IA64
9724    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
9725    shlibpath_var=LD_LIBRARY_PATH
9726  else
9727    # With GCC up to 2.95.x, collect2 would create an import file
9728    # for dependence libraries.  The import file would start with
9729    # the line '#! .'.  This would cause the generated library to
9730    # depend on '.', always an invalid library.  This was fixed in
9731    # development snapshots of GCC prior to 3.0.
9732    case $host_os in
9733      aix4 | aix4.[01] | aix4.[01].*)
9734      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9735	   echo ' yes '
9736	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
9737	:
9738      else
9739	can_build_shared=no
9740      fi
9741      ;;
9742    esac
9743    # Using Import Files as archive members, it is possible to support
9744    # filename-based versioning of shared library archives on AIX. While
9745    # this would work for both with and without runtime linking, it will
9746    # prevent static linking of such archives. So we do filename-based
9747    # shared library versioning with .so extension only, which is used
9748    # when both runtime linking and shared linking is enabled.
9749    # Unfortunately, runtime linking may impact performance, so we do
9750    # not want this to be the default eventually. Also, we use the
9751    # versioned .so libs for executables only if there is the -brtl
9752    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
9753    # To allow for filename-based versioning support, we need to create
9754    # libNAME.so.V as an archive file, containing:
9755    # *) an Import File, referring to the versioned filename of the
9756    #    archive as well as the shared archive member, telling the
9757    #    bitwidth (32 or 64) of that shared object, and providing the
9758    #    list of exported symbols of that shared object, eventually
9759    #    decorated with the 'weak' keyword
9760    # *) the shared object with the F_LOADONLY flag set, to really avoid
9761    #    it being seen by the linker.
9762    # At run time we better use the real file rather than another symlink,
9763    # but for link time we create the symlink libNAME.so -> libNAME.so.V
9764
9765    case $with_aix_soname,$aix_use_runtimelinking in
9766    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
9767    # soname into executable. Probably we can add versioning support to
9768    # collect2, so additional links can be useful in future.
9769    aix,yes) # traditional libtool
9770      dynamic_linker='AIX unversionable lib.so'
9771      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9772      # instead of lib<name>.a to let people know that these are not
9773      # typical AIX shared libraries.
9774      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
9775      ;;
9776    aix,no) # traditional AIX only
9777      dynamic_linker='AIX lib.a(lib.so.V)'
9778      # We preserve .a as extension for shared libraries through AIX4.2
9779      # and later when we are not doing run time linking.
9780      library_names_spec='$libname$release.a $libname.a'
9781      soname_spec='$libname$release$shared_ext$major'
9782      ;;
9783    svr4,*) # full svr4 only
9784      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
9785      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
9786      # We do not specify a path in Import Files, so LIBPATH fires.
9787      shlibpath_overrides_runpath=yes
9788      ;;
9789    *,yes) # both, prefer svr4
9790      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
9791      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
9792      # unpreferred sharedlib libNAME.a needs extra handling
9793      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
9794      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
9795      # We do not specify a path in Import Files, so LIBPATH fires.
9796      shlibpath_overrides_runpath=yes
9797      ;;
9798    *,no) # both, prefer aix
9799      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
9800      library_names_spec='$libname$release.a $libname.a'
9801      soname_spec='$libname$release$shared_ext$major'
9802      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
9803      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
9804      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
9805      ;;
9806    esac
9807    shlibpath_var=LIBPATH
9808  fi
9809  ;;
9810
9811amigaos*)
9812  case $host_cpu in
9813  powerpc)
9814    # Since July 2007 AmigaOS4 officially supports .so libraries.
9815    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9816    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
9817    ;;
9818  m68k)
9819    library_names_spec='$libname.ixlibrary $libname.a'
9820    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9821    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9822    ;;
9823  esac
9824  ;;
9825
9826beos*)
9827  library_names_spec='$libname$shared_ext'
9828  dynamic_linker="$host_os ld.so"
9829  shlibpath_var=LIBRARY_PATH
9830  ;;
9831
9832bsdi[45]*)
9833  version_type=linux # correct to gnu/linux during the next big refactor
9834  need_version=no
9835  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
9836  soname_spec='$libname$release$shared_ext$major'
9837  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9838  shlibpath_var=LD_LIBRARY_PATH
9839  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9840  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9841  # the default ld.so.conf also contains /usr/contrib/lib and
9842  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9843  # libtool to hard-code these into programs
9844  ;;
9845
9846cygwin* | mingw* | pw32* | cegcc*)
9847  version_type=windows
9848  shrext_cmds=.dll
9849  need_version=no
9850  need_lib_prefix=no
9851
9852  case $GCC,$cc_basename in
9853  yes,*)
9854    # gcc
9855    library_names_spec='$libname.dll.a'
9856    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9857    postinstall_cmds='base_file=`basename \$file`~
9858      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
9859      dldir=$destdir/`dirname \$dlpath`~
9860      test -d \$dldir || mkdir -p \$dldir~
9861      $install_prog $dir/$dlname \$dldir/$dlname~
9862      chmod a+x \$dldir/$dlname~
9863      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9864        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9865      fi'
9866    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9867      dlpath=$dir/\$dldll~
9868       $RM \$dlpath'
9869    shlibpath_overrides_runpath=yes
9870
9871    case $host_os in
9872    cygwin*)
9873      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9874      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
9875
9876      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9877      ;;
9878    mingw* | cegcc*)
9879      # MinGW DLLs use traditional 'lib' prefix
9880      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
9881      ;;
9882    pw32*)
9883      # pw32 DLLs use 'pw' prefix rather than 'lib'
9884      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
9885      ;;
9886    esac
9887    dynamic_linker='Win32 ld.exe'
9888    ;;
9889
9890  *,cl*)
9891    # Native MSVC
9892    libname_spec='$name'
9893    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
9894    library_names_spec='$libname.dll.lib'
9895
9896    case $build_os in
9897    mingw*)
9898      sys_lib_search_path_spec=
9899      lt_save_ifs=$IFS
9900      IFS=';'
9901      for lt_path in $LIB
9902      do
9903        IFS=$lt_save_ifs
9904        # Let DOS variable expansion print the short 8.3 style file name.
9905        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9906        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9907      done
9908      IFS=$lt_save_ifs
9909      # Convert to MSYS style.
9910      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9911      ;;
9912    cygwin*)
9913      # Convert to unix form, then to dos form, then back to unix form
9914      # but this time dos style (no spaces!) so that the unix form looks
9915      # like /cygdrive/c/PROGRA~1:/cygdr...
9916      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9917      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9918      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9919      ;;
9920    *)
9921      sys_lib_search_path_spec=$LIB
9922      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9923        # It is most probably a Windows format PATH.
9924        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9925      else
9926        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9927      fi
9928      # FIXME: find the short name or the path components, as spaces are
9929      # common. (e.g. "Program Files" -> "PROGRA~1")
9930      ;;
9931    esac
9932
9933    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9934    postinstall_cmds='base_file=`basename \$file`~
9935      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
9936      dldir=$destdir/`dirname \$dlpath`~
9937      test -d \$dldir || mkdir -p \$dldir~
9938      $install_prog $dir/$dlname \$dldir/$dlname'
9939    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9940      dlpath=$dir/\$dldll~
9941       $RM \$dlpath'
9942    shlibpath_overrides_runpath=yes
9943    dynamic_linker='Win32 link.exe'
9944    ;;
9945
9946  *)
9947    # Assume MSVC wrapper
9948    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
9949    dynamic_linker='Win32 ld.exe'
9950    ;;
9951  esac
9952  # FIXME: first we should search . and the directory the executable is in
9953  shlibpath_var=PATH
9954  ;;
9955
9956darwin* | rhapsody*)
9957  dynamic_linker="$host_os dyld"
9958  version_type=darwin
9959  need_lib_prefix=no
9960  need_version=no
9961  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
9962  soname_spec='$libname$release$major$shared_ext'
9963  shlibpath_overrides_runpath=yes
9964  shlibpath_var=DYLD_LIBRARY_PATH
9965  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9966
9967  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9968  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9969  ;;
9970
9971dgux*)
9972  version_type=linux # correct to gnu/linux during the next big refactor
9973  need_lib_prefix=no
9974  need_version=no
9975  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
9976  soname_spec='$libname$release$shared_ext$major'
9977  shlibpath_var=LD_LIBRARY_PATH
9978  ;;
9979
9980freebsd* | dragonfly*)
9981  # DragonFly does not have aout.  When/if they implement a new
9982  # versioning mechanism, adjust this.
9983  if test -x /usr/bin/objformat; then
9984    objformat=`/usr/bin/objformat`
9985  else
9986    case $host_os in
9987    freebsd[23].*) objformat=aout ;;
9988    *) objformat=elf ;;
9989    esac
9990  fi
9991  version_type=freebsd-$objformat
9992  case $version_type in
9993    freebsd-elf*)
9994      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
9995      soname_spec='$libname$release$shared_ext$major'
9996      need_version=no
9997      need_lib_prefix=no
9998      ;;
9999    freebsd-*)
10000      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10001      need_version=yes
10002      ;;
10003  esac
10004  shlibpath_var=LD_LIBRARY_PATH
10005  case $host_os in
10006  freebsd2.*)
10007    shlibpath_overrides_runpath=yes
10008    ;;
10009  freebsd3.[01]* | freebsdelf3.[01]*)
10010    shlibpath_overrides_runpath=yes
10011    hardcode_into_libs=yes
10012    ;;
10013  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10014  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10015    shlibpath_overrides_runpath=no
10016    hardcode_into_libs=yes
10017    ;;
10018  *) # from 4.6 on, and DragonFly
10019    shlibpath_overrides_runpath=yes
10020    hardcode_into_libs=yes
10021    ;;
10022  esac
10023  ;;
10024
10025haiku*)
10026  version_type=linux # correct to gnu/linux during the next big refactor
10027  need_lib_prefix=no
10028  need_version=no
10029  dynamic_linker="$host_os runtime_loader"
10030  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10031  soname_spec='$libname$release$shared_ext$major'
10032  shlibpath_var=LIBRARY_PATH
10033  shlibpath_overrides_runpath=no
10034  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10035  hardcode_into_libs=yes
10036  ;;
10037
10038hpux9* | hpux10* | hpux11*)
10039  # Give a soname corresponding to the major version so that dld.sl refuses to
10040  # link against other versions.
10041  version_type=sunos
10042  need_lib_prefix=no
10043  need_version=no
10044  case $host_cpu in
10045  ia64*)
10046    shrext_cmds='.so'
10047    hardcode_into_libs=yes
10048    dynamic_linker="$host_os dld.so"
10049    shlibpath_var=LD_LIBRARY_PATH
10050    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10051    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10052    soname_spec='$libname$release$shared_ext$major'
10053    if test 32 = "$HPUX_IA64_MODE"; then
10054      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10055      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10056    else
10057      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10058      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10059    fi
10060    ;;
10061  hppa*64*)
10062    shrext_cmds='.sl'
10063    hardcode_into_libs=yes
10064    dynamic_linker="$host_os dld.sl"
10065    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10066    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10067    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10068    soname_spec='$libname$release$shared_ext$major'
10069    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10070    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10071    ;;
10072  *)
10073    shrext_cmds='.sl'
10074    dynamic_linker="$host_os dld.sl"
10075    shlibpath_var=SHLIB_PATH
10076    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10077    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10078    soname_spec='$libname$release$shared_ext$major'
10079    ;;
10080  esac
10081  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10082  postinstall_cmds='chmod 555 $lib'
10083  # or fails outright, so override atomically:
10084  install_override_mode=555
10085  ;;
10086
10087interix[3-9]*)
10088  version_type=linux # correct to gnu/linux during the next big refactor
10089  need_lib_prefix=no
10090  need_version=no
10091  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10092  soname_spec='$libname$release$shared_ext$major'
10093  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10094  shlibpath_var=LD_LIBRARY_PATH
10095  shlibpath_overrides_runpath=no
10096  hardcode_into_libs=yes
10097  ;;
10098
10099irix5* | irix6* | nonstopux*)
10100  case $host_os in
10101    nonstopux*) version_type=nonstopux ;;
10102    *)
10103	if test yes = "$lt_cv_prog_gnu_ld"; then
10104		version_type=linux # correct to gnu/linux during the next big refactor
10105	else
10106		version_type=irix
10107	fi ;;
10108  esac
10109  need_lib_prefix=no
10110  need_version=no
10111  soname_spec='$libname$release$shared_ext$major'
10112  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10113  case $host_os in
10114  irix5* | nonstopux*)
10115    libsuff= shlibsuff=
10116    ;;
10117  *)
10118    case $LD in # libtool.m4 will add one of these switches to LD
10119    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10120      libsuff= shlibsuff= libmagic=32-bit;;
10121    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10122      libsuff=32 shlibsuff=N32 libmagic=N32;;
10123    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10124      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10125    *) libsuff= shlibsuff= libmagic=never-match;;
10126    esac
10127    ;;
10128  esac
10129  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10130  shlibpath_overrides_runpath=no
10131  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10132  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10133  hardcode_into_libs=yes
10134  ;;
10135
10136# No shared lib support for Linux oldld, aout, or coff.
10137linux*oldld* | linux*aout* | linux*coff*)
10138  dynamic_linker=no
10139  ;;
10140
10141linux*android*)
10142  version_type=none # Android doesn't support versioned libraries.
10143  need_lib_prefix=no
10144  need_version=no
10145  library_names_spec='$libname$release$shared_ext'
10146  soname_spec='$libname$release$shared_ext'
10147  finish_cmds=
10148  shlibpath_var=LD_LIBRARY_PATH
10149  shlibpath_overrides_runpath=yes
10150
10151  # This implies no fast_install, which is unacceptable.
10152  # Some rework will be needed to allow for fast_install
10153  # before this can be enabled.
10154  hardcode_into_libs=yes
10155
10156  dynamic_linker='Android linker'
10157  # Don't embed -rpath directories since the linker doesn't support them.
10158  hardcode_libdir_flag_spec='-L$libdir'
10159  ;;
10160
10161# This must be glibc/ELF.
10162linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10163  version_type=linux # correct to gnu/linux during the next big refactor
10164  need_lib_prefix=no
10165  need_version=no
10166  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10167  soname_spec='$libname$release$shared_ext$major'
10168  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10169  shlibpath_var=LD_LIBRARY_PATH
10170  shlibpath_overrides_runpath=no
10171
10172  # Some binutils ld are patched to set DT_RUNPATH
10173  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10174  $as_echo_n "(cached) " >&6
10175else
10176  lt_cv_shlibpath_overrides_runpath=no
10177    save_LDFLAGS=$LDFLAGS
10178    save_libdir=$libdir
10179    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10180	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10181    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10182/* end confdefs.h.  */
10183
10184int
10185main ()
10186{
10187
10188  ;
10189  return 0;
10190}
10191_ACEOF
10192if ac_fn_c_try_link "$LINENO"; then :
10193  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10194  lt_cv_shlibpath_overrides_runpath=yes
10195fi
10196fi
10197rm -f core conftest.err conftest.$ac_objext \
10198    conftest$ac_exeext conftest.$ac_ext
10199    LDFLAGS=$save_LDFLAGS
10200    libdir=$save_libdir
10201
10202fi
10203
10204  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10205
10206  # This implies no fast_install, which is unacceptable.
10207  # Some rework will be needed to allow for fast_install
10208  # before this can be enabled.
10209  hardcode_into_libs=yes
10210
10211  # Ideally, we could use ldconfig to report *all* directores which are
10212  # searched for libraries, however this is still not possible.  Aside from not
10213  # being certain /sbin/ldconfig is available, command
10214  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
10215  # even though it is searched at run-time.  Try to do the best guess by
10216  # appending ld.so.conf contents (and includes) to the search path.
10217  if test -f /etc/ld.so.conf; then
10218    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' ' '`
10219    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10220  fi
10221
10222  # We used to test for /lib/ld.so.1 and disable shared libraries on
10223  # powerpc, because MkLinux only supported shared libraries with the
10224  # GNU dynamic linker.  Since this was broken with cross compilers,
10225  # most powerpc-linux boxes support dynamic linking these days and
10226  # people can always --disable-shared, the test was removed, and we
10227  # assume the GNU/Linux dynamic linker is in use.
10228  dynamic_linker='GNU/Linux ld.so'
10229  ;;
10230
10231netbsd*)
10232  version_type=sunos
10233  need_lib_prefix=no
10234  need_version=no
10235  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10236    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10237    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10238    dynamic_linker='NetBSD (a.out) ld.so'
10239  else
10240    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10241    soname_spec='$libname$release$shared_ext$major'
10242    dynamic_linker='NetBSD ld.elf_so'
10243  fi
10244  shlibpath_var=LD_LIBRARY_PATH
10245  shlibpath_overrides_runpath=yes
10246  hardcode_into_libs=yes
10247  ;;
10248
10249newsos6)
10250  version_type=linux # correct to gnu/linux during the next big refactor
10251  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10252  shlibpath_var=LD_LIBRARY_PATH
10253  shlibpath_overrides_runpath=yes
10254  ;;
10255
10256*nto* | *qnx*)
10257  version_type=qnx
10258  need_lib_prefix=no
10259  need_version=no
10260  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10261  soname_spec='$libname$release$shared_ext$major'
10262  shlibpath_var=LD_LIBRARY_PATH
10263  shlibpath_overrides_runpath=no
10264  hardcode_into_libs=yes
10265  dynamic_linker='ldqnx.so'
10266  ;;
10267
10268openbsd* | bitrig*)
10269  version_type=sunos
10270  sys_lib_dlsearch_path_spec=/usr/lib
10271  need_lib_prefix=no
10272  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10273    need_version=no
10274  else
10275    need_version=yes
10276  fi
10277  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10278  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10279  shlibpath_var=LD_LIBRARY_PATH
10280  shlibpath_overrides_runpath=yes
10281  ;;
10282
10283os2*)
10284  libname_spec='$name'
10285  version_type=windows
10286  shrext_cmds=.dll
10287  need_version=no
10288  need_lib_prefix=no
10289  # OS/2 can only load a DLL with a base name of 8 characters or less.
10290  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
10291    v=$($ECHO $release$versuffix | tr -d .-);
10292    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
10293    $ECHO $n$v`$shared_ext'
10294  library_names_spec='${libname}_dll.$libext'
10295  dynamic_linker='OS/2 ld.exe'
10296  shlibpath_var=BEGINLIBPATH
10297  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10298  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10299  postinstall_cmds='base_file=`basename \$file`~
10300    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
10301    dldir=$destdir/`dirname \$dlpath`~
10302    test -d \$dldir || mkdir -p \$dldir~
10303    $install_prog $dir/$dlname \$dldir/$dlname~
10304    chmod a+x \$dldir/$dlname~
10305    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10306      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10307    fi'
10308  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
10309    dlpath=$dir/\$dldll~
10310    $RM \$dlpath'
10311  ;;
10312
10313osf3* | osf4* | osf5*)
10314  version_type=osf
10315  need_lib_prefix=no
10316  need_version=no
10317  soname_spec='$libname$release$shared_ext$major'
10318  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10319  shlibpath_var=LD_LIBRARY_PATH
10320  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10321  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10322  ;;
10323
10324rdos*)
10325  dynamic_linker=no
10326  ;;
10327
10328solaris*)
10329  version_type=linux # correct to gnu/linux during the next big refactor
10330  need_lib_prefix=no
10331  need_version=no
10332  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10333  soname_spec='$libname$release$shared_ext$major'
10334  shlibpath_var=LD_LIBRARY_PATH
10335  shlibpath_overrides_runpath=yes
10336  hardcode_into_libs=yes
10337  # ldd complains unless libraries are executable
10338  postinstall_cmds='chmod +x $lib'
10339  ;;
10340
10341sunos4*)
10342  version_type=sunos
10343  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10344  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10345  shlibpath_var=LD_LIBRARY_PATH
10346  shlibpath_overrides_runpath=yes
10347  if test yes = "$with_gnu_ld"; then
10348    need_lib_prefix=no
10349  fi
10350  need_version=yes
10351  ;;
10352
10353sysv4 | sysv4.3*)
10354  version_type=linux # correct to gnu/linux during the next big refactor
10355  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10356  soname_spec='$libname$release$shared_ext$major'
10357  shlibpath_var=LD_LIBRARY_PATH
10358  case $host_vendor in
10359    sni)
10360      shlibpath_overrides_runpath=no
10361      need_lib_prefix=no
10362      runpath_var=LD_RUN_PATH
10363      ;;
10364    siemens)
10365      need_lib_prefix=no
10366      ;;
10367    motorola)
10368      need_lib_prefix=no
10369      need_version=no
10370      shlibpath_overrides_runpath=no
10371      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10372      ;;
10373  esac
10374  ;;
10375
10376sysv4*MP*)
10377  if test -d /usr/nec; then
10378    version_type=linux # correct to gnu/linux during the next big refactor
10379    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
10380    soname_spec='$libname$shared_ext.$major'
10381    shlibpath_var=LD_LIBRARY_PATH
10382  fi
10383  ;;
10384
10385sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10386  version_type=sco
10387  need_lib_prefix=no
10388  need_version=no
10389  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
10390  soname_spec='$libname$release$shared_ext$major'
10391  shlibpath_var=LD_LIBRARY_PATH
10392  shlibpath_overrides_runpath=yes
10393  hardcode_into_libs=yes
10394  if test yes = "$with_gnu_ld"; then
10395    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10396  else
10397    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10398    case $host_os in
10399      sco3.2v5*)
10400        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10401	;;
10402    esac
10403  fi
10404  sys_lib_dlsearch_path_spec='/usr/lib'
10405  ;;
10406
10407tpf*)
10408  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10409  version_type=linux # correct to gnu/linux during the next big refactor
10410  need_lib_prefix=no
10411  need_version=no
10412  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10413  shlibpath_var=LD_LIBRARY_PATH
10414  shlibpath_overrides_runpath=no
10415  hardcode_into_libs=yes
10416  ;;
10417
10418uts4*)
10419  version_type=linux # correct to gnu/linux during the next big refactor
10420  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10421  soname_spec='$libname$release$shared_ext$major'
10422  shlibpath_var=LD_LIBRARY_PATH
10423  ;;
10424
10425*)
10426  dynamic_linker=no
10427  ;;
10428esac
10429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10430$as_echo "$dynamic_linker" >&6; }
10431test no = "$dynamic_linker" && can_build_shared=no
10432
10433variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10434if test yes = "$GCC"; then
10435  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10436fi
10437
10438if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
10439  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
10440fi
10441
10442if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
10443  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
10444fi
10445
10446# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
10447configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
10448
10449# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
10450func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
10451
10452# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
10453configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10552$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10553hardcode_action=
10554if test -n "$hardcode_libdir_flag_spec" ||
10555   test -n "$runpath_var" ||
10556   test yes = "$hardcode_automatic"; then
10557
10558  # We can hardcode non-existent directories.
10559  if test no != "$hardcode_direct" &&
10560     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10561     # have to relink, otherwise we might link with an installed library
10562     # when we should be linking with a yet-to-be-installed one
10563     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
10564     test no != "$hardcode_minus_L"; then
10565    # Linking always hardcodes the temporary library directory.
10566    hardcode_action=relink
10567  else
10568    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10569    hardcode_action=immediate
10570  fi
10571else
10572  # We cannot hardcode anything, or else we can only hardcode existing
10573  # directories.
10574  hardcode_action=unsupported
10575fi
10576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10577$as_echo "$hardcode_action" >&6; }
10578
10579if test relink = "$hardcode_action" ||
10580   test yes = "$inherit_rpath"; then
10581  # Fast installation is not supported
10582  enable_fast_install=no
10583elif test yes = "$shlibpath_overrides_runpath" ||
10584     test no = "$enable_shared"; then
10585  # Fast installation is not necessary
10586  enable_fast_install=needless
10587fi
10588
10589
10590
10591
10592
10593
10594  if test yes != "$enable_dlopen"; then
10595  enable_dlopen=unknown
10596  enable_dlopen_self=unknown
10597  enable_dlopen_self_static=unknown
10598else
10599  lt_cv_dlopen=no
10600  lt_cv_dlopen_libs=
10601
10602  case $host_os in
10603  beos*)
10604    lt_cv_dlopen=load_add_on
10605    lt_cv_dlopen_libs=
10606    lt_cv_dlopen_self=yes
10607    ;;
10608
10609  mingw* | pw32* | cegcc*)
10610    lt_cv_dlopen=LoadLibrary
10611    lt_cv_dlopen_libs=
10612    ;;
10613
10614  cygwin*)
10615    lt_cv_dlopen=dlopen
10616    lt_cv_dlopen_libs=
10617    ;;
10618
10619  darwin*)
10620    # if libdl is installed we need to link against it
10621    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10622$as_echo_n "checking for dlopen in -ldl... " >&6; }
10623if ${ac_cv_lib_dl_dlopen+:} false; then :
10624  $as_echo_n "(cached) " >&6
10625else
10626  ac_check_lib_save_LIBS=$LIBS
10627LIBS="-ldl  $LIBS"
10628cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10629/* end confdefs.h.  */
10630
10631/* Override any GCC internal prototype to avoid an error.
10632   Use char because int might match the return type of a GCC
10633   builtin and then its argument prototype would still apply.  */
10634#ifdef __cplusplus
10635extern "C"
10636#endif
10637char dlopen ();
10638int
10639main ()
10640{
10641return dlopen ();
10642  ;
10643  return 0;
10644}
10645_ACEOF
10646if ac_fn_c_try_link "$LINENO"; then :
10647  ac_cv_lib_dl_dlopen=yes
10648else
10649  ac_cv_lib_dl_dlopen=no
10650fi
10651rm -f core conftest.err conftest.$ac_objext \
10652    conftest$ac_exeext conftest.$ac_ext
10653LIBS=$ac_check_lib_save_LIBS
10654fi
10655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10656$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10657if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10658  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
10659else
10660
10661    lt_cv_dlopen=dyld
10662    lt_cv_dlopen_libs=
10663    lt_cv_dlopen_self=yes
10664
10665fi
10666
10667    ;;
10668
10669  tpf*)
10670    # Don't try to run any link tests for TPF.  We know it's impossible
10671    # because TPF is a cross-compiler, and we know how we open DSOs.
10672    lt_cv_dlopen=dlopen
10673    lt_cv_dlopen_libs=
10674    lt_cv_dlopen_self=no
10675    ;;
10676
10677  *)
10678    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10679if test "x$ac_cv_func_shl_load" = xyes; then :
10680  lt_cv_dlopen=shl_load
10681else
10682  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10683$as_echo_n "checking for shl_load in -ldld... " >&6; }
10684if ${ac_cv_lib_dld_shl_load+:} false; then :
10685  $as_echo_n "(cached) " >&6
10686else
10687  ac_check_lib_save_LIBS=$LIBS
10688LIBS="-ldld  $LIBS"
10689cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10690/* end confdefs.h.  */
10691
10692/* Override any GCC internal prototype to avoid an error.
10693   Use char because int might match the return type of a GCC
10694   builtin and then its argument prototype would still apply.  */
10695#ifdef __cplusplus
10696extern "C"
10697#endif
10698char shl_load ();
10699int
10700main ()
10701{
10702return shl_load ();
10703  ;
10704  return 0;
10705}
10706_ACEOF
10707if ac_fn_c_try_link "$LINENO"; then :
10708  ac_cv_lib_dld_shl_load=yes
10709else
10710  ac_cv_lib_dld_shl_load=no
10711fi
10712rm -f core conftest.err conftest.$ac_objext \
10713    conftest$ac_exeext conftest.$ac_ext
10714LIBS=$ac_check_lib_save_LIBS
10715fi
10716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10717$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10718if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10719  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
10720else
10721  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10722if test "x$ac_cv_func_dlopen" = xyes; then :
10723  lt_cv_dlopen=dlopen
10724else
10725  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10726$as_echo_n "checking for dlopen in -ldl... " >&6; }
10727if ${ac_cv_lib_dl_dlopen+:} false; then :
10728  $as_echo_n "(cached) " >&6
10729else
10730  ac_check_lib_save_LIBS=$LIBS
10731LIBS="-ldl  $LIBS"
10732cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10733/* end confdefs.h.  */
10734
10735/* Override any GCC internal prototype to avoid an error.
10736   Use char because int might match the return type of a GCC
10737   builtin and then its argument prototype would still apply.  */
10738#ifdef __cplusplus
10739extern "C"
10740#endif
10741char dlopen ();
10742int
10743main ()
10744{
10745return dlopen ();
10746  ;
10747  return 0;
10748}
10749_ACEOF
10750if ac_fn_c_try_link "$LINENO"; then :
10751  ac_cv_lib_dl_dlopen=yes
10752else
10753  ac_cv_lib_dl_dlopen=no
10754fi
10755rm -f core conftest.err conftest.$ac_objext \
10756    conftest$ac_exeext conftest.$ac_ext
10757LIBS=$ac_check_lib_save_LIBS
10758fi
10759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10760$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10761if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10762  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
10763else
10764  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10765$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10766if ${ac_cv_lib_svld_dlopen+:} false; then :
10767  $as_echo_n "(cached) " >&6
10768else
10769  ac_check_lib_save_LIBS=$LIBS
10770LIBS="-lsvld  $LIBS"
10771cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10772/* end confdefs.h.  */
10773
10774/* Override any GCC internal prototype to avoid an error.
10775   Use char because int might match the return type of a GCC
10776   builtin and then its argument prototype would still apply.  */
10777#ifdef __cplusplus
10778extern "C"
10779#endif
10780char dlopen ();
10781int
10782main ()
10783{
10784return dlopen ();
10785  ;
10786  return 0;
10787}
10788_ACEOF
10789if ac_fn_c_try_link "$LINENO"; then :
10790  ac_cv_lib_svld_dlopen=yes
10791else
10792  ac_cv_lib_svld_dlopen=no
10793fi
10794rm -f core conftest.err conftest.$ac_objext \
10795    conftest$ac_exeext conftest.$ac_ext
10796LIBS=$ac_check_lib_save_LIBS
10797fi
10798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10799$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10800if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10801  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
10802else
10803  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10804$as_echo_n "checking for dld_link in -ldld... " >&6; }
10805if ${ac_cv_lib_dld_dld_link+:} false; then :
10806  $as_echo_n "(cached) " >&6
10807else
10808  ac_check_lib_save_LIBS=$LIBS
10809LIBS="-ldld  $LIBS"
10810cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10811/* end confdefs.h.  */
10812
10813/* Override any GCC internal prototype to avoid an error.
10814   Use char because int might match the return type of a GCC
10815   builtin and then its argument prototype would still apply.  */
10816#ifdef __cplusplus
10817extern "C"
10818#endif
10819char dld_link ();
10820int
10821main ()
10822{
10823return dld_link ();
10824  ;
10825  return 0;
10826}
10827_ACEOF
10828if ac_fn_c_try_link "$LINENO"; then :
10829  ac_cv_lib_dld_dld_link=yes
10830else
10831  ac_cv_lib_dld_dld_link=no
10832fi
10833rm -f core conftest.err conftest.$ac_objext \
10834    conftest$ac_exeext conftest.$ac_ext
10835LIBS=$ac_check_lib_save_LIBS
10836fi
10837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10838$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10839if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10840  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
10841fi
10842
10843
10844fi
10845
10846
10847fi
10848
10849
10850fi
10851
10852
10853fi
10854
10855
10856fi
10857
10858    ;;
10859  esac
10860
10861  if test no = "$lt_cv_dlopen"; then
10862    enable_dlopen=no
10863  else
10864    enable_dlopen=yes
10865  fi
10866
10867  case $lt_cv_dlopen in
10868  dlopen)
10869    save_CPPFLAGS=$CPPFLAGS
10870    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10871
10872    save_LDFLAGS=$LDFLAGS
10873    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10874
10875    save_LIBS=$LIBS
10876    LIBS="$lt_cv_dlopen_libs $LIBS"
10877
10878    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10879$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10880if ${lt_cv_dlopen_self+:} false; then :
10881  $as_echo_n "(cached) " >&6
10882else
10883  	  if test yes = "$cross_compiling"; then :
10884  lt_cv_dlopen_self=cross
10885else
10886  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10887  lt_status=$lt_dlunknown
10888  cat > conftest.$ac_ext <<_LT_EOF
10889#line $LINENO "configure"
10890#include "confdefs.h"
10891
10892#if HAVE_DLFCN_H
10893#include <dlfcn.h>
10894#endif
10895
10896#include <stdio.h>
10897
10898#ifdef RTLD_GLOBAL
10899#  define LT_DLGLOBAL		RTLD_GLOBAL
10900#else
10901#  ifdef DL_GLOBAL
10902#    define LT_DLGLOBAL		DL_GLOBAL
10903#  else
10904#    define LT_DLGLOBAL		0
10905#  endif
10906#endif
10907
10908/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10909   find out it does not work in some platform. */
10910#ifndef LT_DLLAZY_OR_NOW
10911#  ifdef RTLD_LAZY
10912#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10913#  else
10914#    ifdef DL_LAZY
10915#      define LT_DLLAZY_OR_NOW		DL_LAZY
10916#    else
10917#      ifdef RTLD_NOW
10918#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10919#      else
10920#        ifdef DL_NOW
10921#          define LT_DLLAZY_OR_NOW	DL_NOW
10922#        else
10923#          define LT_DLLAZY_OR_NOW	0
10924#        endif
10925#      endif
10926#    endif
10927#  endif
10928#endif
10929
10930/* When -fvisibility=hidden is used, assume the code has been annotated
10931   correspondingly for the symbols needed.  */
10932#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10933int fnord () __attribute__((visibility("default")));
10934#endif
10935
10936int fnord () { return 42; }
10937int main ()
10938{
10939  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10940  int status = $lt_dlunknown;
10941
10942  if (self)
10943    {
10944      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10945      else
10946        {
10947	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10948          else puts (dlerror ());
10949	}
10950      /* dlclose (self); */
10951    }
10952  else
10953    puts (dlerror ());
10954
10955  return status;
10956}
10957_LT_EOF
10958  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10959  (eval $ac_link) 2>&5
10960  ac_status=$?
10961  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10962  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
10963    (./conftest; exit; ) >&5 2>/dev/null
10964    lt_status=$?
10965    case x$lt_status in
10966      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10967      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10968      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10969    esac
10970  else :
10971    # compilation failed
10972    lt_cv_dlopen_self=no
10973  fi
10974fi
10975rm -fr conftest*
10976
10977
10978fi
10979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10980$as_echo "$lt_cv_dlopen_self" >&6; }
10981
10982    if test yes = "$lt_cv_dlopen_self"; then
10983      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10984      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10985$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10986if ${lt_cv_dlopen_self_static+:} false; then :
10987  $as_echo_n "(cached) " >&6
10988else
10989  	  if test yes = "$cross_compiling"; then :
10990  lt_cv_dlopen_self_static=cross
10991else
10992  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10993  lt_status=$lt_dlunknown
10994  cat > conftest.$ac_ext <<_LT_EOF
10995#line $LINENO "configure"
10996#include "confdefs.h"
10997
10998#if HAVE_DLFCN_H
10999#include <dlfcn.h>
11000#endif
11001
11002#include <stdio.h>
11003
11004#ifdef RTLD_GLOBAL
11005#  define LT_DLGLOBAL		RTLD_GLOBAL
11006#else
11007#  ifdef DL_GLOBAL
11008#    define LT_DLGLOBAL		DL_GLOBAL
11009#  else
11010#    define LT_DLGLOBAL		0
11011#  endif
11012#endif
11013
11014/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11015   find out it does not work in some platform. */
11016#ifndef LT_DLLAZY_OR_NOW
11017#  ifdef RTLD_LAZY
11018#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11019#  else
11020#    ifdef DL_LAZY
11021#      define LT_DLLAZY_OR_NOW		DL_LAZY
11022#    else
11023#      ifdef RTLD_NOW
11024#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11025#      else
11026#        ifdef DL_NOW
11027#          define LT_DLLAZY_OR_NOW	DL_NOW
11028#        else
11029#          define LT_DLLAZY_OR_NOW	0
11030#        endif
11031#      endif
11032#    endif
11033#  endif
11034#endif
11035
11036/* When -fvisibility=hidden is used, assume the code has been annotated
11037   correspondingly for the symbols needed.  */
11038#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11039int fnord () __attribute__((visibility("default")));
11040#endif
11041
11042int fnord () { return 42; }
11043int main ()
11044{
11045  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11046  int status = $lt_dlunknown;
11047
11048  if (self)
11049    {
11050      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11051      else
11052        {
11053	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11054          else puts (dlerror ());
11055	}
11056      /* dlclose (self); */
11057    }
11058  else
11059    puts (dlerror ());
11060
11061  return status;
11062}
11063_LT_EOF
11064  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11065  (eval $ac_link) 2>&5
11066  ac_status=$?
11067  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11068  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11069    (./conftest; exit; ) >&5 2>/dev/null
11070    lt_status=$?
11071    case x$lt_status in
11072      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11073      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11074      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11075    esac
11076  else :
11077    # compilation failed
11078    lt_cv_dlopen_self_static=no
11079  fi
11080fi
11081rm -fr conftest*
11082
11083
11084fi
11085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11086$as_echo "$lt_cv_dlopen_self_static" >&6; }
11087    fi
11088
11089    CPPFLAGS=$save_CPPFLAGS
11090    LDFLAGS=$save_LDFLAGS
11091    LIBS=$save_LIBS
11092    ;;
11093  esac
11094
11095  case $lt_cv_dlopen_self in
11096  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11097  *) enable_dlopen_self=unknown ;;
11098  esac
11099
11100  case $lt_cv_dlopen_self_static in
11101  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11102  *) enable_dlopen_self_static=unknown ;;
11103  esac
11104fi
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122striplib=
11123old_striplib=
11124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11125$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11126if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11127  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11128  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11130$as_echo "yes" >&6; }
11131else
11132# FIXME - insert some real tests, host_os isn't really good enough
11133  case $host_os in
11134  darwin*)
11135    if test -n "$STRIP"; then
11136      striplib="$STRIP -x"
11137      old_striplib="$STRIP -S"
11138      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11139$as_echo "yes" >&6; }
11140    else
11141      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11142$as_echo "no" >&6; }
11143    fi
11144    ;;
11145  *)
11146    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11147$as_echo "no" >&6; }
11148    ;;
11149  esac
11150fi
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163  # Report what library types will actually be built
11164  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11165$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11166  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11167$as_echo "$can_build_shared" >&6; }
11168
11169  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11170$as_echo_n "checking whether to build shared libraries... " >&6; }
11171  test no = "$can_build_shared" && enable_shared=no
11172
11173  # On AIX, shared libraries and static libraries use the same namespace, and
11174  # are all built from PIC.
11175  case $host_os in
11176  aix3*)
11177    test yes = "$enable_shared" && enable_static=no
11178    if test -n "$RANLIB"; then
11179      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11180      postinstall_cmds='$RANLIB $lib'
11181    fi
11182    ;;
11183
11184  aix[4-9]*)
11185    if test ia64 != "$host_cpu"; then
11186      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11187      yes,aix,yes) ;;			# shared object as lib.so file only
11188      yes,svr4,*) ;;			# shared object as lib.so archive member only
11189      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
11190      esac
11191    fi
11192    ;;
11193  esac
11194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11195$as_echo "$enable_shared" >&6; }
11196
11197  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11198$as_echo_n "checking whether to build static libraries... " >&6; }
11199  # Make sure either enable_shared or enable_static is yes.
11200  test yes = "$enable_shared" || enable_static=yes
11201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11202$as_echo "$enable_static" >&6; }
11203
11204
11205
11206
11207fi
11208ac_ext=c
11209ac_cpp='$CPP $CPPFLAGS'
11210ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11211ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11212ac_compiler_gnu=$ac_cv_c_compiler_gnu
11213
11214CC=$lt_save_CC
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230        ac_config_commands="$ac_config_commands libtool"
11231
11232
11233
11234
11235# Only expand once:
11236
11237
11238
11239
11240ac_ext=c
11241ac_cpp='$CPP $CPPFLAGS'
11242ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11243ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11244ac_compiler_gnu=$ac_cv_c_compiler_gnu
11245if test -n "$ac_tool_prefix"; then
11246  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11247set dummy ${ac_tool_prefix}gcc; ac_word=$2
11248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11249$as_echo_n "checking for $ac_word... " >&6; }
11250if ${ac_cv_prog_CC+:} false; then :
11251  $as_echo_n "(cached) " >&6
11252else
11253  if test -n "$CC"; then
11254  ac_cv_prog_CC="$CC" # Let the user override the test.
11255else
11256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11257for as_dir in $PATH
11258do
11259  IFS=$as_save_IFS
11260  test -z "$as_dir" && as_dir=.
11261    for ac_exec_ext in '' $ac_executable_extensions; do
11262  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11263    ac_cv_prog_CC="${ac_tool_prefix}gcc"
11264    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11265    break 2
11266  fi
11267done
11268  done
11269IFS=$as_save_IFS
11270
11271fi
11272fi
11273CC=$ac_cv_prog_CC
11274if test -n "$CC"; then
11275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11276$as_echo "$CC" >&6; }
11277else
11278  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11279$as_echo "no" >&6; }
11280fi
11281
11282
11283fi
11284if test -z "$ac_cv_prog_CC"; then
11285  ac_ct_CC=$CC
11286  # Extract the first word of "gcc", so it can be a program name with args.
11287set dummy gcc; ac_word=$2
11288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11289$as_echo_n "checking for $ac_word... " >&6; }
11290if ${ac_cv_prog_ac_ct_CC+:} false; then :
11291  $as_echo_n "(cached) " >&6
11292else
11293  if test -n "$ac_ct_CC"; then
11294  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11295else
11296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11297for as_dir in $PATH
11298do
11299  IFS=$as_save_IFS
11300  test -z "$as_dir" && as_dir=.
11301    for ac_exec_ext in '' $ac_executable_extensions; do
11302  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11303    ac_cv_prog_ac_ct_CC="gcc"
11304    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11305    break 2
11306  fi
11307done
11308  done
11309IFS=$as_save_IFS
11310
11311fi
11312fi
11313ac_ct_CC=$ac_cv_prog_ac_ct_CC
11314if test -n "$ac_ct_CC"; then
11315  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11316$as_echo "$ac_ct_CC" >&6; }
11317else
11318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11319$as_echo "no" >&6; }
11320fi
11321
11322  if test "x$ac_ct_CC" = x; then
11323    CC=""
11324  else
11325    case $cross_compiling:$ac_tool_warned in
11326yes:)
11327{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11328$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11329ac_tool_warned=yes ;;
11330esac
11331    CC=$ac_ct_CC
11332  fi
11333else
11334  CC="$ac_cv_prog_CC"
11335fi
11336
11337if test -z "$CC"; then
11338          if test -n "$ac_tool_prefix"; then
11339    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11340set dummy ${ac_tool_prefix}cc; ac_word=$2
11341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11342$as_echo_n "checking for $ac_word... " >&6; }
11343if ${ac_cv_prog_CC+:} false; then :
11344  $as_echo_n "(cached) " >&6
11345else
11346  if test -n "$CC"; then
11347  ac_cv_prog_CC="$CC" # Let the user override the test.
11348else
11349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11350for as_dir in $PATH
11351do
11352  IFS=$as_save_IFS
11353  test -z "$as_dir" && as_dir=.
11354    for ac_exec_ext in '' $ac_executable_extensions; do
11355  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11356    ac_cv_prog_CC="${ac_tool_prefix}cc"
11357    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11358    break 2
11359  fi
11360done
11361  done
11362IFS=$as_save_IFS
11363
11364fi
11365fi
11366CC=$ac_cv_prog_CC
11367if test -n "$CC"; then
11368  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11369$as_echo "$CC" >&6; }
11370else
11371  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11372$as_echo "no" >&6; }
11373fi
11374
11375
11376  fi
11377fi
11378if test -z "$CC"; then
11379  # Extract the first word of "cc", so it can be a program name with args.
11380set dummy cc; ac_word=$2
11381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11382$as_echo_n "checking for $ac_word... " >&6; }
11383if ${ac_cv_prog_CC+:} false; then :
11384  $as_echo_n "(cached) " >&6
11385else
11386  if test -n "$CC"; then
11387  ac_cv_prog_CC="$CC" # Let the user override the test.
11388else
11389  ac_prog_rejected=no
11390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11391for as_dir in $PATH
11392do
11393  IFS=$as_save_IFS
11394  test -z "$as_dir" && as_dir=.
11395    for ac_exec_ext in '' $ac_executable_extensions; do
11396  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11397    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11398       ac_prog_rejected=yes
11399       continue
11400     fi
11401    ac_cv_prog_CC="cc"
11402    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11403    break 2
11404  fi
11405done
11406  done
11407IFS=$as_save_IFS
11408
11409if test $ac_prog_rejected = yes; then
11410  # We found a bogon in the path, so make sure we never use it.
11411  set dummy $ac_cv_prog_CC
11412  shift
11413  if test $# != 0; then
11414    # We chose a different compiler from the bogus one.
11415    # However, it has the same basename, so the bogon will be chosen
11416    # first if we set CC to just the basename; use the full file name.
11417    shift
11418    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11419  fi
11420fi
11421fi
11422fi
11423CC=$ac_cv_prog_CC
11424if test -n "$CC"; then
11425  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11426$as_echo "$CC" >&6; }
11427else
11428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11429$as_echo "no" >&6; }
11430fi
11431
11432
11433fi
11434if test -z "$CC"; then
11435  if test -n "$ac_tool_prefix"; then
11436  for ac_prog in cl.exe
11437  do
11438    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11439set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11441$as_echo_n "checking for $ac_word... " >&6; }
11442if ${ac_cv_prog_CC+:} false; then :
11443  $as_echo_n "(cached) " >&6
11444else
11445  if test -n "$CC"; then
11446  ac_cv_prog_CC="$CC" # Let the user override the test.
11447else
11448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11449for as_dir in $PATH
11450do
11451  IFS=$as_save_IFS
11452  test -z "$as_dir" && as_dir=.
11453    for ac_exec_ext in '' $ac_executable_extensions; do
11454  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11455    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11456    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11457    break 2
11458  fi
11459done
11460  done
11461IFS=$as_save_IFS
11462
11463fi
11464fi
11465CC=$ac_cv_prog_CC
11466if test -n "$CC"; then
11467  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11468$as_echo "$CC" >&6; }
11469else
11470  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11471$as_echo "no" >&6; }
11472fi
11473
11474
11475    test -n "$CC" && break
11476  done
11477fi
11478if test -z "$CC"; then
11479  ac_ct_CC=$CC
11480  for ac_prog in cl.exe
11481do
11482  # Extract the first word of "$ac_prog", so it can be a program name with args.
11483set dummy $ac_prog; ac_word=$2
11484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11485$as_echo_n "checking for $ac_word... " >&6; }
11486if ${ac_cv_prog_ac_ct_CC+:} false; then :
11487  $as_echo_n "(cached) " >&6
11488else
11489  if test -n "$ac_ct_CC"; then
11490  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11491else
11492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11493for as_dir in $PATH
11494do
11495  IFS=$as_save_IFS
11496  test -z "$as_dir" && as_dir=.
11497    for ac_exec_ext in '' $ac_executable_extensions; do
11498  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11499    ac_cv_prog_ac_ct_CC="$ac_prog"
11500    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11501    break 2
11502  fi
11503done
11504  done
11505IFS=$as_save_IFS
11506
11507fi
11508fi
11509ac_ct_CC=$ac_cv_prog_ac_ct_CC
11510if test -n "$ac_ct_CC"; then
11511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11512$as_echo "$ac_ct_CC" >&6; }
11513else
11514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11515$as_echo "no" >&6; }
11516fi
11517
11518
11519  test -n "$ac_ct_CC" && break
11520done
11521
11522  if test "x$ac_ct_CC" = x; then
11523    CC=""
11524  else
11525    case $cross_compiling:$ac_tool_warned in
11526yes:)
11527{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11528$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11529ac_tool_warned=yes ;;
11530esac
11531    CC=$ac_ct_CC
11532  fi
11533fi
11534
11535fi
11536
11537
11538test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11539$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11540as_fn_error $? "no acceptable C compiler found in \$PATH
11541See \`config.log' for more details" "$LINENO" 5; }
11542
11543# Provide some information about the compiler.
11544$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11545set X $ac_compile
11546ac_compiler=$2
11547for ac_option in --version -v -V -qversion; do
11548  { { ac_try="$ac_compiler $ac_option >&5"
11549case "(($ac_try" in
11550  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11551  *) ac_try_echo=$ac_try;;
11552esac
11553eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11554$as_echo "$ac_try_echo"; } >&5
11555  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11556  ac_status=$?
11557  if test -s conftest.err; then
11558    sed '10a\
11559... rest of stderr output deleted ...
11560         10q' conftest.err >conftest.er1
11561    cat conftest.er1 >&5
11562  fi
11563  rm -f conftest.er1 conftest.err
11564  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11565  test $ac_status = 0; }
11566done
11567
11568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11569$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11570if ${ac_cv_c_compiler_gnu+:} false; then :
11571  $as_echo_n "(cached) " >&6
11572else
11573  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11574/* end confdefs.h.  */
11575
11576int
11577main ()
11578{
11579#ifndef __GNUC__
11580       choke me
11581#endif
11582
11583  ;
11584  return 0;
11585}
11586_ACEOF
11587if ac_fn_c_try_compile "$LINENO"; then :
11588  ac_compiler_gnu=yes
11589else
11590  ac_compiler_gnu=no
11591fi
11592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11593ac_cv_c_compiler_gnu=$ac_compiler_gnu
11594
11595fi
11596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11597$as_echo "$ac_cv_c_compiler_gnu" >&6; }
11598if test $ac_compiler_gnu = yes; then
11599  GCC=yes
11600else
11601  GCC=
11602fi
11603ac_test_CFLAGS=${CFLAGS+set}
11604ac_save_CFLAGS=$CFLAGS
11605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11606$as_echo_n "checking whether $CC accepts -g... " >&6; }
11607if ${ac_cv_prog_cc_g+:} false; then :
11608  $as_echo_n "(cached) " >&6
11609else
11610  ac_save_c_werror_flag=$ac_c_werror_flag
11611   ac_c_werror_flag=yes
11612   ac_cv_prog_cc_g=no
11613   CFLAGS="-g"
11614   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11615/* end confdefs.h.  */
11616
11617int
11618main ()
11619{
11620
11621  ;
11622  return 0;
11623}
11624_ACEOF
11625if ac_fn_c_try_compile "$LINENO"; then :
11626  ac_cv_prog_cc_g=yes
11627else
11628  CFLAGS=""
11629      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11630/* end confdefs.h.  */
11631
11632int
11633main ()
11634{
11635
11636  ;
11637  return 0;
11638}
11639_ACEOF
11640if ac_fn_c_try_compile "$LINENO"; then :
11641
11642else
11643  ac_c_werror_flag=$ac_save_c_werror_flag
11644	 CFLAGS="-g"
11645	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11646/* end confdefs.h.  */
11647
11648int
11649main ()
11650{
11651
11652  ;
11653  return 0;
11654}
11655_ACEOF
11656if ac_fn_c_try_compile "$LINENO"; then :
11657  ac_cv_prog_cc_g=yes
11658fi
11659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11660fi
11661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11662fi
11663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11664   ac_c_werror_flag=$ac_save_c_werror_flag
11665fi
11666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11667$as_echo "$ac_cv_prog_cc_g" >&6; }
11668if test "$ac_test_CFLAGS" = set; then
11669  CFLAGS=$ac_save_CFLAGS
11670elif test $ac_cv_prog_cc_g = yes; then
11671  if test "$GCC" = yes; then
11672    CFLAGS="-g -O2"
11673  else
11674    CFLAGS="-g"
11675  fi
11676else
11677  if test "$GCC" = yes; then
11678    CFLAGS="-O2"
11679  else
11680    CFLAGS=
11681  fi
11682fi
11683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11684$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11685if ${ac_cv_prog_cc_c89+:} false; then :
11686  $as_echo_n "(cached) " >&6
11687else
11688  ac_cv_prog_cc_c89=no
11689ac_save_CC=$CC
11690cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11691/* end confdefs.h.  */
11692#include <stdarg.h>
11693#include <stdio.h>
11694struct stat;
11695/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
11696struct buf { int x; };
11697FILE * (*rcsopen) (struct buf *, struct stat *, int);
11698static char *e (p, i)
11699     char **p;
11700     int i;
11701{
11702  return p[i];
11703}
11704static char *f (char * (*g) (char **, int), char **p, ...)
11705{
11706  char *s;
11707  va_list v;
11708  va_start (v,p);
11709  s = g (p, va_arg (v,int));
11710  va_end (v);
11711  return s;
11712}
11713
11714/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
11715   function prototypes and stuff, but not '\xHH' hex character constants.
11716   These don't provoke an error unfortunately, instead are silently treated
11717   as 'x'.  The following induces an error, until -std is added to get
11718   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
11719   array size at least.  It's necessary to write '\x00'==0 to get something
11720   that's true only with -std.  */
11721int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11722
11723/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11724   inside strings and character constants.  */
11725#define FOO(x) 'x'
11726int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11727
11728int test (int i, double x);
11729struct s1 {int (*f) (int a);};
11730struct s2 {int (*f) (double a);};
11731int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11732int argc;
11733char **argv;
11734int
11735main ()
11736{
11737return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11738  ;
11739  return 0;
11740}
11741_ACEOF
11742for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11743	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11744do
11745  CC="$ac_save_CC $ac_arg"
11746  if ac_fn_c_try_compile "$LINENO"; then :
11747  ac_cv_prog_cc_c89=$ac_arg
11748fi
11749rm -f core conftest.err conftest.$ac_objext
11750  test "x$ac_cv_prog_cc_c89" != "xno" && break
11751done
11752rm -f conftest.$ac_ext
11753CC=$ac_save_CC
11754
11755fi
11756# AC_CACHE_VAL
11757case "x$ac_cv_prog_cc_c89" in
11758  x)
11759    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11760$as_echo "none needed" >&6; } ;;
11761  xno)
11762    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11763$as_echo "unsupported" >&6; } ;;
11764  *)
11765    CC="$CC $ac_cv_prog_cc_c89"
11766    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11767$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11768esac
11769if test "x$ac_cv_prog_cc_c89" != xno; then :
11770
11771fi
11772
11773ac_ext=c
11774ac_cpp='$CPP $CPPFLAGS'
11775ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11776ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11777ac_compiler_gnu=$ac_cv_c_compiler_gnu
11778
11779ac_ext=c
11780ac_cpp='$CPP $CPPFLAGS'
11781ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11782ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11783ac_compiler_gnu=$ac_cv_c_compiler_gnu
11784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
11785$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
11786if ${am_cv_prog_cc_c_o+:} false; then :
11787  $as_echo_n "(cached) " >&6
11788else
11789  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11790/* end confdefs.h.  */
11791
11792int
11793main ()
11794{
11795
11796  ;
11797  return 0;
11798}
11799_ACEOF
11800  # Make sure it works both with $CC and with simple cc.
11801  # Following AC_PROG_CC_C_O, we do the test twice because some
11802  # compilers refuse to overwrite an existing .o file with -o,
11803  # though they will create one.
11804  am_cv_prog_cc_c_o=yes
11805  for am_i in 1 2; do
11806    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
11807   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
11808   ac_status=$?
11809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810   (exit $ac_status); } \
11811         && test -f conftest2.$ac_objext; then
11812      : OK
11813    else
11814      am_cv_prog_cc_c_o=no
11815      break
11816    fi
11817  done
11818  rm -f core conftest*
11819  unset am_i
11820fi
11821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
11822$as_echo "$am_cv_prog_cc_c_o" >&6; }
11823if test "$am_cv_prog_cc_c_o" != yes; then
11824   # Losing compiler, so override with the script.
11825   # FIXME: It is wrong to rewrite CC.
11826   # But if we don't then we get into trouble of one sort or another.
11827   # A longer-term fix would be to have automake use am__CC in this case,
11828   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11829   CC="$am_aux_dir/compile $CC"
11830fi
11831ac_ext=c
11832ac_cpp='$CPP $CPPFLAGS'
11833ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11834ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11835ac_compiler_gnu=$ac_cv_c_compiler_gnu
11836
11837
11838
11839
11840
11841ac_config_files="$ac_config_files Makefile"
11842
11843am__api_version='1.16'
11844
11845# Find a good install program.  We prefer a C program (faster),
11846# so one script is as good as another.  But avoid the broken or
11847# incompatible versions:
11848# SysV /etc/install, /usr/sbin/install
11849# SunOS /usr/etc/install
11850# IRIX /sbin/install
11851# AIX /bin/install
11852# AmigaOS /C/install, which installs bootblocks on floppy discs
11853# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11854# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11855# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11856# OS/2's system install, which has a completely different semantic
11857# ./install, which can be erroneously created by make from ./install.sh.
11858# Reject install programs that cannot install multiple files.
11859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
11860$as_echo_n "checking for a BSD-compatible install... " >&6; }
11861if test -z "$INSTALL"; then
11862if ${ac_cv_path_install+:} false; then :
11863  $as_echo_n "(cached) " >&6
11864else
11865  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11866for as_dir in $PATH
11867do
11868  IFS=$as_save_IFS
11869  test -z "$as_dir" && as_dir=.
11870    # Account for people who put trailing slashes in PATH elements.
11871case $as_dir/ in #((
11872  ./ | .// | /[cC]/* | \
11873  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11874  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
11875  /usr/ucb/* ) ;;
11876  *)
11877    # OSF1 and SCO ODT 3.0 have their own names for install.
11878    # Don't use installbsd from OSF since it installs stuff as root
11879    # by default.
11880    for ac_prog in ginstall scoinst install; do
11881      for ac_exec_ext in '' $ac_executable_extensions; do
11882	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11883	  if test $ac_prog = install &&
11884	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11885	    # AIX install.  It has an incompatible calling convention.
11886	    :
11887	  elif test $ac_prog = install &&
11888	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11889	    # program-specific install script used by HP pwplus--don't use.
11890	    :
11891	  else
11892	    rm -rf conftest.one conftest.two conftest.dir
11893	    echo one > conftest.one
11894	    echo two > conftest.two
11895	    mkdir conftest.dir
11896	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11897	      test -s conftest.one && test -s conftest.two &&
11898	      test -s conftest.dir/conftest.one &&
11899	      test -s conftest.dir/conftest.two
11900	    then
11901	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11902	      break 3
11903	    fi
11904	  fi
11905	fi
11906      done
11907    done
11908    ;;
11909esac
11910
11911  done
11912IFS=$as_save_IFS
11913
11914rm -rf conftest.one conftest.two conftest.dir
11915
11916fi
11917  if test "${ac_cv_path_install+set}" = set; then
11918    INSTALL=$ac_cv_path_install
11919  else
11920    # As a last resort, use the slow shell script.  Don't cache a
11921    # value for INSTALL within a source directory, because that will
11922    # break other packages using the cache if that directory is
11923    # removed, or if the value is a relative name.
11924    INSTALL=$ac_install_sh
11925  fi
11926fi
11927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
11928$as_echo "$INSTALL" >&6; }
11929
11930# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11931# It thinks the first close brace ends the variable substitution.
11932test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11933
11934test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11935
11936test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11937
11938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
11939$as_echo_n "checking whether build environment is sane... " >&6; }
11940# Reject unsafe characters in $srcdir or the absolute working directory
11941# name.  Accept space and tab only in the latter.
11942am_lf='
11943'
11944case `pwd` in
11945  *[\\\"\#\$\&\'\`$am_lf]*)
11946    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
11947esac
11948case $srcdir in
11949  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
11950    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
11951esac
11952
11953# Do 'set' in a subshell so we don't clobber the current shell's
11954# arguments.  Must try -L first in case configure is actually a
11955# symlink; some systems play weird games with the mod time of symlinks
11956# (eg FreeBSD returns the mod time of the symlink's containing
11957# directory).
11958if (
11959   am_has_slept=no
11960   for am_try in 1 2; do
11961     echo "timestamp, slept: $am_has_slept" > conftest.file
11962     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
11963     if test "$*" = "X"; then
11964	# -L didn't work.
11965	set X `ls -t "$srcdir/configure" conftest.file`
11966     fi
11967     if test "$*" != "X $srcdir/configure conftest.file" \
11968	&& test "$*" != "X conftest.file $srcdir/configure"; then
11969
11970	# If neither matched, then we have a broken ls.  This can happen
11971	# if, for instance, CONFIG_SHELL is bash and it inherits a
11972	# broken ls alias from the environment.  This has actually
11973	# happened.  Such a system could not be considered "sane".
11974	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
11975  alias in your environment" "$LINENO" 5
11976     fi
11977     if test "$2" = conftest.file || test $am_try -eq 2; then
11978       break
11979     fi
11980     # Just in case.
11981     sleep 1
11982     am_has_slept=yes
11983   done
11984   test "$2" = conftest.file
11985   )
11986then
11987   # Ok.
11988   :
11989else
11990   as_fn_error $? "newly created file is older than distributed files!
11991Check your system clock" "$LINENO" 5
11992fi
11993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11994$as_echo "yes" >&6; }
11995# If we didn't sleep, we still need to ensure time stamps of config.status and
11996# generated files are strictly newer.
11997am_sleep_pid=
11998if grep 'slept: no' conftest.file >/dev/null 2>&1; then
11999  ( sleep 1 ) &
12000  am_sleep_pid=$!
12001fi
12002
12003rm -f conftest.file
12004
12005test "$program_prefix" != NONE &&
12006  program_transform_name="s&^&$program_prefix&;$program_transform_name"
12007# Use a double $ so make ignores it.
12008test "$program_suffix" != NONE &&
12009  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
12010# Double any \ or $.
12011# By default was `s,x,x', remove it if useless.
12012ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
12013program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
12014
12015if test x"${MISSING+set}" != xset; then
12016  case $am_aux_dir in
12017  *\ * | *\	*)
12018    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
12019  *)
12020    MISSING="\${SHELL} $am_aux_dir/missing" ;;
12021  esac
12022fi
12023# Use eval to expand $SHELL
12024if eval "$MISSING --is-lightweight"; then
12025  am_missing_run="$MISSING "
12026else
12027  am_missing_run=
12028  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
12029$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
12030fi
12031
12032if test x"${install_sh+set}" != xset; then
12033  case $am_aux_dir in
12034  *\ * | *\	*)
12035    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
12036  *)
12037    install_sh="\${SHELL} $am_aux_dir/install-sh"
12038  esac
12039fi
12040
12041# Installed binaries are usually stripped using 'strip' when the user
12042# run "make install-strip".  However 'strip' might not be the right
12043# tool to use in cross-compilation environments, therefore Automake
12044# will honor the 'STRIP' environment variable to overrule this program.
12045if test "$cross_compiling" != no; then
12046  if test -n "$ac_tool_prefix"; then
12047  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12048set dummy ${ac_tool_prefix}strip; ac_word=$2
12049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12050$as_echo_n "checking for $ac_word... " >&6; }
12051if ${ac_cv_prog_STRIP+:} false; then :
12052  $as_echo_n "(cached) " >&6
12053else
12054  if test -n "$STRIP"; then
12055  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12056else
12057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12058for as_dir in $PATH
12059do
12060  IFS=$as_save_IFS
12061  test -z "$as_dir" && as_dir=.
12062    for ac_exec_ext in '' $ac_executable_extensions; do
12063  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12064    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12065    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12066    break 2
12067  fi
12068done
12069  done
12070IFS=$as_save_IFS
12071
12072fi
12073fi
12074STRIP=$ac_cv_prog_STRIP
12075if test -n "$STRIP"; then
12076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12077$as_echo "$STRIP" >&6; }
12078else
12079  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12080$as_echo "no" >&6; }
12081fi
12082
12083
12084fi
12085if test -z "$ac_cv_prog_STRIP"; then
12086  ac_ct_STRIP=$STRIP
12087  # Extract the first word of "strip", so it can be a program name with args.
12088set dummy strip; ac_word=$2
12089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12090$as_echo_n "checking for $ac_word... " >&6; }
12091if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12092  $as_echo_n "(cached) " >&6
12093else
12094  if test -n "$ac_ct_STRIP"; then
12095  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12096else
12097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12098for as_dir in $PATH
12099do
12100  IFS=$as_save_IFS
12101  test -z "$as_dir" && as_dir=.
12102    for ac_exec_ext in '' $ac_executable_extensions; do
12103  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12104    ac_cv_prog_ac_ct_STRIP="strip"
12105    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12106    break 2
12107  fi
12108done
12109  done
12110IFS=$as_save_IFS
12111
12112fi
12113fi
12114ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12115if test -n "$ac_ct_STRIP"; then
12116  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12117$as_echo "$ac_ct_STRIP" >&6; }
12118else
12119  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12120$as_echo "no" >&6; }
12121fi
12122
12123  if test "x$ac_ct_STRIP" = x; then
12124    STRIP=":"
12125  else
12126    case $cross_compiling:$ac_tool_warned in
12127yes:)
12128{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12129$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12130ac_tool_warned=yes ;;
12131esac
12132    STRIP=$ac_ct_STRIP
12133  fi
12134else
12135  STRIP="$ac_cv_prog_STRIP"
12136fi
12137
12138fi
12139INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
12140
12141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
12142$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
12143if test -z "$MKDIR_P"; then
12144  if ${ac_cv_path_mkdir+:} false; then :
12145  $as_echo_n "(cached) " >&6
12146else
12147  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12148for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
12149do
12150  IFS=$as_save_IFS
12151  test -z "$as_dir" && as_dir=.
12152    for ac_prog in mkdir gmkdir; do
12153	 for ac_exec_ext in '' $ac_executable_extensions; do
12154	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
12155	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
12156	     'mkdir (GNU coreutils) '* | \
12157	     'mkdir (coreutils) '* | \
12158	     'mkdir (fileutils) '4.1*)
12159	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
12160	       break 3;;
12161	   esac
12162	 done
12163       done
12164  done
12165IFS=$as_save_IFS
12166
12167fi
12168
12169  test -d ./--version && rmdir ./--version
12170  if test "${ac_cv_path_mkdir+set}" = set; then
12171    MKDIR_P="$ac_cv_path_mkdir -p"
12172  else
12173    # As a last resort, use the slow shell script.  Don't cache a
12174    # value for MKDIR_P within a source directory, because that will
12175    # break other packages using the cache if that directory is
12176    # removed, or if the value is a relative name.
12177    MKDIR_P="$ac_install_sh -d"
12178  fi
12179fi
12180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
12181$as_echo "$MKDIR_P" >&6; }
12182
12183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
12184$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
12185set x ${MAKE-make}
12186ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
12187if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
12188  $as_echo_n "(cached) " >&6
12189else
12190  cat >conftest.make <<\_ACEOF
12191SHELL = /bin/sh
12192all:
12193	@echo '@@@%%%=$(MAKE)=@@@%%%'
12194_ACEOF
12195# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
12196case `${MAKE-make} -f conftest.make 2>/dev/null` in
12197  *@@@%%%=?*=@@@%%%*)
12198    eval ac_cv_prog_make_${ac_make}_set=yes;;
12199  *)
12200    eval ac_cv_prog_make_${ac_make}_set=no;;
12201esac
12202rm -f conftest.make
12203fi
12204if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
12205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12206$as_echo "yes" >&6; }
12207  SET_MAKE=
12208else
12209  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12210$as_echo "no" >&6; }
12211  SET_MAKE="MAKE=${MAKE-make}"
12212fi
12213
12214rm -rf .tst 2>/dev/null
12215mkdir .tst 2>/dev/null
12216if test -d .tst; then
12217  am__leading_dot=.
12218else
12219  am__leading_dot=_
12220fi
12221rmdir .tst 2>/dev/null
12222
12223DEPDIR="${am__leading_dot}deps"
12224
12225ac_config_commands="$ac_config_commands depfiles"
12226
12227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
12228$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
12229cat > confinc.mk << 'END'
12230am__doit:
12231	@echo this is the am__doit target >confinc.out
12232.PHONY: am__doit
12233END
12234am__include="#"
12235am__quote=
12236# BSD make does it like this.
12237echo '.include "confinc.mk" # ignored' > confmf.BSD
12238# Other make implementations (GNU, Solaris 10, AIX) do it like this.
12239echo 'include confinc.mk # ignored' > confmf.GNU
12240_am_result=no
12241for s in GNU BSD; do
12242  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
12243   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
12244   ac_status=$?
12245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246   (exit $ac_status); }
12247  case $?:`cat confinc.out 2>/dev/null` in #(
12248  '0:this is the am__doit target') :
12249    case $s in #(
12250  BSD) :
12251    am__include='.include' am__quote='"' ;; #(
12252  *) :
12253    am__include='include' am__quote='' ;;
12254esac ;; #(
12255  *) :
12256     ;;
12257esac
12258  if test "$am__include" != "#"; then
12259    _am_result="yes ($s style)"
12260    break
12261  fi
12262done
12263rm -f confinc.* confmf.*
12264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
12265$as_echo "${_am_result}" >&6; }
12266
12267# Check whether --enable-dependency-tracking was given.
12268if test "${enable_dependency_tracking+set}" = set; then :
12269  enableval=$enable_dependency_tracking;
12270fi
12271
12272if test "x$enable_dependency_tracking" != xno; then
12273  am_depcomp="$ac_aux_dir/depcomp"
12274  AMDEPBACKSLASH='\'
12275  am__nodep='_no'
12276fi
12277 if test "x$enable_dependency_tracking" != xno; then
12278  AMDEP_TRUE=
12279  AMDEP_FALSE='#'
12280else
12281  AMDEP_TRUE='#'
12282  AMDEP_FALSE=
12283fi
12284
12285
12286# Check whether --enable-silent-rules was given.
12287if test "${enable_silent_rules+set}" = set; then :
12288  enableval=$enable_silent_rules;
12289fi
12290
12291case $enable_silent_rules in # (((
12292  yes) AM_DEFAULT_VERBOSITY=0;;
12293   no) AM_DEFAULT_VERBOSITY=1;;
12294    *) AM_DEFAULT_VERBOSITY=1;;
12295esac
12296am_make=${MAKE-make}
12297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
12298$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
12299if ${am_cv_make_support_nested_variables+:} false; then :
12300  $as_echo_n "(cached) " >&6
12301else
12302  if $as_echo 'TRUE=$(BAR$(V))
12303BAR0=false
12304BAR1=true
12305V=1
12306am__doit:
12307	@$(TRUE)
12308.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
12309  am_cv_make_support_nested_variables=yes
12310else
12311  am_cv_make_support_nested_variables=no
12312fi
12313fi
12314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
12315$as_echo "$am_cv_make_support_nested_variables" >&6; }
12316if test $am_cv_make_support_nested_variables = yes; then
12317    AM_V='$(V)'
12318  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
12319else
12320  AM_V=$AM_DEFAULT_VERBOSITY
12321  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
12322fi
12323AM_BACKSLASH='\'
12324
12325if test "`cd $srcdir && pwd`" != "`pwd`"; then
12326  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
12327  # is not polluted with repeated "-I."
12328  am__isrc=' -I$(srcdir)'
12329  # test to see if srcdir already configured
12330  if test -f $srcdir/config.status; then
12331    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
12332  fi
12333fi
12334
12335# test whether we have cygpath
12336if test -z "$CYGPATH_W"; then
12337  if (cygpath --version) >/dev/null 2>/dev/null; then
12338    CYGPATH_W='cygpath -w'
12339  else
12340    CYGPATH_W=echo
12341  fi
12342fi
12343
12344
12345# Define the identity of the package.
12346 PACKAGE='imageworsener'
12347 VERSION='1.3.4'
12348
12349
12350cat >>confdefs.h <<_ACEOF
12351#define PACKAGE "$PACKAGE"
12352_ACEOF
12353
12354
12355cat >>confdefs.h <<_ACEOF
12356#define VERSION "$VERSION"
12357_ACEOF
12358
12359# Some tools Automake needs.
12360
12361ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
12362
12363
12364AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
12365
12366
12367AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
12368
12369
12370AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
12371
12372
12373MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
12374
12375# For better backward compatibility.  To be removed once Automake 1.9.x
12376# dies out for good.  For more background, see:
12377# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
12378# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
12379mkdir_p='$(MKDIR_P)'
12380
12381# We need awk for the "check" target (and possibly the TAP driver).  The
12382# system "awk" is bad on some platforms.
12383# Always define AMTAR for backward compatibility.  Yes, it's still used
12384# in the wild :-(  We should find a proper way to deprecate it ...
12385AMTAR='$${TAR-tar}'
12386
12387
12388# We'll loop over all known methods to create a tar archive until one works.
12389_am_tools='gnutar  pax cpio none'
12390
12391am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
12392
12393
12394
12395
12396
12397depcc="$CC"   am_compiler_list=
12398
12399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12400$as_echo_n "checking dependency style of $depcc... " >&6; }
12401if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12402  $as_echo_n "(cached) " >&6
12403else
12404  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12405  # We make a subdir and do the tests there.  Otherwise we can end up
12406  # making bogus files that we don't know about and never remove.  For
12407  # instance it was reported that on HP-UX the gcc test will end up
12408  # making a dummy file named 'D' -- because '-MD' means "put the output
12409  # in D".
12410  rm -rf conftest.dir
12411  mkdir conftest.dir
12412  # Copy depcomp to subdir because otherwise we won't find it if we're
12413  # using a relative directory.
12414  cp "$am_depcomp" conftest.dir
12415  cd conftest.dir
12416  # We will build objects and dependencies in a subdirectory because
12417  # it helps to detect inapplicable dependency modes.  For instance
12418  # both Tru64's cc and ICC support -MD to output dependencies as a
12419  # side effect of compilation, but ICC will put the dependencies in
12420  # the current directory while Tru64 will put them in the object
12421  # directory.
12422  mkdir sub
12423
12424  am_cv_CC_dependencies_compiler_type=none
12425  if test "$am_compiler_list" = ""; then
12426     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12427  fi
12428  am__universal=false
12429  case " $depcc " in #(
12430     *\ -arch\ *\ -arch\ *) am__universal=true ;;
12431     esac
12432
12433  for depmode in $am_compiler_list; do
12434    # Setup a source with many dependencies, because some compilers
12435    # like to wrap large dependency lists on column 80 (with \), and
12436    # we should not choose a depcomp mode which is confused by this.
12437    #
12438    # We need to recreate these files for each test, as the compiler may
12439    # overwrite some of them when testing with obscure command lines.
12440    # This happens at least with the AIX C compiler.
12441    : > sub/conftest.c
12442    for i in 1 2 3 4 5 6; do
12443      echo '#include "conftst'$i'.h"' >> sub/conftest.c
12444      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12445      # Solaris 10 /bin/sh.
12446      echo '/* dummy */' > sub/conftst$i.h
12447    done
12448    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12449
12450    # We check with '-c' and '-o' for the sake of the "dashmstdout"
12451    # mode.  It turns out that the SunPro C++ compiler does not properly
12452    # handle '-M -o', and we need to detect this.  Also, some Intel
12453    # versions had trouble with output in subdirs.
12454    am__obj=sub/conftest.${OBJEXT-o}
12455    am__minus_obj="-o $am__obj"
12456    case $depmode in
12457    gcc)
12458      # This depmode causes a compiler race in universal mode.
12459      test "$am__universal" = false || continue
12460      ;;
12461    nosideeffect)
12462      # After this tag, mechanisms are not by side-effect, so they'll
12463      # only be used when explicitly requested.
12464      if test "x$enable_dependency_tracking" = xyes; then
12465	continue
12466      else
12467	break
12468      fi
12469      ;;
12470    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12471      # This compiler won't grok '-c -o', but also, the minuso test has
12472      # not run yet.  These depmodes are late enough in the game, and
12473      # so weak that their functioning should not be impacted.
12474      am__obj=conftest.${OBJEXT-o}
12475      am__minus_obj=
12476      ;;
12477    none) break ;;
12478    esac
12479    if depmode=$depmode \
12480       source=sub/conftest.c object=$am__obj \
12481       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12482       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12483         >/dev/null 2>conftest.err &&
12484       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12485       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12486       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12487       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12488      # icc doesn't choke on unknown options, it will just issue warnings
12489      # or remarks (even with -Werror).  So we grep stderr for any message
12490      # that says an option was ignored or not supported.
12491      # When given -MP, icc 7.0 and 7.1 complain thusly:
12492      #   icc: Command line warning: ignoring option '-M'; no argument required
12493      # The diagnosis changed in icc 8.0:
12494      #   icc: Command line remark: option '-MP' not supported
12495      if (grep 'ignoring option' conftest.err ||
12496          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12497        am_cv_CC_dependencies_compiler_type=$depmode
12498        break
12499      fi
12500    fi
12501  done
12502
12503  cd ..
12504  rm -rf conftest.dir
12505else
12506  am_cv_CC_dependencies_compiler_type=none
12507fi
12508
12509fi
12510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12511$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12512CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12513
12514 if
12515  test "x$enable_dependency_tracking" != xno \
12516  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12517  am__fastdepCC_TRUE=
12518  am__fastdepCC_FALSE='#'
12519else
12520  am__fastdepCC_TRUE='#'
12521  am__fastdepCC_FALSE=
12522fi
12523
12524
12525
12526# POSIX will say in a future version that running "rm -f" with no argument
12527# is OK; and we want to be able to make that assumption in our Makefile
12528# recipes.  So use an aggressive probe to check that the usage we want is
12529# actually supported "in the wild" to an acceptable degree.
12530# See automake bug#10828.
12531# To make any issue more visible, cause the running configure to be aborted
12532# by default if the 'rm' program in use doesn't match our expectations; the
12533# user can still override this though.
12534if rm -f && rm -fr && rm -rf; then : OK; else
12535  cat >&2 <<'END'
12536Oops!
12537
12538Your 'rm' program seems unable to run without file operands specified
12539on the command line, even when the '-f' option is present.  This is contrary
12540to the behaviour of most rm programs out there, and not conforming with
12541the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
12542
12543Please tell bug-automake@gnu.org about your system, including the value
12544of your $PATH and any error possibly output before this message.  This
12545can help us improve future automake versions.
12546
12547END
12548  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
12549    echo 'Configuration will proceed anyway, since you have set the' >&2
12550    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
12551    echo >&2
12552  else
12553    cat >&2 <<'END'
12554Aborting the configuration process, to ensure you take notice of the issue.
12555
12556You can download and install GNU coreutils to get an 'rm' implementation
12557that behaves properly: <https://www.gnu.org/software/coreutils/>.
12558
12559If you want to complete the configuration process using your problematic
12560'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
12561to "yes", and re-run configure.
12562
12563END
12564    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
12565  fi
12566fi
12567
12568
12569
12570
12571# Check whether --with-zlib was given.
12572if test "${with_zlib+set}" = set; then :
12573  withval=$with_zlib; with_zlib=$withval
12574else
12575  with_zlib='yes'
12576fi
12577
12578
12579# Check whether --with-zlib-include-dir was given.
12580if test "${with_zlib_include_dir+set}" = set; then :
12581  withval=$with_zlib_include_dir;
12582fi
12583
12584
12585# Check whether --with-zlib-lib-dir was given.
12586if test "${with_zlib_lib_dir+set}" = set; then :
12587  withval=$with_zlib_lib_dir;
12588fi
12589
12590
12591if test "$with_zlib" != 'no'; then
12592 if test "x$with_zlib_include_dir" != "x"; then
12593  CPPFLAGS="-I$with_zlib_include_dir $CPPFLAGS"
12594 fi
12595 for ac_header in zlib.h
12596do :
12597  ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
12598if test "x$ac_cv_header_zlib_h" = xyes; then :
12599  cat >>confdefs.h <<_ACEOF
12600#define HAVE_ZLIB_H 1
12601_ACEOF
12602
12603fi
12604
12605done
12606
12607 if test "x$with_zlib_lib_dir" != "x"; then
12608  LDFLAGS="-L$with_zlib_lib_dir $LDFLAGS"
12609 fi
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
12611$as_echo_n "checking for deflate in -lz... " >&6; }
12612if ${ac_cv_lib_z_deflate+:} false; then :
12613  $as_echo_n "(cached) " >&6
12614else
12615  ac_check_lib_save_LIBS=$LIBS
12616LIBS="-lz  $LIBS"
12617cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12618/* end confdefs.h.  */
12619
12620/* Override any GCC internal prototype to avoid an error.
12621   Use char because int might match the return type of a GCC
12622   builtin and then its argument prototype would still apply.  */
12623#ifdef __cplusplus
12624extern "C"
12625#endif
12626char deflate ();
12627int
12628main ()
12629{
12630return deflate ();
12631  ;
12632  return 0;
12633}
12634_ACEOF
12635if ac_fn_c_try_link "$LINENO"; then :
12636  ac_cv_lib_z_deflate=yes
12637else
12638  ac_cv_lib_z_deflate=no
12639fi
12640rm -f core conftest.err conftest.$ac_objext \
12641    conftest$ac_exeext conftest.$ac_ext
12642LIBS=$ac_check_lib_save_LIBS
12643fi
12644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
12645$as_echo "$ac_cv_lib_z_deflate" >&6; }
12646if test "x$ac_cv_lib_z_deflate" = xyes; then :
12647  cat >>confdefs.h <<_ACEOF
12648#define HAVE_LIBZ 1
12649_ACEOF
12650
12651  LIBS="-lz $LIBS"
12652
12653fi
12654
12655fi
12656
12657
12658# Check whether --with-png was given.
12659if test "${with_png+set}" = set; then :
12660  withval=$with_png; with_png=$withval
12661else
12662  with_png='yes'
12663fi
12664
12665
12666# Check whether --with-png-include-dir was given.
12667if test "${with_png_include_dir+set}" = set; then :
12668  withval=$with_png_include_dir;
12669fi
12670
12671
12672# Check whether --with-png-lib-dir was given.
12673if test "${with_png_lib_dir+set}" = set; then :
12674  withval=$with_png_lib_dir;
12675fi
12676
12677
12678if test "$with_png" != 'no'; then
12679 if test "x$with_png_include_dir" != "x"; then
12680  CPPFLAGS="-I$with_png_include_dir $CPPFLAGS"
12681 fi
12682 for ac_header in png.h
12683do :
12684  ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
12685if test "x$ac_cv_header_png_h" = xyes; then :
12686  cat >>confdefs.h <<_ACEOF
12687#define HAVE_PNG_H 1
12688_ACEOF
12689
12690fi
12691
12692done
12693
12694 if test "x$with_png_lib_dir" != "x"; then
12695  LDFLAGS="-L$with_png_lib_dir $LDFLAGS"
12696 fi
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng" >&5
12698$as_echo_n "checking for png_read_png in -lpng... " >&6; }
12699if ${ac_cv_lib_png_png_read_png+:} false; then :
12700  $as_echo_n "(cached) " >&6
12701else
12702  ac_check_lib_save_LIBS=$LIBS
12703LIBS="-lpng  $LIBS"
12704cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12705/* end confdefs.h.  */
12706
12707/* Override any GCC internal prototype to avoid an error.
12708   Use char because int might match the return type of a GCC
12709   builtin and then its argument prototype would still apply.  */
12710#ifdef __cplusplus
12711extern "C"
12712#endif
12713char png_read_png ();
12714int
12715main ()
12716{
12717return png_read_png ();
12718  ;
12719  return 0;
12720}
12721_ACEOF
12722if ac_fn_c_try_link "$LINENO"; then :
12723  ac_cv_lib_png_png_read_png=yes
12724else
12725  ac_cv_lib_png_png_read_png=no
12726fi
12727rm -f core conftest.err conftest.$ac_objext \
12728    conftest$ac_exeext conftest.$ac_ext
12729LIBS=$ac_check_lib_save_LIBS
12730fi
12731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_png" >&5
12732$as_echo "$ac_cv_lib_png_png_read_png" >&6; }
12733if test "x$ac_cv_lib_png_png_read_png" = xyes; then :
12734  cat >>confdefs.h <<_ACEOF
12735#define HAVE_LIBPNG 1
12736_ACEOF
12737
12738  LIBS="-lpng $LIBS"
12739
12740fi
12741
12742fi
12743
12744
12745# Check whether --with-jpeg was given.
12746if test "${with_jpeg+set}" = set; then :
12747  withval=$with_jpeg; with_jpeg=$withval
12748else
12749  with_jpeg='yes'
12750fi
12751
12752
12753# Check whether --with-jpeg-include-dir was given.
12754if test "${with_jpeg_include_dir+set}" = set; then :
12755  withval=$with_jpeg_include_dir;
12756fi
12757
12758
12759# Check whether --with-jpeg-lib-dir was given.
12760if test "${with_jpeg_lib_dir+set}" = set; then :
12761  withval=$with_jpeg_lib_dir;
12762fi
12763
12764
12765if test "$with_jpeg" != 'no'; then
12766 if test "x$with_jpeg_include_dir" != "x"; then
12767  CPPFLAGS="-I$with_jpeg_include_dir $CPPFLAGS"
12768 fi
12769 for ac_header in jpeglib.h
12770do :
12771  ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
12772if test "x$ac_cv_header_jpeglib_h" = xyes; then :
12773  cat >>confdefs.h <<_ACEOF
12774#define HAVE_JPEGLIB_H 1
12775_ACEOF
12776
12777fi
12778
12779done
12780
12781 if test "x$with_jpeg_lib_dir" != "x"; then
12782  LDFLAGS="-L$with_jpeg_lib_dir $LDFLAGS"
12783 fi
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_scanlines in -ljpeg" >&5
12785$as_echo_n "checking for jpeg_read_scanlines in -ljpeg... " >&6; }
12786if ${ac_cv_lib_jpeg_jpeg_read_scanlines+:} false; then :
12787  $as_echo_n "(cached) " >&6
12788else
12789  ac_check_lib_save_LIBS=$LIBS
12790LIBS="-ljpeg  $LIBS"
12791cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12792/* end confdefs.h.  */
12793
12794/* Override any GCC internal prototype to avoid an error.
12795   Use char because int might match the return type of a GCC
12796   builtin and then its argument prototype would still apply.  */
12797#ifdef __cplusplus
12798extern "C"
12799#endif
12800char jpeg_read_scanlines ();
12801int
12802main ()
12803{
12804return jpeg_read_scanlines ();
12805  ;
12806  return 0;
12807}
12808_ACEOF
12809if ac_fn_c_try_link "$LINENO"; then :
12810  ac_cv_lib_jpeg_jpeg_read_scanlines=yes
12811else
12812  ac_cv_lib_jpeg_jpeg_read_scanlines=no
12813fi
12814rm -f core conftest.err conftest.$ac_objext \
12815    conftest$ac_exeext conftest.$ac_ext
12816LIBS=$ac_check_lib_save_LIBS
12817fi
12818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_scanlines" >&5
12819$as_echo "$ac_cv_lib_jpeg_jpeg_read_scanlines" >&6; }
12820if test "x$ac_cv_lib_jpeg_jpeg_read_scanlines" = xyes; then :
12821  cat >>confdefs.h <<_ACEOF
12822#define HAVE_LIBJPEG 1
12823_ACEOF
12824
12825  LIBS="-ljpeg $LIBS"
12826
12827fi
12828
12829fi
12830
12831
12832# Check whether --with-webp was given.
12833if test "${with_webp+set}" = set; then :
12834  withval=$with_webp; with_webp=$withval
12835else
12836  with_webp='yes'
12837fi
12838
12839
12840# Check whether --with-webp-include-dir was given.
12841if test "${with_webp_include_dir+set}" = set; then :
12842  withval=$with_webp_include_dir;
12843fi
12844
12845
12846# Check whether --with-webp-lib-dir was given.
12847if test "${with_webp_lib_dir+set}" = set; then :
12848  withval=$with_webp_lib_dir;
12849fi
12850
12851
12852if test "$with_webp" != 'no'; then
12853 if test "x$with_webp_include_dir" != "x"; then
12854  CPPFLAGS="-I$with_webp_include_dir $CPPFLAGS"
12855 fi
12856 for ac_header in webp/decode.h
12857do :
12858  ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
12859if test "x$ac_cv_header_webp_decode_h" = xyes; then :
12860  cat >>confdefs.h <<_ACEOF
12861#define HAVE_WEBP_DECODE_H 1
12862_ACEOF
12863
12864fi
12865
12866done
12867
12868 if test "x$with_webp_lib_dir" != "x"; then
12869  LDFLAGS="-L$with_webp_lib_dir $LDFLAGS"
12870 fi
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPGetDecoderVersion in -lwebp" >&5
12872$as_echo_n "checking for WebPGetDecoderVersion in -lwebp... " >&6; }
12873if ${ac_cv_lib_webp_WebPGetDecoderVersion+:} false; then :
12874  $as_echo_n "(cached) " >&6
12875else
12876  ac_check_lib_save_LIBS=$LIBS
12877LIBS="-lwebp  $LIBS"
12878cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12879/* end confdefs.h.  */
12880
12881/* Override any GCC internal prototype to avoid an error.
12882   Use char because int might match the return type of a GCC
12883   builtin and then its argument prototype would still apply.  */
12884#ifdef __cplusplus
12885extern "C"
12886#endif
12887char WebPGetDecoderVersion ();
12888int
12889main ()
12890{
12891return WebPGetDecoderVersion ();
12892  ;
12893  return 0;
12894}
12895_ACEOF
12896if ac_fn_c_try_link "$LINENO"; then :
12897  ac_cv_lib_webp_WebPGetDecoderVersion=yes
12898else
12899  ac_cv_lib_webp_WebPGetDecoderVersion=no
12900fi
12901rm -f core conftest.err conftest.$ac_objext \
12902    conftest$ac_exeext conftest.$ac_ext
12903LIBS=$ac_check_lib_save_LIBS
12904fi
12905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPGetDecoderVersion" >&5
12906$as_echo "$ac_cv_lib_webp_WebPGetDecoderVersion" >&6; }
12907if test "x$ac_cv_lib_webp_WebPGetDecoderVersion" = xyes; then :
12908  cat >>confdefs.h <<_ACEOF
12909#define HAVE_LIBWEBP 1
12910_ACEOF
12911
12912  LIBS="-lwebp $LIBS"
12913
12914fi
12915
12916fi
12917
12918
12919cat >confcache <<\_ACEOF
12920# This file is a shell script that caches the results of configure
12921# tests run on this system so they can be shared between configure
12922# scripts and configure runs, see configure's option --config-cache.
12923# It is not useful on other systems.  If it contains results you don't
12924# want to keep, you may remove or edit it.
12925#
12926# config.status only pays attention to the cache file if you give it
12927# the --recheck option to rerun configure.
12928#
12929# `ac_cv_env_foo' variables (set or unset) will be overridden when
12930# loading this file, other *unset* `ac_cv_foo' will be assigned the
12931# following values.
12932
12933_ACEOF
12934
12935# The following way of writing the cache mishandles newlines in values,
12936# but we know of no workaround that is simple, portable, and efficient.
12937# So, we kill variables containing newlines.
12938# Ultrix sh set writes to stderr and can't be redirected directly,
12939# and sets the high bit in the cache file unless we assign to the vars.
12940(
12941  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12942    eval ac_val=\$$ac_var
12943    case $ac_val in #(
12944    *${as_nl}*)
12945      case $ac_var in #(
12946      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12947$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12948      esac
12949      case $ac_var in #(
12950      _ | IFS | as_nl) ;; #(
12951      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12952      *) { eval $ac_var=; unset $ac_var;} ;;
12953      esac ;;
12954    esac
12955  done
12956
12957  (set) 2>&1 |
12958    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12959    *${as_nl}ac_space=\ *)
12960      # `set' does not quote correctly, so add quotes: double-quote
12961      # substitution turns \\\\ into \\, and sed turns \\ into \.
12962      sed -n \
12963	"s/'/'\\\\''/g;
12964	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12965      ;; #(
12966    *)
12967      # `set' quotes correctly as required by POSIX, so do not add quotes.
12968      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12969      ;;
12970    esac |
12971    sort
12972) |
12973  sed '
12974     /^ac_cv_env_/b end
12975     t clear
12976     :clear
12977     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12978     t end
12979     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12980     :end' >>confcache
12981if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12982  if test -w "$cache_file"; then
12983    if test "x$cache_file" != "x/dev/null"; then
12984      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12985$as_echo "$as_me: updating cache $cache_file" >&6;}
12986      if test ! -f "$cache_file" || test -h "$cache_file"; then
12987	cat confcache >"$cache_file"
12988      else
12989        case $cache_file in #(
12990        */* | ?:*)
12991	  mv -f confcache "$cache_file"$$ &&
12992	  mv -f "$cache_file"$$ "$cache_file" ;; #(
12993        *)
12994	  mv -f confcache "$cache_file" ;;
12995	esac
12996      fi
12997    fi
12998  else
12999    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13000$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13001  fi
13002fi
13003rm -f confcache
13004
13005test "x$prefix" = xNONE && prefix=$ac_default_prefix
13006# Let make expand exec_prefix.
13007test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13008
13009DEFS=-DHAVE_CONFIG_H
13010
13011ac_libobjs=
13012ac_ltlibobjs=
13013for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13014  # 1. Remove the extension, and $U if already installed.
13015  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13016  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13017  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13018  #    will be set to the directory where LIBOBJS objects are built.
13019  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13020  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13021done
13022LIBOBJS=$ac_libobjs
13023
13024LTLIBOBJS=$ac_ltlibobjs
13025
13026
13027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13028$as_echo_n "checking that generated files are newer than configure... " >&6; }
13029   if test -n "$am_sleep_pid"; then
13030     # Hide warnings about reused PIDs.
13031     wait $am_sleep_pid 2>/dev/null
13032   fi
13033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13034$as_echo "done" >&6; }
13035if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13036  as_fn_error $? "conditional \"AMDEP\" was never defined.
13037Usually this means the macro was only invoked conditionally." "$LINENO" 5
13038fi
13039if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13040  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13041Usually this means the macro was only invoked conditionally." "$LINENO" 5
13042fi
13043 if test -n "$EXEEXT"; then
13044  am__EXEEXT_TRUE=
13045  am__EXEEXT_FALSE='#'
13046else
13047  am__EXEEXT_TRUE='#'
13048  am__EXEEXT_FALSE=
13049fi
13050
13051
13052: "${CONFIG_STATUS=./config.status}"
13053ac_write_fail=0
13054ac_clean_files_save=$ac_clean_files
13055ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13056{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13057$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13058as_write_fail=0
13059cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13060#! $SHELL
13061# Generated by $as_me.
13062# Run this file to recreate the current configuration.
13063# Compiler output produced by configure, useful for debugging
13064# configure, is in config.log if it exists.
13065
13066debug=false
13067ac_cs_recheck=false
13068ac_cs_silent=false
13069
13070SHELL=\${CONFIG_SHELL-$SHELL}
13071export SHELL
13072_ASEOF
13073cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13074## -------------------- ##
13075## M4sh Initialization. ##
13076## -------------------- ##
13077
13078# Be more Bourne compatible
13079DUALCASE=1; export DUALCASE # for MKS sh
13080if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13081  emulate sh
13082  NULLCMD=:
13083  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13084  # is contrary to our usage.  Disable this feature.
13085  alias -g '${1+"$@"}'='"$@"'
13086  setopt NO_GLOB_SUBST
13087else
13088  case `(set -o) 2>/dev/null` in #(
13089  *posix*) :
13090    set -o posix ;; #(
13091  *) :
13092     ;;
13093esac
13094fi
13095
13096
13097as_nl='
13098'
13099export as_nl
13100# Printing a long string crashes Solaris 7 /usr/bin/printf.
13101as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13102as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13103as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13104# Prefer a ksh shell builtin over an external printf program on Solaris,
13105# but without wasting forks for bash or zsh.
13106if test -z "$BASH_VERSION$ZSH_VERSION" \
13107    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13108  as_echo='print -r --'
13109  as_echo_n='print -rn --'
13110elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13111  as_echo='printf %s\n'
13112  as_echo_n='printf %s'
13113else
13114  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13115    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13116    as_echo_n='/usr/ucb/echo -n'
13117  else
13118    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13119    as_echo_n_body='eval
13120      arg=$1;
13121      case $arg in #(
13122      *"$as_nl"*)
13123	expr "X$arg" : "X\\(.*\\)$as_nl";
13124	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13125      esac;
13126      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13127    '
13128    export as_echo_n_body
13129    as_echo_n='sh -c $as_echo_n_body as_echo'
13130  fi
13131  export as_echo_body
13132  as_echo='sh -c $as_echo_body as_echo'
13133fi
13134
13135# The user is always right.
13136if test "${PATH_SEPARATOR+set}" != set; then
13137  PATH_SEPARATOR=:
13138  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13139    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13140      PATH_SEPARATOR=';'
13141  }
13142fi
13143
13144
13145# IFS
13146# We need space, tab and new line, in precisely that order.  Quoting is
13147# there to prevent editors from complaining about space-tab.
13148# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13149# splitting by setting IFS to empty value.)
13150IFS=" ""	$as_nl"
13151
13152# Find who we are.  Look in the path if we contain no directory separator.
13153as_myself=
13154case $0 in #((
13155  *[\\/]* ) as_myself=$0 ;;
13156  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13157for as_dir in $PATH
13158do
13159  IFS=$as_save_IFS
13160  test -z "$as_dir" && as_dir=.
13161    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13162  done
13163IFS=$as_save_IFS
13164
13165     ;;
13166esac
13167# We did not find ourselves, most probably we were run as `sh COMMAND'
13168# in which case we are not to be found in the path.
13169if test "x$as_myself" = x; then
13170  as_myself=$0
13171fi
13172if test ! -f "$as_myself"; then
13173  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13174  exit 1
13175fi
13176
13177# Unset variables that we do not need and which cause bugs (e.g. in
13178# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13179# suppresses any "Segmentation fault" message there.  '((' could
13180# trigger a bug in pdksh 5.2.14.
13181for as_var in BASH_ENV ENV MAIL MAILPATH
13182do eval test x\${$as_var+set} = xset \
13183  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13184done
13185PS1='$ '
13186PS2='> '
13187PS4='+ '
13188
13189# NLS nuisances.
13190LC_ALL=C
13191export LC_ALL
13192LANGUAGE=C
13193export LANGUAGE
13194
13195# CDPATH.
13196(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13197
13198
13199# as_fn_error STATUS ERROR [LINENO LOG_FD]
13200# ----------------------------------------
13201# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13202# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13203# script with STATUS, using 1 if that was 0.
13204as_fn_error ()
13205{
13206  as_status=$1; test $as_status -eq 0 && as_status=1
13207  if test "$4"; then
13208    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13209    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13210  fi
13211  $as_echo "$as_me: error: $2" >&2
13212  as_fn_exit $as_status
13213} # as_fn_error
13214
13215
13216# as_fn_set_status STATUS
13217# -----------------------
13218# Set $? to STATUS, without forking.
13219as_fn_set_status ()
13220{
13221  return $1
13222} # as_fn_set_status
13223
13224# as_fn_exit STATUS
13225# -----------------
13226# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13227as_fn_exit ()
13228{
13229  set +e
13230  as_fn_set_status $1
13231  exit $1
13232} # as_fn_exit
13233
13234# as_fn_unset VAR
13235# ---------------
13236# Portably unset VAR.
13237as_fn_unset ()
13238{
13239  { eval $1=; unset $1;}
13240}
13241as_unset=as_fn_unset
13242# as_fn_append VAR VALUE
13243# ----------------------
13244# Append the text in VALUE to the end of the definition contained in VAR. Take
13245# advantage of any shell optimizations that allow amortized linear growth over
13246# repeated appends, instead of the typical quadratic growth present in naive
13247# implementations.
13248if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13249  eval 'as_fn_append ()
13250  {
13251    eval $1+=\$2
13252  }'
13253else
13254  as_fn_append ()
13255  {
13256    eval $1=\$$1\$2
13257  }
13258fi # as_fn_append
13259
13260# as_fn_arith ARG...
13261# ------------------
13262# Perform arithmetic evaluation on the ARGs, and store the result in the
13263# global $as_val. Take advantage of shells that can avoid forks. The arguments
13264# must be portable across $(()) and expr.
13265if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13266  eval 'as_fn_arith ()
13267  {
13268    as_val=$(( $* ))
13269  }'
13270else
13271  as_fn_arith ()
13272  {
13273    as_val=`expr "$@" || test $? -eq 1`
13274  }
13275fi # as_fn_arith
13276
13277
13278if expr a : '\(a\)' >/dev/null 2>&1 &&
13279   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13280  as_expr=expr
13281else
13282  as_expr=false
13283fi
13284
13285if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13286  as_basename=basename
13287else
13288  as_basename=false
13289fi
13290
13291if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13292  as_dirname=dirname
13293else
13294  as_dirname=false
13295fi
13296
13297as_me=`$as_basename -- "$0" ||
13298$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13299	 X"$0" : 'X\(//\)$' \| \
13300	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13301$as_echo X/"$0" |
13302    sed '/^.*\/\([^/][^/]*\)\/*$/{
13303	    s//\1/
13304	    q
13305	  }
13306	  /^X\/\(\/\/\)$/{
13307	    s//\1/
13308	    q
13309	  }
13310	  /^X\/\(\/\).*/{
13311	    s//\1/
13312	    q
13313	  }
13314	  s/.*/./; q'`
13315
13316# Avoid depending upon Character Ranges.
13317as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13318as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13319as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13320as_cr_digits='0123456789'
13321as_cr_alnum=$as_cr_Letters$as_cr_digits
13322
13323ECHO_C= ECHO_N= ECHO_T=
13324case `echo -n x` in #(((((
13325-n*)
13326  case `echo 'xy\c'` in
13327  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
13328  xy)  ECHO_C='\c';;
13329  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13330       ECHO_T='	';;
13331  esac;;
13332*)
13333  ECHO_N='-n';;
13334esac
13335
13336rm -f conf$$ conf$$.exe conf$$.file
13337if test -d conf$$.dir; then
13338  rm -f conf$$.dir/conf$$.file
13339else
13340  rm -f conf$$.dir
13341  mkdir conf$$.dir 2>/dev/null
13342fi
13343if (echo >conf$$.file) 2>/dev/null; then
13344  if ln -s conf$$.file conf$$ 2>/dev/null; then
13345    as_ln_s='ln -s'
13346    # ... but there are two gotchas:
13347    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13348    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13349    # In both cases, we have to default to `cp -pR'.
13350    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13351      as_ln_s='cp -pR'
13352  elif ln conf$$.file conf$$ 2>/dev/null; then
13353    as_ln_s=ln
13354  else
13355    as_ln_s='cp -pR'
13356  fi
13357else
13358  as_ln_s='cp -pR'
13359fi
13360rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13361rmdir conf$$.dir 2>/dev/null
13362
13363
13364# as_fn_mkdir_p
13365# -------------
13366# Create "$as_dir" as a directory, including parents if necessary.
13367as_fn_mkdir_p ()
13368{
13369
13370  case $as_dir in #(
13371  -*) as_dir=./$as_dir;;
13372  esac
13373  test -d "$as_dir" || eval $as_mkdir_p || {
13374    as_dirs=
13375    while :; do
13376      case $as_dir in #(
13377      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13378      *) as_qdir=$as_dir;;
13379      esac
13380      as_dirs="'$as_qdir' $as_dirs"
13381      as_dir=`$as_dirname -- "$as_dir" ||
13382$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13383	 X"$as_dir" : 'X\(//\)[^/]' \| \
13384	 X"$as_dir" : 'X\(//\)$' \| \
13385	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13386$as_echo X"$as_dir" |
13387    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13388	    s//\1/
13389	    q
13390	  }
13391	  /^X\(\/\/\)[^/].*/{
13392	    s//\1/
13393	    q
13394	  }
13395	  /^X\(\/\/\)$/{
13396	    s//\1/
13397	    q
13398	  }
13399	  /^X\(\/\).*/{
13400	    s//\1/
13401	    q
13402	  }
13403	  s/.*/./; q'`
13404      test -d "$as_dir" && break
13405    done
13406    test -z "$as_dirs" || eval "mkdir $as_dirs"
13407  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13408
13409
13410} # as_fn_mkdir_p
13411if mkdir -p . 2>/dev/null; then
13412  as_mkdir_p='mkdir -p "$as_dir"'
13413else
13414  test -d ./-p && rmdir ./-p
13415  as_mkdir_p=false
13416fi
13417
13418
13419# as_fn_executable_p FILE
13420# -----------------------
13421# Test if FILE is an executable regular file.
13422as_fn_executable_p ()
13423{
13424  test -f "$1" && test -x "$1"
13425} # as_fn_executable_p
13426as_test_x='test -x'
13427as_executable_p=as_fn_executable_p
13428
13429# Sed expression to map a string onto a valid CPP name.
13430as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13431
13432# Sed expression to map a string onto a valid variable name.
13433as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13434
13435
13436exec 6>&1
13437## ----------------------------------- ##
13438## Main body of $CONFIG_STATUS script. ##
13439## ----------------------------------- ##
13440_ASEOF
13441test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13442
13443cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13444# Save the log message, to keep $0 and so on meaningful, and to
13445# report actual input values of CONFIG_FILES etc. instead of their
13446# values after options handling.
13447ac_log="
13448This file was extended by imageworsener $as_me 1.3.4, which was
13449generated by GNU Autoconf 2.69.  Invocation command line was
13450
13451  CONFIG_FILES    = $CONFIG_FILES
13452  CONFIG_HEADERS  = $CONFIG_HEADERS
13453  CONFIG_LINKS    = $CONFIG_LINKS
13454  CONFIG_COMMANDS = $CONFIG_COMMANDS
13455  $ $0 $@
13456
13457on `(hostname || uname -n) 2>/dev/null | sed 1q`
13458"
13459
13460_ACEOF
13461
13462case $ac_config_files in *"
13463"*) set x $ac_config_files; shift; ac_config_files=$*;;
13464esac
13465
13466case $ac_config_headers in *"
13467"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13468esac
13469
13470
13471cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13472# Files that config.status was made for.
13473config_files="$ac_config_files"
13474config_headers="$ac_config_headers"
13475config_commands="$ac_config_commands"
13476
13477_ACEOF
13478
13479cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13480ac_cs_usage="\
13481\`$as_me' instantiates files and other configuration actions
13482from templates according to the current configuration.  Unless the files
13483and actions are specified as TAGs, all are instantiated by default.
13484
13485Usage: $0 [OPTION]... [TAG]...
13486
13487  -h, --help       print this help, then exit
13488  -V, --version    print version number and configuration settings, then exit
13489      --config     print configuration, then exit
13490  -q, --quiet, --silent
13491                   do not print progress messages
13492  -d, --debug      don't remove temporary files
13493      --recheck    update $as_me by reconfiguring in the same conditions
13494      --file=FILE[:TEMPLATE]
13495                   instantiate the configuration file FILE
13496      --header=FILE[:TEMPLATE]
13497                   instantiate the configuration header FILE
13498
13499Configuration files:
13500$config_files
13501
13502Configuration headers:
13503$config_headers
13504
13505Configuration commands:
13506$config_commands
13507
13508Report bugs to the package provider."
13509
13510_ACEOF
13511cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13512ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13513ac_cs_version="\\
13514imageworsener config.status 1.3.4
13515configured by $0, generated by GNU Autoconf 2.69,
13516  with options \\"\$ac_cs_config\\"
13517
13518Copyright (C) 2012 Free Software Foundation, Inc.
13519This config.status script is free software; the Free Software Foundation
13520gives unlimited permission to copy, distribute and modify it."
13521
13522ac_pwd='$ac_pwd'
13523srcdir='$srcdir'
13524INSTALL='$INSTALL'
13525MKDIR_P='$MKDIR_P'
13526AWK='$AWK'
13527test -n "\$AWK" || AWK=awk
13528_ACEOF
13529
13530cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13531# The default lists apply if the user does not specify any file.
13532ac_need_defaults=:
13533while test $# != 0
13534do
13535  case $1 in
13536  --*=?*)
13537    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13538    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13539    ac_shift=:
13540    ;;
13541  --*=)
13542    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13543    ac_optarg=
13544    ac_shift=:
13545    ;;
13546  *)
13547    ac_option=$1
13548    ac_optarg=$2
13549    ac_shift=shift
13550    ;;
13551  esac
13552
13553  case $ac_option in
13554  # Handling of the options.
13555  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13556    ac_cs_recheck=: ;;
13557  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13558    $as_echo "$ac_cs_version"; exit ;;
13559  --config | --confi | --conf | --con | --co | --c )
13560    $as_echo "$ac_cs_config"; exit ;;
13561  --debug | --debu | --deb | --de | --d | -d )
13562    debug=: ;;
13563  --file | --fil | --fi | --f )
13564    $ac_shift
13565    case $ac_optarg in
13566    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13567    '') as_fn_error $? "missing file argument" ;;
13568    esac
13569    as_fn_append CONFIG_FILES " '$ac_optarg'"
13570    ac_need_defaults=false;;
13571  --header | --heade | --head | --hea )
13572    $ac_shift
13573    case $ac_optarg in
13574    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13575    esac
13576    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13577    ac_need_defaults=false;;
13578  --he | --h)
13579    # Conflict between --help and --header
13580    as_fn_error $? "ambiguous option: \`$1'
13581Try \`$0 --help' for more information.";;
13582  --help | --hel | -h )
13583    $as_echo "$ac_cs_usage"; exit ;;
13584  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13585  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13586    ac_cs_silent=: ;;
13587
13588  # This is an error.
13589  -*) as_fn_error $? "unrecognized option: \`$1'
13590Try \`$0 --help' for more information." ;;
13591
13592  *) as_fn_append ac_config_targets " $1"
13593     ac_need_defaults=false ;;
13594
13595  esac
13596  shift
13597done
13598
13599ac_configure_extra_args=
13600
13601if $ac_cs_silent; then
13602  exec 6>/dev/null
13603  ac_configure_extra_args="$ac_configure_extra_args --silent"
13604fi
13605
13606_ACEOF
13607cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13608if \$ac_cs_recheck; then
13609  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13610  shift
13611  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13612  CONFIG_SHELL='$SHELL'
13613  export CONFIG_SHELL
13614  exec "\$@"
13615fi
13616
13617_ACEOF
13618cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13619exec 5>>config.log
13620{
13621  echo
13622  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13623## Running $as_me. ##
13624_ASBOX
13625  $as_echo "$ac_log"
13626} >&5
13627
13628_ACEOF
13629cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13630#
13631# INIT-COMMANDS
13632#
13633
13634
13635# The HP-UX ksh and POSIX shell print the target directory to stdout
13636# if CDPATH is set.
13637(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13638
13639sed_quote_subst='$sed_quote_subst'
13640double_quote_subst='$double_quote_subst'
13641delay_variable_subst='$delay_variable_subst'
13642macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13643macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13644enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13645enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13646pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13647enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13648shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
13649SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13650ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13651PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13652host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13653host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13654host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13655build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13656build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13657build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13658SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13659Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13660GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13661EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13662FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13663LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13664NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13665LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13666max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13667ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13668exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13669lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13670lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13671lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13672lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13673lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13674reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13675reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13676OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13677deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13678file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13679file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13680want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13681DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13682sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13683AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13684AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13685archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13686STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13687RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13688old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13689old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13690old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13691lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13692CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13693CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13694compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13695GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13696lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13697lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13698lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
13699lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13700lt_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"`'
13701lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
13702nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13703lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13704lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
13705objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13706MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13707lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13708lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13709lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13710lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13711lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13712need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13713MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13714DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13715NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13716LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13717OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13718OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13719libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13720shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13721extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13722archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13723enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13724export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13725whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13726compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13727old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13728old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13729archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13730archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13731module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13732module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13733with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13734allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13735no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13736hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13737hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13738hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13739hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13740hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13741hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13742hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13743inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13744link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13745always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13746export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13747exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13748include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13749prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13750postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13751file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13752variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13753need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13754need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13755version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13756runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13757shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13758shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13759libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13760library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13761soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13762install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13763postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13764postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13765finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13766finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13767hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13768sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13769configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
13770configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
13771hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13772enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13773enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13774enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13775old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13776striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13777
13778LTCC='$LTCC'
13779LTCFLAGS='$LTCFLAGS'
13780compiler='$compiler_DEFAULT'
13781
13782# A function that is used when there is no print builtin or printf.
13783func_fallback_echo ()
13784{
13785  eval 'cat <<_LTECHO_EOF
13786\$1
13787_LTECHO_EOF'
13788}
13789
13790# Quote evaled strings.
13791for var in SHELL \
13792ECHO \
13793PATH_SEPARATOR \
13794SED \
13795GREP \
13796EGREP \
13797FGREP \
13798LD \
13799NM \
13800LN_S \
13801lt_SP2NL \
13802lt_NL2SP \
13803reload_flag \
13804OBJDUMP \
13805deplibs_check_method \
13806file_magic_cmd \
13807file_magic_glob \
13808want_nocaseglob \
13809DLLTOOL \
13810sharedlib_from_linklib_cmd \
13811AR \
13812AR_FLAGS \
13813archiver_list_spec \
13814STRIP \
13815RANLIB \
13816CC \
13817CFLAGS \
13818compiler \
13819lt_cv_sys_global_symbol_pipe \
13820lt_cv_sys_global_symbol_to_cdecl \
13821lt_cv_sys_global_symbol_to_import \
13822lt_cv_sys_global_symbol_to_c_name_address \
13823lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13824lt_cv_nm_interface \
13825nm_file_list_spec \
13826lt_cv_truncate_bin \
13827lt_prog_compiler_no_builtin_flag \
13828lt_prog_compiler_pic \
13829lt_prog_compiler_wl \
13830lt_prog_compiler_static \
13831lt_cv_prog_compiler_c_o \
13832need_locks \
13833MANIFEST_TOOL \
13834DSYMUTIL \
13835NMEDIT \
13836LIPO \
13837OTOOL \
13838OTOOL64 \
13839shrext_cmds \
13840export_dynamic_flag_spec \
13841whole_archive_flag_spec \
13842compiler_needs_object \
13843with_gnu_ld \
13844allow_undefined_flag \
13845no_undefined_flag \
13846hardcode_libdir_flag_spec \
13847hardcode_libdir_separator \
13848exclude_expsyms \
13849include_expsyms \
13850file_list_spec \
13851variables_saved_for_relink \
13852libname_spec \
13853library_names_spec \
13854soname_spec \
13855install_override_mode \
13856finish_eval \
13857old_striplib \
13858striplib; do
13859    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13860    *[\\\\\\\`\\"\\\$]*)
13861      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13862      ;;
13863    *)
13864      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13865      ;;
13866    esac
13867done
13868
13869# Double-quote double-evaled strings.
13870for var in reload_cmds \
13871old_postinstall_cmds \
13872old_postuninstall_cmds \
13873old_archive_cmds \
13874extract_expsyms_cmds \
13875old_archive_from_new_cmds \
13876old_archive_from_expsyms_cmds \
13877archive_cmds \
13878archive_expsym_cmds \
13879module_cmds \
13880module_expsym_cmds \
13881export_symbols_cmds \
13882prelink_cmds \
13883postlink_cmds \
13884postinstall_cmds \
13885postuninstall_cmds \
13886finish_cmds \
13887sys_lib_search_path_spec \
13888configure_time_dlsearch_path \
13889configure_time_lt_sys_library_path; do
13890    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13891    *[\\\\\\\`\\"\\\$]*)
13892      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13893      ;;
13894    *)
13895      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13896      ;;
13897    esac
13898done
13899
13900ac_aux_dir='$ac_aux_dir'
13901
13902# See if we are running on zsh, and set the options that allow our
13903# commands through without removal of \ escapes INIT.
13904if test -n "\${ZSH_VERSION+set}"; then
13905   setopt NO_GLOB_SUBST
13906fi
13907
13908
13909    PACKAGE='$PACKAGE'
13910    VERSION='$VERSION'
13911    RM='$RM'
13912    ofile='$ofile'
13913
13914
13915
13916AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
13917
13918_ACEOF
13919
13920cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13921
13922# Handling of arguments.
13923for ac_config_target in $ac_config_targets
13924do
13925  case $ac_config_target in
13926    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13927    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13928    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13929    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13930
13931  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13932  esac
13933done
13934
13935
13936# If the user did not use the arguments to specify the items to instantiate,
13937# then the envvar interface is used.  Set only those that are not.
13938# We use the long form for the default assignment because of an extremely
13939# bizarre bug on SunOS 4.1.3.
13940if $ac_need_defaults; then
13941  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13942  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13943  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13944fi
13945
13946# Have a temporary directory for convenience.  Make it in the build tree
13947# simply because there is no reason against having it here, and in addition,
13948# creating and moving files from /tmp can sometimes cause problems.
13949# Hook for its removal unless debugging.
13950# Note that there is a small window in which the directory will not be cleaned:
13951# after its creation but before its name has been assigned to `$tmp'.
13952$debug ||
13953{
13954  tmp= ac_tmp=
13955  trap 'exit_status=$?
13956  : "${ac_tmp:=$tmp}"
13957  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13958' 0
13959  trap 'as_fn_exit 1' 1 2 13 15
13960}
13961# Create a (secure) tmp directory for tmp files.
13962
13963{
13964  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13965  test -d "$tmp"
13966}  ||
13967{
13968  tmp=./conf$$-$RANDOM
13969  (umask 077 && mkdir "$tmp")
13970} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13971ac_tmp=$tmp
13972
13973# Set up the scripts for CONFIG_FILES section.
13974# No need to generate them if there are no CONFIG_FILES.
13975# This happens for instance with `./config.status config.h'.
13976if test -n "$CONFIG_FILES"; then
13977
13978
13979ac_cr=`echo X | tr X '\015'`
13980# On cygwin, bash can eat \r inside `` if the user requested igncr.
13981# But we know of no other shell where ac_cr would be empty at this
13982# point, so we can use a bashism as a fallback.
13983if test "x$ac_cr" = x; then
13984  eval ac_cr=\$\'\\r\'
13985fi
13986ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13987if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13988  ac_cs_awk_cr='\\r'
13989else
13990  ac_cs_awk_cr=$ac_cr
13991fi
13992
13993echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13994_ACEOF
13995
13996
13997{
13998  echo "cat >conf$$subs.awk <<_ACEOF" &&
13999  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14000  echo "_ACEOF"
14001} >conf$$subs.sh ||
14002  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14003ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14004ac_delim='%!_!# '
14005for ac_last_try in false false false false false :; do
14006  . ./conf$$subs.sh ||
14007    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14008
14009  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14010  if test $ac_delim_n = $ac_delim_num; then
14011    break
14012  elif $ac_last_try; then
14013    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14014  else
14015    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14016  fi
14017done
14018rm -f conf$$subs.sh
14019
14020cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14021cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14022_ACEOF
14023sed -n '
14024h
14025s/^/S["/; s/!.*/"]=/
14026p
14027g
14028s/^[^!]*!//
14029:repl
14030t repl
14031s/'"$ac_delim"'$//
14032t delim
14033:nl
14034h
14035s/\(.\{148\}\)..*/\1/
14036t more1
14037s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14038p
14039n
14040b repl
14041:more1
14042s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14043p
14044g
14045s/.\{148\}//
14046t nl
14047:delim
14048h
14049s/\(.\{148\}\)..*/\1/
14050t more2
14051s/["\\]/\\&/g; s/^/"/; s/$/"/
14052p
14053b
14054:more2
14055s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14056p
14057g
14058s/.\{148\}//
14059t delim
14060' <conf$$subs.awk | sed '
14061/^[^""]/{
14062  N
14063  s/\n//
14064}
14065' >>$CONFIG_STATUS || ac_write_fail=1
14066rm -f conf$$subs.awk
14067cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14068_ACAWK
14069cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14070  for (key in S) S_is_set[key] = 1
14071  FS = ""
14072
14073}
14074{
14075  line = $ 0
14076  nfields = split(line, field, "@")
14077  substed = 0
14078  len = length(field[1])
14079  for (i = 2; i < nfields; i++) {
14080    key = field[i]
14081    keylen = length(key)
14082    if (S_is_set[key]) {
14083      value = S[key]
14084      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14085      len += length(value) + length(field[++i])
14086      substed = 1
14087    } else
14088      len += 1 + keylen
14089  }
14090
14091  print line
14092}
14093
14094_ACAWK
14095_ACEOF
14096cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14097if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14098  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14099else
14100  cat
14101fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14102  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14103_ACEOF
14104
14105# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14106# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14107# trailing colons and then remove the whole line if VPATH becomes empty
14108# (actually we leave an empty line to preserve line numbers).
14109if test "x$srcdir" = x.; then
14110  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
14111h
14112s///
14113s/^/:/
14114s/[	 ]*$/:/
14115s/:\$(srcdir):/:/g
14116s/:\${srcdir}:/:/g
14117s/:@srcdir@:/:/g
14118s/^:*//
14119s/:*$//
14120x
14121s/\(=[	 ]*\).*/\1/
14122G
14123s/\n//
14124s/^[^=]*=[	 ]*$//
14125}'
14126fi
14127
14128cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14129fi # test -n "$CONFIG_FILES"
14130
14131# Set up the scripts for CONFIG_HEADERS section.
14132# No need to generate them if there are no CONFIG_HEADERS.
14133# This happens for instance with `./config.status Makefile'.
14134if test -n "$CONFIG_HEADERS"; then
14135cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14136BEGIN {
14137_ACEOF
14138
14139# Transform confdefs.h into an awk script `defines.awk', embedded as
14140# here-document in config.status, that substitutes the proper values into
14141# config.h.in to produce config.h.
14142
14143# Create a delimiter string that does not exist in confdefs.h, to ease
14144# handling of long lines.
14145ac_delim='%!_!# '
14146for ac_last_try in false false :; do
14147  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14148  if test -z "$ac_tt"; then
14149    break
14150  elif $ac_last_try; then
14151    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14152  else
14153    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14154  fi
14155done
14156
14157# For the awk script, D is an array of macro values keyed by name,
14158# likewise P contains macro parameters if any.  Preserve backslash
14159# newline sequences.
14160
14161ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14162sed -n '
14163s/.\{148\}/&'"$ac_delim"'/g
14164t rset
14165:rset
14166s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
14167t def
14168d
14169:def
14170s/\\$//
14171t bsnl
14172s/["\\]/\\&/g
14173s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14174D["\1"]=" \3"/p
14175s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
14176d
14177:bsnl
14178s/["\\]/\\&/g
14179s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14180D["\1"]=" \3\\\\\\n"\\/p
14181t cont
14182s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14183t cont
14184d
14185:cont
14186n
14187s/.\{148\}/&'"$ac_delim"'/g
14188t clear
14189:clear
14190s/\\$//
14191t bsnlc
14192s/["\\]/\\&/g; s/^/"/; s/$/"/p
14193d
14194:bsnlc
14195s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14196b cont
14197' <confdefs.h | sed '
14198s/'"$ac_delim"'/"\\\
14199"/g' >>$CONFIG_STATUS || ac_write_fail=1
14200
14201cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14202  for (key in D) D_is_set[key] = 1
14203  FS = ""
14204}
14205/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14206  line = \$ 0
14207  split(line, arg, " ")
14208  if (arg[1] == "#") {
14209    defundef = arg[2]
14210    mac1 = arg[3]
14211  } else {
14212    defundef = substr(arg[1], 2)
14213    mac1 = arg[2]
14214  }
14215  split(mac1, mac2, "(") #)
14216  macro = mac2[1]
14217  prefix = substr(line, 1, index(line, defundef) - 1)
14218  if (D_is_set[macro]) {
14219    # Preserve the white space surrounding the "#".
14220    print prefix "define", macro P[macro] D[macro]
14221    next
14222  } else {
14223    # Replace #undef with comments.  This is necessary, for example,
14224    # in the case of _POSIX_SOURCE, which is predefined and required
14225    # on some systems where configure will not decide to define it.
14226    if (defundef == "undef") {
14227      print "/*", prefix defundef, macro, "*/"
14228      next
14229    }
14230  }
14231}
14232{ print }
14233_ACAWK
14234_ACEOF
14235cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14236  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14237fi # test -n "$CONFIG_HEADERS"
14238
14239
14240eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14241shift
14242for ac_tag
14243do
14244  case $ac_tag in
14245  :[FHLC]) ac_mode=$ac_tag; continue;;
14246  esac
14247  case $ac_mode$ac_tag in
14248  :[FHL]*:*);;
14249  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14250  :[FH]-) ac_tag=-:-;;
14251  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14252  esac
14253  ac_save_IFS=$IFS
14254  IFS=:
14255  set x $ac_tag
14256  IFS=$ac_save_IFS
14257  shift
14258  ac_file=$1
14259  shift
14260
14261  case $ac_mode in
14262  :L) ac_source=$1;;
14263  :[FH])
14264    ac_file_inputs=
14265    for ac_f
14266    do
14267      case $ac_f in
14268      -) ac_f="$ac_tmp/stdin";;
14269      *) # Look for the file first in the build tree, then in the source tree
14270	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
14271	 # because $ac_f cannot contain `:'.
14272	 test -f "$ac_f" ||
14273	   case $ac_f in
14274	   [\\/$]*) false;;
14275	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14276	   esac ||
14277	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14278      esac
14279      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14280      as_fn_append ac_file_inputs " '$ac_f'"
14281    done
14282
14283    # Let's still pretend it is `configure' which instantiates (i.e., don't
14284    # use $as_me), people would be surprised to read:
14285    #    /* config.h.  Generated by config.status.  */
14286    configure_input='Generated from '`
14287	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14288	`' by configure.'
14289    if test x"$ac_file" != x-; then
14290      configure_input="$ac_file.  $configure_input"
14291      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14292$as_echo "$as_me: creating $ac_file" >&6;}
14293    fi
14294    # Neutralize special characters interpreted by sed in replacement strings.
14295    case $configure_input in #(
14296    *\&* | *\|* | *\\* )
14297       ac_sed_conf_input=`$as_echo "$configure_input" |
14298       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14299    *) ac_sed_conf_input=$configure_input;;
14300    esac
14301
14302    case $ac_tag in
14303    *:-:* | *:-) cat >"$ac_tmp/stdin" \
14304      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14305    esac
14306    ;;
14307  esac
14308
14309  ac_dir=`$as_dirname -- "$ac_file" ||
14310$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14311	 X"$ac_file" : 'X\(//\)[^/]' \| \
14312	 X"$ac_file" : 'X\(//\)$' \| \
14313	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14314$as_echo X"$ac_file" |
14315    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14316	    s//\1/
14317	    q
14318	  }
14319	  /^X\(\/\/\)[^/].*/{
14320	    s//\1/
14321	    q
14322	  }
14323	  /^X\(\/\/\)$/{
14324	    s//\1/
14325	    q
14326	  }
14327	  /^X\(\/\).*/{
14328	    s//\1/
14329	    q
14330	  }
14331	  s/.*/./; q'`
14332  as_dir="$ac_dir"; as_fn_mkdir_p
14333  ac_builddir=.
14334
14335case "$ac_dir" in
14336.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14337*)
14338  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14339  # A ".." for each directory in $ac_dir_suffix.
14340  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14341  case $ac_top_builddir_sub in
14342  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14343  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14344  esac ;;
14345esac
14346ac_abs_top_builddir=$ac_pwd
14347ac_abs_builddir=$ac_pwd$ac_dir_suffix
14348# for backward compatibility:
14349ac_top_builddir=$ac_top_build_prefix
14350
14351case $srcdir in
14352  .)  # We are building in place.
14353    ac_srcdir=.
14354    ac_top_srcdir=$ac_top_builddir_sub
14355    ac_abs_top_srcdir=$ac_pwd ;;
14356  [\\/]* | ?:[\\/]* )  # Absolute name.
14357    ac_srcdir=$srcdir$ac_dir_suffix;
14358    ac_top_srcdir=$srcdir
14359    ac_abs_top_srcdir=$srcdir ;;
14360  *) # Relative name.
14361    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14362    ac_top_srcdir=$ac_top_build_prefix$srcdir
14363    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14364esac
14365ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14366
14367
14368  case $ac_mode in
14369  :F)
14370  #
14371  # CONFIG_FILE
14372  #
14373
14374  case $INSTALL in
14375  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14376  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14377  esac
14378  ac_MKDIR_P=$MKDIR_P
14379  case $MKDIR_P in
14380  [\\/$]* | ?:[\\/]* ) ;;
14381  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14382  esac
14383_ACEOF
14384
14385cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14386# If the template does not know about datarootdir, expand it.
14387# FIXME: This hack should be removed a few years after 2.60.
14388ac_datarootdir_hack=; ac_datarootdir_seen=
14389ac_sed_dataroot='
14390/datarootdir/ {
14391  p
14392  q
14393}
14394/@datadir@/p
14395/@docdir@/p
14396/@infodir@/p
14397/@localedir@/p
14398/@mandir@/p'
14399case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14400*datarootdir*) ac_datarootdir_seen=yes;;
14401*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14402  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14403$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14404_ACEOF
14405cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14406  ac_datarootdir_hack='
14407  s&@datadir@&$datadir&g
14408  s&@docdir@&$docdir&g
14409  s&@infodir@&$infodir&g
14410  s&@localedir@&$localedir&g
14411  s&@mandir@&$mandir&g
14412  s&\\\${datarootdir}&$datarootdir&g' ;;
14413esac
14414_ACEOF
14415
14416# Neutralize VPATH when `$srcdir' = `.'.
14417# Shell code in configure.ac might set extrasub.
14418# FIXME: do we really want to maintain this feature?
14419cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14420ac_sed_extra="$ac_vpsub
14421$extrasub
14422_ACEOF
14423cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14424:t
14425/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14426s|@configure_input@|$ac_sed_conf_input|;t t
14427s&@top_builddir@&$ac_top_builddir_sub&;t t
14428s&@top_build_prefix@&$ac_top_build_prefix&;t t
14429s&@srcdir@&$ac_srcdir&;t t
14430s&@abs_srcdir@&$ac_abs_srcdir&;t t
14431s&@top_srcdir@&$ac_top_srcdir&;t t
14432s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14433s&@builddir@&$ac_builddir&;t t
14434s&@abs_builddir@&$ac_abs_builddir&;t t
14435s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14436s&@INSTALL@&$ac_INSTALL&;t t
14437s&@MKDIR_P@&$ac_MKDIR_P&;t t
14438$ac_datarootdir_hack
14439"
14440eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14441  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14442
14443test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14444  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14445  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
14446      "$ac_tmp/out"`; test -z "$ac_out"; } &&
14447  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14448which seems to be undefined.  Please make sure it is defined" >&5
14449$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14450which seems to be undefined.  Please make sure it is defined" >&2;}
14451
14452  rm -f "$ac_tmp/stdin"
14453  case $ac_file in
14454  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14455  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14456  esac \
14457  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14458 ;;
14459  :H)
14460  #
14461  # CONFIG_HEADER
14462  #
14463  if test x"$ac_file" != x-; then
14464    {
14465      $as_echo "/* $configure_input  */" \
14466      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14467    } >"$ac_tmp/config.h" \
14468      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14469    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14470      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14471$as_echo "$as_me: $ac_file is unchanged" >&6;}
14472    else
14473      rm -f "$ac_file"
14474      mv "$ac_tmp/config.h" "$ac_file" \
14475	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
14476    fi
14477  else
14478    $as_echo "/* $configure_input  */" \
14479      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14480      || as_fn_error $? "could not create -" "$LINENO" 5
14481  fi
14482# Compute "$ac_file"'s index in $config_headers.
14483_am_arg="$ac_file"
14484_am_stamp_count=1
14485for _am_header in $config_headers :; do
14486  case $_am_header in
14487    $_am_arg | $_am_arg:* )
14488      break ;;
14489    * )
14490      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14491  esac
14492done
14493echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14494$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14495	 X"$_am_arg" : 'X\(//\)[^/]' \| \
14496	 X"$_am_arg" : 'X\(//\)$' \| \
14497	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14498$as_echo X"$_am_arg" |
14499    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14500	    s//\1/
14501	    q
14502	  }
14503	  /^X\(\/\/\)[^/].*/{
14504	    s//\1/
14505	    q
14506	  }
14507	  /^X\(\/\/\)$/{
14508	    s//\1/
14509	    q
14510	  }
14511	  /^X\(\/\).*/{
14512	    s//\1/
14513	    q
14514	  }
14515	  s/.*/./; q'`/stamp-h$_am_stamp_count
14516 ;;
14517
14518  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14519$as_echo "$as_me: executing $ac_file commands" >&6;}
14520 ;;
14521  esac
14522
14523
14524  case $ac_file$ac_mode in
14525    "libtool":C)
14526
14527    # See if we are running on zsh, and set the options that allow our
14528    # commands through without removal of \ escapes.
14529    if test -n "${ZSH_VERSION+set}"; then
14530      setopt NO_GLOB_SUBST
14531    fi
14532
14533    cfgfile=${ofile}T
14534    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14535    $RM "$cfgfile"
14536
14537    cat <<_LT_EOF >> "$cfgfile"
14538#! $SHELL
14539# Generated automatically by $as_me ($PACKAGE) $VERSION
14540# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14541# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14542
14543# Provide generalized library-building support services.
14544# Written by Gordon Matzigkeit, 1996
14545
14546# Copyright (C) 2014 Free Software Foundation, Inc.
14547# This is free software; see the source for copying conditions.  There is NO
14548# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14549
14550# GNU Libtool is free software; you can redistribute it and/or modify
14551# it under the terms of the GNU General Public License as published by
14552# the Free Software Foundation; either version 2 of of the License, or
14553# (at your option) any later version.
14554#
14555# As a special exception to the GNU General Public License, if you
14556# distribute this file as part of a program or library that is built
14557# using GNU Libtool, you may include this file under the  same
14558# distribution terms that you use for the rest of that program.
14559#
14560# GNU Libtool is distributed in the hope that it will be useful, but
14561# WITHOUT ANY WARRANTY; without even the implied warranty of
14562# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14563# GNU General Public License for more details.
14564#
14565# You should have received a copy of the GNU General Public License
14566# along with this program.  If not, see <http://www.gnu.org/licenses/>.
14567
14568
14569# The names of the tagged configurations supported by this script.
14570available_tags=''
14571
14572# Configured defaults for sys_lib_dlsearch_path munging.
14573: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
14574
14575# ### BEGIN LIBTOOL CONFIG
14576
14577# Which release of libtool.m4 was used?
14578macro_version=$macro_version
14579macro_revision=$macro_revision
14580
14581# Whether or not to build shared libraries.
14582build_libtool_libs=$enable_shared
14583
14584# Whether or not to build static libraries.
14585build_old_libs=$enable_static
14586
14587# What type of objects to build.
14588pic_mode=$pic_mode
14589
14590# Whether or not to optimize for fast installation.
14591fast_install=$enable_fast_install
14592
14593# Shared archive member basename,for filename based shared library versioning on AIX.
14594shared_archive_member_spec=$shared_archive_member_spec
14595
14596# Shell to use when invoking shell scripts.
14597SHELL=$lt_SHELL
14598
14599# An echo program that protects backslashes.
14600ECHO=$lt_ECHO
14601
14602# The PATH separator for the build system.
14603PATH_SEPARATOR=$lt_PATH_SEPARATOR
14604
14605# The host system.
14606host_alias=$host_alias
14607host=$host
14608host_os=$host_os
14609
14610# The build system.
14611build_alias=$build_alias
14612build=$build
14613build_os=$build_os
14614
14615# A sed program that does not truncate output.
14616SED=$lt_SED
14617
14618# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14619Xsed="\$SED -e 1s/^X//"
14620
14621# A grep program that handles long lines.
14622GREP=$lt_GREP
14623
14624# An ERE matcher.
14625EGREP=$lt_EGREP
14626
14627# A literal string matcher.
14628FGREP=$lt_FGREP
14629
14630# A BSD- or MS-compatible name lister.
14631NM=$lt_NM
14632
14633# Whether we need soft or hard links.
14634LN_S=$lt_LN_S
14635
14636# What is the maximum length of a command?
14637max_cmd_len=$max_cmd_len
14638
14639# Object file suffix (normally "o").
14640objext=$ac_objext
14641
14642# Executable file suffix (normally "").
14643exeext=$exeext
14644
14645# whether the shell understands "unset".
14646lt_unset=$lt_unset
14647
14648# turn spaces into newlines.
14649SP2NL=$lt_lt_SP2NL
14650
14651# turn newlines into spaces.
14652NL2SP=$lt_lt_NL2SP
14653
14654# convert \$build file names to \$host format.
14655to_host_file_cmd=$lt_cv_to_host_file_cmd
14656
14657# convert \$build files to toolchain format.
14658to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14659
14660# An object symbol dumper.
14661OBJDUMP=$lt_OBJDUMP
14662
14663# Method to check whether dependent libraries are shared objects.
14664deplibs_check_method=$lt_deplibs_check_method
14665
14666# Command to use when deplibs_check_method = "file_magic".
14667file_magic_cmd=$lt_file_magic_cmd
14668
14669# How to find potential files when deplibs_check_method = "file_magic".
14670file_magic_glob=$lt_file_magic_glob
14671
14672# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14673want_nocaseglob=$lt_want_nocaseglob
14674
14675# DLL creation program.
14676DLLTOOL=$lt_DLLTOOL
14677
14678# Command to associate shared and link libraries.
14679sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14680
14681# The archiver.
14682AR=$lt_AR
14683
14684# Flags to create an archive.
14685AR_FLAGS=$lt_AR_FLAGS
14686
14687# How to feed a file listing to the archiver.
14688archiver_list_spec=$lt_archiver_list_spec
14689
14690# A symbol stripping program.
14691STRIP=$lt_STRIP
14692
14693# Commands used to install an old-style archive.
14694RANLIB=$lt_RANLIB
14695old_postinstall_cmds=$lt_old_postinstall_cmds
14696old_postuninstall_cmds=$lt_old_postuninstall_cmds
14697
14698# Whether to use a lock for old archive extraction.
14699lock_old_archive_extraction=$lock_old_archive_extraction
14700
14701# A C compiler.
14702LTCC=$lt_CC
14703
14704# LTCC compiler flags.
14705LTCFLAGS=$lt_CFLAGS
14706
14707# Take the output of nm and produce a listing of raw symbols and C names.
14708global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14709
14710# Transform the output of nm in a proper C declaration.
14711global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14712
14713# Transform the output of nm into a list of symbols to manually relocate.
14714global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
14715
14716# Transform the output of nm in a C name address pair.
14717global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14718
14719# Transform the output of nm in a C name address pair when lib prefix is needed.
14720global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14721
14722# The name lister interface.
14723nm_interface=$lt_lt_cv_nm_interface
14724
14725# Specify filename containing input files for \$NM.
14726nm_file_list_spec=$lt_nm_file_list_spec
14727
14728# The root where to search for dependent libraries,and where our libraries should be installed.
14729lt_sysroot=$lt_sysroot
14730
14731# Command to truncate a binary pipe.
14732lt_truncate_bin=$lt_lt_cv_truncate_bin
14733
14734# The name of the directory that contains temporary libtool files.
14735objdir=$objdir
14736
14737# Used to examine libraries when file_magic_cmd begins with "file".
14738MAGIC_CMD=$MAGIC_CMD
14739
14740# Must we lock files when doing compilation?
14741need_locks=$lt_need_locks
14742
14743# Manifest tool.
14744MANIFEST_TOOL=$lt_MANIFEST_TOOL
14745
14746# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14747DSYMUTIL=$lt_DSYMUTIL
14748
14749# Tool to change global to local symbols on Mac OS X.
14750NMEDIT=$lt_NMEDIT
14751
14752# Tool to manipulate fat objects and archives on Mac OS X.
14753LIPO=$lt_LIPO
14754
14755# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14756OTOOL=$lt_OTOOL
14757
14758# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14759OTOOL64=$lt_OTOOL64
14760
14761# Old archive suffix (normally "a").
14762libext=$libext
14763
14764# Shared library suffix (normally ".so").
14765shrext_cmds=$lt_shrext_cmds
14766
14767# The commands to extract the exported symbol list from a shared archive.
14768extract_expsyms_cmds=$lt_extract_expsyms_cmds
14769
14770# Variables whose values should be saved in libtool wrapper scripts and
14771# restored at link time.
14772variables_saved_for_relink=$lt_variables_saved_for_relink
14773
14774# Do we need the "lib" prefix for modules?
14775need_lib_prefix=$need_lib_prefix
14776
14777# Do we need a version for libraries?
14778need_version=$need_version
14779
14780# Library versioning type.
14781version_type=$version_type
14782
14783# Shared library runtime path variable.
14784runpath_var=$runpath_var
14785
14786# Shared library path variable.
14787shlibpath_var=$shlibpath_var
14788
14789# Is shlibpath searched before the hard-coded library search path?
14790shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14791
14792# Format of library name prefix.
14793libname_spec=$lt_libname_spec
14794
14795# List of archive names.  First name is the real one, the rest are links.
14796# The last name is the one that the linker finds with -lNAME
14797library_names_spec=$lt_library_names_spec
14798
14799# The coded name of the library, if different from the real name.
14800soname_spec=$lt_soname_spec
14801
14802# Permission mode override for installation of shared libraries.
14803install_override_mode=$lt_install_override_mode
14804
14805# Command to use after installation of a shared archive.
14806postinstall_cmds=$lt_postinstall_cmds
14807
14808# Command to use after uninstallation of a shared archive.
14809postuninstall_cmds=$lt_postuninstall_cmds
14810
14811# Commands used to finish a libtool library installation in a directory.
14812finish_cmds=$lt_finish_cmds
14813
14814# As "finish_cmds", except a single script fragment to be evaled but
14815# not shown.
14816finish_eval=$lt_finish_eval
14817
14818# Whether we should hardcode library paths into libraries.
14819hardcode_into_libs=$hardcode_into_libs
14820
14821# Compile-time system search path for libraries.
14822sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14823
14824# Detected run-time system search path for libraries.
14825sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
14826
14827# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
14828configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
14829
14830# Whether dlopen is supported.
14831dlopen_support=$enable_dlopen
14832
14833# Whether dlopen of programs is supported.
14834dlopen_self=$enable_dlopen_self
14835
14836# Whether dlopen of statically linked programs is supported.
14837dlopen_self_static=$enable_dlopen_self_static
14838
14839# Commands to strip libraries.
14840old_striplib=$lt_old_striplib
14841striplib=$lt_striplib
14842
14843
14844# The linker used to build libraries.
14845LD=$lt_LD
14846
14847# How to create reloadable object files.
14848reload_flag=$lt_reload_flag
14849reload_cmds=$lt_reload_cmds
14850
14851# Commands used to build an old-style archive.
14852old_archive_cmds=$lt_old_archive_cmds
14853
14854# A language specific compiler.
14855CC=$lt_compiler
14856
14857# Is the compiler the GNU compiler?
14858with_gcc=$GCC
14859
14860# Compiler flag to turn off builtin functions.
14861no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14862
14863# Additional compiler flags for building library objects.
14864pic_flag=$lt_lt_prog_compiler_pic
14865
14866# How to pass a linker flag through the compiler.
14867wl=$lt_lt_prog_compiler_wl
14868
14869# Compiler flag to prevent dynamic linking.
14870link_static_flag=$lt_lt_prog_compiler_static
14871
14872# Does compiler simultaneously support -c and -o options?
14873compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14874
14875# Whether or not to add -lc for building shared libraries.
14876build_libtool_need_lc=$archive_cmds_need_lc
14877
14878# Whether or not to disallow shared libs when runtime libs are static.
14879allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14880
14881# Compiler flag to allow reflexive dlopens.
14882export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14883
14884# Compiler flag to generate shared objects directly from archives.
14885whole_archive_flag_spec=$lt_whole_archive_flag_spec
14886
14887# Whether the compiler copes with passing no objects directly.
14888compiler_needs_object=$lt_compiler_needs_object
14889
14890# Create an old-style archive from a shared archive.
14891old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14892
14893# Create a temporary old-style archive to link instead of a shared archive.
14894old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14895
14896# Commands used to build a shared archive.
14897archive_cmds=$lt_archive_cmds
14898archive_expsym_cmds=$lt_archive_expsym_cmds
14899
14900# Commands used to build a loadable module if different from building
14901# a shared archive.
14902module_cmds=$lt_module_cmds
14903module_expsym_cmds=$lt_module_expsym_cmds
14904
14905# Whether we are building with GNU ld or not.
14906with_gnu_ld=$lt_with_gnu_ld
14907
14908# Flag that allows shared libraries with undefined symbols to be built.
14909allow_undefined_flag=$lt_allow_undefined_flag
14910
14911# Flag that enforces no undefined symbols.
14912no_undefined_flag=$lt_no_undefined_flag
14913
14914# Flag to hardcode \$libdir into a binary during linking.
14915# This must work even if \$libdir does not exist
14916hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14917
14918# Whether we need a single "-rpath" flag with a separated argument.
14919hardcode_libdir_separator=$lt_hardcode_libdir_separator
14920
14921# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14922# DIR into the resulting binary.
14923hardcode_direct=$hardcode_direct
14924
14925# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14926# DIR into the resulting binary and the resulting library dependency is
14927# "absolute",i.e impossible to change by setting \$shlibpath_var if the
14928# library is relocated.
14929hardcode_direct_absolute=$hardcode_direct_absolute
14930
14931# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14932# into the resulting binary.
14933hardcode_minus_L=$hardcode_minus_L
14934
14935# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14936# into the resulting binary.
14937hardcode_shlibpath_var=$hardcode_shlibpath_var
14938
14939# Set to "yes" if building a shared library automatically hardcodes DIR
14940# into the library and all subsequent libraries and executables linked
14941# against it.
14942hardcode_automatic=$hardcode_automatic
14943
14944# Set to yes if linker adds runtime paths of dependent libraries
14945# to runtime path list.
14946inherit_rpath=$inherit_rpath
14947
14948# Whether libtool must link a program against all its dependency libraries.
14949link_all_deplibs=$link_all_deplibs
14950
14951# Set to "yes" if exported symbols are required.
14952always_export_symbols=$always_export_symbols
14953
14954# The commands to list exported symbols.
14955export_symbols_cmds=$lt_export_symbols_cmds
14956
14957# Symbols that should not be listed in the preloaded symbols.
14958exclude_expsyms=$lt_exclude_expsyms
14959
14960# Symbols that must always be exported.
14961include_expsyms=$lt_include_expsyms
14962
14963# Commands necessary for linking programs (against libraries) with templates.
14964prelink_cmds=$lt_prelink_cmds
14965
14966# Commands necessary for finishing linking programs.
14967postlink_cmds=$lt_postlink_cmds
14968
14969# Specify filename containing input files.
14970file_list_spec=$lt_file_list_spec
14971
14972# How to hardcode a shared library path into an executable.
14973hardcode_action=$hardcode_action
14974
14975# ### END LIBTOOL CONFIG
14976
14977_LT_EOF
14978
14979    cat <<'_LT_EOF' >> "$cfgfile"
14980
14981# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
14982
14983# func_munge_path_list VARIABLE PATH
14984# -----------------------------------
14985# VARIABLE is name of variable containing _space_ separated list of
14986# directories to be munged by the contents of PATH, which is string
14987# having a format:
14988# "DIR[:DIR]:"
14989#       string "DIR[ DIR]" will be prepended to VARIABLE
14990# ":DIR[:DIR]"
14991#       string "DIR[ DIR]" will be appended to VARIABLE
14992# "DIRP[:DIRP]::[DIRA:]DIRA"
14993#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14994#       "DIRA[ DIRA]" will be appended to VARIABLE
14995# "DIR[:DIR]"
14996#       VARIABLE will be replaced by "DIR[ DIR]"
14997func_munge_path_list ()
14998{
14999    case x$2 in
15000    x)
15001        ;;
15002    *:)
15003        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15004        ;;
15005    x:*)
15006        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15007        ;;
15008    *::*)
15009        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15010        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15011        ;;
15012    *)
15013        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15014        ;;
15015    esac
15016}
15017
15018
15019# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
15020func_cc_basename ()
15021{
15022    for cc_temp in $*""; do
15023      case $cc_temp in
15024        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15025        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15026        \-*) ;;
15027        *) break;;
15028      esac
15029    done
15030    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15031}
15032
15033
15034# ### END FUNCTIONS SHARED WITH CONFIGURE
15035
15036_LT_EOF
15037
15038  case $host_os in
15039  aix3*)
15040    cat <<\_LT_EOF >> "$cfgfile"
15041# AIX sometimes has problems with the GCC collect2 program.  For some
15042# reason, if we set the COLLECT_NAMES environment variable, the problems
15043# vanish in a puff of smoke.
15044if test set != "${COLLECT_NAMES+set}"; then
15045  COLLECT_NAMES=
15046  export COLLECT_NAMES
15047fi
15048_LT_EOF
15049    ;;
15050  esac
15051
15052
15053ltmain=$ac_aux_dir/ltmain.sh
15054
15055
15056  # We use sed instead of cat because bash on DJGPP gets confused if
15057  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15058  # text mode, it properly converts lines to CR/LF.  This bash problem
15059  # is reportedly fixed, but why not run on old versions too?
15060  sed '$q' "$ltmain" >> "$cfgfile" \
15061     || (rm -f "$cfgfile"; exit 1)
15062
15063   mv -f "$cfgfile" "$ofile" ||
15064    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15065  chmod +x "$ofile"
15066
15067 ;;
15068    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15069  # Older Autoconf quotes --file arguments for eval, but not when files
15070  # are listed without --file.  Let's play safe and only enable the eval
15071  # if we detect the quoting.
15072  # TODO: see whether this extra hack can be removed once we start
15073  # requiring Autoconf 2.70 or later.
15074  case $CONFIG_FILES in #(
15075  *\'*) :
15076    eval set x "$CONFIG_FILES" ;; #(
15077  *) :
15078    set x $CONFIG_FILES ;; #(
15079  *) :
15080     ;;
15081esac
15082  shift
15083  # Used to flag and report bootstrapping failures.
15084  am_rc=0
15085  for am_mf
15086  do
15087    # Strip MF so we end up with the name of the file.
15088    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
15089    # Check whether this is an Automake generated Makefile which includes
15090    # dependency-tracking related rules and includes.
15091    # Grep'ing the whole file directly is not great: AIX grep has a line
15092    # limit of 2048, but all sed's we know have understand at least 4000.
15093    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
15094      || continue
15095    am_dirpart=`$as_dirname -- "$am_mf" ||
15096$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15097	 X"$am_mf" : 'X\(//\)[^/]' \| \
15098	 X"$am_mf" : 'X\(//\)$' \| \
15099	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15100$as_echo X"$am_mf" |
15101    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15102	    s//\1/
15103	    q
15104	  }
15105	  /^X\(\/\/\)[^/].*/{
15106	    s//\1/
15107	    q
15108	  }
15109	  /^X\(\/\/\)$/{
15110	    s//\1/
15111	    q
15112	  }
15113	  /^X\(\/\).*/{
15114	    s//\1/
15115	    q
15116	  }
15117	  s/.*/./; q'`
15118    am_filepart=`$as_basename -- "$am_mf" ||
15119$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
15120	 X"$am_mf" : 'X\(//\)$' \| \
15121	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15122$as_echo X/"$am_mf" |
15123    sed '/^.*\/\([^/][^/]*\)\/*$/{
15124	    s//\1/
15125	    q
15126	  }
15127	  /^X\/\(\/\/\)$/{
15128	    s//\1/
15129	    q
15130	  }
15131	  /^X\/\(\/\).*/{
15132	    s//\1/
15133	    q
15134	  }
15135	  s/.*/./; q'`
15136    { echo "$as_me:$LINENO: cd "$am_dirpart" \
15137      && sed -e '/# am--include-marker/d' "$am_filepart" \
15138        | $MAKE -f - am--depfiles" >&5
15139   (cd "$am_dirpart" \
15140      && sed -e '/# am--include-marker/d' "$am_filepart" \
15141        | $MAKE -f - am--depfiles) >&5 2>&5
15142   ac_status=$?
15143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15144   (exit $ac_status); } || am_rc=$?
15145  done
15146  if test $am_rc -ne 0; then
15147    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15148$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15149as_fn_error $? "Something went wrong bootstrapping makefile fragments
15150    for automatic dependency tracking.  Try re-running configure with the
15151    '--disable-dependency-tracking' option to at least be able to build
15152    the package (albeit without support for automatic dependency tracking).
15153See \`config.log' for more details" "$LINENO" 5; }
15154  fi
15155  { am_dirpart=; unset am_dirpart;}
15156  { am_filepart=; unset am_filepart;}
15157  { am_mf=; unset am_mf;}
15158  { am_rc=; unset am_rc;}
15159  rm -f conftest-deps.mk
15160}
15161 ;;
15162
15163  esac
15164done # for ac_tag
15165
15166
15167as_fn_exit 0
15168_ACEOF
15169ac_clean_files=$ac_clean_files_save
15170
15171test $ac_write_fail = 0 ||
15172  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15173
15174
15175# configure is writing to config.log, and then calls config.status.
15176# config.status does its own redirection, appending to config.log.
15177# Unfortunately, on DOS this fails, as config.log is still kept open
15178# by configure, so config.status won't be able to write to it; its
15179# output is simply discarded.  So we exec the FD to /dev/null,
15180# effectively closing config.log, so it can be properly (re)opened and
15181# appended to by config.status.  When coming back to configure, we
15182# need to make the FD available again.
15183if test "$no_create" != yes; then
15184  ac_cs_success=:
15185  ac_config_status_args=
15186  test "$silent" = yes &&
15187    ac_config_status_args="$ac_config_status_args --quiet"
15188  exec 5>/dev/null
15189  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15190  exec 5>>config.log
15191  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15192  # would make configure fail if this is the last instruction.
15193  $ac_cs_success || as_fn_exit 1
15194fi
15195if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15196  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15197$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15198fi
15199
15200