1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for json-c 0.13.
4#
5# Report bugs to <json-c@googlegroups.com>.
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
186test \$(( 1 + 1 )) = 2 || exit 1
187
188  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
189    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
190    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192    PATH=/empty FPATH=/empty; export PATH FPATH
193    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
194      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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: json-c@googlegroups.com about your system, including
280$0: any error possibly output before this message. Then
281$0: install a modern shell, or manually run the script
282$0: under such a 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='json-c'
623PACKAGE_TARNAME='json-c'
624PACKAGE_VERSION='0.13'
625PACKAGE_STRING='json-c 0.13'
626PACKAGE_BUGREPORT='json-c@googlegroups.com'
627PACKAGE_URL=''
628
629# Factoring default headers for most tests.
630ac_includes_default="\
631#include <stddef.h>
632#ifdef HAVE_STDIO_H
633# include <stdio.h>
634#endif
635#ifdef HAVE_STDLIB_H
636# include <stdlib.h>
637#endif
638#ifdef HAVE_STRING_H
639# include <string.h>
640#endif
641#ifdef HAVE_INTTYPES_H
642# include <inttypes.h>
643#endif
644#ifdef HAVE_STDINT_H
645# include <stdint.h>
646#endif
647#ifdef HAVE_STRINGS_H
648# include <strings.h>
649#endif
650#ifdef HAVE_SYS_TYPES_H
651# include <sys/types.h>
652#endif
653#ifdef HAVE_SYS_STAT_H
654# include <sys/stat.h>
655#endif
656#ifdef HAVE_UNISTD_H
657# include <unistd.h>
658#endif"
659
660ac_header_c_list=
661ac_func_c_list=
662ac_subst_vars='am__EXEEXT_FALSE
663am__EXEEXT_TRUE
664LTLIBOBJS
665JSON_BSYMBOLIC_LDFLAGS
666LT_SYS_LIBRARY_PATH
667OTOOL64
668OTOOL
669LIPO
670NMEDIT
671DSYMUTIL
672MANIFEST_TOOL
673RANLIB
674ac_ct_AR
675AR
676DLLTOOL
677OBJDUMP
678LN_S
679NM
680ac_ct_DUMPBIN
681DUMPBIN
682LD
683FGREP
684SED
685LIBTOOL
686LIBOBJS
687EGREP
688GREP
689am__fastdepCC_FALSE
690am__fastdepCC_TRUE
691CCDEPMODE
692am__nodep
693AMDEPBACKSLASH
694AMDEP_FALSE
695AMDEP_TRUE
696am__include
697DEPDIR
698OBJEXT
699EXEEXT
700ac_ct_CC
701CPPFLAGS
702LDFLAGS
703CFLAGS
704CC
705host_os
706host_vendor
707host_cpu
708host
709build_os
710build_vendor
711build_cpu
712build
713AM_BACKSLASH
714AM_DEFAULT_VERBOSITY
715AM_DEFAULT_V
716AM_V
717CSCOPE
718ETAGS
719CTAGS
720am__untar
721am__tar
722AMTAR
723am__leading_dot
724SET_MAKE
725AWK
726mkdir_p
727MKDIR_P
728INSTALL_STRIP_PROGRAM
729STRIP
730install_sh
731MAKEINFO
732AUTOHEADER
733AUTOMAKE
734AUTOCONF
735ACLOCAL
736VERSION
737PACKAGE
738CYGPATH_W
739am__isrc
740INSTALL_DATA
741INSTALL_SCRIPT
742INSTALL_PROGRAM
743target_alias
744host_alias
745build_alias
746LIBS
747ECHO_T
748ECHO_N
749ECHO_C
750DEFS
751mandir
752localedir
753libdir
754psdir
755pdfdir
756dvidir
757htmldir
758infodir
759docdir
760oldincludedir
761includedir
762runstatedir
763localstatedir
764sharedstatedir
765sysconfdir
766datadir
767datarootdir
768libexecdir
769sbindir
770bindir
771program_transform_name
772prefix
773exec_prefix
774PACKAGE_URL
775PACKAGE_BUGREPORT
776PACKAGE_STRING
777PACKAGE_VERSION
778PACKAGE_TARNAME
779PACKAGE_NAME
780PATH_SEPARATOR
781SHELL
782am__quote'
783ac_subst_files=''
784ac_user_opts='
785enable_option_checking
786enable_silent_rules
787enable_threading
788enable_rdrand
789enable_dependency_tracking
790enable_shared
791enable_static
792with_pic
793enable_fast_install
794with_aix_soname
795with_gnu_ld
796with_sysroot
797enable_libtool_lock
798enable_Bsymbolic
799'
800      ac_precious_vars='build_alias
801host_alias
802target_alias
803CC
804CFLAGS
805LDFLAGS
806LIBS
807CPPFLAGS
808LT_SYS_LIBRARY_PATH'
809
810
811# Initialize some variables set by options.
812ac_init_help=
813ac_init_version=false
814ac_unrecognized_opts=
815ac_unrecognized_sep=
816# The variables have the same names as the options, with
817# dashes changed to underlines.
818cache_file=/dev/null
819exec_prefix=NONE
820no_create=
821no_recursion=
822prefix=NONE
823program_prefix=NONE
824program_suffix=NONE
825program_transform_name=s,x,x,
826silent=
827site=
828srcdir=
829verbose=
830x_includes=NONE
831x_libraries=NONE
832
833# Installation directory options.
834# These are left unexpanded so users can "make install exec_prefix=/foo"
835# and all the variables that are supposed to be based on exec_prefix
836# by default will actually change.
837# Use braces instead of parens because sh, perl, etc. also accept them.
838# (The list follows the same order as the GNU Coding Standards.)
839bindir='${exec_prefix}/bin'
840sbindir='${exec_prefix}/sbin'
841libexecdir='${exec_prefix}/libexec'
842datarootdir='${prefix}/share'
843datadir='${datarootdir}'
844sysconfdir='${prefix}/etc'
845sharedstatedir='${prefix}/com'
846localstatedir='${prefix}/var'
847runstatedir='${localstatedir}/run'
848includedir='${prefix}/include'
849oldincludedir='/usr/include'
850docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
851infodir='${datarootdir}/info'
852htmldir='${docdir}'
853dvidir='${docdir}'
854pdfdir='${docdir}'
855psdir='${docdir}'
856libdir='${exec_prefix}/lib'
857localedir='${datarootdir}/locale'
858mandir='${datarootdir}/man'
859
860ac_prev=
861ac_dashdash=
862for ac_option
863do
864  # If the previous option needs an argument, assign it.
865  if test -n "$ac_prev"; then
866    eval $ac_prev=\$ac_option
867    ac_prev=
868    continue
869  fi
870
871  case $ac_option in
872  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
873  *=)   ac_optarg= ;;
874  *)    ac_optarg=yes ;;
875  esac
876
877  case $ac_dashdash$ac_option in
878  --)
879    ac_dashdash=yes ;;
880
881  -bindir | --bindir | --bindi | --bind | --bin | --bi)
882    ac_prev=bindir ;;
883  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
884    bindir=$ac_optarg ;;
885
886  -build | --build | --buil | --bui | --bu)
887    ac_prev=build_alias ;;
888  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
889    build_alias=$ac_optarg ;;
890
891  -cache-file | --cache-file | --cache-fil | --cache-fi \
892  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
893    ac_prev=cache_file ;;
894  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
895  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
896    cache_file=$ac_optarg ;;
897
898  --config-cache | -C)
899    cache_file=config.cache ;;
900
901  -datadir | --datadir | --datadi | --datad)
902    ac_prev=datadir ;;
903  -datadir=* | --datadir=* | --datadi=* | --datad=*)
904    datadir=$ac_optarg ;;
905
906  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
907  | --dataroo | --dataro | --datar)
908    ac_prev=datarootdir ;;
909  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
910  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
911    datarootdir=$ac_optarg ;;
912
913  -disable-* | --disable-*)
914    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
915    # Reject names that are not valid shell variable names.
916    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
917      as_fn_error $? "invalid feature name: \`$ac_useropt'"
918    ac_useropt_orig=$ac_useropt
919    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
920    case $ac_user_opts in
921      *"
922"enable_$ac_useropt"
923"*) ;;
924      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
925	 ac_unrecognized_sep=', ';;
926    esac
927    eval enable_$ac_useropt=no ;;
928
929  -docdir | --docdir | --docdi | --doc | --do)
930    ac_prev=docdir ;;
931  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
932    docdir=$ac_optarg ;;
933
934  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
935    ac_prev=dvidir ;;
936  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
937    dvidir=$ac_optarg ;;
938
939  -enable-* | --enable-*)
940    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
941    # Reject names that are not valid shell variable names.
942    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
943      as_fn_error $? "invalid feature name: \`$ac_useropt'"
944    ac_useropt_orig=$ac_useropt
945    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
946    case $ac_user_opts in
947      *"
948"enable_$ac_useropt"
949"*) ;;
950      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
951	 ac_unrecognized_sep=', ';;
952    esac
953    eval enable_$ac_useropt=\$ac_optarg ;;
954
955  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
956  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
957  | --exec | --exe | --ex)
958    ac_prev=exec_prefix ;;
959  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
960  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
961  | --exec=* | --exe=* | --ex=*)
962    exec_prefix=$ac_optarg ;;
963
964  -gas | --gas | --ga | --g)
965    # Obsolete; use --with-gas.
966    with_gas=yes ;;
967
968  -help | --help | --hel | --he | -h)
969    ac_init_help=long ;;
970  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
971    ac_init_help=recursive ;;
972  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
973    ac_init_help=short ;;
974
975  -host | --host | --hos | --ho)
976    ac_prev=host_alias ;;
977  -host=* | --host=* | --hos=* | --ho=*)
978    host_alias=$ac_optarg ;;
979
980  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
981    ac_prev=htmldir ;;
982  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
983  | --ht=*)
984    htmldir=$ac_optarg ;;
985
986  -includedir | --includedir | --includedi | --included | --include \
987  | --includ | --inclu | --incl | --inc)
988    ac_prev=includedir ;;
989  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
990  | --includ=* | --inclu=* | --incl=* | --inc=*)
991    includedir=$ac_optarg ;;
992
993  -infodir | --infodir | --infodi | --infod | --info | --inf)
994    ac_prev=infodir ;;
995  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
996    infodir=$ac_optarg ;;
997
998  -libdir | --libdir | --libdi | --libd)
999    ac_prev=libdir ;;
1000  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1001    libdir=$ac_optarg ;;
1002
1003  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1004  | --libexe | --libex | --libe)
1005    ac_prev=libexecdir ;;
1006  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1007  | --libexe=* | --libex=* | --libe=*)
1008    libexecdir=$ac_optarg ;;
1009
1010  -localedir | --localedir | --localedi | --localed | --locale)
1011    ac_prev=localedir ;;
1012  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1013    localedir=$ac_optarg ;;
1014
1015  -localstatedir | --localstatedir | --localstatedi | --localstated \
1016  | --localstate | --localstat | --localsta | --localst | --locals)
1017    ac_prev=localstatedir ;;
1018  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1019  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1020    localstatedir=$ac_optarg ;;
1021
1022  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1023    ac_prev=mandir ;;
1024  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1025    mandir=$ac_optarg ;;
1026
1027  -nfp | --nfp | --nf)
1028    # Obsolete; use --without-fp.
1029    with_fp=no ;;
1030
1031  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1032  | --no-cr | --no-c | -n)
1033    no_create=yes ;;
1034
1035  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1036  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1037    no_recursion=yes ;;
1038
1039  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1040  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1041  | --oldin | --oldi | --old | --ol | --o)
1042    ac_prev=oldincludedir ;;
1043  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1044  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1045  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1046    oldincludedir=$ac_optarg ;;
1047
1048  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1049    ac_prev=prefix ;;
1050  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1051    prefix=$ac_optarg ;;
1052
1053  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1054  | --program-pre | --program-pr | --program-p)
1055    ac_prev=program_prefix ;;
1056  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1057  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1058    program_prefix=$ac_optarg ;;
1059
1060  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1061  | --program-suf | --program-su | --program-s)
1062    ac_prev=program_suffix ;;
1063  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1064  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1065    program_suffix=$ac_optarg ;;
1066
1067  -program-transform-name | --program-transform-name \
1068  | --program-transform-nam | --program-transform-na \
1069  | --program-transform-n | --program-transform- \
1070  | --program-transform | --program-transfor \
1071  | --program-transfo | --program-transf \
1072  | --program-trans | --program-tran \
1073  | --progr-tra | --program-tr | --program-t)
1074    ac_prev=program_transform_name ;;
1075  -program-transform-name=* | --program-transform-name=* \
1076  | --program-transform-nam=* | --program-transform-na=* \
1077  | --program-transform-n=* | --program-transform-=* \
1078  | --program-transform=* | --program-transfor=* \
1079  | --program-transfo=* | --program-transf=* \
1080  | --program-trans=* | --program-tran=* \
1081  | --progr-tra=* | --program-tr=* | --program-t=*)
1082    program_transform_name=$ac_optarg ;;
1083
1084  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1085    ac_prev=pdfdir ;;
1086  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1087    pdfdir=$ac_optarg ;;
1088
1089  -psdir | --psdir | --psdi | --psd | --ps)
1090    ac_prev=psdir ;;
1091  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1092    psdir=$ac_optarg ;;
1093
1094  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1095  | -silent | --silent | --silen | --sile | --sil)
1096    silent=yes ;;
1097
1098  -runstatedir | --runstatedir | --runstatedi | --runstated \
1099  | --runstate | --runstat | --runsta | --runst | --runs \
1100  | --run | --ru | --r)
1101    ac_prev=runstatedir ;;
1102  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1103  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1104  | --run=* | --ru=* | --r=*)
1105    runstatedir=$ac_optarg ;;
1106
1107  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1108    ac_prev=sbindir ;;
1109  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1110  | --sbi=* | --sb=*)
1111    sbindir=$ac_optarg ;;
1112
1113  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1114  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1115  | --sharedst | --shareds | --shared | --share | --shar \
1116  | --sha | --sh)
1117    ac_prev=sharedstatedir ;;
1118  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1119  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1120  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1121  | --sha=* | --sh=*)
1122    sharedstatedir=$ac_optarg ;;
1123
1124  -site | --site | --sit)
1125    ac_prev=site ;;
1126  -site=* | --site=* | --sit=*)
1127    site=$ac_optarg ;;
1128
1129  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1130    ac_prev=srcdir ;;
1131  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1132    srcdir=$ac_optarg ;;
1133
1134  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1135  | --syscon | --sysco | --sysc | --sys | --sy)
1136    ac_prev=sysconfdir ;;
1137  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1138  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1139    sysconfdir=$ac_optarg ;;
1140
1141  -target | --target | --targe | --targ | --tar | --ta | --t)
1142    ac_prev=target_alias ;;
1143  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1144    target_alias=$ac_optarg ;;
1145
1146  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1147    verbose=yes ;;
1148
1149  -version | --version | --versio | --versi | --vers | -V)
1150    ac_init_version=: ;;
1151
1152  -with-* | --with-*)
1153    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1154    # Reject names that are not valid shell variable names.
1155    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1156      as_fn_error $? "invalid package name: \`$ac_useropt'"
1157    ac_useropt_orig=$ac_useropt
1158    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1159    case $ac_user_opts in
1160      *"
1161"with_$ac_useropt"
1162"*) ;;
1163      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1164	 ac_unrecognized_sep=', ';;
1165    esac
1166    eval with_$ac_useropt=\$ac_optarg ;;
1167
1168  -without-* | --without-*)
1169    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1170    # Reject names that are not valid shell variable names.
1171    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1172      as_fn_error $? "invalid package name: \`$ac_useropt'"
1173    ac_useropt_orig=$ac_useropt
1174    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1175    case $ac_user_opts in
1176      *"
1177"with_$ac_useropt"
1178"*) ;;
1179      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1180	 ac_unrecognized_sep=', ';;
1181    esac
1182    eval with_$ac_useropt=no ;;
1183
1184  --x)
1185    # Obsolete; use --with-x.
1186    with_x=yes ;;
1187
1188  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1189  | --x-incl | --x-inc | --x-in | --x-i)
1190    ac_prev=x_includes ;;
1191  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1192  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1193    x_includes=$ac_optarg ;;
1194
1195  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1196  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1197    ac_prev=x_libraries ;;
1198  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1199  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1200    x_libraries=$ac_optarg ;;
1201
1202  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1203Try \`$0 --help' for more information"
1204    ;;
1205
1206  *=*)
1207    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1208    # Reject names that are not valid shell variable names.
1209    case $ac_envvar in #(
1210      '' | [0-9]* | *[!_$as_cr_alnum]* )
1211      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1212    esac
1213    eval $ac_envvar=\$ac_optarg
1214    export $ac_envvar ;;
1215
1216  *)
1217    # FIXME: should be removed in autoconf 3.0.
1218    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1219    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1220      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1221    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1222    ;;
1223
1224  esac
1225done
1226
1227if test -n "$ac_prev"; then
1228  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1229  as_fn_error $? "missing argument to $ac_option"
1230fi
1231
1232if test -n "$ac_unrecognized_opts"; then
1233  case $enable_option_checking in
1234    no) ;;
1235    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1236    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1237  esac
1238fi
1239
1240# Check all directory arguments for consistency.
1241for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1242		datadir sysconfdir sharedstatedir localstatedir includedir \
1243		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1244		libdir localedir mandir runstatedir
1245do
1246  eval ac_val=\$$ac_var
1247  # Remove trailing slashes.
1248  case $ac_val in
1249    */ )
1250      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1251      eval $ac_var=\$ac_val;;
1252  esac
1253  # Be sure to have absolute directory names.
1254  case $ac_val in
1255    [\\/$]* | ?:[\\/]* )  continue;;
1256    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1257  esac
1258  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1259done
1260
1261# There might be people who depend on the old broken behavior: `$host'
1262# used to hold the argument of --host etc.
1263# FIXME: To remove some day.
1264build=$build_alias
1265host=$host_alias
1266target=$target_alias
1267
1268# FIXME: To remove some day.
1269if test "x$host_alias" != x; then
1270  if test "x$build_alias" = x; then
1271    cross_compiling=maybe
1272  elif test "x$build_alias" != "x$host_alias"; then
1273    cross_compiling=yes
1274  fi
1275fi
1276
1277ac_tool_prefix=
1278test -n "$host_alias" && ac_tool_prefix=$host_alias-
1279
1280test "$silent" = yes && exec 6>/dev/null
1281
1282
1283ac_pwd=`pwd` && test -n "$ac_pwd" &&
1284ac_ls_di=`ls -di .` &&
1285ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1286  as_fn_error $? "working directory cannot be determined"
1287test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1288  as_fn_error $? "pwd does not report name of working directory"
1289
1290
1291# Find the source files, if location was not specified.
1292if test -z "$srcdir"; then
1293  ac_srcdir_defaulted=yes
1294  # Try the directory containing this script, then the parent directory.
1295  ac_confdir=`$as_dirname -- "$as_myself" ||
1296$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1297	 X"$as_myself" : 'X\(//\)[^/]' \| \
1298	 X"$as_myself" : 'X\(//\)$' \| \
1299	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1300printf "%s\n" X"$as_myself" |
1301    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1302	    s//\1/
1303	    q
1304	  }
1305	  /^X\(\/\/\)[^/].*/{
1306	    s//\1/
1307	    q
1308	  }
1309	  /^X\(\/\/\)$/{
1310	    s//\1/
1311	    q
1312	  }
1313	  /^X\(\/\).*/{
1314	    s//\1/
1315	    q
1316	  }
1317	  s/.*/./; q'`
1318  srcdir=$ac_confdir
1319  if test ! -r "$srcdir/$ac_unique_file"; then
1320    srcdir=..
1321  fi
1322else
1323  ac_srcdir_defaulted=no
1324fi
1325if test ! -r "$srcdir/$ac_unique_file"; then
1326  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1327  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1328fi
1329ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1330ac_abs_confdir=`(
1331	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1332	pwd)`
1333# When building in place, set srcdir=.
1334if test "$ac_abs_confdir" = "$ac_pwd"; then
1335  srcdir=.
1336fi
1337# Remove unnecessary trailing slashes from srcdir.
1338# Double slashes in file names in object file debugging info
1339# mess up M-x gdb in Emacs.
1340case $srcdir in
1341*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1342esac
1343for ac_var in $ac_precious_vars; do
1344  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1345  eval ac_env_${ac_var}_value=\$${ac_var}
1346  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1347  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1348done
1349
1350#
1351# Report the --help message.
1352#
1353if test "$ac_init_help" = "long"; then
1354  # Omit some internal or obsolete options to make the list less imposing.
1355  # This message is too long to be a string in the A/UX 3.1 sh.
1356  cat <<_ACEOF
1357\`configure' configures json-c 0.13 to adapt to many kinds of systems.
1358
1359Usage: $0 [OPTION]... [VAR=VALUE]...
1360
1361To assign environment variables (e.g., CC, CFLAGS...), specify them as
1362VAR=VALUE.  See below for descriptions of some of the useful variables.
1363
1364Defaults for the options are specified in brackets.
1365
1366Configuration:
1367  -h, --help              display this help and exit
1368      --help=short        display options specific to this package
1369      --help=recursive    display the short help of all the included packages
1370  -V, --version           display version information and exit
1371  -q, --quiet, --silent   do not print \`checking ...' messages
1372      --cache-file=FILE   cache test results in FILE [disabled]
1373  -C, --config-cache      alias for \`--cache-file=config.cache'
1374  -n, --no-create         do not create output files
1375      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1376
1377Installation directories:
1378  --prefix=PREFIX         install architecture-independent files in PREFIX
1379                          [$ac_default_prefix]
1380  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1381                          [PREFIX]
1382
1383By default, \`make install' will install all the files in
1384\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1385an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1386for instance \`--prefix=\$HOME'.
1387
1388For better control, use the options below.
1389
1390Fine tuning of the installation directories:
1391  --bindir=DIR            user executables [EPREFIX/bin]
1392  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1393  --libexecdir=DIR        program executables [EPREFIX/libexec]
1394  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1395  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1396  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1397  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1398  --libdir=DIR            object code libraries [EPREFIX/lib]
1399  --includedir=DIR        C header files [PREFIX/include]
1400  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1401  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1402  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1403  --infodir=DIR           info documentation [DATAROOTDIR/info]
1404  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1405  --mandir=DIR            man documentation [DATAROOTDIR/man]
1406  --docdir=DIR            documentation root [DATAROOTDIR/doc/json-c]
1407  --htmldir=DIR           html documentation [DOCDIR]
1408  --dvidir=DIR            dvi documentation [DOCDIR]
1409  --pdfdir=DIR            pdf documentation [DOCDIR]
1410  --psdir=DIR             ps documentation [DOCDIR]
1411_ACEOF
1412
1413  cat <<\_ACEOF
1414
1415Program names:
1416  --program-prefix=PREFIX            prepend PREFIX to installed program names
1417  --program-suffix=SUFFIX            append SUFFIX to installed program names
1418  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1419
1420System types:
1421  --build=BUILD     configure for building on BUILD [guessed]
1422  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1423_ACEOF
1424fi
1425
1426if test -n "$ac_init_help"; then
1427  case $ac_init_help in
1428     short | recursive ) echo "Configuration of json-c 0.13:";;
1429   esac
1430  cat <<\_ACEOF
1431
1432Optional Features:
1433  --disable-option-checking  ignore unrecognized --enable/--with options
1434  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1435  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1436  --enable-silent-rules   less verbose build output (undo: "make V=1")
1437  --disable-silent-rules  verbose build output (undo: "make V=0")
1438  --enable-threading      Enable code to support partly multi-threaded use
1439  --enable-rdrand         Enable RDRAND Hardware RNG Hash Seed generation on
1440                          supported x86/x64 platforms.
1441  --enable-dependency-tracking
1442                          do not reject slow dependency extractors
1443  --disable-dependency-tracking
1444                          speeds up one-time build
1445  --enable-shared[=PKGS]  build shared libraries [default=yes]
1446  --enable-static[=PKGS]  build static libraries [default=yes]
1447  --enable-fast-install[=PKGS]
1448                          optimize for fast installation [default=yes]
1449  --disable-libtool-lock  avoid locking (might break parallel builds)
1450  --disable-Bsymbolic     Avoid linking with -Bsymbolic-function
1451
1452Optional Packages:
1453  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1454  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1455  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1456                          both]
1457  --with-aix-soname=aix|svr4|both
1458                          shared library versioning (aka "SONAME") variant to
1459                          provide on AIX, [default=aix].
1460  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1461  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1462                          compiler's sysroot if not specified).
1463
1464Some influential environment variables:
1465  CC          C compiler command
1466  CFLAGS      C compiler flags
1467  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1468              nonstandard directory <lib dir>
1469  LIBS        libraries to pass to the linker, e.g. -l<library>
1470  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1471              you have headers in a nonstandard directory <include dir>
1472  LT_SYS_LIBRARY_PATH
1473              User-defined run-time library search path.
1474
1475Use these variables to override the choices made by `configure' or to help
1476it to find libraries and programs with nonstandard names/locations.
1477
1478Report bugs to <json-c@googlegroups.com>.
1479_ACEOF
1480ac_status=$?
1481fi
1482
1483if test "$ac_init_help" = "recursive"; then
1484  # If there are subdirs, report their specific --help.
1485  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1486    test -d "$ac_dir" ||
1487      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1488      continue
1489    ac_builddir=.
1490
1491case "$ac_dir" in
1492.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1493*)
1494  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1495  # A ".." for each directory in $ac_dir_suffix.
1496  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1497  case $ac_top_builddir_sub in
1498  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1499  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1500  esac ;;
1501esac
1502ac_abs_top_builddir=$ac_pwd
1503ac_abs_builddir=$ac_pwd$ac_dir_suffix
1504# for backward compatibility:
1505ac_top_builddir=$ac_top_build_prefix
1506
1507case $srcdir in
1508  .)  # We are building in place.
1509    ac_srcdir=.
1510    ac_top_srcdir=$ac_top_builddir_sub
1511    ac_abs_top_srcdir=$ac_pwd ;;
1512  [\\/]* | ?:[\\/]* )  # Absolute name.
1513    ac_srcdir=$srcdir$ac_dir_suffix;
1514    ac_top_srcdir=$srcdir
1515    ac_abs_top_srcdir=$srcdir ;;
1516  *) # Relative name.
1517    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1518    ac_top_srcdir=$ac_top_build_prefix$srcdir
1519    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1520esac
1521ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1522
1523    cd "$ac_dir" || { ac_status=$?; continue; }
1524    # Check for configure.gnu first; this name is used for a wrapper for
1525    # Metaconfig's "Configure" on case-insensitive file systems.
1526    if test -f "$ac_srcdir/configure.gnu"; then
1527      echo &&
1528      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1529    elif test -f "$ac_srcdir/configure"; then
1530      echo &&
1531      $SHELL "$ac_srcdir/configure" --help=recursive
1532    else
1533      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1534    fi || ac_status=$?
1535    cd "$ac_pwd" || { ac_status=$?; break; }
1536  done
1537fi
1538
1539test -n "$ac_init_help" && exit $ac_status
1540if $ac_init_version; then
1541  cat <<\_ACEOF
1542json-c configure 0.13
1543generated by GNU Autoconf 2.71
1544
1545Copyright (C) 2021 Free Software Foundation, Inc.
1546This configure script is free software; the Free Software Foundation
1547gives unlimited permission to copy, distribute and modify it.
1548_ACEOF
1549  exit
1550fi
1551
1552## ------------------------ ##
1553## Autoconf initialization. ##
1554## ------------------------ ##
1555
1556# ac_fn_c_try_compile LINENO
1557# --------------------------
1558# Try to compile conftest.$ac_ext, and return whether this succeeded.
1559ac_fn_c_try_compile ()
1560{
1561  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1562  rm -f conftest.$ac_objext conftest.beam
1563  if { { ac_try="$ac_compile"
1564case "(($ac_try" in
1565  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1566  *) ac_try_echo=$ac_try;;
1567esac
1568eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1569printf "%s\n" "$ac_try_echo"; } >&5
1570  (eval "$ac_compile") 2>conftest.err
1571  ac_status=$?
1572  if test -s conftest.err; then
1573    grep -v '^ *+' conftest.err >conftest.er1
1574    cat conftest.er1 >&5
1575    mv -f conftest.er1 conftest.err
1576  fi
1577  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1578  test $ac_status = 0; } && {
1579	 test -z "$ac_c_werror_flag" ||
1580	 test ! -s conftest.err
1581       } && test -s conftest.$ac_objext
1582then :
1583  ac_retval=0
1584else $as_nop
1585  printf "%s\n" "$as_me: failed program was:" >&5
1586sed 's/^/| /' conftest.$ac_ext >&5
1587
1588	ac_retval=1
1589fi
1590  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1591  as_fn_set_status $ac_retval
1592
1593} # ac_fn_c_try_compile
1594
1595# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1596# -------------------------------------------------------
1597# Tests whether HEADER exists and can be compiled using the include files in
1598# INCLUDES, setting the cache variable VAR accordingly.
1599ac_fn_c_check_header_compile ()
1600{
1601  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1603printf %s "checking for $2... " >&6; }
1604if eval test \${$3+y}
1605then :
1606  printf %s "(cached) " >&6
1607else $as_nop
1608  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1609/* end confdefs.h.  */
1610$4
1611#include <$2>
1612_ACEOF
1613if ac_fn_c_try_compile "$LINENO"
1614then :
1615  eval "$3=yes"
1616else $as_nop
1617  eval "$3=no"
1618fi
1619rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1620fi
1621eval ac_res=\$$3
1622	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1623printf "%s\n" "$ac_res" >&6; }
1624  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1625
1626} # ac_fn_c_check_header_compile
1627
1628# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1629# -------------------------------------------
1630# Tests whether TYPE exists after having included INCLUDES, setting cache
1631# variable VAR accordingly.
1632ac_fn_c_check_type ()
1633{
1634  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1636printf %s "checking for $2... " >&6; }
1637if eval test \${$3+y}
1638then :
1639  printf %s "(cached) " >&6
1640else $as_nop
1641  eval "$3=no"
1642  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1643/* end confdefs.h.  */
1644$4
1645int
1646main (void)
1647{
1648if (sizeof ($2))
1649	 return 0;
1650  ;
1651  return 0;
1652}
1653_ACEOF
1654if ac_fn_c_try_compile "$LINENO"
1655then :
1656  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1657/* end confdefs.h.  */
1658$4
1659int
1660main (void)
1661{
1662if (sizeof (($2)))
1663	    return 0;
1664  ;
1665  return 0;
1666}
1667_ACEOF
1668if ac_fn_c_try_compile "$LINENO"
1669then :
1670
1671else $as_nop
1672  eval "$3=yes"
1673fi
1674rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1675fi
1676rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1677fi
1678eval ac_res=\$$3
1679	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1680printf "%s\n" "$ac_res" >&6; }
1681  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1682
1683} # ac_fn_c_check_type
1684
1685# ac_fn_c_try_link LINENO
1686# -----------------------
1687# Try to link conftest.$ac_ext, and return whether this succeeded.
1688ac_fn_c_try_link ()
1689{
1690  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1692  if { { ac_try="$ac_link"
1693case "(($ac_try" in
1694  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695  *) ac_try_echo=$ac_try;;
1696esac
1697eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698printf "%s\n" "$ac_try_echo"; } >&5
1699  (eval "$ac_link") 2>conftest.err
1700  ac_status=$?
1701  if test -s conftest.err; then
1702    grep -v '^ *+' conftest.err >conftest.er1
1703    cat conftest.er1 >&5
1704    mv -f conftest.er1 conftest.err
1705  fi
1706  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707  test $ac_status = 0; } && {
1708	 test -z "$ac_c_werror_flag" ||
1709	 test ! -s conftest.err
1710       } && test -s conftest$ac_exeext && {
1711	 test "$cross_compiling" = yes ||
1712	 test -x conftest$ac_exeext
1713       }
1714then :
1715  ac_retval=0
1716else $as_nop
1717  printf "%s\n" "$as_me: failed program was:" >&5
1718sed 's/^/| /' conftest.$ac_ext >&5
1719
1720	ac_retval=1
1721fi
1722  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1723  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1724  # interfere with the next link command; also delete a directory that is
1725  # left behind by Apple's compiler.  We do this before executing the actions.
1726  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1727  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1728  as_fn_set_status $ac_retval
1729
1730} # ac_fn_c_try_link
1731
1732# ac_fn_c_check_func LINENO FUNC VAR
1733# ----------------------------------
1734# Tests whether FUNC exists, setting the cache variable VAR accordingly
1735ac_fn_c_check_func ()
1736{
1737  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739printf %s "checking for $2... " >&6; }
1740if eval test \${$3+y}
1741then :
1742  printf %s "(cached) " >&6
1743else $as_nop
1744  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1745/* end confdefs.h.  */
1746/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1747   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1748#define $2 innocuous_$2
1749
1750/* System header to define __stub macros and hopefully few prototypes,
1751   which can conflict with char $2 (); below.  */
1752
1753#include <limits.h>
1754#undef $2
1755
1756/* Override any GCC internal prototype to avoid an error.
1757   Use char because int might match the return type of a GCC
1758   builtin and then its argument prototype would still apply.  */
1759#ifdef __cplusplus
1760extern "C"
1761#endif
1762char $2 ();
1763/* The GNU C library defines this for functions which it implements
1764    to always fail with ENOSYS.  Some functions are actually named
1765    something starting with __ and the normal name is an alias.  */
1766#if defined __stub_$2 || defined __stub___$2
1767choke me
1768#endif
1769
1770int
1771main (void)
1772{
1773return $2 ();
1774  ;
1775  return 0;
1776}
1777_ACEOF
1778if ac_fn_c_try_link "$LINENO"
1779then :
1780  eval "$3=yes"
1781else $as_nop
1782  eval "$3=no"
1783fi
1784rm -f core conftest.err conftest.$ac_objext conftest.beam \
1785    conftest$ac_exeext conftest.$ac_ext
1786fi
1787eval ac_res=\$$3
1788	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1789printf "%s\n" "$ac_res" >&6; }
1790  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791
1792} # ac_fn_c_check_func
1793
1794# ac_fn_c_try_run LINENO
1795# ----------------------
1796# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1797# executables *can* be run.
1798ac_fn_c_try_run ()
1799{
1800  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801  if { { ac_try="$ac_link"
1802case "(($ac_try" in
1803  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1804  *) ac_try_echo=$ac_try;;
1805esac
1806eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1807printf "%s\n" "$ac_try_echo"; } >&5
1808  (eval "$ac_link") 2>&5
1809  ac_status=$?
1810  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1811  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1812  { { case "(($ac_try" in
1813  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1814  *) ac_try_echo=$ac_try;;
1815esac
1816eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1817printf "%s\n" "$ac_try_echo"; } >&5
1818  (eval "$ac_try") 2>&5
1819  ac_status=$?
1820  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1821  test $ac_status = 0; }; }
1822then :
1823  ac_retval=0
1824else $as_nop
1825  printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1826       printf "%s\n" "$as_me: failed program was:" >&5
1827sed 's/^/| /' conftest.$ac_ext >&5
1828
1829       ac_retval=$ac_status
1830fi
1831  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1832  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1833  as_fn_set_status $ac_retval
1834
1835} # ac_fn_c_try_run
1836
1837# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1838# ------------------------------------------------------------------
1839# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1840# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1841ac_fn_check_decl ()
1842{
1843  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844  as_decl_name=`echo $2|sed 's/ *(.*//'`
1845  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1846printf %s "checking whether $as_decl_name is declared... " >&6; }
1847if eval test \${$3+y}
1848then :
1849  printf %s "(cached) " >&6
1850else $as_nop
1851  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1852  eval ac_save_FLAGS=\$$6
1853  as_fn_append $6 " $5"
1854  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1855/* end confdefs.h.  */
1856$4
1857int
1858main (void)
1859{
1860#ifndef $as_decl_name
1861#ifdef __cplusplus
1862  (void) $as_decl_use;
1863#else
1864  (void) $as_decl_name;
1865#endif
1866#endif
1867
1868  ;
1869  return 0;
1870}
1871_ACEOF
1872if ac_fn_c_try_compile "$LINENO"
1873then :
1874  eval "$3=yes"
1875else $as_nop
1876  eval "$3=no"
1877fi
1878rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1879  eval $6=\$ac_save_FLAGS
1880
1881fi
1882eval ac_res=\$$3
1883	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1884printf "%s\n" "$ac_res" >&6; }
1885  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1886
1887} # ac_fn_check_decl
1888ac_configure_args_raw=
1889for ac_arg
1890do
1891  case $ac_arg in
1892  *\'*)
1893    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1894  esac
1895  as_fn_append ac_configure_args_raw " '$ac_arg'"
1896done
1897
1898case $ac_configure_args_raw in
1899  *$as_nl*)
1900    ac_safe_unquote= ;;
1901  *)
1902    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1903    ac_unsafe_a="$ac_unsafe_z#~"
1904    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1905    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1906esac
1907
1908cat >config.log <<_ACEOF
1909This file contains any messages produced by compilers while
1910running configure, to aid debugging if configure makes a mistake.
1911
1912It was created by json-c $as_me 0.13, which was
1913generated by GNU Autoconf 2.71.  Invocation command line was
1914
1915  $ $0$ac_configure_args_raw
1916
1917_ACEOF
1918exec 5>>config.log
1919{
1920cat <<_ASUNAME
1921## --------- ##
1922## Platform. ##
1923## --------- ##
1924
1925hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1926uname -m = `(uname -m) 2>/dev/null || echo unknown`
1927uname -r = `(uname -r) 2>/dev/null || echo unknown`
1928uname -s = `(uname -s) 2>/dev/null || echo unknown`
1929uname -v = `(uname -v) 2>/dev/null || echo unknown`
1930
1931/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1932/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1933
1934/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1935/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1936/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1937/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1938/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1939/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1940/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1941
1942_ASUNAME
1943
1944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1945for as_dir in $PATH
1946do
1947  IFS=$as_save_IFS
1948  case $as_dir in #(((
1949    '') as_dir=./ ;;
1950    */) ;;
1951    *) as_dir=$as_dir/ ;;
1952  esac
1953    printf "%s\n" "PATH: $as_dir"
1954  done
1955IFS=$as_save_IFS
1956
1957} >&5
1958
1959cat >&5 <<_ACEOF
1960
1961
1962## ----------- ##
1963## Core tests. ##
1964## ----------- ##
1965
1966_ACEOF
1967
1968
1969# Keep a trace of the command line.
1970# Strip out --no-create and --no-recursion so they do not pile up.
1971# Strip out --silent because we don't want to record it for future runs.
1972# Also quote any args containing shell meta-characters.
1973# Make two passes to allow for proper duplicate-argument suppression.
1974ac_configure_args=
1975ac_configure_args0=
1976ac_configure_args1=
1977ac_must_keep_next=false
1978for ac_pass in 1 2
1979do
1980  for ac_arg
1981  do
1982    case $ac_arg in
1983    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1984    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1985    | -silent | --silent | --silen | --sile | --sil)
1986      continue ;;
1987    *\'*)
1988      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1989    esac
1990    case $ac_pass in
1991    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1992    2)
1993      as_fn_append ac_configure_args1 " '$ac_arg'"
1994      if test $ac_must_keep_next = true; then
1995	ac_must_keep_next=false # Got value, back to normal.
1996      else
1997	case $ac_arg in
1998	  *=* | --config-cache | -C | -disable-* | --disable-* \
1999	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2000	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2001	  | -with-* | --with-* | -without-* | --without-* | --x)
2002	    case "$ac_configure_args0 " in
2003	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2004	    esac
2005	    ;;
2006	  -* ) ac_must_keep_next=true ;;
2007	esac
2008      fi
2009      as_fn_append ac_configure_args " '$ac_arg'"
2010      ;;
2011    esac
2012  done
2013done
2014{ ac_configure_args0=; unset ac_configure_args0;}
2015{ ac_configure_args1=; unset ac_configure_args1;}
2016
2017# When interrupted or exit'd, cleanup temporary files, and complete
2018# config.log.  We remove comments because anyway the quotes in there
2019# would cause problems or look ugly.
2020# WARNING: Use '\'' to represent an apostrophe within the trap.
2021# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2022trap 'exit_status=$?
2023  # Sanitize IFS.
2024  IFS=" ""	$as_nl"
2025  # Save into config.log some information that might help in debugging.
2026  {
2027    echo
2028
2029    printf "%s\n" "## ---------------- ##
2030## Cache variables. ##
2031## ---------------- ##"
2032    echo
2033    # The following way of writing the cache mishandles newlines in values,
2034(
2035  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2036    eval ac_val=\$$ac_var
2037    case $ac_val in #(
2038    *${as_nl}*)
2039      case $ac_var in #(
2040      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2041printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2042      esac
2043      case $ac_var in #(
2044      _ | IFS | as_nl) ;; #(
2045      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2046      *) { eval $ac_var=; unset $ac_var;} ;;
2047      esac ;;
2048    esac
2049  done
2050  (set) 2>&1 |
2051    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2052    *${as_nl}ac_space=\ *)
2053      sed -n \
2054	"s/'\''/'\''\\\\'\'''\''/g;
2055	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2056      ;; #(
2057    *)
2058      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2059      ;;
2060    esac |
2061    sort
2062)
2063    echo
2064
2065    printf "%s\n" "## ----------------- ##
2066## Output variables. ##
2067## ----------------- ##"
2068    echo
2069    for ac_var in $ac_subst_vars
2070    do
2071      eval ac_val=\$$ac_var
2072      case $ac_val in
2073      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2074      esac
2075      printf "%s\n" "$ac_var='\''$ac_val'\''"
2076    done | sort
2077    echo
2078
2079    if test -n "$ac_subst_files"; then
2080      printf "%s\n" "## ------------------- ##
2081## File substitutions. ##
2082## ------------------- ##"
2083      echo
2084      for ac_var in $ac_subst_files
2085      do
2086	eval ac_val=\$$ac_var
2087	case $ac_val in
2088	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2089	esac
2090	printf "%s\n" "$ac_var='\''$ac_val'\''"
2091      done | sort
2092      echo
2093    fi
2094
2095    if test -s confdefs.h; then
2096      printf "%s\n" "## ----------- ##
2097## confdefs.h. ##
2098## ----------- ##"
2099      echo
2100      cat confdefs.h
2101      echo
2102    fi
2103    test "$ac_signal" != 0 &&
2104      printf "%s\n" "$as_me: caught signal $ac_signal"
2105    printf "%s\n" "$as_me: exit $exit_status"
2106  } >&5
2107  rm -f core *.core core.conftest.* &&
2108    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2109    exit $exit_status
2110' 0
2111for ac_signal in 1 2 13 15; do
2112  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2113done
2114ac_signal=0
2115
2116# confdefs.h avoids OS command line length limits that DEFS can exceed.
2117rm -f -r conftest* confdefs.h
2118
2119printf "%s\n" "/* confdefs.h */" > confdefs.h
2120
2121# Predefined preprocessor variables.
2122
2123printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2124
2125printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2126
2127printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2128
2129printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2130
2131printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2132
2133printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2134
2135
2136# Let the site file select an alternate cache file if it wants to.
2137# Prefer an explicitly selected file to automatically selected ones.
2138if test -n "$CONFIG_SITE"; then
2139  ac_site_files="$CONFIG_SITE"
2140elif test "x$prefix" != xNONE; then
2141  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2142else
2143  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2144fi
2145
2146for ac_site_file in $ac_site_files
2147do
2148  case $ac_site_file in #(
2149  */*) :
2150     ;; #(
2151  *) :
2152    ac_site_file=./$ac_site_file ;;
2153esac
2154  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2155    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2156printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2157    sed 's/^/| /' "$ac_site_file" >&5
2158    . "$ac_site_file" \
2159      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2160printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2161as_fn_error $? "failed to load site script $ac_site_file
2162See \`config.log' for more details" "$LINENO" 5; }
2163  fi
2164done
2165
2166if test -r "$cache_file"; then
2167  # Some versions of bash will fail to source /dev/null (special files
2168  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2169  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2170    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2171printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2172    case $cache_file in
2173      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2174      *)                      . "./$cache_file";;
2175    esac
2176  fi
2177else
2178  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2179printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2180  >$cache_file
2181fi
2182
2183# Test code for whether the C compiler supports C89 (global declarations)
2184ac_c_conftest_c89_globals='
2185/* Does the compiler advertise C89 conformance?
2186   Do not test the value of __STDC__, because some compilers set it to 0
2187   while being otherwise adequately conformant. */
2188#if !defined __STDC__
2189# error "Compiler does not advertise C89 conformance"
2190#endif
2191
2192#include <stddef.h>
2193#include <stdarg.h>
2194struct stat;
2195/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2196struct buf { int x; };
2197struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2198static char *e (p, i)
2199     char **p;
2200     int i;
2201{
2202  return p[i];
2203}
2204static char *f (char * (*g) (char **, int), char **p, ...)
2205{
2206  char *s;
2207  va_list v;
2208  va_start (v,p);
2209  s = g (p, va_arg (v,int));
2210  va_end (v);
2211  return s;
2212}
2213
2214/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2215   function prototypes and stuff, but not \xHH hex character constants.
2216   These do not provoke an error unfortunately, instead are silently treated
2217   as an "x".  The following induces an error, until -std is added to get
2218   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2219   array size at least.  It is necessary to write \x00 == 0 to get something
2220   that is true only with -std.  */
2221int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2222
2223/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2224   inside strings and character constants.  */
2225#define FOO(x) '\''x'\''
2226int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2227
2228int test (int i, double x);
2229struct s1 {int (*f) (int a);};
2230struct s2 {int (*f) (double a);};
2231int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2232               int, int);'
2233
2234# Test code for whether the C compiler supports C89 (body of main).
2235ac_c_conftest_c89_main='
2236ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2237'
2238
2239# Test code for whether the C compiler supports C99 (global declarations)
2240ac_c_conftest_c99_globals='
2241// Does the compiler advertise C99 conformance?
2242#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2243# error "Compiler does not advertise C99 conformance"
2244#endif
2245
2246#include <stdbool.h>
2247extern int puts (const char *);
2248extern int printf (const char *, ...);
2249extern int dprintf (int, const char *, ...);
2250extern void *malloc (size_t);
2251
2252// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2253// dprintf is used instead of fprintf to avoid needing to declare
2254// FILE and stderr.
2255#define debug(...) dprintf (2, __VA_ARGS__)
2256#define showlist(...) puts (#__VA_ARGS__)
2257#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2258static void
2259test_varargs_macros (void)
2260{
2261  int x = 1234;
2262  int y = 5678;
2263  debug ("Flag");
2264  debug ("X = %d\n", x);
2265  showlist (The first, second, and third items.);
2266  report (x>y, "x is %d but y is %d", x, y);
2267}
2268
2269// Check long long types.
2270#define BIG64 18446744073709551615ull
2271#define BIG32 4294967295ul
2272#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2273#if !BIG_OK
2274  #error "your preprocessor is broken"
2275#endif
2276#if BIG_OK
2277#else
2278  #error "your preprocessor is broken"
2279#endif
2280static long long int bignum = -9223372036854775807LL;
2281static unsigned long long int ubignum = BIG64;
2282
2283struct incomplete_array
2284{
2285  int datasize;
2286  double data[];
2287};
2288
2289struct named_init {
2290  int number;
2291  const wchar_t *name;
2292  double average;
2293};
2294
2295typedef const char *ccp;
2296
2297static inline int
2298test_restrict (ccp restrict text)
2299{
2300  // See if C++-style comments work.
2301  // Iterate through items via the restricted pointer.
2302  // Also check for declarations in for loops.
2303  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2304    continue;
2305  return 0;
2306}
2307
2308// Check varargs and va_copy.
2309static bool
2310test_varargs (const char *format, ...)
2311{
2312  va_list args;
2313  va_start (args, format);
2314  va_list args_copy;
2315  va_copy (args_copy, args);
2316
2317  const char *str = "";
2318  int number = 0;
2319  float fnumber = 0;
2320
2321  while (*format)
2322    {
2323      switch (*format++)
2324	{
2325	case '\''s'\'': // string
2326	  str = va_arg (args_copy, const char *);
2327	  break;
2328	case '\''d'\'': // int
2329	  number = va_arg (args_copy, int);
2330	  break;
2331	case '\''f'\'': // float
2332	  fnumber = va_arg (args_copy, double);
2333	  break;
2334	default:
2335	  break;
2336	}
2337    }
2338  va_end (args_copy);
2339  va_end (args);
2340
2341  return *str && number && fnumber;
2342}
2343'
2344
2345# Test code for whether the C compiler supports C99 (body of main).
2346ac_c_conftest_c99_main='
2347  // Check bool.
2348  _Bool success = false;
2349  success |= (argc != 0);
2350
2351  // Check restrict.
2352  if (test_restrict ("String literal") == 0)
2353    success = true;
2354  char *restrict newvar = "Another string";
2355
2356  // Check varargs.
2357  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2358  test_varargs_macros ();
2359
2360  // Check flexible array members.
2361  struct incomplete_array *ia =
2362    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2363  ia->datasize = 10;
2364  for (int i = 0; i < ia->datasize; ++i)
2365    ia->data[i] = i * 1.234;
2366
2367  // Check named initializers.
2368  struct named_init ni = {
2369    .number = 34,
2370    .name = L"Test wide string",
2371    .average = 543.34343,
2372  };
2373
2374  ni.number = 58;
2375
2376  int dynamic_array[ni.number];
2377  dynamic_array[0] = argv[0][0];
2378  dynamic_array[ni.number - 1] = 543;
2379
2380  // work around unused variable warnings
2381  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2382	 || dynamic_array[ni.number - 1] != 543);
2383'
2384
2385# Test code for whether the C compiler supports C11 (global declarations)
2386ac_c_conftest_c11_globals='
2387// Does the compiler advertise C11 conformance?
2388#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2389# error "Compiler does not advertise C11 conformance"
2390#endif
2391
2392// Check _Alignas.
2393char _Alignas (double) aligned_as_double;
2394char _Alignas (0) no_special_alignment;
2395extern char aligned_as_int;
2396char _Alignas (0) _Alignas (int) aligned_as_int;
2397
2398// Check _Alignof.
2399enum
2400{
2401  int_alignment = _Alignof (int),
2402  int_array_alignment = _Alignof (int[100]),
2403  char_alignment = _Alignof (char)
2404};
2405_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2406
2407// Check _Noreturn.
2408int _Noreturn does_not_return (void) { for (;;) continue; }
2409
2410// Check _Static_assert.
2411struct test_static_assert
2412{
2413  int x;
2414  _Static_assert (sizeof (int) <= sizeof (long int),
2415                  "_Static_assert does not work in struct");
2416  long int y;
2417};
2418
2419// Check UTF-8 literals.
2420#define u8 syntax error!
2421char const utf8_literal[] = u8"happens to be ASCII" "another string";
2422
2423// Check duplicate typedefs.
2424typedef long *long_ptr;
2425typedef long int *long_ptr;
2426typedef long_ptr long_ptr;
2427
2428// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2429struct anonymous
2430{
2431  union {
2432    struct { int i; int j; };
2433    struct { int k; long int l; } w;
2434  };
2435  int m;
2436} v1;
2437'
2438
2439# Test code for whether the C compiler supports C11 (body of main).
2440ac_c_conftest_c11_main='
2441  _Static_assert ((offsetof (struct anonymous, i)
2442		   == offsetof (struct anonymous, w.k)),
2443		  "Anonymous union alignment botch");
2444  v1.i = 2;
2445  v1.w.k = 5;
2446  ok |= v1.i != 5;
2447'
2448
2449# Test code for whether the C compiler supports C11 (complete).
2450ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2451${ac_c_conftest_c99_globals}
2452${ac_c_conftest_c11_globals}
2453
2454int
2455main (int argc, char **argv)
2456{
2457  int ok = 0;
2458  ${ac_c_conftest_c89_main}
2459  ${ac_c_conftest_c99_main}
2460  ${ac_c_conftest_c11_main}
2461  return ok;
2462}
2463"
2464
2465# Test code for whether the C compiler supports C99 (complete).
2466ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2467${ac_c_conftest_c99_globals}
2468
2469int
2470main (int argc, char **argv)
2471{
2472  int ok = 0;
2473  ${ac_c_conftest_c89_main}
2474  ${ac_c_conftest_c99_main}
2475  return ok;
2476}
2477"
2478
2479# Test code for whether the C compiler supports C89 (complete).
2480ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2481
2482int
2483main (int argc, char **argv)
2484{
2485  int ok = 0;
2486  ${ac_c_conftest_c89_main}
2487  return ok;
2488}
2489"
2490
2491as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2492as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2493as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2494as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2495as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2496as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2497as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2498as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2499as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2500as_fn_append ac_func_c_list " vprintf HAVE_VPRINTF"
2501
2502# Auxiliary files required by this configure script.
2503ac_aux_files="ltmain.sh compile config.guess config.sub missing install-sh"
2504
2505# Locations in which to look for auxiliary files.
2506ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2507
2508# Search for a directory containing all of the required auxiliary files,
2509# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2510# If we don't find one directory that contains all the files we need,
2511# we report the set of missing files from the *first* directory in
2512# $ac_aux_dir_candidates and give up.
2513ac_missing_aux_files=""
2514ac_first_candidate=:
2515printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2517as_found=false
2518for as_dir in $ac_aux_dir_candidates
2519do
2520  IFS=$as_save_IFS
2521  case $as_dir in #(((
2522    '') as_dir=./ ;;
2523    */) ;;
2524    *) as_dir=$as_dir/ ;;
2525  esac
2526  as_found=:
2527
2528  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2529  ac_aux_dir_found=yes
2530  ac_install_sh=
2531  for ac_aux in $ac_aux_files
2532  do
2533    # As a special case, if "install-sh" is required, that requirement
2534    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2535    # and $ac_install_sh is set appropriately for whichever one is found.
2536    if test x"$ac_aux" = x"install-sh"
2537    then
2538      if test -f "${as_dir}install-sh"; then
2539        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2540        ac_install_sh="${as_dir}install-sh -c"
2541      elif test -f "${as_dir}install.sh"; then
2542        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2543        ac_install_sh="${as_dir}install.sh -c"
2544      elif test -f "${as_dir}shtool"; then
2545        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2546        ac_install_sh="${as_dir}shtool install -c"
2547      else
2548        ac_aux_dir_found=no
2549        if $ac_first_candidate; then
2550          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2551        else
2552          break
2553        fi
2554      fi
2555    else
2556      if test -f "${as_dir}${ac_aux}"; then
2557        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2558      else
2559        ac_aux_dir_found=no
2560        if $ac_first_candidate; then
2561          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2562        else
2563          break
2564        fi
2565      fi
2566    fi
2567  done
2568  if test "$ac_aux_dir_found" = yes; then
2569    ac_aux_dir="$as_dir"
2570    break
2571  fi
2572  ac_first_candidate=false
2573
2574  as_found=false
2575done
2576IFS=$as_save_IFS
2577if $as_found
2578then :
2579
2580else $as_nop
2581  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2582fi
2583
2584
2585# These three variables are undocumented and unsupported,
2586# and are intended to be withdrawn in a future Autoconf release.
2587# They can cause serious problems if a builder's source tree is in a directory
2588# whose full name contains unusual characters.
2589if test -f "${ac_aux_dir}config.guess"; then
2590  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2591fi
2592if test -f "${ac_aux_dir}config.sub"; then
2593  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2594fi
2595if test -f "$ac_aux_dir/configure"; then
2596  ac_configure="$SHELL ${ac_aux_dir}configure"
2597fi
2598
2599# Check that the precious variables saved in the cache have kept the same
2600# value.
2601ac_cache_corrupted=false
2602for ac_var in $ac_precious_vars; do
2603  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2604  eval ac_new_set=\$ac_env_${ac_var}_set
2605  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2606  eval ac_new_val=\$ac_env_${ac_var}_value
2607  case $ac_old_set,$ac_new_set in
2608    set,)
2609      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2610printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2611      ac_cache_corrupted=: ;;
2612    ,set)
2613      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2614printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2615      ac_cache_corrupted=: ;;
2616    ,);;
2617    *)
2618      if test "x$ac_old_val" != "x$ac_new_val"; then
2619	# differences in whitespace do not lead to failure.
2620	ac_old_val_w=`echo x $ac_old_val`
2621	ac_new_val_w=`echo x $ac_new_val`
2622	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2623	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2624printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2625	  ac_cache_corrupted=:
2626	else
2627	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2628printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2629	  eval $ac_var=\$ac_old_val
2630	fi
2631	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2632printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2633	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2634printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2635      fi;;
2636  esac
2637  # Pass precious variables to config.status.
2638  if test "$ac_new_set" = set; then
2639    case $ac_new_val in
2640    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2641    *) ac_arg=$ac_var=$ac_new_val ;;
2642    esac
2643    case " $ac_configure_args " in
2644      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2645      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2646    esac
2647  fi
2648done
2649if $ac_cache_corrupted; then
2650  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2651printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2652  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2653printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2654  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2655	    and start over" "$LINENO" 5
2656fi
2657## -------------------- ##
2658## Main body of script. ##
2659## -------------------- ##
2660
2661ac_ext=c
2662ac_cpp='$CPP $CPPFLAGS'
2663ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2664ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2665ac_compiler_gnu=$ac_cv_c_compiler_gnu
2666
2667
2668
2669am__api_version='1.16'
2670
2671
2672
2673  # Find a good install program.  We prefer a C program (faster),
2674# so one script is as good as another.  But avoid the broken or
2675# incompatible versions:
2676# SysV /etc/install, /usr/sbin/install
2677# SunOS /usr/etc/install
2678# IRIX /sbin/install
2679# AIX /bin/install
2680# AmigaOS /C/install, which installs bootblocks on floppy discs
2681# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2682# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2683# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2684# OS/2's system install, which has a completely different semantic
2685# ./install, which can be erroneously created by make from ./install.sh.
2686# Reject install programs that cannot install multiple files.
2687{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2688printf %s "checking for a BSD-compatible install... " >&6; }
2689if test -z "$INSTALL"; then
2690if test ${ac_cv_path_install+y}
2691then :
2692  printf %s "(cached) " >&6
2693else $as_nop
2694  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2695for as_dir in $PATH
2696do
2697  IFS=$as_save_IFS
2698  case $as_dir in #(((
2699    '') as_dir=./ ;;
2700    */) ;;
2701    *) as_dir=$as_dir/ ;;
2702  esac
2703    # Account for fact that we put trailing slashes in our PATH walk.
2704case $as_dir in #((
2705  ./ | /[cC]/* | \
2706  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2707  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2708  /usr/ucb/* ) ;;
2709  *)
2710    # OSF1 and SCO ODT 3.0 have their own names for install.
2711    # Don't use installbsd from OSF since it installs stuff as root
2712    # by default.
2713    for ac_prog in ginstall scoinst install; do
2714      for ac_exec_ext in '' $ac_executable_extensions; do
2715	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2716	  if test $ac_prog = install &&
2717	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2718	    # AIX install.  It has an incompatible calling convention.
2719	    :
2720	  elif test $ac_prog = install &&
2721	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2722	    # program-specific install script used by HP pwplus--don't use.
2723	    :
2724	  else
2725	    rm -rf conftest.one conftest.two conftest.dir
2726	    echo one > conftest.one
2727	    echo two > conftest.two
2728	    mkdir conftest.dir
2729	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2730	      test -s conftest.one && test -s conftest.two &&
2731	      test -s conftest.dir/conftest.one &&
2732	      test -s conftest.dir/conftest.two
2733	    then
2734	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2735	      break 3
2736	    fi
2737	  fi
2738	fi
2739      done
2740    done
2741    ;;
2742esac
2743
2744  done
2745IFS=$as_save_IFS
2746
2747rm -rf conftest.one conftest.two conftest.dir
2748
2749fi
2750  if test ${ac_cv_path_install+y}; then
2751    INSTALL=$ac_cv_path_install
2752  else
2753    # As a last resort, use the slow shell script.  Don't cache a
2754    # value for INSTALL within a source directory, because that will
2755    # break other packages using the cache if that directory is
2756    # removed, or if the value is a relative name.
2757    INSTALL=$ac_install_sh
2758  fi
2759fi
2760{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2761printf "%s\n" "$INSTALL" >&6; }
2762
2763# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2764# It thinks the first close brace ends the variable substitution.
2765test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2766
2767test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2768
2769test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2770
2771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2772printf %s "checking whether build environment is sane... " >&6; }
2773# Reject unsafe characters in $srcdir or the absolute working directory
2774# name.  Accept space and tab only in the latter.
2775am_lf='
2776'
2777case `pwd` in
2778  *[\\\"\#\$\&\'\`$am_lf]*)
2779    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2780esac
2781case $srcdir in
2782  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2783    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2784esac
2785
2786# Do 'set' in a subshell so we don't clobber the current shell's
2787# arguments.  Must try -L first in case configure is actually a
2788# symlink; some systems play weird games with the mod time of symlinks
2789# (eg FreeBSD returns the mod time of the symlink's containing
2790# directory).
2791if (
2792   am_has_slept=no
2793   for am_try in 1 2; do
2794     echo "timestamp, slept: $am_has_slept" > conftest.file
2795     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2796     if test "$*" = "X"; then
2797	# -L didn't work.
2798	set X `ls -t "$srcdir/configure" conftest.file`
2799     fi
2800     if test "$*" != "X $srcdir/configure conftest.file" \
2801	&& test "$*" != "X conftest.file $srcdir/configure"; then
2802
2803	# If neither matched, then we have a broken ls.  This can happen
2804	# if, for instance, CONFIG_SHELL is bash and it inherits a
2805	# broken ls alias from the environment.  This has actually
2806	# happened.  Such a system could not be considered "sane".
2807	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2808  alias in your environment" "$LINENO" 5
2809     fi
2810     if test "$2" = conftest.file || test $am_try -eq 2; then
2811       break
2812     fi
2813     # Just in case.
2814     sleep 1
2815     am_has_slept=yes
2816   done
2817   test "$2" = conftest.file
2818   )
2819then
2820   # Ok.
2821   :
2822else
2823   as_fn_error $? "newly created file is older than distributed files!
2824Check your system clock" "$LINENO" 5
2825fi
2826{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2827printf "%s\n" "yes" >&6; }
2828# If we didn't sleep, we still need to ensure time stamps of config.status and
2829# generated files are strictly newer.
2830am_sleep_pid=
2831if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2832  ( sleep 1 ) &
2833  am_sleep_pid=$!
2834fi
2835
2836rm -f conftest.file
2837
2838test "$program_prefix" != NONE &&
2839  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2840# Use a double $ so make ignores it.
2841test "$program_suffix" != NONE &&
2842  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2843# Double any \ or $.
2844# By default was `s,x,x', remove it if useless.
2845ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2846program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2847
2848
2849# Expand $ac_aux_dir to an absolute path.
2850am_aux_dir=`cd "$ac_aux_dir" && pwd`
2851
2852
2853  if test x"${MISSING+set}" != xset; then
2854  MISSING="\${SHELL} '$am_aux_dir/missing'"
2855fi
2856# Use eval to expand $SHELL
2857if eval "$MISSING --is-lightweight"; then
2858  am_missing_run="$MISSING "
2859else
2860  am_missing_run=
2861  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2862printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2863fi
2864
2865if test x"${install_sh+set}" != xset; then
2866  case $am_aux_dir in
2867  *\ * | *\	*)
2868    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2869  *)
2870    install_sh="\${SHELL} $am_aux_dir/install-sh"
2871  esac
2872fi
2873
2874# Installed binaries are usually stripped using 'strip' when the user
2875# run "make install-strip".  However 'strip' might not be the right
2876# tool to use in cross-compilation environments, therefore Automake
2877# will honor the 'STRIP' environment variable to overrule this program.
2878if test "$cross_compiling" != no; then
2879  if test -n "$ac_tool_prefix"; then
2880  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2881set dummy ${ac_tool_prefix}strip; ac_word=$2
2882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2883printf %s "checking for $ac_word... " >&6; }
2884if test ${ac_cv_prog_STRIP+y}
2885then :
2886  printf %s "(cached) " >&6
2887else $as_nop
2888  if test -n "$STRIP"; then
2889  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2890else
2891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2892for as_dir in $PATH
2893do
2894  IFS=$as_save_IFS
2895  case $as_dir in #(((
2896    '') as_dir=./ ;;
2897    */) ;;
2898    *) as_dir=$as_dir/ ;;
2899  esac
2900    for ac_exec_ext in '' $ac_executable_extensions; do
2901  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2902    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2903    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2904    break 2
2905  fi
2906done
2907  done
2908IFS=$as_save_IFS
2909
2910fi
2911fi
2912STRIP=$ac_cv_prog_STRIP
2913if test -n "$STRIP"; then
2914  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2915printf "%s\n" "$STRIP" >&6; }
2916else
2917  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2918printf "%s\n" "no" >&6; }
2919fi
2920
2921
2922fi
2923if test -z "$ac_cv_prog_STRIP"; then
2924  ac_ct_STRIP=$STRIP
2925  # Extract the first word of "strip", so it can be a program name with args.
2926set dummy strip; ac_word=$2
2927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2928printf %s "checking for $ac_word... " >&6; }
2929if test ${ac_cv_prog_ac_ct_STRIP+y}
2930then :
2931  printf %s "(cached) " >&6
2932else $as_nop
2933  if test -n "$ac_ct_STRIP"; then
2934  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2935else
2936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2937for as_dir in $PATH
2938do
2939  IFS=$as_save_IFS
2940  case $as_dir in #(((
2941    '') as_dir=./ ;;
2942    */) ;;
2943    *) as_dir=$as_dir/ ;;
2944  esac
2945    for ac_exec_ext in '' $ac_executable_extensions; do
2946  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2947    ac_cv_prog_ac_ct_STRIP="strip"
2948    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2949    break 2
2950  fi
2951done
2952  done
2953IFS=$as_save_IFS
2954
2955fi
2956fi
2957ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2958if test -n "$ac_ct_STRIP"; then
2959  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2960printf "%s\n" "$ac_ct_STRIP" >&6; }
2961else
2962  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2963printf "%s\n" "no" >&6; }
2964fi
2965
2966  if test "x$ac_ct_STRIP" = x; then
2967    STRIP=":"
2968  else
2969    case $cross_compiling:$ac_tool_warned in
2970yes:)
2971{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2972printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2973ac_tool_warned=yes ;;
2974esac
2975    STRIP=$ac_ct_STRIP
2976  fi
2977else
2978  STRIP="$ac_cv_prog_STRIP"
2979fi
2980
2981fi
2982INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2983
2984
2985  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2986printf %s "checking for a race-free mkdir -p... " >&6; }
2987if test -z "$MKDIR_P"; then
2988  if test ${ac_cv_path_mkdir+y}
2989then :
2990  printf %s "(cached) " >&6
2991else $as_nop
2992  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2994do
2995  IFS=$as_save_IFS
2996  case $as_dir in #(((
2997    '') as_dir=./ ;;
2998    */) ;;
2999    *) as_dir=$as_dir/ ;;
3000  esac
3001    for ac_prog in mkdir gmkdir; do
3002	 for ac_exec_ext in '' $ac_executable_extensions; do
3003	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3004	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3005	     'mkdir ('*'coreutils) '* | \
3006	     'BusyBox '* | \
3007	     'mkdir (fileutils) '4.1*)
3008	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3009	       break 3;;
3010	   esac
3011	 done
3012       done
3013  done
3014IFS=$as_save_IFS
3015
3016fi
3017
3018  test -d ./--version && rmdir ./--version
3019  if test ${ac_cv_path_mkdir+y}; then
3020    MKDIR_P="$ac_cv_path_mkdir -p"
3021  else
3022    # As a last resort, use the slow shell script.  Don't cache a
3023    # value for MKDIR_P within a source directory, because that will
3024    # break other packages using the cache if that directory is
3025    # removed, or if the value is a relative name.
3026    MKDIR_P="$ac_install_sh -d"
3027  fi
3028fi
3029{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3030printf "%s\n" "$MKDIR_P" >&6; }
3031
3032for ac_prog in gawk mawk nawk awk
3033do
3034  # Extract the first word of "$ac_prog", so it can be a program name with args.
3035set dummy $ac_prog; ac_word=$2
3036{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3037printf %s "checking for $ac_word... " >&6; }
3038if test ${ac_cv_prog_AWK+y}
3039then :
3040  printf %s "(cached) " >&6
3041else $as_nop
3042  if test -n "$AWK"; then
3043  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3044else
3045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3046for as_dir in $PATH
3047do
3048  IFS=$as_save_IFS
3049  case $as_dir in #(((
3050    '') as_dir=./ ;;
3051    */) ;;
3052    *) as_dir=$as_dir/ ;;
3053  esac
3054    for ac_exec_ext in '' $ac_executable_extensions; do
3055  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3056    ac_cv_prog_AWK="$ac_prog"
3057    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3058    break 2
3059  fi
3060done
3061  done
3062IFS=$as_save_IFS
3063
3064fi
3065fi
3066AWK=$ac_cv_prog_AWK
3067if test -n "$AWK"; then
3068  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3069printf "%s\n" "$AWK" >&6; }
3070else
3071  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3072printf "%s\n" "no" >&6; }
3073fi
3074
3075
3076  test -n "$AWK" && break
3077done
3078
3079{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3080printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3081set x ${MAKE-make}
3082ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3083if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3084then :
3085  printf %s "(cached) " >&6
3086else $as_nop
3087  cat >conftest.make <<\_ACEOF
3088SHELL = /bin/sh
3089all:
3090	@echo '@@@%%%=$(MAKE)=@@@%%%'
3091_ACEOF
3092# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3093case `${MAKE-make} -f conftest.make 2>/dev/null` in
3094  *@@@%%%=?*=@@@%%%*)
3095    eval ac_cv_prog_make_${ac_make}_set=yes;;
3096  *)
3097    eval ac_cv_prog_make_${ac_make}_set=no;;
3098esac
3099rm -f conftest.make
3100fi
3101if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3102  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3103printf "%s\n" "yes" >&6; }
3104  SET_MAKE=
3105else
3106  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3107printf "%s\n" "no" >&6; }
3108  SET_MAKE="MAKE=${MAKE-make}"
3109fi
3110
3111rm -rf .tst 2>/dev/null
3112mkdir .tst 2>/dev/null
3113if test -d .tst; then
3114  am__leading_dot=.
3115else
3116  am__leading_dot=_
3117fi
3118rmdir .tst 2>/dev/null
3119
3120# Check whether --enable-silent-rules was given.
3121if test ${enable_silent_rules+y}
3122then :
3123  enableval=$enable_silent_rules;
3124fi
3125
3126case $enable_silent_rules in # (((
3127  yes) AM_DEFAULT_VERBOSITY=0;;
3128   no) AM_DEFAULT_VERBOSITY=1;;
3129    *) AM_DEFAULT_VERBOSITY=1;;
3130esac
3131am_make=${MAKE-make}
3132{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3133printf %s "checking whether $am_make supports nested variables... " >&6; }
3134if test ${am_cv_make_support_nested_variables+y}
3135then :
3136  printf %s "(cached) " >&6
3137else $as_nop
3138  if printf "%s\n" 'TRUE=$(BAR$(V))
3139BAR0=false
3140BAR1=true
3141V=1
3142am__doit:
3143	@$(TRUE)
3144.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3145  am_cv_make_support_nested_variables=yes
3146else
3147  am_cv_make_support_nested_variables=no
3148fi
3149fi
3150{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3151printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3152if test $am_cv_make_support_nested_variables = yes; then
3153    AM_V='$(V)'
3154  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3155else
3156  AM_V=$AM_DEFAULT_VERBOSITY
3157  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3158fi
3159AM_BACKSLASH='\'
3160
3161if test "`cd $srcdir && pwd`" != "`pwd`"; then
3162  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3163  # is not polluted with repeated "-I."
3164  am__isrc=' -I$(srcdir)'
3165  # test to see if srcdir already configured
3166  if test -f $srcdir/config.status; then
3167    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3168  fi
3169fi
3170
3171# test whether we have cygpath
3172if test -z "$CYGPATH_W"; then
3173  if (cygpath --version) >/dev/null 2>/dev/null; then
3174    CYGPATH_W='cygpath -w'
3175  else
3176    CYGPATH_W=echo
3177  fi
3178fi
3179
3180
3181# Define the identity of the package.
3182 PACKAGE='json-c'
3183 VERSION='0.13'
3184
3185
3186printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3187
3188
3189printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3190
3191# Some tools Automake needs.
3192
3193ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3194
3195
3196AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3197
3198
3199AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3200
3201
3202AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3203
3204
3205MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3206
3207# For better backward compatibility.  To be removed once Automake 1.9.x
3208# dies out for good.  For more background, see:
3209# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3210# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3211mkdir_p='$(MKDIR_P)'
3212
3213# We need awk for the "check" target (and possibly the TAP driver).  The
3214# system "awk" is bad on some platforms.
3215# Always define AMTAR for backward compatibility.  Yes, it's still used
3216# in the wild :-(  We should find a proper way to deprecate it ...
3217AMTAR='$${TAR-tar}'
3218
3219
3220# We'll loop over all known methods to create a tar archive until one works.
3221_am_tools='gnutar  pax cpio none'
3222
3223am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3224
3225
3226
3227
3228
3229# Variables for tags utilities; see am/tags.am
3230if test -z "$CTAGS"; then
3231  CTAGS=ctags
3232fi
3233
3234if test -z "$ETAGS"; then
3235  ETAGS=etags
3236fi
3237
3238if test -z "$CSCOPE"; then
3239  CSCOPE=cscope
3240fi
3241
3242
3243
3244# POSIX will say in a future version that running "rm -f" with no argument
3245# is OK; and we want to be able to make that assumption in our Makefile
3246# recipes.  So use an aggressive probe to check that the usage we want is
3247# actually supported "in the wild" to an acceptable degree.
3248# See automake bug#10828.
3249# To make any issue more visible, cause the running configure to be aborted
3250# by default if the 'rm' program in use doesn't match our expectations; the
3251# user can still override this though.
3252if rm -f && rm -fr && rm -rf; then : OK; else
3253  cat >&2 <<'END'
3254Oops!
3255
3256Your 'rm' program seems unable to run without file operands specified
3257on the command line, even when the '-f' option is present.  This is contrary
3258to the behaviour of most rm programs out there, and not conforming with
3259the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3260
3261Please tell bug-automake@gnu.org about your system, including the value
3262of your $PATH and any error possibly output before this message.  This
3263can help us improve future automake versions.
3264
3265END
3266  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3267    echo 'Configuration will proceed anyway, since you have set the' >&2
3268    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3269    echo >&2
3270  else
3271    cat >&2 <<'END'
3272Aborting the configuration process, to ensure you take notice of the issue.
3273
3274You can download and install GNU coreutils to get an 'rm' implementation
3275that behaves properly: <https://www.gnu.org/software/coreutils/>.
3276
3277If you want to complete the configuration process using your problematic
3278'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3279to "yes", and re-run configure.
3280
3281END
3282    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3283  fi
3284fi
3285
3286
3287
3288
3289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3290printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3291set x ${MAKE-make}
3292ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3293if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3294then :
3295  printf %s "(cached) " >&6
3296else $as_nop
3297  cat >conftest.make <<\_ACEOF
3298SHELL = /bin/sh
3299all:
3300	@echo '@@@%%%=$(MAKE)=@@@%%%'
3301_ACEOF
3302# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3303case `${MAKE-make} -f conftest.make 2>/dev/null` in
3304  *@@@%%%=?*=@@@%%%*)
3305    eval ac_cv_prog_make_${ac_make}_set=yes;;
3306  *)
3307    eval ac_cv_prog_make_${ac_make}_set=no;;
3308esac
3309rm -f conftest.make
3310fi
3311if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3312  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3313printf "%s\n" "yes" >&6; }
3314  SET_MAKE=
3315else
3316  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3317printf "%s\n" "no" >&6; }
3318  SET_MAKE="MAKE=${MAKE-make}"
3319fi
3320
3321
3322
3323
3324  # Make sure we can run config.sub.
3325$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3326  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3327
3328{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3329printf %s "checking build system type... " >&6; }
3330if test ${ac_cv_build+y}
3331then :
3332  printf %s "(cached) " >&6
3333else $as_nop
3334  ac_build_alias=$build_alias
3335test "x$ac_build_alias" = x &&
3336  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3337test "x$ac_build_alias" = x &&
3338  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3339ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3340  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3341
3342fi
3343{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3344printf "%s\n" "$ac_cv_build" >&6; }
3345case $ac_cv_build in
3346*-*-*) ;;
3347*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3348esac
3349build=$ac_cv_build
3350ac_save_IFS=$IFS; IFS='-'
3351set x $ac_cv_build
3352shift
3353build_cpu=$1
3354build_vendor=$2
3355shift; shift
3356# Remember, the first character of IFS is used to create $*,
3357# except with old shells:
3358build_os=$*
3359IFS=$ac_save_IFS
3360case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3361
3362
3363{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3364printf %s "checking host system type... " >&6; }
3365if test ${ac_cv_host+y}
3366then :
3367  printf %s "(cached) " >&6
3368else $as_nop
3369  if test "x$host_alias" = x; then
3370  ac_cv_host=$ac_cv_build
3371else
3372  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3373    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3374fi
3375
3376fi
3377{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3378printf "%s\n" "$ac_cv_host" >&6; }
3379case $ac_cv_host in
3380*-*-*) ;;
3381*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3382esac
3383host=$ac_cv_host
3384ac_save_IFS=$IFS; IFS='-'
3385set x $ac_cv_host
3386shift
3387host_cpu=$1
3388host_vendor=$2
3389shift; shift
3390# Remember, the first character of IFS is used to create $*,
3391# except with old shells:
3392host_os=$*
3393IFS=$ac_save_IFS
3394case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3395
3396
3397
3398# Check whether --enable-threading was given.
3399if test ${enable_threading+y}
3400then :
3401  enableval=$enable_threading; if test x$enableval = xyes; then
3402  enable_threading=yes
3403
3404printf "%s\n" "#define ENABLE_THREADING 1" >>confdefs.h
3405
3406fi
3407fi
3408
3409
3410if test "x$enable_threading" = "xyes"; then
3411  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Partial multi-threaded support enabled." >&5
3412printf "%s\n" "Partial multi-threaded support enabled." >&6; }
3413else
3414  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Multi-threaded support disabled. Use --enable-threading to enable." >&5
3415printf "%s\n" "Multi-threaded support disabled. Use --enable-threading to enable." >&6; }
3416fi
3417
3418# Check whether --enable-rdrand was given.
3419if test ${enable_rdrand+y}
3420then :
3421  enableval=$enable_rdrand; if test x$enableval = xyes; then
3422  enable_rdrand=yes
3423
3424printf "%s\n" "#define ENABLE_RDRAND 1" >>confdefs.h
3425
3426fi
3427fi
3428
3429
3430if test "x$enable_rdrand" = "xyes"; then
3431  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: RDRAND Hardware RNG Hash Seed enabled on supported x86/x64 platforms" >&5
3432printf "%s\n" "RDRAND Hardware RNG Hash Seed enabled on supported x86/x64 platforms" >&6; }
3433else
3434  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: RDRAND Hardware RNG Hash Seed disabled. Use --enable-rdrand to enable" >&5
3435printf "%s\n" "RDRAND Hardware RNG Hash Seed disabled. Use --enable-rdrand to enable" >&6; }
3436fi
3437
3438# enable silent build by default
3439# Check whether --enable-silent-rules was given.
3440if test ${enable_silent_rules+y}
3441then :
3442  enableval=$enable_silent_rules;
3443fi
3444
3445case $enable_silent_rules in # (((
3446  yes) AM_DEFAULT_VERBOSITY=0;;
3447   no) AM_DEFAULT_VERBOSITY=1;;
3448    *) AM_DEFAULT_VERBOSITY=0;;
3449esac
3450am_make=${MAKE-make}
3451{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3452printf %s "checking whether $am_make supports nested variables... " >&6; }
3453if test ${am_cv_make_support_nested_variables+y}
3454then :
3455  printf %s "(cached) " >&6
3456else $as_nop
3457  if printf "%s\n" 'TRUE=$(BAR$(V))
3458BAR0=false
3459BAR1=true
3460V=1
3461am__doit:
3462	@$(TRUE)
3463.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3464  am_cv_make_support_nested_variables=yes
3465else
3466  am_cv_make_support_nested_variables=no
3467fi
3468fi
3469{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3470printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3471if test $am_cv_make_support_nested_variables = yes; then
3472    AM_V='$(V)'
3473  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3474else
3475  AM_V=$AM_DEFAULT_VERBOSITY
3476  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3477fi
3478AM_BACKSLASH='\'
3479
3480
3481# Checks for programs.
3482
3483# Checks for libraries.
3484
3485# Checks for header files.
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495DEPDIR="${am__leading_dot}deps"
3496
3497ac_config_commands="$ac_config_commands depfiles"
3498
3499{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3500printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3501cat > confinc.mk << 'END'
3502am__doit:
3503	@echo this is the am__doit target >confinc.out
3504.PHONY: am__doit
3505END
3506am__include="#"
3507am__quote=
3508# BSD make does it like this.
3509echo '.include "confinc.mk" # ignored' > confmf.BSD
3510# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3511echo 'include confinc.mk # ignored' > confmf.GNU
3512_am_result=no
3513for s in GNU BSD; do
3514  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3515   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3516   ac_status=$?
3517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518   (exit $ac_status); }
3519  case $?:`cat confinc.out 2>/dev/null` in #(
3520  '0:this is the am__doit target') :
3521    case $s in #(
3522  BSD) :
3523    am__include='.include' am__quote='"' ;; #(
3524  *) :
3525    am__include='include' am__quote='' ;;
3526esac ;; #(
3527  *) :
3528     ;;
3529esac
3530  if test "$am__include" != "#"; then
3531    _am_result="yes ($s style)"
3532    break
3533  fi
3534done
3535rm -f confinc.* confmf.*
3536{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3537printf "%s\n" "${_am_result}" >&6; }
3538
3539# Check whether --enable-dependency-tracking was given.
3540if test ${enable_dependency_tracking+y}
3541then :
3542  enableval=$enable_dependency_tracking;
3543fi
3544
3545if test "x$enable_dependency_tracking" != xno; then
3546  am_depcomp="$ac_aux_dir/depcomp"
3547  AMDEPBACKSLASH='\'
3548  am__nodep='_no'
3549fi
3550 if test "x$enable_dependency_tracking" != xno; then
3551  AMDEP_TRUE=
3552  AMDEP_FALSE='#'
3553else
3554  AMDEP_TRUE='#'
3555  AMDEP_FALSE=
3556fi
3557
3558
3559ac_ext=c
3560ac_cpp='$CPP $CPPFLAGS'
3561ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3562ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3563ac_compiler_gnu=$ac_cv_c_compiler_gnu
3564if test -n "$ac_tool_prefix"; then
3565  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3566set dummy ${ac_tool_prefix}gcc; ac_word=$2
3567{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3568printf %s "checking for $ac_word... " >&6; }
3569if test ${ac_cv_prog_CC+y}
3570then :
3571  printf %s "(cached) " >&6
3572else $as_nop
3573  if test -n "$CC"; then
3574  ac_cv_prog_CC="$CC" # Let the user override the test.
3575else
3576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3577for as_dir in $PATH
3578do
3579  IFS=$as_save_IFS
3580  case $as_dir in #(((
3581    '') as_dir=./ ;;
3582    */) ;;
3583    *) as_dir=$as_dir/ ;;
3584  esac
3585    for ac_exec_ext in '' $ac_executable_extensions; do
3586  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3587    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3588    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3589    break 2
3590  fi
3591done
3592  done
3593IFS=$as_save_IFS
3594
3595fi
3596fi
3597CC=$ac_cv_prog_CC
3598if test -n "$CC"; then
3599  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3600printf "%s\n" "$CC" >&6; }
3601else
3602  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3603printf "%s\n" "no" >&6; }
3604fi
3605
3606
3607fi
3608if test -z "$ac_cv_prog_CC"; then
3609  ac_ct_CC=$CC
3610  # Extract the first word of "gcc", so it can be a program name with args.
3611set dummy gcc; ac_word=$2
3612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3613printf %s "checking for $ac_word... " >&6; }
3614if test ${ac_cv_prog_ac_ct_CC+y}
3615then :
3616  printf %s "(cached) " >&6
3617else $as_nop
3618  if test -n "$ac_ct_CC"; then
3619  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3620else
3621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3622for as_dir in $PATH
3623do
3624  IFS=$as_save_IFS
3625  case $as_dir in #(((
3626    '') as_dir=./ ;;
3627    */) ;;
3628    *) as_dir=$as_dir/ ;;
3629  esac
3630    for ac_exec_ext in '' $ac_executable_extensions; do
3631  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3632    ac_cv_prog_ac_ct_CC="gcc"
3633    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3634    break 2
3635  fi
3636done
3637  done
3638IFS=$as_save_IFS
3639
3640fi
3641fi
3642ac_ct_CC=$ac_cv_prog_ac_ct_CC
3643if test -n "$ac_ct_CC"; then
3644  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3645printf "%s\n" "$ac_ct_CC" >&6; }
3646else
3647  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3648printf "%s\n" "no" >&6; }
3649fi
3650
3651  if test "x$ac_ct_CC" = x; then
3652    CC=""
3653  else
3654    case $cross_compiling:$ac_tool_warned in
3655yes:)
3656{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3657printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3658ac_tool_warned=yes ;;
3659esac
3660    CC=$ac_ct_CC
3661  fi
3662else
3663  CC="$ac_cv_prog_CC"
3664fi
3665
3666if test -z "$CC"; then
3667          if test -n "$ac_tool_prefix"; then
3668    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3669set dummy ${ac_tool_prefix}cc; ac_word=$2
3670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3671printf %s "checking for $ac_word... " >&6; }
3672if test ${ac_cv_prog_CC+y}
3673then :
3674  printf %s "(cached) " >&6
3675else $as_nop
3676  if test -n "$CC"; then
3677  ac_cv_prog_CC="$CC" # Let the user override the test.
3678else
3679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3680for as_dir in $PATH
3681do
3682  IFS=$as_save_IFS
3683  case $as_dir in #(((
3684    '') as_dir=./ ;;
3685    */) ;;
3686    *) as_dir=$as_dir/ ;;
3687  esac
3688    for ac_exec_ext in '' $ac_executable_extensions; do
3689  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3690    ac_cv_prog_CC="${ac_tool_prefix}cc"
3691    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3692    break 2
3693  fi
3694done
3695  done
3696IFS=$as_save_IFS
3697
3698fi
3699fi
3700CC=$ac_cv_prog_CC
3701if test -n "$CC"; then
3702  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3703printf "%s\n" "$CC" >&6; }
3704else
3705  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3706printf "%s\n" "no" >&6; }
3707fi
3708
3709
3710  fi
3711fi
3712if test -z "$CC"; then
3713  # Extract the first word of "cc", so it can be a program name with args.
3714set dummy cc; ac_word=$2
3715{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3716printf %s "checking for $ac_word... " >&6; }
3717if test ${ac_cv_prog_CC+y}
3718then :
3719  printf %s "(cached) " >&6
3720else $as_nop
3721  if test -n "$CC"; then
3722  ac_cv_prog_CC="$CC" # Let the user override the test.
3723else
3724  ac_prog_rejected=no
3725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3726for as_dir in $PATH
3727do
3728  IFS=$as_save_IFS
3729  case $as_dir in #(((
3730    '') as_dir=./ ;;
3731    */) ;;
3732    *) as_dir=$as_dir/ ;;
3733  esac
3734    for ac_exec_ext in '' $ac_executable_extensions; do
3735  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3736    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3737       ac_prog_rejected=yes
3738       continue
3739     fi
3740    ac_cv_prog_CC="cc"
3741    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3742    break 2
3743  fi
3744done
3745  done
3746IFS=$as_save_IFS
3747
3748if test $ac_prog_rejected = yes; then
3749  # We found a bogon in the path, so make sure we never use it.
3750  set dummy $ac_cv_prog_CC
3751  shift
3752  if test $# != 0; then
3753    # We chose a different compiler from the bogus one.
3754    # However, it has the same basename, so the bogon will be chosen
3755    # first if we set CC to just the basename; use the full file name.
3756    shift
3757    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3758  fi
3759fi
3760fi
3761fi
3762CC=$ac_cv_prog_CC
3763if test -n "$CC"; then
3764  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3765printf "%s\n" "$CC" >&6; }
3766else
3767  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3768printf "%s\n" "no" >&6; }
3769fi
3770
3771
3772fi
3773if test -z "$CC"; then
3774  if test -n "$ac_tool_prefix"; then
3775  for ac_prog in cl.exe
3776  do
3777    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3778set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3779{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3780printf %s "checking for $ac_word... " >&6; }
3781if test ${ac_cv_prog_CC+y}
3782then :
3783  printf %s "(cached) " >&6
3784else $as_nop
3785  if test -n "$CC"; then
3786  ac_cv_prog_CC="$CC" # Let the user override the test.
3787else
3788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3789for as_dir in $PATH
3790do
3791  IFS=$as_save_IFS
3792  case $as_dir in #(((
3793    '') as_dir=./ ;;
3794    */) ;;
3795    *) as_dir=$as_dir/ ;;
3796  esac
3797    for ac_exec_ext in '' $ac_executable_extensions; do
3798  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3799    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3800    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3801    break 2
3802  fi
3803done
3804  done
3805IFS=$as_save_IFS
3806
3807fi
3808fi
3809CC=$ac_cv_prog_CC
3810if test -n "$CC"; then
3811  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3812printf "%s\n" "$CC" >&6; }
3813else
3814  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3815printf "%s\n" "no" >&6; }
3816fi
3817
3818
3819    test -n "$CC" && break
3820  done
3821fi
3822if test -z "$CC"; then
3823  ac_ct_CC=$CC
3824  for ac_prog in cl.exe
3825do
3826  # Extract the first word of "$ac_prog", so it can be a program name with args.
3827set dummy $ac_prog; ac_word=$2
3828{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3829printf %s "checking for $ac_word... " >&6; }
3830if test ${ac_cv_prog_ac_ct_CC+y}
3831then :
3832  printf %s "(cached) " >&6
3833else $as_nop
3834  if test -n "$ac_ct_CC"; then
3835  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3836else
3837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3838for as_dir in $PATH
3839do
3840  IFS=$as_save_IFS
3841  case $as_dir in #(((
3842    '') as_dir=./ ;;
3843    */) ;;
3844    *) as_dir=$as_dir/ ;;
3845  esac
3846    for ac_exec_ext in '' $ac_executable_extensions; do
3847  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3848    ac_cv_prog_ac_ct_CC="$ac_prog"
3849    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3850    break 2
3851  fi
3852done
3853  done
3854IFS=$as_save_IFS
3855
3856fi
3857fi
3858ac_ct_CC=$ac_cv_prog_ac_ct_CC
3859if test -n "$ac_ct_CC"; then
3860  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3861printf "%s\n" "$ac_ct_CC" >&6; }
3862else
3863  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3864printf "%s\n" "no" >&6; }
3865fi
3866
3867
3868  test -n "$ac_ct_CC" && break
3869done
3870
3871  if test "x$ac_ct_CC" = x; then
3872    CC=""
3873  else
3874    case $cross_compiling:$ac_tool_warned in
3875yes:)
3876{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3877printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3878ac_tool_warned=yes ;;
3879esac
3880    CC=$ac_ct_CC
3881  fi
3882fi
3883
3884fi
3885if test -z "$CC"; then
3886  if test -n "$ac_tool_prefix"; then
3887  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3888set dummy ${ac_tool_prefix}clang; ac_word=$2
3889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3890printf %s "checking for $ac_word... " >&6; }
3891if test ${ac_cv_prog_CC+y}
3892then :
3893  printf %s "(cached) " >&6
3894else $as_nop
3895  if test -n "$CC"; then
3896  ac_cv_prog_CC="$CC" # Let the user override the test.
3897else
3898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3899for as_dir in $PATH
3900do
3901  IFS=$as_save_IFS
3902  case $as_dir in #(((
3903    '') as_dir=./ ;;
3904    */) ;;
3905    *) as_dir=$as_dir/ ;;
3906  esac
3907    for ac_exec_ext in '' $ac_executable_extensions; do
3908  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3909    ac_cv_prog_CC="${ac_tool_prefix}clang"
3910    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3911    break 2
3912  fi
3913done
3914  done
3915IFS=$as_save_IFS
3916
3917fi
3918fi
3919CC=$ac_cv_prog_CC
3920if test -n "$CC"; then
3921  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3922printf "%s\n" "$CC" >&6; }
3923else
3924  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3925printf "%s\n" "no" >&6; }
3926fi
3927
3928
3929fi
3930if test -z "$ac_cv_prog_CC"; then
3931  ac_ct_CC=$CC
3932  # Extract the first word of "clang", so it can be a program name with args.
3933set dummy clang; ac_word=$2
3934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3935printf %s "checking for $ac_word... " >&6; }
3936if test ${ac_cv_prog_ac_ct_CC+y}
3937then :
3938  printf %s "(cached) " >&6
3939else $as_nop
3940  if test -n "$ac_ct_CC"; then
3941  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3942else
3943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3944for as_dir in $PATH
3945do
3946  IFS=$as_save_IFS
3947  case $as_dir in #(((
3948    '') as_dir=./ ;;
3949    */) ;;
3950    *) as_dir=$as_dir/ ;;
3951  esac
3952    for ac_exec_ext in '' $ac_executable_extensions; do
3953  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3954    ac_cv_prog_ac_ct_CC="clang"
3955    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3956    break 2
3957  fi
3958done
3959  done
3960IFS=$as_save_IFS
3961
3962fi
3963fi
3964ac_ct_CC=$ac_cv_prog_ac_ct_CC
3965if test -n "$ac_ct_CC"; then
3966  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3967printf "%s\n" "$ac_ct_CC" >&6; }
3968else
3969  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3970printf "%s\n" "no" >&6; }
3971fi
3972
3973  if test "x$ac_ct_CC" = x; then
3974    CC=""
3975  else
3976    case $cross_compiling:$ac_tool_warned in
3977yes:)
3978{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3979printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3980ac_tool_warned=yes ;;
3981esac
3982    CC=$ac_ct_CC
3983  fi
3984else
3985  CC="$ac_cv_prog_CC"
3986fi
3987
3988fi
3989
3990
3991test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3992printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3993as_fn_error $? "no acceptable C compiler found in \$PATH
3994See \`config.log' for more details" "$LINENO" 5; }
3995
3996# Provide some information about the compiler.
3997printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3998set X $ac_compile
3999ac_compiler=$2
4000for ac_option in --version -v -V -qversion -version; do
4001  { { ac_try="$ac_compiler $ac_option >&5"
4002case "(($ac_try" in
4003  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4004  *) ac_try_echo=$ac_try;;
4005esac
4006eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4007printf "%s\n" "$ac_try_echo"; } >&5
4008  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4009  ac_status=$?
4010  if test -s conftest.err; then
4011    sed '10a\
4012... rest of stderr output deleted ...
4013         10q' conftest.err >conftest.er1
4014    cat conftest.er1 >&5
4015  fi
4016  rm -f conftest.er1 conftest.err
4017  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4018  test $ac_status = 0; }
4019done
4020
4021cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4022/* end confdefs.h.  */
4023
4024int
4025main (void)
4026{
4027
4028  ;
4029  return 0;
4030}
4031_ACEOF
4032ac_clean_files_save=$ac_clean_files
4033ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4034# Try to create an executable without -o first, disregard a.out.
4035# It will help us diagnose broken compilers, and finding out an intuition
4036# of exeext.
4037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4038printf %s "checking whether the C compiler works... " >&6; }
4039ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4040
4041# The possible output files:
4042ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4043
4044ac_rmfiles=
4045for ac_file in $ac_files
4046do
4047  case $ac_file in
4048    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4049    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4050  esac
4051done
4052rm -f $ac_rmfiles
4053
4054if { { ac_try="$ac_link_default"
4055case "(($ac_try" in
4056  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4057  *) ac_try_echo=$ac_try;;
4058esac
4059eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4060printf "%s\n" "$ac_try_echo"; } >&5
4061  (eval "$ac_link_default") 2>&5
4062  ac_status=$?
4063  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4064  test $ac_status = 0; }
4065then :
4066  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4067# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4068# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4069# so that the user can short-circuit this test for compilers unknown to
4070# Autoconf.
4071for ac_file in $ac_files ''
4072do
4073  test -f "$ac_file" || continue
4074  case $ac_file in
4075    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4076	;;
4077    [ab].out )
4078	# We found the default executable, but exeext='' is most
4079	# certainly right.
4080	break;;
4081    *.* )
4082	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4083	then :; else
4084	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4085	fi
4086	# We set ac_cv_exeext here because the later test for it is not
4087	# safe: cross compilers may not add the suffix if given an `-o'
4088	# argument, so we may need to know it at that point already.
4089	# Even if this section looks crufty: it has the advantage of
4090	# actually working.
4091	break;;
4092    * )
4093	break;;
4094  esac
4095done
4096test "$ac_cv_exeext" = no && ac_cv_exeext=
4097
4098else $as_nop
4099  ac_file=''
4100fi
4101if test -z "$ac_file"
4102then :
4103  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4104printf "%s\n" "no" >&6; }
4105printf "%s\n" "$as_me: failed program was:" >&5
4106sed 's/^/| /' conftest.$ac_ext >&5
4107
4108{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4109printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4110as_fn_error 77 "C compiler cannot create executables
4111See \`config.log' for more details" "$LINENO" 5; }
4112else $as_nop
4113  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4114printf "%s\n" "yes" >&6; }
4115fi
4116{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4117printf %s "checking for C compiler default output file name... " >&6; }
4118{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4119printf "%s\n" "$ac_file" >&6; }
4120ac_exeext=$ac_cv_exeext
4121
4122rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4123ac_clean_files=$ac_clean_files_save
4124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4125printf %s "checking for suffix of executables... " >&6; }
4126if { { ac_try="$ac_link"
4127case "(($ac_try" in
4128  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4129  *) ac_try_echo=$ac_try;;
4130esac
4131eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4132printf "%s\n" "$ac_try_echo"; } >&5
4133  (eval "$ac_link") 2>&5
4134  ac_status=$?
4135  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4136  test $ac_status = 0; }
4137then :
4138  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4139# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4140# work properly (i.e., refer to `conftest.exe'), while it won't with
4141# `rm'.
4142for ac_file in conftest.exe conftest conftest.*; do
4143  test -f "$ac_file" || continue
4144  case $ac_file in
4145    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4146    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4147	  break;;
4148    * ) break;;
4149  esac
4150done
4151else $as_nop
4152  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4153printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4154as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4155See \`config.log' for more details" "$LINENO" 5; }
4156fi
4157rm -f conftest conftest$ac_cv_exeext
4158{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4159printf "%s\n" "$ac_cv_exeext" >&6; }
4160
4161rm -f conftest.$ac_ext
4162EXEEXT=$ac_cv_exeext
4163ac_exeext=$EXEEXT
4164cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4165/* end confdefs.h.  */
4166#include <stdio.h>
4167int
4168main (void)
4169{
4170FILE *f = fopen ("conftest.out", "w");
4171 return ferror (f) || fclose (f) != 0;
4172
4173  ;
4174  return 0;
4175}
4176_ACEOF
4177ac_clean_files="$ac_clean_files conftest.out"
4178# Check that the compiler produces executables we can run.  If not, either
4179# the compiler is broken, or we cross compile.
4180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4181printf %s "checking whether we are cross compiling... " >&6; }
4182if test "$cross_compiling" != yes; then
4183  { { ac_try="$ac_link"
4184case "(($ac_try" in
4185  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4186  *) ac_try_echo=$ac_try;;
4187esac
4188eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4189printf "%s\n" "$ac_try_echo"; } >&5
4190  (eval "$ac_link") 2>&5
4191  ac_status=$?
4192  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4193  test $ac_status = 0; }
4194  if { ac_try='./conftest$ac_cv_exeext'
4195  { { case "(($ac_try" in
4196  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4197  *) ac_try_echo=$ac_try;;
4198esac
4199eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4200printf "%s\n" "$ac_try_echo"; } >&5
4201  (eval "$ac_try") 2>&5
4202  ac_status=$?
4203  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4204  test $ac_status = 0; }; }; then
4205    cross_compiling=no
4206  else
4207    if test "$cross_compiling" = maybe; then
4208	cross_compiling=yes
4209    else
4210	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4211printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4212as_fn_error 77 "cannot run C compiled programs.
4213If you meant to cross compile, use \`--host'.
4214See \`config.log' for more details" "$LINENO" 5; }
4215    fi
4216  fi
4217fi
4218{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4219printf "%s\n" "$cross_compiling" >&6; }
4220
4221rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4222ac_clean_files=$ac_clean_files_save
4223{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4224printf %s "checking for suffix of object files... " >&6; }
4225if test ${ac_cv_objext+y}
4226then :
4227  printf %s "(cached) " >&6
4228else $as_nop
4229  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4230/* end confdefs.h.  */
4231
4232int
4233main (void)
4234{
4235
4236  ;
4237  return 0;
4238}
4239_ACEOF
4240rm -f conftest.o conftest.obj
4241if { { ac_try="$ac_compile"
4242case "(($ac_try" in
4243  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4244  *) ac_try_echo=$ac_try;;
4245esac
4246eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4247printf "%s\n" "$ac_try_echo"; } >&5
4248  (eval "$ac_compile") 2>&5
4249  ac_status=$?
4250  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4251  test $ac_status = 0; }
4252then :
4253  for ac_file in conftest.o conftest.obj conftest.*; do
4254  test -f "$ac_file" || continue;
4255  case $ac_file in
4256    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4257    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4258       break;;
4259  esac
4260done
4261else $as_nop
4262  printf "%s\n" "$as_me: failed program was:" >&5
4263sed 's/^/| /' conftest.$ac_ext >&5
4264
4265{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4266printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4267as_fn_error $? "cannot compute suffix of object files: cannot compile
4268See \`config.log' for more details" "$LINENO" 5; }
4269fi
4270rm -f conftest.$ac_cv_objext conftest.$ac_ext
4271fi
4272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4273printf "%s\n" "$ac_cv_objext" >&6; }
4274OBJEXT=$ac_cv_objext
4275ac_objext=$OBJEXT
4276{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4277printf %s "checking whether the compiler supports GNU C... " >&6; }
4278if test ${ac_cv_c_compiler_gnu+y}
4279then :
4280  printf %s "(cached) " >&6
4281else $as_nop
4282  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4283/* end confdefs.h.  */
4284
4285int
4286main (void)
4287{
4288#ifndef __GNUC__
4289       choke me
4290#endif
4291
4292  ;
4293  return 0;
4294}
4295_ACEOF
4296if ac_fn_c_try_compile "$LINENO"
4297then :
4298  ac_compiler_gnu=yes
4299else $as_nop
4300  ac_compiler_gnu=no
4301fi
4302rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4303ac_cv_c_compiler_gnu=$ac_compiler_gnu
4304
4305fi
4306{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4307printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4308ac_compiler_gnu=$ac_cv_c_compiler_gnu
4309
4310if test $ac_compiler_gnu = yes; then
4311  GCC=yes
4312else
4313  GCC=
4314fi
4315ac_test_CFLAGS=${CFLAGS+y}
4316ac_save_CFLAGS=$CFLAGS
4317{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4318printf %s "checking whether $CC accepts -g... " >&6; }
4319if test ${ac_cv_prog_cc_g+y}
4320then :
4321  printf %s "(cached) " >&6
4322else $as_nop
4323  ac_save_c_werror_flag=$ac_c_werror_flag
4324   ac_c_werror_flag=yes
4325   ac_cv_prog_cc_g=no
4326   CFLAGS="-g"
4327   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4328/* end confdefs.h.  */
4329
4330int
4331main (void)
4332{
4333
4334  ;
4335  return 0;
4336}
4337_ACEOF
4338if ac_fn_c_try_compile "$LINENO"
4339then :
4340  ac_cv_prog_cc_g=yes
4341else $as_nop
4342  CFLAGS=""
4343      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4344/* end confdefs.h.  */
4345
4346int
4347main (void)
4348{
4349
4350  ;
4351  return 0;
4352}
4353_ACEOF
4354if ac_fn_c_try_compile "$LINENO"
4355then :
4356
4357else $as_nop
4358  ac_c_werror_flag=$ac_save_c_werror_flag
4359	 CFLAGS="-g"
4360	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4361/* end confdefs.h.  */
4362
4363int
4364main (void)
4365{
4366
4367  ;
4368  return 0;
4369}
4370_ACEOF
4371if ac_fn_c_try_compile "$LINENO"
4372then :
4373  ac_cv_prog_cc_g=yes
4374fi
4375rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4376fi
4377rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4378fi
4379rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4380   ac_c_werror_flag=$ac_save_c_werror_flag
4381fi
4382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4383printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4384if test $ac_test_CFLAGS; then
4385  CFLAGS=$ac_save_CFLAGS
4386elif test $ac_cv_prog_cc_g = yes; then
4387  if test "$GCC" = yes; then
4388    CFLAGS="-g -O2"
4389  else
4390    CFLAGS="-g"
4391  fi
4392else
4393  if test "$GCC" = yes; then
4394    CFLAGS="-O2"
4395  else
4396    CFLAGS=
4397  fi
4398fi
4399ac_prog_cc_stdc=no
4400if test x$ac_prog_cc_stdc = xno
4401then :
4402  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4403printf %s "checking for $CC option to enable C11 features... " >&6; }
4404if test ${ac_cv_prog_cc_c11+y}
4405then :
4406  printf %s "(cached) " >&6
4407else $as_nop
4408  ac_cv_prog_cc_c11=no
4409ac_save_CC=$CC
4410cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4411/* end confdefs.h.  */
4412$ac_c_conftest_c11_program
4413_ACEOF
4414for ac_arg in '' -std=gnu11
4415do
4416  CC="$ac_save_CC $ac_arg"
4417  if ac_fn_c_try_compile "$LINENO"
4418then :
4419  ac_cv_prog_cc_c11=$ac_arg
4420fi
4421rm -f core conftest.err conftest.$ac_objext conftest.beam
4422  test "x$ac_cv_prog_cc_c11" != "xno" && break
4423done
4424rm -f conftest.$ac_ext
4425CC=$ac_save_CC
4426fi
4427
4428if test "x$ac_cv_prog_cc_c11" = xno
4429then :
4430  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4431printf "%s\n" "unsupported" >&6; }
4432else $as_nop
4433  if test "x$ac_cv_prog_cc_c11" = x
4434then :
4435  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4436printf "%s\n" "none needed" >&6; }
4437else $as_nop
4438  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4439printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4440     CC="$CC $ac_cv_prog_cc_c11"
4441fi
4442  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4443  ac_prog_cc_stdc=c11
4444fi
4445fi
4446if test x$ac_prog_cc_stdc = xno
4447then :
4448  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4449printf %s "checking for $CC option to enable C99 features... " >&6; }
4450if test ${ac_cv_prog_cc_c99+y}
4451then :
4452  printf %s "(cached) " >&6
4453else $as_nop
4454  ac_cv_prog_cc_c99=no
4455ac_save_CC=$CC
4456cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4457/* end confdefs.h.  */
4458$ac_c_conftest_c99_program
4459_ACEOF
4460for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4461do
4462  CC="$ac_save_CC $ac_arg"
4463  if ac_fn_c_try_compile "$LINENO"
4464then :
4465  ac_cv_prog_cc_c99=$ac_arg
4466fi
4467rm -f core conftest.err conftest.$ac_objext conftest.beam
4468  test "x$ac_cv_prog_cc_c99" != "xno" && break
4469done
4470rm -f conftest.$ac_ext
4471CC=$ac_save_CC
4472fi
4473
4474if test "x$ac_cv_prog_cc_c99" = xno
4475then :
4476  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4477printf "%s\n" "unsupported" >&6; }
4478else $as_nop
4479  if test "x$ac_cv_prog_cc_c99" = x
4480then :
4481  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4482printf "%s\n" "none needed" >&6; }
4483else $as_nop
4484  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4485printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4486     CC="$CC $ac_cv_prog_cc_c99"
4487fi
4488  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4489  ac_prog_cc_stdc=c99
4490fi
4491fi
4492if test x$ac_prog_cc_stdc = xno
4493then :
4494  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4495printf %s "checking for $CC option to enable C89 features... " >&6; }
4496if test ${ac_cv_prog_cc_c89+y}
4497then :
4498  printf %s "(cached) " >&6
4499else $as_nop
4500  ac_cv_prog_cc_c89=no
4501ac_save_CC=$CC
4502cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4503/* end confdefs.h.  */
4504$ac_c_conftest_c89_program
4505_ACEOF
4506for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4507do
4508  CC="$ac_save_CC $ac_arg"
4509  if ac_fn_c_try_compile "$LINENO"
4510then :
4511  ac_cv_prog_cc_c89=$ac_arg
4512fi
4513rm -f core conftest.err conftest.$ac_objext conftest.beam
4514  test "x$ac_cv_prog_cc_c89" != "xno" && break
4515done
4516rm -f conftest.$ac_ext
4517CC=$ac_save_CC
4518fi
4519
4520if test "x$ac_cv_prog_cc_c89" = xno
4521then :
4522  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4523printf "%s\n" "unsupported" >&6; }
4524else $as_nop
4525  if test "x$ac_cv_prog_cc_c89" = x
4526then :
4527  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4528printf "%s\n" "none needed" >&6; }
4529else $as_nop
4530  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4531printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4532     CC="$CC $ac_cv_prog_cc_c89"
4533fi
4534  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4535  ac_prog_cc_stdc=c89
4536fi
4537fi
4538
4539ac_ext=c
4540ac_cpp='$CPP $CPPFLAGS'
4541ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4542ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4543ac_compiler_gnu=$ac_cv_c_compiler_gnu
4544
4545
4546  ac_ext=c
4547ac_cpp='$CPP $CPPFLAGS'
4548ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4549ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4550ac_compiler_gnu=$ac_cv_c_compiler_gnu
4551{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4552printf %s "checking whether $CC understands -c and -o together... " >&6; }
4553if test ${am_cv_prog_cc_c_o+y}
4554then :
4555  printf %s "(cached) " >&6
4556else $as_nop
4557  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4558/* end confdefs.h.  */
4559
4560int
4561main (void)
4562{
4563
4564  ;
4565  return 0;
4566}
4567_ACEOF
4568  # Make sure it works both with $CC and with simple cc.
4569  # Following AC_PROG_CC_C_O, we do the test twice because some
4570  # compilers refuse to overwrite an existing .o file with -o,
4571  # though they will create one.
4572  am_cv_prog_cc_c_o=yes
4573  for am_i in 1 2; do
4574    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4575   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4576   ac_status=$?
4577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578   (exit $ac_status); } \
4579         && test -f conftest2.$ac_objext; then
4580      : OK
4581    else
4582      am_cv_prog_cc_c_o=no
4583      break
4584    fi
4585  done
4586  rm -f core conftest*
4587  unset am_i
4588fi
4589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4590printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4591if test "$am_cv_prog_cc_c_o" != yes; then
4592   # Losing compiler, so override with the script.
4593   # FIXME: It is wrong to rewrite CC.
4594   # But if we don't then we get into trouble of one sort or another.
4595   # A longer-term fix would be to have automake use am__CC in this case,
4596   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4597   CC="$am_aux_dir/compile $CC"
4598fi
4599ac_ext=c
4600ac_cpp='$CPP $CPPFLAGS'
4601ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4602ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4603ac_compiler_gnu=$ac_cv_c_compiler_gnu
4604
4605
4606depcc="$CC"   am_compiler_list=
4607
4608{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4609printf %s "checking dependency style of $depcc... " >&6; }
4610if test ${am_cv_CC_dependencies_compiler_type+y}
4611then :
4612  printf %s "(cached) " >&6
4613else $as_nop
4614  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4615  # We make a subdir and do the tests there.  Otherwise we can end up
4616  # making bogus files that we don't know about and never remove.  For
4617  # instance it was reported that on HP-UX the gcc test will end up
4618  # making a dummy file named 'D' -- because '-MD' means "put the output
4619  # in D".
4620  rm -rf conftest.dir
4621  mkdir conftest.dir
4622  # Copy depcomp to subdir because otherwise we won't find it if we're
4623  # using a relative directory.
4624  cp "$am_depcomp" conftest.dir
4625  cd conftest.dir
4626  # We will build objects and dependencies in a subdirectory because
4627  # it helps to detect inapplicable dependency modes.  For instance
4628  # both Tru64's cc and ICC support -MD to output dependencies as a
4629  # side effect of compilation, but ICC will put the dependencies in
4630  # the current directory while Tru64 will put them in the object
4631  # directory.
4632  mkdir sub
4633
4634  am_cv_CC_dependencies_compiler_type=none
4635  if test "$am_compiler_list" = ""; then
4636     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4637  fi
4638  am__universal=false
4639  case " $depcc " in #(
4640     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4641     esac
4642
4643  for depmode in $am_compiler_list; do
4644    # Setup a source with many dependencies, because some compilers
4645    # like to wrap large dependency lists on column 80 (with \), and
4646    # we should not choose a depcomp mode which is confused by this.
4647    #
4648    # We need to recreate these files for each test, as the compiler may
4649    # overwrite some of them when testing with obscure command lines.
4650    # This happens at least with the AIX C compiler.
4651    : > sub/conftest.c
4652    for i in 1 2 3 4 5 6; do
4653      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4654      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4655      # Solaris 10 /bin/sh.
4656      echo '/* dummy */' > sub/conftst$i.h
4657    done
4658    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4659
4660    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4661    # mode.  It turns out that the SunPro C++ compiler does not properly
4662    # handle '-M -o', and we need to detect this.  Also, some Intel
4663    # versions had trouble with output in subdirs.
4664    am__obj=sub/conftest.${OBJEXT-o}
4665    am__minus_obj="-o $am__obj"
4666    case $depmode in
4667    gcc)
4668      # This depmode causes a compiler race in universal mode.
4669      test "$am__universal" = false || continue
4670      ;;
4671    nosideeffect)
4672      # After this tag, mechanisms are not by side-effect, so they'll
4673      # only be used when explicitly requested.
4674      if test "x$enable_dependency_tracking" = xyes; then
4675	continue
4676      else
4677	break
4678      fi
4679      ;;
4680    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4681      # This compiler won't grok '-c -o', but also, the minuso test has
4682      # not run yet.  These depmodes are late enough in the game, and
4683      # so weak that their functioning should not be impacted.
4684      am__obj=conftest.${OBJEXT-o}
4685      am__minus_obj=
4686      ;;
4687    none) break ;;
4688    esac
4689    if depmode=$depmode \
4690       source=sub/conftest.c object=$am__obj \
4691       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4692       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4693         >/dev/null 2>conftest.err &&
4694       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4695       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4696       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4697       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4698      # icc doesn't choke on unknown options, it will just issue warnings
4699      # or remarks (even with -Werror).  So we grep stderr for any message
4700      # that says an option was ignored or not supported.
4701      # When given -MP, icc 7.0 and 7.1 complain thusly:
4702      #   icc: Command line warning: ignoring option '-M'; no argument required
4703      # The diagnosis changed in icc 8.0:
4704      #   icc: Command line remark: option '-MP' not supported
4705      if (grep 'ignoring option' conftest.err ||
4706          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4707        am_cv_CC_dependencies_compiler_type=$depmode
4708        break
4709      fi
4710    fi
4711  done
4712
4713  cd ..
4714  rm -rf conftest.dir
4715else
4716  am_cv_CC_dependencies_compiler_type=none
4717fi
4718
4719fi
4720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4721printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4722CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4723
4724 if
4725  test "x$enable_dependency_tracking" != xno \
4726  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4727  am__fastdepCC_TRUE=
4728  am__fastdepCC_FALSE='#'
4729else
4730  am__fastdepCC_TRUE='#'
4731  am__fastdepCC_FALSE=
4732fi
4733
4734
4735
4736
4737ac_config_headers="$ac_config_headers config.h"
4738
4739ac_config_headers="$ac_config_headers json_config.h"
4740
4741
4742ac_header= ac_cache=
4743for ac_item in $ac_header_c_list
4744do
4745  if test $ac_cache; then
4746    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4747    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4748      printf "%s\n" "#define $ac_item 1" >> confdefs.h
4749    fi
4750    ac_header= ac_cache=
4751  elif test $ac_header; then
4752    ac_cache=$ac_item
4753  else
4754    ac_header=$ac_item
4755  fi
4756done
4757
4758
4759
4760
4761
4762
4763
4764
4765if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4766then :
4767
4768printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4769
4770fi
4771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4772printf %s "checking for grep that handles long lines and -e... " >&6; }
4773if test ${ac_cv_path_GREP+y}
4774then :
4775  printf %s "(cached) " >&6
4776else $as_nop
4777  if test -z "$GREP"; then
4778  ac_path_GREP_found=false
4779  # Loop through the user's path and test for each of PROGNAME-LIST
4780  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4781for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4782do
4783  IFS=$as_save_IFS
4784  case $as_dir in #(((
4785    '') as_dir=./ ;;
4786    */) ;;
4787    *) as_dir=$as_dir/ ;;
4788  esac
4789    for ac_prog in grep ggrep
4790   do
4791    for ac_exec_ext in '' $ac_executable_extensions; do
4792      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4793      as_fn_executable_p "$ac_path_GREP" || continue
4794# Check for GNU ac_path_GREP and select it if it is found.
4795  # Check for GNU $ac_path_GREP
4796case `"$ac_path_GREP" --version 2>&1` in
4797*GNU*)
4798  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4799*)
4800  ac_count=0
4801  printf %s 0123456789 >"conftest.in"
4802  while :
4803  do
4804    cat "conftest.in" "conftest.in" >"conftest.tmp"
4805    mv "conftest.tmp" "conftest.in"
4806    cp "conftest.in" "conftest.nl"
4807    printf "%s\n" 'GREP' >> "conftest.nl"
4808    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4809    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4810    as_fn_arith $ac_count + 1 && ac_count=$as_val
4811    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4812      # Best one so far, save it but keep looking for a better one
4813      ac_cv_path_GREP="$ac_path_GREP"
4814      ac_path_GREP_max=$ac_count
4815    fi
4816    # 10*(2^10) chars as input seems more than enough
4817    test $ac_count -gt 10 && break
4818  done
4819  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4820esac
4821
4822      $ac_path_GREP_found && break 3
4823    done
4824  done
4825  done
4826IFS=$as_save_IFS
4827  if test -z "$ac_cv_path_GREP"; then
4828    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4829  fi
4830else
4831  ac_cv_path_GREP=$GREP
4832fi
4833
4834fi
4835{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4836printf "%s\n" "$ac_cv_path_GREP" >&6; }
4837 GREP="$ac_cv_path_GREP"
4838
4839
4840# Autoupdate added the next two lines to ensure that your configure
4841# script's behavior did not change.  They are probably safe to remove.
4842
4843{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4844printf %s "checking for egrep... " >&6; }
4845if test ${ac_cv_path_EGREP+y}
4846then :
4847  printf %s "(cached) " >&6
4848else $as_nop
4849  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4850   then ac_cv_path_EGREP="$GREP -E"
4851   else
4852     if test -z "$EGREP"; then
4853  ac_path_EGREP_found=false
4854  # Loop through the user's path and test for each of PROGNAME-LIST
4855  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4856for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4857do
4858  IFS=$as_save_IFS
4859  case $as_dir in #(((
4860    '') as_dir=./ ;;
4861    */) ;;
4862    *) as_dir=$as_dir/ ;;
4863  esac
4864    for ac_prog in egrep
4865   do
4866    for ac_exec_ext in '' $ac_executable_extensions; do
4867      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
4868      as_fn_executable_p "$ac_path_EGREP" || continue
4869# Check for GNU ac_path_EGREP and select it if it is found.
4870  # Check for GNU $ac_path_EGREP
4871case `"$ac_path_EGREP" --version 2>&1` in
4872*GNU*)
4873  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4874*)
4875  ac_count=0
4876  printf %s 0123456789 >"conftest.in"
4877  while :
4878  do
4879    cat "conftest.in" "conftest.in" >"conftest.tmp"
4880    mv "conftest.tmp" "conftest.in"
4881    cp "conftest.in" "conftest.nl"
4882    printf "%s\n" 'EGREP' >> "conftest.nl"
4883    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4884    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4885    as_fn_arith $ac_count + 1 && ac_count=$as_val
4886    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4887      # Best one so far, save it but keep looking for a better one
4888      ac_cv_path_EGREP="$ac_path_EGREP"
4889      ac_path_EGREP_max=$ac_count
4890    fi
4891    # 10*(2^10) chars as input seems more than enough
4892    test $ac_count -gt 10 && break
4893  done
4894  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4895esac
4896
4897      $ac_path_EGREP_found && break 3
4898    done
4899  done
4900  done
4901IFS=$as_save_IFS
4902  if test -z "$ac_cv_path_EGREP"; then
4903    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4904  fi
4905else
4906  ac_cv_path_EGREP=$EGREP
4907fi
4908
4909   fi
4910fi
4911{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4912printf "%s\n" "$ac_cv_path_EGREP" >&6; }
4913 EGREP="$ac_cv_path_EGREP"
4914
4915
4916
4917ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
4918if test "x$ac_cv_header_fcntl_h" = xyes
4919then :
4920  printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
4921
4922fi
4923ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
4924if test "x$ac_cv_header_limits_h" = xyes
4925then :
4926  printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
4927
4928fi
4929ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
4930if test "x$ac_cv_header_strings_h" = xyes
4931then :
4932  printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
4933
4934fi
4935ac_fn_c_check_header_compile "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
4936if test "x$ac_cv_header_syslog_h" = xyes
4937then :
4938  printf "%s\n" "#define HAVE_SYSLOG_H 1" >>confdefs.h
4939
4940fi
4941ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
4942if test "x$ac_cv_header_unistd_h" = xyes
4943then :
4944  printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
4945
4946fi
4947ac_fn_c_check_header_compile "$LINENO" "sys/cdefs.h" "ac_cv_header_sys_cdefs_h" "$ac_includes_default"
4948if test "x$ac_cv_header_sys_cdefs_h" = xyes
4949then :
4950  printf "%s\n" "#define HAVE_SYS_CDEFS_H 1" >>confdefs.h
4951
4952fi
4953ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
4954if test "x$ac_cv_header_sys_param_h" = xyes
4955then :
4956  printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
4957
4958fi
4959ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
4960if test "x$ac_cv_header_stdarg_h" = xyes
4961then :
4962  printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
4963
4964fi
4965ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
4966if test "x$ac_cv_header_locale_h" = xyes
4967then :
4968  printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h
4969
4970fi
4971ac_fn_c_check_header_compile "$LINENO" "xlocale.h" "ac_cv_header_xlocale_h" "$ac_includes_default"
4972if test "x$ac_cv_header_xlocale_h" = xyes
4973then :
4974  printf "%s\n" "#define HAVE_XLOCALE_H 1" >>confdefs.h
4975
4976fi
4977ac_fn_c_check_header_compile "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default"
4978if test "x$ac_cv_header_endian_h" = xyes
4979then :
4980  printf "%s\n" "#define HAVE_ENDIAN_H 1" >>confdefs.h
4981
4982fi
4983
4984ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
4985if test "x$ac_cv_header_inttypes_h" = xyes
4986then :
4987
4988printf "%s\n" "#define JSON_C_HAVE_INTTYPES_H 1" >>confdefs.h
4989
4990fi
4991
4992
4993# Checks for typedefs, structures, and compiler characteristics.
4994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4995printf %s "checking for an ANSI C-conforming const... " >&6; }
4996if test ${ac_cv_c_const+y}
4997then :
4998  printf %s "(cached) " >&6
4999else $as_nop
5000  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5001/* end confdefs.h.  */
5002
5003int
5004main (void)
5005{
5006
5007#ifndef __cplusplus
5008  /* Ultrix mips cc rejects this sort of thing.  */
5009  typedef int charset[2];
5010  const charset cs = { 0, 0 };
5011  /* SunOS 4.1.1 cc rejects this.  */
5012  char const *const *pcpcc;
5013  char **ppc;
5014  /* NEC SVR4.0.2 mips cc rejects this.  */
5015  struct point {int x, y;};
5016  static struct point const zero = {0,0};
5017  /* IBM XL C 1.02.0.0 rejects this.
5018     It does not let you subtract one const X* pointer from another in
5019     an arm of an if-expression whose if-part is not a constant
5020     expression */
5021  const char *g = "string";
5022  pcpcc = &g + (g ? g-g : 0);
5023  /* HPUX 7.0 cc rejects these. */
5024  ++pcpcc;
5025  ppc = (char**) pcpcc;
5026  pcpcc = (char const *const *) ppc;
5027  { /* SCO 3.2v4 cc rejects this sort of thing.  */
5028    char tx;
5029    char *t = &tx;
5030    char const *s = 0 ? (char *) 0 : (char const *) 0;
5031
5032    *t++ = 0;
5033    if (s) return 0;
5034  }
5035  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5036    int x[] = {25, 17};
5037    const int *foo = &x[0];
5038    ++foo;
5039  }
5040  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5041    typedef const int *iptr;
5042    iptr p = 0;
5043    ++p;
5044  }
5045  { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
5046       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5047    struct s { int j; const int *ap[3]; } bx;
5048    struct s *b = &bx; b->j = 5;
5049  }
5050  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5051    const int foo = 10;
5052    if (!foo) return 0;
5053  }
5054  return !cs[0] && !zero.x;
5055#endif
5056
5057  ;
5058  return 0;
5059}
5060_ACEOF
5061if ac_fn_c_try_compile "$LINENO"
5062then :
5063  ac_cv_c_const=yes
5064else $as_nop
5065  ac_cv_c_const=no
5066fi
5067rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5068fi
5069{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5070printf "%s\n" "$ac_cv_c_const" >&6; }
5071if test $ac_cv_c_const = no; then
5072
5073printf "%s\n" "#define const /**/" >>confdefs.h
5074
5075fi
5076
5077ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5078if test "x$ac_cv_type_size_t" = xyes
5079then :
5080
5081else $as_nop
5082
5083printf "%s\n" "#define size_t unsigned int" >>confdefs.h
5084
5085fi
5086
5087
5088{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __thread support" >&5
5089printf %s "checking for __thread support... " >&6; }
5090if test ${ac_cv___thread+y}
5091then :
5092  printf %s "(cached) " >&6
5093else $as_nop
5094  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5095/* end confdefs.h.  */
5096#undef __thread
5097static __thread int a; int foo (int b) { return a + b; }
5098int
5099main (void)
5100{
5101exit (foo (0));
5102  ;
5103  return 0;
5104}
5105_ACEOF
5106if ac_fn_c_try_link "$LINENO"
5107then :
5108  ac_cv___thread=yes
5109else $as_nop
5110  ac_cv___thread=no
5111fi
5112rm -f core conftest.err conftest.$ac_objext conftest.beam \
5113    conftest$ac_exeext conftest.$ac_ext
5114
5115fi
5116{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv___thread" >&5
5117printf "%s\n" "$ac_cv___thread" >&6; }
5118if test "x$ac_cv___thread" != xno
5119then :
5120
5121printf "%s\n" "#define HAVE___THREAD 1" >>confdefs.h
5122
5123
5124printf "%s\n" "#define SPEC___THREAD __thread" >>confdefs.h
5125
5126
5127fi
5128
5129# Checks for library functions.
5130ac_func=
5131for ac_item in $ac_func_c_list
5132do
5133  if test $ac_func; then
5134    ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
5135    if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
5136      echo "#define $ac_item 1" >> confdefs.h
5137    fi
5138    ac_func=
5139  else
5140    ac_func=$ac_item
5141  fi
5142done
5143
5144if test "x$ac_cv_func_vprintf" = xno
5145then :
5146  ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
5147if test "x$ac_cv_func__doprnt" = xyes
5148then :
5149
5150printf "%s\n" "#define HAVE_DOPRNT 1" >>confdefs.h
5151
5152fi
5153
5154fi
5155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
5156printf %s "checking for working memcmp... " >&6; }
5157if test ${ac_cv_func_memcmp_working+y}
5158then :
5159  printf %s "(cached) " >&6
5160else $as_nop
5161  if test "$cross_compiling" = yes
5162then :
5163  ac_cv_func_memcmp_working=no
5164else $as_nop
5165  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5166/* end confdefs.h.  */
5167$ac_includes_default
5168int
5169main (void)
5170{
5171
5172  /* Some versions of memcmp are not 8-bit clean.  */
5173  char c0 = '\100', c1 = '\200', c2 = '\201';
5174  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
5175    return 1;
5176
5177  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
5178     or more and with at least one buffer not starting on a 4-byte boundary.
5179     William Lewis provided this test program.   */
5180  {
5181    char foo[21];
5182    char bar[21];
5183    int i;
5184    for (i = 0; i < 4; i++)
5185      {
5186	char *a = foo + i;
5187	char *b = bar + i;
5188	strcpy (a, "--------01111111");
5189	strcpy (b, "--------10000000");
5190	if (memcmp (a, b, 16) >= 0)
5191	  return 1;
5192      }
5193    return 0;
5194  }
5195
5196  ;
5197  return 0;
5198}
5199_ACEOF
5200if ac_fn_c_try_run "$LINENO"
5201then :
5202  ac_cv_func_memcmp_working=yes
5203else $as_nop
5204  ac_cv_func_memcmp_working=no
5205fi
5206rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5207  conftest.$ac_objext conftest.beam conftest.$ac_ext
5208fi
5209
5210fi
5211{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
5212printf "%s\n" "$ac_cv_func_memcmp_working" >&6; }
5213test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
5214  *" memcmp.$ac_objext "* ) ;;
5215  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
5216 ;;
5217esac
5218
5219
5220ac_fn_c_check_func "$LINENO" "realloc" "ac_cv_func_realloc"
5221if test "x$ac_cv_func_realloc" = xyes
5222then :
5223  printf "%s\n" "#define HAVE_REALLOC 1" >>confdefs.h
5224
5225fi
5226
5227ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
5228if test "x$ac_cv_func_strcasecmp" = xyes
5229then :
5230  printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
5231
5232fi
5233ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
5234if test "x$ac_cv_func_strdup" = xyes
5235then :
5236  printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
5237
5238fi
5239ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
5240if test "x$ac_cv_func_strerror" = xyes
5241then :
5242  printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
5243
5244fi
5245ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
5246if test "x$ac_cv_func_snprintf" = xyes
5247then :
5248  printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
5249
5250fi
5251ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
5252if test "x$ac_cv_func_vsnprintf" = xyes
5253then :
5254  printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
5255
5256fi
5257ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
5258if test "x$ac_cv_func_vasprintf" = xyes
5259then :
5260  printf "%s\n" "#define HAVE_VASPRINTF 1" >>confdefs.h
5261
5262fi
5263ac_fn_c_check_func "$LINENO" "open" "ac_cv_func_open"
5264if test "x$ac_cv_func_open" = xyes
5265then :
5266  printf "%s\n" "#define HAVE_OPEN 1" >>confdefs.h
5267
5268fi
5269ac_fn_c_check_func "$LINENO" "vsyslog" "ac_cv_func_vsyslog"
5270if test "x$ac_cv_func_vsyslog" = xyes
5271then :
5272  printf "%s\n" "#define HAVE_VSYSLOG 1" >>confdefs.h
5273
5274fi
5275ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
5276if test "x$ac_cv_func_strncasecmp" = xyes
5277then :
5278  printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h
5279
5280fi
5281ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
5282if test "x$ac_cv_func_setlocale" = xyes
5283then :
5284  printf "%s\n" "#define HAVE_SETLOCALE 1" >>confdefs.h
5285
5286fi
5287
5288{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
5289printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
5290if test ${ac_cv_c_undeclared_builtin_options+y}
5291then :
5292  printf %s "(cached) " >&6
5293else $as_nop
5294  ac_save_CFLAGS=$CFLAGS
5295   ac_cv_c_undeclared_builtin_options='cannot detect'
5296   for ac_arg in '' -fno-builtin; do
5297     CFLAGS="$ac_save_CFLAGS $ac_arg"
5298     # This test program should *not* compile successfully.
5299     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5300/* end confdefs.h.  */
5301
5302int
5303main (void)
5304{
5305(void) strchr;
5306  ;
5307  return 0;
5308}
5309_ACEOF
5310if ac_fn_c_try_compile "$LINENO"
5311then :
5312
5313else $as_nop
5314  # This test program should compile successfully.
5315        # No library function is consistently available on
5316        # freestanding implementations, so test against a dummy
5317        # declaration.  Include always-available headers on the
5318        # off chance that they somehow elicit warnings.
5319        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5320/* end confdefs.h.  */
5321#include <float.h>
5322#include <limits.h>
5323#include <stdarg.h>
5324#include <stddef.h>
5325extern void ac_decl (int, char *);
5326
5327int
5328main (void)
5329{
5330(void) ac_decl (0, (char *) 0);
5331  (void) ac_decl;
5332
5333  ;
5334  return 0;
5335}
5336_ACEOF
5337if ac_fn_c_try_compile "$LINENO"
5338then :
5339  if test x"$ac_arg" = x
5340then :
5341  ac_cv_c_undeclared_builtin_options='none needed'
5342else $as_nop
5343  ac_cv_c_undeclared_builtin_options=$ac_arg
5344fi
5345          break
5346fi
5347rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5348fi
5349rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5350    done
5351    CFLAGS=$ac_save_CFLAGS
5352
5353fi
5354{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
5355printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
5356  case $ac_cv_c_undeclared_builtin_options in #(
5357  'cannot detect') :
5358    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5359printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5360as_fn_error $? "cannot make $CC report undeclared builtins
5361See \`config.log' for more details" "$LINENO" 5; } ;; #(
5362  'none needed') :
5363    ac_c_undeclared_builtin_options='' ;; #(
5364  *) :
5365    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
5366esac
5367
5368ac_fn_check_decl "$LINENO" "INFINITY" "ac_cv_have_decl_INFINITY" "#include <math.h>
5369" "$ac_c_undeclared_builtin_options" "CFLAGS"
5370if test "x$ac_cv_have_decl_INFINITY" = xyes
5371then :
5372  ac_have_decl=1
5373else $as_nop
5374  ac_have_decl=0
5375fi
5376printf "%s\n" "#define HAVE_DECL_INFINITY $ac_have_decl" >>confdefs.h
5377
5378ac_fn_check_decl "$LINENO" "nan" "ac_cv_have_decl_nan" "#include <math.h>
5379" "$ac_c_undeclared_builtin_options" "CFLAGS"
5380if test "x$ac_cv_have_decl_nan" = xyes
5381then :
5382  ac_have_decl=1
5383else $as_nop
5384  ac_have_decl=0
5385fi
5386printf "%s\n" "#define HAVE_DECL_NAN $ac_have_decl" >>confdefs.h
5387
5388ac_fn_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "#include <math.h>
5389" "$ac_c_undeclared_builtin_options" "CFLAGS"
5390if test "x$ac_cv_have_decl_isnan" = xyes
5391then :
5392  ac_have_decl=1
5393else $as_nop
5394  ac_have_decl=0
5395fi
5396printf "%s\n" "#define HAVE_DECL_ISNAN $ac_have_decl" >>confdefs.h
5397
5398ac_fn_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include <math.h>
5399" "$ac_c_undeclared_builtin_options" "CFLAGS"
5400if test "x$ac_cv_have_decl_isinf" = xyes
5401then :
5402  ac_have_decl=1
5403else $as_nop
5404  ac_have_decl=0
5405fi
5406printf "%s\n" "#define HAVE_DECL_ISINF $ac_have_decl" >>confdefs.h
5407
5408ac_fn_check_decl "$LINENO" "_isnan" "ac_cv_have_decl__isnan" "#include <float.h>
5409" "$ac_c_undeclared_builtin_options" "CFLAGS"
5410if test "x$ac_cv_have_decl__isnan" = xyes
5411then :
5412  ac_have_decl=1
5413else $as_nop
5414  ac_have_decl=0
5415fi
5416printf "%s\n" "#define HAVE_DECL__ISNAN $ac_have_decl" >>confdefs.h
5417
5418ac_fn_check_decl "$LINENO" "_finite" "ac_cv_have_decl__finite" "#include <float.h>
5419" "$ac_c_undeclared_builtin_options" "CFLAGS"
5420if test "x$ac_cv_have_decl__finite" = xyes
5421then :
5422  ac_have_decl=1
5423else $as_nop
5424  ac_have_decl=0
5425fi
5426printf "%s\n" "#define HAVE_DECL__FINITE $ac_have_decl" >>confdefs.h
5427
5428{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC atomic builtins" >&5
5429printf %s "checking for GCC atomic builtins... " >&6; }
5430cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5431/* end confdefs.h.  */
5432
5433
5434   int main() {
5435      volatile unsigned int val = 1;
5436      /* Note: __sync_val_compare_and_swap isn't checked here
5437       * because it's protected by __GCC_HAVE_SYNC_COMPARE_AND_SWAP_<n>,
5438       * which is automatically defined by gcc.
5439       */
5440      __sync_add_and_fetch(&val, 1);
5441      __sync_sub_and_fetch(&val, 1);
5442      return 0;
5443   }
5444
5445
5446_ACEOF
5447if ac_fn_c_try_link "$LINENO"
5448then :
5449
5450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5451printf "%s\n" "yes" >&6; }
5452
5453printf "%s\n" "#define HAVE_ATOMIC_BUILTINS 1" >>confdefs.h
5454
5455
5456else $as_nop
5457
5458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5459printf "%s\n" "no" >&6; }
5460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: json-c will be built without atomic refcounts because atomic builtins are missing" >&5
5461printf "%s\n" "$as_me: WARNING: json-c will be built without atomic refcounts because atomic builtins are missing" >&2;}
5462
5463fi
5464rm -f core conftest.err conftest.$ac_objext conftest.beam \
5465    conftest$ac_exeext conftest.$ac_ext
5466
5467case "${host_os}" in
5468	linux*)
5469		ac_fn_c_check_func "$LINENO" "uselocale" "ac_cv_func_uselocale"
5470if test "x$ac_cv_func_uselocale" = xyes
5471then :
5472  printf "%s\n" "#define HAVE_USELOCALE 1" >>confdefs.h
5473
5474fi
5475
5476		;;
5477	*)	# Nothing
5478		;;
5479esac
5480
5481if test "$ac_cv_have_decl_isnan" = "yes" ; then
5482   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5483/* end confdefs.h.  */
5484#include <math.h>
5485int
5486main (void)
5487{
5488float f = 0.0; return isnan(f)
5489  ;
5490  return 0;
5491}
5492_ACEOF
5493if ac_fn_c_try_link "$LINENO"
5494then :
5495
5496else $as_nop
5497  LIBS="$LIBS -lm"
5498fi
5499rm -f core conftest.err conftest.$ac_objext conftest.beam \
5500    conftest$ac_exeext conftest.$ac_ext
5501fi
5502
5503#check if .section.gnu.warning accepts long strings (for __warn_references)
5504ac_ext=c
5505ac_cpp='$CPP $CPPFLAGS'
5506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5508ac_compiler_gnu=$ac_cv_c_compiler_gnu
5509
5510
5511{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if .gnu.warning accepts long strings" >&5
5512printf %s "checking if .gnu.warning accepts long strings... " >&6; }
5513cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5514/* end confdefs.h.  */
5515
5516extern void json_object_get();
5517__asm__(".section .gnu.json_object_get,\n\t.ascii \"Please link against libjson-c instead of libjson\"\n\t.text");
5518
5519int main(int c,char* v) {return 0;}
5520
5521_ACEOF
5522if ac_fn_c_try_link "$LINENO"
5523then :
5524
5525
5526printf "%s\n" "#define HAS_GNU_WARNING_LONG 1" >>confdefs.h
5527
5528    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5529printf "%s\n" "yes" >&6; }
5530
5531else $as_nop
5532
5533   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5534printf "%s\n" "no" >&6; }
5535
5536fi
5537rm -f core conftest.err conftest.$ac_objext conftest.beam \
5538    conftest$ac_exeext conftest.$ac_ext
5539
5540ac_ext=c
5541ac_cpp='$CPP $CPPFLAGS'
5542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5544ac_compiler_gnu=$ac_cv_c_compiler_gnu
5545
5546
5547case `pwd` in
5548  *\ * | *\	*)
5549    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5550printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5551esac
5552
5553
5554
5555macro_version='2.4.6'
5556macro_revision='2.4.6'
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571ltmain=$ac_aux_dir/ltmain.sh
5572
5573# Backslashify metacharacters that are still active within
5574# double-quoted strings.
5575sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5576
5577# Same as above, but do not quote variable references.
5578double_quote_subst='s/\(["`\\]\)/\\\1/g'
5579
5580# Sed substitution to delay expansion of an escaped shell variable in a
5581# double_quote_subst'ed string.
5582delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5583
5584# Sed substitution to delay expansion of an escaped single quote.
5585delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5586
5587# Sed substitution to avoid accidental globbing in evaled expressions
5588no_glob_subst='s/\*/\\\*/g'
5589
5590ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5591ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5592ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5593
5594{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5595printf %s "checking how to print strings... " >&6; }
5596# Test print first, because it will be a builtin if present.
5597if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5598   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5599  ECHO='print -r --'
5600elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5601  ECHO='printf %s\n'
5602else
5603  # Use this function as a fallback that always works.
5604  func_fallback_echo ()
5605  {
5606    eval 'cat <<_LTECHO_EOF
5607$1
5608_LTECHO_EOF'
5609  }
5610  ECHO='func_fallback_echo'
5611fi
5612
5613# func_echo_all arg...
5614# Invoke $ECHO with all args, space-separated.
5615func_echo_all ()
5616{
5617    $ECHO ""
5618}
5619
5620case $ECHO in
5621  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5622printf "%s\n" "printf" >&6; } ;;
5623  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5624printf "%s\n" "print -r" >&6; } ;;
5625  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5626printf "%s\n" "cat" >&6; } ;;
5627esac
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5643printf %s "checking for a sed that does not truncate output... " >&6; }
5644if test ${ac_cv_path_SED+y}
5645then :
5646  printf %s "(cached) " >&6
5647else $as_nop
5648            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5649     for ac_i in 1 2 3 4 5 6 7; do
5650       ac_script="$ac_script$as_nl$ac_script"
5651     done
5652     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5653     { ac_script=; unset ac_script;}
5654     if test -z "$SED"; then
5655  ac_path_SED_found=false
5656  # Loop through the user's path and test for each of PROGNAME-LIST
5657  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5658for as_dir in $PATH
5659do
5660  IFS=$as_save_IFS
5661  case $as_dir in #(((
5662    '') as_dir=./ ;;
5663    */) ;;
5664    *) as_dir=$as_dir/ ;;
5665  esac
5666    for ac_prog in sed gsed
5667   do
5668    for ac_exec_ext in '' $ac_executable_extensions; do
5669      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5670      as_fn_executable_p "$ac_path_SED" || continue
5671# Check for GNU ac_path_SED and select it if it is found.
5672  # Check for GNU $ac_path_SED
5673case `"$ac_path_SED" --version 2>&1` in
5674*GNU*)
5675  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5676*)
5677  ac_count=0
5678  printf %s 0123456789 >"conftest.in"
5679  while :
5680  do
5681    cat "conftest.in" "conftest.in" >"conftest.tmp"
5682    mv "conftest.tmp" "conftest.in"
5683    cp "conftest.in" "conftest.nl"
5684    printf "%s\n" '' >> "conftest.nl"
5685    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5686    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5687    as_fn_arith $ac_count + 1 && ac_count=$as_val
5688    if test $ac_count -gt ${ac_path_SED_max-0}; then
5689      # Best one so far, save it but keep looking for a better one
5690      ac_cv_path_SED="$ac_path_SED"
5691      ac_path_SED_max=$ac_count
5692    fi
5693    # 10*(2^10) chars as input seems more than enough
5694    test $ac_count -gt 10 && break
5695  done
5696  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5697esac
5698
5699      $ac_path_SED_found && break 3
5700    done
5701  done
5702  done
5703IFS=$as_save_IFS
5704  if test -z "$ac_cv_path_SED"; then
5705    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5706  fi
5707else
5708  ac_cv_path_SED=$SED
5709fi
5710
5711fi
5712{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5713printf "%s\n" "$ac_cv_path_SED" >&6; }
5714 SED="$ac_cv_path_SED"
5715  rm -f conftest.sed
5716
5717test -z "$SED" && SED=sed
5718Xsed="$SED -e 1s/^X//"
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5731printf %s "checking for fgrep... " >&6; }
5732if test ${ac_cv_path_FGREP+y}
5733then :
5734  printf %s "(cached) " >&6
5735else $as_nop
5736  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5737   then ac_cv_path_FGREP="$GREP -F"
5738   else
5739     if test -z "$FGREP"; then
5740  ac_path_FGREP_found=false
5741  # Loop through the user's path and test for each of PROGNAME-LIST
5742  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5743for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5744do
5745  IFS=$as_save_IFS
5746  case $as_dir in #(((
5747    '') as_dir=./ ;;
5748    */) ;;
5749    *) as_dir=$as_dir/ ;;
5750  esac
5751    for ac_prog in fgrep
5752   do
5753    for ac_exec_ext in '' $ac_executable_extensions; do
5754      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5755      as_fn_executable_p "$ac_path_FGREP" || continue
5756# Check for GNU ac_path_FGREP and select it if it is found.
5757  # Check for GNU $ac_path_FGREP
5758case `"$ac_path_FGREP" --version 2>&1` in
5759*GNU*)
5760  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5761*)
5762  ac_count=0
5763  printf %s 0123456789 >"conftest.in"
5764  while :
5765  do
5766    cat "conftest.in" "conftest.in" >"conftest.tmp"
5767    mv "conftest.tmp" "conftest.in"
5768    cp "conftest.in" "conftest.nl"
5769    printf "%s\n" 'FGREP' >> "conftest.nl"
5770    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5771    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5772    as_fn_arith $ac_count + 1 && ac_count=$as_val
5773    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5774      # Best one so far, save it but keep looking for a better one
5775      ac_cv_path_FGREP="$ac_path_FGREP"
5776      ac_path_FGREP_max=$ac_count
5777    fi
5778    # 10*(2^10) chars as input seems more than enough
5779    test $ac_count -gt 10 && break
5780  done
5781  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5782esac
5783
5784      $ac_path_FGREP_found && break 3
5785    done
5786  done
5787  done
5788IFS=$as_save_IFS
5789  if test -z "$ac_cv_path_FGREP"; then
5790    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5791  fi
5792else
5793  ac_cv_path_FGREP=$FGREP
5794fi
5795
5796   fi
5797fi
5798{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5799printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5800 FGREP="$ac_cv_path_FGREP"
5801
5802
5803test -z "$GREP" && GREP=grep
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823# Check whether --with-gnu-ld was given.
5824if test ${with_gnu_ld+y}
5825then :
5826  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5827else $as_nop
5828  with_gnu_ld=no
5829fi
5830
5831ac_prog=ld
5832if test yes = "$GCC"; then
5833  # Check if gcc -print-prog-name=ld gives a path.
5834  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5835printf %s "checking for ld used by $CC... " >&6; }
5836  case $host in
5837  *-*-mingw*)
5838    # gcc leaves a trailing carriage return, which upsets mingw
5839    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5840  *)
5841    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5842  esac
5843  case $ac_prog in
5844    # Accept absolute paths.
5845    [\\/]* | ?:[\\/]*)
5846      re_direlt='/[^/][^/]*/\.\./'
5847      # Canonicalize the pathname of ld
5848      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5849      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5850	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5851      done
5852      test -z "$LD" && LD=$ac_prog
5853      ;;
5854  "")
5855    # If it fails, then pretend we aren't using GCC.
5856    ac_prog=ld
5857    ;;
5858  *)
5859    # If it is relative, then search for the first ld in PATH.
5860    with_gnu_ld=unknown
5861    ;;
5862  esac
5863elif test yes = "$with_gnu_ld"; then
5864  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5865printf %s "checking for GNU ld... " >&6; }
5866else
5867  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5868printf %s "checking for non-GNU ld... " >&6; }
5869fi
5870if test ${lt_cv_path_LD+y}
5871then :
5872  printf %s "(cached) " >&6
5873else $as_nop
5874  if test -z "$LD"; then
5875  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5876  for ac_dir in $PATH; do
5877    IFS=$lt_save_ifs
5878    test -z "$ac_dir" && ac_dir=.
5879    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5880      lt_cv_path_LD=$ac_dir/$ac_prog
5881      # Check to see if the program is GNU ld.  I'd rather use --version,
5882      # but apparently some variants of GNU ld only accept -v.
5883      # Break only if it was the GNU/non-GNU ld that we prefer.
5884      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5885      *GNU* | *'with BFD'*)
5886	test no != "$with_gnu_ld" && break
5887	;;
5888      *)
5889	test yes != "$with_gnu_ld" && break
5890	;;
5891      esac
5892    fi
5893  done
5894  IFS=$lt_save_ifs
5895else
5896  lt_cv_path_LD=$LD # Let the user override the test with a path.
5897fi
5898fi
5899
5900LD=$lt_cv_path_LD
5901if test -n "$LD"; then
5902  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5903printf "%s\n" "$LD" >&6; }
5904else
5905  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5906printf "%s\n" "no" >&6; }
5907fi
5908test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5910printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5911if test ${lt_cv_prog_gnu_ld+y}
5912then :
5913  printf %s "(cached) " >&6
5914else $as_nop
5915  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5916case `$LD -v 2>&1 </dev/null` in
5917*GNU* | *'with BFD'*)
5918  lt_cv_prog_gnu_ld=yes
5919  ;;
5920*)
5921  lt_cv_prog_gnu_ld=no
5922  ;;
5923esac
5924fi
5925{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5926printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5927with_gnu_ld=$lt_cv_prog_gnu_ld
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5938printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5939if test ${lt_cv_path_NM+y}
5940then :
5941  printf %s "(cached) " >&6
5942else $as_nop
5943  if test -n "$NM"; then
5944  # Let the user override the test.
5945  lt_cv_path_NM=$NM
5946else
5947  lt_nm_to_check=${ac_tool_prefix}nm
5948  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5949    lt_nm_to_check="$lt_nm_to_check nm"
5950  fi
5951  for lt_tmp_nm in $lt_nm_to_check; do
5952    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5953    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5954      IFS=$lt_save_ifs
5955      test -z "$ac_dir" && ac_dir=.
5956      tmp_nm=$ac_dir/$lt_tmp_nm
5957      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5958	# Check to see if the nm accepts a BSD-compat flag.
5959	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5960	#   nm: unknown option "B" ignored
5961	# Tru64's nm complains that /dev/null is an invalid object file
5962	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5963	case $build_os in
5964	mingw*) lt_bad_file=conftest.nm/nofile ;;
5965	*) lt_bad_file=/dev/null ;;
5966	esac
5967	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5968	*$lt_bad_file* | *'Invalid file or object type'*)
5969	  lt_cv_path_NM="$tmp_nm -B"
5970	  break 2
5971	  ;;
5972	*)
5973	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5974	  */dev/null*)
5975	    lt_cv_path_NM="$tmp_nm -p"
5976	    break 2
5977	    ;;
5978	  *)
5979	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5980	    continue # so that we can try to find one that supports BSD flags
5981	    ;;
5982	  esac
5983	  ;;
5984	esac
5985      fi
5986    done
5987    IFS=$lt_save_ifs
5988  done
5989  : ${lt_cv_path_NM=no}
5990fi
5991fi
5992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5993printf "%s\n" "$lt_cv_path_NM" >&6; }
5994if test no != "$lt_cv_path_NM"; then
5995  NM=$lt_cv_path_NM
5996else
5997  # Didn't find any BSD compatible name lister, look for dumpbin.
5998  if test -n "$DUMPBIN"; then :
5999    # Let the user override the test.
6000  else
6001    if test -n "$ac_tool_prefix"; then
6002  for ac_prog in dumpbin "link -dump"
6003  do
6004    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6005set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6006{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6007printf %s "checking for $ac_word... " >&6; }
6008if test ${ac_cv_prog_DUMPBIN+y}
6009then :
6010  printf %s "(cached) " >&6
6011else $as_nop
6012  if test -n "$DUMPBIN"; then
6013  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6014else
6015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6016for as_dir in $PATH
6017do
6018  IFS=$as_save_IFS
6019  case $as_dir in #(((
6020    '') as_dir=./ ;;
6021    */) ;;
6022    *) as_dir=$as_dir/ ;;
6023  esac
6024    for ac_exec_ext in '' $ac_executable_extensions; do
6025  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6026    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6027    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6028    break 2
6029  fi
6030done
6031  done
6032IFS=$as_save_IFS
6033
6034fi
6035fi
6036DUMPBIN=$ac_cv_prog_DUMPBIN
6037if test -n "$DUMPBIN"; then
6038  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6039printf "%s\n" "$DUMPBIN" >&6; }
6040else
6041  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6042printf "%s\n" "no" >&6; }
6043fi
6044
6045
6046    test -n "$DUMPBIN" && break
6047  done
6048fi
6049if test -z "$DUMPBIN"; then
6050  ac_ct_DUMPBIN=$DUMPBIN
6051  for ac_prog in dumpbin "link -dump"
6052do
6053  # Extract the first word of "$ac_prog", so it can be a program name with args.
6054set dummy $ac_prog; ac_word=$2
6055{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6056printf %s "checking for $ac_word... " >&6; }
6057if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6058then :
6059  printf %s "(cached) " >&6
6060else $as_nop
6061  if test -n "$ac_ct_DUMPBIN"; then
6062  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6063else
6064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6065for as_dir in $PATH
6066do
6067  IFS=$as_save_IFS
6068  case $as_dir in #(((
6069    '') as_dir=./ ;;
6070    */) ;;
6071    *) as_dir=$as_dir/ ;;
6072  esac
6073    for ac_exec_ext in '' $ac_executable_extensions; do
6074  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6075    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6076    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6077    break 2
6078  fi
6079done
6080  done
6081IFS=$as_save_IFS
6082
6083fi
6084fi
6085ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6086if test -n "$ac_ct_DUMPBIN"; then
6087  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6088printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
6089else
6090  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6091printf "%s\n" "no" >&6; }
6092fi
6093
6094
6095  test -n "$ac_ct_DUMPBIN" && break
6096done
6097
6098  if test "x$ac_ct_DUMPBIN" = x; then
6099    DUMPBIN=":"
6100  else
6101    case $cross_compiling:$ac_tool_warned in
6102yes:)
6103{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6104printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6105ac_tool_warned=yes ;;
6106esac
6107    DUMPBIN=$ac_ct_DUMPBIN
6108  fi
6109fi
6110
6111    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6112    *COFF*)
6113      DUMPBIN="$DUMPBIN -symbols -headers"
6114      ;;
6115    *)
6116      DUMPBIN=:
6117      ;;
6118    esac
6119  fi
6120
6121  if test : != "$DUMPBIN"; then
6122    NM=$DUMPBIN
6123  fi
6124fi
6125test -z "$NM" && NM=nm
6126
6127
6128
6129
6130
6131
6132{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6133printf %s "checking the name lister ($NM) interface... " >&6; }
6134if test ${lt_cv_nm_interface+y}
6135then :
6136  printf %s "(cached) " >&6
6137else $as_nop
6138  lt_cv_nm_interface="BSD nm"
6139  echo "int some_variable = 0;" > conftest.$ac_ext
6140  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6141  (eval "$ac_compile" 2>conftest.err)
6142  cat conftest.err >&5
6143  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6144  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6145  cat conftest.err >&5
6146  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6147  cat conftest.out >&5
6148  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6149    lt_cv_nm_interface="MS dumpbin"
6150  fi
6151  rm -f conftest*
6152fi
6153{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6154printf "%s\n" "$lt_cv_nm_interface" >&6; }
6155
6156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6157printf %s "checking whether ln -s works... " >&6; }
6158LN_S=$as_ln_s
6159if test "$LN_S" = "ln -s"; then
6160  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6161printf "%s\n" "yes" >&6; }
6162else
6163  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6164printf "%s\n" "no, using $LN_S" >&6; }
6165fi
6166
6167# find the maximum length of command line arguments
6168{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6169printf %s "checking the maximum length of command line arguments... " >&6; }
6170if test ${lt_cv_sys_max_cmd_len+y}
6171then :
6172  printf %s "(cached) " >&6
6173else $as_nop
6174    i=0
6175  teststring=ABCD
6176
6177  case $build_os in
6178  msdosdjgpp*)
6179    # On DJGPP, this test can blow up pretty badly due to problems in libc
6180    # (any single argument exceeding 2000 bytes causes a buffer overrun
6181    # during glob expansion).  Even if it were fixed, the result of this
6182    # check would be larger than it should be.
6183    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6184    ;;
6185
6186  gnu*)
6187    # Under GNU Hurd, this test is not required because there is
6188    # no limit to the length of command line arguments.
6189    # Libtool will interpret -1 as no limit whatsoever
6190    lt_cv_sys_max_cmd_len=-1;
6191    ;;
6192
6193  cygwin* | mingw* | cegcc*)
6194    # On Win9x/ME, this test blows up -- it succeeds, but takes
6195    # about 5 minutes as the teststring grows exponentially.
6196    # Worse, since 9x/ME are not pre-emptively multitasking,
6197    # you end up with a "frozen" computer, even though with patience
6198    # the test eventually succeeds (with a max line length of 256k).
6199    # Instead, let's just punt: use the minimum linelength reported by
6200    # all of the supported platforms: 8192 (on NT/2K/XP).
6201    lt_cv_sys_max_cmd_len=8192;
6202    ;;
6203
6204  mint*)
6205    # On MiNT this can take a long time and run out of memory.
6206    lt_cv_sys_max_cmd_len=8192;
6207    ;;
6208
6209  amigaos*)
6210    # On AmigaOS with pdksh, this test takes hours, literally.
6211    # So we just punt and use a minimum line length of 8192.
6212    lt_cv_sys_max_cmd_len=8192;
6213    ;;
6214
6215  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6216    # This has been around since 386BSD, at least.  Likely further.
6217    if test -x /sbin/sysctl; then
6218      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6219    elif test -x /usr/sbin/sysctl; then
6220      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6221    else
6222      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6223    fi
6224    # And add a safety zone
6225    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6226    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6227    ;;
6228
6229  interix*)
6230    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6231    lt_cv_sys_max_cmd_len=196608
6232    ;;
6233
6234  os2*)
6235    # The test takes a long time on OS/2.
6236    lt_cv_sys_max_cmd_len=8192
6237    ;;
6238
6239  osf*)
6240    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6241    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6242    # nice to cause kernel panics so lets avoid the loop below.
6243    # First set a reasonable default.
6244    lt_cv_sys_max_cmd_len=16384
6245    #
6246    if test -x /sbin/sysconfig; then
6247      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6248        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6249      esac
6250    fi
6251    ;;
6252  sco3.2v5*)
6253    lt_cv_sys_max_cmd_len=102400
6254    ;;
6255  sysv5* | sco5v6* | sysv4.2uw2*)
6256    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6257    if test -n "$kargmax"; then
6258      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6259    else
6260      lt_cv_sys_max_cmd_len=32768
6261    fi
6262    ;;
6263  *)
6264    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6265    if test -n "$lt_cv_sys_max_cmd_len" && \
6266       test undefined != "$lt_cv_sys_max_cmd_len"; then
6267      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6268      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6269    else
6270      # Make teststring a little bigger before we do anything with it.
6271      # a 1K string should be a reasonable start.
6272      for i in 1 2 3 4 5 6 7 8; do
6273        teststring=$teststring$teststring
6274      done
6275      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6276      # If test is not a shell built-in, we'll probably end up computing a
6277      # maximum length that is only half of the actual maximum length, but
6278      # we can't tell.
6279      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6280	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6281	      test 17 != "$i" # 1/2 MB should be enough
6282      do
6283        i=`expr $i + 1`
6284        teststring=$teststring$teststring
6285      done
6286      # Only check the string length outside the loop.
6287      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6288      teststring=
6289      # Add a significant safety factor because C++ compilers can tack on
6290      # massive amounts of additional arguments before passing them to the
6291      # linker.  It appears as though 1/2 is a usable value.
6292      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6293    fi
6294    ;;
6295  esac
6296
6297fi
6298
6299if test -n "$lt_cv_sys_max_cmd_len"; then
6300  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6301printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6302else
6303  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6304printf "%s\n" "none" >&6; }
6305fi
6306max_cmd_len=$lt_cv_sys_max_cmd_len
6307
6308
6309
6310
6311
6312
6313: ${CP="cp -f"}
6314: ${MV="mv -f"}
6315: ${RM="rm -f"}
6316
6317if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6318  lt_unset=unset
6319else
6320  lt_unset=false
6321fi
6322
6323
6324
6325
6326
6327# test EBCDIC or ASCII
6328case `echo X|tr X '\101'` in
6329 A) # ASCII based system
6330    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6331  lt_SP2NL='tr \040 \012'
6332  lt_NL2SP='tr \015\012 \040\040'
6333  ;;
6334 *) # EBCDIC based system
6335  lt_SP2NL='tr \100 \n'
6336  lt_NL2SP='tr \r\n \100\100'
6337  ;;
6338esac
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6349printf %s "checking how to convert $build file names to $host format... " >&6; }
6350if test ${lt_cv_to_host_file_cmd+y}
6351then :
6352  printf %s "(cached) " >&6
6353else $as_nop
6354  case $host in
6355  *-*-mingw* )
6356    case $build in
6357      *-*-mingw* ) # actually msys
6358        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6359        ;;
6360      *-*-cygwin* )
6361        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6362        ;;
6363      * ) # otherwise, assume *nix
6364        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6365        ;;
6366    esac
6367    ;;
6368  *-*-cygwin* )
6369    case $build in
6370      *-*-mingw* ) # actually msys
6371        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6372        ;;
6373      *-*-cygwin* )
6374        lt_cv_to_host_file_cmd=func_convert_file_noop
6375        ;;
6376      * ) # otherwise, assume *nix
6377        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6378        ;;
6379    esac
6380    ;;
6381  * ) # unhandled hosts (and "normal" native builds)
6382    lt_cv_to_host_file_cmd=func_convert_file_noop
6383    ;;
6384esac
6385
6386fi
6387
6388to_host_file_cmd=$lt_cv_to_host_file_cmd
6389{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6390printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6391
6392
6393
6394
6395
6396{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6397printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6398if test ${lt_cv_to_tool_file_cmd+y}
6399then :
6400  printf %s "(cached) " >&6
6401else $as_nop
6402  #assume ordinary cross tools, or native build.
6403lt_cv_to_tool_file_cmd=func_convert_file_noop
6404case $host in
6405  *-*-mingw* )
6406    case $build in
6407      *-*-mingw* ) # actually msys
6408        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6409        ;;
6410    esac
6411    ;;
6412esac
6413
6414fi
6415
6416to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6418printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6419
6420
6421
6422
6423
6424{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6425printf %s "checking for $LD option to reload object files... " >&6; }
6426if test ${lt_cv_ld_reload_flag+y}
6427then :
6428  printf %s "(cached) " >&6
6429else $as_nop
6430  lt_cv_ld_reload_flag='-r'
6431fi
6432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6433printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6434reload_flag=$lt_cv_ld_reload_flag
6435case $reload_flag in
6436"" | " "*) ;;
6437*) reload_flag=" $reload_flag" ;;
6438esac
6439reload_cmds='$LD$reload_flag -o $output$reload_objs'
6440case $host_os in
6441  cygwin* | mingw* | pw32* | cegcc*)
6442    if test yes != "$GCC"; then
6443      reload_cmds=false
6444    fi
6445    ;;
6446  darwin*)
6447    if test yes = "$GCC"; then
6448      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6449    else
6450      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6451    fi
6452    ;;
6453esac
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463if test -n "$ac_tool_prefix"; then
6464  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6465set dummy ${ac_tool_prefix}objdump; ac_word=$2
6466{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6467printf %s "checking for $ac_word... " >&6; }
6468if test ${ac_cv_prog_OBJDUMP+y}
6469then :
6470  printf %s "(cached) " >&6
6471else $as_nop
6472  if test -n "$OBJDUMP"; then
6473  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6474else
6475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6476for as_dir in $PATH
6477do
6478  IFS=$as_save_IFS
6479  case $as_dir in #(((
6480    '') as_dir=./ ;;
6481    */) ;;
6482    *) as_dir=$as_dir/ ;;
6483  esac
6484    for ac_exec_ext in '' $ac_executable_extensions; do
6485  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6486    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6487    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6488    break 2
6489  fi
6490done
6491  done
6492IFS=$as_save_IFS
6493
6494fi
6495fi
6496OBJDUMP=$ac_cv_prog_OBJDUMP
6497if test -n "$OBJDUMP"; then
6498  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6499printf "%s\n" "$OBJDUMP" >&6; }
6500else
6501  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6502printf "%s\n" "no" >&6; }
6503fi
6504
6505
6506fi
6507if test -z "$ac_cv_prog_OBJDUMP"; then
6508  ac_ct_OBJDUMP=$OBJDUMP
6509  # Extract the first word of "objdump", so it can be a program name with args.
6510set dummy objdump; ac_word=$2
6511{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6512printf %s "checking for $ac_word... " >&6; }
6513if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6514then :
6515  printf %s "(cached) " >&6
6516else $as_nop
6517  if test -n "$ac_ct_OBJDUMP"; then
6518  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6519else
6520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6521for as_dir in $PATH
6522do
6523  IFS=$as_save_IFS
6524  case $as_dir in #(((
6525    '') as_dir=./ ;;
6526    */) ;;
6527    *) as_dir=$as_dir/ ;;
6528  esac
6529    for ac_exec_ext in '' $ac_executable_extensions; do
6530  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6531    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6532    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6533    break 2
6534  fi
6535done
6536  done
6537IFS=$as_save_IFS
6538
6539fi
6540fi
6541ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6542if test -n "$ac_ct_OBJDUMP"; then
6543  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6544printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6545else
6546  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6547printf "%s\n" "no" >&6; }
6548fi
6549
6550  if test "x$ac_ct_OBJDUMP" = x; then
6551    OBJDUMP="false"
6552  else
6553    case $cross_compiling:$ac_tool_warned in
6554yes:)
6555{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6556printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6557ac_tool_warned=yes ;;
6558esac
6559    OBJDUMP=$ac_ct_OBJDUMP
6560  fi
6561else
6562  OBJDUMP="$ac_cv_prog_OBJDUMP"
6563fi
6564
6565test -z "$OBJDUMP" && OBJDUMP=objdump
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6576printf %s "checking how to recognize dependent libraries... " >&6; }
6577if test ${lt_cv_deplibs_check_method+y}
6578then :
6579  printf %s "(cached) " >&6
6580else $as_nop
6581  lt_cv_file_magic_cmd='$MAGIC_CMD'
6582lt_cv_file_magic_test_file=
6583lt_cv_deplibs_check_method='unknown'
6584# Need to set the preceding variable on all platforms that support
6585# interlibrary dependencies.
6586# 'none' -- dependencies not supported.
6587# 'unknown' -- same as none, but documents that we really don't know.
6588# 'pass_all' -- all dependencies passed with no checks.
6589# 'test_compile' -- check by making test program.
6590# 'file_magic [[regex]]' -- check by looking for files in library path
6591# that responds to the $file_magic_cmd with a given extended regex.
6592# If you have 'file' or equivalent on your system and you're not sure
6593# whether 'pass_all' will *always* work, you probably want this one.
6594
6595case $host_os in
6596aix[4-9]*)
6597  lt_cv_deplibs_check_method=pass_all
6598  ;;
6599
6600beos*)
6601  lt_cv_deplibs_check_method=pass_all
6602  ;;
6603
6604bsdi[45]*)
6605  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6606  lt_cv_file_magic_cmd='/usr/bin/file -L'
6607  lt_cv_file_magic_test_file=/shlib/libc.so
6608  ;;
6609
6610cygwin*)
6611  # func_win32_libid is a shell function defined in ltmain.sh
6612  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6613  lt_cv_file_magic_cmd='func_win32_libid'
6614  ;;
6615
6616mingw* | pw32*)
6617  # Base MSYS/MinGW do not provide the 'file' command needed by
6618  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6619  # unless we find 'file', for example because we are cross-compiling.
6620  if ( file / ) >/dev/null 2>&1; then
6621    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6622    lt_cv_file_magic_cmd='func_win32_libid'
6623  else
6624    # Keep this pattern in sync with the one in func_win32_libid.
6625    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6626    lt_cv_file_magic_cmd='$OBJDUMP -f'
6627  fi
6628  ;;
6629
6630cegcc*)
6631  # use the weaker test based on 'objdump'. See mingw*.
6632  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6633  lt_cv_file_magic_cmd='$OBJDUMP -f'
6634  ;;
6635
6636darwin* | rhapsody*)
6637  lt_cv_deplibs_check_method=pass_all
6638  ;;
6639
6640freebsd* | dragonfly*)
6641  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6642    case $host_cpu in
6643    i*86 )
6644      # Not sure whether the presence of OpenBSD here was a mistake.
6645      # Let's accept both of them until this is cleared up.
6646      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6647      lt_cv_file_magic_cmd=/usr/bin/file
6648      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6649      ;;
6650    esac
6651  else
6652    lt_cv_deplibs_check_method=pass_all
6653  fi
6654  ;;
6655
6656haiku*)
6657  lt_cv_deplibs_check_method=pass_all
6658  ;;
6659
6660hpux10.20* | hpux11*)
6661  lt_cv_file_magic_cmd=/usr/bin/file
6662  case $host_cpu in
6663  ia64*)
6664    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6665    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6666    ;;
6667  hppa*64*)
6668    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]'
6669    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6670    ;;
6671  *)
6672    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6673    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6674    ;;
6675  esac
6676  ;;
6677
6678interix[3-9]*)
6679  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6680  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6681  ;;
6682
6683irix5* | irix6* | nonstopux*)
6684  case $LD in
6685  *-32|*"-32 ") libmagic=32-bit;;
6686  *-n32|*"-n32 ") libmagic=N32;;
6687  *-64|*"-64 ") libmagic=64-bit;;
6688  *) libmagic=never-match;;
6689  esac
6690  lt_cv_deplibs_check_method=pass_all
6691  ;;
6692
6693# This must be glibc/ELF.
6694linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6695  lt_cv_deplibs_check_method=pass_all
6696  ;;
6697
6698netbsd* | netbsdelf*-gnu)
6699  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6700    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6701  else
6702    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6703  fi
6704  ;;
6705
6706newos6*)
6707  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6708  lt_cv_file_magic_cmd=/usr/bin/file
6709  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6710  ;;
6711
6712*nto* | *qnx*)
6713  lt_cv_deplibs_check_method=pass_all
6714  ;;
6715
6716openbsd* | bitrig*)
6717  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6718    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6719  else
6720    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6721  fi
6722  ;;
6723
6724osf3* | osf4* | osf5*)
6725  lt_cv_deplibs_check_method=pass_all
6726  ;;
6727
6728rdos*)
6729  lt_cv_deplibs_check_method=pass_all
6730  ;;
6731
6732solaris*)
6733  lt_cv_deplibs_check_method=pass_all
6734  ;;
6735
6736sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6737  lt_cv_deplibs_check_method=pass_all
6738  ;;
6739
6740sysv4 | sysv4.3*)
6741  case $host_vendor in
6742  motorola)
6743    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]'
6744    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6745    ;;
6746  ncr)
6747    lt_cv_deplibs_check_method=pass_all
6748    ;;
6749  sequent)
6750    lt_cv_file_magic_cmd='/bin/file'
6751    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6752    ;;
6753  sni)
6754    lt_cv_file_magic_cmd='/bin/file'
6755    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6756    lt_cv_file_magic_test_file=/lib/libc.so
6757    ;;
6758  siemens)
6759    lt_cv_deplibs_check_method=pass_all
6760    ;;
6761  pc)
6762    lt_cv_deplibs_check_method=pass_all
6763    ;;
6764  esac
6765  ;;
6766
6767tpf*)
6768  lt_cv_deplibs_check_method=pass_all
6769  ;;
6770os2*)
6771  lt_cv_deplibs_check_method=pass_all
6772  ;;
6773esac
6774
6775fi
6776{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6777printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6778
6779file_magic_glob=
6780want_nocaseglob=no
6781if test "$build" = "$host"; then
6782  case $host_os in
6783  mingw* | pw32*)
6784    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6785      want_nocaseglob=yes
6786    else
6787      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6788    fi
6789    ;;
6790  esac
6791fi
6792
6793file_magic_cmd=$lt_cv_file_magic_cmd
6794deplibs_check_method=$lt_cv_deplibs_check_method
6795test -z "$deplibs_check_method" && deplibs_check_method=unknown
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818if test -n "$ac_tool_prefix"; then
6819  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6820set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6821{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6822printf %s "checking for $ac_word... " >&6; }
6823if test ${ac_cv_prog_DLLTOOL+y}
6824then :
6825  printf %s "(cached) " >&6
6826else $as_nop
6827  if test -n "$DLLTOOL"; then
6828  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6829else
6830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6831for as_dir in $PATH
6832do
6833  IFS=$as_save_IFS
6834  case $as_dir in #(((
6835    '') as_dir=./ ;;
6836    */) ;;
6837    *) as_dir=$as_dir/ ;;
6838  esac
6839    for ac_exec_ext in '' $ac_executable_extensions; do
6840  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6841    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6842    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6843    break 2
6844  fi
6845done
6846  done
6847IFS=$as_save_IFS
6848
6849fi
6850fi
6851DLLTOOL=$ac_cv_prog_DLLTOOL
6852if test -n "$DLLTOOL"; then
6853  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6854printf "%s\n" "$DLLTOOL" >&6; }
6855else
6856  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6857printf "%s\n" "no" >&6; }
6858fi
6859
6860
6861fi
6862if test -z "$ac_cv_prog_DLLTOOL"; then
6863  ac_ct_DLLTOOL=$DLLTOOL
6864  # Extract the first word of "dlltool", so it can be a program name with args.
6865set dummy dlltool; ac_word=$2
6866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6867printf %s "checking for $ac_word... " >&6; }
6868if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6869then :
6870  printf %s "(cached) " >&6
6871else $as_nop
6872  if test -n "$ac_ct_DLLTOOL"; then
6873  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6874else
6875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6876for as_dir in $PATH
6877do
6878  IFS=$as_save_IFS
6879  case $as_dir in #(((
6880    '') as_dir=./ ;;
6881    */) ;;
6882    *) as_dir=$as_dir/ ;;
6883  esac
6884    for ac_exec_ext in '' $ac_executable_extensions; do
6885  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6886    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6887    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6888    break 2
6889  fi
6890done
6891  done
6892IFS=$as_save_IFS
6893
6894fi
6895fi
6896ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6897if test -n "$ac_ct_DLLTOOL"; then
6898  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6899printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6900else
6901  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6902printf "%s\n" "no" >&6; }
6903fi
6904
6905  if test "x$ac_ct_DLLTOOL" = x; then
6906    DLLTOOL="false"
6907  else
6908    case $cross_compiling:$ac_tool_warned in
6909yes:)
6910{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6911printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6912ac_tool_warned=yes ;;
6913esac
6914    DLLTOOL=$ac_ct_DLLTOOL
6915  fi
6916else
6917  DLLTOOL="$ac_cv_prog_DLLTOOL"
6918fi
6919
6920test -z "$DLLTOOL" && DLLTOOL=dlltool
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6932printf %s "checking how to associate runtime and link libraries... " >&6; }
6933if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6934then :
6935  printf %s "(cached) " >&6
6936else $as_nop
6937  lt_cv_sharedlib_from_linklib_cmd='unknown'
6938
6939case $host_os in
6940cygwin* | mingw* | pw32* | cegcc*)
6941  # two different shell functions defined in ltmain.sh;
6942  # decide which one to use based on capabilities of $DLLTOOL
6943  case `$DLLTOOL --help 2>&1` in
6944  *--identify-strict*)
6945    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6946    ;;
6947  *)
6948    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6949    ;;
6950  esac
6951  ;;
6952*)
6953  # fallback: assume linklib IS sharedlib
6954  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6955  ;;
6956esac
6957
6958fi
6959{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6960printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6961sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6962test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6963
6964
6965
6966
6967
6968
6969
6970if test -n "$ac_tool_prefix"; then
6971  for ac_prog in ar
6972  do
6973    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6974set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6975{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6976printf %s "checking for $ac_word... " >&6; }
6977if test ${ac_cv_prog_AR+y}
6978then :
6979  printf %s "(cached) " >&6
6980else $as_nop
6981  if test -n "$AR"; then
6982  ac_cv_prog_AR="$AR" # Let the user override the test.
6983else
6984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6985for as_dir in $PATH
6986do
6987  IFS=$as_save_IFS
6988  case $as_dir in #(((
6989    '') as_dir=./ ;;
6990    */) ;;
6991    *) as_dir=$as_dir/ ;;
6992  esac
6993    for ac_exec_ext in '' $ac_executable_extensions; do
6994  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6995    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6996    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6997    break 2
6998  fi
6999done
7000  done
7001IFS=$as_save_IFS
7002
7003fi
7004fi
7005AR=$ac_cv_prog_AR
7006if test -n "$AR"; then
7007  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7008printf "%s\n" "$AR" >&6; }
7009else
7010  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7011printf "%s\n" "no" >&6; }
7012fi
7013
7014
7015    test -n "$AR" && break
7016  done
7017fi
7018if test -z "$AR"; then
7019  ac_ct_AR=$AR
7020  for ac_prog in ar
7021do
7022  # Extract the first word of "$ac_prog", so it can be a program name with args.
7023set dummy $ac_prog; ac_word=$2
7024{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7025printf %s "checking for $ac_word... " >&6; }
7026if test ${ac_cv_prog_ac_ct_AR+y}
7027then :
7028  printf %s "(cached) " >&6
7029else $as_nop
7030  if test -n "$ac_ct_AR"; then
7031  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7032else
7033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7034for as_dir in $PATH
7035do
7036  IFS=$as_save_IFS
7037  case $as_dir in #(((
7038    '') as_dir=./ ;;
7039    */) ;;
7040    *) as_dir=$as_dir/ ;;
7041  esac
7042    for ac_exec_ext in '' $ac_executable_extensions; do
7043  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7044    ac_cv_prog_ac_ct_AR="$ac_prog"
7045    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7046    break 2
7047  fi
7048done
7049  done
7050IFS=$as_save_IFS
7051
7052fi
7053fi
7054ac_ct_AR=$ac_cv_prog_ac_ct_AR
7055if test -n "$ac_ct_AR"; then
7056  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7057printf "%s\n" "$ac_ct_AR" >&6; }
7058else
7059  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7060printf "%s\n" "no" >&6; }
7061fi
7062
7063
7064  test -n "$ac_ct_AR" && break
7065done
7066
7067  if test "x$ac_ct_AR" = x; then
7068    AR="false"
7069  else
7070    case $cross_compiling:$ac_tool_warned in
7071yes:)
7072{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7073printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7074ac_tool_warned=yes ;;
7075esac
7076    AR=$ac_ct_AR
7077  fi
7078fi
7079
7080: ${AR=ar}
7081: ${AR_FLAGS=cr}
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7094printf %s "checking for archiver @FILE support... " >&6; }
7095if test ${lt_cv_ar_at_file+y}
7096then :
7097  printf %s "(cached) " >&6
7098else $as_nop
7099  lt_cv_ar_at_file=no
7100   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7101/* end confdefs.h.  */
7102
7103int
7104main (void)
7105{
7106
7107  ;
7108  return 0;
7109}
7110_ACEOF
7111if ac_fn_c_try_compile "$LINENO"
7112then :
7113  echo conftest.$ac_objext > conftest.lst
7114      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7115      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7116  (eval $lt_ar_try) 2>&5
7117  ac_status=$?
7118  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7119  test $ac_status = 0; }
7120      if test 0 -eq "$ac_status"; then
7121	# Ensure the archiver fails upon bogus file names.
7122	rm -f conftest.$ac_objext libconftest.a
7123	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7124  (eval $lt_ar_try) 2>&5
7125  ac_status=$?
7126  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7127  test $ac_status = 0; }
7128	if test 0 -ne "$ac_status"; then
7129          lt_cv_ar_at_file=@
7130        fi
7131      fi
7132      rm -f conftest.* libconftest.a
7133
7134fi
7135rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7136
7137fi
7138{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7139printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7140
7141if test no = "$lt_cv_ar_at_file"; then
7142  archiver_list_spec=
7143else
7144  archiver_list_spec=$lt_cv_ar_at_file
7145fi
7146
7147
7148
7149
7150
7151
7152
7153if test -n "$ac_tool_prefix"; then
7154  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7155set dummy ${ac_tool_prefix}strip; ac_word=$2
7156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7157printf %s "checking for $ac_word... " >&6; }
7158if test ${ac_cv_prog_STRIP+y}
7159then :
7160  printf %s "(cached) " >&6
7161else $as_nop
7162  if test -n "$STRIP"; then
7163  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7164else
7165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7166for as_dir in $PATH
7167do
7168  IFS=$as_save_IFS
7169  case $as_dir in #(((
7170    '') as_dir=./ ;;
7171    */) ;;
7172    *) as_dir=$as_dir/ ;;
7173  esac
7174    for ac_exec_ext in '' $ac_executable_extensions; do
7175  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7176    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7177    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7178    break 2
7179  fi
7180done
7181  done
7182IFS=$as_save_IFS
7183
7184fi
7185fi
7186STRIP=$ac_cv_prog_STRIP
7187if test -n "$STRIP"; then
7188  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7189printf "%s\n" "$STRIP" >&6; }
7190else
7191  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7192printf "%s\n" "no" >&6; }
7193fi
7194
7195
7196fi
7197if test -z "$ac_cv_prog_STRIP"; then
7198  ac_ct_STRIP=$STRIP
7199  # Extract the first word of "strip", so it can be a program name with args.
7200set dummy strip; ac_word=$2
7201{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7202printf %s "checking for $ac_word... " >&6; }
7203if test ${ac_cv_prog_ac_ct_STRIP+y}
7204then :
7205  printf %s "(cached) " >&6
7206else $as_nop
7207  if test -n "$ac_ct_STRIP"; then
7208  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7209else
7210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7211for as_dir in $PATH
7212do
7213  IFS=$as_save_IFS
7214  case $as_dir in #(((
7215    '') as_dir=./ ;;
7216    */) ;;
7217    *) as_dir=$as_dir/ ;;
7218  esac
7219    for ac_exec_ext in '' $ac_executable_extensions; do
7220  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7221    ac_cv_prog_ac_ct_STRIP="strip"
7222    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7223    break 2
7224  fi
7225done
7226  done
7227IFS=$as_save_IFS
7228
7229fi
7230fi
7231ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7232if test -n "$ac_ct_STRIP"; then
7233  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7234printf "%s\n" "$ac_ct_STRIP" >&6; }
7235else
7236  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7237printf "%s\n" "no" >&6; }
7238fi
7239
7240  if test "x$ac_ct_STRIP" = x; then
7241    STRIP=":"
7242  else
7243    case $cross_compiling:$ac_tool_warned in
7244yes:)
7245{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7246printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7247ac_tool_warned=yes ;;
7248esac
7249    STRIP=$ac_ct_STRIP
7250  fi
7251else
7252  STRIP="$ac_cv_prog_STRIP"
7253fi
7254
7255test -z "$STRIP" && STRIP=:
7256
7257
7258
7259
7260
7261
7262if test -n "$ac_tool_prefix"; then
7263  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7264set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7266printf %s "checking for $ac_word... " >&6; }
7267if test ${ac_cv_prog_RANLIB+y}
7268then :
7269  printf %s "(cached) " >&6
7270else $as_nop
7271  if test -n "$RANLIB"; then
7272  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7273else
7274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7275for as_dir in $PATH
7276do
7277  IFS=$as_save_IFS
7278  case $as_dir in #(((
7279    '') as_dir=./ ;;
7280    */) ;;
7281    *) as_dir=$as_dir/ ;;
7282  esac
7283    for ac_exec_ext in '' $ac_executable_extensions; do
7284  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7285    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7286    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7287    break 2
7288  fi
7289done
7290  done
7291IFS=$as_save_IFS
7292
7293fi
7294fi
7295RANLIB=$ac_cv_prog_RANLIB
7296if test -n "$RANLIB"; then
7297  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7298printf "%s\n" "$RANLIB" >&6; }
7299else
7300  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7301printf "%s\n" "no" >&6; }
7302fi
7303
7304
7305fi
7306if test -z "$ac_cv_prog_RANLIB"; then
7307  ac_ct_RANLIB=$RANLIB
7308  # Extract the first word of "ranlib", so it can be a program name with args.
7309set dummy ranlib; ac_word=$2
7310{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7311printf %s "checking for $ac_word... " >&6; }
7312if test ${ac_cv_prog_ac_ct_RANLIB+y}
7313then :
7314  printf %s "(cached) " >&6
7315else $as_nop
7316  if test -n "$ac_ct_RANLIB"; then
7317  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7318else
7319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7320for as_dir in $PATH
7321do
7322  IFS=$as_save_IFS
7323  case $as_dir in #(((
7324    '') as_dir=./ ;;
7325    */) ;;
7326    *) as_dir=$as_dir/ ;;
7327  esac
7328    for ac_exec_ext in '' $ac_executable_extensions; do
7329  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7330    ac_cv_prog_ac_ct_RANLIB="ranlib"
7331    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7332    break 2
7333  fi
7334done
7335  done
7336IFS=$as_save_IFS
7337
7338fi
7339fi
7340ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7341if test -n "$ac_ct_RANLIB"; then
7342  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7343printf "%s\n" "$ac_ct_RANLIB" >&6; }
7344else
7345  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7346printf "%s\n" "no" >&6; }
7347fi
7348
7349  if test "x$ac_ct_RANLIB" = x; then
7350    RANLIB=":"
7351  else
7352    case $cross_compiling:$ac_tool_warned in
7353yes:)
7354{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7355printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7356ac_tool_warned=yes ;;
7357esac
7358    RANLIB=$ac_ct_RANLIB
7359  fi
7360else
7361  RANLIB="$ac_cv_prog_RANLIB"
7362fi
7363
7364test -z "$RANLIB" && RANLIB=:
7365
7366
7367
7368
7369
7370
7371# Determine commands to create old-style static archives.
7372old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7373old_postinstall_cmds='chmod 644 $oldlib'
7374old_postuninstall_cmds=
7375
7376if test -n "$RANLIB"; then
7377  case $host_os in
7378  bitrig* | openbsd*)
7379    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7380    ;;
7381  *)
7382    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7383    ;;
7384  esac
7385  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7386fi
7387
7388case $host_os in
7389  darwin*)
7390    lock_old_archive_extraction=yes ;;
7391  *)
7392    lock_old_archive_extraction=no ;;
7393esac
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433# If no C compiler was specified, use CC.
7434LTCC=${LTCC-"$CC"}
7435
7436# If no C compiler flags were specified, use CFLAGS.
7437LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7438
7439# Allow CC to be a program name with arguments.
7440compiler=$CC
7441
7442
7443# Check for command to grab the raw symbol name followed by C symbol from nm.
7444{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7445printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7446if test ${lt_cv_sys_global_symbol_pipe+y}
7447then :
7448  printf %s "(cached) " >&6
7449else $as_nop
7450
7451# These are sane defaults that work on at least a few old systems.
7452# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7453
7454# Character class describing NM global symbol codes.
7455symcode='[BCDEGRST]'
7456
7457# Regexp to match symbols that can be accessed directly from C.
7458sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7459
7460# Define system-specific variables.
7461case $host_os in
7462aix*)
7463  symcode='[BCDT]'
7464  ;;
7465cygwin* | mingw* | pw32* | cegcc*)
7466  symcode='[ABCDGISTW]'
7467  ;;
7468hpux*)
7469  if test ia64 = "$host_cpu"; then
7470    symcode='[ABCDEGRST]'
7471  fi
7472  ;;
7473irix* | nonstopux*)
7474  symcode='[BCDEGRST]'
7475  ;;
7476osf*)
7477  symcode='[BCDEGQRST]'
7478  ;;
7479solaris*)
7480  symcode='[BDRT]'
7481  ;;
7482sco3.2v5*)
7483  symcode='[DT]'
7484  ;;
7485sysv4.2uw2*)
7486  symcode='[DT]'
7487  ;;
7488sysv5* | sco5v6* | unixware* | OpenUNIX*)
7489  symcode='[ABDT]'
7490  ;;
7491sysv4)
7492  symcode='[DFNSTU]'
7493  ;;
7494esac
7495
7496# If we're using GNU nm, then use its standard symbol codes.
7497case `$NM -V 2>&1` in
7498*GNU* | *'with BFD'*)
7499  symcode='[ABCDGIRSTW]' ;;
7500esac
7501
7502if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7503  # Gets list of data symbols to import.
7504  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7505  # Adjust the below global symbol transforms to fixup imported variables.
7506  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7507  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7508  lt_c_name_lib_hook="\
7509  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7510  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7511else
7512  # Disable hooks by default.
7513  lt_cv_sys_global_symbol_to_import=
7514  lt_cdecl_hook=
7515  lt_c_name_hook=
7516  lt_c_name_lib_hook=
7517fi
7518
7519# Transform an extracted symbol line into a proper C declaration.
7520# Some systems (esp. on ia64) link data and code symbols differently,
7521# so use this general approach.
7522lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7523$lt_cdecl_hook\
7524" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7525" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7526
7527# Transform an extracted symbol line into symbol name and symbol address
7528lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7529$lt_c_name_hook\
7530" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7531" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7532
7533# Transform an extracted symbol line into symbol name with lib prefix and
7534# symbol address.
7535lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7536$lt_c_name_lib_hook\
7537" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7538" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7539" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7540
7541# Handle CRLF in mingw tool chain
7542opt_cr=
7543case $build_os in
7544mingw*)
7545  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7546  ;;
7547esac
7548
7549# Try without a prefix underscore, then with it.
7550for ac_symprfx in "" "_"; do
7551
7552  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7553  symxfrm="\\1 $ac_symprfx\\2 \\2"
7554
7555  # Write the raw and C identifiers.
7556  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7557    # Fake it for dumpbin and say T for any non-static function,
7558    # D for any global variable and I for any imported variable.
7559    # Also find C++ and __fastcall symbols from MSVC++,
7560    # which start with @ or ?.
7561    lt_cv_sys_global_symbol_pipe="$AWK '"\
7562"     {last_section=section; section=\$ 3};"\
7563"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7564"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7565"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7566"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7567"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7568"     \$ 0!~/External *\|/{next};"\
7569"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7570"     {if(hide[section]) next};"\
7571"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7572"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7573"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7574"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7575"     ' prfx=^$ac_symprfx"
7576  else
7577    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7578  fi
7579  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7580
7581  # Check to see that the pipe works correctly.
7582  pipe_works=no
7583
7584  rm -f conftest*
7585  cat > conftest.$ac_ext <<_LT_EOF
7586#ifdef __cplusplus
7587extern "C" {
7588#endif
7589char nm_test_var;
7590void nm_test_func(void);
7591void nm_test_func(void){}
7592#ifdef __cplusplus
7593}
7594#endif
7595int main(){nm_test_var='a';nm_test_func();return(0);}
7596_LT_EOF
7597
7598  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7599  (eval $ac_compile) 2>&5
7600  ac_status=$?
7601  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7602  test $ac_status = 0; }; then
7603    # Now try to grab the symbols.
7604    nlist=conftest.nm
7605    $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7606    if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7607      # Try sorting and uniquifying the output.
7608      if sort "$nlist" | uniq > "$nlist"T; then
7609	mv -f "$nlist"T "$nlist"
7610      else
7611	rm -f "$nlist"T
7612      fi
7613
7614      # Make sure that we snagged all the symbols we need.
7615      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7616	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7617	  cat <<_LT_EOF > conftest.$ac_ext
7618/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7619#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7620/* DATA imports from DLLs on WIN32 can't be const, because runtime
7621   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7622# define LT_DLSYM_CONST
7623#elif defined __osf__
7624/* This system does not cope well with relocations in const data.  */
7625# define LT_DLSYM_CONST
7626#else
7627# define LT_DLSYM_CONST const
7628#endif
7629
7630#ifdef __cplusplus
7631extern "C" {
7632#endif
7633
7634_LT_EOF
7635	  # Now generate the symbol file.
7636	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7637
7638	  cat <<_LT_EOF >> conftest.$ac_ext
7639
7640/* The mapping between symbol names and symbols.  */
7641LT_DLSYM_CONST struct {
7642  const char *name;
7643  void       *address;
7644}
7645lt__PROGRAM__LTX_preloaded_symbols[] =
7646{
7647  { "@PROGRAM@", (void *) 0 },
7648_LT_EOF
7649	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7650	  cat <<\_LT_EOF >> conftest.$ac_ext
7651  {0, (void *) 0}
7652};
7653
7654/* This works around a problem in FreeBSD linker */
7655#ifdef FREEBSD_WORKAROUND
7656static const void *lt_preloaded_setup() {
7657  return lt__PROGRAM__LTX_preloaded_symbols;
7658}
7659#endif
7660
7661#ifdef __cplusplus
7662}
7663#endif
7664_LT_EOF
7665	  # Now try linking the two files.
7666	  mv conftest.$ac_objext conftstm.$ac_objext
7667	  lt_globsym_save_LIBS=$LIBS
7668	  lt_globsym_save_CFLAGS=$CFLAGS
7669	  LIBS=conftstm.$ac_objext
7670	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7671	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7672  (eval $ac_link) 2>&5
7673  ac_status=$?
7674  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7675  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7676	    pipe_works=yes
7677	  fi
7678	  LIBS=$lt_globsym_save_LIBS
7679	  CFLAGS=$lt_globsym_save_CFLAGS
7680	else
7681	  echo "cannot find nm_test_func in $nlist" >&5
7682	fi
7683      else
7684	echo "cannot find nm_test_var in $nlist" >&5
7685      fi
7686    else
7687      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7688    fi
7689  else
7690    echo "$progname: failed program was:" >&5
7691    cat conftest.$ac_ext >&5
7692  fi
7693  rm -rf conftest* conftst*
7694
7695  # Do not use the global_symbol_pipe unless it works.
7696  if test yes = "$pipe_works"; then
7697    break
7698  else
7699    lt_cv_sys_global_symbol_pipe=
7700  fi
7701done
7702
7703fi
7704
7705if test -z "$lt_cv_sys_global_symbol_pipe"; then
7706  lt_cv_sys_global_symbol_to_cdecl=
7707fi
7708if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7709  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7710printf "%s\n" "failed" >&6; }
7711else
7712  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7713printf "%s\n" "ok" >&6; }
7714fi
7715
7716# Response file support.
7717if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7718  nm_file_list_spec='@'
7719elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7720  nm_file_list_spec='@'
7721fi
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7760printf %s "checking for sysroot... " >&6; }
7761
7762# Check whether --with-sysroot was given.
7763if test ${with_sysroot+y}
7764then :
7765  withval=$with_sysroot;
7766else $as_nop
7767  with_sysroot=no
7768fi
7769
7770
7771lt_sysroot=
7772case $with_sysroot in #(
7773 yes)
7774   if test yes = "$GCC"; then
7775     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7776   fi
7777   ;; #(
7778 /*)
7779   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7780   ;; #(
7781 no|'')
7782   ;; #(
7783 *)
7784   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7785printf "%s\n" "$with_sysroot" >&6; }
7786   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7787   ;;
7788esac
7789
7790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7791printf "%s\n" "${lt_sysroot:-no}" >&6; }
7792
7793
7794
7795
7796
7797{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7798printf %s "checking for a working dd... " >&6; }
7799if test ${ac_cv_path_lt_DD+y}
7800then :
7801  printf %s "(cached) " >&6
7802else $as_nop
7803  printf 0123456789abcdef0123456789abcdef >conftest.i
7804cat conftest.i conftest.i >conftest2.i
7805: ${lt_DD:=$DD}
7806if test -z "$lt_DD"; then
7807  ac_path_lt_DD_found=false
7808  # Loop through the user's path and test for each of PROGNAME-LIST
7809  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7810for as_dir in $PATH
7811do
7812  IFS=$as_save_IFS
7813  case $as_dir in #(((
7814    '') as_dir=./ ;;
7815    */) ;;
7816    *) as_dir=$as_dir/ ;;
7817  esac
7818    for ac_prog in dd
7819   do
7820    for ac_exec_ext in '' $ac_executable_extensions; do
7821      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7822      as_fn_executable_p "$ac_path_lt_DD" || continue
7823if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7824  cmp -s conftest.i conftest.out \
7825  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7826fi
7827      $ac_path_lt_DD_found && break 3
7828    done
7829  done
7830  done
7831IFS=$as_save_IFS
7832  if test -z "$ac_cv_path_lt_DD"; then
7833    :
7834  fi
7835else
7836  ac_cv_path_lt_DD=$lt_DD
7837fi
7838
7839rm -f conftest.i conftest2.i conftest.out
7840fi
7841{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7842printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7843
7844
7845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7846printf %s "checking how to truncate binary pipes... " >&6; }
7847if test ${lt_cv_truncate_bin+y}
7848then :
7849  printf %s "(cached) " >&6
7850else $as_nop
7851  printf 0123456789abcdef0123456789abcdef >conftest.i
7852cat conftest.i conftest.i >conftest2.i
7853lt_cv_truncate_bin=
7854if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7855  cmp -s conftest.i conftest.out \
7856  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7857fi
7858rm -f conftest.i conftest2.i conftest.out
7859test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7860fi
7861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7862printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7863
7864
7865
7866
7867
7868
7869
7870# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7871func_cc_basename ()
7872{
7873    for cc_temp in $*""; do
7874      case $cc_temp in
7875        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7876        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7877        \-*) ;;
7878        *) break;;
7879      esac
7880    done
7881    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7882}
7883
7884# Check whether --enable-libtool-lock was given.
7885if test ${enable_libtool_lock+y}
7886then :
7887  enableval=$enable_libtool_lock;
7888fi
7889
7890test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7891
7892# Some flags need to be propagated to the compiler or linker for good
7893# libtool support.
7894case $host in
7895ia64-*-hpux*)
7896  # Find out what ABI is being produced by ac_compile, and set mode
7897  # options accordingly.
7898  echo 'int i;' > conftest.$ac_ext
7899  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7900  (eval $ac_compile) 2>&5
7901  ac_status=$?
7902  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7903  test $ac_status = 0; }; then
7904    case `/usr/bin/file conftest.$ac_objext` in
7905      *ELF-32*)
7906	HPUX_IA64_MODE=32
7907	;;
7908      *ELF-64*)
7909	HPUX_IA64_MODE=64
7910	;;
7911    esac
7912  fi
7913  rm -rf conftest*
7914  ;;
7915*-*-irix6*)
7916  # Find out what ABI is being produced by ac_compile, and set linker
7917  # options accordingly.
7918  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7919  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7920  (eval $ac_compile) 2>&5
7921  ac_status=$?
7922  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7923  test $ac_status = 0; }; then
7924    if test yes = "$lt_cv_prog_gnu_ld"; then
7925      case `/usr/bin/file conftest.$ac_objext` in
7926	*32-bit*)
7927	  LD="${LD-ld} -melf32bsmip"
7928	  ;;
7929	*N32*)
7930	  LD="${LD-ld} -melf32bmipn32"
7931	  ;;
7932	*64-bit*)
7933	  LD="${LD-ld} -melf64bmip"
7934	;;
7935      esac
7936    else
7937      case `/usr/bin/file conftest.$ac_objext` in
7938	*32-bit*)
7939	  LD="${LD-ld} -32"
7940	  ;;
7941	*N32*)
7942	  LD="${LD-ld} -n32"
7943	  ;;
7944	*64-bit*)
7945	  LD="${LD-ld} -64"
7946	  ;;
7947      esac
7948    fi
7949  fi
7950  rm -rf conftest*
7951  ;;
7952
7953mips64*-*linux*)
7954  # Find out what ABI is being produced by ac_compile, and set linker
7955  # options accordingly.
7956  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7957  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7958  (eval $ac_compile) 2>&5
7959  ac_status=$?
7960  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7961  test $ac_status = 0; }; then
7962    emul=elf
7963    case `/usr/bin/file conftest.$ac_objext` in
7964      *32-bit*)
7965	emul="${emul}32"
7966	;;
7967      *64-bit*)
7968	emul="${emul}64"
7969	;;
7970    esac
7971    case `/usr/bin/file conftest.$ac_objext` in
7972      *MSB*)
7973	emul="${emul}btsmip"
7974	;;
7975      *LSB*)
7976	emul="${emul}ltsmip"
7977	;;
7978    esac
7979    case `/usr/bin/file conftest.$ac_objext` in
7980      *N32*)
7981	emul="${emul}n32"
7982	;;
7983    esac
7984    LD="${LD-ld} -m $emul"
7985  fi
7986  rm -rf conftest*
7987  ;;
7988
7989x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7990s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7991  # Find out what ABI is being produced by ac_compile, and set linker
7992  # options accordingly.  Note that the listed cases only cover the
7993  # situations where additional linker options are needed (such as when
7994  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7995  # vice versa); the common cases where no linker options are needed do
7996  # not appear in the list.
7997  echo 'int i;' > conftest.$ac_ext
7998  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7999  (eval $ac_compile) 2>&5
8000  ac_status=$?
8001  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8002  test $ac_status = 0; }; then
8003    case `/usr/bin/file conftest.o` in
8004      *32-bit*)
8005	case $host in
8006	  x86_64-*kfreebsd*-gnu)
8007	    LD="${LD-ld} -m elf_i386_fbsd"
8008	    ;;
8009	  x86_64-*linux*)
8010	    case `/usr/bin/file conftest.o` in
8011	      *x86-64*)
8012		LD="${LD-ld} -m elf32_x86_64"
8013		;;
8014	      *)
8015		LD="${LD-ld} -m elf_i386"
8016		;;
8017	    esac
8018	    ;;
8019	  powerpc64le-*linux*)
8020	    LD="${LD-ld} -m elf32lppclinux"
8021	    ;;
8022	  powerpc64-*linux*)
8023	    LD="${LD-ld} -m elf32ppclinux"
8024	    ;;
8025	  s390x-*linux*)
8026	    LD="${LD-ld} -m elf_s390"
8027	    ;;
8028	  sparc64-*linux*)
8029	    LD="${LD-ld} -m elf32_sparc"
8030	    ;;
8031	esac
8032	;;
8033      *64-bit*)
8034	case $host in
8035	  x86_64-*kfreebsd*-gnu)
8036	    LD="${LD-ld} -m elf_x86_64_fbsd"
8037	    ;;
8038	  x86_64-*linux*)
8039	    LD="${LD-ld} -m elf_x86_64"
8040	    ;;
8041	  powerpcle-*linux*)
8042	    LD="${LD-ld} -m elf64lppc"
8043	    ;;
8044	  powerpc-*linux*)
8045	    LD="${LD-ld} -m elf64ppc"
8046	    ;;
8047	  s390*-*linux*|s390*-*tpf*)
8048	    LD="${LD-ld} -m elf64_s390"
8049	    ;;
8050	  sparc*-*linux*)
8051	    LD="${LD-ld} -m elf64_sparc"
8052	    ;;
8053	esac
8054	;;
8055    esac
8056  fi
8057  rm -rf conftest*
8058  ;;
8059
8060*-*-sco3.2v5*)
8061  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8062  SAVE_CFLAGS=$CFLAGS
8063  CFLAGS="$CFLAGS -belf"
8064  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8065printf %s "checking whether the C compiler needs -belf... " >&6; }
8066if test ${lt_cv_cc_needs_belf+y}
8067then :
8068  printf %s "(cached) " >&6
8069else $as_nop
8070  ac_ext=c
8071ac_cpp='$CPP $CPPFLAGS'
8072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8074ac_compiler_gnu=$ac_cv_c_compiler_gnu
8075
8076     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8077/* end confdefs.h.  */
8078
8079int
8080main (void)
8081{
8082
8083  ;
8084  return 0;
8085}
8086_ACEOF
8087if ac_fn_c_try_link "$LINENO"
8088then :
8089  lt_cv_cc_needs_belf=yes
8090else $as_nop
8091  lt_cv_cc_needs_belf=no
8092fi
8093rm -f core conftest.err conftest.$ac_objext conftest.beam \
8094    conftest$ac_exeext conftest.$ac_ext
8095     ac_ext=c
8096ac_cpp='$CPP $CPPFLAGS'
8097ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8098ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8099ac_compiler_gnu=$ac_cv_c_compiler_gnu
8100
8101fi
8102{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8103printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8104  if test yes != "$lt_cv_cc_needs_belf"; then
8105    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8106    CFLAGS=$SAVE_CFLAGS
8107  fi
8108  ;;
8109*-*solaris*)
8110  # Find out what ABI is being produced by ac_compile, and set linker
8111  # options accordingly.
8112  echo 'int i;' > conftest.$ac_ext
8113  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8114  (eval $ac_compile) 2>&5
8115  ac_status=$?
8116  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8117  test $ac_status = 0; }; then
8118    case `/usr/bin/file conftest.o` in
8119    *64-bit*)
8120      case $lt_cv_prog_gnu_ld in
8121      yes*)
8122        case $host in
8123        i?86-*-solaris*|x86_64-*-solaris*)
8124          LD="${LD-ld} -m elf_x86_64"
8125          ;;
8126        sparc*-*-solaris*)
8127          LD="${LD-ld} -m elf64_sparc"
8128          ;;
8129        esac
8130        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8131        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8132          LD=${LD-ld}_sol2
8133        fi
8134        ;;
8135      *)
8136	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8137	  LD="${LD-ld} -64"
8138	fi
8139	;;
8140      esac
8141      ;;
8142    esac
8143  fi
8144  rm -rf conftest*
8145  ;;
8146esac
8147
8148need_locks=$enable_libtool_lock
8149
8150if test -n "$ac_tool_prefix"; then
8151  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8152set dummy ${ac_tool_prefix}mt; ac_word=$2
8153{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8154printf %s "checking for $ac_word... " >&6; }
8155if test ${ac_cv_prog_MANIFEST_TOOL+y}
8156then :
8157  printf %s "(cached) " >&6
8158else $as_nop
8159  if test -n "$MANIFEST_TOOL"; then
8160  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8161else
8162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8163for as_dir in $PATH
8164do
8165  IFS=$as_save_IFS
8166  case $as_dir in #(((
8167    '') as_dir=./ ;;
8168    */) ;;
8169    *) as_dir=$as_dir/ ;;
8170  esac
8171    for ac_exec_ext in '' $ac_executable_extensions; do
8172  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8173    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8174    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8175    break 2
8176  fi
8177done
8178  done
8179IFS=$as_save_IFS
8180
8181fi
8182fi
8183MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8184if test -n "$MANIFEST_TOOL"; then
8185  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8186printf "%s\n" "$MANIFEST_TOOL" >&6; }
8187else
8188  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8189printf "%s\n" "no" >&6; }
8190fi
8191
8192
8193fi
8194if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8195  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8196  # Extract the first word of "mt", so it can be a program name with args.
8197set dummy mt; ac_word=$2
8198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8199printf %s "checking for $ac_word... " >&6; }
8200if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8201then :
8202  printf %s "(cached) " >&6
8203else $as_nop
8204  if test -n "$ac_ct_MANIFEST_TOOL"; then
8205  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8206else
8207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8208for as_dir in $PATH
8209do
8210  IFS=$as_save_IFS
8211  case $as_dir in #(((
8212    '') as_dir=./ ;;
8213    */) ;;
8214    *) as_dir=$as_dir/ ;;
8215  esac
8216    for ac_exec_ext in '' $ac_executable_extensions; do
8217  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8218    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8219    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8220    break 2
8221  fi
8222done
8223  done
8224IFS=$as_save_IFS
8225
8226fi
8227fi
8228ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8229if test -n "$ac_ct_MANIFEST_TOOL"; then
8230  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8231printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8232else
8233  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8234printf "%s\n" "no" >&6; }
8235fi
8236
8237  if test "x$ac_ct_MANIFEST_TOOL" = x; then
8238    MANIFEST_TOOL=":"
8239  else
8240    case $cross_compiling:$ac_tool_warned in
8241yes:)
8242{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8243printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8244ac_tool_warned=yes ;;
8245esac
8246    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8247  fi
8248else
8249  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8250fi
8251
8252test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8254printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8255if test ${lt_cv_path_mainfest_tool+y}
8256then :
8257  printf %s "(cached) " >&6
8258else $as_nop
8259  lt_cv_path_mainfest_tool=no
8260  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8261  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8262  cat conftest.err >&5
8263  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8264    lt_cv_path_mainfest_tool=yes
8265  fi
8266  rm -f conftest*
8267fi
8268{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8269printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
8270if test yes != "$lt_cv_path_mainfest_tool"; then
8271  MANIFEST_TOOL=:
8272fi
8273
8274
8275
8276
8277
8278
8279  case $host_os in
8280    rhapsody* | darwin*)
8281    if test -n "$ac_tool_prefix"; then
8282  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8283set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8285printf %s "checking for $ac_word... " >&6; }
8286if test ${ac_cv_prog_DSYMUTIL+y}
8287then :
8288  printf %s "(cached) " >&6
8289else $as_nop
8290  if test -n "$DSYMUTIL"; then
8291  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8292else
8293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8294for as_dir in $PATH
8295do
8296  IFS=$as_save_IFS
8297  case $as_dir in #(((
8298    '') as_dir=./ ;;
8299    */) ;;
8300    *) as_dir=$as_dir/ ;;
8301  esac
8302    for ac_exec_ext in '' $ac_executable_extensions; do
8303  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8304    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8305    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8306    break 2
8307  fi
8308done
8309  done
8310IFS=$as_save_IFS
8311
8312fi
8313fi
8314DSYMUTIL=$ac_cv_prog_DSYMUTIL
8315if test -n "$DSYMUTIL"; then
8316  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8317printf "%s\n" "$DSYMUTIL" >&6; }
8318else
8319  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8320printf "%s\n" "no" >&6; }
8321fi
8322
8323
8324fi
8325if test -z "$ac_cv_prog_DSYMUTIL"; then
8326  ac_ct_DSYMUTIL=$DSYMUTIL
8327  # Extract the first word of "dsymutil", so it can be a program name with args.
8328set dummy dsymutil; ac_word=$2
8329{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8330printf %s "checking for $ac_word... " >&6; }
8331if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8332then :
8333  printf %s "(cached) " >&6
8334else $as_nop
8335  if test -n "$ac_ct_DSYMUTIL"; then
8336  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8337else
8338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8339for as_dir in $PATH
8340do
8341  IFS=$as_save_IFS
8342  case $as_dir in #(((
8343    '') as_dir=./ ;;
8344    */) ;;
8345    *) as_dir=$as_dir/ ;;
8346  esac
8347    for ac_exec_ext in '' $ac_executable_extensions; do
8348  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8349    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8350    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8351    break 2
8352  fi
8353done
8354  done
8355IFS=$as_save_IFS
8356
8357fi
8358fi
8359ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8360if test -n "$ac_ct_DSYMUTIL"; then
8361  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8362printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8363else
8364  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8365printf "%s\n" "no" >&6; }
8366fi
8367
8368  if test "x$ac_ct_DSYMUTIL" = x; then
8369    DSYMUTIL=":"
8370  else
8371    case $cross_compiling:$ac_tool_warned in
8372yes:)
8373{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8374printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8375ac_tool_warned=yes ;;
8376esac
8377    DSYMUTIL=$ac_ct_DSYMUTIL
8378  fi
8379else
8380  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8381fi
8382
8383    if test -n "$ac_tool_prefix"; then
8384  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8385set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8386{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8387printf %s "checking for $ac_word... " >&6; }
8388if test ${ac_cv_prog_NMEDIT+y}
8389then :
8390  printf %s "(cached) " >&6
8391else $as_nop
8392  if test -n "$NMEDIT"; then
8393  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8394else
8395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8396for as_dir in $PATH
8397do
8398  IFS=$as_save_IFS
8399  case $as_dir in #(((
8400    '') as_dir=./ ;;
8401    */) ;;
8402    *) as_dir=$as_dir/ ;;
8403  esac
8404    for ac_exec_ext in '' $ac_executable_extensions; do
8405  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8406    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8407    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8408    break 2
8409  fi
8410done
8411  done
8412IFS=$as_save_IFS
8413
8414fi
8415fi
8416NMEDIT=$ac_cv_prog_NMEDIT
8417if test -n "$NMEDIT"; then
8418  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8419printf "%s\n" "$NMEDIT" >&6; }
8420else
8421  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8422printf "%s\n" "no" >&6; }
8423fi
8424
8425
8426fi
8427if test -z "$ac_cv_prog_NMEDIT"; then
8428  ac_ct_NMEDIT=$NMEDIT
8429  # Extract the first word of "nmedit", so it can be a program name with args.
8430set dummy nmedit; ac_word=$2
8431{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8432printf %s "checking for $ac_word... " >&6; }
8433if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8434then :
8435  printf %s "(cached) " >&6
8436else $as_nop
8437  if test -n "$ac_ct_NMEDIT"; then
8438  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8439else
8440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8441for as_dir in $PATH
8442do
8443  IFS=$as_save_IFS
8444  case $as_dir in #(((
8445    '') as_dir=./ ;;
8446    */) ;;
8447    *) as_dir=$as_dir/ ;;
8448  esac
8449    for ac_exec_ext in '' $ac_executable_extensions; do
8450  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8451    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8452    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8453    break 2
8454  fi
8455done
8456  done
8457IFS=$as_save_IFS
8458
8459fi
8460fi
8461ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8462if test -n "$ac_ct_NMEDIT"; then
8463  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8464printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8465else
8466  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8467printf "%s\n" "no" >&6; }
8468fi
8469
8470  if test "x$ac_ct_NMEDIT" = x; then
8471    NMEDIT=":"
8472  else
8473    case $cross_compiling:$ac_tool_warned in
8474yes:)
8475{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8476printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8477ac_tool_warned=yes ;;
8478esac
8479    NMEDIT=$ac_ct_NMEDIT
8480  fi
8481else
8482  NMEDIT="$ac_cv_prog_NMEDIT"
8483fi
8484
8485    if test -n "$ac_tool_prefix"; then
8486  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8487set dummy ${ac_tool_prefix}lipo; ac_word=$2
8488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8489printf %s "checking for $ac_word... " >&6; }
8490if test ${ac_cv_prog_LIPO+y}
8491then :
8492  printf %s "(cached) " >&6
8493else $as_nop
8494  if test -n "$LIPO"; then
8495  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8496else
8497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8498for as_dir in $PATH
8499do
8500  IFS=$as_save_IFS
8501  case $as_dir in #(((
8502    '') as_dir=./ ;;
8503    */) ;;
8504    *) as_dir=$as_dir/ ;;
8505  esac
8506    for ac_exec_ext in '' $ac_executable_extensions; do
8507  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8508    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8509    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8510    break 2
8511  fi
8512done
8513  done
8514IFS=$as_save_IFS
8515
8516fi
8517fi
8518LIPO=$ac_cv_prog_LIPO
8519if test -n "$LIPO"; then
8520  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8521printf "%s\n" "$LIPO" >&6; }
8522else
8523  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8524printf "%s\n" "no" >&6; }
8525fi
8526
8527
8528fi
8529if test -z "$ac_cv_prog_LIPO"; then
8530  ac_ct_LIPO=$LIPO
8531  # Extract the first word of "lipo", so it can be a program name with args.
8532set dummy lipo; ac_word=$2
8533{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8534printf %s "checking for $ac_word... " >&6; }
8535if test ${ac_cv_prog_ac_ct_LIPO+y}
8536then :
8537  printf %s "(cached) " >&6
8538else $as_nop
8539  if test -n "$ac_ct_LIPO"; then
8540  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8541else
8542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8543for as_dir in $PATH
8544do
8545  IFS=$as_save_IFS
8546  case $as_dir in #(((
8547    '') as_dir=./ ;;
8548    */) ;;
8549    *) as_dir=$as_dir/ ;;
8550  esac
8551    for ac_exec_ext in '' $ac_executable_extensions; do
8552  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8553    ac_cv_prog_ac_ct_LIPO="lipo"
8554    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8555    break 2
8556  fi
8557done
8558  done
8559IFS=$as_save_IFS
8560
8561fi
8562fi
8563ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8564if test -n "$ac_ct_LIPO"; then
8565  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8566printf "%s\n" "$ac_ct_LIPO" >&6; }
8567else
8568  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8569printf "%s\n" "no" >&6; }
8570fi
8571
8572  if test "x$ac_ct_LIPO" = x; then
8573    LIPO=":"
8574  else
8575    case $cross_compiling:$ac_tool_warned in
8576yes:)
8577{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8578printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8579ac_tool_warned=yes ;;
8580esac
8581    LIPO=$ac_ct_LIPO
8582  fi
8583else
8584  LIPO="$ac_cv_prog_LIPO"
8585fi
8586
8587    if test -n "$ac_tool_prefix"; then
8588  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8589set dummy ${ac_tool_prefix}otool; ac_word=$2
8590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8591printf %s "checking for $ac_word... " >&6; }
8592if test ${ac_cv_prog_OTOOL+y}
8593then :
8594  printf %s "(cached) " >&6
8595else $as_nop
8596  if test -n "$OTOOL"; then
8597  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8598else
8599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8600for as_dir in $PATH
8601do
8602  IFS=$as_save_IFS
8603  case $as_dir in #(((
8604    '') as_dir=./ ;;
8605    */) ;;
8606    *) as_dir=$as_dir/ ;;
8607  esac
8608    for ac_exec_ext in '' $ac_executable_extensions; do
8609  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8610    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8611    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8612    break 2
8613  fi
8614done
8615  done
8616IFS=$as_save_IFS
8617
8618fi
8619fi
8620OTOOL=$ac_cv_prog_OTOOL
8621if test -n "$OTOOL"; then
8622  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8623printf "%s\n" "$OTOOL" >&6; }
8624else
8625  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8626printf "%s\n" "no" >&6; }
8627fi
8628
8629
8630fi
8631if test -z "$ac_cv_prog_OTOOL"; then
8632  ac_ct_OTOOL=$OTOOL
8633  # Extract the first word of "otool", so it can be a program name with args.
8634set dummy otool; ac_word=$2
8635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8636printf %s "checking for $ac_word... " >&6; }
8637if test ${ac_cv_prog_ac_ct_OTOOL+y}
8638then :
8639  printf %s "(cached) " >&6
8640else $as_nop
8641  if test -n "$ac_ct_OTOOL"; then
8642  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8643else
8644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8645for as_dir in $PATH
8646do
8647  IFS=$as_save_IFS
8648  case $as_dir in #(((
8649    '') as_dir=./ ;;
8650    */) ;;
8651    *) as_dir=$as_dir/ ;;
8652  esac
8653    for ac_exec_ext in '' $ac_executable_extensions; do
8654  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8655    ac_cv_prog_ac_ct_OTOOL="otool"
8656    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8657    break 2
8658  fi
8659done
8660  done
8661IFS=$as_save_IFS
8662
8663fi
8664fi
8665ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8666if test -n "$ac_ct_OTOOL"; then
8667  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8668printf "%s\n" "$ac_ct_OTOOL" >&6; }
8669else
8670  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8671printf "%s\n" "no" >&6; }
8672fi
8673
8674  if test "x$ac_ct_OTOOL" = x; then
8675    OTOOL=":"
8676  else
8677    case $cross_compiling:$ac_tool_warned in
8678yes:)
8679{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8680printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8681ac_tool_warned=yes ;;
8682esac
8683    OTOOL=$ac_ct_OTOOL
8684  fi
8685else
8686  OTOOL="$ac_cv_prog_OTOOL"
8687fi
8688
8689    if test -n "$ac_tool_prefix"; then
8690  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8691set dummy ${ac_tool_prefix}otool64; ac_word=$2
8692{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8693printf %s "checking for $ac_word... " >&6; }
8694if test ${ac_cv_prog_OTOOL64+y}
8695then :
8696  printf %s "(cached) " >&6
8697else $as_nop
8698  if test -n "$OTOOL64"; then
8699  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8700else
8701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8702for as_dir in $PATH
8703do
8704  IFS=$as_save_IFS
8705  case $as_dir in #(((
8706    '') as_dir=./ ;;
8707    */) ;;
8708    *) as_dir=$as_dir/ ;;
8709  esac
8710    for ac_exec_ext in '' $ac_executable_extensions; do
8711  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8712    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8713    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8714    break 2
8715  fi
8716done
8717  done
8718IFS=$as_save_IFS
8719
8720fi
8721fi
8722OTOOL64=$ac_cv_prog_OTOOL64
8723if test -n "$OTOOL64"; then
8724  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8725printf "%s\n" "$OTOOL64" >&6; }
8726else
8727  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8728printf "%s\n" "no" >&6; }
8729fi
8730
8731
8732fi
8733if test -z "$ac_cv_prog_OTOOL64"; then
8734  ac_ct_OTOOL64=$OTOOL64
8735  # Extract the first word of "otool64", so it can be a program name with args.
8736set dummy otool64; ac_word=$2
8737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8738printf %s "checking for $ac_word... " >&6; }
8739if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8740then :
8741  printf %s "(cached) " >&6
8742else $as_nop
8743  if test -n "$ac_ct_OTOOL64"; then
8744  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8745else
8746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8747for as_dir in $PATH
8748do
8749  IFS=$as_save_IFS
8750  case $as_dir in #(((
8751    '') as_dir=./ ;;
8752    */) ;;
8753    *) as_dir=$as_dir/ ;;
8754  esac
8755    for ac_exec_ext in '' $ac_executable_extensions; do
8756  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8757    ac_cv_prog_ac_ct_OTOOL64="otool64"
8758    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8759    break 2
8760  fi
8761done
8762  done
8763IFS=$as_save_IFS
8764
8765fi
8766fi
8767ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8768if test -n "$ac_ct_OTOOL64"; then
8769  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8770printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8771else
8772  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8773printf "%s\n" "no" >&6; }
8774fi
8775
8776  if test "x$ac_ct_OTOOL64" = x; then
8777    OTOOL64=":"
8778  else
8779    case $cross_compiling:$ac_tool_warned in
8780yes:)
8781{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8782printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8783ac_tool_warned=yes ;;
8784esac
8785    OTOOL64=$ac_ct_OTOOL64
8786  fi
8787else
8788  OTOOL64="$ac_cv_prog_OTOOL64"
8789fi
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8818printf %s "checking for -single_module linker flag... " >&6; }
8819if test ${lt_cv_apple_cc_single_mod+y}
8820then :
8821  printf %s "(cached) " >&6
8822else $as_nop
8823  lt_cv_apple_cc_single_mod=no
8824      if test -z "$LT_MULTI_MODULE"; then
8825	# By default we will add the -single_module flag. You can override
8826	# by either setting the environment variable LT_MULTI_MODULE
8827	# non-empty at configure time, or by adding -multi_module to the
8828	# link flags.
8829	rm -rf libconftest.dylib*
8830	echo "int foo(void){return 1;}" > conftest.c
8831	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8832-dynamiclib -Wl,-single_module conftest.c" >&5
8833	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8834	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8835        _lt_result=$?
8836	# If there is a non-empty error log, and "single_module"
8837	# appears in it, assume the flag caused a linker warning
8838        if test -s conftest.err && $GREP single_module conftest.err; then
8839	  cat conftest.err >&5
8840	# Otherwise, if the output was created with a 0 exit code from
8841	# the compiler, it worked.
8842	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8843	  lt_cv_apple_cc_single_mod=yes
8844	else
8845	  cat conftest.err >&5
8846	fi
8847	rm -rf libconftest.dylib*
8848	rm -f conftest.*
8849      fi
8850fi
8851{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8852printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8853
8854    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8855printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8856if test ${lt_cv_ld_exported_symbols_list+y}
8857then :
8858  printf %s "(cached) " >&6
8859else $as_nop
8860  lt_cv_ld_exported_symbols_list=no
8861      save_LDFLAGS=$LDFLAGS
8862      echo "_main" > conftest.sym
8863      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8864      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8865/* end confdefs.h.  */
8866
8867int
8868main (void)
8869{
8870
8871  ;
8872  return 0;
8873}
8874_ACEOF
8875if ac_fn_c_try_link "$LINENO"
8876then :
8877  lt_cv_ld_exported_symbols_list=yes
8878else $as_nop
8879  lt_cv_ld_exported_symbols_list=no
8880fi
8881rm -f core conftest.err conftest.$ac_objext conftest.beam \
8882    conftest$ac_exeext conftest.$ac_ext
8883	LDFLAGS=$save_LDFLAGS
8884
8885fi
8886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8887printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8888
8889    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8890printf %s "checking for -force_load linker flag... " >&6; }
8891if test ${lt_cv_ld_force_load+y}
8892then :
8893  printf %s "(cached) " >&6
8894else $as_nop
8895  lt_cv_ld_force_load=no
8896      cat > conftest.c << _LT_EOF
8897int forced_loaded() { return 2;}
8898_LT_EOF
8899      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8900      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8901      echo "$AR cr libconftest.a conftest.o" >&5
8902      $AR cr libconftest.a conftest.o 2>&5
8903      echo "$RANLIB libconftest.a" >&5
8904      $RANLIB libconftest.a 2>&5
8905      cat > conftest.c << _LT_EOF
8906int main() { return 0;}
8907_LT_EOF
8908      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8909      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8910      _lt_result=$?
8911      if test -s conftest.err && $GREP force_load conftest.err; then
8912	cat conftest.err >&5
8913      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8914	lt_cv_ld_force_load=yes
8915      else
8916	cat conftest.err >&5
8917      fi
8918        rm -f conftest.err libconftest.a conftest conftest.c
8919        rm -rf conftest.dSYM
8920
8921fi
8922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8923printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8924    case $host_os in
8925    rhapsody* | darwin1.[012])
8926      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8927    darwin1.*)
8928      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8929    darwin*) # darwin 5.x on
8930      # if running on 10.5 or later, the deployment target defaults
8931      # to the OS version, if on x86, and 10.4, the deployment
8932      # target defaults to 10.4. Don't you love it?
8933      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8934	10.0,*86*-darwin8*|10.0,*-darwin[912]*)
8935	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8936	10.[012][,.]*)
8937	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8938	10.*|11.*)
8939	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8940      esac
8941    ;;
8942  esac
8943    if test yes = "$lt_cv_apple_cc_single_mod"; then
8944      _lt_dar_single_mod='$single_module'
8945    fi
8946    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8947      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8948    else
8949      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8950    fi
8951    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8952      _lt_dsymutil='~$DSYMUTIL $lib || :'
8953    else
8954      _lt_dsymutil=
8955    fi
8956    ;;
8957  esac
8958
8959# func_munge_path_list VARIABLE PATH
8960# -----------------------------------
8961# VARIABLE is name of variable containing _space_ separated list of
8962# directories to be munged by the contents of PATH, which is string
8963# having a format:
8964# "DIR[:DIR]:"
8965#       string "DIR[ DIR]" will be prepended to VARIABLE
8966# ":DIR[:DIR]"
8967#       string "DIR[ DIR]" will be appended to VARIABLE
8968# "DIRP[:DIRP]::[DIRA:]DIRA"
8969#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8970#       "DIRA[ DIRA]" will be appended to VARIABLE
8971# "DIR[:DIR]"
8972#       VARIABLE will be replaced by "DIR[ DIR]"
8973func_munge_path_list ()
8974{
8975    case x$2 in
8976    x)
8977        ;;
8978    *:)
8979        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8980        ;;
8981    x:*)
8982        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8983        ;;
8984    *::*)
8985        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8986        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8987        ;;
8988    *)
8989        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8990        ;;
8991    esac
8992}
8993
8994ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8995"
8996if test "x$ac_cv_header_dlfcn_h" = xyes
8997then :
8998  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8999
9000fi
9001
9002
9003
9004
9005
9006# Set options
9007
9008
9009
9010        enable_dlopen=no
9011
9012
9013  enable_win32_dll=no
9014
9015
9016            # Check whether --enable-shared was given.
9017if test ${enable_shared+y}
9018then :
9019  enableval=$enable_shared; p=${PACKAGE-default}
9020    case $enableval in
9021    yes) enable_shared=yes ;;
9022    no) enable_shared=no ;;
9023    *)
9024      enable_shared=no
9025      # Look at the argument we got.  We use all the common list separators.
9026      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9027      for pkg in $enableval; do
9028	IFS=$lt_save_ifs
9029	if test "X$pkg" = "X$p"; then
9030	  enable_shared=yes
9031	fi
9032      done
9033      IFS=$lt_save_ifs
9034      ;;
9035    esac
9036else $as_nop
9037  enable_shared=yes
9038fi
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048  # Check whether --enable-static was given.
9049if test ${enable_static+y}
9050then :
9051  enableval=$enable_static; p=${PACKAGE-default}
9052    case $enableval in
9053    yes) enable_static=yes ;;
9054    no) enable_static=no ;;
9055    *)
9056     enable_static=no
9057      # Look at the argument we got.  We use all the common list separators.
9058      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9059      for pkg in $enableval; do
9060	IFS=$lt_save_ifs
9061	if test "X$pkg" = "X$p"; then
9062	  enable_static=yes
9063	fi
9064      done
9065      IFS=$lt_save_ifs
9066      ;;
9067    esac
9068else $as_nop
9069  enable_static=yes
9070fi
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081# Check whether --with-pic was given.
9082if test ${with_pic+y}
9083then :
9084  withval=$with_pic; lt_p=${PACKAGE-default}
9085    case $withval in
9086    yes|no) pic_mode=$withval ;;
9087    *)
9088      pic_mode=default
9089      # Look at the argument we got.  We use all the common list separators.
9090      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9091      for lt_pkg in $withval; do
9092	IFS=$lt_save_ifs
9093	if test "X$lt_pkg" = "X$lt_p"; then
9094	  pic_mode=yes
9095	fi
9096      done
9097      IFS=$lt_save_ifs
9098      ;;
9099    esac
9100else $as_nop
9101  pic_mode=default
9102fi
9103
9104
9105
9106
9107
9108
9109
9110
9111  # Check whether --enable-fast-install was given.
9112if test ${enable_fast_install+y}
9113then :
9114  enableval=$enable_fast_install; p=${PACKAGE-default}
9115    case $enableval in
9116    yes) enable_fast_install=yes ;;
9117    no) enable_fast_install=no ;;
9118    *)
9119      enable_fast_install=no
9120      # Look at the argument we got.  We use all the common list separators.
9121      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9122      for pkg in $enableval; do
9123	IFS=$lt_save_ifs
9124	if test "X$pkg" = "X$p"; then
9125	  enable_fast_install=yes
9126	fi
9127      done
9128      IFS=$lt_save_ifs
9129      ;;
9130    esac
9131else $as_nop
9132  enable_fast_install=yes
9133fi
9134
9135
9136
9137
9138
9139
9140
9141
9142  shared_archive_member_spec=
9143case $host,$enable_shared in
9144power*-*-aix[5-9]*,yes)
9145  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9146printf %s "checking which variant of shared library versioning to provide... " >&6; }
9147
9148# Check whether --with-aix-soname was given.
9149if test ${with_aix_soname+y}
9150then :
9151  withval=$with_aix_soname; case $withval in
9152    aix|svr4|both)
9153      ;;
9154    *)
9155      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9156      ;;
9157    esac
9158    lt_cv_with_aix_soname=$with_aix_soname
9159else $as_nop
9160  if test ${lt_cv_with_aix_soname+y}
9161then :
9162  printf %s "(cached) " >&6
9163else $as_nop
9164  lt_cv_with_aix_soname=aix
9165fi
9166
9167    with_aix_soname=$lt_cv_with_aix_soname
9168fi
9169
9170  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9171printf "%s\n" "$with_aix_soname" >&6; }
9172  if test aix != "$with_aix_soname"; then
9173    # For the AIX way of multilib, we name the shared archive member
9174    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9175    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9176    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9177    # the AIX toolchain works better with OBJECT_MODE set (default 32).
9178    if test 64 = "${OBJECT_MODE-32}"; then
9179      shared_archive_member_spec=shr_64
9180    else
9181      shared_archive_member_spec=shr
9182    fi
9183  fi
9184  ;;
9185*)
9186  with_aix_soname=aix
9187  ;;
9188esac
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199# This can be used to rebuild libtool when needed
9200LIBTOOL_DEPS=$ltmain
9201
9202# Always use our own libtool.
9203LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234test -z "$LN_S" && LN_S="ln -s"
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249if test -n "${ZSH_VERSION+set}"; then
9250   setopt NO_GLOB_SUBST
9251fi
9252
9253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9254printf %s "checking for objdir... " >&6; }
9255if test ${lt_cv_objdir+y}
9256then :
9257  printf %s "(cached) " >&6
9258else $as_nop
9259  rm -f .libs 2>/dev/null
9260mkdir .libs 2>/dev/null
9261if test -d .libs; then
9262  lt_cv_objdir=.libs
9263else
9264  # MS-DOS does not allow filenames that begin with a dot.
9265  lt_cv_objdir=_libs
9266fi
9267rmdir .libs 2>/dev/null
9268fi
9269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9270printf "%s\n" "$lt_cv_objdir" >&6; }
9271objdir=$lt_cv_objdir
9272
9273
9274
9275
9276
9277printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9278
9279
9280
9281
9282case $host_os in
9283aix3*)
9284  # AIX sometimes has problems with the GCC collect2 program.  For some
9285  # reason, if we set the COLLECT_NAMES environment variable, the problems
9286  # vanish in a puff of smoke.
9287  if test set != "${COLLECT_NAMES+set}"; then
9288    COLLECT_NAMES=
9289    export COLLECT_NAMES
9290  fi
9291  ;;
9292esac
9293
9294# Global variables:
9295ofile=libtool
9296can_build_shared=yes
9297
9298# All known linkers require a '.a' archive for static linking (except MSVC,
9299# which needs '.lib').
9300libext=a
9301
9302with_gnu_ld=$lt_cv_prog_gnu_ld
9303
9304old_CC=$CC
9305old_CFLAGS=$CFLAGS
9306
9307# Set sane defaults for various variables
9308test -z "$CC" && CC=cc
9309test -z "$LTCC" && LTCC=$CC
9310test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9311test -z "$LD" && LD=ld
9312test -z "$ac_objext" && ac_objext=o
9313
9314func_cc_basename $compiler
9315cc_basename=$func_cc_basename_result
9316
9317
9318# Only perform the check for file, if the check method requires it
9319test -z "$MAGIC_CMD" && MAGIC_CMD=file
9320case $deplibs_check_method in
9321file_magic*)
9322  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9323    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9324printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9325if test ${lt_cv_path_MAGIC_CMD+y}
9326then :
9327  printf %s "(cached) " >&6
9328else $as_nop
9329  case $MAGIC_CMD in
9330[\\/*] |  ?:[\\/]*)
9331  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9332  ;;
9333*)
9334  lt_save_MAGIC_CMD=$MAGIC_CMD
9335  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9336  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9337  for ac_dir in $ac_dummy; do
9338    IFS=$lt_save_ifs
9339    test -z "$ac_dir" && ac_dir=.
9340    if test -f "$ac_dir/${ac_tool_prefix}file"; then
9341      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9342      if test -n "$file_magic_test_file"; then
9343	case $deplibs_check_method in
9344	"file_magic "*)
9345	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9346	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9347	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9348	    $EGREP "$file_magic_regex" > /dev/null; then
9349	    :
9350	  else
9351	    cat <<_LT_EOF 1>&2
9352
9353*** Warning: the command libtool uses to detect shared libraries,
9354*** $file_magic_cmd, produces output that libtool cannot recognize.
9355*** The result is that libtool may fail to recognize shared libraries
9356*** as such.  This will affect the creation of libtool libraries that
9357*** depend on shared libraries, but programs linked with such libtool
9358*** libraries will work regardless of this problem.  Nevertheless, you
9359*** may want to report the problem to your system manager and/or to
9360*** bug-libtool@gnu.org
9361
9362_LT_EOF
9363	  fi ;;
9364	esac
9365      fi
9366      break
9367    fi
9368  done
9369  IFS=$lt_save_ifs
9370  MAGIC_CMD=$lt_save_MAGIC_CMD
9371  ;;
9372esac
9373fi
9374
9375MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9376if test -n "$MAGIC_CMD"; then
9377  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9378printf "%s\n" "$MAGIC_CMD" >&6; }
9379else
9380  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9381printf "%s\n" "no" >&6; }
9382fi
9383
9384
9385
9386
9387
9388if test -z "$lt_cv_path_MAGIC_CMD"; then
9389  if test -n "$ac_tool_prefix"; then
9390    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9391printf %s "checking for file... " >&6; }
9392if test ${lt_cv_path_MAGIC_CMD+y}
9393then :
9394  printf %s "(cached) " >&6
9395else $as_nop
9396  case $MAGIC_CMD in
9397[\\/*] |  ?:[\\/]*)
9398  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9399  ;;
9400*)
9401  lt_save_MAGIC_CMD=$MAGIC_CMD
9402  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9403  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9404  for ac_dir in $ac_dummy; do
9405    IFS=$lt_save_ifs
9406    test -z "$ac_dir" && ac_dir=.
9407    if test -f "$ac_dir/file"; then
9408      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9409      if test -n "$file_magic_test_file"; then
9410	case $deplibs_check_method in
9411	"file_magic "*)
9412	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9413	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9414	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9415	    $EGREP "$file_magic_regex" > /dev/null; then
9416	    :
9417	  else
9418	    cat <<_LT_EOF 1>&2
9419
9420*** Warning: the command libtool uses to detect shared libraries,
9421*** $file_magic_cmd, produces output that libtool cannot recognize.
9422*** The result is that libtool may fail to recognize shared libraries
9423*** as such.  This will affect the creation of libtool libraries that
9424*** depend on shared libraries, but programs linked with such libtool
9425*** libraries will work regardless of this problem.  Nevertheless, you
9426*** may want to report the problem to your system manager and/or to
9427*** bug-libtool@gnu.org
9428
9429_LT_EOF
9430	  fi ;;
9431	esac
9432      fi
9433      break
9434    fi
9435  done
9436  IFS=$lt_save_ifs
9437  MAGIC_CMD=$lt_save_MAGIC_CMD
9438  ;;
9439esac
9440fi
9441
9442MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9443if test -n "$MAGIC_CMD"; then
9444  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9445printf "%s\n" "$MAGIC_CMD" >&6; }
9446else
9447  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9448printf "%s\n" "no" >&6; }
9449fi
9450
9451
9452  else
9453    MAGIC_CMD=:
9454  fi
9455fi
9456
9457  fi
9458  ;;
9459esac
9460
9461# Use C for the default configuration in the libtool script
9462
9463lt_save_CC=$CC
9464ac_ext=c
9465ac_cpp='$CPP $CPPFLAGS'
9466ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9467ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9468ac_compiler_gnu=$ac_cv_c_compiler_gnu
9469
9470
9471# Source file extension for C test sources.
9472ac_ext=c
9473
9474# Object file extension for compiled C test sources.
9475objext=o
9476objext=$objext
9477
9478# Code to be used in simple compile tests
9479lt_simple_compile_test_code="int some_variable = 0;"
9480
9481# Code to be used in simple link tests
9482lt_simple_link_test_code='int main(){return(0);}'
9483
9484
9485
9486
9487
9488
9489
9490# If no C compiler was specified, use CC.
9491LTCC=${LTCC-"$CC"}
9492
9493# If no C compiler flags were specified, use CFLAGS.
9494LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9495
9496# Allow CC to be a program name with arguments.
9497compiler=$CC
9498
9499# Save the default compiler, since it gets overwritten when the other
9500# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9501compiler_DEFAULT=$CC
9502
9503# save warnings/boilerplate of simple test code
9504ac_outfile=conftest.$ac_objext
9505echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9506eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9507_lt_compiler_boilerplate=`cat conftest.err`
9508$RM conftest*
9509
9510ac_outfile=conftest.$ac_objext
9511echo "$lt_simple_link_test_code" >conftest.$ac_ext
9512eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9513_lt_linker_boilerplate=`cat conftest.err`
9514$RM -r conftest*
9515
9516
9517## CAVEAT EMPTOR:
9518## There is no encapsulation within the following macros, do not change
9519## the running order or otherwise move them around unless you know exactly
9520## what you are doing...
9521if test -n "$compiler"; then
9522
9523lt_prog_compiler_no_builtin_flag=
9524
9525if test yes = "$GCC"; then
9526  case $cc_basename in
9527  nvcc*)
9528    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9529  *)
9530    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9531  esac
9532
9533  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9534printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9535if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9536then :
9537  printf %s "(cached) " >&6
9538else $as_nop
9539  lt_cv_prog_compiler_rtti_exceptions=no
9540   ac_outfile=conftest.$ac_objext
9541   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9542   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9543   # Insert the option either (1) after the last *FLAGS variable, or
9544   # (2) before a word containing "conftest.", or (3) at the end.
9545   # Note that $ac_compile itself does not contain backslashes and begins
9546   # with a dollar sign (not a hyphen), so the echo should work correctly.
9547   # The option is referenced via a variable to avoid confusing sed.
9548   lt_compile=`echo "$ac_compile" | $SED \
9549   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9550   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9551   -e 's:$: $lt_compiler_flag:'`
9552   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9553   (eval "$lt_compile" 2>conftest.err)
9554   ac_status=$?
9555   cat conftest.err >&5
9556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557   if (exit $ac_status) && test -s "$ac_outfile"; then
9558     # The compiler can only warn and ignore the option if not recognized
9559     # So say no if there are warnings other than the usual output.
9560     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9561     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9562     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9563       lt_cv_prog_compiler_rtti_exceptions=yes
9564     fi
9565   fi
9566   $RM conftest*
9567
9568fi
9569{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9570printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9571
9572if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9573    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9574else
9575    :
9576fi
9577
9578fi
9579
9580
9581
9582
9583
9584
9585  lt_prog_compiler_wl=
9586lt_prog_compiler_pic=
9587lt_prog_compiler_static=
9588
9589
9590  if test yes = "$GCC"; then
9591    lt_prog_compiler_wl='-Wl,'
9592    lt_prog_compiler_static='-static'
9593
9594    case $host_os in
9595      aix*)
9596      # All AIX code is PIC.
9597      if test ia64 = "$host_cpu"; then
9598	# AIX 5 now supports IA64 processor
9599	lt_prog_compiler_static='-Bstatic'
9600      fi
9601      lt_prog_compiler_pic='-fPIC'
9602      ;;
9603
9604    amigaos*)
9605      case $host_cpu in
9606      powerpc)
9607            # see comment about AmigaOS4 .so support
9608            lt_prog_compiler_pic='-fPIC'
9609        ;;
9610      m68k)
9611            # FIXME: we need at least 68020 code to build shared libraries, but
9612            # adding the '-m68020' flag to GCC prevents building anything better,
9613            # like '-m68040'.
9614            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9615        ;;
9616      esac
9617      ;;
9618
9619    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9620      # PIC is the default for these OSes.
9621      ;;
9622
9623    mingw* | cygwin* | pw32* | os2* | cegcc*)
9624      # This hack is so that the source file can tell whether it is being
9625      # built for inclusion in a dll (and should export symbols for example).
9626      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9627      # (--disable-auto-import) libraries
9628      lt_prog_compiler_pic='-DDLL_EXPORT'
9629      case $host_os in
9630      os2*)
9631	lt_prog_compiler_static='$wl-static'
9632	;;
9633      esac
9634      ;;
9635
9636    darwin* | rhapsody*)
9637      # PIC is the default on this platform
9638      # Common symbols not allowed in MH_DYLIB files
9639      lt_prog_compiler_pic='-fno-common'
9640      ;;
9641
9642    haiku*)
9643      # PIC is the default for Haiku.
9644      # The "-static" flag exists, but is broken.
9645      lt_prog_compiler_static=
9646      ;;
9647
9648    hpux*)
9649      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9650      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9651      # sets the default TLS model and affects inlining.
9652      case $host_cpu in
9653      hppa*64*)
9654	# +Z the default
9655	;;
9656      *)
9657	lt_prog_compiler_pic='-fPIC'
9658	;;
9659      esac
9660      ;;
9661
9662    interix[3-9]*)
9663      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9664      # Instead, we relocate shared libraries at runtime.
9665      ;;
9666
9667    msdosdjgpp*)
9668      # Just because we use GCC doesn't mean we suddenly get shared libraries
9669      # on systems that don't support them.
9670      lt_prog_compiler_can_build_shared=no
9671      enable_shared=no
9672      ;;
9673
9674    *nto* | *qnx*)
9675      # QNX uses GNU C++, but need to define -shared option too, otherwise
9676      # it will coredump.
9677      lt_prog_compiler_pic='-fPIC -shared'
9678      ;;
9679
9680    sysv4*MP*)
9681      if test -d /usr/nec; then
9682	lt_prog_compiler_pic=-Kconform_pic
9683      fi
9684      ;;
9685
9686    *)
9687      lt_prog_compiler_pic='-fPIC'
9688      ;;
9689    esac
9690
9691    case $cc_basename in
9692    nvcc*) # Cuda Compiler Driver 2.2
9693      lt_prog_compiler_wl='-Xlinker '
9694      if test -n "$lt_prog_compiler_pic"; then
9695        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9696      fi
9697      ;;
9698    esac
9699  else
9700    # PORTME Check for flag to pass linker flags through the system compiler.
9701    case $host_os in
9702    aix*)
9703      lt_prog_compiler_wl='-Wl,'
9704      if test ia64 = "$host_cpu"; then
9705	# AIX 5 now supports IA64 processor
9706	lt_prog_compiler_static='-Bstatic'
9707      else
9708	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9709      fi
9710      ;;
9711
9712    darwin* | rhapsody*)
9713      # PIC is the default on this platform
9714      # Common symbols not allowed in MH_DYLIB files
9715      lt_prog_compiler_pic='-fno-common'
9716      case $cc_basename in
9717      nagfor*)
9718        # NAG Fortran compiler
9719        lt_prog_compiler_wl='-Wl,-Wl,,'
9720        lt_prog_compiler_pic='-PIC'
9721        lt_prog_compiler_static='-Bstatic'
9722        ;;
9723      esac
9724      ;;
9725
9726    mingw* | cygwin* | pw32* | os2* | cegcc*)
9727      # This hack is so that the source file can tell whether it is being
9728      # built for inclusion in a dll (and should export symbols for example).
9729      lt_prog_compiler_pic='-DDLL_EXPORT'
9730      case $host_os in
9731      os2*)
9732	lt_prog_compiler_static='$wl-static'
9733	;;
9734      esac
9735      ;;
9736
9737    hpux9* | hpux10* | hpux11*)
9738      lt_prog_compiler_wl='-Wl,'
9739      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9740      # not for PA HP-UX.
9741      case $host_cpu in
9742      hppa*64*|ia64*)
9743	# +Z the default
9744	;;
9745      *)
9746	lt_prog_compiler_pic='+Z'
9747	;;
9748      esac
9749      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9750      lt_prog_compiler_static='$wl-a ${wl}archive'
9751      ;;
9752
9753    irix5* | irix6* | nonstopux*)
9754      lt_prog_compiler_wl='-Wl,'
9755      # PIC (with -KPIC) is the default.
9756      lt_prog_compiler_static='-non_shared'
9757      ;;
9758
9759    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9760      case $cc_basename in
9761      # old Intel for x86_64, which still supported -KPIC.
9762      ecc*)
9763	lt_prog_compiler_wl='-Wl,'
9764	lt_prog_compiler_pic='-KPIC'
9765	lt_prog_compiler_static='-static'
9766        ;;
9767      # flang / f18. f95 an alias for gfortran or flang on Debian
9768      flang* | f18* | f95*)
9769	lt_prog_compiler_wl='-Wl,'
9770	lt_prog_compiler_pic='-fPIC'
9771	lt_prog_compiler_static='-static'
9772        ;;
9773      # icc used to be incompatible with GCC.
9774      # ICC 10 doesn't accept -KPIC any more.
9775      icc* | ifort*)
9776	lt_prog_compiler_wl='-Wl,'
9777	lt_prog_compiler_pic='-fPIC'
9778	lt_prog_compiler_static='-static'
9779        ;;
9780      # Lahey Fortran 8.1.
9781      lf95*)
9782	lt_prog_compiler_wl='-Wl,'
9783	lt_prog_compiler_pic='--shared'
9784	lt_prog_compiler_static='--static'
9785	;;
9786      nagfor*)
9787	# NAG Fortran compiler
9788	lt_prog_compiler_wl='-Wl,-Wl,,'
9789	lt_prog_compiler_pic='-PIC'
9790	lt_prog_compiler_static='-Bstatic'
9791	;;
9792      tcc*)
9793	# Fabrice Bellard et al's Tiny C Compiler
9794	lt_prog_compiler_wl='-Wl,'
9795	lt_prog_compiler_pic='-fPIC'
9796	lt_prog_compiler_static='-static'
9797	;;
9798      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9799        # Portland Group compilers (*not* the Pentium gcc compiler,
9800	# which looks to be a dead project)
9801	lt_prog_compiler_wl='-Wl,'
9802	lt_prog_compiler_pic='-fpic'
9803	lt_prog_compiler_static='-Bstatic'
9804        ;;
9805      ccc*)
9806        lt_prog_compiler_wl='-Wl,'
9807        # All Alpha code is PIC.
9808        lt_prog_compiler_static='-non_shared'
9809        ;;
9810      xl* | bgxl* | bgf* | mpixl*)
9811	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9812	lt_prog_compiler_wl='-Wl,'
9813	lt_prog_compiler_pic='-qpic'
9814	lt_prog_compiler_static='-qstaticlink'
9815	;;
9816      *)
9817	case `$CC -V 2>&1 | sed 5q` in
9818	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9819	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9820	  lt_prog_compiler_pic='-KPIC'
9821	  lt_prog_compiler_static='-Bstatic'
9822	  lt_prog_compiler_wl=''
9823	  ;;
9824	*Sun\ F* | *Sun*Fortran*)
9825	  lt_prog_compiler_pic='-KPIC'
9826	  lt_prog_compiler_static='-Bstatic'
9827	  lt_prog_compiler_wl='-Qoption ld '
9828	  ;;
9829	*Sun\ C*)
9830	  # Sun C 5.9
9831	  lt_prog_compiler_pic='-KPIC'
9832	  lt_prog_compiler_static='-Bstatic'
9833	  lt_prog_compiler_wl='-Wl,'
9834	  ;;
9835        *Intel*\ [CF]*Compiler*)
9836	  lt_prog_compiler_wl='-Wl,'
9837	  lt_prog_compiler_pic='-fPIC'
9838	  lt_prog_compiler_static='-static'
9839	  ;;
9840	*Portland\ Group*)
9841	  lt_prog_compiler_wl='-Wl,'
9842	  lt_prog_compiler_pic='-fpic'
9843	  lt_prog_compiler_static='-Bstatic'
9844	  ;;
9845	esac
9846	;;
9847      esac
9848      ;;
9849
9850    newsos6)
9851      lt_prog_compiler_pic='-KPIC'
9852      lt_prog_compiler_static='-Bstatic'
9853      ;;
9854
9855    *nto* | *qnx*)
9856      # QNX uses GNU C++, but need to define -shared option too, otherwise
9857      # it will coredump.
9858      lt_prog_compiler_pic='-fPIC -shared'
9859      ;;
9860
9861    osf3* | osf4* | osf5*)
9862      lt_prog_compiler_wl='-Wl,'
9863      # All OSF/1 code is PIC.
9864      lt_prog_compiler_static='-non_shared'
9865      ;;
9866
9867    rdos*)
9868      lt_prog_compiler_static='-non_shared'
9869      ;;
9870
9871    solaris*)
9872      lt_prog_compiler_pic='-KPIC'
9873      lt_prog_compiler_static='-Bstatic'
9874      case $cc_basename in
9875      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9876	lt_prog_compiler_wl='-Qoption ld ';;
9877      *)
9878	lt_prog_compiler_wl='-Wl,';;
9879      esac
9880      ;;
9881
9882    sunos4*)
9883      lt_prog_compiler_wl='-Qoption ld '
9884      lt_prog_compiler_pic='-PIC'
9885      lt_prog_compiler_static='-Bstatic'
9886      ;;
9887
9888    sysv4 | sysv4.2uw2* | sysv4.3*)
9889      lt_prog_compiler_wl='-Wl,'
9890      lt_prog_compiler_pic='-KPIC'
9891      lt_prog_compiler_static='-Bstatic'
9892      ;;
9893
9894    sysv4*MP*)
9895      if test -d /usr/nec; then
9896	lt_prog_compiler_pic='-Kconform_pic'
9897	lt_prog_compiler_static='-Bstatic'
9898      fi
9899      ;;
9900
9901    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9902      lt_prog_compiler_wl='-Wl,'
9903      lt_prog_compiler_pic='-KPIC'
9904      lt_prog_compiler_static='-Bstatic'
9905      ;;
9906
9907    unicos*)
9908      lt_prog_compiler_wl='-Wl,'
9909      lt_prog_compiler_can_build_shared=no
9910      ;;
9911
9912    uts4*)
9913      lt_prog_compiler_pic='-pic'
9914      lt_prog_compiler_static='-Bstatic'
9915      ;;
9916
9917    *)
9918      lt_prog_compiler_can_build_shared=no
9919      ;;
9920    esac
9921  fi
9922
9923case $host_os in
9924  # For platforms that do not support PIC, -DPIC is meaningless:
9925  *djgpp*)
9926    lt_prog_compiler_pic=
9927    ;;
9928  *)
9929    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9930    ;;
9931esac
9932
9933{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9934printf %s "checking for $compiler option to produce PIC... " >&6; }
9935if test ${lt_cv_prog_compiler_pic+y}
9936then :
9937  printf %s "(cached) " >&6
9938else $as_nop
9939  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9940fi
9941{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9942printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9943lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9944
9945#
9946# Check to make sure the PIC flag actually works.
9947#
9948if test -n "$lt_prog_compiler_pic"; then
9949  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9950printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9951if test ${lt_cv_prog_compiler_pic_works+y}
9952then :
9953  printf %s "(cached) " >&6
9954else $as_nop
9955  lt_cv_prog_compiler_pic_works=no
9956   ac_outfile=conftest.$ac_objext
9957   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9958   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9959   # Insert the option either (1) after the last *FLAGS variable, or
9960   # (2) before a word containing "conftest.", or (3) at the end.
9961   # Note that $ac_compile itself does not contain backslashes and begins
9962   # with a dollar sign (not a hyphen), so the echo should work correctly.
9963   # The option is referenced via a variable to avoid confusing sed.
9964   lt_compile=`echo "$ac_compile" | $SED \
9965   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9966   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9967   -e 's:$: $lt_compiler_flag:'`
9968   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9969   (eval "$lt_compile" 2>conftest.err)
9970   ac_status=$?
9971   cat conftest.err >&5
9972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973   if (exit $ac_status) && test -s "$ac_outfile"; then
9974     # The compiler can only warn and ignore the option if not recognized
9975     # So say no if there are warnings other than the usual output.
9976     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9977     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9978     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9979       lt_cv_prog_compiler_pic_works=yes
9980     fi
9981   fi
9982   $RM conftest*
9983
9984fi
9985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9986printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9987
9988if test yes = "$lt_cv_prog_compiler_pic_works"; then
9989    case $lt_prog_compiler_pic in
9990     "" | " "*) ;;
9991     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9992     esac
9993else
9994    lt_prog_compiler_pic=
9995     lt_prog_compiler_can_build_shared=no
9996fi
9997
9998fi
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010#
10011# Check to make sure the static flag actually works.
10012#
10013wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10014{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10015printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10016if test ${lt_cv_prog_compiler_static_works+y}
10017then :
10018  printf %s "(cached) " >&6
10019else $as_nop
10020  lt_cv_prog_compiler_static_works=no
10021   save_LDFLAGS=$LDFLAGS
10022   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10023   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10024   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10025     # The linker can only warn and ignore the option if not recognized
10026     # So say no if there are warnings
10027     if test -s conftest.err; then
10028       # Append any errors to the config.log.
10029       cat conftest.err 1>&5
10030       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10031       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10032       if diff conftest.exp conftest.er2 >/dev/null; then
10033         lt_cv_prog_compiler_static_works=yes
10034       fi
10035     else
10036       lt_cv_prog_compiler_static_works=yes
10037     fi
10038   fi
10039   $RM -r conftest*
10040   LDFLAGS=$save_LDFLAGS
10041
10042fi
10043{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10044printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10045
10046if test yes = "$lt_cv_prog_compiler_static_works"; then
10047    :
10048else
10049    lt_prog_compiler_static=
10050fi
10051
10052
10053
10054
10055
10056
10057
10058  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10059printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10060if test ${lt_cv_prog_compiler_c_o+y}
10061then :
10062  printf %s "(cached) " >&6
10063else $as_nop
10064  lt_cv_prog_compiler_c_o=no
10065   $RM -r conftest 2>/dev/null
10066   mkdir conftest
10067   cd conftest
10068   mkdir out
10069   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10070
10071   lt_compiler_flag="-o out/conftest2.$ac_objext"
10072   # Insert the option either (1) after the last *FLAGS variable, or
10073   # (2) before a word containing "conftest.", or (3) at the end.
10074   # Note that $ac_compile itself does not contain backslashes and begins
10075   # with a dollar sign (not a hyphen), so the echo should work correctly.
10076   lt_compile=`echo "$ac_compile" | $SED \
10077   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10078   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10079   -e 's:$: $lt_compiler_flag:'`
10080   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10081   (eval "$lt_compile" 2>out/conftest.err)
10082   ac_status=$?
10083   cat out/conftest.err >&5
10084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10086   then
10087     # The compiler can only warn and ignore the option if not recognized
10088     # So say no if there are warnings
10089     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10090     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10091     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10092       lt_cv_prog_compiler_c_o=yes
10093     fi
10094   fi
10095   chmod u+w . 2>&5
10096   $RM conftest*
10097   # SGI C++ compiler will create directory out/ii_files/ for
10098   # template instantiation
10099   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10100   $RM out/* && rmdir out
10101   cd ..
10102   $RM -r conftest
10103   $RM conftest*
10104
10105fi
10106{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10107printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10108
10109
10110
10111
10112
10113
10114  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10115printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10116if test ${lt_cv_prog_compiler_c_o+y}
10117then :
10118  printf %s "(cached) " >&6
10119else $as_nop
10120  lt_cv_prog_compiler_c_o=no
10121   $RM -r conftest 2>/dev/null
10122   mkdir conftest
10123   cd conftest
10124   mkdir out
10125   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10126
10127   lt_compiler_flag="-o out/conftest2.$ac_objext"
10128   # Insert the option either (1) after the last *FLAGS variable, or
10129   # (2) before a word containing "conftest.", or (3) at the end.
10130   # Note that $ac_compile itself does not contain backslashes and begins
10131   # with a dollar sign (not a hyphen), so the echo should work correctly.
10132   lt_compile=`echo "$ac_compile" | $SED \
10133   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10134   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10135   -e 's:$: $lt_compiler_flag:'`
10136   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10137   (eval "$lt_compile" 2>out/conftest.err)
10138   ac_status=$?
10139   cat out/conftest.err >&5
10140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10142   then
10143     # The compiler can only warn and ignore the option if not recognized
10144     # So say no if there are warnings
10145     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10146     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10147     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10148       lt_cv_prog_compiler_c_o=yes
10149     fi
10150   fi
10151   chmod u+w . 2>&5
10152   $RM conftest*
10153   # SGI C++ compiler will create directory out/ii_files/ for
10154   # template instantiation
10155   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10156   $RM out/* && rmdir out
10157   cd ..
10158   $RM -r conftest
10159   $RM conftest*
10160
10161fi
10162{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10163printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10164
10165
10166
10167
10168hard_links=nottested
10169if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10170  # do not overwrite the value of need_locks provided by the user
10171  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10172printf %s "checking if we can lock with hard links... " >&6; }
10173  hard_links=yes
10174  $RM conftest*
10175  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10176  touch conftest.a
10177  ln conftest.a conftest.b 2>&5 || hard_links=no
10178  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10179  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10180printf "%s\n" "$hard_links" >&6; }
10181  if test no = "$hard_links"; then
10182    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10183printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10184    need_locks=warn
10185  fi
10186else
10187  need_locks=no
10188fi
10189
10190
10191
10192
10193
10194
10195  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10196printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10197
10198  runpath_var=
10199  allow_undefined_flag=
10200  always_export_symbols=no
10201  archive_cmds=
10202  archive_expsym_cmds=
10203  compiler_needs_object=no
10204  enable_shared_with_static_runtimes=no
10205  export_dynamic_flag_spec=
10206  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10207  hardcode_automatic=no
10208  hardcode_direct=no
10209  hardcode_direct_absolute=no
10210  hardcode_libdir_flag_spec=
10211  hardcode_libdir_separator=
10212  hardcode_minus_L=no
10213  hardcode_shlibpath_var=unsupported
10214  inherit_rpath=no
10215  link_all_deplibs=unknown
10216  module_cmds=
10217  module_expsym_cmds=
10218  old_archive_from_new_cmds=
10219  old_archive_from_expsyms_cmds=
10220  thread_safe_flag_spec=
10221  whole_archive_flag_spec=
10222  # include_expsyms should be a list of space-separated symbols to be *always*
10223  # included in the symbol list
10224  include_expsyms=
10225  # exclude_expsyms can be an extended regexp of symbols to exclude
10226  # it will be wrapped by ' (' and ')$', so one must not match beginning or
10227  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10228  # as well as any symbol that contains 'd'.
10229  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10230  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10231  # platforms (ab)use it in PIC code, but their linkers get confused if
10232  # the symbol is explicitly referenced.  Since portable code cannot
10233  # rely on this symbol name, it's probably fine to never include it in
10234  # preloaded symbol tables.
10235  # Exclude shared library initialization/finalization symbols.
10236  extract_expsyms_cmds=
10237
10238  case $host_os in
10239  cygwin* | mingw* | pw32* | cegcc*)
10240    # FIXME: the MSVC++ port hasn't been tested in a loooong time
10241    # When not using gcc, we currently assume that we are using
10242    # Microsoft Visual C++.
10243    if test yes != "$GCC"; then
10244      with_gnu_ld=no
10245    fi
10246    ;;
10247  interix*)
10248    # we just hope/assume this is gcc and not c89 (= MSVC++)
10249    with_gnu_ld=yes
10250    ;;
10251  openbsd* | bitrig*)
10252    with_gnu_ld=no
10253    ;;
10254  linux* | k*bsd*-gnu | gnu*)
10255    link_all_deplibs=no
10256    ;;
10257  esac
10258
10259  ld_shlibs=yes
10260
10261  # On some targets, GNU ld is compatible enough with the native linker
10262  # that we're better off using the native interface for both.
10263  lt_use_gnu_ld_interface=no
10264  if test yes = "$with_gnu_ld"; then
10265    case $host_os in
10266      aix*)
10267	# The AIX port of GNU ld has always aspired to compatibility
10268	# with the native linker.  However, as the warning in the GNU ld
10269	# block says, versions before 2.19.5* couldn't really create working
10270	# shared libraries, regardless of the interface used.
10271	case `$LD -v 2>&1` in
10272	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10273	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10274	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10275	  *)
10276	    lt_use_gnu_ld_interface=yes
10277	    ;;
10278	esac
10279	;;
10280      *)
10281	lt_use_gnu_ld_interface=yes
10282	;;
10283    esac
10284  fi
10285
10286  if test yes = "$lt_use_gnu_ld_interface"; then
10287    # If archive_cmds runs LD, not CC, wlarc should be empty
10288    wlarc='$wl'
10289
10290    # Set some defaults for GNU ld with shared library support. These
10291    # are reset later if shared libraries are not supported. Putting them
10292    # here allows them to be overridden if necessary.
10293    runpath_var=LD_RUN_PATH
10294    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10295    export_dynamic_flag_spec='$wl--export-dynamic'
10296    # ancient GNU ld didn't support --whole-archive et. al.
10297    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10298      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10299    else
10300      whole_archive_flag_spec=
10301    fi
10302    supports_anon_versioning=no
10303    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10304      *GNU\ gold*) supports_anon_versioning=yes ;;
10305      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10306      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10307      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10308      *\ 2.11.*) ;; # other 2.11 versions
10309      *) supports_anon_versioning=yes ;;
10310    esac
10311
10312    # See if GNU ld supports shared libraries.
10313    case $host_os in
10314    aix[3-9]*)
10315      # On AIX/PPC, the GNU linker is very broken
10316      if test ia64 != "$host_cpu"; then
10317	ld_shlibs=no
10318	cat <<_LT_EOF 1>&2
10319
10320*** Warning: the GNU linker, at least up to release 2.19, is reported
10321*** to be unable to reliably create shared libraries on AIX.
10322*** Therefore, libtool is disabling shared libraries support.  If you
10323*** really care for shared libraries, you may want to install binutils
10324*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10325*** You will then need to restart the configuration process.
10326
10327_LT_EOF
10328      fi
10329      ;;
10330
10331    amigaos*)
10332      case $host_cpu in
10333      powerpc)
10334            # see comment about AmigaOS4 .so support
10335            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10336            archive_expsym_cmds=''
10337        ;;
10338      m68k)
10339            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)'
10340            hardcode_libdir_flag_spec='-L$libdir'
10341            hardcode_minus_L=yes
10342        ;;
10343      esac
10344      ;;
10345
10346    beos*)
10347      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10348	allow_undefined_flag=unsupported
10349	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10350	# support --undefined.  This deserves some investigation.  FIXME
10351	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10352      else
10353	ld_shlibs=no
10354      fi
10355      ;;
10356
10357    cygwin* | mingw* | pw32* | cegcc*)
10358      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10359      # as there is no search path for DLLs.
10360      hardcode_libdir_flag_spec='-L$libdir'
10361      export_dynamic_flag_spec='$wl--export-all-symbols'
10362      allow_undefined_flag=unsupported
10363      always_export_symbols=no
10364      enable_shared_with_static_runtimes=yes
10365      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'
10366      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10367
10368      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10369        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10370	# If the export-symbols file already is a .def file, use it as
10371	# is; otherwise, prepend EXPORTS...
10372	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10373          cp $export_symbols $output_objdir/$soname.def;
10374        else
10375          echo EXPORTS > $output_objdir/$soname.def;
10376          cat $export_symbols >> $output_objdir/$soname.def;
10377        fi~
10378        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10379      else
10380	ld_shlibs=no
10381      fi
10382      ;;
10383
10384    haiku*)
10385      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10386      link_all_deplibs=yes
10387      ;;
10388
10389    os2*)
10390      hardcode_libdir_flag_spec='-L$libdir'
10391      hardcode_minus_L=yes
10392      allow_undefined_flag=unsupported
10393      shrext_cmds=.dll
10394      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10395	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10396	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10397	$ECHO EXPORTS >> $output_objdir/$libname.def~
10398	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10399	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10400	emximp -o $lib $output_objdir/$libname.def'
10401      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10402	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10403	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10404	$ECHO EXPORTS >> $output_objdir/$libname.def~
10405	prefix_cmds="$SED"~
10406	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10407	  prefix_cmds="$prefix_cmds -e 1d";
10408	fi~
10409	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10410	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10411	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10412	emximp -o $lib $output_objdir/$libname.def'
10413      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10414      enable_shared_with_static_runtimes=yes
10415      ;;
10416
10417    interix[3-9]*)
10418      hardcode_direct=no
10419      hardcode_shlibpath_var=no
10420      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10421      export_dynamic_flag_spec='$wl-E'
10422      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10423      # Instead, shared libraries are loaded at an image base (0x10000000 by
10424      # default) and relocated if they conflict, which is a slow very memory
10425      # consuming and fragmenting process.  To avoid this, we pick a random,
10426      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10427      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10428      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10429      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'
10430      ;;
10431
10432    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10433      tmp_diet=no
10434      if test linux-dietlibc = "$host_os"; then
10435	case $cc_basename in
10436	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10437	esac
10438      fi
10439      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10440	 && test no = "$tmp_diet"
10441      then
10442	tmp_addflag=' $pic_flag'
10443	tmp_sharedflag='-shared'
10444	case $cc_basename,$host_cpu in
10445        pgcc*)				# Portland Group C compiler
10446	  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'
10447	  tmp_addflag=' $pic_flag'
10448	  ;;
10449	pgf77* | pgf90* | pgf95* | pgfortran*)
10450					# Portland Group f77 and f90 compilers
10451	  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'
10452	  tmp_addflag=' $pic_flag -Mnomain' ;;
10453	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10454	  tmp_addflag=' -i_dynamic' ;;
10455	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10456	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10457	ifc* | ifort*)			# Intel Fortran compiler
10458	  tmp_addflag=' -nofor_main' ;;
10459	lf95*)				# Lahey Fortran 8.1
10460	  whole_archive_flag_spec=
10461	  tmp_sharedflag='--shared' ;;
10462        nagfor*)                        # NAGFOR 5.3
10463          tmp_sharedflag='-Wl,-shared' ;;
10464	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10465	  tmp_sharedflag='-qmkshrobj'
10466	  tmp_addflag= ;;
10467	nvcc*)	# Cuda Compiler Driver 2.2
10468	  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'
10469	  compiler_needs_object=yes
10470	  ;;
10471	esac
10472	case `$CC -V 2>&1 | sed 5q` in
10473	*Sun\ C*)			# Sun C 5.9
10474	  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'
10475	  compiler_needs_object=yes
10476	  tmp_sharedflag='-G' ;;
10477	*Sun\ F*)			# Sun Fortran 8.3
10478	  tmp_sharedflag='-G' ;;
10479	esac
10480	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10481
10482        if test yes = "$supports_anon_versioning"; then
10483          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10484            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10485            echo "local: *; };" >> $output_objdir/$libname.ver~
10486            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10487        fi
10488
10489	case $cc_basename in
10490	tcc*)
10491	  export_dynamic_flag_spec='-rdynamic'
10492	  ;;
10493	xlf* | bgf* | bgxlf* | mpixlf*)
10494	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10495	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10496	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10497	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10498	  if test yes = "$supports_anon_versioning"; then
10499	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10500              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10501              echo "local: *; };" >> $output_objdir/$libname.ver~
10502              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10503	  fi
10504	  ;;
10505	esac
10506      else
10507        ld_shlibs=no
10508      fi
10509      ;;
10510
10511    netbsd* | netbsdelf*-gnu)
10512      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10513	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10514	wlarc=
10515      else
10516	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10517	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10518      fi
10519      ;;
10520
10521    solaris*)
10522      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10523	ld_shlibs=no
10524	cat <<_LT_EOF 1>&2
10525
10526*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10527*** create shared libraries on Solaris systems.  Therefore, libtool
10528*** is disabling shared libraries support.  We urge you to upgrade GNU
10529*** binutils to release 2.9.1 or newer.  Another option is to modify
10530*** your PATH or compiler configuration so that the native linker is
10531*** used, and then restart.
10532
10533_LT_EOF
10534      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10535	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10536	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10537      else
10538	ld_shlibs=no
10539      fi
10540      ;;
10541
10542    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10543      case `$LD -v 2>&1` in
10544        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10545	ld_shlibs=no
10546	cat <<_LT_EOF 1>&2
10547
10548*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10549*** reliably create shared libraries on SCO systems.  Therefore, libtool
10550*** is disabling shared libraries support.  We urge you to upgrade GNU
10551*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10552*** your PATH or compiler configuration so that the native linker is
10553*** used, and then restart.
10554
10555_LT_EOF
10556	;;
10557	*)
10558	  # For security reasons, it is highly recommended that you always
10559	  # use absolute paths for naming shared libraries, and exclude the
10560	  # DT_RUNPATH tag from executables and libraries.  But doing so
10561	  # requires that you compile everything twice, which is a pain.
10562	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10563	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10564	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10565	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10566	  else
10567	    ld_shlibs=no
10568	  fi
10569	;;
10570      esac
10571      ;;
10572
10573    sunos4*)
10574      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10575      wlarc=
10576      hardcode_direct=yes
10577      hardcode_shlibpath_var=no
10578      ;;
10579
10580    *)
10581      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10582	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10583	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10584      else
10585	ld_shlibs=no
10586      fi
10587      ;;
10588    esac
10589
10590    if test no = "$ld_shlibs"; then
10591      runpath_var=
10592      hardcode_libdir_flag_spec=
10593      export_dynamic_flag_spec=
10594      whole_archive_flag_spec=
10595    fi
10596  else
10597    # PORTME fill in a description of your system's linker (not GNU ld)
10598    case $host_os in
10599    aix3*)
10600      allow_undefined_flag=unsupported
10601      always_export_symbols=yes
10602      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'
10603      # Note: this linker hardcodes the directories in LIBPATH if there
10604      # are no directories specified by -L.
10605      hardcode_minus_L=yes
10606      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10607	# Neither direct hardcoding nor static linking is supported with a
10608	# broken collect2.
10609	hardcode_direct=unsupported
10610      fi
10611      ;;
10612
10613    aix[4-9]*)
10614      if test ia64 = "$host_cpu"; then
10615	# On IA64, the linker does run time linking by default, so we don't
10616	# have to do anything special.
10617	aix_use_runtimelinking=no
10618	exp_sym_flag='-Bexport'
10619	no_entry_flag=
10620      else
10621	# If we're using GNU nm, then we don't want the "-C" option.
10622	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10623	# Without the "-l" option, or with the "-B" option, AIX nm treats
10624	# weak defined symbols like other global defined symbols, whereas
10625	# GNU nm marks them as "W".
10626	# While the 'weak' keyword is ignored in the Export File, we need
10627	# it in the Import File for the 'aix-soname' feature, so we have
10628	# to replace the "-B" option with "-P" for AIX nm.
10629	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10630	  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'
10631	else
10632	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10633	fi
10634	aix_use_runtimelinking=no
10635
10636	# Test if we are trying to use run time linking or normal
10637	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10638	# have runtime linking enabled, and use it for executables.
10639	# For shared libraries, we enable/disable runtime linking
10640	# depending on the kind of the shared library created -
10641	# when "with_aix_soname,aix_use_runtimelinking" is:
10642	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10643	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10644	#            lib.a           static archive
10645	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10646	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10647	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10648	#            lib.a(lib.so.V) shared, rtl:no
10649	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10650	#            lib.a           static archive
10651	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10652	  for ld_flag in $LDFLAGS; do
10653	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10654	    aix_use_runtimelinking=yes
10655	    break
10656	  fi
10657	  done
10658	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10659	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10660	    # so we don't have lib.a shared libs to link our executables.
10661	    # We have to force runtime linking in this case.
10662	    aix_use_runtimelinking=yes
10663	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10664	  fi
10665	  ;;
10666	esac
10667
10668	exp_sym_flag='-bexport'
10669	no_entry_flag='-bnoentry'
10670      fi
10671
10672      # When large executables or shared objects are built, AIX ld can
10673      # have problems creating the table of contents.  If linking a library
10674      # or program results in "error TOC overflow" add -mminimal-toc to
10675      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10676      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10677
10678      archive_cmds=''
10679      hardcode_direct=yes
10680      hardcode_direct_absolute=yes
10681      hardcode_libdir_separator=':'
10682      link_all_deplibs=yes
10683      file_list_spec='$wl-f,'
10684      case $with_aix_soname,$aix_use_runtimelinking in
10685      aix,*) ;; # traditional, no import file
10686      svr4,* | *,yes) # use import file
10687	# The Import File defines what to hardcode.
10688	hardcode_direct=no
10689	hardcode_direct_absolute=no
10690	;;
10691      esac
10692
10693      if test yes = "$GCC"; then
10694	case $host_os in aix4.[012]|aix4.[012].*)
10695	# We only want to do this on AIX 4.2 and lower, the check
10696	# below for broken collect2 doesn't work under 4.3+
10697	  collect2name=`$CC -print-prog-name=collect2`
10698	  if test -f "$collect2name" &&
10699	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10700	  then
10701	  # We have reworked collect2
10702	  :
10703	  else
10704	  # We have old collect2
10705	  hardcode_direct=unsupported
10706	  # It fails to find uninstalled libraries when the uninstalled
10707	  # path is not listed in the libpath.  Setting hardcode_minus_L
10708	  # to unsupported forces relinking
10709	  hardcode_minus_L=yes
10710	  hardcode_libdir_flag_spec='-L$libdir'
10711	  hardcode_libdir_separator=
10712	  fi
10713	  ;;
10714	esac
10715	shared_flag='-shared'
10716	if test yes = "$aix_use_runtimelinking"; then
10717	  shared_flag="$shared_flag "'$wl-G'
10718	fi
10719	# Need to ensure runtime linking is disabled for the traditional
10720	# shared library, or the linker may eventually find shared libraries
10721	# /with/ Import File - we do not want to mix them.
10722	shared_flag_aix='-shared'
10723	shared_flag_svr4='-shared $wl-G'
10724      else
10725	# not using gcc
10726	if test ia64 = "$host_cpu"; then
10727	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10728	# chokes on -Wl,-G. The following line is correct:
10729	  shared_flag='-G'
10730	else
10731	  if test yes = "$aix_use_runtimelinking"; then
10732	    shared_flag='$wl-G'
10733	  else
10734	    shared_flag='$wl-bM:SRE'
10735	  fi
10736	  shared_flag_aix='$wl-bM:SRE'
10737	  shared_flag_svr4='$wl-G'
10738	fi
10739      fi
10740
10741      export_dynamic_flag_spec='$wl-bexpall'
10742      # It seems that -bexpall does not export symbols beginning with
10743      # underscore (_), so it is better to generate a list of symbols to export.
10744      always_export_symbols=yes
10745      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10746	# Warning - without using the other runtime loading flags (-brtl),
10747	# -berok will link without error, but may produce a broken library.
10748	allow_undefined_flag='-berok'
10749        # Determine the default libpath from the value encoded in an
10750        # empty executable.
10751        if test set = "${lt_cv_aix_libpath+set}"; then
10752  aix_libpath=$lt_cv_aix_libpath
10753else
10754  if test ${lt_cv_aix_libpath_+y}
10755then :
10756  printf %s "(cached) " >&6
10757else $as_nop
10758  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10759/* end confdefs.h.  */
10760
10761int
10762main (void)
10763{
10764
10765  ;
10766  return 0;
10767}
10768_ACEOF
10769if ac_fn_c_try_link "$LINENO"
10770then :
10771
10772  lt_aix_libpath_sed='
10773      /Import File Strings/,/^$/ {
10774	  /^0/ {
10775	      s/^0  *\([^ ]*\) *$/\1/
10776	      p
10777	  }
10778      }'
10779  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10780  # Check for a 64-bit object if we didn't find anything.
10781  if test -z "$lt_cv_aix_libpath_"; then
10782    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10783  fi
10784fi
10785rm -f core conftest.err conftest.$ac_objext conftest.beam \
10786    conftest$ac_exeext conftest.$ac_ext
10787  if test -z "$lt_cv_aix_libpath_"; then
10788    lt_cv_aix_libpath_=/usr/lib:/lib
10789  fi
10790
10791fi
10792
10793  aix_libpath=$lt_cv_aix_libpath_
10794fi
10795
10796        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10797        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
10798      else
10799	if test ia64 = "$host_cpu"; then
10800	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10801	  allow_undefined_flag="-z nodefs"
10802	  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"
10803	else
10804	 # Determine the default libpath from the value encoded in an
10805	 # empty executable.
10806	 if test set = "${lt_cv_aix_libpath+set}"; then
10807  aix_libpath=$lt_cv_aix_libpath
10808else
10809  if test ${lt_cv_aix_libpath_+y}
10810then :
10811  printf %s "(cached) " >&6
10812else $as_nop
10813  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10814/* end confdefs.h.  */
10815
10816int
10817main (void)
10818{
10819
10820  ;
10821  return 0;
10822}
10823_ACEOF
10824if ac_fn_c_try_link "$LINENO"
10825then :
10826
10827  lt_aix_libpath_sed='
10828      /Import File Strings/,/^$/ {
10829	  /^0/ {
10830	      s/^0  *\([^ ]*\) *$/\1/
10831	      p
10832	  }
10833      }'
10834  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10835  # Check for a 64-bit object if we didn't find anything.
10836  if test -z "$lt_cv_aix_libpath_"; then
10837    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10838  fi
10839fi
10840rm -f core conftest.err conftest.$ac_objext conftest.beam \
10841    conftest$ac_exeext conftest.$ac_ext
10842  if test -z "$lt_cv_aix_libpath_"; then
10843    lt_cv_aix_libpath_=/usr/lib:/lib
10844  fi
10845
10846fi
10847
10848  aix_libpath=$lt_cv_aix_libpath_
10849fi
10850
10851	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10852	  # Warning - without using the other run time loading flags,
10853	  # -berok will link without error, but may produce a broken library.
10854	  no_undefined_flag=' $wl-bernotok'
10855	  allow_undefined_flag=' $wl-berok'
10856	  if test yes = "$with_gnu_ld"; then
10857	    # We only use this code for GNU lds that support --whole-archive.
10858	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10859	  else
10860	    # Exported symbols can be pulled into shared objects from archives
10861	    whole_archive_flag_spec='$convenience'
10862	  fi
10863	  archive_cmds_need_lc=yes
10864	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10865	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10866	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10867	  if test svr4 != "$with_aix_soname"; then
10868	    # This is similar to how AIX traditionally builds its shared libraries.
10869	    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'
10870	  fi
10871	  if test aix != "$with_aix_soname"; then
10872	    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'
10873	  else
10874	    # used by -dlpreopen to get the symbols
10875	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10876	  fi
10877	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10878	fi
10879      fi
10880      ;;
10881
10882    amigaos*)
10883      case $host_cpu in
10884      powerpc)
10885            # see comment about AmigaOS4 .so support
10886            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10887            archive_expsym_cmds=''
10888        ;;
10889      m68k)
10890            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)'
10891            hardcode_libdir_flag_spec='-L$libdir'
10892            hardcode_minus_L=yes
10893        ;;
10894      esac
10895      ;;
10896
10897    bsdi[45]*)
10898      export_dynamic_flag_spec=-rdynamic
10899      ;;
10900
10901    cygwin* | mingw* | pw32* | cegcc*)
10902      # When not using gcc, we currently assume that we are using
10903      # Microsoft Visual C++.
10904      # hardcode_libdir_flag_spec is actually meaningless, as there is
10905      # no search path for DLLs.
10906      case $cc_basename in
10907      cl*)
10908	# Native MSVC
10909	hardcode_libdir_flag_spec=' '
10910	allow_undefined_flag=unsupported
10911	always_export_symbols=yes
10912	file_list_spec='@'
10913	# Tell ltmain to make .lib files, not .a files.
10914	libext=lib
10915	# Tell ltmain to make .dll files, not .so files.
10916	shrext_cmds=.dll
10917	# FIXME: Setting linknames here is a bad hack.
10918	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10919	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10920            cp "$export_symbols" "$output_objdir/$soname.def";
10921            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10922          else
10923            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10924          fi~
10925          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10926          linknames='
10927	# The linker will not automatically build a static lib if we build a DLL.
10928	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10929	enable_shared_with_static_runtimes=yes
10930	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10931	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10932	# Don't use ranlib
10933	old_postinstall_cmds='chmod 644 $oldlib'
10934	postlink_cmds='lt_outputfile="@OUTPUT@"~
10935          lt_tool_outputfile="@TOOL_OUTPUT@"~
10936          case $lt_outputfile in
10937            *.exe|*.EXE) ;;
10938            *)
10939              lt_outputfile=$lt_outputfile.exe
10940              lt_tool_outputfile=$lt_tool_outputfile.exe
10941              ;;
10942          esac~
10943          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10944            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10945            $RM "$lt_outputfile.manifest";
10946          fi'
10947	;;
10948      *)
10949	# Assume MSVC wrapper
10950	hardcode_libdir_flag_spec=' '
10951	allow_undefined_flag=unsupported
10952	# Tell ltmain to make .lib files, not .a files.
10953	libext=lib
10954	# Tell ltmain to make .dll files, not .so files.
10955	shrext_cmds=.dll
10956	# FIXME: Setting linknames here is a bad hack.
10957	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10958	# The linker will automatically build a .lib file if we build a DLL.
10959	old_archive_from_new_cmds='true'
10960	# FIXME: Should let the user specify the lib program.
10961	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10962	enable_shared_with_static_runtimes=yes
10963	;;
10964      esac
10965      ;;
10966
10967    darwin* | rhapsody*)
10968
10969
10970  archive_cmds_need_lc=no
10971  hardcode_direct=no
10972  hardcode_automatic=yes
10973  hardcode_shlibpath_var=unsupported
10974  if test yes = "$lt_cv_ld_force_load"; then
10975    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\"`'
10976
10977  else
10978    whole_archive_flag_spec=''
10979  fi
10980  link_all_deplibs=yes
10981  allow_undefined_flag=$_lt_dar_allow_undefined
10982  case $cc_basename in
10983     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10984     *) _lt_dar_can_shared=$GCC ;;
10985  esac
10986  if test yes = "$_lt_dar_can_shared"; then
10987    output_verbose_link_cmd=func_echo_all
10988    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10989    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10990    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"
10991    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"
10992
10993  else
10994  ld_shlibs=no
10995  fi
10996
10997      ;;
10998
10999    dgux*)
11000      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11001      hardcode_libdir_flag_spec='-L$libdir'
11002      hardcode_shlibpath_var=no
11003      ;;
11004
11005    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11006    # support.  Future versions do this automatically, but an explicit c++rt0.o
11007    # does not break anything, and helps significantly (at the cost of a little
11008    # extra space).
11009    freebsd2.2*)
11010      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11011      hardcode_libdir_flag_spec='-R$libdir'
11012      hardcode_direct=yes
11013      hardcode_shlibpath_var=no
11014      ;;
11015
11016    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11017    freebsd2.*)
11018      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11019      hardcode_direct=yes
11020      hardcode_minus_L=yes
11021      hardcode_shlibpath_var=no
11022      ;;
11023
11024    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11025    freebsd* | dragonfly*)
11026      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11027      hardcode_libdir_flag_spec='-R$libdir'
11028      hardcode_direct=yes
11029      hardcode_shlibpath_var=no
11030      ;;
11031
11032    hpux9*)
11033      if test yes = "$GCC"; then
11034	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'
11035      else
11036	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'
11037      fi
11038      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11039      hardcode_libdir_separator=:
11040      hardcode_direct=yes
11041
11042      # hardcode_minus_L: Not really in the search PATH,
11043      # but as the default location of the library.
11044      hardcode_minus_L=yes
11045      export_dynamic_flag_spec='$wl-E'
11046      ;;
11047
11048    hpux10*)
11049      if test yes,no = "$GCC,$with_gnu_ld"; then
11050	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11051      else
11052	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11053      fi
11054      if test no = "$with_gnu_ld"; then
11055	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11056	hardcode_libdir_separator=:
11057	hardcode_direct=yes
11058	hardcode_direct_absolute=yes
11059	export_dynamic_flag_spec='$wl-E'
11060	# hardcode_minus_L: Not really in the search PATH,
11061	# but as the default location of the library.
11062	hardcode_minus_L=yes
11063      fi
11064      ;;
11065
11066    hpux11*)
11067      if test yes,no = "$GCC,$with_gnu_ld"; then
11068	case $host_cpu in
11069	hppa*64*)
11070	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11071	  ;;
11072	ia64*)
11073	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11074	  ;;
11075	*)
11076	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11077	  ;;
11078	esac
11079      else
11080	case $host_cpu in
11081	hppa*64*)
11082	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11083	  ;;
11084	ia64*)
11085	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11086	  ;;
11087	*)
11088
11089	  # Older versions of the 11.00 compiler do not understand -b yet
11090	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11091	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11092printf %s "checking if $CC understands -b... " >&6; }
11093if test ${lt_cv_prog_compiler__b+y}
11094then :
11095  printf %s "(cached) " >&6
11096else $as_nop
11097  lt_cv_prog_compiler__b=no
11098   save_LDFLAGS=$LDFLAGS
11099   LDFLAGS="$LDFLAGS -b"
11100   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11101   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11102     # The linker can only warn and ignore the option if not recognized
11103     # So say no if there are warnings
11104     if test -s conftest.err; then
11105       # Append any errors to the config.log.
11106       cat conftest.err 1>&5
11107       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11108       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11109       if diff conftest.exp conftest.er2 >/dev/null; then
11110         lt_cv_prog_compiler__b=yes
11111       fi
11112     else
11113       lt_cv_prog_compiler__b=yes
11114     fi
11115   fi
11116   $RM -r conftest*
11117   LDFLAGS=$save_LDFLAGS
11118
11119fi
11120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11121printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11122
11123if test yes = "$lt_cv_prog_compiler__b"; then
11124    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11125else
11126    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11127fi
11128
11129	  ;;
11130	esac
11131      fi
11132      if test no = "$with_gnu_ld"; then
11133	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11134	hardcode_libdir_separator=:
11135
11136	case $host_cpu in
11137	hppa*64*|ia64*)
11138	  hardcode_direct=no
11139	  hardcode_shlibpath_var=no
11140	  ;;
11141	*)
11142	  hardcode_direct=yes
11143	  hardcode_direct_absolute=yes
11144	  export_dynamic_flag_spec='$wl-E'
11145
11146	  # hardcode_minus_L: Not really in the search PATH,
11147	  # but as the default location of the library.
11148	  hardcode_minus_L=yes
11149	  ;;
11150	esac
11151      fi
11152      ;;
11153
11154    irix5* | irix6* | nonstopux*)
11155      if test yes = "$GCC"; then
11156	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'
11157	# Try to use the -exported_symbol ld option, if it does not
11158	# work, assume that -exports_file does not work either and
11159	# implicitly export all symbols.
11160	# This should be the same for all languages, so no per-tag cache variable.
11161	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11162printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11163if test ${lt_cv_irix_exported_symbol+y}
11164then :
11165  printf %s "(cached) " >&6
11166else $as_nop
11167  save_LDFLAGS=$LDFLAGS
11168	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11169	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11170/* end confdefs.h.  */
11171int foo (void) { return 0; }
11172_ACEOF
11173if ac_fn_c_try_link "$LINENO"
11174then :
11175  lt_cv_irix_exported_symbol=yes
11176else $as_nop
11177  lt_cv_irix_exported_symbol=no
11178fi
11179rm -f core conftest.err conftest.$ac_objext conftest.beam \
11180    conftest$ac_exeext conftest.$ac_ext
11181           LDFLAGS=$save_LDFLAGS
11182fi
11183{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11184printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11185	if test yes = "$lt_cv_irix_exported_symbol"; then
11186          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'
11187	fi
11188	link_all_deplibs=no
11189      else
11190	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'
11191	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'
11192      fi
11193      archive_cmds_need_lc='no'
11194      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11195      hardcode_libdir_separator=:
11196      inherit_rpath=yes
11197      link_all_deplibs=yes
11198      ;;
11199
11200    linux*)
11201      case $cc_basename in
11202      tcc*)
11203	# Fabrice Bellard et al's Tiny C Compiler
11204	ld_shlibs=yes
11205	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11206	;;
11207      esac
11208      ;;
11209
11210    netbsd* | netbsdelf*-gnu)
11211      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11212	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11213      else
11214	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11215      fi
11216      hardcode_libdir_flag_spec='-R$libdir'
11217      hardcode_direct=yes
11218      hardcode_shlibpath_var=no
11219      ;;
11220
11221    newsos6)
11222      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11223      hardcode_direct=yes
11224      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11225      hardcode_libdir_separator=:
11226      hardcode_shlibpath_var=no
11227      ;;
11228
11229    *nto* | *qnx*)
11230      ;;
11231
11232    openbsd* | bitrig*)
11233      if test -f /usr/libexec/ld.so; then
11234	hardcode_direct=yes
11235	hardcode_shlibpath_var=no
11236	hardcode_direct_absolute=yes
11237	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11238	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11239	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11240	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11241	  export_dynamic_flag_spec='$wl-E'
11242	else
11243	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11244	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11245	fi
11246      else
11247	ld_shlibs=no
11248      fi
11249      ;;
11250
11251    os2*)
11252      hardcode_libdir_flag_spec='-L$libdir'
11253      hardcode_minus_L=yes
11254      allow_undefined_flag=unsupported
11255      shrext_cmds=.dll
11256      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11257	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11258	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11259	$ECHO EXPORTS >> $output_objdir/$libname.def~
11260	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11261	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11262	emximp -o $lib $output_objdir/$libname.def'
11263      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11264	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11265	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11266	$ECHO EXPORTS >> $output_objdir/$libname.def~
11267	prefix_cmds="$SED"~
11268	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11269	  prefix_cmds="$prefix_cmds -e 1d";
11270	fi~
11271	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11272	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11273	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11274	emximp -o $lib $output_objdir/$libname.def'
11275      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11276      enable_shared_with_static_runtimes=yes
11277      ;;
11278
11279    osf3*)
11280      if test yes = "$GCC"; then
11281	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11282	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'
11283      else
11284	allow_undefined_flag=' -expect_unresolved \*'
11285	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'
11286      fi
11287      archive_cmds_need_lc='no'
11288      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11289      hardcode_libdir_separator=:
11290      ;;
11291
11292    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11293      if test yes = "$GCC"; then
11294	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11295	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'
11296	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11297      else
11298	allow_undefined_flag=' -expect_unresolved \*'
11299	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'
11300	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~
11301          $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'
11302
11303	# Both c and cxx compiler support -rpath directly
11304	hardcode_libdir_flag_spec='-rpath $libdir'
11305      fi
11306      archive_cmds_need_lc='no'
11307      hardcode_libdir_separator=:
11308      ;;
11309
11310    solaris*)
11311      no_undefined_flag=' -z defs'
11312      if test yes = "$GCC"; then
11313	wlarc='$wl'
11314	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11315	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11316          $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'
11317      else
11318	case `$CC -V 2>&1` in
11319	*"Compilers 5.0"*)
11320	  wlarc=''
11321	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11322	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11323            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11324	  ;;
11325	*)
11326	  wlarc='$wl'
11327	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11328	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11329            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11330	  ;;
11331	esac
11332      fi
11333      hardcode_libdir_flag_spec='-R$libdir'
11334      hardcode_shlibpath_var=no
11335      case $host_os in
11336      solaris2.[0-5] | solaris2.[0-5].*) ;;
11337      *)
11338	# The compiler driver will combine and reorder linker options,
11339	# but understands '-z linker_flag'.  GCC discards it without '$wl',
11340	# but is careful enough not to reorder.
11341	# Supported since Solaris 2.6 (maybe 2.5.1?)
11342	if test yes = "$GCC"; then
11343	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11344	else
11345	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11346	fi
11347	;;
11348      esac
11349      link_all_deplibs=yes
11350      ;;
11351
11352    sunos4*)
11353      if test sequent = "$host_vendor"; then
11354	# Use $CC to link under sequent, because it throws in some extra .o
11355	# files that make .init and .fini sections work.
11356	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11357      else
11358	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11359      fi
11360      hardcode_libdir_flag_spec='-L$libdir'
11361      hardcode_direct=yes
11362      hardcode_minus_L=yes
11363      hardcode_shlibpath_var=no
11364      ;;
11365
11366    sysv4)
11367      case $host_vendor in
11368	sni)
11369	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11370	  hardcode_direct=yes # is this really true???
11371	;;
11372	siemens)
11373	  ## LD is ld it makes a PLAMLIB
11374	  ## CC just makes a GrossModule.
11375	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11376	  reload_cmds='$CC -r -o $output$reload_objs'
11377	  hardcode_direct=no
11378        ;;
11379	motorola)
11380	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11381	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11382	;;
11383      esac
11384      runpath_var='LD_RUN_PATH'
11385      hardcode_shlibpath_var=no
11386      ;;
11387
11388    sysv4.3*)
11389      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11390      hardcode_shlibpath_var=no
11391      export_dynamic_flag_spec='-Bexport'
11392      ;;
11393
11394    sysv4*MP*)
11395      if test -d /usr/nec; then
11396	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11397	hardcode_shlibpath_var=no
11398	runpath_var=LD_RUN_PATH
11399	hardcode_runpath_var=yes
11400	ld_shlibs=yes
11401      fi
11402      ;;
11403
11404    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11405      no_undefined_flag='$wl-z,text'
11406      archive_cmds_need_lc=no
11407      hardcode_shlibpath_var=no
11408      runpath_var='LD_RUN_PATH'
11409
11410      if test yes = "$GCC"; then
11411	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11412	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11413      else
11414	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11415	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11416      fi
11417      ;;
11418
11419    sysv5* | sco3.2v5* | sco5v6*)
11420      # Note: We CANNOT use -z defs as we might desire, because we do not
11421      # link with -lc, and that would cause any symbols used from libc to
11422      # always be unresolved, which means just about no library would
11423      # ever link correctly.  If we're not using GNU ld we use -z text
11424      # though, which does catch some bad symbols but isn't as heavy-handed
11425      # as -z defs.
11426      no_undefined_flag='$wl-z,text'
11427      allow_undefined_flag='$wl-z,nodefs'
11428      archive_cmds_need_lc=no
11429      hardcode_shlibpath_var=no
11430      hardcode_libdir_flag_spec='$wl-R,$libdir'
11431      hardcode_libdir_separator=':'
11432      link_all_deplibs=yes
11433      export_dynamic_flag_spec='$wl-Bexport'
11434      runpath_var='LD_RUN_PATH'
11435
11436      if test yes = "$GCC"; then
11437	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11438	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11439      else
11440	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11441	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11442      fi
11443      ;;
11444
11445    uts4*)
11446      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11447      hardcode_libdir_flag_spec='-L$libdir'
11448      hardcode_shlibpath_var=no
11449      ;;
11450
11451    *)
11452      ld_shlibs=no
11453      ;;
11454    esac
11455
11456    if test sni = "$host_vendor"; then
11457      case $host in
11458      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11459	export_dynamic_flag_spec='$wl-Blargedynsym'
11460	;;
11461      esac
11462    fi
11463  fi
11464
11465{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11466printf "%s\n" "$ld_shlibs" >&6; }
11467test no = "$ld_shlibs" && can_build_shared=no
11468
11469with_gnu_ld=$with_gnu_ld
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485#
11486# Do we need to explicitly link libc?
11487#
11488case "x$archive_cmds_need_lc" in
11489x|xyes)
11490  # Assume -lc should be added
11491  archive_cmds_need_lc=yes
11492
11493  if test yes,yes = "$GCC,$enable_shared"; then
11494    case $archive_cmds in
11495    *'~'*)
11496      # FIXME: we may have to deal with multi-command sequences.
11497      ;;
11498    '$CC '*)
11499      # Test whether the compiler implicitly links with -lc since on some
11500      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11501      # to ld, don't add -lc before -lgcc.
11502      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11503printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11504if test ${lt_cv_archive_cmds_need_lc+y}
11505then :
11506  printf %s "(cached) " >&6
11507else $as_nop
11508  $RM conftest*
11509	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11510
11511	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11512  (eval $ac_compile) 2>&5
11513  ac_status=$?
11514  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11515  test $ac_status = 0; } 2>conftest.err; then
11516	  soname=conftest
11517	  lib=conftest
11518	  libobjs=conftest.$ac_objext
11519	  deplibs=
11520	  wl=$lt_prog_compiler_wl
11521	  pic_flag=$lt_prog_compiler_pic
11522	  compiler_flags=-v
11523	  linker_flags=-v
11524	  verstring=
11525	  output_objdir=.
11526	  libname=conftest
11527	  lt_save_allow_undefined_flag=$allow_undefined_flag
11528	  allow_undefined_flag=
11529	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11530  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11531  ac_status=$?
11532  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11533  test $ac_status = 0; }
11534	  then
11535	    lt_cv_archive_cmds_need_lc=no
11536	  else
11537	    lt_cv_archive_cmds_need_lc=yes
11538	  fi
11539	  allow_undefined_flag=$lt_save_allow_undefined_flag
11540	else
11541	  cat conftest.err 1>&5
11542	fi
11543	$RM conftest*
11544
11545fi
11546{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11547printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11548      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11549      ;;
11550    esac
11551  fi
11552  ;;
11553esac
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11707printf %s "checking dynamic linker characteristics... " >&6; }
11708
11709if test yes = "$GCC"; then
11710  case $host_os in
11711    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11712    *) lt_awk_arg='/^libraries:/' ;;
11713  esac
11714  case $host_os in
11715    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11716    *) lt_sed_strip_eq='s|=/|/|g' ;;
11717  esac
11718  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11719  case $lt_search_path_spec in
11720  *\;*)
11721    # if the path contains ";" then we assume it to be the separator
11722    # otherwise default to the standard path separator (i.e. ":") - it is
11723    # assumed that no part of a normal pathname contains ";" but that should
11724    # okay in the real world where ";" in dirpaths is itself problematic.
11725    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11726    ;;
11727  *)
11728    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11729    ;;
11730  esac
11731  # Ok, now we have the path, separated by spaces, we can step through it
11732  # and add multilib dir if necessary...
11733  lt_tmp_lt_search_path_spec=
11734  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11735  # ...but if some path component already ends with the multilib dir we assume
11736  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11737  case "$lt_multi_os_dir; $lt_search_path_spec " in
11738  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11739    lt_multi_os_dir=
11740    ;;
11741  esac
11742  for lt_sys_path in $lt_search_path_spec; do
11743    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11744      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11745    elif test -n "$lt_multi_os_dir"; then
11746      test -d "$lt_sys_path" && \
11747	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11748    fi
11749  done
11750  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11751BEGIN {RS = " "; FS = "/|\n";} {
11752  lt_foo = "";
11753  lt_count = 0;
11754  for (lt_i = NF; lt_i > 0; lt_i--) {
11755    if ($lt_i != "" && $lt_i != ".") {
11756      if ($lt_i == "..") {
11757        lt_count++;
11758      } else {
11759        if (lt_count == 0) {
11760          lt_foo = "/" $lt_i lt_foo;
11761        } else {
11762          lt_count--;
11763        }
11764      }
11765    }
11766  }
11767  if (lt_foo != "") { lt_freq[lt_foo]++; }
11768  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11769}'`
11770  # AWK program above erroneously prepends '/' to C:/dos/paths
11771  # for these hosts.
11772  case $host_os in
11773    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11774      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11775  esac
11776  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11777else
11778  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11779fi
11780library_names_spec=
11781libname_spec='lib$name'
11782soname_spec=
11783shrext_cmds=.so
11784postinstall_cmds=
11785postuninstall_cmds=
11786finish_cmds=
11787finish_eval=
11788shlibpath_var=
11789shlibpath_overrides_runpath=unknown
11790version_type=none
11791dynamic_linker="$host_os ld.so"
11792sys_lib_dlsearch_path_spec="/lib /usr/lib"
11793need_lib_prefix=unknown
11794hardcode_into_libs=no
11795
11796# when you set need_version to no, make sure it does not cause -set_version
11797# flags to be left without arguments
11798need_version=unknown
11799
11800
11801
11802case $host_os in
11803aix3*)
11804  version_type=linux # correct to gnu/linux during the next big refactor
11805  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11806  shlibpath_var=LIBPATH
11807
11808  # AIX 3 has no versioning support, so we append a major version to the name.
11809  soname_spec='$libname$release$shared_ext$major'
11810  ;;
11811
11812aix[4-9]*)
11813  version_type=linux # correct to gnu/linux during the next big refactor
11814  need_lib_prefix=no
11815  need_version=no
11816  hardcode_into_libs=yes
11817  if test ia64 = "$host_cpu"; then
11818    # AIX 5 supports IA64
11819    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11820    shlibpath_var=LD_LIBRARY_PATH
11821  else
11822    # With GCC up to 2.95.x, collect2 would create an import file
11823    # for dependence libraries.  The import file would start with
11824    # the line '#! .'.  This would cause the generated library to
11825    # depend on '.', always an invalid library.  This was fixed in
11826    # development snapshots of GCC prior to 3.0.
11827    case $host_os in
11828      aix4 | aix4.[01] | aix4.[01].*)
11829      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11830	   echo ' yes '
11831	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11832	:
11833      else
11834	can_build_shared=no
11835      fi
11836      ;;
11837    esac
11838    # Using Import Files as archive members, it is possible to support
11839    # filename-based versioning of shared library archives on AIX. While
11840    # this would work for both with and without runtime linking, it will
11841    # prevent static linking of such archives. So we do filename-based
11842    # shared library versioning with .so extension only, which is used
11843    # when both runtime linking and shared linking is enabled.
11844    # Unfortunately, runtime linking may impact performance, so we do
11845    # not want this to be the default eventually. Also, we use the
11846    # versioned .so libs for executables only if there is the -brtl
11847    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11848    # To allow for filename-based versioning support, we need to create
11849    # libNAME.so.V as an archive file, containing:
11850    # *) an Import File, referring to the versioned filename of the
11851    #    archive as well as the shared archive member, telling the
11852    #    bitwidth (32 or 64) of that shared object, and providing the
11853    #    list of exported symbols of that shared object, eventually
11854    #    decorated with the 'weak' keyword
11855    # *) the shared object with the F_LOADONLY flag set, to really avoid
11856    #    it being seen by the linker.
11857    # At run time we better use the real file rather than another symlink,
11858    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11859
11860    case $with_aix_soname,$aix_use_runtimelinking in
11861    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11862    # soname into executable. Probably we can add versioning support to
11863    # collect2, so additional links can be useful in future.
11864    aix,yes) # traditional libtool
11865      dynamic_linker='AIX unversionable lib.so'
11866      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11867      # instead of lib<name>.a to let people know that these are not
11868      # typical AIX shared libraries.
11869      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11870      ;;
11871    aix,no) # traditional AIX only
11872      dynamic_linker='AIX lib.a(lib.so.V)'
11873      # We preserve .a as extension for shared libraries through AIX4.2
11874      # and later when we are not doing run time linking.
11875      library_names_spec='$libname$release.a $libname.a'
11876      soname_spec='$libname$release$shared_ext$major'
11877      ;;
11878    svr4,*) # full svr4 only
11879      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11880      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11881      # We do not specify a path in Import Files, so LIBPATH fires.
11882      shlibpath_overrides_runpath=yes
11883      ;;
11884    *,yes) # both, prefer svr4
11885      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11886      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11887      # unpreferred sharedlib libNAME.a needs extra handling
11888      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"'
11889      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"'
11890      # We do not specify a path in Import Files, so LIBPATH fires.
11891      shlibpath_overrides_runpath=yes
11892      ;;
11893    *,no) # both, prefer aix
11894      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11895      library_names_spec='$libname$release.a $libname.a'
11896      soname_spec='$libname$release$shared_ext$major'
11897      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11898      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)'
11899      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"'
11900      ;;
11901    esac
11902    shlibpath_var=LIBPATH
11903  fi
11904  ;;
11905
11906amigaos*)
11907  case $host_cpu in
11908  powerpc)
11909    # Since July 2007 AmigaOS4 officially supports .so libraries.
11910    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11911    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11912    ;;
11913  m68k)
11914    library_names_spec='$libname.ixlibrary $libname.a'
11915    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11916    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'
11917    ;;
11918  esac
11919  ;;
11920
11921beos*)
11922  library_names_spec='$libname$shared_ext'
11923  dynamic_linker="$host_os ld.so"
11924  shlibpath_var=LIBRARY_PATH
11925  ;;
11926
11927bsdi[45]*)
11928  version_type=linux # correct to gnu/linux during the next big refactor
11929  need_version=no
11930  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11931  soname_spec='$libname$release$shared_ext$major'
11932  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11933  shlibpath_var=LD_LIBRARY_PATH
11934  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11935  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11936  # the default ld.so.conf also contains /usr/contrib/lib and
11937  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11938  # libtool to hard-code these into programs
11939  ;;
11940
11941cygwin* | mingw* | pw32* | cegcc*)
11942  version_type=windows
11943  shrext_cmds=.dll
11944  need_version=no
11945  need_lib_prefix=no
11946
11947  case $GCC,$cc_basename in
11948  yes,*)
11949    # gcc
11950    library_names_spec='$libname.dll.a'
11951    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11952    postinstall_cmds='base_file=`basename \$file`~
11953      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11954      dldir=$destdir/`dirname \$dlpath`~
11955      test -d \$dldir || mkdir -p \$dldir~
11956      $install_prog $dir/$dlname \$dldir/$dlname~
11957      chmod a+x \$dldir/$dlname~
11958      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11959        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11960      fi'
11961    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11962      dlpath=$dir/\$dldll~
11963       $RM \$dlpath'
11964    shlibpath_overrides_runpath=yes
11965
11966    case $host_os in
11967    cygwin*)
11968      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11969      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11970
11971      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11972      ;;
11973    mingw* | cegcc*)
11974      # MinGW DLLs use traditional 'lib' prefix
11975      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11976      ;;
11977    pw32*)
11978      # pw32 DLLs use 'pw' prefix rather than 'lib'
11979      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11980      ;;
11981    esac
11982    dynamic_linker='Win32 ld.exe'
11983    ;;
11984
11985  *,cl*)
11986    # Native MSVC
11987    libname_spec='$name'
11988    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11989    library_names_spec='$libname.dll.lib'
11990
11991    case $build_os in
11992    mingw*)
11993      sys_lib_search_path_spec=
11994      lt_save_ifs=$IFS
11995      IFS=';'
11996      for lt_path in $LIB
11997      do
11998        IFS=$lt_save_ifs
11999        # Let DOS variable expansion print the short 8.3 style file name.
12000        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12001        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12002      done
12003      IFS=$lt_save_ifs
12004      # Convert to MSYS style.
12005      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12006      ;;
12007    cygwin*)
12008      # Convert to unix form, then to dos form, then back to unix form
12009      # but this time dos style (no spaces!) so that the unix form looks
12010      # like /cygdrive/c/PROGRA~1:/cygdr...
12011      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12012      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12013      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12014      ;;
12015    *)
12016      sys_lib_search_path_spec=$LIB
12017      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12018        # It is most probably a Windows format PATH.
12019        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12020      else
12021        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12022      fi
12023      # FIXME: find the short name or the path components, as spaces are
12024      # common. (e.g. "Program Files" -> "PROGRA~1")
12025      ;;
12026    esac
12027
12028    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12029    postinstall_cmds='base_file=`basename \$file`~
12030      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12031      dldir=$destdir/`dirname \$dlpath`~
12032      test -d \$dldir || mkdir -p \$dldir~
12033      $install_prog $dir/$dlname \$dldir/$dlname'
12034    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12035      dlpath=$dir/\$dldll~
12036       $RM \$dlpath'
12037    shlibpath_overrides_runpath=yes
12038    dynamic_linker='Win32 link.exe'
12039    ;;
12040
12041  *)
12042    # Assume MSVC wrapper
12043    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12044    dynamic_linker='Win32 ld.exe'
12045    ;;
12046  esac
12047  # FIXME: first we should search . and the directory the executable is in
12048  shlibpath_var=PATH
12049  ;;
12050
12051darwin* | rhapsody*)
12052  dynamic_linker="$host_os dyld"
12053  version_type=darwin
12054  need_lib_prefix=no
12055  need_version=no
12056  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12057  soname_spec='$libname$release$major$shared_ext'
12058  shlibpath_overrides_runpath=yes
12059  shlibpath_var=DYLD_LIBRARY_PATH
12060  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12061
12062  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12063  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12064  ;;
12065
12066dgux*)
12067  version_type=linux # correct to gnu/linux during the next big refactor
12068  need_lib_prefix=no
12069  need_version=no
12070  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12071  soname_spec='$libname$release$shared_ext$major'
12072  shlibpath_var=LD_LIBRARY_PATH
12073  ;;
12074
12075freebsd* | dragonfly*)
12076  # DragonFly does not have aout.  When/if they implement a new
12077  # versioning mechanism, adjust this.
12078  if test -x /usr/bin/objformat; then
12079    objformat=`/usr/bin/objformat`
12080  else
12081    case $host_os in
12082    freebsd[23].*) objformat=aout ;;
12083    *) objformat=elf ;;
12084    esac
12085  fi
12086  version_type=freebsd-$objformat
12087  case $version_type in
12088    freebsd-elf*)
12089      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12090      soname_spec='$libname$release$shared_ext$major'
12091      need_version=no
12092      need_lib_prefix=no
12093      ;;
12094    freebsd-*)
12095      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12096      need_version=yes
12097      ;;
12098  esac
12099  shlibpath_var=LD_LIBRARY_PATH
12100  case $host_os in
12101  freebsd2.*)
12102    shlibpath_overrides_runpath=yes
12103    ;;
12104  freebsd3.[01]* | freebsdelf3.[01]*)
12105    shlibpath_overrides_runpath=yes
12106    hardcode_into_libs=yes
12107    ;;
12108  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12109  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12110    shlibpath_overrides_runpath=no
12111    hardcode_into_libs=yes
12112    ;;
12113  *) # from 4.6 on, and DragonFly
12114    shlibpath_overrides_runpath=yes
12115    hardcode_into_libs=yes
12116    ;;
12117  esac
12118  ;;
12119
12120haiku*)
12121  version_type=linux # correct to gnu/linux during the next big refactor
12122  need_lib_prefix=no
12123  need_version=no
12124  dynamic_linker="$host_os runtime_loader"
12125  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12126  soname_spec='$libname$release$shared_ext$major'
12127  shlibpath_var=LIBRARY_PATH
12128  shlibpath_overrides_runpath=no
12129  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12130  hardcode_into_libs=yes
12131  ;;
12132
12133hpux9* | hpux10* | hpux11*)
12134  # Give a soname corresponding to the major version so that dld.sl refuses to
12135  # link against other versions.
12136  version_type=sunos
12137  need_lib_prefix=no
12138  need_version=no
12139  case $host_cpu in
12140  ia64*)
12141    shrext_cmds='.so'
12142    hardcode_into_libs=yes
12143    dynamic_linker="$host_os dld.so"
12144    shlibpath_var=LD_LIBRARY_PATH
12145    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12146    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12147    soname_spec='$libname$release$shared_ext$major'
12148    if test 32 = "$HPUX_IA64_MODE"; then
12149      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12150      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12151    else
12152      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12153      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12154    fi
12155    ;;
12156  hppa*64*)
12157    shrext_cmds='.sl'
12158    hardcode_into_libs=yes
12159    dynamic_linker="$host_os dld.sl"
12160    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12161    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12162    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12163    soname_spec='$libname$release$shared_ext$major'
12164    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12165    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12166    ;;
12167  *)
12168    shrext_cmds='.sl'
12169    dynamic_linker="$host_os dld.sl"
12170    shlibpath_var=SHLIB_PATH
12171    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12172    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12173    soname_spec='$libname$release$shared_ext$major'
12174    ;;
12175  esac
12176  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12177  postinstall_cmds='chmod 555 $lib'
12178  # or fails outright, so override atomically:
12179  install_override_mode=555
12180  ;;
12181
12182interix[3-9]*)
12183  version_type=linux # correct to gnu/linux during the next big refactor
12184  need_lib_prefix=no
12185  need_version=no
12186  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12187  soname_spec='$libname$release$shared_ext$major'
12188  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12189  shlibpath_var=LD_LIBRARY_PATH
12190  shlibpath_overrides_runpath=no
12191  hardcode_into_libs=yes
12192  ;;
12193
12194irix5* | irix6* | nonstopux*)
12195  case $host_os in
12196    nonstopux*) version_type=nonstopux ;;
12197    *)
12198	if test yes = "$lt_cv_prog_gnu_ld"; then
12199		version_type=linux # correct to gnu/linux during the next big refactor
12200	else
12201		version_type=irix
12202	fi ;;
12203  esac
12204  need_lib_prefix=no
12205  need_version=no
12206  soname_spec='$libname$release$shared_ext$major'
12207  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12208  case $host_os in
12209  irix5* | nonstopux*)
12210    libsuff= shlibsuff=
12211    ;;
12212  *)
12213    case $LD in # libtool.m4 will add one of these switches to LD
12214    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12215      libsuff= shlibsuff= libmagic=32-bit;;
12216    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12217      libsuff=32 shlibsuff=N32 libmagic=N32;;
12218    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12219      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12220    *) libsuff= shlibsuff= libmagic=never-match;;
12221    esac
12222    ;;
12223  esac
12224  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12225  shlibpath_overrides_runpath=no
12226  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12227  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12228  hardcode_into_libs=yes
12229  ;;
12230
12231# No shared lib support for Linux oldld, aout, or coff.
12232linux*oldld* | linux*aout* | linux*coff*)
12233  dynamic_linker=no
12234  ;;
12235
12236linux*android*)
12237  version_type=none # Android doesn't support versioned libraries.
12238  need_lib_prefix=no
12239  need_version=no
12240  library_names_spec='$libname$release$shared_ext'
12241  soname_spec='$libname$release$shared_ext'
12242  finish_cmds=
12243  shlibpath_var=LD_LIBRARY_PATH
12244  shlibpath_overrides_runpath=yes
12245
12246  # This implies no fast_install, which is unacceptable.
12247  # Some rework will be needed to allow for fast_install
12248  # before this can be enabled.
12249  hardcode_into_libs=yes
12250
12251  dynamic_linker='Android linker'
12252  # Don't embed -rpath directories since the linker doesn't support them.
12253  hardcode_libdir_flag_spec='-L$libdir'
12254  ;;
12255
12256# This must be glibc/ELF.
12257linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12258  version_type=linux # correct to gnu/linux during the next big refactor
12259  need_lib_prefix=no
12260  need_version=no
12261  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12262  soname_spec='$libname$release$shared_ext$major'
12263  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12264  shlibpath_var=LD_LIBRARY_PATH
12265  shlibpath_overrides_runpath=no
12266
12267  # Some binutils ld are patched to set DT_RUNPATH
12268  if test ${lt_cv_shlibpath_overrides_runpath+y}
12269then :
12270  printf %s "(cached) " >&6
12271else $as_nop
12272  lt_cv_shlibpath_overrides_runpath=no
12273    save_LDFLAGS=$LDFLAGS
12274    save_libdir=$libdir
12275    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12276	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12277    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12278/* end confdefs.h.  */
12279
12280int
12281main (void)
12282{
12283
12284  ;
12285  return 0;
12286}
12287_ACEOF
12288if ac_fn_c_try_link "$LINENO"
12289then :
12290  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12291then :
12292  lt_cv_shlibpath_overrides_runpath=yes
12293fi
12294fi
12295rm -f core conftest.err conftest.$ac_objext conftest.beam \
12296    conftest$ac_exeext conftest.$ac_ext
12297    LDFLAGS=$save_LDFLAGS
12298    libdir=$save_libdir
12299
12300fi
12301
12302  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12303
12304  # This implies no fast_install, which is unacceptable.
12305  # Some rework will be needed to allow for fast_install
12306  # before this can be enabled.
12307  hardcode_into_libs=yes
12308
12309  # Ideally, we could use ldconfig to report *all* directores which are
12310  # searched for libraries, however this is still not possible.  Aside from not
12311  # being certain /sbin/ldconfig is available, command
12312  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12313  # even though it is searched at run-time.  Try to do the best guess by
12314  # appending ld.so.conf contents (and includes) to the search path.
12315  if test -f /etc/ld.so.conf; then
12316    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' ' '`
12317    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12318  fi
12319
12320  # We used to test for /lib/ld.so.1 and disable shared libraries on
12321  # powerpc, because MkLinux only supported shared libraries with the
12322  # GNU dynamic linker.  Since this was broken with cross compilers,
12323  # most powerpc-linux boxes support dynamic linking these days and
12324  # people can always --disable-shared, the test was removed, and we
12325  # assume the GNU/Linux dynamic linker is in use.
12326  dynamic_linker='GNU/Linux ld.so'
12327  ;;
12328
12329netbsdelf*-gnu)
12330  version_type=linux
12331  need_lib_prefix=no
12332  need_version=no
12333  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12334  soname_spec='${libname}${release}${shared_ext}$major'
12335  shlibpath_var=LD_LIBRARY_PATH
12336  shlibpath_overrides_runpath=no
12337  hardcode_into_libs=yes
12338  dynamic_linker='NetBSD ld.elf_so'
12339  ;;
12340
12341netbsd*)
12342  version_type=sunos
12343  need_lib_prefix=no
12344  need_version=no
12345  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12346    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12347    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12348    dynamic_linker='NetBSD (a.out) ld.so'
12349  else
12350    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12351    soname_spec='$libname$release$shared_ext$major'
12352    dynamic_linker='NetBSD ld.elf_so'
12353  fi
12354  shlibpath_var=LD_LIBRARY_PATH
12355  shlibpath_overrides_runpath=yes
12356  hardcode_into_libs=yes
12357  ;;
12358
12359newsos6)
12360  version_type=linux # correct to gnu/linux during the next big refactor
12361  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12362  shlibpath_var=LD_LIBRARY_PATH
12363  shlibpath_overrides_runpath=yes
12364  ;;
12365
12366*nto* | *qnx*)
12367  version_type=qnx
12368  need_lib_prefix=no
12369  need_version=no
12370  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12371  soname_spec='$libname$release$shared_ext$major'
12372  shlibpath_var=LD_LIBRARY_PATH
12373  shlibpath_overrides_runpath=no
12374  hardcode_into_libs=yes
12375  dynamic_linker='ldqnx.so'
12376  ;;
12377
12378openbsd* | bitrig*)
12379  version_type=sunos
12380  sys_lib_dlsearch_path_spec=/usr/lib
12381  need_lib_prefix=no
12382  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12383    need_version=no
12384  else
12385    need_version=yes
12386  fi
12387  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12388  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12389  shlibpath_var=LD_LIBRARY_PATH
12390  shlibpath_overrides_runpath=yes
12391  ;;
12392
12393os2*)
12394  libname_spec='$name'
12395  version_type=windows
12396  shrext_cmds=.dll
12397  need_version=no
12398  need_lib_prefix=no
12399  # OS/2 can only load a DLL with a base name of 8 characters or less.
12400  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12401    v=$($ECHO $release$versuffix | tr -d .-);
12402    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12403    $ECHO $n$v`$shared_ext'
12404  library_names_spec='${libname}_dll.$libext'
12405  dynamic_linker='OS/2 ld.exe'
12406  shlibpath_var=BEGINLIBPATH
12407  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12408  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12409  postinstall_cmds='base_file=`basename \$file`~
12410    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12411    dldir=$destdir/`dirname \$dlpath`~
12412    test -d \$dldir || mkdir -p \$dldir~
12413    $install_prog $dir/$dlname \$dldir/$dlname~
12414    chmod a+x \$dldir/$dlname~
12415    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12416      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12417    fi'
12418  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12419    dlpath=$dir/\$dldll~
12420    $RM \$dlpath'
12421  ;;
12422
12423osf3* | osf4* | osf5*)
12424  version_type=osf
12425  need_lib_prefix=no
12426  need_version=no
12427  soname_spec='$libname$release$shared_ext$major'
12428  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12429  shlibpath_var=LD_LIBRARY_PATH
12430  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12431  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12432  ;;
12433
12434rdos*)
12435  dynamic_linker=no
12436  ;;
12437
12438solaris*)
12439  version_type=linux # correct to gnu/linux during the next big refactor
12440  need_lib_prefix=no
12441  need_version=no
12442  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12443  soname_spec='$libname$release$shared_ext$major'
12444  shlibpath_var=LD_LIBRARY_PATH
12445  shlibpath_overrides_runpath=yes
12446  hardcode_into_libs=yes
12447  # ldd complains unless libraries are executable
12448  postinstall_cmds='chmod +x $lib'
12449  ;;
12450
12451sunos4*)
12452  version_type=sunos
12453  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12454  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12455  shlibpath_var=LD_LIBRARY_PATH
12456  shlibpath_overrides_runpath=yes
12457  if test yes = "$with_gnu_ld"; then
12458    need_lib_prefix=no
12459  fi
12460  need_version=yes
12461  ;;
12462
12463sysv4 | sysv4.3*)
12464  version_type=linux # correct to gnu/linux during the next big refactor
12465  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12466  soname_spec='$libname$release$shared_ext$major'
12467  shlibpath_var=LD_LIBRARY_PATH
12468  case $host_vendor in
12469    sni)
12470      shlibpath_overrides_runpath=no
12471      need_lib_prefix=no
12472      runpath_var=LD_RUN_PATH
12473      ;;
12474    siemens)
12475      need_lib_prefix=no
12476      ;;
12477    motorola)
12478      need_lib_prefix=no
12479      need_version=no
12480      shlibpath_overrides_runpath=no
12481      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12482      ;;
12483  esac
12484  ;;
12485
12486sysv4*MP*)
12487  if test -d /usr/nec; then
12488    version_type=linux # correct to gnu/linux during the next big refactor
12489    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12490    soname_spec='$libname$shared_ext.$major'
12491    shlibpath_var=LD_LIBRARY_PATH
12492  fi
12493  ;;
12494
12495sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12496  version_type=sco
12497  need_lib_prefix=no
12498  need_version=no
12499  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12500  soname_spec='$libname$release$shared_ext$major'
12501  shlibpath_var=LD_LIBRARY_PATH
12502  shlibpath_overrides_runpath=yes
12503  hardcode_into_libs=yes
12504  if test yes = "$with_gnu_ld"; then
12505    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12506  else
12507    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12508    case $host_os in
12509      sco3.2v5*)
12510        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12511	;;
12512    esac
12513  fi
12514  sys_lib_dlsearch_path_spec='/usr/lib'
12515  ;;
12516
12517tpf*)
12518  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12519  version_type=linux # correct to gnu/linux during the next big refactor
12520  need_lib_prefix=no
12521  need_version=no
12522  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12523  shlibpath_var=LD_LIBRARY_PATH
12524  shlibpath_overrides_runpath=no
12525  hardcode_into_libs=yes
12526  ;;
12527
12528uts4*)
12529  version_type=linux # correct to gnu/linux during the next big refactor
12530  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12531  soname_spec='$libname$release$shared_ext$major'
12532  shlibpath_var=LD_LIBRARY_PATH
12533  ;;
12534
12535*)
12536  dynamic_linker=no
12537  ;;
12538esac
12539{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12540printf "%s\n" "$dynamic_linker" >&6; }
12541test no = "$dynamic_linker" && can_build_shared=no
12542
12543variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12544if test yes = "$GCC"; then
12545  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12546fi
12547
12548if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12549  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12550fi
12551
12552if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12553  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12554fi
12555
12556# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12557configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12558
12559# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12560func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12561
12562# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12563configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12662printf %s "checking how to hardcode library paths into programs... " >&6; }
12663hardcode_action=
12664if test -n "$hardcode_libdir_flag_spec" ||
12665   test -n "$runpath_var" ||
12666   test yes = "$hardcode_automatic"; then
12667
12668  # We can hardcode non-existent directories.
12669  if test no != "$hardcode_direct" &&
12670     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12671     # have to relink, otherwise we might link with an installed library
12672     # when we should be linking with a yet-to-be-installed one
12673     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12674     test no != "$hardcode_minus_L"; then
12675    # Linking always hardcodes the temporary library directory.
12676    hardcode_action=relink
12677  else
12678    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12679    hardcode_action=immediate
12680  fi
12681else
12682  # We cannot hardcode anything, or else we can only hardcode existing
12683  # directories.
12684  hardcode_action=unsupported
12685fi
12686{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12687printf "%s\n" "$hardcode_action" >&6; }
12688
12689if test relink = "$hardcode_action" ||
12690   test yes = "$inherit_rpath"; then
12691  # Fast installation is not supported
12692  enable_fast_install=no
12693elif test yes = "$shlibpath_overrides_runpath" ||
12694     test no = "$enable_shared"; then
12695  # Fast installation is not necessary
12696  enable_fast_install=needless
12697fi
12698
12699
12700
12701
12702
12703
12704  if test yes != "$enable_dlopen"; then
12705  enable_dlopen=unknown
12706  enable_dlopen_self=unknown
12707  enable_dlopen_self_static=unknown
12708else
12709  lt_cv_dlopen=no
12710  lt_cv_dlopen_libs=
12711
12712  case $host_os in
12713  beos*)
12714    lt_cv_dlopen=load_add_on
12715    lt_cv_dlopen_libs=
12716    lt_cv_dlopen_self=yes
12717    ;;
12718
12719  mingw* | pw32* | cegcc*)
12720    lt_cv_dlopen=LoadLibrary
12721    lt_cv_dlopen_libs=
12722    ;;
12723
12724  cygwin*)
12725    lt_cv_dlopen=dlopen
12726    lt_cv_dlopen_libs=
12727    ;;
12728
12729  darwin*)
12730    # if libdl is installed we need to link against it
12731    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12732printf %s "checking for dlopen in -ldl... " >&6; }
12733if test ${ac_cv_lib_dl_dlopen+y}
12734then :
12735  printf %s "(cached) " >&6
12736else $as_nop
12737  ac_check_lib_save_LIBS=$LIBS
12738LIBS="-ldl  $LIBS"
12739cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12740/* end confdefs.h.  */
12741
12742/* Override any GCC internal prototype to avoid an error.
12743   Use char because int might match the return type of a GCC
12744   builtin and then its argument prototype would still apply.  */
12745char dlopen ();
12746int
12747main (void)
12748{
12749return dlopen ();
12750  ;
12751  return 0;
12752}
12753_ACEOF
12754if ac_fn_c_try_link "$LINENO"
12755then :
12756  ac_cv_lib_dl_dlopen=yes
12757else $as_nop
12758  ac_cv_lib_dl_dlopen=no
12759fi
12760rm -f core conftest.err conftest.$ac_objext conftest.beam \
12761    conftest$ac_exeext conftest.$ac_ext
12762LIBS=$ac_check_lib_save_LIBS
12763fi
12764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12765printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12766if test "x$ac_cv_lib_dl_dlopen" = xyes
12767then :
12768  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12769else $as_nop
12770
12771    lt_cv_dlopen=dyld
12772    lt_cv_dlopen_libs=
12773    lt_cv_dlopen_self=yes
12774
12775fi
12776
12777    ;;
12778
12779  tpf*)
12780    # Don't try to run any link tests for TPF.  We know it's impossible
12781    # because TPF is a cross-compiler, and we know how we open DSOs.
12782    lt_cv_dlopen=dlopen
12783    lt_cv_dlopen_libs=
12784    lt_cv_dlopen_self=no
12785    ;;
12786
12787  *)
12788    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12789if test "x$ac_cv_func_shl_load" = xyes
12790then :
12791  lt_cv_dlopen=shl_load
12792else $as_nop
12793  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12794printf %s "checking for shl_load in -ldld... " >&6; }
12795if test ${ac_cv_lib_dld_shl_load+y}
12796then :
12797  printf %s "(cached) " >&6
12798else $as_nop
12799  ac_check_lib_save_LIBS=$LIBS
12800LIBS="-ldld  $LIBS"
12801cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12802/* end confdefs.h.  */
12803
12804/* Override any GCC internal prototype to avoid an error.
12805   Use char because int might match the return type of a GCC
12806   builtin and then its argument prototype would still apply.  */
12807char shl_load ();
12808int
12809main (void)
12810{
12811return shl_load ();
12812  ;
12813  return 0;
12814}
12815_ACEOF
12816if ac_fn_c_try_link "$LINENO"
12817then :
12818  ac_cv_lib_dld_shl_load=yes
12819else $as_nop
12820  ac_cv_lib_dld_shl_load=no
12821fi
12822rm -f core conftest.err conftest.$ac_objext conftest.beam \
12823    conftest$ac_exeext conftest.$ac_ext
12824LIBS=$ac_check_lib_save_LIBS
12825fi
12826{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12827printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12828if test "x$ac_cv_lib_dld_shl_load" = xyes
12829then :
12830  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12831else $as_nop
12832  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12833if test "x$ac_cv_func_dlopen" = xyes
12834then :
12835  lt_cv_dlopen=dlopen
12836else $as_nop
12837  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12838printf %s "checking for dlopen in -ldl... " >&6; }
12839if test ${ac_cv_lib_dl_dlopen+y}
12840then :
12841  printf %s "(cached) " >&6
12842else $as_nop
12843  ac_check_lib_save_LIBS=$LIBS
12844LIBS="-ldl  $LIBS"
12845cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12846/* end confdefs.h.  */
12847
12848/* Override any GCC internal prototype to avoid an error.
12849   Use char because int might match the return type of a GCC
12850   builtin and then its argument prototype would still apply.  */
12851char dlopen ();
12852int
12853main (void)
12854{
12855return dlopen ();
12856  ;
12857  return 0;
12858}
12859_ACEOF
12860if ac_fn_c_try_link "$LINENO"
12861then :
12862  ac_cv_lib_dl_dlopen=yes
12863else $as_nop
12864  ac_cv_lib_dl_dlopen=no
12865fi
12866rm -f core conftest.err conftest.$ac_objext conftest.beam \
12867    conftest$ac_exeext conftest.$ac_ext
12868LIBS=$ac_check_lib_save_LIBS
12869fi
12870{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12871printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12872if test "x$ac_cv_lib_dl_dlopen" = xyes
12873then :
12874  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12875else $as_nop
12876  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12877printf %s "checking for dlopen in -lsvld... " >&6; }
12878if test ${ac_cv_lib_svld_dlopen+y}
12879then :
12880  printf %s "(cached) " >&6
12881else $as_nop
12882  ac_check_lib_save_LIBS=$LIBS
12883LIBS="-lsvld  $LIBS"
12884cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12885/* end confdefs.h.  */
12886
12887/* Override any GCC internal prototype to avoid an error.
12888   Use char because int might match the return type of a GCC
12889   builtin and then its argument prototype would still apply.  */
12890char dlopen ();
12891int
12892main (void)
12893{
12894return dlopen ();
12895  ;
12896  return 0;
12897}
12898_ACEOF
12899if ac_fn_c_try_link "$LINENO"
12900then :
12901  ac_cv_lib_svld_dlopen=yes
12902else $as_nop
12903  ac_cv_lib_svld_dlopen=no
12904fi
12905rm -f core conftest.err conftest.$ac_objext conftest.beam \
12906    conftest$ac_exeext conftest.$ac_ext
12907LIBS=$ac_check_lib_save_LIBS
12908fi
12909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12910printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12911if test "x$ac_cv_lib_svld_dlopen" = xyes
12912then :
12913  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12914else $as_nop
12915  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12916printf %s "checking for dld_link in -ldld... " >&6; }
12917if test ${ac_cv_lib_dld_dld_link+y}
12918then :
12919  printf %s "(cached) " >&6
12920else $as_nop
12921  ac_check_lib_save_LIBS=$LIBS
12922LIBS="-ldld  $LIBS"
12923cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12924/* end confdefs.h.  */
12925
12926/* Override any GCC internal prototype to avoid an error.
12927   Use char because int might match the return type of a GCC
12928   builtin and then its argument prototype would still apply.  */
12929char dld_link ();
12930int
12931main (void)
12932{
12933return dld_link ();
12934  ;
12935  return 0;
12936}
12937_ACEOF
12938if ac_fn_c_try_link "$LINENO"
12939then :
12940  ac_cv_lib_dld_dld_link=yes
12941else $as_nop
12942  ac_cv_lib_dld_dld_link=no
12943fi
12944rm -f core conftest.err conftest.$ac_objext conftest.beam \
12945    conftest$ac_exeext conftest.$ac_ext
12946LIBS=$ac_check_lib_save_LIBS
12947fi
12948{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12949printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12950if test "x$ac_cv_lib_dld_dld_link" = xyes
12951then :
12952  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12953fi
12954
12955
12956fi
12957
12958
12959fi
12960
12961
12962fi
12963
12964
12965fi
12966
12967
12968fi
12969
12970    ;;
12971  esac
12972
12973  if test no = "$lt_cv_dlopen"; then
12974    enable_dlopen=no
12975  else
12976    enable_dlopen=yes
12977  fi
12978
12979  case $lt_cv_dlopen in
12980  dlopen)
12981    save_CPPFLAGS=$CPPFLAGS
12982    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12983
12984    save_LDFLAGS=$LDFLAGS
12985    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12986
12987    save_LIBS=$LIBS
12988    LIBS="$lt_cv_dlopen_libs $LIBS"
12989
12990    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12991printf %s "checking whether a program can dlopen itself... " >&6; }
12992if test ${lt_cv_dlopen_self+y}
12993then :
12994  printf %s "(cached) " >&6
12995else $as_nop
12996  	  if test yes = "$cross_compiling"; then :
12997  lt_cv_dlopen_self=cross
12998else
12999  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13000  lt_status=$lt_dlunknown
13001  cat > conftest.$ac_ext <<_LT_EOF
13002#line $LINENO "configure"
13003#include "confdefs.h"
13004
13005#if HAVE_DLFCN_H
13006#include <dlfcn.h>
13007#endif
13008
13009#include <stdio.h>
13010
13011#ifdef RTLD_GLOBAL
13012#  define LT_DLGLOBAL		RTLD_GLOBAL
13013#else
13014#  ifdef DL_GLOBAL
13015#    define LT_DLGLOBAL		DL_GLOBAL
13016#  else
13017#    define LT_DLGLOBAL		0
13018#  endif
13019#endif
13020
13021/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13022   find out it does not work in some platform. */
13023#ifndef LT_DLLAZY_OR_NOW
13024#  ifdef RTLD_LAZY
13025#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13026#  else
13027#    ifdef DL_LAZY
13028#      define LT_DLLAZY_OR_NOW		DL_LAZY
13029#    else
13030#      ifdef RTLD_NOW
13031#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13032#      else
13033#        ifdef DL_NOW
13034#          define LT_DLLAZY_OR_NOW	DL_NOW
13035#        else
13036#          define LT_DLLAZY_OR_NOW	0
13037#        endif
13038#      endif
13039#    endif
13040#  endif
13041#endif
13042
13043/* When -fvisibility=hidden is used, assume the code has been annotated
13044   correspondingly for the symbols needed.  */
13045#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13046int fnord () __attribute__((visibility("default")));
13047#endif
13048
13049int fnord () { return 42; }
13050int main ()
13051{
13052  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13053  int status = $lt_dlunknown;
13054
13055  if (self)
13056    {
13057      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13058      else
13059        {
13060	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13061          else puts (dlerror ());
13062	}
13063      /* dlclose (self); */
13064    }
13065  else
13066    puts (dlerror ());
13067
13068  return status;
13069}
13070_LT_EOF
13071  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13072  (eval $ac_link) 2>&5
13073  ac_status=$?
13074  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13075  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13076    (./conftest; exit; ) >&5 2>/dev/null
13077    lt_status=$?
13078    case x$lt_status in
13079      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13080      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13081      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13082    esac
13083  else :
13084    # compilation failed
13085    lt_cv_dlopen_self=no
13086  fi
13087fi
13088rm -fr conftest*
13089
13090
13091fi
13092{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13093printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13094
13095    if test yes = "$lt_cv_dlopen_self"; then
13096      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13097      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13098printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13099if test ${lt_cv_dlopen_self_static+y}
13100then :
13101  printf %s "(cached) " >&6
13102else $as_nop
13103  	  if test yes = "$cross_compiling"; then :
13104  lt_cv_dlopen_self_static=cross
13105else
13106  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13107  lt_status=$lt_dlunknown
13108  cat > conftest.$ac_ext <<_LT_EOF
13109#line $LINENO "configure"
13110#include "confdefs.h"
13111
13112#if HAVE_DLFCN_H
13113#include <dlfcn.h>
13114#endif
13115
13116#include <stdio.h>
13117
13118#ifdef RTLD_GLOBAL
13119#  define LT_DLGLOBAL		RTLD_GLOBAL
13120#else
13121#  ifdef DL_GLOBAL
13122#    define LT_DLGLOBAL		DL_GLOBAL
13123#  else
13124#    define LT_DLGLOBAL		0
13125#  endif
13126#endif
13127
13128/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13129   find out it does not work in some platform. */
13130#ifndef LT_DLLAZY_OR_NOW
13131#  ifdef RTLD_LAZY
13132#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13133#  else
13134#    ifdef DL_LAZY
13135#      define LT_DLLAZY_OR_NOW		DL_LAZY
13136#    else
13137#      ifdef RTLD_NOW
13138#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13139#      else
13140#        ifdef DL_NOW
13141#          define LT_DLLAZY_OR_NOW	DL_NOW
13142#        else
13143#          define LT_DLLAZY_OR_NOW	0
13144#        endif
13145#      endif
13146#    endif
13147#  endif
13148#endif
13149
13150/* When -fvisibility=hidden is used, assume the code has been annotated
13151   correspondingly for the symbols needed.  */
13152#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13153int fnord () __attribute__((visibility("default")));
13154#endif
13155
13156int fnord () { return 42; }
13157int main ()
13158{
13159  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13160  int status = $lt_dlunknown;
13161
13162  if (self)
13163    {
13164      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13165      else
13166        {
13167	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13168          else puts (dlerror ());
13169	}
13170      /* dlclose (self); */
13171    }
13172  else
13173    puts (dlerror ());
13174
13175  return status;
13176}
13177_LT_EOF
13178  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13179  (eval $ac_link) 2>&5
13180  ac_status=$?
13181  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13182  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13183    (./conftest; exit; ) >&5 2>/dev/null
13184    lt_status=$?
13185    case x$lt_status in
13186      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13187      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13188      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13189    esac
13190  else :
13191    # compilation failed
13192    lt_cv_dlopen_self_static=no
13193  fi
13194fi
13195rm -fr conftest*
13196
13197
13198fi
13199{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13200printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13201    fi
13202
13203    CPPFLAGS=$save_CPPFLAGS
13204    LDFLAGS=$save_LDFLAGS
13205    LIBS=$save_LIBS
13206    ;;
13207  esac
13208
13209  case $lt_cv_dlopen_self in
13210  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13211  *) enable_dlopen_self=unknown ;;
13212  esac
13213
13214  case $lt_cv_dlopen_self_static in
13215  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13216  *) enable_dlopen_self_static=unknown ;;
13217  esac
13218fi
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236striplib=
13237old_striplib=
13238{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13239printf %s "checking whether stripping libraries is possible... " >&6; }
13240if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13241  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13242  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13243  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13244printf "%s\n" "yes" >&6; }
13245else
13246# FIXME - insert some real tests, host_os isn't really good enough
13247  case $host_os in
13248  darwin*)
13249    if test -n "$STRIP"; then
13250      striplib="$STRIP -x"
13251      old_striplib="$STRIP -S"
13252      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13253printf "%s\n" "yes" >&6; }
13254    else
13255      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13256printf "%s\n" "no" >&6; }
13257    fi
13258    ;;
13259  *)
13260    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13261printf "%s\n" "no" >&6; }
13262    ;;
13263  esac
13264fi
13265
13266
13267
13268
13269
13270
13271
13272
13273
13274
13275
13276
13277  # Report what library types will actually be built
13278  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13279printf %s "checking if libtool supports shared libraries... " >&6; }
13280  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13281printf "%s\n" "$can_build_shared" >&6; }
13282
13283  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13284printf %s "checking whether to build shared libraries... " >&6; }
13285  test no = "$can_build_shared" && enable_shared=no
13286
13287  # On AIX, shared libraries and static libraries use the same namespace, and
13288  # are all built from PIC.
13289  case $host_os in
13290  aix3*)
13291    test yes = "$enable_shared" && enable_static=no
13292    if test -n "$RANLIB"; then
13293      archive_cmds="$archive_cmds~\$RANLIB \$lib"
13294      postinstall_cmds='$RANLIB $lib'
13295    fi
13296    ;;
13297
13298  aix[4-9]*)
13299    if test ia64 != "$host_cpu"; then
13300      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13301      yes,aix,yes) ;;			# shared object as lib.so file only
13302      yes,svr4,*) ;;			# shared object as lib.so archive member only
13303      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
13304      esac
13305    fi
13306    ;;
13307  esac
13308  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13309printf "%s\n" "$enable_shared" >&6; }
13310
13311  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13312printf %s "checking whether to build static libraries... " >&6; }
13313  # Make sure either enable_shared or enable_static is yes.
13314  test yes = "$enable_shared" || enable_static=yes
13315  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13316printf "%s\n" "$enable_static" >&6; }
13317
13318
13319
13320
13321fi
13322ac_ext=c
13323ac_cpp='$CPP $CPPFLAGS'
13324ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13325ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13326ac_compiler_gnu=$ac_cv_c_compiler_gnu
13327
13328CC=$lt_save_CC
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344        ac_config_commands="$ac_config_commands libtool"
13345
13346
13347
13348
13349# Only expand once:
13350
13351
13352
13353# Check for the -Bsymbolic-functions linker flag
13354# Check whether --enable-Bsymbolic was given.
13355if test ${enable_Bsymbolic+y}
13356then :
13357  enableval=$enable_Bsymbolic;
13358else $as_nop
13359  enable_Bsymbolic=check
13360fi
13361
13362
13363if test "x$enable_Bsymbolic" = "xcheck"
13364then :
13365
13366        saved_LDFLAGS="${LDFLAGS}"
13367        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -Bsymbolic-functions linker flag" >&5
13368printf %s "checking for -Bsymbolic-functions linker flag... " >&6; }
13369        LDFLAGS=-Wl,-Bsymbolic-functions
13370        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13371/* end confdefs.h.  */
13372
13373int
13374main (void)
13375{
13376int main (void) { return 0; }
13377  ;
13378  return 0;
13379}
13380_ACEOF
13381if ac_fn_c_try_link "$LINENO"
13382then :
13383
13384                      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13385printf "%s\n" "yes" >&6; }
13386                      enable_Bsymbolic=yes
13387
13388else $as_nop
13389
13390                      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13391printf "%s\n" "no" >&6; }
13392                      enable_Bsymbolic=no
13393
13394fi
13395rm -f core conftest.err conftest.$ac_objext conftest.beam \
13396    conftest$ac_exeext conftest.$ac_ext
13397        LDFLAGS="${saved_LDFLAGS}"
13398
13399fi
13400
13401if test "x$enable_Bsymbolic" = "xyes"
13402then :
13403  JSON_BSYMBOLIC_LDFLAGS=-Wl,-Bsymbolic-functions
13404fi
13405
13406
13407
13408
13409
13410
13411for flag in -Wall -Werror -Wcast-qual -Wno-error=deprecated-declarations; do
13412  as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
13413{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13414printf %s "checking whether C compiler accepts $flag... " >&6; }
13415if eval test \${$as_CACHEVAR+y}
13416then :
13417  printf %s "(cached) " >&6
13418else $as_nop
13419
13420  ax_check_save_flags=$CFLAGS
13421  CFLAGS="$CFLAGS  $flag"
13422  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13423/* end confdefs.h.  */
13424
13425int
13426main (void)
13427{
13428
13429  ;
13430  return 0;
13431}
13432_ACEOF
13433if ac_fn_c_try_compile "$LINENO"
13434then :
13435  eval "$as_CACHEVAR=yes"
13436else $as_nop
13437  eval "$as_CACHEVAR=no"
13438fi
13439rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13440  CFLAGS=$ax_check_save_flags
13441fi
13442eval ac_res=\$$as_CACHEVAR
13443	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13444printf "%s\n" "$ac_res" >&6; }
13445if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
13446then :
13447
13448if test ${CFLAGS+y}
13449then :
13450
13451  case " $CFLAGS " in #(
13452  *" $flag "*) :
13453    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13454  (: CFLAGS already contains $flag) 2>&5
13455  ac_status=$?
13456  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13457  test $ac_status = 0; } ;; #(
13458  *) :
13459
13460     as_fn_append CFLAGS " $flag"
13461     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13462  (: CFLAGS="$CFLAGS") 2>&5
13463  ac_status=$?
13464  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13465  test $ac_status = 0; }
13466     ;;
13467esac
13468
13469else $as_nop
13470
13471  CFLAGS=$flag
13472  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13473  (: CFLAGS="$CFLAGS") 2>&5
13474  ac_status=$?
13475  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13476  test $ac_status = 0; }
13477
13478fi
13479
13480else $as_nop
13481  :
13482fi
13483
13484done
13485
13486
13487
13488
13489
13490for flag in -Wextra -Wwrite-string -Wno-unused-parameter; do
13491  as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
13492{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13493printf %s "checking whether C compiler accepts $flag... " >&6; }
13494if eval test \${$as_CACHEVAR+y}
13495then :
13496  printf %s "(cached) " >&6
13497else $as_nop
13498
13499  ax_check_save_flags=$CFLAGS
13500  CFLAGS="$CFLAGS  $flag"
13501  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13502/* end confdefs.h.  */
13503
13504int
13505main (void)
13506{
13507
13508  ;
13509  return 0;
13510}
13511_ACEOF
13512if ac_fn_c_try_compile "$LINENO"
13513then :
13514  eval "$as_CACHEVAR=yes"
13515else $as_nop
13516  eval "$as_CACHEVAR=no"
13517fi
13518rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13519  CFLAGS=$ax_check_save_flags
13520fi
13521eval ac_res=\$$as_CACHEVAR
13522	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13523printf "%s\n" "$ac_res" >&6; }
13524if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
13525then :
13526
13527if test ${CFLAGS+y}
13528then :
13529
13530  case " $CFLAGS " in #(
13531  *" $flag "*) :
13532    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13533  (: CFLAGS already contains $flag) 2>&5
13534  ac_status=$?
13535  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13536  test $ac_status = 0; } ;; #(
13537  *) :
13538
13539     as_fn_append CFLAGS " $flag"
13540     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13541  (: CFLAGS="$CFLAGS") 2>&5
13542  ac_status=$?
13543  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13544  test $ac_status = 0; }
13545     ;;
13546esac
13547
13548else $as_nop
13549
13550  CFLAGS=$flag
13551  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13552  (: CFLAGS="$CFLAGS") 2>&5
13553  ac_status=$?
13554  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13555  test $ac_status = 0; }
13556
13557fi
13558
13559else $as_nop
13560  :
13561fi
13562
13563done
13564
13565
13566
13567
13568
13569for flag in -D_GNU_SOURCE -D_REENTRANT; do
13570  as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
13571{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13572printf %s "checking whether C compiler accepts $flag... " >&6; }
13573if eval test \${$as_CACHEVAR+y}
13574then :
13575  printf %s "(cached) " >&6
13576else $as_nop
13577
13578  ax_check_save_flags=$CFLAGS
13579  CFLAGS="$CFLAGS  $flag"
13580  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13581/* end confdefs.h.  */
13582
13583int
13584main (void)
13585{
13586
13587  ;
13588  return 0;
13589}
13590_ACEOF
13591if ac_fn_c_try_compile "$LINENO"
13592then :
13593  eval "$as_CACHEVAR=yes"
13594else $as_nop
13595  eval "$as_CACHEVAR=no"
13596fi
13597rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13598  CFLAGS=$ax_check_save_flags
13599fi
13600eval ac_res=\$$as_CACHEVAR
13601	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13602printf "%s\n" "$ac_res" >&6; }
13603if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
13604then :
13605
13606if test ${CFLAGS+y}
13607then :
13608
13609  case " $CFLAGS " in #(
13610  *" $flag "*) :
13611    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13612  (: CFLAGS already contains $flag) 2>&5
13613  ac_status=$?
13614  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13615  test $ac_status = 0; } ;; #(
13616  *) :
13617
13618     as_fn_append CFLAGS " $flag"
13619     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13620  (: CFLAGS="$CFLAGS") 2>&5
13621  ac_status=$?
13622  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13623  test $ac_status = 0; }
13624     ;;
13625esac
13626
13627else $as_nop
13628
13629  CFLAGS=$flag
13630  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13631  (: CFLAGS="$CFLAGS") 2>&5
13632  ac_status=$?
13633  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13634  test $ac_status = 0; }
13635
13636fi
13637
13638else $as_nop
13639  :
13640fi
13641
13642done
13643
13644
13645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13646printf %s "checking size of int... " >&6; }
13647if test ${ac_cv_sizeof_int+y}
13648then :
13649  printf %s "(cached) " >&6
13650else $as_nop
13651  for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
13652  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13653/* end confdefs.h.  */
13654#include "confdefs.h"
13655#include <sys/types.h>
13656
13657
13658int
13659main (void)
13660{
13661switch (0) case 0: case (sizeof (int) == $ac_size):;
13662  ;
13663  return 0;
13664}
13665_ACEOF
13666if ac_fn_c_try_compile "$LINENO"
13667then :
13668  ac_cv_sizeof_int=$ac_size
13669fi
13670rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13671  if test x$ac_cv_sizeof_int != x ; then break; fi
13672done
13673
13674fi
13675
13676if test x$ac_cv_sizeof_int = x ; then
13677  as_fn_error $? "cannot determine a size for int" "$LINENO" 5
13678fi
13679{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13680printf "%s\n" "$ac_cv_sizeof_int" >&6; }
13681
13682printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
13683
13684
13685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13686printf %s "checking size of long... " >&6; }
13687if test ${ac_cv_sizeof_long+y}
13688then :
13689  printf %s "(cached) " >&6
13690else $as_nop
13691  for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
13692  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13693/* end confdefs.h.  */
13694#include "confdefs.h"
13695#include <sys/types.h>
13696
13697
13698int
13699main (void)
13700{
13701switch (0) case 0: case (sizeof (long) == $ac_size):;
13702  ;
13703  return 0;
13704}
13705_ACEOF
13706if ac_fn_c_try_compile "$LINENO"
13707then :
13708  ac_cv_sizeof_long=$ac_size
13709fi
13710rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13711  if test x$ac_cv_sizeof_long != x ; then break; fi
13712done
13713
13714fi
13715
13716if test x$ac_cv_sizeof_long = x ; then
13717  as_fn_error $? "cannot determine a size for long" "$LINENO" 5
13718fi
13719{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13720printf "%s\n" "$ac_cv_sizeof_long" >&6; }
13721
13722printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
13723
13724
13725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
13726printf %s "checking size of long long... " >&6; }
13727if test ${ac_cv_sizeof_long_long+y}
13728then :
13729  printf %s "(cached) " >&6
13730else $as_nop
13731  for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
13732  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13733/* end confdefs.h.  */
13734#include "confdefs.h"
13735#include <sys/types.h>
13736
13737
13738int
13739main (void)
13740{
13741switch (0) case 0: case (sizeof (long long) == $ac_size):;
13742  ;
13743  return 0;
13744}
13745_ACEOF
13746if ac_fn_c_try_compile "$LINENO"
13747then :
13748  ac_cv_sizeof_long_long=$ac_size
13749fi
13750rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13751  if test x$ac_cv_sizeof_long_long != x ; then break; fi
13752done
13753
13754fi
13755
13756if test x$ac_cv_sizeof_long_long = x ; then
13757  as_fn_error $? "cannot determine a size for long long" "$LINENO" 5
13758fi
13759{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
13760printf "%s\n" "$ac_cv_sizeof_long_long" >&6; }
13761
13762printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h
13763
13764
13765{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
13766printf %s "checking size of size_t... " >&6; }
13767if test ${ac_cv_sizeof_size_t+y}
13768then :
13769  printf %s "(cached) " >&6
13770else $as_nop
13771  for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
13772  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13773/* end confdefs.h.  */
13774#include "confdefs.h"
13775#include <sys/types.h>
13776#include <stdint.h>
13777
13778int
13779main (void)
13780{
13781switch (0) case 0: case (sizeof (size_t) == $ac_size):;
13782  ;
13783  return 0;
13784}
13785_ACEOF
13786if ac_fn_c_try_compile "$LINENO"
13787then :
13788  ac_cv_sizeof_size_t=$ac_size
13789fi
13790rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13791  if test x$ac_cv_sizeof_size_t != x ; then break; fi
13792done
13793
13794fi
13795
13796if test x$ac_cv_sizeof_size_t = x ; then
13797  as_fn_error $? "cannot determine a size for size_t" "$LINENO" 5
13798fi
13799{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
13800printf "%s\n" "$ac_cv_sizeof_size_t" >&6; }
13801
13802printf "%s\n" "#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t" >>confdefs.h
13803
13804
13805{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int64_t" >&5
13806printf %s "checking size of int64_t... " >&6; }
13807if test ${ac_cv_sizeof_int64_t+y}
13808then :
13809  printf %s "(cached) " >&6
13810else $as_nop
13811  for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
13812  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13813/* end confdefs.h.  */
13814#include "confdefs.h"
13815#include <sys/types.h>
13816#include <stdint.h>
13817
13818int
13819main (void)
13820{
13821switch (0) case 0: case (sizeof (int64_t) == $ac_size):;
13822  ;
13823  return 0;
13824}
13825_ACEOF
13826if ac_fn_c_try_compile "$LINENO"
13827then :
13828  ac_cv_sizeof_int64_t=$ac_size
13829fi
13830rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13831  if test x$ac_cv_sizeof_int64_t != x ; then break; fi
13832done
13833
13834fi
13835
13836if test x$ac_cv_sizeof_int64_t = x ; then
13837  as_fn_error $? "cannot determine a size for int64_t" "$LINENO" 5
13838fi
13839{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int64_t" >&5
13840printf "%s\n" "$ac_cv_sizeof_int64_t" >&6; }
13841
13842printf "%s\n" "#define SIZEOF_INT64_T $ac_cv_sizeof_int64_t" >>confdefs.h
13843
13844
13845
13846ac_config_files="$ac_config_files Makefile json-c.pc tests/Makefile json-c-uninstalled.pc"
13847
13848
13849cat >confcache <<\_ACEOF
13850# This file is a shell script that caches the results of configure
13851# tests run on this system so they can be shared between configure
13852# scripts and configure runs, see configure's option --config-cache.
13853# It is not useful on other systems.  If it contains results you don't
13854# want to keep, you may remove or edit it.
13855#
13856# config.status only pays attention to the cache file if you give it
13857# the --recheck option to rerun configure.
13858#
13859# `ac_cv_env_foo' variables (set or unset) will be overridden when
13860# loading this file, other *unset* `ac_cv_foo' will be assigned the
13861# following values.
13862
13863_ACEOF
13864
13865# The following way of writing the cache mishandles newlines in values,
13866# but we know of no workaround that is simple, portable, and efficient.
13867# So, we kill variables containing newlines.
13868# Ultrix sh set writes to stderr and can't be redirected directly,
13869# and sets the high bit in the cache file unless we assign to the vars.
13870(
13871  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13872    eval ac_val=\$$ac_var
13873    case $ac_val in #(
13874    *${as_nl}*)
13875      case $ac_var in #(
13876      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13877printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13878      esac
13879      case $ac_var in #(
13880      _ | IFS | as_nl) ;; #(
13881      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13882      *) { eval $ac_var=; unset $ac_var;} ;;
13883      esac ;;
13884    esac
13885  done
13886
13887  (set) 2>&1 |
13888    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13889    *${as_nl}ac_space=\ *)
13890      # `set' does not quote correctly, so add quotes: double-quote
13891      # substitution turns \\\\ into \\, and sed turns \\ into \.
13892      sed -n \
13893	"s/'/'\\\\''/g;
13894	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13895      ;; #(
13896    *)
13897      # `set' quotes correctly as required by POSIX, so do not add quotes.
13898      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13899      ;;
13900    esac |
13901    sort
13902) |
13903  sed '
13904     /^ac_cv_env_/b end
13905     t clear
13906     :clear
13907     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
13908     t end
13909     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13910     :end' >>confcache
13911if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13912  if test -w "$cache_file"; then
13913    if test "x$cache_file" != "x/dev/null"; then
13914      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13915printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
13916      if test ! -f "$cache_file" || test -h "$cache_file"; then
13917	cat confcache >"$cache_file"
13918      else
13919        case $cache_file in #(
13920        */* | ?:*)
13921	  mv -f confcache "$cache_file"$$ &&
13922	  mv -f "$cache_file"$$ "$cache_file" ;; #(
13923        *)
13924	  mv -f confcache "$cache_file" ;;
13925	esac
13926      fi
13927    fi
13928  else
13929    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13930printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
13931  fi
13932fi
13933rm -f confcache
13934
13935test "x$prefix" = xNONE && prefix=$ac_default_prefix
13936# Let make expand exec_prefix.
13937test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13938
13939DEFS=-DHAVE_CONFIG_H
13940
13941ac_libobjs=
13942ac_ltlibobjs=
13943U=
13944for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13945  # 1. Remove the extension, and $U if already installed.
13946  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13947  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
13948  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13949  #    will be set to the directory where LIBOBJS objects are built.
13950  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13951  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13952done
13953LIBOBJS=$ac_libobjs
13954
13955LTLIBOBJS=$ac_ltlibobjs
13956
13957
13958{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13959printf %s "checking that generated files are newer than configure... " >&6; }
13960   if test -n "$am_sleep_pid"; then
13961     # Hide warnings about reused PIDs.
13962     wait $am_sleep_pid 2>/dev/null
13963   fi
13964   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
13965printf "%s\n" "done" >&6; }
13966 if test -n "$EXEEXT"; then
13967  am__EXEEXT_TRUE=
13968  am__EXEEXT_FALSE='#'
13969else
13970  am__EXEEXT_TRUE='#'
13971  am__EXEEXT_FALSE=
13972fi
13973
13974if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13975  as_fn_error $? "conditional \"AMDEP\" was never defined.
13976Usually this means the macro was only invoked conditionally." "$LINENO" 5
13977fi
13978if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13979  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13980Usually this means the macro was only invoked conditionally." "$LINENO" 5
13981fi
13982
13983: "${CONFIG_STATUS=./config.status}"
13984ac_write_fail=0
13985ac_clean_files_save=$ac_clean_files
13986ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13988printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
13989as_write_fail=0
13990cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13991#! $SHELL
13992# Generated by $as_me.
13993# Run this file to recreate the current configuration.
13994# Compiler output produced by configure, useful for debugging
13995# configure, is in config.log if it exists.
13996
13997debug=false
13998ac_cs_recheck=false
13999ac_cs_silent=false
14000
14001SHELL=\${CONFIG_SHELL-$SHELL}
14002export SHELL
14003_ASEOF
14004cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14005## -------------------- ##
14006## M4sh Initialization. ##
14007## -------------------- ##
14008
14009# Be more Bourne compatible
14010DUALCASE=1; export DUALCASE # for MKS sh
14011as_nop=:
14012if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
14013then :
14014  emulate sh
14015  NULLCMD=:
14016  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14017  # is contrary to our usage.  Disable this feature.
14018  alias -g '${1+"$@"}'='"$@"'
14019  setopt NO_GLOB_SUBST
14020else $as_nop
14021  case `(set -o) 2>/dev/null` in #(
14022  *posix*) :
14023    set -o posix ;; #(
14024  *) :
14025     ;;
14026esac
14027fi
14028
14029
14030
14031# Reset variables that may have inherited troublesome values from
14032# the environment.
14033
14034# IFS needs to be set, to space, tab, and newline, in precisely that order.
14035# (If _AS_PATH_WALK were called with IFS unset, it would have the
14036# side effect of setting IFS to empty, thus disabling word splitting.)
14037# Quoting is to prevent editors from complaining about space-tab.
14038as_nl='
14039'
14040export as_nl
14041IFS=" ""	$as_nl"
14042
14043PS1='$ '
14044PS2='> '
14045PS4='+ '
14046
14047# Ensure predictable behavior from utilities with locale-dependent output.
14048LC_ALL=C
14049export LC_ALL
14050LANGUAGE=C
14051export LANGUAGE
14052
14053# We cannot yet rely on "unset" to work, but we need these variables
14054# to be unset--not just set to an empty or harmless value--now, to
14055# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
14056# also avoids known problems related to "unset" and subshell syntax
14057# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
14058for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
14059do eval test \${$as_var+y} \
14060  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14061done
14062
14063# Ensure that fds 0, 1, and 2 are open.
14064if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
14065if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
14066if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
14067
14068# The user is always right.
14069if ${PATH_SEPARATOR+false} :; then
14070  PATH_SEPARATOR=:
14071  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14072    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14073      PATH_SEPARATOR=';'
14074  }
14075fi
14076
14077
14078# Find who we are.  Look in the path if we contain no directory separator.
14079as_myself=
14080case $0 in #((
14081  *[\\/]* ) as_myself=$0 ;;
14082  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14083for as_dir in $PATH
14084do
14085  IFS=$as_save_IFS
14086  case $as_dir in #(((
14087    '') as_dir=./ ;;
14088    */) ;;
14089    *) as_dir=$as_dir/ ;;
14090  esac
14091    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
14092  done
14093IFS=$as_save_IFS
14094
14095     ;;
14096esac
14097# We did not find ourselves, most probably we were run as `sh COMMAND'
14098# in which case we are not to be found in the path.
14099if test "x$as_myself" = x; then
14100  as_myself=$0
14101fi
14102if test ! -f "$as_myself"; then
14103  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14104  exit 1
14105fi
14106
14107
14108
14109# as_fn_error STATUS ERROR [LINENO LOG_FD]
14110# ----------------------------------------
14111# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14112# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14113# script with STATUS, using 1 if that was 0.
14114as_fn_error ()
14115{
14116  as_status=$1; test $as_status -eq 0 && as_status=1
14117  if test "$4"; then
14118    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14119    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14120  fi
14121  printf "%s\n" "$as_me: error: $2" >&2
14122  as_fn_exit $as_status
14123} # as_fn_error
14124
14125
14126
14127# as_fn_set_status STATUS
14128# -----------------------
14129# Set $? to STATUS, without forking.
14130as_fn_set_status ()
14131{
14132  return $1
14133} # as_fn_set_status
14134
14135# as_fn_exit STATUS
14136# -----------------
14137# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14138as_fn_exit ()
14139{
14140  set +e
14141  as_fn_set_status $1
14142  exit $1
14143} # as_fn_exit
14144
14145# as_fn_unset VAR
14146# ---------------
14147# Portably unset VAR.
14148as_fn_unset ()
14149{
14150  { eval $1=; unset $1;}
14151}
14152as_unset=as_fn_unset
14153
14154# as_fn_append VAR VALUE
14155# ----------------------
14156# Append the text in VALUE to the end of the definition contained in VAR. Take
14157# advantage of any shell optimizations that allow amortized linear growth over
14158# repeated appends, instead of the typical quadratic growth present in naive
14159# implementations.
14160if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
14161then :
14162  eval 'as_fn_append ()
14163  {
14164    eval $1+=\$2
14165  }'
14166else $as_nop
14167  as_fn_append ()
14168  {
14169    eval $1=\$$1\$2
14170  }
14171fi # as_fn_append
14172
14173# as_fn_arith ARG...
14174# ------------------
14175# Perform arithmetic evaluation on the ARGs, and store the result in the
14176# global $as_val. Take advantage of shells that can avoid forks. The arguments
14177# must be portable across $(()) and expr.
14178if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
14179then :
14180  eval 'as_fn_arith ()
14181  {
14182    as_val=$(( $* ))
14183  }'
14184else $as_nop
14185  as_fn_arith ()
14186  {
14187    as_val=`expr "$@" || test $? -eq 1`
14188  }
14189fi # as_fn_arith
14190
14191
14192if expr a : '\(a\)' >/dev/null 2>&1 &&
14193   test "X`expr 00001 : '.*\(...\)'`" = X001; then
14194  as_expr=expr
14195else
14196  as_expr=false
14197fi
14198
14199if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14200  as_basename=basename
14201else
14202  as_basename=false
14203fi
14204
14205if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14206  as_dirname=dirname
14207else
14208  as_dirname=false
14209fi
14210
14211as_me=`$as_basename -- "$0" ||
14212$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14213	 X"$0" : 'X\(//\)$' \| \
14214	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14215printf "%s\n" X/"$0" |
14216    sed '/^.*\/\([^/][^/]*\)\/*$/{
14217	    s//\1/
14218	    q
14219	  }
14220	  /^X\/\(\/\/\)$/{
14221	    s//\1/
14222	    q
14223	  }
14224	  /^X\/\(\/\).*/{
14225	    s//\1/
14226	    q
14227	  }
14228	  s/.*/./; q'`
14229
14230# Avoid depending upon Character Ranges.
14231as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14232as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14233as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14234as_cr_digits='0123456789'
14235as_cr_alnum=$as_cr_Letters$as_cr_digits
14236
14237
14238# Determine whether it's possible to make 'echo' print without a newline.
14239# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
14240# for compatibility with existing Makefiles.
14241ECHO_C= ECHO_N= ECHO_T=
14242case `echo -n x` in #(((((
14243-n*)
14244  case `echo 'xy\c'` in
14245  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
14246  xy)  ECHO_C='\c';;
14247  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14248       ECHO_T='	';;
14249  esac;;
14250*)
14251  ECHO_N='-n';;
14252esac
14253
14254# For backward compatibility with old third-party macros, we provide
14255# the shell variables $as_echo and $as_echo_n.  New code should use
14256# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
14257as_echo='printf %s\n'
14258as_echo_n='printf %s'
14259
14260rm -f conf$$ conf$$.exe conf$$.file
14261if test -d conf$$.dir; then
14262  rm -f conf$$.dir/conf$$.file
14263else
14264  rm -f conf$$.dir
14265  mkdir conf$$.dir 2>/dev/null
14266fi
14267if (echo >conf$$.file) 2>/dev/null; then
14268  if ln -s conf$$.file conf$$ 2>/dev/null; then
14269    as_ln_s='ln -s'
14270    # ... but there are two gotchas:
14271    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14272    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14273    # In both cases, we have to default to `cp -pR'.
14274    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14275      as_ln_s='cp -pR'
14276  elif ln conf$$.file conf$$ 2>/dev/null; then
14277    as_ln_s=ln
14278  else
14279    as_ln_s='cp -pR'
14280  fi
14281else
14282  as_ln_s='cp -pR'
14283fi
14284rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14285rmdir conf$$.dir 2>/dev/null
14286
14287
14288# as_fn_mkdir_p
14289# -------------
14290# Create "$as_dir" as a directory, including parents if necessary.
14291as_fn_mkdir_p ()
14292{
14293
14294  case $as_dir in #(
14295  -*) as_dir=./$as_dir;;
14296  esac
14297  test -d "$as_dir" || eval $as_mkdir_p || {
14298    as_dirs=
14299    while :; do
14300      case $as_dir in #(
14301      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14302      *) as_qdir=$as_dir;;
14303      esac
14304      as_dirs="'$as_qdir' $as_dirs"
14305      as_dir=`$as_dirname -- "$as_dir" ||
14306$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14307	 X"$as_dir" : 'X\(//\)[^/]' \| \
14308	 X"$as_dir" : 'X\(//\)$' \| \
14309	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14310printf "%s\n" X"$as_dir" |
14311    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14312	    s//\1/
14313	    q
14314	  }
14315	  /^X\(\/\/\)[^/].*/{
14316	    s//\1/
14317	    q
14318	  }
14319	  /^X\(\/\/\)$/{
14320	    s//\1/
14321	    q
14322	  }
14323	  /^X\(\/\).*/{
14324	    s//\1/
14325	    q
14326	  }
14327	  s/.*/./; q'`
14328      test -d "$as_dir" && break
14329    done
14330    test -z "$as_dirs" || eval "mkdir $as_dirs"
14331  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14332
14333
14334} # as_fn_mkdir_p
14335if mkdir -p . 2>/dev/null; then
14336  as_mkdir_p='mkdir -p "$as_dir"'
14337else
14338  test -d ./-p && rmdir ./-p
14339  as_mkdir_p=false
14340fi
14341
14342
14343# as_fn_executable_p FILE
14344# -----------------------
14345# Test if FILE is an executable regular file.
14346as_fn_executable_p ()
14347{
14348  test -f "$1" && test -x "$1"
14349} # as_fn_executable_p
14350as_test_x='test -x'
14351as_executable_p=as_fn_executable_p
14352
14353# Sed expression to map a string onto a valid CPP name.
14354as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14355
14356# Sed expression to map a string onto a valid variable name.
14357as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14358
14359
14360exec 6>&1
14361## ----------------------------------- ##
14362## Main body of $CONFIG_STATUS script. ##
14363## ----------------------------------- ##
14364_ASEOF
14365test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14366
14367cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14368# Save the log message, to keep $0 and so on meaningful, and to
14369# report actual input values of CONFIG_FILES etc. instead of their
14370# values after options handling.
14371ac_log="
14372This file was extended by json-c $as_me 0.13, which was
14373generated by GNU Autoconf 2.71.  Invocation command line was
14374
14375  CONFIG_FILES    = $CONFIG_FILES
14376  CONFIG_HEADERS  = $CONFIG_HEADERS
14377  CONFIG_LINKS    = $CONFIG_LINKS
14378  CONFIG_COMMANDS = $CONFIG_COMMANDS
14379  $ $0 $@
14380
14381on `(hostname || uname -n) 2>/dev/null | sed 1q`
14382"
14383
14384_ACEOF
14385
14386case $ac_config_files in *"
14387"*) set x $ac_config_files; shift; ac_config_files=$*;;
14388esac
14389
14390case $ac_config_headers in *"
14391"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14392esac
14393
14394
14395cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14396# Files that config.status was made for.
14397config_files="$ac_config_files"
14398config_headers="$ac_config_headers"
14399config_commands="$ac_config_commands"
14400
14401_ACEOF
14402
14403cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14404ac_cs_usage="\
14405\`$as_me' instantiates files and other configuration actions
14406from templates according to the current configuration.  Unless the files
14407and actions are specified as TAGs, all are instantiated by default.
14408
14409Usage: $0 [OPTION]... [TAG]...
14410
14411  -h, --help       print this help, then exit
14412  -V, --version    print version number and configuration settings, then exit
14413      --config     print configuration, then exit
14414  -q, --quiet, --silent
14415                   do not print progress messages
14416  -d, --debug      don't remove temporary files
14417      --recheck    update $as_me by reconfiguring in the same conditions
14418      --file=FILE[:TEMPLATE]
14419                   instantiate the configuration file FILE
14420      --header=FILE[:TEMPLATE]
14421                   instantiate the configuration header FILE
14422
14423Configuration files:
14424$config_files
14425
14426Configuration headers:
14427$config_headers
14428
14429Configuration commands:
14430$config_commands
14431
14432Report bugs to <json-c@googlegroups.com>."
14433
14434_ACEOF
14435ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
14436ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
14437cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14438ac_cs_config='$ac_cs_config_escaped'
14439ac_cs_version="\\
14440json-c config.status 0.13
14441configured by $0, generated by GNU Autoconf 2.71,
14442  with options \\"\$ac_cs_config\\"
14443
14444Copyright (C) 2021 Free Software Foundation, Inc.
14445This config.status script is free software; the Free Software Foundation
14446gives unlimited permission to copy, distribute and modify it."
14447
14448ac_pwd='$ac_pwd'
14449srcdir='$srcdir'
14450INSTALL='$INSTALL'
14451MKDIR_P='$MKDIR_P'
14452AWK='$AWK'
14453test -n "\$AWK" || AWK=awk
14454_ACEOF
14455
14456cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14457# The default lists apply if the user does not specify any file.
14458ac_need_defaults=:
14459while test $# != 0
14460do
14461  case $1 in
14462  --*=?*)
14463    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14464    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14465    ac_shift=:
14466    ;;
14467  --*=)
14468    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14469    ac_optarg=
14470    ac_shift=:
14471    ;;
14472  *)
14473    ac_option=$1
14474    ac_optarg=$2
14475    ac_shift=shift
14476    ;;
14477  esac
14478
14479  case $ac_option in
14480  # Handling of the options.
14481  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14482    ac_cs_recheck=: ;;
14483  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14484    printf "%s\n" "$ac_cs_version"; exit ;;
14485  --config | --confi | --conf | --con | --co | --c )
14486    printf "%s\n" "$ac_cs_config"; exit ;;
14487  --debug | --debu | --deb | --de | --d | -d )
14488    debug=: ;;
14489  --file | --fil | --fi | --f )
14490    $ac_shift
14491    case $ac_optarg in
14492    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14493    '') as_fn_error $? "missing file argument" ;;
14494    esac
14495    as_fn_append CONFIG_FILES " '$ac_optarg'"
14496    ac_need_defaults=false;;
14497  --header | --heade | --head | --hea )
14498    $ac_shift
14499    case $ac_optarg in
14500    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14501    esac
14502    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14503    ac_need_defaults=false;;
14504  --he | --h)
14505    # Conflict between --help and --header
14506    as_fn_error $? "ambiguous option: \`$1'
14507Try \`$0 --help' for more information.";;
14508  --help | --hel | -h )
14509    printf "%s\n" "$ac_cs_usage"; exit ;;
14510  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14511  | -silent | --silent | --silen | --sile | --sil | --si | --s)
14512    ac_cs_silent=: ;;
14513
14514  # This is an error.
14515  -*) as_fn_error $? "unrecognized option: \`$1'
14516Try \`$0 --help' for more information." ;;
14517
14518  *) as_fn_append ac_config_targets " $1"
14519     ac_need_defaults=false ;;
14520
14521  esac
14522  shift
14523done
14524
14525ac_configure_extra_args=
14526
14527if $ac_cs_silent; then
14528  exec 6>/dev/null
14529  ac_configure_extra_args="$ac_configure_extra_args --silent"
14530fi
14531
14532_ACEOF
14533cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14534if \$ac_cs_recheck; then
14535  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14536  shift
14537  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
14538  CONFIG_SHELL='$SHELL'
14539  export CONFIG_SHELL
14540  exec "\$@"
14541fi
14542
14543_ACEOF
14544cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14545exec 5>>config.log
14546{
14547  echo
14548  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14549## Running $as_me. ##
14550_ASBOX
14551  printf "%s\n" "$ac_log"
14552} >&5
14553
14554_ACEOF
14555cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14556#
14557# INIT-COMMANDS
14558#
14559AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
14560
14561
14562# The HP-UX ksh and POSIX shell print the target directory to stdout
14563# if CDPATH is set.
14564(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14565
14566sed_quote_subst='$sed_quote_subst'
14567double_quote_subst='$double_quote_subst'
14568delay_variable_subst='$delay_variable_subst'
14569macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14570macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14571enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14572enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14573pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14574enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14575shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14576SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14577ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14578PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14579host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14580host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14581host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14582build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14583build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14584build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14585SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14586Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14587GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14588EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14589FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14590LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14591NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14592LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14593max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14594ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14595exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14596lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14597lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14598lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14599lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14600lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14601reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14602reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14603OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14604deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14605file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14606file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14607want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14608DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14609sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14610AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14611AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14612archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14613STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14614RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14615old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14616old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14617old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14618lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14619CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14620CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14621compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14622GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14623lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14624lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14625lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14626lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14627lt_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"`'
14628lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14629nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14630lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14631lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14632objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14633MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14634lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14635lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14636lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14637lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14638lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14639need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14640MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14641DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14642NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14643LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14644OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14645OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14646libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14647shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14648extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14649archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14650enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14651export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14652whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14653compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14654old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14655old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14656archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14657archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14658module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14659module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14660with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14661allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14662no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14663hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14664hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14665hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14666hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14667hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14668hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14669hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14670inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14671link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14672always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14673export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14674exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14675include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14676prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14677postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14678file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14679variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14680need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14681need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14682version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14683runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14684shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14685shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14686libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14687library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14688soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14689install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14690postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14691postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14692finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14693finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14694hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14695sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14696configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14697configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14698hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14699enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14700enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14701enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14702old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14703striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14704
14705LTCC='$LTCC'
14706LTCFLAGS='$LTCFLAGS'
14707compiler='$compiler_DEFAULT'
14708
14709# A function that is used when there is no print builtin or printf.
14710func_fallback_echo ()
14711{
14712  eval 'cat <<_LTECHO_EOF
14713\$1
14714_LTECHO_EOF'
14715}
14716
14717# Quote evaled strings.
14718for var in SHELL \
14719ECHO \
14720PATH_SEPARATOR \
14721SED \
14722GREP \
14723EGREP \
14724FGREP \
14725LD \
14726NM \
14727LN_S \
14728lt_SP2NL \
14729lt_NL2SP \
14730reload_flag \
14731OBJDUMP \
14732deplibs_check_method \
14733file_magic_cmd \
14734file_magic_glob \
14735want_nocaseglob \
14736DLLTOOL \
14737sharedlib_from_linklib_cmd \
14738AR \
14739AR_FLAGS \
14740archiver_list_spec \
14741STRIP \
14742RANLIB \
14743CC \
14744CFLAGS \
14745compiler \
14746lt_cv_sys_global_symbol_pipe \
14747lt_cv_sys_global_symbol_to_cdecl \
14748lt_cv_sys_global_symbol_to_import \
14749lt_cv_sys_global_symbol_to_c_name_address \
14750lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14751lt_cv_nm_interface \
14752nm_file_list_spec \
14753lt_cv_truncate_bin \
14754lt_prog_compiler_no_builtin_flag \
14755lt_prog_compiler_pic \
14756lt_prog_compiler_wl \
14757lt_prog_compiler_static \
14758lt_cv_prog_compiler_c_o \
14759need_locks \
14760MANIFEST_TOOL \
14761DSYMUTIL \
14762NMEDIT \
14763LIPO \
14764OTOOL \
14765OTOOL64 \
14766shrext_cmds \
14767export_dynamic_flag_spec \
14768whole_archive_flag_spec \
14769compiler_needs_object \
14770with_gnu_ld \
14771allow_undefined_flag \
14772no_undefined_flag \
14773hardcode_libdir_flag_spec \
14774hardcode_libdir_separator \
14775exclude_expsyms \
14776include_expsyms \
14777file_list_spec \
14778variables_saved_for_relink \
14779libname_spec \
14780library_names_spec \
14781soname_spec \
14782install_override_mode \
14783finish_eval \
14784old_striplib \
14785striplib; do
14786    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14787    *[\\\\\\\`\\"\\\$]*)
14788      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14789      ;;
14790    *)
14791      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14792      ;;
14793    esac
14794done
14795
14796# Double-quote double-evaled strings.
14797for var in reload_cmds \
14798old_postinstall_cmds \
14799old_postuninstall_cmds \
14800old_archive_cmds \
14801extract_expsyms_cmds \
14802old_archive_from_new_cmds \
14803old_archive_from_expsyms_cmds \
14804archive_cmds \
14805archive_expsym_cmds \
14806module_cmds \
14807module_expsym_cmds \
14808export_symbols_cmds \
14809prelink_cmds \
14810postlink_cmds \
14811postinstall_cmds \
14812postuninstall_cmds \
14813finish_cmds \
14814sys_lib_search_path_spec \
14815configure_time_dlsearch_path \
14816configure_time_lt_sys_library_path; do
14817    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14818    *[\\\\\\\`\\"\\\$]*)
14819      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14820      ;;
14821    *)
14822      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14823      ;;
14824    esac
14825done
14826
14827ac_aux_dir='$ac_aux_dir'
14828
14829# See if we are running on zsh, and set the options that allow our
14830# commands through without removal of \ escapes INIT.
14831if test -n "\${ZSH_VERSION+set}"; then
14832   setopt NO_GLOB_SUBST
14833fi
14834
14835
14836    PACKAGE='$PACKAGE'
14837    VERSION='$VERSION'
14838    RM='$RM'
14839    ofile='$ofile'
14840
14841
14842
14843
14844_ACEOF
14845
14846cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14847
14848# Handling of arguments.
14849for ac_config_target in $ac_config_targets
14850do
14851  case $ac_config_target in
14852    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14853    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14854    "json_config.h") CONFIG_HEADERS="$CONFIG_HEADERS json_config.h" ;;
14855    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14856    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14857    "json-c.pc") CONFIG_FILES="$CONFIG_FILES json-c.pc" ;;
14858    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
14859    "json-c-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES json-c-uninstalled.pc" ;;
14860
14861  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14862  esac
14863done
14864
14865
14866# If the user did not use the arguments to specify the items to instantiate,
14867# then the envvar interface is used.  Set only those that are not.
14868# We use the long form for the default assignment because of an extremely
14869# bizarre bug on SunOS 4.1.3.
14870if $ac_need_defaults; then
14871  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
14872  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
14873  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
14874fi
14875
14876# Have a temporary directory for convenience.  Make it in the build tree
14877# simply because there is no reason against having it here, and in addition,
14878# creating and moving files from /tmp can sometimes cause problems.
14879# Hook for its removal unless debugging.
14880# Note that there is a small window in which the directory will not be cleaned:
14881# after its creation but before its name has been assigned to `$tmp'.
14882$debug ||
14883{
14884  tmp= ac_tmp=
14885  trap 'exit_status=$?
14886  : "${ac_tmp:=$tmp}"
14887  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14888' 0
14889  trap 'as_fn_exit 1' 1 2 13 15
14890}
14891# Create a (secure) tmp directory for tmp files.
14892
14893{
14894  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14895  test -d "$tmp"
14896}  ||
14897{
14898  tmp=./conf$$-$RANDOM
14899  (umask 077 && mkdir "$tmp")
14900} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14901ac_tmp=$tmp
14902
14903# Set up the scripts for CONFIG_FILES section.
14904# No need to generate them if there are no CONFIG_FILES.
14905# This happens for instance with `./config.status config.h'.
14906if test -n "$CONFIG_FILES"; then
14907
14908
14909ac_cr=`echo X | tr X '\015'`
14910# On cygwin, bash can eat \r inside `` if the user requested igncr.
14911# But we know of no other shell where ac_cr would be empty at this
14912# point, so we can use a bashism as a fallback.
14913if test "x$ac_cr" = x; then
14914  eval ac_cr=\$\'\\r\'
14915fi
14916ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14917if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14918  ac_cs_awk_cr='\\r'
14919else
14920  ac_cs_awk_cr=$ac_cr
14921fi
14922
14923echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14924_ACEOF
14925
14926
14927{
14928  echo "cat >conf$$subs.awk <<_ACEOF" &&
14929  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14930  echo "_ACEOF"
14931} >conf$$subs.sh ||
14932  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14933ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14934ac_delim='%!_!# '
14935for ac_last_try in false false false false false :; do
14936  . ./conf$$subs.sh ||
14937    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14938
14939  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14940  if test $ac_delim_n = $ac_delim_num; then
14941    break
14942  elif $ac_last_try; then
14943    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14944  else
14945    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14946  fi
14947done
14948rm -f conf$$subs.sh
14949
14950cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14951cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14952_ACEOF
14953sed -n '
14954h
14955s/^/S["/; s/!.*/"]=/
14956p
14957g
14958s/^[^!]*!//
14959:repl
14960t repl
14961s/'"$ac_delim"'$//
14962t delim
14963:nl
14964h
14965s/\(.\{148\}\)..*/\1/
14966t more1
14967s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14968p
14969n
14970b repl
14971:more1
14972s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14973p
14974g
14975s/.\{148\}//
14976t nl
14977:delim
14978h
14979s/\(.\{148\}\)..*/\1/
14980t more2
14981s/["\\]/\\&/g; s/^/"/; s/$/"/
14982p
14983b
14984:more2
14985s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14986p
14987g
14988s/.\{148\}//
14989t delim
14990' <conf$$subs.awk | sed '
14991/^[^""]/{
14992  N
14993  s/\n//
14994}
14995' >>$CONFIG_STATUS || ac_write_fail=1
14996rm -f conf$$subs.awk
14997cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14998_ACAWK
14999cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15000  for (key in S) S_is_set[key] = 1
15001  FS = ""
15002
15003}
15004{
15005  line = $ 0
15006  nfields = split(line, field, "@")
15007  substed = 0
15008  len = length(field[1])
15009  for (i = 2; i < nfields; i++) {
15010    key = field[i]
15011    keylen = length(key)
15012    if (S_is_set[key]) {
15013      value = S[key]
15014      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15015      len += length(value) + length(field[++i])
15016      substed = 1
15017    } else
15018      len += 1 + keylen
15019  }
15020
15021  print line
15022}
15023
15024_ACAWK
15025_ACEOF
15026cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15027if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15028  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15029else
15030  cat
15031fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15032  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15033_ACEOF
15034
15035# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15036# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15037# trailing colons and then remove the whole line if VPATH becomes empty
15038# (actually we leave an empty line to preserve line numbers).
15039if test "x$srcdir" = x.; then
15040  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
15041h
15042s///
15043s/^/:/
15044s/[	 ]*$/:/
15045s/:\$(srcdir):/:/g
15046s/:\${srcdir}:/:/g
15047s/:@srcdir@:/:/g
15048s/^:*//
15049s/:*$//
15050x
15051s/\(=[	 ]*\).*/\1/
15052G
15053s/\n//
15054s/^[^=]*=[	 ]*$//
15055}'
15056fi
15057
15058cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15059fi # test -n "$CONFIG_FILES"
15060
15061# Set up the scripts for CONFIG_HEADERS section.
15062# No need to generate them if there are no CONFIG_HEADERS.
15063# This happens for instance with `./config.status Makefile'.
15064if test -n "$CONFIG_HEADERS"; then
15065cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15066BEGIN {
15067_ACEOF
15068
15069# Transform confdefs.h into an awk script `defines.awk', embedded as
15070# here-document in config.status, that substitutes the proper values into
15071# config.h.in to produce config.h.
15072
15073# Create a delimiter string that does not exist in confdefs.h, to ease
15074# handling of long lines.
15075ac_delim='%!_!# '
15076for ac_last_try in false false :; do
15077  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15078  if test -z "$ac_tt"; then
15079    break
15080  elif $ac_last_try; then
15081    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15082  else
15083    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15084  fi
15085done
15086
15087# For the awk script, D is an array of macro values keyed by name,
15088# likewise P contains macro parameters if any.  Preserve backslash
15089# newline sequences.
15090
15091ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15092sed -n '
15093s/.\{148\}/&'"$ac_delim"'/g
15094t rset
15095:rset
15096s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
15097t def
15098d
15099:def
15100s/\\$//
15101t bsnl
15102s/["\\]/\\&/g
15103s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15104D["\1"]=" \3"/p
15105s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
15106d
15107:bsnl
15108s/["\\]/\\&/g
15109s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15110D["\1"]=" \3\\\\\\n"\\/p
15111t cont
15112s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15113t cont
15114d
15115:cont
15116n
15117s/.\{148\}/&'"$ac_delim"'/g
15118t clear
15119:clear
15120s/\\$//
15121t bsnlc
15122s/["\\]/\\&/g; s/^/"/; s/$/"/p
15123d
15124:bsnlc
15125s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15126b cont
15127' <confdefs.h | sed '
15128s/'"$ac_delim"'/"\\\
15129"/g' >>$CONFIG_STATUS || ac_write_fail=1
15130
15131cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15132  for (key in D) D_is_set[key] = 1
15133  FS = ""
15134}
15135/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15136  line = \$ 0
15137  split(line, arg, " ")
15138  if (arg[1] == "#") {
15139    defundef = arg[2]
15140    mac1 = arg[3]
15141  } else {
15142    defundef = substr(arg[1], 2)
15143    mac1 = arg[2]
15144  }
15145  split(mac1, mac2, "(") #)
15146  macro = mac2[1]
15147  prefix = substr(line, 1, index(line, defundef) - 1)
15148  if (D_is_set[macro]) {
15149    # Preserve the white space surrounding the "#".
15150    print prefix "define", macro P[macro] D[macro]
15151    next
15152  } else {
15153    # Replace #undef with comments.  This is necessary, for example,
15154    # in the case of _POSIX_SOURCE, which is predefined and required
15155    # on some systems where configure will not decide to define it.
15156    if (defundef == "undef") {
15157      print "/*", prefix defundef, macro, "*/"
15158      next
15159    }
15160  }
15161}
15162{ print }
15163_ACAWK
15164_ACEOF
15165cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15166  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15167fi # test -n "$CONFIG_HEADERS"
15168
15169
15170eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
15171shift
15172for ac_tag
15173do
15174  case $ac_tag in
15175  :[FHLC]) ac_mode=$ac_tag; continue;;
15176  esac
15177  case $ac_mode$ac_tag in
15178  :[FHL]*:*);;
15179  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15180  :[FH]-) ac_tag=-:-;;
15181  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15182  esac
15183  ac_save_IFS=$IFS
15184  IFS=:
15185  set x $ac_tag
15186  IFS=$ac_save_IFS
15187  shift
15188  ac_file=$1
15189  shift
15190
15191  case $ac_mode in
15192  :L) ac_source=$1;;
15193  :[FH])
15194    ac_file_inputs=
15195    for ac_f
15196    do
15197      case $ac_f in
15198      -) ac_f="$ac_tmp/stdin";;
15199      *) # Look for the file first in the build tree, then in the source tree
15200	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
15201	 # because $ac_f cannot contain `:'.
15202	 test -f "$ac_f" ||
15203	   case $ac_f in
15204	   [\\/$]*) false;;
15205	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15206	   esac ||
15207	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15208      esac
15209      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15210      as_fn_append ac_file_inputs " '$ac_f'"
15211    done
15212
15213    # Let's still pretend it is `configure' which instantiates (i.e., don't
15214    # use $as_me), people would be surprised to read:
15215    #    /* config.h.  Generated by config.status.  */
15216    configure_input='Generated from '`
15217	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15218	`' by configure.'
15219    if test x"$ac_file" != x-; then
15220      configure_input="$ac_file.  $configure_input"
15221      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15222printf "%s\n" "$as_me: creating $ac_file" >&6;}
15223    fi
15224    # Neutralize special characters interpreted by sed in replacement strings.
15225    case $configure_input in #(
15226    *\&* | *\|* | *\\* )
15227       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
15228       sed 's/[\\\\&|]/\\\\&/g'`;; #(
15229    *) ac_sed_conf_input=$configure_input;;
15230    esac
15231
15232    case $ac_tag in
15233    *:-:* | *:-) cat >"$ac_tmp/stdin" \
15234      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15235    esac
15236    ;;
15237  esac
15238
15239  ac_dir=`$as_dirname -- "$ac_file" ||
15240$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15241	 X"$ac_file" : 'X\(//\)[^/]' \| \
15242	 X"$ac_file" : 'X\(//\)$' \| \
15243	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15244printf "%s\n" X"$ac_file" |
15245    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15246	    s//\1/
15247	    q
15248	  }
15249	  /^X\(\/\/\)[^/].*/{
15250	    s//\1/
15251	    q
15252	  }
15253	  /^X\(\/\/\)$/{
15254	    s//\1/
15255	    q
15256	  }
15257	  /^X\(\/\).*/{
15258	    s//\1/
15259	    q
15260	  }
15261	  s/.*/./; q'`
15262  as_dir="$ac_dir"; as_fn_mkdir_p
15263  ac_builddir=.
15264
15265case "$ac_dir" in
15266.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15267*)
15268  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
15269  # A ".." for each directory in $ac_dir_suffix.
15270  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15271  case $ac_top_builddir_sub in
15272  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15273  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15274  esac ;;
15275esac
15276ac_abs_top_builddir=$ac_pwd
15277ac_abs_builddir=$ac_pwd$ac_dir_suffix
15278# for backward compatibility:
15279ac_top_builddir=$ac_top_build_prefix
15280
15281case $srcdir in
15282  .)  # We are building in place.
15283    ac_srcdir=.
15284    ac_top_srcdir=$ac_top_builddir_sub
15285    ac_abs_top_srcdir=$ac_pwd ;;
15286  [\\/]* | ?:[\\/]* )  # Absolute name.
15287    ac_srcdir=$srcdir$ac_dir_suffix;
15288    ac_top_srcdir=$srcdir
15289    ac_abs_top_srcdir=$srcdir ;;
15290  *) # Relative name.
15291    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15292    ac_top_srcdir=$ac_top_build_prefix$srcdir
15293    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15294esac
15295ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15296
15297
15298  case $ac_mode in
15299  :F)
15300  #
15301  # CONFIG_FILE
15302  #
15303
15304  case $INSTALL in
15305  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15306  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15307  esac
15308  ac_MKDIR_P=$MKDIR_P
15309  case $MKDIR_P in
15310  [\\/$]* | ?:[\\/]* ) ;;
15311  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15312  esac
15313_ACEOF
15314
15315cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15316# If the template does not know about datarootdir, expand it.
15317# FIXME: This hack should be removed a few years after 2.60.
15318ac_datarootdir_hack=; ac_datarootdir_seen=
15319ac_sed_dataroot='
15320/datarootdir/ {
15321  p
15322  q
15323}
15324/@datadir@/p
15325/@docdir@/p
15326/@infodir@/p
15327/@localedir@/p
15328/@mandir@/p'
15329case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15330*datarootdir*) ac_datarootdir_seen=yes;;
15331*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15332  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15333printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15334_ACEOF
15335cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15336  ac_datarootdir_hack='
15337  s&@datadir@&$datadir&g
15338  s&@docdir@&$docdir&g
15339  s&@infodir@&$infodir&g
15340  s&@localedir@&$localedir&g
15341  s&@mandir@&$mandir&g
15342  s&\\\${datarootdir}&$datarootdir&g' ;;
15343esac
15344_ACEOF
15345
15346# Neutralize VPATH when `$srcdir' = `.'.
15347# Shell code in configure.ac might set extrasub.
15348# FIXME: do we really want to maintain this feature?
15349cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15350ac_sed_extra="$ac_vpsub
15351$extrasub
15352_ACEOF
15353cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15354:t
15355/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15356s|@configure_input@|$ac_sed_conf_input|;t t
15357s&@top_builddir@&$ac_top_builddir_sub&;t t
15358s&@top_build_prefix@&$ac_top_build_prefix&;t t
15359s&@srcdir@&$ac_srcdir&;t t
15360s&@abs_srcdir@&$ac_abs_srcdir&;t t
15361s&@top_srcdir@&$ac_top_srcdir&;t t
15362s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15363s&@builddir@&$ac_builddir&;t t
15364s&@abs_builddir@&$ac_abs_builddir&;t t
15365s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15366s&@INSTALL@&$ac_INSTALL&;t t
15367s&@MKDIR_P@&$ac_MKDIR_P&;t t
15368$ac_datarootdir_hack
15369"
15370eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15371  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15372
15373test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15374  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15375  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
15376      "$ac_tmp/out"`; test -z "$ac_out"; } &&
15377  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15378which seems to be undefined.  Please make sure it is defined" >&5
15379printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15380which seems to be undefined.  Please make sure it is defined" >&2;}
15381
15382  rm -f "$ac_tmp/stdin"
15383  case $ac_file in
15384  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15385  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15386  esac \
15387  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15388 ;;
15389  :H)
15390  #
15391  # CONFIG_HEADER
15392  #
15393  if test x"$ac_file" != x-; then
15394    {
15395      printf "%s\n" "/* $configure_input  */" >&1 \
15396      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15397    } >"$ac_tmp/config.h" \
15398      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15399    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15400      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15401printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
15402    else
15403      rm -f "$ac_file"
15404      mv "$ac_tmp/config.h" "$ac_file" \
15405	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
15406    fi
15407  else
15408    printf "%s\n" "/* $configure_input  */" >&1 \
15409      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15410      || as_fn_error $? "could not create -" "$LINENO" 5
15411  fi
15412# Compute "$ac_file"'s index in $config_headers.
15413_am_arg="$ac_file"
15414_am_stamp_count=1
15415for _am_header in $config_headers :; do
15416  case $_am_header in
15417    $_am_arg | $_am_arg:* )
15418      break ;;
15419    * )
15420      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15421  esac
15422done
15423echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15424$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15425	 X"$_am_arg" : 'X\(//\)[^/]' \| \
15426	 X"$_am_arg" : 'X\(//\)$' \| \
15427	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15428printf "%s\n" X"$_am_arg" |
15429    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15430	    s//\1/
15431	    q
15432	  }
15433	  /^X\(\/\/\)[^/].*/{
15434	    s//\1/
15435	    q
15436	  }
15437	  /^X\(\/\/\)$/{
15438	    s//\1/
15439	    q
15440	  }
15441	  /^X\(\/\).*/{
15442	    s//\1/
15443	    q
15444	  }
15445	  s/.*/./; q'`/stamp-h$_am_stamp_count
15446 ;;
15447
15448  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15449printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
15450 ;;
15451  esac
15452
15453
15454  case $ac_file$ac_mode in
15455    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15456  # Older Autoconf quotes --file arguments for eval, but not when files
15457  # are listed without --file.  Let's play safe and only enable the eval
15458  # if we detect the quoting.
15459  # TODO: see whether this extra hack can be removed once we start
15460  # requiring Autoconf 2.70 or later.
15461  case $CONFIG_FILES in #(
15462  *\'*) :
15463    eval set x "$CONFIG_FILES" ;; #(
15464  *) :
15465    set x $CONFIG_FILES ;; #(
15466  *) :
15467     ;;
15468esac
15469  shift
15470  # Used to flag and report bootstrapping failures.
15471  am_rc=0
15472  for am_mf
15473  do
15474    # Strip MF so we end up with the name of the file.
15475    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
15476    # Check whether this is an Automake generated Makefile which includes
15477    # dependency-tracking related rules and includes.
15478    # Grep'ing the whole file directly is not great: AIX grep has a line
15479    # limit of 2048, but all sed's we know have understand at least 4000.
15480    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
15481      || continue
15482    am_dirpart=`$as_dirname -- "$am_mf" ||
15483$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15484	 X"$am_mf" : 'X\(//\)[^/]' \| \
15485	 X"$am_mf" : 'X\(//\)$' \| \
15486	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15487printf "%s\n" X"$am_mf" |
15488    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15489	    s//\1/
15490	    q
15491	  }
15492	  /^X\(\/\/\)[^/].*/{
15493	    s//\1/
15494	    q
15495	  }
15496	  /^X\(\/\/\)$/{
15497	    s//\1/
15498	    q
15499	  }
15500	  /^X\(\/\).*/{
15501	    s//\1/
15502	    q
15503	  }
15504	  s/.*/./; q'`
15505    am_filepart=`$as_basename -- "$am_mf" ||
15506$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
15507	 X"$am_mf" : 'X\(//\)$' \| \
15508	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15509printf "%s\n" X/"$am_mf" |
15510    sed '/^.*\/\([^/][^/]*\)\/*$/{
15511	    s//\1/
15512	    q
15513	  }
15514	  /^X\/\(\/\/\)$/{
15515	    s//\1/
15516	    q
15517	  }
15518	  /^X\/\(\/\).*/{
15519	    s//\1/
15520	    q
15521	  }
15522	  s/.*/./; q'`
15523    { echo "$as_me:$LINENO: cd "$am_dirpart" \
15524      && sed -e '/# am--include-marker/d' "$am_filepart" \
15525        | $MAKE -f - am--depfiles" >&5
15526   (cd "$am_dirpart" \
15527      && sed -e '/# am--include-marker/d' "$am_filepart" \
15528        | $MAKE -f - am--depfiles) >&5 2>&5
15529   ac_status=$?
15530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531   (exit $ac_status); } || am_rc=$?
15532  done
15533  if test $am_rc -ne 0; then
15534    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15535printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15536as_fn_error $? "Something went wrong bootstrapping makefile fragments
15537    for automatic dependency tracking.  If GNU make was not used, consider
15538    re-running the configure script with MAKE=\"gmake\" (or whatever is
15539    necessary).  You can also try re-running configure with the
15540    '--disable-dependency-tracking' option to at least be able to build
15541    the package (albeit without support for automatic dependency tracking).
15542See \`config.log' for more details" "$LINENO" 5; }
15543  fi
15544  { am_dirpart=; unset am_dirpart;}
15545  { am_filepart=; unset am_filepart;}
15546  { am_mf=; unset am_mf;}
15547  { am_rc=; unset am_rc;}
15548  rm -f conftest-deps.mk
15549}
15550 ;;
15551    "libtool":C)
15552
15553    # See if we are running on zsh, and set the options that allow our
15554    # commands through without removal of \ escapes.
15555    if test -n "${ZSH_VERSION+set}"; then
15556      setopt NO_GLOB_SUBST
15557    fi
15558
15559    cfgfile=${ofile}T
15560    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15561    $RM "$cfgfile"
15562
15563    cat <<_LT_EOF >> "$cfgfile"
15564#! $SHELL
15565# Generated automatically by $as_me ($PACKAGE) $VERSION
15566# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15567
15568# Provide generalized library-building support services.
15569# Written by Gordon Matzigkeit, 1996
15570
15571# Copyright (C) 2014 Free Software Foundation, Inc.
15572# This is free software; see the source for copying conditions.  There is NO
15573# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15574
15575# GNU Libtool is free software; you can redistribute it and/or modify
15576# it under the terms of the GNU General Public License as published by
15577# the Free Software Foundation; either version 2 of of the License, or
15578# (at your option) any later version.
15579#
15580# As a special exception to the GNU General Public License, if you
15581# distribute this file as part of a program or library that is built
15582# using GNU Libtool, you may include this file under the  same
15583# distribution terms that you use for the rest of that program.
15584#
15585# GNU Libtool is distributed in the hope that it will be useful, but
15586# WITHOUT ANY WARRANTY; without even the implied warranty of
15587# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15588# GNU General Public License for more details.
15589#
15590# You should have received a copy of the GNU General Public License
15591# along with this program.  If not, see <http://www.gnu.org/licenses/>.
15592
15593
15594# The names of the tagged configurations supported by this script.
15595available_tags=''
15596
15597# Configured defaults for sys_lib_dlsearch_path munging.
15598: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15599
15600# ### BEGIN LIBTOOL CONFIG
15601
15602# Which release of libtool.m4 was used?
15603macro_version=$macro_version
15604macro_revision=$macro_revision
15605
15606# Whether or not to build shared libraries.
15607build_libtool_libs=$enable_shared
15608
15609# Whether or not to build static libraries.
15610build_old_libs=$enable_static
15611
15612# What type of objects to build.
15613pic_mode=$pic_mode
15614
15615# Whether or not to optimize for fast installation.
15616fast_install=$enable_fast_install
15617
15618# Shared archive member basename,for filename based shared library versioning on AIX.
15619shared_archive_member_spec=$shared_archive_member_spec
15620
15621# Shell to use when invoking shell scripts.
15622SHELL=$lt_SHELL
15623
15624# An echo program that protects backslashes.
15625ECHO=$lt_ECHO
15626
15627# The PATH separator for the build system.
15628PATH_SEPARATOR=$lt_PATH_SEPARATOR
15629
15630# The host system.
15631host_alias=$host_alias
15632host=$host
15633host_os=$host_os
15634
15635# The build system.
15636build_alias=$build_alias
15637build=$build
15638build_os=$build_os
15639
15640# A sed program that does not truncate output.
15641SED=$lt_SED
15642
15643# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15644Xsed="\$SED -e 1s/^X//"
15645
15646# A grep program that handles long lines.
15647GREP=$lt_GREP
15648
15649# An ERE matcher.
15650EGREP=$lt_EGREP
15651
15652# A literal string matcher.
15653FGREP=$lt_FGREP
15654
15655# A BSD- or MS-compatible name lister.
15656NM=$lt_NM
15657
15658# Whether we need soft or hard links.
15659LN_S=$lt_LN_S
15660
15661# What is the maximum length of a command?
15662max_cmd_len=$max_cmd_len
15663
15664# Object file suffix (normally "o").
15665objext=$ac_objext
15666
15667# Executable file suffix (normally "").
15668exeext=$exeext
15669
15670# whether the shell understands "unset".
15671lt_unset=$lt_unset
15672
15673# turn spaces into newlines.
15674SP2NL=$lt_lt_SP2NL
15675
15676# turn newlines into spaces.
15677NL2SP=$lt_lt_NL2SP
15678
15679# convert \$build file names to \$host format.
15680to_host_file_cmd=$lt_cv_to_host_file_cmd
15681
15682# convert \$build files to toolchain format.
15683to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15684
15685# An object symbol dumper.
15686OBJDUMP=$lt_OBJDUMP
15687
15688# Method to check whether dependent libraries are shared objects.
15689deplibs_check_method=$lt_deplibs_check_method
15690
15691# Command to use when deplibs_check_method = "file_magic".
15692file_magic_cmd=$lt_file_magic_cmd
15693
15694# How to find potential files when deplibs_check_method = "file_magic".
15695file_magic_glob=$lt_file_magic_glob
15696
15697# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15698want_nocaseglob=$lt_want_nocaseglob
15699
15700# DLL creation program.
15701DLLTOOL=$lt_DLLTOOL
15702
15703# Command to associate shared and link libraries.
15704sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15705
15706# The archiver.
15707AR=$lt_AR
15708
15709# Flags to create an archive.
15710AR_FLAGS=$lt_AR_FLAGS
15711
15712# How to feed a file listing to the archiver.
15713archiver_list_spec=$lt_archiver_list_spec
15714
15715# A symbol stripping program.
15716STRIP=$lt_STRIP
15717
15718# Commands used to install an old-style archive.
15719RANLIB=$lt_RANLIB
15720old_postinstall_cmds=$lt_old_postinstall_cmds
15721old_postuninstall_cmds=$lt_old_postuninstall_cmds
15722
15723# Whether to use a lock for old archive extraction.
15724lock_old_archive_extraction=$lock_old_archive_extraction
15725
15726# A C compiler.
15727LTCC=$lt_CC
15728
15729# LTCC compiler flags.
15730LTCFLAGS=$lt_CFLAGS
15731
15732# Take the output of nm and produce a listing of raw symbols and C names.
15733global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15734
15735# Transform the output of nm in a proper C declaration.
15736global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15737
15738# Transform the output of nm into a list of symbols to manually relocate.
15739global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15740
15741# Transform the output of nm in a C name address pair.
15742global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15743
15744# Transform the output of nm in a C name address pair when lib prefix is needed.
15745global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15746
15747# The name lister interface.
15748nm_interface=$lt_lt_cv_nm_interface
15749
15750# Specify filename containing input files for \$NM.
15751nm_file_list_spec=$lt_nm_file_list_spec
15752
15753# The root where to search for dependent libraries,and where our libraries should be installed.
15754lt_sysroot=$lt_sysroot
15755
15756# Command to truncate a binary pipe.
15757lt_truncate_bin=$lt_lt_cv_truncate_bin
15758
15759# The name of the directory that contains temporary libtool files.
15760objdir=$objdir
15761
15762# Used to examine libraries when file_magic_cmd begins with "file".
15763MAGIC_CMD=$MAGIC_CMD
15764
15765# Must we lock files when doing compilation?
15766need_locks=$lt_need_locks
15767
15768# Manifest tool.
15769MANIFEST_TOOL=$lt_MANIFEST_TOOL
15770
15771# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15772DSYMUTIL=$lt_DSYMUTIL
15773
15774# Tool to change global to local symbols on Mac OS X.
15775NMEDIT=$lt_NMEDIT
15776
15777# Tool to manipulate fat objects and archives on Mac OS X.
15778LIPO=$lt_LIPO
15779
15780# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15781OTOOL=$lt_OTOOL
15782
15783# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15784OTOOL64=$lt_OTOOL64
15785
15786# Old archive suffix (normally "a").
15787libext=$libext
15788
15789# Shared library suffix (normally ".so").
15790shrext_cmds=$lt_shrext_cmds
15791
15792# The commands to extract the exported symbol list from a shared archive.
15793extract_expsyms_cmds=$lt_extract_expsyms_cmds
15794
15795# Variables whose values should be saved in libtool wrapper scripts and
15796# restored at link time.
15797variables_saved_for_relink=$lt_variables_saved_for_relink
15798
15799# Do we need the "lib" prefix for modules?
15800need_lib_prefix=$need_lib_prefix
15801
15802# Do we need a version for libraries?
15803need_version=$need_version
15804
15805# Library versioning type.
15806version_type=$version_type
15807
15808# Shared library runtime path variable.
15809runpath_var=$runpath_var
15810
15811# Shared library path variable.
15812shlibpath_var=$shlibpath_var
15813
15814# Is shlibpath searched before the hard-coded library search path?
15815shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15816
15817# Format of library name prefix.
15818libname_spec=$lt_libname_spec
15819
15820# List of archive names.  First name is the real one, the rest are links.
15821# The last name is the one that the linker finds with -lNAME
15822library_names_spec=$lt_library_names_spec
15823
15824# The coded name of the library, if different from the real name.
15825soname_spec=$lt_soname_spec
15826
15827# Permission mode override for installation of shared libraries.
15828install_override_mode=$lt_install_override_mode
15829
15830# Command to use after installation of a shared archive.
15831postinstall_cmds=$lt_postinstall_cmds
15832
15833# Command to use after uninstallation of a shared archive.
15834postuninstall_cmds=$lt_postuninstall_cmds
15835
15836# Commands used to finish a libtool library installation in a directory.
15837finish_cmds=$lt_finish_cmds
15838
15839# As "finish_cmds", except a single script fragment to be evaled but
15840# not shown.
15841finish_eval=$lt_finish_eval
15842
15843# Whether we should hardcode library paths into libraries.
15844hardcode_into_libs=$hardcode_into_libs
15845
15846# Compile-time system search path for libraries.
15847sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15848
15849# Detected run-time system search path for libraries.
15850sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15851
15852# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15853configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15854
15855# Whether dlopen is supported.
15856dlopen_support=$enable_dlopen
15857
15858# Whether dlopen of programs is supported.
15859dlopen_self=$enable_dlopen_self
15860
15861# Whether dlopen of statically linked programs is supported.
15862dlopen_self_static=$enable_dlopen_self_static
15863
15864# Commands to strip libraries.
15865old_striplib=$lt_old_striplib
15866striplib=$lt_striplib
15867
15868
15869# The linker used to build libraries.
15870LD=$lt_LD
15871
15872# How to create reloadable object files.
15873reload_flag=$lt_reload_flag
15874reload_cmds=$lt_reload_cmds
15875
15876# Commands used to build an old-style archive.
15877old_archive_cmds=$lt_old_archive_cmds
15878
15879# A language specific compiler.
15880CC=$lt_compiler
15881
15882# Is the compiler the GNU compiler?
15883with_gcc=$GCC
15884
15885# Compiler flag to turn off builtin functions.
15886no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15887
15888# Additional compiler flags for building library objects.
15889pic_flag=$lt_lt_prog_compiler_pic
15890
15891# How to pass a linker flag through the compiler.
15892wl=$lt_lt_prog_compiler_wl
15893
15894# Compiler flag to prevent dynamic linking.
15895link_static_flag=$lt_lt_prog_compiler_static
15896
15897# Does compiler simultaneously support -c and -o options?
15898compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15899
15900# Whether or not to add -lc for building shared libraries.
15901build_libtool_need_lc=$archive_cmds_need_lc
15902
15903# Whether or not to disallow shared libs when runtime libs are static.
15904allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15905
15906# Compiler flag to allow reflexive dlopens.
15907export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15908
15909# Compiler flag to generate shared objects directly from archives.
15910whole_archive_flag_spec=$lt_whole_archive_flag_spec
15911
15912# Whether the compiler copes with passing no objects directly.
15913compiler_needs_object=$lt_compiler_needs_object
15914
15915# Create an old-style archive from a shared archive.
15916old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15917
15918# Create a temporary old-style archive to link instead of a shared archive.
15919old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15920
15921# Commands used to build a shared archive.
15922archive_cmds=$lt_archive_cmds
15923archive_expsym_cmds=$lt_archive_expsym_cmds
15924
15925# Commands used to build a loadable module if different from building
15926# a shared archive.
15927module_cmds=$lt_module_cmds
15928module_expsym_cmds=$lt_module_expsym_cmds
15929
15930# Whether we are building with GNU ld or not.
15931with_gnu_ld=$lt_with_gnu_ld
15932
15933# Flag that allows shared libraries with undefined symbols to be built.
15934allow_undefined_flag=$lt_allow_undefined_flag
15935
15936# Flag that enforces no undefined symbols.
15937no_undefined_flag=$lt_no_undefined_flag
15938
15939# Flag to hardcode \$libdir into a binary during linking.
15940# This must work even if \$libdir does not exist
15941hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15942
15943# Whether we need a single "-rpath" flag with a separated argument.
15944hardcode_libdir_separator=$lt_hardcode_libdir_separator
15945
15946# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15947# DIR into the resulting binary.
15948hardcode_direct=$hardcode_direct
15949
15950# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15951# DIR into the resulting binary and the resulting library dependency is
15952# "absolute",i.e impossible to change by setting \$shlibpath_var if the
15953# library is relocated.
15954hardcode_direct_absolute=$hardcode_direct_absolute
15955
15956# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15957# into the resulting binary.
15958hardcode_minus_L=$hardcode_minus_L
15959
15960# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15961# into the resulting binary.
15962hardcode_shlibpath_var=$hardcode_shlibpath_var
15963
15964# Set to "yes" if building a shared library automatically hardcodes DIR
15965# into the library and all subsequent libraries and executables linked
15966# against it.
15967hardcode_automatic=$hardcode_automatic
15968
15969# Set to yes if linker adds runtime paths of dependent libraries
15970# to runtime path list.
15971inherit_rpath=$inherit_rpath
15972
15973# Whether libtool must link a program against all its dependency libraries.
15974link_all_deplibs=$link_all_deplibs
15975
15976# Set to "yes" if exported symbols are required.
15977always_export_symbols=$always_export_symbols
15978
15979# The commands to list exported symbols.
15980export_symbols_cmds=$lt_export_symbols_cmds
15981
15982# Symbols that should not be listed in the preloaded symbols.
15983exclude_expsyms=$lt_exclude_expsyms
15984
15985# Symbols that must always be exported.
15986include_expsyms=$lt_include_expsyms
15987
15988# Commands necessary for linking programs (against libraries) with templates.
15989prelink_cmds=$lt_prelink_cmds
15990
15991# Commands necessary for finishing linking programs.
15992postlink_cmds=$lt_postlink_cmds
15993
15994# Specify filename containing input files.
15995file_list_spec=$lt_file_list_spec
15996
15997# How to hardcode a shared library path into an executable.
15998hardcode_action=$hardcode_action
15999
16000# ### END LIBTOOL CONFIG
16001
16002_LT_EOF
16003
16004    cat <<'_LT_EOF' >> "$cfgfile"
16005
16006# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
16007
16008# func_munge_path_list VARIABLE PATH
16009# -----------------------------------
16010# VARIABLE is name of variable containing _space_ separated list of
16011# directories to be munged by the contents of PATH, which is string
16012# having a format:
16013# "DIR[:DIR]:"
16014#       string "DIR[ DIR]" will be prepended to VARIABLE
16015# ":DIR[:DIR]"
16016#       string "DIR[ DIR]" will be appended to VARIABLE
16017# "DIRP[:DIRP]::[DIRA:]DIRA"
16018#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16019#       "DIRA[ DIRA]" will be appended to VARIABLE
16020# "DIR[:DIR]"
16021#       VARIABLE will be replaced by "DIR[ DIR]"
16022func_munge_path_list ()
16023{
16024    case x$2 in
16025    x)
16026        ;;
16027    *:)
16028        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
16029        ;;
16030    x:*)
16031        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
16032        ;;
16033    *::*)
16034        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
16035        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
16036        ;;
16037    *)
16038        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
16039        ;;
16040    esac
16041}
16042
16043
16044# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
16045func_cc_basename ()
16046{
16047    for cc_temp in $*""; do
16048      case $cc_temp in
16049        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16050        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16051        \-*) ;;
16052        *) break;;
16053      esac
16054    done
16055    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16056}
16057
16058
16059# ### END FUNCTIONS SHARED WITH CONFIGURE
16060
16061_LT_EOF
16062
16063  case $host_os in
16064  aix3*)
16065    cat <<\_LT_EOF >> "$cfgfile"
16066# AIX sometimes has problems with the GCC collect2 program.  For some
16067# reason, if we set the COLLECT_NAMES environment variable, the problems
16068# vanish in a puff of smoke.
16069if test set != "${COLLECT_NAMES+set}"; then
16070  COLLECT_NAMES=
16071  export COLLECT_NAMES
16072fi
16073_LT_EOF
16074    ;;
16075  esac
16076
16077
16078
16079ltmain=$ac_aux_dir/ltmain.sh
16080
16081
16082  # We use sed instead of cat because bash on DJGPP gets confused if
16083  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16084  # text mode, it properly converts lines to CR/LF.  This bash problem
16085  # is reportedly fixed, but why not run on old versions too?
16086  sed '$q' "$ltmain" >> "$cfgfile" \
16087     || (rm -f "$cfgfile"; exit 1)
16088
16089   mv -f "$cfgfile" "$ofile" ||
16090    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16091  chmod +x "$ofile"
16092
16093 ;;
16094
16095  esac
16096done # for ac_tag
16097
16098
16099as_fn_exit 0
16100_ACEOF
16101ac_clean_files=$ac_clean_files_save
16102
16103test $ac_write_fail = 0 ||
16104  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16105
16106
16107# configure is writing to config.log, and then calls config.status.
16108# config.status does its own redirection, appending to config.log.
16109# Unfortunately, on DOS this fails, as config.log is still kept open
16110# by configure, so config.status won't be able to write to it; its
16111# output is simply discarded.  So we exec the FD to /dev/null,
16112# effectively closing config.log, so it can be properly (re)opened and
16113# appended to by config.status.  When coming back to configure, we
16114# need to make the FD available again.
16115if test "$no_create" != yes; then
16116  ac_cs_success=:
16117  ac_config_status_args=
16118  test "$silent" = yes &&
16119    ac_config_status_args="$ac_config_status_args --quiet"
16120  exec 5>/dev/null
16121  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16122  exec 5>>config.log
16123  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16124  # would make configure fail if this is the last instruction.
16125  $ac_cs_success || as_fn_exit 1
16126fi
16127if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16128  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16129printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16130fi
16131
16132
16133
16134