xref: /aosp_15_r20/external/sg3_utils/configure (revision 44704f698541f6367e81f991ef8bb54ccbf3fc18)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for sg3_utils 1.48.
4#
5# Report bugs to <[email protected]>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9# Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20as_nop=:
21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22then :
23  emulate sh
24  NULLCMD=:
25  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28  setopt NO_GLOB_SUBST
29else $as_nop
30  case `(set -o) 2>/dev/null` in #(
31  *posix*) :
32    set -o posix ;; #(
33  *) :
34     ;;
35esac
36fi
37
38
39
40# Reset variables that may have inherited troublesome values from
41# the environment.
42
43# IFS needs to be set, to space, tab, and newline, in precisely that order.
44# (If _AS_PATH_WALK were called with IFS unset, it would have the
45# side effect of setting IFS to empty, thus disabling word splitting.)
46# Quoting is to prevent editors from complaining about space-tab.
47as_nl='
48'
49export as_nl
50IFS=" ""	$as_nl"
51
52PS1='$ '
53PS2='> '
54PS4='+ '
55
56# Ensure predictable behavior from utilities with locale-dependent output.
57LC_ALL=C
58export LC_ALL
59LANGUAGE=C
60export LANGUAGE
61
62# We cannot yet rely on "unset" to work, but we need these variables
63# to be unset--not just set to an empty or harmless value--now, to
64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65# also avoids known problems related to "unset" and subshell syntax
66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68do eval test \${$as_var+y} \
69  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70done
71
72# Ensure that fds 0, 1, and 2 are open.
73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76
77# The user is always right.
78if ${PATH_SEPARATOR+false} :; then
79  PATH_SEPARATOR=:
80  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82      PATH_SEPARATOR=';'
83  }
84fi
85
86
87# Find who we are.  Look in the path if we contain no directory separator.
88as_myself=
89case $0 in #((
90  *[\\/]* ) as_myself=$0 ;;
91  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92for as_dir in $PATH
93do
94  IFS=$as_save_IFS
95  case $as_dir in #(((
96    '') as_dir=./ ;;
97    */) ;;
98    *) as_dir=$as_dir/ ;;
99  esac
100    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116
117# Use a proper internal environment variable to ensure we don't fall
118  # into an infinite loop, continuously re-executing ourselves.
119  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120    _as_can_reexec=no; export _as_can_reexec;
121    # We cannot yet assume a decent shell, so we have to provide a
122# neutralization value for shells without unset; and this also
123# works around shells that cannot unset nonexistent variables.
124# Preserve -v and -x to the replacement shell.
125BASH_ENV=/dev/null
126ENV=/dev/null
127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128case $- in # ((((
129  *v*x* | *x*v* ) as_opts=-vx ;;
130  *v* ) as_opts=-v ;;
131  *x* ) as_opts=-x ;;
132  * ) as_opts= ;;
133esac
134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135# Admittedly, this is quite paranoid, since all the known shells bail
136# out after a failed `exec'.
137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138exit 255
139  fi
140  # We don't want this to propagate to other subprocesses.
141          { _as_can_reexec=; unset _as_can_reexec;}
142if test "x$CONFIG_SHELL" = x; then
143  as_bourne_compatible="as_nop=:
144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145then :
146  emulate sh
147  NULLCMD=:
148  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149  # is contrary to our usage.  Disable this feature.
150  alias -g '\${1+\"\$@\"}'='\"\$@\"'
151  setopt NO_GLOB_SUBST
152else \$as_nop
153  case \`(set -o) 2>/dev/null\` in #(
154  *posix*) :
155    set -o posix ;; #(
156  *) :
157     ;;
158esac
159fi
160"
161  as_required="as_fn_return () { (exit \$1); }
162as_fn_success () { as_fn_return 0; }
163as_fn_failure () { as_fn_return 1; }
164as_fn_ret_success () { return 0; }
165as_fn_ret_failure () { return 1; }
166
167exitcode=0
168as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173then :
174
175else \$as_nop
176  exitcode=1; echo positional parameters were not saved.
177fi
178test x\$exitcode = x0 || exit 1
179blah=\$(echo \$(echo blah))
180test x\"\$blah\" = xblah || exit 1
181test -x / || exit 1"
182  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186
187  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191    PATH=/empty FPATH=/empty; export PATH FPATH
192    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194test \$(( 1 + 1 )) = 2 || exit 1"
195  if (eval "$as_required") 2>/dev/null
196then :
197  as_have_required=yes
198else $as_nop
199  as_have_required=no
200fi
201  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202then :
203
204else $as_nop
205  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206as_found=false
207for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208do
209  IFS=$as_save_IFS
210  case $as_dir in #(((
211    '') as_dir=./ ;;
212    */) ;;
213    *) as_dir=$as_dir/ ;;
214  esac
215  as_found=:
216  case $as_dir in #(
217	 /*)
218	   for as_base in sh bash ksh sh5; do
219	     # Try only shells that exist, to save several forks.
220	     as_shell=$as_dir$as_base
221	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226then :
227  break 2
228fi
229fi
230	   done;;
231       esac
232  as_found=false
233done
234IFS=$as_save_IFS
235if $as_found
236then :
237
238else $as_nop
239  if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241then :
242  CONFIG_SHELL=$SHELL as_have_required=yes
243fi
244fi
245
246
247      if test "x$CONFIG_SHELL" != x
248then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno
271then :
272  printf "%s\n" "$0: This script requires a shell more modern than all"
273  printf "%s\n" "$0: the shells that I found on your system."
274  if test ${ZSH_VERSION+y} ; then
275    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277  else
278    printf "%s\n" "$0: Please tell [email protected] and
279$0: [email protected] about your system, including any
280$0: error possibly output before this message. Then install
281$0: a modern shell, or manually run the script under such a
282$0: shell if you do have one."
283  fi
284  exit 1
285fi
286fi
287fi
288SHELL=${CONFIG_SHELL-/bin/sh}
289export SHELL
290# Unset more variables known to interfere with behavior of common tools.
291CLICOLOR_FORCE= GREP_OPTIONS=
292unset CLICOLOR_FORCE GREP_OPTIONS
293
294## --------------------- ##
295## M4sh Shell Functions. ##
296## --------------------- ##
297# as_fn_unset VAR
298# ---------------
299# Portably unset VAR.
300as_fn_unset ()
301{
302  { eval $1=; unset $1;}
303}
304as_unset=as_fn_unset
305
306
307# as_fn_set_status STATUS
308# -----------------------
309# Set $? to STATUS, without forking.
310as_fn_set_status ()
311{
312  return $1
313} # as_fn_set_status
314
315# as_fn_exit STATUS
316# -----------------
317# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318as_fn_exit ()
319{
320  set +e
321  as_fn_set_status $1
322  exit $1
323} # as_fn_exit
324# as_fn_nop
325# ---------
326# Do nothing but, unlike ":", preserve the value of $?.
327as_fn_nop ()
328{
329  return $?
330}
331as_nop=as_fn_nop
332
333# as_fn_mkdir_p
334# -------------
335# Create "$as_dir" as a directory, including parents if necessary.
336as_fn_mkdir_p ()
337{
338
339  case $as_dir in #(
340  -*) as_dir=./$as_dir;;
341  esac
342  test -d "$as_dir" || eval $as_mkdir_p || {
343    as_dirs=
344    while :; do
345      case $as_dir in #(
346      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
347      *) as_qdir=$as_dir;;
348      esac
349      as_dirs="'$as_qdir' $as_dirs"
350      as_dir=`$as_dirname -- "$as_dir" ||
351$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
352	 X"$as_dir" : 'X\(//\)[^/]' \| \
353	 X"$as_dir" : 'X\(//\)$' \| \
354	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
355printf "%s\n" X"$as_dir" |
356    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
357	    s//\1/
358	    q
359	  }
360	  /^X\(\/\/\)[^/].*/{
361	    s//\1/
362	    q
363	  }
364	  /^X\(\/\/\)$/{
365	    s//\1/
366	    q
367	  }
368	  /^X\(\/\).*/{
369	    s//\1/
370	    q
371	  }
372	  s/.*/./; q'`
373      test -d "$as_dir" && break
374    done
375    test -z "$as_dirs" || eval "mkdir $as_dirs"
376  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
377
378
379} # as_fn_mkdir_p
380
381# as_fn_executable_p FILE
382# -----------------------
383# Test if FILE is an executable regular file.
384as_fn_executable_p ()
385{
386  test -f "$1" && test -x "$1"
387} # as_fn_executable_p
388# as_fn_append VAR VALUE
389# ----------------------
390# Append the text in VALUE to the end of the definition contained in VAR. Take
391# advantage of any shell optimizations that allow amortized linear growth over
392# repeated appends, instead of the typical quadratic growth present in naive
393# implementations.
394if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
395then :
396  eval 'as_fn_append ()
397  {
398    eval $1+=\$2
399  }'
400else $as_nop
401  as_fn_append ()
402  {
403    eval $1=\$$1\$2
404  }
405fi # as_fn_append
406
407# as_fn_arith ARG...
408# ------------------
409# Perform arithmetic evaluation on the ARGs, and store the result in the
410# global $as_val. Take advantage of shells that can avoid forks. The arguments
411# must be portable across $(()) and expr.
412if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
413then :
414  eval 'as_fn_arith ()
415  {
416    as_val=$(( $* ))
417  }'
418else $as_nop
419  as_fn_arith ()
420  {
421    as_val=`expr "$@" || test $? -eq 1`
422  }
423fi # as_fn_arith
424
425# as_fn_nop
426# ---------
427# Do nothing but, unlike ":", preserve the value of $?.
428as_fn_nop ()
429{
430  return $?
431}
432as_nop=as_fn_nop
433
434# as_fn_error STATUS ERROR [LINENO LOG_FD]
435# ----------------------------------------
436# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
437# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
438# script with STATUS, using 1 if that was 0.
439as_fn_error ()
440{
441  as_status=$1; test $as_status -eq 0 && as_status=1
442  if test "$4"; then
443    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
444    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
445  fi
446  printf "%s\n" "$as_me: error: $2" >&2
447  as_fn_exit $as_status
448} # as_fn_error
449
450if expr a : '\(a\)' >/dev/null 2>&1 &&
451   test "X`expr 00001 : '.*\(...\)'`" = X001; then
452  as_expr=expr
453else
454  as_expr=false
455fi
456
457if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
458  as_basename=basename
459else
460  as_basename=false
461fi
462
463if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
464  as_dirname=dirname
465else
466  as_dirname=false
467fi
468
469as_me=`$as_basename -- "$0" ||
470$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
471	 X"$0" : 'X\(//\)$' \| \
472	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
473printf "%s\n" X/"$0" |
474    sed '/^.*\/\([^/][^/]*\)\/*$/{
475	    s//\1/
476	    q
477	  }
478	  /^X\/\(\/\/\)$/{
479	    s//\1/
480	    q
481	  }
482	  /^X\/\(\/\).*/{
483	    s//\1/
484	    q
485	  }
486	  s/.*/./; q'`
487
488# Avoid depending upon Character Ranges.
489as_cr_letters='abcdefghijklmnopqrstuvwxyz'
490as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
491as_cr_Letters=$as_cr_letters$as_cr_LETTERS
492as_cr_digits='0123456789'
493as_cr_alnum=$as_cr_Letters$as_cr_digits
494
495
496  as_lineno_1=$LINENO as_lineno_1a=$LINENO
497  as_lineno_2=$LINENO as_lineno_2a=$LINENO
498  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
499  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
500  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
501  sed -n '
502    p
503    /[$]LINENO/=
504  ' <$as_myself |
505    sed '
506      s/[$]LINENO.*/&-/
507      t lineno
508      b
509      :lineno
510      N
511      :loop
512      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
513      t loop
514      s/-\n.*//
515    ' >$as_me.lineno &&
516  chmod +x "$as_me.lineno" ||
517    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
518
519  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
520  # already done that, so ensure we don't try to do so again and fall
521  # in an infinite loop.  This has already happened in practice.
522  _as_can_reexec=no; export _as_can_reexec
523  # Don't try to exec as it changes $[0], causing all sort of problems
524  # (the dirname of $[0] is not the place where we might find the
525  # original and so on.  Autoconf is especially sensitive to this).
526  . "./$as_me.lineno"
527  # Exit status is that of the last command.
528  exit
529}
530
531
532# Determine whether it's possible to make 'echo' print without a newline.
533# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
534# for compatibility with existing Makefiles.
535ECHO_C= ECHO_N= ECHO_T=
536case `echo -n x` in #(((((
537-n*)
538  case `echo 'xy\c'` in
539  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
540  xy)  ECHO_C='\c';;
541  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
542       ECHO_T='	';;
543  esac;;
544*)
545  ECHO_N='-n';;
546esac
547
548# For backward compatibility with old third-party macros, we provide
549# the shell variables $as_echo and $as_echo_n.  New code should use
550# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
551as_echo='printf %s\n'
552as_echo_n='printf %s'
553
554
555rm -f conf$$ conf$$.exe conf$$.file
556if test -d conf$$.dir; then
557  rm -f conf$$.dir/conf$$.file
558else
559  rm -f conf$$.dir
560  mkdir conf$$.dir 2>/dev/null
561fi
562if (echo >conf$$.file) 2>/dev/null; then
563  if ln -s conf$$.file conf$$ 2>/dev/null; then
564    as_ln_s='ln -s'
565    # ... but there are two gotchas:
566    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
567    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
568    # In both cases, we have to default to `cp -pR'.
569    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
570      as_ln_s='cp -pR'
571  elif ln conf$$.file conf$$ 2>/dev/null; then
572    as_ln_s=ln
573  else
574    as_ln_s='cp -pR'
575  fi
576else
577  as_ln_s='cp -pR'
578fi
579rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
580rmdir conf$$.dir 2>/dev/null
581
582if mkdir -p . 2>/dev/null; then
583  as_mkdir_p='mkdir -p "$as_dir"'
584else
585  test -d ./-p && rmdir ./-p
586  as_mkdir_p=false
587fi
588
589as_test_x='test -x'
590as_executable_p=as_fn_executable_p
591
592# Sed expression to map a string onto a valid CPP name.
593as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
594
595# Sed expression to map a string onto a valid variable name.
596as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
597
598SHELL=${CONFIG_SHELL-/bin/sh}
599
600
601test -n "$DJDIR" || exec 7<&0 </dev/null
602exec 6>&1
603
604# Name of the host.
605# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
606# so uname gets run too.
607ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
608
609#
610# Initializations.
611#
612ac_default_prefix=/usr/local
613ac_clean_files=
614ac_config_libobj_dir=.
615LIBOBJS=
616cross_compiling=no
617subdirs=
618MFLAGS=
619MAKEFLAGS=
620
621# Identity of this package.
622PACKAGE_NAME='sg3_utils'
623PACKAGE_TARNAME='sg3_utils'
624PACKAGE_VERSION='1.48'
625PACKAGE_STRING='sg3_utils 1.48'
626PACKAGE_BUGREPORT='[email protected]'
627PACKAGE_URL=''
628
629# Factoring default headers for most tests.
630ac_includes_default="\
631#include <stddef.h>
632#ifdef HAVE_STDIO_H
633# include <stdio.h>
634#endif
635#ifdef HAVE_STDLIB_H
636# include <stdlib.h>
637#endif
638#ifdef HAVE_STRING_H
639# include <string.h>
640#endif
641#ifdef HAVE_INTTYPES_H
642# include <inttypes.h>
643#endif
644#ifdef HAVE_STDINT_H
645# include <stdint.h>
646#endif
647#ifdef HAVE_STRINGS_H
648# include <strings.h>
649#endif
650#ifdef HAVE_SYS_TYPES_H
651# include <sys/types.h>
652#endif
653#ifdef HAVE_SYS_STAT_H
654# include <sys/stat.h>
655#endif
656#ifdef HAVE_UNISTD_H
657# include <unistd.h>
658#endif"
659
660ac_header_c_list=
661ac_subst_vars='am__EXEEXT_FALSE
662am__EXEEXT_TRUE
663LTLIBOBJS
664LIBOBJS
665PT_DUMMY_FALSE
666PT_DUMMY_TRUE
667DEBUG_FALSE
668DEBUG_TRUE
669OS_OTHER_FALSE
670OS_OTHER_TRUE
671OS_HAIKU_FALSE
672OS_HAIKU_TRUE
673OS_OPENBSD_FALSE
674OS_OPENBSD_TRUE
675OS_NETBSD_FALSE
676OS_NETBSD_TRUE
677OS_ANDROID_FALSE
678OS_ANDROID_TRUE
679OS_WIN32_CYGWIN_FALSE
680OS_WIN32_CYGWIN_TRUE
681OS_WIN32_MINGW_FALSE
682OS_WIN32_MINGW_TRUE
683OS_SOLARIS_FALSE
684OS_SOLARIS_TRUE
685OS_OSF_FALSE
686OS_OSF_TRUE
687OS_LINUX_FALSE
688OS_LINUX_TRUE
689OS_FREEBSD_FALSE
690OS_FREEBSD_TRUE
691os_libs
692os_cflags
693CPP
694GETOPT_O_FILES
695RT_LIB
696PTHREAD_LIB
697LT_SYS_LIBRARY_PATH
698OTOOL64
699OTOOL
700LIPO
701NMEDIT
702DSYMUTIL
703MANIFEST_TOOL
704RANLIB
705DLLTOOL
706OBJDUMP
707FILECMD
708LN_S
709NM
710ac_ct_DUMPBIN
711DUMPBIN
712LD
713FGREP
714EGREP
715GREP
716SED
717host_os
718host_vendor
719host_cpu
720host
721build_os
722build_vendor
723build_cpu
724build
725LIBTOOL
726ac_ct_AR
727AR
728am__fastdepCC_FALSE
729am__fastdepCC_TRUE
730CCDEPMODE
731am__nodep
732AMDEPBACKSLASH
733AMDEP_FALSE
734AMDEP_TRUE
735am__include
736DEPDIR
737OBJEXT
738EXEEXT
739ac_ct_CC
740CPPFLAGS
741LDFLAGS
742CFLAGS
743CC
744MAINT
745MAINTAINER_MODE_FALSE
746MAINTAINER_MODE_TRUE
747AM_BACKSLASH
748AM_DEFAULT_VERBOSITY
749AM_DEFAULT_V
750AM_V
751CSCOPE
752ETAGS
753CTAGS
754am__untar
755am__tar
756AMTAR
757am__leading_dot
758SET_MAKE
759AWK
760mkdir_p
761MKDIR_P
762INSTALL_STRIP_PROGRAM
763STRIP
764install_sh
765MAKEINFO
766AUTOHEADER
767AUTOMAKE
768AUTOCONF
769ACLOCAL
770VERSION
771PACKAGE
772CYGPATH_W
773am__isrc
774INSTALL_DATA
775INSTALL_SCRIPT
776INSTALL_PROGRAM
777target_alias
778host_alias
779build_alias
780LIBS
781ECHO_T
782ECHO_N
783ECHO_C
784DEFS
785mandir
786localedir
787libdir
788psdir
789pdfdir
790dvidir
791htmldir
792infodir
793docdir
794oldincludedir
795includedir
796runstatedir
797localstatedir
798sharedstatedir
799sysconfdir
800datadir
801datarootdir
802libexecdir
803sbindir
804bindir
805program_transform_name
806prefix
807exec_prefix
808PACKAGE_URL
809PACKAGE_BUGREPORT
810PACKAGE_STRING
811PACKAGE_VERSION
812PACKAGE_TARNAME
813PACKAGE_NAME
814PATH_SEPARATOR
815SHELL
816am__quote'
817ac_subst_files=''
818ac_user_opts='
819enable_option_checking
820enable_silent_rules
821enable_maintainer_mode
822enable_dependency_tracking
823enable_shared
824enable_static
825with_pic
826enable_fast_install
827with_aix_soname
828with_gnu_ld
829with_sysroot
830enable_libtool_lock
831enable_debug
832enable_pt_dummy
833enable_linuxbsg
834enable_win32_spt_direct
835enable_scsistrings
836enable_nvme_supp
837enable_fast_lebe
838enable_linux_sgv4
839'
840      ac_precious_vars='build_alias
841host_alias
842target_alias
843CC
844CFLAGS
845LDFLAGS
846LIBS
847CPPFLAGS
848LT_SYS_LIBRARY_PATH
849CPP'
850
851
852# Initialize some variables set by options.
853ac_init_help=
854ac_init_version=false
855ac_unrecognized_opts=
856ac_unrecognized_sep=
857# The variables have the same names as the options, with
858# dashes changed to underlines.
859cache_file=/dev/null
860exec_prefix=NONE
861no_create=
862no_recursion=
863prefix=NONE
864program_prefix=NONE
865program_suffix=NONE
866program_transform_name=s,x,x,
867silent=
868site=
869srcdir=
870verbose=
871x_includes=NONE
872x_libraries=NONE
873
874# Installation directory options.
875# These are left unexpanded so users can "make install exec_prefix=/foo"
876# and all the variables that are supposed to be based on exec_prefix
877# by default will actually change.
878# Use braces instead of parens because sh, perl, etc. also accept them.
879# (The list follows the same order as the GNU Coding Standards.)
880bindir='${exec_prefix}/bin'
881sbindir='${exec_prefix}/sbin'
882libexecdir='${exec_prefix}/libexec'
883datarootdir='${prefix}/share'
884datadir='${datarootdir}'
885sysconfdir='${prefix}/etc'
886sharedstatedir='${prefix}/com'
887localstatedir='${prefix}/var'
888runstatedir='${localstatedir}/run'
889includedir='${prefix}/include'
890oldincludedir='/usr/include'
891docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
892infodir='${datarootdir}/info'
893htmldir='${docdir}'
894dvidir='${docdir}'
895pdfdir='${docdir}'
896psdir='${docdir}'
897libdir='${exec_prefix}/lib'
898localedir='${datarootdir}/locale'
899mandir='${datarootdir}/man'
900
901ac_prev=
902ac_dashdash=
903for ac_option
904do
905  # If the previous option needs an argument, assign it.
906  if test -n "$ac_prev"; then
907    eval $ac_prev=\$ac_option
908    ac_prev=
909    continue
910  fi
911
912  case $ac_option in
913  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
914  *=)   ac_optarg= ;;
915  *)    ac_optarg=yes ;;
916  esac
917
918  case $ac_dashdash$ac_option in
919  --)
920    ac_dashdash=yes ;;
921
922  -bindir | --bindir | --bindi | --bind | --bin | --bi)
923    ac_prev=bindir ;;
924  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
925    bindir=$ac_optarg ;;
926
927  -build | --build | --buil | --bui | --bu)
928    ac_prev=build_alias ;;
929  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
930    build_alias=$ac_optarg ;;
931
932  -cache-file | --cache-file | --cache-fil | --cache-fi \
933  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
934    ac_prev=cache_file ;;
935  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
936  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
937    cache_file=$ac_optarg ;;
938
939  --config-cache | -C)
940    cache_file=config.cache ;;
941
942  -datadir | --datadir | --datadi | --datad)
943    ac_prev=datadir ;;
944  -datadir=* | --datadir=* | --datadi=* | --datad=*)
945    datadir=$ac_optarg ;;
946
947  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
948  | --dataroo | --dataro | --datar)
949    ac_prev=datarootdir ;;
950  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
951  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
952    datarootdir=$ac_optarg ;;
953
954  -disable-* | --disable-*)
955    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
956    # Reject names that are not valid shell variable names.
957    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
958      as_fn_error $? "invalid feature name: \`$ac_useropt'"
959    ac_useropt_orig=$ac_useropt
960    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
961    case $ac_user_opts in
962      *"
963"enable_$ac_useropt"
964"*) ;;
965      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
966	 ac_unrecognized_sep=', ';;
967    esac
968    eval enable_$ac_useropt=no ;;
969
970  -docdir | --docdir | --docdi | --doc | --do)
971    ac_prev=docdir ;;
972  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
973    docdir=$ac_optarg ;;
974
975  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
976    ac_prev=dvidir ;;
977  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
978    dvidir=$ac_optarg ;;
979
980  -enable-* | --enable-*)
981    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
982    # Reject names that are not valid shell variable names.
983    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
984      as_fn_error $? "invalid feature name: \`$ac_useropt'"
985    ac_useropt_orig=$ac_useropt
986    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
987    case $ac_user_opts in
988      *"
989"enable_$ac_useropt"
990"*) ;;
991      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
992	 ac_unrecognized_sep=', ';;
993    esac
994    eval enable_$ac_useropt=\$ac_optarg ;;
995
996  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
997  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
998  | --exec | --exe | --ex)
999    ac_prev=exec_prefix ;;
1000  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1001  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1002  | --exec=* | --exe=* | --ex=*)
1003    exec_prefix=$ac_optarg ;;
1004
1005  -gas | --gas | --ga | --g)
1006    # Obsolete; use --with-gas.
1007    with_gas=yes ;;
1008
1009  -help | --help | --hel | --he | -h)
1010    ac_init_help=long ;;
1011  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1012    ac_init_help=recursive ;;
1013  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1014    ac_init_help=short ;;
1015
1016  -host | --host | --hos | --ho)
1017    ac_prev=host_alias ;;
1018  -host=* | --host=* | --hos=* | --ho=*)
1019    host_alias=$ac_optarg ;;
1020
1021  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1022    ac_prev=htmldir ;;
1023  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1024  | --ht=*)
1025    htmldir=$ac_optarg ;;
1026
1027  -includedir | --includedir | --includedi | --included | --include \
1028  | --includ | --inclu | --incl | --inc)
1029    ac_prev=includedir ;;
1030  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1031  | --includ=* | --inclu=* | --incl=* | --inc=*)
1032    includedir=$ac_optarg ;;
1033
1034  -infodir | --infodir | --infodi | --infod | --info | --inf)
1035    ac_prev=infodir ;;
1036  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1037    infodir=$ac_optarg ;;
1038
1039  -libdir | --libdir | --libdi | --libd)
1040    ac_prev=libdir ;;
1041  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1042    libdir=$ac_optarg ;;
1043
1044  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1045  | --libexe | --libex | --libe)
1046    ac_prev=libexecdir ;;
1047  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1048  | --libexe=* | --libex=* | --libe=*)
1049    libexecdir=$ac_optarg ;;
1050
1051  -localedir | --localedir | --localedi | --localed | --locale)
1052    ac_prev=localedir ;;
1053  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1054    localedir=$ac_optarg ;;
1055
1056  -localstatedir | --localstatedir | --localstatedi | --localstated \
1057  | --localstate | --localstat | --localsta | --localst | --locals)
1058    ac_prev=localstatedir ;;
1059  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1060  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1061    localstatedir=$ac_optarg ;;
1062
1063  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1064    ac_prev=mandir ;;
1065  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1066    mandir=$ac_optarg ;;
1067
1068  -nfp | --nfp | --nf)
1069    # Obsolete; use --without-fp.
1070    with_fp=no ;;
1071
1072  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1073  | --no-cr | --no-c | -n)
1074    no_create=yes ;;
1075
1076  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1077  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1078    no_recursion=yes ;;
1079
1080  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1081  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1082  | --oldin | --oldi | --old | --ol | --o)
1083    ac_prev=oldincludedir ;;
1084  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1085  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1086  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1087    oldincludedir=$ac_optarg ;;
1088
1089  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1090    ac_prev=prefix ;;
1091  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1092    prefix=$ac_optarg ;;
1093
1094  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1095  | --program-pre | --program-pr | --program-p)
1096    ac_prev=program_prefix ;;
1097  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1098  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1099    program_prefix=$ac_optarg ;;
1100
1101  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1102  | --program-suf | --program-su | --program-s)
1103    ac_prev=program_suffix ;;
1104  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1105  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1106    program_suffix=$ac_optarg ;;
1107
1108  -program-transform-name | --program-transform-name \
1109  | --program-transform-nam | --program-transform-na \
1110  | --program-transform-n | --program-transform- \
1111  | --program-transform | --program-transfor \
1112  | --program-transfo | --program-transf \
1113  | --program-trans | --program-tran \
1114  | --progr-tra | --program-tr | --program-t)
1115    ac_prev=program_transform_name ;;
1116  -program-transform-name=* | --program-transform-name=* \
1117  | --program-transform-nam=* | --program-transform-na=* \
1118  | --program-transform-n=* | --program-transform-=* \
1119  | --program-transform=* | --program-transfor=* \
1120  | --program-transfo=* | --program-transf=* \
1121  | --program-trans=* | --program-tran=* \
1122  | --progr-tra=* | --program-tr=* | --program-t=*)
1123    program_transform_name=$ac_optarg ;;
1124
1125  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1126    ac_prev=pdfdir ;;
1127  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1128    pdfdir=$ac_optarg ;;
1129
1130  -psdir | --psdir | --psdi | --psd | --ps)
1131    ac_prev=psdir ;;
1132  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1133    psdir=$ac_optarg ;;
1134
1135  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1136  | -silent | --silent | --silen | --sile | --sil)
1137    silent=yes ;;
1138
1139  -runstatedir | --runstatedir | --runstatedi | --runstated \
1140  | --runstate | --runstat | --runsta | --runst | --runs \
1141  | --run | --ru | --r)
1142    ac_prev=runstatedir ;;
1143  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1144  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1145  | --run=* | --ru=* | --r=*)
1146    runstatedir=$ac_optarg ;;
1147
1148  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1149    ac_prev=sbindir ;;
1150  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1151  | --sbi=* | --sb=*)
1152    sbindir=$ac_optarg ;;
1153
1154  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1155  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1156  | --sharedst | --shareds | --shared | --share | --shar \
1157  | --sha | --sh)
1158    ac_prev=sharedstatedir ;;
1159  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1160  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1161  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1162  | --sha=* | --sh=*)
1163    sharedstatedir=$ac_optarg ;;
1164
1165  -site | --site | --sit)
1166    ac_prev=site ;;
1167  -site=* | --site=* | --sit=*)
1168    site=$ac_optarg ;;
1169
1170  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1171    ac_prev=srcdir ;;
1172  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1173    srcdir=$ac_optarg ;;
1174
1175  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1176  | --syscon | --sysco | --sysc | --sys | --sy)
1177    ac_prev=sysconfdir ;;
1178  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1179  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1180    sysconfdir=$ac_optarg ;;
1181
1182  -target | --target | --targe | --targ | --tar | --ta | --t)
1183    ac_prev=target_alias ;;
1184  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1185    target_alias=$ac_optarg ;;
1186
1187  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1188    verbose=yes ;;
1189
1190  -version | --version | --versio | --versi | --vers | -V)
1191    ac_init_version=: ;;
1192
1193  -with-* | --with-*)
1194    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1195    # Reject names that are not valid shell variable names.
1196    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1197      as_fn_error $? "invalid package name: \`$ac_useropt'"
1198    ac_useropt_orig=$ac_useropt
1199    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1200    case $ac_user_opts in
1201      *"
1202"with_$ac_useropt"
1203"*) ;;
1204      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1205	 ac_unrecognized_sep=', ';;
1206    esac
1207    eval with_$ac_useropt=\$ac_optarg ;;
1208
1209  -without-* | --without-*)
1210    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1211    # Reject names that are not valid shell variable names.
1212    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1213      as_fn_error $? "invalid package name: \`$ac_useropt'"
1214    ac_useropt_orig=$ac_useropt
1215    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1216    case $ac_user_opts in
1217      *"
1218"with_$ac_useropt"
1219"*) ;;
1220      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1221	 ac_unrecognized_sep=', ';;
1222    esac
1223    eval with_$ac_useropt=no ;;
1224
1225  --x)
1226    # Obsolete; use --with-x.
1227    with_x=yes ;;
1228
1229  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1230  | --x-incl | --x-inc | --x-in | --x-i)
1231    ac_prev=x_includes ;;
1232  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1233  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1234    x_includes=$ac_optarg ;;
1235
1236  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1237  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1238    ac_prev=x_libraries ;;
1239  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1240  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1241    x_libraries=$ac_optarg ;;
1242
1243  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1244Try \`$0 --help' for more information"
1245    ;;
1246
1247  *=*)
1248    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1249    # Reject names that are not valid shell variable names.
1250    case $ac_envvar in #(
1251      '' | [0-9]* | *[!_$as_cr_alnum]* )
1252      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1253    esac
1254    eval $ac_envvar=\$ac_optarg
1255    export $ac_envvar ;;
1256
1257  *)
1258    # FIXME: should be removed in autoconf 3.0.
1259    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1260    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1261      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1262    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1263    ;;
1264
1265  esac
1266done
1267
1268if test -n "$ac_prev"; then
1269  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1270  as_fn_error $? "missing argument to $ac_option"
1271fi
1272
1273if test -n "$ac_unrecognized_opts"; then
1274  case $enable_option_checking in
1275    no) ;;
1276    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1277    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1278  esac
1279fi
1280
1281# Check all directory arguments for consistency.
1282for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1283		datadir sysconfdir sharedstatedir localstatedir includedir \
1284		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1285		libdir localedir mandir runstatedir
1286do
1287  eval ac_val=\$$ac_var
1288  # Remove trailing slashes.
1289  case $ac_val in
1290    */ )
1291      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1292      eval $ac_var=\$ac_val;;
1293  esac
1294  # Be sure to have absolute directory names.
1295  case $ac_val in
1296    [\\/$]* | ?:[\\/]* )  continue;;
1297    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1298  esac
1299  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1300done
1301
1302# There might be people who depend on the old broken behavior: `$host'
1303# used to hold the argument of --host etc.
1304# FIXME: To remove some day.
1305build=$build_alias
1306host=$host_alias
1307target=$target_alias
1308
1309# FIXME: To remove some day.
1310if test "x$host_alias" != x; then
1311  if test "x$build_alias" = x; then
1312    cross_compiling=maybe
1313  elif test "x$build_alias" != "x$host_alias"; then
1314    cross_compiling=yes
1315  fi
1316fi
1317
1318ac_tool_prefix=
1319test -n "$host_alias" && ac_tool_prefix=$host_alias-
1320
1321test "$silent" = yes && exec 6>/dev/null
1322
1323
1324ac_pwd=`pwd` && test -n "$ac_pwd" &&
1325ac_ls_di=`ls -di .` &&
1326ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1327  as_fn_error $? "working directory cannot be determined"
1328test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1329  as_fn_error $? "pwd does not report name of working directory"
1330
1331
1332# Find the source files, if location was not specified.
1333if test -z "$srcdir"; then
1334  ac_srcdir_defaulted=yes
1335  # Try the directory containing this script, then the parent directory.
1336  ac_confdir=`$as_dirname -- "$as_myself" ||
1337$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1338	 X"$as_myself" : 'X\(//\)[^/]' \| \
1339	 X"$as_myself" : 'X\(//\)$' \| \
1340	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1341printf "%s\n" X"$as_myself" |
1342    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1343	    s//\1/
1344	    q
1345	  }
1346	  /^X\(\/\/\)[^/].*/{
1347	    s//\1/
1348	    q
1349	  }
1350	  /^X\(\/\/\)$/{
1351	    s//\1/
1352	    q
1353	  }
1354	  /^X\(\/\).*/{
1355	    s//\1/
1356	    q
1357	  }
1358	  s/.*/./; q'`
1359  srcdir=$ac_confdir
1360  if test ! -r "$srcdir/$ac_unique_file"; then
1361    srcdir=..
1362  fi
1363else
1364  ac_srcdir_defaulted=no
1365fi
1366if test ! -r "$srcdir/$ac_unique_file"; then
1367  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1368  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1369fi
1370ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1371ac_abs_confdir=`(
1372	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1373	pwd)`
1374# When building in place, set srcdir=.
1375if test "$ac_abs_confdir" = "$ac_pwd"; then
1376  srcdir=.
1377fi
1378# Remove unnecessary trailing slashes from srcdir.
1379# Double slashes in file names in object file debugging info
1380# mess up M-x gdb in Emacs.
1381case $srcdir in
1382*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1383esac
1384for ac_var in $ac_precious_vars; do
1385  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1386  eval ac_env_${ac_var}_value=\$${ac_var}
1387  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1388  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1389done
1390
1391#
1392# Report the --help message.
1393#
1394if test "$ac_init_help" = "long"; then
1395  # Omit some internal or obsolete options to make the list less imposing.
1396  # This message is too long to be a string in the A/UX 3.1 sh.
1397  cat <<_ACEOF
1398\`configure' configures sg3_utils 1.48 to adapt to many kinds of systems.
1399
1400Usage: $0 [OPTION]... [VAR=VALUE]...
1401
1402To assign environment variables (e.g., CC, CFLAGS...), specify them as
1403VAR=VALUE.  See below for descriptions of some of the useful variables.
1404
1405Defaults for the options are specified in brackets.
1406
1407Configuration:
1408  -h, --help              display this help and exit
1409      --help=short        display options specific to this package
1410      --help=recursive    display the short help of all the included packages
1411  -V, --version           display version information and exit
1412  -q, --quiet, --silent   do not print \`checking ...' messages
1413      --cache-file=FILE   cache test results in FILE [disabled]
1414  -C, --config-cache      alias for \`--cache-file=config.cache'
1415  -n, --no-create         do not create output files
1416      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1417
1418Installation directories:
1419  --prefix=PREFIX         install architecture-independent files in PREFIX
1420                          [$ac_default_prefix]
1421  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1422                          [PREFIX]
1423
1424By default, \`make install' will install all the files in
1425\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1426an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1427for instance \`--prefix=\$HOME'.
1428
1429For better control, use the options below.
1430
1431Fine tuning of the installation directories:
1432  --bindir=DIR            user executables [EPREFIX/bin]
1433  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1434  --libexecdir=DIR        program executables [EPREFIX/libexec]
1435  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1436  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1437  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1438  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1439  --libdir=DIR            object code libraries [EPREFIX/lib]
1440  --includedir=DIR        C header files [PREFIX/include]
1441  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1442  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1443  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1444  --infodir=DIR           info documentation [DATAROOTDIR/info]
1445  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1446  --mandir=DIR            man documentation [DATAROOTDIR/man]
1447  --docdir=DIR            documentation root [DATAROOTDIR/doc/sg3_utils]
1448  --htmldir=DIR           html documentation [DOCDIR]
1449  --dvidir=DIR            dvi documentation [DOCDIR]
1450  --pdfdir=DIR            pdf documentation [DOCDIR]
1451  --psdir=DIR             ps documentation [DOCDIR]
1452_ACEOF
1453
1454  cat <<\_ACEOF
1455
1456Program names:
1457  --program-prefix=PREFIX            prepend PREFIX to installed program names
1458  --program-suffix=SUFFIX            append SUFFIX to installed program names
1459  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1460
1461System types:
1462  --build=BUILD     configure for building on BUILD [guessed]
1463  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1464_ACEOF
1465fi
1466
1467if test -n "$ac_init_help"; then
1468  case $ac_init_help in
1469     short | recursive ) echo "Configuration of sg3_utils 1.48:";;
1470   esac
1471  cat <<\_ACEOF
1472
1473Optional Features:
1474  --disable-option-checking  ignore unrecognized --enable/--with options
1475  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1476  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1477  --enable-silent-rules   less verbose build output (undo: "make V=1")
1478  --disable-silent-rules  verbose build output (undo: "make V=0")
1479  --enable-maintainer-mode
1480                          enable make rules and dependencies not useful (and
1481                          sometimes confusing) to the casual installer
1482  --enable-dependency-tracking
1483                          do not reject slow dependency extractors
1484  --disable-dependency-tracking
1485                          speeds up one-time build
1486  --enable-shared[=PKGS]  build shared libraries [default=yes]
1487  --enable-static[=PKGS]  build static libraries [default=yes]
1488  --enable-fast-install[=PKGS]
1489                          optimize for fast installation [default=yes]
1490  --disable-libtool-lock  avoid locking (might break parallel builds)
1491  --enable-debug          Turn on debugging
1492  --enable-pt_dummy       pass-through codes compiles, does nothing
1493  --disable-linuxbsg      option ignored, this is placeholder
1494  --enable-win32-spt-direct
1495                          enable Win32 SPT Direct
1496  --disable-scsistrings   Disable full SCSI sense strings and NVMe status
1497                          strings
1498  --disable-nvme-supp     remove all or most NVMe code
1499  --disable-fast-lebe     use generic little-endian/big-endian code instead
1500  --disable-linux-sgv4    for Linux sg driver avoid v4 interface even if
1501                          available
1502
1503Optional Packages:
1504  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1505  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1506  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1507                          both]
1508  --with-aix-soname=aix|svr4|both
1509                          shared library versioning (aka "SONAME") variant to
1510                          provide on AIX, [default=aix].
1511  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1512  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1513                          compiler's sysroot if not specified).
1514
1515Some influential environment variables:
1516  CC          C compiler command
1517  CFLAGS      C compiler flags
1518  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1519              nonstandard directory <lib dir>
1520  LIBS        libraries to pass to the linker, e.g. -l<library>
1521  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1522              you have headers in a nonstandard directory <include dir>
1523  LT_SYS_LIBRARY_PATH
1524              User-defined run-time library search path.
1525  CPP         C preprocessor
1526
1527Use these variables to override the choices made by `configure' or to help
1528it to find libraries and programs with nonstandard names/locations.
1529
1530Report bugs to <dgilbert@interlog.com>.
1531_ACEOF
1532ac_status=$?
1533fi
1534
1535if test "$ac_init_help" = "recursive"; then
1536  # If there are subdirs, report their specific --help.
1537  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1538    test -d "$ac_dir" ||
1539      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1540      continue
1541    ac_builddir=.
1542
1543case "$ac_dir" in
1544.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1545*)
1546  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1547  # A ".." for each directory in $ac_dir_suffix.
1548  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1549  case $ac_top_builddir_sub in
1550  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1551  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1552  esac ;;
1553esac
1554ac_abs_top_builddir=$ac_pwd
1555ac_abs_builddir=$ac_pwd$ac_dir_suffix
1556# for backward compatibility:
1557ac_top_builddir=$ac_top_build_prefix
1558
1559case $srcdir in
1560  .)  # We are building in place.
1561    ac_srcdir=.
1562    ac_top_srcdir=$ac_top_builddir_sub
1563    ac_abs_top_srcdir=$ac_pwd ;;
1564  [\\/]* | ?:[\\/]* )  # Absolute name.
1565    ac_srcdir=$srcdir$ac_dir_suffix;
1566    ac_top_srcdir=$srcdir
1567    ac_abs_top_srcdir=$srcdir ;;
1568  *) # Relative name.
1569    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1570    ac_top_srcdir=$ac_top_build_prefix$srcdir
1571    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1572esac
1573ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1574
1575    cd "$ac_dir" || { ac_status=$?; continue; }
1576    # Check for configure.gnu first; this name is used for a wrapper for
1577    # Metaconfig's "Configure" on case-insensitive file systems.
1578    if test -f "$ac_srcdir/configure.gnu"; then
1579      echo &&
1580      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1581    elif test -f "$ac_srcdir/configure"; then
1582      echo &&
1583      $SHELL "$ac_srcdir/configure" --help=recursive
1584    else
1585      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1586    fi || ac_status=$?
1587    cd "$ac_pwd" || { ac_status=$?; break; }
1588  done
1589fi
1590
1591test -n "$ac_init_help" && exit $ac_status
1592if $ac_init_version; then
1593  cat <<\_ACEOF
1594sg3_utils configure 1.48
1595generated by GNU Autoconf 2.71
1596
1597Copyright (C) 2021 Free Software Foundation, Inc.
1598This configure script is free software; the Free Software Foundation
1599gives unlimited permission to copy, distribute and modify it.
1600_ACEOF
1601  exit
1602fi
1603
1604## ------------------------ ##
1605## Autoconf initialization. ##
1606## ------------------------ ##
1607
1608# ac_fn_c_try_compile LINENO
1609# --------------------------
1610# Try to compile conftest.$ac_ext, and return whether this succeeded.
1611ac_fn_c_try_compile ()
1612{
1613  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614  rm -f conftest.$ac_objext conftest.beam
1615  if { { ac_try="$ac_compile"
1616case "(($ac_try" in
1617  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1618  *) ac_try_echo=$ac_try;;
1619esac
1620eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1621printf "%s\n" "$ac_try_echo"; } >&5
1622  (eval "$ac_compile") 2>conftest.err
1623  ac_status=$?
1624  if test -s conftest.err; then
1625    grep -v '^ *+' conftest.err >conftest.er1
1626    cat conftest.er1 >&5
1627    mv -f conftest.er1 conftest.err
1628  fi
1629  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1630  test $ac_status = 0; } && {
1631	 test -z "$ac_c_werror_flag" ||
1632	 test ! -s conftest.err
1633       } && test -s conftest.$ac_objext
1634then :
1635  ac_retval=0
1636else $as_nop
1637  printf "%s\n" "$as_me: failed program was:" >&5
1638sed 's/^/| /' conftest.$ac_ext >&5
1639
1640	ac_retval=1
1641fi
1642  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1643  as_fn_set_status $ac_retval
1644
1645} # ac_fn_c_try_compile
1646
1647# ac_fn_c_try_link LINENO
1648# -----------------------
1649# Try to link conftest.$ac_ext, and return whether this succeeded.
1650ac_fn_c_try_link ()
1651{
1652  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1654  if { { ac_try="$ac_link"
1655case "(($ac_try" in
1656  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1657  *) ac_try_echo=$ac_try;;
1658esac
1659eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1660printf "%s\n" "$ac_try_echo"; } >&5
1661  (eval "$ac_link") 2>conftest.err
1662  ac_status=$?
1663  if test -s conftest.err; then
1664    grep -v '^ *+' conftest.err >conftest.er1
1665    cat conftest.er1 >&5
1666    mv -f conftest.er1 conftest.err
1667  fi
1668  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1669  test $ac_status = 0; } && {
1670	 test -z "$ac_c_werror_flag" ||
1671	 test ! -s conftest.err
1672       } && test -s conftest$ac_exeext && {
1673	 test "$cross_compiling" = yes ||
1674	 test -x conftest$ac_exeext
1675       }
1676then :
1677  ac_retval=0
1678else $as_nop
1679  printf "%s\n" "$as_me: failed program was:" >&5
1680sed 's/^/| /' conftest.$ac_ext >&5
1681
1682	ac_retval=1
1683fi
1684  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1685  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1686  # interfere with the next link command; also delete a directory that is
1687  # left behind by Apple's compiler.  We do this before executing the actions.
1688  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1689  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1690  as_fn_set_status $ac_retval
1691
1692} # ac_fn_c_try_link
1693
1694# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1695# -------------------------------------------------------
1696# Tests whether HEADER exists and can be compiled using the include files in
1697# INCLUDES, setting the cache variable VAR accordingly.
1698ac_fn_c_check_header_compile ()
1699{
1700  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1702printf %s "checking for $2... " >&6; }
1703if eval test \${$3+y}
1704then :
1705  printf %s "(cached) " >&6
1706else $as_nop
1707  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1708/* end confdefs.h.  */
1709$4
1710#include <$2>
1711_ACEOF
1712if ac_fn_c_try_compile "$LINENO"
1713then :
1714  eval "$3=yes"
1715else $as_nop
1716  eval "$3=no"
1717fi
1718rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1719fi
1720eval ac_res=\$$3
1721	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1722printf "%s\n" "$ac_res" >&6; }
1723  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1724
1725} # ac_fn_c_check_header_compile
1726
1727# ac_fn_c_check_func LINENO FUNC VAR
1728# ----------------------------------
1729# Tests whether FUNC exists, setting the cache variable VAR accordingly
1730ac_fn_c_check_func ()
1731{
1732  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1734printf %s "checking for $2... " >&6; }
1735if eval test \${$3+y}
1736then :
1737  printf %s "(cached) " >&6
1738else $as_nop
1739  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1740/* end confdefs.h.  */
1741/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1742   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1743#define $2 innocuous_$2
1744
1745/* System header to define __stub macros and hopefully few prototypes,
1746   which can conflict with char $2 (); below.  */
1747
1748#include <limits.h>
1749#undef $2
1750
1751/* Override any GCC internal prototype to avoid an error.
1752   Use char because int might match the return type of a GCC
1753   builtin and then its argument prototype would still apply.  */
1754#ifdef __cplusplus
1755extern "C"
1756#endif
1757char $2 ();
1758/* The GNU C library defines this for functions which it implements
1759    to always fail with ENOSYS.  Some functions are actually named
1760    something starting with __ and the normal name is an alias.  */
1761#if defined __stub_$2 || defined __stub___$2
1762choke me
1763#endif
1764
1765int
1766main (void)
1767{
1768return $2 ();
1769  ;
1770  return 0;
1771}
1772_ACEOF
1773if ac_fn_c_try_link "$LINENO"
1774then :
1775  eval "$3=yes"
1776else $as_nop
1777  eval "$3=no"
1778fi
1779rm -f core conftest.err conftest.$ac_objext conftest.beam \
1780    conftest$ac_exeext conftest.$ac_ext
1781fi
1782eval ac_res=\$$3
1783	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1784printf "%s\n" "$ac_res" >&6; }
1785  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1786
1787} # ac_fn_c_check_func
1788
1789# ac_fn_c_try_cpp LINENO
1790# ----------------------
1791# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1792ac_fn_c_try_cpp ()
1793{
1794  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795  if { { ac_try="$ac_cpp conftest.$ac_ext"
1796case "(($ac_try" in
1797  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1798  *) ac_try_echo=$ac_try;;
1799esac
1800eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1801printf "%s\n" "$ac_try_echo"; } >&5
1802  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1803  ac_status=$?
1804  if test -s conftest.err; then
1805    grep -v '^ *+' conftest.err >conftest.er1
1806    cat conftest.er1 >&5
1807    mv -f conftest.er1 conftest.err
1808  fi
1809  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1810  test $ac_status = 0; } > conftest.i && {
1811	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1812	 test ! -s conftest.err
1813       }
1814then :
1815  ac_retval=0
1816else $as_nop
1817  printf "%s\n" "$as_me: failed program was:" >&5
1818sed 's/^/| /' conftest.$ac_ext >&5
1819
1820    ac_retval=1
1821fi
1822  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1823  as_fn_set_status $ac_retval
1824
1825} # ac_fn_c_try_cpp
1826ac_configure_args_raw=
1827for ac_arg
1828do
1829  case $ac_arg in
1830  *\'*)
1831    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1832  esac
1833  as_fn_append ac_configure_args_raw " '$ac_arg'"
1834done
1835
1836case $ac_configure_args_raw in
1837  *$as_nl*)
1838    ac_safe_unquote= ;;
1839  *)
1840    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1841    ac_unsafe_a="$ac_unsafe_z#~"
1842    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1843    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1844esac
1845
1846cat >config.log <<_ACEOF
1847This file contains any messages produced by compilers while
1848running configure, to aid debugging if configure makes a mistake.
1849
1850It was created by sg3_utils $as_me 1.48, which was
1851generated by GNU Autoconf 2.71.  Invocation command line was
1852
1853  $ $0$ac_configure_args_raw
1854
1855_ACEOF
1856exec 5>>config.log
1857{
1858cat <<_ASUNAME
1859## --------- ##
1860## Platform. ##
1861## --------- ##
1862
1863hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1864uname -m = `(uname -m) 2>/dev/null || echo unknown`
1865uname -r = `(uname -r) 2>/dev/null || echo unknown`
1866uname -s = `(uname -s) 2>/dev/null || echo unknown`
1867uname -v = `(uname -v) 2>/dev/null || echo unknown`
1868
1869/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1870/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1871
1872/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1873/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1874/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1875/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1876/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1877/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1878/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1879
1880_ASUNAME
1881
1882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1883for as_dir in $PATH
1884do
1885  IFS=$as_save_IFS
1886  case $as_dir in #(((
1887    '') as_dir=./ ;;
1888    */) ;;
1889    *) as_dir=$as_dir/ ;;
1890  esac
1891    printf "%s\n" "PATH: $as_dir"
1892  done
1893IFS=$as_save_IFS
1894
1895} >&5
1896
1897cat >&5 <<_ACEOF
1898
1899
1900## ----------- ##
1901## Core tests. ##
1902## ----------- ##
1903
1904_ACEOF
1905
1906
1907# Keep a trace of the command line.
1908# Strip out --no-create and --no-recursion so they do not pile up.
1909# Strip out --silent because we don't want to record it for future runs.
1910# Also quote any args containing shell meta-characters.
1911# Make two passes to allow for proper duplicate-argument suppression.
1912ac_configure_args=
1913ac_configure_args0=
1914ac_configure_args1=
1915ac_must_keep_next=false
1916for ac_pass in 1 2
1917do
1918  for ac_arg
1919  do
1920    case $ac_arg in
1921    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1922    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1923    | -silent | --silent | --silen | --sile | --sil)
1924      continue ;;
1925    *\'*)
1926      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1927    esac
1928    case $ac_pass in
1929    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1930    2)
1931      as_fn_append ac_configure_args1 " '$ac_arg'"
1932      if test $ac_must_keep_next = true; then
1933	ac_must_keep_next=false # Got value, back to normal.
1934      else
1935	case $ac_arg in
1936	  *=* | --config-cache | -C | -disable-* | --disable-* \
1937	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1938	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1939	  | -with-* | --with-* | -without-* | --without-* | --x)
1940	    case "$ac_configure_args0 " in
1941	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1942	    esac
1943	    ;;
1944	  -* ) ac_must_keep_next=true ;;
1945	esac
1946      fi
1947      as_fn_append ac_configure_args " '$ac_arg'"
1948      ;;
1949    esac
1950  done
1951done
1952{ ac_configure_args0=; unset ac_configure_args0;}
1953{ ac_configure_args1=; unset ac_configure_args1;}
1954
1955# When interrupted or exit'd, cleanup temporary files, and complete
1956# config.log.  We remove comments because anyway the quotes in there
1957# would cause problems or look ugly.
1958# WARNING: Use '\'' to represent an apostrophe within the trap.
1959# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1960trap 'exit_status=$?
1961  # Sanitize IFS.
1962  IFS=" ""	$as_nl"
1963  # Save into config.log some information that might help in debugging.
1964  {
1965    echo
1966
1967    printf "%s\n" "## ---------------- ##
1968## Cache variables. ##
1969## ---------------- ##"
1970    echo
1971    # The following way of writing the cache mishandles newlines in values,
1972(
1973  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1974    eval ac_val=\$$ac_var
1975    case $ac_val in #(
1976    *${as_nl}*)
1977      case $ac_var in #(
1978      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1979printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1980      esac
1981      case $ac_var in #(
1982      _ | IFS | as_nl) ;; #(
1983      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1984      *) { eval $ac_var=; unset $ac_var;} ;;
1985      esac ;;
1986    esac
1987  done
1988  (set) 2>&1 |
1989    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1990    *${as_nl}ac_space=\ *)
1991      sed -n \
1992	"s/'\''/'\''\\\\'\'''\''/g;
1993	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1994      ;; #(
1995    *)
1996      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1997      ;;
1998    esac |
1999    sort
2000)
2001    echo
2002
2003    printf "%s\n" "## ----------------- ##
2004## Output variables. ##
2005## ----------------- ##"
2006    echo
2007    for ac_var in $ac_subst_vars
2008    do
2009      eval ac_val=\$$ac_var
2010      case $ac_val in
2011      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2012      esac
2013      printf "%s\n" "$ac_var='\''$ac_val'\''"
2014    done | sort
2015    echo
2016
2017    if test -n "$ac_subst_files"; then
2018      printf "%s\n" "## ------------------- ##
2019## File substitutions. ##
2020## ------------------- ##"
2021      echo
2022      for ac_var in $ac_subst_files
2023      do
2024	eval ac_val=\$$ac_var
2025	case $ac_val in
2026	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2027	esac
2028	printf "%s\n" "$ac_var='\''$ac_val'\''"
2029      done | sort
2030      echo
2031    fi
2032
2033    if test -s confdefs.h; then
2034      printf "%s\n" "## ----------- ##
2035## confdefs.h. ##
2036## ----------- ##"
2037      echo
2038      cat confdefs.h
2039      echo
2040    fi
2041    test "$ac_signal" != 0 &&
2042      printf "%s\n" "$as_me: caught signal $ac_signal"
2043    printf "%s\n" "$as_me: exit $exit_status"
2044  } >&5
2045  rm -f core *.core core.conftest.* &&
2046    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2047    exit $exit_status
2048' 0
2049for ac_signal in 1 2 13 15; do
2050  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2051done
2052ac_signal=0
2053
2054# confdefs.h avoids OS command line length limits that DEFS can exceed.
2055rm -f -r conftest* confdefs.h
2056
2057printf "%s\n" "/* confdefs.h */" > confdefs.h
2058
2059# Predefined preprocessor variables.
2060
2061printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2062
2063printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2064
2065printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2066
2067printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2068
2069printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2070
2071printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2072
2073
2074# Let the site file select an alternate cache file if it wants to.
2075# Prefer an explicitly selected file to automatically selected ones.
2076if test -n "$CONFIG_SITE"; then
2077  ac_site_files="$CONFIG_SITE"
2078elif test "x$prefix" != xNONE; then
2079  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2080else
2081  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2082fi
2083
2084for ac_site_file in $ac_site_files
2085do
2086  case $ac_site_file in #(
2087  */*) :
2088     ;; #(
2089  *) :
2090    ac_site_file=./$ac_site_file ;;
2091esac
2092  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2093    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2094printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2095    sed 's/^/| /' "$ac_site_file" >&5
2096    . "$ac_site_file" \
2097      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2098printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2099as_fn_error $? "failed to load site script $ac_site_file
2100See \`config.log' for more details" "$LINENO" 5; }
2101  fi
2102done
2103
2104if test -r "$cache_file"; then
2105  # Some versions of bash will fail to source /dev/null (special files
2106  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2107  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2108    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2109printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2110    case $cache_file in
2111      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2112      *)                      . "./$cache_file";;
2113    esac
2114  fi
2115else
2116  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2117printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2118  >$cache_file
2119fi
2120
2121# Test code for whether the C compiler supports C89 (global declarations)
2122ac_c_conftest_c89_globals='
2123/* Does the compiler advertise C89 conformance?
2124   Do not test the value of __STDC__, because some compilers set it to 0
2125   while being otherwise adequately conformant. */
2126#if !defined __STDC__
2127# error "Compiler does not advertise C89 conformance"
2128#endif
2129
2130#include <stddef.h>
2131#include <stdarg.h>
2132struct stat;
2133/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2134struct buf { int x; };
2135struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2136static char *e (p, i)
2137     char **p;
2138     int i;
2139{
2140  return p[i];
2141}
2142static char *f (char * (*g) (char **, int), char **p, ...)
2143{
2144  char *s;
2145  va_list v;
2146  va_start (v,p);
2147  s = g (p, va_arg (v,int));
2148  va_end (v);
2149  return s;
2150}
2151
2152/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2153   function prototypes and stuff, but not \xHH hex character constants.
2154   These do not provoke an error unfortunately, instead are silently treated
2155   as an "x".  The following induces an error, until -std is added to get
2156   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2157   array size at least.  It is necessary to write \x00 == 0 to get something
2158   that is true only with -std.  */
2159int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2160
2161/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2162   inside strings and character constants.  */
2163#define FOO(x) '\''x'\''
2164int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2165
2166int test (int i, double x);
2167struct s1 {int (*f) (int a);};
2168struct s2 {int (*f) (double a);};
2169int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2170               int, int);'
2171
2172# Test code for whether the C compiler supports C89 (body of main).
2173ac_c_conftest_c89_main='
2174ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2175'
2176
2177# Test code for whether the C compiler supports C99 (global declarations)
2178ac_c_conftest_c99_globals='
2179// Does the compiler advertise C99 conformance?
2180#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2181# error "Compiler does not advertise C99 conformance"
2182#endif
2183
2184#include <stdbool.h>
2185extern int puts (const char *);
2186extern int printf (const char *, ...);
2187extern int dprintf (int, const char *, ...);
2188extern void *malloc (size_t);
2189
2190// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2191// dprintf is used instead of fprintf to avoid needing to declare
2192// FILE and stderr.
2193#define debug(...) dprintf (2, __VA_ARGS__)
2194#define showlist(...) puts (#__VA_ARGS__)
2195#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2196static void
2197test_varargs_macros (void)
2198{
2199  int x = 1234;
2200  int y = 5678;
2201  debug ("Flag");
2202  debug ("X = %d\n", x);
2203  showlist (The first, second, and third items.);
2204  report (x>y, "x is %d but y is %d", x, y);
2205}
2206
2207// Check long long types.
2208#define BIG64 18446744073709551615ull
2209#define BIG32 4294967295ul
2210#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2211#if !BIG_OK
2212  #error "your preprocessor is broken"
2213#endif
2214#if BIG_OK
2215#else
2216  #error "your preprocessor is broken"
2217#endif
2218static long long int bignum = -9223372036854775807LL;
2219static unsigned long long int ubignum = BIG64;
2220
2221struct incomplete_array
2222{
2223  int datasize;
2224  double data[];
2225};
2226
2227struct named_init {
2228  int number;
2229  const wchar_t *name;
2230  double average;
2231};
2232
2233typedef const char *ccp;
2234
2235static inline int
2236test_restrict (ccp restrict text)
2237{
2238  // See if C++-style comments work.
2239  // Iterate through items via the restricted pointer.
2240  // Also check for declarations in for loops.
2241  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2242    continue;
2243  return 0;
2244}
2245
2246// Check varargs and va_copy.
2247static bool
2248test_varargs (const char *format, ...)
2249{
2250  va_list args;
2251  va_start (args, format);
2252  va_list args_copy;
2253  va_copy (args_copy, args);
2254
2255  const char *str = "";
2256  int number = 0;
2257  float fnumber = 0;
2258
2259  while (*format)
2260    {
2261      switch (*format++)
2262	{
2263	case '\''s'\'': // string
2264	  str = va_arg (args_copy, const char *);
2265	  break;
2266	case '\''d'\'': // int
2267	  number = va_arg (args_copy, int);
2268	  break;
2269	case '\''f'\'': // float
2270	  fnumber = va_arg (args_copy, double);
2271	  break;
2272	default:
2273	  break;
2274	}
2275    }
2276  va_end (args_copy);
2277  va_end (args);
2278
2279  return *str && number && fnumber;
2280}
2281'
2282
2283# Test code for whether the C compiler supports C99 (body of main).
2284ac_c_conftest_c99_main='
2285  // Check bool.
2286  _Bool success = false;
2287  success |= (argc != 0);
2288
2289  // Check restrict.
2290  if (test_restrict ("String literal") == 0)
2291    success = true;
2292  char *restrict newvar = "Another string";
2293
2294  // Check varargs.
2295  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2296  test_varargs_macros ();
2297
2298  // Check flexible array members.
2299  struct incomplete_array *ia =
2300    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2301  ia->datasize = 10;
2302  for (int i = 0; i < ia->datasize; ++i)
2303    ia->data[i] = i * 1.234;
2304
2305  // Check named initializers.
2306  struct named_init ni = {
2307    .number = 34,
2308    .name = L"Test wide string",
2309    .average = 543.34343,
2310  };
2311
2312  ni.number = 58;
2313
2314  int dynamic_array[ni.number];
2315  dynamic_array[0] = argv[0][0];
2316  dynamic_array[ni.number - 1] = 543;
2317
2318  // work around unused variable warnings
2319  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2320	 || dynamic_array[ni.number - 1] != 543);
2321'
2322
2323# Test code for whether the C compiler supports C11 (global declarations)
2324ac_c_conftest_c11_globals='
2325// Does the compiler advertise C11 conformance?
2326#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2327# error "Compiler does not advertise C11 conformance"
2328#endif
2329
2330// Check _Alignas.
2331char _Alignas (double) aligned_as_double;
2332char _Alignas (0) no_special_alignment;
2333extern char aligned_as_int;
2334char _Alignas (0) _Alignas (int) aligned_as_int;
2335
2336// Check _Alignof.
2337enum
2338{
2339  int_alignment = _Alignof (int),
2340  int_array_alignment = _Alignof (int[100]),
2341  char_alignment = _Alignof (char)
2342};
2343_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2344
2345// Check _Noreturn.
2346int _Noreturn does_not_return (void) { for (;;) continue; }
2347
2348// Check _Static_assert.
2349struct test_static_assert
2350{
2351  int x;
2352  _Static_assert (sizeof (int) <= sizeof (long int),
2353                  "_Static_assert does not work in struct");
2354  long int y;
2355};
2356
2357// Check UTF-8 literals.
2358#define u8 syntax error!
2359char const utf8_literal[] = u8"happens to be ASCII" "another string";
2360
2361// Check duplicate typedefs.
2362typedef long *long_ptr;
2363typedef long int *long_ptr;
2364typedef long_ptr long_ptr;
2365
2366// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2367struct anonymous
2368{
2369  union {
2370    struct { int i; int j; };
2371    struct { int k; long int l; } w;
2372  };
2373  int m;
2374} v1;
2375'
2376
2377# Test code for whether the C compiler supports C11 (body of main).
2378ac_c_conftest_c11_main='
2379  _Static_assert ((offsetof (struct anonymous, i)
2380		   == offsetof (struct anonymous, w.k)),
2381		  "Anonymous union alignment botch");
2382  v1.i = 2;
2383  v1.w.k = 5;
2384  ok |= v1.i != 5;
2385'
2386
2387# Test code for whether the C compiler supports C11 (complete).
2388ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2389${ac_c_conftest_c99_globals}
2390${ac_c_conftest_c11_globals}
2391
2392int
2393main (int argc, char **argv)
2394{
2395  int ok = 0;
2396  ${ac_c_conftest_c89_main}
2397  ${ac_c_conftest_c99_main}
2398  ${ac_c_conftest_c11_main}
2399  return ok;
2400}
2401"
2402
2403# Test code for whether the C compiler supports C99 (complete).
2404ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2405${ac_c_conftest_c99_globals}
2406
2407int
2408main (int argc, char **argv)
2409{
2410  int ok = 0;
2411  ${ac_c_conftest_c89_main}
2412  ${ac_c_conftest_c99_main}
2413  return ok;
2414}
2415"
2416
2417# Test code for whether the C compiler supports C89 (complete).
2418ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2419
2420int
2421main (int argc, char **argv)
2422{
2423  int ok = 0;
2424  ${ac_c_conftest_c89_main}
2425  return ok;
2426}
2427"
2428
2429as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2430as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2431as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2432as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2433as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2434as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2435as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2436as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2437as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2438
2439# Auxiliary files required by this configure script.
2440ac_aux_files="config.guess config.sub ltmain.sh ar-lib compile missing install-sh"
2441
2442# Locations in which to look for auxiliary files.
2443ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2444
2445# Search for a directory containing all of the required auxiliary files,
2446# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2447# If we don't find one directory that contains all the files we need,
2448# we report the set of missing files from the *first* directory in
2449# $ac_aux_dir_candidates and give up.
2450ac_missing_aux_files=""
2451ac_first_candidate=:
2452printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2454as_found=false
2455for as_dir in $ac_aux_dir_candidates
2456do
2457  IFS=$as_save_IFS
2458  case $as_dir in #(((
2459    '') as_dir=./ ;;
2460    */) ;;
2461    *) as_dir=$as_dir/ ;;
2462  esac
2463  as_found=:
2464
2465  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2466  ac_aux_dir_found=yes
2467  ac_install_sh=
2468  for ac_aux in $ac_aux_files
2469  do
2470    # As a special case, if "install-sh" is required, that requirement
2471    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2472    # and $ac_install_sh is set appropriately for whichever one is found.
2473    if test x"$ac_aux" = x"install-sh"
2474    then
2475      if test -f "${as_dir}install-sh"; then
2476        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2477        ac_install_sh="${as_dir}install-sh -c"
2478      elif test -f "${as_dir}install.sh"; then
2479        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2480        ac_install_sh="${as_dir}install.sh -c"
2481      elif test -f "${as_dir}shtool"; then
2482        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2483        ac_install_sh="${as_dir}shtool install -c"
2484      else
2485        ac_aux_dir_found=no
2486        if $ac_first_candidate; then
2487          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2488        else
2489          break
2490        fi
2491      fi
2492    else
2493      if test -f "${as_dir}${ac_aux}"; then
2494        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2495      else
2496        ac_aux_dir_found=no
2497        if $ac_first_candidate; then
2498          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2499        else
2500          break
2501        fi
2502      fi
2503    fi
2504  done
2505  if test "$ac_aux_dir_found" = yes; then
2506    ac_aux_dir="$as_dir"
2507    break
2508  fi
2509  ac_first_candidate=false
2510
2511  as_found=false
2512done
2513IFS=$as_save_IFS
2514if $as_found
2515then :
2516
2517else $as_nop
2518  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2519fi
2520
2521
2522# These three variables are undocumented and unsupported,
2523# and are intended to be withdrawn in a future Autoconf release.
2524# They can cause serious problems if a builder's source tree is in a directory
2525# whose full name contains unusual characters.
2526if test -f "${ac_aux_dir}config.guess"; then
2527  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2528fi
2529if test -f "${ac_aux_dir}config.sub"; then
2530  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2531fi
2532if test -f "$ac_aux_dir/configure"; then
2533  ac_configure="$SHELL ${ac_aux_dir}configure"
2534fi
2535
2536# Check that the precious variables saved in the cache have kept the same
2537# value.
2538ac_cache_corrupted=false
2539for ac_var in $ac_precious_vars; do
2540  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2541  eval ac_new_set=\$ac_env_${ac_var}_set
2542  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2543  eval ac_new_val=\$ac_env_${ac_var}_value
2544  case $ac_old_set,$ac_new_set in
2545    set,)
2546      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2547printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2548      ac_cache_corrupted=: ;;
2549    ,set)
2550      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2551printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2552      ac_cache_corrupted=: ;;
2553    ,);;
2554    *)
2555      if test "x$ac_old_val" != "x$ac_new_val"; then
2556	# differences in whitespace do not lead to failure.
2557	ac_old_val_w=`echo x $ac_old_val`
2558	ac_new_val_w=`echo x $ac_new_val`
2559	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2560	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2561printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2562	  ac_cache_corrupted=:
2563	else
2564	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2565printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2566	  eval $ac_var=\$ac_old_val
2567	fi
2568	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2569printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2570	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2571printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2572      fi;;
2573  esac
2574  # Pass precious variables to config.status.
2575  if test "$ac_new_set" = set; then
2576    case $ac_new_val in
2577    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2578    *) ac_arg=$ac_var=$ac_new_val ;;
2579    esac
2580    case " $ac_configure_args " in
2581      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2582      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2583    esac
2584  fi
2585done
2586if $ac_cache_corrupted; then
2587  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2588printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2589  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2590printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2591  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2592	    and start over" "$LINENO" 5
2593fi
2594## -------------------- ##
2595## Main body of script. ##
2596## -------------------- ##
2597
2598ac_ext=c
2599ac_cpp='$CPP $CPPFLAGS'
2600ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2601ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2602ac_compiler_gnu=$ac_cv_c_compiler_gnu
2603
2604
2605
2606am__api_version='1.16'
2607
2608
2609
2610  # Find a good install program.  We prefer a C program (faster),
2611# so one script is as good as another.  But avoid the broken or
2612# incompatible versions:
2613# SysV /etc/install, /usr/sbin/install
2614# SunOS /usr/etc/install
2615# IRIX /sbin/install
2616# AIX /bin/install
2617# AmigaOS /C/install, which installs bootblocks on floppy discs
2618# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2619# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2620# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2621# OS/2's system install, which has a completely different semantic
2622# ./install, which can be erroneously created by make from ./install.sh.
2623# Reject install programs that cannot install multiple files.
2624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2625printf %s "checking for a BSD-compatible install... " >&6; }
2626if test -z "$INSTALL"; then
2627if test ${ac_cv_path_install+y}
2628then :
2629  printf %s "(cached) " >&6
2630else $as_nop
2631  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2632for as_dir in $PATH
2633do
2634  IFS=$as_save_IFS
2635  case $as_dir in #(((
2636    '') as_dir=./ ;;
2637    */) ;;
2638    *) as_dir=$as_dir/ ;;
2639  esac
2640    # Account for fact that we put trailing slashes in our PATH walk.
2641case $as_dir in #((
2642  ./ | /[cC]/* | \
2643  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2644  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2645  /usr/ucb/* ) ;;
2646  *)
2647    # OSF1 and SCO ODT 3.0 have their own names for install.
2648    # Don't use installbsd from OSF since it installs stuff as root
2649    # by default.
2650    for ac_prog in ginstall scoinst install; do
2651      for ac_exec_ext in '' $ac_executable_extensions; do
2652	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2653	  if test $ac_prog = install &&
2654	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2655	    # AIX install.  It has an incompatible calling convention.
2656	    :
2657	  elif test $ac_prog = install &&
2658	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2659	    # program-specific install script used by HP pwplus--don't use.
2660	    :
2661	  else
2662	    rm -rf conftest.one conftest.two conftest.dir
2663	    echo one > conftest.one
2664	    echo two > conftest.two
2665	    mkdir conftest.dir
2666	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2667	      test -s conftest.one && test -s conftest.two &&
2668	      test -s conftest.dir/conftest.one &&
2669	      test -s conftest.dir/conftest.two
2670	    then
2671	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2672	      break 3
2673	    fi
2674	  fi
2675	fi
2676      done
2677    done
2678    ;;
2679esac
2680
2681  done
2682IFS=$as_save_IFS
2683
2684rm -rf conftest.one conftest.two conftest.dir
2685
2686fi
2687  if test ${ac_cv_path_install+y}; then
2688    INSTALL=$ac_cv_path_install
2689  else
2690    # As a last resort, use the slow shell script.  Don't cache a
2691    # value for INSTALL within a source directory, because that will
2692    # break other packages using the cache if that directory is
2693    # removed, or if the value is a relative name.
2694    INSTALL=$ac_install_sh
2695  fi
2696fi
2697{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2698printf "%s\n" "$INSTALL" >&6; }
2699
2700# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2701# It thinks the first close brace ends the variable substitution.
2702test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2703
2704test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2705
2706test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2707
2708{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2709printf %s "checking whether build environment is sane... " >&6; }
2710# Reject unsafe characters in $srcdir or the absolute working directory
2711# name.  Accept space and tab only in the latter.
2712am_lf='
2713'
2714case `pwd` in
2715  *[\\\"\#\$\&\'\`$am_lf]*)
2716    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2717esac
2718case $srcdir in
2719  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2720    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2721esac
2722
2723# Do 'set' in a subshell so we don't clobber the current shell's
2724# arguments.  Must try -L first in case configure is actually a
2725# symlink; some systems play weird games with the mod time of symlinks
2726# (eg FreeBSD returns the mod time of the symlink's containing
2727# directory).
2728if (
2729   am_has_slept=no
2730   for am_try in 1 2; do
2731     echo "timestamp, slept: $am_has_slept" > conftest.file
2732     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2733     if test "$*" = "X"; then
2734	# -L didn't work.
2735	set X `ls -t "$srcdir/configure" conftest.file`
2736     fi
2737     if test "$*" != "X $srcdir/configure conftest.file" \
2738	&& test "$*" != "X conftest.file $srcdir/configure"; then
2739
2740	# If neither matched, then we have a broken ls.  This can happen
2741	# if, for instance, CONFIG_SHELL is bash and it inherits a
2742	# broken ls alias from the environment.  This has actually
2743	# happened.  Such a system could not be considered "sane".
2744	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2745  alias in your environment" "$LINENO" 5
2746     fi
2747     if test "$2" = conftest.file || test $am_try -eq 2; then
2748       break
2749     fi
2750     # Just in case.
2751     sleep 1
2752     am_has_slept=yes
2753   done
2754   test "$2" = conftest.file
2755   )
2756then
2757   # Ok.
2758   :
2759else
2760   as_fn_error $? "newly created file is older than distributed files!
2761Check your system clock" "$LINENO" 5
2762fi
2763{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2764printf "%s\n" "yes" >&6; }
2765# If we didn't sleep, we still need to ensure time stamps of config.status and
2766# generated files are strictly newer.
2767am_sleep_pid=
2768if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2769  ( sleep 1 ) &
2770  am_sleep_pid=$!
2771fi
2772
2773rm -f conftest.file
2774
2775test "$program_prefix" != NONE &&
2776  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2777# Use a double $ so make ignores it.
2778test "$program_suffix" != NONE &&
2779  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2780# Double any \ or $.
2781# By default was `s,x,x', remove it if useless.
2782ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2783program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2784
2785
2786# Expand $ac_aux_dir to an absolute path.
2787am_aux_dir=`cd "$ac_aux_dir" && pwd`
2788
2789
2790  if test x"${MISSING+set}" != xset; then
2791  MISSING="\${SHELL} '$am_aux_dir/missing'"
2792fi
2793# Use eval to expand $SHELL
2794if eval "$MISSING --is-lightweight"; then
2795  am_missing_run="$MISSING "
2796else
2797  am_missing_run=
2798  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2799printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2800fi
2801
2802if test x"${install_sh+set}" != xset; then
2803  case $am_aux_dir in
2804  *\ * | *\	*)
2805    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2806  *)
2807    install_sh="\${SHELL} $am_aux_dir/install-sh"
2808  esac
2809fi
2810
2811# Installed binaries are usually stripped using 'strip' when the user
2812# run "make install-strip".  However 'strip' might not be the right
2813# tool to use in cross-compilation environments, therefore Automake
2814# will honor the 'STRIP' environment variable to overrule this program.
2815if test "$cross_compiling" != no; then
2816  if test -n "$ac_tool_prefix"; then
2817  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2818set dummy ${ac_tool_prefix}strip; ac_word=$2
2819{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2820printf %s "checking for $ac_word... " >&6; }
2821if test ${ac_cv_prog_STRIP+y}
2822then :
2823  printf %s "(cached) " >&6
2824else $as_nop
2825  if test -n "$STRIP"; then
2826  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2827else
2828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829for as_dir in $PATH
2830do
2831  IFS=$as_save_IFS
2832  case $as_dir in #(((
2833    '') as_dir=./ ;;
2834    */) ;;
2835    *) as_dir=$as_dir/ ;;
2836  esac
2837    for ac_exec_ext in '' $ac_executable_extensions; do
2838  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2839    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2840    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2841    break 2
2842  fi
2843done
2844  done
2845IFS=$as_save_IFS
2846
2847fi
2848fi
2849STRIP=$ac_cv_prog_STRIP
2850if test -n "$STRIP"; then
2851  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2852printf "%s\n" "$STRIP" >&6; }
2853else
2854  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2855printf "%s\n" "no" >&6; }
2856fi
2857
2858
2859fi
2860if test -z "$ac_cv_prog_STRIP"; then
2861  ac_ct_STRIP=$STRIP
2862  # Extract the first word of "strip", so it can be a program name with args.
2863set dummy strip; ac_word=$2
2864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2865printf %s "checking for $ac_word... " >&6; }
2866if test ${ac_cv_prog_ac_ct_STRIP+y}
2867then :
2868  printf %s "(cached) " >&6
2869else $as_nop
2870  if test -n "$ac_ct_STRIP"; then
2871  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2872else
2873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874for as_dir in $PATH
2875do
2876  IFS=$as_save_IFS
2877  case $as_dir in #(((
2878    '') as_dir=./ ;;
2879    */) ;;
2880    *) as_dir=$as_dir/ ;;
2881  esac
2882    for ac_exec_ext in '' $ac_executable_extensions; do
2883  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2884    ac_cv_prog_ac_ct_STRIP="strip"
2885    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2886    break 2
2887  fi
2888done
2889  done
2890IFS=$as_save_IFS
2891
2892fi
2893fi
2894ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2895if test -n "$ac_ct_STRIP"; then
2896  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2897printf "%s\n" "$ac_ct_STRIP" >&6; }
2898else
2899  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2900printf "%s\n" "no" >&6; }
2901fi
2902
2903  if test "x$ac_ct_STRIP" = x; then
2904    STRIP=":"
2905  else
2906    case $cross_compiling:$ac_tool_warned in
2907yes:)
2908{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2909printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2910ac_tool_warned=yes ;;
2911esac
2912    STRIP=$ac_ct_STRIP
2913  fi
2914else
2915  STRIP="$ac_cv_prog_STRIP"
2916fi
2917
2918fi
2919INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2920
2921
2922  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2923printf %s "checking for a race-free mkdir -p... " >&6; }
2924if test -z "$MKDIR_P"; then
2925  if test ${ac_cv_path_mkdir+y}
2926then :
2927  printf %s "(cached) " >&6
2928else $as_nop
2929  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2930for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2931do
2932  IFS=$as_save_IFS
2933  case $as_dir in #(((
2934    '') as_dir=./ ;;
2935    */) ;;
2936    *) as_dir=$as_dir/ ;;
2937  esac
2938    for ac_prog in mkdir gmkdir; do
2939	 for ac_exec_ext in '' $ac_executable_extensions; do
2940	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2941	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2942	     'mkdir ('*'coreutils) '* | \
2943	     'BusyBox '* | \
2944	     'mkdir (fileutils) '4.1*)
2945	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2946	       break 3;;
2947	   esac
2948	 done
2949       done
2950  done
2951IFS=$as_save_IFS
2952
2953fi
2954
2955  test -d ./--version && rmdir ./--version
2956  if test ${ac_cv_path_mkdir+y}; then
2957    MKDIR_P="$ac_cv_path_mkdir -p"
2958  else
2959    # As a last resort, use the slow shell script.  Don't cache a
2960    # value for MKDIR_P within a source directory, because that will
2961    # break other packages using the cache if that directory is
2962    # removed, or if the value is a relative name.
2963    MKDIR_P="$ac_install_sh -d"
2964  fi
2965fi
2966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2967printf "%s\n" "$MKDIR_P" >&6; }
2968
2969for ac_prog in gawk mawk nawk awk
2970do
2971  # Extract the first word of "$ac_prog", so it can be a program name with args.
2972set dummy $ac_prog; ac_word=$2
2973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2974printf %s "checking for $ac_word... " >&6; }
2975if test ${ac_cv_prog_AWK+y}
2976then :
2977  printf %s "(cached) " >&6
2978else $as_nop
2979  if test -n "$AWK"; then
2980  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2981else
2982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2983for as_dir in $PATH
2984do
2985  IFS=$as_save_IFS
2986  case $as_dir in #(((
2987    '') as_dir=./ ;;
2988    */) ;;
2989    *) as_dir=$as_dir/ ;;
2990  esac
2991    for ac_exec_ext in '' $ac_executable_extensions; do
2992  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2993    ac_cv_prog_AWK="$ac_prog"
2994    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2995    break 2
2996  fi
2997done
2998  done
2999IFS=$as_save_IFS
3000
3001fi
3002fi
3003AWK=$ac_cv_prog_AWK
3004if test -n "$AWK"; then
3005  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3006printf "%s\n" "$AWK" >&6; }
3007else
3008  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3009printf "%s\n" "no" >&6; }
3010fi
3011
3012
3013  test -n "$AWK" && break
3014done
3015
3016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3017printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3018set x ${MAKE-make}
3019ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3020if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3021then :
3022  printf %s "(cached) " >&6
3023else $as_nop
3024  cat >conftest.make <<\_ACEOF
3025SHELL = /bin/sh
3026all:
3027	@echo '@@@%%%=$(MAKE)=@@@%%%'
3028_ACEOF
3029# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3030case `${MAKE-make} -f conftest.make 2>/dev/null` in
3031  *@@@%%%=?*=@@@%%%*)
3032    eval ac_cv_prog_make_${ac_make}_set=yes;;
3033  *)
3034    eval ac_cv_prog_make_${ac_make}_set=no;;
3035esac
3036rm -f conftest.make
3037fi
3038if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3039  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3040printf "%s\n" "yes" >&6; }
3041  SET_MAKE=
3042else
3043  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3044printf "%s\n" "no" >&6; }
3045  SET_MAKE="MAKE=${MAKE-make}"
3046fi
3047
3048rm -rf .tst 2>/dev/null
3049mkdir .tst 2>/dev/null
3050if test -d .tst; then
3051  am__leading_dot=.
3052else
3053  am__leading_dot=_
3054fi
3055rmdir .tst 2>/dev/null
3056
3057# Check whether --enable-silent-rules was given.
3058if test ${enable_silent_rules+y}
3059then :
3060  enableval=$enable_silent_rules;
3061fi
3062
3063case $enable_silent_rules in # (((
3064  yes) AM_DEFAULT_VERBOSITY=0;;
3065   no) AM_DEFAULT_VERBOSITY=1;;
3066    *) AM_DEFAULT_VERBOSITY=1;;
3067esac
3068am_make=${MAKE-make}
3069{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3070printf %s "checking whether $am_make supports nested variables... " >&6; }
3071if test ${am_cv_make_support_nested_variables+y}
3072then :
3073  printf %s "(cached) " >&6
3074else $as_nop
3075  if printf "%s\n" 'TRUE=$(BAR$(V))
3076BAR0=false
3077BAR1=true
3078V=1
3079am__doit:
3080	@$(TRUE)
3081.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3082  am_cv_make_support_nested_variables=yes
3083else
3084  am_cv_make_support_nested_variables=no
3085fi
3086fi
3087{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3088printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3089if test $am_cv_make_support_nested_variables = yes; then
3090    AM_V='$(V)'
3091  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3092else
3093  AM_V=$AM_DEFAULT_VERBOSITY
3094  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3095fi
3096AM_BACKSLASH='\'
3097
3098if test "`cd $srcdir && pwd`" != "`pwd`"; then
3099  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3100  # is not polluted with repeated "-I."
3101  am__isrc=' -I$(srcdir)'
3102  # test to see if srcdir already configured
3103  if test -f $srcdir/config.status; then
3104    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3105  fi
3106fi
3107
3108# test whether we have cygpath
3109if test -z "$CYGPATH_W"; then
3110  if (cygpath --version) >/dev/null 2>/dev/null; then
3111    CYGPATH_W='cygpath -w'
3112  else
3113    CYGPATH_W=echo
3114  fi
3115fi
3116
3117
3118# Define the identity of the package.
3119 PACKAGE='sg3_utils'
3120 VERSION='1.48'
3121
3122
3123printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3124
3125
3126printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3127
3128# Some tools Automake needs.
3129
3130ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3131
3132
3133AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3134
3135
3136AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3137
3138
3139AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3140
3141
3142MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3143
3144# For better backward compatibility.  To be removed once Automake 1.9.x
3145# dies out for good.  For more background, see:
3146# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3147# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3148mkdir_p='$(MKDIR_P)'
3149
3150# We need awk for the "check" target (and possibly the TAP driver).  The
3151# system "awk" is bad on some platforms.
3152# Always define AMTAR for backward compatibility.  Yes, it's still used
3153# in the wild :-(  We should find a proper way to deprecate it ...
3154AMTAR='$${TAR-tar}'
3155
3156
3157# We'll loop over all known methods to create a tar archive until one works.
3158_am_tools='gnutar  pax cpio none'
3159
3160am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3161
3162
3163
3164
3165
3166# Variables for tags utilities; see am/tags.am
3167if test -z "$CTAGS"; then
3168  CTAGS=ctags
3169fi
3170
3171if test -z "$ETAGS"; then
3172  ETAGS=etags
3173fi
3174
3175if test -z "$CSCOPE"; then
3176  CSCOPE=cscope
3177fi
3178
3179
3180
3181# POSIX will say in a future version that running "rm -f" with no argument
3182# is OK; and we want to be able to make that assumption in our Makefile
3183# recipes.  So use an aggressive probe to check that the usage we want is
3184# actually supported "in the wild" to an acceptable degree.
3185# See automake bug#10828.
3186# To make any issue more visible, cause the running configure to be aborted
3187# by default if the 'rm' program in use doesn't match our expectations; the
3188# user can still override this though.
3189if rm -f && rm -fr && rm -rf; then : OK; else
3190  cat >&2 <<'END'
3191Oops!
3192
3193Your 'rm' program seems unable to run without file operands specified
3194on the command line, even when the '-f' option is present.  This is contrary
3195to the behaviour of most rm programs out there, and not conforming with
3196the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3197
3198Please tell bug-automake@gnu.org about your system, including the value
3199of your $PATH and any error possibly output before this message.  This
3200can help us improve future automake versions.
3201
3202END
3203  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3204    echo 'Configuration will proceed anyway, since you have set the' >&2
3205    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3206    echo >&2
3207  else
3208    cat >&2 <<'END'
3209Aborting the configuration process, to ensure you take notice of the issue.
3210
3211You can download and install GNU coreutils to get an 'rm' implementation
3212that behaves properly: <https://www.gnu.org/software/coreutils/>.
3213
3214If you want to complete the configuration process using your problematic
3215'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3216to "yes", and re-run configure.
3217
3218END
3219    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3220  fi
3221fi
3222
3223
3224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3225printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3226    # Check whether --enable-maintainer-mode was given.
3227if test ${enable_maintainer_mode+y}
3228then :
3229  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3230else $as_nop
3231  USE_MAINTAINER_MODE=no
3232fi
3233
3234  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3235printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
3236   if test $USE_MAINTAINER_MODE = yes; then
3237  MAINTAINER_MODE_TRUE=
3238  MAINTAINER_MODE_FALSE='#'
3239else
3240  MAINTAINER_MODE_TRUE='#'
3241  MAINTAINER_MODE_FALSE=
3242fi
3243
3244  MAINT=$MAINTAINER_MODE_TRUE
3245
3246
3247ac_config_headers="$ac_config_headers config.h"
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259ac_ext=c
3260ac_cpp='$CPP $CPPFLAGS'
3261ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3262ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3263ac_compiler_gnu=$ac_cv_c_compiler_gnu
3264if test -n "$ac_tool_prefix"; then
3265  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3266set dummy ${ac_tool_prefix}gcc; ac_word=$2
3267{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3268printf %s "checking for $ac_word... " >&6; }
3269if test ${ac_cv_prog_CC+y}
3270then :
3271  printf %s "(cached) " >&6
3272else $as_nop
3273  if test -n "$CC"; then
3274  ac_cv_prog_CC="$CC" # Let the user override the test.
3275else
3276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3277for as_dir in $PATH
3278do
3279  IFS=$as_save_IFS
3280  case $as_dir in #(((
3281    '') as_dir=./ ;;
3282    */) ;;
3283    *) as_dir=$as_dir/ ;;
3284  esac
3285    for ac_exec_ext in '' $ac_executable_extensions; do
3286  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3287    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3288    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3289    break 2
3290  fi
3291done
3292  done
3293IFS=$as_save_IFS
3294
3295fi
3296fi
3297CC=$ac_cv_prog_CC
3298if test -n "$CC"; then
3299  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3300printf "%s\n" "$CC" >&6; }
3301else
3302  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3303printf "%s\n" "no" >&6; }
3304fi
3305
3306
3307fi
3308if test -z "$ac_cv_prog_CC"; then
3309  ac_ct_CC=$CC
3310  # Extract the first word of "gcc", so it can be a program name with args.
3311set dummy gcc; ac_word=$2
3312{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3313printf %s "checking for $ac_word... " >&6; }
3314if test ${ac_cv_prog_ac_ct_CC+y}
3315then :
3316  printf %s "(cached) " >&6
3317else $as_nop
3318  if test -n "$ac_ct_CC"; then
3319  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3320else
3321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3322for as_dir in $PATH
3323do
3324  IFS=$as_save_IFS
3325  case $as_dir in #(((
3326    '') as_dir=./ ;;
3327    */) ;;
3328    *) as_dir=$as_dir/ ;;
3329  esac
3330    for ac_exec_ext in '' $ac_executable_extensions; do
3331  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3332    ac_cv_prog_ac_ct_CC="gcc"
3333    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3334    break 2
3335  fi
3336done
3337  done
3338IFS=$as_save_IFS
3339
3340fi
3341fi
3342ac_ct_CC=$ac_cv_prog_ac_ct_CC
3343if test -n "$ac_ct_CC"; then
3344  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3345printf "%s\n" "$ac_ct_CC" >&6; }
3346else
3347  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3348printf "%s\n" "no" >&6; }
3349fi
3350
3351  if test "x$ac_ct_CC" = x; then
3352    CC=""
3353  else
3354    case $cross_compiling:$ac_tool_warned in
3355yes:)
3356{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3357printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3358ac_tool_warned=yes ;;
3359esac
3360    CC=$ac_ct_CC
3361  fi
3362else
3363  CC="$ac_cv_prog_CC"
3364fi
3365
3366if test -z "$CC"; then
3367          if test -n "$ac_tool_prefix"; then
3368    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3369set dummy ${ac_tool_prefix}cc; ac_word=$2
3370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3371printf %s "checking for $ac_word... " >&6; }
3372if test ${ac_cv_prog_CC+y}
3373then :
3374  printf %s "(cached) " >&6
3375else $as_nop
3376  if test -n "$CC"; then
3377  ac_cv_prog_CC="$CC" # Let the user override the test.
3378else
3379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3380for as_dir in $PATH
3381do
3382  IFS=$as_save_IFS
3383  case $as_dir in #(((
3384    '') as_dir=./ ;;
3385    */) ;;
3386    *) as_dir=$as_dir/ ;;
3387  esac
3388    for ac_exec_ext in '' $ac_executable_extensions; do
3389  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3390    ac_cv_prog_CC="${ac_tool_prefix}cc"
3391    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3392    break 2
3393  fi
3394done
3395  done
3396IFS=$as_save_IFS
3397
3398fi
3399fi
3400CC=$ac_cv_prog_CC
3401if test -n "$CC"; then
3402  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3403printf "%s\n" "$CC" >&6; }
3404else
3405  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3406printf "%s\n" "no" >&6; }
3407fi
3408
3409
3410  fi
3411fi
3412if test -z "$CC"; then
3413  # Extract the first word of "cc", so it can be a program name with args.
3414set dummy cc; ac_word=$2
3415{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3416printf %s "checking for $ac_word... " >&6; }
3417if test ${ac_cv_prog_CC+y}
3418then :
3419  printf %s "(cached) " >&6
3420else $as_nop
3421  if test -n "$CC"; then
3422  ac_cv_prog_CC="$CC" # Let the user override the test.
3423else
3424  ac_prog_rejected=no
3425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3426for as_dir in $PATH
3427do
3428  IFS=$as_save_IFS
3429  case $as_dir in #(((
3430    '') as_dir=./ ;;
3431    */) ;;
3432    *) as_dir=$as_dir/ ;;
3433  esac
3434    for ac_exec_ext in '' $ac_executable_extensions; do
3435  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3436    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3437       ac_prog_rejected=yes
3438       continue
3439     fi
3440    ac_cv_prog_CC="cc"
3441    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3442    break 2
3443  fi
3444done
3445  done
3446IFS=$as_save_IFS
3447
3448if test $ac_prog_rejected = yes; then
3449  # We found a bogon in the path, so make sure we never use it.
3450  set dummy $ac_cv_prog_CC
3451  shift
3452  if test $# != 0; then
3453    # We chose a different compiler from the bogus one.
3454    # However, it has the same basename, so the bogon will be chosen
3455    # first if we set CC to just the basename; use the full file name.
3456    shift
3457    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3458  fi
3459fi
3460fi
3461fi
3462CC=$ac_cv_prog_CC
3463if test -n "$CC"; then
3464  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3465printf "%s\n" "$CC" >&6; }
3466else
3467  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3468printf "%s\n" "no" >&6; }
3469fi
3470
3471
3472fi
3473if test -z "$CC"; then
3474  if test -n "$ac_tool_prefix"; then
3475  for ac_prog in cl.exe
3476  do
3477    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3478set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3479{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3480printf %s "checking for $ac_word... " >&6; }
3481if test ${ac_cv_prog_CC+y}
3482then :
3483  printf %s "(cached) " >&6
3484else $as_nop
3485  if test -n "$CC"; then
3486  ac_cv_prog_CC="$CC" # Let the user override the test.
3487else
3488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3489for as_dir in $PATH
3490do
3491  IFS=$as_save_IFS
3492  case $as_dir in #(((
3493    '') as_dir=./ ;;
3494    */) ;;
3495    *) as_dir=$as_dir/ ;;
3496  esac
3497    for ac_exec_ext in '' $ac_executable_extensions; do
3498  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3499    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3500    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3501    break 2
3502  fi
3503done
3504  done
3505IFS=$as_save_IFS
3506
3507fi
3508fi
3509CC=$ac_cv_prog_CC
3510if test -n "$CC"; then
3511  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3512printf "%s\n" "$CC" >&6; }
3513else
3514  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3515printf "%s\n" "no" >&6; }
3516fi
3517
3518
3519    test -n "$CC" && break
3520  done
3521fi
3522if test -z "$CC"; then
3523  ac_ct_CC=$CC
3524  for ac_prog in cl.exe
3525do
3526  # Extract the first word of "$ac_prog", so it can be a program name with args.
3527set dummy $ac_prog; ac_word=$2
3528{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3529printf %s "checking for $ac_word... " >&6; }
3530if test ${ac_cv_prog_ac_ct_CC+y}
3531then :
3532  printf %s "(cached) " >&6
3533else $as_nop
3534  if test -n "$ac_ct_CC"; then
3535  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3536else
3537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3538for as_dir in $PATH
3539do
3540  IFS=$as_save_IFS
3541  case $as_dir in #(((
3542    '') as_dir=./ ;;
3543    */) ;;
3544    *) as_dir=$as_dir/ ;;
3545  esac
3546    for ac_exec_ext in '' $ac_executable_extensions; do
3547  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3548    ac_cv_prog_ac_ct_CC="$ac_prog"
3549    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3550    break 2
3551  fi
3552done
3553  done
3554IFS=$as_save_IFS
3555
3556fi
3557fi
3558ac_ct_CC=$ac_cv_prog_ac_ct_CC
3559if test -n "$ac_ct_CC"; then
3560  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3561printf "%s\n" "$ac_ct_CC" >&6; }
3562else
3563  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3564printf "%s\n" "no" >&6; }
3565fi
3566
3567
3568  test -n "$ac_ct_CC" && break
3569done
3570
3571  if test "x$ac_ct_CC" = x; then
3572    CC=""
3573  else
3574    case $cross_compiling:$ac_tool_warned in
3575yes:)
3576{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3577printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3578ac_tool_warned=yes ;;
3579esac
3580    CC=$ac_ct_CC
3581  fi
3582fi
3583
3584fi
3585if test -z "$CC"; then
3586  if test -n "$ac_tool_prefix"; then
3587  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3588set dummy ${ac_tool_prefix}clang; ac_word=$2
3589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3590printf %s "checking for $ac_word... " >&6; }
3591if test ${ac_cv_prog_CC+y}
3592then :
3593  printf %s "(cached) " >&6
3594else $as_nop
3595  if test -n "$CC"; then
3596  ac_cv_prog_CC="$CC" # Let the user override the test.
3597else
3598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3599for as_dir in $PATH
3600do
3601  IFS=$as_save_IFS
3602  case $as_dir in #(((
3603    '') as_dir=./ ;;
3604    */) ;;
3605    *) as_dir=$as_dir/ ;;
3606  esac
3607    for ac_exec_ext in '' $ac_executable_extensions; do
3608  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3609    ac_cv_prog_CC="${ac_tool_prefix}clang"
3610    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3611    break 2
3612  fi
3613done
3614  done
3615IFS=$as_save_IFS
3616
3617fi
3618fi
3619CC=$ac_cv_prog_CC
3620if test -n "$CC"; then
3621  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3622printf "%s\n" "$CC" >&6; }
3623else
3624  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3625printf "%s\n" "no" >&6; }
3626fi
3627
3628
3629fi
3630if test -z "$ac_cv_prog_CC"; then
3631  ac_ct_CC=$CC
3632  # Extract the first word of "clang", so it can be a program name with args.
3633set dummy clang; ac_word=$2
3634{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3635printf %s "checking for $ac_word... " >&6; }
3636if test ${ac_cv_prog_ac_ct_CC+y}
3637then :
3638  printf %s "(cached) " >&6
3639else $as_nop
3640  if test -n "$ac_ct_CC"; then
3641  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3642else
3643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3644for as_dir in $PATH
3645do
3646  IFS=$as_save_IFS
3647  case $as_dir in #(((
3648    '') as_dir=./ ;;
3649    */) ;;
3650    *) as_dir=$as_dir/ ;;
3651  esac
3652    for ac_exec_ext in '' $ac_executable_extensions; do
3653  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3654    ac_cv_prog_ac_ct_CC="clang"
3655    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3656    break 2
3657  fi
3658done
3659  done
3660IFS=$as_save_IFS
3661
3662fi
3663fi
3664ac_ct_CC=$ac_cv_prog_ac_ct_CC
3665if test -n "$ac_ct_CC"; then
3666  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3667printf "%s\n" "$ac_ct_CC" >&6; }
3668else
3669  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3670printf "%s\n" "no" >&6; }
3671fi
3672
3673  if test "x$ac_ct_CC" = x; then
3674    CC=""
3675  else
3676    case $cross_compiling:$ac_tool_warned in
3677yes:)
3678{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3679printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3680ac_tool_warned=yes ;;
3681esac
3682    CC=$ac_ct_CC
3683  fi
3684else
3685  CC="$ac_cv_prog_CC"
3686fi
3687
3688fi
3689
3690
3691test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3692printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3693as_fn_error $? "no acceptable C compiler found in \$PATH
3694See \`config.log' for more details" "$LINENO" 5; }
3695
3696# Provide some information about the compiler.
3697printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3698set X $ac_compile
3699ac_compiler=$2
3700for ac_option in --version -v -V -qversion -version; do
3701  { { ac_try="$ac_compiler $ac_option >&5"
3702case "(($ac_try" in
3703  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3704  *) ac_try_echo=$ac_try;;
3705esac
3706eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3707printf "%s\n" "$ac_try_echo"; } >&5
3708  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3709  ac_status=$?
3710  if test -s conftest.err; then
3711    sed '10a\
3712... rest of stderr output deleted ...
3713         10q' conftest.err >conftest.er1
3714    cat conftest.er1 >&5
3715  fi
3716  rm -f conftest.er1 conftest.err
3717  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3718  test $ac_status = 0; }
3719done
3720
3721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3722/* end confdefs.h.  */
3723
3724int
3725main (void)
3726{
3727
3728  ;
3729  return 0;
3730}
3731_ACEOF
3732ac_clean_files_save=$ac_clean_files
3733ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3734# Try to create an executable without -o first, disregard a.out.
3735# It will help us diagnose broken compilers, and finding out an intuition
3736# of exeext.
3737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3738printf %s "checking whether the C compiler works... " >&6; }
3739ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3740
3741# The possible output files:
3742ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3743
3744ac_rmfiles=
3745for ac_file in $ac_files
3746do
3747  case $ac_file in
3748    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3749    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3750  esac
3751done
3752rm -f $ac_rmfiles
3753
3754if { { ac_try="$ac_link_default"
3755case "(($ac_try" in
3756  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3757  *) ac_try_echo=$ac_try;;
3758esac
3759eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3760printf "%s\n" "$ac_try_echo"; } >&5
3761  (eval "$ac_link_default") 2>&5
3762  ac_status=$?
3763  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3764  test $ac_status = 0; }
3765then :
3766  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3767# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3768# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3769# so that the user can short-circuit this test for compilers unknown to
3770# Autoconf.
3771for ac_file in $ac_files ''
3772do
3773  test -f "$ac_file" || continue
3774  case $ac_file in
3775    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3776	;;
3777    [ab].out )
3778	# We found the default executable, but exeext='' is most
3779	# certainly right.
3780	break;;
3781    *.* )
3782	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3783	then :; else
3784	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3785	fi
3786	# We set ac_cv_exeext here because the later test for it is not
3787	# safe: cross compilers may not add the suffix if given an `-o'
3788	# argument, so we may need to know it at that point already.
3789	# Even if this section looks crufty: it has the advantage of
3790	# actually working.
3791	break;;
3792    * )
3793	break;;
3794  esac
3795done
3796test "$ac_cv_exeext" = no && ac_cv_exeext=
3797
3798else $as_nop
3799  ac_file=''
3800fi
3801if test -z "$ac_file"
3802then :
3803  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3804printf "%s\n" "no" >&6; }
3805printf "%s\n" "$as_me: failed program was:" >&5
3806sed 's/^/| /' conftest.$ac_ext >&5
3807
3808{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3809printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3810as_fn_error 77 "C compiler cannot create executables
3811See \`config.log' for more details" "$LINENO" 5; }
3812else $as_nop
3813  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3814printf "%s\n" "yes" >&6; }
3815fi
3816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3817printf %s "checking for C compiler default output file name... " >&6; }
3818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3819printf "%s\n" "$ac_file" >&6; }
3820ac_exeext=$ac_cv_exeext
3821
3822rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3823ac_clean_files=$ac_clean_files_save
3824{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3825printf %s "checking for suffix of executables... " >&6; }
3826if { { ac_try="$ac_link"
3827case "(($ac_try" in
3828  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3829  *) ac_try_echo=$ac_try;;
3830esac
3831eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3832printf "%s\n" "$ac_try_echo"; } >&5
3833  (eval "$ac_link") 2>&5
3834  ac_status=$?
3835  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3836  test $ac_status = 0; }
3837then :
3838  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3839# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3840# work properly (i.e., refer to `conftest.exe'), while it won't with
3841# `rm'.
3842for ac_file in conftest.exe conftest conftest.*; do
3843  test -f "$ac_file" || continue
3844  case $ac_file in
3845    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3846    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3847	  break;;
3848    * ) break;;
3849  esac
3850done
3851else $as_nop
3852  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3853printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3854as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3855See \`config.log' for more details" "$LINENO" 5; }
3856fi
3857rm -f conftest conftest$ac_cv_exeext
3858{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3859printf "%s\n" "$ac_cv_exeext" >&6; }
3860
3861rm -f conftest.$ac_ext
3862EXEEXT=$ac_cv_exeext
3863ac_exeext=$EXEEXT
3864cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3865/* end confdefs.h.  */
3866#include <stdio.h>
3867int
3868main (void)
3869{
3870FILE *f = fopen ("conftest.out", "w");
3871 return ferror (f) || fclose (f) != 0;
3872
3873  ;
3874  return 0;
3875}
3876_ACEOF
3877ac_clean_files="$ac_clean_files conftest.out"
3878# Check that the compiler produces executables we can run.  If not, either
3879# the compiler is broken, or we cross compile.
3880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3881printf %s "checking whether we are cross compiling... " >&6; }
3882if test "$cross_compiling" != yes; then
3883  { { ac_try="$ac_link"
3884case "(($ac_try" in
3885  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3886  *) ac_try_echo=$ac_try;;
3887esac
3888eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3889printf "%s\n" "$ac_try_echo"; } >&5
3890  (eval "$ac_link") 2>&5
3891  ac_status=$?
3892  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3893  test $ac_status = 0; }
3894  if { ac_try='./conftest$ac_cv_exeext'
3895  { { case "(($ac_try" in
3896  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3897  *) ac_try_echo=$ac_try;;
3898esac
3899eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3900printf "%s\n" "$ac_try_echo"; } >&5
3901  (eval "$ac_try") 2>&5
3902  ac_status=$?
3903  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3904  test $ac_status = 0; }; }; then
3905    cross_compiling=no
3906  else
3907    if test "$cross_compiling" = maybe; then
3908	cross_compiling=yes
3909    else
3910	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3911printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3912as_fn_error 77 "cannot run C compiled programs.
3913If you meant to cross compile, use \`--host'.
3914See \`config.log' for more details" "$LINENO" 5; }
3915    fi
3916  fi
3917fi
3918{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3919printf "%s\n" "$cross_compiling" >&6; }
3920
3921rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3922ac_clean_files=$ac_clean_files_save
3923{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3924printf %s "checking for suffix of object files... " >&6; }
3925if test ${ac_cv_objext+y}
3926then :
3927  printf %s "(cached) " >&6
3928else $as_nop
3929  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3930/* end confdefs.h.  */
3931
3932int
3933main (void)
3934{
3935
3936  ;
3937  return 0;
3938}
3939_ACEOF
3940rm -f conftest.o conftest.obj
3941if { { ac_try="$ac_compile"
3942case "(($ac_try" in
3943  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3944  *) ac_try_echo=$ac_try;;
3945esac
3946eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3947printf "%s\n" "$ac_try_echo"; } >&5
3948  (eval "$ac_compile") 2>&5
3949  ac_status=$?
3950  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3951  test $ac_status = 0; }
3952then :
3953  for ac_file in conftest.o conftest.obj conftest.*; do
3954  test -f "$ac_file" || continue;
3955  case $ac_file in
3956    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3957    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3958       break;;
3959  esac
3960done
3961else $as_nop
3962  printf "%s\n" "$as_me: failed program was:" >&5
3963sed 's/^/| /' conftest.$ac_ext >&5
3964
3965{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3966printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3967as_fn_error $? "cannot compute suffix of object files: cannot compile
3968See \`config.log' for more details" "$LINENO" 5; }
3969fi
3970rm -f conftest.$ac_cv_objext conftest.$ac_ext
3971fi
3972{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3973printf "%s\n" "$ac_cv_objext" >&6; }
3974OBJEXT=$ac_cv_objext
3975ac_objext=$OBJEXT
3976{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3977printf %s "checking whether the compiler supports GNU C... " >&6; }
3978if test ${ac_cv_c_compiler_gnu+y}
3979then :
3980  printf %s "(cached) " >&6
3981else $as_nop
3982  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3983/* end confdefs.h.  */
3984
3985int
3986main (void)
3987{
3988#ifndef __GNUC__
3989       choke me
3990#endif
3991
3992  ;
3993  return 0;
3994}
3995_ACEOF
3996if ac_fn_c_try_compile "$LINENO"
3997then :
3998  ac_compiler_gnu=yes
3999else $as_nop
4000  ac_compiler_gnu=no
4001fi
4002rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4003ac_cv_c_compiler_gnu=$ac_compiler_gnu
4004
4005fi
4006{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4007printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4008ac_compiler_gnu=$ac_cv_c_compiler_gnu
4009
4010if test $ac_compiler_gnu = yes; then
4011  GCC=yes
4012else
4013  GCC=
4014fi
4015ac_test_CFLAGS=${CFLAGS+y}
4016ac_save_CFLAGS=$CFLAGS
4017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4018printf %s "checking whether $CC accepts -g... " >&6; }
4019if test ${ac_cv_prog_cc_g+y}
4020then :
4021  printf %s "(cached) " >&6
4022else $as_nop
4023  ac_save_c_werror_flag=$ac_c_werror_flag
4024   ac_c_werror_flag=yes
4025   ac_cv_prog_cc_g=no
4026   CFLAGS="-g"
4027   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4028/* end confdefs.h.  */
4029
4030int
4031main (void)
4032{
4033
4034  ;
4035  return 0;
4036}
4037_ACEOF
4038if ac_fn_c_try_compile "$LINENO"
4039then :
4040  ac_cv_prog_cc_g=yes
4041else $as_nop
4042  CFLAGS=""
4043      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4044/* end confdefs.h.  */
4045
4046int
4047main (void)
4048{
4049
4050  ;
4051  return 0;
4052}
4053_ACEOF
4054if ac_fn_c_try_compile "$LINENO"
4055then :
4056
4057else $as_nop
4058  ac_c_werror_flag=$ac_save_c_werror_flag
4059	 CFLAGS="-g"
4060	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4061/* end confdefs.h.  */
4062
4063int
4064main (void)
4065{
4066
4067  ;
4068  return 0;
4069}
4070_ACEOF
4071if ac_fn_c_try_compile "$LINENO"
4072then :
4073  ac_cv_prog_cc_g=yes
4074fi
4075rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4076fi
4077rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4078fi
4079rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4080   ac_c_werror_flag=$ac_save_c_werror_flag
4081fi
4082{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4083printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4084if test $ac_test_CFLAGS; then
4085  CFLAGS=$ac_save_CFLAGS
4086elif test $ac_cv_prog_cc_g = yes; then
4087  if test "$GCC" = yes; then
4088    CFLAGS="-g -O2"
4089  else
4090    CFLAGS="-g"
4091  fi
4092else
4093  if test "$GCC" = yes; then
4094    CFLAGS="-O2"
4095  else
4096    CFLAGS=
4097  fi
4098fi
4099ac_prog_cc_stdc=no
4100if test x$ac_prog_cc_stdc = xno
4101then :
4102  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4103printf %s "checking for $CC option to enable C11 features... " >&6; }
4104if test ${ac_cv_prog_cc_c11+y}
4105then :
4106  printf %s "(cached) " >&6
4107else $as_nop
4108  ac_cv_prog_cc_c11=no
4109ac_save_CC=$CC
4110cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4111/* end confdefs.h.  */
4112$ac_c_conftest_c11_program
4113_ACEOF
4114for ac_arg in '' -std=gnu11
4115do
4116  CC="$ac_save_CC $ac_arg"
4117  if ac_fn_c_try_compile "$LINENO"
4118then :
4119  ac_cv_prog_cc_c11=$ac_arg
4120fi
4121rm -f core conftest.err conftest.$ac_objext conftest.beam
4122  test "x$ac_cv_prog_cc_c11" != "xno" && break
4123done
4124rm -f conftest.$ac_ext
4125CC=$ac_save_CC
4126fi
4127
4128if test "x$ac_cv_prog_cc_c11" = xno
4129then :
4130  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4131printf "%s\n" "unsupported" >&6; }
4132else $as_nop
4133  if test "x$ac_cv_prog_cc_c11" = x
4134then :
4135  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4136printf "%s\n" "none needed" >&6; }
4137else $as_nop
4138  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4139printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4140     CC="$CC $ac_cv_prog_cc_c11"
4141fi
4142  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4143  ac_prog_cc_stdc=c11
4144fi
4145fi
4146if test x$ac_prog_cc_stdc = xno
4147then :
4148  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4149printf %s "checking for $CC option to enable C99 features... " >&6; }
4150if test ${ac_cv_prog_cc_c99+y}
4151then :
4152  printf %s "(cached) " >&6
4153else $as_nop
4154  ac_cv_prog_cc_c99=no
4155ac_save_CC=$CC
4156cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4157/* end confdefs.h.  */
4158$ac_c_conftest_c99_program
4159_ACEOF
4160for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4161do
4162  CC="$ac_save_CC $ac_arg"
4163  if ac_fn_c_try_compile "$LINENO"
4164then :
4165  ac_cv_prog_cc_c99=$ac_arg
4166fi
4167rm -f core conftest.err conftest.$ac_objext conftest.beam
4168  test "x$ac_cv_prog_cc_c99" != "xno" && break
4169done
4170rm -f conftest.$ac_ext
4171CC=$ac_save_CC
4172fi
4173
4174if test "x$ac_cv_prog_cc_c99" = xno
4175then :
4176  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4177printf "%s\n" "unsupported" >&6; }
4178else $as_nop
4179  if test "x$ac_cv_prog_cc_c99" = x
4180then :
4181  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4182printf "%s\n" "none needed" >&6; }
4183else $as_nop
4184  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4185printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4186     CC="$CC $ac_cv_prog_cc_c99"
4187fi
4188  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4189  ac_prog_cc_stdc=c99
4190fi
4191fi
4192if test x$ac_prog_cc_stdc = xno
4193then :
4194  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4195printf %s "checking for $CC option to enable C89 features... " >&6; }
4196if test ${ac_cv_prog_cc_c89+y}
4197then :
4198  printf %s "(cached) " >&6
4199else $as_nop
4200  ac_cv_prog_cc_c89=no
4201ac_save_CC=$CC
4202cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4203/* end confdefs.h.  */
4204$ac_c_conftest_c89_program
4205_ACEOF
4206for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4207do
4208  CC="$ac_save_CC $ac_arg"
4209  if ac_fn_c_try_compile "$LINENO"
4210then :
4211  ac_cv_prog_cc_c89=$ac_arg
4212fi
4213rm -f core conftest.err conftest.$ac_objext conftest.beam
4214  test "x$ac_cv_prog_cc_c89" != "xno" && break
4215done
4216rm -f conftest.$ac_ext
4217CC=$ac_save_CC
4218fi
4219
4220if test "x$ac_cv_prog_cc_c89" = xno
4221then :
4222  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4223printf "%s\n" "unsupported" >&6; }
4224else $as_nop
4225  if test "x$ac_cv_prog_cc_c89" = x
4226then :
4227  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4228printf "%s\n" "none needed" >&6; }
4229else $as_nop
4230  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4231printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4232     CC="$CC $ac_cv_prog_cc_c89"
4233fi
4234  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4235  ac_prog_cc_stdc=c89
4236fi
4237fi
4238
4239ac_ext=c
4240ac_cpp='$CPP $CPPFLAGS'
4241ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4242ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4243ac_compiler_gnu=$ac_cv_c_compiler_gnu
4244
4245
4246  ac_ext=c
4247ac_cpp='$CPP $CPPFLAGS'
4248ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4249ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4250ac_compiler_gnu=$ac_cv_c_compiler_gnu
4251{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4252printf %s "checking whether $CC understands -c and -o together... " >&6; }
4253if test ${am_cv_prog_cc_c_o+y}
4254then :
4255  printf %s "(cached) " >&6
4256else $as_nop
4257  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4258/* end confdefs.h.  */
4259
4260int
4261main (void)
4262{
4263
4264  ;
4265  return 0;
4266}
4267_ACEOF
4268  # Make sure it works both with $CC and with simple cc.
4269  # Following AC_PROG_CC_C_O, we do the test twice because some
4270  # compilers refuse to overwrite an existing .o file with -o,
4271  # though they will create one.
4272  am_cv_prog_cc_c_o=yes
4273  for am_i in 1 2; do
4274    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4275   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4276   ac_status=$?
4277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278   (exit $ac_status); } \
4279         && test -f conftest2.$ac_objext; then
4280      : OK
4281    else
4282      am_cv_prog_cc_c_o=no
4283      break
4284    fi
4285  done
4286  rm -f core conftest*
4287  unset am_i
4288fi
4289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4290printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4291if test "$am_cv_prog_cc_c_o" != yes; then
4292   # Losing compiler, so override with the script.
4293   # FIXME: It is wrong to rewrite CC.
4294   # But if we don't then we get into trouble of one sort or another.
4295   # A longer-term fix would be to have automake use am__CC in this case,
4296   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4297   CC="$am_aux_dir/compile $CC"
4298fi
4299ac_ext=c
4300ac_cpp='$CPP $CPPFLAGS'
4301ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4302ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4303ac_compiler_gnu=$ac_cv_c_compiler_gnu
4304
4305DEPDIR="${am__leading_dot}deps"
4306
4307ac_config_commands="$ac_config_commands depfiles"
4308
4309{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4310printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4311cat > confinc.mk << 'END'
4312am__doit:
4313	@echo this is the am__doit target >confinc.out
4314.PHONY: am__doit
4315END
4316am__include="#"
4317am__quote=
4318# BSD make does it like this.
4319echo '.include "confinc.mk" # ignored' > confmf.BSD
4320# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4321echo 'include confinc.mk # ignored' > confmf.GNU
4322_am_result=no
4323for s in GNU BSD; do
4324  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4325   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4326   ac_status=$?
4327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328   (exit $ac_status); }
4329  case $?:`cat confinc.out 2>/dev/null` in #(
4330  '0:this is the am__doit target') :
4331    case $s in #(
4332  BSD) :
4333    am__include='.include' am__quote='"' ;; #(
4334  *) :
4335    am__include='include' am__quote='' ;;
4336esac ;; #(
4337  *) :
4338     ;;
4339esac
4340  if test "$am__include" != "#"; then
4341    _am_result="yes ($s style)"
4342    break
4343  fi
4344done
4345rm -f confinc.* confmf.*
4346{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4347printf "%s\n" "${_am_result}" >&6; }
4348
4349# Check whether --enable-dependency-tracking was given.
4350if test ${enable_dependency_tracking+y}
4351then :
4352  enableval=$enable_dependency_tracking;
4353fi
4354
4355if test "x$enable_dependency_tracking" != xno; then
4356  am_depcomp="$ac_aux_dir/depcomp"
4357  AMDEPBACKSLASH='\'
4358  am__nodep='_no'
4359fi
4360 if test "x$enable_dependency_tracking" != xno; then
4361  AMDEP_TRUE=
4362  AMDEP_FALSE='#'
4363else
4364  AMDEP_TRUE='#'
4365  AMDEP_FALSE=
4366fi
4367
4368
4369
4370depcc="$CC"   am_compiler_list=
4371
4372{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4373printf %s "checking dependency style of $depcc... " >&6; }
4374if test ${am_cv_CC_dependencies_compiler_type+y}
4375then :
4376  printf %s "(cached) " >&6
4377else $as_nop
4378  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4379  # We make a subdir and do the tests there.  Otherwise we can end up
4380  # making bogus files that we don't know about and never remove.  For
4381  # instance it was reported that on HP-UX the gcc test will end up
4382  # making a dummy file named 'D' -- because '-MD' means "put the output
4383  # in D".
4384  rm -rf conftest.dir
4385  mkdir conftest.dir
4386  # Copy depcomp to subdir because otherwise we won't find it if we're
4387  # using a relative directory.
4388  cp "$am_depcomp" conftest.dir
4389  cd conftest.dir
4390  # We will build objects and dependencies in a subdirectory because
4391  # it helps to detect inapplicable dependency modes.  For instance
4392  # both Tru64's cc and ICC support -MD to output dependencies as a
4393  # side effect of compilation, but ICC will put the dependencies in
4394  # the current directory while Tru64 will put them in the object
4395  # directory.
4396  mkdir sub
4397
4398  am_cv_CC_dependencies_compiler_type=none
4399  if test "$am_compiler_list" = ""; then
4400     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4401  fi
4402  am__universal=false
4403  case " $depcc " in #(
4404     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4405     esac
4406
4407  for depmode in $am_compiler_list; do
4408    # Setup a source with many dependencies, because some compilers
4409    # like to wrap large dependency lists on column 80 (with \), and
4410    # we should not choose a depcomp mode which is confused by this.
4411    #
4412    # We need to recreate these files for each test, as the compiler may
4413    # overwrite some of them when testing with obscure command lines.
4414    # This happens at least with the AIX C compiler.
4415    : > sub/conftest.c
4416    for i in 1 2 3 4 5 6; do
4417      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4418      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4419      # Solaris 10 /bin/sh.
4420      echo '/* dummy */' > sub/conftst$i.h
4421    done
4422    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4423
4424    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4425    # mode.  It turns out that the SunPro C++ compiler does not properly
4426    # handle '-M -o', and we need to detect this.  Also, some Intel
4427    # versions had trouble with output in subdirs.
4428    am__obj=sub/conftest.${OBJEXT-o}
4429    am__minus_obj="-o $am__obj"
4430    case $depmode in
4431    gcc)
4432      # This depmode causes a compiler race in universal mode.
4433      test "$am__universal" = false || continue
4434      ;;
4435    nosideeffect)
4436      # After this tag, mechanisms are not by side-effect, so they'll
4437      # only be used when explicitly requested.
4438      if test "x$enable_dependency_tracking" = xyes; then
4439	continue
4440      else
4441	break
4442      fi
4443      ;;
4444    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4445      # This compiler won't grok '-c -o', but also, the minuso test has
4446      # not run yet.  These depmodes are late enough in the game, and
4447      # so weak that their functioning should not be impacted.
4448      am__obj=conftest.${OBJEXT-o}
4449      am__minus_obj=
4450      ;;
4451    none) break ;;
4452    esac
4453    if depmode=$depmode \
4454       source=sub/conftest.c object=$am__obj \
4455       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4456       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4457         >/dev/null 2>conftest.err &&
4458       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4459       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4460       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4461       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4462      # icc doesn't choke on unknown options, it will just issue warnings
4463      # or remarks (even with -Werror).  So we grep stderr for any message
4464      # that says an option was ignored or not supported.
4465      # When given -MP, icc 7.0 and 7.1 complain thusly:
4466      #   icc: Command line warning: ignoring option '-M'; no argument required
4467      # The diagnosis changed in icc 8.0:
4468      #   icc: Command line remark: option '-MP' not supported
4469      if (grep 'ignoring option' conftest.err ||
4470          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4471        am_cv_CC_dependencies_compiler_type=$depmode
4472        break
4473      fi
4474    fi
4475  done
4476
4477  cd ..
4478  rm -rf conftest.dir
4479else
4480  am_cv_CC_dependencies_compiler_type=none
4481fi
4482
4483fi
4484{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4485printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4486CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4487
4488 if
4489  test "x$enable_dependency_tracking" != xno \
4490  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4491  am__fastdepCC_TRUE=
4492  am__fastdepCC_FALSE='#'
4493else
4494  am__fastdepCC_TRUE='#'
4495  am__fastdepCC_FALSE=
4496fi
4497
4498
4499# AC_PROG_CXX
4500
4501
4502# AM_PROG_AR is supported and needed since automake v1.12+
4503
4504
4505  if test -n "$ac_tool_prefix"; then
4506  for ac_prog in ar lib "link -lib"
4507  do
4508    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4509set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4511printf %s "checking for $ac_word... " >&6; }
4512if test ${ac_cv_prog_AR+y}
4513then :
4514  printf %s "(cached) " >&6
4515else $as_nop
4516  if test -n "$AR"; then
4517  ac_cv_prog_AR="$AR" # Let the user override the test.
4518else
4519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4520for as_dir in $PATH
4521do
4522  IFS=$as_save_IFS
4523  case $as_dir in #(((
4524    '') as_dir=./ ;;
4525    */) ;;
4526    *) as_dir=$as_dir/ ;;
4527  esac
4528    for ac_exec_ext in '' $ac_executable_extensions; do
4529  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4530    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4531    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4532    break 2
4533  fi
4534done
4535  done
4536IFS=$as_save_IFS
4537
4538fi
4539fi
4540AR=$ac_cv_prog_AR
4541if test -n "$AR"; then
4542  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4543printf "%s\n" "$AR" >&6; }
4544else
4545  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4546printf "%s\n" "no" >&6; }
4547fi
4548
4549
4550    test -n "$AR" && break
4551  done
4552fi
4553if test -z "$AR"; then
4554  ac_ct_AR=$AR
4555  for ac_prog in ar lib "link -lib"
4556do
4557  # Extract the first word of "$ac_prog", so it can be a program name with args.
4558set dummy $ac_prog; ac_word=$2
4559{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4560printf %s "checking for $ac_word... " >&6; }
4561if test ${ac_cv_prog_ac_ct_AR+y}
4562then :
4563  printf %s "(cached) " >&6
4564else $as_nop
4565  if test -n "$ac_ct_AR"; then
4566  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4567else
4568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4569for as_dir in $PATH
4570do
4571  IFS=$as_save_IFS
4572  case $as_dir in #(((
4573    '') as_dir=./ ;;
4574    */) ;;
4575    *) as_dir=$as_dir/ ;;
4576  esac
4577    for ac_exec_ext in '' $ac_executable_extensions; do
4578  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4579    ac_cv_prog_ac_ct_AR="$ac_prog"
4580    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4581    break 2
4582  fi
4583done
4584  done
4585IFS=$as_save_IFS
4586
4587fi
4588fi
4589ac_ct_AR=$ac_cv_prog_ac_ct_AR
4590if test -n "$ac_ct_AR"; then
4591  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4592printf "%s\n" "$ac_ct_AR" >&6; }
4593else
4594  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4595printf "%s\n" "no" >&6; }
4596fi
4597
4598
4599  test -n "$ac_ct_AR" && break
4600done
4601
4602  if test "x$ac_ct_AR" = x; then
4603    AR="false"
4604  else
4605    case $cross_compiling:$ac_tool_warned in
4606yes:)
4607{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4608printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4609ac_tool_warned=yes ;;
4610esac
4611    AR=$ac_ct_AR
4612  fi
4613fi
4614
4615: ${AR=ar}
4616
4617{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4618printf %s "checking the archiver ($AR) interface... " >&6; }
4619if test ${am_cv_ar_interface+y}
4620then :
4621  printf %s "(cached) " >&6
4622else $as_nop
4623  ac_ext=c
4624ac_cpp='$CPP $CPPFLAGS'
4625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4627ac_compiler_gnu=$ac_cv_c_compiler_gnu
4628
4629   am_cv_ar_interface=ar
4630   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4631/* end confdefs.h.  */
4632int some_variable = 0;
4633_ACEOF
4634if ac_fn_c_try_compile "$LINENO"
4635then :
4636  am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4637      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4638  (eval $am_ar_try) 2>&5
4639  ac_status=$?
4640  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4641  test $ac_status = 0; }
4642      if test "$ac_status" -eq 0; then
4643        am_cv_ar_interface=ar
4644      else
4645        am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4646        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4647  (eval $am_ar_try) 2>&5
4648  ac_status=$?
4649  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4650  test $ac_status = 0; }
4651        if test "$ac_status" -eq 0; then
4652          am_cv_ar_interface=lib
4653        else
4654          am_cv_ar_interface=unknown
4655        fi
4656      fi
4657      rm -f conftest.lib libconftest.a
4658
4659fi
4660rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4661   ac_ext=c
4662ac_cpp='$CPP $CPPFLAGS'
4663ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4664ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4665ac_compiler_gnu=$ac_cv_c_compiler_gnu
4666
4667fi
4668{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4669printf "%s\n" "$am_cv_ar_interface" >&6; }
4670
4671case $am_cv_ar_interface in
4672ar)
4673  ;;
4674lib)
4675  # Microsoft lib, so override with the ar-lib wrapper script.
4676  # FIXME: It is wrong to rewrite AR.
4677  # But if we don't then we get into trouble of one sort or another.
4678  # A longer-term fix would be to have automake use am__AR in this case,
4679  # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4680  # similar.
4681  AR="$am_aux_dir/ar-lib $AR"
4682  ;;
4683unknown)
4684  as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4685  ;;
4686esac
4687
4688
4689# Adding libtools to the build seems to bring in C++ environment
4690case `pwd` in
4691  *\ * | *\	*)
4692    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4693printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4694esac
4695
4696
4697
4698macro_version='2.4.7'
4699macro_revision='2.4.7'
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714ltmain=$ac_aux_dir/ltmain.sh
4715
4716
4717
4718  # Make sure we can run config.sub.
4719$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4720  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4721
4722{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4723printf %s "checking build system type... " >&6; }
4724if test ${ac_cv_build+y}
4725then :
4726  printf %s "(cached) " >&6
4727else $as_nop
4728  ac_build_alias=$build_alias
4729test "x$ac_build_alias" = x &&
4730  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4731test "x$ac_build_alias" = x &&
4732  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4733ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4734  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4735
4736fi
4737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4738printf "%s\n" "$ac_cv_build" >&6; }
4739case $ac_cv_build in
4740*-*-*) ;;
4741*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4742esac
4743build=$ac_cv_build
4744ac_save_IFS=$IFS; IFS='-'
4745set x $ac_cv_build
4746shift
4747build_cpu=$1
4748build_vendor=$2
4749shift; shift
4750# Remember, the first character of IFS is used to create $*,
4751# except with old shells:
4752build_os=$*
4753IFS=$ac_save_IFS
4754case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4755
4756
4757{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4758printf %s "checking host system type... " >&6; }
4759if test ${ac_cv_host+y}
4760then :
4761  printf %s "(cached) " >&6
4762else $as_nop
4763  if test "x$host_alias" = x; then
4764  ac_cv_host=$ac_cv_build
4765else
4766  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4767    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4768fi
4769
4770fi
4771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4772printf "%s\n" "$ac_cv_host" >&6; }
4773case $ac_cv_host in
4774*-*-*) ;;
4775*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4776esac
4777host=$ac_cv_host
4778ac_save_IFS=$IFS; IFS='-'
4779set x $ac_cv_host
4780shift
4781host_cpu=$1
4782host_vendor=$2
4783shift; shift
4784# Remember, the first character of IFS is used to create $*,
4785# except with old shells:
4786host_os=$*
4787IFS=$ac_save_IFS
4788case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4789
4790
4791# Backslashify metacharacters that are still active within
4792# double-quoted strings.
4793sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4794
4795# Same as above, but do not quote variable references.
4796double_quote_subst='s/\(["`\\]\)/\\\1/g'
4797
4798# Sed substitution to delay expansion of an escaped shell variable in a
4799# double_quote_subst'ed string.
4800delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4801
4802# Sed substitution to delay expansion of an escaped single quote.
4803delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4804
4805# Sed substitution to avoid accidental globbing in evaled expressions
4806no_glob_subst='s/\*/\\\*/g'
4807
4808ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4809ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4810ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4811
4812{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4813printf %s "checking how to print strings... " >&6; }
4814# Test print first, because it will be a builtin if present.
4815if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4816   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4817  ECHO='print -r --'
4818elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4819  ECHO='printf %s\n'
4820else
4821  # Use this function as a fallback that always works.
4822  func_fallback_echo ()
4823  {
4824    eval 'cat <<_LTECHO_EOF
4825$1
4826_LTECHO_EOF'
4827  }
4828  ECHO='func_fallback_echo'
4829fi
4830
4831# func_echo_all arg...
4832# Invoke $ECHO with all args, space-separated.
4833func_echo_all ()
4834{
4835    $ECHO ""
4836}
4837
4838case $ECHO in
4839  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4840printf "%s\n" "printf" >&6; } ;;
4841  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4842printf "%s\n" "print -r" >&6; } ;;
4843  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4844printf "%s\n" "cat" >&6; } ;;
4845esac
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4861printf %s "checking for a sed that does not truncate output... " >&6; }
4862if test ${ac_cv_path_SED+y}
4863then :
4864  printf %s "(cached) " >&6
4865else $as_nop
4866            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4867     for ac_i in 1 2 3 4 5 6 7; do
4868       ac_script="$ac_script$as_nl$ac_script"
4869     done
4870     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4871     { ac_script=; unset ac_script;}
4872     if test -z "$SED"; then
4873  ac_path_SED_found=false
4874  # Loop through the user's path and test for each of PROGNAME-LIST
4875  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4876for as_dir in $PATH
4877do
4878  IFS=$as_save_IFS
4879  case $as_dir in #(((
4880    '') as_dir=./ ;;
4881    */) ;;
4882    *) as_dir=$as_dir/ ;;
4883  esac
4884    for ac_prog in sed gsed
4885   do
4886    for ac_exec_ext in '' $ac_executable_extensions; do
4887      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4888      as_fn_executable_p "$ac_path_SED" || continue
4889# Check for GNU ac_path_SED and select it if it is found.
4890  # Check for GNU $ac_path_SED
4891case `"$ac_path_SED" --version 2>&1` in
4892*GNU*)
4893  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4894*)
4895  ac_count=0
4896  printf %s 0123456789 >"conftest.in"
4897  while :
4898  do
4899    cat "conftest.in" "conftest.in" >"conftest.tmp"
4900    mv "conftest.tmp" "conftest.in"
4901    cp "conftest.in" "conftest.nl"
4902    printf "%s\n" '' >> "conftest.nl"
4903    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4904    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4905    as_fn_arith $ac_count + 1 && ac_count=$as_val
4906    if test $ac_count -gt ${ac_path_SED_max-0}; then
4907      # Best one so far, save it but keep looking for a better one
4908      ac_cv_path_SED="$ac_path_SED"
4909      ac_path_SED_max=$ac_count
4910    fi
4911    # 10*(2^10) chars as input seems more than enough
4912    test $ac_count -gt 10 && break
4913  done
4914  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4915esac
4916
4917      $ac_path_SED_found && break 3
4918    done
4919  done
4920  done
4921IFS=$as_save_IFS
4922  if test -z "$ac_cv_path_SED"; then
4923    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4924  fi
4925else
4926  ac_cv_path_SED=$SED
4927fi
4928
4929fi
4930{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4931printf "%s\n" "$ac_cv_path_SED" >&6; }
4932 SED="$ac_cv_path_SED"
4933  rm -f conftest.sed
4934
4935test -z "$SED" && SED=sed
4936Xsed="$SED -e 1s/^X//"
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4949printf %s "checking for grep that handles long lines and -e... " >&6; }
4950if test ${ac_cv_path_GREP+y}
4951then :
4952  printf %s "(cached) " >&6
4953else $as_nop
4954  if test -z "$GREP"; then
4955  ac_path_GREP_found=false
4956  # Loop through the user's path and test for each of PROGNAME-LIST
4957  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4958for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4959do
4960  IFS=$as_save_IFS
4961  case $as_dir in #(((
4962    '') as_dir=./ ;;
4963    */) ;;
4964    *) as_dir=$as_dir/ ;;
4965  esac
4966    for ac_prog in grep ggrep
4967   do
4968    for ac_exec_ext in '' $ac_executable_extensions; do
4969      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4970      as_fn_executable_p "$ac_path_GREP" || continue
4971# Check for GNU ac_path_GREP and select it if it is found.
4972  # Check for GNU $ac_path_GREP
4973case `"$ac_path_GREP" --version 2>&1` in
4974*GNU*)
4975  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4976*)
4977  ac_count=0
4978  printf %s 0123456789 >"conftest.in"
4979  while :
4980  do
4981    cat "conftest.in" "conftest.in" >"conftest.tmp"
4982    mv "conftest.tmp" "conftest.in"
4983    cp "conftest.in" "conftest.nl"
4984    printf "%s\n" 'GREP' >> "conftest.nl"
4985    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4986    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4987    as_fn_arith $ac_count + 1 && ac_count=$as_val
4988    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4989      # Best one so far, save it but keep looking for a better one
4990      ac_cv_path_GREP="$ac_path_GREP"
4991      ac_path_GREP_max=$ac_count
4992    fi
4993    # 10*(2^10) chars as input seems more than enough
4994    test $ac_count -gt 10 && break
4995  done
4996  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4997esac
4998
4999      $ac_path_GREP_found && break 3
5000    done
5001  done
5002  done
5003IFS=$as_save_IFS
5004  if test -z "$ac_cv_path_GREP"; then
5005    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5006  fi
5007else
5008  ac_cv_path_GREP=$GREP
5009fi
5010
5011fi
5012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5013printf "%s\n" "$ac_cv_path_GREP" >&6; }
5014 GREP="$ac_cv_path_GREP"
5015
5016
5017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5018printf %s "checking for egrep... " >&6; }
5019if test ${ac_cv_path_EGREP+y}
5020then :
5021  printf %s "(cached) " >&6
5022else $as_nop
5023  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5024   then ac_cv_path_EGREP="$GREP -E"
5025   else
5026     if test -z "$EGREP"; then
5027  ac_path_EGREP_found=false
5028  # Loop through the user's path and test for each of PROGNAME-LIST
5029  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5030for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5031do
5032  IFS=$as_save_IFS
5033  case $as_dir in #(((
5034    '') as_dir=./ ;;
5035    */) ;;
5036    *) as_dir=$as_dir/ ;;
5037  esac
5038    for ac_prog in egrep
5039   do
5040    for ac_exec_ext in '' $ac_executable_extensions; do
5041      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5042      as_fn_executable_p "$ac_path_EGREP" || continue
5043# Check for GNU ac_path_EGREP and select it if it is found.
5044  # Check for GNU $ac_path_EGREP
5045case `"$ac_path_EGREP" --version 2>&1` in
5046*GNU*)
5047  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5048*)
5049  ac_count=0
5050  printf %s 0123456789 >"conftest.in"
5051  while :
5052  do
5053    cat "conftest.in" "conftest.in" >"conftest.tmp"
5054    mv "conftest.tmp" "conftest.in"
5055    cp "conftest.in" "conftest.nl"
5056    printf "%s\n" 'EGREP' >> "conftest.nl"
5057    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5058    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5059    as_fn_arith $ac_count + 1 && ac_count=$as_val
5060    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5061      # Best one so far, save it but keep looking for a better one
5062      ac_cv_path_EGREP="$ac_path_EGREP"
5063      ac_path_EGREP_max=$ac_count
5064    fi
5065    # 10*(2^10) chars as input seems more than enough
5066    test $ac_count -gt 10 && break
5067  done
5068  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5069esac
5070
5071      $ac_path_EGREP_found && break 3
5072    done
5073  done
5074  done
5075IFS=$as_save_IFS
5076  if test -z "$ac_cv_path_EGREP"; then
5077    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5078  fi
5079else
5080  ac_cv_path_EGREP=$EGREP
5081fi
5082
5083   fi
5084fi
5085{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5086printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5087 EGREP="$ac_cv_path_EGREP"
5088
5089
5090{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5091printf %s "checking for fgrep... " >&6; }
5092if test ${ac_cv_path_FGREP+y}
5093then :
5094  printf %s "(cached) " >&6
5095else $as_nop
5096  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5097   then ac_cv_path_FGREP="$GREP -F"
5098   else
5099     if test -z "$FGREP"; then
5100  ac_path_FGREP_found=false
5101  # Loop through the user's path and test for each of PROGNAME-LIST
5102  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5103for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5104do
5105  IFS=$as_save_IFS
5106  case $as_dir in #(((
5107    '') as_dir=./ ;;
5108    */) ;;
5109    *) as_dir=$as_dir/ ;;
5110  esac
5111    for ac_prog in fgrep
5112   do
5113    for ac_exec_ext in '' $ac_executable_extensions; do
5114      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5115      as_fn_executable_p "$ac_path_FGREP" || continue
5116# Check for GNU ac_path_FGREP and select it if it is found.
5117  # Check for GNU $ac_path_FGREP
5118case `"$ac_path_FGREP" --version 2>&1` in
5119*GNU*)
5120  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5121*)
5122  ac_count=0
5123  printf %s 0123456789 >"conftest.in"
5124  while :
5125  do
5126    cat "conftest.in" "conftest.in" >"conftest.tmp"
5127    mv "conftest.tmp" "conftest.in"
5128    cp "conftest.in" "conftest.nl"
5129    printf "%s\n" 'FGREP' >> "conftest.nl"
5130    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5131    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5132    as_fn_arith $ac_count + 1 && ac_count=$as_val
5133    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5134      # Best one so far, save it but keep looking for a better one
5135      ac_cv_path_FGREP="$ac_path_FGREP"
5136      ac_path_FGREP_max=$ac_count
5137    fi
5138    # 10*(2^10) chars as input seems more than enough
5139    test $ac_count -gt 10 && break
5140  done
5141  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5142esac
5143
5144      $ac_path_FGREP_found && break 3
5145    done
5146  done
5147  done
5148IFS=$as_save_IFS
5149  if test -z "$ac_cv_path_FGREP"; then
5150    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5151  fi
5152else
5153  ac_cv_path_FGREP=$FGREP
5154fi
5155
5156   fi
5157fi
5158{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5159printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5160 FGREP="$ac_cv_path_FGREP"
5161
5162
5163test -z "$GREP" && GREP=grep
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183# Check whether --with-gnu-ld was given.
5184if test ${with_gnu_ld+y}
5185then :
5186  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5187else $as_nop
5188  with_gnu_ld=no
5189fi
5190
5191ac_prog=ld
5192if test yes = "$GCC"; then
5193  # Check if gcc -print-prog-name=ld gives a path.
5194  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5195printf %s "checking for ld used by $CC... " >&6; }
5196  case $host in
5197  *-*-mingw*)
5198    # gcc leaves a trailing carriage return, which upsets mingw
5199    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5200  *)
5201    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5202  esac
5203  case $ac_prog in
5204    # Accept absolute paths.
5205    [\\/]* | ?:[\\/]*)
5206      re_direlt='/[^/][^/]*/\.\./'
5207      # Canonicalize the pathname of ld
5208      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5209      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5210	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5211      done
5212      test -z "$LD" && LD=$ac_prog
5213      ;;
5214  "")
5215    # If it fails, then pretend we aren't using GCC.
5216    ac_prog=ld
5217    ;;
5218  *)
5219    # If it is relative, then search for the first ld in PATH.
5220    with_gnu_ld=unknown
5221    ;;
5222  esac
5223elif test yes = "$with_gnu_ld"; then
5224  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5225printf %s "checking for GNU ld... " >&6; }
5226else
5227  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5228printf %s "checking for non-GNU ld... " >&6; }
5229fi
5230if test ${lt_cv_path_LD+y}
5231then :
5232  printf %s "(cached) " >&6
5233else $as_nop
5234  if test -z "$LD"; then
5235  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5236  for ac_dir in $PATH; do
5237    IFS=$lt_save_ifs
5238    test -z "$ac_dir" && ac_dir=.
5239    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5240      lt_cv_path_LD=$ac_dir/$ac_prog
5241      # Check to see if the program is GNU ld.  I'd rather use --version,
5242      # but apparently some variants of GNU ld only accept -v.
5243      # Break only if it was the GNU/non-GNU ld that we prefer.
5244      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5245      *GNU* | *'with BFD'*)
5246	test no != "$with_gnu_ld" && break
5247	;;
5248      *)
5249	test yes != "$with_gnu_ld" && break
5250	;;
5251      esac
5252    fi
5253  done
5254  IFS=$lt_save_ifs
5255else
5256  lt_cv_path_LD=$LD # Let the user override the test with a path.
5257fi
5258fi
5259
5260LD=$lt_cv_path_LD
5261if test -n "$LD"; then
5262  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5263printf "%s\n" "$LD" >&6; }
5264else
5265  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5266printf "%s\n" "no" >&6; }
5267fi
5268test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5270printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5271if test ${lt_cv_prog_gnu_ld+y}
5272then :
5273  printf %s "(cached) " >&6
5274else $as_nop
5275  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5276case `$LD -v 2>&1 </dev/null` in
5277*GNU* | *'with BFD'*)
5278  lt_cv_prog_gnu_ld=yes
5279  ;;
5280*)
5281  lt_cv_prog_gnu_ld=no
5282  ;;
5283esac
5284fi
5285{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5286printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5287with_gnu_ld=$lt_cv_prog_gnu_ld
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5298printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5299if test ${lt_cv_path_NM+y}
5300then :
5301  printf %s "(cached) " >&6
5302else $as_nop
5303  if test -n "$NM"; then
5304  # Let the user override the test.
5305  lt_cv_path_NM=$NM
5306else
5307  lt_nm_to_check=${ac_tool_prefix}nm
5308  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5309    lt_nm_to_check="$lt_nm_to_check nm"
5310  fi
5311  for lt_tmp_nm in $lt_nm_to_check; do
5312    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5313    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5314      IFS=$lt_save_ifs
5315      test -z "$ac_dir" && ac_dir=.
5316      tmp_nm=$ac_dir/$lt_tmp_nm
5317      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5318	# Check to see if the nm accepts a BSD-compat flag.
5319	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5320	#   nm: unknown option "B" ignored
5321	# Tru64's nm complains that /dev/null is an invalid object file
5322	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5323	case $build_os in
5324	mingw*) lt_bad_file=conftest.nm/nofile ;;
5325	*) lt_bad_file=/dev/null ;;
5326	esac
5327	case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5328	*$lt_bad_file* | *'Invalid file or object type'*)
5329	  lt_cv_path_NM="$tmp_nm -B"
5330	  break 2
5331	  ;;
5332	*)
5333	  case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5334	  */dev/null*)
5335	    lt_cv_path_NM="$tmp_nm -p"
5336	    break 2
5337	    ;;
5338	  *)
5339	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5340	    continue # so that we can try to find one that supports BSD flags
5341	    ;;
5342	  esac
5343	  ;;
5344	esac
5345      fi
5346    done
5347    IFS=$lt_save_ifs
5348  done
5349  : ${lt_cv_path_NM=no}
5350fi
5351fi
5352{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5353printf "%s\n" "$lt_cv_path_NM" >&6; }
5354if test no != "$lt_cv_path_NM"; then
5355  NM=$lt_cv_path_NM
5356else
5357  # Didn't find any BSD compatible name lister, look for dumpbin.
5358  if test -n "$DUMPBIN"; then :
5359    # Let the user override the test.
5360  else
5361    if test -n "$ac_tool_prefix"; then
5362  for ac_prog in dumpbin "link -dump"
5363  do
5364    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5365set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5366{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5367printf %s "checking for $ac_word... " >&6; }
5368if test ${ac_cv_prog_DUMPBIN+y}
5369then :
5370  printf %s "(cached) " >&6
5371else $as_nop
5372  if test -n "$DUMPBIN"; then
5373  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5374else
5375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5376for as_dir in $PATH
5377do
5378  IFS=$as_save_IFS
5379  case $as_dir in #(((
5380    '') as_dir=./ ;;
5381    */) ;;
5382    *) as_dir=$as_dir/ ;;
5383  esac
5384    for ac_exec_ext in '' $ac_executable_extensions; do
5385  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5386    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5387    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5388    break 2
5389  fi
5390done
5391  done
5392IFS=$as_save_IFS
5393
5394fi
5395fi
5396DUMPBIN=$ac_cv_prog_DUMPBIN
5397if test -n "$DUMPBIN"; then
5398  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5399printf "%s\n" "$DUMPBIN" >&6; }
5400else
5401  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5402printf "%s\n" "no" >&6; }
5403fi
5404
5405
5406    test -n "$DUMPBIN" && break
5407  done
5408fi
5409if test -z "$DUMPBIN"; then
5410  ac_ct_DUMPBIN=$DUMPBIN
5411  for ac_prog in dumpbin "link -dump"
5412do
5413  # Extract the first word of "$ac_prog", so it can be a program name with args.
5414set dummy $ac_prog; ac_word=$2
5415{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5416printf %s "checking for $ac_word... " >&6; }
5417if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5418then :
5419  printf %s "(cached) " >&6
5420else $as_nop
5421  if test -n "$ac_ct_DUMPBIN"; then
5422  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5423else
5424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5425for as_dir in $PATH
5426do
5427  IFS=$as_save_IFS
5428  case $as_dir in #(((
5429    '') as_dir=./ ;;
5430    */) ;;
5431    *) as_dir=$as_dir/ ;;
5432  esac
5433    for ac_exec_ext in '' $ac_executable_extensions; do
5434  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5435    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5436    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5437    break 2
5438  fi
5439done
5440  done
5441IFS=$as_save_IFS
5442
5443fi
5444fi
5445ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5446if test -n "$ac_ct_DUMPBIN"; then
5447  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5448printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5449else
5450  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5451printf "%s\n" "no" >&6; }
5452fi
5453
5454
5455  test -n "$ac_ct_DUMPBIN" && break
5456done
5457
5458  if test "x$ac_ct_DUMPBIN" = x; then
5459    DUMPBIN=":"
5460  else
5461    case $cross_compiling:$ac_tool_warned in
5462yes:)
5463{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5464printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5465ac_tool_warned=yes ;;
5466esac
5467    DUMPBIN=$ac_ct_DUMPBIN
5468  fi
5469fi
5470
5471    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5472    *COFF*)
5473      DUMPBIN="$DUMPBIN -symbols -headers"
5474      ;;
5475    *)
5476      DUMPBIN=:
5477      ;;
5478    esac
5479  fi
5480
5481  if test : != "$DUMPBIN"; then
5482    NM=$DUMPBIN
5483  fi
5484fi
5485test -z "$NM" && NM=nm
5486
5487
5488
5489
5490
5491
5492{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5493printf %s "checking the name lister ($NM) interface... " >&6; }
5494if test ${lt_cv_nm_interface+y}
5495then :
5496  printf %s "(cached) " >&6
5497else $as_nop
5498  lt_cv_nm_interface="BSD nm"
5499  echo "int some_variable = 0;" > conftest.$ac_ext
5500  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5501  (eval "$ac_compile" 2>conftest.err)
5502  cat conftest.err >&5
5503  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5504  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5505  cat conftest.err >&5
5506  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5507  cat conftest.out >&5
5508  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5509    lt_cv_nm_interface="MS dumpbin"
5510  fi
5511  rm -f conftest*
5512fi
5513{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5514printf "%s\n" "$lt_cv_nm_interface" >&6; }
5515
5516{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5517printf %s "checking whether ln -s works... " >&6; }
5518LN_S=$as_ln_s
5519if test "$LN_S" = "ln -s"; then
5520  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5521printf "%s\n" "yes" >&6; }
5522else
5523  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5524printf "%s\n" "no, using $LN_S" >&6; }
5525fi
5526
5527# find the maximum length of command line arguments
5528{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5529printf %s "checking the maximum length of command line arguments... " >&6; }
5530if test ${lt_cv_sys_max_cmd_len+y}
5531then :
5532  printf %s "(cached) " >&6
5533else $as_nop
5534    i=0
5535  teststring=ABCD
5536
5537  case $build_os in
5538  msdosdjgpp*)
5539    # On DJGPP, this test can blow up pretty badly due to problems in libc
5540    # (any single argument exceeding 2000 bytes causes a buffer overrun
5541    # during glob expansion).  Even if it were fixed, the result of this
5542    # check would be larger than it should be.
5543    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5544    ;;
5545
5546  gnu*)
5547    # Under GNU Hurd, this test is not required because there is
5548    # no limit to the length of command line arguments.
5549    # Libtool will interpret -1 as no limit whatsoever
5550    lt_cv_sys_max_cmd_len=-1;
5551    ;;
5552
5553  cygwin* | mingw* | cegcc*)
5554    # On Win9x/ME, this test blows up -- it succeeds, but takes
5555    # about 5 minutes as the teststring grows exponentially.
5556    # Worse, since 9x/ME are not pre-emptively multitasking,
5557    # you end up with a "frozen" computer, even though with patience
5558    # the test eventually succeeds (with a max line length of 256k).
5559    # Instead, let's just punt: use the minimum linelength reported by
5560    # all of the supported platforms: 8192 (on NT/2K/XP).
5561    lt_cv_sys_max_cmd_len=8192;
5562    ;;
5563
5564  mint*)
5565    # On MiNT this can take a long time and run out of memory.
5566    lt_cv_sys_max_cmd_len=8192;
5567    ;;
5568
5569  amigaos*)
5570    # On AmigaOS with pdksh, this test takes hours, literally.
5571    # So we just punt and use a minimum line length of 8192.
5572    lt_cv_sys_max_cmd_len=8192;
5573    ;;
5574
5575  bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5576    # This has been around since 386BSD, at least.  Likely further.
5577    if test -x /sbin/sysctl; then
5578      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5579    elif test -x /usr/sbin/sysctl; then
5580      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5581    else
5582      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5583    fi
5584    # And add a safety zone
5585    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5586    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5587    ;;
5588
5589  interix*)
5590    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5591    lt_cv_sys_max_cmd_len=196608
5592    ;;
5593
5594  os2*)
5595    # The test takes a long time on OS/2.
5596    lt_cv_sys_max_cmd_len=8192
5597    ;;
5598
5599  osf*)
5600    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5601    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5602    # nice to cause kernel panics so lets avoid the loop below.
5603    # First set a reasonable default.
5604    lt_cv_sys_max_cmd_len=16384
5605    #
5606    if test -x /sbin/sysconfig; then
5607      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5608        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5609      esac
5610    fi
5611    ;;
5612  sco3.2v5*)
5613    lt_cv_sys_max_cmd_len=102400
5614    ;;
5615  sysv5* | sco5v6* | sysv4.2uw2*)
5616    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5617    if test -n "$kargmax"; then
5618      lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[	 ]//'`
5619    else
5620      lt_cv_sys_max_cmd_len=32768
5621    fi
5622    ;;
5623  *)
5624    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5625    if test -n "$lt_cv_sys_max_cmd_len" && \
5626       test undefined != "$lt_cv_sys_max_cmd_len"; then
5627      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5628      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5629    else
5630      # Make teststring a little bigger before we do anything with it.
5631      # a 1K string should be a reasonable start.
5632      for i in 1 2 3 4 5 6 7 8; do
5633        teststring=$teststring$teststring
5634      done
5635      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5636      # If test is not a shell built-in, we'll probably end up computing a
5637      # maximum length that is only half of the actual maximum length, but
5638      # we can't tell.
5639      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5640	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5641	      test 17 != "$i" # 1/2 MB should be enough
5642      do
5643        i=`expr $i + 1`
5644        teststring=$teststring$teststring
5645      done
5646      # Only check the string length outside the loop.
5647      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5648      teststring=
5649      # Add a significant safety factor because C++ compilers can tack on
5650      # massive amounts of additional arguments before passing them to the
5651      # linker.  It appears as though 1/2 is a usable value.
5652      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5653    fi
5654    ;;
5655  esac
5656
5657fi
5658
5659if test -n "$lt_cv_sys_max_cmd_len"; then
5660  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5661printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5662else
5663  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5664printf "%s\n" "none" >&6; }
5665fi
5666max_cmd_len=$lt_cv_sys_max_cmd_len
5667
5668
5669
5670
5671
5672
5673: ${CP="cp -f"}
5674: ${MV="mv -f"}
5675: ${RM="rm -f"}
5676
5677if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5678  lt_unset=unset
5679else
5680  lt_unset=false
5681fi
5682
5683
5684
5685
5686
5687# test EBCDIC or ASCII
5688case `echo X|tr X '\101'` in
5689 A) # ASCII based system
5690    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5691  lt_SP2NL='tr \040 \012'
5692  lt_NL2SP='tr \015\012 \040\040'
5693  ;;
5694 *) # EBCDIC based system
5695  lt_SP2NL='tr \100 \n'
5696  lt_NL2SP='tr \r\n \100\100'
5697  ;;
5698esac
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5709printf %s "checking how to convert $build file names to $host format... " >&6; }
5710if test ${lt_cv_to_host_file_cmd+y}
5711then :
5712  printf %s "(cached) " >&6
5713else $as_nop
5714  case $host in
5715  *-*-mingw* )
5716    case $build in
5717      *-*-mingw* ) # actually msys
5718        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5719        ;;
5720      *-*-cygwin* )
5721        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5722        ;;
5723      * ) # otherwise, assume *nix
5724        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5725        ;;
5726    esac
5727    ;;
5728  *-*-cygwin* )
5729    case $build in
5730      *-*-mingw* ) # actually msys
5731        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5732        ;;
5733      *-*-cygwin* )
5734        lt_cv_to_host_file_cmd=func_convert_file_noop
5735        ;;
5736      * ) # otherwise, assume *nix
5737        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5738        ;;
5739    esac
5740    ;;
5741  * ) # unhandled hosts (and "normal" native builds)
5742    lt_cv_to_host_file_cmd=func_convert_file_noop
5743    ;;
5744esac
5745
5746fi
5747
5748to_host_file_cmd=$lt_cv_to_host_file_cmd
5749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5750printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5751
5752
5753
5754
5755
5756{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5757printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5758if test ${lt_cv_to_tool_file_cmd+y}
5759then :
5760  printf %s "(cached) " >&6
5761else $as_nop
5762  #assume ordinary cross tools, or native build.
5763lt_cv_to_tool_file_cmd=func_convert_file_noop
5764case $host in
5765  *-*-mingw* )
5766    case $build in
5767      *-*-mingw* ) # actually msys
5768        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5769        ;;
5770    esac
5771    ;;
5772esac
5773
5774fi
5775
5776to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5778printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5779
5780
5781
5782
5783
5784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5785printf %s "checking for $LD option to reload object files... " >&6; }
5786if test ${lt_cv_ld_reload_flag+y}
5787then :
5788  printf %s "(cached) " >&6
5789else $as_nop
5790  lt_cv_ld_reload_flag='-r'
5791fi
5792{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5793printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5794reload_flag=$lt_cv_ld_reload_flag
5795case $reload_flag in
5796"" | " "*) ;;
5797*) reload_flag=" $reload_flag" ;;
5798esac
5799reload_cmds='$LD$reload_flag -o $output$reload_objs'
5800case $host_os in
5801  cygwin* | mingw* | pw32* | cegcc*)
5802    if test yes != "$GCC"; then
5803      reload_cmds=false
5804    fi
5805    ;;
5806  darwin*)
5807    if test yes = "$GCC"; then
5808      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5809    else
5810      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5811    fi
5812    ;;
5813esac
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823if test -n "$ac_tool_prefix"; then
5824  # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
5825set dummy ${ac_tool_prefix}file; ac_word=$2
5826{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5827printf %s "checking for $ac_word... " >&6; }
5828if test ${ac_cv_prog_FILECMD+y}
5829then :
5830  printf %s "(cached) " >&6
5831else $as_nop
5832  if test -n "$FILECMD"; then
5833  ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5834else
5835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5836for as_dir in $PATH
5837do
5838  IFS=$as_save_IFS
5839  case $as_dir in #(((
5840    '') as_dir=./ ;;
5841    */) ;;
5842    *) as_dir=$as_dir/ ;;
5843  esac
5844    for ac_exec_ext in '' $ac_executable_extensions; do
5845  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5846    ac_cv_prog_FILECMD="${ac_tool_prefix}file"
5847    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5848    break 2
5849  fi
5850done
5851  done
5852IFS=$as_save_IFS
5853
5854fi
5855fi
5856FILECMD=$ac_cv_prog_FILECMD
5857if test -n "$FILECMD"; then
5858  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5859printf "%s\n" "$FILECMD" >&6; }
5860else
5861  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5862printf "%s\n" "no" >&6; }
5863fi
5864
5865
5866fi
5867if test -z "$ac_cv_prog_FILECMD"; then
5868  ac_ct_FILECMD=$FILECMD
5869  # Extract the first word of "file", so it can be a program name with args.
5870set dummy file; ac_word=$2
5871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5872printf %s "checking for $ac_word... " >&6; }
5873if test ${ac_cv_prog_ac_ct_FILECMD+y}
5874then :
5875  printf %s "(cached) " >&6
5876else $as_nop
5877  if test -n "$ac_ct_FILECMD"; then
5878  ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
5879else
5880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5881for as_dir in $PATH
5882do
5883  IFS=$as_save_IFS
5884  case $as_dir in #(((
5885    '') as_dir=./ ;;
5886    */) ;;
5887    *) as_dir=$as_dir/ ;;
5888  esac
5889    for ac_exec_ext in '' $ac_executable_extensions; do
5890  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5891    ac_cv_prog_ac_ct_FILECMD="file"
5892    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5893    break 2
5894  fi
5895done
5896  done
5897IFS=$as_save_IFS
5898
5899fi
5900fi
5901ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
5902if test -n "$ac_ct_FILECMD"; then
5903  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
5904printf "%s\n" "$ac_ct_FILECMD" >&6; }
5905else
5906  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5907printf "%s\n" "no" >&6; }
5908fi
5909
5910  if test "x$ac_ct_FILECMD" = x; then
5911    FILECMD=":"
5912  else
5913    case $cross_compiling:$ac_tool_warned in
5914yes:)
5915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5916printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5917ac_tool_warned=yes ;;
5918esac
5919    FILECMD=$ac_ct_FILECMD
5920  fi
5921else
5922  FILECMD="$ac_cv_prog_FILECMD"
5923fi
5924
5925
5926
5927
5928
5929
5930
5931if test -n "$ac_tool_prefix"; then
5932  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5933set dummy ${ac_tool_prefix}objdump; ac_word=$2
5934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5935printf %s "checking for $ac_word... " >&6; }
5936if test ${ac_cv_prog_OBJDUMP+y}
5937then :
5938  printf %s "(cached) " >&6
5939else $as_nop
5940  if test -n "$OBJDUMP"; then
5941  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5942else
5943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5944for as_dir in $PATH
5945do
5946  IFS=$as_save_IFS
5947  case $as_dir in #(((
5948    '') as_dir=./ ;;
5949    */) ;;
5950    *) as_dir=$as_dir/ ;;
5951  esac
5952    for ac_exec_ext in '' $ac_executable_extensions; do
5953  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5954    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5955    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5956    break 2
5957  fi
5958done
5959  done
5960IFS=$as_save_IFS
5961
5962fi
5963fi
5964OBJDUMP=$ac_cv_prog_OBJDUMP
5965if test -n "$OBJDUMP"; then
5966  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5967printf "%s\n" "$OBJDUMP" >&6; }
5968else
5969  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5970printf "%s\n" "no" >&6; }
5971fi
5972
5973
5974fi
5975if test -z "$ac_cv_prog_OBJDUMP"; then
5976  ac_ct_OBJDUMP=$OBJDUMP
5977  # Extract the first word of "objdump", so it can be a program name with args.
5978set dummy objdump; ac_word=$2
5979{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5980printf %s "checking for $ac_word... " >&6; }
5981if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
5982then :
5983  printf %s "(cached) " >&6
5984else $as_nop
5985  if test -n "$ac_ct_OBJDUMP"; then
5986  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5987else
5988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5989for as_dir in $PATH
5990do
5991  IFS=$as_save_IFS
5992  case $as_dir in #(((
5993    '') as_dir=./ ;;
5994    */) ;;
5995    *) as_dir=$as_dir/ ;;
5996  esac
5997    for ac_exec_ext in '' $ac_executable_extensions; do
5998  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5999    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6000    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6001    break 2
6002  fi
6003done
6004  done
6005IFS=$as_save_IFS
6006
6007fi
6008fi
6009ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6010if test -n "$ac_ct_OBJDUMP"; then
6011  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6012printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6013else
6014  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6015printf "%s\n" "no" >&6; }
6016fi
6017
6018  if test "x$ac_ct_OBJDUMP" = x; then
6019    OBJDUMP="false"
6020  else
6021    case $cross_compiling:$ac_tool_warned in
6022yes:)
6023{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6024printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6025ac_tool_warned=yes ;;
6026esac
6027    OBJDUMP=$ac_ct_OBJDUMP
6028  fi
6029else
6030  OBJDUMP="$ac_cv_prog_OBJDUMP"
6031fi
6032
6033test -z "$OBJDUMP" && OBJDUMP=objdump
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6044printf %s "checking how to recognize dependent libraries... " >&6; }
6045if test ${lt_cv_deplibs_check_method+y}
6046then :
6047  printf %s "(cached) " >&6
6048else $as_nop
6049  lt_cv_file_magic_cmd='$MAGIC_CMD'
6050lt_cv_file_magic_test_file=
6051lt_cv_deplibs_check_method='unknown'
6052# Need to set the preceding variable on all platforms that support
6053# interlibrary dependencies.
6054# 'none' -- dependencies not supported.
6055# 'unknown' -- same as none, but documents that we really don't know.
6056# 'pass_all' -- all dependencies passed with no checks.
6057# 'test_compile' -- check by making test program.
6058# 'file_magic [[regex]]' -- check by looking for files in library path
6059# that responds to the $file_magic_cmd with a given extended regex.
6060# If you have 'file' or equivalent on your system and you're not sure
6061# whether 'pass_all' will *always* work, you probably want this one.
6062
6063case $host_os in
6064aix[4-9]*)
6065  lt_cv_deplibs_check_method=pass_all
6066  ;;
6067
6068beos*)
6069  lt_cv_deplibs_check_method=pass_all
6070  ;;
6071
6072bsdi[45]*)
6073  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6074  lt_cv_file_magic_cmd='$FILECMD -L'
6075  lt_cv_file_magic_test_file=/shlib/libc.so
6076  ;;
6077
6078cygwin*)
6079  # func_win32_libid is a shell function defined in ltmain.sh
6080  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6081  lt_cv_file_magic_cmd='func_win32_libid'
6082  ;;
6083
6084mingw* | pw32*)
6085  # Base MSYS/MinGW do not provide the 'file' command needed by
6086  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6087  # unless we find 'file', for example because we are cross-compiling.
6088  if ( file / ) >/dev/null 2>&1; then
6089    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6090    lt_cv_file_magic_cmd='func_win32_libid'
6091  else
6092    # Keep this pattern in sync with the one in func_win32_libid.
6093    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6094    lt_cv_file_magic_cmd='$OBJDUMP -f'
6095  fi
6096  ;;
6097
6098cegcc*)
6099  # use the weaker test based on 'objdump'. See mingw*.
6100  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6101  lt_cv_file_magic_cmd='$OBJDUMP -f'
6102  ;;
6103
6104darwin* | rhapsody*)
6105  lt_cv_deplibs_check_method=pass_all
6106  ;;
6107
6108freebsd* | dragonfly* | midnightbsd*)
6109  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6110    case $host_cpu in
6111    i*86 )
6112      # Not sure whether the presence of OpenBSD here was a mistake.
6113      # Let's accept both of them until this is cleared up.
6114      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6115      lt_cv_file_magic_cmd=$FILECMD
6116      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6117      ;;
6118    esac
6119  else
6120    lt_cv_deplibs_check_method=pass_all
6121  fi
6122  ;;
6123
6124haiku*)
6125  lt_cv_deplibs_check_method=pass_all
6126  ;;
6127
6128hpux10.20* | hpux11*)
6129  lt_cv_file_magic_cmd=$FILECMD
6130  case $host_cpu in
6131  ia64*)
6132    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6133    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6134    ;;
6135  hppa*64*)
6136    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]'
6137    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6138    ;;
6139  *)
6140    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6141    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6142    ;;
6143  esac
6144  ;;
6145
6146interix[3-9]*)
6147  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6148  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6149  ;;
6150
6151irix5* | irix6* | nonstopux*)
6152  case $LD in
6153  *-32|*"-32 ") libmagic=32-bit;;
6154  *-n32|*"-n32 ") libmagic=N32;;
6155  *-64|*"-64 ") libmagic=64-bit;;
6156  *) libmagic=never-match;;
6157  esac
6158  lt_cv_deplibs_check_method=pass_all
6159  ;;
6160
6161# This must be glibc/ELF.
6162linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6163  lt_cv_deplibs_check_method=pass_all
6164  ;;
6165
6166netbsd* | netbsdelf*-gnu)
6167  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6168    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6169  else
6170    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6171  fi
6172  ;;
6173
6174newos6*)
6175  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6176  lt_cv_file_magic_cmd=$FILECMD
6177  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6178  ;;
6179
6180*nto* | *qnx*)
6181  lt_cv_deplibs_check_method=pass_all
6182  ;;
6183
6184openbsd* | bitrig*)
6185  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6186    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6187  else
6188    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6189  fi
6190  ;;
6191
6192osf3* | osf4* | osf5*)
6193  lt_cv_deplibs_check_method=pass_all
6194  ;;
6195
6196rdos*)
6197  lt_cv_deplibs_check_method=pass_all
6198  ;;
6199
6200solaris*)
6201  lt_cv_deplibs_check_method=pass_all
6202  ;;
6203
6204sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6205  lt_cv_deplibs_check_method=pass_all
6206  ;;
6207
6208sysv4 | sysv4.3*)
6209  case $host_vendor in
6210  motorola)
6211    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]'
6212    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6213    ;;
6214  ncr)
6215    lt_cv_deplibs_check_method=pass_all
6216    ;;
6217  sequent)
6218    lt_cv_file_magic_cmd='/bin/file'
6219    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6220    ;;
6221  sni)
6222    lt_cv_file_magic_cmd='/bin/file'
6223    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6224    lt_cv_file_magic_test_file=/lib/libc.so
6225    ;;
6226  siemens)
6227    lt_cv_deplibs_check_method=pass_all
6228    ;;
6229  pc)
6230    lt_cv_deplibs_check_method=pass_all
6231    ;;
6232  esac
6233  ;;
6234
6235tpf*)
6236  lt_cv_deplibs_check_method=pass_all
6237  ;;
6238os2*)
6239  lt_cv_deplibs_check_method=pass_all
6240  ;;
6241esac
6242
6243fi
6244{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6245printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6246
6247file_magic_glob=
6248want_nocaseglob=no
6249if test "$build" = "$host"; then
6250  case $host_os in
6251  mingw* | pw32*)
6252    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6253      want_nocaseglob=yes
6254    else
6255      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6256    fi
6257    ;;
6258  esac
6259fi
6260
6261file_magic_cmd=$lt_cv_file_magic_cmd
6262deplibs_check_method=$lt_cv_deplibs_check_method
6263test -z "$deplibs_check_method" && deplibs_check_method=unknown
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286if test -n "$ac_tool_prefix"; then
6287  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6288set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6290printf %s "checking for $ac_word... " >&6; }
6291if test ${ac_cv_prog_DLLTOOL+y}
6292then :
6293  printf %s "(cached) " >&6
6294else $as_nop
6295  if test -n "$DLLTOOL"; then
6296  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6297else
6298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6299for as_dir in $PATH
6300do
6301  IFS=$as_save_IFS
6302  case $as_dir in #(((
6303    '') as_dir=./ ;;
6304    */) ;;
6305    *) as_dir=$as_dir/ ;;
6306  esac
6307    for ac_exec_ext in '' $ac_executable_extensions; do
6308  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6309    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6310    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6311    break 2
6312  fi
6313done
6314  done
6315IFS=$as_save_IFS
6316
6317fi
6318fi
6319DLLTOOL=$ac_cv_prog_DLLTOOL
6320if test -n "$DLLTOOL"; then
6321  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6322printf "%s\n" "$DLLTOOL" >&6; }
6323else
6324  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6325printf "%s\n" "no" >&6; }
6326fi
6327
6328
6329fi
6330if test -z "$ac_cv_prog_DLLTOOL"; then
6331  ac_ct_DLLTOOL=$DLLTOOL
6332  # Extract the first word of "dlltool", so it can be a program name with args.
6333set dummy dlltool; ac_word=$2
6334{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6335printf %s "checking for $ac_word... " >&6; }
6336if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6337then :
6338  printf %s "(cached) " >&6
6339else $as_nop
6340  if test -n "$ac_ct_DLLTOOL"; then
6341  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6342else
6343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6344for as_dir in $PATH
6345do
6346  IFS=$as_save_IFS
6347  case $as_dir in #(((
6348    '') as_dir=./ ;;
6349    */) ;;
6350    *) as_dir=$as_dir/ ;;
6351  esac
6352    for ac_exec_ext in '' $ac_executable_extensions; do
6353  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6354    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6355    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6356    break 2
6357  fi
6358done
6359  done
6360IFS=$as_save_IFS
6361
6362fi
6363fi
6364ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6365if test -n "$ac_ct_DLLTOOL"; then
6366  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6367printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6368else
6369  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6370printf "%s\n" "no" >&6; }
6371fi
6372
6373  if test "x$ac_ct_DLLTOOL" = x; then
6374    DLLTOOL="false"
6375  else
6376    case $cross_compiling:$ac_tool_warned in
6377yes:)
6378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6379printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6380ac_tool_warned=yes ;;
6381esac
6382    DLLTOOL=$ac_ct_DLLTOOL
6383  fi
6384else
6385  DLLTOOL="$ac_cv_prog_DLLTOOL"
6386fi
6387
6388test -z "$DLLTOOL" && DLLTOOL=dlltool
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6400printf %s "checking how to associate runtime and link libraries... " >&6; }
6401if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6402then :
6403  printf %s "(cached) " >&6
6404else $as_nop
6405  lt_cv_sharedlib_from_linklib_cmd='unknown'
6406
6407case $host_os in
6408cygwin* | mingw* | pw32* | cegcc*)
6409  # two different shell functions defined in ltmain.sh;
6410  # decide which one to use based on capabilities of $DLLTOOL
6411  case `$DLLTOOL --help 2>&1` in
6412  *--identify-strict*)
6413    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6414    ;;
6415  *)
6416    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6417    ;;
6418  esac
6419  ;;
6420*)
6421  # fallback: assume linklib IS sharedlib
6422  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6423  ;;
6424esac
6425
6426fi
6427{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6428printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6429sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6430test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6431
6432
6433
6434
6435
6436
6437
6438if test -n "$ac_tool_prefix"; then
6439  for ac_prog in ar
6440  do
6441    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6442set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6443{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6444printf %s "checking for $ac_word... " >&6; }
6445if test ${ac_cv_prog_AR+y}
6446then :
6447  printf %s "(cached) " >&6
6448else $as_nop
6449  if test -n "$AR"; then
6450  ac_cv_prog_AR="$AR" # Let the user override the test.
6451else
6452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6453for as_dir in $PATH
6454do
6455  IFS=$as_save_IFS
6456  case $as_dir in #(((
6457    '') as_dir=./ ;;
6458    */) ;;
6459    *) as_dir=$as_dir/ ;;
6460  esac
6461    for ac_exec_ext in '' $ac_executable_extensions; do
6462  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6463    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6464    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6465    break 2
6466  fi
6467done
6468  done
6469IFS=$as_save_IFS
6470
6471fi
6472fi
6473AR=$ac_cv_prog_AR
6474if test -n "$AR"; then
6475  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6476printf "%s\n" "$AR" >&6; }
6477else
6478  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6479printf "%s\n" "no" >&6; }
6480fi
6481
6482
6483    test -n "$AR" && break
6484  done
6485fi
6486if test -z "$AR"; then
6487  ac_ct_AR=$AR
6488  for ac_prog in ar
6489do
6490  # Extract the first word of "$ac_prog", so it can be a program name with args.
6491set dummy $ac_prog; ac_word=$2
6492{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6493printf %s "checking for $ac_word... " >&6; }
6494if test ${ac_cv_prog_ac_ct_AR+y}
6495then :
6496  printf %s "(cached) " >&6
6497else $as_nop
6498  if test -n "$ac_ct_AR"; then
6499  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6500else
6501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6502for as_dir in $PATH
6503do
6504  IFS=$as_save_IFS
6505  case $as_dir in #(((
6506    '') as_dir=./ ;;
6507    */) ;;
6508    *) as_dir=$as_dir/ ;;
6509  esac
6510    for ac_exec_ext in '' $ac_executable_extensions; do
6511  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6512    ac_cv_prog_ac_ct_AR="$ac_prog"
6513    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6514    break 2
6515  fi
6516done
6517  done
6518IFS=$as_save_IFS
6519
6520fi
6521fi
6522ac_ct_AR=$ac_cv_prog_ac_ct_AR
6523if test -n "$ac_ct_AR"; then
6524  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6525printf "%s\n" "$ac_ct_AR" >&6; }
6526else
6527  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6528printf "%s\n" "no" >&6; }
6529fi
6530
6531
6532  test -n "$ac_ct_AR" && break
6533done
6534
6535  if test "x$ac_ct_AR" = x; then
6536    AR="false"
6537  else
6538    case $cross_compiling:$ac_tool_warned in
6539yes:)
6540{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6541printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6542ac_tool_warned=yes ;;
6543esac
6544    AR=$ac_ct_AR
6545  fi
6546fi
6547
6548: ${AR=ar}
6549
6550
6551
6552
6553
6554
6555# Use ARFLAGS variable as AR's operation code to sync the variable naming with
6556# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6557# higher priority because thats what people were doing historically (setting
6558# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
6559# variable obsoleted/removed.
6560
6561test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6562lt_ar_flags=$AR_FLAGS
6563
6564
6565
6566
6567
6568
6569# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
6570# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6571
6572
6573
6574
6575
6576
6577{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6578printf %s "checking for archiver @FILE support... " >&6; }
6579if test ${lt_cv_ar_at_file+y}
6580then :
6581  printf %s "(cached) " >&6
6582else $as_nop
6583  lt_cv_ar_at_file=no
6584   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6585/* end confdefs.h.  */
6586
6587int
6588main (void)
6589{
6590
6591  ;
6592  return 0;
6593}
6594_ACEOF
6595if ac_fn_c_try_compile "$LINENO"
6596then :
6597  echo conftest.$ac_objext > conftest.lst
6598      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6599      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6600  (eval $lt_ar_try) 2>&5
6601  ac_status=$?
6602  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6603  test $ac_status = 0; }
6604      if test 0 -eq "$ac_status"; then
6605	# Ensure the archiver fails upon bogus file names.
6606	rm -f conftest.$ac_objext libconftest.a
6607	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6608  (eval $lt_ar_try) 2>&5
6609  ac_status=$?
6610  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6611  test $ac_status = 0; }
6612	if test 0 -ne "$ac_status"; then
6613          lt_cv_ar_at_file=@
6614        fi
6615      fi
6616      rm -f conftest.* libconftest.a
6617
6618fi
6619rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6620
6621fi
6622{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6623printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6624
6625if test no = "$lt_cv_ar_at_file"; then
6626  archiver_list_spec=
6627else
6628  archiver_list_spec=$lt_cv_ar_at_file
6629fi
6630
6631
6632
6633
6634
6635
6636
6637if test -n "$ac_tool_prefix"; then
6638  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6639set dummy ${ac_tool_prefix}strip; ac_word=$2
6640{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6641printf %s "checking for $ac_word... " >&6; }
6642if test ${ac_cv_prog_STRIP+y}
6643then :
6644  printf %s "(cached) " >&6
6645else $as_nop
6646  if test -n "$STRIP"; then
6647  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6648else
6649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6650for as_dir in $PATH
6651do
6652  IFS=$as_save_IFS
6653  case $as_dir in #(((
6654    '') as_dir=./ ;;
6655    */) ;;
6656    *) as_dir=$as_dir/ ;;
6657  esac
6658    for ac_exec_ext in '' $ac_executable_extensions; do
6659  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6660    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6661    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6662    break 2
6663  fi
6664done
6665  done
6666IFS=$as_save_IFS
6667
6668fi
6669fi
6670STRIP=$ac_cv_prog_STRIP
6671if test -n "$STRIP"; then
6672  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6673printf "%s\n" "$STRIP" >&6; }
6674else
6675  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6676printf "%s\n" "no" >&6; }
6677fi
6678
6679
6680fi
6681if test -z "$ac_cv_prog_STRIP"; then
6682  ac_ct_STRIP=$STRIP
6683  # Extract the first word of "strip", so it can be a program name with args.
6684set dummy strip; ac_word=$2
6685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6686printf %s "checking for $ac_word... " >&6; }
6687if test ${ac_cv_prog_ac_ct_STRIP+y}
6688then :
6689  printf %s "(cached) " >&6
6690else $as_nop
6691  if test -n "$ac_ct_STRIP"; then
6692  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6693else
6694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6695for as_dir in $PATH
6696do
6697  IFS=$as_save_IFS
6698  case $as_dir in #(((
6699    '') as_dir=./ ;;
6700    */) ;;
6701    *) as_dir=$as_dir/ ;;
6702  esac
6703    for ac_exec_ext in '' $ac_executable_extensions; do
6704  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6705    ac_cv_prog_ac_ct_STRIP="strip"
6706    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6707    break 2
6708  fi
6709done
6710  done
6711IFS=$as_save_IFS
6712
6713fi
6714fi
6715ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6716if test -n "$ac_ct_STRIP"; then
6717  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6718printf "%s\n" "$ac_ct_STRIP" >&6; }
6719else
6720  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6721printf "%s\n" "no" >&6; }
6722fi
6723
6724  if test "x$ac_ct_STRIP" = x; then
6725    STRIP=":"
6726  else
6727    case $cross_compiling:$ac_tool_warned in
6728yes:)
6729{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6730printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6731ac_tool_warned=yes ;;
6732esac
6733    STRIP=$ac_ct_STRIP
6734  fi
6735else
6736  STRIP="$ac_cv_prog_STRIP"
6737fi
6738
6739test -z "$STRIP" && STRIP=:
6740
6741
6742
6743
6744
6745
6746if test -n "$ac_tool_prefix"; then
6747  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6748set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6750printf %s "checking for $ac_word... " >&6; }
6751if test ${ac_cv_prog_RANLIB+y}
6752then :
6753  printf %s "(cached) " >&6
6754else $as_nop
6755  if test -n "$RANLIB"; then
6756  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6757else
6758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6759for as_dir in $PATH
6760do
6761  IFS=$as_save_IFS
6762  case $as_dir in #(((
6763    '') as_dir=./ ;;
6764    */) ;;
6765    *) as_dir=$as_dir/ ;;
6766  esac
6767    for ac_exec_ext in '' $ac_executable_extensions; do
6768  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6769    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6770    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6771    break 2
6772  fi
6773done
6774  done
6775IFS=$as_save_IFS
6776
6777fi
6778fi
6779RANLIB=$ac_cv_prog_RANLIB
6780if test -n "$RANLIB"; then
6781  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6782printf "%s\n" "$RANLIB" >&6; }
6783else
6784  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6785printf "%s\n" "no" >&6; }
6786fi
6787
6788
6789fi
6790if test -z "$ac_cv_prog_RANLIB"; then
6791  ac_ct_RANLIB=$RANLIB
6792  # Extract the first word of "ranlib", so it can be a program name with args.
6793set dummy ranlib; ac_word=$2
6794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6795printf %s "checking for $ac_word... " >&6; }
6796if test ${ac_cv_prog_ac_ct_RANLIB+y}
6797then :
6798  printf %s "(cached) " >&6
6799else $as_nop
6800  if test -n "$ac_ct_RANLIB"; then
6801  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6802else
6803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6804for as_dir in $PATH
6805do
6806  IFS=$as_save_IFS
6807  case $as_dir in #(((
6808    '') as_dir=./ ;;
6809    */) ;;
6810    *) as_dir=$as_dir/ ;;
6811  esac
6812    for ac_exec_ext in '' $ac_executable_extensions; do
6813  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6814    ac_cv_prog_ac_ct_RANLIB="ranlib"
6815    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6816    break 2
6817  fi
6818done
6819  done
6820IFS=$as_save_IFS
6821
6822fi
6823fi
6824ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6825if test -n "$ac_ct_RANLIB"; then
6826  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6827printf "%s\n" "$ac_ct_RANLIB" >&6; }
6828else
6829  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6830printf "%s\n" "no" >&6; }
6831fi
6832
6833  if test "x$ac_ct_RANLIB" = x; then
6834    RANLIB=":"
6835  else
6836    case $cross_compiling:$ac_tool_warned in
6837yes:)
6838{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6839printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6840ac_tool_warned=yes ;;
6841esac
6842    RANLIB=$ac_ct_RANLIB
6843  fi
6844else
6845  RANLIB="$ac_cv_prog_RANLIB"
6846fi
6847
6848test -z "$RANLIB" && RANLIB=:
6849
6850
6851
6852
6853
6854
6855# Determine commands to create old-style static archives.
6856old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6857old_postinstall_cmds='chmod 644 $oldlib'
6858old_postuninstall_cmds=
6859
6860if test -n "$RANLIB"; then
6861  case $host_os in
6862  bitrig* | openbsd*)
6863    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6864    ;;
6865  *)
6866    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6867    ;;
6868  esac
6869  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6870fi
6871
6872case $host_os in
6873  darwin*)
6874    lock_old_archive_extraction=yes ;;
6875  *)
6876    lock_old_archive_extraction=no ;;
6877esac
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917# If no C compiler was specified, use CC.
6918LTCC=${LTCC-"$CC"}
6919
6920# If no C compiler flags were specified, use CFLAGS.
6921LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6922
6923# Allow CC to be a program name with arguments.
6924compiler=$CC
6925
6926
6927# Check for command to grab the raw symbol name followed by C symbol from nm.
6928{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6929printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6930if test ${lt_cv_sys_global_symbol_pipe+y}
6931then :
6932  printf %s "(cached) " >&6
6933else $as_nop
6934
6935# These are sane defaults that work on at least a few old systems.
6936# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6937
6938# Character class describing NM global symbol codes.
6939symcode='[BCDEGRST]'
6940
6941# Regexp to match symbols that can be accessed directly from C.
6942sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6943
6944# Define system-specific variables.
6945case $host_os in
6946aix*)
6947  symcode='[BCDT]'
6948  ;;
6949cygwin* | mingw* | pw32* | cegcc*)
6950  symcode='[ABCDGISTW]'
6951  ;;
6952hpux*)
6953  if test ia64 = "$host_cpu"; then
6954    symcode='[ABCDEGRST]'
6955  fi
6956  ;;
6957irix* | nonstopux*)
6958  symcode='[BCDEGRST]'
6959  ;;
6960osf*)
6961  symcode='[BCDEGQRST]'
6962  ;;
6963solaris*)
6964  symcode='[BDRT]'
6965  ;;
6966sco3.2v5*)
6967  symcode='[DT]'
6968  ;;
6969sysv4.2uw2*)
6970  symcode='[DT]'
6971  ;;
6972sysv5* | sco5v6* | unixware* | OpenUNIX*)
6973  symcode='[ABDT]'
6974  ;;
6975sysv4)
6976  symcode='[DFNSTU]'
6977  ;;
6978esac
6979
6980# If we're using GNU nm, then use its standard symbol codes.
6981case `$NM -V 2>&1` in
6982*GNU* | *'with BFD'*)
6983  symcode='[ABCDGIRSTW]' ;;
6984esac
6985
6986if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6987  # Gets list of data symbols to import.
6988  lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
6989  # Adjust the below global symbol transforms to fixup imported variables.
6990  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6991  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6992  lt_c_name_lib_hook="\
6993  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6994  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6995else
6996  # Disable hooks by default.
6997  lt_cv_sys_global_symbol_to_import=
6998  lt_cdecl_hook=
6999  lt_c_name_hook=
7000  lt_c_name_lib_hook=
7001fi
7002
7003# Transform an extracted symbol line into a proper C declaration.
7004# Some systems (esp. on ia64) link data and code symbols differently,
7005# so use this general approach.
7006lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7007$lt_cdecl_hook\
7008" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7009" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7010
7011# Transform an extracted symbol line into symbol name and symbol address
7012lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7013$lt_c_name_hook\
7014" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7015" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7016
7017# Transform an extracted symbol line into symbol name with lib prefix and
7018# symbol address.
7019lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7020$lt_c_name_lib_hook\
7021" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7022" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7023" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7024
7025# Handle CRLF in mingw tool chain
7026opt_cr=
7027case $build_os in
7028mingw*)
7029  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7030  ;;
7031esac
7032
7033# Try without a prefix underscore, then with it.
7034for ac_symprfx in "" "_"; do
7035
7036  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7037  symxfrm="\\1 $ac_symprfx\\2 \\2"
7038
7039  # Write the raw and C identifiers.
7040  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7041    # Fake it for dumpbin and say T for any non-static function,
7042    # D for any global variable and I for any imported variable.
7043    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7044    # which start with @ or ?.
7045    lt_cv_sys_global_symbol_pipe="$AWK '"\
7046"     {last_section=section; section=\$ 3};"\
7047"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7048"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7049"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7050"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7051"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7052"     \$ 0!~/External *\|/{next};"\
7053"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7054"     {if(hide[section]) next};"\
7055"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7056"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7057"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7058"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7059"     ' prfx=^$ac_symprfx"
7060  else
7061    lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7062  fi
7063  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7064
7065  # Check to see that the pipe works correctly.
7066  pipe_works=no
7067
7068  rm -f conftest*
7069  cat > conftest.$ac_ext <<_LT_EOF
7070#ifdef __cplusplus
7071extern "C" {
7072#endif
7073char nm_test_var;
7074void nm_test_func(void);
7075void nm_test_func(void){}
7076#ifdef __cplusplus
7077}
7078#endif
7079int main(){nm_test_var='a';nm_test_func();return(0);}
7080_LT_EOF
7081
7082  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7083  (eval $ac_compile) 2>&5
7084  ac_status=$?
7085  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7086  test $ac_status = 0; }; then
7087    # Now try to grab the symbols.
7088    nlist=conftest.nm
7089    $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7090    if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7091      # Try sorting and uniquifying the output.
7092      if sort "$nlist" | uniq > "$nlist"T; then
7093	mv -f "$nlist"T "$nlist"
7094      else
7095	rm -f "$nlist"T
7096      fi
7097
7098      # Make sure that we snagged all the symbols we need.
7099      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7100	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7101	  cat <<_LT_EOF > conftest.$ac_ext
7102/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7103#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7104/* DATA imports from DLLs on WIN32 can't be const, because runtime
7105   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7106# define LT_DLSYM_CONST
7107#elif defined __osf__
7108/* This system does not cope well with relocations in const data.  */
7109# define LT_DLSYM_CONST
7110#else
7111# define LT_DLSYM_CONST const
7112#endif
7113
7114#ifdef __cplusplus
7115extern "C" {
7116#endif
7117
7118_LT_EOF
7119	  # Now generate the symbol file.
7120	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7121
7122	  cat <<_LT_EOF >> conftest.$ac_ext
7123
7124/* The mapping between symbol names and symbols.  */
7125LT_DLSYM_CONST struct {
7126  const char *name;
7127  void       *address;
7128}
7129lt__PROGRAM__LTX_preloaded_symbols[] =
7130{
7131  { "@PROGRAM@", (void *) 0 },
7132_LT_EOF
7133	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7134	  cat <<\_LT_EOF >> conftest.$ac_ext
7135  {0, (void *) 0}
7136};
7137
7138/* This works around a problem in FreeBSD linker */
7139#ifdef FREEBSD_WORKAROUND
7140static const void *lt_preloaded_setup() {
7141  return lt__PROGRAM__LTX_preloaded_symbols;
7142}
7143#endif
7144
7145#ifdef __cplusplus
7146}
7147#endif
7148_LT_EOF
7149	  # Now try linking the two files.
7150	  mv conftest.$ac_objext conftstm.$ac_objext
7151	  lt_globsym_save_LIBS=$LIBS
7152	  lt_globsym_save_CFLAGS=$CFLAGS
7153	  LIBS=conftstm.$ac_objext
7154	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7155	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7156  (eval $ac_link) 2>&5
7157  ac_status=$?
7158  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7159  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7160	    pipe_works=yes
7161	  fi
7162	  LIBS=$lt_globsym_save_LIBS
7163	  CFLAGS=$lt_globsym_save_CFLAGS
7164	else
7165	  echo "cannot find nm_test_func in $nlist" >&5
7166	fi
7167      else
7168	echo "cannot find nm_test_var in $nlist" >&5
7169      fi
7170    else
7171      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7172    fi
7173  else
7174    echo "$progname: failed program was:" >&5
7175    cat conftest.$ac_ext >&5
7176  fi
7177  rm -rf conftest* conftst*
7178
7179  # Do not use the global_symbol_pipe unless it works.
7180  if test yes = "$pipe_works"; then
7181    break
7182  else
7183    lt_cv_sys_global_symbol_pipe=
7184  fi
7185done
7186
7187fi
7188
7189if test -z "$lt_cv_sys_global_symbol_pipe"; then
7190  lt_cv_sys_global_symbol_to_cdecl=
7191fi
7192if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7193  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7194printf "%s\n" "failed" >&6; }
7195else
7196  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7197printf "%s\n" "ok" >&6; }
7198fi
7199
7200# Response file support.
7201if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7202  nm_file_list_spec='@'
7203elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7204  nm_file_list_spec='@'
7205fi
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7244printf %s "checking for sysroot... " >&6; }
7245
7246# Check whether --with-sysroot was given.
7247if test ${with_sysroot+y}
7248then :
7249  withval=$with_sysroot;
7250else $as_nop
7251  with_sysroot=no
7252fi
7253
7254
7255lt_sysroot=
7256case $with_sysroot in #(
7257 yes)
7258   if test yes = "$GCC"; then
7259     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7260   fi
7261   ;; #(
7262 /*)
7263   lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7264   ;; #(
7265 no|'')
7266   ;; #(
7267 *)
7268   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7269printf "%s\n" "$with_sysroot" >&6; }
7270   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7271   ;;
7272esac
7273
7274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7275printf "%s\n" "${lt_sysroot:-no}" >&6; }
7276
7277
7278
7279
7280
7281{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7282printf %s "checking for a working dd... " >&6; }
7283if test ${ac_cv_path_lt_DD+y}
7284then :
7285  printf %s "(cached) " >&6
7286else $as_nop
7287  printf 0123456789abcdef0123456789abcdef >conftest.i
7288cat conftest.i conftest.i >conftest2.i
7289: ${lt_DD:=$DD}
7290if test -z "$lt_DD"; then
7291  ac_path_lt_DD_found=false
7292  # Loop through the user's path and test for each of PROGNAME-LIST
7293  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7294for as_dir in $PATH
7295do
7296  IFS=$as_save_IFS
7297  case $as_dir in #(((
7298    '') as_dir=./ ;;
7299    */) ;;
7300    *) as_dir=$as_dir/ ;;
7301  esac
7302    for ac_prog in dd
7303   do
7304    for ac_exec_ext in '' $ac_executable_extensions; do
7305      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7306      as_fn_executable_p "$ac_path_lt_DD" || continue
7307if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7308  cmp -s conftest.i conftest.out \
7309  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7310fi
7311      $ac_path_lt_DD_found && break 3
7312    done
7313  done
7314  done
7315IFS=$as_save_IFS
7316  if test -z "$ac_cv_path_lt_DD"; then
7317    :
7318  fi
7319else
7320  ac_cv_path_lt_DD=$lt_DD
7321fi
7322
7323rm -f conftest.i conftest2.i conftest.out
7324fi
7325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7326printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7327
7328
7329{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7330printf %s "checking how to truncate binary pipes... " >&6; }
7331if test ${lt_cv_truncate_bin+y}
7332then :
7333  printf %s "(cached) " >&6
7334else $as_nop
7335  printf 0123456789abcdef0123456789abcdef >conftest.i
7336cat conftest.i conftest.i >conftest2.i
7337lt_cv_truncate_bin=
7338if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7339  cmp -s conftest.i conftest.out \
7340  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7341fi
7342rm -f conftest.i conftest2.i conftest.out
7343test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7344fi
7345{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7346printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7347
7348
7349
7350
7351
7352
7353
7354# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7355func_cc_basename ()
7356{
7357    for cc_temp in $*""; do
7358      case $cc_temp in
7359        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7360        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7361        \-*) ;;
7362        *) break;;
7363      esac
7364    done
7365    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7366}
7367
7368# Check whether --enable-libtool-lock was given.
7369if test ${enable_libtool_lock+y}
7370then :
7371  enableval=$enable_libtool_lock;
7372fi
7373
7374test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7375
7376# Some flags need to be propagated to the compiler or linker for good
7377# libtool support.
7378case $host in
7379ia64-*-hpux*)
7380  # Find out what ABI is being produced by ac_compile, and set mode
7381  # options accordingly.
7382  echo 'int i;' > conftest.$ac_ext
7383  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7384  (eval $ac_compile) 2>&5
7385  ac_status=$?
7386  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7387  test $ac_status = 0; }; then
7388    case `$FILECMD conftest.$ac_objext` in
7389      *ELF-32*)
7390	HPUX_IA64_MODE=32
7391	;;
7392      *ELF-64*)
7393	HPUX_IA64_MODE=64
7394	;;
7395    esac
7396  fi
7397  rm -rf conftest*
7398  ;;
7399*-*-irix6*)
7400  # Find out what ABI is being produced by ac_compile, and set linker
7401  # options accordingly.
7402  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7403  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7404  (eval $ac_compile) 2>&5
7405  ac_status=$?
7406  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7407  test $ac_status = 0; }; then
7408    if test yes = "$lt_cv_prog_gnu_ld"; then
7409      case `$FILECMD conftest.$ac_objext` in
7410	*32-bit*)
7411	  LD="${LD-ld} -melf32bsmip"
7412	  ;;
7413	*N32*)
7414	  LD="${LD-ld} -melf32bmipn32"
7415	  ;;
7416	*64-bit*)
7417	  LD="${LD-ld} -melf64bmip"
7418	;;
7419      esac
7420    else
7421      case `$FILECMD conftest.$ac_objext` in
7422	*32-bit*)
7423	  LD="${LD-ld} -32"
7424	  ;;
7425	*N32*)
7426	  LD="${LD-ld} -n32"
7427	  ;;
7428	*64-bit*)
7429	  LD="${LD-ld} -64"
7430	  ;;
7431      esac
7432    fi
7433  fi
7434  rm -rf conftest*
7435  ;;
7436
7437mips64*-*linux*)
7438  # Find out what ABI is being produced by ac_compile, and set linker
7439  # options accordingly.
7440  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7441  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7442  (eval $ac_compile) 2>&5
7443  ac_status=$?
7444  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7445  test $ac_status = 0; }; then
7446    emul=elf
7447    case `$FILECMD conftest.$ac_objext` in
7448      *32-bit*)
7449	emul="${emul}32"
7450	;;
7451      *64-bit*)
7452	emul="${emul}64"
7453	;;
7454    esac
7455    case `$FILECMD conftest.$ac_objext` in
7456      *MSB*)
7457	emul="${emul}btsmip"
7458	;;
7459      *LSB*)
7460	emul="${emul}ltsmip"
7461	;;
7462    esac
7463    case `$FILECMD conftest.$ac_objext` in
7464      *N32*)
7465	emul="${emul}n32"
7466	;;
7467    esac
7468    LD="${LD-ld} -m $emul"
7469  fi
7470  rm -rf conftest*
7471  ;;
7472
7473x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7474s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7475  # Find out what ABI is being produced by ac_compile, and set linker
7476  # options accordingly.  Note that the listed cases only cover the
7477  # situations where additional linker options are needed (such as when
7478  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7479  # vice versa); the common cases where no linker options are needed do
7480  # not appear in the list.
7481  echo 'int i;' > conftest.$ac_ext
7482  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7483  (eval $ac_compile) 2>&5
7484  ac_status=$?
7485  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7486  test $ac_status = 0; }; then
7487    case `$FILECMD conftest.o` in
7488      *32-bit*)
7489	case $host in
7490	  x86_64-*kfreebsd*-gnu)
7491	    LD="${LD-ld} -m elf_i386_fbsd"
7492	    ;;
7493	  x86_64-*linux*)
7494	    case `$FILECMD conftest.o` in
7495	      *x86-64*)
7496		LD="${LD-ld} -m elf32_x86_64"
7497		;;
7498	      *)
7499		LD="${LD-ld} -m elf_i386"
7500		;;
7501	    esac
7502	    ;;
7503	  powerpc64le-*linux*)
7504	    LD="${LD-ld} -m elf32lppclinux"
7505	    ;;
7506	  powerpc64-*linux*)
7507	    LD="${LD-ld} -m elf32ppclinux"
7508	    ;;
7509	  s390x-*linux*)
7510	    LD="${LD-ld} -m elf_s390"
7511	    ;;
7512	  sparc64-*linux*)
7513	    LD="${LD-ld} -m elf32_sparc"
7514	    ;;
7515	esac
7516	;;
7517      *64-bit*)
7518	case $host in
7519	  x86_64-*kfreebsd*-gnu)
7520	    LD="${LD-ld} -m elf_x86_64_fbsd"
7521	    ;;
7522	  x86_64-*linux*)
7523	    LD="${LD-ld} -m elf_x86_64"
7524	    ;;
7525	  powerpcle-*linux*)
7526	    LD="${LD-ld} -m elf64lppc"
7527	    ;;
7528	  powerpc-*linux*)
7529	    LD="${LD-ld} -m elf64ppc"
7530	    ;;
7531	  s390*-*linux*|s390*-*tpf*)
7532	    LD="${LD-ld} -m elf64_s390"
7533	    ;;
7534	  sparc*-*linux*)
7535	    LD="${LD-ld} -m elf64_sparc"
7536	    ;;
7537	esac
7538	;;
7539    esac
7540  fi
7541  rm -rf conftest*
7542  ;;
7543
7544*-*-sco3.2v5*)
7545  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7546  SAVE_CFLAGS=$CFLAGS
7547  CFLAGS="$CFLAGS -belf"
7548  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7549printf %s "checking whether the C compiler needs -belf... " >&6; }
7550if test ${lt_cv_cc_needs_belf+y}
7551then :
7552  printf %s "(cached) " >&6
7553else $as_nop
7554  ac_ext=c
7555ac_cpp='$CPP $CPPFLAGS'
7556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7558ac_compiler_gnu=$ac_cv_c_compiler_gnu
7559
7560     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7561/* end confdefs.h.  */
7562
7563int
7564main (void)
7565{
7566
7567  ;
7568  return 0;
7569}
7570_ACEOF
7571if ac_fn_c_try_link "$LINENO"
7572then :
7573  lt_cv_cc_needs_belf=yes
7574else $as_nop
7575  lt_cv_cc_needs_belf=no
7576fi
7577rm -f core conftest.err conftest.$ac_objext conftest.beam \
7578    conftest$ac_exeext conftest.$ac_ext
7579     ac_ext=c
7580ac_cpp='$CPP $CPPFLAGS'
7581ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7582ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7583ac_compiler_gnu=$ac_cv_c_compiler_gnu
7584
7585fi
7586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7587printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7588  if test yes != "$lt_cv_cc_needs_belf"; then
7589    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7590    CFLAGS=$SAVE_CFLAGS
7591  fi
7592  ;;
7593*-*solaris*)
7594  # Find out what ABI is being produced by ac_compile, and set linker
7595  # options accordingly.
7596  echo 'int i;' > conftest.$ac_ext
7597  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7598  (eval $ac_compile) 2>&5
7599  ac_status=$?
7600  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7601  test $ac_status = 0; }; then
7602    case `$FILECMD conftest.o` in
7603    *64-bit*)
7604      case $lt_cv_prog_gnu_ld in
7605      yes*)
7606        case $host in
7607        i?86-*-solaris*|x86_64-*-solaris*)
7608          LD="${LD-ld} -m elf_x86_64"
7609          ;;
7610        sparc*-*-solaris*)
7611          LD="${LD-ld} -m elf64_sparc"
7612          ;;
7613        esac
7614        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7615        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7616          LD=${LD-ld}_sol2
7617        fi
7618        ;;
7619      *)
7620	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7621	  LD="${LD-ld} -64"
7622	fi
7623	;;
7624      esac
7625      ;;
7626    esac
7627  fi
7628  rm -rf conftest*
7629  ;;
7630esac
7631
7632need_locks=$enable_libtool_lock
7633
7634if test -n "$ac_tool_prefix"; then
7635  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7636set dummy ${ac_tool_prefix}mt; ac_word=$2
7637{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7638printf %s "checking for $ac_word... " >&6; }
7639if test ${ac_cv_prog_MANIFEST_TOOL+y}
7640then :
7641  printf %s "(cached) " >&6
7642else $as_nop
7643  if test -n "$MANIFEST_TOOL"; then
7644  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7645else
7646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7647for as_dir in $PATH
7648do
7649  IFS=$as_save_IFS
7650  case $as_dir in #(((
7651    '') as_dir=./ ;;
7652    */) ;;
7653    *) as_dir=$as_dir/ ;;
7654  esac
7655    for ac_exec_ext in '' $ac_executable_extensions; do
7656  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7657    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7658    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7659    break 2
7660  fi
7661done
7662  done
7663IFS=$as_save_IFS
7664
7665fi
7666fi
7667MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7668if test -n "$MANIFEST_TOOL"; then
7669  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7670printf "%s\n" "$MANIFEST_TOOL" >&6; }
7671else
7672  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7673printf "%s\n" "no" >&6; }
7674fi
7675
7676
7677fi
7678if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7679  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7680  # Extract the first word of "mt", so it can be a program name with args.
7681set dummy mt; ac_word=$2
7682{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7683printf %s "checking for $ac_word... " >&6; }
7684if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7685then :
7686  printf %s "(cached) " >&6
7687else $as_nop
7688  if test -n "$ac_ct_MANIFEST_TOOL"; then
7689  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7690else
7691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7692for as_dir in $PATH
7693do
7694  IFS=$as_save_IFS
7695  case $as_dir in #(((
7696    '') as_dir=./ ;;
7697    */) ;;
7698    *) as_dir=$as_dir/ ;;
7699  esac
7700    for ac_exec_ext in '' $ac_executable_extensions; do
7701  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7702    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7703    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7704    break 2
7705  fi
7706done
7707  done
7708IFS=$as_save_IFS
7709
7710fi
7711fi
7712ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7713if test -n "$ac_ct_MANIFEST_TOOL"; then
7714  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7715printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7716else
7717  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7718printf "%s\n" "no" >&6; }
7719fi
7720
7721  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7722    MANIFEST_TOOL=":"
7723  else
7724    case $cross_compiling:$ac_tool_warned in
7725yes:)
7726{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7727printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7728ac_tool_warned=yes ;;
7729esac
7730    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7731  fi
7732else
7733  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7734fi
7735
7736test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7738printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7739if test ${lt_cv_path_mainfest_tool+y}
7740then :
7741  printf %s "(cached) " >&6
7742else $as_nop
7743  lt_cv_path_mainfest_tool=no
7744  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7745  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7746  cat conftest.err >&5
7747  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7748    lt_cv_path_mainfest_tool=yes
7749  fi
7750  rm -f conftest*
7751fi
7752{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7753printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7754if test yes != "$lt_cv_path_mainfest_tool"; then
7755  MANIFEST_TOOL=:
7756fi
7757
7758
7759
7760
7761
7762
7763  case $host_os in
7764    rhapsody* | darwin*)
7765    if test -n "$ac_tool_prefix"; then
7766  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7767set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7769printf %s "checking for $ac_word... " >&6; }
7770if test ${ac_cv_prog_DSYMUTIL+y}
7771then :
7772  printf %s "(cached) " >&6
7773else $as_nop
7774  if test -n "$DSYMUTIL"; then
7775  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7776else
7777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7778for as_dir in $PATH
7779do
7780  IFS=$as_save_IFS
7781  case $as_dir in #(((
7782    '') as_dir=./ ;;
7783    */) ;;
7784    *) as_dir=$as_dir/ ;;
7785  esac
7786    for ac_exec_ext in '' $ac_executable_extensions; do
7787  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7788    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7789    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7790    break 2
7791  fi
7792done
7793  done
7794IFS=$as_save_IFS
7795
7796fi
7797fi
7798DSYMUTIL=$ac_cv_prog_DSYMUTIL
7799if test -n "$DSYMUTIL"; then
7800  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7801printf "%s\n" "$DSYMUTIL" >&6; }
7802else
7803  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7804printf "%s\n" "no" >&6; }
7805fi
7806
7807
7808fi
7809if test -z "$ac_cv_prog_DSYMUTIL"; then
7810  ac_ct_DSYMUTIL=$DSYMUTIL
7811  # Extract the first word of "dsymutil", so it can be a program name with args.
7812set dummy dsymutil; ac_word=$2
7813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7814printf %s "checking for $ac_word... " >&6; }
7815if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7816then :
7817  printf %s "(cached) " >&6
7818else $as_nop
7819  if test -n "$ac_ct_DSYMUTIL"; then
7820  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7821else
7822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7823for as_dir in $PATH
7824do
7825  IFS=$as_save_IFS
7826  case $as_dir in #(((
7827    '') as_dir=./ ;;
7828    */) ;;
7829    *) as_dir=$as_dir/ ;;
7830  esac
7831    for ac_exec_ext in '' $ac_executable_extensions; do
7832  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7833    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7834    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7835    break 2
7836  fi
7837done
7838  done
7839IFS=$as_save_IFS
7840
7841fi
7842fi
7843ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7844if test -n "$ac_ct_DSYMUTIL"; then
7845  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7846printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7847else
7848  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7849printf "%s\n" "no" >&6; }
7850fi
7851
7852  if test "x$ac_ct_DSYMUTIL" = x; then
7853    DSYMUTIL=":"
7854  else
7855    case $cross_compiling:$ac_tool_warned in
7856yes:)
7857{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7858printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7859ac_tool_warned=yes ;;
7860esac
7861    DSYMUTIL=$ac_ct_DSYMUTIL
7862  fi
7863else
7864  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7865fi
7866
7867    if test -n "$ac_tool_prefix"; then
7868  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7869set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7870{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7871printf %s "checking for $ac_word... " >&6; }
7872if test ${ac_cv_prog_NMEDIT+y}
7873then :
7874  printf %s "(cached) " >&6
7875else $as_nop
7876  if test -n "$NMEDIT"; then
7877  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7878else
7879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7880for as_dir in $PATH
7881do
7882  IFS=$as_save_IFS
7883  case $as_dir in #(((
7884    '') as_dir=./ ;;
7885    */) ;;
7886    *) as_dir=$as_dir/ ;;
7887  esac
7888    for ac_exec_ext in '' $ac_executable_extensions; do
7889  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7890    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7891    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7892    break 2
7893  fi
7894done
7895  done
7896IFS=$as_save_IFS
7897
7898fi
7899fi
7900NMEDIT=$ac_cv_prog_NMEDIT
7901if test -n "$NMEDIT"; then
7902  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7903printf "%s\n" "$NMEDIT" >&6; }
7904else
7905  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7906printf "%s\n" "no" >&6; }
7907fi
7908
7909
7910fi
7911if test -z "$ac_cv_prog_NMEDIT"; then
7912  ac_ct_NMEDIT=$NMEDIT
7913  # Extract the first word of "nmedit", so it can be a program name with args.
7914set dummy nmedit; ac_word=$2
7915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7916printf %s "checking for $ac_word... " >&6; }
7917if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7918then :
7919  printf %s "(cached) " >&6
7920else $as_nop
7921  if test -n "$ac_ct_NMEDIT"; then
7922  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7923else
7924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7925for as_dir in $PATH
7926do
7927  IFS=$as_save_IFS
7928  case $as_dir in #(((
7929    '') as_dir=./ ;;
7930    */) ;;
7931    *) as_dir=$as_dir/ ;;
7932  esac
7933    for ac_exec_ext in '' $ac_executable_extensions; do
7934  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7935    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7936    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7937    break 2
7938  fi
7939done
7940  done
7941IFS=$as_save_IFS
7942
7943fi
7944fi
7945ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7946if test -n "$ac_ct_NMEDIT"; then
7947  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7948printf "%s\n" "$ac_ct_NMEDIT" >&6; }
7949else
7950  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7951printf "%s\n" "no" >&6; }
7952fi
7953
7954  if test "x$ac_ct_NMEDIT" = x; then
7955    NMEDIT=":"
7956  else
7957    case $cross_compiling:$ac_tool_warned in
7958yes:)
7959{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7960printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7961ac_tool_warned=yes ;;
7962esac
7963    NMEDIT=$ac_ct_NMEDIT
7964  fi
7965else
7966  NMEDIT="$ac_cv_prog_NMEDIT"
7967fi
7968
7969    if test -n "$ac_tool_prefix"; then
7970  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7971set dummy ${ac_tool_prefix}lipo; ac_word=$2
7972{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7973printf %s "checking for $ac_word... " >&6; }
7974if test ${ac_cv_prog_LIPO+y}
7975then :
7976  printf %s "(cached) " >&6
7977else $as_nop
7978  if test -n "$LIPO"; then
7979  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7980else
7981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7982for as_dir in $PATH
7983do
7984  IFS=$as_save_IFS
7985  case $as_dir in #(((
7986    '') as_dir=./ ;;
7987    */) ;;
7988    *) as_dir=$as_dir/ ;;
7989  esac
7990    for ac_exec_ext in '' $ac_executable_extensions; do
7991  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7992    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7993    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7994    break 2
7995  fi
7996done
7997  done
7998IFS=$as_save_IFS
7999
8000fi
8001fi
8002LIPO=$ac_cv_prog_LIPO
8003if test -n "$LIPO"; then
8004  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8005printf "%s\n" "$LIPO" >&6; }
8006else
8007  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8008printf "%s\n" "no" >&6; }
8009fi
8010
8011
8012fi
8013if test -z "$ac_cv_prog_LIPO"; then
8014  ac_ct_LIPO=$LIPO
8015  # Extract the first word of "lipo", so it can be a program name with args.
8016set dummy lipo; ac_word=$2
8017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8018printf %s "checking for $ac_word... " >&6; }
8019if test ${ac_cv_prog_ac_ct_LIPO+y}
8020then :
8021  printf %s "(cached) " >&6
8022else $as_nop
8023  if test -n "$ac_ct_LIPO"; then
8024  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8025else
8026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8027for as_dir in $PATH
8028do
8029  IFS=$as_save_IFS
8030  case $as_dir in #(((
8031    '') as_dir=./ ;;
8032    */) ;;
8033    *) as_dir=$as_dir/ ;;
8034  esac
8035    for ac_exec_ext in '' $ac_executable_extensions; do
8036  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8037    ac_cv_prog_ac_ct_LIPO="lipo"
8038    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8039    break 2
8040  fi
8041done
8042  done
8043IFS=$as_save_IFS
8044
8045fi
8046fi
8047ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8048if test -n "$ac_ct_LIPO"; then
8049  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8050printf "%s\n" "$ac_ct_LIPO" >&6; }
8051else
8052  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8053printf "%s\n" "no" >&6; }
8054fi
8055
8056  if test "x$ac_ct_LIPO" = x; then
8057    LIPO=":"
8058  else
8059    case $cross_compiling:$ac_tool_warned in
8060yes:)
8061{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8062printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8063ac_tool_warned=yes ;;
8064esac
8065    LIPO=$ac_ct_LIPO
8066  fi
8067else
8068  LIPO="$ac_cv_prog_LIPO"
8069fi
8070
8071    if test -n "$ac_tool_prefix"; then
8072  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8073set dummy ${ac_tool_prefix}otool; ac_word=$2
8074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8075printf %s "checking for $ac_word... " >&6; }
8076if test ${ac_cv_prog_OTOOL+y}
8077then :
8078  printf %s "(cached) " >&6
8079else $as_nop
8080  if test -n "$OTOOL"; then
8081  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8082else
8083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8084for as_dir in $PATH
8085do
8086  IFS=$as_save_IFS
8087  case $as_dir in #(((
8088    '') as_dir=./ ;;
8089    */) ;;
8090    *) as_dir=$as_dir/ ;;
8091  esac
8092    for ac_exec_ext in '' $ac_executable_extensions; do
8093  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8094    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8095    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8096    break 2
8097  fi
8098done
8099  done
8100IFS=$as_save_IFS
8101
8102fi
8103fi
8104OTOOL=$ac_cv_prog_OTOOL
8105if test -n "$OTOOL"; then
8106  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8107printf "%s\n" "$OTOOL" >&6; }
8108else
8109  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8110printf "%s\n" "no" >&6; }
8111fi
8112
8113
8114fi
8115if test -z "$ac_cv_prog_OTOOL"; then
8116  ac_ct_OTOOL=$OTOOL
8117  # Extract the first word of "otool", so it can be a program name with args.
8118set dummy otool; ac_word=$2
8119{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8120printf %s "checking for $ac_word... " >&6; }
8121if test ${ac_cv_prog_ac_ct_OTOOL+y}
8122then :
8123  printf %s "(cached) " >&6
8124else $as_nop
8125  if test -n "$ac_ct_OTOOL"; then
8126  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8127else
8128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8129for as_dir in $PATH
8130do
8131  IFS=$as_save_IFS
8132  case $as_dir in #(((
8133    '') as_dir=./ ;;
8134    */) ;;
8135    *) as_dir=$as_dir/ ;;
8136  esac
8137    for ac_exec_ext in '' $ac_executable_extensions; do
8138  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8139    ac_cv_prog_ac_ct_OTOOL="otool"
8140    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8141    break 2
8142  fi
8143done
8144  done
8145IFS=$as_save_IFS
8146
8147fi
8148fi
8149ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8150if test -n "$ac_ct_OTOOL"; then
8151  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8152printf "%s\n" "$ac_ct_OTOOL" >&6; }
8153else
8154  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8155printf "%s\n" "no" >&6; }
8156fi
8157
8158  if test "x$ac_ct_OTOOL" = x; then
8159    OTOOL=":"
8160  else
8161    case $cross_compiling:$ac_tool_warned in
8162yes:)
8163{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8164printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8165ac_tool_warned=yes ;;
8166esac
8167    OTOOL=$ac_ct_OTOOL
8168  fi
8169else
8170  OTOOL="$ac_cv_prog_OTOOL"
8171fi
8172
8173    if test -n "$ac_tool_prefix"; then
8174  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8175set dummy ${ac_tool_prefix}otool64; ac_word=$2
8176{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8177printf %s "checking for $ac_word... " >&6; }
8178if test ${ac_cv_prog_OTOOL64+y}
8179then :
8180  printf %s "(cached) " >&6
8181else $as_nop
8182  if test -n "$OTOOL64"; then
8183  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8184else
8185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8186for as_dir in $PATH
8187do
8188  IFS=$as_save_IFS
8189  case $as_dir in #(((
8190    '') as_dir=./ ;;
8191    */) ;;
8192    *) as_dir=$as_dir/ ;;
8193  esac
8194    for ac_exec_ext in '' $ac_executable_extensions; do
8195  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8196    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8197    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8198    break 2
8199  fi
8200done
8201  done
8202IFS=$as_save_IFS
8203
8204fi
8205fi
8206OTOOL64=$ac_cv_prog_OTOOL64
8207if test -n "$OTOOL64"; then
8208  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8209printf "%s\n" "$OTOOL64" >&6; }
8210else
8211  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8212printf "%s\n" "no" >&6; }
8213fi
8214
8215
8216fi
8217if test -z "$ac_cv_prog_OTOOL64"; then
8218  ac_ct_OTOOL64=$OTOOL64
8219  # Extract the first word of "otool64", so it can be a program name with args.
8220set dummy otool64; ac_word=$2
8221{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8222printf %s "checking for $ac_word... " >&6; }
8223if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8224then :
8225  printf %s "(cached) " >&6
8226else $as_nop
8227  if test -n "$ac_ct_OTOOL64"; then
8228  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8229else
8230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8231for as_dir in $PATH
8232do
8233  IFS=$as_save_IFS
8234  case $as_dir in #(((
8235    '') as_dir=./ ;;
8236    */) ;;
8237    *) as_dir=$as_dir/ ;;
8238  esac
8239    for ac_exec_ext in '' $ac_executable_extensions; do
8240  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8241    ac_cv_prog_ac_ct_OTOOL64="otool64"
8242    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8243    break 2
8244  fi
8245done
8246  done
8247IFS=$as_save_IFS
8248
8249fi
8250fi
8251ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8252if test -n "$ac_ct_OTOOL64"; then
8253  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8254printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8255else
8256  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8257printf "%s\n" "no" >&6; }
8258fi
8259
8260  if test "x$ac_ct_OTOOL64" = x; then
8261    OTOOL64=":"
8262  else
8263    case $cross_compiling:$ac_tool_warned in
8264yes:)
8265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8266printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8267ac_tool_warned=yes ;;
8268esac
8269    OTOOL64=$ac_ct_OTOOL64
8270  fi
8271else
8272  OTOOL64="$ac_cv_prog_OTOOL64"
8273fi
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8302printf %s "checking for -single_module linker flag... " >&6; }
8303if test ${lt_cv_apple_cc_single_mod+y}
8304then :
8305  printf %s "(cached) " >&6
8306else $as_nop
8307  lt_cv_apple_cc_single_mod=no
8308      if test -z "$LT_MULTI_MODULE"; then
8309	# By default we will add the -single_module flag. You can override
8310	# by either setting the environment variable LT_MULTI_MODULE
8311	# non-empty at configure time, or by adding -multi_module to the
8312	# link flags.
8313	rm -rf libconftest.dylib*
8314	echo "int foo(void){return 1;}" > conftest.c
8315	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8316-dynamiclib -Wl,-single_module conftest.c" >&5
8317	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8318	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8319        _lt_result=$?
8320	# If there is a non-empty error log, and "single_module"
8321	# appears in it, assume the flag caused a linker warning
8322        if test -s conftest.err && $GREP single_module conftest.err; then
8323	  cat conftest.err >&5
8324	# Otherwise, if the output was created with a 0 exit code from
8325	# the compiler, it worked.
8326	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8327	  lt_cv_apple_cc_single_mod=yes
8328	else
8329	  cat conftest.err >&5
8330	fi
8331	rm -rf libconftest.dylib*
8332	rm -f conftest.*
8333      fi
8334fi
8335{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8336printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8337
8338    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8339printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8340if test ${lt_cv_ld_exported_symbols_list+y}
8341then :
8342  printf %s "(cached) " >&6
8343else $as_nop
8344  lt_cv_ld_exported_symbols_list=no
8345      save_LDFLAGS=$LDFLAGS
8346      echo "_main" > conftest.sym
8347      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8348      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8349/* end confdefs.h.  */
8350
8351int
8352main (void)
8353{
8354
8355  ;
8356  return 0;
8357}
8358_ACEOF
8359if ac_fn_c_try_link "$LINENO"
8360then :
8361  lt_cv_ld_exported_symbols_list=yes
8362else $as_nop
8363  lt_cv_ld_exported_symbols_list=no
8364fi
8365rm -f core conftest.err conftest.$ac_objext conftest.beam \
8366    conftest$ac_exeext conftest.$ac_ext
8367	LDFLAGS=$save_LDFLAGS
8368
8369fi
8370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8371printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8372
8373    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8374printf %s "checking for -force_load linker flag... " >&6; }
8375if test ${lt_cv_ld_force_load+y}
8376then :
8377  printf %s "(cached) " >&6
8378else $as_nop
8379  lt_cv_ld_force_load=no
8380      cat > conftest.c << _LT_EOF
8381int forced_loaded() { return 2;}
8382_LT_EOF
8383      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8384      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8385      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8386      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8387      echo "$RANLIB libconftest.a" >&5
8388      $RANLIB libconftest.a 2>&5
8389      cat > conftest.c << _LT_EOF
8390int main() { return 0;}
8391_LT_EOF
8392      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8393      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8394      _lt_result=$?
8395      if test -s conftest.err && $GREP force_load conftest.err; then
8396	cat conftest.err >&5
8397      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8398	lt_cv_ld_force_load=yes
8399      else
8400	cat conftest.err >&5
8401      fi
8402        rm -f conftest.err libconftest.a conftest conftest.c
8403        rm -rf conftest.dSYM
8404
8405fi
8406{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8407printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8408    case $host_os in
8409    rhapsody* | darwin1.[012])
8410      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8411    darwin1.*)
8412      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8413    darwin*)
8414      case $MACOSX_DEPLOYMENT_TARGET,$host in
8415        10.[012],*|,*powerpc*-darwin[5-8]*)
8416          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8417        *)
8418          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8419      esac
8420    ;;
8421  esac
8422    if test yes = "$lt_cv_apple_cc_single_mod"; then
8423      _lt_dar_single_mod='$single_module'
8424    fi
8425    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8426      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8427    else
8428      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8429    fi
8430    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8431      _lt_dsymutil='~$DSYMUTIL $lib || :'
8432    else
8433      _lt_dsymutil=
8434    fi
8435    ;;
8436  esac
8437
8438# func_munge_path_list VARIABLE PATH
8439# -----------------------------------
8440# VARIABLE is name of variable containing _space_ separated list of
8441# directories to be munged by the contents of PATH, which is string
8442# having a format:
8443# "DIR[:DIR]:"
8444#       string "DIR[ DIR]" will be prepended to VARIABLE
8445# ":DIR[:DIR]"
8446#       string "DIR[ DIR]" will be appended to VARIABLE
8447# "DIRP[:DIRP]::[DIRA:]DIRA"
8448#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8449#       "DIRA[ DIRA]" will be appended to VARIABLE
8450# "DIR[:DIR]"
8451#       VARIABLE will be replaced by "DIR[ DIR]"
8452func_munge_path_list ()
8453{
8454    case x$2 in
8455    x)
8456        ;;
8457    *:)
8458        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8459        ;;
8460    x:*)
8461        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8462        ;;
8463    *::*)
8464        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8465        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8466        ;;
8467    *)
8468        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8469        ;;
8470    esac
8471}
8472
8473ac_header= ac_cache=
8474for ac_item in $ac_header_c_list
8475do
8476  if test $ac_cache; then
8477    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8478    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8479      printf "%s\n" "#define $ac_item 1" >> confdefs.h
8480    fi
8481    ac_header= ac_cache=
8482  elif test $ac_header; then
8483    ac_cache=$ac_item
8484  else
8485    ac_header=$ac_item
8486  fi
8487done
8488
8489
8490
8491
8492
8493
8494
8495
8496if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8497then :
8498
8499printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8500
8501fi
8502ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8503"
8504if test "x$ac_cv_header_dlfcn_h" = xyes
8505then :
8506  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8507
8508fi
8509
8510
8511
8512
8513
8514# Set options
8515
8516
8517
8518        enable_dlopen=no
8519
8520
8521  enable_win32_dll=no
8522
8523
8524            # Check whether --enable-shared was given.
8525if test ${enable_shared+y}
8526then :
8527  enableval=$enable_shared; p=${PACKAGE-default}
8528    case $enableval in
8529    yes) enable_shared=yes ;;
8530    no) enable_shared=no ;;
8531    *)
8532      enable_shared=no
8533      # Look at the argument we got.  We use all the common list separators.
8534      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8535      for pkg in $enableval; do
8536	IFS=$lt_save_ifs
8537	if test "X$pkg" = "X$p"; then
8538	  enable_shared=yes
8539	fi
8540      done
8541      IFS=$lt_save_ifs
8542      ;;
8543    esac
8544else $as_nop
8545  enable_shared=yes
8546fi
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556  # Check whether --enable-static was given.
8557if test ${enable_static+y}
8558then :
8559  enableval=$enable_static; p=${PACKAGE-default}
8560    case $enableval in
8561    yes) enable_static=yes ;;
8562    no) enable_static=no ;;
8563    *)
8564     enable_static=no
8565      # Look at the argument we got.  We use all the common list separators.
8566      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8567      for pkg in $enableval; do
8568	IFS=$lt_save_ifs
8569	if test "X$pkg" = "X$p"; then
8570	  enable_static=yes
8571	fi
8572      done
8573      IFS=$lt_save_ifs
8574      ;;
8575    esac
8576else $as_nop
8577  enable_static=yes
8578fi
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589# Check whether --with-pic was given.
8590if test ${with_pic+y}
8591then :
8592  withval=$with_pic; lt_p=${PACKAGE-default}
8593    case $withval in
8594    yes|no) pic_mode=$withval ;;
8595    *)
8596      pic_mode=default
8597      # Look at the argument we got.  We use all the common list separators.
8598      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8599      for lt_pkg in $withval; do
8600	IFS=$lt_save_ifs
8601	if test "X$lt_pkg" = "X$lt_p"; then
8602	  pic_mode=yes
8603	fi
8604      done
8605      IFS=$lt_save_ifs
8606      ;;
8607    esac
8608else $as_nop
8609  pic_mode=default
8610fi
8611
8612
8613
8614
8615
8616
8617
8618
8619  # Check whether --enable-fast-install was given.
8620if test ${enable_fast_install+y}
8621then :
8622  enableval=$enable_fast_install; p=${PACKAGE-default}
8623    case $enableval in
8624    yes) enable_fast_install=yes ;;
8625    no) enable_fast_install=no ;;
8626    *)
8627      enable_fast_install=no
8628      # Look at the argument we got.  We use all the common list separators.
8629      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8630      for pkg in $enableval; do
8631	IFS=$lt_save_ifs
8632	if test "X$pkg" = "X$p"; then
8633	  enable_fast_install=yes
8634	fi
8635      done
8636      IFS=$lt_save_ifs
8637      ;;
8638    esac
8639else $as_nop
8640  enable_fast_install=yes
8641fi
8642
8643
8644
8645
8646
8647
8648
8649
8650  shared_archive_member_spec=
8651case $host,$enable_shared in
8652power*-*-aix[5-9]*,yes)
8653  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8654printf %s "checking which variant of shared library versioning to provide... " >&6; }
8655
8656# Check whether --with-aix-soname was given.
8657if test ${with_aix_soname+y}
8658then :
8659  withval=$with_aix_soname; case $withval in
8660    aix|svr4|both)
8661      ;;
8662    *)
8663      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8664      ;;
8665    esac
8666    lt_cv_with_aix_soname=$with_aix_soname
8667else $as_nop
8668  if test ${lt_cv_with_aix_soname+y}
8669then :
8670  printf %s "(cached) " >&6
8671else $as_nop
8672  lt_cv_with_aix_soname=aix
8673fi
8674
8675    with_aix_soname=$lt_cv_with_aix_soname
8676fi
8677
8678  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8679printf "%s\n" "$with_aix_soname" >&6; }
8680  if test aix != "$with_aix_soname"; then
8681    # For the AIX way of multilib, we name the shared archive member
8682    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8683    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8684    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8685    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8686    if test 64 = "${OBJECT_MODE-32}"; then
8687      shared_archive_member_spec=shr_64
8688    else
8689      shared_archive_member_spec=shr
8690    fi
8691  fi
8692  ;;
8693*)
8694  with_aix_soname=aix
8695  ;;
8696esac
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707# This can be used to rebuild libtool when needed
8708LIBTOOL_DEPS=$ltmain
8709
8710# Always use our own libtool.
8711LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742test -z "$LN_S" && LN_S="ln -s"
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757if test -n "${ZSH_VERSION+set}"; then
8758   setopt NO_GLOB_SUBST
8759fi
8760
8761{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8762printf %s "checking for objdir... " >&6; }
8763if test ${lt_cv_objdir+y}
8764then :
8765  printf %s "(cached) " >&6
8766else $as_nop
8767  rm -f .libs 2>/dev/null
8768mkdir .libs 2>/dev/null
8769if test -d .libs; then
8770  lt_cv_objdir=.libs
8771else
8772  # MS-DOS does not allow filenames that begin with a dot.
8773  lt_cv_objdir=_libs
8774fi
8775rmdir .libs 2>/dev/null
8776fi
8777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8778printf "%s\n" "$lt_cv_objdir" >&6; }
8779objdir=$lt_cv_objdir
8780
8781
8782
8783
8784
8785printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8786
8787
8788
8789
8790case $host_os in
8791aix3*)
8792  # AIX sometimes has problems with the GCC collect2 program.  For some
8793  # reason, if we set the COLLECT_NAMES environment variable, the problems
8794  # vanish in a puff of smoke.
8795  if test set != "${COLLECT_NAMES+set}"; then
8796    COLLECT_NAMES=
8797    export COLLECT_NAMES
8798  fi
8799  ;;
8800esac
8801
8802# Global variables:
8803ofile=libtool
8804can_build_shared=yes
8805
8806# All known linkers require a '.a' archive for static linking (except MSVC and
8807# ICC, which need '.lib').
8808libext=a
8809
8810with_gnu_ld=$lt_cv_prog_gnu_ld
8811
8812old_CC=$CC
8813old_CFLAGS=$CFLAGS
8814
8815# Set sane defaults for various variables
8816test -z "$CC" && CC=cc
8817test -z "$LTCC" && LTCC=$CC
8818test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8819test -z "$LD" && LD=ld
8820test -z "$ac_objext" && ac_objext=o
8821
8822func_cc_basename $compiler
8823cc_basename=$func_cc_basename_result
8824
8825
8826# Only perform the check for file, if the check method requires it
8827test -z "$MAGIC_CMD" && MAGIC_CMD=file
8828case $deplibs_check_method in
8829file_magic*)
8830  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8831    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8832printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8833if test ${lt_cv_path_MAGIC_CMD+y}
8834then :
8835  printf %s "(cached) " >&6
8836else $as_nop
8837  case $MAGIC_CMD in
8838[\\/*] |  ?:[\\/]*)
8839  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8840  ;;
8841*)
8842  lt_save_MAGIC_CMD=$MAGIC_CMD
8843  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8844  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8845  for ac_dir in $ac_dummy; do
8846    IFS=$lt_save_ifs
8847    test -z "$ac_dir" && ac_dir=.
8848    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8849      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8850      if test -n "$file_magic_test_file"; then
8851	case $deplibs_check_method in
8852	"file_magic "*)
8853	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8854	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8855	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8856	    $EGREP "$file_magic_regex" > /dev/null; then
8857	    :
8858	  else
8859	    cat <<_LT_EOF 1>&2
8860
8861*** Warning: the command libtool uses to detect shared libraries,
8862*** $file_magic_cmd, produces output that libtool cannot recognize.
8863*** The result is that libtool may fail to recognize shared libraries
8864*** as such.  This will affect the creation of libtool libraries that
8865*** depend on shared libraries, but programs linked with such libtool
8866*** libraries will work regardless of this problem.  Nevertheless, you
8867*** may want to report the problem to your system manager and/or to
8868*** [email protected]
8869
8870_LT_EOF
8871	  fi ;;
8872	esac
8873      fi
8874      break
8875    fi
8876  done
8877  IFS=$lt_save_ifs
8878  MAGIC_CMD=$lt_save_MAGIC_CMD
8879  ;;
8880esac
8881fi
8882
8883MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8884if test -n "$MAGIC_CMD"; then
8885  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8886printf "%s\n" "$MAGIC_CMD" >&6; }
8887else
8888  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8889printf "%s\n" "no" >&6; }
8890fi
8891
8892
8893
8894
8895
8896if test -z "$lt_cv_path_MAGIC_CMD"; then
8897  if test -n "$ac_tool_prefix"; then
8898    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8899printf %s "checking for file... " >&6; }
8900if test ${lt_cv_path_MAGIC_CMD+y}
8901then :
8902  printf %s "(cached) " >&6
8903else $as_nop
8904  case $MAGIC_CMD in
8905[\\/*] |  ?:[\\/]*)
8906  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8907  ;;
8908*)
8909  lt_save_MAGIC_CMD=$MAGIC_CMD
8910  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8911  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8912  for ac_dir in $ac_dummy; do
8913    IFS=$lt_save_ifs
8914    test -z "$ac_dir" && ac_dir=.
8915    if test -f "$ac_dir/file"; then
8916      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8917      if test -n "$file_magic_test_file"; then
8918	case $deplibs_check_method in
8919	"file_magic "*)
8920	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8921	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8922	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8923	    $EGREP "$file_magic_regex" > /dev/null; then
8924	    :
8925	  else
8926	    cat <<_LT_EOF 1>&2
8927
8928*** Warning: the command libtool uses to detect shared libraries,
8929*** $file_magic_cmd, produces output that libtool cannot recognize.
8930*** The result is that libtool may fail to recognize shared libraries
8931*** as such.  This will affect the creation of libtool libraries that
8932*** depend on shared libraries, but programs linked with such libtool
8933*** libraries will work regardless of this problem.  Nevertheless, you
8934*** may want to report the problem to your system manager and/or to
8935*** [email protected]
8936
8937_LT_EOF
8938	  fi ;;
8939	esac
8940      fi
8941      break
8942    fi
8943  done
8944  IFS=$lt_save_ifs
8945  MAGIC_CMD=$lt_save_MAGIC_CMD
8946  ;;
8947esac
8948fi
8949
8950MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8951if test -n "$MAGIC_CMD"; then
8952  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8953printf "%s\n" "$MAGIC_CMD" >&6; }
8954else
8955  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8956printf "%s\n" "no" >&6; }
8957fi
8958
8959
8960  else
8961    MAGIC_CMD=:
8962  fi
8963fi
8964
8965  fi
8966  ;;
8967esac
8968
8969# Use C for the default configuration in the libtool script
8970
8971lt_save_CC=$CC
8972ac_ext=c
8973ac_cpp='$CPP $CPPFLAGS'
8974ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8975ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8976ac_compiler_gnu=$ac_cv_c_compiler_gnu
8977
8978
8979# Source file extension for C test sources.
8980ac_ext=c
8981
8982# Object file extension for compiled C test sources.
8983objext=o
8984objext=$objext
8985
8986# Code to be used in simple compile tests
8987lt_simple_compile_test_code="int some_variable = 0;"
8988
8989# Code to be used in simple link tests
8990lt_simple_link_test_code='int main(){return(0);}'
8991
8992
8993
8994
8995
8996
8997
8998# If no C compiler was specified, use CC.
8999LTCC=${LTCC-"$CC"}
9000
9001# If no C compiler flags were specified, use CFLAGS.
9002LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9003
9004# Allow CC to be a program name with arguments.
9005compiler=$CC
9006
9007# Save the default compiler, since it gets overwritten when the other
9008# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9009compiler_DEFAULT=$CC
9010
9011# save warnings/boilerplate of simple test code
9012ac_outfile=conftest.$ac_objext
9013echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9014eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9015_lt_compiler_boilerplate=`cat conftest.err`
9016$RM conftest*
9017
9018ac_outfile=conftest.$ac_objext
9019echo "$lt_simple_link_test_code" >conftest.$ac_ext
9020eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9021_lt_linker_boilerplate=`cat conftest.err`
9022$RM -r conftest*
9023
9024
9025if test -n "$compiler"; then
9026
9027lt_prog_compiler_no_builtin_flag=
9028
9029if test yes = "$GCC"; then
9030  case $cc_basename in
9031  nvcc*)
9032    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9033  *)
9034    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9035  esac
9036
9037  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9038printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9039if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9040then :
9041  printf %s "(cached) " >&6
9042else $as_nop
9043  lt_cv_prog_compiler_rtti_exceptions=no
9044   ac_outfile=conftest.$ac_objext
9045   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9046   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9047   # Insert the option either (1) after the last *FLAGS variable, or
9048   # (2) before a word containing "conftest.", or (3) at the end.
9049   # Note that $ac_compile itself does not contain backslashes and begins
9050   # with a dollar sign (not a hyphen), so the echo should work correctly.
9051   # The option is referenced via a variable to avoid confusing sed.
9052   lt_compile=`echo "$ac_compile" | $SED \
9053   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9054   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9055   -e 's:$: $lt_compiler_flag:'`
9056   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9057   (eval "$lt_compile" 2>conftest.err)
9058   ac_status=$?
9059   cat conftest.err >&5
9060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061   if (exit $ac_status) && test -s "$ac_outfile"; then
9062     # The compiler can only warn and ignore the option if not recognized
9063     # So say no if there are warnings other than the usual output.
9064     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9065     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9066     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9067       lt_cv_prog_compiler_rtti_exceptions=yes
9068     fi
9069   fi
9070   $RM conftest*
9071
9072fi
9073{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9074printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9075
9076if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9077    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9078else
9079    :
9080fi
9081
9082fi
9083
9084
9085
9086
9087
9088
9089  lt_prog_compiler_wl=
9090lt_prog_compiler_pic=
9091lt_prog_compiler_static=
9092
9093
9094  if test yes = "$GCC"; then
9095    lt_prog_compiler_wl='-Wl,'
9096    lt_prog_compiler_static='-static'
9097
9098    case $host_os in
9099      aix*)
9100      # All AIX code is PIC.
9101      if test ia64 = "$host_cpu"; then
9102	# AIX 5 now supports IA64 processor
9103	lt_prog_compiler_static='-Bstatic'
9104      fi
9105      lt_prog_compiler_pic='-fPIC'
9106      ;;
9107
9108    amigaos*)
9109      case $host_cpu in
9110      powerpc)
9111            # see comment about AmigaOS4 .so support
9112            lt_prog_compiler_pic='-fPIC'
9113        ;;
9114      m68k)
9115            # FIXME: we need at least 68020 code to build shared libraries, but
9116            # adding the '-m68020' flag to GCC prevents building anything better,
9117            # like '-m68040'.
9118            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9119        ;;
9120      esac
9121      ;;
9122
9123    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9124      # PIC is the default for these OSes.
9125      ;;
9126
9127    mingw* | cygwin* | pw32* | os2* | cegcc*)
9128      # This hack is so that the source file can tell whether it is being
9129      # built for inclusion in a dll (and should export symbols for example).
9130      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9131      # (--disable-auto-import) libraries
9132      lt_prog_compiler_pic='-DDLL_EXPORT'
9133      case $host_os in
9134      os2*)
9135	lt_prog_compiler_static='$wl-static'
9136	;;
9137      esac
9138      ;;
9139
9140    darwin* | rhapsody*)
9141      # PIC is the default on this platform
9142      # Common symbols not allowed in MH_DYLIB files
9143      lt_prog_compiler_pic='-fno-common'
9144      ;;
9145
9146    haiku*)
9147      # PIC is the default for Haiku.
9148      # The "-static" flag exists, but is broken.
9149      lt_prog_compiler_static=
9150      ;;
9151
9152    hpux*)
9153      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9154      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9155      # sets the default TLS model and affects inlining.
9156      case $host_cpu in
9157      hppa*64*)
9158	# +Z the default
9159	;;
9160      *)
9161	lt_prog_compiler_pic='-fPIC'
9162	;;
9163      esac
9164      ;;
9165
9166    interix[3-9]*)
9167      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9168      # Instead, we relocate shared libraries at runtime.
9169      ;;
9170
9171    msdosdjgpp*)
9172      # Just because we use GCC doesn't mean we suddenly get shared libraries
9173      # on systems that don't support them.
9174      lt_prog_compiler_can_build_shared=no
9175      enable_shared=no
9176      ;;
9177
9178    *nto* | *qnx*)
9179      # QNX uses GNU C++, but need to define -shared option too, otherwise
9180      # it will coredump.
9181      lt_prog_compiler_pic='-fPIC -shared'
9182      ;;
9183
9184    sysv4*MP*)
9185      if test -d /usr/nec; then
9186	lt_prog_compiler_pic=-Kconform_pic
9187      fi
9188      ;;
9189
9190    *)
9191      lt_prog_compiler_pic='-fPIC'
9192      ;;
9193    esac
9194
9195    case $cc_basename in
9196    nvcc*) # Cuda Compiler Driver 2.2
9197      lt_prog_compiler_wl='-Xlinker '
9198      if test -n "$lt_prog_compiler_pic"; then
9199        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9200      fi
9201      ;;
9202    esac
9203  else
9204    # PORTME Check for flag to pass linker flags through the system compiler.
9205    case $host_os in
9206    aix*)
9207      lt_prog_compiler_wl='-Wl,'
9208      if test ia64 = "$host_cpu"; then
9209	# AIX 5 now supports IA64 processor
9210	lt_prog_compiler_static='-Bstatic'
9211      else
9212	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9213      fi
9214      ;;
9215
9216    darwin* | rhapsody*)
9217      # PIC is the default on this platform
9218      # Common symbols not allowed in MH_DYLIB files
9219      lt_prog_compiler_pic='-fno-common'
9220      case $cc_basename in
9221      nagfor*)
9222        # NAG Fortran compiler
9223        lt_prog_compiler_wl='-Wl,-Wl,,'
9224        lt_prog_compiler_pic='-PIC'
9225        lt_prog_compiler_static='-Bstatic'
9226        ;;
9227      esac
9228      ;;
9229
9230    mingw* | cygwin* | pw32* | os2* | cegcc*)
9231      # This hack is so that the source file can tell whether it is being
9232      # built for inclusion in a dll (and should export symbols for example).
9233      lt_prog_compiler_pic='-DDLL_EXPORT'
9234      case $host_os in
9235      os2*)
9236	lt_prog_compiler_static='$wl-static'
9237	;;
9238      esac
9239      ;;
9240
9241    hpux9* | hpux10* | hpux11*)
9242      lt_prog_compiler_wl='-Wl,'
9243      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9244      # not for PA HP-UX.
9245      case $host_cpu in
9246      hppa*64*|ia64*)
9247	# +Z the default
9248	;;
9249      *)
9250	lt_prog_compiler_pic='+Z'
9251	;;
9252      esac
9253      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9254      lt_prog_compiler_static='$wl-a ${wl}archive'
9255      ;;
9256
9257    irix5* | irix6* | nonstopux*)
9258      lt_prog_compiler_wl='-Wl,'
9259      # PIC (with -KPIC) is the default.
9260      lt_prog_compiler_static='-non_shared'
9261      ;;
9262
9263    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9264      case $cc_basename in
9265      # old Intel for x86_64, which still supported -KPIC.
9266      ecc*)
9267	lt_prog_compiler_wl='-Wl,'
9268	lt_prog_compiler_pic='-KPIC'
9269	lt_prog_compiler_static='-static'
9270        ;;
9271      # flang / f18. f95 an alias for gfortran or flang on Debian
9272      flang* | f18* | f95*)
9273	lt_prog_compiler_wl='-Wl,'
9274	lt_prog_compiler_pic='-fPIC'
9275	lt_prog_compiler_static='-static'
9276        ;;
9277      # icc used to be incompatible with GCC.
9278      # ICC 10 doesn't accept -KPIC any more.
9279      icc* | ifort*)
9280	lt_prog_compiler_wl='-Wl,'
9281	lt_prog_compiler_pic='-fPIC'
9282	lt_prog_compiler_static='-static'
9283        ;;
9284      # Lahey Fortran 8.1.
9285      lf95*)
9286	lt_prog_compiler_wl='-Wl,'
9287	lt_prog_compiler_pic='--shared'
9288	lt_prog_compiler_static='--static'
9289	;;
9290      nagfor*)
9291	# NAG Fortran compiler
9292	lt_prog_compiler_wl='-Wl,-Wl,,'
9293	lt_prog_compiler_pic='-PIC'
9294	lt_prog_compiler_static='-Bstatic'
9295	;;
9296      tcc*)
9297	# Fabrice Bellard et al's Tiny C Compiler
9298	lt_prog_compiler_wl='-Wl,'
9299	lt_prog_compiler_pic='-fPIC'
9300	lt_prog_compiler_static='-static'
9301	;;
9302      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9303        # Portland Group compilers (*not* the Pentium gcc compiler,
9304	# which looks to be a dead project)
9305	lt_prog_compiler_wl='-Wl,'
9306	lt_prog_compiler_pic='-fpic'
9307	lt_prog_compiler_static='-Bstatic'
9308        ;;
9309      ccc*)
9310        lt_prog_compiler_wl='-Wl,'
9311        # All Alpha code is PIC.
9312        lt_prog_compiler_static='-non_shared'
9313        ;;
9314      xl* | bgxl* | bgf* | mpixl*)
9315	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9316	lt_prog_compiler_wl='-Wl,'
9317	lt_prog_compiler_pic='-qpic'
9318	lt_prog_compiler_static='-qstaticlink'
9319	;;
9320      *)
9321	case `$CC -V 2>&1 | $SED 5q` in
9322	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9323	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9324	  lt_prog_compiler_pic='-KPIC'
9325	  lt_prog_compiler_static='-Bstatic'
9326	  lt_prog_compiler_wl=''
9327	  ;;
9328	*Sun\ F* | *Sun*Fortran*)
9329	  lt_prog_compiler_pic='-KPIC'
9330	  lt_prog_compiler_static='-Bstatic'
9331	  lt_prog_compiler_wl='-Qoption ld '
9332	  ;;
9333	*Sun\ C*)
9334	  # Sun C 5.9
9335	  lt_prog_compiler_pic='-KPIC'
9336	  lt_prog_compiler_static='-Bstatic'
9337	  lt_prog_compiler_wl='-Wl,'
9338	  ;;
9339        *Intel*\ [CF]*Compiler*)
9340	  lt_prog_compiler_wl='-Wl,'
9341	  lt_prog_compiler_pic='-fPIC'
9342	  lt_prog_compiler_static='-static'
9343	  ;;
9344	*Portland\ Group*)
9345	  lt_prog_compiler_wl='-Wl,'
9346	  lt_prog_compiler_pic='-fpic'
9347	  lt_prog_compiler_static='-Bstatic'
9348	  ;;
9349	esac
9350	;;
9351      esac
9352      ;;
9353
9354    newsos6)
9355      lt_prog_compiler_pic='-KPIC'
9356      lt_prog_compiler_static='-Bstatic'
9357      ;;
9358
9359    *nto* | *qnx*)
9360      # QNX uses GNU C++, but need to define -shared option too, otherwise
9361      # it will coredump.
9362      lt_prog_compiler_pic='-fPIC -shared'
9363      ;;
9364
9365    osf3* | osf4* | osf5*)
9366      lt_prog_compiler_wl='-Wl,'
9367      # All OSF/1 code is PIC.
9368      lt_prog_compiler_static='-non_shared'
9369      ;;
9370
9371    rdos*)
9372      lt_prog_compiler_static='-non_shared'
9373      ;;
9374
9375    solaris*)
9376      lt_prog_compiler_pic='-KPIC'
9377      lt_prog_compiler_static='-Bstatic'
9378      case $cc_basename in
9379      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9380	lt_prog_compiler_wl='-Qoption ld ';;
9381      *)
9382	lt_prog_compiler_wl='-Wl,';;
9383      esac
9384      ;;
9385
9386    sunos4*)
9387      lt_prog_compiler_wl='-Qoption ld '
9388      lt_prog_compiler_pic='-PIC'
9389      lt_prog_compiler_static='-Bstatic'
9390      ;;
9391
9392    sysv4 | sysv4.2uw2* | sysv4.3*)
9393      lt_prog_compiler_wl='-Wl,'
9394      lt_prog_compiler_pic='-KPIC'
9395      lt_prog_compiler_static='-Bstatic'
9396      ;;
9397
9398    sysv4*MP*)
9399      if test -d /usr/nec; then
9400	lt_prog_compiler_pic='-Kconform_pic'
9401	lt_prog_compiler_static='-Bstatic'
9402      fi
9403      ;;
9404
9405    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9406      lt_prog_compiler_wl='-Wl,'
9407      lt_prog_compiler_pic='-KPIC'
9408      lt_prog_compiler_static='-Bstatic'
9409      ;;
9410
9411    unicos*)
9412      lt_prog_compiler_wl='-Wl,'
9413      lt_prog_compiler_can_build_shared=no
9414      ;;
9415
9416    uts4*)
9417      lt_prog_compiler_pic='-pic'
9418      lt_prog_compiler_static='-Bstatic'
9419      ;;
9420
9421    *)
9422      lt_prog_compiler_can_build_shared=no
9423      ;;
9424    esac
9425  fi
9426
9427case $host_os in
9428  # For platforms that do not support PIC, -DPIC is meaningless:
9429  *djgpp*)
9430    lt_prog_compiler_pic=
9431    ;;
9432  *)
9433    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9434    ;;
9435esac
9436
9437{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9438printf %s "checking for $compiler option to produce PIC... " >&6; }
9439if test ${lt_cv_prog_compiler_pic+y}
9440then :
9441  printf %s "(cached) " >&6
9442else $as_nop
9443  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9444fi
9445{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9446printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9447lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9448
9449#
9450# Check to make sure the PIC flag actually works.
9451#
9452if test -n "$lt_prog_compiler_pic"; then
9453  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9454printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9455if test ${lt_cv_prog_compiler_pic_works+y}
9456then :
9457  printf %s "(cached) " >&6
9458else $as_nop
9459  lt_cv_prog_compiler_pic_works=no
9460   ac_outfile=conftest.$ac_objext
9461   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9462   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9463   # Insert the option either (1) after the last *FLAGS variable, or
9464   # (2) before a word containing "conftest.", or (3) at the end.
9465   # Note that $ac_compile itself does not contain backslashes and begins
9466   # with a dollar sign (not a hyphen), so the echo should work correctly.
9467   # The option is referenced via a variable to avoid confusing sed.
9468   lt_compile=`echo "$ac_compile" | $SED \
9469   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9470   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9471   -e 's:$: $lt_compiler_flag:'`
9472   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9473   (eval "$lt_compile" 2>conftest.err)
9474   ac_status=$?
9475   cat conftest.err >&5
9476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9477   if (exit $ac_status) && test -s "$ac_outfile"; then
9478     # The compiler can only warn and ignore the option if not recognized
9479     # So say no if there are warnings other than the usual output.
9480     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9481     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9482     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9483       lt_cv_prog_compiler_pic_works=yes
9484     fi
9485   fi
9486   $RM conftest*
9487
9488fi
9489{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9490printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9491
9492if test yes = "$lt_cv_prog_compiler_pic_works"; then
9493    case $lt_prog_compiler_pic in
9494     "" | " "*) ;;
9495     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9496     esac
9497else
9498    lt_prog_compiler_pic=
9499     lt_prog_compiler_can_build_shared=no
9500fi
9501
9502fi
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514#
9515# Check to make sure the static flag actually works.
9516#
9517wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9518{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9519printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9520if test ${lt_cv_prog_compiler_static_works+y}
9521then :
9522  printf %s "(cached) " >&6
9523else $as_nop
9524  lt_cv_prog_compiler_static_works=no
9525   save_LDFLAGS=$LDFLAGS
9526   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9527   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9528   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9529     # The linker can only warn and ignore the option if not recognized
9530     # So say no if there are warnings
9531     if test -s conftest.err; then
9532       # Append any errors to the config.log.
9533       cat conftest.err 1>&5
9534       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9535       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9536       if diff conftest.exp conftest.er2 >/dev/null; then
9537         lt_cv_prog_compiler_static_works=yes
9538       fi
9539     else
9540       lt_cv_prog_compiler_static_works=yes
9541     fi
9542   fi
9543   $RM -r conftest*
9544   LDFLAGS=$save_LDFLAGS
9545
9546fi
9547{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9548printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9549
9550if test yes = "$lt_cv_prog_compiler_static_works"; then
9551    :
9552else
9553    lt_prog_compiler_static=
9554fi
9555
9556
9557
9558
9559
9560
9561
9562  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9563printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9564if test ${lt_cv_prog_compiler_c_o+y}
9565then :
9566  printf %s "(cached) " >&6
9567else $as_nop
9568  lt_cv_prog_compiler_c_o=no
9569   $RM -r conftest 2>/dev/null
9570   mkdir conftest
9571   cd conftest
9572   mkdir out
9573   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9574
9575   lt_compiler_flag="-o out/conftest2.$ac_objext"
9576   # Insert the option either (1) after the last *FLAGS variable, or
9577   # (2) before a word containing "conftest.", or (3) at the end.
9578   # Note that $ac_compile itself does not contain backslashes and begins
9579   # with a dollar sign (not a hyphen), so the echo should work correctly.
9580   lt_compile=`echo "$ac_compile" | $SED \
9581   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9582   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9583   -e 's:$: $lt_compiler_flag:'`
9584   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9585   (eval "$lt_compile" 2>out/conftest.err)
9586   ac_status=$?
9587   cat out/conftest.err >&5
9588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9589   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9590   then
9591     # The compiler can only warn and ignore the option if not recognized
9592     # So say no if there are warnings
9593     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9594     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9595     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9596       lt_cv_prog_compiler_c_o=yes
9597     fi
9598   fi
9599   chmod u+w . 2>&5
9600   $RM conftest*
9601   # SGI C++ compiler will create directory out/ii_files/ for
9602   # template instantiation
9603   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9604   $RM out/* && rmdir out
9605   cd ..
9606   $RM -r conftest
9607   $RM conftest*
9608
9609fi
9610{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9611printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9612
9613
9614
9615
9616
9617
9618  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9619printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9620if test ${lt_cv_prog_compiler_c_o+y}
9621then :
9622  printf %s "(cached) " >&6
9623else $as_nop
9624  lt_cv_prog_compiler_c_o=no
9625   $RM -r conftest 2>/dev/null
9626   mkdir conftest
9627   cd conftest
9628   mkdir out
9629   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9630
9631   lt_compiler_flag="-o out/conftest2.$ac_objext"
9632   # Insert the option either (1) after the last *FLAGS variable, or
9633   # (2) before a word containing "conftest.", or (3) at the end.
9634   # Note that $ac_compile itself does not contain backslashes and begins
9635   # with a dollar sign (not a hyphen), so the echo should work correctly.
9636   lt_compile=`echo "$ac_compile" | $SED \
9637   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9638   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9639   -e 's:$: $lt_compiler_flag:'`
9640   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9641   (eval "$lt_compile" 2>out/conftest.err)
9642   ac_status=$?
9643   cat out/conftest.err >&5
9644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9646   then
9647     # The compiler can only warn and ignore the option if not recognized
9648     # So say no if there are warnings
9649     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9650     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9651     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9652       lt_cv_prog_compiler_c_o=yes
9653     fi
9654   fi
9655   chmod u+w . 2>&5
9656   $RM conftest*
9657   # SGI C++ compiler will create directory out/ii_files/ for
9658   # template instantiation
9659   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9660   $RM out/* && rmdir out
9661   cd ..
9662   $RM -r conftest
9663   $RM conftest*
9664
9665fi
9666{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9667printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9668
9669
9670
9671
9672hard_links=nottested
9673if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9674  # do not overwrite the value of need_locks provided by the user
9675  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9676printf %s "checking if we can lock with hard links... " >&6; }
9677  hard_links=yes
9678  $RM conftest*
9679  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9680  touch conftest.a
9681  ln conftest.a conftest.b 2>&5 || hard_links=no
9682  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9683  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9684printf "%s\n" "$hard_links" >&6; }
9685  if test no = "$hard_links"; then
9686    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9687printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9688    need_locks=warn
9689  fi
9690else
9691  need_locks=no
9692fi
9693
9694
9695
9696
9697
9698
9699  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9700printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9701
9702  runpath_var=
9703  allow_undefined_flag=
9704  always_export_symbols=no
9705  archive_cmds=
9706  archive_expsym_cmds=
9707  compiler_needs_object=no
9708  enable_shared_with_static_runtimes=no
9709  export_dynamic_flag_spec=
9710  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9711  hardcode_automatic=no
9712  hardcode_direct=no
9713  hardcode_direct_absolute=no
9714  hardcode_libdir_flag_spec=
9715  hardcode_libdir_separator=
9716  hardcode_minus_L=no
9717  hardcode_shlibpath_var=unsupported
9718  inherit_rpath=no
9719  link_all_deplibs=unknown
9720  module_cmds=
9721  module_expsym_cmds=
9722  old_archive_from_new_cmds=
9723  old_archive_from_expsyms_cmds=
9724  thread_safe_flag_spec=
9725  whole_archive_flag_spec=
9726  # include_expsyms should be a list of space-separated symbols to be *always*
9727  # included in the symbol list
9728  include_expsyms=
9729  # exclude_expsyms can be an extended regexp of symbols to exclude
9730  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9731  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9732  # as well as any symbol that contains 'd'.
9733  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9734  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9735  # platforms (ab)use it in PIC code, but their linkers get confused if
9736  # the symbol is explicitly referenced.  Since portable code cannot
9737  # rely on this symbol name, it's probably fine to never include it in
9738  # preloaded symbol tables.
9739  # Exclude shared library initialization/finalization symbols.
9740  extract_expsyms_cmds=
9741
9742  case $host_os in
9743  cygwin* | mingw* | pw32* | cegcc*)
9744    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9745    # When not using gcc, we currently assume that we are using
9746    # Microsoft Visual C++ or Intel C++ Compiler.
9747    if test yes != "$GCC"; then
9748      with_gnu_ld=no
9749    fi
9750    ;;
9751  interix*)
9752    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9753    with_gnu_ld=yes
9754    ;;
9755  openbsd* | bitrig*)
9756    with_gnu_ld=no
9757    ;;
9758  linux* | k*bsd*-gnu | gnu*)
9759    link_all_deplibs=no
9760    ;;
9761  esac
9762
9763  ld_shlibs=yes
9764
9765  # On some targets, GNU ld is compatible enough with the native linker
9766  # that we're better off using the native interface for both.
9767  lt_use_gnu_ld_interface=no
9768  if test yes = "$with_gnu_ld"; then
9769    case $host_os in
9770      aix*)
9771	# The AIX port of GNU ld has always aspired to compatibility
9772	# with the native linker.  However, as the warning in the GNU ld
9773	# block says, versions before 2.19.5* couldn't really create working
9774	# shared libraries, regardless of the interface used.
9775	case `$LD -v 2>&1` in
9776	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9777	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9778	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9779	  *)
9780	    lt_use_gnu_ld_interface=yes
9781	    ;;
9782	esac
9783	;;
9784      *)
9785	lt_use_gnu_ld_interface=yes
9786	;;
9787    esac
9788  fi
9789
9790  if test yes = "$lt_use_gnu_ld_interface"; then
9791    # If archive_cmds runs LD, not CC, wlarc should be empty
9792    wlarc='$wl'
9793
9794    # Set some defaults for GNU ld with shared library support. These
9795    # are reset later if shared libraries are not supported. Putting them
9796    # here allows them to be overridden if necessary.
9797    runpath_var=LD_RUN_PATH
9798    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9799    export_dynamic_flag_spec='$wl--export-dynamic'
9800    # ancient GNU ld didn't support --whole-archive et. al.
9801    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9802      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9803    else
9804      whole_archive_flag_spec=
9805    fi
9806    supports_anon_versioning=no
9807    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9808      *GNU\ gold*) supports_anon_versioning=yes ;;
9809      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9810      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9811      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9812      *\ 2.11.*) ;; # other 2.11 versions
9813      *) supports_anon_versioning=yes ;;
9814    esac
9815
9816    # See if GNU ld supports shared libraries.
9817    case $host_os in
9818    aix[3-9]*)
9819      # On AIX/PPC, the GNU linker is very broken
9820      if test ia64 != "$host_cpu"; then
9821	ld_shlibs=no
9822	cat <<_LT_EOF 1>&2
9823
9824*** Warning: the GNU linker, at least up to release 2.19, is reported
9825*** to be unable to reliably create shared libraries on AIX.
9826*** Therefore, libtool is disabling shared libraries support.  If you
9827*** really care for shared libraries, you may want to install binutils
9828*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9829*** You will then need to restart the configuration process.
9830
9831_LT_EOF
9832      fi
9833      ;;
9834
9835    amigaos*)
9836      case $host_cpu in
9837      powerpc)
9838            # see comment about AmigaOS4 .so support
9839            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9840            archive_expsym_cmds=''
9841        ;;
9842      m68k)
9843            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)'
9844            hardcode_libdir_flag_spec='-L$libdir'
9845            hardcode_minus_L=yes
9846        ;;
9847      esac
9848      ;;
9849
9850    beos*)
9851      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9852	allow_undefined_flag=unsupported
9853	# Joseph Beckenbach <[email protected]> says some releases of gcc
9854	# support --undefined.  This deserves some investigation.  FIXME
9855	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9856      else
9857	ld_shlibs=no
9858      fi
9859      ;;
9860
9861    cygwin* | mingw* | pw32* | cegcc*)
9862      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9863      # as there is no search path for DLLs.
9864      hardcode_libdir_flag_spec='-L$libdir'
9865      export_dynamic_flag_spec='$wl--export-all-symbols'
9866      allow_undefined_flag=unsupported
9867      always_export_symbols=no
9868      enable_shared_with_static_runtimes=yes
9869      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'
9870      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9871
9872      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9873        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9874	# If the export-symbols file already is a .def file, use it as
9875	# is; otherwise, prepend EXPORTS...
9876	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9877          cp $export_symbols $output_objdir/$soname.def;
9878        else
9879          echo EXPORTS > $output_objdir/$soname.def;
9880          cat $export_symbols >> $output_objdir/$soname.def;
9881        fi~
9882        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9883      else
9884	ld_shlibs=no
9885      fi
9886      ;;
9887
9888    haiku*)
9889      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9890      link_all_deplibs=yes
9891      ;;
9892
9893    os2*)
9894      hardcode_libdir_flag_spec='-L$libdir'
9895      hardcode_minus_L=yes
9896      allow_undefined_flag=unsupported
9897      shrext_cmds=.dll
9898      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9899	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9900	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9901	$ECHO EXPORTS >> $output_objdir/$libname.def~
9902	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9903	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9904	emximp -o $lib $output_objdir/$libname.def'
9905      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9906	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9907	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9908	$ECHO EXPORTS >> $output_objdir/$libname.def~
9909	prefix_cmds="$SED"~
9910	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9911	  prefix_cmds="$prefix_cmds -e 1d";
9912	fi~
9913	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9914	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9915	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9916	emximp -o $lib $output_objdir/$libname.def'
9917      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9918      enable_shared_with_static_runtimes=yes
9919      file_list_spec='@'
9920      ;;
9921
9922    interix[3-9]*)
9923      hardcode_direct=no
9924      hardcode_shlibpath_var=no
9925      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9926      export_dynamic_flag_spec='$wl-E'
9927      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9928      # Instead, shared libraries are loaded at an image base (0x10000000 by
9929      # default) and relocated if they conflict, which is a slow very memory
9930      # consuming and fragmenting process.  To avoid this, we pick a random,
9931      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9932      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9933      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9934      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'
9935      ;;
9936
9937    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9938      tmp_diet=no
9939      if test linux-dietlibc = "$host_os"; then
9940	case $cc_basename in
9941	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9942	esac
9943      fi
9944      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9945	 && test no = "$tmp_diet"
9946      then
9947	tmp_addflag=' $pic_flag'
9948	tmp_sharedflag='-shared'
9949	case $cc_basename,$host_cpu in
9950        pgcc*)				# Portland Group C compiler
9951	  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'
9952	  tmp_addflag=' $pic_flag'
9953	  ;;
9954	pgf77* | pgf90* | pgf95* | pgfortran*)
9955					# Portland Group f77 and f90 compilers
9956	  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'
9957	  tmp_addflag=' $pic_flag -Mnomain' ;;
9958	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9959	  tmp_addflag=' -i_dynamic' ;;
9960	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9961	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9962	ifc* | ifort*)			# Intel Fortran compiler
9963	  tmp_addflag=' -nofor_main' ;;
9964	lf95*)				# Lahey Fortran 8.1
9965	  whole_archive_flag_spec=
9966	  tmp_sharedflag='--shared' ;;
9967        nagfor*)                        # NAGFOR 5.3
9968          tmp_sharedflag='-Wl,-shared' ;;
9969	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9970	  tmp_sharedflag='-qmkshrobj'
9971	  tmp_addflag= ;;
9972	nvcc*)	# Cuda Compiler Driver 2.2
9973	  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'
9974	  compiler_needs_object=yes
9975	  ;;
9976	esac
9977	case `$CC -V 2>&1 | $SED 5q` in
9978	*Sun\ C*)			# Sun C 5.9
9979	  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'
9980	  compiler_needs_object=yes
9981	  tmp_sharedflag='-G' ;;
9982	*Sun\ F*)			# Sun Fortran 8.3
9983	  tmp_sharedflag='-G' ;;
9984	esac
9985	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9986
9987        if test yes = "$supports_anon_versioning"; then
9988          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9989            cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9990            echo "local: *; };" >> $output_objdir/$libname.ver~
9991            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9992        fi
9993
9994	case $cc_basename in
9995	tcc*)
9996	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9997	  export_dynamic_flag_spec='-rdynamic'
9998	  ;;
9999	xlf* | bgf* | bgxlf* | mpixlf*)
10000	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10001	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10002	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10003	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10004	  if test yes = "$supports_anon_versioning"; then
10005	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10006              cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10007              echo "local: *; };" >> $output_objdir/$libname.ver~
10008              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10009	  fi
10010	  ;;
10011	esac
10012      else
10013        ld_shlibs=no
10014      fi
10015      ;;
10016
10017    netbsd* | netbsdelf*-gnu)
10018      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10019	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10020	wlarc=
10021      else
10022	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10023	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10024      fi
10025      ;;
10026
10027    solaris*)
10028      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10029	ld_shlibs=no
10030	cat <<_LT_EOF 1>&2
10031
10032*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10033*** create shared libraries on Solaris systems.  Therefore, libtool
10034*** is disabling shared libraries support.  We urge you to upgrade GNU
10035*** binutils to release 2.9.1 or newer.  Another option is to modify
10036*** your PATH or compiler configuration so that the native linker is
10037*** used, and then restart.
10038
10039_LT_EOF
10040      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10041	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10042	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10043      else
10044	ld_shlibs=no
10045      fi
10046      ;;
10047
10048    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10049      case `$LD -v 2>&1` in
10050        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10051	ld_shlibs=no
10052	cat <<_LT_EOF 1>&2
10053
10054*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10055*** reliably create shared libraries on SCO systems.  Therefore, libtool
10056*** is disabling shared libraries support.  We urge you to upgrade GNU
10057*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10058*** your PATH or compiler configuration so that the native linker is
10059*** used, and then restart.
10060
10061_LT_EOF
10062	;;
10063	*)
10064	  # For security reasons, it is highly recommended that you always
10065	  # use absolute paths for naming shared libraries, and exclude the
10066	  # DT_RUNPATH tag from executables and libraries.  But doing so
10067	  # requires that you compile everything twice, which is a pain.
10068	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10069	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10070	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10071	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10072	  else
10073	    ld_shlibs=no
10074	  fi
10075	;;
10076      esac
10077      ;;
10078
10079    sunos4*)
10080      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10081      wlarc=
10082      hardcode_direct=yes
10083      hardcode_shlibpath_var=no
10084      ;;
10085
10086    *)
10087      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10088	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10089	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10090      else
10091	ld_shlibs=no
10092      fi
10093      ;;
10094    esac
10095
10096    if test no = "$ld_shlibs"; then
10097      runpath_var=
10098      hardcode_libdir_flag_spec=
10099      export_dynamic_flag_spec=
10100      whole_archive_flag_spec=
10101    fi
10102  else
10103    # PORTME fill in a description of your system's linker (not GNU ld)
10104    case $host_os in
10105    aix3*)
10106      allow_undefined_flag=unsupported
10107      always_export_symbols=yes
10108      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'
10109      # Note: this linker hardcodes the directories in LIBPATH if there
10110      # are no directories specified by -L.
10111      hardcode_minus_L=yes
10112      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10113	# Neither direct hardcoding nor static linking is supported with a
10114	# broken collect2.
10115	hardcode_direct=unsupported
10116      fi
10117      ;;
10118
10119    aix[4-9]*)
10120      if test ia64 = "$host_cpu"; then
10121	# On IA64, the linker does run time linking by default, so we don't
10122	# have to do anything special.
10123	aix_use_runtimelinking=no
10124	exp_sym_flag='-Bexport'
10125	no_entry_flag=
10126      else
10127	# If we're using GNU nm, then we don't want the "-C" option.
10128	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10129	# Without the "-l" option, or with the "-B" option, AIX nm treats
10130	# weak defined symbols like other global defined symbols, whereas
10131	# GNU nm marks them as "W".
10132	# While the 'weak' keyword is ignored in the Export File, we need
10133	# it in the Import File for the 'aix-soname' feature, so we have
10134	# to replace the "-B" option with "-P" for AIX nm.
10135	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10136	  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'
10137	else
10138	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10139	fi
10140	aix_use_runtimelinking=no
10141
10142	# Test if we are trying to use run time linking or normal
10143	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10144	# have runtime linking enabled, and use it for executables.
10145	# For shared libraries, we enable/disable runtime linking
10146	# depending on the kind of the shared library created -
10147	# when "with_aix_soname,aix_use_runtimelinking" is:
10148	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10149	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10150	#            lib.a           static archive
10151	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10152	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10153	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10154	#            lib.a(lib.so.V) shared, rtl:no
10155	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10156	#            lib.a           static archive
10157	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10158	  for ld_flag in $LDFLAGS; do
10159	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10160	    aix_use_runtimelinking=yes
10161	    break
10162	  fi
10163	  done
10164	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10165	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10166	    # so we don't have lib.a shared libs to link our executables.
10167	    # We have to force runtime linking in this case.
10168	    aix_use_runtimelinking=yes
10169	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10170	  fi
10171	  ;;
10172	esac
10173
10174	exp_sym_flag='-bexport'
10175	no_entry_flag='-bnoentry'
10176      fi
10177
10178      # When large executables or shared objects are built, AIX ld can
10179      # have problems creating the table of contents.  If linking a library
10180      # or program results in "error TOC overflow" add -mminimal-toc to
10181      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10182      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10183
10184      archive_cmds=''
10185      hardcode_direct=yes
10186      hardcode_direct_absolute=yes
10187      hardcode_libdir_separator=':'
10188      link_all_deplibs=yes
10189      file_list_spec='$wl-f,'
10190      case $with_aix_soname,$aix_use_runtimelinking in
10191      aix,*) ;; # traditional, no import file
10192      svr4,* | *,yes) # use import file
10193	# The Import File defines what to hardcode.
10194	hardcode_direct=no
10195	hardcode_direct_absolute=no
10196	;;
10197      esac
10198
10199      if test yes = "$GCC"; then
10200	case $host_os in aix4.[012]|aix4.[012].*)
10201	# We only want to do this on AIX 4.2 and lower, the check
10202	# below for broken collect2 doesn't work under 4.3+
10203	  collect2name=`$CC -print-prog-name=collect2`
10204	  if test -f "$collect2name" &&
10205	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10206	  then
10207	  # We have reworked collect2
10208	  :
10209	  else
10210	  # We have old collect2
10211	  hardcode_direct=unsupported
10212	  # It fails to find uninstalled libraries when the uninstalled
10213	  # path is not listed in the libpath.  Setting hardcode_minus_L
10214	  # to unsupported forces relinking
10215	  hardcode_minus_L=yes
10216	  hardcode_libdir_flag_spec='-L$libdir'
10217	  hardcode_libdir_separator=
10218	  fi
10219	  ;;
10220	esac
10221	shared_flag='-shared'
10222	if test yes = "$aix_use_runtimelinking"; then
10223	  shared_flag="$shared_flag "'$wl-G'
10224	fi
10225	# Need to ensure runtime linking is disabled for the traditional
10226	# shared library, or the linker may eventually find shared libraries
10227	# /with/ Import File - we do not want to mix them.
10228	shared_flag_aix='-shared'
10229	shared_flag_svr4='-shared $wl-G'
10230      else
10231	# not using gcc
10232	if test ia64 = "$host_cpu"; then
10233	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10234	# chokes on -Wl,-G. The following line is correct:
10235	  shared_flag='-G'
10236	else
10237	  if test yes = "$aix_use_runtimelinking"; then
10238	    shared_flag='$wl-G'
10239	  else
10240	    shared_flag='$wl-bM:SRE'
10241	  fi
10242	  shared_flag_aix='$wl-bM:SRE'
10243	  shared_flag_svr4='$wl-G'
10244	fi
10245      fi
10246
10247      export_dynamic_flag_spec='$wl-bexpall'
10248      # It seems that -bexpall does not export symbols beginning with
10249      # underscore (_), so it is better to generate a list of symbols to export.
10250      always_export_symbols=yes
10251      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10252	# Warning - without using the other runtime loading flags (-brtl),
10253	# -berok will link without error, but may produce a broken library.
10254	allow_undefined_flag='-berok'
10255        # Determine the default libpath from the value encoded in an
10256        # empty executable.
10257        if test set = "${lt_cv_aix_libpath+set}"; then
10258  aix_libpath=$lt_cv_aix_libpath
10259else
10260  if test ${lt_cv_aix_libpath_+y}
10261then :
10262  printf %s "(cached) " >&6
10263else $as_nop
10264  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10265/* end confdefs.h.  */
10266
10267int
10268main (void)
10269{
10270
10271  ;
10272  return 0;
10273}
10274_ACEOF
10275if ac_fn_c_try_link "$LINENO"
10276then :
10277
10278  lt_aix_libpath_sed='
10279      /Import File Strings/,/^$/ {
10280	  /^0/ {
10281	      s/^0  *\([^ ]*\) *$/\1/
10282	      p
10283	  }
10284      }'
10285  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10286  # Check for a 64-bit object if we didn't find anything.
10287  if test -z "$lt_cv_aix_libpath_"; then
10288    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10289  fi
10290fi
10291rm -f core conftest.err conftest.$ac_objext conftest.beam \
10292    conftest$ac_exeext conftest.$ac_ext
10293  if test -z "$lt_cv_aix_libpath_"; then
10294    lt_cv_aix_libpath_=/usr/lib:/lib
10295  fi
10296
10297fi
10298
10299  aix_libpath=$lt_cv_aix_libpath_
10300fi
10301
10302        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10303        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
10304      else
10305	if test ia64 = "$host_cpu"; then
10306	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10307	  allow_undefined_flag="-z nodefs"
10308	  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"
10309	else
10310	 # Determine the default libpath from the value encoded in an
10311	 # empty executable.
10312	 if test set = "${lt_cv_aix_libpath+set}"; then
10313  aix_libpath=$lt_cv_aix_libpath
10314else
10315  if test ${lt_cv_aix_libpath_+y}
10316then :
10317  printf %s "(cached) " >&6
10318else $as_nop
10319  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10320/* end confdefs.h.  */
10321
10322int
10323main (void)
10324{
10325
10326  ;
10327  return 0;
10328}
10329_ACEOF
10330if ac_fn_c_try_link "$LINENO"
10331then :
10332
10333  lt_aix_libpath_sed='
10334      /Import File Strings/,/^$/ {
10335	  /^0/ {
10336	      s/^0  *\([^ ]*\) *$/\1/
10337	      p
10338	  }
10339      }'
10340  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10341  # Check for a 64-bit object if we didn't find anything.
10342  if test -z "$lt_cv_aix_libpath_"; then
10343    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10344  fi
10345fi
10346rm -f core conftest.err conftest.$ac_objext conftest.beam \
10347    conftest$ac_exeext conftest.$ac_ext
10348  if test -z "$lt_cv_aix_libpath_"; then
10349    lt_cv_aix_libpath_=/usr/lib:/lib
10350  fi
10351
10352fi
10353
10354  aix_libpath=$lt_cv_aix_libpath_
10355fi
10356
10357	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10358	  # Warning - without using the other run time loading flags,
10359	  # -berok will link without error, but may produce a broken library.
10360	  no_undefined_flag=' $wl-bernotok'
10361	  allow_undefined_flag=' $wl-berok'
10362	  if test yes = "$with_gnu_ld"; then
10363	    # We only use this code for GNU lds that support --whole-archive.
10364	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10365	  else
10366	    # Exported symbols can be pulled into shared objects from archives
10367	    whole_archive_flag_spec='$convenience'
10368	  fi
10369	  archive_cmds_need_lc=yes
10370	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10371	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10372	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10373	  if test svr4 != "$with_aix_soname"; then
10374	    # This is similar to how AIX traditionally builds its shared libraries.
10375	    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'
10376	  fi
10377	  if test aix != "$with_aix_soname"; then
10378	    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'
10379	  else
10380	    # used by -dlpreopen to get the symbols
10381	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10382	  fi
10383	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10384	fi
10385      fi
10386      ;;
10387
10388    amigaos*)
10389      case $host_cpu in
10390      powerpc)
10391            # see comment about AmigaOS4 .so support
10392            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10393            archive_expsym_cmds=''
10394        ;;
10395      m68k)
10396            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)'
10397            hardcode_libdir_flag_spec='-L$libdir'
10398            hardcode_minus_L=yes
10399        ;;
10400      esac
10401      ;;
10402
10403    bsdi[45]*)
10404      export_dynamic_flag_spec=-rdynamic
10405      ;;
10406
10407    cygwin* | mingw* | pw32* | cegcc*)
10408      # When not using gcc, we currently assume that we are using
10409      # Microsoft Visual C++ or Intel C++ Compiler.
10410      # hardcode_libdir_flag_spec is actually meaningless, as there is
10411      # no search path for DLLs.
10412      case $cc_basename in
10413      cl* | icl*)
10414	# Native MSVC or ICC
10415	hardcode_libdir_flag_spec=' '
10416	allow_undefined_flag=unsupported
10417	always_export_symbols=yes
10418	file_list_spec='@'
10419	# Tell ltmain to make .lib files, not .a files.
10420	libext=lib
10421	# Tell ltmain to make .dll files, not .so files.
10422	shrext_cmds=.dll
10423	# FIXME: Setting linknames here is a bad hack.
10424	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10425	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10426            cp "$export_symbols" "$output_objdir/$soname.def";
10427            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10428          else
10429            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10430          fi~
10431          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10432          linknames='
10433	# The linker will not automatically build a static lib if we build a DLL.
10434	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10435	enable_shared_with_static_runtimes=yes
10436	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10437	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10438	# Don't use ranlib
10439	old_postinstall_cmds='chmod 644 $oldlib'
10440	postlink_cmds='lt_outputfile="@OUTPUT@"~
10441          lt_tool_outputfile="@TOOL_OUTPUT@"~
10442          case $lt_outputfile in
10443            *.exe|*.EXE) ;;
10444            *)
10445              lt_outputfile=$lt_outputfile.exe
10446              lt_tool_outputfile=$lt_tool_outputfile.exe
10447              ;;
10448          esac~
10449          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10450            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10451            $RM "$lt_outputfile.manifest";
10452          fi'
10453	;;
10454      *)
10455	# Assume MSVC and ICC wrapper
10456	hardcode_libdir_flag_spec=' '
10457	allow_undefined_flag=unsupported
10458	# Tell ltmain to make .lib files, not .a files.
10459	libext=lib
10460	# Tell ltmain to make .dll files, not .so files.
10461	shrext_cmds=.dll
10462	# FIXME: Setting linknames here is a bad hack.
10463	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10464	# The linker will automatically build a .lib file if we build a DLL.
10465	old_archive_from_new_cmds='true'
10466	# FIXME: Should let the user specify the lib program.
10467	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10468	enable_shared_with_static_runtimes=yes
10469	;;
10470      esac
10471      ;;
10472
10473    darwin* | rhapsody*)
10474
10475
10476  archive_cmds_need_lc=no
10477  hardcode_direct=no
10478  hardcode_automatic=yes
10479  hardcode_shlibpath_var=unsupported
10480  if test yes = "$lt_cv_ld_force_load"; then
10481    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\"`'
10482
10483  else
10484    whole_archive_flag_spec=''
10485  fi
10486  link_all_deplibs=yes
10487  allow_undefined_flag=$_lt_dar_allow_undefined
10488  case $cc_basename in
10489     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10490     *) _lt_dar_can_shared=$GCC ;;
10491  esac
10492  if test yes = "$_lt_dar_can_shared"; then
10493    output_verbose_link_cmd=func_echo_all
10494    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10495    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10496    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"
10497    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"
10498
10499  else
10500  ld_shlibs=no
10501  fi
10502
10503      ;;
10504
10505    dgux*)
10506      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10507      hardcode_libdir_flag_spec='-L$libdir'
10508      hardcode_shlibpath_var=no
10509      ;;
10510
10511    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10512    # support.  Future versions do this automatically, but an explicit c++rt0.o
10513    # does not break anything, and helps significantly (at the cost of a little
10514    # extra space).
10515    freebsd2.2*)
10516      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10517      hardcode_libdir_flag_spec='-R$libdir'
10518      hardcode_direct=yes
10519      hardcode_shlibpath_var=no
10520      ;;
10521
10522    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10523    freebsd2.*)
10524      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10525      hardcode_direct=yes
10526      hardcode_minus_L=yes
10527      hardcode_shlibpath_var=no
10528      ;;
10529
10530    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10531    freebsd* | dragonfly* | midnightbsd*)
10532      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10533      hardcode_libdir_flag_spec='-R$libdir'
10534      hardcode_direct=yes
10535      hardcode_shlibpath_var=no
10536      ;;
10537
10538    hpux9*)
10539      if test yes = "$GCC"; then
10540	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'
10541      else
10542	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'
10543      fi
10544      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10545      hardcode_libdir_separator=:
10546      hardcode_direct=yes
10547
10548      # hardcode_minus_L: Not really in the search PATH,
10549      # but as the default location of the library.
10550      hardcode_minus_L=yes
10551      export_dynamic_flag_spec='$wl-E'
10552      ;;
10553
10554    hpux10*)
10555      if test yes,no = "$GCC,$with_gnu_ld"; then
10556	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10557      else
10558	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10559      fi
10560      if test no = "$with_gnu_ld"; then
10561	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10562	hardcode_libdir_separator=:
10563	hardcode_direct=yes
10564	hardcode_direct_absolute=yes
10565	export_dynamic_flag_spec='$wl-E'
10566	# hardcode_minus_L: Not really in the search PATH,
10567	# but as the default location of the library.
10568	hardcode_minus_L=yes
10569      fi
10570      ;;
10571
10572    hpux11*)
10573      if test yes,no = "$GCC,$with_gnu_ld"; then
10574	case $host_cpu in
10575	hppa*64*)
10576	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10577	  ;;
10578	ia64*)
10579	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10580	  ;;
10581	*)
10582	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10583	  ;;
10584	esac
10585      else
10586	case $host_cpu in
10587	hppa*64*)
10588	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10589	  ;;
10590	ia64*)
10591	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10592	  ;;
10593	*)
10594
10595	  # Older versions of the 11.00 compiler do not understand -b yet
10596	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10597	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10598printf %s "checking if $CC understands -b... " >&6; }
10599if test ${lt_cv_prog_compiler__b+y}
10600then :
10601  printf %s "(cached) " >&6
10602else $as_nop
10603  lt_cv_prog_compiler__b=no
10604   save_LDFLAGS=$LDFLAGS
10605   LDFLAGS="$LDFLAGS -b"
10606   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10607   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10608     # The linker can only warn and ignore the option if not recognized
10609     # So say no if there are warnings
10610     if test -s conftest.err; then
10611       # Append any errors to the config.log.
10612       cat conftest.err 1>&5
10613       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10614       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10615       if diff conftest.exp conftest.er2 >/dev/null; then
10616         lt_cv_prog_compiler__b=yes
10617       fi
10618     else
10619       lt_cv_prog_compiler__b=yes
10620     fi
10621   fi
10622   $RM -r conftest*
10623   LDFLAGS=$save_LDFLAGS
10624
10625fi
10626{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10627printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10628
10629if test yes = "$lt_cv_prog_compiler__b"; then
10630    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10631else
10632    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10633fi
10634
10635	  ;;
10636	esac
10637      fi
10638      if test no = "$with_gnu_ld"; then
10639	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10640	hardcode_libdir_separator=:
10641
10642	case $host_cpu in
10643	hppa*64*|ia64*)
10644	  hardcode_direct=no
10645	  hardcode_shlibpath_var=no
10646	  ;;
10647	*)
10648	  hardcode_direct=yes
10649	  hardcode_direct_absolute=yes
10650	  export_dynamic_flag_spec='$wl-E'
10651
10652	  # hardcode_minus_L: Not really in the search PATH,
10653	  # but as the default location of the library.
10654	  hardcode_minus_L=yes
10655	  ;;
10656	esac
10657      fi
10658      ;;
10659
10660    irix5* | irix6* | nonstopux*)
10661      if test yes = "$GCC"; then
10662	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'
10663	# Try to use the -exported_symbol ld option, if it does not
10664	# work, assume that -exports_file does not work either and
10665	# implicitly export all symbols.
10666	# This should be the same for all languages, so no per-tag cache variable.
10667	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10668printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10669if test ${lt_cv_irix_exported_symbol+y}
10670then :
10671  printf %s "(cached) " >&6
10672else $as_nop
10673  save_LDFLAGS=$LDFLAGS
10674	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10675	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10676/* end confdefs.h.  */
10677int foo (void) { return 0; }
10678_ACEOF
10679if ac_fn_c_try_link "$LINENO"
10680then :
10681  lt_cv_irix_exported_symbol=yes
10682else $as_nop
10683  lt_cv_irix_exported_symbol=no
10684fi
10685rm -f core conftest.err conftest.$ac_objext conftest.beam \
10686    conftest$ac_exeext conftest.$ac_ext
10687           LDFLAGS=$save_LDFLAGS
10688fi
10689{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10690printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10691	if test yes = "$lt_cv_irix_exported_symbol"; then
10692          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'
10693	fi
10694	link_all_deplibs=no
10695      else
10696	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'
10697	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'
10698      fi
10699      archive_cmds_need_lc='no'
10700      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10701      hardcode_libdir_separator=:
10702      inherit_rpath=yes
10703      link_all_deplibs=yes
10704      ;;
10705
10706    linux*)
10707      case $cc_basename in
10708      tcc*)
10709	# Fabrice Bellard et al's Tiny C Compiler
10710	ld_shlibs=yes
10711	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10712	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10713	;;
10714      esac
10715      ;;
10716
10717    netbsd* | netbsdelf*-gnu)
10718      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10719	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10720      else
10721	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10722      fi
10723      hardcode_libdir_flag_spec='-R$libdir'
10724      hardcode_direct=yes
10725      hardcode_shlibpath_var=no
10726      ;;
10727
10728    newsos6)
10729      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10730      hardcode_direct=yes
10731      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10732      hardcode_libdir_separator=:
10733      hardcode_shlibpath_var=no
10734      ;;
10735
10736    *nto* | *qnx*)
10737      ;;
10738
10739    openbsd* | bitrig*)
10740      if test -f /usr/libexec/ld.so; then
10741	hardcode_direct=yes
10742	hardcode_shlibpath_var=no
10743	hardcode_direct_absolute=yes
10744	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10745	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10746	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10747	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10748	  export_dynamic_flag_spec='$wl-E'
10749	else
10750	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10751	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10752	fi
10753      else
10754	ld_shlibs=no
10755      fi
10756      ;;
10757
10758    os2*)
10759      hardcode_libdir_flag_spec='-L$libdir'
10760      hardcode_minus_L=yes
10761      allow_undefined_flag=unsupported
10762      shrext_cmds=.dll
10763      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10764	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10765	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10766	$ECHO EXPORTS >> $output_objdir/$libname.def~
10767	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10768	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10769	emximp -o $lib $output_objdir/$libname.def'
10770      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10771	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10772	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10773	$ECHO EXPORTS >> $output_objdir/$libname.def~
10774	prefix_cmds="$SED"~
10775	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10776	  prefix_cmds="$prefix_cmds -e 1d";
10777	fi~
10778	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10779	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10780	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10781	emximp -o $lib $output_objdir/$libname.def'
10782      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10783      enable_shared_with_static_runtimes=yes
10784      file_list_spec='@'
10785      ;;
10786
10787    osf3*)
10788      if test yes = "$GCC"; then
10789	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10790	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'
10791      else
10792	allow_undefined_flag=' -expect_unresolved \*'
10793	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'
10794      fi
10795      archive_cmds_need_lc='no'
10796      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10797      hardcode_libdir_separator=:
10798      ;;
10799
10800    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10801      if test yes = "$GCC"; then
10802	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10803	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'
10804	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10805      else
10806	allow_undefined_flag=' -expect_unresolved \*'
10807	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'
10808	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~
10809          $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'
10810
10811	# Both c and cxx compiler support -rpath directly
10812	hardcode_libdir_flag_spec='-rpath $libdir'
10813      fi
10814      archive_cmds_need_lc='no'
10815      hardcode_libdir_separator=:
10816      ;;
10817
10818    solaris*)
10819      no_undefined_flag=' -z defs'
10820      if test yes = "$GCC"; then
10821	wlarc='$wl'
10822	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10823	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10824          $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'
10825      else
10826	case `$CC -V 2>&1` in
10827	*"Compilers 5.0"*)
10828	  wlarc=''
10829	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10830	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10831            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10832	  ;;
10833	*)
10834	  wlarc='$wl'
10835	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10836	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10837            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10838	  ;;
10839	esac
10840      fi
10841      hardcode_libdir_flag_spec='-R$libdir'
10842      hardcode_shlibpath_var=no
10843      case $host_os in
10844      solaris2.[0-5] | solaris2.[0-5].*) ;;
10845      *)
10846	# The compiler driver will combine and reorder linker options,
10847	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10848	# but is careful enough not to reorder.
10849	# Supported since Solaris 2.6 (maybe 2.5.1?)
10850	if test yes = "$GCC"; then
10851	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10852	else
10853	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10854	fi
10855	;;
10856      esac
10857      link_all_deplibs=yes
10858      ;;
10859
10860    sunos4*)
10861      if test sequent = "$host_vendor"; then
10862	# Use $CC to link under sequent, because it throws in some extra .o
10863	# files that make .init and .fini sections work.
10864	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10865      else
10866	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10867      fi
10868      hardcode_libdir_flag_spec='-L$libdir'
10869      hardcode_direct=yes
10870      hardcode_minus_L=yes
10871      hardcode_shlibpath_var=no
10872      ;;
10873
10874    sysv4)
10875      case $host_vendor in
10876	sni)
10877	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10878	  hardcode_direct=yes # is this really true???
10879	;;
10880	siemens)
10881	  ## LD is ld it makes a PLAMLIB
10882	  ## CC just makes a GrossModule.
10883	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10884	  reload_cmds='$CC -r -o $output$reload_objs'
10885	  hardcode_direct=no
10886        ;;
10887	motorola)
10888	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10889	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10890	;;
10891      esac
10892      runpath_var='LD_RUN_PATH'
10893      hardcode_shlibpath_var=no
10894      ;;
10895
10896    sysv4.3*)
10897      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10898      hardcode_shlibpath_var=no
10899      export_dynamic_flag_spec='-Bexport'
10900      ;;
10901
10902    sysv4*MP*)
10903      if test -d /usr/nec; then
10904	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10905	hardcode_shlibpath_var=no
10906	runpath_var=LD_RUN_PATH
10907	hardcode_runpath_var=yes
10908	ld_shlibs=yes
10909      fi
10910      ;;
10911
10912    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10913      no_undefined_flag='$wl-z,text'
10914      archive_cmds_need_lc=no
10915      hardcode_shlibpath_var=no
10916      runpath_var='LD_RUN_PATH'
10917
10918      if test yes = "$GCC"; then
10919	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10920	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10921      else
10922	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10923	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10924      fi
10925      ;;
10926
10927    sysv5* | sco3.2v5* | sco5v6*)
10928      # Note: We CANNOT use -z defs as we might desire, because we do not
10929      # link with -lc, and that would cause any symbols used from libc to
10930      # always be unresolved, which means just about no library would
10931      # ever link correctly.  If we're not using GNU ld we use -z text
10932      # though, which does catch some bad symbols but isn't as heavy-handed
10933      # as -z defs.
10934      no_undefined_flag='$wl-z,text'
10935      allow_undefined_flag='$wl-z,nodefs'
10936      archive_cmds_need_lc=no
10937      hardcode_shlibpath_var=no
10938      hardcode_libdir_flag_spec='$wl-R,$libdir'
10939      hardcode_libdir_separator=':'
10940      link_all_deplibs=yes
10941      export_dynamic_flag_spec='$wl-Bexport'
10942      runpath_var='LD_RUN_PATH'
10943
10944      if test yes = "$GCC"; then
10945	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10946	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10947      else
10948	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10949	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10950      fi
10951      ;;
10952
10953    uts4*)
10954      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10955      hardcode_libdir_flag_spec='-L$libdir'
10956      hardcode_shlibpath_var=no
10957      ;;
10958
10959    *)
10960      ld_shlibs=no
10961      ;;
10962    esac
10963
10964    if test sni = "$host_vendor"; then
10965      case $host in
10966      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10967	export_dynamic_flag_spec='$wl-Blargedynsym'
10968	;;
10969      esac
10970    fi
10971  fi
10972
10973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10974printf "%s\n" "$ld_shlibs" >&6; }
10975test no = "$ld_shlibs" && can_build_shared=no
10976
10977with_gnu_ld=$with_gnu_ld
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993#
10994# Do we need to explicitly link libc?
10995#
10996case "x$archive_cmds_need_lc" in
10997x|xyes)
10998  # Assume -lc should be added
10999  archive_cmds_need_lc=yes
11000
11001  if test yes,yes = "$GCC,$enable_shared"; then
11002    case $archive_cmds in
11003    *'~'*)
11004      # FIXME: we may have to deal with multi-command sequences.
11005      ;;
11006    '$CC '*)
11007      # Test whether the compiler implicitly links with -lc since on some
11008      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11009      # to ld, don't add -lc before -lgcc.
11010      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11011printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11012if test ${lt_cv_archive_cmds_need_lc+y}
11013then :
11014  printf %s "(cached) " >&6
11015else $as_nop
11016  $RM conftest*
11017	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11018
11019	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11020  (eval $ac_compile) 2>&5
11021  ac_status=$?
11022  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11023  test $ac_status = 0; } 2>conftest.err; then
11024	  soname=conftest
11025	  lib=conftest
11026	  libobjs=conftest.$ac_objext
11027	  deplibs=
11028	  wl=$lt_prog_compiler_wl
11029	  pic_flag=$lt_prog_compiler_pic
11030	  compiler_flags=-v
11031	  linker_flags=-v
11032	  verstring=
11033	  output_objdir=.
11034	  libname=conftest
11035	  lt_save_allow_undefined_flag=$allow_undefined_flag
11036	  allow_undefined_flag=
11037	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11038  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11039  ac_status=$?
11040  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11041  test $ac_status = 0; }
11042	  then
11043	    lt_cv_archive_cmds_need_lc=no
11044	  else
11045	    lt_cv_archive_cmds_need_lc=yes
11046	  fi
11047	  allow_undefined_flag=$lt_save_allow_undefined_flag
11048	else
11049	  cat conftest.err 1>&5
11050	fi
11051	$RM conftest*
11052
11053fi
11054{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11055printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11056      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11057      ;;
11058    esac
11059  fi
11060  ;;
11061esac
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11215printf %s "checking dynamic linker characteristics... " >&6; }
11216
11217if test yes = "$GCC"; then
11218  case $host_os in
11219    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11220    *) lt_awk_arg='/^libraries:/' ;;
11221  esac
11222  case $host_os in
11223    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11224    *) lt_sed_strip_eq='s|=/|/|g' ;;
11225  esac
11226  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11227  case $lt_search_path_spec in
11228  *\;*)
11229    # if the path contains ";" then we assume it to be the separator
11230    # otherwise default to the standard path separator (i.e. ":") - it is
11231    # assumed that no part of a normal pathname contains ";" but that should
11232    # okay in the real world where ";" in dirpaths is itself problematic.
11233    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11234    ;;
11235  *)
11236    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11237    ;;
11238  esac
11239  # Ok, now we have the path, separated by spaces, we can step through it
11240  # and add multilib dir if necessary...
11241  lt_tmp_lt_search_path_spec=
11242  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11243  # ...but if some path component already ends with the multilib dir we assume
11244  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11245  case "$lt_multi_os_dir; $lt_search_path_spec " in
11246  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11247    lt_multi_os_dir=
11248    ;;
11249  esac
11250  for lt_sys_path in $lt_search_path_spec; do
11251    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11252      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11253    elif test -n "$lt_multi_os_dir"; then
11254      test -d "$lt_sys_path" && \
11255	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11256    fi
11257  done
11258  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11259BEGIN {RS = " "; FS = "/|\n";} {
11260  lt_foo = "";
11261  lt_count = 0;
11262  for (lt_i = NF; lt_i > 0; lt_i--) {
11263    if ($lt_i != "" && $lt_i != ".") {
11264      if ($lt_i == "..") {
11265        lt_count++;
11266      } else {
11267        if (lt_count == 0) {
11268          lt_foo = "/" $lt_i lt_foo;
11269        } else {
11270          lt_count--;
11271        }
11272      }
11273    }
11274  }
11275  if (lt_foo != "") { lt_freq[lt_foo]++; }
11276  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11277}'`
11278  # AWK program above erroneously prepends '/' to C:/dos/paths
11279  # for these hosts.
11280  case $host_os in
11281    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11282      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11283  esac
11284  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11285else
11286  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11287fi
11288library_names_spec=
11289libname_spec='lib$name'
11290soname_spec=
11291shrext_cmds=.so
11292postinstall_cmds=
11293postuninstall_cmds=
11294finish_cmds=
11295finish_eval=
11296shlibpath_var=
11297shlibpath_overrides_runpath=unknown
11298version_type=none
11299dynamic_linker="$host_os ld.so"
11300sys_lib_dlsearch_path_spec="/lib /usr/lib"
11301need_lib_prefix=unknown
11302hardcode_into_libs=no
11303
11304# when you set need_version to no, make sure it does not cause -set_version
11305# flags to be left without arguments
11306need_version=unknown
11307
11308
11309
11310case $host_os in
11311aix3*)
11312  version_type=linux # correct to gnu/linux during the next big refactor
11313  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11314  shlibpath_var=LIBPATH
11315
11316  # AIX 3 has no versioning support, so we append a major version to the name.
11317  soname_spec='$libname$release$shared_ext$major'
11318  ;;
11319
11320aix[4-9]*)
11321  version_type=linux # correct to gnu/linux during the next big refactor
11322  need_lib_prefix=no
11323  need_version=no
11324  hardcode_into_libs=yes
11325  if test ia64 = "$host_cpu"; then
11326    # AIX 5 supports IA64
11327    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11328    shlibpath_var=LD_LIBRARY_PATH
11329  else
11330    # With GCC up to 2.95.x, collect2 would create an import file
11331    # for dependence libraries.  The import file would start with
11332    # the line '#! .'.  This would cause the generated library to
11333    # depend on '.', always an invalid library.  This was fixed in
11334    # development snapshots of GCC prior to 3.0.
11335    case $host_os in
11336      aix4 | aix4.[01] | aix4.[01].*)
11337      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11338	   echo ' yes '
11339	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11340	:
11341      else
11342	can_build_shared=no
11343      fi
11344      ;;
11345    esac
11346    # Using Import Files as archive members, it is possible to support
11347    # filename-based versioning of shared library archives on AIX. While
11348    # this would work for both with and without runtime linking, it will
11349    # prevent static linking of such archives. So we do filename-based
11350    # shared library versioning with .so extension only, which is used
11351    # when both runtime linking and shared linking is enabled.
11352    # Unfortunately, runtime linking may impact performance, so we do
11353    # not want this to be the default eventually. Also, we use the
11354    # versioned .so libs for executables only if there is the -brtl
11355    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11356    # To allow for filename-based versioning support, we need to create
11357    # libNAME.so.V as an archive file, containing:
11358    # *) an Import File, referring to the versioned filename of the
11359    #    archive as well as the shared archive member, telling the
11360    #    bitwidth (32 or 64) of that shared object, and providing the
11361    #    list of exported symbols of that shared object, eventually
11362    #    decorated with the 'weak' keyword
11363    # *) the shared object with the F_LOADONLY flag set, to really avoid
11364    #    it being seen by the linker.
11365    # At run time we better use the real file rather than another symlink,
11366    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11367
11368    case $with_aix_soname,$aix_use_runtimelinking in
11369    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11370    # soname into executable. Probably we can add versioning support to
11371    # collect2, so additional links can be useful in future.
11372    aix,yes) # traditional libtool
11373      dynamic_linker='AIX unversionable lib.so'
11374      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11375      # instead of lib<name>.a to let people know that these are not
11376      # typical AIX shared libraries.
11377      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11378      ;;
11379    aix,no) # traditional AIX only
11380      dynamic_linker='AIX lib.a(lib.so.V)'
11381      # We preserve .a as extension for shared libraries through AIX4.2
11382      # and later when we are not doing run time linking.
11383      library_names_spec='$libname$release.a $libname.a'
11384      soname_spec='$libname$release$shared_ext$major'
11385      ;;
11386    svr4,*) # full svr4 only
11387      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11388      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11389      # We do not specify a path in Import Files, so LIBPATH fires.
11390      shlibpath_overrides_runpath=yes
11391      ;;
11392    *,yes) # both, prefer svr4
11393      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11394      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11395      # unpreferred sharedlib libNAME.a needs extra handling
11396      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"'
11397      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"'
11398      # We do not specify a path in Import Files, so LIBPATH fires.
11399      shlibpath_overrides_runpath=yes
11400      ;;
11401    *,no) # both, prefer aix
11402      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11403      library_names_spec='$libname$release.a $libname.a'
11404      soname_spec='$libname$release$shared_ext$major'
11405      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11406      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)'
11407      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"'
11408      ;;
11409    esac
11410    shlibpath_var=LIBPATH
11411  fi
11412  ;;
11413
11414amigaos*)
11415  case $host_cpu in
11416  powerpc)
11417    # Since July 2007 AmigaOS4 officially supports .so libraries.
11418    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11419    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11420    ;;
11421  m68k)
11422    library_names_spec='$libname.ixlibrary $libname.a'
11423    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11424    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'
11425    ;;
11426  esac
11427  ;;
11428
11429beos*)
11430  library_names_spec='$libname$shared_ext'
11431  dynamic_linker="$host_os ld.so"
11432  shlibpath_var=LIBRARY_PATH
11433  ;;
11434
11435bsdi[45]*)
11436  version_type=linux # correct to gnu/linux during the next big refactor
11437  need_version=no
11438  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11439  soname_spec='$libname$release$shared_ext$major'
11440  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11441  shlibpath_var=LD_LIBRARY_PATH
11442  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11443  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11444  # the default ld.so.conf also contains /usr/contrib/lib and
11445  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11446  # libtool to hard-code these into programs
11447  ;;
11448
11449cygwin* | mingw* | pw32* | cegcc*)
11450  version_type=windows
11451  shrext_cmds=.dll
11452  need_version=no
11453  need_lib_prefix=no
11454
11455  case $GCC,$cc_basename in
11456  yes,*)
11457    # gcc
11458    library_names_spec='$libname.dll.a'
11459    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11460    postinstall_cmds='base_file=`basename \$file`~
11461      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11462      dldir=$destdir/`dirname \$dlpath`~
11463      test -d \$dldir || mkdir -p \$dldir~
11464      $install_prog $dir/$dlname \$dldir/$dlname~
11465      chmod a+x \$dldir/$dlname~
11466      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11467        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11468      fi'
11469    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11470      dlpath=$dir/\$dldll~
11471       $RM \$dlpath'
11472    shlibpath_overrides_runpath=yes
11473
11474    case $host_os in
11475    cygwin*)
11476      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11477      soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11478
11479      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11480      ;;
11481    mingw* | cegcc*)
11482      # MinGW DLLs use traditional 'lib' prefix
11483      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11484      ;;
11485    pw32*)
11486      # pw32 DLLs use 'pw' prefix rather than 'lib'
11487      library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11488      ;;
11489    esac
11490    dynamic_linker='Win32 ld.exe'
11491    ;;
11492
11493  *,cl* | *,icl*)
11494    # Native MSVC or ICC
11495    libname_spec='$name'
11496    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11497    library_names_spec='$libname.dll.lib'
11498
11499    case $build_os in
11500    mingw*)
11501      sys_lib_search_path_spec=
11502      lt_save_ifs=$IFS
11503      IFS=';'
11504      for lt_path in $LIB
11505      do
11506        IFS=$lt_save_ifs
11507        # Let DOS variable expansion print the short 8.3 style file name.
11508        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11509        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11510      done
11511      IFS=$lt_save_ifs
11512      # Convert to MSYS style.
11513      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11514      ;;
11515    cygwin*)
11516      # Convert to unix form, then to dos form, then back to unix form
11517      # but this time dos style (no spaces!) so that the unix form looks
11518      # like /cygdrive/c/PROGRA~1:/cygdr...
11519      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11520      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11521      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11522      ;;
11523    *)
11524      sys_lib_search_path_spec=$LIB
11525      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11526        # It is most probably a Windows format PATH.
11527        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11528      else
11529        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11530      fi
11531      # FIXME: find the short name or the path components, as spaces are
11532      # common. (e.g. "Program Files" -> "PROGRA~1")
11533      ;;
11534    esac
11535
11536    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11537    postinstall_cmds='base_file=`basename \$file`~
11538      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11539      dldir=$destdir/`dirname \$dlpath`~
11540      test -d \$dldir || mkdir -p \$dldir~
11541      $install_prog $dir/$dlname \$dldir/$dlname'
11542    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11543      dlpath=$dir/\$dldll~
11544       $RM \$dlpath'
11545    shlibpath_overrides_runpath=yes
11546    dynamic_linker='Win32 link.exe'
11547    ;;
11548
11549  *)
11550    # Assume MSVC and ICC wrapper
11551    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11552    dynamic_linker='Win32 ld.exe'
11553    ;;
11554  esac
11555  # FIXME: first we should search . and the directory the executable is in
11556  shlibpath_var=PATH
11557  ;;
11558
11559darwin* | rhapsody*)
11560  dynamic_linker="$host_os dyld"
11561  version_type=darwin
11562  need_lib_prefix=no
11563  need_version=no
11564  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11565  soname_spec='$libname$release$major$shared_ext'
11566  shlibpath_overrides_runpath=yes
11567  shlibpath_var=DYLD_LIBRARY_PATH
11568  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11569
11570  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11571  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11572  ;;
11573
11574dgux*)
11575  version_type=linux # correct to gnu/linux during the next big refactor
11576  need_lib_prefix=no
11577  need_version=no
11578  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11579  soname_spec='$libname$release$shared_ext$major'
11580  shlibpath_var=LD_LIBRARY_PATH
11581  ;;
11582
11583freebsd* | dragonfly* | midnightbsd*)
11584  # DragonFly does not have aout.  When/if they implement a new
11585  # versioning mechanism, adjust this.
11586  if test -x /usr/bin/objformat; then
11587    objformat=`/usr/bin/objformat`
11588  else
11589    case $host_os in
11590    freebsd[23].*) objformat=aout ;;
11591    *) objformat=elf ;;
11592    esac
11593  fi
11594  version_type=freebsd-$objformat
11595  case $version_type in
11596    freebsd-elf*)
11597      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11598      soname_spec='$libname$release$shared_ext$major'
11599      need_version=no
11600      need_lib_prefix=no
11601      ;;
11602    freebsd-*)
11603      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11604      need_version=yes
11605      ;;
11606  esac
11607  shlibpath_var=LD_LIBRARY_PATH
11608  case $host_os in
11609  freebsd2.*)
11610    shlibpath_overrides_runpath=yes
11611    ;;
11612  freebsd3.[01]* | freebsdelf3.[01]*)
11613    shlibpath_overrides_runpath=yes
11614    hardcode_into_libs=yes
11615    ;;
11616  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11617  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11618    shlibpath_overrides_runpath=no
11619    hardcode_into_libs=yes
11620    ;;
11621  *) # from 4.6 on, and DragonFly
11622    shlibpath_overrides_runpath=yes
11623    hardcode_into_libs=yes
11624    ;;
11625  esac
11626  ;;
11627
11628haiku*)
11629  version_type=linux # correct to gnu/linux during the next big refactor
11630  need_lib_prefix=no
11631  need_version=no
11632  dynamic_linker="$host_os runtime_loader"
11633  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11634  soname_spec='$libname$release$shared_ext$major'
11635  shlibpath_var=LIBRARY_PATH
11636  shlibpath_overrides_runpath=no
11637  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11638  hardcode_into_libs=yes
11639  ;;
11640
11641hpux9* | hpux10* | hpux11*)
11642  # Give a soname corresponding to the major version so that dld.sl refuses to
11643  # link against other versions.
11644  version_type=sunos
11645  need_lib_prefix=no
11646  need_version=no
11647  case $host_cpu in
11648  ia64*)
11649    shrext_cmds='.so'
11650    hardcode_into_libs=yes
11651    dynamic_linker="$host_os dld.so"
11652    shlibpath_var=LD_LIBRARY_PATH
11653    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11654    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11655    soname_spec='$libname$release$shared_ext$major'
11656    if test 32 = "$HPUX_IA64_MODE"; then
11657      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11658      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11659    else
11660      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11661      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11662    fi
11663    ;;
11664  hppa*64*)
11665    shrext_cmds='.sl'
11666    hardcode_into_libs=yes
11667    dynamic_linker="$host_os dld.sl"
11668    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11669    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11670    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11671    soname_spec='$libname$release$shared_ext$major'
11672    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11673    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11674    ;;
11675  *)
11676    shrext_cmds='.sl'
11677    dynamic_linker="$host_os dld.sl"
11678    shlibpath_var=SHLIB_PATH
11679    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11680    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11681    soname_spec='$libname$release$shared_ext$major'
11682    ;;
11683  esac
11684  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11685  postinstall_cmds='chmod 555 $lib'
11686  # or fails outright, so override atomically:
11687  install_override_mode=555
11688  ;;
11689
11690interix[3-9]*)
11691  version_type=linux # correct to gnu/linux during the next big refactor
11692  need_lib_prefix=no
11693  need_version=no
11694  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11695  soname_spec='$libname$release$shared_ext$major'
11696  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11697  shlibpath_var=LD_LIBRARY_PATH
11698  shlibpath_overrides_runpath=no
11699  hardcode_into_libs=yes
11700  ;;
11701
11702irix5* | irix6* | nonstopux*)
11703  case $host_os in
11704    nonstopux*) version_type=nonstopux ;;
11705    *)
11706	if test yes = "$lt_cv_prog_gnu_ld"; then
11707		version_type=linux # correct to gnu/linux during the next big refactor
11708	else
11709		version_type=irix
11710	fi ;;
11711  esac
11712  need_lib_prefix=no
11713  need_version=no
11714  soname_spec='$libname$release$shared_ext$major'
11715  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11716  case $host_os in
11717  irix5* | nonstopux*)
11718    libsuff= shlibsuff=
11719    ;;
11720  *)
11721    case $LD in # libtool.m4 will add one of these switches to LD
11722    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11723      libsuff= shlibsuff= libmagic=32-bit;;
11724    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11725      libsuff=32 shlibsuff=N32 libmagic=N32;;
11726    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11727      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11728    *) libsuff= shlibsuff= libmagic=never-match;;
11729    esac
11730    ;;
11731  esac
11732  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11733  shlibpath_overrides_runpath=no
11734  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11735  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11736  hardcode_into_libs=yes
11737  ;;
11738
11739# No shared lib support for Linux oldld, aout, or coff.
11740linux*oldld* | linux*aout* | linux*coff*)
11741  dynamic_linker=no
11742  ;;
11743
11744linux*android*)
11745  version_type=none # Android doesn't support versioned libraries.
11746  need_lib_prefix=no
11747  need_version=no
11748  library_names_spec='$libname$release$shared_ext'
11749  soname_spec='$libname$release$shared_ext'
11750  finish_cmds=
11751  shlibpath_var=LD_LIBRARY_PATH
11752  shlibpath_overrides_runpath=yes
11753
11754  # This implies no fast_install, which is unacceptable.
11755  # Some rework will be needed to allow for fast_install
11756  # before this can be enabled.
11757  hardcode_into_libs=yes
11758
11759  dynamic_linker='Android linker'
11760  # Don't embed -rpath directories since the linker doesn't support them.
11761  hardcode_libdir_flag_spec='-L$libdir'
11762  ;;
11763
11764# This must be glibc/ELF.
11765linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11766  version_type=linux # correct to gnu/linux during the next big refactor
11767  need_lib_prefix=no
11768  need_version=no
11769  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11770  soname_spec='$libname$release$shared_ext$major'
11771  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11772  shlibpath_var=LD_LIBRARY_PATH
11773  shlibpath_overrides_runpath=no
11774
11775  # Some binutils ld are patched to set DT_RUNPATH
11776  if test ${lt_cv_shlibpath_overrides_runpath+y}
11777then :
11778  printf %s "(cached) " >&6
11779else $as_nop
11780  lt_cv_shlibpath_overrides_runpath=no
11781    save_LDFLAGS=$LDFLAGS
11782    save_libdir=$libdir
11783    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11784	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11785    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11786/* end confdefs.h.  */
11787
11788int
11789main (void)
11790{
11791
11792  ;
11793  return 0;
11794}
11795_ACEOF
11796if ac_fn_c_try_link "$LINENO"
11797then :
11798  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11799then :
11800  lt_cv_shlibpath_overrides_runpath=yes
11801fi
11802fi
11803rm -f core conftest.err conftest.$ac_objext conftest.beam \
11804    conftest$ac_exeext conftest.$ac_ext
11805    LDFLAGS=$save_LDFLAGS
11806    libdir=$save_libdir
11807
11808fi
11809
11810  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11811
11812  # This implies no fast_install, which is unacceptable.
11813  # Some rework will be needed to allow for fast_install
11814  # before this can be enabled.
11815  hardcode_into_libs=yes
11816
11817  # Ideally, we could use ldconfig to report *all* directores which are
11818  # searched for libraries, however this is still not possible.  Aside from not
11819  # being certain /sbin/ldconfig is available, command
11820  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11821  # even though it is searched at run-time.  Try to do the best guess by
11822  # appending ld.so.conf contents (and includes) to the search path.
11823  if test -f /etc/ld.so.conf; then
11824    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' ' '`
11825    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11826  fi
11827
11828  # We used to test for /lib/ld.so.1 and disable shared libraries on
11829  # powerpc, because MkLinux only supported shared libraries with the
11830  # GNU dynamic linker.  Since this was broken with cross compilers,
11831  # most powerpc-linux boxes support dynamic linking these days and
11832  # people can always --disable-shared, the test was removed, and we
11833  # assume the GNU/Linux dynamic linker is in use.
11834  dynamic_linker='GNU/Linux ld.so'
11835  ;;
11836
11837netbsdelf*-gnu)
11838  version_type=linux
11839  need_lib_prefix=no
11840  need_version=no
11841  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11842  soname_spec='${libname}${release}${shared_ext}$major'
11843  shlibpath_var=LD_LIBRARY_PATH
11844  shlibpath_overrides_runpath=no
11845  hardcode_into_libs=yes
11846  dynamic_linker='NetBSD ld.elf_so'
11847  ;;
11848
11849netbsd*)
11850  version_type=sunos
11851  need_lib_prefix=no
11852  need_version=no
11853  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11854    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11855    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11856    dynamic_linker='NetBSD (a.out) ld.so'
11857  else
11858    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11859    soname_spec='$libname$release$shared_ext$major'
11860    dynamic_linker='NetBSD ld.elf_so'
11861  fi
11862  shlibpath_var=LD_LIBRARY_PATH
11863  shlibpath_overrides_runpath=yes
11864  hardcode_into_libs=yes
11865  ;;
11866
11867newsos6)
11868  version_type=linux # correct to gnu/linux during the next big refactor
11869  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11870  shlibpath_var=LD_LIBRARY_PATH
11871  shlibpath_overrides_runpath=yes
11872  ;;
11873
11874*nto* | *qnx*)
11875  version_type=qnx
11876  need_lib_prefix=no
11877  need_version=no
11878  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11879  soname_spec='$libname$release$shared_ext$major'
11880  shlibpath_var=LD_LIBRARY_PATH
11881  shlibpath_overrides_runpath=no
11882  hardcode_into_libs=yes
11883  dynamic_linker='ldqnx.so'
11884  ;;
11885
11886openbsd* | bitrig*)
11887  version_type=sunos
11888  sys_lib_dlsearch_path_spec=/usr/lib
11889  need_lib_prefix=no
11890  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11891    need_version=no
11892  else
11893    need_version=yes
11894  fi
11895  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11896  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11897  shlibpath_var=LD_LIBRARY_PATH
11898  shlibpath_overrides_runpath=yes
11899  ;;
11900
11901os2*)
11902  libname_spec='$name'
11903  version_type=windows
11904  shrext_cmds=.dll
11905  need_version=no
11906  need_lib_prefix=no
11907  # OS/2 can only load a DLL with a base name of 8 characters or less.
11908  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11909    v=$($ECHO $release$versuffix | tr -d .-);
11910    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11911    $ECHO $n$v`$shared_ext'
11912  library_names_spec='${libname}_dll.$libext'
11913  dynamic_linker='OS/2 ld.exe'
11914  shlibpath_var=BEGINLIBPATH
11915  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11916  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11917  postinstall_cmds='base_file=`basename \$file`~
11918    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11919    dldir=$destdir/`dirname \$dlpath`~
11920    test -d \$dldir || mkdir -p \$dldir~
11921    $install_prog $dir/$dlname \$dldir/$dlname~
11922    chmod a+x \$dldir/$dlname~
11923    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11924      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11925    fi'
11926  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11927    dlpath=$dir/\$dldll~
11928    $RM \$dlpath'
11929  ;;
11930
11931osf3* | osf4* | osf5*)
11932  version_type=osf
11933  need_lib_prefix=no
11934  need_version=no
11935  soname_spec='$libname$release$shared_ext$major'
11936  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11937  shlibpath_var=LD_LIBRARY_PATH
11938  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11939  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11940  ;;
11941
11942rdos*)
11943  dynamic_linker=no
11944  ;;
11945
11946solaris*)
11947  version_type=linux # correct to gnu/linux during the next big refactor
11948  need_lib_prefix=no
11949  need_version=no
11950  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11951  soname_spec='$libname$release$shared_ext$major'
11952  shlibpath_var=LD_LIBRARY_PATH
11953  shlibpath_overrides_runpath=yes
11954  hardcode_into_libs=yes
11955  # ldd complains unless libraries are executable
11956  postinstall_cmds='chmod +x $lib'
11957  ;;
11958
11959sunos4*)
11960  version_type=sunos
11961  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11962  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11963  shlibpath_var=LD_LIBRARY_PATH
11964  shlibpath_overrides_runpath=yes
11965  if test yes = "$with_gnu_ld"; then
11966    need_lib_prefix=no
11967  fi
11968  need_version=yes
11969  ;;
11970
11971sysv4 | sysv4.3*)
11972  version_type=linux # correct to gnu/linux during the next big refactor
11973  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11974  soname_spec='$libname$release$shared_ext$major'
11975  shlibpath_var=LD_LIBRARY_PATH
11976  case $host_vendor in
11977    sni)
11978      shlibpath_overrides_runpath=no
11979      need_lib_prefix=no
11980      runpath_var=LD_RUN_PATH
11981      ;;
11982    siemens)
11983      need_lib_prefix=no
11984      ;;
11985    motorola)
11986      need_lib_prefix=no
11987      need_version=no
11988      shlibpath_overrides_runpath=no
11989      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11990      ;;
11991  esac
11992  ;;
11993
11994sysv4*MP*)
11995  if test -d /usr/nec; then
11996    version_type=linux # correct to gnu/linux during the next big refactor
11997    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11998    soname_spec='$libname$shared_ext.$major'
11999    shlibpath_var=LD_LIBRARY_PATH
12000  fi
12001  ;;
12002
12003sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12004  version_type=sco
12005  need_lib_prefix=no
12006  need_version=no
12007  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12008  soname_spec='$libname$release$shared_ext$major'
12009  shlibpath_var=LD_LIBRARY_PATH
12010  shlibpath_overrides_runpath=yes
12011  hardcode_into_libs=yes
12012  if test yes = "$with_gnu_ld"; then
12013    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12014  else
12015    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12016    case $host_os in
12017      sco3.2v5*)
12018        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12019	;;
12020    esac
12021  fi
12022  sys_lib_dlsearch_path_spec='/usr/lib'
12023  ;;
12024
12025tpf*)
12026  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12027  version_type=linux # correct to gnu/linux during the next big refactor
12028  need_lib_prefix=no
12029  need_version=no
12030  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12031  shlibpath_var=LD_LIBRARY_PATH
12032  shlibpath_overrides_runpath=no
12033  hardcode_into_libs=yes
12034  ;;
12035
12036uts4*)
12037  version_type=linux # correct to gnu/linux during the next big refactor
12038  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12039  soname_spec='$libname$release$shared_ext$major'
12040  shlibpath_var=LD_LIBRARY_PATH
12041  ;;
12042
12043*)
12044  dynamic_linker=no
12045  ;;
12046esac
12047{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12048printf "%s\n" "$dynamic_linker" >&6; }
12049test no = "$dynamic_linker" && can_build_shared=no
12050
12051variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12052if test yes = "$GCC"; then
12053  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12054fi
12055
12056if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12057  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12058fi
12059
12060if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12061  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12062fi
12063
12064# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12065configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12066
12067# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12068func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12069
12070# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12071configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12170printf %s "checking how to hardcode library paths into programs... " >&6; }
12171hardcode_action=
12172if test -n "$hardcode_libdir_flag_spec" ||
12173   test -n "$runpath_var" ||
12174   test yes = "$hardcode_automatic"; then
12175
12176  # We can hardcode non-existent directories.
12177  if test no != "$hardcode_direct" &&
12178     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12179     # have to relink, otherwise we might link with an installed library
12180     # when we should be linking with a yet-to-be-installed one
12181     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12182     test no != "$hardcode_minus_L"; then
12183    # Linking always hardcodes the temporary library directory.
12184    hardcode_action=relink
12185  else
12186    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12187    hardcode_action=immediate
12188  fi
12189else
12190  # We cannot hardcode anything, or else we can only hardcode existing
12191  # directories.
12192  hardcode_action=unsupported
12193fi
12194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12195printf "%s\n" "$hardcode_action" >&6; }
12196
12197if test relink = "$hardcode_action" ||
12198   test yes = "$inherit_rpath"; then
12199  # Fast installation is not supported
12200  enable_fast_install=no
12201elif test yes = "$shlibpath_overrides_runpath" ||
12202     test no = "$enable_shared"; then
12203  # Fast installation is not necessary
12204  enable_fast_install=needless
12205fi
12206
12207
12208
12209
12210
12211
12212  if test yes != "$enable_dlopen"; then
12213  enable_dlopen=unknown
12214  enable_dlopen_self=unknown
12215  enable_dlopen_self_static=unknown
12216else
12217  lt_cv_dlopen=no
12218  lt_cv_dlopen_libs=
12219
12220  case $host_os in
12221  beos*)
12222    lt_cv_dlopen=load_add_on
12223    lt_cv_dlopen_libs=
12224    lt_cv_dlopen_self=yes
12225    ;;
12226
12227  mingw* | pw32* | cegcc*)
12228    lt_cv_dlopen=LoadLibrary
12229    lt_cv_dlopen_libs=
12230    ;;
12231
12232  cygwin*)
12233    lt_cv_dlopen=dlopen
12234    lt_cv_dlopen_libs=
12235    ;;
12236
12237  darwin*)
12238    # if libdl is installed we need to link against it
12239    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12240printf %s "checking for dlopen in -ldl... " >&6; }
12241if test ${ac_cv_lib_dl_dlopen+y}
12242then :
12243  printf %s "(cached) " >&6
12244else $as_nop
12245  ac_check_lib_save_LIBS=$LIBS
12246LIBS="-ldl  $LIBS"
12247cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12248/* end confdefs.h.  */
12249
12250/* Override any GCC internal prototype to avoid an error.
12251   Use char because int might match the return type of a GCC
12252   builtin and then its argument prototype would still apply.  */
12253char dlopen ();
12254int
12255main (void)
12256{
12257return dlopen ();
12258  ;
12259  return 0;
12260}
12261_ACEOF
12262if ac_fn_c_try_link "$LINENO"
12263then :
12264  ac_cv_lib_dl_dlopen=yes
12265else $as_nop
12266  ac_cv_lib_dl_dlopen=no
12267fi
12268rm -f core conftest.err conftest.$ac_objext conftest.beam \
12269    conftest$ac_exeext conftest.$ac_ext
12270LIBS=$ac_check_lib_save_LIBS
12271fi
12272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12273printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12274if test "x$ac_cv_lib_dl_dlopen" = xyes
12275then :
12276  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12277else $as_nop
12278
12279    lt_cv_dlopen=dyld
12280    lt_cv_dlopen_libs=
12281    lt_cv_dlopen_self=yes
12282
12283fi
12284
12285    ;;
12286
12287  tpf*)
12288    # Don't try to run any link tests for TPF.  We know it's impossible
12289    # because TPF is a cross-compiler, and we know how we open DSOs.
12290    lt_cv_dlopen=dlopen
12291    lt_cv_dlopen_libs=
12292    lt_cv_dlopen_self=no
12293    ;;
12294
12295  *)
12296    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12297if test "x$ac_cv_func_shl_load" = xyes
12298then :
12299  lt_cv_dlopen=shl_load
12300else $as_nop
12301  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12302printf %s "checking for shl_load in -ldld... " >&6; }
12303if test ${ac_cv_lib_dld_shl_load+y}
12304then :
12305  printf %s "(cached) " >&6
12306else $as_nop
12307  ac_check_lib_save_LIBS=$LIBS
12308LIBS="-ldld  $LIBS"
12309cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12310/* end confdefs.h.  */
12311
12312/* Override any GCC internal prototype to avoid an error.
12313   Use char because int might match the return type of a GCC
12314   builtin and then its argument prototype would still apply.  */
12315char shl_load ();
12316int
12317main (void)
12318{
12319return shl_load ();
12320  ;
12321  return 0;
12322}
12323_ACEOF
12324if ac_fn_c_try_link "$LINENO"
12325then :
12326  ac_cv_lib_dld_shl_load=yes
12327else $as_nop
12328  ac_cv_lib_dld_shl_load=no
12329fi
12330rm -f core conftest.err conftest.$ac_objext conftest.beam \
12331    conftest$ac_exeext conftest.$ac_ext
12332LIBS=$ac_check_lib_save_LIBS
12333fi
12334{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12335printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12336if test "x$ac_cv_lib_dld_shl_load" = xyes
12337then :
12338  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12339else $as_nop
12340  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12341if test "x$ac_cv_func_dlopen" = xyes
12342then :
12343  lt_cv_dlopen=dlopen
12344else $as_nop
12345  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12346printf %s "checking for dlopen in -ldl... " >&6; }
12347if test ${ac_cv_lib_dl_dlopen+y}
12348then :
12349  printf %s "(cached) " >&6
12350else $as_nop
12351  ac_check_lib_save_LIBS=$LIBS
12352LIBS="-ldl  $LIBS"
12353cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12354/* end confdefs.h.  */
12355
12356/* Override any GCC internal prototype to avoid an error.
12357   Use char because int might match the return type of a GCC
12358   builtin and then its argument prototype would still apply.  */
12359char dlopen ();
12360int
12361main (void)
12362{
12363return dlopen ();
12364  ;
12365  return 0;
12366}
12367_ACEOF
12368if ac_fn_c_try_link "$LINENO"
12369then :
12370  ac_cv_lib_dl_dlopen=yes
12371else $as_nop
12372  ac_cv_lib_dl_dlopen=no
12373fi
12374rm -f core conftest.err conftest.$ac_objext conftest.beam \
12375    conftest$ac_exeext conftest.$ac_ext
12376LIBS=$ac_check_lib_save_LIBS
12377fi
12378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12379printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12380if test "x$ac_cv_lib_dl_dlopen" = xyes
12381then :
12382  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12383else $as_nop
12384  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12385printf %s "checking for dlopen in -lsvld... " >&6; }
12386if test ${ac_cv_lib_svld_dlopen+y}
12387then :
12388  printf %s "(cached) " >&6
12389else $as_nop
12390  ac_check_lib_save_LIBS=$LIBS
12391LIBS="-lsvld  $LIBS"
12392cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12393/* end confdefs.h.  */
12394
12395/* Override any GCC internal prototype to avoid an error.
12396   Use char because int might match the return type of a GCC
12397   builtin and then its argument prototype would still apply.  */
12398char dlopen ();
12399int
12400main (void)
12401{
12402return dlopen ();
12403  ;
12404  return 0;
12405}
12406_ACEOF
12407if ac_fn_c_try_link "$LINENO"
12408then :
12409  ac_cv_lib_svld_dlopen=yes
12410else $as_nop
12411  ac_cv_lib_svld_dlopen=no
12412fi
12413rm -f core conftest.err conftest.$ac_objext conftest.beam \
12414    conftest$ac_exeext conftest.$ac_ext
12415LIBS=$ac_check_lib_save_LIBS
12416fi
12417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12418printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12419if test "x$ac_cv_lib_svld_dlopen" = xyes
12420then :
12421  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12422else $as_nop
12423  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12424printf %s "checking for dld_link in -ldld... " >&6; }
12425if test ${ac_cv_lib_dld_dld_link+y}
12426then :
12427  printf %s "(cached) " >&6
12428else $as_nop
12429  ac_check_lib_save_LIBS=$LIBS
12430LIBS="-ldld  $LIBS"
12431cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12432/* end confdefs.h.  */
12433
12434/* Override any GCC internal prototype to avoid an error.
12435   Use char because int might match the return type of a GCC
12436   builtin and then its argument prototype would still apply.  */
12437char dld_link ();
12438int
12439main (void)
12440{
12441return dld_link ();
12442  ;
12443  return 0;
12444}
12445_ACEOF
12446if ac_fn_c_try_link "$LINENO"
12447then :
12448  ac_cv_lib_dld_dld_link=yes
12449else $as_nop
12450  ac_cv_lib_dld_dld_link=no
12451fi
12452rm -f core conftest.err conftest.$ac_objext conftest.beam \
12453    conftest$ac_exeext conftest.$ac_ext
12454LIBS=$ac_check_lib_save_LIBS
12455fi
12456{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12457printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12458if test "x$ac_cv_lib_dld_dld_link" = xyes
12459then :
12460  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12461fi
12462
12463
12464fi
12465
12466
12467fi
12468
12469
12470fi
12471
12472
12473fi
12474
12475
12476fi
12477
12478    ;;
12479  esac
12480
12481  if test no = "$lt_cv_dlopen"; then
12482    enable_dlopen=no
12483  else
12484    enable_dlopen=yes
12485  fi
12486
12487  case $lt_cv_dlopen in
12488  dlopen)
12489    save_CPPFLAGS=$CPPFLAGS
12490    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12491
12492    save_LDFLAGS=$LDFLAGS
12493    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12494
12495    save_LIBS=$LIBS
12496    LIBS="$lt_cv_dlopen_libs $LIBS"
12497
12498    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12499printf %s "checking whether a program can dlopen itself... " >&6; }
12500if test ${lt_cv_dlopen_self+y}
12501then :
12502  printf %s "(cached) " >&6
12503else $as_nop
12504  	  if test yes = "$cross_compiling"; then :
12505  lt_cv_dlopen_self=cross
12506else
12507  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12508  lt_status=$lt_dlunknown
12509  cat > conftest.$ac_ext <<_LT_EOF
12510#line $LINENO "configure"
12511#include "confdefs.h"
12512
12513#if HAVE_DLFCN_H
12514#include <dlfcn.h>
12515#endif
12516
12517#include <stdio.h>
12518
12519#ifdef RTLD_GLOBAL
12520#  define LT_DLGLOBAL		RTLD_GLOBAL
12521#else
12522#  ifdef DL_GLOBAL
12523#    define LT_DLGLOBAL		DL_GLOBAL
12524#  else
12525#    define LT_DLGLOBAL		0
12526#  endif
12527#endif
12528
12529/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12530   find out it does not work in some platform. */
12531#ifndef LT_DLLAZY_OR_NOW
12532#  ifdef RTLD_LAZY
12533#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12534#  else
12535#    ifdef DL_LAZY
12536#      define LT_DLLAZY_OR_NOW		DL_LAZY
12537#    else
12538#      ifdef RTLD_NOW
12539#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12540#      else
12541#        ifdef DL_NOW
12542#          define LT_DLLAZY_OR_NOW	DL_NOW
12543#        else
12544#          define LT_DLLAZY_OR_NOW	0
12545#        endif
12546#      endif
12547#    endif
12548#  endif
12549#endif
12550
12551/* When -fvisibility=hidden is used, assume the code has been annotated
12552   correspondingly for the symbols needed.  */
12553#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12554int fnord () __attribute__((visibility("default")));
12555#endif
12556
12557int fnord () { return 42; }
12558int main ()
12559{
12560  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12561  int status = $lt_dlunknown;
12562
12563  if (self)
12564    {
12565      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12566      else
12567        {
12568	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12569          else puts (dlerror ());
12570	}
12571      /* dlclose (self); */
12572    }
12573  else
12574    puts (dlerror ());
12575
12576  return status;
12577}
12578_LT_EOF
12579  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12580  (eval $ac_link) 2>&5
12581  ac_status=$?
12582  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12583  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12584    (./conftest; exit; ) >&5 2>/dev/null
12585    lt_status=$?
12586    case x$lt_status in
12587      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12588      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12589      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12590    esac
12591  else :
12592    # compilation failed
12593    lt_cv_dlopen_self=no
12594  fi
12595fi
12596rm -fr conftest*
12597
12598
12599fi
12600{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12601printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12602
12603    if test yes = "$lt_cv_dlopen_self"; then
12604      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12605      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12606printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12607if test ${lt_cv_dlopen_self_static+y}
12608then :
12609  printf %s "(cached) " >&6
12610else $as_nop
12611  	  if test yes = "$cross_compiling"; then :
12612  lt_cv_dlopen_self_static=cross
12613else
12614  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12615  lt_status=$lt_dlunknown
12616  cat > conftest.$ac_ext <<_LT_EOF
12617#line $LINENO "configure"
12618#include "confdefs.h"
12619
12620#if HAVE_DLFCN_H
12621#include <dlfcn.h>
12622#endif
12623
12624#include <stdio.h>
12625
12626#ifdef RTLD_GLOBAL
12627#  define LT_DLGLOBAL		RTLD_GLOBAL
12628#else
12629#  ifdef DL_GLOBAL
12630#    define LT_DLGLOBAL		DL_GLOBAL
12631#  else
12632#    define LT_DLGLOBAL		0
12633#  endif
12634#endif
12635
12636/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12637   find out it does not work in some platform. */
12638#ifndef LT_DLLAZY_OR_NOW
12639#  ifdef RTLD_LAZY
12640#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12641#  else
12642#    ifdef DL_LAZY
12643#      define LT_DLLAZY_OR_NOW		DL_LAZY
12644#    else
12645#      ifdef RTLD_NOW
12646#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12647#      else
12648#        ifdef DL_NOW
12649#          define LT_DLLAZY_OR_NOW	DL_NOW
12650#        else
12651#          define LT_DLLAZY_OR_NOW	0
12652#        endif
12653#      endif
12654#    endif
12655#  endif
12656#endif
12657
12658/* When -fvisibility=hidden is used, assume the code has been annotated
12659   correspondingly for the symbols needed.  */
12660#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12661int fnord () __attribute__((visibility("default")));
12662#endif
12663
12664int fnord () { return 42; }
12665int main ()
12666{
12667  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12668  int status = $lt_dlunknown;
12669
12670  if (self)
12671    {
12672      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12673      else
12674        {
12675	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12676          else puts (dlerror ());
12677	}
12678      /* dlclose (self); */
12679    }
12680  else
12681    puts (dlerror ());
12682
12683  return status;
12684}
12685_LT_EOF
12686  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12687  (eval $ac_link) 2>&5
12688  ac_status=$?
12689  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12690  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12691    (./conftest; exit; ) >&5 2>/dev/null
12692    lt_status=$?
12693    case x$lt_status in
12694      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12695      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12696      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12697    esac
12698  else :
12699    # compilation failed
12700    lt_cv_dlopen_self_static=no
12701  fi
12702fi
12703rm -fr conftest*
12704
12705
12706fi
12707{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12708printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12709    fi
12710
12711    CPPFLAGS=$save_CPPFLAGS
12712    LDFLAGS=$save_LDFLAGS
12713    LIBS=$save_LIBS
12714    ;;
12715  esac
12716
12717  case $lt_cv_dlopen_self in
12718  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12719  *) enable_dlopen_self=unknown ;;
12720  esac
12721
12722  case $lt_cv_dlopen_self_static in
12723  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12724  *) enable_dlopen_self_static=unknown ;;
12725  esac
12726fi
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744striplib=
12745old_striplib=
12746{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12747printf %s "checking whether stripping libraries is possible... " >&6; }
12748if test -z "$STRIP"; then
12749  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12750printf "%s\n" "no" >&6; }
12751else
12752  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12753    old_striplib="$STRIP --strip-debug"
12754    striplib="$STRIP --strip-unneeded"
12755    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12756printf "%s\n" "yes" >&6; }
12757  else
12758    case $host_os in
12759    darwin*)
12760      # FIXME - insert some real tests, host_os isn't really good enough
12761      striplib="$STRIP -x"
12762      old_striplib="$STRIP -S"
12763      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12764printf "%s\n" "yes" >&6; }
12765      ;;
12766    freebsd*)
12767      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12768        old_striplib="$STRIP --strip-debug"
12769        striplib="$STRIP --strip-unneeded"
12770        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12771printf "%s\n" "yes" >&6; }
12772      else
12773        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12774printf "%s\n" "no" >&6; }
12775      fi
12776      ;;
12777    *)
12778      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12779printf "%s\n" "no" >&6; }
12780      ;;
12781    esac
12782  fi
12783fi
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796  # Report what library types will actually be built
12797  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12798printf %s "checking if libtool supports shared libraries... " >&6; }
12799  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12800printf "%s\n" "$can_build_shared" >&6; }
12801
12802  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12803printf %s "checking whether to build shared libraries... " >&6; }
12804  test no = "$can_build_shared" && enable_shared=no
12805
12806  # On AIX, shared libraries and static libraries use the same namespace, and
12807  # are all built from PIC.
12808  case $host_os in
12809  aix3*)
12810    test yes = "$enable_shared" && enable_static=no
12811    if test -n "$RANLIB"; then
12812      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12813      postinstall_cmds='$RANLIB $lib'
12814    fi
12815    ;;
12816
12817  aix[4-9]*)
12818    if test ia64 != "$host_cpu"; then
12819      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12820      yes,aix,yes) ;;			# shared object as lib.so file only
12821      yes,svr4,*) ;;			# shared object as lib.so archive member only
12822      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12823      esac
12824    fi
12825    ;;
12826  esac
12827  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12828printf "%s\n" "$enable_shared" >&6; }
12829
12830  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12831printf %s "checking whether to build static libraries... " >&6; }
12832  # Make sure either enable_shared or enable_static is yes.
12833  test yes = "$enable_shared" || enable_static=yes
12834  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12835printf "%s\n" "$enable_static" >&6; }
12836
12837
12838
12839
12840fi
12841ac_ext=c
12842ac_cpp='$CPP $CPPFLAGS'
12843ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12844ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12845ac_compiler_gnu=$ac_cv_c_compiler_gnu
12846
12847CC=$lt_save_CC
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863        ac_config_commands="$ac_config_commands libtool"
12864
12865
12866
12867
12868# Only expand once:
12869
12870
12871
12872# check for headers
12873# Autoupdate added the next two lines to ensure that your configure
12874# script's behavior did not change.  They are probably safe to remove.
12875
12876{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
12877printf %s "checking for egrep... " >&6; }
12878if test ${ac_cv_path_EGREP+y}
12879then :
12880  printf %s "(cached) " >&6
12881else $as_nop
12882  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
12883   then ac_cv_path_EGREP="$GREP -E"
12884   else
12885     if test -z "$EGREP"; then
12886  ac_path_EGREP_found=false
12887  # Loop through the user's path and test for each of PROGNAME-LIST
12888  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12889for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12890do
12891  IFS=$as_save_IFS
12892  case $as_dir in #(((
12893    '') as_dir=./ ;;
12894    */) ;;
12895    *) as_dir=$as_dir/ ;;
12896  esac
12897    for ac_prog in egrep
12898   do
12899    for ac_exec_ext in '' $ac_executable_extensions; do
12900      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
12901      as_fn_executable_p "$ac_path_EGREP" || continue
12902# Check for GNU ac_path_EGREP and select it if it is found.
12903  # Check for GNU $ac_path_EGREP
12904case `"$ac_path_EGREP" --version 2>&1` in
12905*GNU*)
12906  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
12907*)
12908  ac_count=0
12909  printf %s 0123456789 >"conftest.in"
12910  while :
12911  do
12912    cat "conftest.in" "conftest.in" >"conftest.tmp"
12913    mv "conftest.tmp" "conftest.in"
12914    cp "conftest.in" "conftest.nl"
12915    printf "%s\n" 'EGREP' >> "conftest.nl"
12916    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
12917    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12918    as_fn_arith $ac_count + 1 && ac_count=$as_val
12919    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
12920      # Best one so far, save it but keep looking for a better one
12921      ac_cv_path_EGREP="$ac_path_EGREP"
12922      ac_path_EGREP_max=$ac_count
12923    fi
12924    # 10*(2^10) chars as input seems more than enough
12925    test $ac_count -gt 10 && break
12926  done
12927  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12928esac
12929
12930      $ac_path_EGREP_found && break 3
12931    done
12932  done
12933  done
12934IFS=$as_save_IFS
12935  if test -z "$ac_cv_path_EGREP"; then
12936    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12937  fi
12938else
12939  ac_cv_path_EGREP=$EGREP
12940fi
12941
12942   fi
12943fi
12944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
12945printf "%s\n" "$ac_cv_path_EGREP" >&6; }
12946 EGREP="$ac_cv_path_EGREP"
12947
12948
12949
12950ac_fn_c_check_header_compile "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
12951if test "x$ac_cv_header_byteswap_h" = xyes
12952then :
12953  printf "%s\n" "#define HAVE_BYTESWAP_H 1" >>confdefs.h
12954
12955fi
12956ac_fn_c_check_header_compile "$LINENO" "stdatomic.h" "ac_cv_header_stdatomic_h" "$ac_includes_default"
12957if test "x$ac_cv_header_stdatomic_h" = xyes
12958then :
12959  printf "%s\n" "#define HAVE_STDATOMIC_H 1" >>confdefs.h
12960
12961fi
12962
12963
12964# check for functions
12965
12966  for ac_func in getopt_long
12967do :
12968  ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
12969if test "x$ac_cv_func_getopt_long" = xyes
12970then :
12971  printf "%s\n" "#define HAVE_GETOPT_LONG 1" >>confdefs.h
12972 GETOPT_O_FILES=''
12973else $as_nop
12974  GETOPT_O_FILES='getopt_long.o'
12975fi
12976
12977done
12978ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
12979if test "x$ac_cv_func_posix_fadvise" = xyes
12980then :
12981  printf "%s\n" "#define HAVE_POSIX_FADVISE 1" >>confdefs.h
12982
12983fi
12984
12985ac_fn_c_check_func "$LINENO" "posix_memalign" "ac_cv_func_posix_memalign"
12986if test "x$ac_cv_func_posix_memalign" = xyes
12987then :
12988  printf "%s\n" "#define HAVE_POSIX_MEMALIGN 1" >>confdefs.h
12989
12990fi
12991
12992ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
12993if test "x$ac_cv_func_gettimeofday" = xyes
12994then :
12995  printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
12996
12997fi
12998
12999ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
13000if test "x$ac_cv_func_sysconf" = xyes
13001then :
13002  printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
13003
13004fi
13005
13006ac_fn_c_check_func "$LINENO" "lseek64" "ac_cv_func_lseek64"
13007if test "x$ac_cv_func_lseek64" = xyes
13008then :
13009  printf "%s\n" "#define HAVE_LSEEK64 1" >>confdefs.h
13010
13011fi
13012
13013ac_fn_c_check_func "$LINENO" "srand48_r" "ac_cv_func_srand48_r"
13014if test "x$ac_cv_func_srand48_r" = xyes
13015then :
13016  printf "%s\n" "#define HAVE_SRAND48_R 1" >>confdefs.h
13017
13018fi
13019
13020SAVED_LIBS=$LIBS
13021{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
13022printf %s "checking for library containing pthread_create... " >&6; }
13023if test ${ac_cv_search_pthread_create+y}
13024then :
13025  printf %s "(cached) " >&6
13026else $as_nop
13027  ac_func_search_save_LIBS=$LIBS
13028cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13029/* end confdefs.h.  */
13030
13031/* Override any GCC internal prototype to avoid an error.
13032   Use char because int might match the return type of a GCC
13033   builtin and then its argument prototype would still apply.  */
13034char pthread_create ();
13035int
13036main (void)
13037{
13038return pthread_create ();
13039  ;
13040  return 0;
13041}
13042_ACEOF
13043for ac_lib in '' pthread
13044do
13045  if test -z "$ac_lib"; then
13046    ac_res="none required"
13047  else
13048    ac_res=-l$ac_lib
13049    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13050  fi
13051  if ac_fn_c_try_link "$LINENO"
13052then :
13053  ac_cv_search_pthread_create=$ac_res
13054fi
13055rm -f core conftest.err conftest.$ac_objext conftest.beam \
13056    conftest$ac_exeext
13057  if test ${ac_cv_search_pthread_create+y}
13058then :
13059  break
13060fi
13061done
13062if test ${ac_cv_search_pthread_create+y}
13063then :
13064
13065else $as_nop
13066  ac_cv_search_pthread_create=no
13067fi
13068rm conftest.$ac_ext
13069LIBS=$ac_func_search_save_LIBS
13070fi
13071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
13072printf "%s\n" "$ac_cv_search_pthread_create" >&6; }
13073ac_res=$ac_cv_search_pthread_create
13074if test "$ac_res" != no
13075then :
13076  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13077
13078fi
13079
13080# AC_SEARCH_LIBS adds libraries at the start of $LIBS so remove $SAVED_LIBS
13081# from the end of $LIBS.
13082pthread_lib=${LIBS%${SAVED_LIBS}}
13083ac_fn_c_check_func "$LINENO" "pthread_cancel" "ac_cv_func_pthread_cancel"
13084if test "x$ac_cv_func_pthread_cancel" = xyes
13085then :
13086  printf "%s\n" "#define HAVE_PTHREAD_CANCEL 1" >>confdefs.h
13087
13088fi
13089ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill"
13090if test "x$ac_cv_func_pthread_kill" = xyes
13091then :
13092  printf "%s\n" "#define HAVE_PTHREAD_KILL 1" >>confdefs.h
13093
13094fi
13095
13096LIBS=$SAVED_LIBS
13097PTHREAD_LIB=$pthread_lib
13098
13099
13100SAVED_LIBS=$LIBS
13101{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
13102printf %s "checking for library containing clock_gettime... " >&6; }
13103if test ${ac_cv_search_clock_gettime+y}
13104then :
13105  printf %s "(cached) " >&6
13106else $as_nop
13107  ac_func_search_save_LIBS=$LIBS
13108cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13109/* end confdefs.h.  */
13110
13111/* Override any GCC internal prototype to avoid an error.
13112   Use char because int might match the return type of a GCC
13113   builtin and then its argument prototype would still apply.  */
13114char clock_gettime ();
13115int
13116main (void)
13117{
13118return clock_gettime ();
13119  ;
13120  return 0;
13121}
13122_ACEOF
13123for ac_lib in '' rt
13124do
13125  if test -z "$ac_lib"; then
13126    ac_res="none required"
13127  else
13128    ac_res=-l$ac_lib
13129    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13130  fi
13131  if ac_fn_c_try_link "$LINENO"
13132then :
13133  ac_cv_search_clock_gettime=$ac_res
13134fi
13135rm -f core conftest.err conftest.$ac_objext conftest.beam \
13136    conftest$ac_exeext
13137  if test ${ac_cv_search_clock_gettime+y}
13138then :
13139  break
13140fi
13141done
13142if test ${ac_cv_search_clock_gettime+y}
13143then :
13144
13145else $as_nop
13146  ac_cv_search_clock_gettime=no
13147fi
13148rm conftest.$ac_ext
13149LIBS=$ac_func_search_save_LIBS
13150fi
13151{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
13152printf "%s\n" "$ac_cv_search_clock_gettime" >&6; }
13153ac_res=$ac_cv_search_clock_gettime
13154if test "$ac_res" != no
13155then :
13156  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13157
13158fi
13159
13160rt_lib=${LIBS%${SAVED_LIBS}}
13161ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
13162if test "x$ac_cv_func_clock_gettime" = xyes
13163then :
13164  printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
13165
13166fi
13167
13168LIBS=$SAVED_LIBS
13169RT_LIB=$rt_lib
13170
13171
13172
13173
13174
13175
13176
13177
13178printf "%s\n" "#define SG_LIB_BUILD_HOST \"${host}\"" >>confdefs.h
13179
13180
13181check_for_getrandom() {
13182	       for ac_header in sys/random.h
13183do :
13184  ac_fn_c_check_header_compile "$LINENO" "sys/random.h" "ac_cv_header_sys_random_h" "$ac_includes_default"
13185if test "x$ac_cv_header_sys_random_h" = xyes
13186then :
13187  printf "%s\n" "#define HAVE_SYS_RANDOM_H 1" >>confdefs.h
13188
13189printf "%s\n" "#define HAVE_GETRANDOM 1" >>confdefs.h
13190
13191fi
13192
13193done
13194}
13195
13196check_for_linux_nvme_headers() {
13197	       for ac_header in linux/nvme_ioctl.h
13198do :
13199  ac_fn_c_check_header_compile "$LINENO" "linux/nvme_ioctl.h" "ac_cv_header_linux_nvme_ioctl_h" "$ac_includes_default"
13200if test "x$ac_cv_header_linux_nvme_ioctl_h" = xyes
13201then :
13202  printf "%s\n" "#define HAVE_LINUX_NVME_IOCTL_H 1" >>confdefs.h
13203
13204printf "%s\n" "#define HAVE_NVME 1" >>confdefs.h
13205
13206fi
13207
13208done
13209	ac_fn_c_check_header_compile "$LINENO" "linux/types.h" "ac_cv_header_linux_types_h" "#ifdef HAVE_LINUX_TYPES_H
13210		     # include <linux/types.h>
13211		     #endif
13212
13213"
13214if test "x$ac_cv_header_linux_types_h" = xyes
13215then :
13216  printf "%s\n" "#define HAVE_LINUX_TYPES_H 1" >>confdefs.h
13217
13218fi
13219ac_fn_c_check_header_compile "$LINENO" "linux/bsg.h" "ac_cv_header_linux_bsg_h" "#ifdef HAVE_LINUX_TYPES_H
13220		     # include <linux/types.h>
13221		     #endif
13222
13223"
13224if test "x$ac_cv_header_linux_bsg_h" = xyes
13225then :
13226  printf "%s\n" "#define HAVE_LINUX_BSG_H 1" >>confdefs.h
13227
13228fi
13229ac_fn_c_check_header_compile "$LINENO" "linux/kdev_t.h" "ac_cv_header_linux_kdev_t_h" "#ifdef HAVE_LINUX_TYPES_H
13230		     # include <linux/types.h>
13231		     #endif
13232
13233"
13234if test "x$ac_cv_header_linux_kdev_t_h" = xyes
13235then :
13236  printf "%s\n" "#define HAVE_LINUX_KDEV_T_H 1" >>confdefs.h
13237
13238fi
13239
13240}
13241
13242check_for_linux_sg_v4_hdr() {
13243	ac_ext=c
13244ac_cpp='$CPP $CPPFLAGS'
13245ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13246ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13247ac_compiler_gnu=$ac_cv_c_compiler_gnu
13248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
13249printf %s "checking how to run the C preprocessor... " >&6; }
13250# On Suns, sometimes $CPP names a directory.
13251if test -n "$CPP" && test -d "$CPP"; then
13252  CPP=
13253fi
13254if test -z "$CPP"; then
13255  if test ${ac_cv_prog_CPP+y}
13256then :
13257  printf %s "(cached) " >&6
13258else $as_nop
13259      # Double quotes because $CC needs to be expanded
13260    for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
13261    do
13262      ac_preproc_ok=false
13263for ac_c_preproc_warn_flag in '' yes
13264do
13265  # Use a header file that comes with gcc, so configuring glibc
13266  # with a fresh cross-compiler works.
13267  # On the NeXT, cc -E runs the code through the compiler's parser,
13268  # not just through cpp. "Syntax error" is here to catch this case.
13269  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13270/* end confdefs.h.  */
13271#include <limits.h>
13272		     Syntax error
13273_ACEOF
13274if ac_fn_c_try_cpp "$LINENO"
13275then :
13276
13277else $as_nop
13278  # Broken: fails on valid input.
13279continue
13280fi
13281rm -f conftest.err conftest.i conftest.$ac_ext
13282
13283  # OK, works on sane cases.  Now check whether nonexistent headers
13284  # can be detected and how.
13285  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13286/* end confdefs.h.  */
13287#include <ac_nonexistent.h>
13288_ACEOF
13289if ac_fn_c_try_cpp "$LINENO"
13290then :
13291  # Broken: success on invalid input.
13292continue
13293else $as_nop
13294  # Passes both tests.
13295ac_preproc_ok=:
13296break
13297fi
13298rm -f conftest.err conftest.i conftest.$ac_ext
13299
13300done
13301# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13302rm -f conftest.i conftest.err conftest.$ac_ext
13303if $ac_preproc_ok
13304then :
13305  break
13306fi
13307
13308    done
13309    ac_cv_prog_CPP=$CPP
13310
13311fi
13312  CPP=$ac_cv_prog_CPP
13313else
13314  ac_cv_prog_CPP=$CPP
13315fi
13316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
13317printf "%s\n" "$CPP" >&6; }
13318ac_preproc_ok=false
13319for ac_c_preproc_warn_flag in '' yes
13320do
13321  # Use a header file that comes with gcc, so configuring glibc
13322  # with a fresh cross-compiler works.
13323  # On the NeXT, cc -E runs the code through the compiler's parser,
13324  # not just through cpp. "Syntax error" is here to catch this case.
13325  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13326/* end confdefs.h.  */
13327#include <limits.h>
13328		     Syntax error
13329_ACEOF
13330if ac_fn_c_try_cpp "$LINENO"
13331then :
13332
13333else $as_nop
13334  # Broken: fails on valid input.
13335continue
13336fi
13337rm -f conftest.err conftest.i conftest.$ac_ext
13338
13339  # OK, works on sane cases.  Now check whether nonexistent headers
13340  # can be detected and how.
13341  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13342/* end confdefs.h.  */
13343#include <ac_nonexistent.h>
13344_ACEOF
13345if ac_fn_c_try_cpp "$LINENO"
13346then :
13347  # Broken: success on invalid input.
13348continue
13349else $as_nop
13350  # Passes both tests.
13351ac_preproc_ok=:
13352break
13353fi
13354rm -f conftest.err conftest.i conftest.$ac_ext
13355
13356done
13357# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13358rm -f conftest.i conftest.err conftest.$ac_ext
13359if $ac_preproc_ok
13360then :
13361
13362else $as_nop
13363  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13364printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13365as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
13366See \`config.log' for more details" "$LINENO" 5; }
13367fi
13368
13369ac_ext=c
13370ac_cpp='$CPP $CPPFLAGS'
13371ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13372ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13373ac_compiler_gnu=$ac_cv_c_compiler_gnu
13374
13375
13376cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13377/* end confdefs.h.  */
13378 # include <scsi/sg.h>
13379		  #ifdef SG_IOSUBMIT
13380		   found
13381		  #endif
13382
13383_ACEOF
13384if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13385  $EGREP "found" >/dev/null 2>&1
13386then :
13387
13388printf "%s\n" "#define HAVE_LINUX_SG_V4_HDR 1" >>confdefs.h
13389
13390fi
13391rm -rf conftest*
13392
13393}
13394
13395case "${host}" in
13396	*-*-android*)
13397
13398printf "%s\n" "#define SG_LIB_ANDROID 1" >>confdefs.h
13399
13400
13401printf "%s\n" "#define SG_LIB_LINUX 1" >>confdefs.h
13402
13403		check_for_linux_sg_v4_hdr
13404		check_for_getrandom
13405		check_for_linux_nvme_headers;;
13406        *-*-freebsd*|*-*-kfreebsd*-gnu*)
13407
13408printf "%s\n" "#define SG_LIB_FREEBSD 1" >>confdefs.h
13409
13410
13411printf "%s\n" "#define HAVE_NVME 1" >>confdefs.h
13412
13413		check_for_getrandom
13414                LIBS="$LIBS -lcam";;
13415        *-*-solaris*)
13416
13417printf "%s\n" "#define SG_LIB_SOLARIS 1" >>confdefs.h
13418;;
13419        *-*-netbsd*)
13420
13421printf "%s\n" "#define SG_LIB_NETBSD 1" >>confdefs.h
13422;;
13423        *-*-openbsd*)
13424
13425printf "%s\n" "#define SG_LIB_OPENBSD 1" >>confdefs.h
13426;;
13427        *-*-osf*)
13428
13429printf "%s\n" "#define SG_LIB_OSF1 1" >>confdefs.h
13430;;
13431        *-*-cygwin*)
13432
13433printf "%s\n" "#define SG_LIB_WIN32 1" >>confdefs.h
13434
13435		# AC_CHECK_HEADERS([nvme.h], [AC_DEFINE_UNQUOTED(HAVE_NVME, 1, [Found NVMe])], [], [])
13436
13437printf "%s\n" "#define HAVE_NVME 1" >>confdefs.h
13438
13439		check_for_getrandom
13440                CFLAGS="$CFLAGS -Wno-char-subscripts";;
13441        *-*-mingw* | *-*-msys*)
13442
13443printf "%s\n" "#define SG_LIB_WIN32 1" >>confdefs.h
13444
13445
13446printf "%s\n" "#define SG_LIB_MINGW 1" >>confdefs.h
13447
13448		# AC_CHECK_HEADERS([nvme.h], [AC_DEFINE_UNQUOTED(HAVE_NVME, 1, [Found NVMe])], [], [])
13449
13450printf "%s\n" "#define HAVE_NVME 1" >>confdefs.h
13451
13452		check_for_getrandom
13453                CFLAGS="$CFLAGS -D__USE_MINGW_ANSI_STDIO";;
13454        *-*-linux-gnu* | *-*-linux* | *-*-uclinux-gnu* | *-*-uclinux*)
13455
13456printf "%s\n" "#define SG_LIB_LINUX 1" >>confdefs.h
13457
13458		check_for_linux_sg_v4_hdr
13459		check_for_getrandom
13460                check_for_linux_nvme_headers;;
13461        *-*-haiku*)
13462
13463printf "%s\n" "#define SG_LIB_HAIKU 1" >>confdefs.h
13464
13465                os_cflags=''
13466
13467                os_libs=''
13468 ;;
13469        *)
13470
13471printf "%s\n" "#define SG_LIB_OTHER 1" >>confdefs.h
13472
13473		isother=yes;;
13474esac
13475
13476# Define platform-specific symbol.
13477 if echo $host_os | grep 'freebsd' > /dev/null; then
13478  OS_FREEBSD_TRUE=
13479  OS_FREEBSD_FALSE='#'
13480else
13481  OS_FREEBSD_TRUE='#'
13482  OS_FREEBSD_FALSE=
13483fi
13484
13485 if echo $host_os | grep -E '^(uc)?linux' > /dev/null; then
13486  OS_LINUX_TRUE=
13487  OS_LINUX_FALSE='#'
13488else
13489  OS_LINUX_TRUE='#'
13490  OS_LINUX_FALSE=
13491fi
13492
13493 if echo $host_os | grep '^osf' > /dev/null; then
13494  OS_OSF_TRUE=
13495  OS_OSF_FALSE='#'
13496else
13497  OS_OSF_TRUE='#'
13498  OS_OSF_FALSE=
13499fi
13500
13501 if echo $host_os | grep '^solaris' > /dev/null; then
13502  OS_SOLARIS_TRUE=
13503  OS_SOLARIS_FALSE='#'
13504else
13505  OS_SOLARIS_TRUE='#'
13506  OS_SOLARIS_FALSE=
13507fi
13508
13509 if echo $host_os | grep '^mingw' > /dev/null; then
13510  OS_WIN32_MINGW_TRUE=
13511  OS_WIN32_MINGW_FALSE='#'
13512else
13513  OS_WIN32_MINGW_TRUE='#'
13514  OS_WIN32_MINGW_FALSE=
13515fi
13516
13517 if echo $host_os | grep '^cygwin' > /dev/null; then
13518  OS_WIN32_CYGWIN_TRUE=
13519  OS_WIN32_CYGWIN_FALSE='#'
13520else
13521  OS_WIN32_CYGWIN_TRUE='#'
13522  OS_WIN32_CYGWIN_FALSE=
13523fi
13524
13525 if echo $host_os | grep 'android' > /dev/null; then
13526  OS_ANDROID_TRUE=
13527  OS_ANDROID_FALSE='#'
13528else
13529  OS_ANDROID_TRUE='#'
13530  OS_ANDROID_FALSE=
13531fi
13532
13533 if echo $host_os | grep 'netbsd' > /dev/null; then
13534  OS_NETBSD_TRUE=
13535  OS_NETBSD_FALSE='#'
13536else
13537  OS_NETBSD_TRUE='#'
13538  OS_NETBSD_FALSE=
13539fi
13540
13541 if echo $host_os | grep 'openbsd' > /dev/null; then
13542  OS_OPENBSD_TRUE=
13543  OS_OPENBSD_FALSE='#'
13544else
13545  OS_OPENBSD_TRUE='#'
13546  OS_OPENBSD_FALSE=
13547fi
13548
13549 if echo $host_os | grep '^haiku' > /dev/null; then
13550  OS_HAIKU_TRUE=
13551  OS_HAIKU_FALSE='#'
13552else
13553  OS_HAIKU_TRUE='#'
13554  OS_HAIKU_FALSE=
13555fi
13556
13557 if test "x$isother" = "xyes"; then
13558  OS_OTHER_TRUE=
13559  OS_OTHER_FALSE='#'
13560else
13561  OS_OTHER_TRUE='#'
13562  OS_OTHER_FALSE=
13563fi
13564
13565
13566# Check whether --enable-debug was given.
13567if test ${enable_debug+y}
13568then :
13569  enableval=$enable_debug; case "${enableval}" in
13570		  yes) debug=true ;;
13571		  no)  debug=false ;;
13572		  *) as_fn_error $? "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;;
13573	       esac
13574else $as_nop
13575  debug=false
13576fi
13577
13578 if test x$debug = xtrue; then
13579  DEBUG_TRUE=
13580  DEBUG_FALSE='#'
13581else
13582  DEBUG_TRUE='#'
13583  DEBUG_FALSE=
13584fi
13585
13586
13587# Check whether --enable-pt_dummy was given.
13588if test ${enable_pt_dummy+y}
13589then :
13590  enableval=$enable_pt_dummy; case "${enableval}" in
13591		  yes) pt_dummy=true ;;
13592		  no)  pt_dummy=false ;;
13593		  *) as_fn_error $? "bad value ${enableval} for --enable-dummy_pt" "$LINENO" 5 ;;
13594	       esac
13595else $as_nop
13596  pt_dummy=false
13597fi
13598
13599 if test x$pt_dummy = xtrue; then
13600  PT_DUMMY_TRUE=
13601  PT_DUMMY_FALSE='#'
13602else
13603  PT_DUMMY_TRUE='#'
13604  PT_DUMMY_FALSE=
13605fi
13606
13607
13608# Check whether --enable-linuxbsg was given.
13609if test ${enable_linuxbsg+y}
13610then :
13611  enableval=$enable_linuxbsg;
13612printf "%s\n" "#define IGNORE_LINUX_BSG 1" >>confdefs.h
13613
13614fi
13615
13616
13617# Check whether --enable-win32-spt-direct was given.
13618if test ${enable_win32_spt_direct+y}
13619then :
13620  enableval=$enable_win32_spt_direct;
13621printf "%s\n" "#define WIN32_SPT_DIRECT 1" >>confdefs.h
13622
13623
13624fi
13625
13626
13627# Check whether --enable-scsistrings was given.
13628if test ${enable_scsistrings+y}
13629then :
13630  enableval=$enable_scsistrings;
13631else $as_nop
13632
13633printf "%s\n" "#define SG_SCSI_STRINGS 1" >>confdefs.h
13634
13635fi
13636
13637
13638# Check whether --enable-nvme-supp was given.
13639if test ${enable_nvme_supp+y}
13640then :
13641  enableval=$enable_nvme_supp;
13642printf "%s\n" "#define IGNORE_NVME 1" >>confdefs.h
13643
13644fi
13645
13646
13647# Check whether --enable-fast-lebe was given.
13648if test ${enable_fast_lebe+y}
13649then :
13650  enableval=$enable_fast_lebe;
13651printf "%s\n" "#define IGNORE_FAST_LEBE 1" >>confdefs.h
13652
13653fi
13654
13655
13656# Check whether --enable-linux-sgv4 was given.
13657if test ${enable_linux_sgv4+y}
13658then :
13659  enableval=$enable_linux_sgv4;
13660printf "%s\n" "#define IGNORE_LINUX_SGV4 1" >>confdefs.h
13661
13662fi
13663
13664
13665
13666ac_config_files="$ac_config_files Makefile include/Makefile lib/Makefile src/Makefile doc/Makefile scripts/Makefile"
13667
13668cat >confcache <<\_ACEOF
13669# This file is a shell script that caches the results of configure
13670# tests run on this system so they can be shared between configure
13671# scripts and configure runs, see configure's option --config-cache.
13672# It is not useful on other systems.  If it contains results you don't
13673# want to keep, you may remove or edit it.
13674#
13675# config.status only pays attention to the cache file if you give it
13676# the --recheck option to rerun configure.
13677#
13678# `ac_cv_env_foo' variables (set or unset) will be overridden when
13679# loading this file, other *unset* `ac_cv_foo' will be assigned the
13680# following values.
13681
13682_ACEOF
13683
13684# The following way of writing the cache mishandles newlines in values,
13685# but we know of no workaround that is simple, portable, and efficient.
13686# So, we kill variables containing newlines.
13687# Ultrix sh set writes to stderr and can't be redirected directly,
13688# and sets the high bit in the cache file unless we assign to the vars.
13689(
13690  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13691    eval ac_val=\$$ac_var
13692    case $ac_val in #(
13693    *${as_nl}*)
13694      case $ac_var in #(
13695      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13696printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13697      esac
13698      case $ac_var in #(
13699      _ | IFS | as_nl) ;; #(
13700      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13701      *) { eval $ac_var=; unset $ac_var;} ;;
13702      esac ;;
13703    esac
13704  done
13705
13706  (set) 2>&1 |
13707    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13708    *${as_nl}ac_space=\ *)
13709      # `set' does not quote correctly, so add quotes: double-quote
13710      # substitution turns \\\\ into \\, and sed turns \\ into \.
13711      sed -n \
13712	"s/'/'\\\\''/g;
13713	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13714      ;; #(
13715    *)
13716      # `set' quotes correctly as required by POSIX, so do not add quotes.
13717      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13718      ;;
13719    esac |
13720    sort
13721) |
13722  sed '
13723     /^ac_cv_env_/b end
13724     t clear
13725     :clear
13726     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
13727     t end
13728     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13729     :end' >>confcache
13730if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13731  if test -w "$cache_file"; then
13732    if test "x$cache_file" != "x/dev/null"; then
13733      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13734printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
13735      if test ! -f "$cache_file" || test -h "$cache_file"; then
13736	cat confcache >"$cache_file"
13737      else
13738        case $cache_file in #(
13739        */* | ?:*)
13740	  mv -f confcache "$cache_file"$$ &&
13741	  mv -f "$cache_file"$$ "$cache_file" ;; #(
13742        *)
13743	  mv -f confcache "$cache_file" ;;
13744	esac
13745      fi
13746    fi
13747  else
13748    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13749printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
13750  fi
13751fi
13752rm -f confcache
13753
13754test "x$prefix" = xNONE && prefix=$ac_default_prefix
13755# Let make expand exec_prefix.
13756test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13757
13758DEFS=-DHAVE_CONFIG_H
13759
13760ac_libobjs=
13761ac_ltlibobjs=
13762for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13763  # 1. Remove the extension, and $U if already installed.
13764  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13765  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
13766  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13767  #    will be set to the directory where LIBOBJS objects are built.
13768  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13769  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13770done
13771LIBOBJS=$ac_libobjs
13772
13773LTLIBOBJS=$ac_ltlibobjs
13774
13775
13776{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13777printf %s "checking that generated files are newer than configure... " >&6; }
13778   if test -n "$am_sleep_pid"; then
13779     # Hide warnings about reused PIDs.
13780     wait $am_sleep_pid 2>/dev/null
13781   fi
13782   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
13783printf "%s\n" "done" >&6; }
13784 if test -n "$EXEEXT"; then
13785  am__EXEEXT_TRUE=
13786  am__EXEEXT_FALSE='#'
13787else
13788  am__EXEEXT_TRUE='#'
13789  am__EXEEXT_FALSE=
13790fi
13791
13792if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13793  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13794Usually this means the macro was only invoked conditionally." "$LINENO" 5
13795fi
13796if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13797  as_fn_error $? "conditional \"AMDEP\" was never defined.
13798Usually this means the macro was only invoked conditionally." "$LINENO" 5
13799fi
13800if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13801  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13802Usually this means the macro was only invoked conditionally." "$LINENO" 5
13803fi
13804if test -z "${OS_FREEBSD_TRUE}" && test -z "${OS_FREEBSD_FALSE}"; then
13805  as_fn_error $? "conditional \"OS_FREEBSD\" was never defined.
13806Usually this means the macro was only invoked conditionally." "$LINENO" 5
13807fi
13808if test -z "${OS_LINUX_TRUE}" && test -z "${OS_LINUX_FALSE}"; then
13809  as_fn_error $? "conditional \"OS_LINUX\" was never defined.
13810Usually this means the macro was only invoked conditionally." "$LINENO" 5
13811fi
13812if test -z "${OS_OSF_TRUE}" && test -z "${OS_OSF_FALSE}"; then
13813  as_fn_error $? "conditional \"OS_OSF\" was never defined.
13814Usually this means the macro was only invoked conditionally." "$LINENO" 5
13815fi
13816if test -z "${OS_SOLARIS_TRUE}" && test -z "${OS_SOLARIS_FALSE}"; then
13817  as_fn_error $? "conditional \"OS_SOLARIS\" was never defined.
13818Usually this means the macro was only invoked conditionally." "$LINENO" 5
13819fi
13820if test -z "${OS_WIN32_MINGW_TRUE}" && test -z "${OS_WIN32_MINGW_FALSE}"; then
13821  as_fn_error $? "conditional \"OS_WIN32_MINGW\" was never defined.
13822Usually this means the macro was only invoked conditionally." "$LINENO" 5
13823fi
13824if test -z "${OS_WIN32_CYGWIN_TRUE}" && test -z "${OS_WIN32_CYGWIN_FALSE}"; then
13825  as_fn_error $? "conditional \"OS_WIN32_CYGWIN\" was never defined.
13826Usually this means the macro was only invoked conditionally." "$LINENO" 5
13827fi
13828if test -z "${OS_ANDROID_TRUE}" && test -z "${OS_ANDROID_FALSE}"; then
13829  as_fn_error $? "conditional \"OS_ANDROID\" was never defined.
13830Usually this means the macro was only invoked conditionally." "$LINENO" 5
13831fi
13832if test -z "${OS_NETBSD_TRUE}" && test -z "${OS_NETBSD_FALSE}"; then
13833  as_fn_error $? "conditional \"OS_NETBSD\" was never defined.
13834Usually this means the macro was only invoked conditionally." "$LINENO" 5
13835fi
13836if test -z "${OS_OPENBSD_TRUE}" && test -z "${OS_OPENBSD_FALSE}"; then
13837  as_fn_error $? "conditional \"OS_OPENBSD\" was never defined.
13838Usually this means the macro was only invoked conditionally." "$LINENO" 5
13839fi
13840if test -z "${OS_HAIKU_TRUE}" && test -z "${OS_HAIKU_FALSE}"; then
13841  as_fn_error $? "conditional \"OS_HAIKU\" was never defined.
13842Usually this means the macro was only invoked conditionally." "$LINENO" 5
13843fi
13844if test -z "${OS_OTHER_TRUE}" && test -z "${OS_OTHER_FALSE}"; then
13845  as_fn_error $? "conditional \"OS_OTHER\" was never defined.
13846Usually this means the macro was only invoked conditionally." "$LINENO" 5
13847fi
13848if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
13849  as_fn_error $? "conditional \"DEBUG\" was never defined.
13850Usually this means the macro was only invoked conditionally." "$LINENO" 5
13851fi
13852if test -z "${PT_DUMMY_TRUE}" && test -z "${PT_DUMMY_FALSE}"; then
13853  as_fn_error $? "conditional \"PT_DUMMY\" was never defined.
13854Usually this means the macro was only invoked conditionally." "$LINENO" 5
13855fi
13856
13857: "${CONFIG_STATUS=./config.status}"
13858ac_write_fail=0
13859ac_clean_files_save=$ac_clean_files
13860ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13862printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
13863as_write_fail=0
13864cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13865#! $SHELL
13866# Generated by $as_me.
13867# Run this file to recreate the current configuration.
13868# Compiler output produced by configure, useful for debugging
13869# configure, is in config.log if it exists.
13870
13871debug=false
13872ac_cs_recheck=false
13873ac_cs_silent=false
13874
13875SHELL=\${CONFIG_SHELL-$SHELL}
13876export SHELL
13877_ASEOF
13878cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13879## -------------------- ##
13880## M4sh Initialization. ##
13881## -------------------- ##
13882
13883# Be more Bourne compatible
13884DUALCASE=1; export DUALCASE # for MKS sh
13885as_nop=:
13886if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
13887then :
13888  emulate sh
13889  NULLCMD=:
13890  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13891  # is contrary to our usage.  Disable this feature.
13892  alias -g '${1+"$@"}'='"$@"'
13893  setopt NO_GLOB_SUBST
13894else $as_nop
13895  case `(set -o) 2>/dev/null` in #(
13896  *posix*) :
13897    set -o posix ;; #(
13898  *) :
13899     ;;
13900esac
13901fi
13902
13903
13904
13905# Reset variables that may have inherited troublesome values from
13906# the environment.
13907
13908# IFS needs to be set, to space, tab, and newline, in precisely that order.
13909# (If _AS_PATH_WALK were called with IFS unset, it would have the
13910# side effect of setting IFS to empty, thus disabling word splitting.)
13911# Quoting is to prevent editors from complaining about space-tab.
13912as_nl='
13913'
13914export as_nl
13915IFS=" ""	$as_nl"
13916
13917PS1='$ '
13918PS2='> '
13919PS4='+ '
13920
13921# Ensure predictable behavior from utilities with locale-dependent output.
13922LC_ALL=C
13923export LC_ALL
13924LANGUAGE=C
13925export LANGUAGE
13926
13927# We cannot yet rely on "unset" to work, but we need these variables
13928# to be unset--not just set to an empty or harmless value--now, to
13929# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
13930# also avoids known problems related to "unset" and subshell syntax
13931# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
13932for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
13933do eval test \${$as_var+y} \
13934  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13935done
13936
13937# Ensure that fds 0, 1, and 2 are open.
13938if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
13939if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
13940if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
13941
13942# The user is always right.
13943if ${PATH_SEPARATOR+false} :; then
13944  PATH_SEPARATOR=:
13945  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13946    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13947      PATH_SEPARATOR=';'
13948  }
13949fi
13950
13951
13952# Find who we are.  Look in the path if we contain no directory separator.
13953as_myself=
13954case $0 in #((
13955  *[\\/]* ) as_myself=$0 ;;
13956  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13957for as_dir in $PATH
13958do
13959  IFS=$as_save_IFS
13960  case $as_dir in #(((
13961    '') as_dir=./ ;;
13962    */) ;;
13963    *) as_dir=$as_dir/ ;;
13964  esac
13965    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
13966  done
13967IFS=$as_save_IFS
13968
13969     ;;
13970esac
13971# We did not find ourselves, most probably we were run as `sh COMMAND'
13972# in which case we are not to be found in the path.
13973if test "x$as_myself" = x; then
13974  as_myself=$0
13975fi
13976if test ! -f "$as_myself"; then
13977  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13978  exit 1
13979fi
13980
13981
13982
13983# as_fn_error STATUS ERROR [LINENO LOG_FD]
13984# ----------------------------------------
13985# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13986# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13987# script with STATUS, using 1 if that was 0.
13988as_fn_error ()
13989{
13990  as_status=$1; test $as_status -eq 0 && as_status=1
13991  if test "$4"; then
13992    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13993    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13994  fi
13995  printf "%s\n" "$as_me: error: $2" >&2
13996  as_fn_exit $as_status
13997} # as_fn_error
13998
13999
14000
14001# as_fn_set_status STATUS
14002# -----------------------
14003# Set $? to STATUS, without forking.
14004as_fn_set_status ()
14005{
14006  return $1
14007} # as_fn_set_status
14008
14009# as_fn_exit STATUS
14010# -----------------
14011# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14012as_fn_exit ()
14013{
14014  set +e
14015  as_fn_set_status $1
14016  exit $1
14017} # as_fn_exit
14018
14019# as_fn_unset VAR
14020# ---------------
14021# Portably unset VAR.
14022as_fn_unset ()
14023{
14024  { eval $1=; unset $1;}
14025}
14026as_unset=as_fn_unset
14027
14028# as_fn_append VAR VALUE
14029# ----------------------
14030# Append the text in VALUE to the end of the definition contained in VAR. Take
14031# advantage of any shell optimizations that allow amortized linear growth over
14032# repeated appends, instead of the typical quadratic growth present in naive
14033# implementations.
14034if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
14035then :
14036  eval 'as_fn_append ()
14037  {
14038    eval $1+=\$2
14039  }'
14040else $as_nop
14041  as_fn_append ()
14042  {
14043    eval $1=\$$1\$2
14044  }
14045fi # as_fn_append
14046
14047# as_fn_arith ARG...
14048# ------------------
14049# Perform arithmetic evaluation on the ARGs, and store the result in the
14050# global $as_val. Take advantage of shells that can avoid forks. The arguments
14051# must be portable across $(()) and expr.
14052if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
14053then :
14054  eval 'as_fn_arith ()
14055  {
14056    as_val=$(( $* ))
14057  }'
14058else $as_nop
14059  as_fn_arith ()
14060  {
14061    as_val=`expr "$@" || test $? -eq 1`
14062  }
14063fi # as_fn_arith
14064
14065
14066if expr a : '\(a\)' >/dev/null 2>&1 &&
14067   test "X`expr 00001 : '.*\(...\)'`" = X001; then
14068  as_expr=expr
14069else
14070  as_expr=false
14071fi
14072
14073if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14074  as_basename=basename
14075else
14076  as_basename=false
14077fi
14078
14079if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14080  as_dirname=dirname
14081else
14082  as_dirname=false
14083fi
14084
14085as_me=`$as_basename -- "$0" ||
14086$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14087	 X"$0" : 'X\(//\)$' \| \
14088	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14089printf "%s\n" X/"$0" |
14090    sed '/^.*\/\([^/][^/]*\)\/*$/{
14091	    s//\1/
14092	    q
14093	  }
14094	  /^X\/\(\/\/\)$/{
14095	    s//\1/
14096	    q
14097	  }
14098	  /^X\/\(\/\).*/{
14099	    s//\1/
14100	    q
14101	  }
14102	  s/.*/./; q'`
14103
14104# Avoid depending upon Character Ranges.
14105as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14106as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14107as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14108as_cr_digits='0123456789'
14109as_cr_alnum=$as_cr_Letters$as_cr_digits
14110
14111
14112# Determine whether it's possible to make 'echo' print without a newline.
14113# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
14114# for compatibility with existing Makefiles.
14115ECHO_C= ECHO_N= ECHO_T=
14116case `echo -n x` in #(((((
14117-n*)
14118  case `echo 'xy\c'` in
14119  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
14120  xy)  ECHO_C='\c';;
14121  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14122       ECHO_T='	';;
14123  esac;;
14124*)
14125  ECHO_N='-n';;
14126esac
14127
14128# For backward compatibility with old third-party macros, we provide
14129# the shell variables $as_echo and $as_echo_n.  New code should use
14130# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
14131as_echo='printf %s\n'
14132as_echo_n='printf %s'
14133
14134rm -f conf$$ conf$$.exe conf$$.file
14135if test -d conf$$.dir; then
14136  rm -f conf$$.dir/conf$$.file
14137else
14138  rm -f conf$$.dir
14139  mkdir conf$$.dir 2>/dev/null
14140fi
14141if (echo >conf$$.file) 2>/dev/null; then
14142  if ln -s conf$$.file conf$$ 2>/dev/null; then
14143    as_ln_s='ln -s'
14144    # ... but there are two gotchas:
14145    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14146    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14147    # In both cases, we have to default to `cp -pR'.
14148    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14149      as_ln_s='cp -pR'
14150  elif ln conf$$.file conf$$ 2>/dev/null; then
14151    as_ln_s=ln
14152  else
14153    as_ln_s='cp -pR'
14154  fi
14155else
14156  as_ln_s='cp -pR'
14157fi
14158rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14159rmdir conf$$.dir 2>/dev/null
14160
14161
14162# as_fn_mkdir_p
14163# -------------
14164# Create "$as_dir" as a directory, including parents if necessary.
14165as_fn_mkdir_p ()
14166{
14167
14168  case $as_dir in #(
14169  -*) as_dir=./$as_dir;;
14170  esac
14171  test -d "$as_dir" || eval $as_mkdir_p || {
14172    as_dirs=
14173    while :; do
14174      case $as_dir in #(
14175      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14176      *) as_qdir=$as_dir;;
14177      esac
14178      as_dirs="'$as_qdir' $as_dirs"
14179      as_dir=`$as_dirname -- "$as_dir" ||
14180$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14181	 X"$as_dir" : 'X\(//\)[^/]' \| \
14182	 X"$as_dir" : 'X\(//\)$' \| \
14183	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14184printf "%s\n" X"$as_dir" |
14185    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14186	    s//\1/
14187	    q
14188	  }
14189	  /^X\(\/\/\)[^/].*/{
14190	    s//\1/
14191	    q
14192	  }
14193	  /^X\(\/\/\)$/{
14194	    s//\1/
14195	    q
14196	  }
14197	  /^X\(\/\).*/{
14198	    s//\1/
14199	    q
14200	  }
14201	  s/.*/./; q'`
14202      test -d "$as_dir" && break
14203    done
14204    test -z "$as_dirs" || eval "mkdir $as_dirs"
14205  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14206
14207
14208} # as_fn_mkdir_p
14209if mkdir -p . 2>/dev/null; then
14210  as_mkdir_p='mkdir -p "$as_dir"'
14211else
14212  test -d ./-p && rmdir ./-p
14213  as_mkdir_p=false
14214fi
14215
14216
14217# as_fn_executable_p FILE
14218# -----------------------
14219# Test if FILE is an executable regular file.
14220as_fn_executable_p ()
14221{
14222  test -f "$1" && test -x "$1"
14223} # as_fn_executable_p
14224as_test_x='test -x'
14225as_executable_p=as_fn_executable_p
14226
14227# Sed expression to map a string onto a valid CPP name.
14228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14229
14230# Sed expression to map a string onto a valid variable name.
14231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14232
14233
14234exec 6>&1
14235## ----------------------------------- ##
14236## Main body of $CONFIG_STATUS script. ##
14237## ----------------------------------- ##
14238_ASEOF
14239test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14240
14241cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14242# Save the log message, to keep $0 and so on meaningful, and to
14243# report actual input values of CONFIG_FILES etc. instead of their
14244# values after options handling.
14245ac_log="
14246This file was extended by sg3_utils $as_me 1.48, which was
14247generated by GNU Autoconf 2.71.  Invocation command line was
14248
14249  CONFIG_FILES    = $CONFIG_FILES
14250  CONFIG_HEADERS  = $CONFIG_HEADERS
14251  CONFIG_LINKS    = $CONFIG_LINKS
14252  CONFIG_COMMANDS = $CONFIG_COMMANDS
14253  $ $0 $@
14254
14255on `(hostname || uname -n) 2>/dev/null | sed 1q`
14256"
14257
14258_ACEOF
14259
14260case $ac_config_files in *"
14261"*) set x $ac_config_files; shift; ac_config_files=$*;;
14262esac
14263
14264case $ac_config_headers in *"
14265"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14266esac
14267
14268
14269cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14270# Files that config.status was made for.
14271config_files="$ac_config_files"
14272config_headers="$ac_config_headers"
14273config_commands="$ac_config_commands"
14274
14275_ACEOF
14276
14277cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14278ac_cs_usage="\
14279\`$as_me' instantiates files and other configuration actions
14280from templates according to the current configuration.  Unless the files
14281and actions are specified as TAGs, all are instantiated by default.
14282
14283Usage: $0 [OPTION]... [TAG]...
14284
14285  -h, --help       print this help, then exit
14286  -V, --version    print version number and configuration settings, then exit
14287      --config     print configuration, then exit
14288  -q, --quiet, --silent
14289                   do not print progress messages
14290  -d, --debug      don't remove temporary files
14291      --recheck    update $as_me by reconfiguring in the same conditions
14292      --file=FILE[:TEMPLATE]
14293                   instantiate the configuration file FILE
14294      --header=FILE[:TEMPLATE]
14295                   instantiate the configuration header FILE
14296
14297Configuration files:
14298$config_files
14299
14300Configuration headers:
14301$config_headers
14302
14303Configuration commands:
14304$config_commands
14305
14306Report bugs to <[email protected]>."
14307
14308_ACEOF
14309ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
14310ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
14311cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14312ac_cs_config='$ac_cs_config_escaped'
14313ac_cs_version="\\
14314sg3_utils config.status 1.48
14315configured by $0, generated by GNU Autoconf 2.71,
14316  with options \\"\$ac_cs_config\\"
14317
14318Copyright (C) 2021 Free Software Foundation, Inc.
14319This config.status script is free software; the Free Software Foundation
14320gives unlimited permission to copy, distribute and modify it."
14321
14322ac_pwd='$ac_pwd'
14323srcdir='$srcdir'
14324INSTALL='$INSTALL'
14325MKDIR_P='$MKDIR_P'
14326AWK='$AWK'
14327test -n "\$AWK" || AWK=awk
14328_ACEOF
14329
14330cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14331# The default lists apply if the user does not specify any file.
14332ac_need_defaults=:
14333while test $# != 0
14334do
14335  case $1 in
14336  --*=?*)
14337    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14338    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14339    ac_shift=:
14340    ;;
14341  --*=)
14342    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14343    ac_optarg=
14344    ac_shift=:
14345    ;;
14346  *)
14347    ac_option=$1
14348    ac_optarg=$2
14349    ac_shift=shift
14350    ;;
14351  esac
14352
14353  case $ac_option in
14354  # Handling of the options.
14355  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14356    ac_cs_recheck=: ;;
14357  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14358    printf "%s\n" "$ac_cs_version"; exit ;;
14359  --config | --confi | --conf | --con | --co | --c )
14360    printf "%s\n" "$ac_cs_config"; exit ;;
14361  --debug | --debu | --deb | --de | --d | -d )
14362    debug=: ;;
14363  --file | --fil | --fi | --f )
14364    $ac_shift
14365    case $ac_optarg in
14366    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14367    '') as_fn_error $? "missing file argument" ;;
14368    esac
14369    as_fn_append CONFIG_FILES " '$ac_optarg'"
14370    ac_need_defaults=false;;
14371  --header | --heade | --head | --hea )
14372    $ac_shift
14373    case $ac_optarg in
14374    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14375    esac
14376    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14377    ac_need_defaults=false;;
14378  --he | --h)
14379    # Conflict between --help and --header
14380    as_fn_error $? "ambiguous option: \`$1'
14381Try \`$0 --help' for more information.";;
14382  --help | --hel | -h )
14383    printf "%s\n" "$ac_cs_usage"; exit ;;
14384  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14385  | -silent | --silent | --silen | --sile | --sil | --si | --s)
14386    ac_cs_silent=: ;;
14387
14388  # This is an error.
14389  -*) as_fn_error $? "unrecognized option: \`$1'
14390Try \`$0 --help' for more information." ;;
14391
14392  *) as_fn_append ac_config_targets " $1"
14393     ac_need_defaults=false ;;
14394
14395  esac
14396  shift
14397done
14398
14399ac_configure_extra_args=
14400
14401if $ac_cs_silent; then
14402  exec 6>/dev/null
14403  ac_configure_extra_args="$ac_configure_extra_args --silent"
14404fi
14405
14406_ACEOF
14407cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14408if \$ac_cs_recheck; then
14409  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14410  shift
14411  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
14412  CONFIG_SHELL='$SHELL'
14413  export CONFIG_SHELL
14414  exec "\$@"
14415fi
14416
14417_ACEOF
14418cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14419exec 5>>config.log
14420{
14421  echo
14422  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14423## Running $as_me. ##
14424_ASBOX
14425  printf "%s\n" "$ac_log"
14426} >&5
14427
14428_ACEOF
14429cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14430#
14431# INIT-COMMANDS
14432#
14433AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
14434
14435
14436# The HP-UX ksh and POSIX shell print the target directory to stdout
14437# if CDPATH is set.
14438(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14439
14440sed_quote_subst='$sed_quote_subst'
14441double_quote_subst='$double_quote_subst'
14442delay_variable_subst='$delay_variable_subst'
14443macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14444macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14445enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14446enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14447pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14448enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14449shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14450SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14451ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14452PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14453host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14454host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14455host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14456build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14457build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14458build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14459SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14460Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14461GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14462EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14463FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14464LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14465NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14466LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14467max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14468ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14469exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14470lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14471lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14472lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14473lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14474lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14475reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14476reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14477FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
14478OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14479deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14480file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14481file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14482want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14483DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14484sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14485AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14486lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
14487AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14488archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14489STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14490RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14491old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14492old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14493old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14494lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14495CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14496CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14497compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14498GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14499lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14500lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14501lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14502lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14503lt_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"`'
14504lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14505nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14506lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14507lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14508objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14509MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14510lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14511lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14512lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14513lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14514lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14515need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14516MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14517DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14518NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14519LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14520OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14521OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14522libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14523shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14524extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14525archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14526enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14527export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14528whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14529compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14530old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14531old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14532archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14533archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14534module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14535module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14536with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14537allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14538no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14539hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14540hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14541hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14542hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14543hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14544hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14545hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14546inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14547link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14548always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14549export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14550exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14551include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14552prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14553postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14554file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14555variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14556need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14557need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14558version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14559runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14560shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14561shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14562libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14563library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14564soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14565install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14566postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14567postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14568finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14569finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14570hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14571sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14572configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14573configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14574hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14575enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14576enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14577enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14578old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14579striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14580
14581LTCC='$LTCC'
14582LTCFLAGS='$LTCFLAGS'
14583compiler='$compiler_DEFAULT'
14584
14585# A function that is used when there is no print builtin or printf.
14586func_fallback_echo ()
14587{
14588  eval 'cat <<_LTECHO_EOF
14589\$1
14590_LTECHO_EOF'
14591}
14592
14593# Quote evaled strings.
14594for var in SHELL \
14595ECHO \
14596PATH_SEPARATOR \
14597SED \
14598GREP \
14599EGREP \
14600FGREP \
14601LD \
14602NM \
14603LN_S \
14604lt_SP2NL \
14605lt_NL2SP \
14606reload_flag \
14607FILECMD \
14608OBJDUMP \
14609deplibs_check_method \
14610file_magic_cmd \
14611file_magic_glob \
14612want_nocaseglob \
14613DLLTOOL \
14614sharedlib_from_linklib_cmd \
14615AR \
14616archiver_list_spec \
14617STRIP \
14618RANLIB \
14619CC \
14620CFLAGS \
14621compiler \
14622lt_cv_sys_global_symbol_pipe \
14623lt_cv_sys_global_symbol_to_cdecl \
14624lt_cv_sys_global_symbol_to_import \
14625lt_cv_sys_global_symbol_to_c_name_address \
14626lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14627lt_cv_nm_interface \
14628nm_file_list_spec \
14629lt_cv_truncate_bin \
14630lt_prog_compiler_no_builtin_flag \
14631lt_prog_compiler_pic \
14632lt_prog_compiler_wl \
14633lt_prog_compiler_static \
14634lt_cv_prog_compiler_c_o \
14635need_locks \
14636MANIFEST_TOOL \
14637DSYMUTIL \
14638NMEDIT \
14639LIPO \
14640OTOOL \
14641OTOOL64 \
14642shrext_cmds \
14643export_dynamic_flag_spec \
14644whole_archive_flag_spec \
14645compiler_needs_object \
14646with_gnu_ld \
14647allow_undefined_flag \
14648no_undefined_flag \
14649hardcode_libdir_flag_spec \
14650hardcode_libdir_separator \
14651exclude_expsyms \
14652include_expsyms \
14653file_list_spec \
14654variables_saved_for_relink \
14655libname_spec \
14656library_names_spec \
14657soname_spec \
14658install_override_mode \
14659finish_eval \
14660old_striplib \
14661striplib; do
14662    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14663    *[\\\\\\\`\\"\\\$]*)
14664      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14665      ;;
14666    *)
14667      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14668      ;;
14669    esac
14670done
14671
14672# Double-quote double-evaled strings.
14673for var in reload_cmds \
14674old_postinstall_cmds \
14675old_postuninstall_cmds \
14676old_archive_cmds \
14677extract_expsyms_cmds \
14678old_archive_from_new_cmds \
14679old_archive_from_expsyms_cmds \
14680archive_cmds \
14681archive_expsym_cmds \
14682module_cmds \
14683module_expsym_cmds \
14684export_symbols_cmds \
14685prelink_cmds \
14686postlink_cmds \
14687postinstall_cmds \
14688postuninstall_cmds \
14689finish_cmds \
14690sys_lib_search_path_spec \
14691configure_time_dlsearch_path \
14692configure_time_lt_sys_library_path; do
14693    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14694    *[\\\\\\\`\\"\\\$]*)
14695      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14696      ;;
14697    *)
14698      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14699      ;;
14700    esac
14701done
14702
14703ac_aux_dir='$ac_aux_dir'
14704
14705# See if we are running on zsh, and set the options that allow our
14706# commands through without removal of \ escapes INIT.
14707if test -n "\${ZSH_VERSION+set}"; then
14708   setopt NO_GLOB_SUBST
14709fi
14710
14711
14712    PACKAGE='$PACKAGE'
14713    VERSION='$VERSION'
14714    RM='$RM'
14715    ofile='$ofile'
14716
14717
14718
14719
14720_ACEOF
14721
14722cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14723
14724# Handling of arguments.
14725for ac_config_target in $ac_config_targets
14726do
14727  case $ac_config_target in
14728    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14729    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14730    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14731    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14732    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
14733    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
14734    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14735    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14736    "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
14737
14738  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14739  esac
14740done
14741
14742
14743# If the user did not use the arguments to specify the items to instantiate,
14744# then the envvar interface is used.  Set only those that are not.
14745# We use the long form for the default assignment because of an extremely
14746# bizarre bug on SunOS 4.1.3.
14747if $ac_need_defaults; then
14748  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
14749  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
14750  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
14751fi
14752
14753# Have a temporary directory for convenience.  Make it in the build tree
14754# simply because there is no reason against having it here, and in addition,
14755# creating and moving files from /tmp can sometimes cause problems.
14756# Hook for its removal unless debugging.
14757# Note that there is a small window in which the directory will not be cleaned:
14758# after its creation but before its name has been assigned to `$tmp'.
14759$debug ||
14760{
14761  tmp= ac_tmp=
14762  trap 'exit_status=$?
14763  : "${ac_tmp:=$tmp}"
14764  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14765' 0
14766  trap 'as_fn_exit 1' 1 2 13 15
14767}
14768# Create a (secure) tmp directory for tmp files.
14769
14770{
14771  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14772  test -d "$tmp"
14773}  ||
14774{
14775  tmp=./conf$$-$RANDOM
14776  (umask 077 && mkdir "$tmp")
14777} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14778ac_tmp=$tmp
14779
14780# Set up the scripts for CONFIG_FILES section.
14781# No need to generate them if there are no CONFIG_FILES.
14782# This happens for instance with `./config.status config.h'.
14783if test -n "$CONFIG_FILES"; then
14784
14785
14786ac_cr=`echo X | tr X '\015'`
14787# On cygwin, bash can eat \r inside `` if the user requested igncr.
14788# But we know of no other shell where ac_cr would be empty at this
14789# point, so we can use a bashism as a fallback.
14790if test "x$ac_cr" = x; then
14791  eval ac_cr=\$\'\\r\'
14792fi
14793ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14794if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14795  ac_cs_awk_cr='\\r'
14796else
14797  ac_cs_awk_cr=$ac_cr
14798fi
14799
14800echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14801_ACEOF
14802
14803
14804{
14805  echo "cat >conf$$subs.awk <<_ACEOF" &&
14806  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14807  echo "_ACEOF"
14808} >conf$$subs.sh ||
14809  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14810ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14811ac_delim='%!_!# '
14812for ac_last_try in false false false false false :; do
14813  . ./conf$$subs.sh ||
14814    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14815
14816  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14817  if test $ac_delim_n = $ac_delim_num; then
14818    break
14819  elif $ac_last_try; then
14820    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14821  else
14822    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14823  fi
14824done
14825rm -f conf$$subs.sh
14826
14827cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14828cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14829_ACEOF
14830sed -n '
14831h
14832s/^/S["/; s/!.*/"]=/
14833p
14834g
14835s/^[^!]*!//
14836:repl
14837t repl
14838s/'"$ac_delim"'$//
14839t delim
14840:nl
14841h
14842s/\(.\{148\}\)..*/\1/
14843t more1
14844s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14845p
14846n
14847b repl
14848:more1
14849s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14850p
14851g
14852s/.\{148\}//
14853t nl
14854:delim
14855h
14856s/\(.\{148\}\)..*/\1/
14857t more2
14858s/["\\]/\\&/g; s/^/"/; s/$/"/
14859p
14860b
14861:more2
14862s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14863p
14864g
14865s/.\{148\}//
14866t delim
14867' <conf$$subs.awk | sed '
14868/^[^""]/{
14869  N
14870  s/\n//
14871}
14872' >>$CONFIG_STATUS || ac_write_fail=1
14873rm -f conf$$subs.awk
14874cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14875_ACAWK
14876cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14877  for (key in S) S_is_set[key] = 1
14878  FS = ""
14879
14880}
14881{
14882  line = $ 0
14883  nfields = split(line, field, "@")
14884  substed = 0
14885  len = length(field[1])
14886  for (i = 2; i < nfields; i++) {
14887    key = field[i]
14888    keylen = length(key)
14889    if (S_is_set[key]) {
14890      value = S[key]
14891      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14892      len += length(value) + length(field[++i])
14893      substed = 1
14894    } else
14895      len += 1 + keylen
14896  }
14897
14898  print line
14899}
14900
14901_ACAWK
14902_ACEOF
14903cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14904if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14905  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14906else
14907  cat
14908fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14909  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14910_ACEOF
14911
14912# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14913# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14914# trailing colons and then remove the whole line if VPATH becomes empty
14915# (actually we leave an empty line to preserve line numbers).
14916if test "x$srcdir" = x.; then
14917  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
14918h
14919s///
14920s/^/:/
14921s/[	 ]*$/:/
14922s/:\$(srcdir):/:/g
14923s/:\${srcdir}:/:/g
14924s/:@srcdir@:/:/g
14925s/^:*//
14926s/:*$//
14927x
14928s/\(=[	 ]*\).*/\1/
14929G
14930s/\n//
14931s/^[^=]*=[	 ]*$//
14932}'
14933fi
14934
14935cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14936fi # test -n "$CONFIG_FILES"
14937
14938# Set up the scripts for CONFIG_HEADERS section.
14939# No need to generate them if there are no CONFIG_HEADERS.
14940# This happens for instance with `./config.status Makefile'.
14941if test -n "$CONFIG_HEADERS"; then
14942cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14943BEGIN {
14944_ACEOF
14945
14946# Transform confdefs.h into an awk script `defines.awk', embedded as
14947# here-document in config.status, that substitutes the proper values into
14948# config.h.in to produce config.h.
14949
14950# Create a delimiter string that does not exist in confdefs.h, to ease
14951# handling of long lines.
14952ac_delim='%!_!# '
14953for ac_last_try in false false :; do
14954  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14955  if test -z "$ac_tt"; then
14956    break
14957  elif $ac_last_try; then
14958    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14959  else
14960    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14961  fi
14962done
14963
14964# For the awk script, D is an array of macro values keyed by name,
14965# likewise P contains macro parameters if any.  Preserve backslash
14966# newline sequences.
14967
14968ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14969sed -n '
14970s/.\{148\}/&'"$ac_delim"'/g
14971t rset
14972:rset
14973s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
14974t def
14975d
14976:def
14977s/\\$//
14978t bsnl
14979s/["\\]/\\&/g
14980s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14981D["\1"]=" \3"/p
14982s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
14983d
14984:bsnl
14985s/["\\]/\\&/g
14986s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14987D["\1"]=" \3\\\\\\n"\\/p
14988t cont
14989s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14990t cont
14991d
14992:cont
14993n
14994s/.\{148\}/&'"$ac_delim"'/g
14995t clear
14996:clear
14997s/\\$//
14998t bsnlc
14999s/["\\]/\\&/g; s/^/"/; s/$/"/p
15000d
15001:bsnlc
15002s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15003b cont
15004' <confdefs.h | sed '
15005s/'"$ac_delim"'/"\\\
15006"/g' >>$CONFIG_STATUS || ac_write_fail=1
15007
15008cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15009  for (key in D) D_is_set[key] = 1
15010  FS = ""
15011}
15012/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15013  line = \$ 0
15014  split(line, arg, " ")
15015  if (arg[1] == "#") {
15016    defundef = arg[2]
15017    mac1 = arg[3]
15018  } else {
15019    defundef = substr(arg[1], 2)
15020    mac1 = arg[2]
15021  }
15022  split(mac1, mac2, "(") #)
15023  macro = mac2[1]
15024  prefix = substr(line, 1, index(line, defundef) - 1)
15025  if (D_is_set[macro]) {
15026    # Preserve the white space surrounding the "#".
15027    print prefix "define", macro P[macro] D[macro]
15028    next
15029  } else {
15030    # Replace #undef with comments.  This is necessary, for example,
15031    # in the case of _POSIX_SOURCE, which is predefined and required
15032    # on some systems where configure will not decide to define it.
15033    if (defundef == "undef") {
15034      print "/*", prefix defundef, macro, "*/"
15035      next
15036    }
15037  }
15038}
15039{ print }
15040_ACAWK
15041_ACEOF
15042cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15043  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15044fi # test -n "$CONFIG_HEADERS"
15045
15046
15047eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
15048shift
15049for ac_tag
15050do
15051  case $ac_tag in
15052  :[FHLC]) ac_mode=$ac_tag; continue;;
15053  esac
15054  case $ac_mode$ac_tag in
15055  :[FHL]*:*);;
15056  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15057  :[FH]-) ac_tag=-:-;;
15058  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15059  esac
15060  ac_save_IFS=$IFS
15061  IFS=:
15062  set x $ac_tag
15063  IFS=$ac_save_IFS
15064  shift
15065  ac_file=$1
15066  shift
15067
15068  case $ac_mode in
15069  :L) ac_source=$1;;
15070  :[FH])
15071    ac_file_inputs=
15072    for ac_f
15073    do
15074      case $ac_f in
15075      -) ac_f="$ac_tmp/stdin";;
15076      *) # Look for the file first in the build tree, then in the source tree
15077	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
15078	 # because $ac_f cannot contain `:'.
15079	 test -f "$ac_f" ||
15080	   case $ac_f in
15081	   [\\/$]*) false;;
15082	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15083	   esac ||
15084	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15085      esac
15086      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15087      as_fn_append ac_file_inputs " '$ac_f'"
15088    done
15089
15090    # Let's still pretend it is `configure' which instantiates (i.e., don't
15091    # use $as_me), people would be surprised to read:
15092    #    /* config.h.  Generated by config.status.  */
15093    configure_input='Generated from '`
15094	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15095	`' by configure.'
15096    if test x"$ac_file" != x-; then
15097      configure_input="$ac_file.  $configure_input"
15098      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15099printf "%s\n" "$as_me: creating $ac_file" >&6;}
15100    fi
15101    # Neutralize special characters interpreted by sed in replacement strings.
15102    case $configure_input in #(
15103    *\&* | *\|* | *\\* )
15104       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
15105       sed 's/[\\\\&|]/\\\\&/g'`;; #(
15106    *) ac_sed_conf_input=$configure_input;;
15107    esac
15108
15109    case $ac_tag in
15110    *:-:* | *:-) cat >"$ac_tmp/stdin" \
15111      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15112    esac
15113    ;;
15114  esac
15115
15116  ac_dir=`$as_dirname -- "$ac_file" ||
15117$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15118	 X"$ac_file" : 'X\(//\)[^/]' \| \
15119	 X"$ac_file" : 'X\(//\)$' \| \
15120	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15121printf "%s\n" X"$ac_file" |
15122    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15123	    s//\1/
15124	    q
15125	  }
15126	  /^X\(\/\/\)[^/].*/{
15127	    s//\1/
15128	    q
15129	  }
15130	  /^X\(\/\/\)$/{
15131	    s//\1/
15132	    q
15133	  }
15134	  /^X\(\/\).*/{
15135	    s//\1/
15136	    q
15137	  }
15138	  s/.*/./; q'`
15139  as_dir="$ac_dir"; as_fn_mkdir_p
15140  ac_builddir=.
15141
15142case "$ac_dir" in
15143.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15144*)
15145  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
15146  # A ".." for each directory in $ac_dir_suffix.
15147  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15148  case $ac_top_builddir_sub in
15149  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15150  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15151  esac ;;
15152esac
15153ac_abs_top_builddir=$ac_pwd
15154ac_abs_builddir=$ac_pwd$ac_dir_suffix
15155# for backward compatibility:
15156ac_top_builddir=$ac_top_build_prefix
15157
15158case $srcdir in
15159  .)  # We are building in place.
15160    ac_srcdir=.
15161    ac_top_srcdir=$ac_top_builddir_sub
15162    ac_abs_top_srcdir=$ac_pwd ;;
15163  [\\/]* | ?:[\\/]* )  # Absolute name.
15164    ac_srcdir=$srcdir$ac_dir_suffix;
15165    ac_top_srcdir=$srcdir
15166    ac_abs_top_srcdir=$srcdir ;;
15167  *) # Relative name.
15168    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15169    ac_top_srcdir=$ac_top_build_prefix$srcdir
15170    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15171esac
15172ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15173
15174
15175  case $ac_mode in
15176  :F)
15177  #
15178  # CONFIG_FILE
15179  #
15180
15181  case $INSTALL in
15182  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15183  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15184  esac
15185  ac_MKDIR_P=$MKDIR_P
15186  case $MKDIR_P in
15187  [\\/$]* | ?:[\\/]* ) ;;
15188  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15189  esac
15190_ACEOF
15191
15192cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15193# If the template does not know about datarootdir, expand it.
15194# FIXME: This hack should be removed a few years after 2.60.
15195ac_datarootdir_hack=; ac_datarootdir_seen=
15196ac_sed_dataroot='
15197/datarootdir/ {
15198  p
15199  q
15200}
15201/@datadir@/p
15202/@docdir@/p
15203/@infodir@/p
15204/@localedir@/p
15205/@mandir@/p'
15206case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15207*datarootdir*) ac_datarootdir_seen=yes;;
15208*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15209  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15210printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15211_ACEOF
15212cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15213  ac_datarootdir_hack='
15214  s&@datadir@&$datadir&g
15215  s&@docdir@&$docdir&g
15216  s&@infodir@&$infodir&g
15217  s&@localedir@&$localedir&g
15218  s&@mandir@&$mandir&g
15219  s&\\\${datarootdir}&$datarootdir&g' ;;
15220esac
15221_ACEOF
15222
15223# Neutralize VPATH when `$srcdir' = `.'.
15224# Shell code in configure.ac might set extrasub.
15225# FIXME: do we really want to maintain this feature?
15226cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15227ac_sed_extra="$ac_vpsub
15228$extrasub
15229_ACEOF
15230cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15231:t
15232/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15233s|@configure_input@|$ac_sed_conf_input|;t t
15234s&@top_builddir@&$ac_top_builddir_sub&;t t
15235s&@top_build_prefix@&$ac_top_build_prefix&;t t
15236s&@srcdir@&$ac_srcdir&;t t
15237s&@abs_srcdir@&$ac_abs_srcdir&;t t
15238s&@top_srcdir@&$ac_top_srcdir&;t t
15239s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15240s&@builddir@&$ac_builddir&;t t
15241s&@abs_builddir@&$ac_abs_builddir&;t t
15242s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15243s&@INSTALL@&$ac_INSTALL&;t t
15244s&@MKDIR_P@&$ac_MKDIR_P&;t t
15245$ac_datarootdir_hack
15246"
15247eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15248  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15249
15250test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15251  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15252  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
15253      "$ac_tmp/out"`; test -z "$ac_out"; } &&
15254  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15255which seems to be undefined.  Please make sure it is defined" >&5
15256printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15257which seems to be undefined.  Please make sure it is defined" >&2;}
15258
15259  rm -f "$ac_tmp/stdin"
15260  case $ac_file in
15261  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15262  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15263  esac \
15264  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15265 ;;
15266  :H)
15267  #
15268  # CONFIG_HEADER
15269  #
15270  if test x"$ac_file" != x-; then
15271    {
15272      printf "%s\n" "/* $configure_input  */" >&1 \
15273      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15274    } >"$ac_tmp/config.h" \
15275      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15276    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15277      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15278printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
15279    else
15280      rm -f "$ac_file"
15281      mv "$ac_tmp/config.h" "$ac_file" \
15282	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
15283    fi
15284  else
15285    printf "%s\n" "/* $configure_input  */" >&1 \
15286      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15287      || as_fn_error $? "could not create -" "$LINENO" 5
15288  fi
15289# Compute "$ac_file"'s index in $config_headers.
15290_am_arg="$ac_file"
15291_am_stamp_count=1
15292for _am_header in $config_headers :; do
15293  case $_am_header in
15294    $_am_arg | $_am_arg:* )
15295      break ;;
15296    * )
15297      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15298  esac
15299done
15300echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15301$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15302	 X"$_am_arg" : 'X\(//\)[^/]' \| \
15303	 X"$_am_arg" : 'X\(//\)$' \| \
15304	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15305printf "%s\n" X"$_am_arg" |
15306    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15307	    s//\1/
15308	    q
15309	  }
15310	  /^X\(\/\/\)[^/].*/{
15311	    s//\1/
15312	    q
15313	  }
15314	  /^X\(\/\/\)$/{
15315	    s//\1/
15316	    q
15317	  }
15318	  /^X\(\/\).*/{
15319	    s//\1/
15320	    q
15321	  }
15322	  s/.*/./; q'`/stamp-h$_am_stamp_count
15323 ;;
15324
15325  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15326printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
15327 ;;
15328  esac
15329
15330
15331  case $ac_file$ac_mode in
15332    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15333  # Older Autoconf quotes --file arguments for eval, but not when files
15334  # are listed without --file.  Let's play safe and only enable the eval
15335  # if we detect the quoting.
15336  # TODO: see whether this extra hack can be removed once we start
15337  # requiring Autoconf 2.70 or later.
15338  case $CONFIG_FILES in #(
15339  *\'*) :
15340    eval set x "$CONFIG_FILES" ;; #(
15341  *) :
15342    set x $CONFIG_FILES ;; #(
15343  *) :
15344     ;;
15345esac
15346  shift
15347  # Used to flag and report bootstrapping failures.
15348  am_rc=0
15349  for am_mf
15350  do
15351    # Strip MF so we end up with the name of the file.
15352    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
15353    # Check whether this is an Automake generated Makefile which includes
15354    # dependency-tracking related rules and includes.
15355    # Grep'ing the whole file directly is not great: AIX grep has a line
15356    # limit of 2048, but all sed's we know have understand at least 4000.
15357    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
15358      || continue
15359    am_dirpart=`$as_dirname -- "$am_mf" ||
15360$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15361	 X"$am_mf" : 'X\(//\)[^/]' \| \
15362	 X"$am_mf" : 'X\(//\)$' \| \
15363	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15364printf "%s\n" X"$am_mf" |
15365    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15366	    s//\1/
15367	    q
15368	  }
15369	  /^X\(\/\/\)[^/].*/{
15370	    s//\1/
15371	    q
15372	  }
15373	  /^X\(\/\/\)$/{
15374	    s//\1/
15375	    q
15376	  }
15377	  /^X\(\/\).*/{
15378	    s//\1/
15379	    q
15380	  }
15381	  s/.*/./; q'`
15382    am_filepart=`$as_basename -- "$am_mf" ||
15383$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
15384	 X"$am_mf" : 'X\(//\)$' \| \
15385	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15386printf "%s\n" X/"$am_mf" |
15387    sed '/^.*\/\([^/][^/]*\)\/*$/{
15388	    s//\1/
15389	    q
15390	  }
15391	  /^X\/\(\/\/\)$/{
15392	    s//\1/
15393	    q
15394	  }
15395	  /^X\/\(\/\).*/{
15396	    s//\1/
15397	    q
15398	  }
15399	  s/.*/./; q'`
15400    { echo "$as_me:$LINENO: cd "$am_dirpart" \
15401      && sed -e '/# am--include-marker/d' "$am_filepart" \
15402        | $MAKE -f - am--depfiles" >&5
15403   (cd "$am_dirpart" \
15404      && sed -e '/# am--include-marker/d' "$am_filepart" \
15405        | $MAKE -f - am--depfiles) >&5 2>&5
15406   ac_status=$?
15407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15408   (exit $ac_status); } || am_rc=$?
15409  done
15410  if test $am_rc -ne 0; then
15411    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15412printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15413as_fn_error $? "Something went wrong bootstrapping makefile fragments
15414    for automatic dependency tracking.  If GNU make was not used, consider
15415    re-running the configure script with MAKE=\"gmake\" (or whatever is
15416    necessary).  You can also try re-running configure with the
15417    '--disable-dependency-tracking' option to at least be able to build
15418    the package (albeit without support for automatic dependency tracking).
15419See \`config.log' for more details" "$LINENO" 5; }
15420  fi
15421  { am_dirpart=; unset am_dirpart;}
15422  { am_filepart=; unset am_filepart;}
15423  { am_mf=; unset am_mf;}
15424  { am_rc=; unset am_rc;}
15425  rm -f conftest-deps.mk
15426}
15427 ;;
15428    "libtool":C)
15429
15430    # See if we are running on zsh, and set the options that allow our
15431    # commands through without removal of \ escapes.
15432    if test -n "${ZSH_VERSION+set}"; then
15433      setopt NO_GLOB_SUBST
15434    fi
15435
15436    cfgfile=${ofile}T
15437    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15438    $RM "$cfgfile"
15439
15440    cat <<_LT_EOF >> "$cfgfile"
15441#! $SHELL
15442# Generated automatically by $as_me ($PACKAGE) $VERSION
15443# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15444
15445# Provide generalized library-building support services.
15446# Written by Gordon Matzigkeit, 1996
15447
15448# Copyright (C) 2014 Free Software Foundation, Inc.
15449# This is free software; see the source for copying conditions.  There is NO
15450# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15451
15452# GNU Libtool is free software; you can redistribute it and/or modify
15453# it under the terms of the GNU General Public License as published by
15454# the Free Software Foundation; either version 2 of of the License, or
15455# (at your option) any later version.
15456#
15457# As a special exception to the GNU General Public License, if you
15458# distribute this file as part of a program or library that is built
15459# using GNU Libtool, you may include this file under the  same
15460# distribution terms that you use for the rest of that program.
15461#
15462# GNU Libtool is distributed in the hope that it will be useful, but
15463# WITHOUT ANY WARRANTY; without even the implied warranty of
15464# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15465# GNU General Public License for more details.
15466#
15467# You should have received a copy of the GNU General Public License
15468# along with this program.  If not, see <http://www.gnu.org/licenses/>.
15469
15470
15471# The names of the tagged configurations supported by this script.
15472available_tags=''
15473
15474# Configured defaults for sys_lib_dlsearch_path munging.
15475: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15476
15477# ### BEGIN LIBTOOL CONFIG
15478
15479# Which release of libtool.m4 was used?
15480macro_version=$macro_version
15481macro_revision=$macro_revision
15482
15483# Whether or not to build shared libraries.
15484build_libtool_libs=$enable_shared
15485
15486# Whether or not to build static libraries.
15487build_old_libs=$enable_static
15488
15489# What type of objects to build.
15490pic_mode=$pic_mode
15491
15492# Whether or not to optimize for fast installation.
15493fast_install=$enable_fast_install
15494
15495# Shared archive member basename,for filename based shared library versioning on AIX.
15496shared_archive_member_spec=$shared_archive_member_spec
15497
15498# Shell to use when invoking shell scripts.
15499SHELL=$lt_SHELL
15500
15501# An echo program that protects backslashes.
15502ECHO=$lt_ECHO
15503
15504# The PATH separator for the build system.
15505PATH_SEPARATOR=$lt_PATH_SEPARATOR
15506
15507# The host system.
15508host_alias=$host_alias
15509host=$host
15510host_os=$host_os
15511
15512# The build system.
15513build_alias=$build_alias
15514build=$build
15515build_os=$build_os
15516
15517# A sed program that does not truncate output.
15518SED=$lt_SED
15519
15520# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15521Xsed="\$SED -e 1s/^X//"
15522
15523# A grep program that handles long lines.
15524GREP=$lt_GREP
15525
15526# An ERE matcher.
15527EGREP=$lt_EGREP
15528
15529# A literal string matcher.
15530FGREP=$lt_FGREP
15531
15532# A BSD- or MS-compatible name lister.
15533NM=$lt_NM
15534
15535# Whether we need soft or hard links.
15536LN_S=$lt_LN_S
15537
15538# What is the maximum length of a command?
15539max_cmd_len=$max_cmd_len
15540
15541# Object file suffix (normally "o").
15542objext=$ac_objext
15543
15544# Executable file suffix (normally "").
15545exeext=$exeext
15546
15547# whether the shell understands "unset".
15548lt_unset=$lt_unset
15549
15550# turn spaces into newlines.
15551SP2NL=$lt_lt_SP2NL
15552
15553# turn newlines into spaces.
15554NL2SP=$lt_lt_NL2SP
15555
15556# convert \$build file names to \$host format.
15557to_host_file_cmd=$lt_cv_to_host_file_cmd
15558
15559# convert \$build files to toolchain format.
15560to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15561
15562# A file(cmd) program that detects file types.
15563FILECMD=$lt_FILECMD
15564
15565# An object symbol dumper.
15566OBJDUMP=$lt_OBJDUMP
15567
15568# Method to check whether dependent libraries are shared objects.
15569deplibs_check_method=$lt_deplibs_check_method
15570
15571# Command to use when deplibs_check_method = "file_magic".
15572file_magic_cmd=$lt_file_magic_cmd
15573
15574# How to find potential files when deplibs_check_method = "file_magic".
15575file_magic_glob=$lt_file_magic_glob
15576
15577# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15578want_nocaseglob=$lt_want_nocaseglob
15579
15580# DLL creation program.
15581DLLTOOL=$lt_DLLTOOL
15582
15583# Command to associate shared and link libraries.
15584sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15585
15586# The archiver.
15587AR=$lt_AR
15588
15589# Flags to create an archive (by configure).
15590lt_ar_flags=$lt_ar_flags
15591
15592# Flags to create an archive.
15593AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
15594
15595# How to feed a file listing to the archiver.
15596archiver_list_spec=$lt_archiver_list_spec
15597
15598# A symbol stripping program.
15599STRIP=$lt_STRIP
15600
15601# Commands used to install an old-style archive.
15602RANLIB=$lt_RANLIB
15603old_postinstall_cmds=$lt_old_postinstall_cmds
15604old_postuninstall_cmds=$lt_old_postuninstall_cmds
15605
15606# Whether to use a lock for old archive extraction.
15607lock_old_archive_extraction=$lock_old_archive_extraction
15608
15609# A C compiler.
15610LTCC=$lt_CC
15611
15612# LTCC compiler flags.
15613LTCFLAGS=$lt_CFLAGS
15614
15615# Take the output of nm and produce a listing of raw symbols and C names.
15616global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15617
15618# Transform the output of nm in a proper C declaration.
15619global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15620
15621# Transform the output of nm into a list of symbols to manually relocate.
15622global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15623
15624# Transform the output of nm in a C name address pair.
15625global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15626
15627# Transform the output of nm in a C name address pair when lib prefix is needed.
15628global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15629
15630# The name lister interface.
15631nm_interface=$lt_lt_cv_nm_interface
15632
15633# Specify filename containing input files for \$NM.
15634nm_file_list_spec=$lt_nm_file_list_spec
15635
15636# The root where to search for dependent libraries,and where our libraries should be installed.
15637lt_sysroot=$lt_sysroot
15638
15639# Command to truncate a binary pipe.
15640lt_truncate_bin=$lt_lt_cv_truncate_bin
15641
15642# The name of the directory that contains temporary libtool files.
15643objdir=$objdir
15644
15645# Used to examine libraries when file_magic_cmd begins with "file".
15646MAGIC_CMD=$MAGIC_CMD
15647
15648# Must we lock files when doing compilation?
15649need_locks=$lt_need_locks
15650
15651# Manifest tool.
15652MANIFEST_TOOL=$lt_MANIFEST_TOOL
15653
15654# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15655DSYMUTIL=$lt_DSYMUTIL
15656
15657# Tool to change global to local symbols on Mac OS X.
15658NMEDIT=$lt_NMEDIT
15659
15660# Tool to manipulate fat objects and archives on Mac OS X.
15661LIPO=$lt_LIPO
15662
15663# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15664OTOOL=$lt_OTOOL
15665
15666# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15667OTOOL64=$lt_OTOOL64
15668
15669# Old archive suffix (normally "a").
15670libext=$libext
15671
15672# Shared library suffix (normally ".so").
15673shrext_cmds=$lt_shrext_cmds
15674
15675# The commands to extract the exported symbol list from a shared archive.
15676extract_expsyms_cmds=$lt_extract_expsyms_cmds
15677
15678# Variables whose values should be saved in libtool wrapper scripts and
15679# restored at link time.
15680variables_saved_for_relink=$lt_variables_saved_for_relink
15681
15682# Do we need the "lib" prefix for modules?
15683need_lib_prefix=$need_lib_prefix
15684
15685# Do we need a version for libraries?
15686need_version=$need_version
15687
15688# Library versioning type.
15689version_type=$version_type
15690
15691# Shared library runtime path variable.
15692runpath_var=$runpath_var
15693
15694# Shared library path variable.
15695shlibpath_var=$shlibpath_var
15696
15697# Is shlibpath searched before the hard-coded library search path?
15698shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15699
15700# Format of library name prefix.
15701libname_spec=$lt_libname_spec
15702
15703# List of archive names.  First name is the real one, the rest are links.
15704# The last name is the one that the linker finds with -lNAME
15705library_names_spec=$lt_library_names_spec
15706
15707# The coded name of the library, if different from the real name.
15708soname_spec=$lt_soname_spec
15709
15710# Permission mode override for installation of shared libraries.
15711install_override_mode=$lt_install_override_mode
15712
15713# Command to use after installation of a shared archive.
15714postinstall_cmds=$lt_postinstall_cmds
15715
15716# Command to use after uninstallation of a shared archive.
15717postuninstall_cmds=$lt_postuninstall_cmds
15718
15719# Commands used to finish a libtool library installation in a directory.
15720finish_cmds=$lt_finish_cmds
15721
15722# As "finish_cmds", except a single script fragment to be evaled but
15723# not shown.
15724finish_eval=$lt_finish_eval
15725
15726# Whether we should hardcode library paths into libraries.
15727hardcode_into_libs=$hardcode_into_libs
15728
15729# Compile-time system search path for libraries.
15730sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15731
15732# Detected run-time system search path for libraries.
15733sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15734
15735# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15736configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15737
15738# Whether dlopen is supported.
15739dlopen_support=$enable_dlopen
15740
15741# Whether dlopen of programs is supported.
15742dlopen_self=$enable_dlopen_self
15743
15744# Whether dlopen of statically linked programs is supported.
15745dlopen_self_static=$enable_dlopen_self_static
15746
15747# Commands to strip libraries.
15748old_striplib=$lt_old_striplib
15749striplib=$lt_striplib
15750
15751
15752# The linker used to build libraries.
15753LD=$lt_LD
15754
15755# How to create reloadable object files.
15756reload_flag=$lt_reload_flag
15757reload_cmds=$lt_reload_cmds
15758
15759# Commands used to build an old-style archive.
15760old_archive_cmds=$lt_old_archive_cmds
15761
15762# A language specific compiler.
15763CC=$lt_compiler
15764
15765# Is the compiler the GNU compiler?
15766with_gcc=$GCC
15767
15768# Compiler flag to turn off builtin functions.
15769no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15770
15771# Additional compiler flags for building library objects.
15772pic_flag=$lt_lt_prog_compiler_pic
15773
15774# How to pass a linker flag through the compiler.
15775wl=$lt_lt_prog_compiler_wl
15776
15777# Compiler flag to prevent dynamic linking.
15778link_static_flag=$lt_lt_prog_compiler_static
15779
15780# Does compiler simultaneously support -c and -o options?
15781compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15782
15783# Whether or not to add -lc for building shared libraries.
15784build_libtool_need_lc=$archive_cmds_need_lc
15785
15786# Whether or not to disallow shared libs when runtime libs are static.
15787allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15788
15789# Compiler flag to allow reflexive dlopens.
15790export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15791
15792# Compiler flag to generate shared objects directly from archives.
15793whole_archive_flag_spec=$lt_whole_archive_flag_spec
15794
15795# Whether the compiler copes with passing no objects directly.
15796compiler_needs_object=$lt_compiler_needs_object
15797
15798# Create an old-style archive from a shared archive.
15799old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15800
15801# Create a temporary old-style archive to link instead of a shared archive.
15802old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15803
15804# Commands used to build a shared archive.
15805archive_cmds=$lt_archive_cmds
15806archive_expsym_cmds=$lt_archive_expsym_cmds
15807
15808# Commands used to build a loadable module if different from building
15809# a shared archive.
15810module_cmds=$lt_module_cmds
15811module_expsym_cmds=$lt_module_expsym_cmds
15812
15813# Whether we are building with GNU ld or not.
15814with_gnu_ld=$lt_with_gnu_ld
15815
15816# Flag that allows shared libraries with undefined symbols to be built.
15817allow_undefined_flag=$lt_allow_undefined_flag
15818
15819# Flag that enforces no undefined symbols.
15820no_undefined_flag=$lt_no_undefined_flag
15821
15822# Flag to hardcode \$libdir into a binary during linking.
15823# This must work even if \$libdir does not exist
15824hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15825
15826# Whether we need a single "-rpath" flag with a separated argument.
15827hardcode_libdir_separator=$lt_hardcode_libdir_separator
15828
15829# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15830# DIR into the resulting binary.
15831hardcode_direct=$hardcode_direct
15832
15833# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15834# DIR into the resulting binary and the resulting library dependency is
15835# "absolute",i.e impossible to change by setting \$shlibpath_var if the
15836# library is relocated.
15837hardcode_direct_absolute=$hardcode_direct_absolute
15838
15839# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15840# into the resulting binary.
15841hardcode_minus_L=$hardcode_minus_L
15842
15843# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15844# into the resulting binary.
15845hardcode_shlibpath_var=$hardcode_shlibpath_var
15846
15847# Set to "yes" if building a shared library automatically hardcodes DIR
15848# into the library and all subsequent libraries and executables linked
15849# against it.
15850hardcode_automatic=$hardcode_automatic
15851
15852# Set to yes if linker adds runtime paths of dependent libraries
15853# to runtime path list.
15854inherit_rpath=$inherit_rpath
15855
15856# Whether libtool must link a program against all its dependency libraries.
15857link_all_deplibs=$link_all_deplibs
15858
15859# Set to "yes" if exported symbols are required.
15860always_export_symbols=$always_export_symbols
15861
15862# The commands to list exported symbols.
15863export_symbols_cmds=$lt_export_symbols_cmds
15864
15865# Symbols that should not be listed in the preloaded symbols.
15866exclude_expsyms=$lt_exclude_expsyms
15867
15868# Symbols that must always be exported.
15869include_expsyms=$lt_include_expsyms
15870
15871# Commands necessary for linking programs (against libraries) with templates.
15872prelink_cmds=$lt_prelink_cmds
15873
15874# Commands necessary for finishing linking programs.
15875postlink_cmds=$lt_postlink_cmds
15876
15877# Specify filename containing input files.
15878file_list_spec=$lt_file_list_spec
15879
15880# How to hardcode a shared library path into an executable.
15881hardcode_action=$hardcode_action
15882
15883# ### END LIBTOOL CONFIG
15884
15885_LT_EOF
15886
15887    cat <<'_LT_EOF' >> "$cfgfile"
15888
15889# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15890
15891# func_munge_path_list VARIABLE PATH
15892# -----------------------------------
15893# VARIABLE is name of variable containing _space_ separated list of
15894# directories to be munged by the contents of PATH, which is string
15895# having a format:
15896# "DIR[:DIR]:"
15897#       string "DIR[ DIR]" will be prepended to VARIABLE
15898# ":DIR[:DIR]"
15899#       string "DIR[ DIR]" will be appended to VARIABLE
15900# "DIRP[:DIRP]::[DIRA:]DIRA"
15901#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15902#       "DIRA[ DIRA]" will be appended to VARIABLE
15903# "DIR[:DIR]"
15904#       VARIABLE will be replaced by "DIR[ DIR]"
15905func_munge_path_list ()
15906{
15907    case x$2 in
15908    x)
15909        ;;
15910    *:)
15911        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15912        ;;
15913    x:*)
15914        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15915        ;;
15916    *::*)
15917        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15918        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15919        ;;
15920    *)
15921        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15922        ;;
15923    esac
15924}
15925
15926
15927# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
15928func_cc_basename ()
15929{
15930    for cc_temp in $*""; do
15931      case $cc_temp in
15932        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15933        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15934        \-*) ;;
15935        *) break;;
15936      esac
15937    done
15938    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15939}
15940
15941
15942# ### END FUNCTIONS SHARED WITH CONFIGURE
15943
15944_LT_EOF
15945
15946  case $host_os in
15947  aix3*)
15948    cat <<\_LT_EOF >> "$cfgfile"
15949# AIX sometimes has problems with the GCC collect2 program.  For some
15950# reason, if we set the COLLECT_NAMES environment variable, the problems
15951# vanish in a puff of smoke.
15952if test set != "${COLLECT_NAMES+set}"; then
15953  COLLECT_NAMES=
15954  export COLLECT_NAMES
15955fi
15956_LT_EOF
15957    ;;
15958  esac
15959
15960
15961
15962ltmain=$ac_aux_dir/ltmain.sh
15963
15964
15965  # We use sed instead of cat because bash on DJGPP gets confused if
15966  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15967  # text mode, it properly converts lines to CR/LF.  This bash problem
15968  # is reportedly fixed, but why not run on old versions too?
15969  $SED '$q' "$ltmain" >> "$cfgfile" \
15970     || (rm -f "$cfgfile"; exit 1)
15971
15972   mv -f "$cfgfile" "$ofile" ||
15973    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15974  chmod +x "$ofile"
15975
15976 ;;
15977
15978  esac
15979done # for ac_tag
15980
15981
15982as_fn_exit 0
15983_ACEOF
15984ac_clean_files=$ac_clean_files_save
15985
15986test $ac_write_fail = 0 ||
15987  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15988
15989
15990# configure is writing to config.log, and then calls config.status.
15991# config.status does its own redirection, appending to config.log.
15992# Unfortunately, on DOS this fails, as config.log is still kept open
15993# by configure, so config.status won't be able to write to it; its
15994# output is simply discarded.  So we exec the FD to /dev/null,
15995# effectively closing config.log, so it can be properly (re)opened and
15996# appended to by config.status.  When coming back to configure, we
15997# need to make the FD available again.
15998if test "$no_create" != yes; then
15999  ac_cs_success=:
16000  ac_config_status_args=
16001  test "$silent" = yes &&
16002    ac_config_status_args="$ac_config_status_args --quiet"
16003  exec 5>/dev/null
16004  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16005  exec 5>>config.log
16006  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16007  # would make configure fail if this is the last instruction.
16008  $ac_cs_success || as_fn_exit 1
16009fi
16010if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16011  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16012printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16013fi
16014
16015
16016
16017# Borrowed from smartmontools configure.ac
16018# Note: Use `...` here as some shells do not properly parse '$(... case $x in X) ...)'
16019info=`
16020  echo "-----------------------------------------------------------------------------"
16021  echo "${PACKAGE}-${VERSION} configuration:"
16022  echo "host operating system:  $host"
16023  echo "default C compiler:     $CC"
16024
16025  case "$host_os" in
16026    mingw*)
16027      echo "application manifest:   ${os_win32_manifest:-built-in}"
16028      echo "resource compiler:      $WINDRES"
16029      echo "message compiler:       $WINDMC"
16030      echo "NSIS compiler:          $MAKENSIS"
16031      ;;
16032
16033    *)
16034      echo "binary install path:    \`eval eval eval echo $bindir\`"
16035      echo "scripts install path:   \`eval eval eval echo $bindir\`"
16036      echo "man page install path:  \`eval eval eval echo $mandir\`"
16037      ;;
16038  esac
16039  echo "-----------------------------------------------------------------------------"
16040`
16041
16042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:
16043$info
16044" >&5
16045printf "%s\n" "$as_me:
16046$info
16047" >&6;}
16048
16049
16050