1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for g15daemon 3.0.
4#
5# Report bugs to <menelkir@itroll.org>.
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 bug-autoconf@gnu.org and
279$0: menelkir@itroll.org 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='g15daemon'
623PACKAGE_TARNAME='g15daemon'
624PACKAGE_VERSION='3.0'
625PACKAGE_STRING='g15daemon 3.0'
626PACKAGE_BUGREPORT='menelkir@itroll.org'
627PACKAGE_URL=''
628
629ac_default_prefix=/usr
630# Factoring default headers for most tests.
631ac_includes_default="\
632#include <stddef.h>
633#ifdef HAVE_STDIO_H
634# include <stdio.h>
635#endif
636#ifdef HAVE_STDLIB_H
637# include <stdlib.h>
638#endif
639#ifdef HAVE_STRING_H
640# include <string.h>
641#endif
642#ifdef HAVE_INTTYPES_H
643# include <inttypes.h>
644#endif
645#ifdef HAVE_STDINT_H
646# include <stdint.h>
647#endif
648#ifdef HAVE_STRINGS_H
649# include <strings.h>
650#endif
651#ifdef HAVE_SYS_TYPES_H
652# include <sys/types.h>
653#endif
654#ifdef HAVE_SYS_STAT_H
655# include <sys/stat.h>
656#endif
657#ifdef HAVE_UNISTD_H
658# include <unistd.h>
659#endif"
660
661ac_header_c_list=
662ac_subst_vars='am__EXEEXT_FALSE
663am__EXEEXT_TRUE
664LTLIBOBJS
665LIBOBJS
666G15DAEMON_PLUGIN_DIR
667UINPUT_INTERFACE_PLUGIN_FALSE
668UINPUT_INTERFACE_PLUGIN_TRUE
669KEXT_INSTALL_FALSE
670KEXT_INSTALL_TRUE
671KEXT_LOCATION
672CPP
673LT_SYS_LIBRARY_PATH
674OTOOL64
675OTOOL
676LIPO
677NMEDIT
678DSYMUTIL
679MANIFEST_TOOL
680RANLIB
681ac_ct_AR
682AR
683DLLTOOL
684OBJDUMP
685LN_S
686NM
687ac_ct_DUMPBIN
688DUMPBIN
689LD
690FGREP
691EGREP
692GREP
693SED
694LIBTOOL
695am__fastdepCC_FALSE
696am__fastdepCC_TRUE
697CCDEPMODE
698am__nodep
699AMDEPBACKSLASH
700AMDEP_FALSE
701AMDEP_TRUE
702am__include
703DEPDIR
704OBJEXT
705EXEEXT
706ac_ct_CC
707CPPFLAGS
708LDFLAGS
709CFLAGS
710CC
711AM_BACKSLASH
712AM_DEFAULT_VERBOSITY
713AM_DEFAULT_V
714AM_V
715am__untar
716am__tar
717AMTAR
718am__leading_dot
719SET_MAKE
720AWK
721mkdir_p
722MKDIR_P
723INSTALL_STRIP_PROGRAM
724STRIP
725install_sh
726MAKEINFO
727AUTOHEADER
728AUTOMAKE
729AUTOCONF
730ACLOCAL
731VERSION
732PACKAGE
733CYGPATH_W
734am__isrc
735INSTALL_DATA
736INSTALL_SCRIPT
737INSTALL_PROGRAM
738target_os
739target_vendor
740target_cpu
741target
742host_os
743host_vendor
744host_cpu
745host
746build_os
747build_vendor
748build_cpu
749build
750target_alias
751host_alias
752build_alias
753LIBS
754ECHO_T
755ECHO_N
756ECHO_C
757DEFS
758mandir
759localedir
760libdir
761psdir
762pdfdir
763dvidir
764htmldir
765infodir
766docdir
767oldincludedir
768includedir
769runstatedir
770localstatedir
771sharedstatedir
772sysconfdir
773datadir
774datarootdir
775libexecdir
776sbindir
777bindir
778program_transform_name
779prefix
780exec_prefix
781PACKAGE_URL
782PACKAGE_BUGREPORT
783PACKAGE_STRING
784PACKAGE_VERSION
785PACKAGE_TARNAME
786PACKAGE_NAME
787PATH_SEPARATOR
788SHELL
789am__quote'
790ac_subst_files=''
791ac_user_opts='
792enable_option_checking
793enable_silent_rules
794enable_dependency_tracking
795enable_shared
796enable_static
797with_pic
798enable_fast_install
799with_aix_soname
800with_gnu_ld
801with_sysroot
802enable_libtool_lock
803enable___disable_uinput
804'
805      ac_precious_vars='build_alias
806host_alias
807target_alias
808CC
809CFLAGS
810LDFLAGS
811LIBS
812CPPFLAGS
813LT_SYS_LIBRARY_PATH
814CPP'
815
816
817# Initialize some variables set by options.
818ac_init_help=
819ac_init_version=false
820ac_unrecognized_opts=
821ac_unrecognized_sep=
822# The variables have the same names as the options, with
823# dashes changed to underlines.
824cache_file=/dev/null
825exec_prefix=NONE
826no_create=
827no_recursion=
828prefix=NONE
829program_prefix=NONE
830program_suffix=NONE
831program_transform_name=s,x,x,
832silent=
833site=
834srcdir=
835verbose=
836x_includes=NONE
837x_libraries=NONE
838
839# Installation directory options.
840# These are left unexpanded so users can "make install exec_prefix=/foo"
841# and all the variables that are supposed to be based on exec_prefix
842# by default will actually change.
843# Use braces instead of parens because sh, perl, etc. also accept them.
844# (The list follows the same order as the GNU Coding Standards.)
845bindir='${exec_prefix}/bin'
846sbindir='${exec_prefix}/sbin'
847libexecdir='${exec_prefix}/libexec'
848datarootdir='${prefix}/share'
849datadir='${datarootdir}'
850sysconfdir='${prefix}/etc'
851sharedstatedir='${prefix}/com'
852localstatedir='${prefix}/var'
853runstatedir='${localstatedir}/run'
854includedir='${prefix}/include'
855oldincludedir='/usr/include'
856docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
857infodir='${datarootdir}/info'
858htmldir='${docdir}'
859dvidir='${docdir}'
860pdfdir='${docdir}'
861psdir='${docdir}'
862libdir='${exec_prefix}/lib'
863localedir='${datarootdir}/locale'
864mandir='${datarootdir}/man'
865
866ac_prev=
867ac_dashdash=
868for ac_option
869do
870  # If the previous option needs an argument, assign it.
871  if test -n "$ac_prev"; then
872    eval $ac_prev=\$ac_option
873    ac_prev=
874    continue
875  fi
876
877  case $ac_option in
878  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
879  *=)   ac_optarg= ;;
880  *)    ac_optarg=yes ;;
881  esac
882
883  case $ac_dashdash$ac_option in
884  --)
885    ac_dashdash=yes ;;
886
887  -bindir | --bindir | --bindi | --bind | --bin | --bi)
888    ac_prev=bindir ;;
889  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
890    bindir=$ac_optarg ;;
891
892  -build | --build | --buil | --bui | --bu)
893    ac_prev=build_alias ;;
894  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
895    build_alias=$ac_optarg ;;
896
897  -cache-file | --cache-file | --cache-fil | --cache-fi \
898  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
899    ac_prev=cache_file ;;
900  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
901  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
902    cache_file=$ac_optarg ;;
903
904  --config-cache | -C)
905    cache_file=config.cache ;;
906
907  -datadir | --datadir | --datadi | --datad)
908    ac_prev=datadir ;;
909  -datadir=* | --datadir=* | --datadi=* | --datad=*)
910    datadir=$ac_optarg ;;
911
912  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
913  | --dataroo | --dataro | --datar)
914    ac_prev=datarootdir ;;
915  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
916  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
917    datarootdir=$ac_optarg ;;
918
919  -disable-* | --disable-*)
920    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
921    # Reject names that are not valid shell variable names.
922    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
923      as_fn_error $? "invalid feature name: \`$ac_useropt'"
924    ac_useropt_orig=$ac_useropt
925    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
926    case $ac_user_opts in
927      *"
928"enable_$ac_useropt"
929"*) ;;
930      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
931	 ac_unrecognized_sep=', ';;
932    esac
933    eval enable_$ac_useropt=no ;;
934
935  -docdir | --docdir | --docdi | --doc | --do)
936    ac_prev=docdir ;;
937  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
938    docdir=$ac_optarg ;;
939
940  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
941    ac_prev=dvidir ;;
942  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
943    dvidir=$ac_optarg ;;
944
945  -enable-* | --enable-*)
946    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
947    # Reject names that are not valid shell variable names.
948    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
949      as_fn_error $? "invalid feature name: \`$ac_useropt'"
950    ac_useropt_orig=$ac_useropt
951    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
952    case $ac_user_opts in
953      *"
954"enable_$ac_useropt"
955"*) ;;
956      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
957	 ac_unrecognized_sep=', ';;
958    esac
959    eval enable_$ac_useropt=\$ac_optarg ;;
960
961  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
962  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
963  | --exec | --exe | --ex)
964    ac_prev=exec_prefix ;;
965  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
966  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
967  | --exec=* | --exe=* | --ex=*)
968    exec_prefix=$ac_optarg ;;
969
970  -gas | --gas | --ga | --g)
971    # Obsolete; use --with-gas.
972    with_gas=yes ;;
973
974  -help | --help | --hel | --he | -h)
975    ac_init_help=long ;;
976  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
977    ac_init_help=recursive ;;
978  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
979    ac_init_help=short ;;
980
981  -host | --host | --hos | --ho)
982    ac_prev=host_alias ;;
983  -host=* | --host=* | --hos=* | --ho=*)
984    host_alias=$ac_optarg ;;
985
986  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
987    ac_prev=htmldir ;;
988  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
989  | --ht=*)
990    htmldir=$ac_optarg ;;
991
992  -includedir | --includedir | --includedi | --included | --include \
993  | --includ | --inclu | --incl | --inc)
994    ac_prev=includedir ;;
995  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
996  | --includ=* | --inclu=* | --incl=* | --inc=*)
997    includedir=$ac_optarg ;;
998
999  -infodir | --infodir | --infodi | --infod | --info | --inf)
1000    ac_prev=infodir ;;
1001  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1002    infodir=$ac_optarg ;;
1003
1004  -libdir | --libdir | --libdi | --libd)
1005    ac_prev=libdir ;;
1006  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1007    libdir=$ac_optarg ;;
1008
1009  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1010  | --libexe | --libex | --libe)
1011    ac_prev=libexecdir ;;
1012  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1013  | --libexe=* | --libex=* | --libe=*)
1014    libexecdir=$ac_optarg ;;
1015
1016  -localedir | --localedir | --localedi | --localed | --locale)
1017    ac_prev=localedir ;;
1018  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1019    localedir=$ac_optarg ;;
1020
1021  -localstatedir | --localstatedir | --localstatedi | --localstated \
1022  | --localstate | --localstat | --localsta | --localst | --locals)
1023    ac_prev=localstatedir ;;
1024  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1025  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1026    localstatedir=$ac_optarg ;;
1027
1028  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1029    ac_prev=mandir ;;
1030  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1031    mandir=$ac_optarg ;;
1032
1033  -nfp | --nfp | --nf)
1034    # Obsolete; use --without-fp.
1035    with_fp=no ;;
1036
1037  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1038  | --no-cr | --no-c | -n)
1039    no_create=yes ;;
1040
1041  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1042  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1043    no_recursion=yes ;;
1044
1045  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1046  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1047  | --oldin | --oldi | --old | --ol | --o)
1048    ac_prev=oldincludedir ;;
1049  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1050  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1051  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1052    oldincludedir=$ac_optarg ;;
1053
1054  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1055    ac_prev=prefix ;;
1056  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1057    prefix=$ac_optarg ;;
1058
1059  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1060  | --program-pre | --program-pr | --program-p)
1061    ac_prev=program_prefix ;;
1062  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1063  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1064    program_prefix=$ac_optarg ;;
1065
1066  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1067  | --program-suf | --program-su | --program-s)
1068    ac_prev=program_suffix ;;
1069  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1070  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1071    program_suffix=$ac_optarg ;;
1072
1073  -program-transform-name | --program-transform-name \
1074  | --program-transform-nam | --program-transform-na \
1075  | --program-transform-n | --program-transform- \
1076  | --program-transform | --program-transfor \
1077  | --program-transfo | --program-transf \
1078  | --program-trans | --program-tran \
1079  | --progr-tra | --program-tr | --program-t)
1080    ac_prev=program_transform_name ;;
1081  -program-transform-name=* | --program-transform-name=* \
1082  | --program-transform-nam=* | --program-transform-na=* \
1083  | --program-transform-n=* | --program-transform-=* \
1084  | --program-transform=* | --program-transfor=* \
1085  | --program-transfo=* | --program-transf=* \
1086  | --program-trans=* | --program-tran=* \
1087  | --progr-tra=* | --program-tr=* | --program-t=*)
1088    program_transform_name=$ac_optarg ;;
1089
1090  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1091    ac_prev=pdfdir ;;
1092  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1093    pdfdir=$ac_optarg ;;
1094
1095  -psdir | --psdir | --psdi | --psd | --ps)
1096    ac_prev=psdir ;;
1097  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1098    psdir=$ac_optarg ;;
1099
1100  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1101  | -silent | --silent | --silen | --sile | --sil)
1102    silent=yes ;;
1103
1104  -runstatedir | --runstatedir | --runstatedi | --runstated \
1105  | --runstate | --runstat | --runsta | --runst | --runs \
1106  | --run | --ru | --r)
1107    ac_prev=runstatedir ;;
1108  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1109  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1110  | --run=* | --ru=* | --r=*)
1111    runstatedir=$ac_optarg ;;
1112
1113  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1114    ac_prev=sbindir ;;
1115  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1116  | --sbi=* | --sb=*)
1117    sbindir=$ac_optarg ;;
1118
1119  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1120  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1121  | --sharedst | --shareds | --shared | --share | --shar \
1122  | --sha | --sh)
1123    ac_prev=sharedstatedir ;;
1124  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1125  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1126  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1127  | --sha=* | --sh=*)
1128    sharedstatedir=$ac_optarg ;;
1129
1130  -site | --site | --sit)
1131    ac_prev=site ;;
1132  -site=* | --site=* | --sit=*)
1133    site=$ac_optarg ;;
1134
1135  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1136    ac_prev=srcdir ;;
1137  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1138    srcdir=$ac_optarg ;;
1139
1140  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1141  | --syscon | --sysco | --sysc | --sys | --sy)
1142    ac_prev=sysconfdir ;;
1143  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1144  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1145    sysconfdir=$ac_optarg ;;
1146
1147  -target | --target | --targe | --targ | --tar | --ta | --t)
1148    ac_prev=target_alias ;;
1149  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1150    target_alias=$ac_optarg ;;
1151
1152  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1153    verbose=yes ;;
1154
1155  -version | --version | --versio | --versi | --vers | -V)
1156    ac_init_version=: ;;
1157
1158  -with-* | --with-*)
1159    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1160    # Reject names that are not valid shell variable names.
1161    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1162      as_fn_error $? "invalid package name: \`$ac_useropt'"
1163    ac_useropt_orig=$ac_useropt
1164    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1165    case $ac_user_opts in
1166      *"
1167"with_$ac_useropt"
1168"*) ;;
1169      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1170	 ac_unrecognized_sep=', ';;
1171    esac
1172    eval with_$ac_useropt=\$ac_optarg ;;
1173
1174  -without-* | --without-*)
1175    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1176    # Reject names that are not valid shell variable names.
1177    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1178      as_fn_error $? "invalid package name: \`$ac_useropt'"
1179    ac_useropt_orig=$ac_useropt
1180    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1181    case $ac_user_opts in
1182      *"
1183"with_$ac_useropt"
1184"*) ;;
1185      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1186	 ac_unrecognized_sep=', ';;
1187    esac
1188    eval with_$ac_useropt=no ;;
1189
1190  --x)
1191    # Obsolete; use --with-x.
1192    with_x=yes ;;
1193
1194  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1195  | --x-incl | --x-inc | --x-in | --x-i)
1196    ac_prev=x_includes ;;
1197  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1198  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1199    x_includes=$ac_optarg ;;
1200
1201  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1202  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1203    ac_prev=x_libraries ;;
1204  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1205  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1206    x_libraries=$ac_optarg ;;
1207
1208  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1209Try \`$0 --help' for more information"
1210    ;;
1211
1212  *=*)
1213    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1214    # Reject names that are not valid shell variable names.
1215    case $ac_envvar in #(
1216      '' | [0-9]* | *[!_$as_cr_alnum]* )
1217      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1218    esac
1219    eval $ac_envvar=\$ac_optarg
1220    export $ac_envvar ;;
1221
1222  *)
1223    # FIXME: should be removed in autoconf 3.0.
1224    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1225    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1226      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1227    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1228    ;;
1229
1230  esac
1231done
1232
1233if test -n "$ac_prev"; then
1234  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1235  as_fn_error $? "missing argument to $ac_option"
1236fi
1237
1238if test -n "$ac_unrecognized_opts"; then
1239  case $enable_option_checking in
1240    no) ;;
1241    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1242    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1243  esac
1244fi
1245
1246# Check all directory arguments for consistency.
1247for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1248		datadir sysconfdir sharedstatedir localstatedir includedir \
1249		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1250		libdir localedir mandir runstatedir
1251do
1252  eval ac_val=\$$ac_var
1253  # Remove trailing slashes.
1254  case $ac_val in
1255    */ )
1256      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1257      eval $ac_var=\$ac_val;;
1258  esac
1259  # Be sure to have absolute directory names.
1260  case $ac_val in
1261    [\\/$]* | ?:[\\/]* )  continue;;
1262    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1263  esac
1264  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1265done
1266
1267# There might be people who depend on the old broken behavior: `$host'
1268# used to hold the argument of --host etc.
1269# FIXME: To remove some day.
1270build=$build_alias
1271host=$host_alias
1272target=$target_alias
1273
1274# FIXME: To remove some day.
1275if test "x$host_alias" != x; then
1276  if test "x$build_alias" = x; then
1277    cross_compiling=maybe
1278  elif test "x$build_alias" != "x$host_alias"; then
1279    cross_compiling=yes
1280  fi
1281fi
1282
1283ac_tool_prefix=
1284test -n "$host_alias" && ac_tool_prefix=$host_alias-
1285
1286test "$silent" = yes && exec 6>/dev/null
1287
1288
1289ac_pwd=`pwd` && test -n "$ac_pwd" &&
1290ac_ls_di=`ls -di .` &&
1291ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1292  as_fn_error $? "working directory cannot be determined"
1293test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1294  as_fn_error $? "pwd does not report name of working directory"
1295
1296
1297# Find the source files, if location was not specified.
1298if test -z "$srcdir"; then
1299  ac_srcdir_defaulted=yes
1300  # Try the directory containing this script, then the parent directory.
1301  ac_confdir=`$as_dirname -- "$as_myself" ||
1302$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1303	 X"$as_myself" : 'X\(//\)[^/]' \| \
1304	 X"$as_myself" : 'X\(//\)$' \| \
1305	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1306printf "%s\n" X"$as_myself" |
1307    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1308	    s//\1/
1309	    q
1310	  }
1311	  /^X\(\/\/\)[^/].*/{
1312	    s//\1/
1313	    q
1314	  }
1315	  /^X\(\/\/\)$/{
1316	    s//\1/
1317	    q
1318	  }
1319	  /^X\(\/\).*/{
1320	    s//\1/
1321	    q
1322	  }
1323	  s/.*/./; q'`
1324  srcdir=$ac_confdir
1325  if test ! -r "$srcdir/$ac_unique_file"; then
1326    srcdir=..
1327  fi
1328else
1329  ac_srcdir_defaulted=no
1330fi
1331if test ! -r "$srcdir/$ac_unique_file"; then
1332  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1333  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1334fi
1335ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1336ac_abs_confdir=`(
1337	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1338	pwd)`
1339# When building in place, set srcdir=.
1340if test "$ac_abs_confdir" = "$ac_pwd"; then
1341  srcdir=.
1342fi
1343# Remove unnecessary trailing slashes from srcdir.
1344# Double slashes in file names in object file debugging info
1345# mess up M-x gdb in Emacs.
1346case $srcdir in
1347*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1348esac
1349for ac_var in $ac_precious_vars; do
1350  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1351  eval ac_env_${ac_var}_value=\$${ac_var}
1352  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1353  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1354done
1355
1356#
1357# Report the --help message.
1358#
1359if test "$ac_init_help" = "long"; then
1360  # Omit some internal or obsolete options to make the list less imposing.
1361  # This message is too long to be a string in the A/UX 3.1 sh.
1362  cat <<_ACEOF
1363\`configure' configures g15daemon 3.0 to adapt to many kinds of systems.
1364
1365Usage: $0 [OPTION]... [VAR=VALUE]...
1366
1367To assign environment variables (e.g., CC, CFLAGS...), specify them as
1368VAR=VALUE.  See below for descriptions of some of the useful variables.
1369
1370Defaults for the options are specified in brackets.
1371
1372Configuration:
1373  -h, --help              display this help and exit
1374      --help=short        display options specific to this package
1375      --help=recursive    display the short help of all the included packages
1376  -V, --version           display version information and exit
1377  -q, --quiet, --silent   do not print \`checking ...' messages
1378      --cache-file=FILE   cache test results in FILE [disabled]
1379  -C, --config-cache      alias for \`--cache-file=config.cache'
1380  -n, --no-create         do not create output files
1381      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1382
1383Installation directories:
1384  --prefix=PREFIX         install architecture-independent files in PREFIX
1385                          [$ac_default_prefix]
1386  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1387                          [PREFIX]
1388
1389By default, \`make install' will install all the files in
1390\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1391an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1392for instance \`--prefix=\$HOME'.
1393
1394For better control, use the options below.
1395
1396Fine tuning of the installation directories:
1397  --bindir=DIR            user executables [EPREFIX/bin]
1398  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1399  --libexecdir=DIR        program executables [EPREFIX/libexec]
1400  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1401  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1402  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1403  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1404  --libdir=DIR            object code libraries [EPREFIX/lib]
1405  --includedir=DIR        C header files [PREFIX/include]
1406  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1407  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1408  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1409  --infodir=DIR           info documentation [DATAROOTDIR/info]
1410  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1411  --mandir=DIR            man documentation [DATAROOTDIR/man]
1412  --docdir=DIR            documentation root [DATAROOTDIR/doc/g15daemon]
1413  --htmldir=DIR           html documentation [DOCDIR]
1414  --dvidir=DIR            dvi documentation [DOCDIR]
1415  --pdfdir=DIR            pdf documentation [DOCDIR]
1416  --psdir=DIR             ps documentation [DOCDIR]
1417_ACEOF
1418
1419  cat <<\_ACEOF
1420
1421Program names:
1422  --program-prefix=PREFIX            prepend PREFIX to installed program names
1423  --program-suffix=SUFFIX            append SUFFIX to installed program names
1424  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1425
1426System types:
1427  --build=BUILD     configure for building on BUILD [guessed]
1428  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1429  --target=TARGET   configure for building compilers for TARGET [HOST]
1430_ACEOF
1431fi
1432
1433if test -n "$ac_init_help"; then
1434  case $ac_init_help in
1435     short | recursive ) echo "Configuration of g15daemon 3.0:";;
1436   esac
1437  cat <<\_ACEOF
1438
1439Optional Features:
1440  --disable-option-checking  ignore unrecognized --enable/--with options
1441  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1442  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1443  --enable-silent-rules   less verbose build output (undo: "make V=1")
1444  --disable-silent-rules  verbose build output (undo: "make V=0")
1445  --enable-dependency-tracking
1446                          do not reject slow dependency extractors
1447  --disable-dependency-tracking
1448                          speeds up one-time build
1449  --enable-shared[=PKGS]  build shared libraries [default=yes]
1450  --enable-static[=PKGS]  build static libraries [default=yes]
1451  --enable-fast-install[=PKGS]
1452                          optimize for fast installation [default=yes]
1453  --disable-libtool-lock  avoid locking (might break parallel builds)
1454  --disable-uinput	do not build linux uinput plugin (default: autodetect)
1455
1456Optional Packages:
1457  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1458  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1459  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1460                          both]
1461  --with-aix-soname=aix|svr4|both
1462                          shared library versioning (aka "SONAME") variant to
1463                          provide on AIX, [default=aix].
1464  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1465  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1466                          compiler's sysroot if not specified).
1467
1468Some influential environment variables:
1469  CC          C compiler command
1470  CFLAGS      C compiler flags
1471  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1472              nonstandard directory <lib dir>
1473  LIBS        libraries to pass to the linker, e.g. -l<library>
1474  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1475              you have headers in a nonstandard directory <include dir>
1476  LT_SYS_LIBRARY_PATH
1477              User-defined run-time library search path.
1478  CPP         C preprocessor
1479
1480Use these variables to override the choices made by `configure' or to help
1481it to find libraries and programs with nonstandard names/locations.
1482
1483Report bugs to <menelkir@itroll.org>.
1484_ACEOF
1485ac_status=$?
1486fi
1487
1488if test "$ac_init_help" = "recursive"; then
1489  # If there are subdirs, report their specific --help.
1490  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1491    test -d "$ac_dir" ||
1492      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1493      continue
1494    ac_builddir=.
1495
1496case "$ac_dir" in
1497.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1498*)
1499  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1500  # A ".." for each directory in $ac_dir_suffix.
1501  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1502  case $ac_top_builddir_sub in
1503  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1504  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1505  esac ;;
1506esac
1507ac_abs_top_builddir=$ac_pwd
1508ac_abs_builddir=$ac_pwd$ac_dir_suffix
1509# for backward compatibility:
1510ac_top_builddir=$ac_top_build_prefix
1511
1512case $srcdir in
1513  .)  # We are building in place.
1514    ac_srcdir=.
1515    ac_top_srcdir=$ac_top_builddir_sub
1516    ac_abs_top_srcdir=$ac_pwd ;;
1517  [\\/]* | ?:[\\/]* )  # Absolute name.
1518    ac_srcdir=$srcdir$ac_dir_suffix;
1519    ac_top_srcdir=$srcdir
1520    ac_abs_top_srcdir=$srcdir ;;
1521  *) # Relative name.
1522    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1523    ac_top_srcdir=$ac_top_build_prefix$srcdir
1524    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1525esac
1526ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1527
1528    cd "$ac_dir" || { ac_status=$?; continue; }
1529    # Check for configure.gnu first; this name is used for a wrapper for
1530    # Metaconfig's "Configure" on case-insensitive file systems.
1531    if test -f "$ac_srcdir/configure.gnu"; then
1532      echo &&
1533      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1534    elif test -f "$ac_srcdir/configure"; then
1535      echo &&
1536      $SHELL "$ac_srcdir/configure" --help=recursive
1537    else
1538      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1539    fi || ac_status=$?
1540    cd "$ac_pwd" || { ac_status=$?; break; }
1541  done
1542fi
1543
1544test -n "$ac_init_help" && exit $ac_status
1545if $ac_init_version; then
1546  cat <<\_ACEOF
1547g15daemon configure 3.0
1548generated by GNU Autoconf 2.71
1549
1550Copyright (C) 2021 Free Software Foundation, Inc.
1551This configure script is free software; the Free Software Foundation
1552gives unlimited permission to copy, distribute and modify it.
1553_ACEOF
1554  exit
1555fi
1556
1557## ------------------------ ##
1558## Autoconf initialization. ##
1559## ------------------------ ##
1560
1561# ac_fn_c_try_compile LINENO
1562# --------------------------
1563# Try to compile conftest.$ac_ext, and return whether this succeeded.
1564ac_fn_c_try_compile ()
1565{
1566  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1567  rm -f conftest.$ac_objext conftest.beam
1568  if { { ac_try="$ac_compile"
1569case "(($ac_try" in
1570  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1571  *) ac_try_echo=$ac_try;;
1572esac
1573eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1574printf "%s\n" "$ac_try_echo"; } >&5
1575  (eval "$ac_compile") 2>conftest.err
1576  ac_status=$?
1577  if test -s conftest.err; then
1578    grep -v '^ *+' conftest.err >conftest.er1
1579    cat conftest.er1 >&5
1580    mv -f conftest.er1 conftest.err
1581  fi
1582  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1583  test $ac_status = 0; } && {
1584	 test -z "$ac_c_werror_flag" ||
1585	 test ! -s conftest.err
1586       } && test -s conftest.$ac_objext
1587then :
1588  ac_retval=0
1589else $as_nop
1590  printf "%s\n" "$as_me: failed program was:" >&5
1591sed 's/^/| /' conftest.$ac_ext >&5
1592
1593	ac_retval=1
1594fi
1595  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1596  as_fn_set_status $ac_retval
1597
1598} # ac_fn_c_try_compile
1599
1600# ac_fn_c_try_link LINENO
1601# -----------------------
1602# Try to link conftest.$ac_ext, and return whether this succeeded.
1603ac_fn_c_try_link ()
1604{
1605  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1607  if { { ac_try="$ac_link"
1608case "(($ac_try" in
1609  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1610  *) ac_try_echo=$ac_try;;
1611esac
1612eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1613printf "%s\n" "$ac_try_echo"; } >&5
1614  (eval "$ac_link") 2>conftest.err
1615  ac_status=$?
1616  if test -s conftest.err; then
1617    grep -v '^ *+' conftest.err >conftest.er1
1618    cat conftest.er1 >&5
1619    mv -f conftest.er1 conftest.err
1620  fi
1621  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1622  test $ac_status = 0; } && {
1623	 test -z "$ac_c_werror_flag" ||
1624	 test ! -s conftest.err
1625       } && test -s conftest$ac_exeext && {
1626	 test "$cross_compiling" = yes ||
1627	 test -x conftest$ac_exeext
1628       }
1629then :
1630  ac_retval=0
1631else $as_nop
1632  printf "%s\n" "$as_me: failed program was:" >&5
1633sed 's/^/| /' conftest.$ac_ext >&5
1634
1635	ac_retval=1
1636fi
1637  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1638  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1639  # interfere with the next link command; also delete a directory that is
1640  # left behind by Apple's compiler.  We do this before executing the actions.
1641  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1642  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1643  as_fn_set_status $ac_retval
1644
1645} # ac_fn_c_try_link
1646
1647# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1648# -------------------------------------------------------
1649# Tests whether HEADER exists and can be compiled using the include files in
1650# INCLUDES, setting the cache variable VAR accordingly.
1651ac_fn_c_check_header_compile ()
1652{
1653  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1655printf %s "checking for $2... " >&6; }
1656if eval test \${$3+y}
1657then :
1658  printf %s "(cached) " >&6
1659else $as_nop
1660  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1661/* end confdefs.h.  */
1662$4
1663#include <$2>
1664_ACEOF
1665if ac_fn_c_try_compile "$LINENO"
1666then :
1667  eval "$3=yes"
1668else $as_nop
1669  eval "$3=no"
1670fi
1671rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1672fi
1673eval ac_res=\$$3
1674	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1675printf "%s\n" "$ac_res" >&6; }
1676  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1677
1678} # ac_fn_c_check_header_compile
1679
1680# ac_fn_c_check_func LINENO FUNC VAR
1681# ----------------------------------
1682# Tests whether FUNC exists, setting the cache variable VAR accordingly
1683ac_fn_c_check_func ()
1684{
1685  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1687printf %s "checking for $2... " >&6; }
1688if eval test \${$3+y}
1689then :
1690  printf %s "(cached) " >&6
1691else $as_nop
1692  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1693/* end confdefs.h.  */
1694/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1695   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1696#define $2 innocuous_$2
1697
1698/* System header to define __stub macros and hopefully few prototypes,
1699   which can conflict with char $2 (); below.  */
1700
1701#include <limits.h>
1702#undef $2
1703
1704/* Override any GCC internal prototype to avoid an error.
1705   Use char because int might match the return type of a GCC
1706   builtin and then its argument prototype would still apply.  */
1707#ifdef __cplusplus
1708extern "C"
1709#endif
1710char $2 ();
1711/* The GNU C library defines this for functions which it implements
1712    to always fail with ENOSYS.  Some functions are actually named
1713    something starting with __ and the normal name is an alias.  */
1714#if defined __stub_$2 || defined __stub___$2
1715choke me
1716#endif
1717
1718int
1719main (void)
1720{
1721return $2 ();
1722  ;
1723  return 0;
1724}
1725_ACEOF
1726if ac_fn_c_try_link "$LINENO"
1727then :
1728  eval "$3=yes"
1729else $as_nop
1730  eval "$3=no"
1731fi
1732rm -f core conftest.err conftest.$ac_objext conftest.beam \
1733    conftest$ac_exeext conftest.$ac_ext
1734fi
1735eval ac_res=\$$3
1736	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1737printf "%s\n" "$ac_res" >&6; }
1738  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1739
1740} # ac_fn_c_check_func
1741
1742# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1743# -------------------------------------------
1744# Tests whether TYPE exists after having included INCLUDES, setting cache
1745# variable VAR accordingly.
1746ac_fn_c_check_type ()
1747{
1748  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1750printf %s "checking for $2... " >&6; }
1751if eval test \${$3+y}
1752then :
1753  printf %s "(cached) " >&6
1754else $as_nop
1755  eval "$3=no"
1756  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1757/* end confdefs.h.  */
1758$4
1759int
1760main (void)
1761{
1762if (sizeof ($2))
1763	 return 0;
1764  ;
1765  return 0;
1766}
1767_ACEOF
1768if ac_fn_c_try_compile "$LINENO"
1769then :
1770  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1771/* end confdefs.h.  */
1772$4
1773int
1774main (void)
1775{
1776if (sizeof (($2)))
1777	    return 0;
1778  ;
1779  return 0;
1780}
1781_ACEOF
1782if ac_fn_c_try_compile "$LINENO"
1783then :
1784
1785else $as_nop
1786  eval "$3=yes"
1787fi
1788rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1789fi
1790rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1791fi
1792eval ac_res=\$$3
1793	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1794printf "%s\n" "$ac_res" >&6; }
1795  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1796
1797} # ac_fn_c_check_type
1798
1799# ac_fn_c_try_cpp LINENO
1800# ----------------------
1801# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1802ac_fn_c_try_cpp ()
1803{
1804  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805  if { { ac_try="$ac_cpp conftest.$ac_ext"
1806case "(($ac_try" in
1807  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808  *) ac_try_echo=$ac_try;;
1809esac
1810eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811printf "%s\n" "$ac_try_echo"; } >&5
1812  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1813  ac_status=$?
1814  if test -s conftest.err; then
1815    grep -v '^ *+' conftest.err >conftest.er1
1816    cat conftest.er1 >&5
1817    mv -f conftest.er1 conftest.err
1818  fi
1819  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1820  test $ac_status = 0; } > conftest.i && {
1821	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1822	 test ! -s conftest.err
1823       }
1824then :
1825  ac_retval=0
1826else $as_nop
1827  printf "%s\n" "$as_me: failed program was:" >&5
1828sed 's/^/| /' conftest.$ac_ext >&5
1829
1830    ac_retval=1
1831fi
1832  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1833  as_fn_set_status $ac_retval
1834
1835} # ac_fn_c_try_cpp
1836
1837# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1838# ----------------------------------------------------
1839# Tries to find if the field MEMBER exists in type AGGR, after including
1840# INCLUDES, setting cache variable VAR accordingly.
1841ac_fn_c_check_member ()
1842{
1843  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1845printf %s "checking for $2.$3... " >&6; }
1846if eval test \${$4+y}
1847then :
1848  printf %s "(cached) " >&6
1849else $as_nop
1850  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1851/* end confdefs.h.  */
1852$5
1853int
1854main (void)
1855{
1856static $2 ac_aggr;
1857if (ac_aggr.$3)
1858return 0;
1859  ;
1860  return 0;
1861}
1862_ACEOF
1863if ac_fn_c_try_compile "$LINENO"
1864then :
1865  eval "$4=yes"
1866else $as_nop
1867  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1868/* end confdefs.h.  */
1869$5
1870int
1871main (void)
1872{
1873static $2 ac_aggr;
1874if (sizeof ac_aggr.$3)
1875return 0;
1876  ;
1877  return 0;
1878}
1879_ACEOF
1880if ac_fn_c_try_compile "$LINENO"
1881then :
1882  eval "$4=yes"
1883else $as_nop
1884  eval "$4=no"
1885fi
1886rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1887fi
1888rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1889fi
1890eval ac_res=\$$4
1891	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1892printf "%s\n" "$ac_res" >&6; }
1893  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1894
1895} # ac_fn_c_check_member
1896ac_configure_args_raw=
1897for ac_arg
1898do
1899  case $ac_arg in
1900  *\'*)
1901    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1902  esac
1903  as_fn_append ac_configure_args_raw " '$ac_arg'"
1904done
1905
1906case $ac_configure_args_raw in
1907  *$as_nl*)
1908    ac_safe_unquote= ;;
1909  *)
1910    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1911    ac_unsafe_a="$ac_unsafe_z#~"
1912    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1913    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1914esac
1915
1916cat >config.log <<_ACEOF
1917This file contains any messages produced by compilers while
1918running configure, to aid debugging if configure makes a mistake.
1919
1920It was created by g15daemon $as_me 3.0, which was
1921generated by GNU Autoconf 2.71.  Invocation command line was
1922
1923  $ $0$ac_configure_args_raw
1924
1925_ACEOF
1926exec 5>>config.log
1927{
1928cat <<_ASUNAME
1929## --------- ##
1930## Platform. ##
1931## --------- ##
1932
1933hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1934uname -m = `(uname -m) 2>/dev/null || echo unknown`
1935uname -r = `(uname -r) 2>/dev/null || echo unknown`
1936uname -s = `(uname -s) 2>/dev/null || echo unknown`
1937uname -v = `(uname -v) 2>/dev/null || echo unknown`
1938
1939/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1940/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1941
1942/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1943/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1944/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1945/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1946/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1947/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1948/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1949
1950_ASUNAME
1951
1952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1953for as_dir in $PATH
1954do
1955  IFS=$as_save_IFS
1956  case $as_dir in #(((
1957    '') as_dir=./ ;;
1958    */) ;;
1959    *) as_dir=$as_dir/ ;;
1960  esac
1961    printf "%s\n" "PATH: $as_dir"
1962  done
1963IFS=$as_save_IFS
1964
1965} >&5
1966
1967cat >&5 <<_ACEOF
1968
1969
1970## ----------- ##
1971## Core tests. ##
1972## ----------- ##
1973
1974_ACEOF
1975
1976
1977# Keep a trace of the command line.
1978# Strip out --no-create and --no-recursion so they do not pile up.
1979# Strip out --silent because we don't want to record it for future runs.
1980# Also quote any args containing shell meta-characters.
1981# Make two passes to allow for proper duplicate-argument suppression.
1982ac_configure_args=
1983ac_configure_args0=
1984ac_configure_args1=
1985ac_must_keep_next=false
1986for ac_pass in 1 2
1987do
1988  for ac_arg
1989  do
1990    case $ac_arg in
1991    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1992    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1993    | -silent | --silent | --silen | --sile | --sil)
1994      continue ;;
1995    *\'*)
1996      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1997    esac
1998    case $ac_pass in
1999    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2000    2)
2001      as_fn_append ac_configure_args1 " '$ac_arg'"
2002      if test $ac_must_keep_next = true; then
2003	ac_must_keep_next=false # Got value, back to normal.
2004      else
2005	case $ac_arg in
2006	  *=* | --config-cache | -C | -disable-* | --disable-* \
2007	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2008	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2009	  | -with-* | --with-* | -without-* | --without-* | --x)
2010	    case "$ac_configure_args0 " in
2011	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2012	    esac
2013	    ;;
2014	  -* ) ac_must_keep_next=true ;;
2015	esac
2016      fi
2017      as_fn_append ac_configure_args " '$ac_arg'"
2018      ;;
2019    esac
2020  done
2021done
2022{ ac_configure_args0=; unset ac_configure_args0;}
2023{ ac_configure_args1=; unset ac_configure_args1;}
2024
2025# When interrupted or exit'd, cleanup temporary files, and complete
2026# config.log.  We remove comments because anyway the quotes in there
2027# would cause problems or look ugly.
2028# WARNING: Use '\'' to represent an apostrophe within the trap.
2029# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2030trap 'exit_status=$?
2031  # Sanitize IFS.
2032  IFS=" ""	$as_nl"
2033  # Save into config.log some information that might help in debugging.
2034  {
2035    echo
2036
2037    printf "%s\n" "## ---------------- ##
2038## Cache variables. ##
2039## ---------------- ##"
2040    echo
2041    # The following way of writing the cache mishandles newlines in values,
2042(
2043  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2044    eval ac_val=\$$ac_var
2045    case $ac_val in #(
2046    *${as_nl}*)
2047      case $ac_var in #(
2048      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2049printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2050      esac
2051      case $ac_var in #(
2052      _ | IFS | as_nl) ;; #(
2053      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2054      *) { eval $ac_var=; unset $ac_var;} ;;
2055      esac ;;
2056    esac
2057  done
2058  (set) 2>&1 |
2059    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2060    *${as_nl}ac_space=\ *)
2061      sed -n \
2062	"s/'\''/'\''\\\\'\'''\''/g;
2063	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2064      ;; #(
2065    *)
2066      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2067      ;;
2068    esac |
2069    sort
2070)
2071    echo
2072
2073    printf "%s\n" "## ----------------- ##
2074## Output variables. ##
2075## ----------------- ##"
2076    echo
2077    for ac_var in $ac_subst_vars
2078    do
2079      eval ac_val=\$$ac_var
2080      case $ac_val in
2081      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2082      esac
2083      printf "%s\n" "$ac_var='\''$ac_val'\''"
2084    done | sort
2085    echo
2086
2087    if test -n "$ac_subst_files"; then
2088      printf "%s\n" "## ------------------- ##
2089## File substitutions. ##
2090## ------------------- ##"
2091      echo
2092      for ac_var in $ac_subst_files
2093      do
2094	eval ac_val=\$$ac_var
2095	case $ac_val in
2096	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2097	esac
2098	printf "%s\n" "$ac_var='\''$ac_val'\''"
2099      done | sort
2100      echo
2101    fi
2102
2103    if test -s confdefs.h; then
2104      printf "%s\n" "## ----------- ##
2105## confdefs.h. ##
2106## ----------- ##"
2107      echo
2108      cat confdefs.h
2109      echo
2110    fi
2111    test "$ac_signal" != 0 &&
2112      printf "%s\n" "$as_me: caught signal $ac_signal"
2113    printf "%s\n" "$as_me: exit $exit_status"
2114  } >&5
2115  rm -f core *.core core.conftest.* &&
2116    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2117    exit $exit_status
2118' 0
2119for ac_signal in 1 2 13 15; do
2120  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2121done
2122ac_signal=0
2123
2124# confdefs.h avoids OS command line length limits that DEFS can exceed.
2125rm -f -r conftest* confdefs.h
2126
2127printf "%s\n" "/* confdefs.h */" > confdefs.h
2128
2129# Predefined preprocessor variables.
2130
2131printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2132
2133printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2134
2135printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2136
2137printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2138
2139printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2140
2141printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2142
2143
2144# Let the site file select an alternate cache file if it wants to.
2145# Prefer an explicitly selected file to automatically selected ones.
2146if test -n "$CONFIG_SITE"; then
2147  ac_site_files="$CONFIG_SITE"
2148elif test "x$prefix" != xNONE; then
2149  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2150else
2151  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2152fi
2153
2154for ac_site_file in $ac_site_files
2155do
2156  case $ac_site_file in #(
2157  */*) :
2158     ;; #(
2159  *) :
2160    ac_site_file=./$ac_site_file ;;
2161esac
2162  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2163    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2164printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2165    sed 's/^/| /' "$ac_site_file" >&5
2166    . "$ac_site_file" \
2167      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2168printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2169as_fn_error $? "failed to load site script $ac_site_file
2170See \`config.log' for more details" "$LINENO" 5; }
2171  fi
2172done
2173
2174if test -r "$cache_file"; then
2175  # Some versions of bash will fail to source /dev/null (special files
2176  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2177  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2178    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2179printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2180    case $cache_file in
2181      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2182      *)                      . "./$cache_file";;
2183    esac
2184  fi
2185else
2186  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2187printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2188  >$cache_file
2189fi
2190
2191# Test code for whether the C compiler supports C89 (global declarations)
2192ac_c_conftest_c89_globals='
2193/* Does the compiler advertise C89 conformance?
2194   Do not test the value of __STDC__, because some compilers set it to 0
2195   while being otherwise adequately conformant. */
2196#if !defined __STDC__
2197# error "Compiler does not advertise C89 conformance"
2198#endif
2199
2200#include <stddef.h>
2201#include <stdarg.h>
2202struct stat;
2203/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2204struct buf { int x; };
2205struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2206static char *e (p, i)
2207     char **p;
2208     int i;
2209{
2210  return p[i];
2211}
2212static char *f (char * (*g) (char **, int), char **p, ...)
2213{
2214  char *s;
2215  va_list v;
2216  va_start (v,p);
2217  s = g (p, va_arg (v,int));
2218  va_end (v);
2219  return s;
2220}
2221
2222/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2223   function prototypes and stuff, but not \xHH hex character constants.
2224   These do not provoke an error unfortunately, instead are silently treated
2225   as an "x".  The following induces an error, until -std is added to get
2226   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2227   array size at least.  It is necessary to write \x00 == 0 to get something
2228   that is true only with -std.  */
2229int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2230
2231/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2232   inside strings and character constants.  */
2233#define FOO(x) '\''x'\''
2234int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2235
2236int test (int i, double x);
2237struct s1 {int (*f) (int a);};
2238struct s2 {int (*f) (double a);};
2239int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2240               int, int);'
2241
2242# Test code for whether the C compiler supports C89 (body of main).
2243ac_c_conftest_c89_main='
2244ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2245'
2246
2247# Test code for whether the C compiler supports C99 (global declarations)
2248ac_c_conftest_c99_globals='
2249// Does the compiler advertise C99 conformance?
2250#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2251# error "Compiler does not advertise C99 conformance"
2252#endif
2253
2254#include <stdbool.h>
2255extern int puts (const char *);
2256extern int printf (const char *, ...);
2257extern int dprintf (int, const char *, ...);
2258extern void *malloc (size_t);
2259
2260// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2261// dprintf is used instead of fprintf to avoid needing to declare
2262// FILE and stderr.
2263#define debug(...) dprintf (2, __VA_ARGS__)
2264#define showlist(...) puts (#__VA_ARGS__)
2265#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2266static void
2267test_varargs_macros (void)
2268{
2269  int x = 1234;
2270  int y = 5678;
2271  debug ("Flag");
2272  debug ("X = %d\n", x);
2273  showlist (The first, second, and third items.);
2274  report (x>y, "x is %d but y is %d", x, y);
2275}
2276
2277// Check long long types.
2278#define BIG64 18446744073709551615ull
2279#define BIG32 4294967295ul
2280#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2281#if !BIG_OK
2282  #error "your preprocessor is broken"
2283#endif
2284#if BIG_OK
2285#else
2286  #error "your preprocessor is broken"
2287#endif
2288static long long int bignum = -9223372036854775807LL;
2289static unsigned long long int ubignum = BIG64;
2290
2291struct incomplete_array
2292{
2293  int datasize;
2294  double data[];
2295};
2296
2297struct named_init {
2298  int number;
2299  const wchar_t *name;
2300  double average;
2301};
2302
2303typedef const char *ccp;
2304
2305static inline int
2306test_restrict (ccp restrict text)
2307{
2308  // See if C++-style comments work.
2309  // Iterate through items via the restricted pointer.
2310  // Also check for declarations in for loops.
2311  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2312    continue;
2313  return 0;
2314}
2315
2316// Check varargs and va_copy.
2317static bool
2318test_varargs (const char *format, ...)
2319{
2320  va_list args;
2321  va_start (args, format);
2322  va_list args_copy;
2323  va_copy (args_copy, args);
2324
2325  const char *str = "";
2326  int number = 0;
2327  float fnumber = 0;
2328
2329  while (*format)
2330    {
2331      switch (*format++)
2332	{
2333	case '\''s'\'': // string
2334	  str = va_arg (args_copy, const char *);
2335	  break;
2336	case '\''d'\'': // int
2337	  number = va_arg (args_copy, int);
2338	  break;
2339	case '\''f'\'': // float
2340	  fnumber = va_arg (args_copy, double);
2341	  break;
2342	default:
2343	  break;
2344	}
2345    }
2346  va_end (args_copy);
2347  va_end (args);
2348
2349  return *str && number && fnumber;
2350}
2351'
2352
2353# Test code for whether the C compiler supports C99 (body of main).
2354ac_c_conftest_c99_main='
2355  // Check bool.
2356  _Bool success = false;
2357  success |= (argc != 0);
2358
2359  // Check restrict.
2360  if (test_restrict ("String literal") == 0)
2361    success = true;
2362  char *restrict newvar = "Another string";
2363
2364  // Check varargs.
2365  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2366  test_varargs_macros ();
2367
2368  // Check flexible array members.
2369  struct incomplete_array *ia =
2370    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2371  ia->datasize = 10;
2372  for (int i = 0; i < ia->datasize; ++i)
2373    ia->data[i] = i * 1.234;
2374
2375  // Check named initializers.
2376  struct named_init ni = {
2377    .number = 34,
2378    .name = L"Test wide string",
2379    .average = 543.34343,
2380  };
2381
2382  ni.number = 58;
2383
2384  int dynamic_array[ni.number];
2385  dynamic_array[0] = argv[0][0];
2386  dynamic_array[ni.number - 1] = 543;
2387
2388  // work around unused variable warnings
2389  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2390	 || dynamic_array[ni.number - 1] != 543);
2391'
2392
2393# Test code for whether the C compiler supports C11 (global declarations)
2394ac_c_conftest_c11_globals='
2395// Does the compiler advertise C11 conformance?
2396#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2397# error "Compiler does not advertise C11 conformance"
2398#endif
2399
2400// Check _Alignas.
2401char _Alignas (double) aligned_as_double;
2402char _Alignas (0) no_special_alignment;
2403extern char aligned_as_int;
2404char _Alignas (0) _Alignas (int) aligned_as_int;
2405
2406// Check _Alignof.
2407enum
2408{
2409  int_alignment = _Alignof (int),
2410  int_array_alignment = _Alignof (int[100]),
2411  char_alignment = _Alignof (char)
2412};
2413_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2414
2415// Check _Noreturn.
2416int _Noreturn does_not_return (void) { for (;;) continue; }
2417
2418// Check _Static_assert.
2419struct test_static_assert
2420{
2421  int x;
2422  _Static_assert (sizeof (int) <= sizeof (long int),
2423                  "_Static_assert does not work in struct");
2424  long int y;
2425};
2426
2427// Check UTF-8 literals.
2428#define u8 syntax error!
2429char const utf8_literal[] = u8"happens to be ASCII" "another string";
2430
2431// Check duplicate typedefs.
2432typedef long *long_ptr;
2433typedef long int *long_ptr;
2434typedef long_ptr long_ptr;
2435
2436// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2437struct anonymous
2438{
2439  union {
2440    struct { int i; int j; };
2441    struct { int k; long int l; } w;
2442  };
2443  int m;
2444} v1;
2445'
2446
2447# Test code for whether the C compiler supports C11 (body of main).
2448ac_c_conftest_c11_main='
2449  _Static_assert ((offsetof (struct anonymous, i)
2450		   == offsetof (struct anonymous, w.k)),
2451		  "Anonymous union alignment botch");
2452  v1.i = 2;
2453  v1.w.k = 5;
2454  ok |= v1.i != 5;
2455'
2456
2457# Test code for whether the C compiler supports C11 (complete).
2458ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2459${ac_c_conftest_c99_globals}
2460${ac_c_conftest_c11_globals}
2461
2462int
2463main (int argc, char **argv)
2464{
2465  int ok = 0;
2466  ${ac_c_conftest_c89_main}
2467  ${ac_c_conftest_c99_main}
2468  ${ac_c_conftest_c11_main}
2469  return ok;
2470}
2471"
2472
2473# Test code for whether the C compiler supports C99 (complete).
2474ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2475${ac_c_conftest_c99_globals}
2476
2477int
2478main (int argc, char **argv)
2479{
2480  int ok = 0;
2481  ${ac_c_conftest_c89_main}
2482  ${ac_c_conftest_c99_main}
2483  return ok;
2484}
2485"
2486
2487# Test code for whether the C compiler supports C89 (complete).
2488ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2489
2490int
2491main (int argc, char **argv)
2492{
2493  int ok = 0;
2494  ${ac_c_conftest_c89_main}
2495  return ok;
2496}
2497"
2498
2499as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2500as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2501as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2502as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2503as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2504as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2505as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2506as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2507as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2508as_fn_append ac_header_c_list " sys/select.h sys_select_h HAVE_SYS_SELECT_H"
2509as_fn_append ac_header_c_list " sys/socket.h sys_socket_h HAVE_SYS_SOCKET_H"
2510
2511# Auxiliary files required by this configure script.
2512ac_aux_files="ltmain.sh compile missing install-sh config.guess config.sub"
2513
2514# Locations in which to look for auxiliary files.
2515ac_aux_dir_candidates="${srcdir}/config"
2516
2517# Search for a directory containing all of the required auxiliary files,
2518# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2519# If we don't find one directory that contains all the files we need,
2520# we report the set of missing files from the *first* directory in
2521# $ac_aux_dir_candidates and give up.
2522ac_missing_aux_files=""
2523ac_first_candidate=:
2524printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526as_found=false
2527for as_dir in $ac_aux_dir_candidates
2528do
2529  IFS=$as_save_IFS
2530  case $as_dir in #(((
2531    '') as_dir=./ ;;
2532    */) ;;
2533    *) as_dir=$as_dir/ ;;
2534  esac
2535  as_found=:
2536
2537  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2538  ac_aux_dir_found=yes
2539  ac_install_sh=
2540  for ac_aux in $ac_aux_files
2541  do
2542    # As a special case, if "install-sh" is required, that requirement
2543    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2544    # and $ac_install_sh is set appropriately for whichever one is found.
2545    if test x"$ac_aux" = x"install-sh"
2546    then
2547      if test -f "${as_dir}install-sh"; then
2548        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2549        ac_install_sh="${as_dir}install-sh -c"
2550      elif test -f "${as_dir}install.sh"; then
2551        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2552        ac_install_sh="${as_dir}install.sh -c"
2553      elif test -f "${as_dir}shtool"; then
2554        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2555        ac_install_sh="${as_dir}shtool install -c"
2556      else
2557        ac_aux_dir_found=no
2558        if $ac_first_candidate; then
2559          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2560        else
2561          break
2562        fi
2563      fi
2564    else
2565      if test -f "${as_dir}${ac_aux}"; then
2566        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2567      else
2568        ac_aux_dir_found=no
2569        if $ac_first_candidate; then
2570          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2571        else
2572          break
2573        fi
2574      fi
2575    fi
2576  done
2577  if test "$ac_aux_dir_found" = yes; then
2578    ac_aux_dir="$as_dir"
2579    break
2580  fi
2581  ac_first_candidate=false
2582
2583  as_found=false
2584done
2585IFS=$as_save_IFS
2586if $as_found
2587then :
2588
2589else $as_nop
2590  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2591fi
2592
2593
2594# These three variables are undocumented and unsupported,
2595# and are intended to be withdrawn in a future Autoconf release.
2596# They can cause serious problems if a builder's source tree is in a directory
2597# whose full name contains unusual characters.
2598if test -f "${ac_aux_dir}config.guess"; then
2599  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2600fi
2601if test -f "${ac_aux_dir}config.sub"; then
2602  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2603fi
2604if test -f "$ac_aux_dir/configure"; then
2605  ac_configure="$SHELL ${ac_aux_dir}configure"
2606fi
2607
2608# Check that the precious variables saved in the cache have kept the same
2609# value.
2610ac_cache_corrupted=false
2611for ac_var in $ac_precious_vars; do
2612  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2613  eval ac_new_set=\$ac_env_${ac_var}_set
2614  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2615  eval ac_new_val=\$ac_env_${ac_var}_value
2616  case $ac_old_set,$ac_new_set in
2617    set,)
2618      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2619printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2620      ac_cache_corrupted=: ;;
2621    ,set)
2622      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2623printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2624      ac_cache_corrupted=: ;;
2625    ,);;
2626    *)
2627      if test "x$ac_old_val" != "x$ac_new_val"; then
2628	# differences in whitespace do not lead to failure.
2629	ac_old_val_w=`echo x $ac_old_val`
2630	ac_new_val_w=`echo x $ac_new_val`
2631	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2632	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2633printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2634	  ac_cache_corrupted=:
2635	else
2636	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2637printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2638	  eval $ac_var=\$ac_old_val
2639	fi
2640	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2641printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2642	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2643printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2644      fi;;
2645  esac
2646  # Pass precious variables to config.status.
2647  if test "$ac_new_set" = set; then
2648    case $ac_new_val in
2649    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2650    *) ac_arg=$ac_var=$ac_new_val ;;
2651    esac
2652    case " $ac_configure_args " in
2653      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2654      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2655    esac
2656  fi
2657done
2658if $ac_cache_corrupted; then
2659  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2660printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2661  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2662printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2663  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2664	    and start over" "$LINENO" 5
2665fi
2666## -------------------- ##
2667## Main body of script. ##
2668## -------------------- ##
2669
2670ac_ext=c
2671ac_cpp='$CPP $CPPFLAGS'
2672ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2673ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2674ac_compiler_gnu=$ac_cv_c_compiler_gnu
2675
2676
2677
2678
2679
2680
2681
2682  # Make sure we can run config.sub.
2683$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
2684  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
2685
2686{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2687printf %s "checking build system type... " >&6; }
2688if test ${ac_cv_build+y}
2689then :
2690  printf %s "(cached) " >&6
2691else $as_nop
2692  ac_build_alias=$build_alias
2693test "x$ac_build_alias" = x &&
2694  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
2695test "x$ac_build_alias" = x &&
2696  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2697ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
2698  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
2699
2700fi
2701{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2702printf "%s\n" "$ac_cv_build" >&6; }
2703case $ac_cv_build in
2704*-*-*) ;;
2705*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2706esac
2707build=$ac_cv_build
2708ac_save_IFS=$IFS; IFS='-'
2709set x $ac_cv_build
2710shift
2711build_cpu=$1
2712build_vendor=$2
2713shift; shift
2714# Remember, the first character of IFS is used to create $*,
2715# except with old shells:
2716build_os=$*
2717IFS=$ac_save_IFS
2718case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2719
2720
2721{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2722printf %s "checking host system type... " >&6; }
2723if test ${ac_cv_host+y}
2724then :
2725  printf %s "(cached) " >&6
2726else $as_nop
2727  if test "x$host_alias" = x; then
2728  ac_cv_host=$ac_cv_build
2729else
2730  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
2731    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
2732fi
2733
2734fi
2735{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2736printf "%s\n" "$ac_cv_host" >&6; }
2737case $ac_cv_host in
2738*-*-*) ;;
2739*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2740esac
2741host=$ac_cv_host
2742ac_save_IFS=$IFS; IFS='-'
2743set x $ac_cv_host
2744shift
2745host_cpu=$1
2746host_vendor=$2
2747shift; shift
2748# Remember, the first character of IFS is used to create $*,
2749# except with old shells:
2750host_os=$*
2751IFS=$ac_save_IFS
2752case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2753
2754
2755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2756printf %s "checking target system type... " >&6; }
2757if test ${ac_cv_target+y}
2758then :
2759  printf %s "(cached) " >&6
2760else $as_nop
2761  if test "x$target_alias" = x; then
2762  ac_cv_target=$ac_cv_host
2763else
2764  ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` ||
2765    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5
2766fi
2767
2768fi
2769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2770printf "%s\n" "$ac_cv_target" >&6; }
2771case $ac_cv_target in
2772*-*-*) ;;
2773*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2774esac
2775target=$ac_cv_target
2776ac_save_IFS=$IFS; IFS='-'
2777set x $ac_cv_target
2778shift
2779target_cpu=$1
2780target_vendor=$2
2781shift; shift
2782# Remember, the first character of IFS is used to create $*,
2783# except with old shells:
2784target_os=$*
2785IFS=$ac_save_IFS
2786case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2787
2788
2789# The aliases save the names the user supplied, while $host etc.
2790# will get canonicalized.
2791test -n "$target_alias" &&
2792  test "$program_prefix$program_suffix$program_transform_name" = \
2793    NONENONEs,x,x, &&
2794  program_prefix=${target_alias}-
2795
2796am__api_version='1.16'
2797
2798
2799  # Find a good install program.  We prefer a C program (faster),
2800# so one script is as good as another.  But avoid the broken or
2801# incompatible versions:
2802# SysV /etc/install, /usr/sbin/install
2803# SunOS /usr/etc/install
2804# IRIX /sbin/install
2805# AIX /bin/install
2806# AmigaOS /C/install, which installs bootblocks on floppy discs
2807# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2808# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2809# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2810# OS/2's system install, which has a completely different semantic
2811# ./install, which can be erroneously created by make from ./install.sh.
2812# Reject install programs that cannot install multiple files.
2813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2814printf %s "checking for a BSD-compatible install... " >&6; }
2815if test -z "$INSTALL"; then
2816if test ${ac_cv_path_install+y}
2817then :
2818  printf %s "(cached) " >&6
2819else $as_nop
2820  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2821for as_dir in $PATH
2822do
2823  IFS=$as_save_IFS
2824  case $as_dir in #(((
2825    '') as_dir=./ ;;
2826    */) ;;
2827    *) as_dir=$as_dir/ ;;
2828  esac
2829    # Account for fact that we put trailing slashes in our PATH walk.
2830case $as_dir in #((
2831  ./ | /[cC]/* | \
2832  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2833  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2834  /usr/ucb/* ) ;;
2835  *)
2836    # OSF1 and SCO ODT 3.0 have their own names for install.
2837    # Don't use installbsd from OSF since it installs stuff as root
2838    # by default.
2839    for ac_prog in ginstall scoinst install; do
2840      for ac_exec_ext in '' $ac_executable_extensions; do
2841	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2842	  if test $ac_prog = install &&
2843	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2844	    # AIX install.  It has an incompatible calling convention.
2845	    :
2846	  elif test $ac_prog = install &&
2847	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2848	    # program-specific install script used by HP pwplus--don't use.
2849	    :
2850	  else
2851	    rm -rf conftest.one conftest.two conftest.dir
2852	    echo one > conftest.one
2853	    echo two > conftest.two
2854	    mkdir conftest.dir
2855	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2856	      test -s conftest.one && test -s conftest.two &&
2857	      test -s conftest.dir/conftest.one &&
2858	      test -s conftest.dir/conftest.two
2859	    then
2860	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2861	      break 3
2862	    fi
2863	  fi
2864	fi
2865      done
2866    done
2867    ;;
2868esac
2869
2870  done
2871IFS=$as_save_IFS
2872
2873rm -rf conftest.one conftest.two conftest.dir
2874
2875fi
2876  if test ${ac_cv_path_install+y}; then
2877    INSTALL=$ac_cv_path_install
2878  else
2879    # As a last resort, use the slow shell script.  Don't cache a
2880    # value for INSTALL within a source directory, because that will
2881    # break other packages using the cache if that directory is
2882    # removed, or if the value is a relative name.
2883    INSTALL=$ac_install_sh
2884  fi
2885fi
2886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2887printf "%s\n" "$INSTALL" >&6; }
2888
2889# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2890# It thinks the first close brace ends the variable substitution.
2891test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2892
2893test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2894
2895test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2896
2897{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2898printf %s "checking whether build environment is sane... " >&6; }
2899# Reject unsafe characters in $srcdir or the absolute working directory
2900# name.  Accept space and tab only in the latter.
2901am_lf='
2902'
2903case `pwd` in
2904  *[\\\"\#\$\&\'\`$am_lf]*)
2905    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2906esac
2907case $srcdir in
2908  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2909    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2910esac
2911
2912# Do 'set' in a subshell so we don't clobber the current shell's
2913# arguments.  Must try -L first in case configure is actually a
2914# symlink; some systems play weird games with the mod time of symlinks
2915# (eg FreeBSD returns the mod time of the symlink's containing
2916# directory).
2917if (
2918   am_has_slept=no
2919   for am_try in 1 2; do
2920     echo "timestamp, slept: $am_has_slept" > conftest.file
2921     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2922     if test "$*" = "X"; then
2923	# -L didn't work.
2924	set X `ls -t "$srcdir/configure" conftest.file`
2925     fi
2926     if test "$*" != "X $srcdir/configure conftest.file" \
2927	&& test "$*" != "X conftest.file $srcdir/configure"; then
2928
2929	# If neither matched, then we have a broken ls.  This can happen
2930	# if, for instance, CONFIG_SHELL is bash and it inherits a
2931	# broken ls alias from the environment.  This has actually
2932	# happened.  Such a system could not be considered "sane".
2933	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2934  alias in your environment" "$LINENO" 5
2935     fi
2936     if test "$2" = conftest.file || test $am_try -eq 2; then
2937       break
2938     fi
2939     # Just in case.
2940     sleep 1
2941     am_has_slept=yes
2942   done
2943   test "$2" = conftest.file
2944   )
2945then
2946   # Ok.
2947   :
2948else
2949   as_fn_error $? "newly created file is older than distributed files!
2950Check your system clock" "$LINENO" 5
2951fi
2952{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2953printf "%s\n" "yes" >&6; }
2954# If we didn't sleep, we still need to ensure time stamps of config.status and
2955# generated files are strictly newer.
2956am_sleep_pid=
2957if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2958  ( sleep 1 ) &
2959  am_sleep_pid=$!
2960fi
2961
2962rm -f conftest.file
2963
2964test "$program_prefix" != NONE &&
2965  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2966# Use a double $ so make ignores it.
2967test "$program_suffix" != NONE &&
2968  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2969# Double any \ or $.
2970# By default was `s,x,x', remove it if useless.
2971ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2972program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2973
2974
2975# Expand $ac_aux_dir to an absolute path.
2976am_aux_dir=`cd "$ac_aux_dir" && pwd`
2977
2978
2979  if test x"${MISSING+set}" != xset; then
2980  MISSING="\${SHELL} '$am_aux_dir/missing'"
2981fi
2982
2983if test x"${install_sh+set}" != xset; then
2984  case $am_aux_dir in
2985  *\ * | *\	*)
2986    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2987  *)
2988    install_sh="\${SHELL} $am_aux_dir/install-sh"
2989  esac
2990fi
2991
2992# Installed binaries are usually stripped using 'strip' when the user
2993# run "make install-strip".  However 'strip' might not be the right
2994# tool to use in cross-compilation environments, therefore Automake
2995# will honor the 'STRIP' environment variable to overrule this program.
2996if test "$cross_compiling" != no; then
2997  if test -n "$ac_tool_prefix"; then
2998  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2999set dummy ${ac_tool_prefix}strip; ac_word=$2
3000{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3001printf %s "checking for $ac_word... " >&6; }
3002if test ${ac_cv_prog_STRIP+y}
3003then :
3004  printf %s "(cached) " >&6
3005else $as_nop
3006  if test -n "$STRIP"; then
3007  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3008else
3009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3010for as_dir in $PATH
3011do
3012  IFS=$as_save_IFS
3013  case $as_dir in #(((
3014    '') as_dir=./ ;;
3015    */) ;;
3016    *) as_dir=$as_dir/ ;;
3017  esac
3018    for ac_exec_ext in '' $ac_executable_extensions; do
3019  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3020    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3021    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3022    break 2
3023  fi
3024done
3025  done
3026IFS=$as_save_IFS
3027
3028fi
3029fi
3030STRIP=$ac_cv_prog_STRIP
3031if test -n "$STRIP"; then
3032  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3033printf "%s\n" "$STRIP" >&6; }
3034else
3035  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3036printf "%s\n" "no" >&6; }
3037fi
3038
3039
3040fi
3041if test -z "$ac_cv_prog_STRIP"; then
3042  ac_ct_STRIP=$STRIP
3043  # Extract the first word of "strip", so it can be a program name with args.
3044set dummy strip; ac_word=$2
3045{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3046printf %s "checking for $ac_word... " >&6; }
3047if test ${ac_cv_prog_ac_ct_STRIP+y}
3048then :
3049  printf %s "(cached) " >&6
3050else $as_nop
3051  if test -n "$ac_ct_STRIP"; then
3052  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3053else
3054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3055for as_dir in $PATH
3056do
3057  IFS=$as_save_IFS
3058  case $as_dir in #(((
3059    '') as_dir=./ ;;
3060    */) ;;
3061    *) as_dir=$as_dir/ ;;
3062  esac
3063    for ac_exec_ext in '' $ac_executable_extensions; do
3064  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3065    ac_cv_prog_ac_ct_STRIP="strip"
3066    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3067    break 2
3068  fi
3069done
3070  done
3071IFS=$as_save_IFS
3072
3073fi
3074fi
3075ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3076if test -n "$ac_ct_STRIP"; then
3077  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3078printf "%s\n" "$ac_ct_STRIP" >&6; }
3079else
3080  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3081printf "%s\n" "no" >&6; }
3082fi
3083
3084  if test "x$ac_ct_STRIP" = x; then
3085    STRIP=":"
3086  else
3087    case $cross_compiling:$ac_tool_warned in
3088yes:)
3089{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3090printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3091ac_tool_warned=yes ;;
3092esac
3093    STRIP=$ac_ct_STRIP
3094  fi
3095else
3096  STRIP="$ac_cv_prog_STRIP"
3097fi
3098
3099fi
3100INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3101
3102
3103  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3104printf %s "checking for a race-free mkdir -p... " >&6; }
3105if test -z "$MKDIR_P"; then
3106  if test ${ac_cv_path_mkdir+y}
3107then :
3108  printf %s "(cached) " >&6
3109else $as_nop
3110  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3111for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3112do
3113  IFS=$as_save_IFS
3114  case $as_dir in #(((
3115    '') as_dir=./ ;;
3116    */) ;;
3117    *) as_dir=$as_dir/ ;;
3118  esac
3119    for ac_prog in mkdir gmkdir; do
3120	 for ac_exec_ext in '' $ac_executable_extensions; do
3121	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3122	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3123	     'mkdir ('*'coreutils) '* | \
3124	     'BusyBox '* | \
3125	     'mkdir (fileutils) '4.1*)
3126	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3127	       break 3;;
3128	   esac
3129	 done
3130       done
3131  done
3132IFS=$as_save_IFS
3133
3134fi
3135
3136  test -d ./--version && rmdir ./--version
3137  if test ${ac_cv_path_mkdir+y}; then
3138    MKDIR_P="$ac_cv_path_mkdir -p"
3139  else
3140    # As a last resort, use the slow shell script.  Don't cache a
3141    # value for MKDIR_P within a source directory, because that will
3142    # break other packages using the cache if that directory is
3143    # removed, or if the value is a relative name.
3144    MKDIR_P="$ac_install_sh -d"
3145  fi
3146fi
3147{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3148printf "%s\n" "$MKDIR_P" >&6; }
3149
3150for ac_prog in gawk mawk nawk awk
3151do
3152  # Extract the first word of "$ac_prog", so it can be a program name with args.
3153set dummy $ac_prog; ac_word=$2
3154{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3155printf %s "checking for $ac_word... " >&6; }
3156if test ${ac_cv_prog_AWK+y}
3157then :
3158  printf %s "(cached) " >&6
3159else $as_nop
3160  if test -n "$AWK"; then
3161  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3162else
3163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3164for as_dir in $PATH
3165do
3166  IFS=$as_save_IFS
3167  case $as_dir in #(((
3168    '') as_dir=./ ;;
3169    */) ;;
3170    *) as_dir=$as_dir/ ;;
3171  esac
3172    for ac_exec_ext in '' $ac_executable_extensions; do
3173  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3174    ac_cv_prog_AWK="$ac_prog"
3175    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3176    break 2
3177  fi
3178done
3179  done
3180IFS=$as_save_IFS
3181
3182fi
3183fi
3184AWK=$ac_cv_prog_AWK
3185if test -n "$AWK"; then
3186  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3187printf "%s\n" "$AWK" >&6; }
3188else
3189  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3190printf "%s\n" "no" >&6; }
3191fi
3192
3193
3194  test -n "$AWK" && break
3195done
3196
3197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3198printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3199set x ${MAKE-make}
3200ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3201if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3202then :
3203  printf %s "(cached) " >&6
3204else $as_nop
3205  cat >conftest.make <<\_ACEOF
3206SHELL = /bin/sh
3207all:
3208	@echo '@@@%%%=$(MAKE)=@@@%%%'
3209_ACEOF
3210# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3211case `${MAKE-make} -f conftest.make 2>/dev/null` in
3212  *@@@%%%=?*=@@@%%%*)
3213    eval ac_cv_prog_make_${ac_make}_set=yes;;
3214  *)
3215    eval ac_cv_prog_make_${ac_make}_set=no;;
3216esac
3217rm -f conftest.make
3218fi
3219if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3220  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3221printf "%s\n" "yes" >&6; }
3222  SET_MAKE=
3223else
3224  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3225printf "%s\n" "no" >&6; }
3226  SET_MAKE="MAKE=${MAKE-make}"
3227fi
3228
3229rm -rf .tst 2>/dev/null
3230mkdir .tst 2>/dev/null
3231if test -d .tst; then
3232  am__leading_dot=.
3233else
3234  am__leading_dot=_
3235fi
3236rmdir .tst 2>/dev/null
3237
3238# Check whether --enable-silent-rules was given.
3239if test ${enable_silent_rules+y}
3240then :
3241  enableval=$enable_silent_rules;
3242fi
3243
3244case $enable_silent_rules in # (((
3245  yes) AM_DEFAULT_VERBOSITY=0;;
3246   no) AM_DEFAULT_VERBOSITY=1;;
3247    *) AM_DEFAULT_VERBOSITY=1;;
3248esac
3249am_make=${MAKE-make}
3250{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3251printf %s "checking whether $am_make supports nested variables... " >&6; }
3252if test ${am_cv_make_support_nested_variables+y}
3253then :
3254  printf %s "(cached) " >&6
3255else $as_nop
3256  if printf "%s\n" 'TRUE=$(BAR$(V))
3257BAR0=false
3258BAR1=true
3259V=1
3260am__doit:
3261	@$(TRUE)
3262.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3263  am_cv_make_support_nested_variables=yes
3264else
3265  am_cv_make_support_nested_variables=no
3266fi
3267fi
3268{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3269printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3270if test $am_cv_make_support_nested_variables = yes; then
3271    AM_V='$(V)'
3272  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3273else
3274  AM_V=$AM_DEFAULT_VERBOSITY
3275  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3276fi
3277AM_BACKSLASH='\'
3278
3279if test "`cd $srcdir && pwd`" != "`pwd`"; then
3280  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3281  # is not polluted with repeated "-I."
3282  am__isrc=' -I$(srcdir)'
3283  # test to see if srcdir already configured
3284  if test -f $srcdir/config.status; then
3285    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3286  fi
3287fi
3288
3289# test whether we have cygpath
3290if test -z "$CYGPATH_W"; then
3291  if (cygpath --version) >/dev/null 2>/dev/null; then
3292    CYGPATH_W='cygpath -w'
3293  else
3294    CYGPATH_W=echo
3295  fi
3296fi
3297
3298
3299# Define the identity of the package.
3300 PACKAGE='g15daemon'
3301 VERSION='3.0'
3302
3303
3304printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3305
3306
3307printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3308
3309# Some tools Automake needs.
3310
3311ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3312
3313
3314AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3315
3316
3317AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3318
3319
3320AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3321
3322
3323MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3324
3325# For better backward compatibility.  To be removed once Automake 1.9.x
3326# dies out for good.  For more background, see:
3327# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3328# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3329mkdir_p='$(MKDIR_P)'
3330
3331# We need awk for the "check" target (and possibly the TAP driver).  The
3332# system "awk" is bad on some platforms.
3333# Always define AMTAR for backward compatibility.  Yes, it's still used
3334# in the wild :-(  We should find a proper way to deprecate it ...
3335AMTAR='$${TAR-tar}'
3336
3337
3338# We'll loop over all known methods to create a tar archive until one works.
3339_am_tools='gnutar  pax cpio none'
3340
3341am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3342
3343
3344
3345
3346
3347
3348# POSIX will say in a future version that running "rm -f" with no argument
3349# is OK; and we want to be able to make that assumption in our Makefile
3350# recipes.  So use an aggressive probe to check that the usage we want is
3351# actually supported "in the wild" to an acceptable degree.
3352# See automake bug#10828.
3353# To make any issue more visible, cause the running configure to be aborted
3354# by default if the 'rm' program in use doesn't match our expectations; the
3355# user can still override this though.
3356if rm -f && rm -fr && rm -rf; then : OK; else
3357  cat >&2 <<'END'
3358Oops!
3359
3360Your 'rm' program seems unable to run without file operands specified
3361on the command line, even when the '-f' option is present.  This is contrary
3362to the behaviour of most rm programs out there, and not conforming with
3363the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3364
3365Please tell bug-automake@gnu.org about your system, including the value
3366of your $PATH and any error possibly output before this message.  This
3367can help us improve future automake versions.
3368
3369END
3370  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3371    echo 'Configuration will proceed anyway, since you have set the' >&2
3372    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3373    echo >&2
3374  else
3375    cat >&2 <<'END'
3376Aborting the configuration process, to ensure you take notice of the issue.
3377
3378You can download and install GNU coreutils to get an 'rm' implementation
3379that behaves properly: <https://www.gnu.org/software/coreutils/>.
3380
3381If you want to complete the configuration process using your problematic
3382'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3383to "yes", and re-run configure.
3384
3385END
3386    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3387  fi
3388fi
3389
3390ac_config_headers="$ac_config_headers config.h"
3391
3392
3393enable_dlopen=yes
3394
3395
3396
3397
3398# Checks for programs.
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408ac_ext=c
3409ac_cpp='$CPP $CPPFLAGS'
3410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3412ac_compiler_gnu=$ac_cv_c_compiler_gnu
3413if test -n "$ac_tool_prefix"; then
3414  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3415set dummy ${ac_tool_prefix}gcc; ac_word=$2
3416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3417printf %s "checking for $ac_word... " >&6; }
3418if test ${ac_cv_prog_CC+y}
3419then :
3420  printf %s "(cached) " >&6
3421else $as_nop
3422  if test -n "$CC"; then
3423  ac_cv_prog_CC="$CC" # Let the user override the test.
3424else
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    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3437    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3438    break 2
3439  fi
3440done
3441  done
3442IFS=$as_save_IFS
3443
3444fi
3445fi
3446CC=$ac_cv_prog_CC
3447if test -n "$CC"; then
3448  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3449printf "%s\n" "$CC" >&6; }
3450else
3451  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3452printf "%s\n" "no" >&6; }
3453fi
3454
3455
3456fi
3457if test -z "$ac_cv_prog_CC"; then
3458  ac_ct_CC=$CC
3459  # Extract the first word of "gcc", so it can be a program name with args.
3460set dummy gcc; ac_word=$2
3461{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3462printf %s "checking for $ac_word... " >&6; }
3463if test ${ac_cv_prog_ac_ct_CC+y}
3464then :
3465  printf %s "(cached) " >&6
3466else $as_nop
3467  if test -n "$ac_ct_CC"; then
3468  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3469else
3470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3471for as_dir in $PATH
3472do
3473  IFS=$as_save_IFS
3474  case $as_dir in #(((
3475    '') as_dir=./ ;;
3476    */) ;;
3477    *) as_dir=$as_dir/ ;;
3478  esac
3479    for ac_exec_ext in '' $ac_executable_extensions; do
3480  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3481    ac_cv_prog_ac_ct_CC="gcc"
3482    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3483    break 2
3484  fi
3485done
3486  done
3487IFS=$as_save_IFS
3488
3489fi
3490fi
3491ac_ct_CC=$ac_cv_prog_ac_ct_CC
3492if test -n "$ac_ct_CC"; then
3493  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3494printf "%s\n" "$ac_ct_CC" >&6; }
3495else
3496  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3497printf "%s\n" "no" >&6; }
3498fi
3499
3500  if test "x$ac_ct_CC" = x; then
3501    CC=""
3502  else
3503    case $cross_compiling:$ac_tool_warned in
3504yes:)
3505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3506printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3507ac_tool_warned=yes ;;
3508esac
3509    CC=$ac_ct_CC
3510  fi
3511else
3512  CC="$ac_cv_prog_CC"
3513fi
3514
3515if test -z "$CC"; then
3516          if test -n "$ac_tool_prefix"; then
3517    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3518set dummy ${ac_tool_prefix}cc; ac_word=$2
3519{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3520printf %s "checking for $ac_word... " >&6; }
3521if test ${ac_cv_prog_CC+y}
3522then :
3523  printf %s "(cached) " >&6
3524else $as_nop
3525  if test -n "$CC"; then
3526  ac_cv_prog_CC="$CC" # Let the user override the test.
3527else
3528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3529for as_dir in $PATH
3530do
3531  IFS=$as_save_IFS
3532  case $as_dir in #(((
3533    '') as_dir=./ ;;
3534    */) ;;
3535    *) as_dir=$as_dir/ ;;
3536  esac
3537    for ac_exec_ext in '' $ac_executable_extensions; do
3538  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3539    ac_cv_prog_CC="${ac_tool_prefix}cc"
3540    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3541    break 2
3542  fi
3543done
3544  done
3545IFS=$as_save_IFS
3546
3547fi
3548fi
3549CC=$ac_cv_prog_CC
3550if test -n "$CC"; then
3551  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3552printf "%s\n" "$CC" >&6; }
3553else
3554  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3555printf "%s\n" "no" >&6; }
3556fi
3557
3558
3559  fi
3560fi
3561if test -z "$CC"; then
3562  # Extract the first word of "cc", so it can be a program name with args.
3563set dummy cc; ac_word=$2
3564{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3565printf %s "checking for $ac_word... " >&6; }
3566if test ${ac_cv_prog_CC+y}
3567then :
3568  printf %s "(cached) " >&6
3569else $as_nop
3570  if test -n "$CC"; then
3571  ac_cv_prog_CC="$CC" # Let the user override the test.
3572else
3573  ac_prog_rejected=no
3574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3575for as_dir in $PATH
3576do
3577  IFS=$as_save_IFS
3578  case $as_dir in #(((
3579    '') as_dir=./ ;;
3580    */) ;;
3581    *) as_dir=$as_dir/ ;;
3582  esac
3583    for ac_exec_ext in '' $ac_executable_extensions; do
3584  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3585    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3586       ac_prog_rejected=yes
3587       continue
3588     fi
3589    ac_cv_prog_CC="cc"
3590    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3591    break 2
3592  fi
3593done
3594  done
3595IFS=$as_save_IFS
3596
3597if test $ac_prog_rejected = yes; then
3598  # We found a bogon in the path, so make sure we never use it.
3599  set dummy $ac_cv_prog_CC
3600  shift
3601  if test $# != 0; then
3602    # We chose a different compiler from the bogus one.
3603    # However, it has the same basename, so the bogon will be chosen
3604    # first if we set CC to just the basename; use the full file name.
3605    shift
3606    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3607  fi
3608fi
3609fi
3610fi
3611CC=$ac_cv_prog_CC
3612if test -n "$CC"; then
3613  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3614printf "%s\n" "$CC" >&6; }
3615else
3616  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3617printf "%s\n" "no" >&6; }
3618fi
3619
3620
3621fi
3622if test -z "$CC"; then
3623  if test -n "$ac_tool_prefix"; then
3624  for ac_prog in cl.exe
3625  do
3626    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3627set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3628{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3629printf %s "checking for $ac_word... " >&6; }
3630if test ${ac_cv_prog_CC+y}
3631then :
3632  printf %s "(cached) " >&6
3633else $as_nop
3634  if test -n "$CC"; then
3635  ac_cv_prog_CC="$CC" # Let the user override the test.
3636else
3637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3638for as_dir in $PATH
3639do
3640  IFS=$as_save_IFS
3641  case $as_dir in #(((
3642    '') as_dir=./ ;;
3643    */) ;;
3644    *) as_dir=$as_dir/ ;;
3645  esac
3646    for ac_exec_ext in '' $ac_executable_extensions; do
3647  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3648    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3649    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3650    break 2
3651  fi
3652done
3653  done
3654IFS=$as_save_IFS
3655
3656fi
3657fi
3658CC=$ac_cv_prog_CC
3659if test -n "$CC"; then
3660  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3661printf "%s\n" "$CC" >&6; }
3662else
3663  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3664printf "%s\n" "no" >&6; }
3665fi
3666
3667
3668    test -n "$CC" && break
3669  done
3670fi
3671if test -z "$CC"; then
3672  ac_ct_CC=$CC
3673  for ac_prog in cl.exe
3674do
3675  # Extract the first word of "$ac_prog", so it can be a program name with args.
3676set dummy $ac_prog; ac_word=$2
3677{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3678printf %s "checking for $ac_word... " >&6; }
3679if test ${ac_cv_prog_ac_ct_CC+y}
3680then :
3681  printf %s "(cached) " >&6
3682else $as_nop
3683  if test -n "$ac_ct_CC"; then
3684  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3685else
3686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3687for as_dir in $PATH
3688do
3689  IFS=$as_save_IFS
3690  case $as_dir in #(((
3691    '') as_dir=./ ;;
3692    */) ;;
3693    *) as_dir=$as_dir/ ;;
3694  esac
3695    for ac_exec_ext in '' $ac_executable_extensions; do
3696  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3697    ac_cv_prog_ac_ct_CC="$ac_prog"
3698    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3699    break 2
3700  fi
3701done
3702  done
3703IFS=$as_save_IFS
3704
3705fi
3706fi
3707ac_ct_CC=$ac_cv_prog_ac_ct_CC
3708if test -n "$ac_ct_CC"; then
3709  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3710printf "%s\n" "$ac_ct_CC" >&6; }
3711else
3712  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3713printf "%s\n" "no" >&6; }
3714fi
3715
3716
3717  test -n "$ac_ct_CC" && break
3718done
3719
3720  if test "x$ac_ct_CC" = x; then
3721    CC=""
3722  else
3723    case $cross_compiling:$ac_tool_warned in
3724yes:)
3725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3726printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3727ac_tool_warned=yes ;;
3728esac
3729    CC=$ac_ct_CC
3730  fi
3731fi
3732
3733fi
3734if test -z "$CC"; then
3735  if test -n "$ac_tool_prefix"; then
3736  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3737set dummy ${ac_tool_prefix}clang; ac_word=$2
3738{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3739printf %s "checking for $ac_word... " >&6; }
3740if test ${ac_cv_prog_CC+y}
3741then :
3742  printf %s "(cached) " >&6
3743else $as_nop
3744  if test -n "$CC"; then
3745  ac_cv_prog_CC="$CC" # Let the user override the test.
3746else
3747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3748for as_dir in $PATH
3749do
3750  IFS=$as_save_IFS
3751  case $as_dir in #(((
3752    '') as_dir=./ ;;
3753    */) ;;
3754    *) as_dir=$as_dir/ ;;
3755  esac
3756    for ac_exec_ext in '' $ac_executable_extensions; do
3757  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3758    ac_cv_prog_CC="${ac_tool_prefix}clang"
3759    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3760    break 2
3761  fi
3762done
3763  done
3764IFS=$as_save_IFS
3765
3766fi
3767fi
3768CC=$ac_cv_prog_CC
3769if test -n "$CC"; then
3770  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3771printf "%s\n" "$CC" >&6; }
3772else
3773  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3774printf "%s\n" "no" >&6; }
3775fi
3776
3777
3778fi
3779if test -z "$ac_cv_prog_CC"; then
3780  ac_ct_CC=$CC
3781  # Extract the first word of "clang", so it can be a program name with args.
3782set dummy clang; ac_word=$2
3783{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3784printf %s "checking for $ac_word... " >&6; }
3785if test ${ac_cv_prog_ac_ct_CC+y}
3786then :
3787  printf %s "(cached) " >&6
3788else $as_nop
3789  if test -n "$ac_ct_CC"; then
3790  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3791else
3792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3793for as_dir in $PATH
3794do
3795  IFS=$as_save_IFS
3796  case $as_dir in #(((
3797    '') as_dir=./ ;;
3798    */) ;;
3799    *) as_dir=$as_dir/ ;;
3800  esac
3801    for ac_exec_ext in '' $ac_executable_extensions; do
3802  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3803    ac_cv_prog_ac_ct_CC="clang"
3804    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3805    break 2
3806  fi
3807done
3808  done
3809IFS=$as_save_IFS
3810
3811fi
3812fi
3813ac_ct_CC=$ac_cv_prog_ac_ct_CC
3814if test -n "$ac_ct_CC"; then
3815  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3816printf "%s\n" "$ac_ct_CC" >&6; }
3817else
3818  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3819printf "%s\n" "no" >&6; }
3820fi
3821
3822  if test "x$ac_ct_CC" = x; then
3823    CC=""
3824  else
3825    case $cross_compiling:$ac_tool_warned in
3826yes:)
3827{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3828printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3829ac_tool_warned=yes ;;
3830esac
3831    CC=$ac_ct_CC
3832  fi
3833else
3834  CC="$ac_cv_prog_CC"
3835fi
3836
3837fi
3838
3839
3840test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3841printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3842as_fn_error $? "no acceptable C compiler found in \$PATH
3843See \`config.log' for more details" "$LINENO" 5; }
3844
3845# Provide some information about the compiler.
3846printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3847set X $ac_compile
3848ac_compiler=$2
3849for ac_option in --version -v -V -qversion -version; do
3850  { { ac_try="$ac_compiler $ac_option >&5"
3851case "(($ac_try" in
3852  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3853  *) ac_try_echo=$ac_try;;
3854esac
3855eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3856printf "%s\n" "$ac_try_echo"; } >&5
3857  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3858  ac_status=$?
3859  if test -s conftest.err; then
3860    sed '10a\
3861... rest of stderr output deleted ...
3862         10q' conftest.err >conftest.er1
3863    cat conftest.er1 >&5
3864  fi
3865  rm -f conftest.er1 conftest.err
3866  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3867  test $ac_status = 0; }
3868done
3869
3870cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3871/* end confdefs.h.  */
3872
3873int
3874main (void)
3875{
3876
3877  ;
3878  return 0;
3879}
3880_ACEOF
3881ac_clean_files_save=$ac_clean_files
3882ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3883# Try to create an executable without -o first, disregard a.out.
3884# It will help us diagnose broken compilers, and finding out an intuition
3885# of exeext.
3886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3887printf %s "checking whether the C compiler works... " >&6; }
3888ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3889
3890# The possible output files:
3891ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3892
3893ac_rmfiles=
3894for ac_file in $ac_files
3895do
3896  case $ac_file in
3897    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3898    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3899  esac
3900done
3901rm -f $ac_rmfiles
3902
3903if { { ac_try="$ac_link_default"
3904case "(($ac_try" in
3905  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3906  *) ac_try_echo=$ac_try;;
3907esac
3908eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3909printf "%s\n" "$ac_try_echo"; } >&5
3910  (eval "$ac_link_default") 2>&5
3911  ac_status=$?
3912  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3913  test $ac_status = 0; }
3914then :
3915  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3916# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3917# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3918# so that the user can short-circuit this test for compilers unknown to
3919# Autoconf.
3920for ac_file in $ac_files ''
3921do
3922  test -f "$ac_file" || continue
3923  case $ac_file in
3924    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3925	;;
3926    [ab].out )
3927	# We found the default executable, but exeext='' is most
3928	# certainly right.
3929	break;;
3930    *.* )
3931	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3932	then :; else
3933	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3934	fi
3935	# We set ac_cv_exeext here because the later test for it is not
3936	# safe: cross compilers may not add the suffix if given an `-o'
3937	# argument, so we may need to know it at that point already.
3938	# Even if this section looks crufty: it has the advantage of
3939	# actually working.
3940	break;;
3941    * )
3942	break;;
3943  esac
3944done
3945test "$ac_cv_exeext" = no && ac_cv_exeext=
3946
3947else $as_nop
3948  ac_file=''
3949fi
3950if test -z "$ac_file"
3951then :
3952  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3953printf "%s\n" "no" >&6; }
3954printf "%s\n" "$as_me: failed program was:" >&5
3955sed 's/^/| /' conftest.$ac_ext >&5
3956
3957{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3958printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3959as_fn_error 77 "C compiler cannot create executables
3960See \`config.log' for more details" "$LINENO" 5; }
3961else $as_nop
3962  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3963printf "%s\n" "yes" >&6; }
3964fi
3965{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3966printf %s "checking for C compiler default output file name... " >&6; }
3967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3968printf "%s\n" "$ac_file" >&6; }
3969ac_exeext=$ac_cv_exeext
3970
3971rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3972ac_clean_files=$ac_clean_files_save
3973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3974printf %s "checking for suffix of executables... " >&6; }
3975if { { ac_try="$ac_link"
3976case "(($ac_try" in
3977  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3978  *) ac_try_echo=$ac_try;;
3979esac
3980eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3981printf "%s\n" "$ac_try_echo"; } >&5
3982  (eval "$ac_link") 2>&5
3983  ac_status=$?
3984  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3985  test $ac_status = 0; }
3986then :
3987  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3988# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3989# work properly (i.e., refer to `conftest.exe'), while it won't with
3990# `rm'.
3991for ac_file in conftest.exe conftest conftest.*; do
3992  test -f "$ac_file" || continue
3993  case $ac_file in
3994    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3995    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3996	  break;;
3997    * ) break;;
3998  esac
3999done
4000else $as_nop
4001  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4002printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4003as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4004See \`config.log' for more details" "$LINENO" 5; }
4005fi
4006rm -f conftest conftest$ac_cv_exeext
4007{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4008printf "%s\n" "$ac_cv_exeext" >&6; }
4009
4010rm -f conftest.$ac_ext
4011EXEEXT=$ac_cv_exeext
4012ac_exeext=$EXEEXT
4013cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4014/* end confdefs.h.  */
4015#include <stdio.h>
4016int
4017main (void)
4018{
4019FILE *f = fopen ("conftest.out", "w");
4020 return ferror (f) || fclose (f) != 0;
4021
4022  ;
4023  return 0;
4024}
4025_ACEOF
4026ac_clean_files="$ac_clean_files conftest.out"
4027# Check that the compiler produces executables we can run.  If not, either
4028# the compiler is broken, or we cross compile.
4029{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4030printf %s "checking whether we are cross compiling... " >&6; }
4031if test "$cross_compiling" != yes; then
4032  { { ac_try="$ac_link"
4033case "(($ac_try" in
4034  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4035  *) ac_try_echo=$ac_try;;
4036esac
4037eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4038printf "%s\n" "$ac_try_echo"; } >&5
4039  (eval "$ac_link") 2>&5
4040  ac_status=$?
4041  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4042  test $ac_status = 0; }
4043  if { ac_try='./conftest$ac_cv_exeext'
4044  { { case "(($ac_try" in
4045  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4046  *) ac_try_echo=$ac_try;;
4047esac
4048eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4049printf "%s\n" "$ac_try_echo"; } >&5
4050  (eval "$ac_try") 2>&5
4051  ac_status=$?
4052  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4053  test $ac_status = 0; }; }; then
4054    cross_compiling=no
4055  else
4056    if test "$cross_compiling" = maybe; then
4057	cross_compiling=yes
4058    else
4059	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4060printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4061as_fn_error 77 "cannot run C compiled programs.
4062If you meant to cross compile, use \`--host'.
4063See \`config.log' for more details" "$LINENO" 5; }
4064    fi
4065  fi
4066fi
4067{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4068printf "%s\n" "$cross_compiling" >&6; }
4069
4070rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4071ac_clean_files=$ac_clean_files_save
4072{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4073printf %s "checking for suffix of object files... " >&6; }
4074if test ${ac_cv_objext+y}
4075then :
4076  printf %s "(cached) " >&6
4077else $as_nop
4078  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4079/* end confdefs.h.  */
4080
4081int
4082main (void)
4083{
4084
4085  ;
4086  return 0;
4087}
4088_ACEOF
4089rm -f conftest.o conftest.obj
4090if { { ac_try="$ac_compile"
4091case "(($ac_try" in
4092  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4093  *) ac_try_echo=$ac_try;;
4094esac
4095eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4096printf "%s\n" "$ac_try_echo"; } >&5
4097  (eval "$ac_compile") 2>&5
4098  ac_status=$?
4099  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4100  test $ac_status = 0; }
4101then :
4102  for ac_file in conftest.o conftest.obj conftest.*; do
4103  test -f "$ac_file" || continue;
4104  case $ac_file in
4105    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4106    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4107       break;;
4108  esac
4109done
4110else $as_nop
4111  printf "%s\n" "$as_me: failed program was:" >&5
4112sed 's/^/| /' conftest.$ac_ext >&5
4113
4114{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4115printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4116as_fn_error $? "cannot compute suffix of object files: cannot compile
4117See \`config.log' for more details" "$LINENO" 5; }
4118fi
4119rm -f conftest.$ac_cv_objext conftest.$ac_ext
4120fi
4121{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4122printf "%s\n" "$ac_cv_objext" >&6; }
4123OBJEXT=$ac_cv_objext
4124ac_objext=$OBJEXT
4125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4126printf %s "checking whether the compiler supports GNU C... " >&6; }
4127if test ${ac_cv_c_compiler_gnu+y}
4128then :
4129  printf %s "(cached) " >&6
4130else $as_nop
4131  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4132/* end confdefs.h.  */
4133
4134int
4135main (void)
4136{
4137#ifndef __GNUC__
4138       choke me
4139#endif
4140
4141  ;
4142  return 0;
4143}
4144_ACEOF
4145if ac_fn_c_try_compile "$LINENO"
4146then :
4147  ac_compiler_gnu=yes
4148else $as_nop
4149  ac_compiler_gnu=no
4150fi
4151rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4152ac_cv_c_compiler_gnu=$ac_compiler_gnu
4153
4154fi
4155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4156printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4157ac_compiler_gnu=$ac_cv_c_compiler_gnu
4158
4159if test $ac_compiler_gnu = yes; then
4160  GCC=yes
4161else
4162  GCC=
4163fi
4164ac_test_CFLAGS=${CFLAGS+y}
4165ac_save_CFLAGS=$CFLAGS
4166{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4167printf %s "checking whether $CC accepts -g... " >&6; }
4168if test ${ac_cv_prog_cc_g+y}
4169then :
4170  printf %s "(cached) " >&6
4171else $as_nop
4172  ac_save_c_werror_flag=$ac_c_werror_flag
4173   ac_c_werror_flag=yes
4174   ac_cv_prog_cc_g=no
4175   CFLAGS="-g"
4176   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4177/* end confdefs.h.  */
4178
4179int
4180main (void)
4181{
4182
4183  ;
4184  return 0;
4185}
4186_ACEOF
4187if ac_fn_c_try_compile "$LINENO"
4188then :
4189  ac_cv_prog_cc_g=yes
4190else $as_nop
4191  CFLAGS=""
4192      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4193/* end confdefs.h.  */
4194
4195int
4196main (void)
4197{
4198
4199  ;
4200  return 0;
4201}
4202_ACEOF
4203if ac_fn_c_try_compile "$LINENO"
4204then :
4205
4206else $as_nop
4207  ac_c_werror_flag=$ac_save_c_werror_flag
4208	 CFLAGS="-g"
4209	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4210/* end confdefs.h.  */
4211
4212int
4213main (void)
4214{
4215
4216  ;
4217  return 0;
4218}
4219_ACEOF
4220if ac_fn_c_try_compile "$LINENO"
4221then :
4222  ac_cv_prog_cc_g=yes
4223fi
4224rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4225fi
4226rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4227fi
4228rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4229   ac_c_werror_flag=$ac_save_c_werror_flag
4230fi
4231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4232printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4233if test $ac_test_CFLAGS; then
4234  CFLAGS=$ac_save_CFLAGS
4235elif test $ac_cv_prog_cc_g = yes; then
4236  if test "$GCC" = yes; then
4237    CFLAGS="-g -O2"
4238  else
4239    CFLAGS="-g"
4240  fi
4241else
4242  if test "$GCC" = yes; then
4243    CFLAGS="-O2"
4244  else
4245    CFLAGS=
4246  fi
4247fi
4248ac_prog_cc_stdc=no
4249if test x$ac_prog_cc_stdc = xno
4250then :
4251  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4252printf %s "checking for $CC option to enable C11 features... " >&6; }
4253if test ${ac_cv_prog_cc_c11+y}
4254then :
4255  printf %s "(cached) " >&6
4256else $as_nop
4257  ac_cv_prog_cc_c11=no
4258ac_save_CC=$CC
4259cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4260/* end confdefs.h.  */
4261$ac_c_conftest_c11_program
4262_ACEOF
4263for ac_arg in '' -std=gnu11
4264do
4265  CC="$ac_save_CC $ac_arg"
4266  if ac_fn_c_try_compile "$LINENO"
4267then :
4268  ac_cv_prog_cc_c11=$ac_arg
4269fi
4270rm -f core conftest.err conftest.$ac_objext conftest.beam
4271  test "x$ac_cv_prog_cc_c11" != "xno" && break
4272done
4273rm -f conftest.$ac_ext
4274CC=$ac_save_CC
4275fi
4276
4277if test "x$ac_cv_prog_cc_c11" = xno
4278then :
4279  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4280printf "%s\n" "unsupported" >&6; }
4281else $as_nop
4282  if test "x$ac_cv_prog_cc_c11" = x
4283then :
4284  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4285printf "%s\n" "none needed" >&6; }
4286else $as_nop
4287  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4288printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4289     CC="$CC $ac_cv_prog_cc_c11"
4290fi
4291  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4292  ac_prog_cc_stdc=c11
4293fi
4294fi
4295if test x$ac_prog_cc_stdc = xno
4296then :
4297  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4298printf %s "checking for $CC option to enable C99 features... " >&6; }
4299if test ${ac_cv_prog_cc_c99+y}
4300then :
4301  printf %s "(cached) " >&6
4302else $as_nop
4303  ac_cv_prog_cc_c99=no
4304ac_save_CC=$CC
4305cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4306/* end confdefs.h.  */
4307$ac_c_conftest_c99_program
4308_ACEOF
4309for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4310do
4311  CC="$ac_save_CC $ac_arg"
4312  if ac_fn_c_try_compile "$LINENO"
4313then :
4314  ac_cv_prog_cc_c99=$ac_arg
4315fi
4316rm -f core conftest.err conftest.$ac_objext conftest.beam
4317  test "x$ac_cv_prog_cc_c99" != "xno" && break
4318done
4319rm -f conftest.$ac_ext
4320CC=$ac_save_CC
4321fi
4322
4323if test "x$ac_cv_prog_cc_c99" = xno
4324then :
4325  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4326printf "%s\n" "unsupported" >&6; }
4327else $as_nop
4328  if test "x$ac_cv_prog_cc_c99" = x
4329then :
4330  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4331printf "%s\n" "none needed" >&6; }
4332else $as_nop
4333  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4334printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4335     CC="$CC $ac_cv_prog_cc_c99"
4336fi
4337  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4338  ac_prog_cc_stdc=c99
4339fi
4340fi
4341if test x$ac_prog_cc_stdc = xno
4342then :
4343  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4344printf %s "checking for $CC option to enable C89 features... " >&6; }
4345if test ${ac_cv_prog_cc_c89+y}
4346then :
4347  printf %s "(cached) " >&6
4348else $as_nop
4349  ac_cv_prog_cc_c89=no
4350ac_save_CC=$CC
4351cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4352/* end confdefs.h.  */
4353$ac_c_conftest_c89_program
4354_ACEOF
4355for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4356do
4357  CC="$ac_save_CC $ac_arg"
4358  if ac_fn_c_try_compile "$LINENO"
4359then :
4360  ac_cv_prog_cc_c89=$ac_arg
4361fi
4362rm -f core conftest.err conftest.$ac_objext conftest.beam
4363  test "x$ac_cv_prog_cc_c89" != "xno" && break
4364done
4365rm -f conftest.$ac_ext
4366CC=$ac_save_CC
4367fi
4368
4369if test "x$ac_cv_prog_cc_c89" = xno
4370then :
4371  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4372printf "%s\n" "unsupported" >&6; }
4373else $as_nop
4374  if test "x$ac_cv_prog_cc_c89" = x
4375then :
4376  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4377printf "%s\n" "none needed" >&6; }
4378else $as_nop
4379  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4380printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4381     CC="$CC $ac_cv_prog_cc_c89"
4382fi
4383  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4384  ac_prog_cc_stdc=c89
4385fi
4386fi
4387
4388ac_ext=c
4389ac_cpp='$CPP $CPPFLAGS'
4390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4392ac_compiler_gnu=$ac_cv_c_compiler_gnu
4393
4394
4395  ac_ext=c
4396ac_cpp='$CPP $CPPFLAGS'
4397ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4398ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4399ac_compiler_gnu=$ac_cv_c_compiler_gnu
4400{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4401printf %s "checking whether $CC understands -c and -o together... " >&6; }
4402if test ${am_cv_prog_cc_c_o+y}
4403then :
4404  printf %s "(cached) " >&6
4405else $as_nop
4406  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4407/* end confdefs.h.  */
4408
4409int
4410main (void)
4411{
4412
4413  ;
4414  return 0;
4415}
4416_ACEOF
4417  # Make sure it works both with $CC and with simple cc.
4418  # Following AC_PROG_CC_C_O, we do the test twice because some
4419  # compilers refuse to overwrite an existing .o file with -o,
4420  # though they will create one.
4421  am_cv_prog_cc_c_o=yes
4422  for am_i in 1 2; do
4423    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4424   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4425   ac_status=$?
4426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427   (exit $ac_status); } \
4428         && test -f conftest2.$ac_objext; then
4429      : OK
4430    else
4431      am_cv_prog_cc_c_o=no
4432      break
4433    fi
4434  done
4435  rm -f core conftest*
4436  unset am_i
4437fi
4438{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4439printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4440if test "$am_cv_prog_cc_c_o" != yes; then
4441   # Losing compiler, so override with the script.
4442   # FIXME: It is wrong to rewrite CC.
4443   # But if we don't then we get into trouble of one sort or another.
4444   # A longer-term fix would be to have automake use am__CC in this case,
4445   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4446   CC="$am_aux_dir/compile $CC"
4447fi
4448ac_ext=c
4449ac_cpp='$CPP $CPPFLAGS'
4450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4452ac_compiler_gnu=$ac_cv_c_compiler_gnu
4453
4454DEPDIR="${am__leading_dot}deps"
4455
4456ac_config_commands="$ac_config_commands depfiles"
4457
4458{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4459printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4460cat > confinc.mk << 'END'
4461am__doit:
4462	@echo this is the am__doit target >confinc.out
4463.PHONY: am__doit
4464END
4465am__include="#"
4466am__quote=
4467# BSD make does it like this.
4468echo '.include "confinc.mk" # ignored' > confmf.BSD
4469# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4470echo 'include confinc.mk # ignored' > confmf.GNU
4471_am_result=no
4472for s in GNU BSD; do
4473  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4474   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4475   ac_status=$?
4476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477   (exit $ac_status); }
4478  case $?:`cat confinc.out 2>/dev/null` in #(
4479  '0:this is the am__doit target') :
4480    case $s in #(
4481  BSD) :
4482    am__include='.include' am__quote='"' ;; #(
4483  *) :
4484    am__include='include' am__quote='' ;;
4485esac ;; #(
4486  *) :
4487     ;;
4488esac
4489  if test "$am__include" != "#"; then
4490    _am_result="yes ($s style)"
4491    break
4492  fi
4493done
4494rm -f confinc.* confmf.*
4495{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4496printf "%s\n" "${_am_result}" >&6; }
4497
4498# Check whether --enable-dependency-tracking was given.
4499if test ${enable_dependency_tracking+y}
4500then :
4501  enableval=$enable_dependency_tracking;
4502fi
4503
4504if test "x$enable_dependency_tracking" != xno; then
4505  am_depcomp="$ac_aux_dir/depcomp"
4506  AMDEPBACKSLASH='\'
4507  am__nodep='_no'
4508fi
4509 if test "x$enable_dependency_tracking" != xno; then
4510  AMDEP_TRUE=
4511  AMDEP_FALSE='#'
4512else
4513  AMDEP_TRUE='#'
4514  AMDEP_FALSE=
4515fi
4516
4517
4518
4519depcc="$CC"   am_compiler_list=
4520
4521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4522printf %s "checking dependency style of $depcc... " >&6; }
4523if test ${am_cv_CC_dependencies_compiler_type+y}
4524then :
4525  printf %s "(cached) " >&6
4526else $as_nop
4527  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4528  # We make a subdir and do the tests there.  Otherwise we can end up
4529  # making bogus files that we don't know about and never remove.  For
4530  # instance it was reported that on HP-UX the gcc test will end up
4531  # making a dummy file named 'D' -- because '-MD' means "put the output
4532  # in D".
4533  rm -rf conftest.dir
4534  mkdir conftest.dir
4535  # Copy depcomp to subdir because otherwise we won't find it if we're
4536  # using a relative directory.
4537  cp "$am_depcomp" conftest.dir
4538  cd conftest.dir
4539  # We will build objects and dependencies in a subdirectory because
4540  # it helps to detect inapplicable dependency modes.  For instance
4541  # both Tru64's cc and ICC support -MD to output dependencies as a
4542  # side effect of compilation, but ICC will put the dependencies in
4543  # the current directory while Tru64 will put them in the object
4544  # directory.
4545  mkdir sub
4546
4547  am_cv_CC_dependencies_compiler_type=none
4548  if test "$am_compiler_list" = ""; then
4549     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4550  fi
4551  am__universal=false
4552  case " $depcc " in #(
4553     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4554     esac
4555
4556  for depmode in $am_compiler_list; do
4557    # Setup a source with many dependencies, because some compilers
4558    # like to wrap large dependency lists on column 80 (with \), and
4559    # we should not choose a depcomp mode which is confused by this.
4560    #
4561    # We need to recreate these files for each test, as the compiler may
4562    # overwrite some of them when testing with obscure command lines.
4563    # This happens at least with the AIX C compiler.
4564    : > sub/conftest.c
4565    for i in 1 2 3 4 5 6; do
4566      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4567      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4568      # Solaris 10 /bin/sh.
4569      echo '/* dummy */' > sub/conftst$i.h
4570    done
4571    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4572
4573    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4574    # mode.  It turns out that the SunPro C++ compiler does not properly
4575    # handle '-M -o', and we need to detect this.  Also, some Intel
4576    # versions had trouble with output in subdirs.
4577    am__obj=sub/conftest.${OBJEXT-o}
4578    am__minus_obj="-o $am__obj"
4579    case $depmode in
4580    gcc)
4581      # This depmode causes a compiler race in universal mode.
4582      test "$am__universal" = false || continue
4583      ;;
4584    nosideeffect)
4585      # After this tag, mechanisms are not by side-effect, so they'll
4586      # only be used when explicitly requested.
4587      if test "x$enable_dependency_tracking" = xyes; then
4588	continue
4589      else
4590	break
4591      fi
4592      ;;
4593    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4594      # This compiler won't grok '-c -o', but also, the minuso test has
4595      # not run yet.  These depmodes are late enough in the game, and
4596      # so weak that their functioning should not be impacted.
4597      am__obj=conftest.${OBJEXT-o}
4598      am__minus_obj=
4599      ;;
4600    none) break ;;
4601    esac
4602    if depmode=$depmode \
4603       source=sub/conftest.c object=$am__obj \
4604       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4605       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4606         >/dev/null 2>conftest.err &&
4607       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4608       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4609       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4610       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4611      # icc doesn't choke on unknown options, it will just issue warnings
4612      # or remarks (even with -Werror).  So we grep stderr for any message
4613      # that says an option was ignored or not supported.
4614      # When given -MP, icc 7.0 and 7.1 complain thusly:
4615      #   icc: Command line warning: ignoring option '-M'; no argument required
4616      # The diagnosis changed in icc 8.0:
4617      #   icc: Command line remark: option '-MP' not supported
4618      if (grep 'ignoring option' conftest.err ||
4619          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4620        am_cv_CC_dependencies_compiler_type=$depmode
4621        break
4622      fi
4623    fi
4624  done
4625
4626  cd ..
4627  rm -rf conftest.dir
4628else
4629  am_cv_CC_dependencies_compiler_type=none
4630fi
4631
4632fi
4633{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4634printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4635CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4636
4637 if
4638  test "x$enable_dependency_tracking" != xno \
4639  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4640  am__fastdepCC_TRUE=
4641  am__fastdepCC_FALSE='#'
4642else
4643  am__fastdepCC_TRUE='#'
4644  am__fastdepCC_FALSE=
4645fi
4646
4647
4648case `pwd` in
4649  *\ * | *\	*)
4650    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4651printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4652esac
4653
4654
4655
4656macro_version='2.4.6.42-b88ce-dirty'
4657macro_revision='2.4.6.42'
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672ltmain=$ac_aux_dir/ltmain.sh
4673
4674# Backslashify metacharacters that are still active within
4675# double-quoted strings.
4676sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4677
4678# Same as above, but do not quote variable references.
4679double_quote_subst='s/\(["`\\]\)/\\\1/g'
4680
4681# Sed substitution to delay expansion of an escaped shell variable in a
4682# double_quote_subst'ed string.
4683delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4684
4685# Sed substitution to delay expansion of an escaped single quote.
4686delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4687
4688# Sed substitution to avoid accidental globbing in evaled expressions
4689no_glob_subst='s/\*/\\\*/g'
4690
4691ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4692ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4693ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4694
4695{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4696printf %s "checking how to print strings... " >&6; }
4697# Test print first, because it will be a builtin if present.
4698if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4699   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4700  ECHO='print -r --'
4701elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4702  ECHO='printf %s\n'
4703else
4704  # Use this function as a fallback that always works.
4705  func_fallback_echo ()
4706  {
4707    eval 'cat <<_LTECHO_EOF
4708$1
4709_LTECHO_EOF'
4710  }
4711  ECHO='func_fallback_echo'
4712fi
4713
4714# func_echo_all arg...
4715# Invoke $ECHO with all args, space-separated.
4716func_echo_all ()
4717{
4718    $ECHO ""
4719}
4720
4721case $ECHO in
4722  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4723printf "%s\n" "printf" >&6; } ;;
4724  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4725printf "%s\n" "print -r" >&6; } ;;
4726  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4727printf "%s\n" "cat" >&6; } ;;
4728esac
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4744printf %s "checking for a sed that does not truncate output... " >&6; }
4745if test ${ac_cv_path_SED+y}
4746then :
4747  printf %s "(cached) " >&6
4748else $as_nop
4749            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4750     for ac_i in 1 2 3 4 5 6 7; do
4751       ac_script="$ac_script$as_nl$ac_script"
4752     done
4753     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4754     { ac_script=; unset ac_script;}
4755     if test -z "$SED"; then
4756  ac_path_SED_found=false
4757  # Loop through the user's path and test for each of PROGNAME-LIST
4758  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4759for as_dir in $PATH
4760do
4761  IFS=$as_save_IFS
4762  case $as_dir in #(((
4763    '') as_dir=./ ;;
4764    */) ;;
4765    *) as_dir=$as_dir/ ;;
4766  esac
4767    for ac_prog in sed gsed
4768   do
4769    for ac_exec_ext in '' $ac_executable_extensions; do
4770      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4771      as_fn_executable_p "$ac_path_SED" || continue
4772# Check for GNU ac_path_SED and select it if it is found.
4773  # Check for GNU $ac_path_SED
4774case `"$ac_path_SED" --version 2>&1` in
4775*GNU*)
4776  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4777*)
4778  ac_count=0
4779  printf %s 0123456789 >"conftest.in"
4780  while :
4781  do
4782    cat "conftest.in" "conftest.in" >"conftest.tmp"
4783    mv "conftest.tmp" "conftest.in"
4784    cp "conftest.in" "conftest.nl"
4785    printf "%s\n" '' >> "conftest.nl"
4786    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4787    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4788    as_fn_arith $ac_count + 1 && ac_count=$as_val
4789    if test $ac_count -gt ${ac_path_SED_max-0}; then
4790      # Best one so far, save it but keep looking for a better one
4791      ac_cv_path_SED="$ac_path_SED"
4792      ac_path_SED_max=$ac_count
4793    fi
4794    # 10*(2^10) chars as input seems more than enough
4795    test $ac_count -gt 10 && break
4796  done
4797  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4798esac
4799
4800      $ac_path_SED_found && break 3
4801    done
4802  done
4803  done
4804IFS=$as_save_IFS
4805  if test -z "$ac_cv_path_SED"; then
4806    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4807  fi
4808else
4809  ac_cv_path_SED=$SED
4810fi
4811
4812fi
4813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4814printf "%s\n" "$ac_cv_path_SED" >&6; }
4815 SED="$ac_cv_path_SED"
4816  rm -f conftest.sed
4817
4818test -z "$SED" && SED=sed
4819Xsed="$SED -e 1s/^X//"
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4832printf %s "checking for grep that handles long lines and -e... " >&6; }
4833if test ${ac_cv_path_GREP+y}
4834then :
4835  printf %s "(cached) " >&6
4836else $as_nop
4837  if test -z "$GREP"; then
4838  ac_path_GREP_found=false
4839  # Loop through the user's path and test for each of PROGNAME-LIST
4840  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4841for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4842do
4843  IFS=$as_save_IFS
4844  case $as_dir in #(((
4845    '') as_dir=./ ;;
4846    */) ;;
4847    *) as_dir=$as_dir/ ;;
4848  esac
4849    for ac_prog in grep ggrep
4850   do
4851    for ac_exec_ext in '' $ac_executable_extensions; do
4852      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4853      as_fn_executable_p "$ac_path_GREP" || continue
4854# Check for GNU ac_path_GREP and select it if it is found.
4855  # Check for GNU $ac_path_GREP
4856case `"$ac_path_GREP" --version 2>&1` in
4857*GNU*)
4858  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4859*)
4860  ac_count=0
4861  printf %s 0123456789 >"conftest.in"
4862  while :
4863  do
4864    cat "conftest.in" "conftest.in" >"conftest.tmp"
4865    mv "conftest.tmp" "conftest.in"
4866    cp "conftest.in" "conftest.nl"
4867    printf "%s\n" 'GREP' >> "conftest.nl"
4868    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4869    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4870    as_fn_arith $ac_count + 1 && ac_count=$as_val
4871    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4872      # Best one so far, save it but keep looking for a better one
4873      ac_cv_path_GREP="$ac_path_GREP"
4874      ac_path_GREP_max=$ac_count
4875    fi
4876    # 10*(2^10) chars as input seems more than enough
4877    test $ac_count -gt 10 && break
4878  done
4879  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4880esac
4881
4882      $ac_path_GREP_found && break 3
4883    done
4884  done
4885  done
4886IFS=$as_save_IFS
4887  if test -z "$ac_cv_path_GREP"; then
4888    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4889  fi
4890else
4891  ac_cv_path_GREP=$GREP
4892fi
4893
4894fi
4895{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4896printf "%s\n" "$ac_cv_path_GREP" >&6; }
4897 GREP="$ac_cv_path_GREP"
4898
4899
4900{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4901printf %s "checking for egrep... " >&6; }
4902if test ${ac_cv_path_EGREP+y}
4903then :
4904  printf %s "(cached) " >&6
4905else $as_nop
4906  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4907   then ac_cv_path_EGREP="$GREP -E"
4908   else
4909     if test -z "$EGREP"; then
4910  ac_path_EGREP_found=false
4911  # Loop through the user's path and test for each of PROGNAME-LIST
4912  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4913for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4914do
4915  IFS=$as_save_IFS
4916  case $as_dir in #(((
4917    '') as_dir=./ ;;
4918    */) ;;
4919    *) as_dir=$as_dir/ ;;
4920  esac
4921    for ac_prog in egrep
4922   do
4923    for ac_exec_ext in '' $ac_executable_extensions; do
4924      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
4925      as_fn_executable_p "$ac_path_EGREP" || continue
4926# Check for GNU ac_path_EGREP and select it if it is found.
4927  # Check for GNU $ac_path_EGREP
4928case `"$ac_path_EGREP" --version 2>&1` in
4929*GNU*)
4930  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4931*)
4932  ac_count=0
4933  printf %s 0123456789 >"conftest.in"
4934  while :
4935  do
4936    cat "conftest.in" "conftest.in" >"conftest.tmp"
4937    mv "conftest.tmp" "conftest.in"
4938    cp "conftest.in" "conftest.nl"
4939    printf "%s\n" 'EGREP' >> "conftest.nl"
4940    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4941    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4942    as_fn_arith $ac_count + 1 && ac_count=$as_val
4943    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4944      # Best one so far, save it but keep looking for a better one
4945      ac_cv_path_EGREP="$ac_path_EGREP"
4946      ac_path_EGREP_max=$ac_count
4947    fi
4948    # 10*(2^10) chars as input seems more than enough
4949    test $ac_count -gt 10 && break
4950  done
4951  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4952esac
4953
4954      $ac_path_EGREP_found && break 3
4955    done
4956  done
4957  done
4958IFS=$as_save_IFS
4959  if test -z "$ac_cv_path_EGREP"; then
4960    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4961  fi
4962else
4963  ac_cv_path_EGREP=$EGREP
4964fi
4965
4966   fi
4967fi
4968{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4969printf "%s\n" "$ac_cv_path_EGREP" >&6; }
4970 EGREP="$ac_cv_path_EGREP"
4971
4972
4973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4974printf %s "checking for fgrep... " >&6; }
4975if test ${ac_cv_path_FGREP+y}
4976then :
4977  printf %s "(cached) " >&6
4978else $as_nop
4979  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4980   then ac_cv_path_FGREP="$GREP -F"
4981   else
4982     if test -z "$FGREP"; then
4983  ac_path_FGREP_found=false
4984  # Loop through the user's path and test for each of PROGNAME-LIST
4985  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4986for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4987do
4988  IFS=$as_save_IFS
4989  case $as_dir in #(((
4990    '') as_dir=./ ;;
4991    */) ;;
4992    *) as_dir=$as_dir/ ;;
4993  esac
4994    for ac_prog in fgrep
4995   do
4996    for ac_exec_ext in '' $ac_executable_extensions; do
4997      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
4998      as_fn_executable_p "$ac_path_FGREP" || continue
4999# Check for GNU ac_path_FGREP and select it if it is found.
5000  # Check for GNU $ac_path_FGREP
5001case `"$ac_path_FGREP" --version 2>&1` in
5002*GNU*)
5003  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5004*)
5005  ac_count=0
5006  printf %s 0123456789 >"conftest.in"
5007  while :
5008  do
5009    cat "conftest.in" "conftest.in" >"conftest.tmp"
5010    mv "conftest.tmp" "conftest.in"
5011    cp "conftest.in" "conftest.nl"
5012    printf "%s\n" 'FGREP' >> "conftest.nl"
5013    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5014    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5015    as_fn_arith $ac_count + 1 && ac_count=$as_val
5016    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5017      # Best one so far, save it but keep looking for a better one
5018      ac_cv_path_FGREP="$ac_path_FGREP"
5019      ac_path_FGREP_max=$ac_count
5020    fi
5021    # 10*(2^10) chars as input seems more than enough
5022    test $ac_count -gt 10 && break
5023  done
5024  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5025esac
5026
5027      $ac_path_FGREP_found && break 3
5028    done
5029  done
5030  done
5031IFS=$as_save_IFS
5032  if test -z "$ac_cv_path_FGREP"; then
5033    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5034  fi
5035else
5036  ac_cv_path_FGREP=$FGREP
5037fi
5038
5039   fi
5040fi
5041{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5042printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5043 FGREP="$ac_cv_path_FGREP"
5044
5045
5046test -z "$GREP" && GREP=grep
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066# Check whether --with-gnu-ld was given.
5067if test ${with_gnu_ld+y}
5068then :
5069  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5070else $as_nop
5071  with_gnu_ld=no
5072fi
5073
5074ac_prog=ld
5075if test yes = "$GCC"; then
5076  # Check if gcc -print-prog-name=ld gives a path.
5077  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5078printf %s "checking for ld used by $CC... " >&6; }
5079  case $host in
5080  *-*-mingw*)
5081    # gcc leaves a trailing carriage return, which upsets mingw
5082    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5083  *)
5084    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5085  esac
5086  case $ac_prog in
5087    # Accept absolute paths.
5088    [\\/]* | ?:[\\/]*)
5089      re_direlt='/[^/][^/]*/\.\./'
5090      # Canonicalize the pathname of ld
5091      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5092      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5093	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5094      done
5095      test -z "$LD" && LD=$ac_prog
5096      ;;
5097  "")
5098    # If it fails, then pretend we aren't using GCC.
5099    ac_prog=ld
5100    ;;
5101  *)
5102    # If it is relative, then search for the first ld in PATH.
5103    with_gnu_ld=unknown
5104    ;;
5105  esac
5106elif test yes = "$with_gnu_ld"; then
5107  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5108printf %s "checking for GNU ld... " >&6; }
5109else
5110  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5111printf %s "checking for non-GNU ld... " >&6; }
5112fi
5113if test ${lt_cv_path_LD+y}
5114then :
5115  printf %s "(cached) " >&6
5116else $as_nop
5117  if test -z "$LD"; then
5118  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5119  for ac_dir in $PATH; do
5120    IFS=$lt_save_ifs
5121    test -z "$ac_dir" && ac_dir=.
5122    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5123      lt_cv_path_LD=$ac_dir/$ac_prog
5124      # Check to see if the program is GNU ld.  I'd rather use --version,
5125      # but apparently some variants of GNU ld only accept -v.
5126      # Break only if it was the GNU/non-GNU ld that we prefer.
5127      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5128      *GNU* | *'with BFD'*)
5129	test no != "$with_gnu_ld" && break
5130	;;
5131      *)
5132	test yes != "$with_gnu_ld" && break
5133	;;
5134      esac
5135    fi
5136  done
5137  IFS=$lt_save_ifs
5138else
5139  lt_cv_path_LD=$LD # Let the user override the test with a path.
5140fi
5141fi
5142
5143LD=$lt_cv_path_LD
5144if test -n "$LD"; then
5145  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5146printf "%s\n" "$LD" >&6; }
5147else
5148  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5149printf "%s\n" "no" >&6; }
5150fi
5151test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5152{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5153printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5154if test ${lt_cv_prog_gnu_ld+y}
5155then :
5156  printf %s "(cached) " >&6
5157else $as_nop
5158  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5159case `$LD -v 2>&1 </dev/null` in
5160*GNU* | *'with BFD'*)
5161  lt_cv_prog_gnu_ld=yes
5162  ;;
5163*)
5164  lt_cv_prog_gnu_ld=no
5165  ;;
5166esac
5167fi
5168{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5169printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5170with_gnu_ld=$lt_cv_prog_gnu_ld
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5181printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5182if test ${lt_cv_path_NM+y}
5183then :
5184  printf %s "(cached) " >&6
5185else $as_nop
5186  if test -n "$NM"; then
5187  # Let the user override the test.
5188  lt_cv_path_NM=$NM
5189else
5190  lt_nm_to_check=${ac_tool_prefix}nm
5191  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5192    lt_nm_to_check="$lt_nm_to_check nm"
5193  fi
5194  for lt_tmp_nm in $lt_nm_to_check; do
5195    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5196    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5197      IFS=$lt_save_ifs
5198      test -z "$ac_dir" && ac_dir=.
5199      tmp_nm=$ac_dir/$lt_tmp_nm
5200      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5201	# Check to see if the nm accepts a BSD-compat flag.
5202	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5203	#   nm: unknown option "B" ignored
5204	# Tru64's nm complains that /dev/null is an invalid object file
5205	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5206	case $build_os in
5207	mingw*) lt_bad_file=conftest.nm/nofile ;;
5208	*) lt_bad_file=/dev/null ;;
5209	esac
5210	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5211	*$lt_bad_file* | *'Invalid file or object type'*)
5212	  lt_cv_path_NM="$tmp_nm -B"
5213	  break 2
5214	  ;;
5215	*)
5216	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5217	  */dev/null*)
5218	    lt_cv_path_NM="$tmp_nm -p"
5219	    break 2
5220	    ;;
5221	  *)
5222	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5223	    continue # so that we can try to find one that supports BSD flags
5224	    ;;
5225	  esac
5226	  ;;
5227	esac
5228      fi
5229    done
5230    IFS=$lt_save_ifs
5231  done
5232  : ${lt_cv_path_NM=no}
5233fi
5234fi
5235{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5236printf "%s\n" "$lt_cv_path_NM" >&6; }
5237if test no != "$lt_cv_path_NM"; then
5238  NM=$lt_cv_path_NM
5239else
5240  # Didn't find any BSD compatible name lister, look for dumpbin.
5241  if test -n "$DUMPBIN"; then :
5242    # Let the user override the test.
5243  else
5244    if test -n "$ac_tool_prefix"; then
5245  for ac_prog in dumpbin "link -dump"
5246  do
5247    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5248set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5249{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5250printf %s "checking for $ac_word... " >&6; }
5251if test ${ac_cv_prog_DUMPBIN+y}
5252then :
5253  printf %s "(cached) " >&6
5254else $as_nop
5255  if test -n "$DUMPBIN"; then
5256  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5257else
5258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5259for as_dir in $PATH
5260do
5261  IFS=$as_save_IFS
5262  case $as_dir in #(((
5263    '') as_dir=./ ;;
5264    */) ;;
5265    *) as_dir=$as_dir/ ;;
5266  esac
5267    for ac_exec_ext in '' $ac_executable_extensions; do
5268  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5269    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5270    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5271    break 2
5272  fi
5273done
5274  done
5275IFS=$as_save_IFS
5276
5277fi
5278fi
5279DUMPBIN=$ac_cv_prog_DUMPBIN
5280if test -n "$DUMPBIN"; then
5281  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5282printf "%s\n" "$DUMPBIN" >&6; }
5283else
5284  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5285printf "%s\n" "no" >&6; }
5286fi
5287
5288
5289    test -n "$DUMPBIN" && break
5290  done
5291fi
5292if test -z "$DUMPBIN"; then
5293  ac_ct_DUMPBIN=$DUMPBIN
5294  for ac_prog in dumpbin "link -dump"
5295do
5296  # Extract the first word of "$ac_prog", so it can be a program name with args.
5297set dummy $ac_prog; ac_word=$2
5298{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5299printf %s "checking for $ac_word... " >&6; }
5300if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5301then :
5302  printf %s "(cached) " >&6
5303else $as_nop
5304  if test -n "$ac_ct_DUMPBIN"; then
5305  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5306else
5307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5308for as_dir in $PATH
5309do
5310  IFS=$as_save_IFS
5311  case $as_dir in #(((
5312    '') as_dir=./ ;;
5313    */) ;;
5314    *) as_dir=$as_dir/ ;;
5315  esac
5316    for ac_exec_ext in '' $ac_executable_extensions; do
5317  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5318    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5319    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5320    break 2
5321  fi
5322done
5323  done
5324IFS=$as_save_IFS
5325
5326fi
5327fi
5328ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5329if test -n "$ac_ct_DUMPBIN"; then
5330  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5331printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5332else
5333  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5334printf "%s\n" "no" >&6; }
5335fi
5336
5337
5338  test -n "$ac_ct_DUMPBIN" && break
5339done
5340
5341  if test "x$ac_ct_DUMPBIN" = x; then
5342    DUMPBIN=":"
5343  else
5344    case $cross_compiling:$ac_tool_warned in
5345yes:)
5346{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5347printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5348ac_tool_warned=yes ;;
5349esac
5350    DUMPBIN=$ac_ct_DUMPBIN
5351  fi
5352fi
5353
5354    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5355    *COFF*)
5356      DUMPBIN="$DUMPBIN -symbols -headers"
5357      ;;
5358    *)
5359      DUMPBIN=:
5360      ;;
5361    esac
5362  fi
5363
5364  if test : != "$DUMPBIN"; then
5365    NM=$DUMPBIN
5366  fi
5367fi
5368test -z "$NM" && NM=nm
5369
5370
5371
5372
5373
5374
5375{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5376printf %s "checking the name lister ($NM) interface... " >&6; }
5377if test ${lt_cv_nm_interface+y}
5378then :
5379  printf %s "(cached) " >&6
5380else $as_nop
5381  lt_cv_nm_interface="BSD nm"
5382  echo "int some_variable = 0;" > conftest.$ac_ext
5383  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5384  (eval "$ac_compile" 2>conftest.err)
5385  cat conftest.err >&5
5386  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5387  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5388  cat conftest.err >&5
5389  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5390  cat conftest.out >&5
5391  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5392    lt_cv_nm_interface="MS dumpbin"
5393  fi
5394  rm -f conftest*
5395fi
5396{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5397printf "%s\n" "$lt_cv_nm_interface" >&6; }
5398
5399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5400printf %s "checking whether ln -s works... " >&6; }
5401LN_S=$as_ln_s
5402if test "$LN_S" = "ln -s"; then
5403  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5404printf "%s\n" "yes" >&6; }
5405else
5406  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5407printf "%s\n" "no, using $LN_S" >&6; }
5408fi
5409
5410# find the maximum length of command line arguments
5411{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5412printf %s "checking the maximum length of command line arguments... " >&6; }
5413if test ${lt_cv_sys_max_cmd_len+y}
5414then :
5415  printf %s "(cached) " >&6
5416else $as_nop
5417    i=0
5418  teststring=ABCD
5419
5420  case $build_os in
5421  msdosdjgpp*)
5422    # On DJGPP, this test can blow up pretty badly due to problems in libc
5423    # (any single argument exceeding 2000 bytes causes a buffer overrun
5424    # during glob expansion).  Even if it were fixed, the result of this
5425    # check would be larger than it should be.
5426    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5427    ;;
5428
5429  gnu*)
5430    # Under GNU Hurd, this test is not required because there is
5431    # no limit to the length of command line arguments.
5432    # Libtool will interpret -1 as no limit whatsoever
5433    lt_cv_sys_max_cmd_len=-1;
5434    ;;
5435
5436  cygwin* | mingw* | cegcc*)
5437    # On Win9x/ME, this test blows up -- it succeeds, but takes
5438    # about 5 minutes as the teststring grows exponentially.
5439    # Worse, since 9x/ME are not pre-emptively multitasking,
5440    # you end up with a "frozen" computer, even though with patience
5441    # the test eventually succeeds (with a max line length of 256k).
5442    # Instead, let's just punt: use the minimum linelength reported by
5443    # all of the supported platforms: 8192 (on NT/2K/XP).
5444    lt_cv_sys_max_cmd_len=8192;
5445    ;;
5446
5447  mint*)
5448    # On MiNT this can take a long time and run out of memory.
5449    lt_cv_sys_max_cmd_len=8192;
5450    ;;
5451
5452  amigaos*)
5453    # On AmigaOS with pdksh, this test takes hours, literally.
5454    # So we just punt and use a minimum line length of 8192.
5455    lt_cv_sys_max_cmd_len=8192;
5456    ;;
5457
5458  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5459    # This has been around since 386BSD, at least.  Likely further.
5460    if test -x /sbin/sysctl; then
5461      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5462    elif test -x /usr/sbin/sysctl; then
5463      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5464    else
5465      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5466    fi
5467    # And add a safety zone
5468    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5469    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5470    ;;
5471
5472  interix*)
5473    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5474    lt_cv_sys_max_cmd_len=196608
5475    ;;
5476
5477  os2*)
5478    # The test takes a long time on OS/2.
5479    lt_cv_sys_max_cmd_len=8192
5480    ;;
5481
5482  osf*)
5483    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5484    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5485    # nice to cause kernel panics so lets avoid the loop below.
5486    # First set a reasonable default.
5487    lt_cv_sys_max_cmd_len=16384
5488    #
5489    if test -x /sbin/sysconfig; then
5490      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5491        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5492      esac
5493    fi
5494    ;;
5495  sco3.2v5*)
5496    lt_cv_sys_max_cmd_len=102400
5497    ;;
5498  sysv5* | sco5v6* | sysv4.2uw2*)
5499    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5500    if test -n "$kargmax"; then
5501      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5502    else
5503      lt_cv_sys_max_cmd_len=32768
5504    fi
5505    ;;
5506  *)
5507    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5508    if test -n "$lt_cv_sys_max_cmd_len" && \
5509       test undefined != "$lt_cv_sys_max_cmd_len"; then
5510      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5511      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5512    else
5513      # Make teststring a little bigger before we do anything with it.
5514      # a 1K string should be a reasonable start.
5515      for i in 1 2 3 4 5 6 7 8; do
5516        teststring=$teststring$teststring
5517      done
5518      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5519      # If test is not a shell built-in, we'll probably end up computing a
5520      # maximum length that is only half of the actual maximum length, but
5521      # we can't tell.
5522      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5523	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5524	      test 17 != "$i" # 1/2 MB should be enough
5525      do
5526        i=`expr $i + 1`
5527        teststring=$teststring$teststring
5528      done
5529      # Only check the string length outside the loop.
5530      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5531      teststring=
5532      # Add a significant safety factor because C++ compilers can tack on
5533      # massive amounts of additional arguments before passing them to the
5534      # linker.  It appears as though 1/2 is a usable value.
5535      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5536    fi
5537    ;;
5538  esac
5539
5540fi
5541
5542if test -n "$lt_cv_sys_max_cmd_len"; then
5543  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5544printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5545else
5546  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5547printf "%s\n" "none" >&6; }
5548fi
5549max_cmd_len=$lt_cv_sys_max_cmd_len
5550
5551
5552
5553
5554
5555
5556: ${CP="cp -f"}
5557: ${MV="mv -f"}
5558: ${RM="rm -f"}
5559
5560if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5561  lt_unset=unset
5562else
5563  lt_unset=false
5564fi
5565
5566
5567
5568
5569
5570# test EBCDIC or ASCII
5571case `echo X|tr X '\101'` in
5572 A) # ASCII based system
5573    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5574  lt_SP2NL='tr \040 \012'
5575  lt_NL2SP='tr \015\012 \040\040'
5576  ;;
5577 *) # EBCDIC based system
5578  lt_SP2NL='tr \100 \n'
5579  lt_NL2SP='tr \r\n \100\100'
5580  ;;
5581esac
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5592printf %s "checking how to convert $build file names to $host format... " >&6; }
5593if test ${lt_cv_to_host_file_cmd+y}
5594then :
5595  printf %s "(cached) " >&6
5596else $as_nop
5597  case $host in
5598  *-*-mingw* )
5599    case $build in
5600      *-*-mingw* ) # actually msys
5601        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5602        ;;
5603      *-*-cygwin* )
5604        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5605        ;;
5606      * ) # otherwise, assume *nix
5607        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5608        ;;
5609    esac
5610    ;;
5611  *-*-cygwin* )
5612    case $build in
5613      *-*-mingw* ) # actually msys
5614        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5615        ;;
5616      *-*-cygwin* )
5617        lt_cv_to_host_file_cmd=func_convert_file_noop
5618        ;;
5619      * ) # otherwise, assume *nix
5620        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5621        ;;
5622    esac
5623    ;;
5624  * ) # unhandled hosts (and "normal" native builds)
5625    lt_cv_to_host_file_cmd=func_convert_file_noop
5626    ;;
5627esac
5628
5629fi
5630
5631to_host_file_cmd=$lt_cv_to_host_file_cmd
5632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5633printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5634
5635
5636
5637
5638
5639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5640printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5641if test ${lt_cv_to_tool_file_cmd+y}
5642then :
5643  printf %s "(cached) " >&6
5644else $as_nop
5645  #assume ordinary cross tools, or native build.
5646lt_cv_to_tool_file_cmd=func_convert_file_noop
5647case $host in
5648  *-*-mingw* )
5649    case $build in
5650      *-*-mingw* ) # actually msys
5651        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5652        ;;
5653    esac
5654    ;;
5655esac
5656
5657fi
5658
5659to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5660{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5661printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5662
5663
5664
5665
5666
5667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5668printf %s "checking for $LD option to reload object files... " >&6; }
5669if test ${lt_cv_ld_reload_flag+y}
5670then :
5671  printf %s "(cached) " >&6
5672else $as_nop
5673  lt_cv_ld_reload_flag='-r'
5674fi
5675{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5676printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5677reload_flag=$lt_cv_ld_reload_flag
5678case $reload_flag in
5679"" | " "*) ;;
5680*) reload_flag=" $reload_flag" ;;
5681esac
5682reload_cmds='$LD$reload_flag -o $output$reload_objs'
5683case $host_os in
5684  cygwin* | mingw* | pw32* | cegcc*)
5685    if test yes != "$GCC"; then
5686      reload_cmds=false
5687    fi
5688    ;;
5689  darwin*)
5690    if test yes = "$GCC"; then
5691      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5692    else
5693      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5694    fi
5695    ;;
5696esac
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706if test -n "$ac_tool_prefix"; then
5707  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5708set dummy ${ac_tool_prefix}objdump; ac_word=$2
5709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5710printf %s "checking for $ac_word... " >&6; }
5711if test ${ac_cv_prog_OBJDUMP+y}
5712then :
5713  printf %s "(cached) " >&6
5714else $as_nop
5715  if test -n "$OBJDUMP"; then
5716  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5717else
5718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5719for as_dir in $PATH
5720do
5721  IFS=$as_save_IFS
5722  case $as_dir in #(((
5723    '') as_dir=./ ;;
5724    */) ;;
5725    *) as_dir=$as_dir/ ;;
5726  esac
5727    for ac_exec_ext in '' $ac_executable_extensions; do
5728  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5729    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5730    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5731    break 2
5732  fi
5733done
5734  done
5735IFS=$as_save_IFS
5736
5737fi
5738fi
5739OBJDUMP=$ac_cv_prog_OBJDUMP
5740if test -n "$OBJDUMP"; then
5741  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5742printf "%s\n" "$OBJDUMP" >&6; }
5743else
5744  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5745printf "%s\n" "no" >&6; }
5746fi
5747
5748
5749fi
5750if test -z "$ac_cv_prog_OBJDUMP"; then
5751  ac_ct_OBJDUMP=$OBJDUMP
5752  # Extract the first word of "objdump", so it can be a program name with args.
5753set dummy objdump; ac_word=$2
5754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5755printf %s "checking for $ac_word... " >&6; }
5756if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
5757then :
5758  printf %s "(cached) " >&6
5759else $as_nop
5760  if test -n "$ac_ct_OBJDUMP"; then
5761  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5762else
5763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5764for as_dir in $PATH
5765do
5766  IFS=$as_save_IFS
5767  case $as_dir in #(((
5768    '') as_dir=./ ;;
5769    */) ;;
5770    *) as_dir=$as_dir/ ;;
5771  esac
5772    for ac_exec_ext in '' $ac_executable_extensions; do
5773  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5774    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5775    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5776    break 2
5777  fi
5778done
5779  done
5780IFS=$as_save_IFS
5781
5782fi
5783fi
5784ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5785if test -n "$ac_ct_OBJDUMP"; then
5786  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5787printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
5788else
5789  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5790printf "%s\n" "no" >&6; }
5791fi
5792
5793  if test "x$ac_ct_OBJDUMP" = x; then
5794    OBJDUMP="false"
5795  else
5796    case $cross_compiling:$ac_tool_warned in
5797yes:)
5798{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5799printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5800ac_tool_warned=yes ;;
5801esac
5802    OBJDUMP=$ac_ct_OBJDUMP
5803  fi
5804else
5805  OBJDUMP="$ac_cv_prog_OBJDUMP"
5806fi
5807
5808test -z "$OBJDUMP" && OBJDUMP=objdump
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5819printf %s "checking how to recognize dependent libraries... " >&6; }
5820if test ${lt_cv_deplibs_check_method+y}
5821then :
5822  printf %s "(cached) " >&6
5823else $as_nop
5824  lt_cv_file_magic_cmd='$MAGIC_CMD'
5825lt_cv_file_magic_test_file=
5826lt_cv_deplibs_check_method='unknown'
5827# Need to set the preceding variable on all platforms that support
5828# interlibrary dependencies.
5829# 'none' -- dependencies not supported.
5830# 'unknown' -- same as none, but documents that we really don't know.
5831# 'pass_all' -- all dependencies passed with no checks.
5832# 'test_compile' -- check by making test program.
5833# 'file_magic [[regex]]' -- check by looking for files in library path
5834# that responds to the $file_magic_cmd with a given extended regex.
5835# If you have 'file' or equivalent on your system and you're not sure
5836# whether 'pass_all' will *always* work, you probably want this one.
5837
5838case $host_os in
5839aix[4-9]*)
5840  lt_cv_deplibs_check_method=pass_all
5841  ;;
5842
5843beos*)
5844  lt_cv_deplibs_check_method=pass_all
5845  ;;
5846
5847bsdi[45]*)
5848  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5849  lt_cv_file_magic_cmd='/usr/bin/file -L'
5850  lt_cv_file_magic_test_file=/shlib/libc.so
5851  ;;
5852
5853cygwin*)
5854  # func_win32_libid is a shell function defined in ltmain.sh
5855  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5856  lt_cv_file_magic_cmd='func_win32_libid'
5857  ;;
5858
5859mingw* | pw32*)
5860  # Base MSYS/MinGW do not provide the 'file' command needed by
5861  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5862  # unless we find 'file', for example because we are cross-compiling.
5863  if ( file / ) >/dev/null 2>&1; then
5864    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5865    lt_cv_file_magic_cmd='func_win32_libid'
5866  else
5867    # Keep this pattern in sync with the one in func_win32_libid.
5868    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5869    lt_cv_file_magic_cmd='$OBJDUMP -f'
5870  fi
5871  ;;
5872
5873cegcc*)
5874  # use the weaker test based on 'objdump'. See mingw*.
5875  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5876  lt_cv_file_magic_cmd='$OBJDUMP -f'
5877  ;;
5878
5879darwin* | rhapsody*)
5880  lt_cv_deplibs_check_method=pass_all
5881  ;;
5882
5883freebsd* | dragonfly*)
5884  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5885    case $host_cpu in
5886    i*86 )
5887      # Not sure whether the presence of OpenBSD here was a mistake.
5888      # Let's accept both of them until this is cleared up.
5889      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5890      lt_cv_file_magic_cmd=/usr/bin/file
5891      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5892      ;;
5893    esac
5894  else
5895    lt_cv_deplibs_check_method=pass_all
5896  fi
5897  ;;
5898
5899haiku*)
5900  lt_cv_deplibs_check_method=pass_all
5901  ;;
5902
5903hpux10.20* | hpux11*)
5904  lt_cv_file_magic_cmd=/usr/bin/file
5905  case $host_cpu in
5906  ia64*)
5907    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5908    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5909    ;;
5910  hppa*64*)
5911    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]'
5912    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5913    ;;
5914  *)
5915    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5916    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5917    ;;
5918  esac
5919  ;;
5920
5921interix[3-9]*)
5922  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5923  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5924  ;;
5925
5926irix5* | irix6* | nonstopux*)
5927  case $LD in
5928  *-32|*"-32 ") libmagic=32-bit;;
5929  *-n32|*"-n32 ") libmagic=N32;;
5930  *-64|*"-64 ") libmagic=64-bit;;
5931  *) libmagic=never-match;;
5932  esac
5933  lt_cv_deplibs_check_method=pass_all
5934  ;;
5935
5936# This must be glibc/ELF.
5937linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5938  lt_cv_deplibs_check_method=pass_all
5939  ;;
5940
5941netbsd*)
5942  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5943    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5944  else
5945    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5946  fi
5947  ;;
5948
5949newos6*)
5950  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5951  lt_cv_file_magic_cmd=/usr/bin/file
5952  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5953  ;;
5954
5955*nto* | *qnx*)
5956  lt_cv_deplibs_check_method=pass_all
5957  ;;
5958
5959openbsd* | bitrig*)
5960  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5961    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5962  else
5963    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5964  fi
5965  ;;
5966
5967osf3* | osf4* | osf5*)
5968  lt_cv_deplibs_check_method=pass_all
5969  ;;
5970
5971rdos*)
5972  lt_cv_deplibs_check_method=pass_all
5973  ;;
5974
5975solaris*)
5976  lt_cv_deplibs_check_method=pass_all
5977  ;;
5978
5979sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5980  lt_cv_deplibs_check_method=pass_all
5981  ;;
5982
5983sysv4 | sysv4.3*)
5984  case $host_vendor in
5985  motorola)
5986    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]'
5987    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5988    ;;
5989  ncr)
5990    lt_cv_deplibs_check_method=pass_all
5991    ;;
5992  sequent)
5993    lt_cv_file_magic_cmd='/bin/file'
5994    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5995    ;;
5996  sni)
5997    lt_cv_file_magic_cmd='/bin/file'
5998    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5999    lt_cv_file_magic_test_file=/lib/libc.so
6000    ;;
6001  siemens)
6002    lt_cv_deplibs_check_method=pass_all
6003    ;;
6004  pc)
6005    lt_cv_deplibs_check_method=pass_all
6006    ;;
6007  esac
6008  ;;
6009
6010tpf*)
6011  lt_cv_deplibs_check_method=pass_all
6012  ;;
6013os2*)
6014  lt_cv_deplibs_check_method=pass_all
6015  ;;
6016esac
6017
6018fi
6019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6020printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6021
6022file_magic_glob=
6023want_nocaseglob=no
6024if test "$build" = "$host"; then
6025  case $host_os in
6026  mingw* | pw32*)
6027    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6028      want_nocaseglob=yes
6029    else
6030      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6031    fi
6032    ;;
6033  esac
6034fi
6035
6036file_magic_cmd=$lt_cv_file_magic_cmd
6037deplibs_check_method=$lt_cv_deplibs_check_method
6038test -z "$deplibs_check_method" && deplibs_check_method=unknown
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061if test -n "$ac_tool_prefix"; then
6062  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6063set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6064{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6065printf %s "checking for $ac_word... " >&6; }
6066if test ${ac_cv_prog_DLLTOOL+y}
6067then :
6068  printf %s "(cached) " >&6
6069else $as_nop
6070  if test -n "$DLLTOOL"; then
6071  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6072else
6073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6074for as_dir in $PATH
6075do
6076  IFS=$as_save_IFS
6077  case $as_dir in #(((
6078    '') as_dir=./ ;;
6079    */) ;;
6080    *) as_dir=$as_dir/ ;;
6081  esac
6082    for ac_exec_ext in '' $ac_executable_extensions; do
6083  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6084    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6085    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6086    break 2
6087  fi
6088done
6089  done
6090IFS=$as_save_IFS
6091
6092fi
6093fi
6094DLLTOOL=$ac_cv_prog_DLLTOOL
6095if test -n "$DLLTOOL"; then
6096  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6097printf "%s\n" "$DLLTOOL" >&6; }
6098else
6099  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6100printf "%s\n" "no" >&6; }
6101fi
6102
6103
6104fi
6105if test -z "$ac_cv_prog_DLLTOOL"; then
6106  ac_ct_DLLTOOL=$DLLTOOL
6107  # Extract the first word of "dlltool", so it can be a program name with args.
6108set dummy dlltool; ac_word=$2
6109{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6110printf %s "checking for $ac_word... " >&6; }
6111if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6112then :
6113  printf %s "(cached) " >&6
6114else $as_nop
6115  if test -n "$ac_ct_DLLTOOL"; then
6116  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6117else
6118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6119for as_dir in $PATH
6120do
6121  IFS=$as_save_IFS
6122  case $as_dir in #(((
6123    '') as_dir=./ ;;
6124    */) ;;
6125    *) as_dir=$as_dir/ ;;
6126  esac
6127    for ac_exec_ext in '' $ac_executable_extensions; do
6128  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6129    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6130    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6131    break 2
6132  fi
6133done
6134  done
6135IFS=$as_save_IFS
6136
6137fi
6138fi
6139ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6140if test -n "$ac_ct_DLLTOOL"; then
6141  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6142printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6143else
6144  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6145printf "%s\n" "no" >&6; }
6146fi
6147
6148  if test "x$ac_ct_DLLTOOL" = x; then
6149    DLLTOOL="false"
6150  else
6151    case $cross_compiling:$ac_tool_warned in
6152yes:)
6153{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6154printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6155ac_tool_warned=yes ;;
6156esac
6157    DLLTOOL=$ac_ct_DLLTOOL
6158  fi
6159else
6160  DLLTOOL="$ac_cv_prog_DLLTOOL"
6161fi
6162
6163test -z "$DLLTOOL" && DLLTOOL=dlltool
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6175printf %s "checking how to associate runtime and link libraries... " >&6; }
6176if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6177then :
6178  printf %s "(cached) " >&6
6179else $as_nop
6180  lt_cv_sharedlib_from_linklib_cmd='unknown'
6181
6182case $host_os in
6183cygwin* | mingw* | pw32* | cegcc*)
6184  # two different shell functions defined in ltmain.sh;
6185  # decide which one to use based on capabilities of $DLLTOOL
6186  case `$DLLTOOL --help 2>&1` in
6187  *--identify-strict*)
6188    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6189    ;;
6190  *)
6191    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6192    ;;
6193  esac
6194  ;;
6195*)
6196  # fallback: assume linklib IS sharedlib
6197  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6198  ;;
6199esac
6200
6201fi
6202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6203printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6204sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6205test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6206
6207
6208
6209
6210
6211
6212
6213
6214if test -n "$ac_tool_prefix"; then
6215  for ac_prog in ar
6216  do
6217    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6218set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6219{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6220printf %s "checking for $ac_word... " >&6; }
6221if test ${ac_cv_prog_AR+y}
6222then :
6223  printf %s "(cached) " >&6
6224else $as_nop
6225  if test -n "$AR"; then
6226  ac_cv_prog_AR="$AR" # Let the user override the test.
6227else
6228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6229for as_dir in $PATH
6230do
6231  IFS=$as_save_IFS
6232  case $as_dir in #(((
6233    '') as_dir=./ ;;
6234    */) ;;
6235    *) as_dir=$as_dir/ ;;
6236  esac
6237    for ac_exec_ext in '' $ac_executable_extensions; do
6238  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6239    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6240    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6241    break 2
6242  fi
6243done
6244  done
6245IFS=$as_save_IFS
6246
6247fi
6248fi
6249AR=$ac_cv_prog_AR
6250if test -n "$AR"; then
6251  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6252printf "%s\n" "$AR" >&6; }
6253else
6254  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6255printf "%s\n" "no" >&6; }
6256fi
6257
6258
6259    test -n "$AR" && break
6260  done
6261fi
6262if test -z "$AR"; then
6263  ac_ct_AR=$AR
6264  for ac_prog in ar
6265do
6266  # Extract the first word of "$ac_prog", so it can be a program name with args.
6267set dummy $ac_prog; ac_word=$2
6268{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6269printf %s "checking for $ac_word... " >&6; }
6270if test ${ac_cv_prog_ac_ct_AR+y}
6271then :
6272  printf %s "(cached) " >&6
6273else $as_nop
6274  if test -n "$ac_ct_AR"; then
6275  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6276else
6277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6278for as_dir in $PATH
6279do
6280  IFS=$as_save_IFS
6281  case $as_dir in #(((
6282    '') as_dir=./ ;;
6283    */) ;;
6284    *) as_dir=$as_dir/ ;;
6285  esac
6286    for ac_exec_ext in '' $ac_executable_extensions; do
6287  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6288    ac_cv_prog_ac_ct_AR="$ac_prog"
6289    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6290    break 2
6291  fi
6292done
6293  done
6294IFS=$as_save_IFS
6295
6296fi
6297fi
6298ac_ct_AR=$ac_cv_prog_ac_ct_AR
6299if test -n "$ac_ct_AR"; then
6300  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6301printf "%s\n" "$ac_ct_AR" >&6; }
6302else
6303  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6304printf "%s\n" "no" >&6; }
6305fi
6306
6307
6308  test -n "$ac_ct_AR" && break
6309done
6310
6311  if test "x$ac_ct_AR" = x; then
6312    AR="false"
6313  else
6314    case $cross_compiling:$ac_tool_warned in
6315yes:)
6316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6317printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6318ac_tool_warned=yes ;;
6319esac
6320    AR=$ac_ct_AR
6321  fi
6322fi
6323
6324: ${AR=ar}
6325
6326
6327
6328
6329
6330
6331# Use ARFLAGS variable as AR's operation code to sync the variable naming with
6332# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6333# higher priority because thats what people were doing historically (setting
6334# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
6335# variable obsoleted/removed.
6336
6337test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6338lt_ar_flags=$AR_FLAGS
6339
6340
6341
6342
6343
6344
6345# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
6346# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6347
6348
6349
6350
6351
6352
6353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6354printf %s "checking for archiver @FILE support... " >&6; }
6355if test ${lt_cv_ar_at_file+y}
6356then :
6357  printf %s "(cached) " >&6
6358else $as_nop
6359  lt_cv_ar_at_file=no
6360   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6361/* end confdefs.h.  */
6362
6363int
6364main (void)
6365{
6366
6367  ;
6368  return 0;
6369}
6370_ACEOF
6371if ac_fn_c_try_compile "$LINENO"
6372then :
6373  echo conftest.$ac_objext > conftest.lst
6374      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6375      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6376  (eval $lt_ar_try) 2>&5
6377  ac_status=$?
6378  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6379  test $ac_status = 0; }
6380      if test 0 -eq "$ac_status"; then
6381	# Ensure the archiver fails upon bogus file names.
6382	rm -f conftest.$ac_objext libconftest.a
6383	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6384  (eval $lt_ar_try) 2>&5
6385  ac_status=$?
6386  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6387  test $ac_status = 0; }
6388	if test 0 -ne "$ac_status"; then
6389          lt_cv_ar_at_file=@
6390        fi
6391      fi
6392      rm -f conftest.* libconftest.a
6393
6394fi
6395rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6396
6397fi
6398{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6399printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6400
6401if test no = "$lt_cv_ar_at_file"; then
6402  archiver_list_spec=
6403else
6404  archiver_list_spec=$lt_cv_ar_at_file
6405fi
6406
6407
6408
6409
6410
6411
6412
6413if test -n "$ac_tool_prefix"; then
6414  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6415set dummy ${ac_tool_prefix}strip; ac_word=$2
6416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6417printf %s "checking for $ac_word... " >&6; }
6418if test ${ac_cv_prog_STRIP+y}
6419then :
6420  printf %s "(cached) " >&6
6421else $as_nop
6422  if test -n "$STRIP"; then
6423  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6424else
6425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6426for as_dir in $PATH
6427do
6428  IFS=$as_save_IFS
6429  case $as_dir in #(((
6430    '') as_dir=./ ;;
6431    */) ;;
6432    *) as_dir=$as_dir/ ;;
6433  esac
6434    for ac_exec_ext in '' $ac_executable_extensions; do
6435  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6436    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6437    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6438    break 2
6439  fi
6440done
6441  done
6442IFS=$as_save_IFS
6443
6444fi
6445fi
6446STRIP=$ac_cv_prog_STRIP
6447if test -n "$STRIP"; then
6448  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6449printf "%s\n" "$STRIP" >&6; }
6450else
6451  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6452printf "%s\n" "no" >&6; }
6453fi
6454
6455
6456fi
6457if test -z "$ac_cv_prog_STRIP"; then
6458  ac_ct_STRIP=$STRIP
6459  # Extract the first word of "strip", so it can be a program name with args.
6460set dummy strip; ac_word=$2
6461{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6462printf %s "checking for $ac_word... " >&6; }
6463if test ${ac_cv_prog_ac_ct_STRIP+y}
6464then :
6465  printf %s "(cached) " >&6
6466else $as_nop
6467  if test -n "$ac_ct_STRIP"; then
6468  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6469else
6470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6471for as_dir in $PATH
6472do
6473  IFS=$as_save_IFS
6474  case $as_dir in #(((
6475    '') as_dir=./ ;;
6476    */) ;;
6477    *) as_dir=$as_dir/ ;;
6478  esac
6479    for ac_exec_ext in '' $ac_executable_extensions; do
6480  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6481    ac_cv_prog_ac_ct_STRIP="strip"
6482    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6483    break 2
6484  fi
6485done
6486  done
6487IFS=$as_save_IFS
6488
6489fi
6490fi
6491ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6492if test -n "$ac_ct_STRIP"; then
6493  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6494printf "%s\n" "$ac_ct_STRIP" >&6; }
6495else
6496  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6497printf "%s\n" "no" >&6; }
6498fi
6499
6500  if test "x$ac_ct_STRIP" = x; then
6501    STRIP=":"
6502  else
6503    case $cross_compiling:$ac_tool_warned in
6504yes:)
6505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6506printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6507ac_tool_warned=yes ;;
6508esac
6509    STRIP=$ac_ct_STRIP
6510  fi
6511else
6512  STRIP="$ac_cv_prog_STRIP"
6513fi
6514
6515test -z "$STRIP" && STRIP=:
6516
6517
6518
6519
6520
6521
6522if test -n "$ac_tool_prefix"; then
6523  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6524set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6525{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6526printf %s "checking for $ac_word... " >&6; }
6527if test ${ac_cv_prog_RANLIB+y}
6528then :
6529  printf %s "(cached) " >&6
6530else $as_nop
6531  if test -n "$RANLIB"; then
6532  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6533else
6534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6535for as_dir in $PATH
6536do
6537  IFS=$as_save_IFS
6538  case $as_dir in #(((
6539    '') as_dir=./ ;;
6540    */) ;;
6541    *) as_dir=$as_dir/ ;;
6542  esac
6543    for ac_exec_ext in '' $ac_executable_extensions; do
6544  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6545    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6546    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6547    break 2
6548  fi
6549done
6550  done
6551IFS=$as_save_IFS
6552
6553fi
6554fi
6555RANLIB=$ac_cv_prog_RANLIB
6556if test -n "$RANLIB"; then
6557  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6558printf "%s\n" "$RANLIB" >&6; }
6559else
6560  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6561printf "%s\n" "no" >&6; }
6562fi
6563
6564
6565fi
6566if test -z "$ac_cv_prog_RANLIB"; then
6567  ac_ct_RANLIB=$RANLIB
6568  # Extract the first word of "ranlib", so it can be a program name with args.
6569set dummy ranlib; ac_word=$2
6570{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6571printf %s "checking for $ac_word... " >&6; }
6572if test ${ac_cv_prog_ac_ct_RANLIB+y}
6573then :
6574  printf %s "(cached) " >&6
6575else $as_nop
6576  if test -n "$ac_ct_RANLIB"; then
6577  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6578else
6579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6580for as_dir in $PATH
6581do
6582  IFS=$as_save_IFS
6583  case $as_dir in #(((
6584    '') as_dir=./ ;;
6585    */) ;;
6586    *) as_dir=$as_dir/ ;;
6587  esac
6588    for ac_exec_ext in '' $ac_executable_extensions; do
6589  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6590    ac_cv_prog_ac_ct_RANLIB="ranlib"
6591    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6592    break 2
6593  fi
6594done
6595  done
6596IFS=$as_save_IFS
6597
6598fi
6599fi
6600ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6601if test -n "$ac_ct_RANLIB"; then
6602  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6603printf "%s\n" "$ac_ct_RANLIB" >&6; }
6604else
6605  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6606printf "%s\n" "no" >&6; }
6607fi
6608
6609  if test "x$ac_ct_RANLIB" = x; then
6610    RANLIB=":"
6611  else
6612    case $cross_compiling:$ac_tool_warned in
6613yes:)
6614{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6615printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6616ac_tool_warned=yes ;;
6617esac
6618    RANLIB=$ac_ct_RANLIB
6619  fi
6620else
6621  RANLIB="$ac_cv_prog_RANLIB"
6622fi
6623
6624test -z "$RANLIB" && RANLIB=:
6625
6626
6627
6628
6629
6630
6631# Determine commands to create old-style static archives.
6632old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6633old_postinstall_cmds='chmod 644 $oldlib'
6634old_postuninstall_cmds=
6635
6636if test -n "$RANLIB"; then
6637  case $host_os in
6638  bitrig* | openbsd*)
6639    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6640    ;;
6641  *)
6642    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6643    ;;
6644  esac
6645  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6646fi
6647
6648case $host_os in
6649  darwin*)
6650    lock_old_archive_extraction=yes ;;
6651  *)
6652    lock_old_archive_extraction=no ;;
6653esac
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693# If no C compiler was specified, use CC.
6694LTCC=${LTCC-"$CC"}
6695
6696# If no C compiler flags were specified, use CFLAGS.
6697LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6698
6699# Allow CC to be a program name with arguments.
6700compiler=$CC
6701
6702
6703# Check for command to grab the raw symbol name followed by C symbol from nm.
6704{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6705printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6706if test ${lt_cv_sys_global_symbol_pipe+y}
6707then :
6708  printf %s "(cached) " >&6
6709else $as_nop
6710
6711# These are sane defaults that work on at least a few old systems.
6712# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6713
6714# Character class describing NM global symbol codes.
6715symcode='[BCDEGRST]'
6716
6717# Regexp to match symbols that can be accessed directly from C.
6718sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6719
6720# Define system-specific variables.
6721case $host_os in
6722aix*)
6723  symcode='[BCDT]'
6724  ;;
6725cygwin* | mingw* | pw32* | cegcc*)
6726  symcode='[ABCDGISTW]'
6727  ;;
6728hpux*)
6729  if test ia64 = "$host_cpu"; then
6730    symcode='[ABCDEGRST]'
6731  fi
6732  ;;
6733irix* | nonstopux*)
6734  symcode='[BCDEGRST]'
6735  ;;
6736osf*)
6737  symcode='[BCDEGQRST]'
6738  ;;
6739solaris*)
6740  symcode='[BDRT]'
6741  ;;
6742sco3.2v5*)
6743  symcode='[DT]'
6744  ;;
6745sysv4.2uw2*)
6746  symcode='[DT]'
6747  ;;
6748sysv5* | sco5v6* | unixware* | OpenUNIX*)
6749  symcode='[ABDT]'
6750  ;;
6751sysv4)
6752  symcode='[DFNSTU]'
6753  ;;
6754esac
6755
6756# If we're using GNU nm, then use its standard symbol codes.
6757case `$NM -V 2>&1` in
6758*GNU* | *'with BFD'*)
6759  symcode='[ABCDGIRSTW]' ;;
6760esac
6761
6762if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6763  # Gets list of data symbols to import.
6764  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6765  # Adjust the below global symbol transforms to fixup imported variables.
6766  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6767  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6768  lt_c_name_lib_hook="\
6769  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6770  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6771else
6772  # Disable hooks by default.
6773  lt_cv_sys_global_symbol_to_import=
6774  lt_cdecl_hook=
6775  lt_c_name_hook=
6776  lt_c_name_lib_hook=
6777fi
6778
6779# Transform an extracted symbol line into a proper C declaration.
6780# Some systems (esp. on ia64) link data and code symbols differently,
6781# so use this general approach.
6782lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6783$lt_cdecl_hook\
6784" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6785" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6786
6787# Transform an extracted symbol line into symbol name and symbol address
6788lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6789$lt_c_name_hook\
6790" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6791" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6792
6793# Transform an extracted symbol line into symbol name with lib prefix and
6794# symbol address.
6795lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6796$lt_c_name_lib_hook\
6797" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6798" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6799" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6800
6801# Handle CRLF in mingw tool chain
6802opt_cr=
6803case $build_os in
6804mingw*)
6805  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6806  ;;
6807esac
6808
6809# Try without a prefix underscore, then with it.
6810for ac_symprfx in "" "_"; do
6811
6812  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6813  symxfrm="\\1 $ac_symprfx\\2 \\2"
6814
6815  # Write the raw and C identifiers.
6816  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6817    # Fake it for dumpbin and say T for any non-static function,
6818    # D for any global variable and I for any imported variable.
6819    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
6820    # which start with @ or ?.
6821    lt_cv_sys_global_symbol_pipe="$AWK '"\
6822"     {last_section=section; section=\$ 3};"\
6823"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6824"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6825"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6826"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6827"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6828"     \$ 0!~/External *\|/{next};"\
6829"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6830"     {if(hide[section]) next};"\
6831"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6832"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6833"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6834"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6835"     ' prfx=^$ac_symprfx"
6836  else
6837    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6838  fi
6839  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6840
6841  # Check to see that the pipe works correctly.
6842  pipe_works=no
6843
6844  rm -f conftest*
6845  cat > conftest.$ac_ext <<_LT_EOF
6846#ifdef __cplusplus
6847extern "C" {
6848#endif
6849char nm_test_var;
6850void nm_test_func(void);
6851void nm_test_func(void){}
6852#ifdef __cplusplus
6853}
6854#endif
6855int main(){nm_test_var='a';nm_test_func();return(0);}
6856_LT_EOF
6857
6858  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6859  (eval $ac_compile) 2>&5
6860  ac_status=$?
6861  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6862  test $ac_status = 0; }; then
6863    # Now try to grab the symbols.
6864    nlist=conftest.nm
6865    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6866  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6867  ac_status=$?
6868  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6869  test $ac_status = 0; } && test -s "$nlist"; then
6870      # Try sorting and uniquifying the output.
6871      if sort "$nlist" | uniq > "$nlist"T; then
6872	mv -f "$nlist"T "$nlist"
6873      else
6874	rm -f "$nlist"T
6875      fi
6876
6877      # Make sure that we snagged all the symbols we need.
6878      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6879	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6880	  cat <<_LT_EOF > conftest.$ac_ext
6881/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6882#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6883/* DATA imports from DLLs on WIN32 can't be const, because runtime
6884   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6885# define LT_DLSYM_CONST
6886#elif defined __osf__
6887/* This system does not cope well with relocations in const data.  */
6888# define LT_DLSYM_CONST
6889#else
6890# define LT_DLSYM_CONST const
6891#endif
6892
6893#ifdef __cplusplus
6894extern "C" {
6895#endif
6896
6897_LT_EOF
6898	  # Now generate the symbol file.
6899	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6900
6901	  cat <<_LT_EOF >> conftest.$ac_ext
6902
6903/* The mapping between symbol names and symbols.  */
6904LT_DLSYM_CONST struct {
6905  const char *name;
6906  void       *address;
6907}
6908lt__PROGRAM__LTX_preloaded_symbols[] =
6909{
6910  { "@PROGRAM@", (void *) 0 },
6911_LT_EOF
6912	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6913	  cat <<\_LT_EOF >> conftest.$ac_ext
6914  {0, (void *) 0}
6915};
6916
6917/* This works around a problem in FreeBSD linker */
6918#ifdef FREEBSD_WORKAROUND
6919static const void *lt_preloaded_setup() {
6920  return lt__PROGRAM__LTX_preloaded_symbols;
6921}
6922#endif
6923
6924#ifdef __cplusplus
6925}
6926#endif
6927_LT_EOF
6928	  # Now try linking the two files.
6929	  mv conftest.$ac_objext conftstm.$ac_objext
6930	  lt_globsym_save_LIBS=$LIBS
6931	  lt_globsym_save_CFLAGS=$CFLAGS
6932	  LIBS=conftstm.$ac_objext
6933	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6934	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6935  (eval $ac_link) 2>&5
6936  ac_status=$?
6937  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6938  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6939	    pipe_works=yes
6940	  fi
6941	  LIBS=$lt_globsym_save_LIBS
6942	  CFLAGS=$lt_globsym_save_CFLAGS
6943	else
6944	  echo "cannot find nm_test_func in $nlist" >&5
6945	fi
6946      else
6947	echo "cannot find nm_test_var in $nlist" >&5
6948      fi
6949    else
6950      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6951    fi
6952  else
6953    echo "$progname: failed program was:" >&5
6954    cat conftest.$ac_ext >&5
6955  fi
6956  rm -rf conftest* conftst*
6957
6958  # Do not use the global_symbol_pipe unless it works.
6959  if test yes = "$pipe_works"; then
6960    break
6961  else
6962    lt_cv_sys_global_symbol_pipe=
6963  fi
6964done
6965
6966fi
6967
6968if test -z "$lt_cv_sys_global_symbol_pipe"; then
6969  lt_cv_sys_global_symbol_to_cdecl=
6970fi
6971if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6972  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6973printf "%s\n" "failed" >&6; }
6974else
6975  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6976printf "%s\n" "ok" >&6; }
6977fi
6978
6979# Response file support.
6980if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6981  nm_file_list_spec='@'
6982elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6983  nm_file_list_spec='@'
6984fi
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7023printf %s "checking for sysroot... " >&6; }
7024
7025# Check whether --with-sysroot was given.
7026if test ${with_sysroot+y}
7027then :
7028  withval=$with_sysroot;
7029else $as_nop
7030  with_sysroot=no
7031fi
7032
7033
7034lt_sysroot=
7035case $with_sysroot in #(
7036 yes)
7037   if test yes = "$GCC"; then
7038     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7039   fi
7040   ;; #(
7041 /*)
7042   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7043   ;; #(
7044 no|'')
7045   ;; #(
7046 *)
7047   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7048printf "%s\n" "$with_sysroot" >&6; }
7049   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7050   ;;
7051esac
7052
7053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7054printf "%s\n" "${lt_sysroot:-no}" >&6; }
7055
7056
7057
7058
7059
7060{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7061printf %s "checking for a working dd... " >&6; }
7062if test ${ac_cv_path_lt_DD+y}
7063then :
7064  printf %s "(cached) " >&6
7065else $as_nop
7066  printf 0123456789abcdef0123456789abcdef >conftest.i
7067cat conftest.i conftest.i >conftest2.i
7068: ${lt_DD:=$DD}
7069if test -z "$lt_DD"; then
7070  ac_path_lt_DD_found=false
7071  # Loop through the user's path and test for each of PROGNAME-LIST
7072  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7073for as_dir in $PATH
7074do
7075  IFS=$as_save_IFS
7076  case $as_dir in #(((
7077    '') as_dir=./ ;;
7078    */) ;;
7079    *) as_dir=$as_dir/ ;;
7080  esac
7081    for ac_prog in dd
7082   do
7083    for ac_exec_ext in '' $ac_executable_extensions; do
7084      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7085      as_fn_executable_p "$ac_path_lt_DD" || continue
7086if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7087  cmp -s conftest.i conftest.out \
7088  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7089fi
7090      $ac_path_lt_DD_found && break 3
7091    done
7092  done
7093  done
7094IFS=$as_save_IFS
7095  if test -z "$ac_cv_path_lt_DD"; then
7096    :
7097  fi
7098else
7099  ac_cv_path_lt_DD=$lt_DD
7100fi
7101
7102rm -f conftest.i conftest2.i conftest.out
7103fi
7104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7105printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7106
7107
7108{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7109printf %s "checking how to truncate binary pipes... " >&6; }
7110if test ${lt_cv_truncate_bin+y}
7111then :
7112  printf %s "(cached) " >&6
7113else $as_nop
7114  printf 0123456789abcdef0123456789abcdef >conftest.i
7115cat conftest.i conftest.i >conftest2.i
7116lt_cv_truncate_bin=
7117if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7118  cmp -s conftest.i conftest.out \
7119  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7120fi
7121rm -f conftest.i conftest2.i conftest.out
7122test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7123fi
7124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7125printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7126
7127
7128
7129
7130
7131
7132
7133# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7134func_cc_basename ()
7135{
7136    for cc_temp in $*""; do
7137      case $cc_temp in
7138        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7139        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7140        \-*) ;;
7141        *) break;;
7142      esac
7143    done
7144    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7145}
7146
7147# Check whether --enable-libtool-lock was given.
7148if test ${enable_libtool_lock+y}
7149then :
7150  enableval=$enable_libtool_lock;
7151fi
7152
7153test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7154
7155# Some flags need to be propagated to the compiler or linker for good
7156# libtool support.
7157case $host in
7158ia64-*-hpux*)
7159  # Find out what ABI is being produced by ac_compile, and set mode
7160  # options accordingly.
7161  echo 'int i;' > conftest.$ac_ext
7162  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7163  (eval $ac_compile) 2>&5
7164  ac_status=$?
7165  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7166  test $ac_status = 0; }; then
7167    case `/usr/bin/file conftest.$ac_objext` in
7168      *ELF-32*)
7169	HPUX_IA64_MODE=32
7170	;;
7171      *ELF-64*)
7172	HPUX_IA64_MODE=64
7173	;;
7174    esac
7175  fi
7176  rm -rf conftest*
7177  ;;
7178*-*-irix6*)
7179  # Find out what ABI is being produced by ac_compile, and set linker
7180  # options accordingly.
7181  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7182  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7183  (eval $ac_compile) 2>&5
7184  ac_status=$?
7185  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7186  test $ac_status = 0; }; then
7187    if test yes = "$lt_cv_prog_gnu_ld"; then
7188      case `/usr/bin/file conftest.$ac_objext` in
7189	*32-bit*)
7190	  LD="${LD-ld} -melf32bsmip"
7191	  ;;
7192	*N32*)
7193	  LD="${LD-ld} -melf32bmipn32"
7194	  ;;
7195	*64-bit*)
7196	  LD="${LD-ld} -melf64bmip"
7197	;;
7198      esac
7199    else
7200      case `/usr/bin/file conftest.$ac_objext` in
7201	*32-bit*)
7202	  LD="${LD-ld} -32"
7203	  ;;
7204	*N32*)
7205	  LD="${LD-ld} -n32"
7206	  ;;
7207	*64-bit*)
7208	  LD="${LD-ld} -64"
7209	  ;;
7210      esac
7211    fi
7212  fi
7213  rm -rf conftest*
7214  ;;
7215
7216mips64*-*linux*)
7217  # Find out what ABI is being produced by ac_compile, and set linker
7218  # options accordingly.
7219  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7220  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7221  (eval $ac_compile) 2>&5
7222  ac_status=$?
7223  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7224  test $ac_status = 0; }; then
7225    emul=elf
7226    case `/usr/bin/file conftest.$ac_objext` in
7227      *32-bit*)
7228	emul="${emul}32"
7229	;;
7230      *64-bit*)
7231	emul="${emul}64"
7232	;;
7233    esac
7234    case `/usr/bin/file conftest.$ac_objext` in
7235      *MSB*)
7236	emul="${emul}btsmip"
7237	;;
7238      *LSB*)
7239	emul="${emul}ltsmip"
7240	;;
7241    esac
7242    case `/usr/bin/file conftest.$ac_objext` in
7243      *N32*)
7244	emul="${emul}n32"
7245	;;
7246    esac
7247    LD="${LD-ld} -m $emul"
7248  fi
7249  rm -rf conftest*
7250  ;;
7251
7252x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7253s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7254  # Find out what ABI is being produced by ac_compile, and set linker
7255  # options accordingly.  Note that the listed cases only cover the
7256  # situations where additional linker options are needed (such as when
7257  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7258  # vice versa); the common cases where no linker options are needed do
7259  # not appear in the list.
7260  echo 'int i;' > conftest.$ac_ext
7261  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7262  (eval $ac_compile) 2>&5
7263  ac_status=$?
7264  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7265  test $ac_status = 0; }; then
7266    case `/usr/bin/file conftest.o` in
7267      *32-bit*)
7268	case $host in
7269	  x86_64-*kfreebsd*-gnu)
7270	    LD="${LD-ld} -m elf_i386_fbsd"
7271	    ;;
7272	  x86_64-*linux*)
7273	    case `/usr/bin/file conftest.o` in
7274	      *x86-64*)
7275		LD="${LD-ld} -m elf32_x86_64"
7276		;;
7277	      *)
7278		LD="${LD-ld} -m elf_i386"
7279		;;
7280	    esac
7281	    ;;
7282	  powerpc64le-*linux*)
7283	    LD="${LD-ld} -m elf32lppclinux"
7284	    ;;
7285	  powerpc64-*linux*)
7286	    LD="${LD-ld} -m elf32ppclinux"
7287	    ;;
7288	  s390x-*linux*)
7289	    LD="${LD-ld} -m elf_s390"
7290	    ;;
7291	  sparc64-*linux*)
7292	    LD="${LD-ld} -m elf32_sparc"
7293	    ;;
7294	esac
7295	;;
7296      *64-bit*)
7297	case $host in
7298	  x86_64-*kfreebsd*-gnu)
7299	    LD="${LD-ld} -m elf_x86_64_fbsd"
7300	    ;;
7301	  x86_64-*linux*)
7302	    LD="${LD-ld} -m elf_x86_64"
7303	    ;;
7304	  powerpcle-*linux*)
7305	    LD="${LD-ld} -m elf64lppc"
7306	    ;;
7307	  powerpc-*linux*)
7308	    LD="${LD-ld} -m elf64ppc"
7309	    ;;
7310	  s390*-*linux*|s390*-*tpf*)
7311	    LD="${LD-ld} -m elf64_s390"
7312	    ;;
7313	  sparc*-*linux*)
7314	    LD="${LD-ld} -m elf64_sparc"
7315	    ;;
7316	esac
7317	;;
7318    esac
7319  fi
7320  rm -rf conftest*
7321  ;;
7322
7323*-*-sco3.2v5*)
7324  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7325  SAVE_CFLAGS=$CFLAGS
7326  CFLAGS="$CFLAGS -belf"
7327  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7328printf %s "checking whether the C compiler needs -belf... " >&6; }
7329if test ${lt_cv_cc_needs_belf+y}
7330then :
7331  printf %s "(cached) " >&6
7332else $as_nop
7333  ac_ext=c
7334ac_cpp='$CPP $CPPFLAGS'
7335ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7336ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7337ac_compiler_gnu=$ac_cv_c_compiler_gnu
7338
7339     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7340/* end confdefs.h.  */
7341
7342int
7343main (void)
7344{
7345
7346  ;
7347  return 0;
7348}
7349_ACEOF
7350if ac_fn_c_try_link "$LINENO"
7351then :
7352  lt_cv_cc_needs_belf=yes
7353else $as_nop
7354  lt_cv_cc_needs_belf=no
7355fi
7356rm -f core conftest.err conftest.$ac_objext conftest.beam \
7357    conftest$ac_exeext conftest.$ac_ext
7358     ac_ext=c
7359ac_cpp='$CPP $CPPFLAGS'
7360ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7361ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7362ac_compiler_gnu=$ac_cv_c_compiler_gnu
7363
7364fi
7365{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7366printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7367  if test yes != "$lt_cv_cc_needs_belf"; then
7368    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7369    CFLAGS=$SAVE_CFLAGS
7370  fi
7371  ;;
7372*-*solaris*)
7373  # Find out what ABI is being produced by ac_compile, and set linker
7374  # options accordingly.
7375  echo 'int i;' > conftest.$ac_ext
7376  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7377  (eval $ac_compile) 2>&5
7378  ac_status=$?
7379  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7380  test $ac_status = 0; }; then
7381    case `/usr/bin/file conftest.o` in
7382    *64-bit*)
7383      case $lt_cv_prog_gnu_ld in
7384      yes*)
7385        case $host in
7386        i?86-*-solaris*|x86_64-*-solaris*)
7387          LD="${LD-ld} -m elf_x86_64"
7388          ;;
7389        sparc*-*-solaris*)
7390          LD="${LD-ld} -m elf64_sparc"
7391          ;;
7392        esac
7393        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7394        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7395          LD=${LD-ld}_sol2
7396        fi
7397        ;;
7398      *)
7399	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7400	  LD="${LD-ld} -64"
7401	fi
7402	;;
7403      esac
7404      ;;
7405    esac
7406  fi
7407  rm -rf conftest*
7408  ;;
7409esac
7410
7411need_locks=$enable_libtool_lock
7412
7413if test -n "$ac_tool_prefix"; then
7414  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7415set dummy ${ac_tool_prefix}mt; ac_word=$2
7416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7417printf %s "checking for $ac_word... " >&6; }
7418if test ${ac_cv_prog_MANIFEST_TOOL+y}
7419then :
7420  printf %s "(cached) " >&6
7421else $as_nop
7422  if test -n "$MANIFEST_TOOL"; then
7423  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7424else
7425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7426for as_dir in $PATH
7427do
7428  IFS=$as_save_IFS
7429  case $as_dir in #(((
7430    '') as_dir=./ ;;
7431    */) ;;
7432    *) as_dir=$as_dir/ ;;
7433  esac
7434    for ac_exec_ext in '' $ac_executable_extensions; do
7435  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7436    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7437    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7438    break 2
7439  fi
7440done
7441  done
7442IFS=$as_save_IFS
7443
7444fi
7445fi
7446MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7447if test -n "$MANIFEST_TOOL"; then
7448  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7449printf "%s\n" "$MANIFEST_TOOL" >&6; }
7450else
7451  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7452printf "%s\n" "no" >&6; }
7453fi
7454
7455
7456fi
7457if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7458  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7459  # Extract the first word of "mt", so it can be a program name with args.
7460set dummy mt; ac_word=$2
7461{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7462printf %s "checking for $ac_word... " >&6; }
7463if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7464then :
7465  printf %s "(cached) " >&6
7466else $as_nop
7467  if test -n "$ac_ct_MANIFEST_TOOL"; then
7468  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7469else
7470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7471for as_dir in $PATH
7472do
7473  IFS=$as_save_IFS
7474  case $as_dir in #(((
7475    '') as_dir=./ ;;
7476    */) ;;
7477    *) as_dir=$as_dir/ ;;
7478  esac
7479    for ac_exec_ext in '' $ac_executable_extensions; do
7480  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7481    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7482    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7483    break 2
7484  fi
7485done
7486  done
7487IFS=$as_save_IFS
7488
7489fi
7490fi
7491ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7492if test -n "$ac_ct_MANIFEST_TOOL"; then
7493  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7494printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7495else
7496  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7497printf "%s\n" "no" >&6; }
7498fi
7499
7500  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7501    MANIFEST_TOOL=":"
7502  else
7503    case $cross_compiling:$ac_tool_warned in
7504yes:)
7505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7506printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7507ac_tool_warned=yes ;;
7508esac
7509    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7510  fi
7511else
7512  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7513fi
7514
7515test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7516{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7517printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7518if test ${lt_cv_path_mainfest_tool+y}
7519then :
7520  printf %s "(cached) " >&6
7521else $as_nop
7522  lt_cv_path_mainfest_tool=no
7523  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7524  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7525  cat conftest.err >&5
7526  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7527    lt_cv_path_mainfest_tool=yes
7528  fi
7529  rm -f conftest*
7530fi
7531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7532printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7533if test yes != "$lt_cv_path_mainfest_tool"; then
7534  MANIFEST_TOOL=:
7535fi
7536
7537
7538
7539
7540
7541
7542  case $host_os in
7543    rhapsody* | darwin*)
7544    if test -n "$ac_tool_prefix"; then
7545  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7546set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7547{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7548printf %s "checking for $ac_word... " >&6; }
7549if test ${ac_cv_prog_DSYMUTIL+y}
7550then :
7551  printf %s "(cached) " >&6
7552else $as_nop
7553  if test -n "$DSYMUTIL"; then
7554  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7555else
7556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7557for as_dir in $PATH
7558do
7559  IFS=$as_save_IFS
7560  case $as_dir in #(((
7561    '') as_dir=./ ;;
7562    */) ;;
7563    *) as_dir=$as_dir/ ;;
7564  esac
7565    for ac_exec_ext in '' $ac_executable_extensions; do
7566  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7567    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7568    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7569    break 2
7570  fi
7571done
7572  done
7573IFS=$as_save_IFS
7574
7575fi
7576fi
7577DSYMUTIL=$ac_cv_prog_DSYMUTIL
7578if test -n "$DSYMUTIL"; then
7579  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7580printf "%s\n" "$DSYMUTIL" >&6; }
7581else
7582  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7583printf "%s\n" "no" >&6; }
7584fi
7585
7586
7587fi
7588if test -z "$ac_cv_prog_DSYMUTIL"; then
7589  ac_ct_DSYMUTIL=$DSYMUTIL
7590  # Extract the first word of "dsymutil", so it can be a program name with args.
7591set dummy dsymutil; ac_word=$2
7592{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7593printf %s "checking for $ac_word... " >&6; }
7594if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7595then :
7596  printf %s "(cached) " >&6
7597else $as_nop
7598  if test -n "$ac_ct_DSYMUTIL"; then
7599  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7600else
7601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7602for as_dir in $PATH
7603do
7604  IFS=$as_save_IFS
7605  case $as_dir in #(((
7606    '') as_dir=./ ;;
7607    */) ;;
7608    *) as_dir=$as_dir/ ;;
7609  esac
7610    for ac_exec_ext in '' $ac_executable_extensions; do
7611  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7612    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7613    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7614    break 2
7615  fi
7616done
7617  done
7618IFS=$as_save_IFS
7619
7620fi
7621fi
7622ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7623if test -n "$ac_ct_DSYMUTIL"; then
7624  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7625printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7626else
7627  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7628printf "%s\n" "no" >&6; }
7629fi
7630
7631  if test "x$ac_ct_DSYMUTIL" = x; then
7632    DSYMUTIL=":"
7633  else
7634    case $cross_compiling:$ac_tool_warned in
7635yes:)
7636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7637printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7638ac_tool_warned=yes ;;
7639esac
7640    DSYMUTIL=$ac_ct_DSYMUTIL
7641  fi
7642else
7643  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7644fi
7645
7646    if test -n "$ac_tool_prefix"; then
7647  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7648set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7650printf %s "checking for $ac_word... " >&6; }
7651if test ${ac_cv_prog_NMEDIT+y}
7652then :
7653  printf %s "(cached) " >&6
7654else $as_nop
7655  if test -n "$NMEDIT"; then
7656  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7657else
7658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7659for as_dir in $PATH
7660do
7661  IFS=$as_save_IFS
7662  case $as_dir in #(((
7663    '') as_dir=./ ;;
7664    */) ;;
7665    *) as_dir=$as_dir/ ;;
7666  esac
7667    for ac_exec_ext in '' $ac_executable_extensions; do
7668  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7669    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7670    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7671    break 2
7672  fi
7673done
7674  done
7675IFS=$as_save_IFS
7676
7677fi
7678fi
7679NMEDIT=$ac_cv_prog_NMEDIT
7680if test -n "$NMEDIT"; then
7681  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7682printf "%s\n" "$NMEDIT" >&6; }
7683else
7684  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7685printf "%s\n" "no" >&6; }
7686fi
7687
7688
7689fi
7690if test -z "$ac_cv_prog_NMEDIT"; then
7691  ac_ct_NMEDIT=$NMEDIT
7692  # Extract the first word of "nmedit", so it can be a program name with args.
7693set dummy nmedit; ac_word=$2
7694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7695printf %s "checking for $ac_word... " >&6; }
7696if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7697then :
7698  printf %s "(cached) " >&6
7699else $as_nop
7700  if test -n "$ac_ct_NMEDIT"; then
7701  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7702else
7703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7704for as_dir in $PATH
7705do
7706  IFS=$as_save_IFS
7707  case $as_dir in #(((
7708    '') as_dir=./ ;;
7709    */) ;;
7710    *) as_dir=$as_dir/ ;;
7711  esac
7712    for ac_exec_ext in '' $ac_executable_extensions; do
7713  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7714    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7715    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7716    break 2
7717  fi
7718done
7719  done
7720IFS=$as_save_IFS
7721
7722fi
7723fi
7724ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7725if test -n "$ac_ct_NMEDIT"; then
7726  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7727printf "%s\n" "$ac_ct_NMEDIT" >&6; }
7728else
7729  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7730printf "%s\n" "no" >&6; }
7731fi
7732
7733  if test "x$ac_ct_NMEDIT" = x; then
7734    NMEDIT=":"
7735  else
7736    case $cross_compiling:$ac_tool_warned in
7737yes:)
7738{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7739printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7740ac_tool_warned=yes ;;
7741esac
7742    NMEDIT=$ac_ct_NMEDIT
7743  fi
7744else
7745  NMEDIT="$ac_cv_prog_NMEDIT"
7746fi
7747
7748    if test -n "$ac_tool_prefix"; then
7749  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7750set dummy ${ac_tool_prefix}lipo; ac_word=$2
7751{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7752printf %s "checking for $ac_word... " >&6; }
7753if test ${ac_cv_prog_LIPO+y}
7754then :
7755  printf %s "(cached) " >&6
7756else $as_nop
7757  if test -n "$LIPO"; then
7758  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7759else
7760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7761for as_dir in $PATH
7762do
7763  IFS=$as_save_IFS
7764  case $as_dir in #(((
7765    '') as_dir=./ ;;
7766    */) ;;
7767    *) as_dir=$as_dir/ ;;
7768  esac
7769    for ac_exec_ext in '' $ac_executable_extensions; do
7770  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7771    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7772    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7773    break 2
7774  fi
7775done
7776  done
7777IFS=$as_save_IFS
7778
7779fi
7780fi
7781LIPO=$ac_cv_prog_LIPO
7782if test -n "$LIPO"; then
7783  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7784printf "%s\n" "$LIPO" >&6; }
7785else
7786  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7787printf "%s\n" "no" >&6; }
7788fi
7789
7790
7791fi
7792if test -z "$ac_cv_prog_LIPO"; then
7793  ac_ct_LIPO=$LIPO
7794  # Extract the first word of "lipo", so it can be a program name with args.
7795set dummy lipo; ac_word=$2
7796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7797printf %s "checking for $ac_word... " >&6; }
7798if test ${ac_cv_prog_ac_ct_LIPO+y}
7799then :
7800  printf %s "(cached) " >&6
7801else $as_nop
7802  if test -n "$ac_ct_LIPO"; then
7803  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7804else
7805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7806for as_dir in $PATH
7807do
7808  IFS=$as_save_IFS
7809  case $as_dir in #(((
7810    '') as_dir=./ ;;
7811    */) ;;
7812    *) as_dir=$as_dir/ ;;
7813  esac
7814    for ac_exec_ext in '' $ac_executable_extensions; do
7815  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7816    ac_cv_prog_ac_ct_LIPO="lipo"
7817    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7818    break 2
7819  fi
7820done
7821  done
7822IFS=$as_save_IFS
7823
7824fi
7825fi
7826ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7827if test -n "$ac_ct_LIPO"; then
7828  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7829printf "%s\n" "$ac_ct_LIPO" >&6; }
7830else
7831  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7832printf "%s\n" "no" >&6; }
7833fi
7834
7835  if test "x$ac_ct_LIPO" = x; then
7836    LIPO=":"
7837  else
7838    case $cross_compiling:$ac_tool_warned in
7839yes:)
7840{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7841printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7842ac_tool_warned=yes ;;
7843esac
7844    LIPO=$ac_ct_LIPO
7845  fi
7846else
7847  LIPO="$ac_cv_prog_LIPO"
7848fi
7849
7850    if test -n "$ac_tool_prefix"; then
7851  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7852set dummy ${ac_tool_prefix}otool; ac_word=$2
7853{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7854printf %s "checking for $ac_word... " >&6; }
7855if test ${ac_cv_prog_OTOOL+y}
7856then :
7857  printf %s "(cached) " >&6
7858else $as_nop
7859  if test -n "$OTOOL"; then
7860  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7861else
7862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7863for as_dir in $PATH
7864do
7865  IFS=$as_save_IFS
7866  case $as_dir in #(((
7867    '') as_dir=./ ;;
7868    */) ;;
7869    *) as_dir=$as_dir/ ;;
7870  esac
7871    for ac_exec_ext in '' $ac_executable_extensions; do
7872  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7873    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7874    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7875    break 2
7876  fi
7877done
7878  done
7879IFS=$as_save_IFS
7880
7881fi
7882fi
7883OTOOL=$ac_cv_prog_OTOOL
7884if test -n "$OTOOL"; then
7885  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7886printf "%s\n" "$OTOOL" >&6; }
7887else
7888  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7889printf "%s\n" "no" >&6; }
7890fi
7891
7892
7893fi
7894if test -z "$ac_cv_prog_OTOOL"; then
7895  ac_ct_OTOOL=$OTOOL
7896  # Extract the first word of "otool", so it can be a program name with args.
7897set dummy otool; ac_word=$2
7898{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7899printf %s "checking for $ac_word... " >&6; }
7900if test ${ac_cv_prog_ac_ct_OTOOL+y}
7901then :
7902  printf %s "(cached) " >&6
7903else $as_nop
7904  if test -n "$ac_ct_OTOOL"; then
7905  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7906else
7907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7908for as_dir in $PATH
7909do
7910  IFS=$as_save_IFS
7911  case $as_dir in #(((
7912    '') as_dir=./ ;;
7913    */) ;;
7914    *) as_dir=$as_dir/ ;;
7915  esac
7916    for ac_exec_ext in '' $ac_executable_extensions; do
7917  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7918    ac_cv_prog_ac_ct_OTOOL="otool"
7919    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7920    break 2
7921  fi
7922done
7923  done
7924IFS=$as_save_IFS
7925
7926fi
7927fi
7928ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7929if test -n "$ac_ct_OTOOL"; then
7930  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7931printf "%s\n" "$ac_ct_OTOOL" >&6; }
7932else
7933  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7934printf "%s\n" "no" >&6; }
7935fi
7936
7937  if test "x$ac_ct_OTOOL" = x; then
7938    OTOOL=":"
7939  else
7940    case $cross_compiling:$ac_tool_warned in
7941yes:)
7942{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7943printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7944ac_tool_warned=yes ;;
7945esac
7946    OTOOL=$ac_ct_OTOOL
7947  fi
7948else
7949  OTOOL="$ac_cv_prog_OTOOL"
7950fi
7951
7952    if test -n "$ac_tool_prefix"; then
7953  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7954set dummy ${ac_tool_prefix}otool64; ac_word=$2
7955{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7956printf %s "checking for $ac_word... " >&6; }
7957if test ${ac_cv_prog_OTOOL64+y}
7958then :
7959  printf %s "(cached) " >&6
7960else $as_nop
7961  if test -n "$OTOOL64"; then
7962  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7963else
7964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7965for as_dir in $PATH
7966do
7967  IFS=$as_save_IFS
7968  case $as_dir in #(((
7969    '') as_dir=./ ;;
7970    */) ;;
7971    *) as_dir=$as_dir/ ;;
7972  esac
7973    for ac_exec_ext in '' $ac_executable_extensions; do
7974  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7975    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7976    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7977    break 2
7978  fi
7979done
7980  done
7981IFS=$as_save_IFS
7982
7983fi
7984fi
7985OTOOL64=$ac_cv_prog_OTOOL64
7986if test -n "$OTOOL64"; then
7987  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7988printf "%s\n" "$OTOOL64" >&6; }
7989else
7990  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7991printf "%s\n" "no" >&6; }
7992fi
7993
7994
7995fi
7996if test -z "$ac_cv_prog_OTOOL64"; then
7997  ac_ct_OTOOL64=$OTOOL64
7998  # Extract the first word of "otool64", so it can be a program name with args.
7999set dummy otool64; ac_word=$2
8000{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8001printf %s "checking for $ac_word... " >&6; }
8002if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8003then :
8004  printf %s "(cached) " >&6
8005else $as_nop
8006  if test -n "$ac_ct_OTOOL64"; then
8007  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8008else
8009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8010for as_dir in $PATH
8011do
8012  IFS=$as_save_IFS
8013  case $as_dir in #(((
8014    '') as_dir=./ ;;
8015    */) ;;
8016    *) as_dir=$as_dir/ ;;
8017  esac
8018    for ac_exec_ext in '' $ac_executable_extensions; do
8019  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8020    ac_cv_prog_ac_ct_OTOOL64="otool64"
8021    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8022    break 2
8023  fi
8024done
8025  done
8026IFS=$as_save_IFS
8027
8028fi
8029fi
8030ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8031if test -n "$ac_ct_OTOOL64"; then
8032  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8033printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8034else
8035  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8036printf "%s\n" "no" >&6; }
8037fi
8038
8039  if test "x$ac_ct_OTOOL64" = x; then
8040    OTOOL64=":"
8041  else
8042    case $cross_compiling:$ac_tool_warned in
8043yes:)
8044{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8045printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8046ac_tool_warned=yes ;;
8047esac
8048    OTOOL64=$ac_ct_OTOOL64
8049  fi
8050else
8051  OTOOL64="$ac_cv_prog_OTOOL64"
8052fi
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8081printf %s "checking for -single_module linker flag... " >&6; }
8082if test ${lt_cv_apple_cc_single_mod+y}
8083then :
8084  printf %s "(cached) " >&6
8085else $as_nop
8086  lt_cv_apple_cc_single_mod=no
8087      if test -z "$LT_MULTI_MODULE"; then
8088	# By default we will add the -single_module flag. You can override
8089	# by either setting the environment variable LT_MULTI_MODULE
8090	# non-empty at configure time, or by adding -multi_module to the
8091	# link flags.
8092	rm -rf libconftest.dylib*
8093	echo "int foo(void){return 1;}" > conftest.c
8094	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8095-dynamiclib -Wl,-single_module conftest.c" >&5
8096	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8097	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8098        _lt_result=$?
8099	# If there is a non-empty error log, and "single_module"
8100	# appears in it, assume the flag caused a linker warning
8101        if test -s conftest.err && $GREP single_module conftest.err; then
8102	  cat conftest.err >&5
8103	# Otherwise, if the output was created with a 0 exit code from
8104	# the compiler, it worked.
8105	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8106	  lt_cv_apple_cc_single_mod=yes
8107	else
8108	  cat conftest.err >&5
8109	fi
8110	rm -rf libconftest.dylib*
8111	rm -f conftest.*
8112      fi
8113fi
8114{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8115printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8116
8117    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8118printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8119if test ${lt_cv_ld_exported_symbols_list+y}
8120then :
8121  printf %s "(cached) " >&6
8122else $as_nop
8123  lt_cv_ld_exported_symbols_list=no
8124      save_LDFLAGS=$LDFLAGS
8125      echo "_main" > conftest.sym
8126      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8127      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8128/* end confdefs.h.  */
8129
8130int
8131main (void)
8132{
8133
8134  ;
8135  return 0;
8136}
8137_ACEOF
8138if ac_fn_c_try_link "$LINENO"
8139then :
8140  lt_cv_ld_exported_symbols_list=yes
8141else $as_nop
8142  lt_cv_ld_exported_symbols_list=no
8143fi
8144rm -f core conftest.err conftest.$ac_objext conftest.beam \
8145    conftest$ac_exeext conftest.$ac_ext
8146	LDFLAGS=$save_LDFLAGS
8147
8148fi
8149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8150printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8151
8152    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8153printf %s "checking for -force_load linker flag... " >&6; }
8154if test ${lt_cv_ld_force_load+y}
8155then :
8156  printf %s "(cached) " >&6
8157else $as_nop
8158  lt_cv_ld_force_load=no
8159      cat > conftest.c << _LT_EOF
8160int forced_loaded() { return 2;}
8161_LT_EOF
8162      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8163      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8164      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8165      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8166      echo "$RANLIB libconftest.a" >&5
8167      $RANLIB libconftest.a 2>&5
8168      cat > conftest.c << _LT_EOF
8169int main() { return 0;}
8170_LT_EOF
8171      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8172      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8173      _lt_result=$?
8174      if test -s conftest.err && $GREP force_load conftest.err; then
8175	cat conftest.err >&5
8176      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8177	lt_cv_ld_force_load=yes
8178      else
8179	cat conftest.err >&5
8180      fi
8181        rm -f conftest.err libconftest.a conftest conftest.c
8182        rm -rf conftest.dSYM
8183
8184fi
8185{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8186printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8187    case $host_os in
8188    rhapsody* | darwin1.[012])
8189      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8190    darwin1.*)
8191      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8192    darwin*) # darwin 5.x on
8193      # if running on 10.5 or later, the deployment target defaults
8194      # to the OS version, if on x86, and 10.4, the deployment
8195      # target defaults to 10.4. Don't you love it?
8196      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8197	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8198	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8199	10.[012][,.]*)
8200	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8201	10.*)
8202	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8203      esac
8204    ;;
8205  esac
8206    if test yes = "$lt_cv_apple_cc_single_mod"; then
8207      _lt_dar_single_mod='$single_module'
8208    fi
8209    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8210      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8211    else
8212      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8213    fi
8214    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8215      _lt_dsymutil='~$DSYMUTIL $lib || :'
8216    else
8217      _lt_dsymutil=
8218    fi
8219    ;;
8220  esac
8221
8222# func_munge_path_list VARIABLE PATH
8223# -----------------------------------
8224# VARIABLE is name of variable containing _space_ separated list of
8225# directories to be munged by the contents of PATH, which is string
8226# having a format:
8227# "DIR[:DIR]:"
8228#       string "DIR[ DIR]" will be prepended to VARIABLE
8229# ":DIR[:DIR]"
8230#       string "DIR[ DIR]" will be appended to VARIABLE
8231# "DIRP[:DIRP]::[DIRA:]DIRA"
8232#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8233#       "DIRA[ DIRA]" will be appended to VARIABLE
8234# "DIR[:DIR]"
8235#       VARIABLE will be replaced by "DIR[ DIR]"
8236func_munge_path_list ()
8237{
8238    case x$2 in
8239    x)
8240        ;;
8241    *:)
8242        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8243        ;;
8244    x:*)
8245        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8246        ;;
8247    *::*)
8248        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8249        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8250        ;;
8251    *)
8252        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8253        ;;
8254    esac
8255}
8256
8257ac_header= ac_cache=
8258for ac_item in $ac_header_c_list
8259do
8260  if test $ac_cache; then
8261    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8262    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8263      printf "%s\n" "#define $ac_item 1" >> confdefs.h
8264    fi
8265    ac_header= ac_cache=
8266  elif test $ac_header; then
8267    ac_cache=$ac_item
8268  else
8269    ac_header=$ac_item
8270  fi
8271done
8272
8273
8274
8275
8276
8277
8278
8279
8280if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8281then :
8282
8283printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8284
8285fi
8286ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8287"
8288if test "x$ac_cv_header_dlfcn_h" = xyes
8289then :
8290  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8291
8292fi
8293
8294
8295
8296
8297
8298# Set options
8299
8300
8301
8302
8303  enable_win32_dll=no
8304
8305
8306            # Check whether --enable-shared was given.
8307if test ${enable_shared+y}
8308then :
8309  enableval=$enable_shared; p=${PACKAGE-default}
8310    case $enableval in
8311    yes) enable_shared=yes ;;
8312    no) enable_shared=no ;;
8313    *)
8314      enable_shared=no
8315      # Look at the argument we got.  We use all the common list separators.
8316      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8317      for pkg in $enableval; do
8318	IFS=$lt_save_ifs
8319	if test "X$pkg" = "X$p"; then
8320	  enable_shared=yes
8321	fi
8322      done
8323      IFS=$lt_save_ifs
8324      ;;
8325    esac
8326else $as_nop
8327  enable_shared=yes
8328fi
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338  # Check whether --enable-static was given.
8339if test ${enable_static+y}
8340then :
8341  enableval=$enable_static; p=${PACKAGE-default}
8342    case $enableval in
8343    yes) enable_static=yes ;;
8344    no) enable_static=no ;;
8345    *)
8346     enable_static=no
8347      # Look at the argument we got.  We use all the common list separators.
8348      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8349      for pkg in $enableval; do
8350	IFS=$lt_save_ifs
8351	if test "X$pkg" = "X$p"; then
8352	  enable_static=yes
8353	fi
8354      done
8355      IFS=$lt_save_ifs
8356      ;;
8357    esac
8358else $as_nop
8359  enable_static=yes
8360fi
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371# Check whether --with-pic was given.
8372if test ${with_pic+y}
8373then :
8374  withval=$with_pic; lt_p=${PACKAGE-default}
8375    case $withval in
8376    yes|no) pic_mode=$withval ;;
8377    *)
8378      pic_mode=default
8379      # Look at the argument we got.  We use all the common list separators.
8380      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8381      for lt_pkg in $withval; do
8382	IFS=$lt_save_ifs
8383	if test "X$lt_pkg" = "X$lt_p"; then
8384	  pic_mode=yes
8385	fi
8386      done
8387      IFS=$lt_save_ifs
8388      ;;
8389    esac
8390else $as_nop
8391  pic_mode=default
8392fi
8393
8394
8395
8396
8397
8398
8399
8400
8401  # Check whether --enable-fast-install was given.
8402if test ${enable_fast_install+y}
8403then :
8404  enableval=$enable_fast_install; p=${PACKAGE-default}
8405    case $enableval in
8406    yes) enable_fast_install=yes ;;
8407    no) enable_fast_install=no ;;
8408    *)
8409      enable_fast_install=no
8410      # Look at the argument we got.  We use all the common list separators.
8411      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8412      for pkg in $enableval; do
8413	IFS=$lt_save_ifs
8414	if test "X$pkg" = "X$p"; then
8415	  enable_fast_install=yes
8416	fi
8417      done
8418      IFS=$lt_save_ifs
8419      ;;
8420    esac
8421else $as_nop
8422  enable_fast_install=yes
8423fi
8424
8425
8426
8427
8428
8429
8430
8431
8432  shared_archive_member_spec=
8433case $host,$enable_shared in
8434power*-*-aix[5-9]*,yes)
8435  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8436printf %s "checking which variant of shared library versioning to provide... " >&6; }
8437
8438# Check whether --with-aix-soname was given.
8439if test ${with_aix_soname+y}
8440then :
8441  withval=$with_aix_soname; case $withval in
8442    aix|svr4|both)
8443      ;;
8444    *)
8445      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8446      ;;
8447    esac
8448    lt_cv_with_aix_soname=$with_aix_soname
8449else $as_nop
8450  if test ${lt_cv_with_aix_soname+y}
8451then :
8452  printf %s "(cached) " >&6
8453else $as_nop
8454  lt_cv_with_aix_soname=aix
8455fi
8456
8457    with_aix_soname=$lt_cv_with_aix_soname
8458fi
8459
8460  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8461printf "%s\n" "$with_aix_soname" >&6; }
8462  if test aix != "$with_aix_soname"; then
8463    # For the AIX way of multilib, we name the shared archive member
8464    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8465    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8466    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8467    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8468    if test 64 = "${OBJECT_MODE-32}"; then
8469      shared_archive_member_spec=shr_64
8470    else
8471      shared_archive_member_spec=shr
8472    fi
8473  fi
8474  ;;
8475*)
8476  with_aix_soname=aix
8477  ;;
8478esac
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489# This can be used to rebuild libtool when needed
8490LIBTOOL_DEPS=$ltmain
8491
8492# Always use our own libtool.
8493LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524test -z "$LN_S" && LN_S="ln -s"
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539if test -n "${ZSH_VERSION+set}"; then
8540   setopt NO_GLOB_SUBST
8541fi
8542
8543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8544printf %s "checking for objdir... " >&6; }
8545if test ${lt_cv_objdir+y}
8546then :
8547  printf %s "(cached) " >&6
8548else $as_nop
8549  rm -f .libs 2>/dev/null
8550mkdir .libs 2>/dev/null
8551if test -d .libs; then
8552  lt_cv_objdir=.libs
8553else
8554  # MS-DOS does not allow filenames that begin with a dot.
8555  lt_cv_objdir=_libs
8556fi
8557rmdir .libs 2>/dev/null
8558fi
8559{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8560printf "%s\n" "$lt_cv_objdir" >&6; }
8561objdir=$lt_cv_objdir
8562
8563
8564
8565
8566
8567printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8568
8569
8570
8571
8572case $host_os in
8573aix3*)
8574  # AIX sometimes has problems with the GCC collect2 program.  For some
8575  # reason, if we set the COLLECT_NAMES environment variable, the problems
8576  # vanish in a puff of smoke.
8577  if test set != "${COLLECT_NAMES+set}"; then
8578    COLLECT_NAMES=
8579    export COLLECT_NAMES
8580  fi
8581  ;;
8582esac
8583
8584# Global variables:
8585ofile=libtool
8586can_build_shared=yes
8587
8588# All known linkers require a '.a' archive for static linking (except MSVC and
8589# ICC, which need '.lib').
8590libext=a
8591
8592with_gnu_ld=$lt_cv_prog_gnu_ld
8593
8594old_CC=$CC
8595old_CFLAGS=$CFLAGS
8596
8597# Set sane defaults for various variables
8598test -z "$CC" && CC=cc
8599test -z "$LTCC" && LTCC=$CC
8600test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8601test -z "$LD" && LD=ld
8602test -z "$ac_objext" && ac_objext=o
8603
8604func_cc_basename $compiler
8605cc_basename=$func_cc_basename_result
8606
8607
8608# Only perform the check for file, if the check method requires it
8609test -z "$MAGIC_CMD" && MAGIC_CMD=file
8610case $deplibs_check_method in
8611file_magic*)
8612  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8613    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8614printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8615if test ${lt_cv_path_MAGIC_CMD+y}
8616then :
8617  printf %s "(cached) " >&6
8618else $as_nop
8619  case $MAGIC_CMD in
8620[\\/*] |  ?:[\\/]*)
8621  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8622  ;;
8623*)
8624  lt_save_MAGIC_CMD=$MAGIC_CMD
8625  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8626  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8627  for ac_dir in $ac_dummy; do
8628    IFS=$lt_save_ifs
8629    test -z "$ac_dir" && ac_dir=.
8630    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8631      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8632      if test -n "$file_magic_test_file"; then
8633	case $deplibs_check_method in
8634	"file_magic "*)
8635	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8636	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8637	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8638	    $EGREP "$file_magic_regex" > /dev/null; then
8639	    :
8640	  else
8641	    cat <<_LT_EOF 1>&2
8642
8643*** Warning: the command libtool uses to detect shared libraries,
8644*** $file_magic_cmd, produces output that libtool cannot recognize.
8645*** The result is that libtool may fail to recognize shared libraries
8646*** as such.  This will affect the creation of libtool libraries that
8647*** depend on shared libraries, but programs linked with such libtool
8648*** libraries will work regardless of this problem.  Nevertheless, you
8649*** may want to report the problem to your system manager and/or to
8650*** bug-libtool@gnu.org
8651
8652_LT_EOF
8653	  fi ;;
8654	esac
8655      fi
8656      break
8657    fi
8658  done
8659  IFS=$lt_save_ifs
8660  MAGIC_CMD=$lt_save_MAGIC_CMD
8661  ;;
8662esac
8663fi
8664
8665MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8666if test -n "$MAGIC_CMD"; then
8667  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8668printf "%s\n" "$MAGIC_CMD" >&6; }
8669else
8670  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8671printf "%s\n" "no" >&6; }
8672fi
8673
8674
8675
8676
8677
8678if test -z "$lt_cv_path_MAGIC_CMD"; then
8679  if test -n "$ac_tool_prefix"; then
8680    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8681printf %s "checking for file... " >&6; }
8682if test ${lt_cv_path_MAGIC_CMD+y}
8683then :
8684  printf %s "(cached) " >&6
8685else $as_nop
8686  case $MAGIC_CMD in
8687[\\/*] |  ?:[\\/]*)
8688  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8689  ;;
8690*)
8691  lt_save_MAGIC_CMD=$MAGIC_CMD
8692  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8693  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8694  for ac_dir in $ac_dummy; do
8695    IFS=$lt_save_ifs
8696    test -z "$ac_dir" && ac_dir=.
8697    if test -f "$ac_dir/file"; then
8698      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8699      if test -n "$file_magic_test_file"; then
8700	case $deplibs_check_method in
8701	"file_magic "*)
8702	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8703	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8704	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8705	    $EGREP "$file_magic_regex" > /dev/null; then
8706	    :
8707	  else
8708	    cat <<_LT_EOF 1>&2
8709
8710*** Warning: the command libtool uses to detect shared libraries,
8711*** $file_magic_cmd, produces output that libtool cannot recognize.
8712*** The result is that libtool may fail to recognize shared libraries
8713*** as such.  This will affect the creation of libtool libraries that
8714*** depend on shared libraries, but programs linked with such libtool
8715*** libraries will work regardless of this problem.  Nevertheless, you
8716*** may want to report the problem to your system manager and/or to
8717*** bug-libtool@gnu.org
8718
8719_LT_EOF
8720	  fi ;;
8721	esac
8722      fi
8723      break
8724    fi
8725  done
8726  IFS=$lt_save_ifs
8727  MAGIC_CMD=$lt_save_MAGIC_CMD
8728  ;;
8729esac
8730fi
8731
8732MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8733if test -n "$MAGIC_CMD"; then
8734  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8735printf "%s\n" "$MAGIC_CMD" >&6; }
8736else
8737  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8738printf "%s\n" "no" >&6; }
8739fi
8740
8741
8742  else
8743    MAGIC_CMD=:
8744  fi
8745fi
8746
8747  fi
8748  ;;
8749esac
8750
8751# Use C for the default configuration in the libtool script
8752
8753lt_save_CC=$CC
8754ac_ext=c
8755ac_cpp='$CPP $CPPFLAGS'
8756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8758ac_compiler_gnu=$ac_cv_c_compiler_gnu
8759
8760
8761# Source file extension for C test sources.
8762ac_ext=c
8763
8764# Object file extension for compiled C test sources.
8765objext=o
8766objext=$objext
8767
8768# Code to be used in simple compile tests
8769lt_simple_compile_test_code="int some_variable = 0;"
8770
8771# Code to be used in simple link tests
8772lt_simple_link_test_code='int main(){return(0);}'
8773
8774
8775
8776
8777
8778
8779
8780# If no C compiler was specified, use CC.
8781LTCC=${LTCC-"$CC"}
8782
8783# If no C compiler flags were specified, use CFLAGS.
8784LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8785
8786# Allow CC to be a program name with arguments.
8787compiler=$CC
8788
8789# Save the default compiler, since it gets overwritten when the other
8790# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8791compiler_DEFAULT=$CC
8792
8793# save warnings/boilerplate of simple test code
8794ac_outfile=conftest.$ac_objext
8795echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8796eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8797_lt_compiler_boilerplate=`cat conftest.err`
8798$RM conftest*
8799
8800ac_outfile=conftest.$ac_objext
8801echo "$lt_simple_link_test_code" >conftest.$ac_ext
8802eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8803_lt_linker_boilerplate=`cat conftest.err`
8804$RM -r conftest*
8805
8806
8807if test -n "$compiler"; then
8808
8809lt_prog_compiler_no_builtin_flag=
8810
8811if test yes = "$GCC"; then
8812  case $cc_basename in
8813  nvcc*)
8814    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8815  *)
8816    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8817  esac
8818
8819  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8820printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8821if test ${lt_cv_prog_compiler_rtti_exceptions+y}
8822then :
8823  printf %s "(cached) " >&6
8824else $as_nop
8825  lt_cv_prog_compiler_rtti_exceptions=no
8826   ac_outfile=conftest.$ac_objext
8827   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8828   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8829   # Insert the option either (1) after the last *FLAGS variable, or
8830   # (2) before a word containing "conftest.", or (3) at the end.
8831   # Note that $ac_compile itself does not contain backslashes and begins
8832   # with a dollar sign (not a hyphen), so the echo should work correctly.
8833   # The option is referenced via a variable to avoid confusing sed.
8834   lt_compile=`echo "$ac_compile" | $SED \
8835   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8836   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8837   -e 's:$: $lt_compiler_flag:'`
8838   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8839   (eval "$lt_compile" 2>conftest.err)
8840   ac_status=$?
8841   cat conftest.err >&5
8842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843   if (exit $ac_status) && test -s "$ac_outfile"; then
8844     # The compiler can only warn and ignore the option if not recognized
8845     # So say no if there are warnings other than the usual output.
8846     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8847     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8848     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8849       lt_cv_prog_compiler_rtti_exceptions=yes
8850     fi
8851   fi
8852   $RM conftest*
8853
8854fi
8855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8856printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8857
8858if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8859    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8860else
8861    :
8862fi
8863
8864fi
8865
8866
8867
8868
8869
8870
8871  lt_prog_compiler_wl=
8872lt_prog_compiler_pic=
8873lt_prog_compiler_static=
8874
8875
8876  if test yes = "$GCC"; then
8877    lt_prog_compiler_wl='-Wl,'
8878    lt_prog_compiler_static='-static'
8879
8880    case $host_os in
8881      aix*)
8882      # All AIX code is PIC.
8883      if test ia64 = "$host_cpu"; then
8884	# AIX 5 now supports IA64 processor
8885	lt_prog_compiler_static='-Bstatic'
8886      fi
8887      lt_prog_compiler_pic='-fPIC'
8888      ;;
8889
8890    amigaos*)
8891      case $host_cpu in
8892      powerpc)
8893            # see comment about AmigaOS4 .so support
8894            lt_prog_compiler_pic='-fPIC'
8895        ;;
8896      m68k)
8897            # FIXME: we need at least 68020 code to build shared libraries, but
8898            # adding the '-m68020' flag to GCC prevents building anything better,
8899            # like '-m68040'.
8900            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8901        ;;
8902      esac
8903      ;;
8904
8905    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8906      # PIC is the default for these OSes.
8907      ;;
8908
8909    mingw* | cygwin* | pw32* | os2* | cegcc*)
8910      # This hack is so that the source file can tell whether it is being
8911      # built for inclusion in a dll (and should export symbols for example).
8912      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8913      # (--disable-auto-import) libraries
8914      lt_prog_compiler_pic='-DDLL_EXPORT'
8915      case $host_os in
8916      os2*)
8917	lt_prog_compiler_static='$wl-static'
8918	;;
8919      esac
8920      ;;
8921
8922    darwin* | rhapsody*)
8923      # PIC is the default on this platform
8924      # Common symbols not allowed in MH_DYLIB files
8925      lt_prog_compiler_pic='-fno-common'
8926      ;;
8927
8928    haiku*)
8929      # PIC is the default for Haiku.
8930      # The "-static" flag exists, but is broken.
8931      lt_prog_compiler_static=
8932      ;;
8933
8934    hpux*)
8935      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8936      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8937      # sets the default TLS model and affects inlining.
8938      case $host_cpu in
8939      hppa*64*)
8940	# +Z the default
8941	;;
8942      *)
8943	lt_prog_compiler_pic='-fPIC'
8944	;;
8945      esac
8946      ;;
8947
8948    interix[3-9]*)
8949      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8950      # Instead, we relocate shared libraries at runtime.
8951      ;;
8952
8953    msdosdjgpp*)
8954      # Just because we use GCC doesn't mean we suddenly get shared libraries
8955      # on systems that don't support them.
8956      lt_prog_compiler_can_build_shared=no
8957      enable_shared=no
8958      ;;
8959
8960    *nto* | *qnx*)
8961      # QNX uses GNU C++, but need to define -shared option too, otherwise
8962      # it will coredump.
8963      lt_prog_compiler_pic='-fPIC -shared'
8964      ;;
8965
8966    sysv4*MP*)
8967      if test -d /usr/nec; then
8968	lt_prog_compiler_pic=-Kconform_pic
8969      fi
8970      ;;
8971
8972    *)
8973      lt_prog_compiler_pic='-fPIC'
8974      ;;
8975    esac
8976
8977    case $cc_basename in
8978    nvcc*) # Cuda Compiler Driver 2.2
8979      lt_prog_compiler_wl='-Xlinker '
8980      if test -n "$lt_prog_compiler_pic"; then
8981        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8982      fi
8983      ;;
8984    esac
8985  else
8986    # PORTME Check for flag to pass linker flags through the system compiler.
8987    case $host_os in
8988    aix*)
8989      lt_prog_compiler_wl='-Wl,'
8990      if test ia64 = "$host_cpu"; then
8991	# AIX 5 now supports IA64 processor
8992	lt_prog_compiler_static='-Bstatic'
8993      else
8994	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8995      fi
8996      ;;
8997
8998    darwin* | rhapsody*)
8999      # PIC is the default on this platform
9000      # Common symbols not allowed in MH_DYLIB files
9001      lt_prog_compiler_pic='-fno-common'
9002      case $cc_basename in
9003      nagfor*)
9004        # NAG Fortran compiler
9005        lt_prog_compiler_wl='-Wl,-Wl,,'
9006        lt_prog_compiler_pic='-PIC'
9007        lt_prog_compiler_static='-Bstatic'
9008        ;;
9009      esac
9010      ;;
9011
9012    mingw* | cygwin* | pw32* | os2* | cegcc*)
9013      # This hack is so that the source file can tell whether it is being
9014      # built for inclusion in a dll (and should export symbols for example).
9015      lt_prog_compiler_pic='-DDLL_EXPORT'
9016      case $host_os in
9017      os2*)
9018	lt_prog_compiler_static='$wl-static'
9019	;;
9020      esac
9021      ;;
9022
9023    hpux9* | hpux10* | hpux11*)
9024      lt_prog_compiler_wl='-Wl,'
9025      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9026      # not for PA HP-UX.
9027      case $host_cpu in
9028      hppa*64*|ia64*)
9029	# +Z the default
9030	;;
9031      *)
9032	lt_prog_compiler_pic='+Z'
9033	;;
9034      esac
9035      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9036      lt_prog_compiler_static='$wl-a ${wl}archive'
9037      ;;
9038
9039    irix5* | irix6* | nonstopux*)
9040      lt_prog_compiler_wl='-Wl,'
9041      # PIC (with -KPIC) is the default.
9042      lt_prog_compiler_static='-non_shared'
9043      ;;
9044
9045    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9046      case $cc_basename in
9047      # old Intel for x86_64, which still supported -KPIC.
9048      ecc*)
9049	lt_prog_compiler_wl='-Wl,'
9050	lt_prog_compiler_pic='-KPIC'
9051	lt_prog_compiler_static='-static'
9052        ;;
9053      # icc used to be incompatible with GCC.
9054      # ICC 10 doesn't accept -KPIC any more.
9055      icc* | ifort*)
9056	lt_prog_compiler_wl='-Wl,'
9057	lt_prog_compiler_pic='-fPIC'
9058	lt_prog_compiler_static='-static'
9059        ;;
9060      # Lahey Fortran 8.1.
9061      lf95*)
9062	lt_prog_compiler_wl='-Wl,'
9063	lt_prog_compiler_pic='--shared'
9064	lt_prog_compiler_static='--static'
9065	;;
9066      nagfor*)
9067	# NAG Fortran compiler
9068	lt_prog_compiler_wl='-Wl,-Wl,,'
9069	lt_prog_compiler_pic='-PIC'
9070	lt_prog_compiler_static='-Bstatic'
9071	;;
9072      tcc*)
9073	# Fabrice Bellard et al's Tiny C Compiler
9074	lt_prog_compiler_wl='-Wl,'
9075	lt_prog_compiler_pic='-fPIC'
9076	lt_prog_compiler_static='-static'
9077	;;
9078      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9079        # Portland Group compilers (*not* the Pentium gcc compiler,
9080	# which looks to be a dead project)
9081	lt_prog_compiler_wl='-Wl,'
9082	lt_prog_compiler_pic='-fpic'
9083	lt_prog_compiler_static='-Bstatic'
9084        ;;
9085      ccc*)
9086        lt_prog_compiler_wl='-Wl,'
9087        # All Alpha code is PIC.
9088        lt_prog_compiler_static='-non_shared'
9089        ;;
9090      xl* | bgxl* | bgf* | mpixl*)
9091	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9092	lt_prog_compiler_wl='-Wl,'
9093	lt_prog_compiler_pic='-qpic'
9094	lt_prog_compiler_static='-qstaticlink'
9095	;;
9096      *)
9097	case `$CC -V 2>&1 | sed 5q` in
9098	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9099	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9100	  lt_prog_compiler_pic='-KPIC'
9101	  lt_prog_compiler_static='-Bstatic'
9102	  lt_prog_compiler_wl=''
9103	  ;;
9104	*Sun\ F* | *Sun*Fortran*)
9105	  lt_prog_compiler_pic='-KPIC'
9106	  lt_prog_compiler_static='-Bstatic'
9107	  lt_prog_compiler_wl='-Qoption ld '
9108	  ;;
9109	*Sun\ C*)
9110	  # Sun C 5.9
9111	  lt_prog_compiler_pic='-KPIC'
9112	  lt_prog_compiler_static='-Bstatic'
9113	  lt_prog_compiler_wl='-Wl,'
9114	  ;;
9115        *Intel*\ [CF]*Compiler*)
9116	  lt_prog_compiler_wl='-Wl,'
9117	  lt_prog_compiler_pic='-fPIC'
9118	  lt_prog_compiler_static='-static'
9119	  ;;
9120	*Portland\ Group*)
9121	  lt_prog_compiler_wl='-Wl,'
9122	  lt_prog_compiler_pic='-fpic'
9123	  lt_prog_compiler_static='-Bstatic'
9124	  ;;
9125	esac
9126	;;
9127      esac
9128      ;;
9129
9130    newsos6)
9131      lt_prog_compiler_pic='-KPIC'
9132      lt_prog_compiler_static='-Bstatic'
9133      ;;
9134
9135    *nto* | *qnx*)
9136      # QNX uses GNU C++, but need to define -shared option too, otherwise
9137      # it will coredump.
9138      lt_prog_compiler_pic='-fPIC -shared'
9139      ;;
9140
9141    osf3* | osf4* | osf5*)
9142      lt_prog_compiler_wl='-Wl,'
9143      # All OSF/1 code is PIC.
9144      lt_prog_compiler_static='-non_shared'
9145      ;;
9146
9147    rdos*)
9148      lt_prog_compiler_static='-non_shared'
9149      ;;
9150
9151    solaris*)
9152      lt_prog_compiler_pic='-KPIC'
9153      lt_prog_compiler_static='-Bstatic'
9154      case $cc_basename in
9155      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9156	lt_prog_compiler_wl='-Qoption ld ';;
9157      *)
9158	lt_prog_compiler_wl='-Wl,';;
9159      esac
9160      ;;
9161
9162    sunos4*)
9163      lt_prog_compiler_wl='-Qoption ld '
9164      lt_prog_compiler_pic='-PIC'
9165      lt_prog_compiler_static='-Bstatic'
9166      ;;
9167
9168    sysv4 | sysv4.2uw2* | sysv4.3*)
9169      lt_prog_compiler_wl='-Wl,'
9170      lt_prog_compiler_pic='-KPIC'
9171      lt_prog_compiler_static='-Bstatic'
9172      ;;
9173
9174    sysv4*MP*)
9175      if test -d /usr/nec; then
9176	lt_prog_compiler_pic='-Kconform_pic'
9177	lt_prog_compiler_static='-Bstatic'
9178      fi
9179      ;;
9180
9181    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9182      lt_prog_compiler_wl='-Wl,'
9183      lt_prog_compiler_pic='-KPIC'
9184      lt_prog_compiler_static='-Bstatic'
9185      ;;
9186
9187    unicos*)
9188      lt_prog_compiler_wl='-Wl,'
9189      lt_prog_compiler_can_build_shared=no
9190      ;;
9191
9192    uts4*)
9193      lt_prog_compiler_pic='-pic'
9194      lt_prog_compiler_static='-Bstatic'
9195      ;;
9196
9197    *)
9198      lt_prog_compiler_can_build_shared=no
9199      ;;
9200    esac
9201  fi
9202
9203case $host_os in
9204  # For platforms that do not support PIC, -DPIC is meaningless:
9205  *djgpp*)
9206    lt_prog_compiler_pic=
9207    ;;
9208  *)
9209    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9210    ;;
9211esac
9212
9213{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9214printf %s "checking for $compiler option to produce PIC... " >&6; }
9215if test ${lt_cv_prog_compiler_pic+y}
9216then :
9217  printf %s "(cached) " >&6
9218else $as_nop
9219  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9220fi
9221{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9222printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9223lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9224
9225#
9226# Check to make sure the PIC flag actually works.
9227#
9228if test -n "$lt_prog_compiler_pic"; then
9229  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9230printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9231if test ${lt_cv_prog_compiler_pic_works+y}
9232then :
9233  printf %s "(cached) " >&6
9234else $as_nop
9235  lt_cv_prog_compiler_pic_works=no
9236   ac_outfile=conftest.$ac_objext
9237   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9238   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9239   # Insert the option either (1) after the last *FLAGS variable, or
9240   # (2) before a word containing "conftest.", or (3) at the end.
9241   # Note that $ac_compile itself does not contain backslashes and begins
9242   # with a dollar sign (not a hyphen), so the echo should work correctly.
9243   # The option is referenced via a variable to avoid confusing sed.
9244   lt_compile=`echo "$ac_compile" | $SED \
9245   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9246   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9247   -e 's:$: $lt_compiler_flag:'`
9248   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9249   (eval "$lt_compile" 2>conftest.err)
9250   ac_status=$?
9251   cat conftest.err >&5
9252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253   if (exit $ac_status) && test -s "$ac_outfile"; then
9254     # The compiler can only warn and ignore the option if not recognized
9255     # So say no if there are warnings other than the usual output.
9256     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9257     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9258     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9259       lt_cv_prog_compiler_pic_works=yes
9260     fi
9261   fi
9262   $RM conftest*
9263
9264fi
9265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9266printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9267
9268if test yes = "$lt_cv_prog_compiler_pic_works"; then
9269    case $lt_prog_compiler_pic in
9270     "" | " "*) ;;
9271     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9272     esac
9273else
9274    lt_prog_compiler_pic=
9275     lt_prog_compiler_can_build_shared=no
9276fi
9277
9278fi
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290#
9291# Check to make sure the static flag actually works.
9292#
9293wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9295printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9296if test ${lt_cv_prog_compiler_static_works+y}
9297then :
9298  printf %s "(cached) " >&6
9299else $as_nop
9300  lt_cv_prog_compiler_static_works=no
9301   save_LDFLAGS=$LDFLAGS
9302   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9303   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9304   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9305     # The linker can only warn and ignore the option if not recognized
9306     # So say no if there are warnings
9307     if test -s conftest.err; then
9308       # Append any errors to the config.log.
9309       cat conftest.err 1>&5
9310       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9311       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9312       if diff conftest.exp conftest.er2 >/dev/null; then
9313         lt_cv_prog_compiler_static_works=yes
9314       fi
9315     else
9316       lt_cv_prog_compiler_static_works=yes
9317     fi
9318   fi
9319   $RM -r conftest*
9320   LDFLAGS=$save_LDFLAGS
9321
9322fi
9323{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9324printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9325
9326if test yes = "$lt_cv_prog_compiler_static_works"; then
9327    :
9328else
9329    lt_prog_compiler_static=
9330fi
9331
9332
9333
9334
9335
9336
9337
9338  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9339printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9340if test ${lt_cv_prog_compiler_c_o+y}
9341then :
9342  printf %s "(cached) " >&6
9343else $as_nop
9344  lt_cv_prog_compiler_c_o=no
9345   $RM -r conftest 2>/dev/null
9346   mkdir conftest
9347   cd conftest
9348   mkdir out
9349   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9350
9351   lt_compiler_flag="-o out/conftest2.$ac_objext"
9352   # Insert the option either (1) after the last *FLAGS variable, or
9353   # (2) before a word containing "conftest.", or (3) at the end.
9354   # Note that $ac_compile itself does not contain backslashes and begins
9355   # with a dollar sign (not a hyphen), so the echo should work correctly.
9356   lt_compile=`echo "$ac_compile" | $SED \
9357   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9358   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9359   -e 's:$: $lt_compiler_flag:'`
9360   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9361   (eval "$lt_compile" 2>out/conftest.err)
9362   ac_status=$?
9363   cat out/conftest.err >&5
9364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9366   then
9367     # The compiler can only warn and ignore the option if not recognized
9368     # So say no if there are warnings
9369     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9370     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9371     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9372       lt_cv_prog_compiler_c_o=yes
9373     fi
9374   fi
9375   chmod u+w . 2>&5
9376   $RM conftest*
9377   # SGI C++ compiler will create directory out/ii_files/ for
9378   # template instantiation
9379   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9380   $RM out/* && rmdir out
9381   cd ..
9382   $RM -r conftest
9383   $RM conftest*
9384
9385fi
9386{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9387printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9388
9389
9390
9391
9392
9393
9394  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9395printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9396if test ${lt_cv_prog_compiler_c_o+y}
9397then :
9398  printf %s "(cached) " >&6
9399else $as_nop
9400  lt_cv_prog_compiler_c_o=no
9401   $RM -r conftest 2>/dev/null
9402   mkdir conftest
9403   cd conftest
9404   mkdir out
9405   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9406
9407   lt_compiler_flag="-o out/conftest2.$ac_objext"
9408   # Insert the option either (1) after the last *FLAGS variable, or
9409   # (2) before a word containing "conftest.", or (3) at the end.
9410   # Note that $ac_compile itself does not contain backslashes and begins
9411   # with a dollar sign (not a hyphen), so the echo should work correctly.
9412   lt_compile=`echo "$ac_compile" | $SED \
9413   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9414   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9415   -e 's:$: $lt_compiler_flag:'`
9416   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9417   (eval "$lt_compile" 2>out/conftest.err)
9418   ac_status=$?
9419   cat out/conftest.err >&5
9420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9422   then
9423     # The compiler can only warn and ignore the option if not recognized
9424     # So say no if there are warnings
9425     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9426     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9427     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9428       lt_cv_prog_compiler_c_o=yes
9429     fi
9430   fi
9431   chmod u+w . 2>&5
9432   $RM conftest*
9433   # SGI C++ compiler will create directory out/ii_files/ for
9434   # template instantiation
9435   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9436   $RM out/* && rmdir out
9437   cd ..
9438   $RM -r conftest
9439   $RM conftest*
9440
9441fi
9442{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9443printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9444
9445
9446
9447
9448hard_links=nottested
9449if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9450  # do not overwrite the value of need_locks provided by the user
9451  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9452printf %s "checking if we can lock with hard links... " >&6; }
9453  hard_links=yes
9454  $RM conftest*
9455  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9456  touch conftest.a
9457  ln conftest.a conftest.b 2>&5 || hard_links=no
9458  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9459  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9460printf "%s\n" "$hard_links" >&6; }
9461  if test no = "$hard_links"; then
9462    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9463printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9464    need_locks=warn
9465  fi
9466else
9467  need_locks=no
9468fi
9469
9470
9471
9472
9473
9474
9475  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9476printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9477
9478  runpath_var=
9479  allow_undefined_flag=
9480  always_export_symbols=no
9481  archive_cmds=
9482  archive_expsym_cmds=
9483  compiler_needs_object=no
9484  enable_shared_with_static_runtimes=no
9485  export_dynamic_flag_spec=
9486  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9487  hardcode_automatic=no
9488  hardcode_direct=no
9489  hardcode_direct_absolute=no
9490  hardcode_libdir_flag_spec=
9491  hardcode_libdir_separator=
9492  hardcode_minus_L=no
9493  hardcode_shlibpath_var=unsupported
9494  inherit_rpath=no
9495  link_all_deplibs=unknown
9496  module_cmds=
9497  module_expsym_cmds=
9498  old_archive_from_new_cmds=
9499  old_archive_from_expsyms_cmds=
9500  thread_safe_flag_spec=
9501  whole_archive_flag_spec=
9502  # include_expsyms should be a list of space-separated symbols to be *always*
9503  # included in the symbol list
9504  include_expsyms=
9505  # exclude_expsyms can be an extended regexp of symbols to exclude
9506  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9507  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9508  # as well as any symbol that contains 'd'.
9509  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9510  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9511  # platforms (ab)use it in PIC code, but their linkers get confused if
9512  # the symbol is explicitly referenced.  Since portable code cannot
9513  # rely on this symbol name, it's probably fine to never include it in
9514  # preloaded symbol tables.
9515  # Exclude shared library initialization/finalization symbols.
9516  extract_expsyms_cmds=
9517
9518  case $host_os in
9519  cygwin* | mingw* | pw32* | cegcc*)
9520    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9521    # When not using gcc, we currently assume that we are using
9522    # Microsoft Visual C++ or Intel C++ Compiler.
9523    if test yes != "$GCC"; then
9524      with_gnu_ld=no
9525    fi
9526    ;;
9527  interix*)
9528    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9529    with_gnu_ld=yes
9530    ;;
9531  openbsd* | bitrig*)
9532    with_gnu_ld=no
9533    ;;
9534  esac
9535
9536  ld_shlibs=yes
9537
9538  # On some targets, GNU ld is compatible enough with the native linker
9539  # that we're better off using the native interface for both.
9540  lt_use_gnu_ld_interface=no
9541  if test yes = "$with_gnu_ld"; then
9542    case $host_os in
9543      aix*)
9544	# The AIX port of GNU ld has always aspired to compatibility
9545	# with the native linker.  However, as the warning in the GNU ld
9546	# block says, versions before 2.19.5* couldn't really create working
9547	# shared libraries, regardless of the interface used.
9548	case `$LD -v 2>&1` in
9549	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9550	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9551	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9552	  *)
9553	    lt_use_gnu_ld_interface=yes
9554	    ;;
9555	esac
9556	;;
9557      *)
9558	lt_use_gnu_ld_interface=yes
9559	;;
9560    esac
9561  fi
9562
9563  if test yes = "$lt_use_gnu_ld_interface"; then
9564    # If archive_cmds runs LD, not CC, wlarc should be empty
9565    wlarc='$wl'
9566
9567    # Set some defaults for GNU ld with shared library support. These
9568    # are reset later if shared libraries are not supported. Putting them
9569    # here allows them to be overridden if necessary.
9570    runpath_var=LD_RUN_PATH
9571    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9572    export_dynamic_flag_spec='$wl--export-dynamic'
9573    # ancient GNU ld didn't support --whole-archive et. al.
9574    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9575      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9576    else
9577      whole_archive_flag_spec=
9578    fi
9579    supports_anon_versioning=no
9580    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9581      *GNU\ gold*) supports_anon_versioning=yes ;;
9582      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9583      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9584      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9585      *\ 2.11.*) ;; # other 2.11 versions
9586      *) supports_anon_versioning=yes ;;
9587    esac
9588
9589    # See if GNU ld supports shared libraries.
9590    case $host_os in
9591    aix[3-9]*)
9592      # On AIX/PPC, the GNU linker is very broken
9593      if test ia64 != "$host_cpu"; then
9594	ld_shlibs=no
9595	cat <<_LT_EOF 1>&2
9596
9597*** Warning: the GNU linker, at least up to release 2.19, is reported
9598*** to be unable to reliably create shared libraries on AIX.
9599*** Therefore, libtool is disabling shared libraries support.  If you
9600*** really care for shared libraries, you may want to install binutils
9601*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9602*** You will then need to restart the configuration process.
9603
9604_LT_EOF
9605      fi
9606      ;;
9607
9608    amigaos*)
9609      case $host_cpu in
9610      powerpc)
9611            # see comment about AmigaOS4 .so support
9612            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9613            archive_expsym_cmds=''
9614        ;;
9615      m68k)
9616            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)'
9617            hardcode_libdir_flag_spec='-L$libdir'
9618            hardcode_minus_L=yes
9619        ;;
9620      esac
9621      ;;
9622
9623    beos*)
9624      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9625	allow_undefined_flag=unsupported
9626	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9627	# support --undefined.  This deserves some investigation.  FIXME
9628	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9629      else
9630	ld_shlibs=no
9631      fi
9632      ;;
9633
9634    cygwin* | mingw* | pw32* | cegcc*)
9635      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9636      # as there is no search path for DLLs.
9637      hardcode_libdir_flag_spec='-L$libdir'
9638      export_dynamic_flag_spec='$wl--export-all-symbols'
9639      allow_undefined_flag=unsupported
9640      always_export_symbols=no
9641      enable_shared_with_static_runtimes=yes
9642      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'
9643      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9644
9645      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9646        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9647	# If the export-symbols file already is a .def file, use it as
9648	# is; otherwise, prepend EXPORTS...
9649	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9650          cp $export_symbols $output_objdir/$soname.def;
9651        else
9652          echo EXPORTS > $output_objdir/$soname.def;
9653          cat $export_symbols >> $output_objdir/$soname.def;
9654        fi~
9655        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9656      else
9657	ld_shlibs=no
9658      fi
9659      ;;
9660
9661    haiku*)
9662      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9663      link_all_deplibs=yes
9664      ;;
9665
9666    os2*)
9667      hardcode_libdir_flag_spec='-L$libdir'
9668      hardcode_minus_L=yes
9669      allow_undefined_flag=unsupported
9670      shrext_cmds=.dll
9671      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9672	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9673	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9674	$ECHO EXPORTS >> $output_objdir/$libname.def~
9675	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9676	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9677	emximp -o $lib $output_objdir/$libname.def'
9678      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9679	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9680	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9681	$ECHO EXPORTS >> $output_objdir/$libname.def~
9682	prefix_cmds="$SED"~
9683	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9684	  prefix_cmds="$prefix_cmds -e 1d";
9685	fi~
9686	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9687	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9688	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9689	emximp -o $lib $output_objdir/$libname.def'
9690      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9691      enable_shared_with_static_runtimes=yes
9692      file_list_spec='@'
9693      ;;
9694
9695    interix[3-9]*)
9696      hardcode_direct=no
9697      hardcode_shlibpath_var=no
9698      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9699      export_dynamic_flag_spec='$wl-E'
9700      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9701      # Instead, shared libraries are loaded at an image base (0x10000000 by
9702      # default) and relocated if they conflict, which is a slow very memory
9703      # consuming and fragmenting process.  To avoid this, we pick a random,
9704      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9705      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9706      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9707      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'
9708      ;;
9709
9710    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9711      tmp_diet=no
9712      if test linux-dietlibc = "$host_os"; then
9713	case $cc_basename in
9714	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9715	esac
9716      fi
9717      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9718	 && test no = "$tmp_diet"
9719      then
9720	tmp_addflag=' $pic_flag'
9721	tmp_sharedflag='-shared'
9722	case $cc_basename,$host_cpu in
9723        pgcc*)				# Portland Group C compiler
9724	  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'
9725	  tmp_addflag=' $pic_flag'
9726	  ;;
9727	pgf77* | pgf90* | pgf95* | pgfortran*)
9728					# Portland Group f77 and f90 compilers
9729	  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'
9730	  tmp_addflag=' $pic_flag -Mnomain' ;;
9731	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9732	  tmp_addflag=' -i_dynamic' ;;
9733	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9734	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9735	ifc* | ifort*)			# Intel Fortran compiler
9736	  tmp_addflag=' -nofor_main' ;;
9737	lf95*)				# Lahey Fortran 8.1
9738	  whole_archive_flag_spec=
9739	  tmp_sharedflag='--shared' ;;
9740        nagfor*)                        # NAGFOR 5.3
9741          tmp_sharedflag='-Wl,-shared' ;;
9742	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9743	  tmp_sharedflag='-qmkshrobj'
9744	  tmp_addflag= ;;
9745	nvcc*)	# Cuda Compiler Driver 2.2
9746	  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'
9747	  compiler_needs_object=yes
9748	  ;;
9749	esac
9750	case `$CC -V 2>&1 | sed 5q` in
9751	*Sun\ C*)			# Sun C 5.9
9752	  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'
9753	  compiler_needs_object=yes
9754	  tmp_sharedflag='-G' ;;
9755	*Sun\ F*)			# Sun Fortran 8.3
9756	  tmp_sharedflag='-G' ;;
9757	esac
9758	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9759
9760        if test yes = "$supports_anon_versioning"; then
9761          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9762            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9763            echo "local: *; };" >> $output_objdir/$libname.ver~
9764            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9765        fi
9766
9767	case $cc_basename in
9768	tcc*)
9769	  export_dynamic_flag_spec='-rdynamic'
9770	  ;;
9771	xlf* | bgf* | bgxlf* | mpixlf*)
9772	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9773	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9774	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9775	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9776	  if test yes = "$supports_anon_versioning"; then
9777	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9778              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9779              echo "local: *; };" >> $output_objdir/$libname.ver~
9780              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9781	  fi
9782	  ;;
9783	esac
9784      else
9785        ld_shlibs=no
9786      fi
9787      ;;
9788
9789    netbsd*)
9790      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9791	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9792	wlarc=
9793      else
9794	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9795	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9796      fi
9797      ;;
9798
9799    solaris*)
9800      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9801	ld_shlibs=no
9802	cat <<_LT_EOF 1>&2
9803
9804*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9805*** create shared libraries on Solaris systems.  Therefore, libtool
9806*** is disabling shared libraries support.  We urge you to upgrade GNU
9807*** binutils to release 2.9.1 or newer.  Another option is to modify
9808*** your PATH or compiler configuration so that the native linker is
9809*** used, and then restart.
9810
9811_LT_EOF
9812      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9813	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9814	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9815      else
9816	ld_shlibs=no
9817      fi
9818      ;;
9819
9820    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9821      case `$LD -v 2>&1` in
9822        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9823	ld_shlibs=no
9824	cat <<_LT_EOF 1>&2
9825
9826*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9827*** reliably create shared libraries on SCO systems.  Therefore, libtool
9828*** is disabling shared libraries support.  We urge you to upgrade GNU
9829*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9830*** your PATH or compiler configuration so that the native linker is
9831*** used, and then restart.
9832
9833_LT_EOF
9834	;;
9835	*)
9836	  # For security reasons, it is highly recommended that you always
9837	  # use absolute paths for naming shared libraries, and exclude the
9838	  # DT_RUNPATH tag from executables and libraries.  But doing so
9839	  # requires that you compile everything twice, which is a pain.
9840	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9841	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9842	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9843	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9844	  else
9845	    ld_shlibs=no
9846	  fi
9847	;;
9848      esac
9849      ;;
9850
9851    sunos4*)
9852      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9853      wlarc=
9854      hardcode_direct=yes
9855      hardcode_shlibpath_var=no
9856      ;;
9857
9858    *)
9859      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9860	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9861	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9862      else
9863	ld_shlibs=no
9864      fi
9865      ;;
9866    esac
9867
9868    if test no = "$ld_shlibs"; then
9869      runpath_var=
9870      hardcode_libdir_flag_spec=
9871      export_dynamic_flag_spec=
9872      whole_archive_flag_spec=
9873    fi
9874  else
9875    # PORTME fill in a description of your system's linker (not GNU ld)
9876    case $host_os in
9877    aix3*)
9878      allow_undefined_flag=unsupported
9879      always_export_symbols=yes
9880      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'
9881      # Note: this linker hardcodes the directories in LIBPATH if there
9882      # are no directories specified by -L.
9883      hardcode_minus_L=yes
9884      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9885	# Neither direct hardcoding nor static linking is supported with a
9886	# broken collect2.
9887	hardcode_direct=unsupported
9888      fi
9889      ;;
9890
9891    aix[4-9]*)
9892      if test ia64 = "$host_cpu"; then
9893	# On IA64, the linker does run time linking by default, so we don't
9894	# have to do anything special.
9895	aix_use_runtimelinking=no
9896	exp_sym_flag='-Bexport'
9897	no_entry_flag=
9898      else
9899	# If we're using GNU nm, then we don't want the "-C" option.
9900	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9901	# Without the "-l" option, or with the "-B" option, AIX nm treats
9902	# weak defined symbols like other global defined symbols, whereas
9903	# GNU nm marks them as "W".
9904	# While the 'weak' keyword is ignored in the Export File, we need
9905	# it in the Import File for the 'aix-soname' feature, so we have
9906	# to replace the "-B" option with "-P" for AIX nm.
9907	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9908	  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'
9909	else
9910	  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'
9911	fi
9912	aix_use_runtimelinking=no
9913
9914	# Test if we are trying to use run time linking or normal
9915	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9916	# have runtime linking enabled, and use it for executables.
9917	# For shared libraries, we enable/disable runtime linking
9918	# depending on the kind of the shared library created -
9919	# when "with_aix_soname,aix_use_runtimelinking" is:
9920	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9921	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9922	#            lib.a           static archive
9923	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9924	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9925	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9926	#            lib.a(lib.so.V) shared, rtl:no
9927	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9928	#            lib.a           static archive
9929	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9930	  for ld_flag in $LDFLAGS; do
9931	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9932	    aix_use_runtimelinking=yes
9933	    break
9934	  fi
9935	  done
9936	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9937	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9938	    # so we don't have lib.a shared libs to link our executables.
9939	    # We have to force runtime linking in this case.
9940	    aix_use_runtimelinking=yes
9941	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9942	  fi
9943	  ;;
9944	esac
9945
9946	exp_sym_flag='-bexport'
9947	no_entry_flag='-bnoentry'
9948      fi
9949
9950      # When large executables or shared objects are built, AIX ld can
9951      # have problems creating the table of contents.  If linking a library
9952      # or program results in "error TOC overflow" add -mminimal-toc to
9953      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9954      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9955
9956      archive_cmds=''
9957      hardcode_direct=yes
9958      hardcode_direct_absolute=yes
9959      hardcode_libdir_separator=':'
9960      link_all_deplibs=yes
9961      file_list_spec='$wl-f,'
9962      case $with_aix_soname,$aix_use_runtimelinking in
9963      aix,*) ;; # traditional, no import file
9964      svr4,* | *,yes) # use import file
9965	# The Import File defines what to hardcode.
9966	hardcode_direct=no
9967	hardcode_direct_absolute=no
9968	;;
9969      esac
9970
9971      if test yes = "$GCC"; then
9972	case $host_os in aix4.[012]|aix4.[012].*)
9973	# We only want to do this on AIX 4.2 and lower, the check
9974	# below for broken collect2 doesn't work under 4.3+
9975	  collect2name=`$CC -print-prog-name=collect2`
9976	  if test -f "$collect2name" &&
9977	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9978	  then
9979	  # We have reworked collect2
9980	  :
9981	  else
9982	  # We have old collect2
9983	  hardcode_direct=unsupported
9984	  # It fails to find uninstalled libraries when the uninstalled
9985	  # path is not listed in the libpath.  Setting hardcode_minus_L
9986	  # to unsupported forces relinking
9987	  hardcode_minus_L=yes
9988	  hardcode_libdir_flag_spec='-L$libdir'
9989	  hardcode_libdir_separator=
9990	  fi
9991	  ;;
9992	esac
9993	shared_flag='-shared'
9994	if test yes = "$aix_use_runtimelinking"; then
9995	  shared_flag="$shared_flag "'$wl-G'
9996	fi
9997	# Need to ensure runtime linking is disabled for the traditional
9998	# shared library, or the linker may eventually find shared libraries
9999	# /with/ Import File - we do not want to mix them.
10000	shared_flag_aix='-shared'
10001	shared_flag_svr4='-shared $wl-G'
10002      else
10003	# not using gcc
10004	if test ia64 = "$host_cpu"; then
10005	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10006	# chokes on -Wl,-G. The following line is correct:
10007	  shared_flag='-G'
10008	else
10009	  if test yes = "$aix_use_runtimelinking"; then
10010	    shared_flag='$wl-G'
10011	  else
10012	    shared_flag='$wl-bM:SRE'
10013	  fi
10014	  shared_flag_aix='$wl-bM:SRE'
10015	  shared_flag_svr4='$wl-G'
10016	fi
10017      fi
10018
10019      export_dynamic_flag_spec='$wl-bexpall'
10020      # It seems that -bexpall does not export symbols beginning with
10021      # underscore (_), so it is better to generate a list of symbols to export.
10022      always_export_symbols=yes
10023      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10024	# Warning - without using the other runtime loading flags (-brtl),
10025	# -berok will link without error, but may produce a broken library.
10026	allow_undefined_flag='-berok'
10027        # Determine the default libpath from the value encoded in an
10028        # empty executable.
10029        if test set = "${lt_cv_aix_libpath+set}"; then
10030  aix_libpath=$lt_cv_aix_libpath
10031else
10032  if test ${lt_cv_aix_libpath_+y}
10033then :
10034  printf %s "(cached) " >&6
10035else $as_nop
10036  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10037/* end confdefs.h.  */
10038
10039int
10040main (void)
10041{
10042
10043  ;
10044  return 0;
10045}
10046_ACEOF
10047if ac_fn_c_try_link "$LINENO"
10048then :
10049
10050  lt_aix_libpath_sed='
10051      /Import File Strings/,/^$/ {
10052	  /^0/ {
10053	      s/^0  *\([^ ]*\) *$/\1/
10054	      p
10055	  }
10056      }'
10057  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10058  # Check for a 64-bit object if we didn't find anything.
10059  if test -z "$lt_cv_aix_libpath_"; then
10060    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10061  fi
10062fi
10063rm -f core conftest.err conftest.$ac_objext conftest.beam \
10064    conftest$ac_exeext conftest.$ac_ext
10065  if test -z "$lt_cv_aix_libpath_"; then
10066    lt_cv_aix_libpath_=/usr/lib:/lib
10067  fi
10068
10069fi
10070
10071  aix_libpath=$lt_cv_aix_libpath_
10072fi
10073
10074        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10075        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
10076      else
10077	if test ia64 = "$host_cpu"; then
10078	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10079	  allow_undefined_flag="-z nodefs"
10080	  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"
10081	else
10082	 # Determine the default libpath from the value encoded in an
10083	 # empty executable.
10084	 if test set = "${lt_cv_aix_libpath+set}"; then
10085  aix_libpath=$lt_cv_aix_libpath
10086else
10087  if test ${lt_cv_aix_libpath_+y}
10088then :
10089  printf %s "(cached) " >&6
10090else $as_nop
10091  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10092/* end confdefs.h.  */
10093
10094int
10095main (void)
10096{
10097
10098  ;
10099  return 0;
10100}
10101_ACEOF
10102if ac_fn_c_try_link "$LINENO"
10103then :
10104
10105  lt_aix_libpath_sed='
10106      /Import File Strings/,/^$/ {
10107	  /^0/ {
10108	      s/^0  *\([^ ]*\) *$/\1/
10109	      p
10110	  }
10111      }'
10112  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10113  # Check for a 64-bit object if we didn't find anything.
10114  if test -z "$lt_cv_aix_libpath_"; then
10115    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10116  fi
10117fi
10118rm -f core conftest.err conftest.$ac_objext conftest.beam \
10119    conftest$ac_exeext conftest.$ac_ext
10120  if test -z "$lt_cv_aix_libpath_"; then
10121    lt_cv_aix_libpath_=/usr/lib:/lib
10122  fi
10123
10124fi
10125
10126  aix_libpath=$lt_cv_aix_libpath_
10127fi
10128
10129	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10130	  # Warning - without using the other run time loading flags,
10131	  # -berok will link without error, but may produce a broken library.
10132	  no_undefined_flag=' $wl-bernotok'
10133	  allow_undefined_flag=' $wl-berok'
10134	  if test yes = "$with_gnu_ld"; then
10135	    # We only use this code for GNU lds that support --whole-archive.
10136	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10137	  else
10138	    # Exported symbols can be pulled into shared objects from archives
10139	    whole_archive_flag_spec='$convenience'
10140	  fi
10141	  archive_cmds_need_lc=yes
10142	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10143	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10144	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10145	  if test svr4 != "$with_aix_soname"; then
10146	    # This is similar to how AIX traditionally builds its shared libraries.
10147	    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'
10148	  fi
10149	  if test aix != "$with_aix_soname"; then
10150	    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'
10151	  else
10152	    # used by -dlpreopen to get the symbols
10153	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10154	  fi
10155	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10156	fi
10157      fi
10158      ;;
10159
10160    amigaos*)
10161      case $host_cpu in
10162      powerpc)
10163            # see comment about AmigaOS4 .so support
10164            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10165            archive_expsym_cmds=''
10166        ;;
10167      m68k)
10168            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)'
10169            hardcode_libdir_flag_spec='-L$libdir'
10170            hardcode_minus_L=yes
10171        ;;
10172      esac
10173      ;;
10174
10175    bsdi[45]*)
10176      export_dynamic_flag_spec=-rdynamic
10177      ;;
10178
10179    cygwin* | mingw* | pw32* | cegcc*)
10180      # When not using gcc, we currently assume that we are using
10181      # Microsoft Visual C++ or Intel C++ Compiler.
10182      # hardcode_libdir_flag_spec is actually meaningless, as there is
10183      # no search path for DLLs.
10184      case $cc_basename in
10185      cl* | icl*)
10186	# Native MSVC or ICC
10187	hardcode_libdir_flag_spec=' '
10188	allow_undefined_flag=unsupported
10189	always_export_symbols=yes
10190	file_list_spec='@'
10191	# Tell ltmain to make .lib files, not .a files.
10192	libext=lib
10193	# Tell ltmain to make .dll files, not .so files.
10194	shrext_cmds=.dll
10195	# FIXME: Setting linknames here is a bad hack.
10196	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10197	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10198            cp "$export_symbols" "$output_objdir/$soname.def";
10199            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10200          else
10201            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10202          fi~
10203          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10204          linknames='
10205	# The linker will not automatically build a static lib if we build a DLL.
10206	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10207	enable_shared_with_static_runtimes=yes
10208	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10209	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10210	# Don't use ranlib
10211	old_postinstall_cmds='chmod 644 $oldlib'
10212	postlink_cmds='lt_outputfile="@OUTPUT@"~
10213          lt_tool_outputfile="@TOOL_OUTPUT@"~
10214          case $lt_outputfile in
10215            *.exe|*.EXE) ;;
10216            *)
10217              lt_outputfile=$lt_outputfile.exe
10218              lt_tool_outputfile=$lt_tool_outputfile.exe
10219              ;;
10220          esac~
10221          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10222            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10223            $RM "$lt_outputfile.manifest";
10224          fi'
10225	;;
10226      *)
10227	# Assume MSVC and ICC wrapper
10228	hardcode_libdir_flag_spec=' '
10229	allow_undefined_flag=unsupported
10230	# Tell ltmain to make .lib files, not .a files.
10231	libext=lib
10232	# Tell ltmain to make .dll files, not .so files.
10233	shrext_cmds=.dll
10234	# FIXME: Setting linknames here is a bad hack.
10235	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10236	# The linker will automatically build a .lib file if we build a DLL.
10237	old_archive_from_new_cmds='true'
10238	# FIXME: Should let the user specify the lib program.
10239	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10240	enable_shared_with_static_runtimes=yes
10241	;;
10242      esac
10243      ;;
10244
10245    darwin* | rhapsody*)
10246
10247
10248  archive_cmds_need_lc=no
10249  hardcode_direct=no
10250  hardcode_automatic=yes
10251  hardcode_shlibpath_var=unsupported
10252  if test yes = "$lt_cv_ld_force_load"; then
10253    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\"`'
10254
10255  else
10256    whole_archive_flag_spec=''
10257  fi
10258  link_all_deplibs=yes
10259  allow_undefined_flag=$_lt_dar_allow_undefined
10260  case $cc_basename in
10261     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10262     *) _lt_dar_can_shared=$GCC ;;
10263  esac
10264  if test yes = "$_lt_dar_can_shared"; then
10265    output_verbose_link_cmd=func_echo_all
10266    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10267    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10268    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"
10269    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"
10270
10271  else
10272  ld_shlibs=no
10273  fi
10274
10275      ;;
10276
10277    dgux*)
10278      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10279      hardcode_libdir_flag_spec='-L$libdir'
10280      hardcode_shlibpath_var=no
10281      ;;
10282
10283    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10284    # support.  Future versions do this automatically, but an explicit c++rt0.o
10285    # does not break anything, and helps significantly (at the cost of a little
10286    # extra space).
10287    freebsd2.2*)
10288      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10289      hardcode_libdir_flag_spec='-R$libdir'
10290      hardcode_direct=yes
10291      hardcode_shlibpath_var=no
10292      ;;
10293
10294    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10295    freebsd2.*)
10296      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10297      hardcode_direct=yes
10298      hardcode_minus_L=yes
10299      hardcode_shlibpath_var=no
10300      ;;
10301
10302    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10303    freebsd* | dragonfly*)
10304      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10305      hardcode_libdir_flag_spec='-R$libdir'
10306      hardcode_direct=yes
10307      hardcode_shlibpath_var=no
10308      ;;
10309
10310    hpux9*)
10311      if test yes = "$GCC"; then
10312	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'
10313      else
10314	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'
10315      fi
10316      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10317      hardcode_libdir_separator=:
10318      hardcode_direct=yes
10319
10320      # hardcode_minus_L: Not really in the search PATH,
10321      # but as the default location of the library.
10322      hardcode_minus_L=yes
10323      export_dynamic_flag_spec='$wl-E'
10324      ;;
10325
10326    hpux10*)
10327      if test yes,no = "$GCC,$with_gnu_ld"; then
10328	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10329      else
10330	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10331      fi
10332      if test no = "$with_gnu_ld"; then
10333	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10334	hardcode_libdir_separator=:
10335	hardcode_direct=yes
10336	hardcode_direct_absolute=yes
10337	export_dynamic_flag_spec='$wl-E'
10338	# hardcode_minus_L: Not really in the search PATH,
10339	# but as the default location of the library.
10340	hardcode_minus_L=yes
10341      fi
10342      ;;
10343
10344    hpux11*)
10345      if test yes,no = "$GCC,$with_gnu_ld"; then
10346	case $host_cpu in
10347	hppa*64*)
10348	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10349	  ;;
10350	ia64*)
10351	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10352	  ;;
10353	*)
10354	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10355	  ;;
10356	esac
10357      else
10358	case $host_cpu in
10359	hppa*64*)
10360	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10361	  ;;
10362	ia64*)
10363	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10364	  ;;
10365	*)
10366
10367	  # Older versions of the 11.00 compiler do not understand -b yet
10368	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10369	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10370printf %s "checking if $CC understands -b... " >&6; }
10371if test ${lt_cv_prog_compiler__b+y}
10372then :
10373  printf %s "(cached) " >&6
10374else $as_nop
10375  lt_cv_prog_compiler__b=no
10376   save_LDFLAGS=$LDFLAGS
10377   LDFLAGS="$LDFLAGS -b"
10378   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10379   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10380     # The linker can only warn and ignore the option if not recognized
10381     # So say no if there are warnings
10382     if test -s conftest.err; then
10383       # Append any errors to the config.log.
10384       cat conftest.err 1>&5
10385       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10386       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10387       if diff conftest.exp conftest.er2 >/dev/null; then
10388         lt_cv_prog_compiler__b=yes
10389       fi
10390     else
10391       lt_cv_prog_compiler__b=yes
10392     fi
10393   fi
10394   $RM -r conftest*
10395   LDFLAGS=$save_LDFLAGS
10396
10397fi
10398{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10399printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10400
10401if test yes = "$lt_cv_prog_compiler__b"; then
10402    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10403else
10404    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10405fi
10406
10407	  ;;
10408	esac
10409      fi
10410      if test no = "$with_gnu_ld"; then
10411	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10412	hardcode_libdir_separator=:
10413
10414	case $host_cpu in
10415	hppa*64*|ia64*)
10416	  hardcode_direct=no
10417	  hardcode_shlibpath_var=no
10418	  ;;
10419	*)
10420	  hardcode_direct=yes
10421	  hardcode_direct_absolute=yes
10422	  export_dynamic_flag_spec='$wl-E'
10423
10424	  # hardcode_minus_L: Not really in the search PATH,
10425	  # but as the default location of the library.
10426	  hardcode_minus_L=yes
10427	  ;;
10428	esac
10429      fi
10430      ;;
10431
10432    irix5* | irix6* | nonstopux*)
10433      if test yes = "$GCC"; then
10434	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'
10435	# Try to use the -exported_symbol ld option, if it does not
10436	# work, assume that -exports_file does not work either and
10437	# implicitly export all symbols.
10438	# This should be the same for all languages, so no per-tag cache variable.
10439	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10440printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10441if test ${lt_cv_irix_exported_symbol+y}
10442then :
10443  printf %s "(cached) " >&6
10444else $as_nop
10445  save_LDFLAGS=$LDFLAGS
10446	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10447	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10448/* end confdefs.h.  */
10449int foo (void) { return 0; }
10450_ACEOF
10451if ac_fn_c_try_link "$LINENO"
10452then :
10453  lt_cv_irix_exported_symbol=yes
10454else $as_nop
10455  lt_cv_irix_exported_symbol=no
10456fi
10457rm -f core conftest.err conftest.$ac_objext conftest.beam \
10458    conftest$ac_exeext conftest.$ac_ext
10459           LDFLAGS=$save_LDFLAGS
10460fi
10461{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10462printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10463	if test yes = "$lt_cv_irix_exported_symbol"; then
10464          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'
10465	fi
10466      else
10467	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'
10468	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'
10469      fi
10470      archive_cmds_need_lc='no'
10471      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10472      hardcode_libdir_separator=:
10473      inherit_rpath=yes
10474      link_all_deplibs=yes
10475      ;;
10476
10477    linux*)
10478      case $cc_basename in
10479      tcc*)
10480	# Fabrice Bellard et al's Tiny C Compiler
10481	ld_shlibs=yes
10482	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10483	;;
10484      esac
10485      ;;
10486
10487    netbsd*)
10488      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10489	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10490      else
10491	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10492      fi
10493      hardcode_libdir_flag_spec='-R$libdir'
10494      hardcode_direct=yes
10495      hardcode_shlibpath_var=no
10496      ;;
10497
10498    newsos6)
10499      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10500      hardcode_direct=yes
10501      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10502      hardcode_libdir_separator=:
10503      hardcode_shlibpath_var=no
10504      ;;
10505
10506    *nto* | *qnx*)
10507      ;;
10508
10509    openbsd* | bitrig*)
10510      if test -f /usr/libexec/ld.so; then
10511	hardcode_direct=yes
10512	hardcode_shlibpath_var=no
10513	hardcode_direct_absolute=yes
10514	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10515	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10516	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10517	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10518	  export_dynamic_flag_spec='$wl-E'
10519	else
10520	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10521	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10522	fi
10523      else
10524	ld_shlibs=no
10525      fi
10526      ;;
10527
10528    os2*)
10529      hardcode_libdir_flag_spec='-L$libdir'
10530      hardcode_minus_L=yes
10531      allow_undefined_flag=unsupported
10532      shrext_cmds=.dll
10533      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10534	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10535	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10536	$ECHO EXPORTS >> $output_objdir/$libname.def~
10537	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10538	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10539	emximp -o $lib $output_objdir/$libname.def'
10540      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10541	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10542	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10543	$ECHO EXPORTS >> $output_objdir/$libname.def~
10544	prefix_cmds="$SED"~
10545	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10546	  prefix_cmds="$prefix_cmds -e 1d";
10547	fi~
10548	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10549	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10550	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10551	emximp -o $lib $output_objdir/$libname.def'
10552      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10553      enable_shared_with_static_runtimes=yes
10554      file_list_spec='@'
10555      ;;
10556
10557    osf3*)
10558      if test yes = "$GCC"; then
10559	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10560	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'
10561      else
10562	allow_undefined_flag=' -expect_unresolved \*'
10563	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'
10564      fi
10565      archive_cmds_need_lc='no'
10566      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10567      hardcode_libdir_separator=:
10568      ;;
10569
10570    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10571      if test yes = "$GCC"; then
10572	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10573	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'
10574	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10575      else
10576	allow_undefined_flag=' -expect_unresolved \*'
10577	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'
10578	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~
10579          $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'
10580
10581	# Both c and cxx compiler support -rpath directly
10582	hardcode_libdir_flag_spec='-rpath $libdir'
10583      fi
10584      archive_cmds_need_lc='no'
10585      hardcode_libdir_separator=:
10586      ;;
10587
10588    solaris*)
10589      no_undefined_flag=' -z defs'
10590      if test yes = "$GCC"; then
10591	wlarc='$wl'
10592	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10593	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10594          $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'
10595      else
10596	case `$CC -V 2>&1` in
10597	*"Compilers 5.0"*)
10598	  wlarc=''
10599	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10600	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10601            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10602	  ;;
10603	*)
10604	  wlarc='$wl'
10605	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10606	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10607            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10608	  ;;
10609	esac
10610      fi
10611      hardcode_libdir_flag_spec='-R$libdir'
10612      hardcode_shlibpath_var=no
10613      case $host_os in
10614      solaris2.[0-5] | solaris2.[0-5].*) ;;
10615      *)
10616	# The compiler driver will combine and reorder linker options,
10617	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10618	# but is careful enough not to reorder.
10619	# Supported since Solaris 2.6 (maybe 2.5.1?)
10620	if test yes = "$GCC"; then
10621	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10622	else
10623	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10624	fi
10625	;;
10626      esac
10627      link_all_deplibs=yes
10628      ;;
10629
10630    sunos4*)
10631      if test sequent = "$host_vendor"; then
10632	# Use $CC to link under sequent, because it throws in some extra .o
10633	# files that make .init and .fini sections work.
10634	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10635      else
10636	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10637      fi
10638      hardcode_libdir_flag_spec='-L$libdir'
10639      hardcode_direct=yes
10640      hardcode_minus_L=yes
10641      hardcode_shlibpath_var=no
10642      ;;
10643
10644    sysv4)
10645      case $host_vendor in
10646	sni)
10647	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10648	  hardcode_direct=yes # is this really true???
10649	;;
10650	siemens)
10651	  ## LD is ld it makes a PLAMLIB
10652	  ## CC just makes a GrossModule.
10653	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10654	  reload_cmds='$CC -r -o $output$reload_objs'
10655	  hardcode_direct=no
10656        ;;
10657	motorola)
10658	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10659	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10660	;;
10661      esac
10662      runpath_var='LD_RUN_PATH'
10663      hardcode_shlibpath_var=no
10664      ;;
10665
10666    sysv4.3*)
10667      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10668      hardcode_shlibpath_var=no
10669      export_dynamic_flag_spec='-Bexport'
10670      ;;
10671
10672    sysv4*MP*)
10673      if test -d /usr/nec; then
10674	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10675	hardcode_shlibpath_var=no
10676	runpath_var=LD_RUN_PATH
10677	hardcode_runpath_var=yes
10678	ld_shlibs=yes
10679      fi
10680      ;;
10681
10682    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10683      no_undefined_flag='$wl-z,text'
10684      archive_cmds_need_lc=no
10685      hardcode_shlibpath_var=no
10686      runpath_var='LD_RUN_PATH'
10687
10688      if test yes = "$GCC"; then
10689	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10690	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10691      else
10692	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10693	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10694      fi
10695      ;;
10696
10697    sysv5* | sco3.2v5* | sco5v6*)
10698      # Note: We CANNOT use -z defs as we might desire, because we do not
10699      # link with -lc, and that would cause any symbols used from libc to
10700      # always be unresolved, which means just about no library would
10701      # ever link correctly.  If we're not using GNU ld we use -z text
10702      # though, which does catch some bad symbols but isn't as heavy-handed
10703      # as -z defs.
10704      no_undefined_flag='$wl-z,text'
10705      allow_undefined_flag='$wl-z,nodefs'
10706      archive_cmds_need_lc=no
10707      hardcode_shlibpath_var=no
10708      hardcode_libdir_flag_spec='$wl-R,$libdir'
10709      hardcode_libdir_separator=':'
10710      link_all_deplibs=yes
10711      export_dynamic_flag_spec='$wl-Bexport'
10712      runpath_var='LD_RUN_PATH'
10713
10714      if test yes = "$GCC"; then
10715	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10716	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10717      else
10718	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10719	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10720      fi
10721      ;;
10722
10723    uts4*)
10724      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10725      hardcode_libdir_flag_spec='-L$libdir'
10726      hardcode_shlibpath_var=no
10727      ;;
10728
10729    *)
10730      ld_shlibs=no
10731      ;;
10732    esac
10733
10734    if test sni = "$host_vendor"; then
10735      case $host in
10736      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10737	export_dynamic_flag_spec='$wl-Blargedynsym'
10738	;;
10739      esac
10740    fi
10741  fi
10742
10743{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10744printf "%s\n" "$ld_shlibs" >&6; }
10745test no = "$ld_shlibs" && can_build_shared=no
10746
10747with_gnu_ld=$with_gnu_ld
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763#
10764# Do we need to explicitly link libc?
10765#
10766case "x$archive_cmds_need_lc" in
10767x|xyes)
10768  # Assume -lc should be added
10769  archive_cmds_need_lc=yes
10770
10771  if test yes,yes = "$GCC,$enable_shared"; then
10772    case $archive_cmds in
10773    *'~'*)
10774      # FIXME: we may have to deal with multi-command sequences.
10775      ;;
10776    '$CC '*)
10777      # Test whether the compiler implicitly links with -lc since on some
10778      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10779      # to ld, don't add -lc before -lgcc.
10780      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10781printf %s "checking whether -lc should be explicitly linked in... " >&6; }
10782if test ${lt_cv_archive_cmds_need_lc+y}
10783then :
10784  printf %s "(cached) " >&6
10785else $as_nop
10786  $RM conftest*
10787	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10788
10789	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10790  (eval $ac_compile) 2>&5
10791  ac_status=$?
10792  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10793  test $ac_status = 0; } 2>conftest.err; then
10794	  soname=conftest
10795	  lib=conftest
10796	  libobjs=conftest.$ac_objext
10797	  deplibs=
10798	  wl=$lt_prog_compiler_wl
10799	  pic_flag=$lt_prog_compiler_pic
10800	  compiler_flags=-v
10801	  linker_flags=-v
10802	  verstring=
10803	  output_objdir=.
10804	  libname=conftest
10805	  lt_save_allow_undefined_flag=$allow_undefined_flag
10806	  allow_undefined_flag=
10807	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10808  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10809  ac_status=$?
10810  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10811  test $ac_status = 0; }
10812	  then
10813	    lt_cv_archive_cmds_need_lc=no
10814	  else
10815	    lt_cv_archive_cmds_need_lc=yes
10816	  fi
10817	  allow_undefined_flag=$lt_save_allow_undefined_flag
10818	else
10819	  cat conftest.err 1>&5
10820	fi
10821	$RM conftest*
10822
10823fi
10824{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10825printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
10826      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10827      ;;
10828    esac
10829  fi
10830  ;;
10831esac
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10985printf %s "checking dynamic linker characteristics... " >&6; }
10986
10987if test yes = "$GCC"; then
10988  case $host_os in
10989    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10990    *) lt_awk_arg='/^libraries:/' ;;
10991  esac
10992  case $host_os in
10993    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10994    *) lt_sed_strip_eq='s|=/|/|g' ;;
10995  esac
10996  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10997  case $lt_search_path_spec in
10998  *\;*)
10999    # if the path contains ";" then we assume it to be the separator
11000    # otherwise default to the standard path separator (i.e. ":") - it is
11001    # assumed that no part of a normal pathname contains ";" but that should
11002    # okay in the real world where ";" in dirpaths is itself problematic.
11003    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11004    ;;
11005  *)
11006    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11007    ;;
11008  esac
11009  # Ok, now we have the path, separated by spaces, we can step through it
11010  # and add multilib dir if necessary...
11011  lt_tmp_lt_search_path_spec=
11012  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11013  # ...but if some path component already ends with the multilib dir we assume
11014  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11015  case "$lt_multi_os_dir; $lt_search_path_spec " in
11016  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11017    lt_multi_os_dir=
11018    ;;
11019  esac
11020  for lt_sys_path in $lt_search_path_spec; do
11021    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11022      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11023    elif test -n "$lt_multi_os_dir"; then
11024      test -d "$lt_sys_path" && \
11025	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11026    fi
11027  done
11028  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11029BEGIN {RS = " "; FS = "/|\n";} {
11030  lt_foo = "";
11031  lt_count = 0;
11032  for (lt_i = NF; lt_i > 0; lt_i--) {
11033    if ($lt_i != "" && $lt_i != ".") {
11034      if ($lt_i == "..") {
11035        lt_count++;
11036      } else {
11037        if (lt_count == 0) {
11038          lt_foo = "/" $lt_i lt_foo;
11039        } else {
11040          lt_count--;
11041        }
11042      }
11043    }
11044  }
11045  if (lt_foo != "") { lt_freq[lt_foo]++; }
11046  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11047}'`
11048  # AWK program above erroneously prepends '/' to C:/dos/paths
11049  # for these hosts.
11050  case $host_os in
11051    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11052      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11053  esac
11054  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11055else
11056  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11057fi
11058library_names_spec=
11059libname_spec='lib$name'
11060soname_spec=
11061shrext_cmds=.so
11062postinstall_cmds=
11063postuninstall_cmds=
11064finish_cmds=
11065finish_eval=
11066shlibpath_var=
11067shlibpath_overrides_runpath=unknown
11068version_type=none
11069dynamic_linker="$host_os ld.so"
11070sys_lib_dlsearch_path_spec="/lib /usr/lib"
11071need_lib_prefix=unknown
11072hardcode_into_libs=no
11073
11074# when you set need_version to no, make sure it does not cause -set_version
11075# flags to be left without arguments
11076need_version=unknown
11077
11078
11079
11080case $host_os in
11081aix3*)
11082  version_type=linux # correct to gnu/linux during the next big refactor
11083  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11084  shlibpath_var=LIBPATH
11085
11086  # AIX 3 has no versioning support, so we append a major version to the name.
11087  soname_spec='$libname$release$shared_ext$major'
11088  ;;
11089
11090aix[4-9]*)
11091  version_type=linux # correct to gnu/linux during the next big refactor
11092  need_lib_prefix=no
11093  need_version=no
11094  hardcode_into_libs=yes
11095  if test ia64 = "$host_cpu"; then
11096    # AIX 5 supports IA64
11097    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11098    shlibpath_var=LD_LIBRARY_PATH
11099  else
11100    # With GCC up to 2.95.x, collect2 would create an import file
11101    # for dependence libraries.  The import file would start with
11102    # the line '#! .'.  This would cause the generated library to
11103    # depend on '.', always an invalid library.  This was fixed in
11104    # development snapshots of GCC prior to 3.0.
11105    case $host_os in
11106      aix4 | aix4.[01] | aix4.[01].*)
11107      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11108	   echo ' yes '
11109	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11110	:
11111      else
11112	can_build_shared=no
11113      fi
11114      ;;
11115    esac
11116    # Using Import Files as archive members, it is possible to support
11117    # filename-based versioning of shared library archives on AIX. While
11118    # this would work for both with and without runtime linking, it will
11119    # prevent static linking of such archives. So we do filename-based
11120    # shared library versioning with .so extension only, which is used
11121    # when both runtime linking and shared linking is enabled.
11122    # Unfortunately, runtime linking may impact performance, so we do
11123    # not want this to be the default eventually. Also, we use the
11124    # versioned .so libs for executables only if there is the -brtl
11125    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11126    # To allow for filename-based versioning support, we need to create
11127    # libNAME.so.V as an archive file, containing:
11128    # *) an Import File, referring to the versioned filename of the
11129    #    archive as well as the shared archive member, telling the
11130    #    bitwidth (32 or 64) of that shared object, and providing the
11131    #    list of exported symbols of that shared object, eventually
11132    #    decorated with the 'weak' keyword
11133    # *) the shared object with the F_LOADONLY flag set, to really avoid
11134    #    it being seen by the linker.
11135    # At run time we better use the real file rather than another symlink,
11136    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11137
11138    case $with_aix_soname,$aix_use_runtimelinking in
11139    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11140    # soname into executable. Probably we can add versioning support to
11141    # collect2, so additional links can be useful in future.
11142    aix,yes) # traditional libtool
11143      dynamic_linker='AIX unversionable lib.so'
11144      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11145      # instead of lib<name>.a to let people know that these are not
11146      # typical AIX shared libraries.
11147      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11148      ;;
11149    aix,no) # traditional AIX only
11150      dynamic_linker='AIX lib.a(lib.so.V)'
11151      # We preserve .a as extension for shared libraries through AIX4.2
11152      # and later when we are not doing run time linking.
11153      library_names_spec='$libname$release.a $libname.a'
11154      soname_spec='$libname$release$shared_ext$major'
11155      ;;
11156    svr4,*) # full svr4 only
11157      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11158      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11159      # We do not specify a path in Import Files, so LIBPATH fires.
11160      shlibpath_overrides_runpath=yes
11161      ;;
11162    *,yes) # both, prefer svr4
11163      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11164      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11165      # unpreferred sharedlib libNAME.a needs extra handling
11166      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"'
11167      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"'
11168      # We do not specify a path in Import Files, so LIBPATH fires.
11169      shlibpath_overrides_runpath=yes
11170      ;;
11171    *,no) # both, prefer aix
11172      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11173      library_names_spec='$libname$release.a $libname.a'
11174      soname_spec='$libname$release$shared_ext$major'
11175      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11176      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)'
11177      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"'
11178      ;;
11179    esac
11180    shlibpath_var=LIBPATH
11181  fi
11182  ;;
11183
11184amigaos*)
11185  case $host_cpu in
11186  powerpc)
11187    # Since July 2007 AmigaOS4 officially supports .so libraries.
11188    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11189    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11190    ;;
11191  m68k)
11192    library_names_spec='$libname.ixlibrary $libname.a'
11193    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11194    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'
11195    ;;
11196  esac
11197  ;;
11198
11199beos*)
11200  library_names_spec='$libname$shared_ext'
11201  dynamic_linker="$host_os ld.so"
11202  shlibpath_var=LIBRARY_PATH
11203  ;;
11204
11205bsdi[45]*)
11206  version_type=linux # correct to gnu/linux during the next big refactor
11207  need_version=no
11208  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11209  soname_spec='$libname$release$shared_ext$major'
11210  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11211  shlibpath_var=LD_LIBRARY_PATH
11212  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11213  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11214  # the default ld.so.conf also contains /usr/contrib/lib and
11215  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11216  # libtool to hard-code these into programs
11217  ;;
11218
11219cygwin* | mingw* | pw32* | cegcc*)
11220  version_type=windows
11221  shrext_cmds=.dll
11222  need_version=no
11223  need_lib_prefix=no
11224
11225  case $GCC,$cc_basename in
11226  yes,*)
11227    # gcc
11228    library_names_spec='$libname.dll.a'
11229    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11230    postinstall_cmds='base_file=`basename \$file`~
11231      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11232      dldir=$destdir/`dirname \$dlpath`~
11233      test -d \$dldir || mkdir -p \$dldir~
11234      $install_prog $dir/$dlname \$dldir/$dlname~
11235      chmod a+x \$dldir/$dlname~
11236      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11237        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11238      fi'
11239    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11240      dlpath=$dir/\$dldll~
11241       $RM \$dlpath'
11242    shlibpath_overrides_runpath=yes
11243
11244    case $host_os in
11245    cygwin*)
11246      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11247      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11248
11249      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11250      ;;
11251    mingw* | cegcc*)
11252      # MinGW DLLs use traditional 'lib' prefix
11253      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11254      ;;
11255    pw32*)
11256      # pw32 DLLs use 'pw' prefix rather than 'lib'
11257      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11258      ;;
11259    esac
11260    dynamic_linker='Win32 ld.exe'
11261    ;;
11262
11263  *,cl* | *,icl*)
11264    # Native MSVC or ICC
11265    libname_spec='$name'
11266    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11267    library_names_spec='$libname.dll.lib'
11268
11269    case $build_os in
11270    mingw*)
11271      sys_lib_search_path_spec=
11272      lt_save_ifs=$IFS
11273      IFS=';'
11274      for lt_path in $LIB
11275      do
11276        IFS=$lt_save_ifs
11277        # Let DOS variable expansion print the short 8.3 style file name.
11278        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11279        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11280      done
11281      IFS=$lt_save_ifs
11282      # Convert to MSYS style.
11283      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11284      ;;
11285    cygwin*)
11286      # Convert to unix form, then to dos form, then back to unix form
11287      # but this time dos style (no spaces!) so that the unix form looks
11288      # like /cygdrive/c/PROGRA~1:/cygdr...
11289      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11290      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11291      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11292      ;;
11293    *)
11294      sys_lib_search_path_spec=$LIB
11295      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11296        # It is most probably a Windows format PATH.
11297        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11298      else
11299        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11300      fi
11301      # FIXME: find the short name or the path components, as spaces are
11302      # common. (e.g. "Program Files" -> "PROGRA~1")
11303      ;;
11304    esac
11305
11306    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11307    postinstall_cmds='base_file=`basename \$file`~
11308      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11309      dldir=$destdir/`dirname \$dlpath`~
11310      test -d \$dldir || mkdir -p \$dldir~
11311      $install_prog $dir/$dlname \$dldir/$dlname'
11312    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11313      dlpath=$dir/\$dldll~
11314       $RM \$dlpath'
11315    shlibpath_overrides_runpath=yes
11316    dynamic_linker='Win32 link.exe'
11317    ;;
11318
11319  *)
11320    # Assume MSVC and ICC wrapper
11321    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11322    dynamic_linker='Win32 ld.exe'
11323    ;;
11324  esac
11325  # FIXME: first we should search . and the directory the executable is in
11326  shlibpath_var=PATH
11327  ;;
11328
11329darwin* | rhapsody*)
11330  dynamic_linker="$host_os dyld"
11331  version_type=darwin
11332  need_lib_prefix=no
11333  need_version=no
11334  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11335  soname_spec='$libname$release$major$shared_ext'
11336  shlibpath_overrides_runpath=yes
11337  shlibpath_var=DYLD_LIBRARY_PATH
11338  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11339
11340  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11341  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11342  ;;
11343
11344dgux*)
11345  version_type=linux # correct to gnu/linux during the next big refactor
11346  need_lib_prefix=no
11347  need_version=no
11348  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11349  soname_spec='$libname$release$shared_ext$major'
11350  shlibpath_var=LD_LIBRARY_PATH
11351  ;;
11352
11353freebsd* | dragonfly*)
11354  # DragonFly does not have aout.  When/if they implement a new
11355  # versioning mechanism, adjust this.
11356  if test -x /usr/bin/objformat; then
11357    objformat=`/usr/bin/objformat`
11358  else
11359    case $host_os in
11360    freebsd[23].*) objformat=aout ;;
11361    *) objformat=elf ;;
11362    esac
11363  fi
11364  version_type=freebsd-$objformat
11365  case $version_type in
11366    freebsd-elf*)
11367      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11368      soname_spec='$libname$release$shared_ext$major'
11369      need_version=no
11370      need_lib_prefix=no
11371      ;;
11372    freebsd-*)
11373      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11374      need_version=yes
11375      ;;
11376  esac
11377  shlibpath_var=LD_LIBRARY_PATH
11378  case $host_os in
11379  freebsd2.*)
11380    shlibpath_overrides_runpath=yes
11381    ;;
11382  freebsd3.[01]* | freebsdelf3.[01]*)
11383    shlibpath_overrides_runpath=yes
11384    hardcode_into_libs=yes
11385    ;;
11386  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11387  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11388    shlibpath_overrides_runpath=no
11389    hardcode_into_libs=yes
11390    ;;
11391  *) # from 4.6 on, and DragonFly
11392    shlibpath_overrides_runpath=yes
11393    hardcode_into_libs=yes
11394    ;;
11395  esac
11396  ;;
11397
11398haiku*)
11399  version_type=linux # correct to gnu/linux during the next big refactor
11400  need_lib_prefix=no
11401  need_version=no
11402  dynamic_linker="$host_os runtime_loader"
11403  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11404  soname_spec='$libname$release$shared_ext$major'
11405  shlibpath_var=LIBRARY_PATH
11406  shlibpath_overrides_runpath=no
11407  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11408  hardcode_into_libs=yes
11409  ;;
11410
11411hpux9* | hpux10* | hpux11*)
11412  # Give a soname corresponding to the major version so that dld.sl refuses to
11413  # link against other versions.
11414  version_type=sunos
11415  need_lib_prefix=no
11416  need_version=no
11417  case $host_cpu in
11418  ia64*)
11419    shrext_cmds='.so'
11420    hardcode_into_libs=yes
11421    dynamic_linker="$host_os dld.so"
11422    shlibpath_var=LD_LIBRARY_PATH
11423    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11424    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11425    soname_spec='$libname$release$shared_ext$major'
11426    if test 32 = "$HPUX_IA64_MODE"; then
11427      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11428      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11429    else
11430      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11431      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11432    fi
11433    ;;
11434  hppa*64*)
11435    shrext_cmds='.sl'
11436    hardcode_into_libs=yes
11437    dynamic_linker="$host_os dld.sl"
11438    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11439    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11440    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11441    soname_spec='$libname$release$shared_ext$major'
11442    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11443    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11444    ;;
11445  *)
11446    shrext_cmds='.sl'
11447    dynamic_linker="$host_os dld.sl"
11448    shlibpath_var=SHLIB_PATH
11449    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11450    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11451    soname_spec='$libname$release$shared_ext$major'
11452    ;;
11453  esac
11454  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11455  postinstall_cmds='chmod 555 $lib'
11456  # or fails outright, so override atomically:
11457  install_override_mode=555
11458  ;;
11459
11460interix[3-9]*)
11461  version_type=linux # correct to gnu/linux during the next big refactor
11462  need_lib_prefix=no
11463  need_version=no
11464  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11465  soname_spec='$libname$release$shared_ext$major'
11466  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11467  shlibpath_var=LD_LIBRARY_PATH
11468  shlibpath_overrides_runpath=no
11469  hardcode_into_libs=yes
11470  ;;
11471
11472irix5* | irix6* | nonstopux*)
11473  case $host_os in
11474    nonstopux*) version_type=nonstopux ;;
11475    *)
11476	if test yes = "$lt_cv_prog_gnu_ld"; then
11477		version_type=linux # correct to gnu/linux during the next big refactor
11478	else
11479		version_type=irix
11480	fi ;;
11481  esac
11482  need_lib_prefix=no
11483  need_version=no
11484  soname_spec='$libname$release$shared_ext$major'
11485  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11486  case $host_os in
11487  irix5* | nonstopux*)
11488    libsuff= shlibsuff=
11489    ;;
11490  *)
11491    case $LD in # libtool.m4 will add one of these switches to LD
11492    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11493      libsuff= shlibsuff= libmagic=32-bit;;
11494    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11495      libsuff=32 shlibsuff=N32 libmagic=N32;;
11496    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11497      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11498    *) libsuff= shlibsuff= libmagic=never-match;;
11499    esac
11500    ;;
11501  esac
11502  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11503  shlibpath_overrides_runpath=no
11504  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11505  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11506  hardcode_into_libs=yes
11507  ;;
11508
11509# No shared lib support for Linux oldld, aout, or coff.
11510linux*oldld* | linux*aout* | linux*coff*)
11511  dynamic_linker=no
11512  ;;
11513
11514linux*android*)
11515  version_type=none # Android doesn't support versioned libraries.
11516  need_lib_prefix=no
11517  need_version=no
11518  library_names_spec='$libname$release$shared_ext'
11519  soname_spec='$libname$release$shared_ext'
11520  finish_cmds=
11521  shlibpath_var=LD_LIBRARY_PATH
11522  shlibpath_overrides_runpath=yes
11523
11524  # This implies no fast_install, which is unacceptable.
11525  # Some rework will be needed to allow for fast_install
11526  # before this can be enabled.
11527  hardcode_into_libs=yes
11528
11529  dynamic_linker='Android linker'
11530  # Don't embed -rpath directories since the linker doesn't support them.
11531  hardcode_libdir_flag_spec='-L$libdir'
11532  ;;
11533
11534# This must be glibc/ELF.
11535linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11536  version_type=linux # correct to gnu/linux during the next big refactor
11537  need_lib_prefix=no
11538  need_version=no
11539  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11540  soname_spec='$libname$release$shared_ext$major'
11541  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11542  shlibpath_var=LD_LIBRARY_PATH
11543  shlibpath_overrides_runpath=no
11544
11545  # Some binutils ld are patched to set DT_RUNPATH
11546  if test ${lt_cv_shlibpath_overrides_runpath+y}
11547then :
11548  printf %s "(cached) " >&6
11549else $as_nop
11550  lt_cv_shlibpath_overrides_runpath=no
11551    save_LDFLAGS=$LDFLAGS
11552    save_libdir=$libdir
11553    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11554	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11555    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11556/* end confdefs.h.  */
11557
11558int
11559main (void)
11560{
11561
11562  ;
11563  return 0;
11564}
11565_ACEOF
11566if ac_fn_c_try_link "$LINENO"
11567then :
11568  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11569then :
11570  lt_cv_shlibpath_overrides_runpath=yes
11571fi
11572fi
11573rm -f core conftest.err conftest.$ac_objext conftest.beam \
11574    conftest$ac_exeext conftest.$ac_ext
11575    LDFLAGS=$save_LDFLAGS
11576    libdir=$save_libdir
11577
11578fi
11579
11580  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11581
11582  # This implies no fast_install, which is unacceptable.
11583  # Some rework will be needed to allow for fast_install
11584  # before this can be enabled.
11585  hardcode_into_libs=yes
11586
11587  # Ideally, we could use ldconfig to report *all* directores which are
11588  # searched for libraries, however this is still not possible.  Aside from not
11589  # being certain /sbin/ldconfig is available, command
11590  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11591  # even though it is searched at run-time.  Try to do the best guess by
11592  # appending ld.so.conf contents (and includes) to the search path.
11593  if test -f /etc/ld.so.conf; then
11594    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' ' '`
11595    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11596  fi
11597
11598  # We used to test for /lib/ld.so.1 and disable shared libraries on
11599  # powerpc, because MkLinux only supported shared libraries with the
11600  # GNU dynamic linker.  Since this was broken with cross compilers,
11601  # most powerpc-linux boxes support dynamic linking these days and
11602  # people can always --disable-shared, the test was removed, and we
11603  # assume the GNU/Linux dynamic linker is in use.
11604  dynamic_linker='GNU/Linux ld.so'
11605  ;;
11606
11607netbsd*)
11608  version_type=sunos
11609  need_lib_prefix=no
11610  need_version=no
11611  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11612    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11613    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11614    dynamic_linker='NetBSD (a.out) ld.so'
11615  else
11616    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11617    soname_spec='$libname$release$shared_ext$major'
11618    dynamic_linker='NetBSD ld.elf_so'
11619  fi
11620  shlibpath_var=LD_LIBRARY_PATH
11621  shlibpath_overrides_runpath=yes
11622  hardcode_into_libs=yes
11623  ;;
11624
11625newsos6)
11626  version_type=linux # correct to gnu/linux during the next big refactor
11627  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11628  shlibpath_var=LD_LIBRARY_PATH
11629  shlibpath_overrides_runpath=yes
11630  ;;
11631
11632*nto* | *qnx*)
11633  version_type=qnx
11634  need_lib_prefix=no
11635  need_version=no
11636  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11637  soname_spec='$libname$release$shared_ext$major'
11638  shlibpath_var=LD_LIBRARY_PATH
11639  shlibpath_overrides_runpath=no
11640  hardcode_into_libs=yes
11641  dynamic_linker='ldqnx.so'
11642  ;;
11643
11644openbsd* | bitrig*)
11645  version_type=sunos
11646  sys_lib_dlsearch_path_spec=/usr/lib
11647  need_lib_prefix=no
11648  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11649    need_version=no
11650  else
11651    need_version=yes
11652  fi
11653  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11654  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11655  shlibpath_var=LD_LIBRARY_PATH
11656  shlibpath_overrides_runpath=yes
11657  ;;
11658
11659os2*)
11660  libname_spec='$name'
11661  version_type=windows
11662  shrext_cmds=.dll
11663  need_version=no
11664  need_lib_prefix=no
11665  # OS/2 can only load a DLL with a base name of 8 characters or less.
11666  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11667    v=$($ECHO $release$versuffix | tr -d .-);
11668    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11669    $ECHO $n$v`$shared_ext'
11670  library_names_spec='${libname}_dll.$libext'
11671  dynamic_linker='OS/2 ld.exe'
11672  shlibpath_var=BEGINLIBPATH
11673  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11674  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11675  postinstall_cmds='base_file=`basename \$file`~
11676    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11677    dldir=$destdir/`dirname \$dlpath`~
11678    test -d \$dldir || mkdir -p \$dldir~
11679    $install_prog $dir/$dlname \$dldir/$dlname~
11680    chmod a+x \$dldir/$dlname~
11681    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11682      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11683    fi'
11684  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11685    dlpath=$dir/\$dldll~
11686    $RM \$dlpath'
11687  ;;
11688
11689osf3* | osf4* | osf5*)
11690  version_type=osf
11691  need_lib_prefix=no
11692  need_version=no
11693  soname_spec='$libname$release$shared_ext$major'
11694  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11695  shlibpath_var=LD_LIBRARY_PATH
11696  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11697  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11698  ;;
11699
11700rdos*)
11701  dynamic_linker=no
11702  ;;
11703
11704solaris*)
11705  version_type=linux # correct to gnu/linux during the next big refactor
11706  need_lib_prefix=no
11707  need_version=no
11708  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11709  soname_spec='$libname$release$shared_ext$major'
11710  shlibpath_var=LD_LIBRARY_PATH
11711  shlibpath_overrides_runpath=yes
11712  hardcode_into_libs=yes
11713  # ldd complains unless libraries are executable
11714  postinstall_cmds='chmod +x $lib'
11715  ;;
11716
11717sunos4*)
11718  version_type=sunos
11719  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11720  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11721  shlibpath_var=LD_LIBRARY_PATH
11722  shlibpath_overrides_runpath=yes
11723  if test yes = "$with_gnu_ld"; then
11724    need_lib_prefix=no
11725  fi
11726  need_version=yes
11727  ;;
11728
11729sysv4 | sysv4.3*)
11730  version_type=linux # correct to gnu/linux during the next big refactor
11731  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11732  soname_spec='$libname$release$shared_ext$major'
11733  shlibpath_var=LD_LIBRARY_PATH
11734  case $host_vendor in
11735    sni)
11736      shlibpath_overrides_runpath=no
11737      need_lib_prefix=no
11738      runpath_var=LD_RUN_PATH
11739      ;;
11740    siemens)
11741      need_lib_prefix=no
11742      ;;
11743    motorola)
11744      need_lib_prefix=no
11745      need_version=no
11746      shlibpath_overrides_runpath=no
11747      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11748      ;;
11749  esac
11750  ;;
11751
11752sysv4*MP*)
11753  if test -d /usr/nec; then
11754    version_type=linux # correct to gnu/linux during the next big refactor
11755    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11756    soname_spec='$libname$shared_ext.$major'
11757    shlibpath_var=LD_LIBRARY_PATH
11758  fi
11759  ;;
11760
11761sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11762  version_type=sco
11763  need_lib_prefix=no
11764  need_version=no
11765  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11766  soname_spec='$libname$release$shared_ext$major'
11767  shlibpath_var=LD_LIBRARY_PATH
11768  shlibpath_overrides_runpath=yes
11769  hardcode_into_libs=yes
11770  if test yes = "$with_gnu_ld"; then
11771    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11772  else
11773    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11774    case $host_os in
11775      sco3.2v5*)
11776        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11777	;;
11778    esac
11779  fi
11780  sys_lib_dlsearch_path_spec='/usr/lib'
11781  ;;
11782
11783tpf*)
11784  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11785  version_type=linux # correct to gnu/linux during the next big refactor
11786  need_lib_prefix=no
11787  need_version=no
11788  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11789  shlibpath_var=LD_LIBRARY_PATH
11790  shlibpath_overrides_runpath=no
11791  hardcode_into_libs=yes
11792  ;;
11793
11794uts4*)
11795  version_type=linux # correct to gnu/linux during the next big refactor
11796  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11797  soname_spec='$libname$release$shared_ext$major'
11798  shlibpath_var=LD_LIBRARY_PATH
11799  ;;
11800
11801*)
11802  dynamic_linker=no
11803  ;;
11804esac
11805{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11806printf "%s\n" "$dynamic_linker" >&6; }
11807test no = "$dynamic_linker" && can_build_shared=no
11808
11809variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11810if test yes = "$GCC"; then
11811  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11812fi
11813
11814if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11815  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11816fi
11817
11818if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11819  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11820fi
11821
11822# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11823configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11824
11825# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11826func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11827
11828# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11829configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11928printf %s "checking how to hardcode library paths into programs... " >&6; }
11929hardcode_action=
11930if test -n "$hardcode_libdir_flag_spec" ||
11931   test -n "$runpath_var" ||
11932   test yes = "$hardcode_automatic"; then
11933
11934  # We can hardcode non-existent directories.
11935  if test no != "$hardcode_direct" &&
11936     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11937     # have to relink, otherwise we might link with an installed library
11938     # when we should be linking with a yet-to-be-installed one
11939     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11940     test no != "$hardcode_minus_L"; then
11941    # Linking always hardcodes the temporary library directory.
11942    hardcode_action=relink
11943  else
11944    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11945    hardcode_action=immediate
11946  fi
11947else
11948  # We cannot hardcode anything, or else we can only hardcode existing
11949  # directories.
11950  hardcode_action=unsupported
11951fi
11952{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11953printf "%s\n" "$hardcode_action" >&6; }
11954
11955if test relink = "$hardcode_action" ||
11956   test yes = "$inherit_rpath"; then
11957  # Fast installation is not supported
11958  enable_fast_install=no
11959elif test yes = "$shlibpath_overrides_runpath" ||
11960     test no = "$enable_shared"; then
11961  # Fast installation is not necessary
11962  enable_fast_install=needless
11963fi
11964
11965
11966
11967
11968
11969
11970  if test yes != "$enable_dlopen"; then
11971  enable_dlopen=unknown
11972  enable_dlopen_self=unknown
11973  enable_dlopen_self_static=unknown
11974else
11975  lt_cv_dlopen=no
11976  lt_cv_dlopen_libs=
11977
11978  case $host_os in
11979  beos*)
11980    lt_cv_dlopen=load_add_on
11981    lt_cv_dlopen_libs=
11982    lt_cv_dlopen_self=yes
11983    ;;
11984
11985  mingw* | pw32* | cegcc*)
11986    lt_cv_dlopen=LoadLibrary
11987    lt_cv_dlopen_libs=
11988    ;;
11989
11990  cygwin*)
11991    lt_cv_dlopen=dlopen
11992    lt_cv_dlopen_libs=
11993    ;;
11994
11995  darwin*)
11996    # if libdl is installed we need to link against it
11997    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11998printf %s "checking for dlopen in -ldl... " >&6; }
11999if test ${ac_cv_lib_dl_dlopen+y}
12000then :
12001  printf %s "(cached) " >&6
12002else $as_nop
12003  ac_check_lib_save_LIBS=$LIBS
12004LIBS="-ldl  $LIBS"
12005cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12006/* end confdefs.h.  */
12007
12008/* Override any GCC internal prototype to avoid an error.
12009   Use char because int might match the return type of a GCC
12010   builtin and then its argument prototype would still apply.  */
12011char dlopen ();
12012int
12013main (void)
12014{
12015return dlopen ();
12016  ;
12017  return 0;
12018}
12019_ACEOF
12020if ac_fn_c_try_link "$LINENO"
12021then :
12022  ac_cv_lib_dl_dlopen=yes
12023else $as_nop
12024  ac_cv_lib_dl_dlopen=no
12025fi
12026rm -f core conftest.err conftest.$ac_objext conftest.beam \
12027    conftest$ac_exeext conftest.$ac_ext
12028LIBS=$ac_check_lib_save_LIBS
12029fi
12030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12031printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12032if test "x$ac_cv_lib_dl_dlopen" = xyes
12033then :
12034  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12035else $as_nop
12036
12037    lt_cv_dlopen=dyld
12038    lt_cv_dlopen_libs=
12039    lt_cv_dlopen_self=yes
12040
12041fi
12042
12043    ;;
12044
12045  tpf*)
12046    # Don't try to run any link tests for TPF.  We know it's impossible
12047    # because TPF is a cross-compiler, and we know how we open DSOs.
12048    lt_cv_dlopen=dlopen
12049    lt_cv_dlopen_libs=
12050    lt_cv_dlopen_self=no
12051    ;;
12052
12053  *)
12054    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12055if test "x$ac_cv_func_shl_load" = xyes
12056then :
12057  lt_cv_dlopen=shl_load
12058else $as_nop
12059  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12060printf %s "checking for shl_load in -ldld... " >&6; }
12061if test ${ac_cv_lib_dld_shl_load+y}
12062then :
12063  printf %s "(cached) " >&6
12064else $as_nop
12065  ac_check_lib_save_LIBS=$LIBS
12066LIBS="-ldld  $LIBS"
12067cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12068/* end confdefs.h.  */
12069
12070/* Override any GCC internal prototype to avoid an error.
12071   Use char because int might match the return type of a GCC
12072   builtin and then its argument prototype would still apply.  */
12073char shl_load ();
12074int
12075main (void)
12076{
12077return shl_load ();
12078  ;
12079  return 0;
12080}
12081_ACEOF
12082if ac_fn_c_try_link "$LINENO"
12083then :
12084  ac_cv_lib_dld_shl_load=yes
12085else $as_nop
12086  ac_cv_lib_dld_shl_load=no
12087fi
12088rm -f core conftest.err conftest.$ac_objext conftest.beam \
12089    conftest$ac_exeext conftest.$ac_ext
12090LIBS=$ac_check_lib_save_LIBS
12091fi
12092{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12093printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12094if test "x$ac_cv_lib_dld_shl_load" = xyes
12095then :
12096  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12097else $as_nop
12098  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12099if test "x$ac_cv_func_dlopen" = xyes
12100then :
12101  lt_cv_dlopen=dlopen
12102else $as_nop
12103  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12104printf %s "checking for dlopen in -ldl... " >&6; }
12105if test ${ac_cv_lib_dl_dlopen+y}
12106then :
12107  printf %s "(cached) " >&6
12108else $as_nop
12109  ac_check_lib_save_LIBS=$LIBS
12110LIBS="-ldl  $LIBS"
12111cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12112/* end confdefs.h.  */
12113
12114/* Override any GCC internal prototype to avoid an error.
12115   Use char because int might match the return type of a GCC
12116   builtin and then its argument prototype would still apply.  */
12117char dlopen ();
12118int
12119main (void)
12120{
12121return dlopen ();
12122  ;
12123  return 0;
12124}
12125_ACEOF
12126if ac_fn_c_try_link "$LINENO"
12127then :
12128  ac_cv_lib_dl_dlopen=yes
12129else $as_nop
12130  ac_cv_lib_dl_dlopen=no
12131fi
12132rm -f core conftest.err conftest.$ac_objext conftest.beam \
12133    conftest$ac_exeext conftest.$ac_ext
12134LIBS=$ac_check_lib_save_LIBS
12135fi
12136{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12137printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12138if test "x$ac_cv_lib_dl_dlopen" = xyes
12139then :
12140  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12141else $as_nop
12142  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12143printf %s "checking for dlopen in -lsvld... " >&6; }
12144if test ${ac_cv_lib_svld_dlopen+y}
12145then :
12146  printf %s "(cached) " >&6
12147else $as_nop
12148  ac_check_lib_save_LIBS=$LIBS
12149LIBS="-lsvld  $LIBS"
12150cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12151/* end confdefs.h.  */
12152
12153/* Override any GCC internal prototype to avoid an error.
12154   Use char because int might match the return type of a GCC
12155   builtin and then its argument prototype would still apply.  */
12156char dlopen ();
12157int
12158main (void)
12159{
12160return dlopen ();
12161  ;
12162  return 0;
12163}
12164_ACEOF
12165if ac_fn_c_try_link "$LINENO"
12166then :
12167  ac_cv_lib_svld_dlopen=yes
12168else $as_nop
12169  ac_cv_lib_svld_dlopen=no
12170fi
12171rm -f core conftest.err conftest.$ac_objext conftest.beam \
12172    conftest$ac_exeext conftest.$ac_ext
12173LIBS=$ac_check_lib_save_LIBS
12174fi
12175{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12176printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12177if test "x$ac_cv_lib_svld_dlopen" = xyes
12178then :
12179  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12180else $as_nop
12181  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12182printf %s "checking for dld_link in -ldld... " >&6; }
12183if test ${ac_cv_lib_dld_dld_link+y}
12184then :
12185  printf %s "(cached) " >&6
12186else $as_nop
12187  ac_check_lib_save_LIBS=$LIBS
12188LIBS="-ldld  $LIBS"
12189cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12190/* end confdefs.h.  */
12191
12192/* Override any GCC internal prototype to avoid an error.
12193   Use char because int might match the return type of a GCC
12194   builtin and then its argument prototype would still apply.  */
12195char dld_link ();
12196int
12197main (void)
12198{
12199return dld_link ();
12200  ;
12201  return 0;
12202}
12203_ACEOF
12204if ac_fn_c_try_link "$LINENO"
12205then :
12206  ac_cv_lib_dld_dld_link=yes
12207else $as_nop
12208  ac_cv_lib_dld_dld_link=no
12209fi
12210rm -f core conftest.err conftest.$ac_objext conftest.beam \
12211    conftest$ac_exeext conftest.$ac_ext
12212LIBS=$ac_check_lib_save_LIBS
12213fi
12214{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12215printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12216if test "x$ac_cv_lib_dld_dld_link" = xyes
12217then :
12218  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12219fi
12220
12221
12222fi
12223
12224
12225fi
12226
12227
12228fi
12229
12230
12231fi
12232
12233
12234fi
12235
12236    ;;
12237  esac
12238
12239  if test no = "$lt_cv_dlopen"; then
12240    enable_dlopen=no
12241  else
12242    enable_dlopen=yes
12243  fi
12244
12245  case $lt_cv_dlopen in
12246  dlopen)
12247    save_CPPFLAGS=$CPPFLAGS
12248    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12249
12250    save_LDFLAGS=$LDFLAGS
12251    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12252
12253    save_LIBS=$LIBS
12254    LIBS="$lt_cv_dlopen_libs $LIBS"
12255
12256    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12257printf %s "checking whether a program can dlopen itself... " >&6; }
12258if test ${lt_cv_dlopen_self+y}
12259then :
12260  printf %s "(cached) " >&6
12261else $as_nop
12262  	  if test yes = "$cross_compiling"; then :
12263  lt_cv_dlopen_self=cross
12264else
12265  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12266  lt_status=$lt_dlunknown
12267  cat > conftest.$ac_ext <<_LT_EOF
12268#line $LINENO "configure"
12269#include "confdefs.h"
12270
12271#if HAVE_DLFCN_H
12272#include <dlfcn.h>
12273#endif
12274
12275#include <stdio.h>
12276
12277#ifdef RTLD_GLOBAL
12278#  define LT_DLGLOBAL		RTLD_GLOBAL
12279#else
12280#  ifdef DL_GLOBAL
12281#    define LT_DLGLOBAL		DL_GLOBAL
12282#  else
12283#    define LT_DLGLOBAL		0
12284#  endif
12285#endif
12286
12287/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12288   find out it does not work in some platform. */
12289#ifndef LT_DLLAZY_OR_NOW
12290#  ifdef RTLD_LAZY
12291#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12292#  else
12293#    ifdef DL_LAZY
12294#      define LT_DLLAZY_OR_NOW		DL_LAZY
12295#    else
12296#      ifdef RTLD_NOW
12297#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12298#      else
12299#        ifdef DL_NOW
12300#          define LT_DLLAZY_OR_NOW	DL_NOW
12301#        else
12302#          define LT_DLLAZY_OR_NOW	0
12303#        endif
12304#      endif
12305#    endif
12306#  endif
12307#endif
12308
12309/* When -fvisibility=hidden is used, assume the code has been annotated
12310   correspondingly for the symbols needed.  */
12311#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12312int fnord () __attribute__((visibility("default")));
12313#endif
12314
12315int fnord () { return 42; }
12316int main ()
12317{
12318  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12319  int status = $lt_dlunknown;
12320
12321  if (self)
12322    {
12323      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12324      else
12325        {
12326	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12327          else puts (dlerror ());
12328	}
12329      /* dlclose (self); */
12330    }
12331  else
12332    puts (dlerror ());
12333
12334  return status;
12335}
12336_LT_EOF
12337  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12338  (eval $ac_link) 2>&5
12339  ac_status=$?
12340  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12341  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12342    (./conftest; exit; ) >&5 2>/dev/null
12343    lt_status=$?
12344    case x$lt_status in
12345      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12346      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12347      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12348    esac
12349  else :
12350    # compilation failed
12351    lt_cv_dlopen_self=no
12352  fi
12353fi
12354rm -fr conftest*
12355
12356
12357fi
12358{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12359printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12360
12361    if test yes = "$lt_cv_dlopen_self"; then
12362      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12363      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12364printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12365if test ${lt_cv_dlopen_self_static+y}
12366then :
12367  printf %s "(cached) " >&6
12368else $as_nop
12369  	  if test yes = "$cross_compiling"; then :
12370  lt_cv_dlopen_self_static=cross
12371else
12372  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12373  lt_status=$lt_dlunknown
12374  cat > conftest.$ac_ext <<_LT_EOF
12375#line $LINENO "configure"
12376#include "confdefs.h"
12377
12378#if HAVE_DLFCN_H
12379#include <dlfcn.h>
12380#endif
12381
12382#include <stdio.h>
12383
12384#ifdef RTLD_GLOBAL
12385#  define LT_DLGLOBAL		RTLD_GLOBAL
12386#else
12387#  ifdef DL_GLOBAL
12388#    define LT_DLGLOBAL		DL_GLOBAL
12389#  else
12390#    define LT_DLGLOBAL		0
12391#  endif
12392#endif
12393
12394/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12395   find out it does not work in some platform. */
12396#ifndef LT_DLLAZY_OR_NOW
12397#  ifdef RTLD_LAZY
12398#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12399#  else
12400#    ifdef DL_LAZY
12401#      define LT_DLLAZY_OR_NOW		DL_LAZY
12402#    else
12403#      ifdef RTLD_NOW
12404#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12405#      else
12406#        ifdef DL_NOW
12407#          define LT_DLLAZY_OR_NOW	DL_NOW
12408#        else
12409#          define LT_DLLAZY_OR_NOW	0
12410#        endif
12411#      endif
12412#    endif
12413#  endif
12414#endif
12415
12416/* When -fvisibility=hidden is used, assume the code has been annotated
12417   correspondingly for the symbols needed.  */
12418#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12419int fnord () __attribute__((visibility("default")));
12420#endif
12421
12422int fnord () { return 42; }
12423int main ()
12424{
12425  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12426  int status = $lt_dlunknown;
12427
12428  if (self)
12429    {
12430      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12431      else
12432        {
12433	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12434          else puts (dlerror ());
12435	}
12436      /* dlclose (self); */
12437    }
12438  else
12439    puts (dlerror ());
12440
12441  return status;
12442}
12443_LT_EOF
12444  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12445  (eval $ac_link) 2>&5
12446  ac_status=$?
12447  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12448  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12449    (./conftest; exit; ) >&5 2>/dev/null
12450    lt_status=$?
12451    case x$lt_status in
12452      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12453      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12454      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12455    esac
12456  else :
12457    # compilation failed
12458    lt_cv_dlopen_self_static=no
12459  fi
12460fi
12461rm -fr conftest*
12462
12463
12464fi
12465{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12466printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12467    fi
12468
12469    CPPFLAGS=$save_CPPFLAGS
12470    LDFLAGS=$save_LDFLAGS
12471    LIBS=$save_LIBS
12472    ;;
12473  esac
12474
12475  case $lt_cv_dlopen_self in
12476  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12477  *) enable_dlopen_self=unknown ;;
12478  esac
12479
12480  case $lt_cv_dlopen_self_static in
12481  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12482  *) enable_dlopen_self_static=unknown ;;
12483  esac
12484fi
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502striplib=
12503old_striplib=
12504{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12505printf %s "checking whether stripping libraries is possible... " >&6; }
12506if test -z "$STRIP"; then
12507  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12508printf "%s\n" "no" >&6; }
12509else
12510  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12511    old_striplib="$STRIP --strip-debug"
12512    striplib="$STRIP --strip-unneeded"
12513    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12514printf "%s\n" "yes" >&6; }
12515  else
12516    case $host_os in
12517    darwin*)
12518      # FIXME - insert some real tests, host_os isn't really good enough
12519      striplib="$STRIP -x"
12520      old_striplib="$STRIP -S"
12521      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12522printf "%s\n" "yes" >&6; }
12523      ;;
12524    freebsd*|dragonfly*)
12525      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12526        old_striplib="$STRIP --strip-debug"
12527        striplib="$STRIP --strip-unneeded"
12528        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12529printf "%s\n" "yes" >&6; }
12530      else
12531        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12532printf "%s\n" "no" >&6; }
12533      fi
12534      ;;
12535    *)
12536      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12537printf "%s\n" "no" >&6; }
12538      ;;
12539    esac
12540  fi
12541fi
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554  # Report what library types will actually be built
12555  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12556printf %s "checking if libtool supports shared libraries... " >&6; }
12557  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12558printf "%s\n" "$can_build_shared" >&6; }
12559
12560  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12561printf %s "checking whether to build shared libraries... " >&6; }
12562  test no = "$can_build_shared" && enable_shared=no
12563
12564  # On AIX, shared libraries and static libraries use the same namespace, and
12565  # are all built from PIC.
12566  case $host_os in
12567  aix3*)
12568    test yes = "$enable_shared" && enable_static=no
12569    if test -n "$RANLIB"; then
12570      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12571      postinstall_cmds='$RANLIB $lib'
12572    fi
12573    ;;
12574
12575  aix[4-9]*)
12576    if test ia64 != "$host_cpu"; then
12577      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12578      yes,aix,yes) ;;			# shared object as lib.so file only
12579      yes,svr4,*) ;;			# shared object as lib.so archive member only
12580      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12581      esac
12582    fi
12583    ;;
12584  esac
12585  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12586printf "%s\n" "$enable_shared" >&6; }
12587
12588  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12589printf %s "checking whether to build static libraries... " >&6; }
12590  # Make sure either enable_shared or enable_static is yes.
12591  test yes = "$enable_shared" || enable_static=yes
12592  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12593printf "%s\n" "$enable_static" >&6; }
12594
12595
12596
12597
12598fi
12599ac_ext=c
12600ac_cpp='$CPP $CPPFLAGS'
12601ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12602ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12603ac_compiler_gnu=$ac_cv_c_compiler_gnu
12604
12605CC=$lt_save_CC
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621        ac_config_commands="$ac_config_commands libtool"
12622
12623
12624
12625
12626# Only expand once:
12627
12628
12629
12630# Checks for libraries.
12631{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for initLibG15 in -lg15" >&5
12632printf %s "checking for initLibG15 in -lg15... " >&6; }
12633if test ${ac_cv_lib_g15_initLibG15+y}
12634then :
12635  printf %s "(cached) " >&6
12636else $as_nop
12637  ac_check_lib_save_LIBS=$LIBS
12638LIBS="-lg15  $LIBS"
12639cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12640/* end confdefs.h.  */
12641
12642/* Override any GCC internal prototype to avoid an error.
12643   Use char because int might match the return type of a GCC
12644   builtin and then its argument prototype would still apply.  */
12645char initLibG15 ();
12646int
12647main (void)
12648{
12649return initLibG15 ();
12650  ;
12651  return 0;
12652}
12653_ACEOF
12654if ac_fn_c_try_link "$LINENO"
12655then :
12656  ac_cv_lib_g15_initLibG15=yes
12657else $as_nop
12658  ac_cv_lib_g15_initLibG15=no
12659fi
12660rm -f core conftest.err conftest.$ac_objext conftest.beam \
12661    conftest$ac_exeext conftest.$ac_ext
12662LIBS=$ac_check_lib_save_LIBS
12663fi
12664{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_g15_initLibG15" >&5
12665printf "%s\n" "$ac_cv_lib_g15_initLibG15" >&6; }
12666if test "x$ac_cv_lib_g15_initLibG15" = xyes
12667then :
12668  printf "%s\n" "#define HAVE_LIBG15 1" >>confdefs.h
12669
12670  LIBS="-lg15 $LIBS"
12671
12672else $as_nop
12673  as_fn_error $? "\"libg15 (or its devel package) not found. please install it\"" "$LINENO" 5
12674fi
12675
12676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for g15r_loadWbmpSplash in -lg15render" >&5
12677printf %s "checking for g15r_loadWbmpSplash in -lg15render... " >&6; }
12678if test ${ac_cv_lib_g15render_g15r_loadWbmpSplash+y}
12679then :
12680  printf %s "(cached) " >&6
12681else $as_nop
12682  ac_check_lib_save_LIBS=$LIBS
12683LIBS="-lg15render  $LIBS"
12684cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12685/* end confdefs.h.  */
12686
12687/* Override any GCC internal prototype to avoid an error.
12688   Use char because int might match the return type of a GCC
12689   builtin and then its argument prototype would still apply.  */
12690char g15r_loadWbmpSplash ();
12691int
12692main (void)
12693{
12694return g15r_loadWbmpSplash ();
12695  ;
12696  return 0;
12697}
12698_ACEOF
12699if ac_fn_c_try_link "$LINENO"
12700then :
12701  ac_cv_lib_g15render_g15r_loadWbmpSplash=yes
12702else $as_nop
12703  ac_cv_lib_g15render_g15r_loadWbmpSplash=no
12704fi
12705rm -f core conftest.err conftest.$ac_objext conftest.beam \
12706    conftest$ac_exeext conftest.$ac_ext
12707LIBS=$ac_check_lib_save_LIBS
12708fi
12709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_g15render_g15r_loadWbmpSplash" >&5
12710printf "%s\n" "$ac_cv_lib_g15render_g15r_loadWbmpSplash" >&6; }
12711if test "x$ac_cv_lib_g15render_g15r_loadWbmpSplash" = xyes
12712then :
12713  printf "%s\n" "#define HAVE_LIBG15RENDER 1" >>confdefs.h
12714
12715  LIBS="-lg15render $LIBS"
12716
12717else $as_nop
12718  as_fn_error $? "\">=libg15render-3.0 (or its devel package) not found.  please install it\"" "$LINENO" 5
12719fi
12720
12721{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
12722printf %s "checking for sin in -lm... " >&6; }
12723if test ${ac_cv_lib_m_sin+y}
12724then :
12725  printf %s "(cached) " >&6
12726else $as_nop
12727  ac_check_lib_save_LIBS=$LIBS
12728LIBS="-lm  $LIBS"
12729cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12730/* end confdefs.h.  */
12731
12732/* Override any GCC internal prototype to avoid an error.
12733   Use char because int might match the return type of a GCC
12734   builtin and then its argument prototype would still apply.  */
12735char sin ();
12736int
12737main (void)
12738{
12739return sin ();
12740  ;
12741  return 0;
12742}
12743_ACEOF
12744if ac_fn_c_try_link "$LINENO"
12745then :
12746  ac_cv_lib_m_sin=yes
12747else $as_nop
12748  ac_cv_lib_m_sin=no
12749fi
12750rm -f core conftest.err conftest.$ac_objext conftest.beam \
12751    conftest$ac_exeext conftest.$ac_ext
12752LIBS=$ac_check_lib_save_LIBS
12753fi
12754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
12755printf "%s\n" "$ac_cv_lib_m_sin" >&6; }
12756if test "x$ac_cv_lib_m_sin" = xyes
12757then :
12758  printf "%s\n" "#define HAVE_LIBM 1" >>confdefs.h
12759
12760  LIBS="-lm $LIBS"
12761
12762fi
12763
12764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthread" >&5
12765printf %s "checking for pthread_mutex_init in -lpthread... " >&6; }
12766if test ${ac_cv_lib_pthread_pthread_mutex_init+y}
12767then :
12768  printf %s "(cached) " >&6
12769else $as_nop
12770  ac_check_lib_save_LIBS=$LIBS
12771LIBS="-lpthread  $LIBS"
12772cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12773/* end confdefs.h.  */
12774
12775/* Override any GCC internal prototype to avoid an error.
12776   Use char because int might match the return type of a GCC
12777   builtin and then its argument prototype would still apply.  */
12778char pthread_mutex_init ();
12779int
12780main (void)
12781{
12782return pthread_mutex_init ();
12783  ;
12784  return 0;
12785}
12786_ACEOF
12787if ac_fn_c_try_link "$LINENO"
12788then :
12789  ac_cv_lib_pthread_pthread_mutex_init=yes
12790else $as_nop
12791  ac_cv_lib_pthread_pthread_mutex_init=no
12792fi
12793rm -f core conftest.err conftest.$ac_objext conftest.beam \
12794    conftest$ac_exeext conftest.$ac_ext
12795LIBS=$ac_check_lib_save_LIBS
12796fi
12797{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12798printf "%s\n" "$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12799if test "x$ac_cv_lib_pthread_pthread_mutex_init" = xyes
12800then :
12801  printf "%s\n" "#define HAVE_LIBPTHREAD 1" >>confdefs.h
12802
12803  LIBS="-lpthread $LIBS"
12804
12805fi
12806
12807
12808ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
12809if test "x$ac_cv_func_daemon" = xyes
12810then :
12811
12812printf "%s\n" "#define HAVE_DAEMON 1" >>confdefs.h
12813
12814fi
12815
12816
12817# Checks for typedefs, structures, and compiler characteristics.
12818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12819printf %s "checking for an ANSI C-conforming const... " >&6; }
12820if test ${ac_cv_c_const+y}
12821then :
12822  printf %s "(cached) " >&6
12823else $as_nop
12824  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12825/* end confdefs.h.  */
12826
12827int
12828main (void)
12829{
12830
12831#ifndef __cplusplus
12832  /* Ultrix mips cc rejects this sort of thing.  */
12833  typedef int charset[2];
12834  const charset cs = { 0, 0 };
12835  /* SunOS 4.1.1 cc rejects this.  */
12836  char const *const *pcpcc;
12837  char **ppc;
12838  /* NEC SVR4.0.2 mips cc rejects this.  */
12839  struct point {int x, y;};
12840  static struct point const zero = {0,0};
12841  /* IBM XL C 1.02.0.0 rejects this.
12842     It does not let you subtract one const X* pointer from another in
12843     an arm of an if-expression whose if-part is not a constant
12844     expression */
12845  const char *g = "string";
12846  pcpcc = &g + (g ? g-g : 0);
12847  /* HPUX 7.0 cc rejects these. */
12848  ++pcpcc;
12849  ppc = (char**) pcpcc;
12850  pcpcc = (char const *const *) ppc;
12851  { /* SCO 3.2v4 cc rejects this sort of thing.  */
12852    char tx;
12853    char *t = &tx;
12854    char const *s = 0 ? (char *) 0 : (char const *) 0;
12855
12856    *t++ = 0;
12857    if (s) return 0;
12858  }
12859  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12860    int x[] = {25, 17};
12861    const int *foo = &x[0];
12862    ++foo;
12863  }
12864  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12865    typedef const int *iptr;
12866    iptr p = 0;
12867    ++p;
12868  }
12869  { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
12870       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12871    struct s { int j; const int *ap[3]; } bx;
12872    struct s *b = &bx; b->j = 5;
12873  }
12874  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12875    const int foo = 10;
12876    if (!foo) return 0;
12877  }
12878  return !cs[0] && !zero.x;
12879#endif
12880
12881  ;
12882  return 0;
12883}
12884_ACEOF
12885if ac_fn_c_try_compile "$LINENO"
12886then :
12887  ac_cv_c_const=yes
12888else $as_nop
12889  ac_cv_c_const=no
12890fi
12891rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12892fi
12893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12894printf "%s\n" "$ac_cv_c_const" >&6; }
12895if test $ac_cv_c_const = no; then
12896
12897printf "%s\n" "#define const /**/" >>confdefs.h
12898
12899fi
12900
12901
12902  ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
12903"
12904if test "x$ac_cv_type_pid_t" = xyes
12905then :
12906
12907else $as_nop
12908                                          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12909/* end confdefs.h.  */
12910
12911          #if defined _WIN64 && !defined __CYGWIN__
12912          LLP64
12913          #endif
12914
12915int
12916main (void)
12917{
12918
12919  ;
12920  return 0;
12921}
12922
12923_ACEOF
12924if ac_fn_c_try_compile "$LINENO"
12925then :
12926  ac_pid_type='int'
12927else $as_nop
12928  ac_pid_type='__int64'
12929fi
12930rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12931
12932printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
12933
12934
12935fi
12936
12937
12938ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12939if test "x$ac_cv_type_size_t" = xyes
12940then :
12941
12942else $as_nop
12943
12944printf "%s\n" "#define size_t unsigned int" >>confdefs.h
12945
12946fi
12947
12948
12949# Checks for library functions.
12950ac_ext=c
12951ac_cpp='$CPP $CPPFLAGS'
12952ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12953ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12954ac_compiler_gnu=$ac_cv_c_compiler_gnu
12955{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
12956printf %s "checking how to run the C preprocessor... " >&6; }
12957# On Suns, sometimes $CPP names a directory.
12958if test -n "$CPP" && test -d "$CPP"; then
12959  CPP=
12960fi
12961if test -z "$CPP"; then
12962  if test ${ac_cv_prog_CPP+y}
12963then :
12964  printf %s "(cached) " >&6
12965else $as_nop
12966      # Double quotes because $CC needs to be expanded
12967    for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
12968    do
12969      ac_preproc_ok=false
12970for ac_c_preproc_warn_flag in '' yes
12971do
12972  # Use a header file that comes with gcc, so configuring glibc
12973  # with a fresh cross-compiler works.
12974  # On the NeXT, cc -E runs the code through the compiler's parser,
12975  # not just through cpp. "Syntax error" is here to catch this case.
12976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12977/* end confdefs.h.  */
12978#include <limits.h>
12979		     Syntax error
12980_ACEOF
12981if ac_fn_c_try_cpp "$LINENO"
12982then :
12983
12984else $as_nop
12985  # Broken: fails on valid input.
12986continue
12987fi
12988rm -f conftest.err conftest.i conftest.$ac_ext
12989
12990  # OK, works on sane cases.  Now check whether nonexistent headers
12991  # can be detected and how.
12992  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12993/* end confdefs.h.  */
12994#include <ac_nonexistent.h>
12995_ACEOF
12996if ac_fn_c_try_cpp "$LINENO"
12997then :
12998  # Broken: success on invalid input.
12999continue
13000else $as_nop
13001  # Passes both tests.
13002ac_preproc_ok=:
13003break
13004fi
13005rm -f conftest.err conftest.i conftest.$ac_ext
13006
13007done
13008# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13009rm -f conftest.i conftest.err conftest.$ac_ext
13010if $ac_preproc_ok
13011then :
13012  break
13013fi
13014
13015    done
13016    ac_cv_prog_CPP=$CPP
13017
13018fi
13019  CPP=$ac_cv_prog_CPP
13020else
13021  ac_cv_prog_CPP=$CPP
13022fi
13023{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
13024printf "%s\n" "$CPP" >&6; }
13025ac_preproc_ok=false
13026for ac_c_preproc_warn_flag in '' yes
13027do
13028  # Use a header file that comes with gcc, so configuring glibc
13029  # with a fresh cross-compiler works.
13030  # On the NeXT, cc -E runs the code through the compiler's parser,
13031  # not just through cpp. "Syntax error" is here to catch this case.
13032  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13033/* end confdefs.h.  */
13034#include <limits.h>
13035		     Syntax error
13036_ACEOF
13037if ac_fn_c_try_cpp "$LINENO"
13038then :
13039
13040else $as_nop
13041  # Broken: fails on valid input.
13042continue
13043fi
13044rm -f conftest.err conftest.i conftest.$ac_ext
13045
13046  # OK, works on sane cases.  Now check whether nonexistent headers
13047  # can be detected and how.
13048  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13049/* end confdefs.h.  */
13050#include <ac_nonexistent.h>
13051_ACEOF
13052if ac_fn_c_try_cpp "$LINENO"
13053then :
13054  # Broken: success on invalid input.
13055continue
13056else $as_nop
13057  # Passes both tests.
13058ac_preproc_ok=:
13059break
13060fi
13061rm -f conftest.err conftest.i conftest.$ac_ext
13062
13063done
13064# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13065rm -f conftest.i conftest.err conftest.$ac_ext
13066if $ac_preproc_ok
13067then :
13068
13069else $as_nop
13070  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13071printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13072as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
13073See \`config.log' for more details" "$LINENO" 5; }
13074fi
13075
13076ac_ext=c
13077ac_cpp='$CPP $CPPFLAGS'
13078ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13079ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13080ac_compiler_gnu=$ac_cv_c_compiler_gnu
13081
13082
13083if test $ac_cv_c_compiler_gnu = yes; then
13084    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
13085printf %s "checking whether $CC needs -traditional... " >&6; }
13086if test ${ac_cv_prog_gcc_traditional+y}
13087then :
13088  printf %s "(cached) " >&6
13089else $as_nop
13090    ac_pattern="Autoconf.*'x'"
13091  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13092/* end confdefs.h.  */
13093#include <sgtty.h>
13094Autoconf TIOCGETP
13095_ACEOF
13096if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13097  $EGREP "$ac_pattern" >/dev/null 2>&1
13098then :
13099  ac_cv_prog_gcc_traditional=yes
13100else $as_nop
13101  ac_cv_prog_gcc_traditional=no
13102fi
13103rm -rf conftest*
13104
13105
13106  if test $ac_cv_prog_gcc_traditional = no; then
13107    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13108/* end confdefs.h.  */
13109#include <termio.h>
13110Autoconf TCGETA
13111_ACEOF
13112if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13113  $EGREP "$ac_pattern" >/dev/null 2>&1
13114then :
13115  ac_cv_prog_gcc_traditional=yes
13116fi
13117rm -rf conftest*
13118
13119  fi
13120fi
13121{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
13122printf "%s\n" "$ac_cv_prog_gcc_traditional" >&6; }
13123  if test $ac_cv_prog_gcc_traditional = yes; then
13124    CC="$CC -traditional"
13125  fi
13126fi
13127
13128
13129
13130
13131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
13132printf %s "checking types of arguments for select... " >&6; }
13133if test ${ac_cv_func_select_args+y}
13134then :
13135  printf %s "(cached) " >&6
13136else $as_nop
13137  ac_cv_func_select_args='int,int *,struct timeval *'
13138for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
13139 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
13140  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
13141   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13142/* end confdefs.h.  */
13143$ac_includes_default
13144#ifdef HAVE_SYS_SELECT_H
13145# include <sys/select.h>
13146#endif
13147#ifdef HAVE_SYS_SOCKET_H
13148# include <sys/socket.h>
13149#endif
13150
13151int
13152main (void)
13153{
13154extern int select ($ac_arg1,
13155					    $ac_arg234, $ac_arg234, $ac_arg234,
13156					    $ac_arg5);
13157  ;
13158  return 0;
13159}
13160_ACEOF
13161if ac_fn_c_try_compile "$LINENO"
13162then :
13163  ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
13164fi
13165rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13166  done
13167 done
13168done
13169
13170fi
13171{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
13172printf "%s\n" "$ac_cv_func_select_args" >&6; }
13173ac_save_IFS=$IFS; IFS=','
13174set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
13175IFS=$ac_save_IFS
13176shift
13177
13178printf "%s\n" "#define SELECT_TYPE_ARG1 $1" >>confdefs.h
13179
13180
13181printf "%s\n" "#define SELECT_TYPE_ARG234 ($2)" >>confdefs.h
13182
13183
13184printf "%s\n" "#define SELECT_TYPE_ARG5 ($3)" >>confdefs.h
13185
13186rm -rf conftest*
13187
13188
13189  for ac_func in strftime
13190do :
13191  ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
13192if test "x$ac_cv_func_strftime" = xyes
13193then :
13194  printf "%s\n" "#define HAVE_STRFTIME 1" >>confdefs.h
13195
13196else $as_nop
13197  # strftime is in -lintl on SCO UNIX.
13198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
13199printf %s "checking for strftime in -lintl... " >&6; }
13200if test ${ac_cv_lib_intl_strftime+y}
13201then :
13202  printf %s "(cached) " >&6
13203else $as_nop
13204  ac_check_lib_save_LIBS=$LIBS
13205LIBS="-lintl  $LIBS"
13206cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13207/* end confdefs.h.  */
13208
13209/* Override any GCC internal prototype to avoid an error.
13210   Use char because int might match the return type of a GCC
13211   builtin and then its argument prototype would still apply.  */
13212char strftime ();
13213int
13214main (void)
13215{
13216return strftime ();
13217  ;
13218  return 0;
13219}
13220_ACEOF
13221if ac_fn_c_try_link "$LINENO"
13222then :
13223  ac_cv_lib_intl_strftime=yes
13224else $as_nop
13225  ac_cv_lib_intl_strftime=no
13226fi
13227rm -f core conftest.err conftest.$ac_objext conftest.beam \
13228    conftest$ac_exeext conftest.$ac_ext
13229LIBS=$ac_check_lib_save_LIBS
13230fi
13231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
13232printf "%s\n" "$ac_cv_lib_intl_strftime" >&6; }
13233if test "x$ac_cv_lib_intl_strftime" = xyes
13234then :
13235  printf "%s\n" "#define HAVE_STRFTIME 1" >>confdefs.h
13236
13237LIBS="-lintl $LIBS"
13238fi
13239
13240fi
13241
13242done
13243ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
13244if test "x$ac_cv_func_memset" = xyes
13245then :
13246  printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
13247
13248fi
13249ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
13250if test "x$ac_cv_func_select" = xyes
13251then :
13252  printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h
13253
13254fi
13255ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
13256if test "x$ac_cv_func_socket" = xyes
13257then :
13258  printf "%s\n" "#define HAVE_SOCKET 1" >>confdefs.h
13259
13260fi
13261ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
13262if test "x$ac_cv_func_strerror" = xyes
13263then :
13264  printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
13265
13266fi
13267ac_fn_c_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
13268if test "x$ac_cv_func_backtrace" = xyes
13269then :
13270  printf "%s\n" "#define HAVE_BACKTRACE 1" >>confdefs.h
13271
13272fi
13273ac_fn_c_check_func "$LINENO" "backtrace_symbols" "ac_cv_func_backtrace_symbols"
13274if test "x$ac_cv_func_backtrace_symbols" = xyes
13275then :
13276  printf "%s\n" "#define HAVE_BACKTRACE_SYMBOLS 1" >>confdefs.h
13277
13278fi
13279
13280
13281# Checks for header files.
13282
13283{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
13284printf %s "checking for egrep... " >&6; }
13285if test ${ac_cv_path_EGREP+y}
13286then :
13287  printf %s "(cached) " >&6
13288else $as_nop
13289  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
13290   then ac_cv_path_EGREP="$GREP -E"
13291   else
13292     if test -z "$EGREP"; then
13293  ac_path_EGREP_found=false
13294  # Loop through the user's path and test for each of PROGNAME-LIST
13295  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13296for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13297do
13298  IFS=$as_save_IFS
13299  case $as_dir in #(((
13300    '') as_dir=./ ;;
13301    */) ;;
13302    *) as_dir=$as_dir/ ;;
13303  esac
13304    for ac_prog in egrep
13305   do
13306    for ac_exec_ext in '' $ac_executable_extensions; do
13307      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
13308      as_fn_executable_p "$ac_path_EGREP" || continue
13309# Check for GNU ac_path_EGREP and select it if it is found.
13310  # Check for GNU $ac_path_EGREP
13311case `"$ac_path_EGREP" --version 2>&1` in
13312*GNU*)
13313  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
13314*)
13315  ac_count=0
13316  printf %s 0123456789 >"conftest.in"
13317  while :
13318  do
13319    cat "conftest.in" "conftest.in" >"conftest.tmp"
13320    mv "conftest.tmp" "conftest.in"
13321    cp "conftest.in" "conftest.nl"
13322    printf "%s\n" 'EGREP' >> "conftest.nl"
13323    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13324    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13325    as_fn_arith $ac_count + 1 && ac_count=$as_val
13326    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
13327      # Best one so far, save it but keep looking for a better one
13328      ac_cv_path_EGREP="$ac_path_EGREP"
13329      ac_path_EGREP_max=$ac_count
13330    fi
13331    # 10*(2^10) chars as input seems more than enough
13332    test $ac_count -gt 10 && break
13333  done
13334  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13335esac
13336
13337      $ac_path_EGREP_found && break 3
13338    done
13339  done
13340  done
13341IFS=$as_save_IFS
13342  if test -z "$ac_cv_path_EGREP"; then
13343    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13344  fi
13345else
13346  ac_cv_path_EGREP=$EGREP
13347fi
13348
13349   fi
13350fi
13351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
13352printf "%s\n" "$ac_cv_path_EGREP" >&6; }
13353 EGREP="$ac_cv_path_EGREP"
13354
13355
13356
13357{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
13358printf %s "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
13359if test ${ac_cv_header_sys_wait_h+y}
13360then :
13361  printf %s "(cached) " >&6
13362else $as_nop
13363  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13364/* end confdefs.h.  */
13365#include <sys/types.h>
13366#include <sys/wait.h>
13367#ifndef WEXITSTATUS
13368# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
13369#endif
13370#ifndef WIFEXITED
13371# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13372#endif
13373
13374int
13375main (void)
13376{
13377  int s;
13378  wait (&s);
13379  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13380  ;
13381  return 0;
13382}
13383_ACEOF
13384if ac_fn_c_try_compile "$LINENO"
13385then :
13386  ac_cv_header_sys_wait_h=yes
13387else $as_nop
13388  ac_cv_header_sys_wait_h=no
13389fi
13390rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13391fi
13392{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
13393printf "%s\n" "$ac_cv_header_sys_wait_h" >&6; }
13394if test $ac_cv_header_sys_wait_h = yes; then
13395
13396printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
13397
13398fi
13399
13400ac_fn_c_check_header_compile "$LINENO" "linux/input.h" "ac_cv_header_linux_input_h" "$ac_includes_default"
13401if test "x$ac_cv_header_linux_input_h" = xyes
13402then :
13403  printf "%s\n" "#define HAVE_LINUX_INPUT_H 1" >>confdefs.h
13404
13405fi
13406
13407ac_fn_c_check_header_compile "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
13408if test "x$ac_cv_header_execinfo_h" = xyes
13409then :
13410  printf "%s\n" "#define HAVE_EXECINFO_H 1" >>confdefs.h
13411
13412fi
13413
13414       for ac_header in linux/uinput.h
13415do :
13416  ac_fn_c_check_header_compile "$LINENO" "linux/uinput.h" "ac_cv_header_linux_uinput_h" "$ac_includes_default"
13417if test "x$ac_cv_header_linux_uinput_h" = xyes
13418then :
13419  printf "%s\n" "#define HAVE_LINUX_UINPUT_H 1" >>confdefs.h
13420 have_linux_uinput_h=yes
13421else $as_nop
13422  have_linux_uinput_h=
13423fi
13424
13425done
13426ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "#if HAVE_LINUX_INPUT_H
13427#include <linux/input.h>
13428#endif
13429
13430"
13431if test "x$ac_cv_header_arpa_inet_h" = xyes
13432then :
13433  printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
13434
13435fi
13436ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "#if HAVE_LINUX_INPUT_H
13437#include <linux/input.h>
13438#endif
13439
13440"
13441if test "x$ac_cv_header_fcntl_h" = xyes
13442then :
13443  printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
13444
13445fi
13446ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "#if HAVE_LINUX_INPUT_H
13447#include <linux/input.h>
13448#endif
13449
13450"
13451if test "x$ac_cv_header_stdlib_h" = xyes
13452then :
13453  printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
13454
13455fi
13456ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "#if HAVE_LINUX_INPUT_H
13457#include <linux/input.h>
13458#endif
13459
13460"
13461if test "x$ac_cv_header_string_h" = xyes
13462then :
13463  printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
13464
13465fi
13466ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "#if HAVE_LINUX_INPUT_H
13467#include <linux/input.h>
13468#endif
13469
13470"
13471if test "x$ac_cv_header_sys_socket_h" = xyes
13472then :
13473  printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
13474
13475fi
13476ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "#if HAVE_LINUX_INPUT_H
13477#include <linux/input.h>
13478#endif
13479
13480"
13481if test "x$ac_cv_header_unistd_h" = xyes
13482then :
13483  printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
13484
13485fi
13486ac_fn_c_check_header_compile "$LINENO" "libg15.h" "ac_cv_header_libg15_h" "#if HAVE_LINUX_INPUT_H
13487#include <linux/input.h>
13488#endif
13489
13490"
13491if test "x$ac_cv_header_libg15_h" = xyes
13492then :
13493  printf "%s\n" "#define HAVE_LIBG15_H 1" >>confdefs.h
13494
13495fi
13496
13497
13498# Check whether --enable---disable-uinput was given.
13499if test ${enable___disable_uinput+y}
13500then :
13501  enableval=$enable___disable_uinput;
13502fi
13503
13504
13505if test "x$enable_uinput" != "xno"; then
13506  if test "x$have_linux_uinput_h" = "xyes"; then
13507    #if HAVE_LINUX_UINPUT_H
13508		ac_fn_c_check_member "$LINENO" "struct uinput_user_dev" "id" "ac_cv_member_struct_uinput_user_dev_id" "
13509			#include <linux/input.h>
13510			#include <linux/uinput.h>
13511
13512
13513"
13514if test "x$ac_cv_member_struct_uinput_user_dev_id" = xyes
13515then :
13516
13517printf "%s\n" "#define HAVE_UINPUT_USER_DEV_ID 1" >>confdefs.h
13518
13519fi
13520
13521	uinput=true
13522		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: Necessary includes exist: Compiling Uinput Plugin" >&5
13523printf "%s\n" "$as_me: Necessary includes exist: Compiling Uinput Plugin" >&6;}
13524
13525    #endif
13526  else
13527	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: Linux Specific Includes Not Found. NOT COMPILING UINPUT PLUGIN." >&5
13528printf "%s\n" "$as_me: Linux Specific Includes Not Found. NOT COMPILING UINPUT PLUGIN." >&6;}
13529  fi
13530else
13531  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Linux UINPUT plugin disabled by request." >&5
13532printf "%s\n" "$as_me: Linux UINPUT plugin disabled by request." >&6;}
13533  uinput=false
13534fi
13535
13536case $host_os in
13537	*linux*)
13538
13539printf "%s\n" "#define OSTYPE_LINUX 1" >>confdefs.h
13540
13541	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: OS is Linux, using uinput if available" >&5
13542printf "%s\n" "$as_me: OS is Linux, using uinput if available" >&6;}
13543	  ;;
13544	*freebsd*|*dragonfly*)
13545
13546printf "%s\n" "#define OSTYPE_FREEBSD 1" >>confdefs.h
13547
13548	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: OS is FreeBSD, using uinput if available" >&5
13549printf "%s\n" "$as_me: OS is FreeBSD, using uinput if available" >&6;}
13550	  uinput=true
13551	  ;;
13552	*darwin*)
13553
13554printf "%s\n" "#define OSTYPE_DARWIN 1" >>confdefs.h
13555
13556	  KEXT_LOCATION="/System/Library/Extensions/"
13557
13558	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: OS is Darwin, using OS specific workarounds" >&5
13559printf "%s\n" "$as_me: OS is Darwin, using OS specific workarounds" >&6;}
13560          install_kext=true
13561	  uinput=false
13562	  ;;
13563        *solaris*)
13564
13565printf "%s\n" "#define OSTYPE_SOLARIS 1" >>confdefs.h
13566
13567	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
13568printf %s "checking for library containing connect... " >&6; }
13569if test ${ac_cv_search_connect+y}
13570then :
13571  printf %s "(cached) " >&6
13572else $as_nop
13573  ac_func_search_save_LIBS=$LIBS
13574cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13575/* end confdefs.h.  */
13576
13577/* Override any GCC internal prototype to avoid an error.
13578   Use char because int might match the return type of a GCC
13579   builtin and then its argument prototype would still apply.  */
13580char connect ();
13581int
13582main (void)
13583{
13584return connect ();
13585  ;
13586  return 0;
13587}
13588_ACEOF
13589for ac_lib in '' socket
13590do
13591  if test -z "$ac_lib"; then
13592    ac_res="none required"
13593  else
13594    ac_res=-l$ac_lib
13595    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13596  fi
13597  if ac_fn_c_try_link "$LINENO"
13598then :
13599  ac_cv_search_connect=$ac_res
13600fi
13601rm -f core conftest.err conftest.$ac_objext conftest.beam \
13602    conftest$ac_exeext
13603  if test ${ac_cv_search_connect+y}
13604then :
13605  break
13606fi
13607done
13608if test ${ac_cv_search_connect+y}
13609then :
13610
13611else $as_nop
13612  ac_cv_search_connect=no
13613fi
13614rm conftest.$ac_ext
13615LIBS=$ac_func_search_save_LIBS
13616fi
13617{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
13618printf "%s\n" "$ac_cv_search_connect" >&6; }
13619ac_res=$ac_cv_search_connect
13620if test "$ac_res" != no
13621then :
13622  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13623
13624fi
13625
13626	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostent" >&5
13627printf %s "checking for library containing gethostent... " >&6; }
13628if test ${ac_cv_search_gethostent+y}
13629then :
13630  printf %s "(cached) " >&6
13631else $as_nop
13632  ac_func_search_save_LIBS=$LIBS
13633cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13634/* end confdefs.h.  */
13635
13636/* Override any GCC internal prototype to avoid an error.
13637   Use char because int might match the return type of a GCC
13638   builtin and then its argument prototype would still apply.  */
13639char gethostent ();
13640int
13641main (void)
13642{
13643return gethostent ();
13644  ;
13645  return 0;
13646}
13647_ACEOF
13648for ac_lib in '' nsl
13649do
13650  if test -z "$ac_lib"; then
13651    ac_res="none required"
13652  else
13653    ac_res=-l$ac_lib
13654    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13655  fi
13656  if ac_fn_c_try_link "$LINENO"
13657then :
13658  ac_cv_search_gethostent=$ac_res
13659fi
13660rm -f core conftest.err conftest.$ac_objext conftest.beam \
13661    conftest$ac_exeext
13662  if test ${ac_cv_search_gethostent+y}
13663then :
13664  break
13665fi
13666done
13667if test ${ac_cv_search_gethostent+y}
13668then :
13669
13670else $as_nop
13671  ac_cv_search_gethostent=no
13672fi
13673rm conftest.$ac_ext
13674LIBS=$ac_func_search_save_LIBS
13675fi
13676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostent" >&5
13677printf "%s\n" "$ac_cv_search_gethostent" >&6; }
13678ac_res=$ac_cv_search_gethostent
13679if test "$ac_res" != no
13680then :
13681  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13682
13683fi
13684
13685	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
13686printf %s "checking for library containing inet_aton... " >&6; }
13687if test ${ac_cv_search_inet_aton+y}
13688then :
13689  printf %s "(cached) " >&6
13690else $as_nop
13691  ac_func_search_save_LIBS=$LIBS
13692cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13693/* end confdefs.h.  */
13694
13695/* Override any GCC internal prototype to avoid an error.
13696   Use char because int might match the return type of a GCC
13697   builtin and then its argument prototype would still apply.  */
13698char inet_aton ();
13699int
13700main (void)
13701{
13702return inet_aton ();
13703  ;
13704  return 0;
13705}
13706_ACEOF
13707for ac_lib in '' resolv
13708do
13709  if test -z "$ac_lib"; then
13710    ac_res="none required"
13711  else
13712    ac_res=-l$ac_lib
13713    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13714  fi
13715  if ac_fn_c_try_link "$LINENO"
13716then :
13717  ac_cv_search_inet_aton=$ac_res
13718fi
13719rm -f core conftest.err conftest.$ac_objext conftest.beam \
13720    conftest$ac_exeext
13721  if test ${ac_cv_search_inet_aton+y}
13722then :
13723  break
13724fi
13725done
13726if test ${ac_cv_search_inet_aton+y}
13727then :
13728
13729else $as_nop
13730  ac_cv_search_inet_aton=no
13731fi
13732rm conftest.$ac_ext
13733LIBS=$ac_func_search_save_LIBS
13734fi
13735{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
13736printf "%s\n" "$ac_cv_search_inet_aton" >&6; }
13737ac_res=$ac_cv_search_inet_aton
13738if test "$ac_res" != no
13739then :
13740  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13741
13742fi
13743
13744          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
13745printf %s "checking for library containing nanosleep... " >&6; }
13746if test ${ac_cv_search_nanosleep+y}
13747then :
13748  printf %s "(cached) " >&6
13749else $as_nop
13750  ac_func_search_save_LIBS=$LIBS
13751cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13752/* end confdefs.h.  */
13753
13754/* Override any GCC internal prototype to avoid an error.
13755   Use char because int might match the return type of a GCC
13756   builtin and then its argument prototype would still apply.  */
13757char nanosleep ();
13758int
13759main (void)
13760{
13761return nanosleep ();
13762  ;
13763  return 0;
13764}
13765_ACEOF
13766for ac_lib in '' rt
13767do
13768  if test -z "$ac_lib"; then
13769    ac_res="none required"
13770  else
13771    ac_res=-l$ac_lib
13772    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13773  fi
13774  if ac_fn_c_try_link "$LINENO"
13775then :
13776  ac_cv_search_nanosleep=$ac_res
13777fi
13778rm -f core conftest.err conftest.$ac_objext conftest.beam \
13779    conftest$ac_exeext
13780  if test ${ac_cv_search_nanosleep+y}
13781then :
13782  break
13783fi
13784done
13785if test ${ac_cv_search_nanosleep+y}
13786then :
13787
13788else $as_nop
13789  ac_cv_search_nanosleep=no
13790fi
13791rm conftest.$ac_ext
13792LIBS=$ac_func_search_save_LIBS
13793fi
13794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
13795printf "%s\n" "$ac_cv_search_nanosleep" >&6; }
13796ac_res=$ac_cv_search_nanosleep
13797if test "$ac_res" != no
13798then :
13799  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13800
13801fi
13802
13803	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: OS is Solaris, using OS specific workarounds" >&5
13804printf "%s\n" "$as_me: OS is Solaris, using OS specific workarounds" >&6;}
13805	  uinput=false
13806	  libusb_blocks=true
13807          ;;
13808	*)
13809
13810printf "%s\n" "#define OSTYPE_OTHER 1" >>confdefs.h
13811
13812	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Unknown OS type, your milage may vary...." >&5
13813printf "%s\n" "$as_me: Unknown OS type, your milage may vary...." >&6;}
13814	  uinput=false
13815	  ;;
13816esac
13817
13818 if test x$install_kext = xtrue; then
13819  KEXT_INSTALL_TRUE=
13820  KEXT_INSTALL_FALSE='#'
13821else
13822  KEXT_INSTALL_TRUE='#'
13823  KEXT_INSTALL_FALSE=
13824fi
13825
13826 if test x$uinput = xtrue; then
13827  UINPUT_INTERFACE_PLUGIN_TRUE=
13828  UINPUT_INTERFACE_PLUGIN_FALSE='#'
13829else
13830  UINPUT_INTERFACE_PLUGIN_TRUE='#'
13831  UINPUT_INTERFACE_PLUGIN_FALSE=
13832fi
13833
13834
13835if test "x$libusb_blocks" = "xtrue"; then
13836
13837printf "%s\n" "#define LIBUSB_BLOCKS 1" >>confdefs.h
13838
13839fi
13840
13841G15D_BUILD_CC="`$CC -v 2>&1 | tail -n 1`"
13842G15D_BUILD_OS="`uname -s -r -m`"
13843G15D_BUILD_DATE="`date \"+%a %d %b %Y %T\"`"
13844
13845
13846printf "%s\n" "#define BUILD_OS_NAME \"${G15D_BUILD_OS}\"" >>confdefs.h
13847
13848
13849printf "%s\n" "#define BUILD_DATE \"${G15D_BUILD_DATE}\"" >>confdefs.h
13850
13851
13852printf "%s\n" "#define COMPILER_VERSION \"${G15D_BUILD_CC}\"" >>confdefs.h
13853
13854
13855CPPFLAGS=$CPPFLAGS_save
13856CPPFLAGS="$CPPFLAGS "'-DDATADIR="\"$(datadir)\""'
13857
13858G15DAEMON_PLUGIN_DIR="$libdir/g15daemon/$PACKAGE_VERSION/plugins"
13859
13860CPPFLAGS="$CPPFLAGS "'-DPLUGINDIR=\"$(G15DAEMON_PLUGIN_DIR)\"'
13861
13862CPPFLAGS="$CPPFLAGS "'-I$(includedir)'
13863
13864ac_config_files="$ac_config_files Makefile g15daemon/Makefile libg15daemon_client/Makefile plugins/Makefile"
13865
13866
13867cat >confcache <<\_ACEOF
13868# This file is a shell script that caches the results of configure
13869# tests run on this system so they can be shared between configure
13870# scripts and configure runs, see configure's option --config-cache.
13871# It is not useful on other systems.  If it contains results you don't
13872# want to keep, you may remove or edit it.
13873#
13874# config.status only pays attention to the cache file if you give it
13875# the --recheck option to rerun configure.
13876#
13877# `ac_cv_env_foo' variables (set or unset) will be overridden when
13878# loading this file, other *unset* `ac_cv_foo' will be assigned the
13879# following values.
13880
13881_ACEOF
13882
13883# The following way of writing the cache mishandles newlines in values,
13884# but we know of no workaround that is simple, portable, and efficient.
13885# So, we kill variables containing newlines.
13886# Ultrix sh set writes to stderr and can't be redirected directly,
13887# and sets the high bit in the cache file unless we assign to the vars.
13888(
13889  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13890    eval ac_val=\$$ac_var
13891    case $ac_val in #(
13892    *${as_nl}*)
13893      case $ac_var in #(
13894      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13895printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13896      esac
13897      case $ac_var in #(
13898      _ | IFS | as_nl) ;; #(
13899      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13900      *) { eval $ac_var=; unset $ac_var;} ;;
13901      esac ;;
13902    esac
13903  done
13904
13905  (set) 2>&1 |
13906    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13907    *${as_nl}ac_space=\ *)
13908      # `set' does not quote correctly, so add quotes: double-quote
13909      # substitution turns \\\\ into \\, and sed turns \\ into \.
13910      sed -n \
13911	"s/'/'\\\\''/g;
13912	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13913      ;; #(
13914    *)
13915      # `set' quotes correctly as required by POSIX, so do not add quotes.
13916      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13917      ;;
13918    esac |
13919    sort
13920) |
13921  sed '
13922     /^ac_cv_env_/b end
13923     t clear
13924     :clear
13925     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
13926     t end
13927     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13928     :end' >>confcache
13929if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13930  if test -w "$cache_file"; then
13931    if test "x$cache_file" != "x/dev/null"; then
13932      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13933printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
13934      if test ! -f "$cache_file" || test -h "$cache_file"; then
13935	cat confcache >"$cache_file"
13936      else
13937        case $cache_file in #(
13938        */* | ?:*)
13939	  mv -f confcache "$cache_file"$$ &&
13940	  mv -f "$cache_file"$$ "$cache_file" ;; #(
13941        *)
13942	  mv -f confcache "$cache_file" ;;
13943	esac
13944      fi
13945    fi
13946  else
13947    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13948printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
13949  fi
13950fi
13951rm -f confcache
13952
13953test "x$prefix" = xNONE && prefix=$ac_default_prefix
13954# Let make expand exec_prefix.
13955test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13956
13957DEFS=-DHAVE_CONFIG_H
13958
13959ac_libobjs=
13960ac_ltlibobjs=
13961U=
13962for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13963  # 1. Remove the extension, and $U if already installed.
13964  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13965  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
13966  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13967  #    will be set to the directory where LIBOBJS objects are built.
13968  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13969  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13970done
13971LIBOBJS=$ac_libobjs
13972
13973LTLIBOBJS=$ac_ltlibobjs
13974
13975
13976{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13977printf %s "checking that generated files are newer than configure... " >&6; }
13978   if test -n "$am_sleep_pid"; then
13979     # Hide warnings about reused PIDs.
13980     wait $am_sleep_pid 2>/dev/null
13981   fi
13982   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
13983printf "%s\n" "done" >&6; }
13984 if test -n "$EXEEXT"; then
13985  am__EXEEXT_TRUE=
13986  am__EXEEXT_FALSE='#'
13987else
13988  am__EXEEXT_TRUE='#'
13989  am__EXEEXT_FALSE=
13990fi
13991
13992if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13993  as_fn_error $? "conditional \"AMDEP\" was never defined.
13994Usually this means the macro was only invoked conditionally." "$LINENO" 5
13995fi
13996if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13997  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13998Usually this means the macro was only invoked conditionally." "$LINENO" 5
13999fi
14000if test -z "${KEXT_INSTALL_TRUE}" && test -z "${KEXT_INSTALL_FALSE}"; then
14001  as_fn_error $? "conditional \"KEXT_INSTALL\" was never defined.
14002Usually this means the macro was only invoked conditionally." "$LINENO" 5
14003fi
14004if test -z "${UINPUT_INTERFACE_PLUGIN_TRUE}" && test -z "${UINPUT_INTERFACE_PLUGIN_FALSE}"; then
14005  as_fn_error $? "conditional \"UINPUT_INTERFACE_PLUGIN\" was never defined.
14006Usually this means the macro was only invoked conditionally." "$LINENO" 5
14007fi
14008
14009: "${CONFIG_STATUS=./config.status}"
14010ac_write_fail=0
14011ac_clean_files_save=$ac_clean_files
14012ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14013{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14014printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
14015as_write_fail=0
14016cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14017#! $SHELL
14018# Generated by $as_me.
14019# Run this file to recreate the current configuration.
14020# Compiler output produced by configure, useful for debugging
14021# configure, is in config.log if it exists.
14022
14023debug=false
14024ac_cs_recheck=false
14025ac_cs_silent=false
14026
14027SHELL=\${CONFIG_SHELL-$SHELL}
14028export SHELL
14029_ASEOF
14030cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14031## -------------------- ##
14032## M4sh Initialization. ##
14033## -------------------- ##
14034
14035# Be more Bourne compatible
14036DUALCASE=1; export DUALCASE # for MKS sh
14037as_nop=:
14038if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
14039then :
14040  emulate sh
14041  NULLCMD=:
14042  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14043  # is contrary to our usage.  Disable this feature.
14044  alias -g '${1+"$@"}'='"$@"'
14045  setopt NO_GLOB_SUBST
14046else $as_nop
14047  case `(set -o) 2>/dev/null` in #(
14048  *posix*) :
14049    set -o posix ;; #(
14050  *) :
14051     ;;
14052esac
14053fi
14054
14055
14056
14057# Reset variables that may have inherited troublesome values from
14058# the environment.
14059
14060# IFS needs to be set, to space, tab, and newline, in precisely that order.
14061# (If _AS_PATH_WALK were called with IFS unset, it would have the
14062# side effect of setting IFS to empty, thus disabling word splitting.)
14063# Quoting is to prevent editors from complaining about space-tab.
14064as_nl='
14065'
14066export as_nl
14067IFS=" ""	$as_nl"
14068
14069PS1='$ '
14070PS2='> '
14071PS4='+ '
14072
14073# Ensure predictable behavior from utilities with locale-dependent output.
14074LC_ALL=C
14075export LC_ALL
14076LANGUAGE=C
14077export LANGUAGE
14078
14079# We cannot yet rely on "unset" to work, but we need these variables
14080# to be unset--not just set to an empty or harmless value--now, to
14081# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
14082# also avoids known problems related to "unset" and subshell syntax
14083# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
14084for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
14085do eval test \${$as_var+y} \
14086  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14087done
14088
14089# Ensure that fds 0, 1, and 2 are open.
14090if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
14091if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
14092if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
14093
14094# The user is always right.
14095if ${PATH_SEPARATOR+false} :; then
14096  PATH_SEPARATOR=:
14097  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14098    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14099      PATH_SEPARATOR=';'
14100  }
14101fi
14102
14103
14104# Find who we are.  Look in the path if we contain no directory separator.
14105as_myself=
14106case $0 in #((
14107  *[\\/]* ) as_myself=$0 ;;
14108  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14109for as_dir in $PATH
14110do
14111  IFS=$as_save_IFS
14112  case $as_dir in #(((
14113    '') as_dir=./ ;;
14114    */) ;;
14115    *) as_dir=$as_dir/ ;;
14116  esac
14117    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
14118  done
14119IFS=$as_save_IFS
14120
14121     ;;
14122esac
14123# We did not find ourselves, most probably we were run as `sh COMMAND'
14124# in which case we are not to be found in the path.
14125if test "x$as_myself" = x; then
14126  as_myself=$0
14127fi
14128if test ! -f "$as_myself"; then
14129  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14130  exit 1
14131fi
14132
14133
14134
14135# as_fn_error STATUS ERROR [LINENO LOG_FD]
14136# ----------------------------------------
14137# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14138# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14139# script with STATUS, using 1 if that was 0.
14140as_fn_error ()
14141{
14142  as_status=$1; test $as_status -eq 0 && as_status=1
14143  if test "$4"; then
14144    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14145    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14146  fi
14147  printf "%s\n" "$as_me: error: $2" >&2
14148  as_fn_exit $as_status
14149} # as_fn_error
14150
14151
14152
14153# as_fn_set_status STATUS
14154# -----------------------
14155# Set $? to STATUS, without forking.
14156as_fn_set_status ()
14157{
14158  return $1
14159} # as_fn_set_status
14160
14161# as_fn_exit STATUS
14162# -----------------
14163# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14164as_fn_exit ()
14165{
14166  set +e
14167  as_fn_set_status $1
14168  exit $1
14169} # as_fn_exit
14170
14171# as_fn_unset VAR
14172# ---------------
14173# Portably unset VAR.
14174as_fn_unset ()
14175{
14176  { eval $1=; unset $1;}
14177}
14178as_unset=as_fn_unset
14179
14180# as_fn_append VAR VALUE
14181# ----------------------
14182# Append the text in VALUE to the end of the definition contained in VAR. Take
14183# advantage of any shell optimizations that allow amortized linear growth over
14184# repeated appends, instead of the typical quadratic growth present in naive
14185# implementations.
14186if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
14187then :
14188  eval 'as_fn_append ()
14189  {
14190    eval $1+=\$2
14191  }'
14192else $as_nop
14193  as_fn_append ()
14194  {
14195    eval $1=\$$1\$2
14196  }
14197fi # as_fn_append
14198
14199# as_fn_arith ARG...
14200# ------------------
14201# Perform arithmetic evaluation on the ARGs, and store the result in the
14202# global $as_val. Take advantage of shells that can avoid forks. The arguments
14203# must be portable across $(()) and expr.
14204if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
14205then :
14206  eval 'as_fn_arith ()
14207  {
14208    as_val=$(( $* ))
14209  }'
14210else $as_nop
14211  as_fn_arith ()
14212  {
14213    as_val=`expr "$@" || test $? -eq 1`
14214  }
14215fi # as_fn_arith
14216
14217
14218if expr a : '\(a\)' >/dev/null 2>&1 &&
14219   test "X`expr 00001 : '.*\(...\)'`" = X001; then
14220  as_expr=expr
14221else
14222  as_expr=false
14223fi
14224
14225if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14226  as_basename=basename
14227else
14228  as_basename=false
14229fi
14230
14231if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14232  as_dirname=dirname
14233else
14234  as_dirname=false
14235fi
14236
14237as_me=`$as_basename -- "$0" ||
14238$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14239	 X"$0" : 'X\(//\)$' \| \
14240	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14241printf "%s\n" X/"$0" |
14242    sed '/^.*\/\([^/][^/]*\)\/*$/{
14243	    s//\1/
14244	    q
14245	  }
14246	  /^X\/\(\/\/\)$/{
14247	    s//\1/
14248	    q
14249	  }
14250	  /^X\/\(\/\).*/{
14251	    s//\1/
14252	    q
14253	  }
14254	  s/.*/./; q'`
14255
14256# Avoid depending upon Character Ranges.
14257as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14258as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14259as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14260as_cr_digits='0123456789'
14261as_cr_alnum=$as_cr_Letters$as_cr_digits
14262
14263
14264# Determine whether it's possible to make 'echo' print without a newline.
14265# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
14266# for compatibility with existing Makefiles.
14267ECHO_C= ECHO_N= ECHO_T=
14268case `echo -n x` in #(((((
14269-n*)
14270  case `echo 'xy\c'` in
14271  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
14272  xy)  ECHO_C='\c';;
14273  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14274       ECHO_T='	';;
14275  esac;;
14276*)
14277  ECHO_N='-n';;
14278esac
14279
14280# For backward compatibility with old third-party macros, we provide
14281# the shell variables $as_echo and $as_echo_n.  New code should use
14282# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
14283as_echo='printf %s\n'
14284as_echo_n='printf %s'
14285
14286rm -f conf$$ conf$$.exe conf$$.file
14287if test -d conf$$.dir; then
14288  rm -f conf$$.dir/conf$$.file
14289else
14290  rm -f conf$$.dir
14291  mkdir conf$$.dir 2>/dev/null
14292fi
14293if (echo >conf$$.file) 2>/dev/null; then
14294  if ln -s conf$$.file conf$$ 2>/dev/null; then
14295    as_ln_s='ln -s'
14296    # ... but there are two gotchas:
14297    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14298    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14299    # In both cases, we have to default to `cp -pR'.
14300    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14301      as_ln_s='cp -pR'
14302  elif ln conf$$.file conf$$ 2>/dev/null; then
14303    as_ln_s=ln
14304  else
14305    as_ln_s='cp -pR'
14306  fi
14307else
14308  as_ln_s='cp -pR'
14309fi
14310rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14311rmdir conf$$.dir 2>/dev/null
14312
14313
14314# as_fn_mkdir_p
14315# -------------
14316# Create "$as_dir" as a directory, including parents if necessary.
14317as_fn_mkdir_p ()
14318{
14319
14320  case $as_dir in #(
14321  -*) as_dir=./$as_dir;;
14322  esac
14323  test -d "$as_dir" || eval $as_mkdir_p || {
14324    as_dirs=
14325    while :; do
14326      case $as_dir in #(
14327      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14328      *) as_qdir=$as_dir;;
14329      esac
14330      as_dirs="'$as_qdir' $as_dirs"
14331      as_dir=`$as_dirname -- "$as_dir" ||
14332$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14333	 X"$as_dir" : 'X\(//\)[^/]' \| \
14334	 X"$as_dir" : 'X\(//\)$' \| \
14335	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14336printf "%s\n" X"$as_dir" |
14337    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14338	    s//\1/
14339	    q
14340	  }
14341	  /^X\(\/\/\)[^/].*/{
14342	    s//\1/
14343	    q
14344	  }
14345	  /^X\(\/\/\)$/{
14346	    s//\1/
14347	    q
14348	  }
14349	  /^X\(\/\).*/{
14350	    s//\1/
14351	    q
14352	  }
14353	  s/.*/./; q'`
14354      test -d "$as_dir" && break
14355    done
14356    test -z "$as_dirs" || eval "mkdir $as_dirs"
14357  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14358
14359
14360} # as_fn_mkdir_p
14361if mkdir -p . 2>/dev/null; then
14362  as_mkdir_p='mkdir -p "$as_dir"'
14363else
14364  test -d ./-p && rmdir ./-p
14365  as_mkdir_p=false
14366fi
14367
14368
14369# as_fn_executable_p FILE
14370# -----------------------
14371# Test if FILE is an executable regular file.
14372as_fn_executable_p ()
14373{
14374  test -f "$1" && test -x "$1"
14375} # as_fn_executable_p
14376as_test_x='test -x'
14377as_executable_p=as_fn_executable_p
14378
14379# Sed expression to map a string onto a valid CPP name.
14380as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14381
14382# Sed expression to map a string onto a valid variable name.
14383as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14384
14385
14386exec 6>&1
14387## ----------------------------------- ##
14388## Main body of $CONFIG_STATUS script. ##
14389## ----------------------------------- ##
14390_ASEOF
14391test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14392
14393cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14394# Save the log message, to keep $0 and so on meaningful, and to
14395# report actual input values of CONFIG_FILES etc. instead of their
14396# values after options handling.
14397ac_log="
14398This file was extended by g15daemon $as_me 3.0, which was
14399generated by GNU Autoconf 2.71.  Invocation command line was
14400
14401  CONFIG_FILES    = $CONFIG_FILES
14402  CONFIG_HEADERS  = $CONFIG_HEADERS
14403  CONFIG_LINKS    = $CONFIG_LINKS
14404  CONFIG_COMMANDS = $CONFIG_COMMANDS
14405  $ $0 $@
14406
14407on `(hostname || uname -n) 2>/dev/null | sed 1q`
14408"
14409
14410_ACEOF
14411
14412case $ac_config_files in *"
14413"*) set x $ac_config_files; shift; ac_config_files=$*;;
14414esac
14415
14416case $ac_config_headers in *"
14417"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14418esac
14419
14420
14421cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14422# Files that config.status was made for.
14423config_files="$ac_config_files"
14424config_headers="$ac_config_headers"
14425config_commands="$ac_config_commands"
14426
14427_ACEOF
14428
14429cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14430ac_cs_usage="\
14431\`$as_me' instantiates files and other configuration actions
14432from templates according to the current configuration.  Unless the files
14433and actions are specified as TAGs, all are instantiated by default.
14434
14435Usage: $0 [OPTION]... [TAG]...
14436
14437  -h, --help       print this help, then exit
14438  -V, --version    print version number and configuration settings, then exit
14439      --config     print configuration, then exit
14440  -q, --quiet, --silent
14441                   do not print progress messages
14442  -d, --debug      don't remove temporary files
14443      --recheck    update $as_me by reconfiguring in the same conditions
14444      --file=FILE[:TEMPLATE]
14445                   instantiate the configuration file FILE
14446      --header=FILE[:TEMPLATE]
14447                   instantiate the configuration header FILE
14448
14449Configuration files:
14450$config_files
14451
14452Configuration headers:
14453$config_headers
14454
14455Configuration commands:
14456$config_commands
14457
14458Report bugs to <menelkir@itroll.org>."
14459
14460_ACEOF
14461ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
14462ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
14463cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14464ac_cs_config='$ac_cs_config_escaped'
14465ac_cs_version="\\
14466g15daemon config.status 3.0
14467configured by $0, generated by GNU Autoconf 2.71,
14468  with options \\"\$ac_cs_config\\"
14469
14470Copyright (C) 2021 Free Software Foundation, Inc.
14471This config.status script is free software; the Free Software Foundation
14472gives unlimited permission to copy, distribute and modify it."
14473
14474ac_pwd='$ac_pwd'
14475srcdir='$srcdir'
14476INSTALL='$INSTALL'
14477MKDIR_P='$MKDIR_P'
14478AWK='$AWK'
14479test -n "\$AWK" || AWK=awk
14480_ACEOF
14481
14482cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14483# The default lists apply if the user does not specify any file.
14484ac_need_defaults=:
14485while test $# != 0
14486do
14487  case $1 in
14488  --*=?*)
14489    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14490    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14491    ac_shift=:
14492    ;;
14493  --*=)
14494    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14495    ac_optarg=
14496    ac_shift=:
14497    ;;
14498  *)
14499    ac_option=$1
14500    ac_optarg=$2
14501    ac_shift=shift
14502    ;;
14503  esac
14504
14505  case $ac_option in
14506  # Handling of the options.
14507  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14508    ac_cs_recheck=: ;;
14509  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14510    printf "%s\n" "$ac_cs_version"; exit ;;
14511  --config | --confi | --conf | --con | --co | --c )
14512    printf "%s\n" "$ac_cs_config"; exit ;;
14513  --debug | --debu | --deb | --de | --d | -d )
14514    debug=: ;;
14515  --file | --fil | --fi | --f )
14516    $ac_shift
14517    case $ac_optarg in
14518    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14519    '') as_fn_error $? "missing file argument" ;;
14520    esac
14521    as_fn_append CONFIG_FILES " '$ac_optarg'"
14522    ac_need_defaults=false;;
14523  --header | --heade | --head | --hea )
14524    $ac_shift
14525    case $ac_optarg in
14526    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14527    esac
14528    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14529    ac_need_defaults=false;;
14530  --he | --h)
14531    # Conflict between --help and --header
14532    as_fn_error $? "ambiguous option: \`$1'
14533Try \`$0 --help' for more information.";;
14534  --help | --hel | -h )
14535    printf "%s\n" "$ac_cs_usage"; exit ;;
14536  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14537  | -silent | --silent | --silen | --sile | --sil | --si | --s)
14538    ac_cs_silent=: ;;
14539
14540  # This is an error.
14541  -*) as_fn_error $? "unrecognized option: \`$1'
14542Try \`$0 --help' for more information." ;;
14543
14544  *) as_fn_append ac_config_targets " $1"
14545     ac_need_defaults=false ;;
14546
14547  esac
14548  shift
14549done
14550
14551ac_configure_extra_args=
14552
14553if $ac_cs_silent; then
14554  exec 6>/dev/null
14555  ac_configure_extra_args="$ac_configure_extra_args --silent"
14556fi
14557
14558_ACEOF
14559cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14560if \$ac_cs_recheck; then
14561  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14562  shift
14563  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
14564  CONFIG_SHELL='$SHELL'
14565  export CONFIG_SHELL
14566  exec "\$@"
14567fi
14568
14569_ACEOF
14570cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14571exec 5>>config.log
14572{
14573  echo
14574  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14575## Running $as_me. ##
14576_ASBOX
14577  printf "%s\n" "$ac_log"
14578} >&5
14579
14580_ACEOF
14581cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14582#
14583# INIT-COMMANDS
14584#
14585AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
14586
14587
14588# The HP-UX ksh and POSIX shell print the target directory to stdout
14589# if CDPATH is set.
14590(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14591
14592sed_quote_subst='$sed_quote_subst'
14593double_quote_subst='$double_quote_subst'
14594delay_variable_subst='$delay_variable_subst'
14595macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14596macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14597enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14598enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14599pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14600enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14601shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14602SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14603ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14604PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14605host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14606host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14607host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14608build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14609build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14610build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14611SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14612Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14613GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14614EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14615FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14616LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14617NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14618LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14619max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14620ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14621exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14622lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14623lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14624lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14625lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14626lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14627reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14628reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14629OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14630deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14631file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14632file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14633want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14634DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14635sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14636AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14637lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
14638AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14639archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14640STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14641RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14642old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14643old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14644old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14645lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14646CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14647CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14648compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14649GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14650lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14651lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14652lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14653lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14654lt_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"`'
14655lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14656nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14657lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14658lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14659objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14660MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14661lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14662lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14663lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14664lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14665lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14666need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14667MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14668DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14669NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14670LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14671OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14672OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14673libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14674shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14675extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14676archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14677enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14678export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14679whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14680compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14681old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14682old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14683archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14684archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14685module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14686module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14687with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14688allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14689no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14690hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14691hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14692hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14693hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14694hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14695hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14696hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14697inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14698link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14699always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14700export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14701exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14702include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14703prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14704postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14705file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14706variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14707need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14708need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14709version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14710runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14711shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14712shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14713libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14714library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14715soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14716install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14717postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14718postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14719finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14720finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14721hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14722sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14723configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14724configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14725hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14726enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14727enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14728enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14729old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14730striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14731
14732LTCC='$LTCC'
14733LTCFLAGS='$LTCFLAGS'
14734compiler='$compiler_DEFAULT'
14735
14736# A function that is used when there is no print builtin or printf.
14737func_fallback_echo ()
14738{
14739  eval 'cat <<_LTECHO_EOF
14740\$1
14741_LTECHO_EOF'
14742}
14743
14744# Quote evaled strings.
14745for var in SHELL \
14746ECHO \
14747PATH_SEPARATOR \
14748SED \
14749GREP \
14750EGREP \
14751FGREP \
14752LD \
14753NM \
14754LN_S \
14755lt_SP2NL \
14756lt_NL2SP \
14757reload_flag \
14758OBJDUMP \
14759deplibs_check_method \
14760file_magic_cmd \
14761file_magic_glob \
14762want_nocaseglob \
14763DLLTOOL \
14764sharedlib_from_linklib_cmd \
14765AR \
14766archiver_list_spec \
14767STRIP \
14768RANLIB \
14769CC \
14770CFLAGS \
14771compiler \
14772lt_cv_sys_global_symbol_pipe \
14773lt_cv_sys_global_symbol_to_cdecl \
14774lt_cv_sys_global_symbol_to_import \
14775lt_cv_sys_global_symbol_to_c_name_address \
14776lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14777lt_cv_nm_interface \
14778nm_file_list_spec \
14779lt_cv_truncate_bin \
14780lt_prog_compiler_no_builtin_flag \
14781lt_prog_compiler_pic \
14782lt_prog_compiler_wl \
14783lt_prog_compiler_static \
14784lt_cv_prog_compiler_c_o \
14785need_locks \
14786MANIFEST_TOOL \
14787DSYMUTIL \
14788NMEDIT \
14789LIPO \
14790OTOOL \
14791OTOOL64 \
14792shrext_cmds \
14793export_dynamic_flag_spec \
14794whole_archive_flag_spec \
14795compiler_needs_object \
14796with_gnu_ld \
14797allow_undefined_flag \
14798no_undefined_flag \
14799hardcode_libdir_flag_spec \
14800hardcode_libdir_separator \
14801exclude_expsyms \
14802include_expsyms \
14803file_list_spec \
14804variables_saved_for_relink \
14805libname_spec \
14806library_names_spec \
14807soname_spec \
14808install_override_mode \
14809finish_eval \
14810old_striplib \
14811striplib; do
14812    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14813    *[\\\\\\\`\\"\\\$]*)
14814      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14815      ;;
14816    *)
14817      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14818      ;;
14819    esac
14820done
14821
14822# Double-quote double-evaled strings.
14823for var in reload_cmds \
14824old_postinstall_cmds \
14825old_postuninstall_cmds \
14826old_archive_cmds \
14827extract_expsyms_cmds \
14828old_archive_from_new_cmds \
14829old_archive_from_expsyms_cmds \
14830archive_cmds \
14831archive_expsym_cmds \
14832module_cmds \
14833module_expsym_cmds \
14834export_symbols_cmds \
14835prelink_cmds \
14836postlink_cmds \
14837postinstall_cmds \
14838postuninstall_cmds \
14839finish_cmds \
14840sys_lib_search_path_spec \
14841configure_time_dlsearch_path \
14842configure_time_lt_sys_library_path; do
14843    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14844    *[\\\\\\\`\\"\\\$]*)
14845      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14846      ;;
14847    *)
14848      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14849      ;;
14850    esac
14851done
14852
14853ac_aux_dir='$ac_aux_dir'
14854
14855# See if we are running on zsh, and set the options that allow our
14856# commands through without removal of \ escapes INIT.
14857if test -n "\${ZSH_VERSION+set}"; then
14858   setopt NO_GLOB_SUBST
14859fi
14860
14861
14862    PACKAGE='$PACKAGE'
14863    VERSION='$VERSION'
14864    RM='$RM'
14865    ofile='$ofile'
14866
14867
14868
14869
14870_ACEOF
14871
14872cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14873
14874# Handling of arguments.
14875for ac_config_target in $ac_config_targets
14876do
14877  case $ac_config_target in
14878    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14879    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14880    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14881    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14882    "g15daemon/Makefile") CONFIG_FILES="$CONFIG_FILES g15daemon/Makefile" ;;
14883    "libg15daemon_client/Makefile") CONFIG_FILES="$CONFIG_FILES libg15daemon_client/Makefile" ;;
14884    "plugins/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;;
14885
14886  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14887  esac
14888done
14889
14890
14891# If the user did not use the arguments to specify the items to instantiate,
14892# then the envvar interface is used.  Set only those that are not.
14893# We use the long form for the default assignment because of an extremely
14894# bizarre bug on SunOS 4.1.3.
14895if $ac_need_defaults; then
14896  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
14897  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
14898  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
14899fi
14900
14901# Have a temporary directory for convenience.  Make it in the build tree
14902# simply because there is no reason against having it here, and in addition,
14903# creating and moving files from /tmp can sometimes cause problems.
14904# Hook for its removal unless debugging.
14905# Note that there is a small window in which the directory will not be cleaned:
14906# after its creation but before its name has been assigned to `$tmp'.
14907$debug ||
14908{
14909  tmp= ac_tmp=
14910  trap 'exit_status=$?
14911  : "${ac_tmp:=$tmp}"
14912  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14913' 0
14914  trap 'as_fn_exit 1' 1 2 13 15
14915}
14916# Create a (secure) tmp directory for tmp files.
14917
14918{
14919  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14920  test -d "$tmp"
14921}  ||
14922{
14923  tmp=./conf$$-$RANDOM
14924  (umask 077 && mkdir "$tmp")
14925} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14926ac_tmp=$tmp
14927
14928# Set up the scripts for CONFIG_FILES section.
14929# No need to generate them if there are no CONFIG_FILES.
14930# This happens for instance with `./config.status config.h'.
14931if test -n "$CONFIG_FILES"; then
14932
14933
14934ac_cr=`echo X | tr X '\015'`
14935# On cygwin, bash can eat \r inside `` if the user requested igncr.
14936# But we know of no other shell where ac_cr would be empty at this
14937# point, so we can use a bashism as a fallback.
14938if test "x$ac_cr" = x; then
14939  eval ac_cr=\$\'\\r\'
14940fi
14941ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14942if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14943  ac_cs_awk_cr='\\r'
14944else
14945  ac_cs_awk_cr=$ac_cr
14946fi
14947
14948echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14949_ACEOF
14950
14951
14952{
14953  echo "cat >conf$$subs.awk <<_ACEOF" &&
14954  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14955  echo "_ACEOF"
14956} >conf$$subs.sh ||
14957  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14958ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14959ac_delim='%!_!# '
14960for ac_last_try in false false false false false :; do
14961  . ./conf$$subs.sh ||
14962    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14963
14964  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14965  if test $ac_delim_n = $ac_delim_num; then
14966    break
14967  elif $ac_last_try; then
14968    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14969  else
14970    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14971  fi
14972done
14973rm -f conf$$subs.sh
14974
14975cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14976cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14977_ACEOF
14978sed -n '
14979h
14980s/^/S["/; s/!.*/"]=/
14981p
14982g
14983s/^[^!]*!//
14984:repl
14985t repl
14986s/'"$ac_delim"'$//
14987t delim
14988:nl
14989h
14990s/\(.\{148\}\)..*/\1/
14991t more1
14992s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14993p
14994n
14995b repl
14996:more1
14997s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14998p
14999g
15000s/.\{148\}//
15001t nl
15002:delim
15003h
15004s/\(.\{148\}\)..*/\1/
15005t more2
15006s/["\\]/\\&/g; s/^/"/; s/$/"/
15007p
15008b
15009:more2
15010s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15011p
15012g
15013s/.\{148\}//
15014t delim
15015' <conf$$subs.awk | sed '
15016/^[^""]/{
15017  N
15018  s/\n//
15019}
15020' >>$CONFIG_STATUS || ac_write_fail=1
15021rm -f conf$$subs.awk
15022cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15023_ACAWK
15024cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15025  for (key in S) S_is_set[key] = 1
15026  FS = ""
15027
15028}
15029{
15030  line = $ 0
15031  nfields = split(line, field, "@")
15032  substed = 0
15033  len = length(field[1])
15034  for (i = 2; i < nfields; i++) {
15035    key = field[i]
15036    keylen = length(key)
15037    if (S_is_set[key]) {
15038      value = S[key]
15039      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15040      len += length(value) + length(field[++i])
15041      substed = 1
15042    } else
15043      len += 1 + keylen
15044  }
15045
15046  print line
15047}
15048
15049_ACAWK
15050_ACEOF
15051cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15052if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15053  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15054else
15055  cat
15056fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15057  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15058_ACEOF
15059
15060# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15061# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15062# trailing colons and then remove the whole line if VPATH becomes empty
15063# (actually we leave an empty line to preserve line numbers).
15064if test "x$srcdir" = x.; then
15065  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
15066h
15067s///
15068s/^/:/
15069s/[	 ]*$/:/
15070s/:\$(srcdir):/:/g
15071s/:\${srcdir}:/:/g
15072s/:@srcdir@:/:/g
15073s/^:*//
15074s/:*$//
15075x
15076s/\(=[	 ]*\).*/\1/
15077G
15078s/\n//
15079s/^[^=]*=[	 ]*$//
15080}'
15081fi
15082
15083cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15084fi # test -n "$CONFIG_FILES"
15085
15086# Set up the scripts for CONFIG_HEADERS section.
15087# No need to generate them if there are no CONFIG_HEADERS.
15088# This happens for instance with `./config.status Makefile'.
15089if test -n "$CONFIG_HEADERS"; then
15090cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15091BEGIN {
15092_ACEOF
15093
15094# Transform confdefs.h into an awk script `defines.awk', embedded as
15095# here-document in config.status, that substitutes the proper values into
15096# config.h.in to produce config.h.
15097
15098# Create a delimiter string that does not exist in confdefs.h, to ease
15099# handling of long lines.
15100ac_delim='%!_!# '
15101for ac_last_try in false false :; do
15102  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15103  if test -z "$ac_tt"; then
15104    break
15105  elif $ac_last_try; then
15106    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15107  else
15108    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15109  fi
15110done
15111
15112# For the awk script, D is an array of macro values keyed by name,
15113# likewise P contains macro parameters if any.  Preserve backslash
15114# newline sequences.
15115
15116ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15117sed -n '
15118s/.\{148\}/&'"$ac_delim"'/g
15119t rset
15120:rset
15121s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
15122t def
15123d
15124:def
15125s/\\$//
15126t bsnl
15127s/["\\]/\\&/g
15128s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15129D["\1"]=" \3"/p
15130s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
15131d
15132:bsnl
15133s/["\\]/\\&/g
15134s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15135D["\1"]=" \3\\\\\\n"\\/p
15136t cont
15137s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15138t cont
15139d
15140:cont
15141n
15142s/.\{148\}/&'"$ac_delim"'/g
15143t clear
15144:clear
15145s/\\$//
15146t bsnlc
15147s/["\\]/\\&/g; s/^/"/; s/$/"/p
15148d
15149:bsnlc
15150s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15151b cont
15152' <confdefs.h | sed '
15153s/'"$ac_delim"'/"\\\
15154"/g' >>$CONFIG_STATUS || ac_write_fail=1
15155
15156cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15157  for (key in D) D_is_set[key] = 1
15158  FS = ""
15159}
15160/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15161  line = \$ 0
15162  split(line, arg, " ")
15163  if (arg[1] == "#") {
15164    defundef = arg[2]
15165    mac1 = arg[3]
15166  } else {
15167    defundef = substr(arg[1], 2)
15168    mac1 = arg[2]
15169  }
15170  split(mac1, mac2, "(") #)
15171  macro = mac2[1]
15172  prefix = substr(line, 1, index(line, defundef) - 1)
15173  if (D_is_set[macro]) {
15174    # Preserve the white space surrounding the "#".
15175    print prefix "define", macro P[macro] D[macro]
15176    next
15177  } else {
15178    # Replace #undef with comments.  This is necessary, for example,
15179    # in the case of _POSIX_SOURCE, which is predefined and required
15180    # on some systems where configure will not decide to define it.
15181    if (defundef == "undef") {
15182      print "/*", prefix defundef, macro, "*/"
15183      next
15184    }
15185  }
15186}
15187{ print }
15188_ACAWK
15189_ACEOF
15190cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15191  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15192fi # test -n "$CONFIG_HEADERS"
15193
15194
15195eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
15196shift
15197for ac_tag
15198do
15199  case $ac_tag in
15200  :[FHLC]) ac_mode=$ac_tag; continue;;
15201  esac
15202  case $ac_mode$ac_tag in
15203  :[FHL]*:*);;
15204  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15205  :[FH]-) ac_tag=-:-;;
15206  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15207  esac
15208  ac_save_IFS=$IFS
15209  IFS=:
15210  set x $ac_tag
15211  IFS=$ac_save_IFS
15212  shift
15213  ac_file=$1
15214  shift
15215
15216  case $ac_mode in
15217  :L) ac_source=$1;;
15218  :[FH])
15219    ac_file_inputs=
15220    for ac_f
15221    do
15222      case $ac_f in
15223      -) ac_f="$ac_tmp/stdin";;
15224      *) # Look for the file first in the build tree, then in the source tree
15225	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
15226	 # because $ac_f cannot contain `:'.
15227	 test -f "$ac_f" ||
15228	   case $ac_f in
15229	   [\\/$]*) false;;
15230	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15231	   esac ||
15232	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15233      esac
15234      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15235      as_fn_append ac_file_inputs " '$ac_f'"
15236    done
15237
15238    # Let's still pretend it is `configure' which instantiates (i.e., don't
15239    # use $as_me), people would be surprised to read:
15240    #    /* config.h.  Generated by config.status.  */
15241    configure_input='Generated from '`
15242	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15243	`' by configure.'
15244    if test x"$ac_file" != x-; then
15245      configure_input="$ac_file.  $configure_input"
15246      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15247printf "%s\n" "$as_me: creating $ac_file" >&6;}
15248    fi
15249    # Neutralize special characters interpreted by sed in replacement strings.
15250    case $configure_input in #(
15251    *\&* | *\|* | *\\* )
15252       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
15253       sed 's/[\\\\&|]/\\\\&/g'`;; #(
15254    *) ac_sed_conf_input=$configure_input;;
15255    esac
15256
15257    case $ac_tag in
15258    *:-:* | *:-) cat >"$ac_tmp/stdin" \
15259      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15260    esac
15261    ;;
15262  esac
15263
15264  ac_dir=`$as_dirname -- "$ac_file" ||
15265$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15266	 X"$ac_file" : 'X\(//\)[^/]' \| \
15267	 X"$ac_file" : 'X\(//\)$' \| \
15268	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15269printf "%s\n" X"$ac_file" |
15270    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15271	    s//\1/
15272	    q
15273	  }
15274	  /^X\(\/\/\)[^/].*/{
15275	    s//\1/
15276	    q
15277	  }
15278	  /^X\(\/\/\)$/{
15279	    s//\1/
15280	    q
15281	  }
15282	  /^X\(\/\).*/{
15283	    s//\1/
15284	    q
15285	  }
15286	  s/.*/./; q'`
15287  as_dir="$ac_dir"; as_fn_mkdir_p
15288  ac_builddir=.
15289
15290case "$ac_dir" in
15291.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15292*)
15293  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
15294  # A ".." for each directory in $ac_dir_suffix.
15295  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15296  case $ac_top_builddir_sub in
15297  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15298  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15299  esac ;;
15300esac
15301ac_abs_top_builddir=$ac_pwd
15302ac_abs_builddir=$ac_pwd$ac_dir_suffix
15303# for backward compatibility:
15304ac_top_builddir=$ac_top_build_prefix
15305
15306case $srcdir in
15307  .)  # We are building in place.
15308    ac_srcdir=.
15309    ac_top_srcdir=$ac_top_builddir_sub
15310    ac_abs_top_srcdir=$ac_pwd ;;
15311  [\\/]* | ?:[\\/]* )  # Absolute name.
15312    ac_srcdir=$srcdir$ac_dir_suffix;
15313    ac_top_srcdir=$srcdir
15314    ac_abs_top_srcdir=$srcdir ;;
15315  *) # Relative name.
15316    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15317    ac_top_srcdir=$ac_top_build_prefix$srcdir
15318    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15319esac
15320ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15321
15322
15323  case $ac_mode in
15324  :F)
15325  #
15326  # CONFIG_FILE
15327  #
15328
15329  case $INSTALL in
15330  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15331  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15332  esac
15333  ac_MKDIR_P=$MKDIR_P
15334  case $MKDIR_P in
15335  [\\/$]* | ?:[\\/]* ) ;;
15336  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15337  esac
15338_ACEOF
15339
15340cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15341# If the template does not know about datarootdir, expand it.
15342# FIXME: This hack should be removed a few years after 2.60.
15343ac_datarootdir_hack=; ac_datarootdir_seen=
15344ac_sed_dataroot='
15345/datarootdir/ {
15346  p
15347  q
15348}
15349/@datadir@/p
15350/@docdir@/p
15351/@infodir@/p
15352/@localedir@/p
15353/@mandir@/p'
15354case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15355*datarootdir*) ac_datarootdir_seen=yes;;
15356*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15357  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15358printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15359_ACEOF
15360cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15361  ac_datarootdir_hack='
15362  s&@datadir@&$datadir&g
15363  s&@docdir@&$docdir&g
15364  s&@infodir@&$infodir&g
15365  s&@localedir@&$localedir&g
15366  s&@mandir@&$mandir&g
15367  s&\\\${datarootdir}&$datarootdir&g' ;;
15368esac
15369_ACEOF
15370
15371# Neutralize VPATH when `$srcdir' = `.'.
15372# Shell code in configure.ac might set extrasub.
15373# FIXME: do we really want to maintain this feature?
15374cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15375ac_sed_extra="$ac_vpsub
15376$extrasub
15377_ACEOF
15378cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15379:t
15380/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15381s|@configure_input@|$ac_sed_conf_input|;t t
15382s&@top_builddir@&$ac_top_builddir_sub&;t t
15383s&@top_build_prefix@&$ac_top_build_prefix&;t t
15384s&@srcdir@&$ac_srcdir&;t t
15385s&@abs_srcdir@&$ac_abs_srcdir&;t t
15386s&@top_srcdir@&$ac_top_srcdir&;t t
15387s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15388s&@builddir@&$ac_builddir&;t t
15389s&@abs_builddir@&$ac_abs_builddir&;t t
15390s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15391s&@INSTALL@&$ac_INSTALL&;t t
15392s&@MKDIR_P@&$ac_MKDIR_P&;t t
15393$ac_datarootdir_hack
15394"
15395eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15396  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15397
15398test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15399  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15400  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
15401      "$ac_tmp/out"`; test -z "$ac_out"; } &&
15402  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15403which seems to be undefined.  Please make sure it is defined" >&5
15404printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15405which seems to be undefined.  Please make sure it is defined" >&2;}
15406
15407  rm -f "$ac_tmp/stdin"
15408  case $ac_file in
15409  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15410  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15411  esac \
15412  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15413 ;;
15414  :H)
15415  #
15416  # CONFIG_HEADER
15417  #
15418  if test x"$ac_file" != x-; then
15419    {
15420      printf "%s\n" "/* $configure_input  */" >&1 \
15421      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15422    } >"$ac_tmp/config.h" \
15423      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15424    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15425      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15426printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
15427    else
15428      rm -f "$ac_file"
15429      mv "$ac_tmp/config.h" "$ac_file" \
15430	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
15431    fi
15432  else
15433    printf "%s\n" "/* $configure_input  */" >&1 \
15434      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15435      || as_fn_error $? "could not create -" "$LINENO" 5
15436  fi
15437# Compute "$ac_file"'s index in $config_headers.
15438_am_arg="$ac_file"
15439_am_stamp_count=1
15440for _am_header in $config_headers :; do
15441  case $_am_header in
15442    $_am_arg | $_am_arg:* )
15443      break ;;
15444    * )
15445      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15446  esac
15447done
15448echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15449$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15450	 X"$_am_arg" : 'X\(//\)[^/]' \| \
15451	 X"$_am_arg" : 'X\(//\)$' \| \
15452	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15453printf "%s\n" X"$_am_arg" |
15454    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15455	    s//\1/
15456	    q
15457	  }
15458	  /^X\(\/\/\)[^/].*/{
15459	    s//\1/
15460	    q
15461	  }
15462	  /^X\(\/\/\)$/{
15463	    s//\1/
15464	    q
15465	  }
15466	  /^X\(\/\).*/{
15467	    s//\1/
15468	    q
15469	  }
15470	  s/.*/./; q'`/stamp-h$_am_stamp_count
15471 ;;
15472
15473  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15474printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
15475 ;;
15476  esac
15477
15478
15479  case $ac_file$ac_mode in
15480    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15481  # Older Autoconf quotes --file arguments for eval, but not when files
15482  # are listed without --file.  Let's play safe and only enable the eval
15483  # if we detect the quoting.
15484  # TODO: see whether this extra hack can be removed once we start
15485  # requiring Autoconf 2.70 or later.
15486  case $CONFIG_FILES in #(
15487  *\'*) :
15488    eval set x "$CONFIG_FILES" ;; #(
15489  *) :
15490    set x $CONFIG_FILES ;; #(
15491  *) :
15492     ;;
15493esac
15494  shift
15495  # Used to flag and report bootstrapping failures.
15496  am_rc=0
15497  for am_mf
15498  do
15499    # Strip MF so we end up with the name of the file.
15500    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
15501    # Check whether this is an Automake generated Makefile which includes
15502    # dependency-tracking related rules and includes.
15503    # Grep'ing the whole file directly is not great: AIX grep has a line
15504    # limit of 2048, but all sed's we know have understand at least 4000.
15505    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
15506      || continue
15507    am_dirpart=`$as_dirname -- "$am_mf" ||
15508$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15509	 X"$am_mf" : 'X\(//\)[^/]' \| \
15510	 X"$am_mf" : 'X\(//\)$' \| \
15511	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15512printf "%s\n" X"$am_mf" |
15513    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15514	    s//\1/
15515	    q
15516	  }
15517	  /^X\(\/\/\)[^/].*/{
15518	    s//\1/
15519	    q
15520	  }
15521	  /^X\(\/\/\)$/{
15522	    s//\1/
15523	    q
15524	  }
15525	  /^X\(\/\).*/{
15526	    s//\1/
15527	    q
15528	  }
15529	  s/.*/./; q'`
15530    am_filepart=`$as_basename -- "$am_mf" ||
15531$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
15532	 X"$am_mf" : 'X\(//\)$' \| \
15533	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15534printf "%s\n" X/"$am_mf" |
15535    sed '/^.*\/\([^/][^/]*\)\/*$/{
15536	    s//\1/
15537	    q
15538	  }
15539	  /^X\/\(\/\/\)$/{
15540	    s//\1/
15541	    q
15542	  }
15543	  /^X\/\(\/\).*/{
15544	    s//\1/
15545	    q
15546	  }
15547	  s/.*/./; q'`
15548    { echo "$as_me:$LINENO: cd "$am_dirpart" \
15549      && sed -e '/# am--include-marker/d' "$am_filepart" \
15550        | $MAKE -f - am--depfiles" >&5
15551   (cd "$am_dirpart" \
15552      && sed -e '/# am--include-marker/d' "$am_filepart" \
15553        | $MAKE -f - am--depfiles) >&5 2>&5
15554   ac_status=$?
15555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556   (exit $ac_status); } || am_rc=$?
15557  done
15558  if test $am_rc -ne 0; then
15559    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15560printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15561as_fn_error $? "Something went wrong bootstrapping makefile fragments
15562    for automatic dependency tracking.  If GNU make was not used, consider
15563    re-running the configure script with MAKE=\"gmake\" (or whatever is
15564    necessary).  You can also try re-running configure with the
15565    '--disable-dependency-tracking' option to at least be able to build
15566    the package (albeit without support for automatic dependency tracking).
15567See \`config.log' for more details" "$LINENO" 5; }
15568  fi
15569  { am_dirpart=; unset am_dirpart;}
15570  { am_filepart=; unset am_filepart;}
15571  { am_mf=; unset am_mf;}
15572  { am_rc=; unset am_rc;}
15573  rm -f conftest-deps.mk
15574}
15575 ;;
15576    "libtool":C)
15577
15578    # See if we are running on zsh, and set the options that allow our
15579    # commands through without removal of \ escapes.
15580    if test -n "${ZSH_VERSION+set}"; then
15581      setopt NO_GLOB_SUBST
15582    fi
15583
15584    cfgfile=${ofile}T
15585    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15586    $RM "$cfgfile"
15587
15588    cat <<_LT_EOF >> "$cfgfile"
15589#! $SHELL
15590# Generated automatically by $as_me ($PACKAGE) $VERSION
15591# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15592
15593# Provide generalized library-building support services.
15594# Written by Gordon Matzigkeit, 1996
15595
15596# Copyright (C) 2014 Free Software Foundation, Inc.
15597# This is free software; see the source for copying conditions.  There is NO
15598# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15599
15600# GNU Libtool is free software; you can redistribute it and/or modify
15601# it under the terms of the GNU General Public License as published by
15602# the Free Software Foundation; either version 2 of of the License, or
15603# (at your option) any later version.
15604#
15605# As a special exception to the GNU General Public License, if you
15606# distribute this file as part of a program or library that is built
15607# using GNU Libtool, you may include this file under the  same
15608# distribution terms that you use for the rest of that program.
15609#
15610# GNU Libtool is distributed in the hope that it will be useful, but
15611# WITHOUT ANY WARRANTY; without even the implied warranty of
15612# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15613# GNU General Public License for more details.
15614#
15615# You should have received a copy of the GNU General Public License
15616# along with this program.  If not, see <http://www.gnu.org/licenses/>.
15617
15618
15619# The names of the tagged configurations supported by this script.
15620available_tags=''
15621
15622# Configured defaults for sys_lib_dlsearch_path munging.
15623: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15624
15625# ### BEGIN LIBTOOL CONFIG
15626
15627# Which release of libtool.m4 was used?
15628macro_version=$macro_version
15629macro_revision=$macro_revision
15630
15631# Whether or not to build shared libraries.
15632build_libtool_libs=$enable_shared
15633
15634# Whether or not to build static libraries.
15635build_old_libs=$enable_static
15636
15637# What type of objects to build.
15638pic_mode=$pic_mode
15639
15640# Whether or not to optimize for fast installation.
15641fast_install=$enable_fast_install
15642
15643# Shared archive member basename,for filename based shared library versioning on AIX.
15644shared_archive_member_spec=$shared_archive_member_spec
15645
15646# Shell to use when invoking shell scripts.
15647SHELL=$lt_SHELL
15648
15649# An echo program that protects backslashes.
15650ECHO=$lt_ECHO
15651
15652# The PATH separator for the build system.
15653PATH_SEPARATOR=$lt_PATH_SEPARATOR
15654
15655# The host system.
15656host_alias=$host_alias
15657host=$host
15658host_os=$host_os
15659
15660# The build system.
15661build_alias=$build_alias
15662build=$build
15663build_os=$build_os
15664
15665# A sed program that does not truncate output.
15666SED=$lt_SED
15667
15668# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15669Xsed="\$SED -e 1s/^X//"
15670
15671# A grep program that handles long lines.
15672GREP=$lt_GREP
15673
15674# An ERE matcher.
15675EGREP=$lt_EGREP
15676
15677# A literal string matcher.
15678FGREP=$lt_FGREP
15679
15680# A BSD- or MS-compatible name lister.
15681NM=$lt_NM
15682
15683# Whether we need soft or hard links.
15684LN_S=$lt_LN_S
15685
15686# What is the maximum length of a command?
15687max_cmd_len=$max_cmd_len
15688
15689# Object file suffix (normally "o").
15690objext=$ac_objext
15691
15692# Executable file suffix (normally "").
15693exeext=$exeext
15694
15695# whether the shell understands "unset".
15696lt_unset=$lt_unset
15697
15698# turn spaces into newlines.
15699SP2NL=$lt_lt_SP2NL
15700
15701# turn newlines into spaces.
15702NL2SP=$lt_lt_NL2SP
15703
15704# convert \$build file names to \$host format.
15705to_host_file_cmd=$lt_cv_to_host_file_cmd
15706
15707# convert \$build files to toolchain format.
15708to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15709
15710# An object symbol dumper.
15711OBJDUMP=$lt_OBJDUMP
15712
15713# Method to check whether dependent libraries are shared objects.
15714deplibs_check_method=$lt_deplibs_check_method
15715
15716# Command to use when deplibs_check_method = "file_magic".
15717file_magic_cmd=$lt_file_magic_cmd
15718
15719# How to find potential files when deplibs_check_method = "file_magic".
15720file_magic_glob=$lt_file_magic_glob
15721
15722# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15723want_nocaseglob=$lt_want_nocaseglob
15724
15725# DLL creation program.
15726DLLTOOL=$lt_DLLTOOL
15727
15728# Command to associate shared and link libraries.
15729sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15730
15731# The archiver.
15732AR=$lt_AR
15733
15734# Flags to create an archive (by configure).
15735lt_ar_flags=$lt_ar_flags
15736
15737# Flags to create an archive.
15738AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
15739
15740# How to feed a file listing to the archiver.
15741archiver_list_spec=$lt_archiver_list_spec
15742
15743# A symbol stripping program.
15744STRIP=$lt_STRIP
15745
15746# Commands used to install an old-style archive.
15747RANLIB=$lt_RANLIB
15748old_postinstall_cmds=$lt_old_postinstall_cmds
15749old_postuninstall_cmds=$lt_old_postuninstall_cmds
15750
15751# Whether to use a lock for old archive extraction.
15752lock_old_archive_extraction=$lock_old_archive_extraction
15753
15754# A C compiler.
15755LTCC=$lt_CC
15756
15757# LTCC compiler flags.
15758LTCFLAGS=$lt_CFLAGS
15759
15760# Take the output of nm and produce a listing of raw symbols and C names.
15761global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15762
15763# Transform the output of nm in a proper C declaration.
15764global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15765
15766# Transform the output of nm into a list of symbols to manually relocate.
15767global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15768
15769# Transform the output of nm in a C name address pair.
15770global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15771
15772# Transform the output of nm in a C name address pair when lib prefix is needed.
15773global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15774
15775# The name lister interface.
15776nm_interface=$lt_lt_cv_nm_interface
15777
15778# Specify filename containing input files for \$NM.
15779nm_file_list_spec=$lt_nm_file_list_spec
15780
15781# The root where to search for dependent libraries,and where our libraries should be installed.
15782lt_sysroot=$lt_sysroot
15783
15784# Command to truncate a binary pipe.
15785lt_truncate_bin=$lt_lt_cv_truncate_bin
15786
15787# The name of the directory that contains temporary libtool files.
15788objdir=$objdir
15789
15790# Used to examine libraries when file_magic_cmd begins with "file".
15791MAGIC_CMD=$MAGIC_CMD
15792
15793# Must we lock files when doing compilation?
15794need_locks=$lt_need_locks
15795
15796# Manifest tool.
15797MANIFEST_TOOL=$lt_MANIFEST_TOOL
15798
15799# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15800DSYMUTIL=$lt_DSYMUTIL
15801
15802# Tool to change global to local symbols on Mac OS X.
15803NMEDIT=$lt_NMEDIT
15804
15805# Tool to manipulate fat objects and archives on Mac OS X.
15806LIPO=$lt_LIPO
15807
15808# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15809OTOOL=$lt_OTOOL
15810
15811# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15812OTOOL64=$lt_OTOOL64
15813
15814# Old archive suffix (normally "a").
15815libext=$libext
15816
15817# Shared library suffix (normally ".so").
15818shrext_cmds=$lt_shrext_cmds
15819
15820# The commands to extract the exported symbol list from a shared archive.
15821extract_expsyms_cmds=$lt_extract_expsyms_cmds
15822
15823# Variables whose values should be saved in libtool wrapper scripts and
15824# restored at link time.
15825variables_saved_for_relink=$lt_variables_saved_for_relink
15826
15827# Do we need the "lib" prefix for modules?
15828need_lib_prefix=$need_lib_prefix
15829
15830# Do we need a version for libraries?
15831need_version=$need_version
15832
15833# Library versioning type.
15834version_type=$version_type
15835
15836# Shared library runtime path variable.
15837runpath_var=$runpath_var
15838
15839# Shared library path variable.
15840shlibpath_var=$shlibpath_var
15841
15842# Is shlibpath searched before the hard-coded library search path?
15843shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15844
15845# Format of library name prefix.
15846libname_spec=$lt_libname_spec
15847
15848# List of archive names.  First name is the real one, the rest are links.
15849# The last name is the one that the linker finds with -lNAME
15850library_names_spec=$lt_library_names_spec
15851
15852# The coded name of the library, if different from the real name.
15853soname_spec=$lt_soname_spec
15854
15855# Permission mode override for installation of shared libraries.
15856install_override_mode=$lt_install_override_mode
15857
15858# Command to use after installation of a shared archive.
15859postinstall_cmds=$lt_postinstall_cmds
15860
15861# Command to use after uninstallation of a shared archive.
15862postuninstall_cmds=$lt_postuninstall_cmds
15863
15864# Commands used to finish a libtool library installation in a directory.
15865finish_cmds=$lt_finish_cmds
15866
15867# As "finish_cmds", except a single script fragment to be evaled but
15868# not shown.
15869finish_eval=$lt_finish_eval
15870
15871# Whether we should hardcode library paths into libraries.
15872hardcode_into_libs=$hardcode_into_libs
15873
15874# Compile-time system search path for libraries.
15875sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15876
15877# Detected run-time system search path for libraries.
15878sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15879
15880# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15881configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15882
15883# Whether dlopen is supported.
15884dlopen_support=$enable_dlopen
15885
15886# Whether dlopen of programs is supported.
15887dlopen_self=$enable_dlopen_self
15888
15889# Whether dlopen of statically linked programs is supported.
15890dlopen_self_static=$enable_dlopen_self_static
15891
15892# Commands to strip libraries.
15893old_striplib=$lt_old_striplib
15894striplib=$lt_striplib
15895
15896
15897# The linker used to build libraries.
15898LD=$lt_LD
15899
15900# How to create reloadable object files.
15901reload_flag=$lt_reload_flag
15902reload_cmds=$lt_reload_cmds
15903
15904# Commands used to build an old-style archive.
15905old_archive_cmds=$lt_old_archive_cmds
15906
15907# A language specific compiler.
15908CC=$lt_compiler
15909
15910# Is the compiler the GNU compiler?
15911with_gcc=$GCC
15912
15913# Compiler flag to turn off builtin functions.
15914no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15915
15916# Additional compiler flags for building library objects.
15917pic_flag=$lt_lt_prog_compiler_pic
15918
15919# How to pass a linker flag through the compiler.
15920wl=$lt_lt_prog_compiler_wl
15921
15922# Compiler flag to prevent dynamic linking.
15923link_static_flag=$lt_lt_prog_compiler_static
15924
15925# Does compiler simultaneously support -c and -o options?
15926compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15927
15928# Whether or not to add -lc for building shared libraries.
15929build_libtool_need_lc=$archive_cmds_need_lc
15930
15931# Whether or not to disallow shared libs when runtime libs are static.
15932allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15933
15934# Compiler flag to allow reflexive dlopens.
15935export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15936
15937# Compiler flag to generate shared objects directly from archives.
15938whole_archive_flag_spec=$lt_whole_archive_flag_spec
15939
15940# Whether the compiler copes with passing no objects directly.
15941compiler_needs_object=$lt_compiler_needs_object
15942
15943# Create an old-style archive from a shared archive.
15944old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15945
15946# Create a temporary old-style archive to link instead of a shared archive.
15947old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15948
15949# Commands used to build a shared archive.
15950archive_cmds=$lt_archive_cmds
15951archive_expsym_cmds=$lt_archive_expsym_cmds
15952
15953# Commands used to build a loadable module if different from building
15954# a shared archive.
15955module_cmds=$lt_module_cmds
15956module_expsym_cmds=$lt_module_expsym_cmds
15957
15958# Whether we are building with GNU ld or not.
15959with_gnu_ld=$lt_with_gnu_ld
15960
15961# Flag that allows shared libraries with undefined symbols to be built.
15962allow_undefined_flag=$lt_allow_undefined_flag
15963
15964# Flag that enforces no undefined symbols.
15965no_undefined_flag=$lt_no_undefined_flag
15966
15967# Flag to hardcode \$libdir into a binary during linking.
15968# This must work even if \$libdir does not exist
15969hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15970
15971# Whether we need a single "-rpath" flag with a separated argument.
15972hardcode_libdir_separator=$lt_hardcode_libdir_separator
15973
15974# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15975# DIR into the resulting binary.
15976hardcode_direct=$hardcode_direct
15977
15978# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15979# DIR into the resulting binary and the resulting library dependency is
15980# "absolute",i.e impossible to change by setting \$shlibpath_var if the
15981# library is relocated.
15982hardcode_direct_absolute=$hardcode_direct_absolute
15983
15984# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15985# into the resulting binary.
15986hardcode_minus_L=$hardcode_minus_L
15987
15988# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15989# into the resulting binary.
15990hardcode_shlibpath_var=$hardcode_shlibpath_var
15991
15992# Set to "yes" if building a shared library automatically hardcodes DIR
15993# into the library and all subsequent libraries and executables linked
15994# against it.
15995hardcode_automatic=$hardcode_automatic
15996
15997# Set to yes if linker adds runtime paths of dependent libraries
15998# to runtime path list.
15999inherit_rpath=$inherit_rpath
16000
16001# Whether libtool must link a program against all its dependency libraries.
16002link_all_deplibs=$link_all_deplibs
16003
16004# Set to "yes" if exported symbols are required.
16005always_export_symbols=$always_export_symbols
16006
16007# The commands to list exported symbols.
16008export_symbols_cmds=$lt_export_symbols_cmds
16009
16010# Symbols that should not be listed in the preloaded symbols.
16011exclude_expsyms=$lt_exclude_expsyms
16012
16013# Symbols that must always be exported.
16014include_expsyms=$lt_include_expsyms
16015
16016# Commands necessary for linking programs (against libraries) with templates.
16017prelink_cmds=$lt_prelink_cmds
16018
16019# Commands necessary for finishing linking programs.
16020postlink_cmds=$lt_postlink_cmds
16021
16022# Specify filename containing input files.
16023file_list_spec=$lt_file_list_spec
16024
16025# How to hardcode a shared library path into an executable.
16026hardcode_action=$hardcode_action
16027
16028# ### END LIBTOOL CONFIG
16029
16030_LT_EOF
16031
16032    cat <<'_LT_EOF' >> "$cfgfile"
16033
16034# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
16035
16036# func_munge_path_list VARIABLE PATH
16037# -----------------------------------
16038# VARIABLE is name of variable containing _space_ separated list of
16039# directories to be munged by the contents of PATH, which is string
16040# having a format:
16041# "DIR[:DIR]:"
16042#       string "DIR[ DIR]" will be prepended to VARIABLE
16043# ":DIR[:DIR]"
16044#       string "DIR[ DIR]" will be appended to VARIABLE
16045# "DIRP[:DIRP]::[DIRA:]DIRA"
16046#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16047#       "DIRA[ DIRA]" will be appended to VARIABLE
16048# "DIR[:DIR]"
16049#       VARIABLE will be replaced by "DIR[ DIR]"
16050func_munge_path_list ()
16051{
16052    case x$2 in
16053    x)
16054        ;;
16055    *:)
16056        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
16057        ;;
16058    x:*)
16059        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
16060        ;;
16061    *::*)
16062        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
16063        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
16064        ;;
16065    *)
16066        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
16067        ;;
16068    esac
16069}
16070
16071
16072# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
16073func_cc_basename ()
16074{
16075    for cc_temp in $*""; do
16076      case $cc_temp in
16077        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16078        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16079        \-*) ;;
16080        *) break;;
16081      esac
16082    done
16083    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16084}
16085
16086
16087# ### END FUNCTIONS SHARED WITH CONFIGURE
16088
16089_LT_EOF
16090
16091  case $host_os in
16092  aix3*)
16093    cat <<\_LT_EOF >> "$cfgfile"
16094# AIX sometimes has problems with the GCC collect2 program.  For some
16095# reason, if we set the COLLECT_NAMES environment variable, the problems
16096# vanish in a puff of smoke.
16097if test set != "${COLLECT_NAMES+set}"; then
16098  COLLECT_NAMES=
16099  export COLLECT_NAMES
16100fi
16101_LT_EOF
16102    ;;
16103  esac
16104
16105
16106
16107ltmain=$ac_aux_dir/ltmain.sh
16108
16109
16110  # We use sed instead of cat because bash on DJGPP gets confused if
16111  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16112  # text mode, it properly converts lines to CR/LF.  This bash problem
16113  # is reportedly fixed, but why not run on old versions too?
16114  sed '$q' "$ltmain" >> "$cfgfile" \
16115     || (rm -f "$cfgfile"; exit 1)
16116
16117   mv -f "$cfgfile" "$ofile" ||
16118    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16119  chmod +x "$ofile"
16120
16121 ;;
16122
16123  esac
16124done # for ac_tag
16125
16126
16127as_fn_exit 0
16128_ACEOF
16129ac_clean_files=$ac_clean_files_save
16130
16131test $ac_write_fail = 0 ||
16132  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16133
16134
16135# configure is writing to config.log, and then calls config.status.
16136# config.status does its own redirection, appending to config.log.
16137# Unfortunately, on DOS this fails, as config.log is still kept open
16138# by configure, so config.status won't be able to write to it; its
16139# output is simply discarded.  So we exec the FD to /dev/null,
16140# effectively closing config.log, so it can be properly (re)opened and
16141# appended to by config.status.  When coming back to configure, we
16142# need to make the FD available again.
16143if test "$no_create" != yes; then
16144  ac_cs_success=:
16145  ac_config_status_args=
16146  test "$silent" = yes &&
16147    ac_config_status_args="$ac_config_status_args --quiet"
16148  exec 5>/dev/null
16149  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16150  exec 5>>config.log
16151  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16152  # would make configure fail if this is the last instruction.
16153  $ac_cs_success || as_fn_exit 1
16154fi
16155if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16156  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16157printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16158fi
16159
16160
16161